(self.webpackChunkdrcarmen=self.webpackChunkdrcarmen||[]).push([[179],{12011:(oe,x,i)=>{"use strict";i.d(x,{Dh:()=>d,GT:()=>h,cc:()=>b,hO:()=>y,on:()=>u,pX:()=>l,xv:()=>p});var e=i(94650),n=i(29260),a=i(38100);oe=i.hmd(oe);const t=["ngOnDestroy"],l=(A,P,B,V={})=>new Proxy(A,{get:(X,re)=>B.runOutsideAngular(()=>{var Q;if(A[re])return!(null===(Q=V?.spy)||void 0===Q)&&Q.get&&V.spy.get(re,A[re]),A[re];if(t.indexOf(re)>-1)return()=>{};const ae=P.toPromise().then(K=>{const k=K&&K[re];return"function"==typeof k?k.bind(K):k&&k.then?k.then($=>B.run(()=>$)):B.run(()=>k)});return new Proxy(()=>{},{get:(K,k)=>ae[k],apply:(K,k,$)=>ae.then(j=>{var R;const U=j&&j(...$);return!(null===(R=V?.spy)||void 0===R)&&R.apply&&V.spy.apply(re,$,U),U})})})}),h=(A,P)=>{P.forEach(B=>{Object.getOwnPropertyNames(B.prototype||B).forEach(V=>{Object.defineProperty(A.prototype,V,Object.getOwnPropertyDescriptor(B.prototype||B,V))})})};class s{constructor(P){return P}}const d=new e.InjectionToken("angularfire2.app.options"),p=new e.InjectionToken("angularfire2.app.name");function u(A,P,B){const X="object"==typeof B&&B||{};X.name=X.name||"string"==typeof B&&B||"[DEFAULT]";const Q=n.Z.apps.filter(ae=>ae&&ae.name===X.name)[0]||P.runOutsideAngular(()=>n.Z.initializeApp(A,X));try{JSON.stringify(A)!==JSON.stringify(Q.options)&&g("error",`${Q.name} Firebase App already initialized with different options${oe.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new s(Q)}const g=(A,...P)=>{(0,e.isDevMode)()&&typeof console<"u"&&console[A](...P)},v={provide:s,useFactory:u,deps:[d,e.NgZone,[new e.Optional,p]]};let y=(()=>{class A{constructor(B){n.Z.registerVersion("angularfire",a.q4.full,"core"),n.Z.registerVersion("angularfire",a.q4.full,"app-compat"),n.Z.registerVersion("angular",e.VERSION.full,B.toString())}static initializeApp(B,V){return{ngModule:A,providers:[{provide:d,useValue:B},{provide:p,useValue:V}]}}}return A.\u0275fac=function(B){return new(B||A)(e.\u0275\u0275inject(e.PLATFORM_ID))},A.\u0275mod=e.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=e.\u0275\u0275defineInjector({providers:[v]}),A})();function b(A,P,B,V,X){const[,re,Q]=globalThis.\u0275AngularfireInstanceCache.find(ae=>ae[0]===A)||[];if(re)return function S(A,P){try{return A.toString()===P.toString()}catch{return A===P}}(X,Q)||(D("error",`${P} was already initialized on the ${B} Firebase App with different settings.${E?" You may need to reload as Firebase is not HMR aware.":""}`),D("warn",{is:X,was:Q})),re;{const ae=V();return globalThis.\u0275AngularfireInstanceCache.push([A,ae,X]),ae}}const E=!!oe.hot,D=(A,...P)=>{(0,e.isDevMode)()&&typeof console<"u"&&console[A](...P)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},38100:(oe,x,i)=>{"use strict";i.d(x,{q4:()=>Tr,iC:()=>Yn,HU:()=>be,vb:()=>xo,JM:()=>bo});var e=i(94650),n=i(70259),a=i(15861),t=i(6881),l=i(42090),h=i(34859),s=i(41877);i(54727);const p="@firebase/remote-config",u="0.4.4",b=new l.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class H{constructor(bn,Dn,ii,li){this.client=bn,this.storage=Dn,this.storageCache=ii,this.logger=li}isCachedDataFresh(bn,Dn){if(!Dn)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const ii=Date.now()-Dn,li=ii<=bn;return this.logger.debug(`Config fetch cache check. Cache age millis: ${ii}. Cache max age millis (minimumFetchIntervalMillis setting): ${bn}. Is cache hit: ${li}.`),li}fetch(bn){var Dn=this;return(0,a.Z)(function*(){const[ii,li]=yield Promise.all([Dn.storage.getLastSuccessfulFetchTimestampMillis(),Dn.storage.getLastSuccessfulFetchResponse()]);if(li&&Dn.isCachedDataFresh(bn.cacheMaxAgeMillis,ii))return li;bn.eTag=li&&li.eTag;const ft=yield Dn.client.fetch(bn),ce=[Dn.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===ft.status&&ce.push(Dn.storage.setLastSuccessfulFetchResponse(ft)),yield Promise.all(ce),ft})()}}function N(an=navigator){return an.languages&&an.languages[0]||an.language}class pe{constructor(bn,Dn,ii,li,ft,ce){this.firebaseInstallations=bn,this.sdkVersion=Dn,this.namespace=ii,this.projectId=li,this.apiKey=ft,this.appId=ce}fetch(bn){var Dn=this;return(0,a.Z)(function*(){const[ii,li]=yield Promise.all([Dn.firebaseInstallations.getId(),Dn.firebaseInstallations.getToken()]),ce=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${Dn.projectId}/namespaces/${Dn.namespace}:fetch?key=${Dn.apiKey}`,Se={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":bn.eTag||"*"},ut={sdk_version:Dn.sdkVersion,app_instance_id:ii,app_instance_id_token:li,app_id:Dn.appId,language_code:N()},Kt={method:"POST",headers:Se,body:JSON.stringify(ut)},mn=fetch(ce,Kt),Un=new Promise((Yi,tr)=>{bn.signal.addEventListener(()=>{const Lr=new Error("The operation was aborted.");Lr.name="AbortError",tr(Lr)})});let qn;try{yield Promise.race([mn,Un]),qn=yield mn}catch(Yi){let tr="fetch-client-network";throw"AbortError"===Yi?.name&&(tr="fetch-timeout"),b.create(tr,{originalErrorMessage:Yi?.message})}let ci=qn.status;const hi=qn.headers.get("ETag")||void 0;let Ai,zi;if(200===qn.status){let Yi;try{Yi=yield qn.json()}catch(tr){throw b.create("fetch-client-parse",{originalErrorMessage:tr?.message})}Ai=Yi.entries,zi=Yi.state}if("INSTANCE_STATE_UNSPECIFIED"===zi?ci=500:"NO_CHANGE"===zi?ci=304:("NO_TEMPLATE"===zi||"EMPTY_CONFIG"===zi)&&(Ai={}),304!==ci&&200!==ci)throw b.create("fetch-status",{httpStatus:ci});return{status:ci,eTag:hi,config:Ai}})()}}class q{constructor(bn,Dn){this.client=bn,this.storage=Dn}fetch(bn){var Dn=this;return(0,a.Z)(function*(){const ii=(yield Dn.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return Dn.attemptFetch(bn,ii)})()}attemptFetch(bn,{throttleEndTimeMillis:Dn,backoffCount:ii}){var li=this;return(0,a.Z)(function*(){yield function de(an,bn){return new Promise((Dn,ii)=>{const li=Math.max(bn-Date.now(),0),ft=setTimeout(Dn,li);an.addEventListener(()=>{clearTimeout(ft),ii(b.create("fetch-throttle",{throttleEndTimeMillis:bn}))})})}(bn.signal,Dn);try{const ft=yield li.client.fetch(bn);return yield li.storage.deleteThrottleMetadata(),ft}catch(ft){if(!function me(an){if(!(an instanceof l.ZR&&an.customData))return!1;const bn=Number(an.customData.httpStatus);return 429===bn||500===bn||503===bn||504===bn}(ft))throw ft;const ce={throttleEndTimeMillis:Date.now()+(0,l.$s)(ii),backoffCount:ii+1};return yield li.storage.setThrottleMetadata(ce),li.attemptFetch(bn,ce)}})()}}class Ee{constructor(bn,Dn,ii,li,ft){this.app=bn,this._client=Dn,this._storageCache=ii,this._storage=li,this._logger=ft,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function Ye(an,bn){const Dn=an.target.error||void 0;return b.create(bn,{originalErrorMessage:Dn&&Dn?.message})}const wt="app_namespace_store";class Zt{constructor(bn,Dn,ii,li=function nt(){return new Promise((an,bn)=>{try{const Dn=indexedDB.open("firebase_remote_config",1);Dn.onerror=ii=>{bn(Ye(ii,"storage-open"))},Dn.onsuccess=ii=>{an(ii.target.result)},Dn.onupgradeneeded=ii=>{0===ii.oldVersion&&ii.target.result.createObjectStore(wt,{keyPath:"compositeKey"})}}catch(Dn){bn(b.create("storage-open",{originalErrorMessage:Dn?.message}))}})}()){this.appId=bn,this.appName=Dn,this.namespace=ii,this.openDbPromise=li}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(bn){return this.set("last_fetch_status",bn)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(bn){return this.set("last_successful_fetch_timestamp_millis",bn)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(bn){return this.set("last_successful_fetch_response",bn)}getActiveConfig(){return this.get("active_config")}setActiveConfig(bn){return this.set("active_config",bn)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(bn){return this.set("active_config_etag",bn)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(bn){return this.set("throttle_metadata",bn)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(bn){var Dn=this;return(0,a.Z)(function*(){const ii=yield Dn.openDbPromise;return new Promise((li,ft)=>{const Se=ii.transaction([wt],"readonly").objectStore(wt),ut=Dn.createCompositeKey(bn);try{const Kt=Se.get(ut);Kt.onerror=mn=>{ft(Ye(mn,"storage-get"))},Kt.onsuccess=mn=>{const Un=mn.target.result;li(Un?Un.value:void 0)}}catch(Kt){ft(b.create("storage-get",{originalErrorMessage:Kt?.message}))}})})()}set(bn,Dn){var ii=this;return(0,a.Z)(function*(){const li=yield ii.openDbPromise;return new Promise((ft,ce)=>{const ut=li.transaction([wt],"readwrite").objectStore(wt),Kt=ii.createCompositeKey(bn);try{const mn=ut.put({compositeKey:Kt,value:Dn});mn.onerror=Un=>{ce(Ye(Un,"storage-set"))},mn.onsuccess=()=>{ft()}}catch(mn){ce(b.create("storage-set",{originalErrorMessage:mn?.message}))}})})()}delete(bn){var Dn=this;return(0,a.Z)(function*(){const ii=yield Dn.openDbPromise;return new Promise((li,ft)=>{const Se=ii.transaction([wt],"readwrite").objectStore(wt),ut=Dn.createCompositeKey(bn);try{const Kt=Se.delete(ut);Kt.onerror=mn=>{ft(Ye(mn,"storage-delete"))},Kt.onsuccess=()=>{li()}}catch(Kt){ft(b.create("storage-delete",{originalErrorMessage:Kt?.message}))}})})()}createCompositeKey(bn){return[this.appId,this.appName,this.namespace,bn].join()}}class Fe{constructor(bn){this.storage=bn}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var bn=this;return(0,a.Z)(function*(){const Dn=bn.storage.getLastFetchStatus(),ii=bn.storage.getLastSuccessfulFetchTimestampMillis(),li=bn.storage.getActiveConfig(),ft=yield Dn;ft&&(bn.lastFetchStatus=ft);const ce=yield ii;ce&&(bn.lastSuccessfulFetchTimestampMillis=ce);const Se=yield li;Se&&(bn.activeConfig=Se)})()}setLastFetchStatus(bn){return this.lastFetchStatus=bn,this.storage.setLastFetchStatus(bn)}setLastSuccessfulFetchTimestampMillis(bn){return this.lastSuccessfulFetchTimestampMillis=bn,this.storage.setLastSuccessfulFetchTimestampMillis(bn)}setActiveConfig(bn){return this.activeConfig=bn,this.storage.setActiveConfig(bn)}}function Ie(){return dt.apply(this,arguments)}function dt(){return(dt=(0,a.Z)(function*(){if(!(0,l.hl)())return!1;try{return yield(0,l.eu)()}catch{return!1}})).apply(this,arguments)}!function yt(){(0,t._registerComponent)(new h.wA("remote-config",function an(bn,{instanceIdentifier:Dn}){const ii=bn.getProvider("app").getImmediate(),li=bn.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw b.create("registration-window");if(!(0,l.hl)())throw b.create("indexed-db-unavailable");const{projectId:ft,apiKey:ce,appId:Se}=ii.options;if(!ft)throw b.create("registration-project-id");if(!ce)throw b.create("registration-api-key");if(!Se)throw b.create("registration-app-id");const ut=new Zt(Se,ii.name,Dn=Dn||"firebase"),Kt=new Fe(ut),mn=new s.Yd(p);mn.logLevel=s.in.ERROR;const Un=new pe(li,t.SDK_VERSION,Dn,ft,ce,Se),qn=new q(Un,ut),ci=new H(qn,ut,Kt,mn),hi=new Ee(ii,ci,Kt,ut,mn);return function Q(an){const bn=(0,l.m9)(an);bn._initializePromise||(bn._initializePromise=bn._storageCache.loadFromStorage().then(()=>{bn._isInitializationComplete=!0}))}(hi),hi},"PUBLIC").setMultipleInstances(!0)),(0,t.registerVersion)(p,u),(0,t.registerVersion)(p,u,"esm2017")}();var Mt=i(26774);const Xt="analytics",en="firebase_id",vt="origin",xt=6e4,zt="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",bt="https://www.googletagmanager.com/gtag/js",At=new s.Yd("@firebase/analytics"),Xe=new l.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function Pe(an){if(!an.startsWith(bt)){const bn=Xe.create("invalid-gtag-resource",{gtagURL:an});return At.warn(bn.message),""}return an}function Ve(an){return Promise.all(an.map(bn=>bn.catch(Dn=>Dn)))}function Jt(){return(Jt=(0,a.Z)(function*(an,bn,Dn,ii,li,ft){const ce=ii[li];try{if(ce)yield bn[ce];else{const ut=(yield Ve(Dn)).find(Kt=>Kt.measurementId===li);ut&&(yield bn[ut.appId])}}catch(Se){At.error(Se)}an("config",li,ft)})).apply(this,arguments)}function Ae(){return(Ae=(0,a.Z)(function*(an,bn,Dn,ii,li){try{let ft=[];if(li&&li.send_to){let ce=li.send_to;Array.isArray(ce)||(ce=[ce]);const Se=yield Ve(Dn);for(const ut of ce){const Kt=Se.find(Un=>Un.measurementId===ut),mn=Kt&&bn[Kt.appId];if(!mn){ft=[];break}ft.push(mn)}}0===ft.length&&(ft=Object.values(bn)),yield Promise.all(ft),an("event",ii,li||{})}catch(ft){At.error(ft)}})).apply(this,arguments)}const ot=30,Z=new class z{constructor(bn={},Dn=1e3){this.throttleMetadata=bn,this.intervalMillis=Dn}getThrottleMetadata(bn){return this.throttleMetadata[bn]}setThrottleMetadata(bn,Dn){this.throttleMetadata[bn]=Dn}deleteThrottleMetadata(bn){delete this.throttleMetadata[bn]}};function ge(an){return new Headers({Accept:"application/json","x-goog-api-key":an})}function qe(){return(qe=(0,a.Z)(function*(an){var bn;const{appId:Dn,apiKey:ii}=an,li={method:"GET",headers:ge(ii)},ft=zt.replace("{app-id}",Dn),ce=yield fetch(ft,li);if(200!==ce.status&&304!==ce.status){let Se="";try{const ut=yield ce.json();null!==(bn=ut.error)&&void 0!==bn&&bn.message&&(Se=ut.error.message)}catch{}throw Xe.create("config-fetch-failed",{httpStatus:ce.status,responseMessage:Se})}return ce.json()})).apply(this,arguments)}function Yt(){return(Yt=(0,a.Z)(function*(an,bn=Z,Dn){const{appId:ii,apiKey:li,measurementId:ft}=an.options;if(!ii)throw Xe.create("no-app-id");if(!li){if(ft)return{measurementId:ft,appId:ii};throw Xe.create("no-api-key")}const ce=bn.getThrottleMetadata(ii)||{backoffCount:0,throttleEndTimeMillis:Date.now()},Se=new Ge;return setTimeout((0,a.Z)(function*(){Se.abort()}),void 0!==Dn?Dn:xt),it({appId:ii,apiKey:li,measurementId:ft},ce,Se,bn)})).apply(this,arguments)}function it(an,bn,Dn){return Be.apply(this,arguments)}function Be(){return Be=(0,a.Z)(function*(an,{throttleEndTimeMillis:bn,backoffCount:Dn},ii,li=Z){var ft;const{appId:ce,measurementId:Se}=an;try{yield function gt(an,bn){return new Promise((Dn,ii)=>{const li=Math.max(bn-Date.now(),0),ft=setTimeout(Dn,li);an.addEventListener(()=>{clearTimeout(ft),ii(Xe.create("fetch-throttle",{throttleEndTimeMillis:bn}))})})}(ii,bn)}catch(ut){if(Se)return At.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Se} provided in the "measurementId" field in the local Firebase config. [${ut?.message}]`),{appId:ce,measurementId:Se};throw ut}try{const ut=yield function Qe(an){return qe.apply(this,arguments)}(an);return li.deleteThrottleMetadata(ce),ut}catch(ut){const Kt=ut;if(!function ue(an){if(!(an instanceof l.ZR&&an.customData))return!1;const bn=Number(an.customData.httpStatus);return 429===bn||500===bn||503===bn||504===bn}(Kt)){if(li.deleteThrottleMetadata(ce),Se)return At.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Se} provided in the "measurementId" field in the local Firebase config. [${Kt?.message}]`),{appId:ce,measurementId:Se};throw ut}const mn=503===Number(null===(ft=Kt?.customData)||void 0===ft?void 0:ft.httpStatus)?(0,l.$s)(Dn,li.intervalMillis,ot):(0,l.$s)(Dn,li.intervalMillis),Un={throttleEndTimeMillis:Date.now()+mn,backoffCount:Dn+1};return li.setThrottleMetadata(ce,Un),At.debug(`Calling attemptFetch again in ${mn} millis`),it(an,Un,ii,li)}}),Be.apply(this,arguments)}class Ge{constructor(){this.listeners=[]}addEventListener(bn){this.listeners.push(bn)}abort(){this.listeners.forEach(bn=>bn())}}let ee,un;function Ot(){return(Ot=(0,a.Z)(function*(an,bn,Dn,ii,li){if(li&&li.global)an("event",Dn,ii);else{const ft=yield bn;an("event",Dn,Object.assign(Object.assign({},ii),{send_to:ft}))}})).apply(this,arguments)}function Rn(){return(Rn=(0,a.Z)(function*(){if(!(0,l.hl)())return At.warn(Xe.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,l.eu)()}catch(an){return At.warn(Xe.create("indexeddb-unavailable",{errorInfo:an?.toString()}).message),!1}return!0})).apply(this,arguments)}function ji(){return ji=(0,a.Z)(function*(an,bn,Dn,ii,li,ft,ce){var Se;const ut=function ct(an){return Yt.apply(this,arguments)}(an);ut.then(ci=>{Dn[ci.measurementId]=ci.appId,an.options.measurementId&&ci.measurementId!==an.options.measurementId&&At.warn(`The measurement ID in the local Firebase config (${an.options.measurementId}) does not match the measurement ID fetched from the server (${ci.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(ci=>At.error(ci)),bn.push(ut);const Kt=function Nt(){return Rn.apply(this,arguments)}().then(ci=>{if(ci)return ii.getId()}),[mn,Un]=yield Promise.all([ut,Kt]);(function tn(an){const bn=window.document.getElementsByTagName("script");for(const Dn of Object.values(bn))if(Dn.src&&Dn.src.includes(bt)&&Dn.src.includes(an))return Dn;return null})(ft)||function It(an,bn){const Dn=function mt(an,bn){let Dn;return window.trustedTypes&&(Dn=window.trustedTypes.createPolicy(an,bn)),Dn}("firebase-js-sdk-policy",{createScriptURL:Pe}),ii=document.createElement("script"),li=`${bt}?l=${an}&id=${bn}`;ii.src=Dn?Dn?.createScriptURL(li):li,ii.async=!0,document.head.appendChild(ii)}(ft,mn.measurementId),un&&(li("consent","default",un),function rn(an){un=an}(void 0)),li("js",new Date);const qn=null!==(Se=ce?.config)&&void 0!==Se?Se:{};return qn[vt]="firebase",qn.update=!0,null!=Un&&(qn[en]=Un),li("config",mn.measurementId,qn),ee&&(li("set",ee),function $t(an){ee=an}(void 0)),mn.measurementId}),ji.apply(this,arguments)}class ir{constructor(bn){this.app=bn}_delete(){return delete dr[this.app.options.appId],Promise.resolve()}}let dr={},Ln=[];const Vn={};let dn,En,Le="dataLayer",Ft="gtag",gi=!1;function Mr(an,bn,Dn){!function fr(){const an=[];if((0,l.ru)()&&an.push("This is a browser extension environment."),(0,l.zI)()||an.push("Cookies are not available."),an.length>0){const bn=an.map((ii,li)=>`(${li+1}) ${ii}`).join(" "),Dn=Xe.create("invalid-analytics-context",{errorInfo:bn});At.warn(Dn.message)}}();const ii=an.options.appId;if(!ii)throw Xe.create("no-app-id");if(!an.options.apiKey){if(!an.options.measurementId)throw Xe.create("no-api-key");At.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${an.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=dr[ii])throw Xe.create("already-exists",{id:ii});if(!gi){!function xn(an){let bn=[];Array.isArray(window[an])?bn=window[an]:window[an]=bn}(Le);const{wrappedGtag:ft,gtagCore:ce}=function pt(an,bn,Dn,ii,li){let ft=function(...ce){window[ii].push(arguments)};return window[li]&&"function"==typeof window[li]&&(ft=window[li]),window[li]=function ze(an,bn,Dn,ii){function ft(){return ft=(0,a.Z)(function*(ce,...Se){try{if("event"===ce){const[ut,Kt]=Se;yield function ke(an,bn,Dn,ii,li){return Ae.apply(this,arguments)}(an,bn,Dn,ut,Kt)}else if("config"===ce){const[ut,Kt]=Se;yield function _n(an,bn,Dn,ii,li,ft){return Jt.apply(this,arguments)}(an,bn,Dn,ii,ut,Kt)}else if("consent"===ce){const[ut]=Se;an("consent","update",ut)}else if("get"===ce){const[ut,Kt,mn]=Se;an("get",ut,Kt,mn)}else if("set"===ce){const[ut]=Se;an("set",ut)}else an(ce,...Se)}catch(ut){At.error(ut)}}),ft.apply(this,arguments)}return function li(ce){return ft.apply(this,arguments)}}(ft,an,bn,Dn),{gtagCore:ft,wrappedGtag:window[li]}}(dr,Ln,Vn,Le,Ft);En=ft,dn=ce,gi=!0}return dr[ii]=function Wn(an,bn,Dn,ii,li,ft,ce){return ji.apply(this,arguments)}(an,Ln,Vn,bn,dn,Le,Dn),new ir(an)}function on(){return he.apply(this,arguments)}function he(){return(he=(0,a.Z)(function*(){if((0,l.ru)()||!(0,l.zI)()||!(0,l.hl)())return!1;try{return yield(0,l.eu)()}catch{return!1}})).apply(this,arguments)}const Ii="@firebase/analytics";!function Hi(){(0,t._registerComponent)(new h.wA(Xt,(bn,{options:Dn})=>Mr(bn.getProvider("app").getImmediate(),bn.getProvider("installations-internal").getImmediate(),Dn),"PUBLIC")),(0,t._registerComponent)(new h.wA("analytics-internal",function an(bn){try{const Dn=bn.getProvider(Xt).getImmediate();return{logEvent:(ii,li,ft)=>function ri(an,bn,Dn,ii){an=(0,l.m9)(an),function De(an,bn,Dn,ii,li){return Ot.apply(this,arguments)}(En,dr[an.app.options.appId],bn,Dn,ii).catch(li=>At.error(li))}(Dn,ii,li,ft)}}catch(Dn){throw Xe.create("interop-component-reg-failed",{reason:Dn})}},"PRIVATE")),(0,t.registerVersion)(Ii,"0.10.0"),(0,t.registerVersion)(Ii,"0.10.0","esm2017")}();var Vi=i(233),kr=i(34986),Er=i(18505),pr=i(49468),fo=i(85363);const Tr=new e.Version("7.6.1"),Br="__angularfire_symbol__analyticsIsSupportedValue",_o="__angularfire_symbol__analyticsIsSupported",Bn="__angularfire_symbol__remoteConfigIsSupportedValue",Sn="__angularfire_symbol__remoteConfigIsSupported",Lt="__angularfire_symbol__messagingIsSupportedValue",Jn="__angularfire_symbol__messagingIsSupported";function bo(an,bn,Dn){if(bn){if(1===bn.length)return bn[0];const ft=bn.filter(ce=>ce.app===Dn);if(1===ft.length)return ft[0]}return Dn.container.getProvider(an).getImmediate({optional:!0})}globalThis[_o]||(globalThis[_o]=on().then(an=>globalThis[Br]=an).catch(()=>globalThis[Br]=!1)),globalThis[Jn]||(globalThis[Jn]=(0,Mt.Gb)().then(an=>globalThis[Lt]=an).catch(()=>globalThis[Lt]=!1)),globalThis[Sn]||(globalThis[Sn]=Ie().then(an=>globalThis[Bn]=an).catch(()=>globalThis[Bn]=!1));const xo=(an,bn)=>{const Dn=bn?[bn]:(0,n.C6)(),ii=[];return Dn.forEach(li=>{li.container.getProvider(an).instances.forEach(ce=>{ii.includes(ce)||ii.push(ce)})}),ii};function Re(){}class w{constructor(bn,Dn=Vi.N){this.zone=bn,this.delegate=Dn}now(){return this.delegate.now()}schedule(bn,Dn,ii){const li=this.zone;return this.delegate.schedule(function(ce){li.runGuarded(()=>{bn.apply(this,[ce])})},Dn,ii)}}class ne{constructor(bn){this.zone=bn,this.task=null}call(bn,Dn){const ii=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Re,{},Re,Re)),Dn.pipe((0,Er.b)({next:ii,complete:ii,error:ii})).subscribe(bn).add(ii)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let be=(()=>{class an{constructor(Dn){this.ngZone=Dn,this.outsideAngular=Dn.runOutsideAngular(()=>new w(Zone.current)),this.insideAngular=Dn.run(()=>new w(Zone.current,kr.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return an.\u0275fac=function(Dn){return new(Dn||an)(e.\u0275\u0275inject(e.NgZone))},an.\u0275prov=e.\u0275\u0275defineInjectable({token:an,factory:an.\u0275fac,providedIn:"root"}),an})();function Ue(){const an=globalThis.\u0275AngularFireScheduler;if(!an)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return an}function Yn(an){return Ue(),function Zn(an){return function(Dn){return(Dn=Dn.lift(new ne(an.ngZone))).pipe((0,pr.R)(an.outsideAngular),(0,fo.Q)(an.insideAngular))}}(Ue())(an)}},16346:(oe,x,i)=>{"use strict";i.d(x,{s:()=>n});const n=(0,i(47423).fo)("SignInWithApple",{web:()=>i.e(830).then(i.bind(i,10830)).then(a=>new a.SignInWithAppleWeb)})},17805:(oe,x,i)=>{"use strict";i.d(x,{J:()=>n});const n=(0,i(47423).fo)("FacebookLogin",{web:()=>i.e(884).then(i.bind(i,89884)).then(a=>new a.FacebookLoginWeb)})},50076:(oe,x,i)=>{"use strict";i.d(x,{GW:()=>n,dk:()=>a,oK:()=>e});var e=(()=>{return(t=e||(e={})).Prompt="PROMPT",t.Camera="CAMERA",t.Photos="PHOTOS",e;var t})(),n=(()=>{return(t=n||(n={})).Rear="REAR",t.Front="FRONT",n;var t})(),a=(()=>{return(t=a||(a={})).Uri="uri",t.Base64="base64",t.DataUrl="dataUrl",a;var t})()},47423:(oe,x,i)=>{"use strict";i.d(x,{Sd:()=>K,Uw:()=>D,dV:()=>y,fo:()=>b,xz:()=>p});var e=i(15861);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var d=(()=>{return(j=d||(d={})).Unimplemented="UNIMPLEMENTED",j.Unavailable="UNAVAILABLE",d;var j})();class p extends Error{constructor(R,U,le){super(R),this.message=R,this.code=U,this.data=le}}const g=j=>{var R,U,le,T,H;const N=j.CapacitorCustomPlatform||null,pe=j.Capacitor||{},de=pe.Plugins=pe.Plugins||{},me=j.CapacitorPlatforms,se=(null===(R=me?.currentPlatform)||void 0===R?void 0:R.getPlatform)||(()=>null!==N?N.name:(j=>{var R,U;return j?.androidBridge?"android":null!==(U=null===(R=j?.webkit)||void 0===R?void 0:R.messageHandlers)&&void 0!==U&&U.bridge?"ios":"web"})(j)),Ee=(null===(U=me?.currentPlatform)||void 0===U?void 0:U.isNativePlatform)||(()=>"web"!==se()),wt=(null===(le=me?.currentPlatform)||void 0===le?void 0:le.isPluginAvailable)||(Ce=>!(!Fe.get(Ce)?.platforms.has(se())&&!Ut(Ce))),Ut=(null===(T=me?.currentPlatform)||void 0===T?void 0:T.getPluginHeader)||(Ce=>{var Ie;return null===(Ie=pe.PluginHeaders)||void 0===Ie?void 0:Ie.find(dt=>dt.name===Ce)}),Fe=new Map,ie=(null===(H=me?.currentPlatform)||void 0===H?void 0:H.registerPlugin)||((Ce,Ie={})=>{const dt=Fe.get(Ce);if(dt)return console.warn(`Capacitor plugin "${Ce}" already registered. Cannot register plugins twice.`),dt.proxy;const Mt=se(),Xt=Ut(Ce);let en;const vt=function(){var Pe=(0,e.Z)(function*(){return!en&&Mt in Ie?en=en="function"==typeof Ie[Mt]?yield Ie[Mt]():Ie[Mt]:null!==N&&!en&&"web"in Ie&&(en=en="function"==typeof Ie.web?yield Ie.web():Ie.web),en});return function(){return Pe.apply(this,arguments)}}(),zt=Pe=>{let Ve;const mt=(...It)=>{const xn=vt().then(_n=>{const Jt=((Pe,Ve)=>{var mt,It;if(!Xt){if(Pe)return null===(It=Pe[Ve])||void 0===It?void 0:It.bind(Pe);throw new p(`"${Ce}" plugin is not implemented on ${Mt}`,d.Unimplemented)}{const xn=Xt?.methods.find(_n=>Ve===_n.name);if(xn)return"promise"===xn.rtype?_n=>pe.nativePromise(Ce,Ve.toString(),_n):(_n,Jt)=>pe.nativeCallback(Ce,Ve.toString(),_n,Jt);if(Pe)return null===(mt=Pe[Ve])||void 0===mt?void 0:mt.bind(Pe)}})(_n,Pe);if(Jt){const ke=Jt(...It);return Ve=ke?.remove,ke}throw new p(`"${Ce}.${Pe}()" is not implemented on ${Mt}`,d.Unimplemented)});return"addListener"===Pe&&(xn.remove=(0,e.Z)(function*(){return Ve()})),xn};return mt.toString=()=>`${Pe.toString()}() { [capacitor code] }`,Object.defineProperty(mt,"name",{value:Pe,writable:!1,configurable:!1}),mt},bt=zt("addListener"),At=zt("removeListener"),$e=(Pe,Ve)=>{const mt=bt({eventName:Pe},Ve),It=function(){var _n=(0,e.Z)(function*(){const Jt=yield mt;At({eventName:Pe,callbackId:Jt},Ve)});return function(){return _n.apply(this,arguments)}}(),xn=new Promise(_n=>mt.then(()=>_n({remove:It})));return xn.remove=(0,e.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield It()}),xn},Xe=new Proxy({},{get(Pe,Ve){switch(Ve){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return Xt?$e:bt;case"removeListener":return At;default:return zt(Ve)}}});return de[Ce]=Xe,Fe.set(Ce,{name:Ce,proxy:Xe,platforms:new Set([...Object.keys(Ie),...Xt?[Mt]:[]])}),Xe});return pe.convertFileSrc||(pe.convertFileSrc=Ce=>Ce),pe.getPlatform=se,pe.handleError=Ce=>j.console.error(Ce),pe.isNativePlatform=Ee,pe.isPluginAvailable=wt,pe.pluginMethodNoop=(Ce,Ie,dt)=>Promise.reject(`${dt} does not have an implementation of "${Ie}".`),pe.registerPlugin=ie,pe.Exception=p,pe.DEBUG=!!pe.DEBUG,pe.isLoggingEnabled=!!pe.isLoggingEnabled,pe.platform=pe.getPlatform(),pe.isNative=pe.isNativePlatform(),pe},y=(j=>j.Capacitor=g(j))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),b=y.registerPlugin;class D{constructor(R){this.listeners={},this.windowListeners={},R&&(console.warn(`Capacitor WebPlugin "${R.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=R)}addListener(R,U){var le=this;this.listeners[R]||(this.listeners[R]=[]),this.listeners[R].push(U);const H=this.windowListeners[R];H&&!H.registered&&this.addWindowListener(H);const N=function(){var de=(0,e.Z)(function*(){return le.removeListener(R,U)});return function(){return de.apply(this,arguments)}}(),pe=Promise.resolve({remove:N});return Object.defineProperty(pe,"remove",{value:(de=(0,e.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield N()}),function(){return de.apply(this,arguments)})}),pe;var de}removeAllListeners(){var R=this;return(0,e.Z)(function*(){R.listeners={};for(const U in R.windowListeners)R.removeWindowListener(R.windowListeners[U]);R.windowListeners={}})()}notifyListeners(R,U){const le=this.listeners[R];le&&le.forEach(T=>T(U))}hasListeners(R){return!!this.listeners[R].length}registerWindowListener(R,U){this.windowListeners[U]={registered:!1,windowEventName:R,pluginEventName:U,handler:le=>{this.notifyListeners(U,le)}}}unimplemented(R="not implemented"){return new y.Exception(R,d.Unimplemented)}unavailable(R="not available"){return new y.Exception(R,d.Unavailable)}removeListener(R,U){var le=this;return(0,e.Z)(function*(){const T=le.listeners[R];if(!T)return;const H=T.indexOf(U);le.listeners[R].splice(H,1),le.listeners[R].length||le.removeWindowListener(le.windowListeners[R])})()}addWindowListener(R){window.addEventListener(R.windowEventName,R.handler),R.registered=!0}removeWindowListener(R){R&&(window.removeEventListener(R.windowEventName,R.handler),R.registered=!1)}}const P=j=>encodeURIComponent(j).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),B=j=>j.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class V extends D{getCookies(){return(0,e.Z)(function*(){const R=document.cookie,U={};return R.split(";").forEach(le=>{if(le.length<=0)return;let[T,H]=le.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");T=B(T).trim(),H=B(H).trim(),U[T]=H}),U})()}setCookie(R){return(0,e.Z)(function*(){try{const U=P(R.key),le=P(R.value),T=`; expires=${(R.expires||"").replace("expires=","")}`,H=(R.path||"/").replace("path=",""),N=null!=R.url&&R.url.length>0?`domain=${R.url}`:"";document.cookie=`${U}=${le||""}${T}; path=${H}; ${N};`}catch(U){return Promise.reject(U)}})()}deleteCookie(R){return(0,e.Z)(function*(){try{document.cookie=`${R.key}=; Max-Age=0`}catch(U){return Promise.reject(U)}})()}clearCookies(){return(0,e.Z)(function*(){try{const R=document.cookie.split(";")||[];for(const U of R)document.cookie=U.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(R){return Promise.reject(R)}})()}clearAllCookies(){var R=this;return(0,e.Z)(function*(){try{yield R.clearCookies()}catch(U){return Promise.reject(U)}})()}}b("CapacitorCookies",{web:()=>new V});const re=function(){var j=(0,e.Z)(function*(R){return new Promise((U,le)=>{const T=new FileReader;T.onload=()=>{const H=T.result;U(H.indexOf(",")>=0?H.split(",")[1]:H)},T.onerror=H=>le(H),T.readAsDataURL(R)})});return function(U){return j.apply(this,arguments)}}(),K=(j,R={})=>{const U=Object.assign({method:j.method||"GET",headers:j.headers},R),T=((j={})=>{const R=Object.keys(j);return Object.keys(j).map(T=>T.toLocaleLowerCase()).reduce((T,H,N)=>(T[H]=j[R[N]],T),{})})(j.headers)["content-type"]||"";if("string"==typeof j.data)U.body=j.data;else if(T.includes("application/x-www-form-urlencoded")){const H=new URLSearchParams;for(const[N,pe]of Object.entries(j.data||{}))H.set(N,pe);U.body=H.toString()}else if(T.includes("multipart/form-data")||j.data instanceof FormData){const H=new FormData;if(j.data instanceof FormData)j.data.forEach((pe,de)=>{H.append(de,pe)});else for(const pe of Object.keys(j.data))H.append(pe,j.data[pe]);U.body=H;const N=new Headers(U.headers);N.delete("content-type"),U.headers=N}else(T.includes("application/json")||"object"==typeof j.data)&&(U.body=JSON.stringify(j.data));return U};class k extends D{request(R){return(0,e.Z)(function*(){const U=K(R,R.webFetchExtra),le=((j,R=!0)=>j?Object.entries(j).reduce((le,T)=>{const[H,N]=T;let pe,de;return Array.isArray(N)?(de="",N.forEach(me=>{pe=R?encodeURIComponent(me):me,de+=`${H}=${pe}&`}),de.slice(0,-1)):(pe=R?encodeURIComponent(N):N,de=`${H}=${pe}`),`${le}&${de}`},"").substr(1):null)(R.params,R.shouldEncodeUrlParams),T=le?`${R.url}?${le}`:R.url,H=yield fetch(T,U),N=H.headers.get("content-type")||"";let de,me,{responseType:pe="text"}=H.ok?R:{};switch(N.includes("application/json")&&(pe="json"),pe){case"arraybuffer":case"blob":me=yield H.blob(),de=yield re(me);break;case"json":de=yield H.json();break;default:de=yield H.text()}const q={};return H.headers.forEach((se,ve)=>{q[ve]=se}),{data:de,headers:q,status:H.status,url:H.url}})()}get(R){var U=this;return(0,e.Z)(function*(){return U.request(Object.assign(Object.assign({},R),{method:"GET"}))})()}post(R){var U=this;return(0,e.Z)(function*(){return U.request(Object.assign(Object.assign({},R),{method:"POST"}))})()}put(R){var U=this;return(0,e.Z)(function*(){return U.request(Object.assign(Object.assign({},R),{method:"PUT"}))})()}patch(R){var U=this;return(0,e.Z)(function*(){return U.request(Object.assign(Object.assign({},R),{method:"PATCH"}))})()}delete(R){var U=this;return(0,e.Z)(function*(){return U.request(Object.assign(Object.assign({},R),{method:"DELETE"}))})()}}b("CapacitorHttp",{web:()=>new k})},61443:(oe,x,i)=>{"use strict";i.d(x,{ez:()=>n,tP:()=>e});var e=(()=>{return(l=e||(e={})).Documents="DOCUMENTS",l.Data="DATA",l.Library="LIBRARY",l.Cache="CACHE",l.External="EXTERNAL",l.ExternalStorage="EXTERNAL_STORAGE",e;var l})(),n=(()=>{return(l=n||(n={})).UTF8="utf8",l.ASCII="ascii",l.UTF16="utf16",n;var l})()},29113:(oe,x,i)=>{"use strict";i.d(x,{e:()=>n});const n=(0,i(47423).fo)("GoogleAuth",{web:()=>i.e(733).then(i.bind(i,97733)).then(a=>new a.GoogleAuthWeb)})},37523:(oe,x,i)=>{"use strict";function s(ft,ce){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(ft,ce)}i.d(x,{B8:()=>li,Ze:()=>Dn});var ae=i(77579),K=i(15861),k=typeof self<"u"?self:global;const $=typeof navigator<"u",j=$&&typeof HTMLImageElement>"u",R=!(typeof global>"u"||typeof process>"u"||!process.versions||!process.versions.node),U=k.Buffer,le=k.BigInt,T=!!U,H=ft=>ft;function N(ft,ce=H){if(R)try{return"function"==typeof require?Promise.resolve(ce(require(ft))):import(ft).then(ce)}catch{console.warn(`Couldn't load ${ft}`)}}let pe=k.fetch;if(!k.fetch){const ft=N("http",ut=>ut),ce=N("https",ut=>ut),Se=(ut,{headers:Kt}={})=>new Promise(function(){var mn=(0,K.Z)(function*(Un,qn){let{port:ci,hostname:hi,pathname:Ai,protocol:zi,search:Yi}=new URL(ut);const tr={method:"GET",hostname:hi,path:encodeURI(Ai)+Yi,headers:Kt};""!==ci&&(tr.port=Number(ci));const Lr=("https:"===zi?yield ce:yield ft).request(tr,Gr=>{if(301===Gr.statusCode||302===Gr.statusCode){let Io=new URL(Gr.headers.location,ut).toString();return Se(Io,{headers:Kt}).then(Un).catch(qn)}Un({status:Gr.statusCode,arrayBuffer:()=>new Promise(Io=>{let wo=[];Gr.on("data",aa=>wo.push(aa)),Gr.on("end",()=>Io(Buffer.concat(wo)))})})});Lr.on("error",qn),Lr.end()});return function(Un,qn){return mn.apply(this,arguments)}}());(ft=>{pe=ft})(Se)}function me(ft,ce,Se){return ce in ft?Object.defineProperty(ft,ce,{value:Se,enumerable:!0,configurable:!0,writable:!0}):ft[ce]=Se,ft}const q=ft=>ve(ft)?void 0:ft,se=ft=>void 0!==ft;function ve(ft){return void 0===ft||(ft instanceof Map?0===ft.size:0===Object.values(ft).filter(se).length)}function Ee(ft){let ce=new Error(ft);throw delete ce.stack,ce}function Ye(ft){return""===(ft=function(ce){for(;ce.endsWith("\0");)ce=ce.slice(0,-1);return ce}(ft).trim())?void 0:ft}function wt(ft){let ce=function(Se){let ut=0;return Se.ifd0.enabled&&(ut+=1024),Se.exif.enabled&&(ut+=2048),Se.makerNote&&(ut+=2048),Se.userComment&&(ut+=1024),Se.gps.enabled&&(ut+=512),Se.interop.enabled&&(ut+=100),Se.ifd1.enabled&&(ut+=1024),ut+2048}(ft);return ft.jfif.enabled&&(ce+=50),ft.xmp.enabled&&(ce+=2e4),ft.iptc.enabled&&(ce+=14e3),ft.icc.enabled&&(ce+=6e3),ce}const Wt=ft=>String.fromCharCode.apply(null,ft),Ut=typeof TextDecoder<"u"?new TextDecoder("utf-8"):void 0;function nt(ft){return Ut?Ut.decode(ft):T?Buffer.from(ft).toString("utf8"):decodeURIComponent(escape(Wt(ft)))}class Zt{static from(ce,Se){return ce instanceof this&&ce.le===Se?ce:new Zt(ce,void 0,void 0,Se)}constructor(ce,Se=0,ut,Kt){if("boolean"==typeof Kt&&(this.le=Kt),Array.isArray(ce)&&(ce=new Uint8Array(ce)),0===ce)this.byteOffset=0,this.byteLength=0;else if(ce instanceof ArrayBuffer){void 0===ut&&(ut=ce.byteLength-Se);let mn=new DataView(ce,Se,ut);this._swapDataView(mn)}else if(ce instanceof Uint8Array||ce instanceof DataView||ce instanceof Zt){void 0===ut&&(ut=ce.byteLength-Se),(Se+=ce.byteOffset)+ut>ce.byteOffset+ce.byteLength&&Ee("Creating view outside of available memory in ArrayBuffer");let mn=new DataView(ce.buffer,Se,ut);this._swapDataView(mn)}else if("number"==typeof ce){let mn=new DataView(new ArrayBuffer(ce));this._swapDataView(mn)}else Ee("Invalid input argument for BufferView: "+ce)}_swapArrayBuffer(ce){this._swapDataView(new DataView(ce))}_swapBuffer(ce){this._swapDataView(new DataView(ce.buffer,ce.byteOffset,ce.byteLength))}_swapDataView(ce){this.dataView=ce,this.buffer=ce.buffer,this.byteOffset=ce.byteOffset,this.byteLength=ce.byteLength}_lengthToEnd(ce){return this.byteLength-ce}set(ce,Se,ut=Zt){return ce instanceof DataView||ce instanceof Zt?ce=new Uint8Array(ce.buffer,ce.byteOffset,ce.byteLength):ce instanceof ArrayBuffer&&(ce=new Uint8Array(ce)),ce instanceof Uint8Array||Ee("BufferView.set(): Invalid data argument."),this.toUint8().set(ce,Se),new ut(this,Se,ce.byteLength)}subarray(ce,Se){return Se=Se||this._lengthToEnd(ce),new Zt(this,ce,Se)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(ce,Se){return new Uint8Array(this.buffer,this.byteOffset+ce,Se)}getString(ce=0,Se=this.byteLength){return nt(this.getUint8Array(ce,Se))}getLatin1String(ce=0,Se=this.byteLength){let ut=this.getUint8Array(ce,Se);return Wt(ut)}getUnicodeString(ce=0,Se=this.byteLength){const ut=[];for(let Kt=0;Kt<Se&&ce+Kt<this.byteLength;Kt+=2)ut.push(this.getUint16(ce+Kt));return Wt(ut)}getInt8(ce){return this.dataView.getInt8(ce)}getUint8(ce){return this.dataView.getUint8(ce)}getInt16(ce,Se=this.le){return this.dataView.getInt16(ce,Se)}getInt32(ce,Se=this.le){return this.dataView.getInt32(ce,Se)}getUint16(ce,Se=this.le){return this.dataView.getUint16(ce,Se)}getUint32(ce,Se=this.le){return this.dataView.getUint32(ce,Se)}getFloat32(ce,Se=this.le){return this.dataView.getFloat32(ce,Se)}getFloat64(ce,Se=this.le){return this.dataView.getFloat64(ce,Se)}getFloat(ce,Se=this.le){return this.dataView.getFloat32(ce,Se)}getDouble(ce,Se=this.le){return this.dataView.getFloat64(ce,Se)}getUintBytes(ce,Se,ut){switch(Se){case 1:return this.getUint8(ce,ut);case 2:return this.getUint16(ce,ut);case 4:return this.getUint32(ce,ut);case 8:return this.getUint64&&this.getUint64(ce,ut)}}getUint(ce,Se,ut){switch(Se){case 8:return this.getUint8(ce,ut);case 16:return this.getUint16(ce,ut);case 32:return this.getUint32(ce,ut);case 64:return this.getUint64&&this.getUint64(ce,ut)}}toString(ce){return this.dataView.toString(ce,this.constructor.name)}ensureChunk(){}}function Fe(ft,ce){Ee(`${ft} '${ce}' was not loaded, try using full build of exifr.`)}class yt extends Map{constructor(ce){super(),this.kind=ce}get(ce,Se){return this.has(ce)||Fe(this.kind,ce),Se&&(ce in Se||Ee(`Unknown ${this.kind} '${ce}'.`),Se[ce].enabled||Fe(this.kind,ce)),super.get(ce)}keyList(){return Array.from(this.keys())}}var ie=new yt("file parser"),Ce=new yt("segment parser"),Ie=new yt("file reader");function Mt(ft,ce){return(Se=ft).startsWith("data:")||Se.length>1e4?vt(ft,ce,"base64"):R&&ft.includes("://")?Xt(ft,ce,"url",zt):R?vt(ft,ce,"fs"):$?Xt(ft,ce,"url",zt):void Ee("Invalid input argument");var Se}function Xt(ft,ce,Se,ut){return en.apply(this,arguments)}function en(){return en=(0,K.Z)(function*(ft,ce,Se,ut){return Ie.has(Se)?vt(ft,ce,Se):ut?(Kt=(0,K.Z)(function*(mn,Un){let qn=yield Un(mn);return new Zt(qn)}),function(mn,Un){return Kt.apply(this,arguments)})(ft,ut):void Ee(`Parser ${Se} is not loaded`);var Kt}),en.apply(this,arguments)}function vt(ft,ce,Se){return xt.apply(this,arguments)}function xt(){return(xt=(0,K.Z)(function*(ft,ce,Se){let ut=new(Ie.get(Se))(ft,ce);return yield ut.read(),ut})).apply(this,arguments)}const zt=ft=>pe(ft).then(ce=>ce.arrayBuffer()),bt=ft=>new Promise((ce,Se)=>{let ut=new FileReader;ut.onloadend=()=>ce(ut.result||new ArrayBuffer),ut.onerror=Se,ut.readAsArrayBuffer(ft)});class At extends Map{get tagKeys(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}get tagValues(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues}}function $e(ft,ce,Se){let ut=new At;for(let[Kt,mn]of Se)ut.set(Kt,mn);if(Array.isArray(ce))for(let Kt of ce)ft.set(Kt,ut);else ft.set(ce,ut);return ut}function Xe(ft,ce,Se){let ut,Kt=ft.get(ce);for(ut of Se)Kt.set(ut[0],ut[1])}const Pe=new Map,Ve=new Map,mt=new Map,It=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],xn=["jfif","xmp","icc","iptc","ihdr"],_n=["tiff",...xn],Jt=["ifd0","ifd1","exif","gps","interop"],ke=[..._n,...Jt],Ae=["makerNote","userComment"],ze=["translateKeys","translateValues","reviveValues","multiSegment"],pt=[...ze,"sanitize","mergeOutput","silentErrors"];class tn{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class ot extends tn{get needed(){return this.enabled||this.deps.size>0}constructor(ce,Se,ut,Kt){if(super(),me(this,"enabled",!1),me(this,"skip",new Set),me(this,"pick",new Set),me(this,"deps",new Set),me(this,"translateKeys",!1),me(this,"translateValues",!1),me(this,"reviveValues",!1),this.key=ce,this.enabled=Se,this.parse=this.enabled,this.applyInheritables(Kt),this.canBeFiltered=Jt.includes(ce),this.canBeFiltered&&(this.dict=Pe.get(ce)),void 0!==ut)if(Array.isArray(ut))this.parse=this.enabled=!0,this.canBeFiltered&&ut.length>0&&this.translateTagSet(ut,this.pick);else if("object"==typeof ut){if(this.enabled=!0,this.parse=!1!==ut.parse,this.canBeFiltered){let{pick:mn,skip:Un}=ut;mn&&mn.length>0&&this.translateTagSet(mn,this.pick),Un&&Un.length>0&&this.translateTagSet(Un,this.skip)}this.applyInheritables(ut)}else!0===ut||!1===ut?this.parse=this.enabled=ut:Ee(`Invalid options argument: ${ut}`)}applyInheritables(ce){let Se,ut;for(Se of ze)ut=ce[Se],void 0!==ut&&(this[Se]=ut)}translateTagSet(ce,Se){if(this.dict){let ut,Kt,{tagKeys:mn,tagValues:Un}=this.dict;for(ut of ce)"string"==typeof ut?(Kt=Un.indexOf(ut),-1===Kt&&(Kt=mn.indexOf(Number(ut))),-1!==Kt&&Se.add(Number(mn[Kt]))):Se.add(ut)}else for(let ut of ce)Se.add(ut)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,qe(this.pick,this.deps)):this.enabled&&this.pick.size>0&&qe(this.pick,this.deps)}}var Et={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},z=new Map;class Z extends tn{static useCached(ce){let Se=z.get(ce);return void 0!==Se||(Se=new this(ce),z.set(ce,Se)),Se}constructor(ce){super(),!0===ce?this.setupFromTrue():void 0===ce?this.setupFromUndefined():Array.isArray(ce)?this.setupFromArray(ce):"object"==typeof ce?this.setupFromObject(ce):Ee(`Invalid options argument ${ce}`),void 0===this.firstChunkSize&&(this.firstChunkSize=$?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let ce;for(ce of It)this[ce]=Et[ce];for(ce of pt)this[ce]=Et[ce];for(ce of Ae)this[ce]=Et[ce];for(ce of ke)this[ce]=new ot(ce,Et[ce],void 0,this)}setupFromTrue(){let ce;for(ce of It)this[ce]=Et[ce];for(ce of pt)this[ce]=Et[ce];for(ce of Ae)this[ce]=!0;for(ce of ke)this[ce]=new ot(ce,!0,void 0,this)}setupFromArray(ce){let Se;for(Se of It)this[Se]=Et[Se];for(Se of pt)this[Se]=Et[Se];for(Se of Ae)this[Se]=Et[Se];for(Se of ke)this[Se]=new ot(Se,!1,void 0,this);this.setupGlobalFilters(ce,void 0,Jt)}setupFromObject(ce){let Se;for(Se of(Jt.ifd0=Jt.ifd0||Jt.image,Jt.ifd1=Jt.ifd1||Jt.thumbnail,Object.assign(this,ce),It))this[Se]=Qe(ce[Se],Et[Se]);for(Se of pt)this[Se]=Qe(ce[Se],Et[Se]);for(Se of Ae)this[Se]=Qe(ce[Se],Et[Se]);for(Se of _n)this[Se]=new ot(Se,Et[Se],ce[Se],this);for(Se of Jt)this[Se]=new ot(Se,Et[Se],ce[Se],this.tiff);this.setupGlobalFilters(ce.pick,ce.skip,Jt,ke),!0===ce.tiff?this.batchEnableWithBool(Jt,!0):!1===ce.tiff?this.batchEnableWithUserValue(Jt,ce):Array.isArray(ce.tiff)?this.setupGlobalFilters(ce.tiff,void 0,Jt):"object"==typeof ce.tiff&&this.setupGlobalFilters(ce.tiff.pick,ce.tiff.skip,Jt)}batchEnableWithBool(ce,Se){for(let ut of ce)this[ut].enabled=Se}batchEnableWithUserValue(ce,Se){for(let ut of ce){let Kt=Se[ut];this[ut].enabled=!1!==Kt&&void 0!==Kt}}setupGlobalFilters(ce,Se,ut,Kt=ut){if(ce&&ce.length){for(let Un of Kt)this[Un].enabled=!1;let mn=ge(ce,ut);for(let[Un,qn]of mn)qe(this[Un].pick,qn),this[Un].enabled=!0}else if(Se&&Se.length){let mn=ge(Se,ut);for(let[Un,qn]of mn)qe(this[Un].skip,qn)}}filterNestedSegmentTags(){let{ifd0:ce,exif:Se,xmp:ut,iptc:Kt,icc:mn}=this;this.makerNote?Se.deps.add(37500):Se.skip.add(37500),this.userComment?Se.deps.add(37510):Se.skip.add(37510),ut.enabled||ce.skip.add(700),Kt.enabled||ce.skip.add(33723),mn.enabled||ce.skip.add(34675)}traverseTiffDependencyTree(){let{ifd0:ce,exif:Se,gps:ut,interop:Kt}=this;Kt.needed&&(Se.deps.add(40965),ce.deps.add(40965)),Se.needed&&ce.deps.add(34665),ut.needed&&ce.deps.add(34853),this.tiff.enabled=Jt.some(mn=>!0===this[mn].enabled)||this.makerNote||this.userComment;for(let mn of Jt)this[mn].finalizeFilters()}get onlyTiff(){return!xn.map(ce=>this[ce].enabled).some(ce=>!0===ce)&&this.tiff.enabled}checkLoadedPlugins(){for(let ce of _n)this[ce].enabled&&!Ce.has(ce)&&Fe("segment parser",ce)}}function ge(ft,ce){let Se,ut,Kt,mn,Un=[];for(Kt of ce){for(mn of(Se=Pe.get(Kt),ut=[],Se))(ft.includes(mn[0])||ft.includes(mn[1]))&&ut.push(mn[0]);ut.length&&Un.push([Kt,ut])}return Un}function Qe(ft,ce){return void 0!==ft?ft:void 0!==ce?ce:void 0}function qe(ft,ce){for(let Se of ce)ft.add(Se)}me(Z,"default",Et);class ct{constructor(ce){me(this,"parsers",{}),me(this,"output",{}),me(this,"errors",[]),me(this,"pushToErrors",Se=>this.errors.push(Se)),this.options=Z.useCached(ce)}read(ce){var Se=this;return(0,K.Z)(function*(){Se.file=yield function dt(ft,ce){return"string"==typeof ft?Mt(ft,ce):$&&!j&&ft instanceof HTMLImageElement?Mt(ft.src,ce):ft instanceof Uint8Array||ft instanceof ArrayBuffer||ft instanceof DataView?new Zt(ft):$&&ft instanceof Blob?Xt(ft,ce,"blob",bt):void Ee("Invalid input argument")}(ce,Se.options)})()}setup(){if(this.fileParser)return;let{file:ce}=this,Se=ce.getUint16(0);for(let[ut,Kt]of ie)if(Kt.canHandle(ce,Se))return this.fileParser=new Kt(this.options,this.file,this.parsers),ce[ut]=!0;this.file.close&&this.file.close(),Ee("Unknown file format")}parse(){var ce=this;return(0,K.Z)(function*(){let{output:Se,errors:ut}=ce;return ce.setup(),ce.options.silentErrors?(yield ce.executeParsers().catch(ce.pushToErrors),ut.push(...ce.fileParser.errors)):yield ce.executeParsers(),ce.file.close&&ce.file.close(),ce.options.silentErrors&&ut.length>0&&(Se.errors=ut),q(Se)})()}executeParsers(){var ce=this;return(0,K.Z)(function*(){let{output:Se}=ce;yield ce.fileParser.parse();let ut=Object.values(ce.parsers).map(function(){var Kt=(0,K.Z)(function*(mn){let Un=yield mn.parse();mn.assignToOutput(Se,Un)});return function(mn){return Kt.apply(this,arguments)}}());ce.options.silentErrors&&(ut=ut.map(Kt=>Kt.catch(ce.pushToErrors))),yield Promise.all(ut)})()}extractThumbnail(){var ce=this;return(0,K.Z)(function*(){ce.setup();let{options:Se,file:ut}=ce,Kt=Ce.get("tiff",Se);var mn;if(ut.tiff?mn={start:0,type:"tiff"}:ut.jpeg&&(mn=yield ce.fileParser.getOrFindSegment("tiff")),void 0===mn)return;let Un=yield ce.fileParser.ensureSegmentChunk(mn),qn=ce.parsers.tiff=new Kt(Un,Se,ut),ci=yield qn.extractThumbnail();return ut.close&&ut.close(),ci})()}}function Yt(ft,ce){return it.apply(this,arguments)}function it(){return(it=(0,K.Z)(function*(ft,ce){let Se=new ct(ce);return yield Se.read(ft),Se.parse()})).apply(this,arguments)}var Be=Object.freeze({__proto__:null,parse:Yt,Exifr:ct,fileParsers:ie,segmentParsers:Ce,fileReaders:Ie,tagKeys:Pe,tagValues:Ve,tagRevivers:mt,createDictionary:$e,extendDictionary:Xe,fetchUrlAsArrayBuffer:zt,readBlobAsArrayBuffer:bt,chunkedProps:It,otherSegments:xn,segments:_n,tiffBlocks:Jt,segmentsAndBlocks:ke,tiffExtractables:Ae,inheritables:ze,allFormatters:pt,Options:Z});class gt{constructor(ce,Se,ut){var Kt=this;me(this,"errors",[]),me(this,"ensureSegmentChunk",function(){var mn=(0,K.Z)(function*(Un){let qn=Un.start,ci=Un.size||65536;if(Kt.file.chunked)if(Kt.file.available(qn,ci))Un.chunk=Kt.file.subarray(qn,ci);else try{Un.chunk=yield Kt.file.readChunk(qn,ci)}catch(hi){Ee(`Couldn't read segment: ${JSON.stringify(Un)}. ${hi.message}`)}else Kt.file.byteLength>qn+ci?Un.chunk=Kt.file.subarray(qn,ci):void 0===Un.size?Un.chunk=Kt.file.subarray(qn):Ee("Segment unreachable: "+JSON.stringify(Un));return Un.chunk});return function(Un){return mn.apply(this,arguments)}}()),this.extendOptions&&this.extendOptions(ce),this.options=ce,this.file=Se,this.parsers=ut}injectSegment(ce,Se){this.options[ce].enabled&&this.createParser(ce,Se)}createParser(ce,Se){let ut=new(Ce.get(ce))(Se,this.options,this.file);return this.parsers[ce]=ut}createParsers(ce){for(let Se of ce){let{type:ut,chunk:Kt}=Se,mn=this.options[ut];if(mn&&mn.enabled){let Un=this.parsers[ut];Un&&Un.append||Un||this.createParser(ut,Kt)}}}readSegments(ce){var Se=this;return(0,K.Z)(function*(){let ut=ce.map(Se.ensureSegmentChunk);yield Promise.all(ut)})()}}class ue{static findPosition(ce,Se){let ut=ce.getUint16(Se+2)+2,Kt="function"==typeof this.headerLength?this.headerLength(ce,Se,ut):this.headerLength,mn=Se+Kt,Un=ut-Kt;return{offset:Se,length:ut,headerLength:Kt,start:mn,size:Un,end:mn+Un}}static parse(ce,Se={}){return new this(ce,new Z({[this.type]:Se}),ce).parse()}normalizeInput(ce){return ce instanceof Zt?ce:new Zt(ce)}constructor(ce,Se={},ut){me(this,"errors",[]),me(this,"raw",new Map),me(this,"handleError",Kt=>{if(!this.options.silentErrors)throw Kt;this.errors.push(Kt.message)}),this.chunk=this.normalizeInput(ce),this.file=ut,this.type=this.constructor.type,this.globalOptions=this.options=Se,this.localOptions=Se[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(ce,Se){let ut=mt.get(Se),Kt=Ve.get(Se),mn=Pe.get(Se),Un=this.options[Se],qn=Un.reviveValues&&!!ut,ci=Un.translateValues&&!!Kt,hi=Un.translateKeys&&!!mn,Ai={};for(let[zi,Yi]of ce)qn&&ut.has(zi)?Yi=ut.get(zi)(Yi):ci&&Kt.has(zi)&&(Yi=this.translateValue(Yi,Kt.get(zi))),hi&&mn.has(zi)&&(zi=mn.get(zi)||zi),Ai[zi]=Yi;return Ai}translateValue(ce,Se){return Se[ce]||Se.DEFAULT||ce}assignToOutput(ce,Se){this.assignObjectToOutput(ce,this.constructor.type,Se)}assignObjectToOutput(ce,Se,ut){if(this.globalOptions.mergeOutput)return Object.assign(ce,ut);ce[Se]?Object.assign(ce[Se],ut):ce[Se]=ut}}function Ge(ft){return 192===ft||194===ft||196===ft||219===ft||221===ft||218===ft||254===ft}function De(ft,ce,Se){for(let[ut,Kt]of Ce)if(Kt.canHandle(ft,ce,Se))return ut}me(ue,"headerLength",4),me(ue,"type",void 0),me(ue,"multiSegment",!1),me(ue,"canHandle",()=>!1);class Ot extends gt{constructor(...ce){super(...ce),me(this,"appSegments",[]),me(this,"jpegSegments",[]),me(this,"unknownSegments",[])}static canHandle(ce,Se){return 65496===Se}parse(){var ce=this;return(0,K.Z)(function*(){yield ce.findAppSegments(),yield ce.readSegments(ce.appSegments),ce.mergeMultiSegments(),ce.createParsers(ce.mergedAppSegments||ce.appSegments)})()}setupSegmentFinderArgs(ce){!0===ce?(this.findAll=!0,this.wanted=new Set(Ce.keyList())):(ce=void 0===ce?Ce.keyList().filter(Se=>this.options[Se].enabled):ce.filter(Se=>this.options[Se].enabled&&Ce.has(Se)),this.findAll=!1,this.remaining=new Set(ce),this.wanted=new Set(ce)),this.unfinishedMultiSegment=!1}findAppSegments(ce=0,Se){var ut=this;return(0,K.Z)(function*(){ut.setupSegmentFinderArgs(Se);let{file:Kt,findAll:mn,wanted:Un,remaining:qn}=ut;if(!mn&&ut.file.chunked&&(mn=Array.from(Un).some(ci=>Ce.get(ci).multiSegment&&ut.options[ci].multiSegment),mn&&(yield ut.file.readWhole())),ce=ut.findAppSegmentsInRange(ce,Kt.byteLength),!ut.options.onlyTiff&&Kt.chunked){let ci=!1;for(;qn.size>0&&!ci&&(Kt.canReadNextChunk||ut.unfinishedMultiSegment);){let{nextChunkOffset:hi}=Kt,Ai=ut.appSegments.some(zi=>!ut.file.available(zi.offset||zi.start,zi.length||zi.size));if(ci=ce>hi&&!Ai?!(yield Kt.readNextChunk(ce)):!(yield Kt.readNextChunk(hi)),void 0===(ce=ut.findAppSegmentsInRange(ce,Kt.byteLength)))return}}})()}findAppSegmentsInRange(ce,Se){Se-=2;let ut,Kt,mn,Un,qn,ci,{file:hi,findAll:Ai,wanted:zi,remaining:Yi,options:tr}=this;for(;ce<Se;ce++)if(255===hi.getUint8(ce))if(ut=hi.getUint8(ce+1),(ft=ut)>=224&&ft<=239){if(Kt=hi.getUint16(ce+2),mn=De(hi,ce,Kt),mn&&zi.has(mn)&&(Un=Ce.get(mn),qn=Un.findPosition(hi,ce),ci=tr[mn],qn.type=mn,this.appSegments.push(qn),!Ai&&(Un.multiSegment&&ci.multiSegment?(this.unfinishedMultiSegment=qn.chunkNumber<qn.chunkCount,this.unfinishedMultiSegment||Yi.delete(mn)):Yi.delete(mn),0===Yi.size)))break;tr.recordUnknownSegments&&(qn=ue.findPosition(hi,ce),qn.marker=ut,this.unknownSegments.push(qn)),ce+=Kt+1}else if(Ge(ut)){if(Kt=hi.getUint16(ce+2),218===ut&&!1!==tr.stopAfterSos)return;tr.recordJpegSegments&&this.jpegSegments.push({offset:ce,length:Kt,marker:ut}),ce+=Kt+1}var ft;return ce}mergeMultiSegments(){if(!this.appSegments.some(Se=>Se.multiSegment))return;let ce=function(Se,ut){let Kt,mn,Un,qn=new Map;for(let ci=0;ci<Se.length;ci++)Kt=Se[ci],mn=Kt.type,qn.has(mn)?Un=qn.get(mn):qn.set(mn,Un=[]),Un.push(Kt);return Array.from(qn)}(this.appSegments);this.mergedAppSegments=ce.map(([Se,ut])=>{let Kt=Ce.get(Se,this.options);return Kt.handleMultiSegments?{type:Se,chunk:Kt.handleMultiSegments(ut)}:ut[0]})}getSegment(ce){return this.appSegments.find(Se=>Se.type===ce)}getOrFindSegment(ce){var Se=this;return(0,K.Z)(function*(){let ut=Se.getSegment(ce);return void 0===ut&&(yield Se.findAppSegments(0,[ce]),ut=Se.getSegment(ce)),ut})()}}me(Ot,"type","jpeg"),ie.set("jpeg",Ot);const cn=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class Gn extends ue{parseHeader(){var ce=this.chunk.getUint16();18761===ce?this.le=!0:19789===ce&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(ce,Se,ut=new Map){let{pick:Kt,skip:mn}=this.options[Se];Kt=new Set(Kt);let Un=Kt.size>0,qn=0===mn.size,ci=this.chunk.getUint16(ce);ce+=2;for(let hi=0;hi<ci;hi++){let Ai=this.chunk.getUint16(ce);if(Un){if(Kt.has(Ai)&&(ut.set(Ai,this.parseTag(ce,Ai,Se)),Kt.delete(Ai),0===Kt.size))break}else!qn&&mn.has(Ai)||ut.set(Ai,this.parseTag(ce,Ai,Se));ce+=12}return ut}parseTag(ce,Se,ut){let{chunk:Kt}=this,mn=Kt.getUint16(ce+2),Un=Kt.getUint32(ce+4),qn=cn[mn];if(qn*Un<=4?ce+=8:ce=Kt.getUint32(ce+8),(mn<1||mn>13)&&Ee(`Invalid TIFF value type. block: ${ut.toUpperCase()}, tag: ${Se.toString(16)}, type: ${mn}, offset ${ce}`),ce>Kt.byteLength&&Ee(`Invalid TIFF value offset. block: ${ut.toUpperCase()}, tag: ${Se.toString(16)}, type: ${mn}, offset ${ce} is outside of chunk size ${Kt.byteLength}`),1===mn)return Kt.getUint8Array(ce,Un);if(2===mn)return Ye(Kt.getString(ce,Un));if(7===mn)return Kt.getUint8Array(ce,Un);if(1===Un)return this.parseTagValue(mn,ce);{let ci=new(function(Ai){switch(Ai){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(mn))(Un),hi=qn;for(let Ai=0;Ai<Un;Ai++)ci[Ai]=this.parseTagValue(mn,ce),ce+=hi;return ci}}parseTagValue(ce,Se){let{chunk:ut}=this;switch(ce){case 1:return ut.getUint8(Se);case 3:return ut.getUint16(Se);case 4:case 13:return ut.getUint32(Se);case 5:return ut.getUint32(Se)/ut.getUint32(Se+4);case 6:return ut.getInt8(Se);case 8:return ut.getInt16(Se);case 9:return ut.getInt32(Se);case 10:return ut.getInt32(Se)/ut.getInt32(Se+4);case 11:return ut.getFloat(Se);case 12:return ut.getDouble(Se);default:Ee(`Invalid tiff type ${ce}`)}}}class _i extends Gn{static canHandle(ce,Se){return 225===ce.getUint8(Se+1)&&1165519206===ce.getUint32(Se+4)&&0===ce.getUint16(Se+8)}parse(){var ce=this;return(0,K.Z)(function*(){ce.parseHeader();let{options:Se}=ce;return Se.ifd0.enabled&&(yield ce.parseIfd0Block()),Se.exif.enabled&&(yield ce.safeParse("parseExifBlock")),Se.gps.enabled&&(yield ce.safeParse("parseGpsBlock")),Se.interop.enabled&&(yield ce.safeParse("parseInteropBlock")),Se.ifd1.enabled&&(yield ce.safeParse("parseThumbnailBlock")),ce.createOutput()})()}safeParse(ce){let Se=this[ce]();return void 0!==Se.catch&&(Se=Se.catch(this.handleError)),Se}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let ce=this.chunk.getUint16(this.ifd0Offset);this.ifd1Offset=this.chunk.getUint32(this.ifd0Offset+2+12*ce)}}parseBlock(ce,Se){let ut=new Map;return this[Se]=ut,this.parseTags(ce,Se,ut),ut}parseIfd0Block(){var ce=this;return(0,K.Z)(function*(){if(ce.ifd0)return;let{file:Se}=ce;ce.findIfd0Offset(),ce.ifd0Offset<8&&Ee("Malformed EXIF data"),!Se.chunked&&ce.ifd0Offset>Se.byteLength&&Ee(`IFD0 offset points to outside of file.\nthis.ifd0Offset: ${ce.ifd0Offset}, file.byteLength: ${Se.byteLength}`),Se.tiff&&(yield Se.ensureChunk(ce.ifd0Offset,wt(ce.options)));let ut=ce.parseBlock(ce.ifd0Offset,"ifd0");return 0!==ut.size?(ce.exifOffset=ut.get(34665),ce.interopOffset=ut.get(40965),ce.gpsOffset=ut.get(34853),ce.xmp=ut.get(700),ce.iptc=ut.get(33723),ce.icc=ut.get(34675),ce.options.sanitize&&(ut.delete(34665),ut.delete(40965),ut.delete(34853),ut.delete(700),ut.delete(33723),ut.delete(34675)),ut):void 0})()}parseExifBlock(){var ce=this;return(0,K.Z)(function*(){if(ce.exif||(ce.ifd0||(yield ce.parseIfd0Block()),void 0===ce.exifOffset))return;ce.file.tiff&&(yield ce.file.ensureChunk(ce.exifOffset,wt(ce.options)));let Se=ce.parseBlock(ce.exifOffset,"exif");return ce.interopOffset||(ce.interopOffset=Se.get(40965)),ce.makerNote=Se.get(37500),ce.userComment=Se.get(37510),ce.options.sanitize&&(Se.delete(40965),Se.delete(37500),Se.delete(37510)),ce.unpack(Se,41728),ce.unpack(Se,41729),Se})()}unpack(ce,Se){let ut=ce.get(Se);ut&&1===ut.length&&ce.set(Se,ut[0])}parseGpsBlock(){var ce=this;return(0,K.Z)(function*(){if(ce.gps||(ce.ifd0||(yield ce.parseIfd0Block()),void 0===ce.gpsOffset))return;let Se=ce.parseBlock(ce.gpsOffset,"gps");return Se&&Se.has(2)&&Se.has(4)&&(Se.set("latitude",Ni(...Se.get(2),Se.get(1))),Se.set("longitude",Ni(...Se.get(4),Se.get(3)))),Se})()}parseInteropBlock(){var ce=this;return(0,K.Z)(function*(){if(!ce.interop&&(ce.ifd0||(yield ce.parseIfd0Block()),void 0!==ce.interopOffset||ce.exif||(yield ce.parseExifBlock()),void 0!==ce.interopOffset))return ce.parseBlock(ce.interopOffset,"interop")})()}parseThumbnailBlock(ce=!1){var Se=this;return(0,K.Z)(function*(){if(!Se.ifd1&&!Se.ifd1Parsed&&(!Se.options.mergeOutput||ce))return Se.findIfd1Offset(),Se.ifd1Offset>0&&(Se.parseBlock(Se.ifd1Offset,"ifd1"),Se.ifd1Parsed=!0),Se.ifd1})()}extractThumbnail(){var ce=this;return(0,K.Z)(function*(){if(ce.headerParsed||ce.parseHeader(),ce.ifd1Parsed||(yield ce.parseThumbnailBlock(!0)),void 0===ce.ifd1)return;let Se=ce.ifd1.get(513),ut=ce.ifd1.get(514);return ce.chunk.getUint8Array(Se,ut)})()}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let ce,Se,ut,Kt={};for(Se of Jt)if(ce=this[Se],!ve(ce))if(ut=this.canTranslate?this.translateBlock(ce,Se):Object.fromEntries(ce),this.options.mergeOutput){if("ifd1"===Se)continue;Object.assign(Kt,ut)}else Kt[Se]=ut;return this.makerNote&&(Kt.makerNote=this.makerNote),this.userComment&&(Kt.userComment=this.userComment),Kt}assignToOutput(ce,Se){if(this.globalOptions.mergeOutput)Object.assign(ce,Se);else for(let[ut,Kt]of Object.entries(Se))this.assignObjectToOutput(ce,ut,Kt)}}function Ni(ft,ce,Se,ut){var Kt=ft+ce/60+Se/3600;return"S"!==ut&&"W"!==ut||(Kt*=-1),Kt}me(_i,"type","tiff"),me(_i,"headerLength",10),Ce.set("tiff",_i);var Nn=Object.freeze({__proto__:null,default:Be,Exifr:ct,fileParsers:ie,segmentParsers:Ce,fileReaders:Ie,tagKeys:Pe,tagValues:Ve,tagRevivers:mt,createDictionary:$e,extendDictionary:Xe,fetchUrlAsArrayBuffer:zt,readBlobAsArrayBuffer:bt,chunkedProps:It,otherSegments:xn,segments:_n,tiffBlocks:Jt,segmentsAndBlocks:ke,tiffExtractables:Ae,inheritables:ze,allFormatters:pt,Options:Z,parse:Yt});const Mn={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},On=Object.assign({},Mn,{firstChunkSize:4e4,gps:[1,2,3,4]});function Qn(ft){return Ti.apply(this,arguments)}function Ti(){return(Ti=(0,K.Z)(function*(ft){let ce=new ct(On);yield ce.read(ft);let Se=yield ce.parse();if(Se&&Se.gps){let{latitude:ut,longitude:Kt}=Se.gps;return{latitude:ut,longitude:Kt}}})).apply(this,arguments)}const Si=Object.assign({},Mn,{tiff:!1,ifd1:!0,mergeOutput:!1});function un(ft){return rn.apply(this,arguments)}function rn(){return(rn=(0,K.Z)(function*(ft){let ce=new ct(Si);yield ce.read(ft);let Se=yield ce.extractThumbnail();return Se&&T?U.from(Se):Se})).apply(this,arguments)}function $t(ft){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,K.Z)(function*(ft){let ce=yield this.thumbnail(ft);if(void 0!==ce){let Se=new Blob([ce]);return URL.createObjectURL(Se)}})).apply(this,arguments)}const Rn=Object.assign({},Mn,{firstChunkSize:4e4,ifd0:[274]});function Wn(ft){return ji.apply(this,arguments)}function ji(){return(ji=(0,K.Z)(function*(ft){let ce=new ct(Rn);yield ce.read(ft);let Se=yield ce.parse();if(Se&&Se.ifd0)return Se.ifd0[274]})).apply(this,arguments)}const ir=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});let dr=!0,Ln=!0;if("object"==typeof navigator){let ft=navigator.userAgent;if(ft.includes("iPad")||ft.includes("iPhone")){let ce=ft.match(/OS (\d+)_(\d+)/);if(ce){let[,Se,ut]=ce;dr=Number(Se)+.1*Number(ut)<13.4,Ln=!1}}else if(ft.includes("OS X 10")){let[,ce]=ft.match(/OS X 10[_.](\d+)/);dr=Ln=Number(ce)<15}if(ft.includes("Chrome/")){let[,ce]=ft.match(/Chrome\/(\d+)/);dr=Ln=Number(ce)<81}else if(ft.includes("Firefox/")){let[,ce]=ft.match(/Firefox\/(\d+)/);dr=Ln=Number(ce)<77}}function Vn(ft){return Le.apply(this,arguments)}function Le(){return(Le=(0,K.Z)(function*(ft){let ce=yield Wn(ft);return Object.assign({canvas:dr,css:Ln},ir[ce])})).apply(this,arguments)}class Ft extends Zt{constructor(...ce){super(...ce),me(this,"ranges",new dn),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(ce,Se,ut){if(0===ce&&0===this.byteLength&&ut){let Kt=new DataView(ut.buffer||ut,ut.byteOffset,ut.byteLength);this._swapDataView(Kt)}else{let Kt=ce+Se;if(Kt>this.byteLength){let{dataView:mn}=this._extend(Kt);this._swapDataView(mn)}}}_extend(ce){let Se;Se=T?U.allocUnsafe(ce):new Uint8Array(ce);let ut=new DataView(Se.buffer,Se.byteOffset,Se.byteLength);return Se.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:Se,dataView:ut}}subarray(ce,Se,ut=!1){return Se=Se||this._lengthToEnd(ce),ut&&this._tryExtend(ce,Se),this.ranges.add(ce,Se),super.subarray(ce,Se)}set(ce,Se,ut=!1){ut&&this._tryExtend(Se,ce.byteLength,ce);let Kt=super.set(ce,Se);return this.ranges.add(Se,Kt.byteLength),Kt}ensureChunk(ce,Se){var ut=this;return(0,K.Z)(function*(){ut.chunked&&(ut.ranges.available(ce,Se)||(yield ut.readChunk(ce,Se)))})()}available(ce,Se){return this.ranges.available(ce,Se)}}class dn{constructor(){me(this,"list",[])}get length(){return this.list.length}add(ce,Se,ut=0){let Kt=ce+Se,mn=this.list.filter(Un=>En(ce,Un.offset,Kt)||En(ce,Un.end,Kt));if(mn.length>0){ce=Math.min(ce,...mn.map(qn=>qn.offset)),Kt=Math.max(Kt,...mn.map(qn=>qn.end)),Se=Kt-ce;let Un=mn.shift();Un.offset=ce,Un.length=Se,Un.end=Kt,this.list=this.list.filter(qn=>!mn.includes(qn))}else this.list.push({offset:ce,length:Se,end:Kt})}available(ce,Se){let ut=ce+Se;return this.list.some(Kt=>Kt.offset<=ce&&ut<=Kt.end)}}function En(ft,ce,Se){return ft<=ce&&ce<=Se}class gi extends Ft{constructor(ce,Se){super(0),me(this,"chunksRead",0),this.input=ce,this.options=Se}readWhole(){var ce=this;return(0,K.Z)(function*(){ce.chunked=!1,yield ce.readChunk(ce.nextChunkOffset)})()}readChunked(){var ce=this;return(0,K.Z)(function*(){ce.chunked=!0,yield ce.readChunk(0,ce.options.firstChunkSize)})()}readNextChunk(ce=this.nextChunkOffset){var Se=this;return(0,K.Z)(function*(){if(Se.fullyRead)return Se.chunksRead++,!1;let ut=Se.options.chunkSize,Kt=yield Se.readChunk(ce,ut);return!!Kt&&Kt.byteLength===ut})()}readChunk(ce,Se){var ut=this;return(0,K.Z)(function*(){if(ut.chunksRead++,0!==(Se=ut.safeWrapAddress(ce,Se)))return ut._readChunk(ce,Se)})()}safeWrapAddress(ce,Se){return void 0!==this.size&&ce+Se>this.size?Math.max(0,this.size-ce):Se}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}Ie.set("blob",class extends gi{readWhole(){var ft=this;return(0,K.Z)(function*(){ft.chunked=!1;let ce=yield bt(ft.input);ft._swapArrayBuffer(ce)})()}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}_readChunk(ft,ce){var Se=this;return(0,K.Z)(function*(){let Kt=Se.input.slice(ft,ce?ft+ce:void 0),mn=yield bt(Kt);return Se.set(mn,ft,!0)})()}});var $i=Object.freeze({__proto__:null,default:Nn,Exifr:ct,fileParsers:ie,segmentParsers:Ce,fileReaders:Ie,tagKeys:Pe,tagValues:Ve,tagRevivers:mt,createDictionary:$e,extendDictionary:Xe,fetchUrlAsArrayBuffer:zt,readBlobAsArrayBuffer:bt,chunkedProps:It,otherSegments:xn,segments:_n,tiffBlocks:Jt,segmentsAndBlocks:ke,tiffExtractables:Ae,inheritables:ze,allFormatters:pt,Options:Z,parse:Yt,gpsOnlyOptions:On,gps:Qn,thumbnailOnlyOptions:Si,thumbnail:un,thumbnailUrl:$t,orientationOnlyOptions:Rn,orientation:Wn,rotations:ir,get rotateCanvas(){return dr},get rotateCss(){return Ln},rotation:Vn});Ie.set("url",class extends gi{readWhole(){var ft=this;return(0,K.Z)(function*(){ft.chunked=!1;let ce=yield zt(ft.input);ce instanceof ArrayBuffer?ft._swapArrayBuffer(ce):ce instanceof Uint8Array&&ft._swapBuffer(ce)})()}_readChunk(ft,ce){var Se=this;return(0,K.Z)(function*(){let ut=ce?ft+ce-1:void 0,Kt=Se.options.httpHeaders||{};(ft||ut)&&(Kt.range=`bytes=${[ft,ut].join("-")}`);let mn=yield pe(Se.input,{headers:Kt}),Un=yield mn.arrayBuffer(),qn=Un.byteLength;if(416!==mn.status)return qn!==ce&&(Se.size=ft+qn),Se.set(Un,ft,!0)})()}}),Zt.prototype.getUint64=function(ft){let ce=this.getUint32(ft),Se=this.getUint32(ft+4);return ce<1048575?ce<<32|Se:void 0!==typeof le?(console.warn("Using BigInt because of type 64uint but JS can only handle 53b numbers."),le(ce)<<le(32)|le(Se)):void Ee("Trying to read 64b value but JS can only handle 53b numbers.")};class fr extends gt{parseBoxes(ce=0){let Se=[];for(;ce<this.file.byteLength-4;){let ut=this.parseBoxHead(ce);if(Se.push(ut),0===ut.length)break;ce+=ut.length}return Se}parseSubBoxes(ce){ce.boxes=this.parseBoxes(ce.start)}findBox(ce,Se){return void 0===ce.boxes&&this.parseSubBoxes(ce),ce.boxes.find(ut=>ut.kind===Se)}parseBoxHead(ce){let Se=this.file.getUint32(ce),ut=this.file.getString(ce+4,4),Kt=ce+8;return 1===Se&&(Se=this.file.getUint64(ce+8),Kt+=8),{offset:ce,length:Se,kind:ut,start:Kt}}parseBoxFullHead(ce){if(void 0!==ce.version)return;let Se=this.file.getUint32(ce.start);ce.version=Se>>24,ce.start+=4}}class Mr extends fr{static canHandle(ce,Se){if(0!==Se)return!1;let ut=ce.getUint16(2);if(ut>50)return!1;let Kt=16,mn=[];for(;Kt<ut;)mn.push(ce.getString(Kt,4)),Kt+=4;return mn.includes(this.type)}parse(){var ce=this;return(0,K.Z)(function*(){let Se=ce.file.getUint32(0),ut=ce.parseBoxHead(Se);for(;"meta"!==ut.kind;)Se+=ut.length,yield ce.file.ensureChunk(Se,16),ut=ce.parseBoxHead(Se);yield ce.file.ensureChunk(ut.offset,ut.length),ce.parseBoxFullHead(ut),ce.parseSubBoxes(ut),ce.options.icc.enabled&&(yield ce.findIcc(ut)),ce.options.tiff.enabled&&(yield ce.findExif(ut))})()}registerSegment(ce,Se,ut){var Kt=this;return(0,K.Z)(function*(){yield Kt.file.ensureChunk(Se,ut);let mn=Kt.file.subarray(Se,ut);Kt.createParser(ce,mn)})()}findIcc(ce){var Se=this;return(0,K.Z)(function*(){let ut=Se.findBox(ce,"iprp");if(void 0===ut)return;let Kt=Se.findBox(ut,"ipco");if(void 0===Kt)return;let mn=Se.findBox(Kt,"colr");void 0!==mn&&(yield Se.registerSegment("icc",mn.offset+12,mn.length))})()}findExif(ce){var Se=this;return(0,K.Z)(function*(){let ut=Se.findBox(ce,"iinf");if(void 0===ut)return;let Kt=Se.findBox(ce,"iloc");if(void 0===Kt)return;let mn=Se.findExifLocIdInIinf(ut),Un=Se.findExtentInIloc(Kt,mn);if(void 0===Un)return;let[qn,ci]=Un;yield Se.file.ensureChunk(qn,ci);let hi=4+Se.file.getUint32(qn);qn+=hi,ci-=hi,yield Se.registerSegment("tiff",qn,ci)})()}findExifLocIdInIinf(ce){this.parseBoxFullHead(ce);let Se,ut,Kt,mn,Un=ce.start,qn=this.file.getUint16(Un);for(Un+=2;qn--;){if(Se=this.parseBoxHead(Un),this.parseBoxFullHead(Se),ut=Se.start,Se.version>=2&&(Kt=3===Se.version?4:2,mn=this.file.getString(ut+Kt+2,4),"Exif"===mn))return this.file.getUintBytes(ut,Kt);Un+=Se.length}}get8bits(ce){let Se=this.file.getUint8(ce);return[Se>>4,15&Se]}findExtentInIloc(ce,Se){this.parseBoxFullHead(ce);let ut=ce.start,[Kt,mn]=this.get8bits(ut++),[Un,qn]=this.get8bits(ut++),ci=2===ce.version?4:2,hi=1===ce.version||2===ce.version?2:0,Ai=qn+Kt+mn,zi=2===ce.version?4:2,Yi=this.file.getUintBytes(ut,zi);for(ut+=zi;Yi--;){let tr=this.file.getUintBytes(ut,ci);ut+=ci+hi+2+Un;let Lr=this.file.getUint16(ut);if(ut+=2,tr===Se)return Lr>1&&console.warn("ILOC box has more than one extent but we're only processing one\nPlease create an issue at https://github.com/MikeKovarik/exifr with this file"),[this.file.getUintBytes(ut+qn,Kt),this.file.getUintBytes(ut+qn+Kt,mn)];ut+=Lr*Ai}}}class ti extends Mr{}me(ti,"type","heic");class Kn extends Mr{}me(Kn,"type","avif"),ie.set("heic",ti),ie.set("avif",Kn),$e(Pe,["ifd0","ifd1"],[[256,"ImageWidth"],[257,"ImageHeight"],[258,"BitsPerSample"],[259,"Compression"],[262,"PhotometricInterpretation"],[270,"ImageDescription"],[271,"Make"],[272,"Model"],[273,"StripOffsets"],[274,"Orientation"],[277,"SamplesPerPixel"],[278,"RowsPerStrip"],[279,"StripByteCounts"],[282,"XResolution"],[283,"YResolution"],[284,"PlanarConfiguration"],[296,"ResolutionUnit"],[301,"TransferFunction"],[305,"Software"],[306,"ModifyDate"],[315,"Artist"],[316,"HostComputer"],[317,"Predictor"],[318,"WhitePoint"],[319,"PrimaryChromaticities"],[513,"ThumbnailOffset"],[514,"ThumbnailLength"],[529,"YCbCrCoefficients"],[530,"YCbCrSubSampling"],[531,"YCbCrPositioning"],[532,"ReferenceBlackWhite"],[700,"ApplicationNotes"],[33432,"Copyright"],[33723,"IPTC"],[34665,"ExifIFD"],[34675,"ICC"],[34853,"GpsIFD"],[330,"SubIFD"],[40965,"InteropIFD"],[40091,"XPTitle"],[40092,"XPComment"],[40093,"XPAuthor"],[40094,"XPKeywords"],[40095,"XPSubject"]]),$e(Pe,"exif",[[33434,"ExposureTime"],[33437,"FNumber"],[34850,"ExposureProgram"],[34852,"SpectralSensitivity"],[34855,"ISO"],[34858,"TimeZoneOffset"],[34859,"SelfTimerMode"],[34864,"SensitivityType"],[34865,"StandardOutputSensitivity"],[34866,"RecommendedExposureIndex"],[34867,"ISOSpeed"],[34868,"ISOSpeedLatitudeyyy"],[34869,"ISOSpeedLatitudezzz"],[36864,"ExifVersion"],[36867,"DateTimeOriginal"],[36868,"CreateDate"],[36873,"GooglePlusUploadCode"],[36880,"OffsetTime"],[36881,"OffsetTimeOriginal"],[36882,"OffsetTimeDigitized"],[37121,"ComponentsConfiguration"],[37122,"CompressedBitsPerPixel"],[37377,"ShutterSpeedValue"],[37378,"ApertureValue"],[37379,"BrightnessValue"],[37380,"ExposureCompensation"],[37381,"MaxApertureValue"],[37382,"SubjectDistance"],[37383,"MeteringMode"],[37384,"LightSource"],[37385,"Flash"],[37386,"FocalLength"],[37393,"ImageNumber"],[37394,"SecurityClassification"],[37395,"ImageHistory"],[37396,"SubjectArea"],[37500,"MakerNote"],[37510,"UserComment"],[37520,"SubSecTime"],[37521,"SubSecTimeOriginal"],[37522,"SubSecTimeDigitized"],[37888,"AmbientTemperature"],[37889,"Humidity"],[37890,"Pressure"],[37891,"WaterDepth"],[37892,"Acceleration"],[37893,"CameraElevationAngle"],[40960,"FlashpixVersion"],[40961,"ColorSpace"],[40962,"ExifImageWidth"],[40963,"ExifImageHeight"],[40964,"RelatedSoundFile"],[41483,"FlashEnergy"],[41486,"FocalPlaneXResolution"],[41487,"FocalPlaneYResolution"],[41488,"FocalPlaneResolutionUnit"],[41492,"SubjectLocation"],[41493,"ExposureIndex"],[41495,"SensingMethod"],[41728,"FileSource"],[41729,"SceneType"],[41730,"CFAPattern"],[41985,"CustomRendered"],[41986,"ExposureMode"],[41987,"WhiteBalance"],[41988,"DigitalZoomRatio"],[41989,"FocalLengthIn35mmFormat"],[41990,"SceneCaptureType"],[41991,"GainControl"],[41992,"Contrast"],[41993,"Saturation"],[41994,"Sharpness"],[41996,"SubjectDistanceRange"],[42016,"ImageUniqueID"],[42032,"OwnerName"],[42033,"SerialNumber"],[42034,"LensInfo"],[42035,"LensMake"],[42036,"LensModel"],[42037,"LensSerialNumber"],[42080,"CompositeImage"],[42081,"CompositeImageCount"],[42082,"CompositeImageExposureTimes"],[42240,"Gamma"],[59932,"Padding"],[59933,"OffsetSchema"],[65e3,"OwnerName"],[65001,"SerialNumber"],[65002,"Lens"],[65100,"RawFile"],[65101,"Converter"],[65102,"WhiteBalance"],[65105,"Exposure"],[65106,"Shadows"],[65107,"Brightness"],[65108,"Contrast"],[65109,"Saturation"],[65110,"Sharpness"],[65111,"Smoothness"],[65112,"MoireFilter"],[40965,"InteropIFD"]]),$e(Pe,"gps",[[0,"GPSVersionID"],[1,"GPSLatitudeRef"],[2,"GPSLatitude"],[3,"GPSLongitudeRef"],[4,"GPSLongitude"],[5,"GPSAltitudeRef"],[6,"GPSAltitude"],[7,"GPSTimeStamp"],[8,"GPSSatellites"],[9,"GPSStatus"],[10,"GPSMeasureMode"],[11,"GPSDOP"],[12,"GPSSpeedRef"],[13,"GPSSpeed"],[14,"GPSTrackRef"],[15,"GPSTrack"],[16,"GPSImgDirectionRef"],[17,"GPSImgDirection"],[18,"GPSMapDatum"],[19,"GPSDestLatitudeRef"],[20,"GPSDestLatitude"],[21,"GPSDestLongitudeRef"],[22,"GPSDestLongitude"],[23,"GPSDestBearingRef"],[24,"GPSDestBearing"],[25,"GPSDestDistanceRef"],[26,"GPSDestDistance"],[27,"GPSProcessingMethod"],[28,"GPSAreaInformation"],[29,"GPSDateStamp"],[30,"GPSDifferential"],[31,"GPSHPositioningError"]]),$e(Ve,["ifd0","ifd1"],[[274,{1:"Horizontal (normal)",2:"Mirror horizontal",3:"Rotate 180",4:"Mirror vertical",5:"Mirror horizontal and rotate 270 CW",6:"Rotate 90 CW",7:"Mirror horizontal and rotate 90 CW",8:"Rotate 270 CW"}],[296,{1:"None",2:"inches",3:"cm"}]]);let on=$e(Ve,"exif",[[34850,{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"}],[37121,{0:"-",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}],[37383,{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"}],[37384,{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"}],[37385,{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"}],[41495,{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"}],[41728,{1:"Film Scanner",2:"Reflection Print Scanner",3:"Digital Camera"}],[41729,{1:"Directly photographed"}],[41985,{0:"Normal",1:"Custom",2:"HDR (no original saved)",3:"HDR (original saved)",4:"Original (for HDR)",6:"Panorama",7:"Portrait HDR",8:"Portrait"}],[41986,{0:"Auto",1:"Manual",2:"Auto bracket"}],[41987,{0:"Auto",1:"Manual"}],[41990,{0:"Standard",1:"Landscape",2:"Portrait",3:"Night",4:"Other"}],[41991,{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"}],[41996,{0:"Unknown",1:"Macro",2:"Close",3:"Distant"}],[42080,{0:"Unknown",1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"}]]);const he={1:"No absolute unit of measurement",2:"Inch",3:"Centimeter"};on.set(37392,he),on.set(41488,he);const et={0:"Normal",1:"Low",2:"High"};function tt(ft){return"object"==typeof ft&&void 0!==ft.length?ft[0]:ft}function nn(ft){let ce=Array.from(ft).slice(1);return ce[1]>15&&(ce=ce.map(Se=>String.fromCharCode(Se))),"0"!==ce[2]&&0!==ce[2]||ce.pop(),ce.join(".")}function zn(ft){if("string"==typeof ft){var[ce,Se,ut,Kt,mn,Un]=ft.trim().split(/[-: ]/g).map(Number),qn=new Date(ce,Se-1,ut);return Number.isNaN(Kt)||Number.isNaN(mn)||Number.isNaN(Un)||(qn.setHours(Kt),qn.setMinutes(mn),qn.setSeconds(Un)),Number.isNaN(+qn)?ft:qn}}function jt(ft){if("string"==typeof ft)return ft;let ce=[];if(0===ft[1]&&0===ft[ft.length-1])for(let Se=0;Se<ft.length;Se+=2)ce.push(Fn(ft[Se+1],ft[Se]));else for(let Se=0;Se<ft.length;Se+=2)ce.push(Fn(ft[Se],ft[Se+1]));return Ye(String.fromCodePoint(...ce))}function Fn(ft,ce){return ft<<8|ce}on.set(41992,et),on.set(41993,et),on.set(41994,et),$e(mt,["ifd0","ifd1"],[[50827,function(ft){return"string"!=typeof ft?nt(ft):ft}],[306,zn],[40091,jt],[40092,jt],[40093,jt],[40094,jt],[40095,jt]]),$e(mt,"exif",[[40960,nn],[36864,nn],[36867,zn],[36868,zn],[40962,tt],[40963,tt]]),$e(mt,"gps",[[0,ft=>Array.from(ft).join(".")],[7,ft=>Array.from(ft).join(":")]]);class jn extends ue{static canHandle(ce,Se){return 225===ce.getUint8(Se+1)&&1752462448===ce.getUint32(Se+4)&&"http://ns.adobe.com/"===ce.getString(Se+4,20)}static headerLength(ce,Se){return"http://ns.adobe.com/xmp/extension/"===ce.getString(Se+4,34)?79:33}static findPosition(ce,Se){let ut=super.findPosition(ce,Se);return ut.multiSegment=ut.extended=79===ut.headerLength,ut.multiSegment?(ut.chunkCount=ce.getUint8(Se+72),ut.chunkNumber=ce.getUint8(Se+76),0!==ce.getUint8(Se+77)&&ut.chunkNumber++):(ut.chunkCount=1/0,ut.chunkNumber=-1),ut}static handleMultiSegments(ce){return ce.map(Se=>Se.chunk.getString()).join("")}normalizeInput(ce){return"string"==typeof ce?ce:Zt.from(ce).getString()}parse(ce=this.chunk){if(!this.localOptions.parse)return ce;ce=function(mn){let Un={},qn={};for(let ci of pr)Un[ci]=[],qn[ci]=0;return mn.replace(fo,(ci,hi,Ai)=>{if("<"===hi){let zi=++qn[Ai];return Un[Ai].push(zi),`${ci}#${zi}`}return`${ci}#${Un[Ai].pop()}`})}(ce);let Se=vi.findAll(ce,"rdf","Description");0===Se.length&&Se.push(new vi("rdf","Description",void 0,ce));let ut,Kt={};for(let mn of Se)for(let Un of mn.properties)ut=Vi(Un.ns,Kt),Ii(Un,ut);return function(mn){let Un;for(let qn in mn)Un=mn[qn]=q(mn[qn]),void 0===Un&&delete mn[qn];return q(mn)}(Kt)}assignToOutput(ce,Se){if(this.localOptions.parse)for(let[ut,Kt]of Object.entries(Se))switch(ut){case"tiff":this.assignObjectToOutput(ce,"ifd0",Kt);break;case"exif":this.assignObjectToOutput(ce,"exif",Kt);break;case"xmlns":break;default:this.assignObjectToOutput(ce,ut,Kt)}else ce.xmp=Se}}me(jn,"type","xmp"),me(jn,"multiSegment",!0),Ce.set("xmp",jn);class ri{static findAll(ce){return kr(ce,/([a-zA-Z0-9-]+):([a-zA-Z0-9-]+)=("[^"]*"|'[^']*')/gm).map(ri.unpackMatch)}static unpackMatch(ce){let Se=ce[1],ut=ce[2],Kt=ce[3].slice(1,-1);return Kt=Er(Kt),new ri(Se,ut,Kt)}constructor(ce,Se,ut){this.ns=ce,this.name=Se,this.value=ut}serialize(){return this.value}}class vi{static findAll(ce,Se,ut){if(void 0!==Se||void 0!==ut){Se=Se||"[\\w\\d-]+",ut=ut||"[\\w\\d-]+";var Kt=new RegExp(`<(${Se}):(${ut})(#\\d+)?((\\s+?[\\w\\d-:]+=("[^"]*"|'[^']*'))*\\s*)(\\/>|>([\\s\\S]*?)<\\/\\1:\\2\\3>)`,"gm")}else Kt=/<([\w\d-]+):([\w\d-]+)(#\d+)?((\s+?[\w\d-:]+=("[^"]*"|'[^']*'))*\s*)(\/>|>([\s\S]*?)<\/\1:\2\3>)/gm;return kr(ce,Kt).map(vi.unpackMatch)}static unpackMatch(ce){return new vi(ce[1],ce[2],ce[4],ce[8])}constructor(ce,Se,ut,Kt){this.ns=ce,this.name=Se,this.attrString=ut,this.innerXml=Kt,this.attrs=ri.findAll(ut),this.children=vi.findAll(Kt),this.value=0===this.children.length?Er(Kt):void 0,this.properties=[...this.attrs,...this.children]}get isPrimitive(){return void 0!==this.value&&0===this.attrs.length&&0===this.children.length}get isListContainer(){return 1===this.children.length&&this.children[0].isList}get isList(){let{ns:ce,name:Se}=this;return"rdf"===ce&&("Seq"===Se||"Bag"===Se||"Alt"===Se)}get isListItem(){return"rdf"===this.ns&&"li"===this.name}serialize(){if(0===this.properties.length&&void 0===this.value)return;if(this.isPrimitive)return this.value;if(this.isListContainer)return this.children[0].serialize();if(this.isList)return Hi(this.children.map(cr));if(this.isListItem&&1===this.children.length&&0===this.attrs.length)return this.children[0].serialize();let ce={};for(let Se of this.properties)Ii(Se,ce);return void 0!==this.value&&(ce.value=this.value),q(ce)}}function Ii(ft,ce){let Se=ft.serialize();void 0!==Se&&(ce[ft.name]=Se)}var cr=ft=>ft.serialize(),Hi=ft=>1===ft.length?ft[0]:ft,Vi=(ft,ce)=>ce[ft]?ce[ft]:ce[ft]={};function kr(ft,ce){let Se,ut=[];if(!ft)return ut;for(;null!==(Se=ce.exec(ft));)ut.push(Se);return ut}function Er(ft){if(null==(ut=ft)||"null"===ut||"undefined"===ut||""===ut||""===ut.trim())return;var ut;let ce=Number(ft);if(!Number.isNaN(ce))return ce;let Se=ft.toLowerCase();return"true"===Se||"false"!==Se&&ft.trim()}const pr=["rdf:li","rdf:Seq","rdf:Bag","rdf:Alt","rdf:Description"],fo=new RegExp(`(<|\\/)(${pr.join("|")})`,"g");Object.freeze({__proto__:null,default:$i,Exifr:ct,fileParsers:ie,segmentParsers:Ce,fileReaders:Ie,tagKeys:Pe,tagValues:Ve,tagRevivers:mt,createDictionary:$e,extendDictionary:Xe,fetchUrlAsArrayBuffer:zt,readBlobAsArrayBuffer:bt,chunkedProps:It,otherSegments:xn,segments:_n,tiffBlocks:Jt,segmentsAndBlocks:ke,tiffExtractables:Ae,inheritables:ze,allFormatters:pt,Options:Z,parse:Yt,gpsOnlyOptions:On,gps:Qn,thumbnailOnlyOptions:Si,thumbnail:un,thumbnailUrl:$t,orientationOnlyOptions:Rn,orientation:Wn,rotations:ir,get rotateCanvas(){return dr},get rotateCss(){return Ln},rotation:Vn});let Di=N("fs",ft=>ft.promises);Ie.set("fs",class extends gi{readWhole(){var ft=this;return(0,K.Z)(function*(){ft.chunked=!1,ft.fs=yield Di;let ce=yield ft.fs.readFile(ft.input);ft._swapBuffer(ce)})()}readChunked(){var ft=this;return(0,K.Z)(function*(){ft.chunked=!0,ft.fs=yield Di,yield ft.open(),yield ft.readChunk(0,ft.options.firstChunkSize)})()}open(){var ft=this;return(0,K.Z)(function*(){void 0===ft.fh&&(ft.fh=yield ft.fs.open(ft.input,"r"),ft.size=(yield ft.fh.stat(ft.input)).size)})()}_readChunk(ft,ce){var Se=this;return(0,K.Z)(function*(){void 0===Se.fh&&(yield Se.open()),ft+ce>Se.size&&(ce=Se.size-ft);var ut=Se.subarray(ft,ce,!0);return yield Se.fh.read(ut.dataView,0,ce,ft),ut})()}close(){var ft=this;return(0,K.Z)(function*(){if(ft.fh){let ce=ft.fh;ft.fh=void 0,yield ce.close()}})()}}),Ie.set("base64",class extends gi{constructor(...ft){super(...ft),this.input=this.input.replace(/^data:([^;]+);base64,/gim,""),this.size=this.input.length/4*3,this.input.endsWith("==")?this.size-=2:this.input.endsWith("=")&&(this.size-=1)}_readChunk(ft,ce){var Se=this;return(0,K.Z)(function*(){let ut,Kt,mn=Se.input;void 0===ft?(ft=0,ut=0,Kt=0):(ut=4*Math.floor(ft/3),Kt=ft-ut/4*3),void 0===ce&&(ce=Se.size);let qn=ut+4*Math.ceil((ft+ce)/3);mn=mn.slice(ut,qn);let ci=Math.min(ce,Se.size-ft);if(T){let hi=U.from(mn,"base64").slice(Kt,Kt+ci);return Se.set(hi,ft,!0)}{let hi=Se.subarray(ft,ci,!0),Ai=atob(mn),zi=hi.toUint8();for(let Yi=0;Yi<ci;Yi++)zi[Yi]=Ai.charCodeAt(Kt+Yi);return hi}})()}});class Wi extends gt{static canHandle(ce,Se){return 18761===Se||19789===Se}extendOptions(ce){let{ifd0:Se,xmp:ut,iptc:Kt,icc:mn}=ce;ut.enabled&&Se.deps.add(700),Kt.enabled&&Se.deps.add(33723),mn.enabled&&Se.deps.add(34675),Se.finalizeFilters()}parse(){var ce=this;return(0,K.Z)(function*(){let{tiff:Se,xmp:ut,iptc:Kt,icc:mn}=ce.options;if(Se.enabled||ut.enabled||Kt.enabled||mn.enabled){let Un=Math.max(wt(ce.options),ce.options.chunkSize);yield ce.file.ensureChunk(0,Un),ce.createParser("tiff",ce.file),ce.parsers.tiff.parseHeader(),yield ce.parsers.tiff.parseIfd0Block(),ce.adaptTiffPropAsSegment("xmp"),ce.adaptTiffPropAsSegment("iptc"),ce.adaptTiffPropAsSegment("icc")}})()}adaptTiffPropAsSegment(ce){this.parsers.tiff[ce]&&this.injectSegment(ce,this.parsers.tiff[ce])}}me(Wi,"type","tiff"),ie.set("tiff",Wi);let Ar=N("zlib");const br=["ihdr","iccp","text","itxt","exif"];class bo extends gt{constructor(...ce){super(...ce),me(this,"catchError",Se=>this.errors.push(Se)),me(this,"metaChunks",[]),me(this,"unknownChunks",[])}static canHandle(ce,Se){return 35152===Se&&2303741511===ce.getUint32(0)&&218765834===ce.getUint32(4)}parse(){var ce=this;return(0,K.Z)(function*(){let{file:Se}=ce;yield ce.findPngChunksInRange(8,Se.byteLength),yield ce.readSegments(ce.metaChunks),ce.findIhdr(),ce.parseTextChunks(),yield ce.findExif().catch(ce.catchError),yield ce.findXmp().catch(ce.catchError),yield ce.findIcc().catch(ce.catchError)})()}findPngChunksInRange(ce,Se){var ut=this;return(0,K.Z)(function*(){let{file:Kt}=ut;for(;ce<Se;){let mn=Kt.getUint32(ce),Un=Kt.getUint32(ce+4),qn=Kt.getString(ce+4,4).toLowerCase(),ci=mn+4+4+4,hi={type:qn,offset:ce,length:ci,start:ce+4+4,size:mn,marker:Un};br.includes(qn)?ut.metaChunks.push(hi):ut.unknownChunks.push(hi),ce+=ci}})()}parseTextChunks(){let ce=this.metaChunks.filter(Se=>"text"===Se.type);for(let Se of ce){let[ut,Kt]=this.file.getString(Se.start,Se.size).split("\0");this.injectKeyValToIhdr(ut,Kt)}}injectKeyValToIhdr(ce,Se){let ut=this.parsers.ihdr;ut&&ut.raw.set(ce,Se)}findIhdr(){let ce=this.metaChunks.find(Se=>"ihdr"===Se.type);ce&&!1!==this.options.ihdr.enabled&&this.createParser("ihdr",ce.chunk)}findExif(){var ce=this;return(0,K.Z)(function*(){let Se=ce.metaChunks.find(ut=>"exif"===ut.type);Se&&ce.injectSegment("tiff",Se.chunk)})()}findXmp(){var ce=this;return(0,K.Z)(function*(){let Se=ce.metaChunks.filter(ut=>"itxt"===ut.type);for(let ut of Se)"XML:com.adobe.xmp"===ut.chunk.getString(0,17)&&ce.injectSegment("xmp",ut.chunk)})()}findIcc(){var ce=this;return(0,K.Z)(function*(){let Se=ce.metaChunks.find(ci=>"iccp"===ci.type);if(!Se)return;let{chunk:ut}=Se,Kt=ut.getUint8Array(0,81),mn=0;for(;mn<80&&0!==Kt[mn];)mn++;let Un=mn+2,qn=ut.getString(0,mn);if(ce.injectKeyValToIhdr("ProfileName",qn),R){let ci=yield Ar,hi=ut.getUint8Array(Un);hi=ci.inflateSync(hi),ce.injectSegment("icc",hi)}})()}}me(bo,"type","png"),ie.set("png",bo),$e(Pe,"interop",[[1,"InteropIndex"],[2,"InteropVersion"],[4096,"RelatedImageFileFormat"],[4097,"RelatedImageWidth"],[4098,"RelatedImageHeight"]]),Xe(Pe,"ifd0",[[11,"ProcessingSoftware"],[254,"SubfileType"],[255,"OldSubfileType"],[263,"Thresholding"],[264,"CellWidth"],[265,"CellLength"],[266,"FillOrder"],[269,"DocumentName"],[280,"MinSampleValue"],[281,"MaxSampleValue"],[285,"PageName"],[286,"XPosition"],[287,"YPosition"],[290,"GrayResponseUnit"],[297,"PageNumber"],[321,"HalftoneHints"],[322,"TileWidth"],[323,"TileLength"],[332,"InkSet"],[337,"TargetPrinter"],[18246,"Rating"],[18249,"RatingPercent"],[33550,"PixelScale"],[34264,"ModelTransform"],[34377,"PhotoshopSettings"],[50706,"DNGVersion"],[50707,"DNGBackwardVersion"],[50708,"UniqueCameraModel"],[50709,"LocalizedCameraModel"],[50736,"DNGLensInfo"],[50739,"ShadowScale"],[50740,"DNGPrivateData"],[33920,"IntergraphMatrix"],[33922,"ModelTiePoint"],[34118,"SEMInfo"],[34735,"GeoTiffDirectory"],[34736,"GeoTiffDoubleParams"],[34737,"GeoTiffAsciiParams"],[50341,"PrintIM"],[50721,"ColorMatrix1"],[50722,"ColorMatrix2"],[50723,"CameraCalibration1"],[50724,"CameraCalibration2"],[50725,"ReductionMatrix1"],[50726,"ReductionMatrix2"],[50727,"AnalogBalance"],[50728,"AsShotNeutral"],[50729,"AsShotWhiteXY"],[50730,"BaselineExposure"],[50731,"BaselineNoise"],[50732,"BaselineSharpness"],[50734,"LinearResponseLimit"],[50735,"CameraSerialNumber"],[50741,"MakerNoteSafety"],[50778,"CalibrationIlluminant1"],[50779,"CalibrationIlluminant2"],[50781,"RawDataUniqueID"],[50827,"OriginalRawFileName"],[50828,"OriginalRawFileData"],[50831,"AsShotICCProfile"],[50832,"AsShotPreProfileMatrix"],[50833,"CurrentICCProfile"],[50834,"CurrentPreProfileMatrix"],[50879,"ColorimetricReference"],[50885,"SRawType"],[50898,"PanasonicTitle"],[50899,"PanasonicTitle2"],[50931,"CameraCalibrationSig"],[50932,"ProfileCalibrationSig"],[50933,"ProfileIFD"],[50934,"AsShotProfileName"],[50936,"ProfileName"],[50937,"ProfileHueSatMapDims"],[50938,"ProfileHueSatMapData1"],[50939,"ProfileHueSatMapData2"],[50940,"ProfileToneCurve"],[50941,"ProfileEmbedPolicy"],[50942,"ProfileCopyright"],[50964,"ForwardMatrix1"],[50965,"ForwardMatrix2"],[50966,"PreviewApplicationName"],[50967,"PreviewApplicationVersion"],[50968,"PreviewSettingsName"],[50969,"PreviewSettingsDigest"],[50970,"PreviewColorSpace"],[50971,"PreviewDateTime"],[50972,"RawImageDigest"],[50973,"OriginalRawFileDigest"],[50981,"ProfileLookTableDims"],[50982,"ProfileLookTableData"],[51043,"TimeCodes"],[51044,"FrameRate"],[51058,"TStop"],[51081,"ReelName"],[51089,"OriginalDefaultFinalSize"],[51090,"OriginalBestQualitySize"],[51091,"OriginalDefaultCropSize"],[51105,"CameraLabel"],[51107,"ProfileHueSatMapEncoding"],[51108,"ProfileLookTableEncoding"],[51109,"BaselineExposureOffset"],[51110,"DefaultBlackRender"],[51111,"NewRawImageDigest"],[51112,"RawToPreviewGain"]]);let xo=[[273,"StripOffsets"],[279,"StripByteCounts"],[288,"FreeOffsets"],[289,"FreeByteCounts"],[291,"GrayResponseCurve"],[292,"T4Options"],[293,"T6Options"],[300,"ColorResponseUnit"],[320,"ColorMap"],[324,"TileOffsets"],[325,"TileByteCounts"],[326,"BadFaxLines"],[327,"CleanFaxData"],[328,"ConsecutiveBadFaxLines"],[330,"SubIFD"],[333,"InkNames"],[334,"NumberofInks"],[336,"DotRange"],[338,"ExtraSamples"],[339,"SampleFormat"],[340,"SMinSampleValue"],[341,"SMaxSampleValue"],[342,"TransferRange"],[343,"ClipPath"],[344,"XClipPathUnits"],[345,"YClipPathUnits"],[346,"Indexed"],[347,"JPEGTables"],[351,"OPIProxy"],[400,"GlobalParametersIFD"],[401,"ProfileType"],[402,"FaxProfile"],[403,"CodingMethods"],[404,"VersionYear"],[405,"ModeNumber"],[433,"Decode"],[434,"DefaultImageColor"],[435,"T82Options"],[437,"JPEGTables"],[512,"JPEGProc"],[515,"JPEGRestartInterval"],[517,"JPEGLosslessPredictors"],[518,"JPEGPointTransforms"],[519,"JPEGQTables"],[520,"JPEGDCTables"],[521,"JPEGACTables"],[559,"StripRowCounts"],[999,"USPTOMiscellaneous"],[18247,"XP_DIP_XML"],[18248,"StitchInfo"],[28672,"SonyRawFileType"],[28688,"SonyToneCurve"],[28721,"VignettingCorrection"],[28722,"VignettingCorrParams"],[28724,"ChromaticAberrationCorrection"],[28725,"ChromaticAberrationCorrParams"],[28726,"DistortionCorrection"],[28727,"DistortionCorrParams"],[29895,"SonyCropTopLeft"],[29896,"SonyCropSize"],[32781,"ImageID"],[32931,"WangTag1"],[32932,"WangAnnotation"],[32933,"WangTag3"],[32934,"WangTag4"],[32953,"ImageReferencePoints"],[32954,"RegionXformTackPoint"],[32955,"WarpQuadrilateral"],[32956,"AffineTransformMat"],[32995,"Matteing"],[32996,"DataType"],[32997,"ImageDepth"],[32998,"TileDepth"],[33300,"ImageFullWidth"],[33301,"ImageFullHeight"],[33302,"TextureFormat"],[33303,"WrapModes"],[33304,"FovCot"],[33305,"MatrixWorldToScreen"],[33306,"MatrixWorldToCamera"],[33405,"Model2"],[33421,"CFARepeatPatternDim"],[33422,"CFAPattern2"],[33423,"BatteryLevel"],[33424,"KodakIFD"],[33445,"MDFileTag"],[33446,"MDScalePixel"],[33447,"MDColorTable"],[33448,"MDLabName"],[33449,"MDSampleInfo"],[33450,"MDPrepDate"],[33451,"MDPrepTime"],[33452,"MDFileUnits"],[33589,"AdventScale"],[33590,"AdventRevision"],[33628,"UIC1Tag"],[33629,"UIC2Tag"],[33630,"UIC3Tag"],[33631,"UIC4Tag"],[33918,"IntergraphPacketData"],[33919,"IntergraphFlagRegisters"],[33921,"INGRReserved"],[34016,"Site"],[34017,"ColorSequence"],[34018,"IT8Header"],[34019,"RasterPadding"],[34020,"BitsPerRunLength"],[34021,"BitsPerExtendedRunLength"],[34022,"ColorTable"],[34023,"ImageColorIndicator"],[34024,"BackgroundColorIndicator"],[34025,"ImageColorValue"],[34026,"BackgroundColorValue"],[34027,"PixelIntensityRange"],[34028,"TransparencyIndicator"],[34029,"ColorCharacterization"],[34030,"HCUsage"],[34031,"TrapIndicator"],[34032,"CMYKEquivalent"],[34152,"AFCP_IPTC"],[34232,"PixelMagicJBIGOptions"],[34263,"JPLCartoIFD"],[34306,"WB_GRGBLevels"],[34310,"LeafData"],[34687,"TIFF_FXExtensions"],[34688,"MultiProfiles"],[34689,"SharedData"],[34690,"T88Options"],[34732,"ImageLayer"],[34750,"JBIGOptions"],[34856,"Opto-ElectricConvFactor"],[34857,"Interlace"],[34908,"FaxRecvParams"],[34909,"FaxSubAddress"],[34910,"FaxRecvTime"],[34929,"FedexEDR"],[34954,"LeafSubIFD"],[37387,"FlashEnergy"],[37388,"SpatialFrequencyResponse"],[37389,"Noise"],[37390,"FocalPlaneXResolution"],[37391,"FocalPlaneYResolution"],[37392,"FocalPlaneResolutionUnit"],[37397,"ExposureIndex"],[37398,"TIFF-EPStandardID"],[37399,"SensingMethod"],[37434,"CIP3DataFile"],[37435,"CIP3Sheet"],[37436,"CIP3Side"],[37439,"StoNits"],[37679,"MSDocumentText"],[37680,"MSPropertySetStorage"],[37681,"MSDocumentTextPosition"],[37724,"ImageSourceData"],[40965,"InteropIFD"],[40976,"SamsungRawPointersOffset"],[40977,"SamsungRawPointersLength"],[41217,"SamsungRawByteOrder"],[41218,"SamsungRawUnknown"],[41484,"SpatialFrequencyResponse"],[41485,"Noise"],[41489,"ImageNumber"],[41490,"SecurityClassification"],[41491,"ImageHistory"],[41494,"TIFF-EPStandardID"],[41995,"DeviceSettingDescription"],[42112,"GDALMetadata"],[42113,"GDALNoData"],[44992,"ExpandSoftware"],[44993,"ExpandLens"],[44994,"ExpandFilm"],[44995,"ExpandFilterLens"],[44996,"ExpandScanner"],[44997,"ExpandFlashLamp"],[46275,"HasselbladRawImage"],[48129,"PixelFormat"],[48130,"Transformation"],[48131,"Uncompressed"],[48132,"ImageType"],[48256,"ImageWidth"],[48257,"ImageHeight"],[48258,"WidthResolution"],[48259,"HeightResolution"],[48320,"ImageOffset"],[48321,"ImageByteCount"],[48322,"AlphaOffset"],[48323,"AlphaByteCount"],[48324,"ImageDataDiscard"],[48325,"AlphaDataDiscard"],[50215,"OceScanjobDesc"],[50216,"OceApplicationSelector"],[50217,"OceIDNumber"],[50218,"OceImageLogic"],[50255,"Annotations"],[50459,"HasselbladExif"],[50547,"OriginalFileName"],[50560,"USPTOOriginalContentType"],[50656,"CR2CFAPattern"],[50710,"CFAPlaneColor"],[50711,"CFALayout"],[50712,"LinearizationTable"],[50713,"BlackLevelRepeatDim"],[50714,"BlackLevel"],[50715,"BlackLevelDeltaH"],[50716,"BlackLevelDeltaV"],[50717,"WhiteLevel"],[50718,"DefaultScale"],[50719,"DefaultCropOrigin"],[50720,"DefaultCropSize"],[50733,"BayerGreenSplit"],[50737,"ChromaBlurRadius"],[50738,"AntiAliasStrength"],[50752,"RawImageSegmentation"],[50780,"BestQualityScale"],[50784,"AliasLayerMetadata"],[50829,"ActiveArea"],[50830,"MaskedAreas"],[50935,"NoiseReductionApplied"],[50974,"SubTileBlockSize"],[50975,"RowInterleaveFactor"],[51008,"OpcodeList1"],[51009,"OpcodeList2"],[51022,"OpcodeList3"],[51041,"NoiseProfile"],[51114,"CacheVersion"],[51125,"DefaultUserCrop"],[51157,"NikonNEFInfo"],[65024,"KdcIFD"]];Xe(Pe,"ifd0",xo),Xe(Pe,"exif",xo),$e(Ve,"gps",[[23,{M:"Magnetic North",T:"True North"}],[25,{K:"Kilometers",M:"Miles",N:"Nautical Miles"}]]);class Re extends ue{static canHandle(ce,Se){return 224===ce.getUint8(Se+1)&&1246120262===ce.getUint32(Se+4)&&0===ce.getUint8(Se+8)}parse(){return this.parseTags(),this.translate(),this.output}parseTags(){this.raw=new Map([[0,this.chunk.getUint16(0)],[2,this.chunk.getUint8(2)],[3,this.chunk.getUint16(3)],[5,this.chunk.getUint16(5)],[7,this.chunk.getUint8(7)],[8,this.chunk.getUint8(8)]])}}me(Re,"type","jfif"),me(Re,"headerLength",9),Ce.set("jfif",Re),$e(Pe,"jfif",[[0,"JFIFVersion"],[2,"ResolutionUnit"],[3,"XResolution"],[5,"YResolution"],[7,"ThumbnailWidth"],[8,"ThumbnailHeight"]]);class w extends ue{parse(){return this.parseTags(),this.translate(),this.output}parseTags(){this.raw=new Map([[0,this.chunk.getUint32(0)],[4,this.chunk.getUint32(4)],[8,this.chunk.getUint8(8)],[9,this.chunk.getUint8(9)],[10,this.chunk.getUint8(10)],[11,this.chunk.getUint8(11)],[12,this.chunk.getUint8(12)],...Array.from(this.raw)])}}me(w,"type","ihdr"),Ce.set("ihdr",w),$e(Pe,"ihdr",[[0,"ImageWidth"],[4,"ImageHeight"],[8,"BitDepth"],[9,"ColorType"],[10,"Compression"],[11,"Filter"],[12,"Interlace"]]),$e(Ve,"ihdr",[[9,{0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha",DEFAULT:"Unknown"}],[10,{0:"Deflate/Inflate",DEFAULT:"Unknown"}],[11,{0:"Adaptive",DEFAULT:"Unknown"}],[12,{0:"Noninterlaced",1:"Adam7 Interlace",DEFAULT:"Unknown"}]]);class ne extends ue{static canHandle(ce,Se){return 226===ce.getUint8(Se+1)&&1229144927===ce.getUint32(Se+4)}static findPosition(ce,Se){let ut=super.findPosition(ce,Se);return ut.chunkNumber=ce.getUint8(Se+16),ut.chunkCount=ce.getUint8(Se+17),ut.multiSegment=ut.chunkCount>1,ut}static handleMultiSegments(ce){return function(Se){let ut=function(Kt){let mn=Kt[0].constructor,Un=0;for(let hi of Kt)Un+=hi.length;let qn=new mn(Un),ci=0;for(let hi of Kt)qn.set(hi,ci),ci+=hi.length;return qn}(Se.map(Kt=>Kt.chunk.toUint8()));return new Zt(ut)}(ce)}parse(){return this.raw=new Map,this.parseHeader(),this.parseTags(),this.translate(),this.output}parseHeader(){let{raw:ce}=this;this.chunk.byteLength<84&&Ee("ICC header is too short");for(let[Se,ut]of Object.entries(be)){Se=parseInt(Se,10);let Kt=ut(this.chunk,Se);"\0\0\0\0"!==Kt&&ce.set(Se,Kt)}}parseTags(){let ce,Se,ut,Kt,mn,{raw:Un}=this,qn=this.chunk.getUint32(128),ci=132,hi=this.chunk.byteLength;for(;qn--;){if(ce=this.chunk.getString(ci,4),Se=this.chunk.getUint32(ci+4),ut=this.chunk.getUint32(ci+8),Kt=this.chunk.getString(Se,4),Se+ut>hi)return void console.warn("reached the end of the first ICC chunk. Enable options.tiff.multiSegment to read all ICC segments.");mn=this.parseTag(Kt,Se,ut),void 0!==mn&&"\0\0\0\0"!==mn&&Un.set(ce,mn),ci+=12}}parseTag(ce,Se,ut){switch(ce){case"desc":return this.parseDesc(Se);case"mluc":return this.parseMluc(Se);case"text":return this.parseText(Se,ut);case"sig ":return this.parseSig(Se)}if(!(Se+ut>this.chunk.byteLength))return this.chunk.getUint8Array(Se,ut)}parseDesc(ce){let Se=this.chunk.getUint32(ce+8)-1;return Ye(this.chunk.getString(ce+12,Se))}parseText(ce,Se){return Ye(this.chunk.getString(ce+8,Se-8))}parseSig(ce){return Ye(this.chunk.getString(ce+8,4))}parseMluc(ce){let{chunk:Se}=this,ut=Se.getUint32(ce+8),Kt=Se.getUint32(ce+12),mn=ce+16,Un=[];for(let qn=0;qn<ut;qn++){let ci=Se.getString(mn+0,2),hi=Se.getString(mn+2,2),Ai=Se.getUint32(mn+4),zi=Se.getUint32(mn+8)+ce,Yi=Ye(Se.getUnicodeString(zi,Ai));Un.push({lang:ci,country:hi,text:Yi}),mn+=Kt}return 1===ut?Un[0].text:Un}translateValue(ce,Se){return"string"==typeof ce?Se[ce]||Se[ce.toLowerCase()]||ce:Se[ce]||ce}}me(ne,"type","icc"),me(ne,"multiSegment",!0),me(ne,"headerLength",18);const be={4:Ue,8:function(ft,ce){return[ft.getUint8(ce),ft.getUint8(ce+1)>>4,ft.getUint8(ce+1)%16].map(Se=>Se.toString(10)).join(".")},12:Ue,16:Ue,20:Ue,24:function(ft,ce){const Se=ft.getUint16(ce),ut=ft.getUint16(ce+2)-1,Kt=ft.getUint16(ce+4),mn=ft.getUint16(ce+6),Un=ft.getUint16(ce+8),qn=ft.getUint16(ce+10);return new Date(Date.UTC(Se,ut,Kt,mn,Un,qn))},36:Ue,40:Ue,48:Ue,52:Ue,64:(ft,ce)=>ft.getUint32(ce),80:Ue};function Ue(ft,ce){return Ye(ft.getString(ce,4))}Ce.set("icc",ne),$e(Pe,"icc",[[4,"ProfileCMMType"],[8,"ProfileVersion"],[12,"ProfileClass"],[16,"ColorSpaceData"],[20,"ProfileConnectionSpace"],[24,"ProfileDateTime"],[36,"ProfileFileSignature"],[40,"PrimaryPlatform"],[44,"CMMFlags"],[48,"DeviceManufacturer"],[52,"DeviceModel"],[56,"DeviceAttributes"],[64,"RenderingIntent"],[68,"ConnectionSpaceIlluminant"],[80,"ProfileCreator"],[84,"ProfileID"],["Header","ProfileHeader"],["MS00","WCSProfiles"],["bTRC","BlueTRC"],["bXYZ","BlueMatrixColumn"],["bfd","UCRBG"],["bkpt","MediaBlackPoint"],["calt","CalibrationDateTime"],["chad","ChromaticAdaptation"],["chrm","Chromaticity"],["ciis","ColorimetricIntentImageState"],["clot","ColorantTableOut"],["clro","ColorantOrder"],["clrt","ColorantTable"],["cprt","ProfileCopyright"],["crdi","CRDInfo"],["desc","ProfileDescription"],["devs","DeviceSettings"],["dmdd","DeviceModelDesc"],["dmnd","DeviceMfgDesc"],["dscm","ProfileDescriptionML"],["fpce","FocalPlaneColorimetryEstimates"],["gTRC","GreenTRC"],["gXYZ","GreenMatrixColumn"],["gamt","Gamut"],["kTRC","GrayTRC"],["lumi","Luminance"],["meas","Measurement"],["meta","Metadata"],["mmod","MakeAndModel"],["ncl2","NamedColor2"],["ncol","NamedColor"],["ndin","NativeDisplayInfo"],["pre0","Preview0"],["pre1","Preview1"],["pre2","Preview2"],["ps2i","PS2RenderingIntent"],["ps2s","PostScript2CSA"],["psd0","PostScript2CRD0"],["psd1","PostScript2CRD1"],["psd2","PostScript2CRD2"],["psd3","PostScript2CRD3"],["pseq","ProfileSequenceDesc"],["psid","ProfileSequenceIdentifier"],["psvm","PS2CRDVMSize"],["rTRC","RedTRC"],["rXYZ","RedMatrixColumn"],["resp","OutputResponse"],["rhoc","ReflectionHardcopyOrigColorimetry"],["rig0","PerceptualRenderingIntentGamut"],["rig2","SaturationRenderingIntentGamut"],["rpoc","ReflectionPrintOutputColorimetry"],["sape","SceneAppearanceEstimates"],["scoe","SceneColorimetryEstimates"],["scrd","ScreeningDesc"],["scrn","Screening"],["targ","CharTarget"],["tech","Technology"],["vcgt","VideoCardGamma"],["view","ViewingConditions"],["vued","ViewingCondDesc"],["wtpt","MediaWhitePoint"]]);const at={"4d2p":"Erdt Systems",AAMA:"Aamazing Technologies",ACER:"Acer",ACLT:"Acolyte Color Research",ACTI:"Actix Sytems",ADAR:"Adara Technology",ADBE:"Adobe",ADI:"ADI Systems",AGFA:"Agfa Graphics",ALMD:"Alps Electric",ALPS:"Alps Electric",ALWN:"Alwan Color Expertise",AMTI:"Amiable Technologies",AOC:"AOC International",APAG:"Apago",APPL:"Apple Computer",AST:"AST","AT&T":"AT&T",BAEL:"BARBIERI electronic",BRCO:"Barco NV",BRKP:"Breakpoint",BROT:"Brother",BULL:"Bull",BUS:"Bus Computer Systems","C-IT":"C-Itoh",CAMR:"Intel",CANO:"Canon",CARR:"Carroll Touch",CASI:"Casio",CBUS:"Colorbus PL",CEL:"Crossfield",CELx:"Crossfield",CGS:"CGS Publishing Technologies International",CHM:"Rochester Robotics",CIGL:"Colour Imaging Group, London",CITI:"Citizen",CL00:"Candela",CLIQ:"Color IQ",CMCO:"Chromaco",CMiX:"CHROMiX",COLO:"Colorgraphic Communications",COMP:"Compaq",COMp:"Compeq/Focus Technology",CONR:"Conrac Display Products",CORD:"Cordata Technologies",CPQ:"Compaq",CPRO:"ColorPro",CRN:"Cornerstone",CTX:"CTX International",CVIS:"ColorVision",CWC:"Fujitsu Laboratories",DARI:"Darius Technology",DATA:"Dataproducts",DCP:"Dry Creek Photo",DCRC:"Digital Contents Resource Center, Chung-Ang University",DELL:"Dell Computer",DIC:"Dainippon Ink and Chemicals",DICO:"Diconix",DIGI:"Digital","DL&C":"Digital Light & Color",DPLG:"Doppelganger",DS:"Dainippon Screen",DSOL:"DOOSOL",DUPN:"DuPont",EPSO:"Epson",ESKO:"Esko-Graphics",ETRI:"Electronics and Telecommunications Research Institute",EVER:"Everex Systems",EXAC:"ExactCODE",Eizo:"Eizo",FALC:"Falco Data Products",FF:"Fuji Photo Film",FFEI:"FujiFilm Electronic Imaging",FNRD:"Fnord Software",FORA:"Fora",FORE:"Forefront Technology",FP:"Fujitsu",FPA:"WayTech Development",FUJI:"Fujitsu",FX:"Fuji Xerox",GCC:"GCC Technologies",GGSL:"Global Graphics Software",GMB:"Gretagmacbeth",GMG:"GMG",GOLD:"GoldStar Technology",GOOG:"Google",GPRT:"Giantprint",GTMB:"Gretagmacbeth",GVC:"WayTech Development",GW2K:"Sony",HCI:"HCI",HDM:"Heidelberger Druckmaschinen",HERM:"Hermes",HITA:"Hitachi America",HP:"Hewlett-Packard",HTC:"Hitachi",HiTi:"HiTi Digital",IBM:"IBM",IDNT:"Scitex",IEC:"Hewlett-Packard",IIYA:"Iiyama North America",IKEG:"Ikegami Electronics",IMAG:"Image Systems",IMI:"Ingram Micro",INTC:"Intel",INTL:"N/A (INTL)",INTR:"Intra Electronics",IOCO:"Iocomm International Technology",IPS:"InfoPrint Solutions Company",IRIS:"Scitex",ISL:"Ichikawa Soft Laboratory",ITNL:"N/A (ITNL)",IVM:"IVM",IWAT:"Iwatsu Electric",Idnt:"Scitex",Inca:"Inca Digital Printers",Iris:"Scitex",JPEG:"Joint Photographic Experts Group",JSFT:"Jetsoft Development",JVC:"JVC Information Products",KART:"Scitex",KFC:"KFC Computek Components",KLH:"KLH Computers",KMHD:"Konica Minolta",KNCA:"Konica",KODA:"Kodak",KYOC:"Kyocera",Kart:"Scitex",LCAG:"Leica",LCCD:"Leeds Colour",LDAK:"Left Dakota",LEAD:"Leading Technology",LEXM:"Lexmark International",LINK:"Link Computer",LINO:"Linotronic",LITE:"Lite-On",Leaf:"Leaf",Lino:"Linotronic",MAGC:"Mag Computronic",MAGI:"MAG Innovision",MANN:"Mannesmann",MICN:"Micron Technology",MICR:"Microtek",MICV:"Microvitec",MINO:"Minolta",MITS:"Mitsubishi Electronics America",MITs:"Mitsuba",MNLT:"Minolta",MODG:"Modgraph",MONI:"Monitronix",MONS:"Monaco Systems",MORS:"Morse Technology",MOTI:"Motive Systems",MSFT:"Microsoft",MUTO:"MUTOH INDUSTRIES",Mits:"Mitsubishi Electric",NANA:"NANAO",NEC:"NEC",NEXP:"NexPress Solutions",NISS:"Nissei Sangyo America",NKON:"Nikon",NONE:"none",OCE:"Oce Technologies",OCEC:"OceColor",OKI:"Oki",OKID:"Okidata",OKIP:"Okidata",OLIV:"Olivetti",OLYM:"Olympus",ONYX:"Onyx Graphics",OPTI:"Optiquest",PACK:"Packard Bell",PANA:"Matsushita Electric Industrial",PANT:"Pantone",PBN:"Packard Bell",PFU:"PFU",PHIL:"Philips Consumer Electronics",PNTX:"HOYA",POne:"Phase One A/S",PREM:"Premier Computer Innovations",PRIN:"Princeton Graphic Systems",PRIP:"Princeton Publishing Labs",QLUX:"Hong Kong",QMS:"QMS",QPCD:"QPcard AB",QUAD:"QuadLaser",QUME:"Qume",RADI:"Radius",RDDx:"Integrated Color Solutions",RDG:"Roland DG",REDM:"REDMS Group",RELI:"Relisys",RGMS:"Rolf Gierling Multitools",RICO:"Ricoh",RNLD:"Edmund Ronald",ROYA:"Royal",RPC:"Ricoh Printing Systems",RTL:"Royal Information Electronics",SAMP:"Sampo",SAMS:"Samsung",SANT:"Jaime Santana Pomares",SCIT:"Scitex",SCRN:"Dainippon Screen",SDP:"Scitex",SEC:"Samsung",SEIK:"Seiko Instruments",SEIk:"Seikosha",SGUY:"ScanGuy.com",SHAR:"Sharp Laboratories",SICC:"International Color Consortium",SONY:"Sony",SPCL:"SpectraCal",STAR:"Star",STC:"Sampo Technology",Scit:"Scitex",Sdp:"Scitex",Sony:"Sony",TALO:"Talon Technology",TAND:"Tandy",TATU:"Tatung",TAXA:"TAXAN America",TDS:"Tokyo Denshi Sekei",TECO:"TECO Information Systems",TEGR:"Tegra",TEKT:"Tektronix",TI:"Texas Instruments",TMKR:"TypeMaker",TOSB:"Toshiba",TOSH:"Toshiba",TOTK:"TOTOKU ELECTRIC",TRIU:"Triumph",TSBT:"Toshiba",TTX:"TTX Computer Products",TVM:"TVM Professional Monitor",TW:"TW Casper",ULSX:"Ulead Systems",UNIS:"Unisys",UTZF:"Utz Fehlau & Sohn",VARI:"Varityper",VIEW:"Viewsonic",VISL:"Visual communication",VIVO:"Vivo Mobile Communication",WANG:"Wang",WLBR:"Wilbur Imaging",WTG2:"Ware To Go",WYSE:"WYSE Technology",XERX:"Xerox",XRIT:"X-Rite",ZRAN:"Zoran",Zebr:"Zebra Technologies",appl:"Apple Computer",bICC:"basICColor",berg:"bergdesign",ceyd:"Integrated Color Solutions",clsp:"MacDermid ColorSpan",ds:"Dainippon Screen",dupn:"DuPont",ffei:"FujiFilm Electronic Imaging",flux:"FluxData",iris:"Scitex",kart:"Scitex",lcms:"Little CMS",lino:"Linotronic",none:"none",ob4d:"Erdt Systems",obic:"Medigraph",quby:"Qubyx Sarl",scit:"Scitex",scrn:"Dainippon Screen",sdp:"Scitex",siwi:"SIWI GRAFIKA",yxym:"YxyMaster"},Rt={scnr:"Scanner",mntr:"Monitor",prtr:"Printer",link:"Device Link",abst:"Abstract",spac:"Color Space Conversion Profile",nmcl:"Named Color",cenc:"ColorEncodingSpace profile",mid:"MultiplexIdentification profile",mlnk:"MultiplexLink profile",mvis:"MultiplexVisualization profile",nkpf:"Nikon Input Device Profile (NON-STANDARD!)"};$e(Ve,"icc",[[4,at],[12,Rt],[40,Object.assign({},at,Rt)],[48,at],[80,at],[64,{0:"Perceptual",1:"Relative Colorimetric",2:"Saturation",3:"Absolute Colorimetric"}],["tech",{amd:"Active Matrix Display",crt:"Cathode Ray Tube Display",kpcd:"Photo CD",pmd:"Passive Matrix Display",dcam:"Digital Camera",dcpj:"Digital Cinema Projector",dmpc:"Digital Motion Picture Camera",dsub:"Dye Sublimation Printer",epho:"Electrophotographic Printer",esta:"Electrostatic Printer",flex:"Flexography",fprn:"Film Writer",fscn:"Film Scanner",grav:"Gravure",ijet:"Ink Jet Printer",imgs:"Photo Image Setter",mpfr:"Motion Picture Film Recorder",mpfs:"Motion Picture Film Scanner",offs:"Offset Lithography",pjtv:"Projection Television",rpho:"Photographic Paper Printer",rscn:"Reflective Scanner",silk:"Silkscreen",twax:"Thermal Wax Printer",vidc:"Video Camera",vidm:"Video Monitor"}]]);class yn extends ue{static canHandle(ce,Se,ut){return 237===ce.getUint8(Se+1)&&"Photoshop"===ce.getString(Se+4,9)&&void 0!==this.containsIptc8bim(ce,Se,ut)}static headerLength(ce,Se,ut){let Kt,mn=this.containsIptc8bim(ce,Se,ut);if(void 0!==mn)return Kt=ce.getUint8(Se+mn+7),Kt%2!=0&&(Kt+=1),0===Kt&&(Kt=4),mn+8+Kt}static containsIptc8bim(ce,Se,ut){for(let Kt=0;Kt<ut;Kt++)if(this.isIptcSegmentHead(ce,Se+Kt))return Kt}static isIptcSegmentHead(ce,Se){return 56===ce.getUint8(Se)&&943868237===ce.getUint32(Se)&&1028===ce.getUint16(Se+4)}parse(){let{raw:ce}=this,Se=this.chunk.byteLength-1,ut=!1;for(let Kt=0;Kt<Se;Kt++)if(28===this.chunk.getUint8(Kt)&&2===this.chunk.getUint8(Kt+1)){ut=!0;let mn=this.chunk.getUint16(Kt+3),Un=this.chunk.getUint8(Kt+2),qn=this.chunk.getLatin1String(Kt+5,mn);ce.set(Un,this.pluralizeValue(ce.get(Un),qn)),Kt+=4+mn}else if(ut)break;return this.translate(),this.output}pluralizeValue(ce,Se){return void 0!==ce?ce instanceof Array?(ce.push(Se),ce):[ce,Se]:Se}}me(yn,"type","iptc"),me(yn,"translateValues",!1),me(yn,"reviveValues",!1),Ce.set("iptc",yn),$e(Pe,"iptc",[[0,"ApplicationRecordVersion"],[3,"ObjectTypeReference"],[4,"ObjectAttributeReference"],[5,"ObjectName"],[7,"EditStatus"],[8,"EditorialUpdate"],[10,"Urgency"],[12,"SubjectReference"],[15,"Category"],[20,"SupplementalCategories"],[22,"FixtureIdentifier"],[25,"Keywords"],[26,"ContentLocationCode"],[27,"ContentLocationName"],[30,"ReleaseDate"],[35,"ReleaseTime"],[37,"ExpirationDate"],[38,"ExpirationTime"],[40,"SpecialInstructions"],[42,"ActionAdvised"],[45,"ReferenceService"],[47,"ReferenceDate"],[50,"ReferenceNumber"],[55,"DateCreated"],[60,"TimeCreated"],[62,"DigitalCreationDate"],[63,"DigitalCreationTime"],[65,"OriginatingProgram"],[70,"ProgramVersion"],[75,"ObjectCycle"],[80,"Byline"],[85,"BylineTitle"],[90,"City"],[92,"Sublocation"],[95,"State"],[100,"CountryCode"],[101,"Country"],[103,"OriginalTransmissionReference"],[105,"Headline"],[110,"Credit"],[115,"Source"],[116,"CopyrightNotice"],[118,"Contact"],[120,"Caption"],[121,"LocalCaption"],[122,"Writer"],[125,"RasterizedCaption"],[130,"ImageType"],[131,"ImageOrientation"],[135,"LanguageIdentifier"],[150,"AudioType"],[151,"AudioSamplingRate"],[152,"AudioSamplingResolution"],[153,"AudioDuration"],[154,"AudioOutcue"],[184,"JobID"],[185,"MasterDocumentID"],[186,"ShortDocumentID"],[187,"UniqueDocumentID"],[188,"OwnerID"],[200,"ObjectPreviewFileFormat"],[201,"ObjectPreviewFileVersion"],[202,"ObjectPreviewData"],[221,"Prefs"],[225,"ClassifyState"],[228,"SimilarityIndex"],[230,"DocumentNotes"],[231,"DocumentHistory"],[232,"ExifCameraInfo"],[255,"CatalogSets"]]),$e(Ve,"iptc",[[10,{0:"0 (reserved)",1:"1 (most urgent)",2:"2",3:"3",4:"4",5:"5 (normal urgency)",6:"6",7:"7",8:"8 (least urgent)",9:"9 (user-defined priority)"}],[75,{a:"Morning",b:"Both Morning and Evening",p:"Evening"}],[131,{L:"Landscape",P:"Portrait",S:"Square"}]]);var Yn=i(51520),Zn=i.n(Yn),ui=i(63900),wi=i(94650),an=(()=>{return(ft=an||(an={})).NO_FILES_RECEIVED="NO_FILES_RECEIVED",ft.CANVAS_CONTEXT_IDENTIFIER_NOT_SUPPORTED="CANVAS_CONTEXT_IDENTIFIER_NOT_SUPPORTED",ft.NOT_BE_ABLE_TO_COMPRESS_ENOUGH="NOT_BE_ABLE_TO_COMPRESS_ENOUGH",ft.READ_ERROR="IMAGE_COULD_NOT_BE_LOADED",an;var ft})();let bn=(()=>{let ft=class{getExifOrientedImage(Se){return new Promise((ut,Kt)=>{Wn(Se).catch(mn=>{ut(Se)}).then(mn=>{if(mn&&1!==mn){if(mn<1||mn>8)throw new Error("orientation should be [1-8]");const Un=document.createElement("canvas"),qn=Un.getContext("2d");let ci=0,hi=0,Ai=0,zi=Se.width,Yi=Se.height;switch([5,6,7,8].indexOf(mn)>-1&&(zi=Se.height,Yi=Se.width),Un.width=zi,Un.height=Yi,mn){case 3:case 4:hi=-Se.width,Ai=-Se.height,ci=180;break;case 5:case 6:Ai=-Se.height,ci=90;break;case 7:case 8:hi=-Se.width,ci=270}[2,4,5,7].indexOf(mn)>-1&&(qn.translate(zi,0),qn.scale(-1,1)),qn.rotate(ci/180*Math.PI),qn.drawImage(Se,hi,Ai);const tr=new Image;tr.width=zi,tr.height=Yi,tr.onload=()=>{ut(tr)},tr.src=Un.toDataURL()}else ut(Se)})})}};return ft.\u0275fac=function(Se){return new(Se||ft)},ft.\u0275prov=wi.\u0275\u0275defineInjectable({token:ft,factory:function(ce){return ft.\u0275fac(ce)}}),ft})(),Dn=(()=>{let ft=class{constructor(Se){this._ngxPicaExifService=Se,this.picaResizer=new(Zn()),this.MAX_STEPS=20,(!this.picaResizer||!this.picaResizer.resize)&&(this.picaResizer=new window.Pica)}resizeImages(Se,ut,Kt,mn){const Un=new ae.x,qn=Se.length;if(qn>0){const ci=new ae.x;let hi=0;const Ai=ci.pipe((0,ui.w)(zi=>this.resizeImage(zi,ut,Kt,mn))).subscribe(zi=>{hi++,Un.next(zi),hi<qn?ci.next(Se[hi]):(Un.complete(),Ai.unsubscribe())},zi=>{Un.error({file:Se[hi],err:zi})});ci.next(Se[hi])}else Un.error({err:an.NO_FILES_RECEIVED}),Un.complete();return Un.asObservable()}resizeImage(Se,ut,Kt,mn){const Un=new ae.x,qn=document.createElement("canvas"),ci=qn.getContext("2d"),hi=new Image,Ai=new FileReader;return mn||(mn={exifOptions:{forceExifOrientation:!0}}),ci?(Ai.addEventListener("load",zi=>{hi.onerror=Yi=>{Un.error({err:an.READ_ERROR,file:Se,original_error:Yi})},hi.onload=()=>{this.processImageExifOptions(hi,mn.exifOptions).then(Yi=>{qn.width=Yi.width,qn.height=Yi.height,ci.drawImage(Yi,0,0);const tr=ci.getImageData(0,0,Yi.width,Yi.height);if(mn&&mn.aspectRatio&&mn.aspectRatio.keepAspectRatio){let Gr=0;Gr=mn.aspectRatio.forceMinDimensions?Math.max(ut/tr.width,Kt/tr.height):Math.min(ut/tr.width,Kt/tr.height),ut=Math.round(tr.width*Gr),Kt=Math.round(tr.height*Gr)}const Lr=document.createElement("canvas");Lr.width=ut,Lr.height=Kt,this.picaResize(Se,qn,Lr,mn).catch(Gr=>Un.error(Gr)).then(Gr=>{Un.next(Gr),Un.complete()})}).catch(Yi=>{Un.error({err:an.READ_ERROR,file:Se,original_error:Yi})})},hi.src=Ai.result}),Ai.readAsDataURL(Se)):Un.error(an.CANVAS_CONTEXT_IDENTIFIER_NOT_SUPPORTED),Un.asObservable()}compressImages(Se,ut,Kt){const mn=new ae.x,Un=Se.length;if(Un>0){const qn=new ae.x;let ci=0;const hi=qn.pipe((0,ui.w)(Ai=>this.compressImage(Ai,ut,Kt))).subscribe(Ai=>{ci++,mn.next(Ai),ci<Un?qn.next(Se[ci]):(mn.complete(),hi.unsubscribe())},Ai=>{mn.error({file:Se[ci],err:Ai})});qn.next(Se[ci])}else mn.error({err:an.NO_FILES_RECEIVED}),mn.complete();return mn.asObservable()}compressImage(Se,ut,Kt){const mn=new ae.x;if(this.bytesToMB(Se.size)<=ut)setTimeout(()=>{mn.next(Se),mn.complete()});else{const Un=document.createElement("canvas"),qn=Un.getContext("2d"),ci=new Image,hi=new FileReader;Kt||(Kt={exifOptions:{forceExifOrientation:!0}}),qn?(hi.addEventListener("load",Ai=>{ci.onload=()=>{this.processImageExifOptions(ci,Kt.exifOptions).then(zi=>{Un.width=zi.width,Un.height=zi.height,qn.drawImage(zi,0,0),this.getCompressedImage(Un,Se.type,1,ut,0).catch(Yi=>mn.error(Yi)).then(Yi=>{const tr=this.blobToFile(Yi,Se.name,Se.type,(new Date).getTime());mn.next(tr),mn.complete()})})},ci.src=hi.result}),hi.readAsDataURL(Se)):mn.error(an.CANVAS_CONTEXT_IDENTIFIER_NOT_SUPPORTED)}return mn.asObservable()}processImageExifOptions(Se,ut){return new Promise((Kt,mn)=>{ut.forceExifOrientation?this._ngxPicaExifService.getExifOrientedImage(Se).then(Un=>Kt(Un)).catch(Un=>mn(Un)):Kt(Se)})}getCompressedImage(Se,ut,Kt,mn,Un){return new Promise((qn,ci)=>{this.picaResizer.toBlob(Se,ut,Kt).catch(hi=>ci(hi)).then(hi=>{this.checkCompressedImageSize(Se,hi,Kt,mn,Un).catch(Ai=>ci(Ai)).then(Ai=>{qn(Ai)})})})}checkCompressedImageSize(Se,ut,Kt,mn,Un){return new Promise((qn,ci)=>{Un>this.MAX_STEPS?ci(an.NOT_BE_ABLE_TO_COMPRESS_ENOUGH):this.bytesToMB(ut.size)<mn?qn(ut):qn(this.getCompressedImage(Se,ut.type,Kt-.1*Kt,mn,Un+1))})}picaResize(Se,ut,Kt,mn){return new Promise((Un,qn)=>{this.picaResizer.resize(ut,Kt,mn).catch(ci=>qn(ci)).then(ci=>this.picaResizer.toBlob(ci,Se.type)).then(ci=>{const hi=this.blobToFile(ci,Se.name,Se.type,(new Date).getTime());Un(hi)})})}blobToFile(Se,ut,Kt,mn){return Object.assign(new Blob([Se],{type:Kt}),{name:ut,lastModified:mn})}bytesToMB(Se){return Se/1048576}};return ft.\u0275fac=function(Se){return new(Se||ft)(wi.\u0275\u0275inject(bn))},ft.\u0275prov=wi.\u0275\u0275defineInjectable({token:ft,factory:function(ce){return ft.\u0275fac(ce)}}),ft=function l(ft,ce,Se,ut){var Un,Kt=arguments.length,mn=Kt<3?ce:null===ut?ut=Object.getOwnPropertyDescriptor(ce,Se):ut;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)mn=Reflect.decorate(ft,ce,Se,ut);else for(var qn=ft.length-1;qn>=0;qn--)(Un=ft[qn])&&(mn=(Kt<3?Un(mn):Kt>3?Un(ce,Se,mn):Un(ce,Se))||mn);return Kt>3&&mn&&Object.defineProperty(ce,Se,mn),mn}([s("design:paramtypes",[bn])],ft),ft})(),ii=(()=>{let ft=class{constructor(){this.imageExtensions=["ase","art","bmp","blp","cd5","cit","cpt","cr2","cut","dds","dib","djvu","egt","exif","gif","gpl","grf","icns","ico","iff","jng","jpeg","jpg","jfif","jp2","jps","lbm","max","miff","mng","msp","nitf","ota","pbm","pc1","pc2","pc3","pcf","pcx","pdn","pgm","PI1","PI2","PI3","pict","pct","pnm","pns","ppm","psb","psd","pdd","psp","px","pxm","pxr","qfx","raw","rle","sct","sgi","rgb","int","bw","tga","tiff","tif","vtf","xbm","xcf","xpm","3dv","amf","ai","awg","cgm","cdr","cmx","dxf","e2d","egt","eps","fs","gbr","odg","svg","stl","vrml","x3d","sxd","v2d","vnd","wmf","emf","art","xar","png","webp","jxr","hdp","wdp","cur","ecw","iff","lbm","liff","nrrd","pam","pcx","pgf","sgi","rgb","rgba","bw","int","inta","sid","ras","sun","tga"]}isImage(Se){const ut=Se.name.toLowerCase().substr(Se.name.lastIndexOf(".")+1);return-1!==this.imageExtensions.indexOf(ut)}};return ft.\u0275fac=function(Se){return new(Se||ft)},ft.\u0275prov=wi.\u0275\u0275defineInjectable({token:ft,factory:function(ce){return ft.\u0275fac(ce)}}),ft})(),li=(()=>{let ft=class{};return ft.\u0275fac=function(Se){return new(Se||ft)},ft.\u0275mod=wi.\u0275\u0275defineNgModule({type:ft}),ft.\u0275inj=wi.\u0275\u0275defineInjector({providers:[{provide:Dn,useClass:Dn},{provide:bn,useClass:bn},{provide:ii,useClass:ii}]}),ft})()},42090:(oe,x,i)=>{"use strict";i.d(x,{$s:()=>z,BH:()=>re,DV:()=>Ce,Dv:()=>mt,GJ:()=>yt,L:()=>p,LL:()=>ve,Pz:()=>X,Sg:()=>Q,UG:()=>k,UI:()=>dt,US:()=>h,Wj:()=>_n,Wl:()=>Wt,Yr:()=>H,ZB:()=>v,ZR:()=>se,aH:()=>V,b$:()=>R,cI:()=>wt,dS:()=>ke,eu:()=>de,g5:()=>a,gK:()=>It,gQ:()=>bt,h$:()=>d,hl:()=>pe,hu:()=>n,jU:()=>$,lb:()=>Jt,m9:()=>Qe,ne:()=>At,p$:()=>g,pd:()=>zt,r3:()=>ie,ru:()=>j,tV:()=>u,uI:()=>K,ug:()=>Ae,vZ:()=>Mt,w1:()=>le,w9:()=>Fe,xO:()=>vt,xb:()=>Ie,z$:()=>ae,zI:()=>me,zd:()=>xt});const e={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},n=function(qe,ct){if(!qe)throw a(ct)},a=function(qe){return new Error("Firebase Database ("+e.SDK_VERSION+") INTERNAL ASSERT FAILED: "+qe)},t=function(qe){const ct=[];let Yt=0;for(let it=0;it<qe.length;it++){let Be=qe.charCodeAt(it);Be<128?ct[Yt++]=Be:Be<2048?(ct[Yt++]=Be>>6|192,ct[Yt++]=63&Be|128):55296==(64512&Be)&&it+1<qe.length&&56320==(64512&qe.charCodeAt(it+1))?(Be=65536+((1023&Be)<<10)+(1023&qe.charCodeAt(++it)),ct[Yt++]=Be>>18|240,ct[Yt++]=Be>>12&63|128,ct[Yt++]=Be>>6&63|128,ct[Yt++]=63&Be|128):(ct[Yt++]=Be>>12|224,ct[Yt++]=Be>>6&63|128,ct[Yt++]=63&Be|128)}return ct},h={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(qe,ct){if(!Array.isArray(qe))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Yt=ct?this.byteToCharMapWebSafe_:this.byteToCharMap_,it=[];for(let Be=0;Be<qe.length;Be+=3){const gt=qe[Be],ue=Be+1<qe.length,Ge=ue?qe[Be+1]:0,ee=Be+2<qe.length,De=ee?qe[Be+2]:0;let Gn=(15&Ge)<<2|De>>6,_i=63&De;ee||(_i=64,ue||(Gn=64)),it.push(Yt[gt>>2],Yt[(3&gt)<<4|Ge>>4],Yt[Gn],Yt[_i])}return it.join("")},encodeString(qe,ct){return this.HAS_NATIVE_SUPPORT&&!ct?btoa(qe):this.encodeByteArray(t(qe),ct)},decodeString(qe,ct){return this.HAS_NATIVE_SUPPORT&&!ct?atob(qe):function(qe){const ct=[];let Yt=0,it=0;for(;Yt<qe.length;){const Be=qe[Yt++];if(Be<128)ct[it++]=String.fromCharCode(Be);else if(Be>191&&Be<224){const gt=qe[Yt++];ct[it++]=String.fromCharCode((31&Be)<<6|63&gt)}else if(Be>239&&Be<365){const ee=((7&Be)<<18|(63&qe[Yt++])<<12|(63&qe[Yt++])<<6|63&qe[Yt++])-65536;ct[it++]=String.fromCharCode(55296+(ee>>10)),ct[it++]=String.fromCharCode(56320+(1023&ee))}else{const gt=qe[Yt++],ue=qe[Yt++];ct[it++]=String.fromCharCode((15&Be)<<12|(63&gt)<<6|63&ue)}}return ct.join("")}(this.decodeStringToByteArray(qe,ct))},decodeStringToByteArray(qe,ct){this.init_();const Yt=ct?this.charToByteMapWebSafe_:this.charToByteMap_,it=[];for(let Be=0;Be<qe.length;){const gt=Yt[qe.charAt(Be++)],Ge=Be<qe.length?Yt[qe.charAt(Be)]:0;++Be;const De=Be<qe.length?Yt[qe.charAt(Be)]:64;++Be;const cn=Be<qe.length?Yt[qe.charAt(Be)]:64;if(++Be,null==gt||null==Ge||null==De||null==cn)throw new s;it.push(gt<<2|Ge>>4),64!==De&&(it.push(Ge<<4&240|De>>2),64!==cn&&it.push(De<<6&192|cn))}return it},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let qe=0;qe<this.ENCODED_VALS.length;qe++)this.byteToCharMap_[qe]=this.ENCODED_VALS.charAt(qe),this.charToByteMap_[this.byteToCharMap_[qe]]=qe,this.byteToCharMapWebSafe_[qe]=this.ENCODED_VALS_WEBSAFE.charAt(qe),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[qe]]=qe,qe>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(qe)]=qe,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(qe)]=qe)}}};class s extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const d=function(qe){const ct=t(qe);return h.encodeByteArray(ct,!0)},p=function(qe){return d(qe).replace(/\./g,"")},u=function(qe){try{return h.decodeString(qe,!0)}catch(ct){console.error("base64Decode failed: ",ct)}return null};function g(qe){return v(void 0,qe)}function v(qe,ct){if(!(ct instanceof Object))return ct;switch(ct.constructor){case Date:return new Date(ct.getTime());case Object:void 0===qe&&(qe={});break;case Array:qe=[];break;default:return ct}for(const Yt in ct)!ct.hasOwnProperty(Yt)||!y(Yt)||(qe[Yt]=v(qe[Yt],ct[Yt]));return qe}function y(qe){return"__proto__"!==qe}const A=()=>{try{return function b(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const qe=process.env.__FIREBASE_DEFAULTS__;return qe?JSON.parse(qe):void 0})()||(()=>{if(typeof document>"u")return;let qe;try{qe=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const ct=qe&&u(qe[1]);return ct&&JSON.parse(ct)})()}catch(qe){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${qe}`)}},V=()=>{var qe;return null===(qe=A())||void 0===qe?void 0:qe.config},X=qe=>{var ct;return null===(ct=A())||void 0===ct?void 0:ct[`_${qe}`]};class re{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((ct,Yt)=>{this.resolve=ct,this.reject=Yt})}wrapCallback(ct){return(Yt,it)=>{Yt?this.reject(Yt):this.resolve(it),"function"==typeof ct&&(this.promise.catch(()=>{}),1===ct.length?ct(Yt):ct(Yt,it))}}}function Q(qe,ct){if(qe.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const it=ct||"demo-project",Be=qe.iat||0,gt=qe.sub||qe.user_id;if(!gt)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const ue=Object.assign({iss:`https://securetoken.google.com/${it}`,aud:it,iat:Be,exp:Be+3600,auth_time:Be,sub:gt,user_id:gt,firebase:{sign_in_provider:"custom",identities:{}}},qe);return[p(JSON.stringify({alg:"none",type:"JWT"})),p(JSON.stringify(ue)),""].join(".")}function ae(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function K(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ae())}function k(){var qe;const ct=null===(qe=A())||void 0===qe?void 0:qe.forceEnvironment;if("node"===ct)return!0;if("browser"===ct)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function $(){return"object"==typeof self&&self.self===self}function j(){const qe="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof qe&&void 0!==qe.id}function R(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function le(){const qe=ae();return qe.indexOf("MSIE ")>=0||qe.indexOf("Trident/")>=0}function H(){return!0===e.NODE_CLIENT||!0===e.NODE_ADMIN}function pe(){try{return"object"==typeof indexedDB}catch{return!1}}function de(){return new Promise((qe,ct)=>{try{let Yt=!0;const it="validate-browser-context-for-indexeddb-analytics-module",Be=self.indexedDB.open(it);Be.onsuccess=()=>{Be.result.close(),Yt||self.indexedDB.deleteDatabase(it),qe(!0)},Be.onupgradeneeded=()=>{Yt=!1},Be.onerror=()=>{var gt;ct((null===(gt=Be.error)||void 0===gt?void 0:gt.message)||"")}}catch(Yt){ct(Yt)}})}function me(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class se extends Error{constructor(ct,Yt,it){super(Yt),this.code=ct,this.customData=it,this.name="FirebaseError",Object.setPrototypeOf(this,se.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ve.prototype.create)}}class ve{constructor(ct,Yt,it){this.service=ct,this.serviceName=Yt,this.errors=it}create(ct,...Yt){const it=Yt[0]||{},Be=`${this.service}/${ct}`,gt=this.errors[ct],ue=gt?function Ee(qe,ct){return qe.replace(Ye,(Yt,it)=>{const Be=ct[it];return null!=Be?String(Be):`<${it}?>`})}(gt,it):"Error";return new se(Be,`${this.serviceName}: ${ue} (${Be}).`,it)}}const Ye=/\{\$([^}]+)}/g;function wt(qe){return JSON.parse(qe)}function Wt(qe){return JSON.stringify(qe)}const Ut=function(qe){let ct={},Yt={},it={},Be="";try{const gt=qe.split(".");ct=wt(u(gt[0])||""),Yt=wt(u(gt[1])||""),Be=gt[2],it=Yt.d||{},delete Yt.d}catch{}return{header:ct,claims:Yt,data:it,signature:Be}},Fe=function(qe){const Yt=Ut(qe).claims;return!!Yt&&"object"==typeof Yt&&Yt.hasOwnProperty("iat")},yt=function(qe){const ct=Ut(qe).claims;return"object"==typeof ct&&!0===ct.admin};function ie(qe,ct){return Object.prototype.hasOwnProperty.call(qe,ct)}function Ce(qe,ct){if(Object.prototype.hasOwnProperty.call(qe,ct))return qe[ct]}function Ie(qe){for(const ct in qe)if(Object.prototype.hasOwnProperty.call(qe,ct))return!1;return!0}function dt(qe,ct,Yt){const it={};for(const Be in qe)Object.prototype.hasOwnProperty.call(qe,Be)&&(it[Be]=ct.call(Yt,qe[Be],Be,qe));return it}function Mt(qe,ct){if(qe===ct)return!0;const Yt=Object.keys(qe),it=Object.keys(ct);for(const Be of Yt){if(!it.includes(Be))return!1;const gt=qe[Be],ue=ct[Be];if(Xt(gt)&&Xt(ue)){if(!Mt(gt,ue))return!1}else if(gt!==ue)return!1}for(const Be of it)if(!Yt.includes(Be))return!1;return!0}function Xt(qe){return null!==qe&&"object"==typeof qe}function vt(qe){const ct=[];for(const[Yt,it]of Object.entries(qe))Array.isArray(it)?it.forEach(Be=>{ct.push(encodeURIComponent(Yt)+"="+encodeURIComponent(Be))}):ct.push(encodeURIComponent(Yt)+"="+encodeURIComponent(it));return ct.length?"&"+ct.join("&"):""}function xt(qe){const ct={};return qe.replace(/^\?/,"").split("&").forEach(it=>{if(it){const[Be,gt]=it.split("=");ct[decodeURIComponent(Be)]=decodeURIComponent(gt)}}),ct}function zt(qe){const ct=qe.indexOf("?");if(!ct)return"";const Yt=qe.indexOf("#",ct);return qe.substring(ct,Yt>0?Yt:void 0)}class bt{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let ct=1;ct<this.blockSize;++ct)this.pad_[ct]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(ct,Yt){Yt||(Yt=0);const it=this.W_;if("string"==typeof ct)for(let cn=0;cn<16;cn++)it[cn]=ct.charCodeAt(Yt)<<24|ct.charCodeAt(Yt+1)<<16|ct.charCodeAt(Yt+2)<<8|ct.charCodeAt(Yt+3),Yt+=4;else for(let cn=0;cn<16;cn++)it[cn]=ct[Yt]<<24|ct[Yt+1]<<16|ct[Yt+2]<<8|ct[Yt+3],Yt+=4;for(let cn=16;cn<80;cn++){const Gn=it[cn-3]^it[cn-8]^it[cn-14]^it[cn-16];it[cn]=4294967295&(Gn<<1|Gn>>>31)}let De,Ot,Be=this.chain_[0],gt=this.chain_[1],ue=this.chain_[2],Ge=this.chain_[3],ee=this.chain_[4];for(let cn=0;cn<80;cn++){cn<40?cn<20?(De=Ge^gt&(ue^Ge),Ot=1518500249):(De=gt^ue^Ge,Ot=1859775393):cn<60?(De=gt&ue|Ge&(gt|ue),Ot=2400959708):(De=gt^ue^Ge,Ot=3395469782);const Gn=(Be<<5|Be>>>27)+De+ee+Ot+it[cn]&4294967295;ee=Ge,Ge=ue,ue=4294967295&(gt<<30|gt>>>2),gt=Be,Be=Gn}this.chain_[0]=this.chain_[0]+Be&4294967295,this.chain_[1]=this.chain_[1]+gt&4294967295,this.chain_[2]=this.chain_[2]+ue&4294967295,this.chain_[3]=this.chain_[3]+Ge&4294967295,this.chain_[4]=this.chain_[4]+ee&4294967295}update(ct,Yt){if(null==ct)return;void 0===Yt&&(Yt=ct.length);const it=Yt-this.blockSize;let Be=0;const gt=this.buf_;let ue=this.inbuf_;for(;Be<Yt;){if(0===ue)for(;Be<=it;)this.compress_(ct,Be),Be+=this.blockSize;if("string"==typeof ct){for(;Be<Yt;)if(gt[ue]=ct.charCodeAt(Be),++ue,++Be,ue===this.blockSize){this.compress_(gt),ue=0;break}}else for(;Be<Yt;)if(gt[ue]=ct[Be],++ue,++Be,ue===this.blockSize){this.compress_(gt),ue=0;break}}this.inbuf_=ue,this.total_+=Yt}digest(){const ct=[];let Yt=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(let Be=this.blockSize-1;Be>=56;Be--)this.buf_[Be]=255&Yt,Yt/=256;this.compress_(this.buf_);let it=0;for(let Be=0;Be<5;Be++)for(let gt=24;gt>=0;gt-=8)ct[it]=this.chain_[Be]>>gt&255,++it;return ct}}function At(qe,ct){const Yt=new $e(qe,ct);return Yt.subscribe.bind(Yt)}class $e{constructor(ct,Yt){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Yt,this.task.then(()=>{ct(this)}).catch(it=>{this.error(it)})}next(ct){this.forEachObserver(Yt=>{Yt.next(ct)})}error(ct){this.forEachObserver(Yt=>{Yt.error(ct)}),this.close(ct)}complete(){this.forEachObserver(ct=>{ct.complete()}),this.close()}subscribe(ct,Yt,it){let Be;if(void 0===ct&&void 0===Yt&&void 0===it)throw new Error("Missing Observer.");Be=function Pe(qe,ct){if("object"!=typeof qe||null===qe)return!1;for(const Yt of ct)if(Yt in qe&&"function"==typeof qe[Yt])return!0;return!1}(ct,["next","error","complete"])?ct:{next:ct,error:Yt,complete:it},void 0===Be.next&&(Be.next=Ve),void 0===Be.error&&(Be.error=Ve),void 0===Be.complete&&(Be.complete=Ve);const gt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?Be.error(this.finalError):Be.complete()}catch{}}),this.observers.push(Be),gt}unsubscribeOne(ct){void 0===this.observers||void 0===this.observers[ct]||(delete this.observers[ct],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(ct){if(!this.finalized)for(let Yt=0;Yt<this.observers.length;Yt++)this.sendOne(Yt,ct)}sendOne(ct,Yt){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[ct])try{Yt(this.observers[ct])}catch(it){typeof console<"u"&&console.error&&console.error(it)}})}close(ct){this.finalized||(this.finalized=!0,void 0!==ct&&(this.finalError=ct),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Ve(){}const mt=function(qe,ct,Yt,it){let Be;if(it<ct?Be="at least "+ct:it>Yt&&(Be=0===Yt?"none":"no more than "+Yt),Be)throw new Error(qe+" failed: Was called with "+it+(1===it?" argument.":" arguments.")+" Expects "+Be+".")};function It(qe,ct){return`${qe} failed: ${ct} argument `}function _n(qe,ct,Yt,it){if((!it||Yt)&&"function"!=typeof Yt)throw new Error(It(qe,ct)+"must be a valid function.")}function Jt(qe,ct,Yt,it){if((!it||Yt)&&("object"!=typeof Yt||null===Yt))throw new Error(It(qe,ct)+"must be a valid context object.")}const ke=function(qe){const ct=[];let Yt=0;for(let it=0;it<qe.length;it++){let Be=qe.charCodeAt(it);if(Be>=55296&&Be<=56319){const gt=Be-55296;it++,n(it<qe.length,"Surrogate pair missing trail surrogate."),Be=65536+(gt<<10)+(qe.charCodeAt(it)-56320)}Be<128?ct[Yt++]=Be:Be<2048?(ct[Yt++]=Be>>6|192,ct[Yt++]=63&Be|128):Be<65536?(ct[Yt++]=Be>>12|224,ct[Yt++]=Be>>6&63|128,ct[Yt++]=63&Be|128):(ct[Yt++]=Be>>18|240,ct[Yt++]=Be>>12&63|128,ct[Yt++]=Be>>6&63|128,ct[Yt++]=63&Be|128)}return ct},Ae=function(qe){let ct=0;for(let Yt=0;Yt<qe.length;Yt++){const it=qe.charCodeAt(Yt);it<128?ct++:it<2048?ct+=2:it>=55296&&it<=56319?(ct+=4,Yt++):ct+=3}return ct},pt=1e3,tn=2,ot=144e5,Et=.5;function z(qe,ct=pt,Yt=tn){const it=ct*Math.pow(Yt,qe),Be=Math.round(Et*it*(Math.random()-.5)*2);return Math.min(ot,it+Be)}function Qe(qe){return qe&&qe._delegate?qe._delegate:qe}},19711:(oe,x,i)=>{"use strict";i.d(x,{WO:()=>le,hX:()=>V,$2:()=>R});var e=i(94650),n=i(36895),a=i(50727),t=i(54968),l=i(56451),h=i(39300),s=i(34986),d=i(54482),p=i(25403),u=i(38421),v=i(82805);class b{constructor(){this.idValue=new Date,this.idlingValue=!1}id(H){if(void 0!==H){if(!H)throw new Error("A value must be specified for the ID.");this.idValue=H}return this.idValue}idling(H){return void 0!==H&&(this.idlingValue=H),this.idlingValue}now(){return new Date}isExpired(){const H=this.last();return null!=H&&H<=this.now()}}class S{constructor(H,N){this.source=H,H.initialize&&H.initialize(N)}subscribe(H){this.sub=this.source.onInterrupt.subscribe(H)}unsubscribe(){this.sub.unsubscribe(),this.sub=null}resume(){this.source.attach()}pause(){this.source.detach()}}class E{}class D{constructor(){this.storageMap={}}get length(){return Object.keys(this.storageMap).length}clear(){this.storageMap={}}getItem(H){return typeof this.storageMap[H]<"u"?this.storageMap[H]:null}key(H){return Object.keys(this.storageMap)[H]||null}removeItem(H){this.storageMap[H]=void 0}setItem(H,N){this.storageMap[H]=N}}let A=(()=>{class T{constructor(){this.storage=this.getStorage()}getStorage(){try{const N=localStorage;return N.setItem("ng2IdleStorage",""),N.removeItem("ng2IdleStorage"),N}catch{return new D}}getItem(N){return this.storage.getItem("ng2Idle."+N)}removeItem(N){this.storage.removeItem("ng2Idle."+N)}setItem(N,pe){this.storage.setItem("ng2Idle."+N,pe)}_wrapped(){return this.storage}}return T.\u0275fac=function(N){return new(N||T)},T.\u0275prov=e.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac}),T})(),P=(()=>{class T extends b{constructor(N){super(),this.localStorage=N,this.idleName="main"}last(N){return void 0!==N&&this.setExpiry(N),this.getExpiry()}idling(N){return void 0!==N&&this.setIdling(N),this.getIdling()}getIdleName(){return this.idleName}setIdleName(N){N&&(this.idleName=N)}getExpiry(){const N=this.localStorage.getItem(this.idleName+".expiry");return N?new Date(parseInt(N,10)):null}setExpiry(N){N?this.localStorage.setItem(this.idleName+".expiry",N.getTime().toString()):this.localStorage.removeItem(this.idleName+".expiry")}getIdling(){const N=this.localStorage.getItem(this.idleName+".idling");return!!N&&"true"===N}setIdling(N){this.localStorage.setItem(this.idleName+".idling",N?N.toString():"false")}}return T.\u0275fac=function(N){return new(N||T)(e.\u0275\u0275inject(A))},T.\u0275prov=e.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac}),T})();var B=(()=>{return(T=B||(B={}))[T.disabled=0]="disabled",T[T.idle=1]="idle",T[T.notIdle=2]="notIdle",B;var T})();let V=(()=>{class T{constructor(N,pe,de,me){this.expiry=N,this.zone=pe,this.platformId=me,this.idle=1200,this.timeoutVal=30,this.autoResume=B.idle,this.interrupts=new Array,this.running=!1,this.keepaliveEnabled=!1,this.onIdleStart=new e.EventEmitter,this.onIdleEnd=new e.EventEmitter,this.onTimeoutWarning=new e.EventEmitter,this.onTimeout=new e.EventEmitter,this.onInterrupt=new e.EventEmitter,de&&(this.keepaliveSvc=de,this.keepaliveEnabled=!0),this.setIdling(!1)}setIdleName(N){if(!(this.expiry instanceof P))throw new Error("Cannot set expiry key name because no LocalStorageExpiry has been provided.");this.expiry.setIdleName(N)}getKeepaliveEnabled(){return this.keepaliveEnabled}setKeepaliveEnabled(N){if(!this.keepaliveSvc)throw new Error("Cannot enable keepalive integration because no KeepaliveSvc has been provided.");return this.keepaliveEnabled=N}getTimeout(){return this.timeoutVal}setTimeout(N){if(!1===N)this.timeoutVal=0;else{if(!("number"==typeof N&&N>=0))throw new Error("'seconds' can only be 'false' or a positive number.");this.timeoutVal=N}return this.timeoutVal}getIdle(){return this.idle}setIdle(N){if(N<=0)throw new Error("'seconds' must be greater zero");return this.idle=N}getAutoResume(){return this.autoResume}setAutoResume(N){return this.autoResume=N}setInterrupts(N){this.clearInterrupts();const pe=this;for(const de of N){const q=new S(de,{platformId:this.platformId});q.subscribe(se=>{pe.interrupt(se.force,se.innerArgs)}),this.interrupts.push(q)}return this.interrupts}getInterrupts(){return this.interrupts}clearInterrupts(){for(const N of this.interrupts)N.pause(),N.unsubscribe();this.interrupts.length=0}isRunning(){return this.running}isIdling(){return this.idling}watch(N){this.safeClearInterval("idleHandle"),this.safeClearInterval("timeoutHandle");const pe=this.timeoutVal?this.timeoutVal:0;if(!N){const me=new Date(this.expiry.now().getTime()+1e3*(this.idle+pe));this.expiry.last(me)}this.idling&&this.toggleState(),this.running||(this.startKeepalive(),this.toggleInterrupts(!0)),this.running=!0;const de=()=>{this.zone.run(()=>{const me=this.getExpiryDiff(pe);me>0?(this.safeClearInterval("idleHandle"),this.setIdleIntervalOutsideOfZone(de,me)):this.toggleState()})};this.setIdleIntervalOutsideOfZone(de,1e3*this.idle)}setIdleIntervalOutsideOfZone(N,pe){this.zone.runOutsideAngular(()=>{this.idleHandle=setInterval(N,pe)})}stop(){this.stopKeepalive(),this.toggleInterrupts(!1),this.safeClearInterval("idleHandle"),this.safeClearInterval("timeoutHandle"),this.setIdling(!1),this.running=!1,this.expiry.last(null)}timeout(){this.stopKeepalive(),this.toggleInterrupts(!1),this.safeClearInterval("idleHandle"),this.safeClearInterval("timeoutHandle"),this.setIdling(!0),this.running=!1,this.countdown=0,this.onTimeout.emit(null)}interrupt(N,pe){if(this.running){if(this.timeoutVal&&this.expiry.isExpired())return void this.timeout();this.onInterrupt.emit(pe),(!0===N||this.autoResume===B.idle||this.autoResume===B.notIdle&&!this.expiry.idling())&&this.watch(N)}}setIdling(N){this.idling=N,this.expiry.idling(N)}toggleState(){this.setIdling(!this.idling),this.idling?(this.onIdleStart.emit(null),this.stopKeepalive(),this.timeoutVal>0&&(this.countdown=this.timeoutVal,this.doCountdown(),this.setTimoutIntervalOutsideZone(()=>{this.doCountdownInZone()},1e3))):(this.toggleInterrupts(!0),this.onIdleEnd.emit(null),this.startKeepalive()),this.safeClearInterval("idleHandle")}setTimoutIntervalOutsideZone(N,pe){this.zone.runOutsideAngular(()=>{this.timeoutHandle=setInterval(()=>{N()},pe)})}toggleInterrupts(N){for(const pe of this.interrupts)N?pe.resume():pe.pause()}getExpiryDiff(N){const pe=this.expiry.now();return(this.expiry.last()||pe).getTime()-pe.getTime()-1e3*N}doCountdownInZone(){this.zone.run(()=>{this.doCountdown()})}doCountdown(){if(this.getExpiryDiff(this.timeoutVal)>0)return this.safeClearInterval("timeoutHandle"),void this.interrupt(!0);if(this.idling){if(this.countdown<=0)return void this.timeout();this.onTimeoutWarning.emit(this.countdown),this.countdown--}}safeClearInterval(N){const pe=this[N];null!==pe&&typeof pe<"u"&&(clearInterval(this[N]),this[N]=null)}startKeepalive(){!this.keepaliveSvc||!this.keepaliveEnabled||(this.running&&this.keepaliveSvc.ping(),this.keepaliveSvc.start())}stopKeepalive(){!this.keepaliveSvc||!this.keepaliveEnabled||this.keepaliveSvc.stop()}ngOnDestroy(){this.stop(),this.clearInterrupts()}}return T.\u0275fac=function(N){return new(N||T)(e.\u0275\u0275inject(b),e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(E,8),e.\u0275\u0275inject(e.PLATFORM_ID,8))},T.\u0275prov=e.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac}),T})();class X{constructor(H,N,pe=!1){this.source=H,this.innerArgs=N,this.force=pe}}class re{constructor(H,N){this.attachFn=H,this.detachFn=N,this.isAttached=!1,this.onInterrupt=new e.EventEmitter}attach(){!0!==Zone.current.get("isAngularZone")?(!this.isAttached&&this.attachFn&&this.attachFn(this),this.isAttached=!0):Zone.current.parent.run(()=>this.attach())}detach(){this.isAttached&&this.detachFn&&this.detachFn(this),this.isAttached=!1}}class ae extends re{constructor(H,N,pe){super(null,null),this.target=H,this.events=N,this.opts=pe,this.eventSubscription=new a.w0,"number"==typeof this.opts&&(this.opts={throttleDelay:this.opts,passive:!1}),this.opts=this.opts||{passive:!1,throttleDelay:500},null==this.opts.throttleDelay&&(this.opts.throttleDelay=500),this.throttleDelay=this.opts.throttleDelay,this.passive=!!this.opts.passive}initialize(H){if(H?.platformId&&(0,n.isPlatformServer)(H.platformId))return;const N="function"==typeof this.target?this.target():this.target,pe=this.passive?{passive:!0}:null,de=this.events.split(" ").map(q=>(0,t.R)(N,q,pe));this.eventSrc=(0,l.T)(...de),this.eventSrc=this.eventSrc.pipe((0,h.h)(q=>!this.filterEvent(q))),this.throttleDelay>0&&(this.eventSrc=this.eventSrc.pipe(function y(T,H=s.z,N){const pe=(0,v.H)(T,H);return function g(T,H){return(0,d.e)((N,pe)=>{const{leading:de=!0,trailing:me=!1}=H??{};let q=!1,se=null,ve=null,Ee=!1;const Ye=()=>{ve?.unsubscribe(),ve=null,me&&(Ut(),Ee&&pe.complete())},wt=()=>{ve=null,Ee&&pe.complete()},Wt=nt=>ve=(0,u.Xf)(T(nt)).subscribe((0,p.x)(pe,Ye,wt)),Ut=()=>{if(q){q=!1;const nt=se;se=null,pe.next(nt),!Ee&&Wt(nt)}};N.subscribe((0,p.x)(pe,nt=>{q=!0,se=nt,(!ve||ve.closed)&&(de?Ut():Wt(nt))},()=>{Ee=!0,(!(me&&q&&ve)||ve.closed)&&pe.complete()}))})}(()=>pe,N)}(this.throttleDelay)));const me=q=>this.onInterrupt.emit(new X(this,q));this.attachFn=()=>this.eventSubscription=this.eventSrc.subscribe(me),this.detachFn=()=>this.eventSubscription.unsubscribe()}filterEvent(H){return!1}get options(){return{passive:this.passive,throttleDelay:this.throttleDelay}}}class K extends ae{constructor(H,N){super(()=>document.documentElement,H,N)}filterEvent(H){return!("mousemove"!==H.type||!(H.originalEvent&&0===H.originalEvent.movementX&&0===H.originalEvent.movementY||void 0!==H.movementX&&!H.movementX)&&H.movementY)}}class k extends ae{constructor(H,N){super(()=>window,H,N)}}class $ extends k{constructor(H=500){super("storage",H)}filterEvent(H){return!(H.key&&H.key.indexOf("ng2Idle.")>=0&&H.key.indexOf(".expiry")>=0)}}let R=(()=>{class T{static forRoot(){return{ngModule:T,providers:[P,{provide:b,useExisting:P},V]}}}return T.\u0275fac=function(N){return new(N||T)},T.\u0275mod=e.\u0275\u0275defineNgModule({type:T}),T.\u0275inj=e.\u0275\u0275defineInjector({providers:[A]}),T})();const le=function U(T){return[new K("mousemove keydown DOMMouseScroll mousewheel mousedown touchstart touchmove scroll",T),new $(T)]}()},11828:(oe,x,i)=>{"use strict";i.d(x,{Z:()=>a,d:()=>t});var e=i(61135),n=i(94650);let a=(()=>{class l{constructor(s,d){this.name=s,this.theme=d}static getUnleashUrl(){return this.unleashConfig.proxyUrl}static getUnleashClientKey(){return this.unleashConfig.clientKey}static getFeatureToggleStatus(s){return this.featureToggles.filter(d=>d.name===s)[0]?.enabled||!1}}return l.enableSSL=!0,l.production=!0,l.sentrySwitchOn=!1,l.isPwaMode=!1,l.isPromotionActive=!1,l.google={authCallbackURL:"",autoCompleteKey:"",socialClientId:""},l.appleSignInOptions={clientId:"",redirectURI:"",scopes:""},l.apiKey={header:"",key:""},l.mockApiKey={header:"",key:""},l.firebaseConfig={apiKey:"",authDomain:"",projectId:"",storageBucket:"",messagingSenderId:"",appId:"",measurementId:""},l.unleashConfig={proxyUrl:"",appName:"",clientKey:""},l})(),t=(()=>{class l{constructor(){this.settings=new a("DrCarmen | Computer Assisted Remote Medical Emergency Network","carmen"),this.breadcrumbSource=new e.X(null),this.currentBreadcrumb$=this.breadcrumbSource.asObservable()}}return l.\u0275fac=function(s){return new(s||l)},l.\u0275prov=n.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac}),l})()},22539:(oe,x,i)=>{"use strict";i.d(x,{P:()=>a});var e=i(51588),n=i(11828);class a{constructor(l){l&&Object.assign(this,l),this.id||(this.id=this.storageKey||(0,e.Z)()),this.name=this.name||this.filename,this.filename=this.filename||this.name}get url(){return this.storageKey?n.Z.images+this.storageKey:this.localUrl?this.localUrl:"assets/images/products/default/no-img-medium.jpg"}get styleUrl(){return this.storageKey?`url(${n.Z.images+this.storageKey})`:this.localStyle?this.localStyle:"url(assets/images/products/default/no-img-medium.jpg)"}get _dto(){return{id:this.id,name:this.name,filename:this.filename,storageKey:this.storageKey,groupId:this.groupId,size:this.size,type:this.type,file:this.file}}}},88069:(oe,x,i)=>{"use strict";i.d(x,{c:()=>n});var e=i(11828);class n{constructor(){this.domains=e.Z.commonDomains,this.extensions=e.Z.commonExtensions||[]}checkForTypo(t){const[l,h]=t.split("@"),[s,d]=h.split(".");let p=this.checkForCloseMatch(s,this.domains)||s,u=this.checkForCloseMatch(d,this.extensions)||d,g=`${l}@${p}`;return u&&""!==u&&(g+=`.${u}`),g}checkForCloseMatch(t,l){for(const h of l){if(t===h)return;if(t.includes(h))return h;const s=this.checkAllTypos(h,t);if(s)return s}}checkAllTypos(t,l){for(let h=1;h<t.length;h++){const s=t.substring(0,h),d=t.substring(h),p=new RegExp(`${s}.${d.substring(1)}`);if(p.test(l))return l.replace(p,t);if(t.substring(0,t.length-1)===l.substring(0,t.length-1))return l.substring(0,t.length-1)+t.substring(t.length-1);const u=new RegExp(`${s}.${d}`);if(u.test(l))return l.replace(u,t);const g=this.getSwitchedLetters(t,h);if(l.includes(g))return`${t}`;if("mail"!==d||"hot"===s){const v=new RegExp(`${s}{0}${d}|${s}${d}{0}`);if(v.test(l))return l.replace(v,t)}}return""}getSwitchedLetters(t,l){return[t.substring(0,l-1),t.charAt(l),t.charAt(l-1),t.substring(l+1)].join("")}}},1166:(oe,x,i)=>{"use strict";i.d(x,{U:()=>n,a:()=>e});class e{constructor(t){t&&Object.assign(this,t)}get displayedAmount(){return this.totalAmount??this.amount}}var n=(()=>{return(a=n||(n={})).BUSINESS="BUSINESS",a.CARMEN_SERVICES="CARMEN",a.DELIVERY="TOTAL_DELIVERY",a.CARD_PAYMENT="CARD",a.CASH_PAYMENT="CASH",a.OPEN_PACKAGE="OPEN PACKAGE",a.CASH_ON_DELIVERY="CASH ON DELIVERY",a.PICKUP="PICKUP",a.EMPOWERED_DELIVERY="EMPOWERED_DELIVERY",a.PRESCRIPTION="PRESCRIPTION",a.HANDLING_AND_PACKAGING="HANDLING AND PACKAGING",a.OTHER="OTHER",a.SGR="SGR",n;var a})()},94467:(oe,x,i)=>{"use strict";i.d(x,{j:()=>a});var e=i(28918),n=i(40777);class a extends n.S{constructor(l){super(l),this.productType=e.kvN.PHARMA,l&&Object.assign(this,l)}toUserCartProductDto(){return{productSlug:this.productSlug,businessId:this.businessExternalId,quantity:this.quantity,attachmentStorageKey:this.attachmentStorageKey,prescriptionOnUser:this.isPrescriptionOnUser||!1,mustConfirmAge:this.mustConfirmAge,sgrValue:this.sgrValue}}toGuestCartProductDto(){return{productSlug:this.productSlug,businessId:this.businessExternalId,quantity:this.quantity,attachmentStorageKey:this.attachmentStorageKey,prescriptionOnUser:this.isPrescriptionOnUser,mustConfirmAge:this.mustConfirmAge,sgrValue:this.sgrValue}}get priceTotal(){return this.price*this.quantity}get isDrug(){return this.issuing&&this.productType===e.kvN.PHARMA}get requiresPrescription(){return["PR","PRF","P-RF","P6L","P-6L","PL","PS"].includes(this.drugIssuing)}get requiresRetainedPrescription(){return["PRF","P-RF"].includes(this.drugIssuing)}}},51877:(oe,x,i)=>{"use strict";i.d(x,{A:()=>h});var e=i(28918),n=i(1166),a=i(94467),t=i(21803);class l extends t.W{constructor(p){super(),this.items=[],this.fees=[],this.comment="",p&&(Object.assign(this,p),this.items=this.items.map(u=>new a.j(u)),this.fees=this.fees.map(u=>new n.a(u)),p.deliveryType&&p.deliveryType!==e.lFT.PICKUP&&(this.deliveryType=e.lFT.COURIER))}getDeliveryFees(){return this.fees?.filter(p=>p.type===n.U.DELIVERY)??[]}getEmpoweredDeliveryFees(){return this.fees?.filter(p=>p.type===n.U.EMPOWERED_DELIVERY)??[]}getDeliveryFeesAmount(){const p=this.getDeliveryFees();return p?.length&&p?.length>0?p?.reduce((u,g)=>u+g.displayedAmount,0):0}getEmpoweredDeliveryFeesAmount(){const p=this.getEmpoweredDeliveryFees().length?this.getEmpoweredDeliveryFees().reduce((u,g)=>u+g.displayedAmount,0):0;return this.getPrescriptionFeesAmount()+this.getDeliveryFeesAmount()+p}containsDrugs(){return this.items.some(p=>p.isDrug)}areAllRestaurantProducts(){return!this.items?.find(p=>!p.categoryId.startsWith(e.Lkn))}getTotalBusinessCart(p=!1){return p?this.totalCartValue:this.totalCartValue-this.getDeliveryFeesAmount()+this.getEmpoweredDeliveryFeesAmount()}}class h extends t.W{constructor(p){super(),this.paymentType=e.uG_.CASH,this.fees=[],this.businessCarts=[],this.infoFees=[],this.isCardSaved=!1,this.cardId=null,p&&(Object.assign(this,p),this.businessCarts=this.businessCarts.map(u=>new l(u)),this.fees=this.fees.map(u=>new n.a(u)))}get allItems(){return this.businessCarts.map(p=>{const u=p.items;return u.forEach(g=>g.businessExternalId=p.businessProfile.businessId),u}).reduce((p,u)=>p.concat(u),[]).sort((p,u)=>p.isDrug===u.isDrug?0:p.isDrug?1:-1)}get count(){const p=this.allItems;return{offers:p.length,quantity:p.reduce((u,g)=>u+g.quantity,0),stock:p.reduce((u,g)=>u+g.stock,0),feeTotal:this.fees.reduce((u,g)=>u+g.amount,0)}}findProductToBeAddedInCart(p){return this.allItems.find(u=>u.businessExternalId===p.businessId&&u.productSlug===p.productSlug)}findSameProductToBeAddedFromDifferentProvider(p){return this.allItems.find(u=>u.businessExternalId!==p.businessId&&u.productSlug===p.productSlug)}hasPrescriptionFor(p){return this.allItems.filter(u=>u.productSlug===p.productSlug&&u.businessExternalId===p.businessExternalId&&!!u.attachmentStorageKey).map(u=>u.attachmentStorageKey)}productsForPrescription(p){return this.allItems.filter(u=>u.attachmentStorageKey===p.id)}toCheckoutDto(){return{county:this.county,city:this.city,deliveryAddressId:this.deliveryAddressId,businessCarts:this.businessCarts,fees:this.fees,paymentType:this.paymentType,mustConfirmAge:this.mustConfirmAge,cardId:this.cardId}}getTotalCart(p=!1){return p?this.totalValue:this.totalValue-this.getDeliveryFeesAmount()+this.getEmpoweredDeliveryFeesAmount()}getFeePerContainer(){return this.infoFees.length?this.infoFees.find(p=>p.type===s.EXTRA_CONTAINER).feeValue/this.businessCarts?.length/100:0}}var s=(()=>((s||(s={})).EXTRA_CONTAINER="CONTAINER",s))()},43651:(oe,x,i)=>{"use strict";i.d(x,{W:()=>n});var e=i(28918);class n{constructor(t){this.children=[],t&&Object.assign(this,t),this.children&&(this.children=this.children.filter(l=>!l.empty||l.childrenCount>0).map(l=>(l.parentId=this.categoryId,new n(l))))}static createFromAggregationAtc(t){const l=new n;return l.categoryId=t.categoryId,l.name=t.name,l.description=t.name,l}get url(){return this.categoryId===e.Lkn?`/${e.nUJ.RESTAURANTS}`:this.routerLink.join("/")}get routerLink(){return this._routerLink||(this._routerLink=[`/${e.Z2M.PRODUCTS}`,e.VLR.slugify(this.name||this.description)+"-"+this.categoryId]),this._routerLink}isSubcategoryHidden(){return!!e.V_c?.find(t=>t===this.categoryId)}}},40777:(oe,x,i)=>{"use strict";i.d(x,{S:()=>n});var e=i(28918);class n{constructor(t){t&&Object.assign(this,t)}get routerLink(){return[`/${e.Z2M.PRODUCTS}`,[e.VLR.slugify(this.categoryName),this.categoryId].join("-"),this.productSlug]}}},32420:(oe,x,i)=>{"use strict";i.d(x,{Cu:()=>g,jO:()=>S,kt:()=>v,qN:()=>y,u:()=>D,xs:()=>d});var e=i(51588),n=i(28918),a=i(17596),t=i(22539),l=i(11828),h=i(94467);const s=["PR","PRF","P-RF","P6L","P-6L","P_6L","PL","PS"];class d{constructor(P,B){this.atcs=[],this.texts=[],this.packagings=[],this.priceMin=0,this.priceMax=0,this.offers=[],this.packagingsWithOffers=[],this.images=[new y],this.ratingsCount=0,this.ratingsValue=0,this.reviews=[],this._fromProductRequest=!1,P&&Object.assign(this,P),this.atcs=this.atcs.map(V=>new p(V)),this.packagings=this.packagings.map(V=>new g(this,V)),this._fromProductRequest=B||!1,this.refresh()}get categorySlug(){if(!this._categorySlug){let P=this.atc||"altele";this.atcs.length&&(P=this.atcs[this.atcs.length-1].description),this._categorySlug=[n.VLR.slugify(P),this.atc].join("-")}return this._categorySlug}get mainCategory(){return this.atcs[0].atc}get routerLink(){return this._routerLink||(this._routerLink=this.categorySlug?[`/${n.Z2M.PRODUCTS}`,this.categorySlug,this.slug]:["/"]),this._routerLink}get price(){return this.priceMin}get isDrug(){return!!this?.issuing}get requiresPrescription(){return s.includes(this.issuing)}get requiresRetainedPrescription(){return this.requiresPrescription&&["PRF","P-RF"].includes(this.issuing)}get name(){return this.registered_name}get generalDescription(){return this.general_note||this.general_note_desc||this.indications||""}get publicUrl(){return l.Z.frontend+this.routerLink.join("/").substring(1)}getPackagingForUserCity(P){return this.packagings.filter(B=>!!B.drugOffers.filter(V=>V.city===P).length)}refresh(){this.offers=[],this.packagingsWithOffers=[],this.packagings.forEach(B=>{B.drugOffers.forEach(V=>{this.offers.push(V)}),B.drugOffers.length&&this.packagingsWithOffers.push(B)}),this.offers.length&&(this.bestOffer=this.offers.sort((B,V)=>B.price-V.price)?.find(B=>B.inStock),this.bestOffer||(this.bestOffer=this.offers.sort((B,V)=>B.price-V.price)?.find(B=>B.price>0)),this.priceMin=Math.min.apply(Math,this.packagings.filter(B=>!!B.priceMin).map(B=>B.priceMin)),this.priceMax=Math.max.apply(Math,this.packagings.filter(B=>!!B.priceMax).map(B=>B.priceMax)));let P=[];this.packagings.filter(B=>B.photos.length>0).forEach(B=>{P=this.bestOffer&&this.bestOffer.packageName===B.wrapping&&B.photos.length?B.images.concat(P):P.concat(B.images)}),P.length&&(this.images=P)}nextCheapestOffer(P,B){let V;const X=P.packaging.drugOffers.filter(re=>re.businessEmail!==B).map(re=>re.price);return X.length&&(V=X.sort((re,Q)=>re-Q).shift(),V>=P.price)?{discount:100-P.price/V*100,price:V}:0}getDiscount(P,B){if(0===B)return 0;B*=100;const X=P.packaging.drugOffers.map(re=>re.price).sort((re,Q)=>re-Q).shift();return X>=B?100-B/X*100:0}toFavouriteProductPayload(){return{id:this.packagings[0]?.slug||this.bestOffer?.productSlug||this.productSlug||this.slug,slug:this.slug,packagings:this.packagings.map(B=>({productSlug:B?.slug||this.productSlug,inFavouriteLists:B?.inFavouriteLists||{}}))}}}class p{constructor(P){P&&Object.assign(this,P)}}class g{constructor(P,B){this.drugOffers=[],this.photos=[],this.images=[new y],this.product=P,B&&Object.assign(this,B),this.drugName=this.product.registered_name,this.productSlug=this.product.slug,this.drugOffers=this.drugOffers.map(V=>new v(this,V)),this.refresh()}get price(){return this.priceMin}get id(){return[this.productSlug,this.slug].join("#")}refresh(){this.drugOffers.length&&(this.priceMin=Math.min.apply(Math,this.drugOffers.filter(P=>P.inStock).map(P=>P.price)),this.priceMax=Math.max.apply(Math,this.drugOffers.filter(P=>P.inStock).map(P=>P.price)),(!this.priceMin||this.priceMin===1/0)&&(this.priceMin=Math.min.apply(Math,this.drugOffers.map(P=>P.price))),(!this.priceMax||this.priceMax===1/0)&&(this.priceMax=Math.max.apply(Math,this.drugOffers.map(P=>P.price))),this.bestOffer=this.drugOffers?.find(P=>P.price===this.priceMin)),this.photos.length&&(this.images=y.imagesFromAttachments(this.photos,this.product._fromProductRequest))}}class v{constructor(P,B){this.packaging=P,B&&Object.assign(this,B),this.businessProfile&&(this.businessProfile=new a.eL(this.businessProfile)),this.businessName=this.businessName||this.businessSlug,this.packageName=this.packaging.wrapping,this.productSlug=this.packaging.productSlug,this.drugName=this.packaging.drugName,this.productCategory=this.packaging&&this.packaging.product&&this.packaging.product.atc?this.packaging.product.atc:null}get id(){return[this.businessExternalId,this.productSlug].join("#")}get isDrug(){return this.packaging.product.isDrug}getDrugAndPackageName(){return this.drugName.split(" - ").includes(this.packageName)?this.drugName:[this.drugName,this.packageName].join(" - ")}toCartProduct(P=1,B,V){const X=this.packaging.product.atc;let re=X;const Q=this.packaging.product.atcs,ae=this.packaging?.sgrData?.value?this.packaging.sgrData.value:this.packaging?.product?.sgrValue?this.packaging.product.sgrValue:0;let K=!1;return Q?.length?(re=Q[Q.length-1].description,K=!!Q?.find(k=>!0===k.mustConfirmAge)):K=this.packaging.product.mustConfirmAge||!1,new h.j({businessExternalId:this.businessExternalId,productSlug:this.productSlug,name:this.drugName,price:this.price,photoUrl:this.packaging.images[0].medium,categoryId:X,categoryName:re,attachmentStorageKey:B,quantity:P,isPrescriptionOnUser:V,mustConfirmAge:K,sgrValue:ae})}}class y{constructor(P){this.name="no-img.png",this.thumbnail="assets/images/products/default/no-img-thumbnail.jpg",this.medium="assets/images/products/default/no-img-medium.jpg",this.large="assets/images/products/default/no-img-large.jpg",this.original="assets/images/products/default/no-img-medium.jpg",this.storageKey=null,this.groupId=null,this.blank=!0,P&&(Object.assign(this,P),this.blank=!1),this.id=(0,e.Z)()}static imagesFromAttachments(P,B){const V=[],X={};return P.forEach(re=>{const Q=re.groupId||re.filename||re.name||Math.round(1e5*Math.random())+"-img.jpg";X[Q]||(X[Q]=[]),X[Q].push(re)}),Object.keys(X).forEach(re=>{const Q=new y({blank:!1});X[re].forEach(ae=>{ae.size=ae.size||ae.photoSize,ae.size||(ae.size="MEDIUM"),Q[ae.size.toLowerCase()]=ae.groupId&&!B?l.Z.productImages+ae.name:l.Z.images+ae.storageKey,Q.name=ae.name,Q.storageKey=ae.storageKey,Q.type="MAIN_PHOTO"===ae.type?"main":"detail"}),"main"===Q.type?V.unshift(Q):V.push(Q)}),V}static dataURItoBlob(P){let B;B=P.split(",")[0].indexOf("base64")>=0?atob(P.split(",")[1]):unescape(P.split(",")[1]);const V=P.split(",")[0].split(":")[1].split(";")[0],X=new Uint8Array(B.length);for(let re=0;re<B.length;re++)X[re]=B.charCodeAt(re);return new Blob([X],{type:V})}static blobToFile(P,B){const V=P;return V.lastModifiedDate=new Date,V.name=B,P}static canvasToFile(P,B){return y.blobToFile(y.dataURItoBlob(P.toDataURL()),B)}static getFile(P,B){P.setAttribute("crossOrigin","anonymous");const V=document.createElement("canvas");V.width=P.naturalWidth,V.height=P.naturalHeight;const X=V.getContext("2d");return X.strokeStyle="white",X.lineWidth=2,X.fillStyle="#fff",X.fillRect(0,0,V.width,V.height),V.style.opacity="0.2",X.drawImage(P,0,0,P.naturalWidth,P.naturalHeight,0,0,V.width,V.height),y.canvasToFile(V,B)}_attachmentDto(){return new t.P({name:this.name,filename:this.name,size:"ORIGINAL",storageKey:this.storageKey,type:"main"===this.type?"MAIN_PHOTO":"DETAIL_PHOTO"})}}class S{constructor(P){this.categories=[],this.cims=[],this.text=null,this.wrappingText=null,this.withPhoto=null,this.inStock=null,this.productType=null,this.newOffer=null,this.issuing=null,this.location=null,this.price=[],this.pharmaceutical_form=null,this.active_ingredient=null,this.qrbarcodes=[],this.businessEmail=null,this.businessExternalId=null,this.promotion=null,this.inStockWithPrice=null,this.businessNames=[],this.pagination={page:0,size:10,sort:"_score,desc"},P&&Object.assign(this,P)}toSearchRequestDto(){return new n.e3n({body:this.stripEmpty(new E({categories:this.categories,cims:this.cims,qrbarcodes:this.qrbarcodes,textSearch:this.text,wrappingSearch:this.wrappingText,inStock:this.inStock,productType:this.productType,withPhoto:this.withPhoto,newOffer:this.newOffer,issuing:this.issuing,location:this.location,inStockWithPrice:this.inStockWithPrice,businessExternalId:this.businessExternalId??null,price:2===this.price.length?[100*this.price[0],100*this.price[1]]:[],pharmaceutical_form:this.pharmaceutical_form,active_ingredient:this.active_ingredient,businessEmail:this.businessEmail,promotion:this.promotion,businessNames:this.businessNames})),pagination:this.pagination})}stripEmpty(P){const B=n.VLR.extend({},P,!0);return["categories","cims","price","qrbarcodes","businessNames"].forEach(V=>{B[V].constructor===Array&&!B[V].length&&delete B[V]}),["inStock","withPhoto","newOffer","promotion"].forEach(V=>{(!1===B[V]||"false"===B[V])&&delete B[V]}),B}}class E{constructor(P){this.categories=[],this.inStock=null,this.productType=null,this.withPhoto=null,this.promotion=null,this.newOffer=null,this.textSearch=null,this.registered_name=null,this.active_ingredient=null,this.issuing=null,this.cims=[],this.location=null,this.pharmaceutical_form=null,this.price=[],this.producer=null,this.qrbarcodes=null,this.storageKey=null,this.wrapping=null,this.businessExternalId=null,this.wrappingSearch=null,this.last_added_products=null,this.businessEmail=null,this.inStockWithPrice=null,this.businessNames=[],P&&Object.assign(this,P)}}var D=(()=>{return(A=D||(D={}))["Not returnable"]="Non-returnabil",A["Child restriction"]="Interzis copiilor",A["Minor restriction"]="Interzis minorilor",A.Bio="Bio",A.Vegan="Vegetarian",A["Cash only"]="Doar numerar",A.Otc="F\u0103r\u0103 re\u021bet\u0103",A.Btc="Necesit\u0103 re\u021bet\u0103",A.Rx="Re\u021bet\u0103 re\u021binut\u0103 \xeen farmacie",A.Sgr="Ambalaj cu garan\u021bie",D;var A})()},21044:(oe,x,i)=>{"use strict";i.d(x,{F4:()=>a,Q9:()=>h,mh:()=>l,ms:()=>t});var e=i(28918),n=i(32420),a=(()=>{return(s=a||(a={})).NEW="Ciorn\u0103",s.PENDING="\xcen a\u0219teptare",s.APPROVED="Aprobat",s.REJECTED="Respins",a;var s})();class t{constructor(d){this.labels=[],this.status=e.CE5.NEW,this.packagings=[],this.images=[new h],d&&Object.keys(d).forEach(u=>{this[u]=d[u]?d[u]:null});const p=[];this.packagings=this.packagings.map(u=>{const g=new l(u);return p.push(...g.images),g}),p.length&&(this.images=p)}}class l{constructor(d){this.photos=[],this.images=[],d&&Object.keys(d).forEach(p=>{this[p]=d[p]||0===d[p]?d[p]:null}),this.photos.length&&(this.images=n.qN.imagesFromAttachments(this.photos,!0))}get netWeightParts(){const d=/([+]?\d+([\.|\,]\d+)?)(kg|g|mg)/g.exec(this.netWeight||"")||[null,"","",""];return{value:d[1],massUnit:d[3]}}get productWeightParts(){if(this.productWeight){const p=this.productWeight>=1e3?"KG":"G";return{value:(this.productWeight>=1e3?this.productWeight/1e3:this.productWeight)?.toString(),massUnit:p}}return{value:"",massUnit:""}}get wrappingVolumeParts(){const d=/([+]?\d+([\.|\,]\d+)?)(m3|cm3|l|ml)?/g.exec(this.wrappingVolume||"")||[null,"","","",""];return{value:d[1],volumeUnit:d[3]}}get storingTemperatureParts(){const d=/([+-]?\d+([\.|\,]\d+)?)(c|f)?/g.exec(this.storingTemperature||"")||[null,"",""];return{value:d[1],temperatureUnit:d[3]}}get id(){return[this.wrapping,this.stock,this.price].join("#")}}class h extends n.qN{constructor(d){super(d)}}},55738:(oe,x,i)=>{"use strict";i.d(x,{n:()=>n});var e=i(28918);class n{constructor(t){this.typeMap={role_client:e.FWD.CLIENT,client:e.FWD.CLIENT,role_business_owner:e.FWD.BUSINESS,business_owner:e.FWD.BUSINESS,role_business_employee:e.FWD.EMPLOYEE,role_administrator:e.FWD.ADMINISTRATOR},t&&Object.keys(t).forEach(l=>{this[l]=t[l],"username"===l&&!this.email&&(this.email=t[l]),"email"===l&&!this.username&&(this.username=t[l])})}get name(){return this.profile&&this.profile.name?this.profile.name:this.fullName?this.fullName:this.email}getType(){return this.typeMap[this.role.toLowerCase()]}isBusiness(){return[e.FWD.BUSINESS,e.FWD.EMPLOYEE].includes(this.getType())}isClient(){return this.getType()===e.FWD.CLIENT}_dto(){return{username:this.email,password:this.password}}}},21803:(oe,x,i)=>{"use strict";i.d(x,{W:()=>a});var e=i(28918),n=i(1166);class a{constructor(){this.fees=[]}getEmpoweredDeliveryFees(){return this.fees?.filter(l=>l.type===n.U.EMPOWERED_DELIVERY)??[]}getDeliveryFees(){return this.fees?.filter(l=>l.type===n.U.DELIVERY)??[]}shouldShowTransportFeeAmount(){const l=this.getBusinessCartFee(n.U.DELIVERY);return l&&l.displayedAmount>0}getBusinessCartFee(l){return this.fees?.find(h=>h.type===l)}getCarmenFeesAmount(){return this.fees.filter(l=>l.type===n.U.CARMEN_SERVICES||l.type===n.U.BUSINESS).reduce((l,h)=>l+h.displayedAmount,0)}getSGRFeesAmount(){return this.fees.filter(l=>l.type===n.U.SGR).reduce((l,h)=>l+h.displayedAmount,0)}getDeliveryFeesAmount(){const l=this.getDeliveryFees();return l?.length&&l.length>0?l?.reduce((h,s)=>h+s.displayedAmount,0):0}getEmpoweredDeliveryFeesAmount(){const l=this.getEmpoweredDeliveryFees().length?this.getEmpoweredDeliveryFees().reduce((h,s)=>h+s.displayedAmount,0):0;return this.getPrescriptionFeesAmount()+this.getDeliveryFeesAmount()+l}getPrescriptionFeesAmount(){return this.fees.filter(l=>l.type===n.U.PRESCRIPTION).reduce((l,h)=>l+h.displayedAmount,0)}getTransportationFeeAmountByDeliveryType(){return this.deliveryType===e.lFT.COURIER?this.getDeliveryFeesAmount():this.getEmpoweredDeliveryFeesAmount()}}},59049:(oe,x,i)=>{"use strict";i.d(x,{c:()=>n});var e=i(50008);class n extends e.k{constructor(t){super(t),this.type="individual",Object.assign(this,t)}}},50008:(oe,x,i)=>{"use strict";i.d(x,{k:()=>n});var e=i(28918);class n{constructor(t){this.type="individual",Object.assign(this,t)}get text(){return[this.address+(this.streetNumber?" "+this.streetNumber:""),e.VLR.ucwords(this.city),e.VLR.ucwords(this.county),this.zip_code,this.country].filter(l=>!!l).join(", ")}get deliveryText(){return this.address+(this.streetNumber?`, ${this.streetNumber},`:"")+(this.city?` ${e.VLR.capitalizeCities(this.city)}`:"")+(this.county?`, ${e.VLR.capitalizeCities(this.county)}`:"")+(this.streetExtraInfo?`, ${this.streetExtraInfo}`:"")}get addressAndCity(){return this.address+(this.streetNumber?` ${this.streetNumber}`:"")+(this.city?` ${e.VLR.capitalizeCities(this.city)}`:"")}get addressDeliveryText(){return this.address+(this.city?`, ${e.VLR.capitalize(this.city)}`:"")+(this.county?`, ${e.VLR.capitalize(this.county)}`:"")+(this.streetExtraInfo?`, ${this.streetExtraInfo}`:"")}get addressTextWithStreetNumberAndCity(){return(this.address?` ${this.address}`:"")+(this.streetNumber?` ${this.streetNumber}`:"")+(this.city?` ${e.VLR.capitalize(this.city)}`:"")}get shortText(){return[this.address+(this.streetNumber?" "+this.streetNumber:""),this.city,this.country].filter(l=>!!l).join(", ")}get nameAndPhone(){return[this.name||"",this.phone?` (${this.phone})`:""].filter(t=>!!t).join(" ")}_fromGeocodeAddress(t){this.address=t.address_components.filter(h=>h.types.includes("route")).map(h=>h.long_name).pop()||"",this.streetNumber=t.address_components.filter(h=>h.types.includes("street_number")).map(h=>h.long_name).pop(),this.city=t.address_components.filter(h=>h.types.includes("locality")).map(h=>h.long_name).pop()||void 0;const l=t.address_components.filter(h=>h.types.includes("administrative_area_level_2")&&h.long_name.toLowerCase().includes("comuna")).map(h=>h.long_name.replace(/comuna /i,"")).pop();return l&&l!==this.city&&(this.city=this.city?this.city:l),this.county=t.address_components.filter(h=>h.types.includes("administrative_area_level_1")).map(h=>h.long_name.replace(/Jude\u021bul /i,"")).pop()||void 0,this.country=t.address_components.filter(h=>h.types.includes("country")).map(h=>h.long_name).pop()||void 0,this.zip_code=t.address_components.filter(h=>h.types.includes("postal_code")).map(h=>h.long_name).pop()||void 0,this}}},22096:(oe,x,i)=>{"use strict";i.d(x,{KM:()=>b,V4:()=>E});var e=i(51588),n=i(6204),a=i(28918),t=i(55738),l=i(22539),h=i(32420),s=i(50008),d=i(59049),p=i(8141),u=i(17596),g=i(21803),v=i(1166);const y=[];let b=(()=>{class A extends g.W{constructor(B){super(),this.payment_type=a.uG_.CASH,this.delivery_type="PICKUP",this.basket=[],this.attachments=[],this.pending=!1,this.fees=[],Object.assign(this,B),this.basket=this.basket.map(V=>new E(this,V)),this.delivery_address&&(this.delivery_address=new s.k(this.delivery_address)),this.billing_address&&(this.billing_address=new d.c(this.billing_address)),this.pickup_address&&(this.pickup_address=new s.k(this.pickup_address)),this.order_status=B?.basket[0]?.order_status||a.iFo.NEW,this.user||(this.user=new t.n,this.user.profile=new p.y),this.patientProfile&&(this.user.profile=new p.y(this.patientProfile),this.user.email=this.user.username=this.user.profile.username),this.id||(this.id=this.order_id||(0,e.Z)()),this.attachments=this.attachments.map(V=>new S(this,V)),this.fees=this.fees.map(V=>new v.a(V))}get count(){return{offers:this.basket?.reduce((B,V)=>B+V.count.offers,0),quantity:this.basket?.reduce((B,V)=>B+V.count.quantity,0),stock:this.basket?.reduce((B,V)=>B+V.count.stock,0)}}get price(){const B={items:0,total:0,fees:[]},V={};return this.basket.forEach(X=>{const re=X.price;B.items+=re.items,B.total+=re.total,re.fees.forEach(Q=>{V[Q.type]?V[Q.type].amount+=Q.amount:V[Q.type]=new a.jym(Q)})}),B.fees=Object.values(V),B}get status(){const B=A.statusMap.payment["RAMBURS"===this.payment_type?"RAMBURS":this.payment_status||"CREATE"];let V=A.statusMap.order[this.order_status]||A.statusMap.order.NEW;return this.order_status===a.iFo.SHIPPING_READY&&"PICKUP"!==this.delivery_type&&(V="Preg\u0103tit\u0103 de livrare"),{order:V,payment:B.title,payment_result:B.result}}get hash(){return n.V8.hashStr(JSON.stringify(this.basket.map(B=>B._dto).sort((B,V)=>B.email>V.email?-1:1)))}get offers(){return this.basket?.reduce((B,V)=>B.concat(V.offers),[])}get drugOffers(){return this.offers.filter(B=>B?.offer?.packaging?.product?.isDrug)}get containsDrugs(){return!!this.drugOffers.length}get prescriptionOffers(){return this.offers.filter(B=>B.offer.packaging.product.requiresPrescription)}get retainedPrescriptionOffers(){return this.offers.filter(B=>B.offer.packaging.product.requiresRetainedPrescription)}get prescriptions(){return this.attachments.filter(B=>"prescription"===B.type)}get retainedPrescriptions(){return this.prescriptions.filter(B=>B.isRetained)}get simplePrescriptions(){return this.prescriptions.filter(B=>B.isSimple)}get deliverableOffers(){return this.basket?.reduce((B,V)=>B.concat(V.deliverableOffers),[])}get undeliverableOffers(){return this.basket?.reduce((B,V)=>B.concat(V.undeliverableOffers),[])}get businessOrder(){return this.basket[0]}get _dto(){return{order_status:this.order_status,payment_type:this.payment_type,delivery_type:this.delivery_type,delivery_open_package:this.delivery_open_package,delivery_address:this.delivery_address,billing_same_as_delivery:this.billing_same_as_delivery,billing_address:this.billing_address,pickup_address:this.pickup_address,basket:this.basket.map(B=>B._dto),pending:this.pending}}clone(B){const V=new A({order_status:this.order_status,payment_type:this.payment_type,delivery_type:this.delivery_type,delivery_open_package:this.delivery_open_package,delivery_address:new s.k(this.delivery_address),billing_same_as_delivery:this.billing_same_as_delivery,billing_address:this.billing_address,pickup_address:this.pickup_address,basket:[],attachments:this.attachments,pending:this.pending});return B&&Object.assign(V,B),V}get(B){const V=this?.findBusiness(B.businessEmail);return V?V.get(B.id):null}add(B,V,X){let re=this?.findBusiness(B.businessEmail);re||(re=new E(this,{business:B.businessProfile}),this.basket.push(re));const Q=re.add(B,V);return X&&(this.attachments.filter(ae=>ae.id===X.id).length||this.attachments.push(X),Q.storageKey=X.id,X.order=this),Q}remove(B){const V=this?.findBusiness(B.parent.email);return V&&(V.offers=V.offers.filter(X=>X.id!==B.id),V.count.offers||(this.basket=this.basket.filter(X=>X.email!==B.parent.email))),this}merge(B){return B.attachments.forEach(V=>{this.attachments.filter(X=>X.storageKey===V.storageKey).length||(V.order=this,this.attachments.push(V))}),B.offers.forEach(V=>{const X=this.get(V.offer);X?(X.quantity=V.quantity,X.storageKey=V.storageKey,X.image=V.image):this.add(V.offer,V.quantity).storageKey=V.storageKey}),this}findBusiness(B){return this.basket.filter(V=>V.email===B).pop()}attachProducts(B){return B.forEach(V=>{const X=this.offers.filter(re=>re.productSlug===V.slug);V.offers.forEach(re=>{X.forEach(Q=>{Q.id===re.id&&Q.attach(re)})})}),this.offers.filter(V=>!V.offer).forEach(V=>{B.filter(X=>X.slug===V.productSlug).forEach(X=>{X.packagings.filter(re=>re.slug===V.productSlug).forEach(re=>{const Q=new h.kt(re,{businessName:V.parent.name,businessSlug:V.parent.slug,businessEmail:V.parent.email,stock:0,price:V.items_price});V.attach(Q)})})}),this}hasPrescriptionFor(B){return this.prescriptions.filter(V=>V.prescriptionOffers(B).length).pop()}getAlternatives(B){const V=this.retainedPrescriptionOffers,X=[];if(V.length){const $=this.clone();V.forEach(j=>{j.offer.packaging.drugOffers.filter(B).forEach(R=>{$.add(R,j.quantity).storageKey=j.storageKey})}),X.push(...$.basket.filter(j=>j.offers.length===V.length))}const re=this.offers.filter($=>!V.filter(j=>j.id===$.id).length),Q=[],ae={};if(re.length){const $={};re.forEach(j=>{const R=j.offer.packaging.id;$[R]||($[R]=[]),j.offer.packaging.drugOffers.filter(B).forEach(U=>{ae[U.id]=U,$[R].push({id:U.id,business:U.businessEmail,storageKey:j.storageKey,price:U.price,quantity:j.quantity})})}),Object.values($).length>1?Q.push(...this._getOfferCombinations(Object.values($))):Q.push(...Object.values($).pop().map(j=>[j]))}const K=Q.map($=>{const j=this.clone();return $.forEach(R=>{j.add(ae[R.id],R.quantity)}),{offers:$,price:j.price.items,total:j.price.total}});K.sort(($,j)=>$.total-j.total);const k=[];if(V.length){const $=K.shift();X.sort((j,R)=>j.price.total-R.price.total).forEach(j=>{const R=this.clone();j.offers.forEach(U=>{R.add(U.offer,U.quantity).storageKey=U.storageKey}),$&&$.offers.forEach(U=>{R.add(ae[U.id],U.quantity).storageKey=U.storageKey}),k.push(R)})}else k.push(...K.map($=>{const j=this.clone();return $.offers.forEach(R=>{j.add(ae[R.id],R.quantity).storageKey=R.storageKey}),j}));return k.filter($=>$.offers.length===this.offers.length)}_getOfferCombinations(B){const V=[];return B.reduceRight((X,re,Q)=>ae=>{for(let K=0,k=re.length;K<k;K++){const $=ae.slice();$[Q]=re[K],X($)}},Array.prototype.push.bind(V))(new Array(B.length)),V}}return A.statusMap={order:{NEW:"Comand\u0103 nou\u0103",PROCESSING:"\xcen curs de procesare",SHIPPING_READY:"Gata de ridicare",IN_DELIVERY:"\xcen curs de livrare",ASSIGNED:"Curier asignat",CANCELLED:"Anulat\u0103",RETURNED:"Returnat\u0103",UNDELIVERED:"Livrare e\u0219uat\u0103",COMPLETE:"Finalizat\u0103",PREORDER:"Precomand\u0103"},payment:{RAMBURS:{title:"Plat\u0103 la ridicare",result:1},CREATE:{title:"Plat\u0103 \xeen a\u0219teptare",result:0},AWAITING:{title:"Plat\u0103 \xeen a\u0219teptare",result:0},CONFIRMED:{title:"Plat\u0103 confirmat\u0103",result:1},OPEN_PREAUTHORIZED:{title:"Plat\u0103 confirmat\u0103",result:1},COMPLETE:{title:"Plat\u0103 confirmat\u0103",result:1},INCOMPLETE:{title:"Plat\u0103 incomplet\u0103",result:-1},FAILED:{title:"Plat\u0103 e\u0219uat\u0103",result:-1},REJECTED:{title:"Plat\u0103 e\u0219uat\u0103",result:-1},CANCELED:{title:"Plat\u0103 anulat\u0103",result:-1},REFUNDED:{title:"Plat\u0103 anulat\u0103 (restituit)",result:-1}}},A})();class S extends l.P{constructor(P,B){super(B),this.order=P,this.type||(this.type="prescription")}get offers(){return this.order.offers.filter(P=>P.storageKey===this.id)}get isRetained(){return"prescription"===this.type&&this.retainedOffers.length>0}get isSimple(){return"prescription"===this.type&&this.simpleOffers.length>0}get retainedOffers(){return this.offers.filter(P=>P.offer.packaging.product.requiresRetainedPrescription)}get simpleOffers(){return this.offers.filter(P=>!P.offer.packaging.product.requiresRetainedPrescription)}isRetainedAt(P){return this.retainedOffers.filter(B=>B.offer.businessEmail===P.email).length>0}isSimpleAt(P){return this.simpleOffers.filter(B=>B.requiresPrescription&&B.offer.businessEmail===P.email).length>0}prescriptionOffers(P){return this.offers.filter(B=>B.offer.productSlug===P.productSlug&&B.offer.businessSlug===P.businessSlug)}businessOffers(P){return this.offers.filter(B=>B.offer.businessSlug===P.slug)}}class E extends g.W{constructor(P,B){super(),this.delivery_type="PICKUP",this.offers=[],this.status_history=[],this.containers=[],this.fees=[],Object.assign(this,B),this.order=P,this.delivery_type=B.delivery_type,this.offers=this.offers.map(V=>new D(this,V)),this.fees=this.fees.map(V=>new v.a(V)),this.receipt_value=this.receipt_value/100,B.business&&(this.business=new u.eL(B.business))}get count(){return{offers:this.offers.length,quantity:this.offers?.reduce((P,B)=>P+B.quantity,0),stock:this.offers?.reduce((P,B)=>P+(B.offer?B.offer.stock:0),0)}}get price(){const P={items:0,total:0,fees:[]};return this.offers.forEach(B=>{const V=B.price;P.items+=V.total,P.total+=V.total}),this.deliveryProvider&&this.deliveryProvider.fees.forEach(B=>{B.appliesTo(this)&&P.fees.push(B)}),P.total+=P.fees?.reduce((B,V)=>B+V.amount,0),P}get containsDrugs(){return!!this.offers?.filter(P=>P?.isDrug)?.length}get deliveryProvider(){return y.find(P=>P.canDeliverBusinessOrder(this))}get canProcess(){return this.business.processingType===a.MI0.CLICK_AND_COLLECT}get canPatientEdit(){return"COURIER"===this.delivery_type&&"NEW"===this.order_status||"PICKUP"===this.delivery_type&&!["CANCELLED","COMPLETE"].includes(this.order_status)}get status(){const P=b.statusMap.payment["RAMBURS"===this.payment_type?"RAMBURS":this.payment_status||"CREATE"];return{order:b.statusMap.order[this.order_status]||b.statusMap.order.NEW,payment:P.title,payment_result:P.result}}get payment_status(){return this.order.payment_status}get drugOffers(){return this.offers.filter(P=>P.offer.packaging.product.isDrug)}get otherOffers(){return this.offers.filter(P=>!P.offer.packaging.product.isDrug)}get prescriptionOffers(){return this.offers.filter(P=>P.offer.packaging.product.requiresPrescription)}get retainedPrescriptionOffers(){return this.offers.filter(P=>P.offer.packaging.product.requiresRetainedPrescription)}get deliverableOffers(){const P=[];return this.offers.forEach(B=>{B.offer.packaging.drugOffers.find(V=>!!y.find(X=>X.canDeliverItem(V,this.order.delivery_address)))&&P.push(B)}),P}get undeliverableOffers(){const P=[];return this.offers.forEach(B=>{B.offer.packaging.drugOffers.find(V=>!!y.find(X=>X.canDeliverItem(V,this.order.delivery_address)))||P.push(B)}),P}get prescriptions(){return this.retainedPrescriptions.concat(this.simplePrescriptions)}get retainedPrescriptions(){return this.order.retainedPrescriptions.filter(P=>P.isRetainedAt(this))}get simplePrescriptions(){return this.order.simplePrescriptions.filter(P=>P.isSimpleAt(this))}get delivery_open_package(){return this.order.delivery_open_package}get payment_type(){return this.order.payment_type}get _dto(){return{name:this.name,email:this.email,slug:this.slug,delivery_type:this.delivery_type,payment_type:this.payment_type,offers:this.offers.map(P=>P._dto)}}add(P,B){let V=this.get(P.id);return V||(V=new D(this),this.offers.push(V)),V.quantity+=B,this.email=P.businessEmail||this.email,this.slug=P.businessSlug||this.slug,this.name=P.businessName||this.name||this.slug,V.attach(P)}remove(P){return this.offers=this.offers.filter(B=>B.id!==P.id),this}get(P){return this.offers.filter(B=>B.id===P).pop()}}class D{constructor(P,B){this.quantity=0,this.image=new h.qN,this._price=0,this.parent=P,Object.assign(this,B)}get price(){return{item:this._price,total:this._price*this.quantity}}set price(P){this._price=P}get id(){return[this.parent.businessExternalId,this.pkgId].join("#")}get pkgId(){return[this.productSlug].join("#")}get name(){return[this.drugName,this.packageName].join(" - ")}get isDrug(){return this.offer?.packaging?.product?.isDrug}get requiresPrescription(){return this.offer.packaging.product.requiresPrescription}get requiresRetainedPrescription(){return this.offer.packaging.product.requiresRetainedPrescription}get _dto(){return{drugName:this.drugName,productSlug:this.productSlug,packageName:this.packageName,productCategory:this.productCategory,storageKey:this.storageKey,quantity:this.quantity,price:this._price,isOversized:this.isOversized,cim:this.offer.packaging?.cim,qrbarcode:this.offer.packaging?.qrbarcode,sgrValue:this.offer.packaging?.sgrData?.value}}attach(P){return this.drugName=this.drugName??P.drugName,this.productSlug=P.productSlug,this.packageName=P.packageName,this.image=P.packaging.images[0],this.productCategory=P.productCategory,this.sgrValue=P.packaging.sgrData.value,this._price||(this._price=P.price),this.offer=P,this}}},67664:(oe,x,i)=>{"use strict";i.d(x,{N:()=>n});var e=i(22539);class n{constructor(t,l={}){this.attachments=[],this.deliveryAddresses=[],this.billingAddresses=[],t&&(Object.assign(this,t),this.attachments=t.attachments||[]),this.custom=this.customProfileAsJson?JSON.parse(this.customProfileAsJson):l,this.attachments=this.attachments.map(h=>new e.P(h)),this.files={},this.refreshFiles()}update(t){this._merge(this,t)}refreshFiles(){this.attachments.forEach(t=>{this.files[t.type]=t})}_dto(){return{processingType:this.processingType,iban:this.iban,name:this.name,slug:this.slug,username:this.username,smsNotifications:this.smsNotifications}}_merge(t,l){return Object.keys(l).forEach(h=>{""===l[h]&&(l[h]=null),t[h]=l[h]&&"object"==typeof l[h]&&l[h].constructor!==Array?this._merge(t[h]||{},l[h]):l[h]}),t}}},17596:(oe,x,i)=>{"use strict";i.d(x,{Dv:()=>h,Hp:()=>l,eL:()=>t});var e=i(28918),n=i(67664),a=i(50008);class t extends n.N{constructor(d){super(d,{contact:{name:null},bank:{name:null,swift:null},web:null,schedule:{mon:{open:null,close:null},tue:{open:null,close:null},wed:{open:null,close:null},thu:{open:null,close:null},fri:{open:null,close:null},sat:{open:null,close:null},sun:{open:null,close:null},holidays:[]},social:{facebook:null,google:null,linkedin:null},about:{company:null,delivery:null,warranty:null,returns:null,privacy:null}}),this.type="business",this.custom.contact.mobile&&(this.mobile=this.mobile?this.mobile:this.custom.contact.mobile,this.custom.contact.mobile=null),this.custom.contact.phone&&(this.phone=this.phone?this.phone:this.custom.contact.phone,this.custom.contact.phone=null)}get data(){return{approvalStatus:this.approvalStatus,username:this.username,name:this.name,slug:this.slug,cui:this.cui,cif:this.cif,processingType:this.processingType,businessType:this.businessType,iban:this.iban,country:this.country,county:this.county,city:this.city,zipcode:this.zipcode,address1:this.address1,address2:this.address2,streetNumber:this.streetNumber,locationLat:this.locationLat,locationLon:this.locationLon,minBasketValue:this.minBasketValue,mobile:this.mobile,phone:this.phone,custom:this.custom,externalId:this.externalId,smsNotifications:this.smsNotifications,isUpdatedNewFormat:this.isUpdatedNewFormat,setManually:this.setManually,streetExtraInfo:this.streetExtraInfo}}get address(){return new a.k({address:this.address1,city:this.city,county:this.county,zip_code:this.zipcode,country:this.country,name:this.name,phone:this.phone,notes:this.address2,streetNumber:this.streetNumber})}get hasLocation(){return!(!this.locationLat||!this.locationLon)}get publicProfileRouterLink(){return this.routerLink||(this.routerLink=["/"+this.typeName+"/"+this.slug]),this.routerLink}get schedule(){const d={mon:"Luni",tue:"Mar\u021bi",wed:"Miercuri",thu:"Joi",fri:"Vineri",sat:"S\xe2mb\u0103t\u0103",sun:"Duminic\u0103"};return Object.keys(d).map(p=>({name:d[p],open:this.custom.schedule[p].open||"-",close:this.custom.schedule[p].close||"-"}))}get holidays(){return this.custom.schedule.holidays}get typeName(){return{PHARMACY:"farmacie",MARKET:"market",SHOP:"shop"}[this.businessType]||"partener"}_dto(){const d=this.data;return d.customProfileAsJson=JSON.stringify(d.custom),delete d.custom,d}canAddStock(){return this.data.customProfileAsJson=JSON.stringify(this.data.custom),this.data.name&&this.data.cif&&this.data.cui&&this.data.address1&&this.data.processingType&&this.data.businessType&&this.checkBusinessSchedule()}checkBusinessSchedule(){const d=this.data.custom.schedule;return d.mon.open&&d.mon.close&&d.tue.open&&d.tue.open&&d.wed.open&&d.wed.close&&d.thu.open&&d.thu.close&&d.fri.open&&d.fri.close&&d.sat.open&&d.sat.close&&d.sun.open&&d.sun.close}isBusinessOpen(d,p){const u=new Date,g=u.getDay()>0?u.getDay()-1:6;return this.isCurrentTimeWithinBusinessSchedule(g,u,d,p)?"Deschis":"Inchis"}isCurrentTimeWithinBusinessSchedule(d,p,u,g){const v=function(D){return this.setHours(parseInt(D.split(":")[0],10),parseInt(D.split(":")[1],10),0)},y=new Date,b=new Date;u[d].open=u[d]?.open||"-",u[d].close=u[d]?.close||"-",v.call(y,u[d]?.open),v.call(b,u[d]?.close);const S=new Date(y.getTime()).getHours();let E=new Date(b.getTime()).getHours();return!this.checkIfBusinessHasHolidayToday(g)&&(E=0===E?E=24:E,p.getHours()>=S&&"-"!==u[d].open&&p.getHours()<=E&&"-"!==u[d].close&&!(p.getHours()===E&&p.getMinutes()>new Date(b.getTime()).getMinutes()||p.getHours()===S&&p.getMinutes()<new Date(y.getTime()).getMinutes()))}checkIfBusinessHasHolidayToday(d){const p=(new Date).toLocaleDateString();if(d){let u=!1;return d.forEach(g=>{(g=new Date(g).toLocaleDateString())===p&&(u=!0)}),u}}can(d,p){const[u,g]=d.split(".");switch(u){case"orders":if("process"===g)return this.business.processingType===e.MI0.CLICK_AND_COLLECT;throw new Error(`Invalid permissions action provided: ${g} (${d})`);case"order":switch(g){case"manage":return!p.businessOrder.manager_email||p.businessOrder.manager_email===this.username;case"process":return this.can("orders.process")&&this.can("order.manage",p);case"edit":return this.can("order.manage",p)&&p.businessOrder.order_status===e.iFo.PROCESSING;case"markAsReady":return this.can("orders.process")&&this.can("order.manage",p)&&this.canMarkAsReadyByStatusAndBusinessType(p.businessOrder.order_status,p.businessOrder.business.businessType);case"markAsPickedUp":return this.can("orders.process")&&this.can("order.manage",p)&&"PICKUP"===p.businessOrder.delivery_type;case"markAsShipped":return this.can("orders.process")&&this.can("order.manage",p)&&p.businessOrder.order_status===e.iFo.SHIPPING_READY;case"addReceiptCode":return this.can("order.manage",p)&&[e.iFo.SHIPPING_READY,e.iFo.IN_DELIVERY,e.iFo.COMPLETE].includes(p.businessOrder.order_status)}throw new Error(`Invalid permissions action provided: ${g} (${d})`)}throw new Error(`Invalid permissions category provided: ${u} (${d})`)}get availableStatusesForRestaurantsToMarkAsReady(){return[e.iFo.ASSIGNED,e.iFo.CHECKED_IN,e.iFo.CHECK_IN_SKIPPED,e.iFo.PROCESSING]}canMarkAsReadyByStatusAndBusinessType(d,p){return p!==e.Pui.RESTAURANT?d===e.iFo.PROCESSING:this.availableStatusesForRestaurantsToMarkAsReady.includes(d)}}const l=[{name:"V\xe2nz\u0103ri",href:e.ZTG.ORDERS,children:[]},{name:"Rapoarte",translationKey:"PAGES.BUSINESS.ORDERS.REPORTS.TITLE",href:e.ZTG.REPORTS,children:[]},{name:"Fidelizare clien\u021bi",translationKey:"PAGES.BUSINESS.CUSTOMER_LOYALTY.TITLE",href:e.ZTG.CUSTOMER_LOYALTY,children:[]},{name:"Catalog",href:e.ZTG.CATALOG,opened:!1,children:[{name:"Stocuri",href:e.ZTG.CATALOG_STOCKS},{name:"Produse",href:e.ZTG.CATALOG_PRODUCTS}]},{name:"Set\u0103ri cont",href:e.ZTG.ACCOUNT_SETTINGS,children:[]},{name:"Management angaja\u021bi",href:e.ZTG.EMPLOYEES,children:[]},{name:"API",href:e.ZTG.API_DOCUMENTATION,children:[]}],h={started:"STARTED",processing:"PROCESSING",done:"DONE",notFound:"NOT_FOUND"}},28854:(oe,x,i)=>{"use strict";i.d(x,{v:()=>a});var e=i(28918),n=i(67664);class a extends n.N{constructor(l){super(l,{web:null,social:{facebook:null,google:null,linkedin:null},about:{me:null}}),this.type="employee"}get data(){return{username:this.username,name:this.name,slug:this.slug,country:this.country,county:this.county,city:this.city,zipcode:this.zipcode,address1:this.address1,address2:this.address2,mobile:this.mobile,phone:this.phone,custom:this.custom,externalId:this.id}}_dto(){const l=this.data;return l.customProfileAsJson=JSON.stringify(l.custom),delete l.custom,l}can(l,h){const[s,d]=l.split(".");switch(s){case"orders":if("process"===d)return this.business.processingType===e.MI0.CLICK_AND_COLLECT;throw new Error(`Invalid permissions action provided: ${d} (${l})`);case"order":switch(d){case"manage":return!h.businessOrder.manager_email||h.businessOrder.manager_email===this.username;case"process":return this.can("orders.process")&&this.can("order.manage",h);case"edit":return this.can("order.manage",h)&&[e.iFo.NEW,e.iFo.PROCESSING,e.iFo.SHIPPING_READY].includes(h.businessOrder.order_status);case"markAsReady":return this.can("orders.process")&&this.can("order.manage",h)&&h.businessOrder.order_status===e.iFo.PROCESSING;case"markAsPickedUp":return this.can("orders.process")&&this.can("order.manage",h)&&"PICKUP"===h.businessOrder.delivery_type;case"markAsShipped":return this.can("orders.process")&&this.can("order.manage",h)&&h.businessOrder.order_status===e.iFo.SHIPPING_READY}throw new Error(`Invalid permissions action provided: ${d} (${l})`)}throw new Error(`Invalid permissions category provided: ${s} (${l})`)}}},8141:(oe,x,i)=>{"use strict";i.d(x,{l:()=>t,y:()=>a});var e=i(28918),n=i(67664);class a extends n.N{constructor(h){super(h,{sex:null,birthday:null,race:null,height:null,weight:null,about:{me:null,sexual_orientation:null},children:[],history:{conditions:{patient:[],family:[]},medication:[],other:[]},habits:{substance:[],physical:[]},social:{web:null,facebook:null,google:null,linkedin:null},cart_pending:null}),this.type="patient"}get data(){return{username:this.username,name:this.name,slug:this.slug,country:this.country,county:this.county,city:this.city,address1:this.address1,address2:this.address2,phone:this.phone,cnp:this.cnp,custom:this.custom,newsletter:this.newsletter}}_dto(){const h=this.data;return h.customProfileAsJson=JSON.stringify(h.custom),delete h.custom,h}can(h,s){const[d,p]=h.split(".");if("order"===d){switch(p){case"edit":return s.basket.every(u=>u.delivery_type===e.lFT.COURIER&&u.order_status===e.iFo.NEW||u.delivery_type===e.lFT.PICKUP&&![e.iFo.CANCELLED,e.iFo.COMPLETE].includes(e.iFo[u.order_status]));case"complete":return s.basket.every(u=>u.delivery_type===e.lFT.PICKUP&&(u.business.processingType===e.MI0.SHOP_AND_GO&&u.order_status===e.iFo.SHIPPING_READY||u.business.processingType===e.MI0.SHOP_AND_GO&&![e.iFo.CANCELLED,e.iFo.COMPLETE].includes(e.iFo[u.order_status])));case"cancel":return s.basket.every(u=>u.delivery_type!==e.lFT.PICKUP&&u.order_status===e.iFo.NEW||u.delivery_type===e.lFT.PICKUP&&![e.iFo.CANCELLED,e.iFo.COMPLETE].includes(e.iFo[u.order_status]))}throw new Error(`Invalid permissions action provided: ${p} (${h})`)}throw new Error(`Invalid permissions category provided: ${d} (${h})`)}}const t=[{name:"Comenzile mele",href:e.v2Z.ORDERS,icon:"add_shopping_cart"},{name:"Livrare & facturare",href:e.v2Z.DELIVERY_ADDRESSES_AND_BILLING,icon:"contact_mail"},{name:"Returnare produse",href:e.v2Z.RETURNS,icon:"undo"},{name:"Favorite",href:e.v2Z.FAVORITES,icon:"favorite"},{name:"Set\u0103ri cont",href:e.v2Z.ACCOUNT_SETTINGS,icon:"info"},{name:"Abon\u0103rile mele",href:e.v2Z.SUBSCRIPTIONS_AND_CONFIDENTIALITY,icon:"security"},{name:"Drepturile mele",href:e.v2Z.MY_RIGHTS,icon:"gavel"},{name:"Jurnalul meu medical",href:e.v2Z.MEDICAL_JOURNAL,icon:"assignment"},{name:"Reclama\u021bii \u0219i sesiz\u0103ri",href:e.v2Z.COMPLAINTS,icon:"info"},{name:"Rezultate analize medicale",href:e.v2Z.MEDICAL_ANALYSES,icon:"info"}]},13863:(oe,x,i)=>{"use strict";i.d(x,{D:()=>p});var e=i(28555),n=(()=>{return(u=n||(n={})).SetAddressNavigationPage="[Sendit Address Navigation] Set last navigated page",u.SetLastUnavailableAddress="[Sendit Address Navigation] Set last unavailable location",u.NavigateToPreviousAddressPage="[Sendit Address Navigation] Navigate To Previous Page",u.EmptyNavigationHistory="[Sendit Address Navigation] Empty history",u.SetNavigationAddressPageSuccess="[Sendit Address Navigation] Set last navigated page - Success",u.SetAddressNavigationPageFail="[Sendit Address Navigation] Set last navigated page - Fail",n;var u})();const a=(0,e.PH)(n.SetAddressNavigationPage,(0,e.Ky)()),t=(0,e.PH)(n.SetLastUnavailableAddress,(0,e.Ky)()),p={setAddressNavigationPage:a,navigateToPreviousAddressPage:(0,e.PH)(n.NavigateToPreviousAddressPage),emptyNavigationHistory:(0,e.PH)(n.EmptyNavigationHistory),setLastUnavailableAddress:t,setNavigationAddressPageSuccess:(0,e.PH)(n.SetNavigationAddressPageSuccess,(0,e.Ky)()),setAddressNavigationPageFail:(0,e.PH)(n.SetAddressNavigationPageFail,(0,e.Ky)())}},20569:(oe,x,i)=>{"use strict";i.d(x,{_:()=>d,r:()=>l});var e=i(28555),n=i(64629),a=i(13863);let t=0;const l=(0,n.H)({selectId:p=>{const u=`${p}#${t}`;return t+=1,u}}),h={lastNavigatedPage:l.getInitialState(),lastUnavailableLocation:null},s=(0,e.Lq)(h,(0,e.on)(a.D.setNavigationAddressPageSuccess,(p,u)=>({...p,lastNavigatedPage:u.previousPage?l.addOne(u.previousPage,p.lastNavigatedPage):p.lastNavigatedPage})),(0,e.on)(a.D.setLastUnavailableAddress,(p,u)=>({...p,lastUnavailableLocation:u.unavailableAddress})),(0,e.on)(a.D.navigateToPreviousAddressPage,p=>({...p,lastNavigatedPage:p.lastNavigatedPage.ids.length>1?l.removeOne(p.lastNavigatedPage.ids[p.lastNavigatedPage.ids.length-1],p.lastNavigatedPage):p.lastNavigatedPage})),(0,e.on)(a.D.emptyNavigationHistory,p=>({...p,lastNavigatedPage:l.removeAll(l.getInitialState()),lastUnavailableLocation:null})));function d(p,u){return s(p,u)}},32676:(oe,x,i)=>{"use strict";i.d(x,{S:()=>D});var e=i(35559),n=i(28918),a=i(94650),t=i(17366),l=i(36895),h=i(1576),s=i(55829),d=i(44850),p=i(3611),u=i(89383);function g(A,P){1&A&&(a.\u0275\u0275elementStart(0,"div",11),a.\u0275\u0275element(1,"img",12),a.\u0275\u0275elementStart(2,"span"),a.\u0275\u0275text(3),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275elementEnd()()),2&A&&(a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(4,1,"PAGES.PROFILE.CART.KG_EXCEEDED.DELIVERY_COSTS_DETAILS.MICRO")))}const v=function(A,P){return{containerWeight:A,containerFee:P}},[y,b,S,E]=[52,57,16,32];let D=(()=>{class A{constructor(B,V,X){this.cartService=B,this.dialogRef=V,this.data=X,this.containerWeight=n.UPL,this.containerImage=n.kKm,this.dialogMaxHeight={maxHeight:"0px"},this.iconPositions=n.ggF,this.buttonColors=n.B6Y,this.buttonType=n.L$3}ngOnInit(){this.windowWidth=window.innerWidth,this.freeContainers=this.cartService.numberOfFreeContainers,this.dialogMaxHeight.maxHeight=window.innerHeight-E-y-b-S+"px"}close(){this.dialogRef.close()}}return A.\u0275fac=function(B){return new(B||A)(a.\u0275\u0275directiveInject(n.vio.CartServiceToken),a.\u0275\u0275directiveInject(e.hV),a.\u0275\u0275directiveInject(e.eJ))},A.\u0275cmp=a.\u0275\u0275defineComponent({type:A,selectors:[["app-delivery-costs-details"]],decls:21,vars:24,consts:[["fxLayout","row","fxLayoutAlign","end center",1,"delivery-details-header"],[1,"material-icons","cursor-pointer",3,"click"],[1,"dialog-full-width-divider"],[3,"ngStyle"],[1,"delivery-details-title"],["class","delivery-type-title mt-12","fxLayoutAlign","start center",4,"ngIf"],[1,"delivery-details-description"],[1,"pl-16"],[3,"innerHTML"],["alt","container-image",1,"container-image","mb-24",3,"src"],[1,"w-100",3,"color","type","iconPosition","icon","textTranslationKey","clickEvent"],["fxLayoutAlign","start center",1,"delivery-type-title","mt-12"],["src","assets/images/others/cargo-truck.svg","alt","delivery-logo",1,"mr-8"]],template:function(B,V){1&B&&(a.\u0275\u0275elementStart(0,"div",0)(1,"i",1),a.\u0275\u0275listener("click",function(){return V.close()}),a.\u0275\u0275text(2,"close"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(3,"div",2),a.\u0275\u0275element(4,"mat-divider"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"mat-dialog-content",3)(6,"h2",4),a.\u0275\u0275text(7),a.\u0275\u0275pipe(8,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(9,g,5,3,"div",5),a.\u0275\u0275elementStart(10,"div",6)(11,"ul",7),a.\u0275\u0275element(12,"li",8),a.\u0275\u0275pipe(13,"translate"),a.\u0275\u0275element(14,"li",8),a.\u0275\u0275pipe(15,"translate"),a.\u0275\u0275element(16,"li",8),a.\u0275\u0275pipe(17,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275element(18,"img",9),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(19,"mat-dialog-actions")(20,"drc-button",10),a.\u0275\u0275listener("clickEvent",function(){return V.close()}),a.\u0275\u0275elementEnd()()),2&B&&(a.\u0275\u0275advance(5),a.\u0275\u0275property("ngStyle",V.dialogMaxHeight),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(8,12,"PAGES.PROFILE.CART.KG_EXCEEDED.DELIVERY_COSTS_DETAILS"+(null!=V.data&&V.data.shouldDisplayCostDetail?".DRCARMEN_DELIVERY_COSTS":".DRCARMEN_DELIVERY_TYPES"))," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",!(null!=V.data&&V.data.shouldDisplayCostDetail)),a.\u0275\u0275advance(3),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind1(13,14,"PAGES.PROFILE.CART.KG_EXCEEDED.DELIVERY_COSTS_DETAILS.INFO1"),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind1(15,16,"PAGES.PROFILE.CART.KG_EXCEEDED.DELIVERY_COSTS_DETAILS.INFO2"),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind2(17,18,"PAGES.PROFILE.CART.KG_EXCEEDED.DELIVERY_COSTS_DETAILS."+(1===V.data.extraContainerFee?"INFO3_SINGULAR_CURRENCY":"INFO3"),a.\u0275\u0275pureFunction2(21,v,V.containerWeight,V.data.extraContainerFee)),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(2),a.\u0275\u0275property("src",V.containerImage,a.\u0275\u0275sanitizeUrl),a.\u0275\u0275advance(2),a.\u0275\u0275property("color",V.buttonColors.primary)("type",V.buttonType.iconAndTextButton)("iconPosition",V.iconPositions.left)("icon","check")("textTranslationKey","PAGES.PROFILE.CART.KG_EXCEEDED.I_UNDERSTAND"))},dependencies:[t.r,l.NgIf,l.NgStyle,h.xw,h.Wh,s.Zl,e.Rb,e.ev,d.d,p.b,u.X$],styles:[".delivery-details-header[_ngcontent-%COMP%]{padding-bottom:16px}.delivery-details-header[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.close-button-container[_ngcontent-%COMP%]{width:18px}.close-button-container[_ngcontent-%COMP%]   .i[_ngcontent-%COMP%]{font-size:20px}.dialog-full-width-divider[_ngcontent-%COMP%]{margin-left:-16px;margin-right:-16px}.dialog-full-width-divider.top[_ngcontent-%COMP%]{margin-top:0}.delivery-type-title[_ngcontent-%COMP%]{text-align:left;font-size:19px;font-weight:700;color:#00853b;opacity:1}.delivery-details-title[_ngcontent-%COMP%]{margin-top:16px}.delivery-details-image-container[_ngcontent-%COMP%]{width:486px;height:473px;margin:16px 0;object-fit:cover}.delivery-details-image-container[_ngcontent-%COMP%]   .delivery-details-image[_ngcontent-%COMP%]{width:100%;height:100%}.pickup-info[_ngcontent-%COMP%], .delivery-details-description[_ngcontent-%COMP%]{margin-bottom:16px}.container-image[_ngcontent-%COMP%]{width:100%;height:auto}@media (max-width: 768px){.delivery-details-image-container[_ngcontent-%COMP%]{width:100%;max-width:486px;height:auto;max-height:473px}}@media (max-width: 420px){.delivery-details-image-container[_ngcontent-%COMP%]{max-width:343px;max-height:334px;min-width:247px;min-height:241px}}@media (max-width: 320px){.delivery-details-description[_ngcontent-%COMP%]{max-width:247px!important;max-height:238px!important}.delivery-details-image-container[_ngcontent-%COMP%]{max-width:247px;max-height:241px}}.mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 16px 0}"]}),A})()},23677:(oe,x,i)=>{"use strict";i.d(x,{T:()=>X});var e=i(28555),n=(()=>{return(re=n||(n={})).LoadHomeCarouselProducts="[Home Carousel] Load Market Products",re.LoadHomeCarouselProductsSuccess="[Home Carousel API] Load Market Products Success",re.LoadHomeCarouselProductsFailure="[Home Carousel API] Load Market Products Fail",re.LoadHomeCarouselSupplements="[Home Carousel] Load Supplements",re.LoadHomeCarouselSupplementsSuccess="[Home Carousel API] Load Supplements Success",re.LoadHomeCarouselSupplementsFailure="[Home Carousel API] Load Supplements Fail",re.LoadHomeCarouselRestaurantItems="[Home Carousel] Load Restaurant Items",re.LoadHomeCarouselRestaurantItemsSuccess="[Home Carousel API] Load Restaurant Items Success",re.LoadHomeCarouselRestaurantItemsFailure="[Home Carousel API] Load Restaurant Items Fail",re.LoadHomeCarouselHealthcareItems="[Home Carousel] Load Healthcare Items",re.LoadHomeCarouselHealthcareItemsSuccess="[Home Carousel API] Load Healthcare Items Success",re.LoadHomeCarouselHealthcareItemsFailure="[Home Carousel API] Load Healthcare Items Fail",re.LoadHomeCarouselServices="[Home Carousel] Load Services",re.LoadHomeCarouselServicesSuccess="[Home Carousel API] Load Services Success",re.LoadHomeCarouselServicesFailure="[Home Carousel API] Load Services Fail",re.LoadHomeCarouselEquipment="[Home Carousel] Load Equipment",re.LoadHomeCarouselEquipmentSuccess="[Home Carousel API] Load Equipment Success",re.LoadHomeCarouselEquipmentFailure="[Home Carousel API] Load Equipment Fail",re.RefreshCarousel="[Home Carousel] Refresh carousel",n;var re})();const X={loadMarketProducts:(0,e.PH)(n.LoadHomeCarouselProducts,(0,e.Ky)()),loadMarketProductsSuccess:(0,e.PH)(n.LoadHomeCarouselProductsSuccess,(0,e.Ky)()),loadMarketProductsFailure:(0,e.PH)(n.LoadHomeCarouselProductsFailure,(0,e.Ky)()),loadSupplements:(0,e.PH)(n.LoadHomeCarouselSupplements,(0,e.Ky)()),loadSupplementsSuccess:(0,e.PH)(n.LoadHomeCarouselSupplementsSuccess,(0,e.Ky)()),loadSupplementsFailure:(0,e.PH)(n.LoadHomeCarouselSupplementsFailure,(0,e.Ky)()),loadRestaurantItems:(0,e.PH)(n.LoadHomeCarouselRestaurantItems,(0,e.Ky)()),loadRestaurantItemsSuccess:(0,e.PH)(n.LoadHomeCarouselRestaurantItemsSuccess,(0,e.Ky)()),loadRestaurantItemsFailure:(0,e.PH)(n.LoadHomeCarouselRestaurantItemsFailure,(0,e.Ky)()),loadHealthcareItems:(0,e.PH)(n.LoadHomeCarouselHealthcareItems,(0,e.Ky)()),loadHealthcareItemsSuccess:(0,e.PH)(n.LoadHomeCarouselHealthcareItemsSuccess,(0,e.Ky)()),loadHealthcareItemsFailure:(0,e.PH)(n.LoadHomeCarouselHealthcareItemsFailure,(0,e.Ky)()),loadServices:(0,e.PH)(n.LoadHomeCarouselServices,(0,e.Ky)()),loadServicesSuccess:(0,e.PH)(n.LoadHomeCarouselServicesSuccess,(0,e.Ky)()),loadServicesFailure:(0,e.PH)(n.LoadHomeCarouselServicesFailure,(0,e.Ky)()),loadEquipment:(0,e.PH)(n.LoadHomeCarouselEquipment,(0,e.Ky)()),loadEquipmentSuccess:(0,e.PH)(n.LoadHomeCarouselEquipmentSuccess,(0,e.Ky)()),loadEquipmentFailure:(0,e.PH)(n.LoadHomeCarouselEquipmentFailure,(0,e.Ky)()),refreshCarousel:(0,e.PH)(n.RefreshCarousel)}},43958:(oe,x,i)=>{"use strict";i.d(x,{E4:()=>h,El:()=>l,JN:()=>p,QK:()=>d,Rw:()=>s,Zb:()=>v,yX:()=>t});var e=i(28555),n=i(64629),a=i(23677);const t=(0,n.H)({selectId:y=>`${y.productSlug}/${y.businessId}`}),l=(0,n.H)({selectId:y=>`${y.productSlug}/${y.businessId}`}),h=(0,n.H)({selectId:y=>`${y.productSlug}/${y.businessId}`}),s=(0,n.H)({selectId:y=>`${y.productSlug}/${y.businessId}`}),d=(0,n.H)({selectId:y=>`${y.productSlug}/${y.businessId}`}),p=(0,n.H)({selectId:y=>`${y.productSlug}/${y.businessId}`}),u={marketProducts:t.getInitialState(),hasLoadedMarketplace:!1,supplements:l.getInitialState(),hasLoadedSupplements:!1,restaurantItems:h.getInitialState(),hasLoadedRestaurantItems:!1,healthcareItems:s.getInitialState(),hasLoadedHealthcareItems:!1,services:d.getInitialState(),hasLoadedServices:!1,equipment:p.getInitialState(),hasLoadedEquipment:!1,error:""},g=(0,e.Lq)(u,(0,e.on)(a.T.loadMarketProductsSuccess,(y,b)=>({...y,marketProducts:t.setAll(b.products,y.marketProducts),hasLoadedMarketplace:!0,error:""})),(0,e.on)(a.T.loadSupplementsSuccess,(y,b)=>({...y,supplements:l.setAll(b.products,y.supplements),hasLoadedSupplements:!0,error:""})),(0,e.on)(a.T.loadRestaurantItemsSuccess,(y,b)=>({...y,restaurantItems:h.setAll(b.products,y.restaurantItems),hasLoadedRestaurantItems:!0,error:""})),(0,e.on)(a.T.loadHealthcareItemsSuccess,(y,b)=>({...y,healthcareItems:s.setAll(b.products,y.healthcareItems),hasLoadedHealthcareItems:!0,error:""})),(0,e.on)(a.T.loadServicesSuccess,(y,b)=>({...y,services:d.setAll(b.products,y.services),hasLoadedServices:!0,error:""})),(0,e.on)(a.T.loadEquipmentSuccess,(y,b)=>({...y,equipment:p.setAll(b.products,y.equipment),hasLoadedEquipment:!0,error:""})),(0,e.on)(a.T.refreshCarousel,y=>({...y,hasLoadedSupplements:!1,hasLoadedMarketplace:!1,hasLoadedRestaurantItems:!1,hasLoadedHealthcareItems:!1,hasLoadedServices:!1,hasLoadedEquipment:!1})));function v(y,b){return g(y,b)}},92275:(oe,x,i)=>{"use strict";i.d(x,{AM:()=>S,EX:()=>V,Hx:()=>A,Xv:()=>P,Yr:()=>E,aA:()=>b,ge:()=>B,mL:()=>re,pj:()=>Q,r2:()=>y,t4:()=>X});var e=i(28555),n=i(53877),a=i(43958);const t=(0,e.ZF)(n.U),s=((0,e.P1)(t,ae=>ae.homeCarouselProducts.marketProducts),(0,e.P1)(t,ae=>ae.homeCarouselProducts.supplements),(0,e.P1)(t,ae=>ae.homeCarouselProducts.marketProducts)),d=(0,e.P1)(t,ae=>ae.homeCarouselProducts.supplements),p=(0,e.P1)(t,ae=>ae.homeCarouselProducts.restaurantItems),u=(0,e.P1)(t,ae=>ae.homeCarouselProducts.healthcareItems),g=(0,e.P1)(t,ae=>ae.homeCarouselProducts.services),v=(0,e.P1)(t,ae=>ae.homeCarouselProducts.equipment),y=(0,e.P1)(s,a.yX.getSelectors().selectAll),b=(0,e.P1)(d,a.El.getSelectors().selectAll),S=(0,e.P1)(p,a.E4.getSelectors().selectAll),E=(0,e.P1)(u,a.Rw.getSelectors().selectAll),A=((0,e.P1)(g,a.QK.getSelectors().selectAll),(0,e.P1)(v,a.JN.getSelectors().selectAll)),P=(0,e.P1)(t,ae=>ae.homeCarouselProducts.hasLoadedMarketplace),B=(0,e.P1)(t,ae=>ae.homeCarouselProducts.hasLoadedSupplements),V=(0,e.P1)(t,ae=>ae.homeCarouselProducts.hasLoadedRestaurantItems),X=(0,e.P1)(t,ae=>ae.homeCarouselProducts.hasLoadedHealthcareItems),re=(0,e.P1)(t,ae=>ae.homeCarouselProducts.hasLoadedServices),Q=(0,e.P1)(t,ae=>ae.homeCarouselProducts.hasLoadedEquipment)},15368:(oe,x,i)=>{"use strict";i.d(x,{F:()=>V,o:()=>X});var e=i(28555);const n=(0,e.PH)("[Favorites] Load Favorite Lists"),a=(0,e.PH)("[Favorites API] Load Favorite Lists Success",(0,e.Ky)()),t=(0,e.PH)("[Favorites] Update Favorites Lists From Backend"),l=(0,e.PH)("[Favorites] Update Favorite List",(0,e.Ky)()),h=(0,e.PH)("[Favorites] Increment List Size Success",(0,e.Ky)()),s=(0,e.PH)("[Favorites] Decrement List Size Success",(0,e.Ky)()),d=(0,e.PH)("[Favorites API] Update Favorite List Success",(0,e.Ky)()),p=(0,e.PH)("[Favorites] Update List Size Success",(0,e.Ky)()),u=(0,e.PH)("[Favorites API] Update Multiple Favorite List Success",(0,e.Ky)()),g=(0,e.PH)("[Favorites] Merge Guest Favorites"),v=(0,e.PH)("[Favorites API] Merge Guest Favorites Success"),y=(0,e.PH)("[Favorites] Create Favorite List",(0,e.Ky)()),b=(0,e.PH)("[Favorites API] Create Favorite List Success",(0,e.Ky)()),S=(0,e.PH)("[Favorites API] Add Favorite List Fail"),E=(0,e.PH)("[Favorites] Delete Favorite List",(0,e.Ky)()),D=(0,e.PH)("[Favorites API] Delete Favorite List Success",(0,e.Ky)()),A=(0,e.PH)("[Favorites] Refresh Store After Logout"),P=(0,e.PH)("[Favorites] Unselect List"),B=(0,e.PH)("[Favorites] Set Should Merge Favorites",(0,e.Ky)()),V=(0,e.PH)("[Favorites] Select List",(0,e.Ky)()),X={loadFavoriteLists:n,loadFavoriteListsSuccess:a,updateListsFromBackend:t,updateFavoriteList:l,updateFavoriteListSuccess:d,updateListSizeSuccess:p,updateMultipleListSizeSuccess:u,incrementListSizeSuccess:h,decrementListSizeSuccess:s,mergeGuestFavorites:g,mergeGuestFavoritesSuccess:v,createFavoriteList:y,createFavoriteListSuccess:b,createFavoriteListFail:S,deleteFavoriteList:E,deleteFavoriteListSuccess:D,refreshStoreAfterLogout:A,selectList:V,unSelectList:P,setShouldMergeFavorites:B}},53629:(oe,x,i)=>{"use strict";i.d(x,{b:()=>S});var e=i(88776),n=i(28555),a=i(11365),t=i(39300),l=i(86099),h=i(54004),s=i(18505),d=i(70262),p=i(60515),u=i(28918),g=i(6796),v=i(15368),y=i(73279),b=i(94650);let S=(()=>{class E{constructor(A,P,B){this.action$=A,this.favoritesService=P,this.store=B,this.loadFavoriteLists$=(0,e.GW)(()=>this.action$.pipe((0,e.l4)(v.o.loadFavoriteLists),(0,a.M)(this.store.pipe((0,n.Ys)(g.zQ))),(0,t.h)(V=>!V[1]),(0,l.z)(()=>this.favoritesService.getFavoritesLists().pipe((0,h.U)(V=>v.o.loadFavoriteListsSuccess({favoritesLists:V})))))),this.createFavoriteLists$=(0,e.GW)(()=>this.action$.pipe((0,e.l4)(v.o.createFavoriteList),(0,h.U)(V=>V),(0,l.z)(V=>this.favoritesService.createFavoritesList(V).pipe((0,h.U)(X=>{const re=X.favoriteProductId,Q={...V,id:re,size:0};return v.o.createFavoriteListSuccess({favoriteList:Q})}))))),this.updateFavoriteLists$=(0,e.GW)(()=>this.action$.pipe((0,e.l4)(v.o.updateFavoriteList),(0,h.U)(V=>V.favoriteList),(0,l.z)(V=>this.favoritesService.updateFavoritesList(V).pipe((0,h.U)(()=>v.o.updateFavoriteListSuccess({favoriteList:V})))))),this.deleteFavoriteLists$=(0,e.GW)(()=>this.action$.pipe((0,e.l4)(v.o.deleteFavoriteList),(0,h.U)(V=>V.id),(0,l.z)(V=>this.favoritesService.deleteFavoritesList(V).pipe((0,h.U)(()=>v.o.deleteFavoriteListSuccess({id:V})))))),this.mergeGuestFavorites$=(0,e.GW)(()=>this.action$.pipe((0,e.l4)(v.o.mergeGuestFavorites),(0,l.z)(()=>this.favoritesService.mergeGuestFavorites().pipe((0,h.U)(()=>v.o.mergeGuestFavoritesSuccess()),(0,s.b)(()=>{this.store.dispatch(y.N.loadPreview()),this.store.dispatch(v.o.loadFavoriteLists())}),(0,d.K)(()=>(this.store.dispatch(y.N.loadPreview()),this.store.dispatch(v.o.loadFavoriteLists()),p.E))))))}}return E.\u0275fac=function(A){return new(A||E)(b.\u0275\u0275inject(e.eX),b.\u0275\u0275inject(u.vio.FavoritesServiceToken),b.\u0275\u0275inject(n.yh))},E.\u0275prov=b.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac}),E})()},76433:(oe,x,i)=>{"use strict";i.d(x,{NZ:()=>t,PW:()=>s});var e=i(28555),n=i(64629),a=i(15368);const t=(0,n.H)({selectId:d=>d.id}),l=t.getInitialState({selectedListId:void 0,favoriteListsLoaded:!1,shouldMergeFavorites:!1}),h=(0,e.Lq)(l,(0,e.on)(a.o.loadFavoriteListsSuccess,(d,p)=>t.setAll(p.favoritesLists,{...d,favoriteListsLoaded:!0})),(0,e.on)(a.o.updateFavoriteListSuccess,(d,p)=>t.updateOne({id:p.favoriteList.id,changes:p.favoriteList},d)),(0,e.on)(a.o.updateListSizeSuccess,(d,p)=>t.updateOne({id:p.favoriteList.id,changes:p.favoriteList},d)),(0,e.on)(a.o.updateMultipleListSizeSuccess,(d,p)=>{const u=p.favoritesLists.map(g=>({id:g.id,changes:g}));return t.updateMany(u,d)}),(0,e.on)(a.o.incrementListSizeSuccess,(d,p)=>{const u=p.favoriteList;return u.size++,t.updateOne({id:p.favoriteList.id,changes:u},d)}),(0,e.on)(a.o.decrementListSizeSuccess,(d,p)=>{const u=p.favoriteList;return u.size--,t.updateOne({id:p.favoriteList.id,changes:u},d)}),(0,e.on)(a.o.createFavoriteListSuccess,(d,p)=>t.addOne(p.favoriteList,d)),(0,e.on)(a.o.deleteFavoriteListSuccess,(d,p)=>t.removeOne(p.id,d.selectedListId&&d.selectedListId===p.id?{...d,selectedListId:null}:d)),(0,e.on)(a.o.updateListsFromBackend,d=>({...d,favoriteListsLoaded:!1})),(0,e.on)(a.o.mergeGuestFavoritesSuccess,d=>({...d})),(0,e.on)(a.o.refreshStoreAfterLogout,d=>t.removeAll({...d,favoriteListsLoaded:!1})),(0,e.on)(a.o.selectList,(d,p)=>({...d,selectedListId:p.selectedListId})),(0,e.on)(a.o.unSelectList,d=>({...d,selectedListId:void 0})),(0,e.on)(a.o.setShouldMergeFavorites,(d,p)=>({...d,shouldMergeFavorites:p.payload})));function s(d,p){return h(d,p)}},6796:(oe,x,i)=>{"use strict";i.d(x,{Qe:()=>v,bR:()=>u,jU:()=>y,qx:()=>p,zQ:()=>g});var e=i(28555),n=i(76433),a=i(75452);const{selectAll:t,selectEntities:l}=n.NZ.getSelectors(),h=(0,e.ZF)(a.K),s=(0,e.P1)(h,b=>b.favoritesLists),p=((0,e.P1)(h,b=>b.favoritesLists.entities.length),(0,e.P1)(h,b=>b.favoritesLists.selectedListId)),u=(0,e.P1)(s,t),g=(0,e.P1)(h,b=>b.favoritesLists.favoriteListsLoaded),v=(0,e.P1)(h,b=>b.favoritesLists.shouldMergeFavorites),y=(0,e.P1)((0,e.P1)(s,l),p,(b,S)=>S?b[S]:void 0)},48283:(oe,x,i)=>{"use strict";i.d(x,{D3:()=>s,Ik:()=>h,Mm:()=>a,O1:()=>t,RK:()=>n,j7:()=>l,jX:()=>d,kH:()=>u,lE:()=>p});var e=i(28555);const n=(0,e.PH)("[Favorites List Products] Show Favorites List Products"),a=(0,e.PH)("[Favorites List Products] Show Favorites List Products Success",(0,e.Ky)()),t=(0,e.PH)("[Favorites List Products] Update Total Elemets",(0,e.Ky)()),l=(0,e.PH)("[Favorites List Products] Update A Favorites List Product",(0,e.Ky)()),h=(0,e.PH)("[Favorites List Products] Update Pagination",(0,e.Ky)()),s=(0,e.PH)("[Favorites List Products] Delete Product From List",(0,e.Ky)()),d=(0,e.PH)("[Favorites List Products] Delete Product From List Success",(0,e.Ky)()),p=(0,e.PH)("[Favorites List Products] Add Product To List Success",(0,e.Ky)()),u=(0,e.PH)("[Favorites List Products] Clear Products")},91356:(oe,x,i)=>{"use strict";i.d(x,{Ur:()=>s,iw:()=>t});var e=i(28555),n=i(64629),a=i(48283);const t=(0,n.H)({}),l=t.getInitialState({pagination:{page:0,size:5,sort:"createDate"},totalElements:0}),h=(0,e.Lq)(l,(0,e.on)(a.Mm,(d,p)=>t.setAll(p.favoriteListProducts,d)),(0,e.on)(a.Ik,(d,p)=>({...d,pagination:p.pagination})),(0,e.on)(a.O1,(d,p)=>({...d,totalElements:p.totalElements})),(0,e.on)(a.j7,(d,p)=>t.updateOne({id:p.id,changes:p},d)),(0,e.on)(a.jX,(d,p)=>t.removeOne(p.id,{...d,totalElements:d.totalElements-1})),(0,e.on)(a.lE,(d,p)=>t.addOne(p.product,{...d,totalElements:d.totalElements+1})),(0,e.on)(a.kH,d=>t.removeAll({...d,totalElements:0})));function s(d,p){return h(d,p)}},49726:(oe,x,i)=>{"use strict";i.d(x,{ot:()=>u,tx:()=>p,xz:()=>g,zA:()=>h});var e=i(28555),n=i(91356),a=i(75452);const{selectAll:t}=n.iw.getSelectors();class h{constructor(y){Object.assign(this,y),this.id=Number(y.id)}}const s=(0,e.ZF)(a.K),d=(0,e.P1)(s,v=>v.favoriteListProducts),p=(0,e.P1)(d,t),u=(0,e.P1)(s,v=>v.favoriteListProducts.pagination),g=(0,e.P1)(s,v=>v.favoriteListProducts.totalElements)},33765:(oe,x,i)=>{"use strict";i.d(x,{L:()=>g});var e=i(76433),n=i(37097),a=i(64629),t=i(28555),l=i(53433);const h=(0,a.H)({selectId:v=>v.id}),s=h.getInitialState({}),d=(0,t.Lq)(s,(0,t.on)(l.N.loadListingProductsSuccess,(v,y)=>h.upsertMany(y.products,{...v})),(0,t.on)(l.N.loadListingProductsFailure,v=>({...v})),(0,t.on)(l.N.addCarouselProducts,(v,y)=>h.upsertMany(y.products,{...v})),(0,t.on)(l.N.addMissingProduct,(v,y)=>h.upsertOne(y.product,{...v})),(0,t.on)(l.N.addProductToListSuccess,(v,y)=>{let b=y.product.id;return v.entities[y.product.id]||(b=Object.keys(v.entities)?.find(S=>v.entities[S].slug===y.product.productSlug)),b&&(v.entities[b].packagings=[{productSlug:y.product.productSlug,inFavouriteLists:y.product.inLists.reduce((E,D)=>({...E,[D.id]:D.name}),{"-1":"DEFAULT_LIST"})}]),v}),(0,t.on)(l.N.addProductToListFailure,v=>({...v})),(0,t.on)(l.N.removeProductFromListSuccess,(v,y)=>{if(v.entities[y.product.id])return h.updateOne({id:y.product.id,changes:y.product},v);{const b=Object.keys(v.entities)?.find(S=>v.entities[S].slug===y.product.productSlug);return b&&y.isGuestUser&&delete v.entities[b].packagings?.find(S=>S.productSlug===y.product.productSlug).inFavouriteLists[-1],v}}),(0,t.on)(l.N.removeProductFromListIfExistsSuccess,(v,y)=>{const b=Object.keys(v.entities)?.find(S=>v.entities[S].productSlug===y.slug);return b?h.removeOne(Number(b),v):v}),(0,t.on)(l.N.deleteProductFromRootListSuccess,(v,y)=>h.updateOne({id:y.productToList.product.id,changes:y.productToList.product},v)),(0,t.on)(l.N.removeProductFromListSFailure,v=>({...v})),(0,t.on)(l.N.updateProductSuccess,(v,y)=>(y.selected&&y?.deletedLists&&(y.updatedProduct.packagings[0].inFavouriteLists=y.deletedLists),h.updateOne({id:y.updatedProduct.id,changes:y.updatedProduct},{...v}))),(0,t.on)(l.N.updateProductFailure,v=>({...v})));var u=i(91356);const g={favoritesLists:e.PW,preview:n.Q0,favoriteListProducts:u.Ur,productListing:function p(v,y){return d(v,y)}}},75452:(oe,x,i)=>{"use strict";i.d(x,{K:()=>e});const e="favorites"},53433:(oe,x,i)=>{"use strict";i.d(x,{N:()=>X});var e=i(28555);const n=(0,e.PH)("[Favorites] Load Listing Products"),a=(0,e.PH)("[Favorites API] Load Listing Products Success",(0,e.Ky)()),t=(0,e.PH)("[Favorites API] Load Listing Products Failure"),l=(0,e.PH)("[Favorites] Add Carousel Products",(0,e.Ky)()),h=(0,e.PH)("[Favorites] Add Product If Not Found In Listing",(0,e.Ky)()),s=(0,e.PH)("[Favorites] Update Product List",(0,e.Ky)()),d=(0,e.PH)("[Favorites] Create Product List",(0,e.Ky)()),p=(0,e.PH)("[Favorites] Delete product List",(0,e.Ky)()),u=(0,e.PH)("[Favorites] Add product to Root List and others",(0,e.Ky)()),g=(0,e.PH)("[Favorites] Add product to Root List and others Success",(0,e.Ky)()),v=(0,e.PH)("[Favorites] Delete product from Root List",(0,e.Ky)()),y=(0,e.PH)("[Favorites API] Delete product from Root List Success",(0,e.Ky)()),X={loadListingProducts:n,loadListingProductsSuccess:a,loadListingProductsFailure:t,addCarouselProducts:l,addMissingProduct:h,updateProductList:s,createProductList:d,deleteProductList:p,addProductToListSuccess:(0,e.PH)("[Favorites API] Add Product To List Success",(0,e.Ky)()),addProductToListFailure:(0,e.PH)("[Favorites API] Add Product To List Failure"),removeProductFromListSuccess:(0,e.PH)("[Favorites API] Remove Product From List Success",(0,e.Ky)()),removeProductFromListIfExistsSuccess:(0,e.PH)("[Favorites API] Remove Product From List If Exists Success",(0,e.Ky)()),removeProductFromListSFailure:(0,e.PH)("[Favorites API] Remove Product From List Failure"),addProductToLists:u,addProductToListsSuccess:g,deleteProductFromRootList:v,deleteProductFromRootListSuccess:y,updateProduct:(0,e.PH)("[Favorites] Update Product",(0,e.Ky)()),updateProductSuccess:(0,e.PH)("[Favorites] Update Product Success",(0,e.Ky)()),updateProductFailure:(0,e.PH)("[Favorites] Update Product Failure")}},10260:(oe,x,i)=>{"use strict";i.d(x,{g:()=>l});var e=i(28555),n=i(75452);const a=(0,e.ZF)(n.K),t=(0,e.P1)(a,h=>h.productListing.entities),l=(0,e.P1)(t,(h,s)=>h[s.id])},58476:(oe,x,i)=>{"use strict";i.d(x,{k:()=>xt});var e=i(35559),n=i(77579),a=i(17445),t=i(95698),l=i(68675),h=i(63900),s=i(82722),d=i(28918),p=i(77044),u=i(55738),g=i(29466),v=i(23312);const y=[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}];var b=i(94650),S=i(36895),E=i(17366),D=i(1576),A=i(55829),P=i(44850),B=i(41341),V=i(61396),X=i(3611),re=i(17802),Q=i(37998),ae=i(15282),K=i(9615),k=i(89383);let $=(()=>{class zt{constructor(){this.dateFormat=d.SWR.DayMonthYearSeparatedByDot}}return zt.\u0275fac=function(At){return new(At||zt)},zt.\u0275cmp=b.\u0275\u0275defineComponent({type:zt,selectors:[["app-order-remarks"]],inputs:{username:"username",date:"date",message:"message"},decls:13,vars:10,consts:[["fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","16px",1,"order-remarks"],[1,"order-remarks__title"],["fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","16px",1,"remark"],["fxLayout","column","fxLayoutAlign","center start"],[1,"remark__username"],[1,"remark__date"],[1,"remark__message"]],template:function(At,$e){1&At&&(b.\u0275\u0275elementStart(0,"div",0)(1,"span",1),b.\u0275\u0275text(2),b.\u0275\u0275pipe(3,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(4,"div",2)(5,"div",3)(6,"span",4),b.\u0275\u0275text(7),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(8,"span",5),b.\u0275\u0275text(9),b.\u0275\u0275pipe(10,"utcdate"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(11,"span",6),b.\u0275\u0275text(12),b.\u0275\u0275elementEnd()()()),2&At&&(b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(3,4,"PAGES.PATIENT.ORDERS.ORDER.REMARKS.TITLE")," "),b.\u0275\u0275advance(5),b.\u0275\u0275textInterpolate1(" ",$e.username," "),b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind3(10,6,$e.date,$e.dateFormat,"-")," "),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" ",$e.message," "))},dependencies:[D.xw,D.SQ,D.Wh,K.$,k.X$],styles:[".order-remarks[_ngcontent-%COMP%]{width:100%;color:#242424}.order-remarks__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.order-remarks[_ngcontent-%COMP%]   .remark[_ngcontent-%COMP%]{width:100%;border-radius:8px;padding:16px 16px 24px;background:#edeff2}.order-remarks[_ngcontent-%COMP%]   .remark__username[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.order-remarks[_ngcontent-%COMP%]   .remark__date[_ngcontent-%COMP%]{font-size:14px}.order-remarks[_ngcontent-%COMP%]   .remark__message[_ngcontent-%COMP%]{word-break:break-word;font-size:14px;font-style:italic}"],changeDetection:0}),zt})();var j=i(614);let R=(()=>{class zt{}return zt.\u0275fac=function(At){return new(At||zt)},zt.\u0275cmp=b.\u0275\u0275defineComponent({type:zt,selectors:[["app-order-delivery-details"]],inputs:{address:"address",username:"username",phone:"phone",extraInfo:"extraInfo"},decls:16,vars:11,consts:[[1,"order-delivery-details"],["fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","16px",1,"mb-8"],[1,"order-delivery-details__title"],["fxLayout","row","fxLayoutAlign","start start",1,"delivery-details"],["fxLayout","row","fxLayoutAlign","center center",1,"material-icons"],[1,"delivery-details__address"],[1,"order-delivery-details__extra-info"]],template:function(At,$e){1&At&&(b.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"span",2),b.\u0275\u0275text(3),b.\u0275\u0275pipe(4,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(5,"div",3)(6,"i",4),b.\u0275\u0275text(7,"location_on"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(8,"span",5)(9,"strong"),b.\u0275\u0275text(10),b.\u0275\u0275pipe(11,"titlecase"),b.\u0275\u0275elementEnd(),b.\u0275\u0275text(12),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(13,"span",6),b.\u0275\u0275text(14),b.\u0275\u0275pipe(15,"capitalize"),b.\u0275\u0275elementEnd()()),2&At&&(b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(4,5,"PAGES.PATIENT.ORDERS.ORDER.ORDER_DELIVERY_DETAILS.TITLE")," "),b.\u0275\u0275advance(7),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(11,7,$e.address)),b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate2(" - ",$e.username,", ",$e.phone," "),b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(15,9,$e.extraInfo)," "))},dependencies:[D.xw,D.SQ,D.Wh,S.TitleCasePipe,j.e,k.X$],styles:[".order-delivery-details[_ngcontent-%COMP%]{width:100%;color:#242424}.order-delivery-details__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.order-delivery-details[_ngcontent-%COMP%]   .delivery-details[_ngcontent-%COMP%]{width:100%;padding:16px;border-radius:8px;background:#edeff2}.order-delivery-details[_ngcontent-%COMP%]   .delivery-details[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{height:20px;width:20px;color:#00853b;font-size:22px;margin-right:8px}.order-delivery-details[_ngcontent-%COMP%]   .delivery-details__address[_ngcontent-%COMP%]{font-size:14px}.order-delivery-details__extra-info[_ngcontent-%COMP%]{font-size:14px;font-style:italic}"],changeDetection:0}),zt})();var U=i(15439),le=i.n(U),T=i(99818);let H=(()=>{class zt{constructor(){this.cancelOrder=new b.EventEmitter,this.cancelConfirmed=new b.EventEmitter,this.buttonIconPosition=d.ggF,this.buttonType=d.L$3,this.buttonColor=d.B6Y}}return zt.\u0275fac=function(At){return new(At||zt)},zt.\u0275cmp=b.\u0275\u0275defineComponent({type:zt,selectors:[["app-confirmation-section"]],outputs:{cancelOrder:"cancelOrder",cancelConfirmed:"cancelConfirmed"},decls:7,vars:13,consts:[["fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","16px",1,"confirmation-section"],[1,"confirmation-section__title"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutGap","8px",1,"confirmation-buttons"],[3,"type","color","iconPosition","textTranslationKey","icon","clickEvent"]],template:function(At,$e){1&At&&(b.\u0275\u0275elementStart(0,"div",0)(1,"span",1),b.\u0275\u0275text(2),b.\u0275\u0275pipe(3,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(4,"div",2)(5,"drc-button",3),b.\u0275\u0275listener("clickEvent",function(){return $e.cancelConfirmed.emit()}),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(6,"drc-button",3),b.\u0275\u0275listener("clickEvent",function(){return $e.cancelOrder.emit()}),b.\u0275\u0275elementEnd()()()),2&At&&(b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(3,11,"PAGES.PATIENT.ORDERS.ORDER.ORDER_INFO.CONFIRMATION_SECTION.TITLE")," "),b.\u0275\u0275advance(3),b.\u0275\u0275property("type",$e.buttonType.iconAndTextButton)("color",$e.buttonColor.warn)("iconPosition",$e.buttonIconPosition.left)("textTranslationKey","PAGES.PATIENT.ORDERS.ORDER.ORDER_INFO.CONFIRMATION_SECTION.CANCEL_BUTTON")("icon","close"),b.\u0275\u0275advance(1),b.\u0275\u0275property("type",$e.buttonType.iconAndTextButton)("color",$e.buttonColor.primary)("iconPosition",$e.buttonIconPosition.left)("textTranslationKey","PAGES.PATIENT.ORDERS.ORDER.ORDER_INFO.CONFIRMATION_SECTION.DONE_BUTTON")("icon","done"))},dependencies:[E.r,D.xw,D.SQ,D.Wh,k.X$],styles:[".confirmation-section[_ngcontent-%COMP%]{color:#242424;width:100%;max-width:400px;padding:16px 0 24px}.confirmation-section__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.confirmation-section[_ngcontent-%COMP%]   .confirmation-buttons[_ngcontent-%COMP%]{width:100%}.confirmation-section[_ngcontent-%COMP%]   .confirmation-buttons[_ngcontent-%COMP%]   drc-button[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),zt})();const N=function(zt,bt){return{date:zt,time:bt}};function pe(zt,bt){if(1&zt&&(b.\u0275\u0275elementStart(0,"strong",6),b.\u0275\u0275text(1),b.\u0275\u0275pipe(2,"translate"),b.\u0275\u0275pipe(3,"capitalize"),b.\u0275\u0275pipe(4,"date"),b.\u0275\u0275pipe(5,"date"),b.\u0275\u0275elementEnd()),2&zt){const At=b.\u0275\u0275nextContext();b.\u0275\u0275advance(1),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind2(2,1,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.DELIVERY_TIME_ANOTHER_DAY",b.\u0275\u0275pureFunction2(14,N,b.\u0275\u0275pipeBind1(3,4,b.\u0275\u0275pipeBind4(4,6,At.orderDate,At.customDateFormats.DayAndMonth2,"","ro")),b.\u0275\u0275pipeBind2(5,11,At.orderDate,At.customDateFormats.HourAndMinutes)))," ")}}function de(zt,bt){if(1&zt&&(b.\u0275\u0275elementStart(0,"div",16)(1,"span",5),b.\u0275\u0275text(2),b.\u0275\u0275pipe(3,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(4,"strong"),b.\u0275\u0275text(5),b.\u0275\u0275elementEnd()()),2&zt){const At=b.\u0275\u0275nextContext();b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(3,2,"PAGES.PATIENT.ORDERS.ORDER.ORDER_INFO.ORDER_AWB")),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate(At.orderAwb)}}function me(zt,bt){if(1&zt){const At=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"button",17),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(At);const Xe=b.\u0275\u0275nextContext();return b.\u0275\u0275resetView(Xe.toggleConfirmationSection())}),b.\u0275\u0275elementStart(1,"i",18),b.\u0275\u0275text(2,"close"),b.\u0275\u0275elementEnd(),b.\u0275\u0275text(3),b.\u0275\u0275pipe(4,"uppercase"),b.\u0275\u0275pipe(5,"translate"),b.\u0275\u0275elementEnd()}2&zt&&(b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(4,1,b.\u0275\u0275pipeBind1(5,3,"PAGES.PATIENT.ORDERS.ORDER.ORDER_INFO.ORDER_CANCEL_ORDER_BUTTON"))," "))}const q=function(zt){return{time:zt}};function se(zt,bt){if(1&zt&&(b.\u0275\u0275elementStart(0,"span",19),b.\u0275\u0275text(1),b.\u0275\u0275pipe(2,"translate"),b.\u0275\u0275pipe(3,"date"),b.\u0275\u0275elementEnd()),2&zt){const At=b.\u0275\u0275nextContext();b.\u0275\u0275advance(1),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind2(2,1,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.DELIVERY_TIME_TO_DAY",b.\u0275\u0275pureFunction1(7,q,b.\u0275\u0275pipeBind2(3,4,At.orderDate,At.customDateFormats.HourAndMinutes)))," ")}}const ve=function(zt){return{businessName:zt}},Ee=function(zt){return{"confirmation-section--show-buttons":zt}};let Ye=(()=>{class zt{constructor(At){this.orderService=At,this.canCancelOrder=!1,this.cancelOrder=new b.EventEmitter,this.customDateFormats=d.SWR,this.isVisibleConfirmationSection=!1,this.carmen=d.VLR,this.window=window,this.breakpoints=d.u3l}toggleConfirmationSection(){this.isVisibleConfirmationSection=!this.isVisibleConfirmationSection}isDateToday(At){return d.VLR.isDateToday(le()(At).toDate())}isCardPayment(At){return[d.AUI.REFUNDED,d.AUI.PAYMENT_PENDING,d.AUI.CAPTURED,d.AUI.FAILED].includes(At)}getStatusText(){return`UI_LIB.ORDER_STATUS_STEPPER.${this.isCardPayment(this.orderStatus)?"CARD_PAYMENT":this.orderStatus}`}}return zt.\u0275fac=function(At){return new(At||zt)(b.\u0275\u0275directiveInject(g.v))},zt.\u0275cmp=b.\u0275\u0275defineComponent({type:zt,selectors:[["app-order-information"]],inputs:{businessName:"businessName",orderId:"orderId",orderAwb:"orderAwb",orderDate:"orderDate",orderStatus:"orderStatus",canCancelOrder:"canCancelOrder"},outputs:{cancelOrder:"cancelOrder"},decls:32,vars:26,consts:[["fxLayout","column","fxLayoutAlign","center start",1,"order-details","mt-24"],[1,"order-details__business-name","mb-16"],["fxLayout","column","fxLayoutAlign","space-between",1,"order-info","w-100"],["fxLayout","column",1,"order-info__status-and-id"],[1,"order-info__status","mb-8"],[1,"mr-4"],[1,"order-info--green"],[1,"mb-8","order-info__delivery"],["class","order-info--green",4,"ngIf","ngIfElse"],["fxLayout","column"],[1,"order-info__id"],["class","order-info__awb mt-8",4,"ngIf"],["mat-button","","color","warn","class","order-details__cancel-order-button","fxLayout","row","fxLayoutAlign","center center",3,"click",4,"ngIf"],[1,"confirmation-section",3,"ngClass"],[3,"cancelOrder","cancelConfirmed"],["sameDayDelivery",""],[1,"order-info__awb","mt-8"],["mat-button","","color","warn","fxLayout","row","fxLayoutAlign","center center",1,"order-details__cancel-order-button",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"material-icons"],[1,"delivery-time__value","order-info--green"]],template:function(At,$e){if(1&At&&(b.\u0275\u0275elementStart(0,"div",0)(1,"span",1),b.\u0275\u0275text(2),b.\u0275\u0275pipe(3,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(4,"div",2)(5,"div",3)(6,"div",4)(7,"span",5),b.\u0275\u0275text(8),b.\u0275\u0275pipe(9,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(10,"strong",6),b.\u0275\u0275text(11),b.\u0275\u0275pipe(12,"translate"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(13,"div",7)(14,"span"),b.\u0275\u0275text(15),b.\u0275\u0275pipe(16,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(17,pe,6,17,"strong",8),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(18,"div",9)(19,"div",10)(20,"span",5),b.\u0275\u0275text(21),b.\u0275\u0275pipe(22,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(23,"strong"),b.\u0275\u0275text(24),b.\u0275\u0275elementEnd()(),b.\u0275\u0275template(25,de,6,4,"div",11),b.\u0275\u0275elementEnd()(),b.\u0275\u0275template(26,me,6,5,"button",12),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(27,"div",13),b.\u0275\u0275element(28,"mat-divider"),b.\u0275\u0275elementStart(29,"app-confirmation-section",14),b.\u0275\u0275listener("cancelOrder",function(){return $e.cancelOrder.emit()})("cancelConfirmed",function(){return $e.isVisibleConfirmationSection=!1}),b.\u0275\u0275elementEnd()(),b.\u0275\u0275template(30,se,4,9,"ng-template",null,15,b.\u0275\u0275templateRefExtractor)),2&At){const Xe=b.\u0275\u0275reference(31);b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind2(3,11,"PAGES.PATIENT.ORDERS.ORDER.ORDER_INFO.PATIENT_ORDER",b.\u0275\u0275pureFunction1(22,ve,$e.businessName))," "),b.\u0275\u0275advance(6),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(9,14,"PAGES.PATIENT.ORDERS.ORDER.ORDER_INFO.STATUS")),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(12,16,$e.getStatusText())),b.\u0275\u0275advance(4),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(16,18,"PAGES.PATIENT.ORDERS.ORDER.ORDER_INFO.DELIVERY_ESTIMATION")),b.\u0275\u0275advance(2),b.\u0275\u0275property("ngIf",!$e.isDateToday($e.orderDate))("ngIfElse",Xe),b.\u0275\u0275advance(4),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(22,20,"PAGES.PATIENT.ORDERS.ORDER.ORDER_INFO.ORDER_ID")),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1("#",$e.orderId,""),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngIf",$e.orderAwb),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngIf",$e.canCancelOrder),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngClass",b.\u0275\u0275pureFunction1(24,Ee,$e.isVisibleConfirmationSection&&$e.canCancelOrder))}},dependencies:[S.NgClass,S.NgIf,D.xw,D.Wh,A.oO,T.eB,P.d,H,S.UpperCasePipe,S.DatePipe,j.e,k.X$],styles:[".confirmation-section[_ngcontent-%COMP%]{height:0;overflow:hidden;transition:height .3s}.confirmation-section--show-buttons[_ngcontent-%COMP%]{height:129px}.order-details[_ngcontent-%COMP%]{color:#242424}.order-details__business-name[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.order-details[_ngcontent-%COMP%]   .order-info[_ngcontent-%COMP%]{font-size:14px;color:#242424}.order-details[_ngcontent-%COMP%]   .order-info--green[_ngcontent-%COMP%]{color:#00853b;font-weight:700}.order-details__cancel-order-button[_ngcontent-%COMP%]{font-size:14px;font-weight:700;padding-right:0;padding-left:0}.order-details__cancel-order-button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{margin-right:8px;height:20px;width:20px}"],changeDetection:0}),zt})();var wt=i(86673);let Wt=(()=>{class zt{}return zt.\u0275fac=function(At){return new(At||zt)},zt.\u0275cmp=b.\u0275\u0275defineComponent({type:zt,selectors:[["app-order-payment-details"]],inputs:{orderPaymentType:"orderPaymentType",orderPaymentStatus:"orderPaymentStatus"},decls:9,vars:7,consts:[["fxLayout","column","fxLayoutGap","8px",1,"order-payment-details"],[1,"order-payment-details__title"],[1,"order-payment-details__payment-type"],[1,"order-payment-details__payment-status"],[3,"status"]],template:function(At,$e){1&At&&(b.\u0275\u0275elementStart(0,"div",0)(1,"span",1),b.\u0275\u0275text(2),b.\u0275\u0275pipe(3,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(4,"span",2),b.\u0275\u0275text(5),b.\u0275\u0275pipe(6,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(7,"div",3),b.\u0275\u0275element(8,"app-order-status",4),b.\u0275\u0275elementEnd()()),2&At&&(b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(3,3,"PAGES.PATIENT.ORDERS.ORDER.ORDER_PAYMENT_DETAILS.TITLE")," "),b.\u0275\u0275advance(3),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(6,5,"PAGES.PATIENT.ORDERS.ORDER.ORDER_PAYMENT_DETAILS."+$e.orderPaymentType)," "),b.\u0275\u0275advance(3),b.\u0275\u0275property("status",$e.orderPaymentStatus))},dependencies:[D.xw,D.SQ,wt.y,k.X$],styles:[".order-payment-details[_ngcontent-%COMP%]{color:#242424}.order-payment-details__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.order-payment-details__payment-type[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.order-payment-details__payment-status[_ngcontent-%COMP%]{width:max-content}"],changeDetection:0}),zt})();function Ut(zt,bt){1&zt&&(b.\u0275\u0275elementStart(0,"span",6),b.\u0275\u0275text(1),b.\u0275\u0275pipe(2,"translate"),b.\u0275\u0275elementEnd()),2&zt&&(b.\u0275\u0275advance(1),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(2,1,"PAGES.PATIENT.ORDERS.ORDER.MODIFIED_ORDER.MODIFIED_ORDER_MESSAGE")," "))}function nt(zt,bt){1&zt&&(b.\u0275\u0275elementStart(0,"span",6),b.\u0275\u0275text(1),b.\u0275\u0275pipe(2,"translate"),b.\u0275\u0275elementEnd()),2&zt&&(b.\u0275\u0275advance(1),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(2,1,"PAGES.PATIENT.ORDERS.ORDER.MODIFIED_ORDER.MODIFIED_ORDER_CARD_MESSAGE")," "))}let Zt=(()=>{class zt{constructor(){this.paymentType=d.uG_}}return zt.\u0275fac=function(At){return new(At||zt)},zt.\u0275cmp=b.\u0275\u0275defineComponent({type:zt,selectors:[["app-modified-order-content"]],inputs:{orderPaymentType:"orderPaymentType"},decls:10,vars:5,consts:[["fxLayout","column","fxLayoutGap","16px",1,"content__container"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px"],["fxLayout","row","fxLayoutAlign","center center",1,"material-icons"],[1,"content__title"],["class","content__text",4,"ngIf","ngIfElse"],["modifiedOrderCardPayment",""],[1,"content__text"]],template:function(At,$e){if(1&At&&(b.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"i",2),b.\u0275\u0275text(3,"error"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(4,"span",3),b.\u0275\u0275text(5),b.\u0275\u0275pipe(6,"translate"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275template(7,Ut,3,3,"span",4),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(8,nt,3,3,"ng-template",null,5,b.\u0275\u0275templateRefExtractor)),2&At){const Xe=b.\u0275\u0275reference(9);b.\u0275\u0275advance(5),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(6,3,"PAGES.PATIENT.ORDERS.ORDER.MODIFIED_ORDER.CONTENT_TITLE")),b.\u0275\u0275advance(2),b.\u0275\u0275property("ngIf",$e.orderPaymentType!==$e.paymentType.CARD)("ngIfElse",Xe)}},dependencies:[S.NgIf,D.xw,D.SQ,D.Wh,k.X$],styles:[".content__container[_ngcontent-%COMP%]{margin:16px 0 8px;padding:16px;background:#fff3e0;border-radius:4px}.content__container[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{height:20px;width:20px;color:#ff001a}.content__title[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.content__text[_ngcontent-%COMP%]{font-size:14px}"],changeDetection:0}),zt})();function ie(zt,bt){if(1&zt&&b.\u0275\u0275element(0,"app-modified-order-content",23),2&zt){const At=b.\u0275\u0275nextContext();b.\u0275\u0275property("orderPaymentType",At.orderDetails.paymentType)}}function Ce(zt,bt){if(1&zt&&(b.\u0275\u0275elementStart(0,"div",24)(1,"agm-map",25)(2,"agm-circle",26)(3,"agm-overlay",26)(4,"div",27)(5,"i",28),b.\u0275\u0275text(6,"local_shipping"),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(7,"agm-overlay",26)(8,"div",29),b.\u0275\u0275element(9,"img",30),b.\u0275\u0275pipe(10,"translate"),b.\u0275\u0275elementEnd()()()()()),2&zt){const At=b.\u0275\u0275nextContext();b.\u0275\u0275advance(1),b.\u0275\u0275property("styles",At.myMapStyle)("latitude",At.mapCenterPointCoordinates.lat)("longitude",At.mapCenterPointCoordinates.lng)("keyboardShortcuts",!1)("tilt",At.mapTilt)("disableDefaultUI",!0)("clickableIcons",!1)("scrollwheel",!1)("mapDraggable",!1)("usePanning",!0)("zoom",At.zoomLevel),b.\u0275\u0275advance(1),b.\u0275\u0275property("latitude",At.courierLocation.lat)("longitude",At.courierLocation.lng),b.\u0275\u0275advance(1),b.\u0275\u0275property("latitude",At.courierLocation.lat)("longitude",At.courierLocation.lng),b.\u0275\u0275advance(4),b.\u0275\u0275property("latitude",At.orderDetails.deliveryAddressCoordinates.lat)("longitude",At.orderDetails.deliveryAddressCoordinates.lng),b.\u0275\u0275advance(2),b.\u0275\u0275property("src",At.orderDetails.patientLogoUrl||At.userDefaultImage,b.\u0275\u0275sanitizeUrl)("alt",b.\u0275\u0275pipeBind1(10,19,"SHARED.LOGIN.USER_IMAGE"))}}function Ie(zt,bt){if(1&zt&&(b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275element(1,"mat-divider",3),b.\u0275\u0275elementStart(2,"div",31),b.\u0275\u0275element(3,"app-order-remarks",32),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementContainerEnd()),2&zt){const At=b.\u0275\u0275nextContext();b.\u0275\u0275advance(3),b.\u0275\u0275property("username",At.orderDetails.patientName)("date",At.orderDetails.date)("message",At.orderDetails.notes)}}function dt(zt,bt){1&zt&&b.\u0275\u0275element(0,"mat-divider",3)}function Mt(zt,bt){if(1&zt&&(b.\u0275\u0275elementStart(0,"div",33)(1,"div",34),b.\u0275\u0275text(2),b.\u0275\u0275pipe(3,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(4,"app-contact-form-component",35),b.\u0275\u0275elementEnd()),2&zt){const At=b.\u0275\u0275nextContext();b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(3,4,"ROUTES.PATIENT.COMPLAINTS")),b.\u0275\u0275advance(2),b.\u0275\u0275property("contactMessageType",At.contactMessageType.ORDER_COMPLAINT)("orderId",null==At.orderDetails?null:At.orderDetails.orderId)("businessId",null==At.orderDetails?null:At.orderDetails.businessId)}}class xt{constructor(bt,At,$e,Xe,Pe){this.dialogRef=bt,this.data=At,this.orderService=$e,this.courierService=Xe,this.snackbarService=Pe,this.areItemsScrollable=!0,this.buttonTypes=d.L$3,this.iconsPositions=d.ggF,this.paletteOptions=d.B6Y,this.orderProductType=d.KoQ,this.orderSummaryType=d.zE0,this.orderStatus=d.iFo,this.stopPollingSubject=new n.x,this.myMapStyle=y,this.userDefaultImage=d.C7F,this.mapCenterPointCoordinates={lat:0,lng:0},this.zoomLevel=0,this.mapTilt=45,this.earthRadius=d.Y5A,this.contactMessageType=d.ZbP}ngOnInit(){this.setOrderDetails(),this.sendDataOnBackdropClick()}ngOnDestroy(){this.stopCourierLocationPollingSignal()}calculateZoomLevel(){const bt=this.degToRad(this.courierLocation.lat-this.orderDetails.deliveryAddressCoordinates.lat),At=this.degToRad(this.courierLocation.lng-this.orderDetails.deliveryAddressCoordinates.lng),$e=Math.sin(bt/2)*Math.sin(bt/2)+Math.cos(this.degToRad(this.orderDetails.deliveryAddressCoordinates.lat))*Math.cos(this.degToRad(this.courierLocation.lat))*Math.sin(bt/2)*Math.sin(bt/2),Xe=2*Math.atan2(Math.sqrt($e),Math.sqrt(1-$e)),Pe=this.earthRadius*Xe,Ve=Math.sin(At/2)*Math.sin(At/2)+Math.cos(this.degToRad(this.orderDetails.deliveryAddressCoordinates.lng))*Math.cos(this.degToRad(this.courierLocation.lng))*Math.sin(At/2)*Math.sin(At/2),mt=2*Math.atan2(Math.sqrt(Ve),Math.sqrt(1-Ve)),xn=Math.max(Pe,this.earthRadius*mt*1.1);this.zoomLevel=Math.floor(Math.log2(5e4/xn)),this.zoomLevel>=10&&(this.zoomLevel-=1),this.zoomLevel>21&&(this.zoomLevel=21),this.zoomLevel<8&&(this.zoomLevel=8)}getDisplayedStatus(){const bt=this.orderDetails.orderStatuses.filter(At=>!!At.timestamp);return bt[bt.length-1].status}degToRad(bt){return bt*(Math.PI/180)}getMapCenterPointCoordinates(){this.mapCenterPointCoordinates={lat:(this.courierLocation.lat+this.orderDetails.deliveryAddressCoordinates.lat)/2,lng:(this.courierLocation.lng+this.orderDetails.deliveryAddressCoordinates.lng)/2}}isMobile(){return window.innerWidth<=d.u3l.MOBILE_XL}setOrderDetails(){this.orderDetails=this.data.orderDetails,this.orderDetails.orderStatus===d.iFo.IN_DELIVERY&&this.setCourierLocation(this.orderDetails.courierId,this.orderDetails.awb)}getMaxHeight(bt){let Xe=58;return d.VLR.isNativeIos&&(Xe+=d.miL+d.l6b/2),{"max-height":window.innerHeight-(bt.clientHeight+68+Xe)+"px","overflow-y":this.areItemsScrollable?"auto":"hidden"}}close(){this.dialogRef.close(this.orderDetails)}canCancelOrder(){return[d.iFo.NEW,d.iFo.PREORDER].includes(this.orderDetails.orderStatus)||this.isPharmacyOrderInShippingReady()||this.orderDetails.paymentStatus===d.bGq.REJECTED||this.orderDetails.deliveryType===d.lFT.PICKUP||this.orderDetails.businessProcessingType===d.MI0.SHOP_AND_GO}cancelOrder(){this.orderService.cancelOrderPartially(this.orderDetails.orderId,this.orderDetails.businessId).pipe((0,t.q)(1)).subscribe({next:bt=>{bt&&(this.orderDetails=bt),this.snackbarService.displayMessage(d.CsS.SUCCESS,"PAGES.PATIENT.ORDERS.ORDER.ORDER_CANCELED")},error:()=>this.snackbarService.displayMessage(d.CsS.ERROR,"PAGES.PATIENT.ORDERS.ORDER.CANNOT_BE_CANCELED")})}isModifiedOrder(){return this.orderDetails.paymentStatus===d.bGq.PARTIAL||!!this.orderDetails.newTotal}isPharmacyOrderInShippingReady(){return this.orderDetails.orderStatus===d.iFo.SHIPPING_READY&&this.orderDetails.businessType===d.Pui.PHARMACY}shouldShowComplaintSection(){return[d.iFo.COMPLETE,d.iFo.CANCELLED].includes(this.orderDetails?.orderStatus)}sendDataOnBackdropClick(){this.dialogRef.beforeClosed().pipe((0,t.q)(1)).subscribe(()=>this.close())}handleCourierLocationError(bt){if(bt.startsWith(d.JOK.CHANGES_ALLOWED_ONCE_PER_DAY))return this.stopCourierLocationPollingSignal();this.snackbarService.displayMessage(d.CsS.ERROR,"PAGES.PATIENT.ORDERS.ORDER.CANNOT_ACCESS_COURIER_LOCATION"),this.stopCourierLocationPollingSignal()}stopCourierLocationPollingSignal(){this.stopPollingSubject.next(),this.stopPollingSubject.complete()}setCourierLocation(bt,At){this.courierLocationSubscription=(0,a.F)(3e4).pipe((0,l.O)(0),(0,h.w)(()=>this.courierService.getCourierLocation(bt,At)),(0,s.R)(this.stopPollingSubject)).subscribe({next:$e=>{this.courierLocation=$e,this.getMapCenterPointCoordinates(),this.calculateZoomLevel()},error:$e=>this.handleCourierLocationError($e.error.message)})}}xt.\u0275fac=function(bt){return new(bt||xt)(b.\u0275\u0275directiveInject(e.hV),b.\u0275\u0275directiveInject(e.eJ),b.\u0275\u0275directiveInject(g.v),b.\u0275\u0275directiveInject(v.C),b.\u0275\u0275directiveInject(d.vio.SnackbarMessageServiceToken))},xt.\u0275cmp=b.\u0275\u0275defineComponent({type:xt,selectors:[["app-patient-order-details"]],decls:28,vars:31,consts:[["fxLayout","column","fxLayoutAlign","center end",1,"dialog-close-button"],["header",""],["icon","close",3,"type","clickEvent"],[1,"dialog-full-width-divider"],[3,"ngStyle"],[3,"orderPaymentType",4,"ngIf"],[3,"orderId","orderDate","orderAwb","orderStatus","businessName","canCancelOrder","cancelOrder"],["class","agmMap mt-16 mb-8",4,"ngIf"],[1,"order-summary"],[3,"patientBusinessOrder","orderSummaryType"],[1,"order-products-list"],[1,"order-products-list__title"],[1,"order-products-list__divider"],[3,"products","productType"],[4,"ngIf"],[1,"order-delivery-details","standard-padding"],[3,"username","phone","address","extraInfo"],[1,"order-payment-method","standard-padding"],[3,"orderPaymentType","orderPaymentStatus"],["class","dialog-full-width-divider",4,"ngIf"],["class","reclamation-section standard-padding",4,"ngIf"],[1,"dialog-full-width-divider","mb-16"],[3,"color","type","iconPosition","textTranslationKey","icon","clickEvent"],[3,"orderPaymentType"],[1,"agmMap","mt-16","mb-8"],[2,"height","100%",3,"styles","latitude","longitude","keyboardShortcuts","tilt","disableDefaultUI","clickableIcons","scrollwheel","mapDraggable","usePanning","zoom"],[3,"latitude","longitude"],[1,"agmMap__overlay-content"],[1,"material-icons"],[1,"agmMap__overlay-content","overlay-content--green-border"],[3,"src","alt"],[1,"order-remarks","standard-padding"],[3,"username","date","message"],[1,"reclamation-section","standard-padding"],[1,"reclamation-section__text"],[3,"contactMessageType","orderId","businessId"]],template:function(bt,At){if(1&bt&&(b.\u0275\u0275elementStart(0,"div",0,1)(2,"drc-button",2),b.\u0275\u0275listener("clickEvent",function(){return At.close()}),b.\u0275\u0275elementEnd()(),b.\u0275\u0275element(3,"mat-divider",3),b.\u0275\u0275elementStart(4,"mat-dialog-content",4),b.\u0275\u0275template(5,ie,1,1,"app-modified-order-content",5),b.\u0275\u0275elementStart(6,"app-order-information",6),b.\u0275\u0275listener("cancelOrder",function(){return At.cancelOrder()}),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(7,Ce,11,21,"div",7),b.\u0275\u0275elementStart(8,"div",8),b.\u0275\u0275element(9,"app-order-summary-stepper",9),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(10,"mat-divider",3),b.\u0275\u0275elementStart(11,"div",10)(12,"span",11),b.\u0275\u0275text(13),b.\u0275\u0275pipe(14,"translate"),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(15,"mat-divider",12)(16,"app-product-list",13),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(17,Ie,4,3,"ng-container",14),b.\u0275\u0275element(18,"mat-divider",3),b.\u0275\u0275elementStart(19,"div",15),b.\u0275\u0275element(20,"app-order-delivery-details",16),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(21,"mat-divider",3),b.\u0275\u0275elementStart(22,"div",17),b.\u0275\u0275element(23,"app-order-payment-details",18),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(24,dt,1,0,"mat-divider",19),b.\u0275\u0275template(25,Mt,5,6,"div",20),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(26,"mat-divider",21),b.\u0275\u0275elementStart(27,"drc-button",22),b.\u0275\u0275listener("clickEvent",function(){return At.close()}),b.\u0275\u0275elementEnd()),2&bt){const $e=b.\u0275\u0275reference(1);b.\u0275\u0275advance(2),b.\u0275\u0275property("type",At.buttonTypes.iconButton),b.\u0275\u0275advance(2),b.\u0275\u0275property("ngStyle",At.getMaxHeight($e)),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngIf",At.isModifiedOrder()),b.\u0275\u0275advance(1),b.\u0275\u0275property("orderId",At.orderDetails.orderId)("orderDate",At.orderDetails.estimatedDeliveryTime)("orderAwb",At.orderDetails.awb)("orderStatus",At.getDisplayedStatus())("businessName",At.orderDetails.businessName)("canCancelOrder",At.canCancelOrder()),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngIf",At.orderDetails.orderStatus===At.orderStatus.IN_DELIVERY&&At.courierLocation),b.\u0275\u0275advance(2),b.\u0275\u0275property("patientBusinessOrder",At.orderDetails)("orderSummaryType",At.orderSummaryType.PATIENT_ORDER_SUMMARY),b.\u0275\u0275advance(4),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(14,29,"PAGES.PATIENT.ORDERS.ORDER.ORDER_PRODUCTS_TITLE")," "),b.\u0275\u0275advance(3),b.\u0275\u0275property("products",At.orderDetails.items)("productType",At.orderProductType.PATIENT_ORDER_PRODUCT),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngIf",At.orderDetails.notes),b.\u0275\u0275advance(3),b.\u0275\u0275property("username",At.orderDetails.patientName)("phone",At.orderDetails.patientPhone)("address",At.orderDetails.addressFullName)("extraInfo",At.orderDetails.deliveryAddressNotes),b.\u0275\u0275advance(3),b.\u0275\u0275property("orderPaymentType",At.orderDetails.paymentType)("orderPaymentStatus",At.orderDetails.displayedStatus),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngIf",At.shouldShowComplaintSection()),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngIf",At.shouldShowComplaintSection()),b.\u0275\u0275advance(2),b.\u0275\u0275property("color",At.paletteOptions.accent)("type",At.buttonTypes.iconAndTextButton)("iconPosition",At.iconsPositions.left)("textTranslationKey","PAGES.PATIENT.ORDERS.ORDER.BACK_BUTTON")("icon","chevron_left")}},dependencies:[S.NgIf,S.NgStyle,E.r,D.xw,D.Wh,A.Zl,e.Rb,P.d,B.uU,B.SA,V.c,X.b,re.J,Q.X,ae.O,$,R,Ye,Wt,Zt,k.X$],styles:["mat-dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}mat-dialog-actions[_ngcontent-%COMP%]{margin-bottom:unset}.agmMap[_ngcontent-%COMP%]{width:100%;height:328px}.agmMap__overlay-content[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;border-radius:50%;width:36px;height:36px;overflow:hidden;margin-top:3px;margin-left:-6px;background-color:#00853b;display:flex;align-items:center;justify-content:center;border:solid 2px transparent}.agmMap__overlay-content--green-border[_ngcontent-%COMP%]{border-color:#00853b}.agmMap__overlay-content[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;color:#fff}.agmMap__overlay-content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{background-color:transparent;width:100%;height:100%;object-fit:cover}.dialog-close-button[_ngcontent-%COMP%]{padding-bottom:16px}.dialog-close-button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{height:20px;width:20px}.order-products-list[_ngcontent-%COMP%]{padding-top:16px}.order-products-list__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.order-products-list__divider[_ngcontent-%COMP%]{margin-top:28px}.standard-padding[_ngcontent-%COMP%]{padding:16px 0}.back[_ngcontent-%COMP%]   drc-button[_ngcontent-%COMP%]{width:100%}.reclamation-section__text[_ngcontent-%COMP%]{font-size:22px;font-weight:700}"]}),function(zt,bt,At,$e){var Ve,Xe=arguments.length,Pe=Xe<3?bt:null===$e?$e=Object.getOwnPropertyDescriptor(bt,At):$e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Pe=Reflect.decorate(zt,bt,At,$e);else for(var mt=zt.length-1;mt>=0;mt--)(Ve=zt[mt])&&(Pe=(Xe<3?Ve(Pe):Xe>3?Ve(bt,At,Pe):Ve(bt,At))||Pe);Xe>3&&Pe&&Object.defineProperty(bt,At,Pe)}([(0,p.I)(),function(zt,bt){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",bt)}(0,u.n)],xt.prototype,"user",void 0)},99912:(oe,x,i)=>{"use strict";i.d(x,{n:()=>pe});var e=i(35559),n=i(82722),a=i(77579),t=i(28918),l=i(77044),h=i(55738),s=i(20080),d=i(80037),p=i(97376),u=i(94650),g=i(9116),v=i(36895),y=i(52267),b=i(17366),S=i(1576),E=i(55829),D=i(3611),A=i(40750),P=i(30931),B=i(56146),V=i(36667),X=i(89383);function ae(de,me){if(1&de){const q=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"drc-quantity-change",26),u.\u0275\u0275listener("changedQuantity",function(ve){u.\u0275\u0275restoreView(q);const Ee=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(Ee.changeQuantity(ve))}),u.\u0275\u0275elementEnd()}if(2&de){const q=u.\u0275\u0275nextContext(2);u.\u0275\u0275property("maxQuantityLimit",null==q.selectedOffer?null:q.selectedOffer.stock)}}const K=function(de){return{"loading-button":de}};function k(de,me){if(1&de){const q=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",27)(1,"drc-button",28),u.\u0275\u0275listener("clickEvent",function(){u.\u0275\u0275restoreView(q);const ve=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(ve.addToCartClicked())}),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(2,"drc-page-spinner",29),u.\u0275\u0275elementEnd()}if(2&de){const q=u.\u0275\u0275nextContext(2);u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(8,K,q.isAddToCartLoading)),u.\u0275\u0275advance(1),u.\u0275\u0275property("type",q.buttonType.iconAndTextButton)("color",q.buttonColors.primary)("icon","add_shopping_cart")("iconPosition",q.iconPosition.left)("textTranslationKey","SHARED.PRODUCT.CONTROLS.ADD_TO_CART"),u.\u0275\u0275advance(1),u.\u0275\u0275property("diameter",25)("fxHide",!q.isAddToCartLoading)}}const $=function(de){return{value:de}},j=function(de){return{"out-of-stock":de}};function R(de,me){if(1&de&&(u.\u0275\u0275elementStart(0,"div",11)(1,"div",12)(2,"div",13)(3,"div",14),u.\u0275\u0275element(4,"img",15),u.\u0275\u0275elementStart(5,"div",16)(6,"span",17),u.\u0275\u0275text(7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(8,"div",13)(9,"span",18),u.\u0275\u0275text(10),u.\u0275\u0275elementEnd()()()(),u.\u0275\u0275elementStart(11,"div",19),u.\u0275\u0275element(12,"span",20),u.\u0275\u0275pipe(13,"translate"),u.\u0275\u0275pipe(14,"price"),u.\u0275\u0275template(15,ae,1,1,"drc-quantity-change",21),u.\u0275\u0275template(16,k,3,10,"div",22),u.\u0275\u0275element(17,"app-favourites-heart-btn",23),u.\u0275\u0275elementEnd()(),u.\u0275\u0275elementStart(18,"div",24)(19,"i",25),u.\u0275\u0275text(20,"close"),u.\u0275\u0275elementEnd()()()()),2&de){const q=u.\u0275\u0275nextContext();u.\u0275\u0275advance(4),u.\u0275\u0275property("src",q.product.images[0].thumbnail,u.\u0275\u0275sanitizeUrl),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate(q.product.name),u.\u0275\u0275advance(2),u.\u0275\u0275property("routerLink",null==q.selectedOffer||null==q.selectedOffer.businessProfile?null:q.selectedOffer.businessProfile.publicProfileRouterLink),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1(" ",null==q.selectedOffer?null:q.selectedOffer.businessName," "),u.\u0275\u0275advance(2),u.\u0275\u0275property("innerHTML",u.\u0275\u0275pipeBind2(13,11,q.carmen.getCurrencyTranslationKey(null==q.selectedOffer?null:q.selectedOffer.price),u.\u0275\u0275pureFunction1(16,$,u.\u0275\u0275pipeBind1(14,14,null==q.selectedOffer?null:q.selectedOffer.price))),u.\u0275\u0275sanitizeHtml)("ngClass",u.\u0275\u0275pureFunction1(18,j,!(null!=q.selectedOffer&&q.selectedOffer.stock))),u.\u0275\u0275advance(3),u.\u0275\u0275property("ngIf",null==q.selectedOffer?null:q.selectedOffer.stock),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!(null!=q.user&&q.user.isBusiness())&&(null==q.selectedOffer?null:q.selectedOffer.stock)),u.\u0275\u0275advance(1),u.\u0275\u0275property("product",q.product)("type",q.controlTypes.PRODUCT_LISTING)("productSlug",(null==q.product||null==q.product.bestOffer?null:q.product.bestOffer.productSlug)||(null==q.product||null==q.product.packagings[0]?null:q.product.packagings[0].slug)||q.product.productSlug)}}function U(de,me){if(1&de){const q=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",37)(1,"drc-button",38),u.\u0275\u0275listener("clickEvent",function(){u.\u0275\u0275restoreView(q);const ve=u.\u0275\u0275nextContext(3);return u.\u0275\u0275resetView(ve.addToCartClicked())}),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(2,"drc-page-spinner",29),u.\u0275\u0275elementEnd()}if(2&de){const q=u.\u0275\u0275nextContext(3);u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(8,K,q.isAddToCartLoading)),u.\u0275\u0275advance(1),u.\u0275\u0275property("type",q.buttonType.iconAndTextButton)("color",q.buttonColors.primary)("icon","add_shopping_cart")("iconPosition",q.iconPosition.left)("textTranslationKey",q.innerWidth>=q.breakpoints.MOBILE_L?"SHARED.PRODUCT.CONTROLS.ADD_TO_CART":"SHARED.PRODUCT.CONTROLS.ADD"),u.\u0275\u0275advance(1),u.\u0275\u0275property("diameter",25)("fxHide",!q.isAddToCartLoading)}}function le(de,me){if(1&de){const q=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",35)(1,"drc-quantity-change",26),u.\u0275\u0275listener("changedQuantity",function(ve){u.\u0275\u0275restoreView(q);const Ee=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(Ee.changeQuantity(ve))}),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(2,U,3,10,"div",36),u.\u0275\u0275elementEnd()}if(2&de){const q=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(1),u.\u0275\u0275property("maxQuantityLimit",null==q.selectedOffer?null:q.selectedOffer.stock),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!(null!=q.user&&q.user.isBusiness())&&q.selectedOffer&&(null==q.selectedOffer?null:q.selectedOffer.stock))}}function T(de,me){if(1&de&&(u.\u0275\u0275elementStart(0,"div",30)(1,"div",31),u.\u0275\u0275element(2,"span",32),u.\u0275\u0275pipe(3,"translate"),u.\u0275\u0275pipe(4,"price"),u.\u0275\u0275element(5,"app-favourites-heart-btn",33),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(6,le,3,2,"div",34),u.\u0275\u0275elementEnd()),2&de){const q=u.\u0275\u0275nextContext();u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(11,j,!(null!=q.selectedOffer&&q.selectedOffer.stock))),u.\u0275\u0275advance(2),u.\u0275\u0275property("innerHTML",u.\u0275\u0275pipeBind2(3,6,q.carmen.getCurrencyTranslationKey(null==q.selectedOffer?null:q.selectedOffer.price),u.\u0275\u0275pureFunction1(13,$,u.\u0275\u0275pipeBind1(4,9,null==q.selectedOffer?null:q.selectedOffer.price))),u.\u0275\u0275sanitizeHtml),u.\u0275\u0275advance(3),u.\u0275\u0275property("product",q.product)("type",q.controlTypes.PRODUCT_LISTING)("productSlug",(null==q.product||null==q.product.bestOffer?null:q.product.bestOffer.productSlug)||(null==q.product||null==q.product.packagings[0]?null:q.product.packagings[0].slug)||q.product.productSlug),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",null==q.selectedOffer?null:q.selectedOffer.stock)}}const H=function(de){return{"container-header--ios-padding":de}},N=function(de){return{"content-container":de}};class pe{constructor(me,q,se,ve,Ee,Ye,wt,Wt,Ut,nt,Zt){this.cartService=me,this.userLocationService=q,this.snackbarMessageService=se,this.fbPixelTrackingService=ve,this.router=Ee,this.dialog=Ye,this.filtersService=wt,this.dialogRef=Wt,this.productService=Ut,this.location=nt,this.data=Zt,this.unsubscribe$=new a.x,this.isSticky=!1,this.breakpoints=t.u3l,this.carmen=t.VLR,this.quantity=1,this.buttonType=t.L$3,this.iconPosition=t.ggF,this.buttonColors=t.B6Y,this.controlTypes=t.yP3,this.isInitialProductLoad=!0}ngOnInit(){this.initializeCartHelper(),this.getProduct(),this.innerWidth=window.innerWidth}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}updateUrl(){const me=this.selectedBusinessSlug,q=this.product.routerLink.join("/"),se=me?`${q}?${me}`:q;this.isInitialProductLoad?window.history.pushState(null,"",se):window.history.replaceState(null,"",se)}get selectedBusinessSlug(){return this.filtersService?.filters?.businessNames?.map(q=>`slug=${t.VLR?.slugify(q)}`).join("&")}setSelectedOffer(me){this.selectedOffer=me}get isAddToCartLoading(){return this.cartHelper.getIsAddToCartLoading()}get isIOS(){return!!navigator.userAgent.match("iPhone")}back(){const me=window.history.state?.navigationId>1,q=this.product?.atcs?.length>1?1:0;me?this.location.back():this.router.navigate([`${t.Z2M.PRODUCTS}/${this.product?.atcs[q]?.atc}`])}setIsSticky(me){this.isSticky=me}getProduct(){const me=document.getElementById("dialog-product-content");this.productService.getDialogProductData().pipe((0,n.R)(this.unsubscribe$)).subscribe(q=>{this.product=q,this.updateUrl(),this.isInitialProductLoad=!1,me.scrollTo({top:0,behavior:"smooth"})})}changeQuantity(me){this.quantity=me}calculateDialogContentHeight(me,q){return{[q?"height":"max-height"]:window.innerHeight-((q?0:32)+me.clientHeight+(q?q.clientHeight:0))+"px","overflow-y":"auto","overflow-x":"hidden"}}initializeCartHelper(){this.cartHelper=new s.q(this.cartService,this.userLocationService,this.snackbarMessageService,this.fbPixelTrackingService,this.dialog,this.snackbarMessageService)}addToCartClicked(){this.addProductToCart()}openProductOffersDialog(){this.dialog.open(d.L,{data:{product:this.product},minWidth:(0,t.I3d)(1404),height:this.getDialogHeight(),position:{top:this.getDialogPosition(),bottom:this.getDialogPosition(!1)},panelClass:"base-panel-class"}).afterClosed().subscribe(q=>{q&&this.router.navigate(q.routerLink)})}getDialogHeight(){return this.isIOS?"calc(100vh - 130px)":window.innerWidth<=t.u3l.TABLET?"calc(100vh - 80px)":"auto"}getDialogPosition(me=!0){return me&&this.carmen.isNativeIos?`${t.miL}px`:window.innerWidth>=t.u3l.TABLET?me?`${t._p0}px`:null:`${t._vr}px`}addProductToCart(){this.cartHelper.addOfferToCartIfLocationAvailable({offer:this.product.bestOffer,productSlug:this.product.bestOffer.productSlug,messageSnackbarType:t.vax.DEFAULT,mustConfirmAge:this.product.mustConfirmAge,businessId:this.product.bestOffer.businessExternalId,quantity:this.quantity,requiresPrescription:this.product.requiresPrescription})}}pe.\u0275fac=function(me){return new(me||pe)(u.\u0275\u0275directiveInject(t.vio.CartServiceToken),u.\u0275\u0275directiveInject(t.vio.UserLocationServiceToken),u.\u0275\u0275directiveInject(t.vio.SnackbarMessageServiceToken),u.\u0275\u0275directiveInject(t.vio.PixelTrackingService),u.\u0275\u0275directiveInject(g.F0),u.\u0275\u0275directiveInject(e.on),u.\u0275\u0275directiveInject(t.vio.FiltersServiceToken),u.\u0275\u0275directiveInject(e.hV),u.\u0275\u0275directiveInject(p.M),u.\u0275\u0275directiveInject(v.Location),u.\u0275\u0275directiveInject(e.eJ))},pe.\u0275cmp=u.\u0275\u0275defineComponent({type:pe,selectors:[["frontend-product-details-dialog"]],decls:13,vars:11,consts:[[1,"base-panel-class"],[1,"container-header",3,"ngClass"],["headerMobile",""],[1,"close-button-container"],["mat-dialog-close","",1,"material-icons"],["class","sticky-header","fxLayoutAlign","center",4,"ngIf"],["id","dialog-product-content",3,"ngClass","ngStyle"],[3,"isProductInDialog","dialogProduct","shouldControlsBeSticky","setSelectedOfferInDialog"],[1,"footer"],["stickyFooter",""],["fxLayout","column","fxLayoutAlign","space-between stretch","class","p-16 sticky-footer",3,"ngClass",4,"ngIf"],["fxLayoutAlign","center",1,"sticky-header"],["fxLayout","row","fxLayoutAlign","space-between center",1,"sticky-header__content","pl-16","pr-16"],["fxLayout","row"],["fxLayout","row",1,"sticky-header__content__product-details"],[1,"sticky-header__content__product-details__image",3,"src"],["fxLayout","column",1,"sticky-header__product_title_section"],[1,"text-bold"],["mat-dialog-close","",1,"text-primary","cursor-pointer",3,"routerLink"],["fxLayout","row","fxLayoutAlign","center center",1,"sticky-header__controls"],[1,"text-bold","current-price","current-price--updated",3,"innerHTML","ngClass"],[3,"maxQuantityLimit","changedQuantity",4,"ngIf"],["class","ml-24",3,"ngClass",4,"ngIf"],[1,"add-to-favorites","ml-8",3,"product","type","productSlug"],["mat-dialog-close","",1,"close-button-container"],[1,"material-icons"],[3,"maxQuantityLimit","changedQuantity"],[1,"ml-24",3,"ngClass"],[3,"type","color","icon","iconPosition","textTranslationKey","clickEvent"],[3,"diameter","fxHide"],["fxLayout","column","fxLayoutAlign","space-between stretch",1,"p-16","sticky-footer",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"sticky-footer__favorites-row"],["id","footer-price",1,"text-bold","current-price","current-price--updated","mr-24","ml-0",3,"innerHTML"],[1,"add-to-favorites",3,"product","type","productSlug"],["fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center"],["class","w-100 add-to-cart__button",3,"ngClass",4,"ngIf"],[1,"w-100","add-to-cart__button",3,"ngClass"],[1,"w-100",3,"type","color","icon","iconPosition","textTranslationKey","clickEvent"]],template:function(me,q){if(1&me&&(u.\u0275\u0275elementStart(0,"div",0)(1,"div",1,2)(3,"div",3)(4,"i",4),u.\u0275\u0275text(5,"close"),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275template(6,R,21,20,"div",5),u.\u0275\u0275elementStart(7,"div",6)(8,"div")(9,"app-product",7),u.\u0275\u0275listener("shouldControlsBeSticky",function(ve){return q.setIsSticky(ve)})("setSelectedOfferInDialog",function(ve){return q.setSelectedOffer(ve)}),u.\u0275\u0275elementEnd()()(),u.\u0275\u0275elementStart(10,"div",8,9),u.\u0275\u0275template(12,T,7,15,"div",10),u.\u0275\u0275elementEnd()()),2&me){const se=u.\u0275\u0275reference(2),ve=u.\u0275\u0275reference(11);u.\u0275\u0275advance(1),u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(7,H,q.isIOS)),u.\u0275\u0275advance(5),u.\u0275\u0275property("ngIf",q.isSticky&&q.innerWidth>q.breakpoints.DESKTOP_S),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(9,N,q.innerWidth>q.breakpoints.DESKTOP_S))("ngStyle",q.innerWidth>q.breakpoints.DESKTOP_S?q.calculateDialogContentHeight(se):q.calculateDialogContentHeight(se,ve)),u.\u0275\u0275advance(2),u.\u0275\u0275property("isProductInDialog",!0)("dialogProduct",q.product),u.\u0275\u0275advance(3),u.\u0275\u0275property("ngIf",q.innerWidth<=q.breakpoints.DESKTOP_S&&!(null!=q.user&&q.user.isBusiness())&&q.isSticky)}},dependencies:[v.NgClass,v.NgIf,v.NgStyle,g.rH,y.K,b.r,S.xw,S.Wh,E.b8,E.oO,E.Zl,e.aO,D.b,A.l,P.U,B.F,V.d,X.X$],styles:[".container-header[_ngcontent-%COMP%]{box-shadow:0 2px 2px #00000042;padding:16px;z-index:1;position:relative;box-sizing:border-box;height:52px}.container-header--ios-padding[_ngcontent-%COMP%]{padding-top:40px;height:76px!important}.container-header[_ngcontent-%COMP%]   .close-button-container[_ngcontent-%COMP%]{width:20px!important}.container-header[_ngcontent-%COMP%]   .close-button-container[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-weight:700;width:20px;height:20px;font-size:20px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#e1e3e6}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:100px;background:#7b7b7b}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#626262}.sticky-header[_ngcontent-%COMP%]{width:100%;position:absolute;top:0;left:0;background-color:#fff;z-index:1000;height:82px;box-shadow:0 2px 2px #0003;transition:top .3s}.sticky-header[_ngcontent-%COMP%]   .close-button-container[_ngcontent-%COMP%]{width:20px;height:20px}.sticky-header[_ngcontent-%COMP%]   .close-button-container[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{width:20px;height:20px;font-size:20px;font-weight:700}.sticky-header__content[_ngcontent-%COMP%]{max-width:1400px;width:100%;margin:auto}.sticky-header__content__product-details__image[_ngcontent-%COMP%]{width:50px;height:50px;clip-path:content-box}.sticky-header__product_title_section[_ngcontent-%COMP%]{font-size:14px;margin:auto 8px}.sticky-footer[_ngcontent-%COMP%]{height:128px;position:sticky;z-index:1;box-shadow:0 -2px 2px #0003}.sticky-footer__favorites-row[_ngcontent-%COMP%]{height:40px}.out-of-stock[_ngcontent-%COMP%]{height:72px}.current-price[_ngcontent-%COMP%]{margin:0 24px 0 48px;text-align:center;font-weight:700;font-size:17px;letter-spacing:.51px;color:#242424;opacity:1;height:-moz-fit-content;height:fit-content}.current-price--updated[_ngcontent-%COMP%]{font-size:22px;line-height:29px}.current-price.out-of-stock[_ngcontent-%COMP%]{margin:0 0 0 48px}.add-to-cart__button[_ngcontent-%COMP%]{margin-left:20px}#footer-price[_ngcontent-%COMP%]{line-height:40px}.loading-button[_ngcontent-%COMP%]{position:relative}.loading-button[_ngcontent-%COMP%]   drc-button[_ngcontent-%COMP%]{opacity:.3;pointer-events:none}.loading-button[_ngcontent-%COMP%]   drc-page-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}"]}),function(de,me,q,se){var Ye,ve=arguments.length,Ee=ve<3?me:null===se?se=Object.getOwnPropertyDescriptor(me,q):se;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ee=Reflect.decorate(de,me,q,se);else for(var wt=de.length-1;wt>=0;wt--)(Ye=de[wt])&&(Ee=(ve<3?Ye(Ee):ve>3?Ye(me,q,Ee):Ye(me,q))||Ee);ve>3&&Ee&&Object.defineProperty(me,q,Ee)}([(0,l.I)(),function(de,me){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",me)}(0,h.n)],pe.prototype,"user",void 0)},56146:(oe,x,i)=>{"use strict";i.d(x,{F:()=>_o});var e=i(94650),n=i(80529),a=i(63900),t=i(82722),l=i(18505),h=i(28746),s=i(54004),d=i(95698),p=i(61135),u=i(77579),g=i(39646),v=i(4128),y=i(28918),b=i(55738),S=i(52873),E=i(97376),D=i(77044),A=i(32420),P=i(35559),B=i(99818),V=i(97392),X=i(44850),re=i(69384),Q=i(89383);let ae=(()=>{class Bn{constructor(Lt){this.dialogRef=Lt,this.includeList=["facebook","messenger","email","whatsapp","copy"]}close(){this.dialogRef.close()}}return Bn.\u0275fac=function(Lt){return new(Lt||Bn)(e.\u0275\u0275directiveInject(P.hV))},Bn.\u0275cmp=e.\u0275\u0275defineComponent({type:Bn,selectors:[["app-share-dialog"]],decls:10,vars:6,consts:[[1,"close-btn-outer"],["mat-mini-fab","","color","warn",3,"click"],["mat-dialog-content",""],[1,"mt-16","mb-16","full-width"],["showIcon","","showText","true","theme","material-dark",3,"include","show","autoSetMeta"]],template:function(Lt,Jn){1&Lt&&(e.\u0275\u0275elementStart(0,"div",0)(1,"button",1),e.\u0275\u0275listener("click",function(){return Jn.close()}),e.\u0275\u0275elementStart(2,"mat-icon"),e.\u0275\u0275text(3,"close"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(4,"div",2)(5,"h2"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(8,"mat-divider",3)(9,"share-buttons",4),e.\u0275\u0275elementEnd()),2&Lt&&(e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,4,"SHARED.BUSINESS.PRODUCT.SHARE_DIALOG.SHARE_METHOD")),e.\u0275\u0275advance(3),e.\u0275\u0275property("include",Jn.includeList)("show",5)("autoSetMeta",!1))},dependencies:[B.eB,P.Rb,V.Hw,X.d,re.n,Q.X$],styles:[".full-width[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}"]}),Bn})();var K=i(5221),k=i(23677),$=i(28607),j=i(12676),R=i(43651),U=i(9116),le=i(11828),T=i(36895),H=i(28555),N=i(1576),pe=i(55829),de=i(28377),me=i(90140),q=i(39783),se=i(17366),ve=i(37084),Ee=i(83026),Ye=i(20502);let wt=(()=>{class Bn{constructor(){this.largeTitleTheme={width:"186px",height:"29px","margin-bottom":"24px",background:"#eef1f6"},this.readMoreButtonTheme={width:"194px",height:"40px","margin-top":"24px",background:"#eef1f6"}}}return Bn.\u0275fac=function(Lt){return new(Lt||Bn)},Bn.\u0275cmp=e.\u0275\u0275defineComponent({type:Bn,selectors:[["drc-info-section-skeleton"]],decls:4,vars:2,consts:[[1,"product-info"],["appearance","custom-content",3,"theme"],["appearance","line","count","4"]],template:function(Lt,Jn){1&Lt&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"ngx-skeleton-loader",1)(2,"ngx-skeleton-loader",2)(3,"ngx-skeleton-loader",1),e.\u0275\u0275elementEnd()),2&Lt&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("theme",Jn.largeTitleTheme),e.\u0275\u0275advance(2),e.\u0275\u0275property("theme",Jn.readMoreButtonTheme))},dependencies:[Ye.xr],styles:[".product-info[_ngcontent-%COMP%]{margin-top:24px;padding-bottom:10px;padding-top:16px;border-top:1px solid rgba(0,0,0,.1607843137)}"]}),Bn})();function Wt(Bn,Sn){1&Bn&&e.\u0275\u0275elementContainer(0)}const Ut=function(Bn,Sn){return{info:Bn,tabIndex:Sn}};function nt(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"mat-tab",10),e.\u0275\u0275template(1,Wt,1,0,"ng-container",11),e.\u0275\u0275elementEnd()),2&Bn){const Lt=Sn.$implicit,Jn=Sn.index;e.\u0275\u0275nextContext(3);const Di=e.\u0275\u0275reference(3);e.\u0275\u0275property("label",Lt.title.toUpperCase()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",Di)("ngTemplateOutletContext",e.\u0275\u0275pureFunction2(3,Ut,Lt,Jn))}}function Zt(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"mat-tab-group",8),e.\u0275\u0275listener("selectedTabChange",function(Di){e.\u0275\u0275restoreView(Lt);const Wi=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Wi.setCurrentTabIndex(Di.index))}),e.\u0275\u0275template(2,nt,2,6,"mat-tab",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&Bn){const Lt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",Lt.productInfo)}}function Fe(Bn,Sn){1&Bn&&e.\u0275\u0275elementContainer(0)}const yt=function(Bn){return{info:Bn,tabIndex:0}};function ie(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Fe,1,0,"ng-container",11),e.\u0275\u0275elementContainerEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext(2),Jn=e.\u0275\u0275reference(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",Jn)("ngTemplateOutletContext",e.\u0275\u0275pureFunction1(2,yt,Lt.productInfo[0]))}}function Ce(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",3),e.\u0275\u0275element(1,"mat-divider",4),e.\u0275\u0275elementStart(2,"mat-accordion")(3,"mat-expansion-panel",5)(4,"mat-expansion-panel-header",6)(5,"mat-panel-title")(6,"span",7),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(9,Zt,3,1,"ng-container",1),e.\u0275\u0275template(10,ie,2,4,"ng-container",1),e.\u0275\u0275elementEnd()()()),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("expanded",!0),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,4,"PAGES.PRODUCTS.PRODUCT_INFO.TITLE")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",Lt.productInfo.length>1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",1===Lt.productInfo.length)}}function Ie(Bn,Sn){1&Bn&&e.\u0275\u0275element(0,"drc-info-section-skeleton")}function dt(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",15)(1,"drc-button",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext().info,Wi=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Wi.showTextToggle(Di.key))}),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()()}if(2&Bn){const Lt=e.\u0275\u0275nextContext().info,Jn=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("type",Jn.buttonType.iconAndTextButton)("textTranslationKey",e.\u0275\u0275pipeBind1(2,5,Lt.show?"PAGES.PRODUCTS.PRODUCT.READ_LESS":"PAGES.PRODUCTS.PRODUCT.READ_MORE"))("color","lightgray")("iconPosition",Jn.iconPosition.right)("icon",Lt.show?"arrow_upward":"arrow_downward")}}function Mt(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",17)(1,"strong"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementStart(4,"a",18),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()()),2&Bn){const Lt=e.\u0275\u0275nextContext().info;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,3,"PAGES.PRODUCTS.PRODUCT.ORIGINAL_DOCUMENT_ACCESS")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("href",Lt.link,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(6,5,"PAGES.PRODUCTS.PRODUCT.HERE")," ")}}const Xt=function(Bn,Sn,Lt){return{"default-desc":Bn,showMore:Sn,"pt-16":Lt}};function en(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"div",12),e.\u0275\u0275template(2,dt,3,7,"div",13),e.\u0275\u0275template(3,Mt,7,7,"div",14),e.\u0275\u0275elementEnd()),2&Bn){const Lt=Sn.info,Jn=Sn.tabIndex,Di=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("id","tab"+Jn)("innerHTML",Lt.content,e.\u0275\u0275sanitizeHtml)("ngClass",e.\u0275\u0275pureFunction3(5,Xt,!Lt.show,Lt.show,Di.productInfo.length>1)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Di.shouldDisplayShowButton(Jn,Lt)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.link)}}let zt=(()=>{class Bn{constructor(Lt,Jn){this.changeDetection=Lt,this.productService=Jn,this.isSectionLoading=!0,this.productInfo=[],this.isShowTextButtonVisible=!0,this.buttonType=y.L$3,this.iconPosition=y.ggF,this.destroy$=new u.x,this.productInfoTabs={pro:"Prospect",rcp:"Uz profesional",amb:"Ambalaj"}}ngOnInit(){this.productService.getLoadingTrigger().pipe((0,t.R)(this.destroy$)).subscribe(()=>this.isSectionLoading=!0)}ngOnChanges(Lt){Lt?.product&&Lt.product?.currentValue&&(this.changeDetection.detectChanges(),this.setProductInfo())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setProductInfo(){this.productInfo=[],this.product?.description&&(this.productInfo=[{title:"descriere",content:this.product.description,link:null,show:!1}]),"NONPHARMACEUTICAL"!==this.product.product_type&&this.setPharmaProductInfo(),setTimeout(()=>{this.isSectionLoading=!1},300)}onResize(){this.setIsShowButtonVisible()}setPharmaProductInfo(){Object.keys(this.productInfoTabs).forEach(Lt=>{this.product.texts.forEach(Jn=>{if(Lt===Jn.key){const Di="link"+Lt.charAt(0).toUpperCase()+Lt.slice(1);this.productInfo.push({key:Lt,title:this.productInfoTabs[Lt],content:Jn.content,link:this.product[Di],show:!1})}})})}shouldDisplayShowButton(Lt,Jn){let Di;return 0===Lt?(Di=document.getElementById(`tab${Lt}`),Di?.clientHeight>=230):this.isShowTextButtonVisible&&Jn.content}setIsShowButtonVisible(){const Lt=document.getElementById(`tab${this.currentTabIndex}`);this.isShowTextButtonVisible=Lt.clientHeight>=230}setCurrentTabIndex(Lt){this.currentTabIndex=Lt,this.setIsShowButtonVisible()}showTextToggle(Lt){this.productInfo.map(Jn=>(Jn.key===Lt&&(Jn.show=!Jn.show),Jn))}}return Bn.\u0275fac=function(Lt){return new(Lt||Bn)(e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(E.M))},Bn.\u0275cmp=e.\u0275\u0275defineComponent({type:Bn,selectors:[["app-product-info"]],hostBindings:function(Lt,Jn){1&Lt&&e.\u0275\u0275listener("resize",function(Wi){return Jn.onResize(Wi)},!1,e.\u0275\u0275resolveWindow)},inputs:{product:"product"},features:[e.\u0275\u0275NgOnChangesFeature],decls:4,vars:2,consts:[["class","product-info",4,"ngIf"],[4,"ngIf"],["infoTemplate",""],[1,"product-info"],[1,"full-width-divider"],[3,"expanded"],["collapsedHeight","61px","expandedHeight","61px"],[1,"product-info__title"],[3,"selectedTabChange"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"id","innerHTML","ngClass"],["class","product-info__show-more-button mt-16",4,"ngIf"],["class","mt-16",4,"ngIf"],[1,"product-info__show-more-button","mt-16"],[3,"type","textTranslationKey","color","iconPosition","icon","click"],[1,"mt-16"],["rel","nofollow","target","_blank",3,"href"]],template:function(Lt,Jn){1&Lt&&(e.\u0275\u0275template(0,Ce,11,6,"div",0),e.\u0275\u0275template(1,Ie,1,0,"drc-info-section-skeleton",1),e.\u0275\u0275template(2,en,4,9,"ng-template",null,2,e.\u0275\u0275templateRefExtractor)),2&Lt&&(e.\u0275\u0275property("ngIf",Jn.productInfo.length&&!Jn.isSectionLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Jn.isSectionLoading))},dependencies:[T.NgClass,T.NgForOf,T.NgIf,T.NgTemplateOutlet,se.r,pe.oO,ve.pp,ve.ib,ve.yz,ve.yK,X.d,Ee.SK,Ee.R7,wt,Q.X$],styles:[".product-info__title[_ngcontent-%COMP%]{font-weight:700;line-height:29px;font-size:22px}.product-info[_ngcontent-%COMP%]   .full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.product-info[_ngcontent-%COMP%]   .default-desc[_ngcontent-%COMP%]{line-height:22px;max-height:300px;overflow:hidden;background:linear-gradient(black 230px,white);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.product-info[_ngcontent-%COMP%]   .default-desc-edge[_ngcontent-%COMP%]{line-height:22px;height:300px;overflow:hidden}.product-info[_ngcontent-%COMP%]   .showMore[_ngcontent-%COMP%]{line-height:22px;height:auto;overflow:visible}.product-info[_ngcontent-%COMP%]   .showTextToggle[_ngcontent-%COMP%]{font-weight:700;color:#00853b!important;margin-left:45%}@media (min-width: 430px){.product-info__show-more-button[_ngcontent-%COMP%]{max-width:194px}}"]}),Bn})();var bt=i(84855),At=i(47716),$e=i(20080),Xe=i(24006),Pe=i(52267),Ve=i(83159),mt=i(18267),It=i(3611),xn=i(62079),_n=i(40750),Jt=i(30931);let ke=(()=>{class Bn{constructor(){this.breakpoints=y.u3l,this.window=window,this.titleTheme={"margin-top":"24px","max-width":"290px",height:"24px"},this.soldByTheme={"max-width":"118px",height:"19px"},this.tagsTheme={height:"32px",width:"265px","margin-bottom":"24px",background:"#eef1f6"},this.deliveryEstimationTheme={width:"224px","margin-top":"24px"},this.addressTheme={width:"356px"},this.optionalButtonsTheme={width:"264px"}}}return Bn.\u0275fac=function(Lt){return new(Lt||Bn)},Bn.\u0275cmp=e.\u0275\u0275defineComponent({type:Bn,selectors:[["drc-general-info-section-skeleton"]],decls:9,vars:9,consts:[[1,"product-content"],["fxLayout","column",1,"product-content__product-details"],["appearance","line",3,"fxLayoutAlign","theme"],["appearance","custom-content",3,"fxLayoutAlign","theme"],["appearance","custom-content",1,"controls-container"],["appearance","line",3,"theme"]],template:function(Lt,Jn){1&Lt&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275element(2,"ngx-skeleton-loader",2)(3,"ngx-skeleton-loader",2)(4,"ngx-skeleton-loader",3)(5,"ngx-skeleton-loader",4)(6,"ngx-skeleton-loader",5)(7,"ngx-skeleton-loader",5)(8,"ngx-skeleton-loader",5),e.\u0275\u0275elementEnd()()),2&Lt&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("fxLayoutAlign",Jn.window.innerWidth<=Jn.breakpoints.TABLET?"center center":"start center")("theme",Jn.titleTheme),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxLayoutAlign",Jn.window.innerWidth<=Jn.breakpoints.TABLET?"center center":"start center")("theme",Jn.soldByTheme),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxLayoutAlign",Jn.window.innerWidth<=Jn.breakpoints.TABLET?"center center":"start center")("theme",Jn.tagsTheme),e.\u0275\u0275advance(2),e.\u0275\u0275property("theme",Jn.deliveryEstimationTheme),e.\u0275\u0275advance(1),e.\u0275\u0275property("theme",Jn.addressTheme),e.\u0275\u0275advance(1),e.\u0275\u0275property("theme",Jn.optionalButtonsTheme))},dependencies:[N.xw,N.Wh,Ye.xr],styles:[".product-content[_ngcontent-%COMP%]   .controls-container[_ngcontent-%COMP%]{height:128px;background:#eef1f6;width:356px}@media (max-width: 430px){.product-content[_ngcontent-%COMP%]   .main-image[_ngcontent-%COMP%]{width:100%}.product-content[_ngcontent-%COMP%]   .main-image[_ngcontent-%COMP%]   ngx-skeleton-loader[_ngcontent-%COMP%]{width:100%}.product-content[_ngcontent-%COMP%]   .main-image[_ngcontent-%COMP%]   ngx-skeleton-loader[_ngcontent-%COMP%]   .skeleton-loader[_ngcontent-%COMP%]{width:unset}}.product-content__product-details[_ngcontent-%COMP%]{overflow:hidden}@media (max-width: 768px){.product-content[_ngcontent-%COMP%]   .controls-container[_ngcontent-%COMP%]{width:100%}}"]}),Bn})();var Ae=i(36667);const tn=["targetAnchor"],ot=["productImageCarousel"];function Et(Bn,Sn){if(1&Bn&&e.\u0275\u0275element(0,"app-product-card-chip",16),2&Bn){const Lt=e.\u0275\u0275nextContext().$implicit,Jn=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("promotionType",Lt)("discountPercent",Jn.carmen.formatBadgeDiscount(Jn.selectedOffer.discount))}}function z(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Et,1,2,"app-product-card-chip",15),e.\u0275\u0275elementContainerEnd()),2&Bn){const Lt=Sn.$implicit,Jn=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Jn.labels.includes(Lt))}}function Z(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,z,2,1,"ng-container",14),e.\u0275\u0275elementContainerEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Lt.formatLabels(Lt.selectedOffer.labels))}}function ge(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",13),e.\u0275\u0275template(1,Z,2,1,"ng-container",10),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.selectedOffer)}}const Qe=function(Bn,Sn){return{width:Bn,height:Sn,"margin-bottom":"0"}};function qe(Bn,Sn){if(1&Bn&&e.\u0275\u0275element(0,"ngx-skeleton-loader",17),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275property("theme",e.\u0275\u0275pureFunction2(1,Qe,Lt.imageSkeletonLoaderSize+"px",Lt.imageSkeletonLoaderSize+"px"))}}function ct(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"img",18),e.\u0275\u0275listener("load",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Di.hasImageLoaded=!0)}),e.\u0275\u0275elementEnd()}if(2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275styleProp("display",Lt.hasImageLoaded?"block":"none"),e.\u0275\u0275property("alt",Lt.product.id)("magnifierGlass",Lt.currentImage)("src",Lt.currentImage.medium,e.\u0275\u0275sanitizeUrl)}}const Yt=function(Bn){return{"mb-24":Bn}};function it(Bn,Sn){if(1&Bn&&e.\u0275\u0275element(0,"ngx-skeleton-loader",19),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275property("theme",Lt.smallImageTheme)("fxLayoutAlign",Lt.windowWidth<=Lt.breakpoints.TABLET?"center center":"start center")("ngClass",e.\u0275\u0275pureFunction1(4,Yt,Lt.windowWidth>Lt.breakpoints.TABLET))("count",2)}}function Be(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",26)(1,"div",27),e.\u0275\u0275listener("click",function(){const Wi=e.\u0275\u0275restoreView(Lt).$implicit,Ar=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Ar.currentImage=Wi)}),e.\u0275\u0275elementStart(2,"img",28),e.\u0275\u0275listener("load",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Di.setCarouselLoadingState())})("error",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Di.setCarouselLoadingState())}),e.\u0275\u0275elementEnd()()()}if(2&Bn){const Lt=Sn.$implicit,Jn=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("alt",Jn.product.id)("title",Jn.product.id)("src",Lt.thumbnail,e.\u0275\u0275sanitizeUrl)("ngClass",Jn.currentImage===Lt?"swiper__photo--active":"swiper__photo--inactive"),e.\u0275\u0275attribute("data-src",Lt.thumbnail)}}function gt(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",20)(2,"swiper",21)(3,"div",22),e.\u0275\u0275template(4,Be,3,5,"div",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"button",24)(6,"mat-icon"),e.\u0275\u0275text(7,"keyboard_arrow_left"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"button",25)(9,"mat-icon"),e.\u0275\u0275text(10,"keyboard_arrow_right"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementContainerEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,Yt,Lt.windowWidth>Lt.breakpoints.TABLET)),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("display",Lt.carouselLoadingState.shouldDisplayLoader?"none":"block"),e.\u0275\u0275property("config",Lt.config),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",null==Lt.product?null:Lt.product.images)}}function ue(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"span",35),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"a",36),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Di.closeAllDialogs())}),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()}if(2&Bn){const Lt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,3,"PAGES.PRODUCTS.PRODUCT.SOLD_BY")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",null==Lt.selectedOffer?null:Lt.selectedOffer.businessProfile.publicProfileRouterLink),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==Lt.selectedOffer?null:Lt.selectedOffer.businessName," ")}}function Ge(Bn,Sn){if(1&Bn&&(e.\u0275\u0275element(0,"img",42),e.\u0275\u0275pipe(1,"translate")),2&Bn){const Lt=e.\u0275\u0275nextContext(2).$implicit,Jn=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("alt",e.\u0275\u0275pipeBind1(1,2,"PAGES.PRODUCTS.PRODUCT.BIO_ALT"))("src",Jn.getLabelPath(Lt),e.\u0275\u0275sanitizeUrl)}}const ee=function(Bn,Sn){return[Bn,Sn]};function De(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Ge,2,4,"img",41),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275elementContainerEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext().$implicit,Jn=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pureFunction2(4,ee,Jn.productLabels.Sgr,Jn.productLabels.Bio).includes(Jn.productLabels[Lt])),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,2,Jn.productLabels[Lt])," ")}}function Ot(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",40),e.\u0275\u0275template(1,De,4,7,"ng-container",10),e.\u0275\u0275elementEnd()),2&Bn){const Lt=Sn.$implicit,Jn=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Jn.isValidLabel(Lt))}}function cn(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Ot,2,1,"div",39),e.\u0275\u0275elementContainerEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Lt.product.labels)}}function Gn(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",37)(1,"div",38),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,cn,2,1,"ng-container",10),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("fxLayoutAlign",Lt.windowWidth<=Lt.breakpoints.TABLET?"center center":"start center"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",null!=Lt.selectedOffer&&Lt.selectedOffer.stock&&Lt.selectedOffer&&!Lt.productPriceIsZero?"in-stock":"out-of-stock"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,4,e.\u0275\u0275pipeBind1(4,6,Lt.getOfferStockChipText()))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",Lt.shouldDisplayLabels())}}function _i(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",43)(1,"span",44),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",45)(5,"drc-button",46),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Di.navigateToAvailableProducts())}),e.\u0275\u0275elementEnd()()()}if(2&Bn){const Lt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,3,"PAGES.PRODUCTS.PRODUCT.UNAVAILABLE_PRODUCTS_INFO")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("type",Lt.buttonType.textButton)("textTranslationKey","PAGES.PRODUCTS.PRODUCT.SEE_AVAILABLE_PRODUCTS")}}function Ni(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275element(1,"span",54),e.\u0275\u0275pipe(2,"price"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(2,2,null==Lt.selectedOffer?null:Lt.selectedOffer.price),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,4,100===(null==Lt.selectedOffer?null:Lt.selectedOffer.price)?"PAGES.PRODUCTS.PRODUCT.CURENCY_SINGULAR":"PAGES.PRODUCTS.PRODUCT.CURRENCY_PLURAL")," ")}}function Nn(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",55),e.\u0275\u0275listener("click",function(Di){e.\u0275\u0275restoreView(Lt);const Wi=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Wi.stopClickPropagate(Di))}),e.\u0275\u0275element(1,"app-favourites-heart-btn",56),e.\u0275\u0275elementEnd()}if(2&Bn){const Lt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("product",Lt.product)("type",Lt.controlTypes.PRODUCT_LISTING)("productSlug",(null==Lt.product||null==Lt.product.bestOffer?null:Lt.product.bestOffer.productSlug)||(null==Lt.product||null==Lt.product.packagings[0]?null:Lt.product.packagings[0].slug)||Lt.product.productSlug)}}const Mn=function(Bn){return{"add-to-cart__loading-button":Bn}};function On(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",59)(1,"div",60)(2,"div",61)(3,"drc-quantity-change",62),e.\u0275\u0275listener("changedQuantity",function(Di){e.\u0275\u0275restoreView(Lt);const Wi=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(Wi.changeQuantity(Di))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",63)(5,"div",64,65),e.\u0275\u0275element(7,"drc-button",66),e.\u0275\u0275pipe(8,"uppercase"),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(10,"drc-page-spinner",67),e.\u0275\u0275elementEnd()()()}if(2&Bn){const Lt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(3),e.\u0275\u0275property("maxQuantityLimit",Lt.selectedOffer.stock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(14,Mn,Lt.isAddToCartLoading)),e.\u0275\u0275advance(3),e.\u0275\u0275property("type",Lt.buttonType.iconAndTextButton)("icon","add_shopping_cart")("disabled",Lt.offerForm.invalid||!Lt.selectedOffer.stock)("iconPosition",Lt.iconPosition.left)("color","primary")("textTranslationKey",Lt.windowWidth<=Lt.breakpoints.MOBILE_L?"SHARED.PRODUCT.CONTROLS.ADD":e.\u0275\u0275pipeBind1(8,10,e.\u0275\u0275pipeBind1(9,12,"SHARED.PRODUCT.CONTROLS.ADD_TO_CART"))),e.\u0275\u0275advance(3),e.\u0275\u0275property("fxHide",!Lt.isAddToCartLoading)("diameter",25)}}function Qn(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"form",57),e.\u0275\u0275listener("ngSubmit",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(Di.offerForm.submit())}),e.\u0275\u0275template(1,On,11,16,"div",58),e.\u0275\u0275elementEnd()}if(2&Bn){const Lt=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("fxLayoutAlign",Lt.windowWidth>Lt.breakpoints.DESKTOP_S?"start center":""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(null!=Lt.user&&Lt.user.isBusiness())&&(null==Lt.selectedOffer?null:Lt.selectedOffer.stock))}}function Ti(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"strong"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(null==Lt.selectedOffer?null:Lt.selectedOffer.businessName)}}function Si(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"a",80),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"uppercase"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("href",Lt.businessProfileMapLink,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,e.\u0275\u0275pipeBind1(3,4,"PAGES.PRODUCTS.PRODUCT.SEE_MAP"))," ")}}function un(Bn,Sn){if(1&Bn&&e.\u0275\u0275element(0,"drc-schedule",81),2&Bn){const Lt=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("business",null==Lt.selectedOffer?null:Lt.selectedOffer.businessProfile)("pageType","product")}}function rn(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",68)(1,"div",69),e.\u0275\u0275element(2,"img",70),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementStart(4,"span",71),e.\u0275\u0275element(5,"span",72),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementStart(7,"strong"),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"titlecase"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(10,"div",69)(11,"i",73),e.\u0275\u0275text(12,"location_on"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"span",71),e.\u0275\u0275template(14,Ti,2,1,"strong",10),e.\u0275\u0275text(15),e.\u0275\u0275elementStart(16,"span",74),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(18,"div",75),e.\u0275\u0275elementContainerStart(19),e.\u0275\u0275element(20,"img",76),e.\u0275\u0275pipe(21,"translate"),e.\u0275\u0275template(22,Si,4,6,"a",77),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementContainerStart(23),e.\u0275\u0275element(24,"img",76),e.\u0275\u0275pipe(25,"translate"),e.\u0275\u0275elementStart(26,"span",78),e.\u0275\u0275template(27,un,1,2,"drc-schedule",79),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()),2&Bn){const Lt=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("alt",e.\u0275\u0275pipeBind1(3,14,"PAGES.PRODUCTS.PRODUCT.COURIER_DELIVERY_ALT"))("src",Lt.localShippingImagePath,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHtml",e.\u0275\u0275pipeBind1(6,16,"PAGES.PRODUCTS.PRODUCT.DELIVERED_BY_COURIER"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(9,18,Lt.getDeliveryCity())),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",Lt.selectedOffer),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" - ",null==Lt.selectedOffer?null:Lt.selectedOffer.businessProfile.address.shortText," - "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass","Deschis"===(null==Lt.selectedOffer?null:Lt.selectedOffer.businessProfile.isBusinessOpen(Lt.selectedOffer.businessProfile.schedule))?"business-is-open":"business-is-closed"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==Lt.selectedOffer?null:Lt.selectedOffer.businessProfile.isBusinessOpen(Lt.selectedOffer.businessProfile.schedule)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("src",Lt.seeOnMapImagePath,e.\u0275\u0275sanitizeUrl)("alt",e.\u0275\u0275pipeBind1(21,20,"PAGES.PRODUCTS.PRODUCT.SEE_MAP_ALT")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",Lt.selectedOffer),e.\u0275\u0275advance(2),e.\u0275\u0275property("src",Lt.scheduleImagePath,e.\u0275\u0275sanitizeUrl)("alt",e.\u0275\u0275pipeBind1(25,22,"PAGES.PRODUCTS.PRODUCT.SCHEDULE_ALT")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",Lt.selectedOffer)}}function $t(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",47)(2,"div",48),e.\u0275\u0275template(3,Ni,5,6,"div",49),e.\u0275\u0275template(4,Nn,2,3,"div",50),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Qn,2,2,"form",51),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,rn,28,24,"div",52),e.\u0275\u0275elementContainerEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",Lt.product.offers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.shouldDisplayFavoritesButton),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(Lt.isUnavailable||null!=Lt.user&&Lt.user.isBusiness())),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.selectedOffer)}}function Nt(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",29)(1,"div",30)(2,"h1",31),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,ue,5,5,"span",32),e.\u0275\u0275template(5,Gn,6,8,"div",33),e.\u0275\u0275template(6,_i,6,5,"div",34),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,$t,7,4,"ng-container",10),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275property("fxLayoutAlign",Lt.windowWidth<=Lt.breakpoints.TABLET?"center center":"start start")("ngClass",Lt.windowWidth<=Lt.breakpoints.TABLET&&(null==Lt.product?null:Lt.product.images.length)<=1?"mt-8":"mt-24"),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxLayoutAlign",Lt.windowWidth<=Lt.breakpoints.TABLET?"center center":"center start"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(Lt.product.registered_name),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Lt.productPriceIsZero&&Lt.selectedOffer),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.shouldHaveSelectedOffer),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.isUnavailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Lt.productPriceIsZero&&Lt.selectedPackage&&Lt.selectedOffer)}}const Rn=function(Bn,Sn){return{"ml-12":Bn,"pl-16 pr-16":Sn}};function Wn(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",82),e.\u0275\u0275element(1,"drc-general-info-section-skeleton"),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(1,Rn,Lt.windowWidth>Lt.breakpoints.TABLET,Lt.windowWidth<=Lt.breakpoints.MOBILE_XL))}}const ji=function(Bn){return{"dialog-carousel-container":Bn}};class ir{constructor(Sn,Lt,Jn,Di,Wi,Ar,br,bo,xo){this.userLocationService=Sn,this.cartService=Lt,this.fbPixelTrackingService=Jn,this.fb=Di,this.dialog=Wi,this.router=Ar,this.translateService=br,this.productService=bo,this.snackbarMessageService=xo,this.shouldDisplayFavoritesButton=!0,this.shouldHaveSelectedOffer=!1,this.quantity=1,this.shouldDisplaySpinner=!0,this.shouldControlsBeSticky=new e.EventEmitter,this.labels=Object.keys(A.u),this.productLabels=A.u,this.buttonType=y.L$3,this.iconPosition=y.ggF,this.carmen=y.VLR,this.breakpoints=y.u3l,this.controlTypes=y.yP3,this.isProductUnavailable=!1,this.config={observer:!0,slidesPerView:6,spaceBetween:0,keyboard:!0,navigation:!1,pagination:!1,loop:!1,preloadImages:!0,lazy:!1,breakpoints:{480:{slidesPerView:2},600:{slidesPerView:3}}},this.scheduleImagePath=y.HA$,this.seeOnMapImagePath=y.Rcc,this.localShippingImagePath=y.U3L,this.offerForm=this.fb.build("patient.cart.quantity"),this.unsubscribe$=new u.x,this.messageSnackbarType=y.vax.DEFAULT,this.hasImageLoaded=!1,this.carouselLoadingState={shouldDisplayLoader:!0,numberOfImagesLoaded:0},this.smallImageTheme={width:"75px",height:"75px",background:"#eef1f6",margin:"0 4px"}}ngOnInit(){this.windowWidth=window.innerWidth,this.initializeCartHelper(),this.observeLocationChanges(),this.observeSubmitEvent(),this.listenToValueChanges(),this.loadProduct(),this.setCurrentImage(),this.productService.getLoadingTrigger().pipe((0,t.R)(this.unsubscribe$)).subscribe(()=>{this.hasImageLoaded=!1,this.carouselLoadingState.shouldDisplayLoader=!0})}ngAfterViewInit(){this.swiperDirective&&this.swiperDirective.S_LAZYIMAGELOAD.pipe((0,t.R)(this.unsubscribe$)).subscribe(()=>{this.swiperDirective.setIndex(0),this.currentImage=this.product.images[0]}),this.imageLoaderWidth=this.productImageCarousel.nativeElement.offsetWidth,this.setShouldControlsBeSticky()}ngOnChanges(Sn){Sn.selectedOffer&&Sn.selectedOffer.currentValue?.stock?this.quantity=1:Sn.selectedOffer&&(this.quantity=0),Sn.selectedOffer?.currentValue&&this.setOfferStock(this.selectedOffer),Sn?.product&&(this.setCurrentImage(),this.carouselLoadingState={shouldDisplayLoader:this.product?.images?.length>1,numberOfImagesLoaded:0}),this.loadProduct()}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}setCurrentImage(){this.currentImage=this.product?.images[0]}setShouldControlsBeSticky(){const Jn=document.getElementById(this.isProductInDialog?"dialog-product-content":"sidenavContent");this.addScrollEvent(Jn,(this.isProductInDialog?Jn.offsetTop:67)-40)}addScrollEvent(Sn,Lt){Sn.addEventListener("scroll",()=>{const Jn=this.targetAnchor?.nativeElement.getBoundingClientRect().top;this.shouldControlsBeSticky.emit(Jn<=Lt)})}get imageSkeletonLoaderSize(){return this.windowWidth>this.breakpoints.TABLET?this.imageLoaderWidth:this.windowWidth<=this.breakpoints.MOBILE_XL?this.windowWidth:this.windowWidth-32>=456?456:this.windowWidth-32}shouldDisplayProductInfo(){return this.product&&0===this.product.offers?.length?(this.isProductUnavailable=!0,!0):!!this.product&&!!this.selectedOffer&&!!this.selectedPackage}setCarouselLoadingState(){this.carouselLoadingState.numberOfImagesLoaded++,this.carouselLoadingState.shouldDisplayLoader=this.carouselLoadingState.numberOfImagesLoaded!==this.product.images.length}initializeCartHelper(){this.cartHelper=new $e.q(this.cartService,this.userLocationService,this.snackbarMessageService,this.fbPixelTrackingService,this.dialog,this.snackbarMessageService)}navigateToAvailableProducts(){if(!this.product.atcs.length)return;const Sn=y.VLR.slugify(this.product.atcs[0].description);this.router.navigateByUrl(`${y.Z2M.PRODUCTS}/${Sn}-${this.product.atcs[0].atc}`)}observeLocationChanges(){this.userLocationService.locationData$.pipe((0,t.R)(this.unsubscribe$)).subscribe(Sn=>{this.selectedUserLocation=Sn})}getLabelPath(Sn){return`assets/images/products/label/${Sn}-icon.svg`}observeSubmitEvent(){this.offerForm.submit$.pipe((0,t.R)(this.unsubscribe$)).subscribe(Sn=>{this.cartHelper.addOfferToCartIfLocationAvailable({offer:Sn.offer,quantity:this.quantity,requiresPrescription:this.product.requiresPrescription,businessId:Sn.offer.businessExternalId,productSlug:Sn.offer.productSlug,mustConfirmAge:this.product.mustConfirmAge,isPromotionalProduct:!1,messageSnackbarType:this.messageSnackbarType})})}listenToValueChanges(){this.offerForm.valueChanges.pipe((0,t.R)(this.unsubscribe$)).subscribe(Sn=>{this.valueChanges(Sn)})}valueChanges(Sn){const Lt=this.translateService.instant("PAGES.PRODUCTS.PRODUCT.STOCK_INSUFFICIENT");this.quantity!==Sn.quantity&&(this.selectedOffer.inStock&&this.offerForm.valid?this.quantity=parseInt(Sn.quantity,10):this.offerForm.setErrors({numeric:Lt}))}loadProduct(){this.selectedOffer=this.selectedOffer||this.product?.bestOffer||null,this.offerForm.patchValue({offer:this.selectedOffer,quantity:this.quantity}),this.offerForm.updateValueAndValidity(),this.sortLabels()}sortLabels(){if(!this.product?.labels)return;const Sn=this.product?.labels?.indexOf("Sgr");Sn<=0||(this.product.labels.splice(Sn,1),this.product.labels.unshift("Sgr"))}get businessProfileMapLink(){return"http://maps.google.com/maps?daddr="+this.selectedOffer.businessProfile.locationLat+","+this.selectedOffer.businessProfile.locationLon}changeQuantity(Sn){this.quantity=Sn,this.offerForm.get("quantity").setValue(this.quantity)}get isAddToCartLoading(){return this.cartHelper.getIsAddToCartLoading()}onResize(){this.windowWidth=window.innerWidth,this.imageLoaderWidth=this.productImageCarousel?.nativeElement?.offsetWidth}addSelectClass(Sn){Sn._elementRef.nativeElement.classList.add("mat-focused")}removeSelectClass(Sn){Sn._elementRef.nativeElement.classList.remove("mat-focused")}getOfferStockChipText(){return this.selectedOffer?.stock?"PAGES.PRODUCTS.PRODUCT.IN_STOCK":this.isUnavailable?"PAGES.PRODUCTS.PRODUCT.UNAVAILABLE":"PAGES.PRODUCTS.PRODUCT.OUT_OF_STOCK"}getBestOfferForLocation(Sn){return Sn.drugOffers.filter(Jn=>Jn.city.toLowerCase()===this.userLocationService.getUserLocation().city.toLowerCase()).sort((Jn,Di)=>Jn.price-Di.price)[0]}closeAllDialogs(){this.dialog.closeAll()}get productPriceIsZero(){return this.product.priceMin<0||this.product.priceMin===1/0||!this.product}get isUnavailable(){return!this.selectedOffer||!this.product.priceMin}shouldDisplayLabels(){return!!this.product?.labels?.length||!!this.selectedOffer?.labels?.length}stopClickPropagate(Sn){Sn.stopPropagation(),Sn.preventDefault()}formatLabels(Sn){const Lt=RegExp(/\s+/g);return Sn.map(Jn=>Jn.toUpperCase().replace(Lt,"_")).filter(Jn=>!y.VLR.isUnavailableBadgeType(Jn))}getDeliveryCity(){if(this.selectedOffer)return this.userLocationService.getUserLocation()?.city||""}setOfferStock(Sn){this.getStockForOffer(Sn).pipe((0,t.R)(this.unsubscribe$)).subscribe(Lt=>{this.selectedOffer.stock=Lt.quantity??0})}getStockForOffer(Sn){return this.productService.getStockForOffer({businessExternalId:Sn.businessExternalId,productSlug:Sn.productSlug}).pipe((0,d.q)(1))}isValidLabel(Sn){return Object.keys(A.u).includes(Sn)}}ir.\u0275fac=function(Sn){return new(Sn||ir)(e.\u0275\u0275directiveInject(y.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(y.vio.CartServiceToken),e.\u0275\u0275directiveInject(y.vio.PixelTrackingService),e.\u0275\u0275directiveInject(At.CH),e.\u0275\u0275directiveInject(P.on),e.\u0275\u0275directiveInject(U.F0),e.\u0275\u0275directiveInject(Q.sK),e.\u0275\u0275directiveInject(E.M),e.\u0275\u0275directiveInject(y.vio.SnackbarMessageServiceToken))},ir.\u0275cmp=e.\u0275\u0275defineComponent({type:ir,selectors:[["app-product-general-info"]],viewQuery:function(Sn,Lt){if(1&Sn&&(e.\u0275\u0275viewQuery(bt.Tl,5),e.\u0275\u0275viewQuery(tn,5),e.\u0275\u0275viewQuery(ot,5)),2&Sn){let Jn;e.\u0275\u0275queryRefresh(Jn=e.\u0275\u0275loadQuery())&&(Lt.swiperDirective=Jn.first),e.\u0275\u0275queryRefresh(Jn=e.\u0275\u0275loadQuery())&&(Lt.targetAnchor=Jn.first),e.\u0275\u0275queryRefresh(Jn=e.\u0275\u0275loadQuery())&&(Lt.productImageCarousel=Jn.first)}},hostBindings:function(Sn,Lt){1&Sn&&e.\u0275\u0275listener("resize",function(Di){return Lt.onResize(Di)},!1,e.\u0275\u0275resolveWindow)},inputs:{product:"product",shouldDisplayFavoritesButton:"shouldDisplayFavoritesButton",shouldHaveSelectedOffer:"shouldHaveSelectedOffer",quantity:"quantity",selectedOffer:"selectedOffer",selectedPackage:"selectedPackage",isProductInDialog:"isProductInDialog",shouldDisplaySpinner:"shouldDisplaySpinner"},outputs:{shouldControlsBeSticky:"shouldControlsBeSticky"},features:[e.\u0275\u0275NgOnChangesFeature],decls:14,vars:14,consts:[[1,"product",3,"fxLayout"],["fxFlex.sm","100","fxLayoutAlign.lt-md","center",1,"product__image-carousel",3,"ngClass"],["productImageCarousel",""],[3,"fxHide"],["class","label","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"image-and-carousel-container",3,"fxLayoutAlign"],["fxFlexAlign","center","fxLayoutAlign","center start","fxLayoutAlign.lt-md","start",1,"product-image",3,"ngClass"],[3,"theme",4,"ngIf"],["drcMagnifierGlass","",3,"alt","magnifierGlass","src","display","load",4,"ngIf"],[3,"theme","fxLayoutAlign","ngClass","count",4,"ngIf"],[4,"ngIf"],["fxFlex","100","fxFlex.gt-sm","48","fxLayout","column","class","product__info-container",3,"fxLayoutAlign","ngClass",4,"ngIf","ngIfElse"],["infoSkeletonTemplate",""],["fxLayout","column",1,"label"],[4,"ngFor","ngForOf"],["class","label__promotion",3,"promotionType","discountPercent",4,"ngIf"],[1,"label__promotion",3,"promotionType","discountPercent"],[3,"theme"],["drcMagnifierGlass","",3,"alt","magnifierGlass","src","load"],[3,"theme","fxLayoutAlign","ngClass","count"],["fxLayoutAlign.lt-md","center center",1,"product__small-carousel",3,"ngClass"],[1,"swiper",3,"config"],["fxLayout","row",1,"swiper-wrapper"],["class","swiper--gap","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-icon-button","","fxHide","",1,"swiper-button-prev","swipe-arrow"],["mat-icon-button","","fxHide","",1,"swiper-button-next","swipe-arrow"],["fxLayoutAlign","end center",1,"swiper--gap"],["fxLayoutAlign","center center","fxLayoutAlign.lt-md","end center",1,"swiper__slide",3,"click"],[3,"alt","title","src","ngClass","load","error"],["fxFlex","100","fxFlex.gt-sm","48","fxLayout","column",1,"product__info-container",3,"fxLayoutAlign","ngClass"],["fxLayoutGap","8px","fxLayout","column",1,"mb-16",3,"fxLayoutAlign"],[1,"product__name"],["class","business-info-text",4,"ngIf"],["fxLayout","row wrap","fxLayoutGap","8px",3,"fxLayoutAlign",4,"ngIf"],["class","unavailable-product-container","fxLayout","column","fxLayoutAlign","space-between start",4,"ngIf"],[1,"business-info-text"],[1,"link","business-link",3,"routerLink","click"],["fxLayout","row wrap","fxLayoutGap","8px",3,"fxLayoutAlign"],["fxLayoutAlign","center center",1,"product__chip","mb-8",3,"ngClass"],["class","product__chip mb-8","fxLayoutAlign","center center",4,"ngFor","ngForOf"],["fxLayoutAlign","center center",1,"product__chip","mb-8"],["class","mr-4",3,"alt","src",4,"ngIf"],[1,"mr-4",3,"alt","src"],["fxLayout","column","fxLayoutAlign","space-between start",1,"unavailable-product-container"],[1,"unavailable-product-container__text"],[1,"button-container"],[3,"type","textTranslationKey","click"],["fxLayout","column",1,"controls","mb-24"],["fxLayout","row","fxLayoutAlign","space-between center"],["class","price",4,"ngIf"],["fxLayoutAlign","center center",3,"click",4,"ngIf"],["fxLayout","row wrap","fxLayout.lt-md","column",3,"fxLayoutAlign","ngSubmit",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px","class","business-info-container",4,"ngIf"],[1,"price"],[3,"innerHTML"],["fxLayoutAlign","center center",3,"click"],[3,"product","type","productSlug"],["fxLayout","row wrap","fxLayout.lt-md","column",3,"fxLayoutAlign","ngSubmit"],["fxLayoutGap","12px","fxFlex","","fxLayout","row",4,"ngIf"],["fxLayoutGap","12px","fxFlex","","fxLayout","row"],["fxFlex","","fxLayout","row"],[1,"mr-16","mt-16"],[3,"maxQuantityLimit","changedQuantity"],["fxLayoutAlign","start center","fxFlex","",1,"add-to-cart",3,"ngClass"],[1,"mt-16","w-100"],["targetAnchor",""],[1,"w-100","add-to-cart__button",3,"type","icon","disabled","iconPosition","color","textTranslationKey"],[3,"fxHide","diameter"],["fxLayout","column","fxLayoutGap","16px",1,"business-info-container"],["fxLayout","row","fxLayoutGap","8px"],[1,"business-info-container__icon",3,"alt","src"],[1,"business-info-container__text"],[3,"innerHtml"],[1,"material-icons","delivery-icon"],[3,"ngClass"],["fxLayout","row"],[1,"business-info-container__icon","mr-8",3,"src","alt"],["class","link mr-24","target","_blank",3,"href",4,"ngIf"],[1,"schedule-container"],[3,"business","pageType",4,"ngIf"],["target","_blank",1,"link","mr-24",3,"href"],[3,"business","pageType"],["fxFlex","100","fxFlex.gt-sm","48",3,"ngClass"]],template:function(Sn,Lt){if(1&Sn&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1,2)(3,"div",3),e.\u0275\u0275template(4,ge,2,1,"div",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",5)(6,"div",6),e.\u0275\u0275template(7,qe,1,4,"ngx-skeleton-loader",7),e.\u0275\u0275template(8,ct,1,5,"img",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,it,1,6,"ngx-skeleton-loader",9),e.\u0275\u0275template(10,gt,11,7,"ng-container",10),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(11,Nt,8,8,"div",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(12,Wn,2,4,"ng-template",null,12,e.\u0275\u0275templateRefExtractor)),2&Sn){const Jn=e.\u0275\u0275reference(13);e.\u0275\u0275property("fxLayout",Lt.windowWidth>Lt.breakpoints.TABLET?"row":"column"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(12,ji,Lt.isProductInDialog)),e.\u0275\u0275advance(2),e.\u0275\u0275property("fxHide",!Lt.shouldDisplayLabels()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.shouldDisplayLabels()),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxLayoutAlign",Lt.windowWidth<=Lt.breakpoints.TABLET?"space-between start":"start start"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",Lt.isProductInDialog?"product-image--dialog-width":"product-image--no-dialog-width"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Lt.hasImageLoaded),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.currentImage),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.carouselLoadingState.shouldDisplayLoader),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==Lt.product?null:Lt.product.images.length)>1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.shouldDisplayProductInfo())("ngIfElse",Jn)}},dependencies:[T.NgClass,T.NgForOf,T.NgIf,U.rH,Xe._Y,Xe.JL,Xe.F,bt.nF,Pe.K,Ve.i,mt.C,se.r,N.xw,N.SQ,N.Wh,N.XD,N.yH,pe.b8,pe.oO,B.eB,V.Hw,It.b,xn.Q,_n.l,Jt.U,Ye.xr,ke,T.UpperCasePipe,T.TitleCasePipe,Ae.d,Q.X$],styles:[".product[_ngcontent-%COMP%]{background-color:#fff;position:relative}.product[_ngcontent-%COMP%]   ngx-skeleton-loader[_ngcontent-%COMP%]{width:100%}.product[_ngcontent-%COMP%]   .image-and-carousel-container[_ngcontent-%COMP%]{overflow:hidden}.product[_ngcontent-%COMP%]   .dialog-carousel-container[_ngcontent-%COMP%]{max-width:562px}.product__name[_ngcontent-%COMP%]{font-size:18px!important;font-weight:700;line-height:24px}.product[_ngcontent-%COMP%]   .unavailable-product-container[_ngcontent-%COMP%]{box-sizing:border-box;background-color:#edeff2;height:128px;border-radius:8px;width:356px;padding:16px}.product[_ngcontent-%COMP%]   .unavailable-product-container[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]{max-width:250px}.product[_ngcontent-%COMP%]   .unavailable-product-container__text[_ngcontent-%COMP%]{line-height:22px;font-size:14px}.product__image-carousel[_ngcontent-%COMP%]{padding:0;width:100%;max-width:680px;overflow:hidden}.product__image-carousel[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]{max-width:680px;margin-bottom:16px}.product__image-carousel[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%}.product__chip[_ngcontent-%COMP%]{font-weight:700;width:max-content;border-radius:16px;font-size:11px;line-height:15px;height:32px;padding:0 12px;background-color:#edeff2}.product__small-carousel[_ngcontent-%COMP%]   .swiper__photo--active[_ngcontent-%COMP%]{box-shadow:0 2px 2px #00000029;border-radius:8px;box-sizing:border-box}.product__small-carousel[_ngcontent-%COMP%]   .swiper__photo--inactive[_ngcontent-%COMP%]{opacity:50%}.product__small-carousel[_ngcontent-%COMP%]   .swiper__slide[_ngcontent-%COMP%]{text-align:center;padding:4px}.product__small-carousel[_ngcontent-%COMP%]   .swiper__slide[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:75px;height:75px;border-radius:8px;margin:auto 0}.product__info-container[_ngcontent-%COMP%]{font-size:14px;padding-bottom:16px}.product__info-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{font-weight:700;color:#00853b}.product__info-container[_ngcontent-%COMP%]   .business-info-text[_ngcontent-%COMP%]{font-size:14px;line-height:19px}.product__info-container[_ngcontent-%COMP%]   .in-stock[_ngcontent-%COMP%]{color:#fff;background-color:#26832a}.product__info-container[_ngcontent-%COMP%]   .out-of-stock[_ngcontent-%COMP%]{color:#fff;background-color:#d93c2f}.product__info-container[_ngcontent-%COMP%]   .delivery-icon[_ngcontent-%COMP%]{font-size:20px;color:#00853b}.product__info-container[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]{background-color:#edeff2;padding:16px;border-radius:8px}.product__info-container[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:22px;font-weight:700;line-height:29px;letter-spacing:.66px}.product__info-container[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .add-to-cart[_ngcontent-%COMP%]{position:relative;min-width:40px!important;width:173px}.product__info-container[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .add-to-cart__loading-button[_ngcontent-%COMP%]   drc-button[_ngcontent-%COMP%]{opacity:.3;pointer-events:none}.product__info-container[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .add-to-cart__loading-button[_ngcontent-%COMP%]   drc-page-spinner[_ngcontent-%COMP%]{position:absolute;margin-top:8px;top:50%;left:50%;transform:translate(-50%,-50%)}.product__info-container[_ngcontent-%COMP%]   .business-info-container[_ngcontent-%COMP%]{width:100%}.product__info-container[_ngcontent-%COMP%]   .business-info-container__text[_ngcontent-%COMP%]{line-height:19px}.product__info-container[_ngcontent-%COMP%]   .business-info-container[_ngcontent-%COMP%]   .business-is-open[_ngcontent-%COMP%]{font-weight:800;color:#00853b}.product__info-container[_ngcontent-%COMP%]   .business-info-container[_ngcontent-%COMP%]   .business-is-closed[_ngcontent-%COMP%]{font-weight:800;color:#f44336}.product__info-container[_ngcontent-%COMP%]   .business-info-container[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{font-size:14px;line-height:19px;letter-spacing:.35px;text-align:left;text-decoration:none;color:#242424!important;font-weight:700}.product__info-container[_ngcontent-%COMP%]   .business-info-container__icon[_ngcontent-%COMP%]{width:20px;height:20px}.product[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{padding:16px;position:absolute;z-index:1}.product[_ngcontent-%COMP%]   .label__promotion[_ngcontent-%COMP%]{padding-bottom:16px}.product[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{padding-bottom:16px;height:45px;width:45px}@media (min-width: 1169px){.product-image--dialog-width[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .product-image--dialog-width[_ngcontent-%COMP%]   ngx-skeleton-loader[_ngcontent-%COMP%]{width:562px}}@media (min-width: 1404px){.product__image-carousel[_ngcontent-%COMP%]   .product-image--no-dialog-width[_ngcontent-%COMP%]{min-width:680px}.product__image-carousel[_ngcontent-%COMP%]   .product-image--no-dialog-width[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .product__image-carousel[_ngcontent-%COMP%]   .product-image--no-dialog-width[_ngcontent-%COMP%]   ngx-skeleton-loader[_ngcontent-%COMP%]{width:680px}}@media (min-width: 768px){.product__info-container[_ngcontent-%COMP%]{margin-left:12px}.product__info-container[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]{width:356px}}@media (max-width: 768px){.product[_ngcontent-%COMP%]   .unavailable-product-container[_ngcontent-%COMP%]{width:100%}.product[_ngcontent-%COMP%]   .unavailable-product-container[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]{max-width:100%!important;width:100%}.product__name[_ngcontent-%COMP%]{text-align:center}.product[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%], .product[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .add-to-cart[_ngcontent-%COMP%]{width:100%}.product__image-carousel[_ngcontent-%COMP%]{align-self:center;margin:0 -16px}.product__small-carousel[_ngcontent-%COMP%]{width:100%}.product__info-container[_ngcontent-%COMP%]{padding:0 0 16px!important}.product[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{top:0;left:0;position:absolute;padding:16px 0 0}}@media (max-width: 960px){.product__image-carousel[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]{max-width:456px}}@media (max-width: 430px){.product[_ngcontent-%COMP%]{margin:0 -16px}.product__info-container[_ngcontent-%COMP%]{margin:8px 16px 0}.product[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{padding:16px}}"]}),function(Bn,Sn,Lt,Jn){var Ar,Di=arguments.length,Wi=Di<3?Sn:null===Jn?Jn=Object.getOwnPropertyDescriptor(Sn,Lt):Jn;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Wi=Reflect.decorate(Bn,Sn,Lt,Jn);else for(var br=Bn.length-1;br>=0;br--)(Ar=Bn[br])&&(Wi=(Di<3?Ar(Wi):Di>3?Ar(Sn,Lt,Wi):Ar(Sn,Lt))||Wi);Di>3&&Wi&&Object.defineProperty(Sn,Lt,Wi)}([(0,D.I)(),function(Bn,Sn){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Sn)}(0,b.n)],ir.prototype,"user",void 0);var dr=i(47462);const Le=["offersContainer"],Ft=function(){return{width:"75px",height:"75px","margin-bottom":"0"}};function dn(Bn,Sn){1&Bn&&e.\u0275\u0275element(0,"ngx-skeleton-loader",18),2&Bn&&e.\u0275\u0275property("theme",e.\u0275\u0275pureFunction0(1,Ft))}const En=function(Bn){return{"add-to-cart__loading-button":Bn}};function gi(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",19)(1,"button",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext().$implicit,Wi=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Wi.addOfferToCart(Di))}),e.\u0275\u0275elementStart(2,"i",21),e.\u0275\u0275text(3,"add_shopping_cart"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(4,"drc-page-spinner",22),e.\u0275\u0275elementEnd()}if(2&Bn){const Lt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(3,En,Lt.isAddToCartLoading)),e.\u0275\u0275advance(4),e.\u0275\u0275property("diameter",25)("fxHide",!Lt.isAddToCartLoading)}}function $i(Bn,Sn){1&Bn&&e.\u0275\u0275element(0,"mat-divider",23)}const fr=function(Bn,Sn){return{"offer__box--dialog":Bn,"mr-16":Sn}},Mr=function(Bn,Sn){return{"offer__info--dialog":Bn,"offer__info--business":Sn}};function ti(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",8),e.\u0275\u0275template(2,dn,1,2,"ngx-skeleton-loader",9),e.\u0275\u0275elementStart(3,"img",10),e.\u0275\u0275listener("click",function(){const Wi=e.\u0275\u0275restoreView(Lt).$implicit,Ar=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Ar.handleChangeOffer(Wi))})("load",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Di.setOffersImagesLoaded())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",11)(5,"p",12),e.\u0275\u0275listener("click",function(){const Wi=e.\u0275\u0275restoreView(Lt).$implicit,Ar=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Ar.handleChangeOffer(Wi))}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"a",13),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"p",14),e.\u0275\u0275listener("click",function(){const Wi=e.\u0275\u0275restoreView(Lt).$implicit,Ar=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Ar.handleChangeOffer(Wi))}),e.\u0275\u0275element(11,"span",15),e.\u0275\u0275pipe(12,"price"),e.\u0275\u0275text(13),e.\u0275\u0275pipe(14,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(15,gi,5,5,"div",16),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(16,$i,1,0,"mat-divider",17),e.\u0275\u0275elementEnd()}if(2&Bn){const Lt=Sn.$implicit,Jn=Sn.last,Di=Sn.index,Wi=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(20,fr,Wi.isProductInDialog,Wi.window.innerWidth>Wi.breakpoints.DESKTOP_S?Wi.shouldAddMarginToOfferBox(Di+1):!Jn)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Wi.displayLoaderForOfferImages),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxHide",Wi.displayLoaderForOfferImages)("src",Lt.packaging.images[0].thumbnail,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(23,Mr,Wi.isProductInDialog,null==Wi.user?null:Wi.user.isBusiness())),e.\u0275\u0275advance(1),e.\u0275\u0275property("matTooltip",Lt.drugName),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,14,Lt.drugName)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",Lt.businessProfile.publicProfileRouterLink)("matTooltip",Lt.businessName),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",Lt.businessName," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(12,16,Lt.price),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(14,18,100===(null==Lt?null:Lt.price)?"PAGES.PRODUCTS.PRODUCT.CURENCY_SINGULAR":"PAGES.PRODUCTS.PRODUCT.CURRENCY_PLURAL")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!(null!=Wi.user&&Wi.user.isBusiness())),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Wi.window.innerWidth<=Wi.breakpoints.MOBILE_XL&&!Jn)}}function Kn(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",24)(1,"drc-button",25),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Di.handleShowMoreOffers())}),e.\u0275\u0275elementEnd()()}if(2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",Lt.window.innerWidth<=Lt.breakpoints.MOBILE_XL?"w-100":"mt-16"),e.\u0275\u0275advance(1),e.\u0275\u0275property("type",Lt.buttonType.iconAndTextButton)("icon",Lt.isShowMoreOffersActive?"arrow_upward":"arrow_downward")("iconPosition",Lt.iconPosition.right)("color","lightgray")("textTranslationKey",Lt.isShowMoreOffersActive?"PAGES.PRODUCTS.PRODUCT.LESS_OFFERS":"PAGES.PRODUCTS.PRODUCT.MORE_OFFERS")}}class he{constructor(Sn,Lt,Jn,Di,Wi,Ar){this.cartService=Sn,this.userLocationService=Lt,this.snackbarMessageService=Jn,this.fbPixelTrackingService=Di,this.dialog=Wi,this.changeDetectorRef=Ar,this.changeOffer=new e.EventEmitter,this.window=window,this.buttonType=y.L$3,this.iconPosition=y.ggF,this.breakpoints=y.u3l,this.visibleOffersCarousel=[],this.isShowMoreOffersActive=!1,this.offersImagesLoaded=0,this.displayLoaderForOfferImages=!0}ngOnInit(){this.setOfferBoxWidth(),this.setCarouselWidthByNumberOfOffers(),this.setVisibleOffers(),this.initializeCartHelper()}ngOnChanges(Sn){Sn?.selectedOffer&&(this.setCarouselWidthByNumberOfOffers(),this.setVisibleOffers())}setOffersImagesLoaded(){this.offersImagesLoaded++;const Lt=this.offersImagesLoaded===this.visibleOffersCarousel.length;this.isShowMoreOffersActive&&this.offersImagesLoaded===this.drugOffers.length&&(this.displayLoaderForOfferImages=!1),!this.isShowMoreOffersActive&&Lt&&(this.displayLoaderForOfferImages=!1)}setOfferBoxWidth(){this.offerBoxWidth=this.isProductInDialog?368:331}setCarouselWidthByNumberOfOffers(){this.offerCarouselConfiguration=[4,3,2].map(Jn=>({numberOfOffers:Jn,width:this.offerBoxWidth*Jn+16*(Jn-1)}))}setVisibleOffers(){if(this.isMobileXL())this.setMobileVisibleOffers();else{const Sn=Math.floor(this.offersContainer.nativeElement.offsetWidth),Lt=this.offerCarouselConfiguration.find(Jn=>Sn>=Jn.width);this.visibleOffersCount=Lt?Lt.numberOfOffers:1}this.visibleOffersCarousel=this.drugOffers.slice(0,this.visibleOffersCount)}shouldAddMarginToOfferBox(Sn){return Sn%this.visibleOffersCount!=0}get isAddToCartLoading(){return this.cartHelper.getIsAddToCartLoading()}initializeCartHelper(){this.cartHelper=new $e.q(this.cartService,this.userLocationService,this.snackbarMessageService,this.fbPixelTrackingService,this.dialog,this.snackbarMessageService)}get drugOffers(){return this.selectedPackage.drugOffers?.filter(Sn=>Sn.businessExternalId!==this.selectedOffer.businessExternalId)??[]}onResize(){this.window=window,this.isMobileXL()&&this.setMobileVisibleOffers(),this.isShowMoreOffersActive=!1,this.setVisibleOffers()}handleChangeOffer(Sn){this.changeOffer.emit(Sn),this.changeDetectorRef.detectChanges(),this.isShowMoreOffersActive=!1}isMobileXL(){return this.window.innerWidth<=this.breakpoints.MOBILE_XL}setMobileVisibleOffers(){this.visibleOffersCount=2}handleShowMoreOffers(){this.isShowMoreOffersActive=!this.isShowMoreOffersActive,this.isShowMoreOffersActive?(this.visibleOffersCarousel=this.drugOffers.slice(),this.changeDetectorRef.detectChanges()):this.setVisibleOffers()}addOfferToCart(Sn){this.cartHelper.addOfferToCartIfLocationAvailable({offer:Sn,productSlug:Sn.productSlug,messageSnackbarType:y.vax.DEFAULT,businessId:Sn.businessExternalId,quantity:1,requiresPrescription:Sn.packaging.product.requiresPrescription,mustConfirmAge:Sn.packaging.product.mustConfirmAge,isPromotionalProduct:!1})}}function et(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",4),e.\u0275\u0275element(1,"ngx-skeleton-loader",1),e.\u0275\u0275elementStart(2,"div",5),e.\u0275\u0275element(3,"ngx-skeleton-loader",6)(4,"ngx-skeleton-loader",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"ngx-skeleton-loader",1),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("theme",Lt.smallImageTheme),e.\u0275\u0275advance(2),e.\u0275\u0275property("theme",Lt.smallTitleTheme),e.\u0275\u0275advance(1),e.\u0275\u0275property("theme",Lt.smallBusinessNameTheme),e.\u0275\u0275advance(1),e.\u0275\u0275property("theme",Lt.iconButtonTheme)}}he.\u0275fac=function(Sn){return new(Sn||he)(e.\u0275\u0275directiveInject(y.vio.CartServiceToken),e.\u0275\u0275directiveInject(y.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(y.vio.SnackbarMessageServiceToken),e.\u0275\u0275directiveInject(y.vio.PixelTrackingService),e.\u0275\u0275directiveInject(P.on),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},he.\u0275cmp=e.\u0275\u0275defineComponent({type:he,selectors:[["app-product-offers"]],viewQuery:function(Sn,Lt){if(1&Sn&&e.\u0275\u0275viewQuery(Le,7),2&Sn){let Jn;e.\u0275\u0275queryRefresh(Jn=e.\u0275\u0275loadQuery())&&(Lt.offersContainer=Jn.first)}},hostBindings:function(Sn,Lt){1&Sn&&e.\u0275\u0275listener("resize",function(Di){return Lt.onResize(Di)},!1,e.\u0275\u0275resolveWindow)},inputs:{selectedPackage:"selectedPackage",isProductInDialog:"isProductInDialog",selectedOffer:"selectedOffer"},outputs:{changeOffer:"changeOffer"},features:[e.\u0275\u0275NgOnChangesFeature],decls:12,vars:9,consts:[[1,"full-width-divider"],[1,"offer",3,"expanded"],["expandedHeight","61px","collapsedHeight","61px"],[1,"offer__title"],[3,"fxLayout"],["offersContainer",""],[4,"ngFor","ngForOf"],["class","offer__show-more-btn-container mb-24",3,"ngClass",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"offer__box",3,"ngClass"],[3,"theme",4,"ngIf"],["alt","price",1,"offer__image","mr-8",3,"fxHide","src","click","load"],["fxLayout","column","fxLayoutGap","3px",1,"offer__info",3,"ngClass"],[1,"offer__name",3,"matTooltip","click"],["mat-dialog-close","",1,"offer__link",3,"routerLink","matTooltip"],[1,"offer__price",3,"click"],[3,"innerHTML"],["class","add-to-cart",3,"ngClass",4,"ngIf"],["class","mt-16 mb-16",4,"ngIf"],[3,"theme"],[1,"add-to-cart",3,"ngClass"],["mat-flat-button","","fxLayoutAlign","center center",1,"add-to-cart__button",3,"click"],[1,"material-icons","add-to-cart__icon"],[3,"diameter","fxHide"],[1,"mt-16","mb-16"],[1,"offer__show-more-btn-container","mb-24",3,"ngClass"],[3,"type","icon","iconPosition","color","textTranslationKey","click"]],template:function(Sn,Lt){1&Sn&&(e.\u0275\u0275element(0,"mat-divider",0),e.\u0275\u0275elementStart(1,"mat-accordion")(2,"mat-expansion-panel",1)(3,"mat-expansion-panel-header",2)(4,"p",3),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",4,5),e.\u0275\u0275template(10,ti,17,26,"div",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,Kn,2,6,"div",7),e.\u0275\u0275elementEnd()()),2&Sn&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("expanded",!0),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(6,5,"PAGES.PRODUCTS.PRODUCT.OTHER_OFFERS")+Lt.drugOffers.length+e.\u0275\u0275pipeBind1(7,7,"PAGES.PRODUCTS.PRODUCT.END")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("fxLayout",Lt.window.innerWidth>Lt.breakpoints.MOBILE_XL?"row wrap":"column"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",Lt.visibleOffersCarousel),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Lt.drugOffers.length>Lt.visibleOffersCarousel.length||Lt.isShowMoreOffersActive))},dependencies:[T.NgClass,T.NgForOf,T.NgIf,U.rH,Pe.K,se.r,N.xw,N.SQ,N.Wh,pe.b8,pe.oO,B.eB,P.aO,ve.pp,ve.ib,ve.yz,X.d,dr.Kd,It.b,Ye.xr,T.UpperCasePipe,Ae.d,Q.X$],styles:[".full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.offer__box[_ngcontent-%COMP%]{width:331px;max-width:100%!important;margin-bottom:16px}.offer__box[_ngcontent-%COMP%]   ngx-skeleton-loader[_ngcontent-%COMP%]{height:75px;margin-right:8px}.offer__box--dialog[_ngcontent-%COMP%]{padding:0 16px;width:368px}.offer__name[_ngcontent-%COMP%]{overflow:hidden;cursor:pointer;text-overflow:ellipsis;white-space:nowrap}.offer__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700;line-height:29px}.offer__image[_ngcontent-%COMP%]{cursor:pointer;width:75px!important;height:75px!important}.offer__info[_ngcontent-%COMP%]{max-width:196px;width:100%;margin-right:12px}.offer__info--business[_ngcontent-%COMP%]{max-width:248px;margin-right:0!important}.offer__info--dialog[_ngcontent-%COMP%]{margin-right:16px}.offer__link[_ngcontent-%COMP%]{text-decoration:none;font-size:14px;line-height:20px;color:#00853b;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.offer[_ngcontent-%COMP%]   .add-to-cart[_ngcontent-%COMP%]{position:relative}.offer[_ngcontent-%COMP%]   .add-to-cart__button[_ngcontent-%COMP%]{background-color:#edeff2!important;width:40px;height:40px}.offer[_ngcontent-%COMP%]   .add-to-cart__button[_ngcontent-%COMP%]:hover{background-color:#e0e0e5!important}.offer[_ngcontent-%COMP%]   .add-to-cart__icon[_ngcontent-%COMP%]{color:#00853b}.offer[_ngcontent-%COMP%]   .add-to-cart__loading-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{opacity:.3;pointer-events:none}.offer[_ngcontent-%COMP%]   .add-to-cart__loading-button[_ngcontent-%COMP%]   drc-page-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.offer__show-more-btn-container[_ngcontent-%COMP%]{width:198px}.offer[_ngcontent-%COMP%]   .p-6[_ngcontent-%COMP%]{padding:6px}.offer__name[_ngcontent-%COMP%]{font-size:14px;line-height:19px;font-weight:700}.offer__price[_ngcontent-%COMP%]{cursor:pointer;font-weight:700;font-size:17px;line-height:23px;letter-spacing:.5px}@media (max-width: 430px){.offer__box[_ngcontent-%COMP%]{width:100%!important}.offer__info[_ngcontent-%COMP%]{max-width:calc(100% - 136px)!important}.offer__info--business[_ngcontent-%COMP%]{max-width:calc(100% - 83px)!important}}@media (width: 430px){.offer__box[_ngcontent-%COMP%]{width:100%!important}.offer__info[_ngcontent-%COMP%]{max-width:calc(100% - 136px)!important}.offer__info--business[_ngcontent-%COMP%]{max-width:calc(100% - 83px)!important}}"]}),function(Bn,Sn,Lt,Jn){var Ar,Di=arguments.length,Wi=Di<3?Sn:null===Jn?Jn=Object.getOwnPropertyDescriptor(Sn,Lt):Jn;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Wi=Reflect.decorate(Bn,Sn,Lt,Jn);else for(var br=Bn.length-1;br>=0;br--)(Ar=Bn[br])&&(Wi=(Di<3?Ar(Wi):Di>3?Ar(Sn,Lt,Wi):Ar(Sn,Lt))||Wi);Di>3&&Wi&&Object.defineProperty(Sn,Lt,Wi)}([(0,D.I)(),function(Bn,Sn){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Sn)}(0,b.n)],he.prototype,"user",void 0);let tt=(()=>{class Bn{constructor(){this.breakpoints=y.u3l,this.window=window,this.largeTitleTheme={width:"186px",height:"29px","margin-bottom":"24px",background:"#eef1f6"},this.smallImageTheme={width:"75px",height:"75px",background:"#eef1f6","margin-right":"8px"},this.smallTitleTheme={width:"196px"},this.smallBusinessNameTheme={width:"98px"},this.iconButtonTheme={width:"40px",height:"40px",background:"#eef1f6","margin-left":"28px"}}get numberOfOffers(){return Array.from({length:window.innerWidth>=this.breakpoints.MOBILE_XL?4:2})}}return Bn.\u0275fac=function(Lt){return new(Lt||Bn)},Bn.\u0275cmp=e.\u0275\u0275defineComponent({type:Bn,selectors:[["drc-offer-section-skeleton"]],decls:4,vars:3,consts:[[1,"related-offers-container"],["appearance","custom-content",3,"theme"],["fxLayoutGap","42px",1,"related-offers-container__list",3,"fxLayout"],["class","related-offers-container__single-offer","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"related-offers-container__single-offer"],["fxLayout","column",1,"related-offers-container__single-offer__details"],["appearance","line",3,"theme"]],template:function(Lt,Jn){1&Lt&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"ngx-skeleton-loader",1),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275template(3,et,6,4,"div",3),e.\u0275\u0275elementEnd()()),2&Lt&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("theme",Jn.largeTitleTheme),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxLayout",Jn.window.innerWidth>=Jn.breakpoints.MOBILE_XL?"row":"column"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Jn.numberOfOffers))},dependencies:[T.NgForOf,N.xw,N.SQ,N.Wh,Ye.xr],styles:[".related-offers-container[_ngcontent-%COMP%]{padding-bottom:10px;padding-top:16px;border-top:1px solid rgba(0,0,0,.1607843137)}.related-offers-container__list[_ngcontent-%COMP%]{overflow:hidden}.related-offers-container__list__single-offer[_ngcontent-%COMP%]{margin-right:48px}"]}),Bn})();var nn=i(6986);function zn(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-product-offers",6),e.\u0275\u0275listener("changeOffer",function(Di){e.\u0275\u0275restoreView(Lt);const Wi=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Wi.changeOffer.emit(Di))}),e.\u0275\u0275elementEnd()}if(2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275property("isProductInDialog",Lt.isProductInDialog)("selectedPackage",Lt.selectedPackage)("selectedOffer",Lt.selectedOffer)}}function jt(Bn,Sn){1&Bn&&e.\u0275\u0275element(0,"drc-offer-section-skeleton")}function Fn(Bn,Sn){1&Bn&&e.\u0275\u0275element(0,"mat-divider",7)}let jn=(()=>{class Bn{constructor(Lt){this.productService=Lt,this.shouldHaveSelectedOffer=!1,this.areCarouselProductsLoading=!1,this.isProductInDialog=!1,this.shouldDisplayFavoritesButton=!0,this.shouldDisplaySpinner=!0,this.onPackageChange=new e.EventEmitter,this.shouldControlsBeSticky=new e.EventEmitter,this.changeOffer=new e.EventEmitter,this.isOfferSectionLoading=!0,this.breakpoints=y.u3l,this.destroy$=new u.x}ngOnInit(){this.windowWidth=window.innerWidth,this.productService.getLoadingTrigger().pipe((0,t.R)(this.destroy$)).subscribe(()=>{this.isOfferSectionLoading=!0})}ngOnChanges(Lt){Lt.selectedPackage?.currentValue&&this.drugOffers.length>=0&&this.setIsOfferSectionLoading(!1),Lt.product?.currentValue&&(0===this.product.offers.length&&this.setIsOfferSectionLoading(!1),this.selectedPackage.drugOffers=[])}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setIsOfferSectionLoading(Lt){setTimeout(()=>{this.isOfferSectionLoading=Lt},300)}get drugOffers(){return this.selectedPackage.drugOffers?.filter(Lt=>Lt.businessExternalId!==this.selectedOffer.businessExternalId)??[]}}return Bn.\u0275fac=function(Lt){return new(Lt||Bn)(e.\u0275\u0275directiveInject(E.M))},Bn.\u0275cmp=e.\u0275\u0275defineComponent({type:Bn,selectors:[["app-product-presentation"]],inputs:{product:"product",quantity:"quantity",dialogContentPosition:"dialogContentPosition",shouldHaveSelectedOffer:"shouldHaveSelectedOffer",selectedOffer:"selectedOffer",selectedPackage:"selectedPackage",currentImage:"currentImage",areCarouselProductsLoading:"areCarouselProductsLoading",productInfo:"productInfo",isProductInDialog:"isProductInDialog",shouldDisplayFavoritesButton:"shouldDisplayFavoritesButton",similarProducts:"similarProducts",shouldDisplaySpinner:"shouldDisplaySpinner"},outputs:{onPackageChange:"onPackageChange",shouldControlsBeSticky:"shouldControlsBeSticky",changeOffer:"changeOffer"},features:[e.\u0275\u0275NgOnChangesFeature],decls:6,vars:14,consts:[[3,"product","selectedOffer","selectedPackage","isProductInDialog","quantity","shouldDisplayFavoritesButton","shouldHaveSelectedOffer","shouldControlsBeSticky"],[3,"isProductInDialog","selectedPackage","selectedOffer","changeOffer",4,"ngIf"],[4,"ngIf"],[3,"product"],[3,"areCarouselProductsLoading","similarProducts","isProductInDialog"],["class","full-width-divider mt-4",4,"ngIf"],[3,"isProductInDialog","selectedPackage","selectedOffer","changeOffer"],[1,"full-width-divider","mt-4"]],template:function(Lt,Jn){1&Lt&&(e.\u0275\u0275elementStart(0,"app-product-general-info",0),e.\u0275\u0275listener("shouldControlsBeSticky",function(Wi){return Jn.shouldControlsBeSticky.emit(Wi)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(1,zn,1,3,"app-product-offers",1),e.\u0275\u0275template(2,jt,1,0,"drc-offer-section-skeleton",2),e.\u0275\u0275element(3,"app-product-info",3)(4,"app-similar-products",4),e.\u0275\u0275template(5,Fn,1,0,"mat-divider",5)),2&Lt&&(e.\u0275\u0275property("product",Jn.product)("selectedOffer",Jn.selectedOffer)("selectedPackage",Jn.selectedPackage)("isProductInDialog",Jn.isProductInDialog)("quantity",Jn.quantity)("shouldDisplayFavoritesButton",Jn.shouldDisplayFavoritesButton)("shouldHaveSelectedOffer",Jn.shouldHaveSelectedOffer),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Jn.selectedPackage&&Jn.drugOffers.length&&!Jn.isOfferSectionLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Jn.isOfferSectionLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("product",Jn.product),e.\u0275\u0275advance(1),e.\u0275\u0275property("areCarouselProductsLoading",Jn.areCarouselProductsLoading)("similarProducts",Jn.similarProducts)("isProductInDialog",Jn.isProductInDialog),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Jn.windowWidth<=Jn.breakpoints.DESKTOP_S))},dependencies:[T.NgIf,X.d,zt,ir,he,tt,nn.b],styles:[".full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.similar-products__title[_ngcontent-%COMP%]{font-size:22px;line-height:29px;font-weight:700}"]}),Bn})();function Ii(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",7)(1,"i",8),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Di.back())}),e.\u0275\u0275text(2,"close"),e.\u0275\u0275elementEnd()()}}function cr(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Lt);const Di=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Di.back())}),e.\u0275\u0275elementStart(1,"i",13),e.\u0275\u0275text(2,"close"),e.\u0275\u0275elementEnd()()}}function Hi(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",9),e.\u0275\u0275element(1,"app-breadcrumb",10),e.\u0275\u0275template(2,cr,3,0,"div",11),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("shouldCloseProductDialog",Lt.isProductInDialog),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Lt.isProductInDialog&&Lt.window.innerWidth>Lt.breakpoints.TABLET)}}function Vi(Bn,Sn){if(1&Bn){const Lt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-controls",16),e.\u0275\u0275listener("packageChangeEvent",function(Di){e.\u0275\u0275restoreView(Lt);const Wi=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Wi.onPackageChange(Di))}),e.\u0275\u0275elementEnd()}if(2&Bn){const Lt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("offer",Lt.selectedOffer)("product",Lt.product)("quantity",Lt.quantityInput)("package",Lt.selectedPackage)("type",Lt.controlTypes.PRODUCT_DETAIL_PAGE_STICKY)}}function kr(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275template(1,Vi,1,5,"app-controls",15),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275property("fxHide",!Lt.isSticky),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Lt.isUnavailable)}}function Er(Bn,Sn){if(1&Bn&&(e.\u0275\u0275elementStart(0,"p",17),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&Bn){const Lt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"PAGES.PRODUCTS.PRODUCT.UPDATE_MESSAGE")+(null==Lt.product?null:Lt.product.last_added_products)+e.\u0275\u0275pipeBind1(3,3,"PAGES.PRODUCTS.PRODUCT.THANK_YOU_MESSAGE")," ")}}const pr=function(Bn){return{"fix-product-page-margins":Bn}},fo=function(Bn){return{"product-dialog":Bn}};class _o{constructor(Sn,Lt,Jn,Di,Wi,Ar,br,bo,xo,Re,w,ne,be){this.router=Sn,this.appSettings=Lt,this.appService=Jn,this.productService=Di,this.userLocationService=Wi,this.route=Ar,this.dialog=br,this._location=bo,this.userService=xo,this.store=Re,this.cartService=w,this.fbPixelTrackingService=ne,this.filtersService=be,this.quantityInput=0,this.productSource=new p.X(null),this.currentInfoTab=0,this.otherProducts=[],this.isProductInDialog=!1,this.shouldControlsBeSticky=new e.EventEmitter,this.setSelectedOfferInDialog=new e.EventEmitter,this.subscriptions={route:null,cart:null,location:null,productData:null,newLocation:null},this.userCityAndCounty={city:"",county:""},this.controlTypes=y.yP3,this.destroy$=new u.x,this.businessCarts=[],this.shouldHaveSelectedOffer=!1,this.carmen=y.VLR,this.isSticky=!1,this.shouldDisplayFavoritesButton=!0,this.breakpoints=y.u3l,this.window=window,this.areCarouselProductsLoading=!0,this.isIEOrEdge=/msie\s|trident\/|edge\//i.test(window.navigator.userAgent)}ngOnInit(){this.dialogProduct||this.initializeProduct(),this.areCarouselProductsLoading=!0,this.footer=document.getElementById("footer"),this.issuingToLabel(),this.isShowTextButtonVisible=!0,this.subscriptions.location=this.store.select(K.Ac).subscribe(Sn=>{Sn||(Sn=this.userLocationService.getUserLocation()),Sn&&this.updatePageAfterLocationChange(Sn)}),this.checkIfProductHasOfferInNewLocation(),this.subscriptions.cart=this.cartService.get().subscribe(Sn=>{this.businessCarts=Sn?Sn.businessCarts:[]})}ngOnChanges(Sn){Sn.dialogProduct&&this.initializeProduct()}ngOnDestroy(){Object.keys(this.subscriptions).forEach(Sn=>{this.subscriptions[Sn]&&this.subscriptions[Sn].unsubscribe()}),this.productService.clearProductData(),this.appService.removeCanonical(),this.appService.removeSocialMeta(),this.footer.style.marginBottom="0",this.destroy$.next(),this.destroy$.complete()}isHomepage(){return this.router.url===y.s67}get selectedBusinessSlug(){return this.filtersService?.filters?.businessNames?.map(Sn=>y.VLR?.slugify(Sn))}setShouldControlsBeSticky(Sn){this.isProductInDialog?this.shouldControlsBeSticky.emit(Sn):(this.isSticky=Sn,this.footer.style.marginBottom=Sn&&window.innerWidth<this.breakpoints.TABLET?"128px":"0")}updatePageAfterLocationChange(Sn){this.product&&this.getProductAfterLocationChange(),this.userCityAndCounty.county=Sn.county,this.userCityAndCounty.city=Sn.city;const Lt=!!this.product?.offers.find(Jn=>Jn.city.toLowerCase()===Sn.city.toLowerCase());this.store.dispatch(k.T.refreshCarousel()),this.getSimilarProducts(),this.product&&Sn&&Lt&&this.setSelectedOfferForNewLocation(this.product,Sn.city)}getProduct(Sn){let Lt=this.userService.getGuestId();const Jn=this.userLocationService.getUserLocation(),Di=(new n.WM).set("noSpinner","true");return!this.user&&!Lt&&(this.userService.createGuestId(),Lt=this.userService.getGuestId()),this.productService.get(Sn,!1,Di,Lt,Jn)}initializeProduct(){this.subscriptions.route=this.route.paramMap.pipe((0,a.w)(Sn=>{const Lt=Sn.get("slug");return this.clearProductAndTriggerLoading(),this.getProduct(this.dialogProduct?this.dialogProduct.slug:Lt)}),(0,t.R)(this.destroy$)).subscribe({next:Sn=>{this.handleProductsSuccess(Sn)},error:Sn=>this.handleProductError(Sn)}),this.setProductData()}handleProductsSuccess(Sn){this.product=null,this.shouldHaveSelectedOffer=!1,Sn&&(this.initializeProductData(Sn),this.appService.setTitle(`${y.VLR.ucwords(this.product.name)}`,!1),this.setSocialMeta(),this.appService.setCanonical(this.product.publicUrl),this.setUserCityAndCounty(),this.checkIfHasPreviouslySetCountyAndCity(),this.fbPixelTrackingService.viewContent(this.product))}handleProductError(Sn){404===Sn.status&&this.router.navigate([`${y.YuG.NOT_FOUND}`],{skipLocationChange:!0})}setProductData(){this.productData=this.productService.productData,this.subscriptions.productData=this.productData.subscribe(Sn=>{Sn?(this.selectedOffer=Sn.selectedOffer,this.selectedPackage=Sn.selectedPackage,this.shouldHaveSelectedOffer=!0,this.setSelectedOfferInDialog.emit(this.selectedOffer)):this.setProductSelectedOffer(!1)})}clearProductAndTriggerLoading(){this.areCarouselProductsLoading=!0,this.productService.clearProductData(),this.productService.triggerLoading()}getProductAfterLocationChange(){this.product&&this.initializeProduct()}setSelectedOffer(Sn){if(this.userLocationService.getUserLocation()&&this.userLocationService.getUserLocationStore()){const Lt=this.userLocationService.getUserLocationStore();this.setProductBestOfferByLocation(Lt,Sn)}else if(!this.selectedOffer&&this.product.bestOffer){const Lt={};Lt.selectedOffer=this.product.bestOffer,this.setSelectedOfferInDialog.emit(Lt.selectedOffer),!this.selectedPackage&&this.product.bestOffer.packaging&&(Lt.selectedPackage=this.product.bestOffer.packaging),this.productService.addStockToOfferAndSetProductData(Lt)}}setSelectedOfferForNewLocation(Sn,Lt){Lt?Lt&&this.setProductBestOfferByLocation(Lt,Sn):(this.setProductSelectedOffer(),this.productService.setProductData(null))}setProductSelectedOffer(Sn=!0){this.selectedOffer=null,this.selectedPackage=null,this.shouldHaveSelectedOffer=!!Sn||this.shouldHaveSelectedOffer,this.setSelectedOfferInDialog.emit(null)}get selectedBusinesses(){if(this.isProductInDialog)return this.selectedBusinessSlug;{let Sn=this.route?.snapshot?.queryParams?.slug??[];return Array.isArray(Sn)?Sn:[Sn]}}setProductBestOfferByLocation(Sn,Lt){if(!Lt.bestOffer||!Sn)return this.setProductSelectedOffer();if(Lt.bestOffer.city&&Lt.bestOffer.city.toLowerCase()===Sn.toLowerCase()){const Di={selectedOffer:Lt.offers.find(Wi=>this.selectedBusinesses.includes(y.VLR.slugify(Wi.businessName)))??Lt.bestOffer,selectedPackage:Lt.bestOffer.packaging};this.productService.addStockToOfferAndSetProductData(Di)}else{const Jn=Lt.offers.filter(Di=>Di.city&&Di.city.toLowerCase()===Sn.toLowerCase()).sort((Di,Wi)=>Di.price-Wi.price)[0];this.setSelectedOfferForCurrentLocation(Jn)}}setSelectedOfferForCurrentLocation(Sn){Sn?this.productService.addStockToOfferAndSetProductData({selectedOffer:Sn,selectedPackage:Sn.packaging}):this.setProductSelectedOffer()}issuingToLabel(){this.product&&(this.product.labels||(this.product.labels=[]),"PRF"===this.product.issuing&&(this.product.labels.some(Sn=>"rx"===Sn)||this.product.labels.push("rx")))}getSimilarProducts(){this.userCityAndCounty.county||this.setUserCityAndCounty();const Sn=this.user?"":this.userService.getOrCreateGuestId();return this.productService.getSimilarProducts(this.product.atc,this.product.slug,this.userCityAndCounty.county,this.userCityAndCounty.city,Sn).pipe((0,l.b)(Lt=>{this.similarProducts=Lt}),(0,h.x)(()=>{this.areCarouselProductsLoading=!1}))}setUserCityAndCounty(){const Sn=this.userLocationService.getUserLocation();Sn&&(this.userCityAndCounty.city=Sn.city,this.userCityAndCounty.county=Sn.county)}loadCategoryPath(){return(0,g.of)(this.product.atcs).pipe((0,s.U)(Sn=>{let Lt=(Sn||[]).sort((Jn,Di)=>Jn.atc.length-Di.atc.length).map(Jn=>{const Di=new R.W;return Di.name=Jn.description,Di.categoryId=Jn.atc,Di});this.setupBreadcrumbs(Lt)}))}setupBreadcrumbs(Sn){this.appSettings.breadcrumbSource.next(this.product.atcs[0].atc===y.Lkn?[{name:"Restaurante",description:"Restaurante",url:`/${y.nUJ.RESTAURANTS}`},{name:this.selectedOffer.businessName,description:"Restaurante",url:`/${y.Z2M.PRODUCTS}/${y.Lkn}/${this.selectedOffer.businessExternalId}`}]:[{name:"Produse",description:"Produse",url:`/${y.Z2M.PRODUCTS}`}].concat(Sn??[]))}onPackageChange(Sn){if(Sn){this.product.texts.forEach(Di=>{Di.key===Sn.bestOffer.productSlug&&(this.currentInfoTab=this.product.texts.indexOf(Di))}),this.product.refresh();const Lt=this.userLocationService.getUserLocationStore(),Jn=Sn.drugOffers.sort((Di,Wi)=>Di.price-Wi.price).find(Di=>Di.city===Lt?.toUpperCase());this.changeOffer(Jn),this.selectedPackage=Sn,this.selectedOffer.packaging.images[0].blank||(this.product.images=this.selectedOffer.packaging.images),this.currentImage=this.product.images[0]}}changeOffer(Sn){this.getStockForOffer(Sn).subscribe(Lt=>{Sn.stock=Lt.quantity??0,this.selectedOffer=Sn,this.selectedPackage=Sn.packaging,this.setSelectedOfferInDialog.emit(this.selectedOffer),this.quantityInput=1,document.querySelector("mat-sidenav-content").scroll({top:0,behavior:"smooth"}),this.product.refresh(),this.setupBreadcrumbs()})}getStockForOffer(Sn){return this.productService.getStockForOffer({businessExternalId:Sn.businessExternalId,productSlug:Sn.productSlug}).pipe((0,d.q)(1))}openShareDialog(){this.dialog.closeAll(),this.dialog.open(ae,{restoreFocus:!1,position:y.VLR.getDialogPosition()})}getLabelDescription(Sn){let Lt;switch(Sn){case"Otc":Lt="F\u0103r\u0103 re\u021bet\u0103";break;case"Btc":Lt="Necesit\u0103 re\u021bet\u0103";break;case"Bio":Lt="Bio";break;case"Vegan":Lt="Vegetarian";break;case"Rx":Lt="Re\u021bet\u0103 re\u021binut\u0103 \xeen farmacie";break;case"Cash only":Lt="Doar numerar";break;case"Not Returnable":Lt="Nereturnabil";break;case"Child restriction":Lt="Interzis copiilor";break;case"Minor restriction":Lt="Interzis minorilor"}return Lt}back(){window.history.state?.navigationId>1?this._location.back():this.router.navigate([`${y.Z2M.PRODUCTS}/${this.product?.atcs[1]?.atc}`])}openUnavailableBusinessDialog(Sn,Lt){this.dialogRef||(this.dialog.closeAll(),this.dialogRef=this.dialog.open($.h,{minWidth:(0,y.I3d)(400),width:(0,y.I3d)(400),position:{top:"2%"},panelClass:"base-panel-class",disableClose:!0,data:{newLocation:Sn,titleKey:Lt,profile:null,product:this.product},autoFocus:!1}),this.dialogRef.afterClosed().pipe((0,d.q)(1)).subscribe(()=>this.dialogRef=void 0))}checkIfProductHasOfferInNewLocation(){const Sn=this.userLocationService.getUserLocation().city;!this.product?.offers.find(Jn=>y.VLR.normalizeRomanianDiacritics(Jn.city).toLowerCase()===y.VLR.normalizeRomanianDiacritics(Sn).toLowerCase())&&!this.businessCarts.length&&this.product?.offers.length&&this.userLocationService.getStoreLocation(Sn).pipe((0,d.q)(1)).subscribe(Jn=>this.openUnavailableBusinessDialog(Jn.mainLocality,"PAGES.PRODUCTS.PRODUCT.PRODUCT_UNAVAILABLE"))}get isUnavailable(){return!this.selectedOffer||!this.product.priceMin}checkIfHasPreviouslySetCountyAndCity(){(0,v.D)([this.userCityAndCounty.county&&this.userCityAndCounty.county?this.getSimilarProducts():(0,g.of)(),this.loadCategoryPath()]).subscribe(()=>{this.appService.pageLoaded()})}setSocialMeta(){this.appService.setSocialMeta({title:`${this.product.name}`,description:this.product.generalDescription,url:this.product.publicUrl,image:this.product.images[0].medium})}setShouldDisplayFavoritesButton(Sn){setTimeout(()=>{this.shouldDisplayFavoritesButton=Sn})}initializeProductData(Sn){this.product=null,this.setShouldDisplayFavoritesButton(!1),this.shouldHaveSelectedOffer=!1,this.otherProducts=[],this.currentImage=null,Sn.refresh(),this.productSource.next(Sn),this.product=Sn,this.setShouldDisplayFavoritesButton(!0),this.setSelectedOffer(Sn),this.currentImage=this.product.images[0]}}_o.\u0275fac=function(Sn){return new(Sn||_o)(e.\u0275\u0275directiveInject(U.F0),e.\u0275\u0275directiveInject(le.d),e.\u0275\u0275directiveInject(S.z),e.\u0275\u0275directiveInject(E.M),e.\u0275\u0275directiveInject(y.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(U.gz),e.\u0275\u0275directiveInject(P.on),e.\u0275\u0275directiveInject(T.Location),e.\u0275\u0275directiveInject(j.O),e.\u0275\u0275directiveInject(H.yh),e.\u0275\u0275directiveInject(y.vio.CartServiceToken),e.\u0275\u0275directiveInject(y.vio.PixelTrackingService),e.\u0275\u0275directiveInject(y.vio.FiltersServiceToken))},_o.\u0275cmp=e.\u0275\u0275defineComponent({type:_o,selectors:[["app-product"]],inputs:{dialogProduct:"dialogProduct",isProductInDialog:"isProductInDialog",dialogContentPosition:"dialogContentPosition"},outputs:{shouldControlsBeSticky:"shouldControlsBeSticky",setSelectedOfferInDialog:"setSelectedOfferInDialog"},features:[e.\u0275\u0275NgOnChangesFeature],decls:8,vars:23,consts:[["fxLayout","column","fxLayoutGap","12px",3,"ngClass"],["fxLayout","column",1,"product-page",3,"ngClass"],["fxLayoutAlign","end center","class","header",4,"ngIf"],["fxLayout","row","class","breadcrumb-container",4,"ngIf"],[3,"product","isProductInDialog","selectedOffer","selectedPackage","quantity","currentImage","shouldDisplayFavoritesButton","dialogContentPosition","similarProducts","areCarouselProductsLoading","shouldHaveSelectedOffer","onPackageChange","changeOffer","shouldControlsBeSticky"],["class","sticky",3,"fxHide",4,"ngIf"],["class","information-text",4,"ngIf"],["fxLayoutAlign","end center",1,"header"],[1,"material-icons","close-icon",3,"click"],["fxLayout","row",1,"breadcrumb-container"],[1,"w-100",3,"shouldCloseProductDialog"],["class","close-button-container",3,"click",4,"ngIf"],[1,"close-button-container",3,"click"],[1,"material-icons","close-icon"],[1,"sticky",3,"fxHide"],["fxFlex","100",3,"offer","product","quantity","package","type","packageChangeEvent",4,"ngIf"],["fxFlex","100",3,"offer","product","quantity","package","type","packageChangeEvent"],[1,"information-text"]],template:function(Sn,Lt){1&Sn&&(e.\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1),e.\u0275\u0275template(2,Ii,3,0,"div",2),e.\u0275\u0275template(3,Hi,3,2,"div",3),e.\u0275\u0275elementStart(4,"app-product-presentation",4),e.\u0275\u0275listener("onPackageChange",function(Di){return Lt.onPackageChange(Di)})("changeOffer",function(Di){return Lt.changeOffer(Di)})("shouldControlsBeSticky",function(Di){return Lt.setShouldControlsBeSticky(Di)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,kr,2,2,"div",5),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275template(7,Er,4,5,"p",6),e.\u0275\u0275elementEnd()),2&Sn&&(e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(19,pr,!Lt.isProductInDialog)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(21,fo,Lt.isProductInDialog)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Lt.isProductInDialog&&Lt.window.innerWidth<=Lt.breakpoints.TABLET),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Lt.isHomepage()),e.\u0275\u0275advance(1),e.\u0275\u0275property("product",Lt.product)("isProductInDialog",Lt.isProductInDialog)("selectedOffer",Lt.selectedOffer)("selectedPackage",Lt.selectedPackage)("quantity",Lt.quantityInput)("currentImage",Lt.currentImage)("shouldDisplayFavoritesButton",Lt.shouldDisplayFavoritesButton)("dialogContentPosition",Lt.dialogContentPosition)("similarProducts",Lt.similarProducts)("areCarouselProductsLoading",Lt.areCarouselProductsLoading)("shouldHaveSelectedOffer",Lt.shouldHaveSelectedOffer),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(6,17,Lt.productData)&&!Lt.isProductInDialog&&!(null!=Lt.user&&Lt.user.isBusiness())),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!Lt.isProductInDialog))},dependencies:[T.NgClass,T.NgIf,N.xw,N.SQ,N.Wh,N.yH,pe.b8,pe.oO,de.S$,me.I,q.L,jn,T.AsyncPipe,Q.X$],styles:[".header[_ngcontent-%COMP%]{height:52px;box-shadow:0 2px 2px #00000042;margin:-16px -16px 16px!important;padding:16px}.close-icon[_ngcontent-%COMP%]{cursor:pointer;font-size:20px;font-weight:700}.breadcrumb-container[_ngcontent-%COMP%]{padding-bottom:8px}.breadcrumb-container[_ngcontent-%COMP%]   .close-button-container[_ngcontent-%COMP%]{width:20px;margin-left:auto;margin-top:-2px;height:20px;font-size:19px;font-weight:700;color:#242424}mat-card[_ngcontent-%COMP%]{padding-bottom:0}.other-offers[_ngcontent-%COMP%]{font-size:14px}.other-offers[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:75px;height:75px;min-width:75px!important}.other-offers[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:14px!important}.other-offers[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:17px}.other-offers[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{color:#00853b}.other-offers[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{cursor:pointer}.other-offers-panel[_ngcontent-%COMP%]{padding:0}.other-offers-panel[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:19px}.other-offers-panel[_ngcontent-%COMP%]   .other-offers[_ngcontent-%COMP%]{padding-bottom:16px}.other-offers-panel[_ngcontent-%COMP%]   mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0 16px}.mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background-color:transparent!important}.similar-products-panel[_ngcontent-%COMP%]   .similar-products-title[_ngcontent-%COMP%]{font-size:22px;line-height:29px;font-weight:700}.information-text[_ngcontent-%COMP%]{color:#7b7b7b;font-style:italic;padding:10px 16px}@media (max-width: 960px){.fix-product-page-margins[_ngcontent-%COMP%]{margin:-12px -25px}}@media (max-width: 960px) and (min-width: 601px){.business-info-container[_ngcontent-%COMP%]{min-width:368px}.divider[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{width:calc(100% - 32px)!important;margin:0 16px}.fix-product-page-margins[_ngcontent-%COMP%]{padding:0}}.sticky[_ngcontent-%COMP%]{width:100%;height:128px;bottom:0;z-index:3;left:0;min-height:40px;margin-bottom:0!important;position:fixed!important;background-color:#fff;padding:16px;box-shadow:0 -2px 2px #00000029}@media (max-width: 768px){.fix-product-page-margins[_ngcontent-%COMP%]{margin:-12px -18px}}@media (min-width: 768px){.sticky[_ngcontent-%COMP%]{display:none!important}}@media (max-width: 600px){.label[_ngcontent-%COMP%]{position:absolute}.divider[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{width:calc(100% - 32px)!important;margin:0 16px}.business-info-container[_ngcontent-%COMP%]{width:100%}.details[_ngcontent-%COMP%]{width:calc(100vw - 70px)!important;min-height:40px;margin-right:12px}.info-container[_ngcontent-%COMP%]{padding:16px 0 0!important}.controls-container[_ngcontent-%COMP%]{align-self:baseline}}@media (max-width: 420px){.fix-product-page-margins[_ngcontent-%COMP%]{margin:-8px -10px}}"]}),function(Bn,Sn,Lt,Jn){var Ar,Di=arguments.length,Wi=Di<3?Sn:null===Jn?Jn=Object.getOwnPropertyDescriptor(Sn,Lt):Jn;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Wi=Reflect.decorate(Bn,Sn,Lt,Jn);else for(var br=Bn.length-1;br>=0;br--)(Ar=Bn[br])&&(Wi=(Di<3?Ar(Wi):Di>3?Ar(Sn,Lt,Wi):Ar(Sn,Lt))||Wi);Di>3&&Wi&&Object.defineProperty(Sn,Lt,Wi)}([(0,D.I)(),function(Bn,Sn){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Sn)}(0,b.n)],_o.prototype,"user",void 0)},6986:(oe,x,i)=>{"use strict";i.d(x,{b:()=>h});var e=i(28918),n=i(94650);function a(s,d){1&s&&(n.\u0275\u0275elementStart(0,"mat-expansion-panel-header",6)(1,"p",7),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd()()),2&s&&(n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(3,1,"PAGES.PRODUCTS.PRODUCT.SIMILAR_PRODUCTS")))}function t(s,d){if(1&s&&(n.\u0275\u0275elementStart(0,"mat-accordion"),n.\u0275\u0275element(1,"mat-divider",2),n.\u0275\u0275elementStart(2,"mat-expansion-panel",3),n.\u0275\u0275template(3,a,4,3,"mat-expansion-panel-header",4),n.\u0275\u0275elementStart(4,"div"),n.\u0275\u0275element(5,"app-products-carousel",5),n.\u0275\u0275elementEnd()()()),2&s){const p=n.\u0275\u0275nextContext(),u=n.\u0275\u0275reference(2);n.\u0275\u0275advance(2),n.\u0275\u0275property("expanded",!0),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!p.areCarouselProductsLoading)("ngIfElse",u),n.\u0275\u0275advance(2),n.\u0275\u0275property("products",p.similarProducts)("areCarouselProductsLoading",p.areCarouselProductsLoading)("isProductPageBtnTheme",!0)("isProductDetailDialogCarousel",p.isProductInDialog)("type",p.controlTypes.PROMOTION_CAROUSEL)}}function l(s,d){if(1&s&&n.\u0275\u0275element(0,"ngx-skeleton-loader",8),2&s){const p=n.\u0275\u0275nextContext();n.\u0275\u0275property("count",1)("theme",p.titleTheme)}}let h=(()=>{class s{constructor(){this.isProductInDialog=!1,this.areCarouselProductsLoading=!1,this.controlTypes=e.yP3,this.titleTheme={width:"220px",height:"24px",margin:"16px 0 0 12px"}}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=n.\u0275\u0275defineComponent({type:s,selectors:[["app-similar-products"]],inputs:{similarProducts:"similarProducts",isProductInDialog:"isProductInDialog",areCarouselProductsLoading:"areCarouselProductsLoading"},decls:3,vars:1,consts:[[4,"ngIf"],["titleSkeleton",""],[1,"full-width-divider"],[1,"similar-products",3,"expanded"],["collapsedHeight","61px","expandedHeight","61px",4,"ngIf","ngIfElse"],[3,"products","areCarouselProductsLoading","isProductPageBtnTheme","isProductDetailDialogCarousel","type"],["collapsedHeight","61px","expandedHeight","61px"],[1,"similar-products__title"],[3,"count","theme"]],template:function(p,u){1&p&&(n.\u0275\u0275template(0,t,6,8,"mat-accordion",0),n.\u0275\u0275template(1,l,1,2,"ng-template",null,1,n.\u0275\u0275templateRefExtractor)),2&p&&n.\u0275\u0275property("ngIf",null==u.similarProducts?null:u.similarProducts.length)},styles:[".skeleton-container[_ngcontent-%COMP%]{margin-top:24px;padding-bottom:10px}.skeleton-container__carousel[_ngcontent-%COMP%]{height:361px;overflow:hidden}.skeleton-container__carousel__single-offer[_ngcontent-%COMP%]{margin-right:22px}.skeleton-container__carousel__single-offer[_ngcontent-%COMP%]   .custom[_ngcontent-%COMP%]{margin:0 auto}ngx-skeleton-loader[_ngcontent-%COMP%]{display:inline-block}.full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.similar-products__title[_ngcontent-%COMP%]{font-size:22px;line-height:29px;font-weight:700}"]}),s})()},8883:(oe,x,i)=>{"use strict";i.d(x,{r:()=>s});var e=i(28555),n=(()=>{return(d=n||(n={})).LoadCategoryProducts="[Listing Carousel] Load Products",d.LoadCategoryProductsSuccess="[Listing Carousel API] Load Products Success",d.LoadCategoryProductsFailure="[Listing Carousel API] Load Products Fail",d.EmptyCarousel="[Listing Carousel] Empty carousel",n;var d})();const s={loadProducts:(0,e.PH)(n.LoadCategoryProducts,(0,e.Ky)()),loadProductsSuccess:(0,e.PH)(n.LoadCategoryProductsSuccess,(0,e.Ky)()),loadProductsFailure:(0,e.PH)(n.LoadCategoryProductsFailure,(0,e.Ky)()),emptyCarousel:(0,e.PH)(n.EmptyCarousel)}},38009:(oe,x,i)=>{"use strict";i.d(x,{Ig:()=>t,vq:()=>s});var e=i(64629),n=i(28555),a=i(8883);const t=(0,e.H)({selectId:d=>`${d.productSlug}/${d.productSlug}/${d.businessId}`}),l={categoryProducts:t.getInitialState(),error:""},h=(0,n.Lq)(l,(0,n.on)(a.r.loadProductsSuccess,(d,p)=>({...d,categoryProducts:t.setAll(p.categoryProducts,d.categoryProducts),error:""})),(0,n.on)(a.r.emptyCarousel,d=>({...d,categoryProducts:t.removeAll(d.categoryProducts),error:""})));function s(d,p){return h(d,p)}},29697:(oe,x,i)=>{"use strict";i.d(x,{m:()=>d});var e=i(28555),n=(()=>{return(p=n||(n={})).ClearRequests="[Products Listing] Clear Requests",p.DeleteRequest="[Products Listing] Delete Request",p.SaveRequest="[Products Listing] Save Request",p.SaveNextRequest="[Products Listing] Save Next Request",p.SaveNextRequestFail="[Products Listing] Save Next Request Fail",n;var p})();const d={clearRequests:(0,e.PH)(n.ClearRequests),deleteRequest:(0,e.PH)(n.DeleteRequest,(0,e.Ky)()),saveRequest:(0,e.PH)(n.SaveRequest,(0,e.Ky)()),saveNextRequest:(0,e.PH)(n.SaveNextRequest,(0,e.Ky)()),saveNextRequestFail:(0,e.PH)(n.SaveNextRequestFail)}},3163:(oe,x,i)=>{"use strict";i.d(x,{Tb:()=>h,vd:()=>l});var e=i(28555);const n=(0,e.ZF)("shared"),a=(0,e.P1)(n,s=>s.productsListingState),t=(0,e.P1)(a,s=>s.productListingRequests),l=(0,e.P1)(t,s=>s.entities[s.ids[0]]?.searchDto),h=s=>(0,e.P1)(t,d=>d.entities[s])},77917:(oe,x,i)=>{"use strict";i.d(x,{X:()=>h});var e=i(94650),n=i(28918),a=i(1576),t=i(97600),l=i(89383);let h=(()=>{class s{constructor(){this.theme=n.Q2A,this.isAddress=!1,this.showAvailableLocations=!0,this.setNewLocation=new e.EventEmitter,this.showAvailableLocation=new e.EventEmitter,this.navigateToChangeAddress=new e.EventEmitter,this.back=new e.EventEmitter}ngOnInit(){this.windowWidth=window.innerWidth}getFormattedText(){return this.isAddress?this.getAddressFormattedText():`${this.selectedLocation.county}, ${this.selectedLocation.city}`}getAddressFormattedText(){return(this.selectedLocation.address?`${this.selectedLocation.address}, `:"")+(this.selectedLocation.city?n.VLR.capitalizeCities(this.selectedLocation.city):"")+(this.selectedLocation.county?`, ${n.VLR.capitalizeCities(this.selectedLocation.county)}`:"")}openLocationDialog(){this.setNewLocation.emit()}openAvailableLocationDialog(){this.showAvailableLocation.emit()}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["app-unavailable-location"]],inputs:{selectedLocation:"selectedLocation",isAddress:"isAddress",showAvailableLocations:"showAvailableLocations"},outputs:{setNewLocation:"setNewLocation",showAvailableLocation:"showAvailableLocation",navigateToChangeAddress:"navigateToChangeAddress",back:"back"},decls:10,vars:12,consts:[[1,"unavailable-container"],["fxLayout","column","fxLayoutGap","16px"],["fxLayout","column"],[1,"mt-16","mb-16","unavailable-container__info__title"],[3,"theme","rightIcon","leftIcon","displayedAddress","isLeftIconInteractable","isRightIconInteractable","rightClickEvent"],[1,"mb-24","unavailable-container__info"]],template:function(p,u){1&p&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"drc-selected-address",4),e.\u0275\u0275listener("rightClickEvent",function(){return u.navigateToChangeAddress.emit()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"p",5),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()()()),2&p&&(e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,8,"SHARED.USER_LOCATION.UNAVAILABLE_LOCATION.TITLE")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("theme",u.theme.ERROR)("rightIcon","edit")("leftIcon","location_on")("displayedAddress",u.getFormattedText())("isLeftIconInteractable",!1)("isRightIconInteractable",!0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(9,10,"SHARED.USER_LOCATION.UNAVAILABLE_LOCATION.WARNING")," "))},dependencies:[a.xw,a.SQ,t.x,l.X$],styles:[".unavailable-container__title[_ngcontent-%COMP%]{line-height:32px}.unavailable-container__info[_ngcontent-%COMP%]{font-size:14px;line-height:22px}"]}),s})()},52873:(oe,x,i)=>{"use strict";i.d(x,{z:()=>D});var e=i(36895),n=i(80529),a=i(9116),t=i(61135),l=i(34782),h=i(39646),s=i(54004),d=i(13099),p=i(40488),u=i(28918),g=i(17596),v=i(43651),y=i(47225),b=i(96778),S=i(94650),E=i(11481);let D=(()=>{class A{constructor(B,V,X,re,Q,ae){this.http=B,this.title=V,this.router=X,this.meta=re,this.doc=Q,this.unleashService=ae,this.__categoryPathCache={},this.categoriesSource=new t.X(null),this.currentCategories=this.categoriesSource.asObservable()}initialize(){this.setCurrentUrl(),this.setCategories()}setCurrentUrl(){this.router.events.subscribe(B=>{B instanceof a.m2&&(this.previousUrl=this.currentUrl,this.currentUrl=B.url)})}setCategories(){this.getCategories().subscribe(B=>{this.categoriesSource.next(B)})}setTitle(B,V=!0){this.title.setTitle(B+(V?" | DrCarmen":""))}get previousPage(){return this.previousUrl}setCanonical(B){this.__canonicalLink||(this.__canonicalLink=this.doc.createElement("link"),this.__canonicalLink.setAttribute("rel","canonical"),this.doc.head.appendChild(this.__canonicalLink)),this.__canonicalLink.setAttribute("href",B)}removeCanonical(){const B=document.head.querySelector('link[rel="canonical"]');null!==B&&(document.head.removeChild(B),this.__canonicalLink=null)}setMetaDescription(B){this.meta.updateTag({name:"description",content:B})}setSocialMeta(B){B.description=B.description.replace(/<[^>]*>?[\n]*/gm,""),B.title=u.VLR.ucwords(B.title),this.setMetaDescription(B.description),this.meta.updateTag({property:"og:site_name",content:"DrCarmen.com"},"property='og:site_name'"),this.meta.updateTag({property:"og:type",content:"website"},"property='og:type'"),this.meta.updateTag({property:"og:title",content:B.title},"property='og:title'"),this.meta.updateTag({name:"twitter:title",content:B.title},"name='twitter:title'"),this.meta.updateTag({property:"og:url",content:B.url},"property='og:url'"),B.description&&(this.meta.updateTag({property:"og:description",content:B.description},"property='og:description'"),this.meta.updateTag({name:"twitter:description",content:B.description},"name='twitter:description'")),B.image&&(this.meta.updateTag({property:"og:image",content:B.image},"property='og:image'"),this.meta.updateTag({name:"twitter:card",content:B.image},"name='twitter:card'"))}removeSocialMeta(){this.meta.removeTag('name="description"'),this.meta.removeTag('name="twitter:title"'),this.meta.removeTag('name="twitter:description"'),this.meta.removeTag('name="twitter:card"'),this.meta.removeTag('property="og:site_name"'),this.meta.removeTag('property="og:type"'),this.meta.removeTag('property="og:title"'),this.meta.removeTag('property="og:url"'),this.meta.removeTag('property="og:description"'),this.meta.removeTag('property="og:image"')}getCategories(){return this.http.get(u._BY.GET_CATEGORIES,{headers:(new n.WM).set("noSpinner","true")}).pipe((0,s.U)(B=>B.map(V=>b.y.filterCategoriesforTobaccoAndAlcohol(V,this.unleashService.isEnabled(y.T.HideTobaccoAndAlcoholCategory)))),(0,l.d)())}getCategoryPath(B){return this.__categoryPathCache[B]?(0,h.of)(this.__categoryPathCache[B]):this.http.get(u._BY.GET_CATEGORY_PATH(B),{headers:(new n.WM).set("noSpinner","true")}).pipe((0,s.U)(V=>(this.__categoryPathCache[B]=V.map(X=>new v.W(X)),this.__categoryPathCache[B])))}sendSubscribeRequest(B){return this.http.post(u._BY.NEWSLETTER_ENDPOINT,B)}confirmNewsletterSubscription(B){return this.http.post(u._BY.NEWSLETTER_CONFIRM_ENDPOINT(B.token),{})}unsubscribeNewsletter(B){return B.token?this.http.delete(u._BY.NEWSLETTER_ENDPOINT,{params:B}):this.http.delete(u._BY.UNSUBSCRIBE_TEMPORARY_NEWSLETTER_USER(B.email))}contactSubmit(B,V,X,re){return this.http.post(u._BY.CONTACT_SUBMIT,{name:B,email:V,phone:X,message:re})}contactB2BSubmit(B){return this.http.post(u._BY.CONTACT_B2B_SUBMIT,B)}sendQuestion(B,V){return this.http.post(u._BY.SEND_QUESTION,{email:B,message:V})}businessContactSubmit(B,V){return this.http.post(u._BY.BUSINESS_CONTACT_SUBMIT,{businessEmail:B,message:V.message,userEmail:V.email,userName:V.name,phone:V.phone})}getBusinessProfiles(){if(this.__businessProfilesCache)return(0,h.of)(this.__businessProfilesCache);if(this.__businessProfilesCachePending)return this.__businessProfilesCachePending;const B=(new n.WM).set("noSpinner","true");return this.__businessProfilesCachePending=this.http.get(u._BY.GET_BUSINESS_PROFILES,{params:{page:0,size:1e3,approvalStatus:"APPROVED"},headers:B}).pipe((0,s.U)(X=>(this.__businessProfilesCache=X.content.map(re=>new g.eL(re)),this.__businessProfilesCache)),(0,d.B)()),this.__businessProfilesCachePending}getBusinessById(B){return this.getBusinessProfiles().pipe((0,s.U)(V=>V.find(X=>X.email===B||X.externalId===B)))}pageLoadedHandler(){return new Promise(B=>{this.__pageLoaded=B})}pageLoaded(){"function"==typeof this.__pageLoaded&&this.__pageLoaded(!0)}getBEVersion(){return this.http.get(u._BY.GET_BE_VERSION)}}return A.\u0275fac=function(B){return new(B||A)(S.\u0275\u0275inject(n.eN),S.\u0275\u0275inject(E.Title),S.\u0275\u0275inject(a.F0),S.\u0275\u0275inject(E.Meta),S.\u0275\u0275inject(e.DOCUMENT),S.\u0275\u0275inject(p.$2))},A.\u0275prov=S.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac}),A})()},41433:(oe,x,i)=>{"use strict";i.d(x,{K:()=>d});var e=i(80529),n=i(39646),a=i(54004),t=i(70262),l=i(28918),h=i(28854),s=i(94650);let d=(()=>{class p{constructor(g){this.http=g}add(g){return this.http.post(l.Y0J.ADD_EMPLOYEE,g)}get(){return this.http.get(l.Y0J.EMPLOYEE_PROFILE_ENDPOINT).pipe((0,a.U)(g=>new h.v(g)))}getBySlug(g){return this.http.get(l.Y0J.GET_EMPLOYEE_BY_SLUG(g)).pipe((0,a.U)(v=>new h.v(v)))}update(g){return this.http.post(l.Y0J.EMPLOYEE_PROFILE_ENDPOINT,g)}delete(g){return this.http.delete(l.Y0J.EMPLOYEE_ENDPOINT(g))}getJobTitles(){return this.http.get(l.Y0J.GET_JOB_TITLES)}getEmployeeInfo(g){return this.http.get(l.Y0J.EMPLOYEE_ENDPOINT(g))}addNewEmployee(g){return this.http.post(l.Y0J.ADD_NEW_EMPLOYEE,g)}updateEmployee(g,v){return this.http.put(l.Y0J.EMPLOYEE_ENDPOINT(g),v,{headers:{Accept:"*/*"}})}getAvailableApplications(){return this.http.get(l.Y0J.GET_AVAILABLE_APPLICATIONS)}sendInstallLink(g,v,y){return this.http.post(l.Y0J.SEND_INSTALL_LINK,{applicationId:v,employeeId:g,shouldSendSms:y})}getAttachments(g=null){const v=g?l.Y0J.EMPLOYEE_ATTACHMENTS_ENDPOINT(g):l.Y0J.GET_ATTACHMENTS;return this.http.get(v)}addAttachment(g,v){const y=new FormData;return y.append("file",v),this.http.post(l.Y0J.EMPLOYEE_ATTACHMENTS_ENDPOINT(g),y)}deleteAttachment(g){return this.http.delete(l.Y0J.DELETE_ATTACHMENT(g.storageKey))}addApplicationToEmployee(g,v){return this.http.patch(l.Y0J.ADD_APPLICATION_TO_EMPLOYEE(g,v),{})}exists(){let g=new e.WM;return g=g.set("noSpinner","true"),this.http.get(l.Y0J.EMPLOYEE_PROFILE_ENDPOINT,{observe:"response",headers:g}).pipe((0,a.U)(v=>404!==v.status),(0,t.K)(v=>(0,n.of)(404!==v.status)))}}return p.\u0275fac=function(g){return new(g||p)(s.\u0275\u0275inject(e.eN))},p.\u0275prov=s.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},37049:(oe,x,i)=>{"use strict";i.d(x,{f:()=>E});var e=i(80529),n=i(77579),a=i(39646),t=i(62843),l=i(4128),h=i(63900),s=i(70262),d=i(54004),p=i(28918),u=i(17596),g=i(22096);class v{constructor(A){A&&(Object.assign(this,A),this.order=new g.KM(this.order)),A.order.basket[0].business||(this.order.basket[0].business=new u.eL)}}class y{constructor(A){this.payments=[],A&&(Object.assign(this,A),this.payments=this.payments.map(P=>new v(P)))}}var b=i(97376),S=i(94650);let E=(()=>{class D{constructor(P,B){this.http=P,this.productService=B,this.businessProfileUpdateSubject=new n.x,this.businessProfileUpdate$=this.businessProfileUpdateSubject.asObservable()}get(){return this.http.get(p.F06.BUSINESS_PROFILE_ENDPOINT).pipe((0,h.w)(P=>(0,a.of)(new u.eL(P))))}getBySlug(P){return this.http.get(p.F06.GET_BUSINESS_BY_SLUG(P)).pipe((0,h.w)(B=>(0,a.of)(new u.eL(B))),(0,s.K)(()=>(0,a.of)(null)))}getBusinessTypes(){return this.http.get(p.F06.GET_BUSINESS_TYPES).pipe((0,s.K)(()=>(0,a.of)(null)))}update(P){return this.http.post(p.F06.BUSINESS_PROFILE_ENDPOINT,P)}addAttachment(P,B){const V=new FormData;return V.append("file",B),this.http.post(p.F06.ADD_ATTACHMENT(P),V)}deleteAttachment(P){return this.http.delete(p.F06.DELETE_ATTACHMENT(P.storageKey))}getEmployees(P,B){return this.http.post(p.F06.GET_EMPLOYEES,{searchText:B.searchText,active:B.active},{params:P})}getBusinessEmployees(P){return this.http.get(p.F06.GET_BUSINESS_EMPLOYEES(P))}getStocks(P){const B={};Object.keys(P).forEach(re=>{["sort","page","size"].includes(re)&&(B[re]=P[re],delete P[re])});let V=new e.WM;return V=V.set("noSpinner","true"),this.http.get(p.F06.GET_STOCKS,{headers:V,params:B}).pipe((0,d.U)(re=>({data:re.content||[],total:re.totalElements,pages:re.totalPages,pageIndex:re.number,size:re.size,sort:re.sort})))}updateStock(P,B=!1){let V=new e.WM;B&&(V=V.set("noSpinner","true"));const X={price:P.pricePerUM,quantity:P.quantity,vatPercent:P.vatPercent,copaymentPercent:P.copaymentPercent};return this.http.put(p.F06.UPDATE_STOCK(P),X,{headers:V}).pipe((0,s.K)(re=>(re.offer=P,(0,t._)(re))))}addStock(P,B=!1){let V=new e.WM;B&&(V=V.set("noSpinner","true"));const X={price:P.pricePerUM??0,quantity:Number(P.quantity),productSlug:P.productSlug,vatPercent:P.vatPercent??0,copaymentPercent:P.copaymentPercent,qrbarcode:P?.qrcode};return this.http.post(p.F06.ADD_STOCK,X,{headers:V}).pipe((0,s.K)(re=>(re.offer=P,(0,t._)(re))))}deleteOffer(P){return this.http.delete(p.F06.DRUG_STOCK_ENDPOINT(P))}getStock(P){return this.http.get(p.F06.DRUG_STOCK_ENDPOINT(P))}updateArrayOfStocks(P,B=!1){let V=new e.WM;return B&&(V=V.set("noSpinner","true")),this.http.post(p.F06.UPDATE_ARRAY_OF_STOCKS,P,{headers:V}).pipe((0,s.K)(X=>(X.offers=P,(0,t._)(X))))}deleteNotUpdatedStocks(){return this.http.delete(p.F06.DELETE_NOT_UPDATED_STOCKS)}getStocksDeletionStatus(){const P=(new e.WM).set("noSpinner","true");return this.http.get(p.F06.GET_STOCKS_DELETION_STATUS,{headers:P})}getBusinessPayments(P){P=p.VLR.extend({},P);const B={};Object.keys(P).forEach(re=>{["sort","page","size"].includes(re)&&(B[re]=P[re],delete P[re])});let V=new e.WM;return V=V.set("noSpinner","true"),this.http.post(p.F06.GET_BUSINESS_PAYMENTS,P,{headers:V,params:B}).pipe((0,h.w)(re=>{const Q=[],ae=re.content.map(K=>{const k=new v(K);return k.order=new g.KM(K.order),Q.push(this.loadOrderOffers(k.order)),k});return Q.length?(0,l.D)(Q).pipe((0,h.w)(()=>(0,a.of)({data:ae,total:re.totalElements,pages:re.totalPages,size:re.size,sort:re.sort}))):(0,a.of)({data:[],total:re.totalElements,pages:re.totalPages,size:re.size,sort:re.sort})}))}getBusinessClaims(P){P=p.VLR.extend({},P);const B={};Object.keys(P).forEach(X=>{["sort","page","size"].includes(X)&&(B[X]=P[X],delete P[X])});let V=new e.WM;return V=V.set("noSpinner","true"),this.http.post(p.F06.GET_BUSINESS_CLAIMS,P,{headers:V,params:B}).pipe((0,h.w)(X=>{const re=[],Q=X.content.map(ae=>{const K=new y(ae);return K.payments=ae.payments.map(k=>{const $=new v(k);return $.order=new g.KM(k.order),re.push(this.loadOrderOffers($.order)),$}),K});return re.length?(0,l.D)(re).pipe((0,h.w)(()=>(0,a.of)({data:Q,total:X.totalElements,pages:X.totalPages,size:X.size,sort:X.sort}))):(0,a.of)({data:[],total:X.totalElements,pages:X.totalPages,size:X.size,sort:X.sort})}))}loadOrderOffers(P){const V=P.offers.filter(X=>!X.offer).map(X=>X.productSlug);return this.productService.getAll(V).pipe((0,d.U)(X=>P.attachProducts(X)))}claimFunds(P){return this.http.post(p.F06.CLAIM_FUNDS,P)}getCategories(P){return this.http.get(p.F06.GET_CATEGORIES(P))}getBusinessSettings(){return this.http.get(p.F06.BUSINESS_SETTINGS_ENDPOINT)}setBusinessSettings(P){return this.http.put(p.F06.BUSINESS_SETTINGS_ENDPOINT,P)}setBusinessStoreCode(P){return this.http.put(`${p.F06.BUSINESS_SETTINGS_ENDPOINT}/store-code`,{storeCode:P})}resetSmartMinBasket(){return this.http.put(p.F06.RESET_SMART_MIN_BASKET,{})}getBusinessSchedule(P){return this.http.get(p.F06.GET_BUSINESS_SCHEDULE(P))}getBusinessCopaymentInfo(){return this.http.get(p.F06.BUSINESS_COPAYMENT_ENDPOINT)}getBusinessActiveSubvention(){return this.http.get(p.F06.BUSINESS_ACTIVE_SUBVENTION_ENDPOINT)}updateBusinessSMB(P){return this.http.put(p.F06.BUSINESS_COPAYMENT_ENDPOINT,{copaymentValue:P})}setInitialBusinessSMB(P){return this.http.put(p.F06.INITIATE_BUSINESS_COPAYMENT_ENDPOINT,P)}notifyPossibleBusinessProfileUpdate(){this.businessProfileUpdateSubject.next()}}return D.\u0275fac=function(P){return new(P||D)(S.\u0275\u0275inject(e.eN),S.\u0275\u0275inject(b.M))},D.\u0275prov=S.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},31483:(oe,x,i)=>{"use strict";i.d(x,{Y:()=>Q});var e=i(80529),n=i(29104),t=i(61135),l=i(39646),h=i(39841),s=i(69751),d=i(95698),p=i(18505),u=i(63900),g=i(54004),v=i(70262),y=i(24351),b=i(28918),S=i(55738),E=i(51877),D=i(94467),A=i(12676),P=i(11828),B=i(29697),V=i(94650),X=i(28555);let Q=(()=>{class ae{constructor(k,$,j,R,U){this.http=k,this.userService=$,this.locationService=j,this.store=R,this.zone=U,this.isGuestCartInitalized=!1,this.cartSubject=new t.X(null),this.cart$=this.cartSubject.asObservable(),this.freeContainers=0,this.isMergedUserCart=new t.X(!0)}get numberOfFreeContainers(){return this.freeContainers}initialize(){this.createCartContainer(),this.userService.user$.subscribe(k=>{this.user&&!k&&(this.user=null,this.createCartContainer()),!this.user&&k&&(this.user=new S.n(k),k.getType()===b.FWD.CLIENT&&(this.isGuestCartInitalized?this.updateCartAfterLogin():this.fetch().subscribe())),!this.user&&!k&&!this.userService.isUserLoadingInProgress&&this.initializeGuestCart()}),this.getNumberOfFreeContainers().pipe((0,d.q)(1)).subscribe()}initializeGuestCart(){this.fetch().subscribe()}updateCartAfterLogin(){this.isMergedUserCart.next(!1),this.mergeCart().subscribe(k=>{this.cartSubject.next(new E.A(k)),this.isMergedUserCart.next(!0)})}mergeCart(){return this.userService.getGuestId()?this.mergeGuestCart():this.fetch()}mergeGuestCart(){const $={guestId:this.userService.getGuestId()};return this.http.post(b.Oey.MERGE_GUEST_CART,$).pipe((0,p.b)(()=>this.userService.deleteGuestId()),(0,u.w)(()=>this.fetch()))}createCartContainer(){this.cartSubject.next(new E.A),this.locationService.changeCartDeliveryAddress().pipe((0,d.q)(1)).subscribe()}addMultiple(k){const $=k.map(j=>new D.j(j).toUserCartProductDto());return this.http.post(b.Oey.ADD_MULTIPLE_PRODUCTS,$).pipe((0,u.w)(j=>j))}get(){return this.cartSubject.getValue()?this.cart$:this.fetch().pipe((0,u.w)(k=>(this.cartSubject.next(new E.A(k)),this.cart$)))}fetch(){return this.userService.getCurrent().pipe((0,u.w)(k=>k&&k.getType()===b.FWD.CLIENT?this.getUserCart():k?void 0:this.getGuestCart()),(0,p.b)(k=>{this.cartSubject.next(new E.A(k))}))}getUserCart(){return this.http.get(b.Oey.GET_USER_CART,{headers:this.getNoSpinnerHeaders()}).pipe((0,g.U)(k=>new E.A(k)))}getGuestCart(){const k=this.user?"":this.userService.getOrCreateGuestId();return this.http.get(b.Oey.GET_GUEST_CART(k),{headers:this.getNoSpinnerHeaders()}).pipe((0,g.U)($=>new E.A($)),(0,p.b)(()=>this.isGuestCartInitalized=!0),(0,v.K)($=>(b.VLR.deleteSavedCartAddress(),(0,l.of)($))))}add(k){return this.userService.getCurrent().pipe((0,d.q)(1),(0,u.w)($=>$&&$.getType()===b.FWD.CLIENT?this.addProductForUser(k):this.addProductForGuest(k)),(0,u.w)($=>(0,h.a)([this.fetch(),(0,l.of)(this.getProductQuantityAdded($))])),(0,p.b)(([$,j])=>this.invalidateCachedRequestsIfDifferentProductPrice($,k)))}invalidateCachedRequestsIfDifferentProductPrice(k,$){k?.businessCarts?.find(le=>le.businessProfile?.businessId===$.businessExternalId)?.items?.find(le=>le.productSlug===$.productSlug)?.price!==$.price&&this.store.dispatch(B.m.clearRequests())}addProductForUser(k){const $=JSON.parse(localStorage.getItem(b.Umo.CART_ADDRESS));let j=(0,l.of)($);return $||(j=this.locationService.changeCartDeliveryAddress()),j.pipe((0,u.w)(()=>this.http.post(b.Oey.ADD_PRODUCT_FOR_USER,k.toUserCartProductDto(),{headers:this.getNoSpinnerHeaders()})),(0,u.w)(R=>{const U=new D.j(R);return(0,l.of)(U)}))}addProductForGuest(k){let $=this.userService.getGuestId();return $||(this.userService.createGuestId(),$=this.userService.getGuestId()),this.http.post(b.Oey.ADD_PRODUCT_FOR_GUEST($),k.toGuestCartProductDto(),{headers:this.getNoSpinnerHeaders()}).pipe((0,u.w)(j=>{const R=new D.j(j);return(0,l.of)(R)}))}remove(k){return this.userService.getCurrent().pipe((0,u.w)($=>$&&$.getType()===b.FWD.CLIENT?this.removeProductForUser(k):this.removeProductForGuest(k)),(0,u.w)(()=>this.fetch()))}removeProductForUser(k){return this.http.delete(b.Oey.REMOVE_PRODUCT_FOR_USER(k.cartProductId),{headers:this.getNoSpinnerHeaders()}).pipe((0,u.w)(()=>(0,l.of)(!0)),(0,v.K)(()=>(0,l.of)(!1)))}removeProductForGuest(k){const $=this.userService.getGuestId();return this.http.delete(b.Oey.REMOVE_PRODUCT_FOR_GUEST($,k.cartProductId),{headers:this.getNoSpinnerHeaders()}).pipe((0,u.w)(()=>(0,l.of)(!0)),(0,v.K)(()=>(0,l.of)(!1)))}changePaymentType(k){return this.http.patch(b.Oey.CHANGE_PAYMENT_TYPE,{paymentType:k},{headers:this.getNoSpinnerHeaders()}).pipe((0,u.w)(()=>this.fetch()),(0,v.K)(()=>(0,l.of)(!1)))}selectCardForPayment(){this.fetch().subscribe()}changeProductQuantity(k,$,j=!0){return this.userService.getCurrent().pipe((0,d.q)(1),(0,u.w)(R=>R&&R.getType()===b.FWD.CLIENT?this.changeQuantityAsUser(k,$,j):this.changeQuantityAsGuest(k,$,j)),(0,u.w)(R=>(0,h.a)([this.fetch().pipe((0,d.q)(1)),(0,l.of)(this.getProductQuantityAdded(R))])),(0,p.b)(([R,U])=>this.invalidateCachedRequestsIfDifferentProductPrice(R,k)))}changeQuantityAsUser(k,$,j=!0){const R={quantity:$};return this.http.patch(b.Oey.CHANGE_QUANTITY_AS_USER(k.cartProductId),R,{headers:this.getNoSpinnerHeaders(j)})}changeQuantityAsGuest(k,$,j=!0){const R=this.userService.getGuestId(),U={quantity:$};return this.http.patch(b.Oey.CHANGE_QUANTITY_AS_GUEST(R,k.cartProductId),U,{headers:this.getNoSpinnerHeaders(j)})}changeBusinessOffer(k,$){return this.userService.getCurrent().pipe((0,u.w)(j=>j&&j.getType()===b.FWD.CLIENT?this.changeBusinessOfferAsUser(k,$):this.changeBusinessOfferAsGuest(k,$)),(0,y.b)(()=>this.get()))}changeBusinessOfferAsUser(k,$){const j={businessId:$};return this.http.patch(b.Oey.CHANGE_BUSINESS_OFFER_AS_USER(k.cartProductId),j).pipe((0,u.w)(()=>(0,l.of)(!0)),(0,v.K)(()=>(0,l.of)(!1)))}changeBusinessOfferAsGuest(k,$){const j=this.userService.getGuestId(),R={businessId:$};return this.http.patch(b.Oey.CHANGE_BUSINESS_OFFER_AS_GUEST(j,k.cartProductId),R).pipe((0,u.w)(()=>(0,l.of)(!0)),(0,v.K)(()=>(0,l.of)(!1)))}getBusinessDeliveryType(k){return this.userService.getCurrent().pipe((0,u.w)($=>$&&$.getType()===b.FWD.CLIENT?this.getUserDeliveryType(k):this.getGuestDeliveryTypes(k)))}getUserDeliveryType(k){return this.http.get(b.Oey.GET_USER_DELIVERY_TYPES(k))}getGuestDeliveryTypes(k){const $=this.userService.getGuestId();return this.http.get(b.Oey.GET_GUEST_DELIVERY_TYPES($,k))}changeBusinessOrderDeliveryType(k,$){return this.userService.getCurrent().pipe((0,u.w)(j=>j&&j.getType()===b.FWD.CLIENT?this.changeUserBusinessOrderDeliveryType(k,$):this.changeGuestBusinessOrderDeliveryType(k,$)))}changeUserBusinessOrderDeliveryType(k,$){return this.http.patch(b.Oey.CHANGE_USER_BUSINESS_ORDER_DELIVERY_TYPE(k),{deliveryType:$})}changeGuestBusinessOrderDeliveryType(k,$){const j=this.userService.getGuestId();return this.http.patch(b.Oey.CHANGE_GUEST_BUSINESS_ORDER_DELIVERY_TYPE(j,k),{deliveryType:$})}getProductOffers(k){const{productSlug:$,productSlug:j}=k;return this.http.get(b.Oey.GET_PRODUCT_OFFERS($,j))}changeOfferInCart(k,$){const j={businessId:$};return this.userService.getCurrent().pipe((0,u.w)(R=>R&&R.getType()===b.FWD.CLIENT?this.changeOfferInUserCart(k,j):this.changeOfferInGuestCart(k,j)))}clear(){const k=this.userService.getGuestId();return this.http.delete(this.user?b.Oey.CLEAR_CART:b.Oey.CLEAR_CART_AS_GUEST(k)).pipe((0,u.w)(()=>this.fetch()),(0,v.K)(()=>(0,l.of)(!1)))}checkout(k){return this.http.post(b.Oey.CHECKOUT_CART,k.toCheckoutDto()).pipe((0,p.b)(()=>this.createCartContainer()))}updateCartPrices(){return this.http.post(b.Oey.UPDATE_CART_PRICES,{})}saveBusinessComment(k){const $=this.userService.getGuestId();return this.http.patch($?b.Oey.SAVE_GUEST_NOTES($,k.businessId):b.Oey.SAVE_NOTES(k.businessId),{comment:k.comment},{headers:this.getNoSpinnerHeaders()})}getNumberOfFreeContainers(){return this.http.get(b.Oey.GET_NUMBER_OF_FREE_CONTAINERS).pipe((0,p.b)(k=>this.freeContainers=k.freeContainers))}changeOfferInUserCart(k,$){return this.http.patch(b.Oey.CHANGE_BUSINESS_OFFER_AS_USER(k),$)}changeOfferInGuestCart(k,$){const j=this.userService.getGuestId();return this.http.patch(b.Oey.CHANGE_BUSINESS_OFFER_AS_GUEST(j,k),$)}getDeliveryTime(){return this.http.get(b.Oey.CART_DELIVERY_TIME_ENDPOINT)}saveSpecificDeliveryTime(k){return this.http.patch(b.Oey.CART_DELIVERY_TIME_ENDPOINT,k)}getAvailablePaymentTypes(){return this.http.get("api/cart/payment-types")}openSSEConnection(k,$){this.cartUpdateEventSource=new n.EventSourcePolyfill(k=`${P.Z.origin}${k}`,this.getEventSourceOptions($))}getEventSourceOptions(k,$=!1){return{headers:this.getHeaders(k),heartbeatTimeout:1799e3,withCredentials:$}}getHeaders(k){let $={"X-API-Key":P.Z.apiKey?.key?.toString()};return k||($.Authorization=`${b.HEB} ${localStorage.getItem(b.Umo.AUTH_TOKEN)}`),$}getCartSSEUpdates(k,$=!1){return this.openSSEConnection(b.Oey.SSE_UPDATES(k),$),this.listenForSSEEvents()}listenForSSEEvents(){return new s.y(k=>{this.handleResponse(k),this.handleErrors(k)})}handleResponse(k){this.cartUpdateEventSource.addEventListener(b.QOl.UPDATE_CART,$=>{this.zone.run(()=>{k.next($)})})}handleErrors(k){this.cartUpdateEventSource.onerror=$=>{this.zone.run(()=>{k.error($),this.closeSSEConnection()})}}closeSSEConnection(){this.cartUpdateEventSource&&this.cartUpdateEventSource.close()}unsubscribeFromCartSSEUpdate(k){return this.closeSSEConnection(),this.http.delete(b.Oey.SSE_UPDATES_UNSUBSCRIBE(k))}getBusinessDeliveryTime(k){return this.http.get(b.Oey.GET_BUSINESS_DELIVERY_TIME_INTERVALS(k))}setBusinessDeliveryTime(k,$){return this.http.patch(b.Oey.GET_BUSINESS_DELIVERY_TIME_INTERVALS(k),$)}deleteBusinessScheduledDeliveryTime(k){return this.http.patch(b.Oey.DELETE_BUSINESS_SCHEDULE_DELIVERY_TIME(k),{})}getNoSpinnerHeaders(k=!0){return(new e.WM).set("noSpinner",k?"true":"false")}getCurrentCart(){return this.cartSubject.getValue()}getProductQuantityAdded(k){return{quantity:k.quantity}}}return ae.\u0275fac=function(k){return new(k||ae)(V.\u0275\u0275inject(e.eN),V.\u0275\u0275inject(A.O),V.\u0275\u0275inject(b.vio.LocationServiceToken),V.\u0275\u0275inject(X.yh),V.\u0275\u0275inject(V.NgZone))},ae.\u0275prov=V.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})()},99283:(oe,x,i)=>{"use strict";i.d(x,{N:()=>s,i:()=>d});var e=i(94650),n=i(36895);let a=(()=>{class p{constructor(g,v){this.document=g,this.platformId=v,this.documentIsAccessible=(0,n.isPlatformBrowser)(this.platformId)}static getCookieRegExp(g){const v=g.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+v+"|;\\s*"+v+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(g){try{return decodeURIComponent(g)}catch{return g}}check(g){return!!this.documentIsAccessible&&(g=encodeURIComponent(g),p.getCookieRegExp(g).test(this.document.cookie))}get(g){if(this.documentIsAccessible&&this.check(g)){g=encodeURIComponent(g);const y=p.getCookieRegExp(g).exec(this.document.cookie);return y[1]?p.safeDecodeURIComponent(y[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const g={},v=this.document;return v.cookie&&""!==v.cookie&&v.cookie.split(";").forEach(y=>{const[b,S]=y.split("=");g[p.safeDecodeURIComponent(b.replace(/^ /,""))]=p.safeDecodeURIComponent(S)}),g}set(g,v,y,b,S,E,D){if(!this.documentIsAccessible)return;if("number"==typeof y||y instanceof Date||b||S||E||D)return void this.set(g,v,{expires:y,path:b,domain:S,secure:E,sameSite:D||"Lax"});let A=encodeURIComponent(g)+"="+encodeURIComponent(v)+";";const P=y||{};P.expires&&(A+="number"==typeof P.expires?"expires="+new Date((new Date).getTime()+1e3*P.expires*60*60*24).toUTCString()+";":"expires="+P.expires.toUTCString()+";"),P.path&&(A+="path="+P.path+";"),P.domain&&(A+="domain="+P.domain+";"),!1===P.secure&&"None"===P.sameSite&&(P.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${g} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),P.secure&&(A+="secure;"),P.sameSite||(P.sameSite="Lax"),A+="sameSite="+P.sameSite+";",this.document.cookie=A}delete(g,v,y,b,S="Lax"){this.documentIsAccessible&&this.set(g,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:v,domain:y,secure:b,sameSite:S})}deleteAll(g,v,y,b="Lax"){if(!this.documentIsAccessible)return;const S=this.getAll();for(const E in S)S.hasOwnProperty(E)&&this.delete(E,g,v,y,b)}}return p.\u0275fac=function(g){return new(g||p)(e.\u0275\u0275inject(n.DOCUMENT),e.\u0275\u0275inject(e.PLATFORM_ID))},p.\u0275prov=e.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();class l{get(u){const g=document.cookie;if(g&&u){const v=g.split(";"),y=`${u}=`;let b,S="";for(let E=0;E<v.length;E++)if(b=v[E].replace(/^s+/g,"").trim(),0===b.indexOf(y)&&(S=b.substring(y.length,b.length),S.length>0))return S}return""}set(u,g,v,y,b,S,E){const D=new Date;let A=`${u}=${g}`,P="",B="";v&&("number"==typeof v?(D.setTime(D.getTime()+864e5*v),P=`; expires=${D.toUTCString()}`):P=`; expires=${v.toUTCString()}`),y&&(B=`; path=${y}`),document.cookie=`${A}${P}${B}`}delete(u,g,v,y,b){const S=new Date(1970,1,1);return this.set(u,"",S,g,v,y,b)}}var h=(()=>{return(p=h||(h={})).SafariOnMac="macintosh",p.SafariOnIPhone="iphone",h;var p})();let s=(()=>{class p{}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=e.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac}),p})();function d(p,u){const g=window.navigator.userAgent.toLowerCase();return g.indexOf(h.SafariOnMac)>-1||g.indexOf(h.SafariOnIPhone)>-1?new l:new a(p,u)}},23312:(oe,x,i)=>{"use strict";i.d(x,{C:()=>h});var e=i(39646),n=i(28918),a=i(94650),t=i(80529);let h=(()=>{class s{constructor(p){this.http=p}getCourierTariff(){return(0,e.of)(12)}getCourierFees(){return this.http.get(n.f2D.GET_COURIER_FEES)}sendContactMessage(p){return this.http.post(n.f2D.SEND_CONTACT_MESSAGE,p)}getCourierLocation(p,u){return this.http.get(n.f2D.GET_COURIER_LAST_LOCATION(p,u))}}return s.\u0275fac=function(p){return new(p||s)(a.\u0275\u0275inject(t.eN))},s.\u0275prov=a.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()},16893:(oe,x,i)=>{"use strict";i.d(x,{h:()=>K});var e=i(54244),n=i(95698),a=i(54004),t=i(11365),l=i(63900),h=i(28918),s=i(10734),d=i(94650),p=i(35559),u=i(17366),g=i(1576),v=i(44850),y=i(3611),b=i(36895),S=i(89383);let E=(()=>{class k{constructor(j){this.dialogRef=j,this.paletteOptions=h.B6Y,this.buttonTypes=h.L$3,this.iconPositions=h.ggF,this.responses=h.rCx,this.infoSvgPath="assets/images/cart/info.svg"}close(j=h.rCx.CLOSE_DIALOG){this.dialogRef.close(j)}}return k.\u0275fac=function(j){return new(j||k)(d.\u0275\u0275directiveInject(p.hV))},k.\u0275cmp=d.\u0275\u0275defineComponent({type:k,selectors:[["app-complete-customer-loyalty-dialog"]],decls:23,vars:21,consts:[[1,"voucher-info-dialog"],[1,"voucher-info-dialog__header",3,"click"],[1,"material-icons"],[1,"mt-16","voucher-info-dialog__full-divider"],["fxLayout","column",1,"complete-smb__content"],[1,"complete-smb__title","mb-8"],[1,"complete-smb__info","mb-16"],[1,"complete-smb__more-info-wrapper",3,"click"],[3,"alt","src"],[1,"voucher-info-dialog__footer"],[1,"mb-16","voucher-info-dialog__full-divider"],[1,"complete-smb__buttons-wrapper"],[3,"color","iconPosition","icon","textTranslationKey","type","click"],[1,"complete-smb__buttons-wrapper--second",3,"color","textTranslationKey","type","click"]],template:function(j,R){1&j&&(d.\u0275\u0275elementStart(0,"div",0)(1,"div",1),d.\u0275\u0275listener("click",function(){return R.close()}),d.\u0275\u0275elementStart(2,"i",2),d.\u0275\u0275text(3,"close"),d.\u0275\u0275elementEnd(),d.\u0275\u0275element(4,"mat-divider",3),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"div",4)(6,"span",5),d.\u0275\u0275text(7),d.\u0275\u0275pipe(8,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(9,"span",6),d.\u0275\u0275text(10),d.\u0275\u0275pipe(11,"translate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"div",7),d.\u0275\u0275listener("click",function(){return R.close(R.responses.MORE_INFO_DIALOG)}),d.\u0275\u0275element(13,"img",8),d.\u0275\u0275elementStart(14,"strong"),d.\u0275\u0275text(15),d.\u0275\u0275pipe(16,"uppercase"),d.\u0275\u0275pipe(17,"translate"),d.\u0275\u0275elementEnd()()(),d.\u0275\u0275elementStart(18,"div",9),d.\u0275\u0275element(19,"mat-divider",10),d.\u0275\u0275elementStart(20,"div",11)(21,"drc-button",12),d.\u0275\u0275listener("click",function(){return R.close()}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(22,"drc-button",13),d.\u0275\u0275listener("click",function(){return R.close(R.responses.REDIRECT_TO_CUSTOMER_LOYALTY)}),d.\u0275\u0275elementEnd()()()()),2&j&&(d.\u0275\u0275advance(7),d.\u0275\u0275textInterpolate1(" ",d.\u0275\u0275pipeBind1(8,13,"PAGES.BUSINESS.COMPLETE_CUSTOMER_LOYALTY_DIALOG.TITLE")," "),d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate1(" ",d.\u0275\u0275pipeBind1(11,15,"PAGES.BUSINESS.COMPLETE_CUSTOMER_LOYALTY_DIALOG.DESCRIPTION")," "),d.\u0275\u0275advance(3),d.\u0275\u0275property("alt","PAGES.BUSINESS.CUSTOMER_LOYALTY.INFO_ALT")("src",R.infoSvgPath,d.\u0275\u0275sanitizeUrl),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind1(16,17,d.\u0275\u0275pipeBind1(17,19,"PAGES.BUSINESS.CUSTOMER_LOYALTY.MORE_INFO"))),d.\u0275\u0275advance(6),d.\u0275\u0275property("color",R.paletteOptions.accent)("iconPosition",R.iconPositions.left)("icon","chevron_left")("textTranslationKey","PAGES.BUSINESS.COMPLETE_CUSTOMER_LOYALTY_DIALOG.BACK")("type",R.buttonTypes.iconAndTextButton),d.\u0275\u0275advance(1),d.\u0275\u0275property("color",R.paletteOptions.primary)("textTranslationKey","PAGES.BUSINESS.COMPLETE_CUSTOMER_LOYALTY_DIALOG.CUSTOMER_LOYALTY")("type",R.buttonTypes.textButton))},dependencies:[u.r,g.xw,v.d,y.b,b.UpperCasePipe,S.X$],styles:[".complete-smb__content[_ngcontent-%COMP%]{padding:16px 16px 24px}.complete-smb__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700;line-height:27px;letter-spacing:0}.complete-smb__info[_ngcontent-%COMP%]{font-size:14px;line-height:22px;letter-spacing:0}.complete-smb__more-info-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;width:-moz-fit-content;width:fit-content}.complete-smb__more-info-wrapper[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:14px;line-height:17px;margin-left:10px}.complete-smb__buttons-wrapper[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}@media (max-width: 768px){.complete-smb__buttons-wrapper[_ngcontent-%COMP%]{flex-direction:column-reverse}}.complete-smb__buttons-wrapper--second[_ngcontent-%COMP%]{margin-left:16px}@media (max-width: 768px){.complete-smb__buttons-wrapper--second[_ngcontent-%COMP%]{margin-left:0;margin-bottom:16px}}.complete-smb__buttons-wrapper[_ngcontent-%COMP%]   drc-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}@media (max-width: 768px){.complete-smb__buttons-wrapper[_ngcontent-%COMP%]   drc-button[_ngcontent-%COMP%]{width:100%}}"]}),k})();var D=i(28322),A=i(57613),P=i(5221),B=i(77044),V=i(28555),X=i(9116);class K{constructor($,j,R,U,le){this.store=$,this.dialog=j,this.router=R,this.courierService=U,this.translateService=le}initialize(){this.store.select(s.zb).subscribe($=>{$&&this.openCompleteCustomerLoyaltyDialogComponent()})}getCityAndSurroundings(){return this.store.select(P.A_).pipe((0,e.n)($=>!$?.length),(0,n.q)(1),(0,a.U)($=>{const j=$?.find(R=>h.VLR.normalizeRomanianDiacritics(R.countyDiacritics)?.toLowerCase()===h.VLR.normalizeRomanianDiacritics(this.user.profile.county)?.toLowerCase()&&h.VLR.normalizeRomanianDiacritics(R.name)?.toLowerCase()===h.VLR.normalizeRomanianDiacritics(this.user.profile.city)?.toLowerCase());return this.city=j?.diacritics,this.surroundings=j?.surroundings?.map(R=>R.diacritics),{city:j?.diacritics,surroundingsText:this.getBusinessSurroundingsFormatted()}}))}getBusinessSurroundingsFormatted(){return this.surroundings?.length?this.translateService.instant("PAGES.BUSINESS.CUSTOMER_LOYALTY.AND_SURROUNDING",{value:this.surroundings?.join(", ")}):""}openCompleteCustomerLoyaltyDialogComponent(){this.dialog.closeAll(),this.dialog.open(E,{minWidth:(0,h.I3d)(934),maxWidth:(0,h.I3d)(934),autoFocus:!1,restoreFocus:!1,panelClass:"no-padding-panel-class",position:{top:"16px"}}).afterClosed().pipe((0,n.q)(1)).subscribe(j=>{this.store.dispatch(A.A.closeRedirectToCustomerLoyaltyDialog()),j===h.rCx.MORE_INFO_DIALOG?this.openVoucherInfoDialog():j===h.rCx.REDIRECT_TO_CUSTOMER_LOYALTY&&(this.store.dispatch(A.A.setShouldRedirectToCustomerLoyalty({shouldRedirectToCustomerLoyalty:!0})),this.router.navigate([`/${h.ZTG.PARTNER_ROUTE}/${h.ZTG.MY_ACCOUNT}/${h.ZTG.ACCOUNT_SETTINGS}`]))})}openVoucherInfoDialog(){this.getCityAndSurroundings().pipe((0,t.M)(this.store.select(s.S5)),(0,n.q)(1),(0,l.w)(([$,j])=>(this.checkedInTime=j||0===j?j:h.JvL,this.courierService.getCourierFees()))).subscribe($=>{this.courierFees=$,this.dialog.closeAll(),this.dialog.open(D.T,{data:{containerPrice:this.courierFees.feePerContainer/100,waitingTime:this.checkedInTime,waitingPrice:this.checkedInTime*this.courierFees.feePerWaitingTime,city:this.city,surroundingsText:this.getBusinessSurroundingsFormatted()},autoFocus:!1,restoreFocus:!1,width:(0,h.I3d)(1404),maxWidth:window.innerWidth-(window.innerWidth>960?48:32)+"px",maxHeight:window.innerHeight-(window.innerWidth>960?48:32)+"px",position:{top:window.innerWidth>960?"24px":"16px"},panelClass:"no-padding-panel-class"})})}}K.\u0275fac=function($){return new($||K)(d.\u0275\u0275inject(V.yh),d.\u0275\u0275inject(p.on),d.\u0275\u0275inject(X.F0),d.\u0275\u0275inject(h.vio.CourierServiceToken),d.\u0275\u0275inject(S.sK))},K.\u0275prov=d.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),function(k,$,j,R){var T,U=arguments.length,le=U<3?$:null===R?R=Object.getOwnPropertyDescriptor($,j):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)le=Reflect.decorate(k,$,j,R);else for(var H=k.length-1;H>=0;H--)(T=k[H])&&(le=(U<3?T(le):U>3?T($,j,le):T($,j))||le);U>3&&le&&Object.defineProperty($,j,le)}([(0,B.I)(),function(k,$){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Object)}()],K.prototype,"user",void 0)},93087:(oe,x,i)=>{"use strict";i.d(x,{n:()=>a});var e=i(28918),n=i(94650);let a=(()=>{class t{newAccount(){window.gtag("event","conversion",{send_to:e.w9z}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"gtm-new-account"})}transactionComplete(h){this.appendGoogleTagManager(),window.gtag("event","conversion",{send_to:e.jJq,value:h.orderValue/100,currency:e.Kt6.Ron,transaction_id:h.orderId}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"transaction",ecommerce:{purchase:{actionField:{id:h.orderId,revenue:h.orderValue/100,tax:0,shipping:0},products:this.getAllOrderProducts(h)}}})}appendGoogleTagManager(){const h=document.createElement("script");h.src="https://www.googletagmanager.com/gtag/js?id=AW-658237800",document.head.appendChild(h);const s=document.createElement("script");s.innerHTML="\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('js', new Date());\n      gtag('config', 'AW-658237800');\n    ",document.head.appendChild(s)}getAllOrderProducts(h){const s=[];return h.orderSummaryBase.businessOrders.forEach(d=>d.products.forEach(p=>s.push({name:p.productSlug,price:p.price/100,quantity:p.quantity}))),s}}return t.\u0275fac=function(h){return new(h||t)},t.\u0275prov=n.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},70037:(oe,x,i)=>{"use strict";i.d(x,{S:()=>n});var e=i(94650);let n=(()=>{class a{static get(l){if(a.injector)return a.injector.get(l)}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=e.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac}),a})()},29466:(oe,x,i)=>{"use strict";i.d(x,{v:()=>V});var e=i(80529),n=i(29104),a=i(77579),t=i(39646),l=i(69751),h=i(63900),s=i(18505),d=i(54004),p=i(70262),u=i(28918),g=i(52873),v=i(97376),y=i(32420),b=i(22096),S=i(11828),E=i(40777);class D extends E.S{constructor(re){super(re),re&&Object.assign(this,re)}}var A=i(94650),P=i(89383);let V=(()=>{class X{constructor(Q,ae,K,k,$){this.http=Q,this.appService=ae,this.productService=K,this.zone=k,this.translateService=$,this.refreshOrders=new a.x}forceRefreshOnBusinessOrders(){this.refreshOrders.next()}getOrder(Q){const ae=(new e.WM).set("noSpinner","true");return this.http.get(u.sJR.ORDER_ENDPOINT(Q),{headers:ae}).pipe((0,h.w)(K=>this.buildOrder(K)))}getBusinessOrder(Q){const ae=(new e.WM).set("noSpinner","true");return this.http.get(u.sJR.BUSINESS_ORDER_ENDPOINT(Q),{headers:ae}).pipe((0,h.w)(K=>this.buildOrder(K)))}buildOrder(Q){const K=Q.basket.reduce(($,j)=>$.concat(j.offers),[]).map($=>$.productSlug),k=new b.KM;return this.appService.getBusinessProfiles().pipe((0,s.b)($=>this.__businessProfiles=$),(0,h.w)(()=>this.productService.getAll(K)),(0,d.U)($=>{Q.basket=Q.basket.map(R=>new b.V4(k,R)),Q.basket.forEach(R=>{R.business||(R.business=this.__businessProfiles.find(U=>U.email===R.email)),$.forEach(U=>{U&&U.offers.forEach(le=>{R.offers.filter(T=>T.id===le.id).forEach(T=>{T.attach(le)})})}),R.offers.filter(U=>!U.offer).forEach(U=>{$.filter(le=>le&&le.slug===U.productSlug).forEach(le=>{le&&le.packagings.filter(T=>T.productSlug===U.productSlug).forEach(T=>{const H=new y.kt(T,{businessName:R.name,businessSlug:R.slug,businessEmail:R.email,stock:0,price:U.price.item});U.attach(H)})})})});const j=new b.KM(Q);return j.attachments.forEach(R=>R.order=j),j}),(0,p.K)(()=>(0,t.of)(null)))}getOrders(Q,ae=!1){let K=new e.WM;ae||(K=K.set("noSpinner","true"));const k=this.http.post(u.sJR.GET_ORDERS,{},{headers:K,params:Q});return this.getFormattedOrdersData(k)}getOrderDetails(Q,ae){return this.http.get(u.sJR.GET_ORDER_DETAILS(Q,ae)).pipe((0,d.U)(K=>(K.totalFees&&(K.fees=K.totalFees),K.items=K.items?.map(k=>new D(k)),K)))}cancelOrder(Q){const ae=this.translateService.instant("PAGES.PROFILE.CART.THANK_YOU.CANCEL_ORDER_REASON");return this.http.patch(u.sJR.PATIENT_CANCEL_ORDER(Q),{order_status:u.iFo.CANCELLED,order_status_reason:ae})}cancelOrderPartially(Q,ae){const K=this.translateService.instant("PAGES.PROFILE.CART.THANK_YOU.CANCEL_ORDER_REASON");return this.http.patch(u.sJR.PATIENT_CANCEL_ORDER_PARTIALLY(Q,ae),{order_status:u.iFo.CANCELLED,order_status_reason:K}).pipe((0,h.w)(()=>this.getOrderDetails(Q,ae)))}saveAssignedContainers(Q){const ae=Q.businessOrder.containers.map(K=>({containerCode:K.barcode,icePacks:K.icePacks}));return this.http.put(u.sJR.SAVE_ASSIGNED_CONTAINER(Q.order_id),ae)}markAsOversized(Q,ae){const K=[];ae.forEach($=>{void 0!==$.isOversized&&K.push({productSlug:$.productSlug,isOversized:$.isOversized})});const k=K?{overSizedProducts:K}:{};return this.http.put(u.sJR.UPDATE_ORDER_STATUS_SHIPPING_READY(Q),k)}changeOrderDeliveryType(Q,ae){return this.http.patch(u.sJR.CHANGE_ORDER_DELIVERY_TYPE(Q),{deliveryType:ae})}getBusinessOrders(Q,ae){return this.http.post(u.sJR.GET_SSE_BUSINESS_ORDERS,{order_status:Q.statuses,searchText:Q.searchText},{params:ae})}getNewBusinessOrders(Q){return this.http.post(u.sJR.GET_NEW_BUSINESS_ORDER,{searchText:Q})}getSSEBusinessOrders(){return this.eventSource=new n.EventSourcePolyfill(`${S.Z.origin}${u.sJR.GET_SSE_BUSINESS_ORDERS}`,{withCredentials:!1,headers:{Authorization:`${u.HEB} ${localStorage.getItem(u.Umo.AUTH_TOKEN)}`,"X-API-Key":S.Z.apiKey.key},heartbeatTimeout:72e5}),new l.y(Q=>{this.eventSource.addEventListener(u.QOl.UPDATE_ORDER,ae=>{this.zone.run(()=>{Q.next(ae)})})})}unsubscribeFromSSE(){return this.eventSource.close(),this.http.delete(u.sJR.UNSUBSCRIBE_FROM_SSE)}getOrderById(Q){return this.http.get(u.sJR.GET_ORDER_BY_ID(Q)).pipe((0,h.w)(ae=>this.buildOrder(ae)))}getFormattedOrdersData(Q){return Q.pipe((0,d.U)(ae=>({data:ae.content.length?ae.content:[],total:ae.totalElements,pages:ae.totalPages,size:ae.size,sort:ae.sort})))}setOrderStatus(Q,ae,K="",k=""){const $={delay_until:k,order_status:ae,order_status_reason:K};return this.http.put(u.sJR.SET_ORDER_STATUS(Q),$).pipe((0,h.w)(j=>this.buildOrder(j)))}setPatientOrderStatus(Q,ae,K=""){const k=Q.order_status;Q.order_status=ae;const $={order_status:ae,order_status_reason:K};return this.http.put(u.sJR.ORDER_ENDPOINT(Q.order_id),$).pipe((0,h.w)(j=>(0,t.of)(new b.KM(j))),(0,p.K)(()=>(Q.order_status=k,(0,t.of)(Q))))}getAwbHtml(Q){return this.http.get(u.sJR.GET_AWB_HTML(Q))}updateOrder(Q){const ae=Q.offers.map(K=>K._dto);return this.http.put(u.sJR.BUSINESS_ORDER_ENDPOINT(Q.order_id),ae).pipe((0,h.w)(K=>this.buildOrder(K)))}updatePatientOrder(Q){const ae=Q._dto.products;return this.http.put(u.sJR.UPDATE_PATIENT_ORDER(Q.order.order_id,Q.slug),ae).pipe((0,h.w)(K=>this.buildOrder(K)))}getOrderPDF(Q){return this.http.get(u.sJR.GET_ORDER_PDF(Q),{headers:{Accept:"*/*"},responseType:"blob"})}getSalesArchiveXLS(Q,ae){const K=ae?u.sJR.GET_SALES_ARCHIVE_XLS_FOR_DAY(Q):u.sJR.GET_SALES_ARCHIVE_XLS_FOR_MONTH(Q);return this.http.get(K,{headers:{Accept:"*/*"},responseType:"blob",observe:"response"})}addReceiptId(Q,ae,K){const k=(new e.WM).set("noSpinner","true");return this.http.put(u.sJR.ADD_RECEIPT_ID,{orderId:K,receiptId:Q,receiptValue:ae},{headers:k})}getOrderProcessingReport(Q,ae){const K={page:Q.page,size:Q.size,sort:Q.sort};let k;return k=Q.searchText?u.sJR.GET_ORDER_PROCESSING_REPORT_BY_FILTER(Q.searchText):u.sJR.GET_ORDER_PROCESSING_REPORT,this.http.post(k,ae,{params:K})}setWaitingTime(Q){return this.http.patch(u.sJR.SET_WAITING_TIME,{minutes:Q})}setProcessingTime(Q){return this.http.patch(u.sJR.SET_PROCESSING_TIME,{minutes:Q})}downloadPatientOrderReport(Q){return this.http.post(u.sJR.DOWNLOAD_PATIENT_ORDER_REPORT,Q,{headers:{Accept:"*/*"},responseType:"blob",observe:"response"})}changePaymentType(Q,ae){return this.http.patch(u.sJR.CHANGE_ORDER_PAYMENT_TYPE(ae),{paymentType:Q})}getOrderSummary(Q){return this.http.get(u.sJR.GET_ORDER_SUMMARY(Q))}getOrderSummaryBase(Q){return this.http.get(u.sJR.GET_ORDER_SUMMARY_BASE(Q))}retryCardPayment(Q,ae){const K=(new e.WM).set("noSpinner","true");return this.http.get(u.sJR.RETRY_CARD_PAYMENT(Q),{params:ae,headers:K})}sendOrderComplaint(Q){return this.http.post(u.sJR.SEND_ORDER_COMPLAINT,Q)}}return X.\u0275fac=function(Q){return new(Q||X)(A.\u0275\u0275inject(e.eN),A.\u0275\u0275inject(g.z),A.\u0275\u0275inject(v.M),A.\u0275\u0275inject(A.NgZone),A.\u0275\u0275inject(P.sK))},X.\u0275prov=A.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:"root"}),X})()},71427:(oe,x,i)=>{"use strict";i.d(x,{x:()=>s});var e=i(80529),n=i(54004),a=i(28918),t=i(22539),l=i(8141),h=i(94650);let s=(()=>{class d{constructor(u){this.http=u}get(){return this.http.get(a.UMY.USER_PROFILE_ENDPOINT).pipe((0,n.U)(u=>new l.y(u)))}update(u){const g=(new e.WM).set("noSpinner","true");return this.http.put(a.UMY.USER_PROFILE_ENDPOINT,u,{headers:g})}getShopping(u){return this.http.get(a.RQ$.GET_SHOPPING_FOR_LOGGED_USER,{params:u}).pipe((0,n.U)(g=>({data:g.content,total:g.totalElements,size:g.size})))}getDocuments(u){return this.http.get(a.RQ$.GET_DOCUMENTS,{params:u}).pipe((0,n.U)(v=>({data:v.content,total:v.totalElements,size:v.size})))}getStatistics(u,g){return this.http.get(a.RQ$.GET_STATISTICS(u,g))}getAttachments(u){return this.http.get(a.RQ$.GET_ATTACHMENTS(u)).pipe((0,n.U)(g=>g.map(v=>new t.P(v))))}addAttachment(u,g){const v=new FormData;return v.append("file",g),this.http.post(a.RQ$.ADD_ATTACHMENT(u),v)}addPrescription(u,g){const v=new FormData;return v.append("file",u),this.http.post(a.RQ$.ADD_PRESCRIPTION(g),v).pipe((0,n.U)(y=>new t.P({file:u,storageKey:y.storageKey,type:y.type,name:y.name})))}deleteAttachment(u){return this.http.delete(a.RQ$.DELETE_ATTACHMENT(u.storageKey))}updateConfidentiality(u){const g={headers:(new e.WM).set("noSpinner","true")};return this.http.put(a.UMY.USER_PROFILE_ENDPOINT,u,g)}requestPatientData(u){return this.http.post(a.RQ$.PATIENT_DATA_ENDPOINT,{action:u})}downloadPatientData(u){return this.http.post(a.RQ$.PATIENT_DATA_ENDPOINT,{action:"DOWNLOAD",password:u})}replacePrescription(u,g,v){const y=new FormData;return y.append("file",v),this.http.put(a.RQ$.PRESCRIPTION_ENDPOINT(u,g),y)}deletePrescription(u,g){return this.http.delete(a.RQ$.PRESCRIPTION_ENDPOINT(u,g))}downloadArchive(u){return this.http.get(a.RQ$.DOWNLOAD_ARCHIVE(u),{headers:{Accept:"application/octet-stream"},responseType:"arraybuffer"})}}return d.\u0275fac=function(u){return new(u||d)(h.\u0275\u0275inject(e.eN))},d.\u0275prov=h.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},97376:(oe,x,i)=>{"use strict";i.d(x,{M:()=>R});var e=i(80529),n=i(61135),a=i(77579),t=i(39646),l=i(4128),h=i(95698),s=i(54004),d=i(70262),p=i(18505),u=i(11365),g=i(63900),v=i(79207),y=i(15439),S=i(28918),E=i(40488),D=i(52873),A=i(32420),P=i(17596),B=i(47225),V=i(96778),X=i(29697),re=i(3163),Q=i(77044),ae=i(55738),K=i(94650),k=i(28555);class R{constructor(le,T,H,N){this.http=le,this.appService=T,this.store=H,this.unleashService=N,this.__cache={},this.__pending={},this.scrollPositionSource=new n.X(null),this.currentScrollPosition=this.scrollPositionSource.asObservable(),this.productDataSource=new n.X(null),this.productData=this.productDataSource.asObservable(),this.atcsAggregations=new a.x,this.atcsAggregations$=this.atcsAggregations.asObservable(),this.dialogProductData=new n.X(null),this.loadingTriggerSource=new a.x,this.store.select(re.vd).pipe((0,h.q)(1)).subscribe(pe=>this.lastProductListingSearch=pe)}setProductData(le){this.productDataSource.next(le)}clearProductData(){this.productDataSource.next(null)}get(le,T=!0,H=new e.WM,N,pe){if(H=this.getNoSpinnerHeaders(),N&&(H=H.set("X-Guest-Id",N)),T&&this.__cache[le])return(0,t.of)(new A.xs(this.__cache[le]));if(this.__pending[le])return this.__pending[le];const de=this.getProductOptions(H,pe);return this.__pending[le]=this.http.get(this.getEndpointBasedOnUserType(le),de).pipe((0,s.U)(me=>{this.__cache[le]=me,this.__pending[le]=null;const q=new A.xs(this.__cache[le]);return q.offers.forEach(se=>se.businessProfile=new P.eL(se.businessProfile)),q})),this.__pending[le]}getProductOptions(le,T){const H={headers:le,params:null};return T&&(H.params=T),H}uncache(le){delete this.__cache[le],delete this.__pending[le]}getAll(le,T=!0){const H=[];return Array.from(new Set(le)).forEach(N=>{H.push(this.get(N,T,this.getNoSpinnerHeaders()).pipe((0,d.K)(()=>(0,t.of)(null))))}),H.length?(0,l.D)(H):(0,t.of)([])}hasProductSearchParametersChanged(le){return!(!this.lastProductListingSearch||le.pagination.sort===this.lastProductListingSearch.pagination.sort&&le.pagination.size===this.lastProductListingSearch.pagination.size&&S.VLR.areObjectsEqual(le.body,this.lastProductListingSearch.body))}search(le,T){let H=this.getNoSpinnerHeaders(T?.noSpinner);T?.guestId&&(H=H.set("X-Guest-Id",T.guestId));const N=!!T?.isFromListing&&this.hasProductSearchParametersChanged(le);N&&this.store.dispatch(X.m.clearRequests());const pe=S.VLR.generateCachedRequestId(le);let de=!1;return this.appService.getBusinessProfiles().pipe((0,p.b)(me=>this.__businessProfiles=me),(0,u.M)(this.store.select((0,re.Tb)(pe))),(0,h.q)(1),(0,g.w)(([me,q])=>T?.isFromListing&&!N&&q&&this.unleashService.isEnabled(B.T.ProductListingCaching)?y(q.expireDatetime).isBefore(y())?(this.store.dispatch(X.m.deleteRequest({id:pe})),this.searchProducts(le,H)):(de=!0,(0,t.of)((0,v.Qc)(q.response))):this.searchProducts(le,H)),(0,s.U)(me=>this.getFineTunedProductSearchResponse(me)),(0,p.b)(me=>this.postProcessProductListingSearch(me,T,le,de)),(0,d.K)(()=>(0,t.of)(!1)))}searchProducts(le,T){return this.http.post(S.gc4.SEARCH_PRODUCT,le.body,{headers:T,params:le.pagination})}getFineTunedProductSearchResponse(le){const T=le?.atcsAggregations?.map(H=>V.y.filterCategoriesforTobaccoAndAlcohol(H,this.unleashService.isEnabled(B.T.HideTobaccoAndAlcoholCategory)));return this.atcsAggregations.next(T),le.page.content=le?.page?.content?.map(H=>{const N=new A.xs(H);return N.offers.forEach(pe=>{pe.businessProfile=this.__businessProfiles.find(de=>de.slug===pe.businessSlug),pe.drugName=`${pe.drugName} - ${pe.packageName}`}),N}),le}postProcessProductListingSearch(le,T,H,N){if(T?.isFromListing&&this.unleashService.isEnabled(B.T.ProductListingCaching)){if(this.lastProductListingSearch=H,!N){const pe={response:(0,v.Pz)(le),searchDto:JSON.parse(JSON.stringify(H)),expireDatetime:y().add(S.wIh,S.bTv).toISOString()};this.store.dispatch(X.m.saveRequest({request:pe}))}T?.isNextRequestCall||this.store.dispatch(X.m.saveNextRequest({searchDto:JSON.parse(JSON.stringify(H)),additionalData:{...T,isNextRequestCall:!0},totalPages:le.page.totalPages}))}}searchByBusinessEmail(le,T){const H=new A.jO({businessEmail:le,pagination:{sort:"packagings.drugOffers.date_added,desc"}});return this.search(H.toSearchRequestDto(),{noSpinner:!0,guestId:T}).pipe((0,s.U)(N=>N.page.content))}searchBusinessPromotedProducts(le,T){const H=new A.jO({businessEmail:le,promotion:!0,productType:"NONPHARMACEUTICAL",pagination:{sort:"_score,desc"}});return this.search(H.toSearchRequestDto(),{noSpinner:!0,guestId:T}).pipe((0,s.U)(N=>N.page.content))}getAllPromotedProducts(){return this.http.get(S.gc4.GET_ALL_PROMOTED_PRODUCTS,{headers:this.getNoSpinnerHeaders()}).pipe((0,s.U)(le=>le.map(T=>this.promotionObjectToProduct(T))),(0,d.K)(()=>(0,t.of)([])))}promotionObjectToProduct(le){return new A.xs({registered_name:le.productName,slug:le.productSlug,businessExternalId:le.businessExternalId,businessName:le.businessName,businessSlug:le.businessSlug,businessType:le.businessType,atc:le.productCategory.categoryId,atcs:[{atc:le.productCategory.categoryId,description:le.productCategory.description}],priceMin:le.promotionPrice,stock:le.productQuantity,images:[{medium:le.productImageURL}]})}getCategoryProductsForCarousel(le,T,H,N){let pe="";return pe=N.length>0?S.gc4.GET_CATEGORY_PRODUCTS_FOR_CAROUSEL_AS_GUEST(N,le,H,T):S.gc4.GET_CATEGORY_PRODUCTS_FOR_CAROUSEL_AS_USER(le,H,T),this.http.get(pe,{headers:this.getNoSpinnerHeaders()})}getCarouselForBusiness(le){let T=new e.WM;return T=T.set("noSpinner","true"),this.http.get(S.gc4.GET_CAROUSEL_FOR_BUSINESS(le),{headers:T})}getSimilarProducts(le,T,H,N,pe){let de="";return de=pe.length>0?S.gc4.GET_SIMILAR_PRODUCTS_AS_GUEST(pe,le,T,H,N):S.gc4.GET_SIMILAR_PRODUCTS_AS_USER(le,T,H,N),this.http.get(de,{headers:this.getNoSpinnerHeaders()})}searchText(le,T,H){const N=new A.jO({text:le,businessExternalId:T,inStockWithPrice:!H&&void 0,pagination:{sort:"_score,desc"}});return this.search(N.toSearchRequestDto(),{noSpinner:!0}).pipe((0,s.U)(pe=>pe.page.content))}searchRegisteredNames(le){return this.http.post(S.gc4.SEARCH_REGISTERED_NAMES,le,{headers:this.getNoSpinnerHeaders()}).pipe((0,s.U)(T=>(Object.keys(T.responseMap).map(H=>{T.responseMap[H].forEach((N,pe)=>{T.responseMap[H][pe]=new A.xs(N)})}),T)))}searchByInternalId(le){return this.http.post(S.gc4.SEARCH_BY_INTERNAL_ID,le,{headers:this.getNoSpinnerHeaders()})}detectBarcode(le){return this.http.post(S.gc4.DETECT_BARCODE,le,{headers:this.getNoSpinnerHeaders(),responseType:"text"}).pipe((0,d.K)(()=>(0,t.of)(null)))}getByBarcode(le){const T=new A.jO({qrbarcodes:[le]});return this.search(T.toSearchRequestDto()).pipe((0,s.U)(H=>H.page&&H.page.content&&H.page.content.length?new A.xs(H.page.content[0]):null))}setCurrentScroll(le){this.scrollPositionSource.next(le||null)}getStocksForMultipleOffers(le){return this.http.post("api/stock/business/search",le,{headers:this.getNoSpinnerHeaders()})}getStockForOffer(le){return this.http.get(`api/stock/business/${le.businessExternalId}/product-slug/${le.productSlug}`,{headers:this.getNoSpinnerHeaders()})}addStockToOfferAndSetProductData(le){this.getStockForOffer({businessExternalId:le.selectedOffer.businessExternalId,productSlug:le.selectedOffer.productSlug}).pipe((0,h.q)(1)).subscribe(H=>{le.selectedOffer.stock=H.quantity??0,this.setProductData(le)})}getNoSpinnerHeaders(le=!0){return(new e.WM).set("noSpinner",le?"true":"false")}getDialogProductData(){return this.dialogProductData.asObservable()}updateDialogProductData(le){this.dialogProductData.next(le)}triggerLoading(){this.loadingTriggerSource.next()}getLoadingTrigger(){return this.loadingTriggerSource.asObservable()}getEndpointBasedOnUserType(le){return this.user?.isBusiness()?S.gc4.GET_PRODUCT_BY_SLUG_FOR_BUSINESSS(le):S.gc4.GET_PRODUCT_BY_SLUG_FOR_PATIENT(le)}}R.\u0275fac=function(le){return new(le||R)(K.\u0275\u0275inject(e.eN),K.\u0275\u0275inject(D.z),K.\u0275\u0275inject(k.yh),K.\u0275\u0275inject(E.$2))},R.\u0275prov=K.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac,providedIn:"root"}),function(U,le,T,H){var de,N=arguments.length,pe=N<3?le:null===H?H=Object.getOwnPropertyDescriptor(le,T):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)pe=Reflect.decorate(U,le,T,H);else for(var me=U.length-1;me>=0;me--)(de=U[me])&&(pe=(N<3?de(pe):N>3?de(le,T,pe):de(le,T))||pe);N>3&&pe&&Object.defineProperty(le,T,pe)}([(0,Q.I)(),function(U,le){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",le)}(0,ae.n)],R.prototype,"user",void 0)},21740:(oe,x,i)=>{"use strict";i.d(x,{B:()=>d});var e=i(18505),n=i(28918),a=i(71427),t=i(37049),l=i(41433),h=i(94650),s=i(9116);let d=(()=>{class p{constructor(g,v,y,b){this.router=g,this.businessService=v,this.employeeService=y,this.patientService=b}resolve(g){const v=g.paramMap.get("slug")?.toString(),y=g.data.type;if(!/^[a-zA-Z0-9-_@\+.]*$/.test(v))return this.router.navigate([`/${n.YuG.NOT_FOUND_404}`],{skipLocationChange:!0}),null;switch(y){case n.FWD.CLIENT:return this.patientService.get();case n.FWD.BUSINESS:return this.businessService.getBySlug(v).pipe((0,e.b)(b=>{(null===b||b.approvalStatus!==n.CCV.APPROVED)&&this.router.navigate([`/${n.YuG.NOT_FOUND_404}`],{skipLocationChange:!0})}));case n.FWD.EMPLOYEE:return this.employeeService.getBySlug(v);default:this.router.navigate([`/${n.YuG.NOT_FOUND_404}`],{skipLocationChange:!0})}return null}}return p.\u0275fac=function(g){return new(g||p)(h.\u0275\u0275inject(s.F0),h.\u0275\u0275inject(t.f),h.\u0275\u0275inject(l.K),h.\u0275\u0275inject(a.x))},p.\u0275prov=h.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac}),p})()},87326:(oe,x,i)=>{"use strict";i.d(x,{$:()=>p});var e=i(77579),n=i(17445),a=i(63900),t=i(82722),l=i(12676),h=i(28918),s=i(94650);let p=(()=>{class u{constructor(v){this.userService=v,this.isStarted=!1}start(){this.isStarted||(this.isStarted=!0,this.destroy$=new e.x,(0,n.F)(9e5).pipe((0,a.w)(()=>{const v=localStorage.getItem(h.Umo.REFRESH_TOKEN);return this.userService.refreshToken(v)}),(0,t.R)(this.destroy$)).subscribe({error:()=>this.stop()}))}stop(){this.destroy$?.next(),this.destroy$?.complete(),this.isStarted=!1}}return u.\u0275fac=function(v){return new(v||u)(s.\u0275\u0275inject(l.O))},u.\u0275prov=s.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()},78767:(oe,x,i)=>{"use strict";i.d(x,{P:()=>t});var e=i(28918),n=i(94650),a=i(80529);let t=(()=>{class l{constructor(s){this.http=s}getRestaurants(s,d){return this.http.get(e.jRy.GET_RESTAURANTS,{params:{cityCounty:d,...s}})}getRestaurantsFilter(s){return this.http.get(e.jRy.GET_RESTAURANTS_FILTER,{params:{cityCounty:s}})}}return l.\u0275fac=function(s){return new(s||l)(n.\u0275\u0275inject(a.eN))},l.\u0275prov=n.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},84659:(oe,x,i)=>{"use strict";i.d(x,{B:()=>l});var e=i(15861),n=i(61135),a=i(77579),t=i(94650);let l=(()=>{class h{constructor(){this.sidenavFiltersSource=new n.X(null),this.currentSidenavFilters=this.sidenavFiltersSource.asObservable(),this.sideNavOpen=new a.x,this.onSideNavOpen=this.sideNavOpen.asObservable()}setSidenav(d){this.sidenav=d}open(){return this.sideNavOpen.next(),this.sidenav.open()}setSidenavFilters(d){this.sidenavFiltersSource.next(d)}close(){this.sidenav.close()}toggle(){var d=this;return(0,e.Z)(function*(){yield d.sidenav.toggle(),d.isSidenavOpen()&&d.sideNavOpen.next()})()}isSidenavOpen(){return this.sidenav.opened}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275prov=t.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},2550:(oe,x,i)=>{"use strict";i.d(x,{r:()=>b});var e=i(95698),n=i(28918),a=i(17009),t=i(94650),l=i(17366),h=i(1576),s=i(3611),d=i(89383);let p=(()=>{class S{constructor(D,A){this.data=D,this.snackBarRef=A,this.successIconPath=n.qVZ,this.errorIconPath=n.vu,this.buttonType=n.L$3}get icon(){switch(this.data.messageType){case n.CsS.SUCCESS:return this.successIconPath;case n.CsS.ERROR:return this.errorIconPath}}}return S.\u0275fac=function(D){return new(D||S)(t.\u0275\u0275directiveInject(a.qD),t.\u0275\u0275directiveInject(a.OX))},S.\u0275cmp=t.\u0275\u0275defineComponent({type:S,selectors:[["frontend-snackbar"]],decls:7,vars:7,consts:[["fxLayout","row","fxFlexAlign","center space-between",1,"snackbar-container"],["fxLayout","row","fxFlexAlign","center center",1,"snackbar-container__info"],[1,"snackbar-container__icon","material-icons","mr-16",3,"alt","src"],[1,"snack-container__message"],[3,"icon","type","clickEvent"]],template:function(D,A){1&D&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1),t.\u0275\u0275element(2,"img",2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementStart(4,"div",3),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"drc-button",4),t.\u0275\u0275listener("clickEvent",function(){return A.snackBarRef.dismiss()}),t.\u0275\u0275elementEnd()()),2&D&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("alt",t.\u0275\u0275pipeBind1(3,5,"SHARED.REGISTRATION.SNACKBAR_IMAGE_ALT"))("src",A.icon,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(A.data.message),t.\u0275\u0275advance(1),t.\u0275\u0275property("icon","close")("type",A.buttonType.iconButton))},dependencies:[l.r,h.xw,h.XD,s.b,d.X$],styles:[".snackbar-container[_ngcontent-%COMP%]{font-size:14px;line-height:22px;font-weight:400;align-items:center;justify-content:space-between}.snackbar-container__info[_ngcontent-%COMP%]{align-items:center}.snackbar-container__icon[_ngcontent-%COMP%]{width:20px;height:20px;font-size:20px}"]}),S})();var u=i(92972);const v="center";let b=(()=>{class S{constructor(D,A){this.snackBar=D,this.translateService=A}displayMessage(D,A,P,B=3500,V="top",X=v){const re=P?this.translateService.instant(A,P):this.translateService.instant(A);this.snackBar._openedSnackBarRef?(this.snackBar.dismiss(),this.snackBar._openedSnackBarRef.afterDismissed().pipe((0,e.q)(1)).subscribe(()=>{this.openSnackBar(re,D,B,V,X)})):this.openSnackBar(re,D,B,V,X)}openSnackBar(D,A,P=3500,B="top",V=v){this.snackBar.openFromComponent(p,{panelClass:n.VLR.isNativePlatform?[A,n.VLR.isNativeIos?"native-ios-snack-bar-position":"native-android-snack-bar-position"]:[A],verticalPosition:B,horizontalPosition:V,duration:P,data:{message:D,messageType:A}})}}return S.\u0275fac=function(D){return new(D||S)(t.\u0275\u0275inject(u.pl),t.\u0275\u0275inject(d.sK))},S.\u0275prov=t.\u0275\u0275defineInjectable({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},77784:(oe,x,i)=>{"use strict";i.d(x,{U:()=>U});var e=i(80529),n=i(4707),a=i(77579),t=i(60515),l=i(39646),h=i(95698),s=i(63900),d=i(39300),p=i(54004),u=i(70262),g=i(22529),v=i(17414),y=i(18505),b=i(41341);const E=(0,i(47423).fo)("Geolocation",{web:()=>i.e(561).then(i.bind(i,64561)).then(le=>new le.GeolocationWeb)});var D=i(28918),A=i(11828),P=i(5221),B=i(51877),V=i(77044),X=i(55738),re=i(59633),Q=i(50008),ae=i(12676),K=i(94650),k=i(28555),$=i(9116);class U{constructor(T,H,N,pe,de,me){this.httpClient=T,this.cartService=H,this.store=N,this.loader=pe,this.userService=de,this.route=me,this.locationSubject=new n.t,this.locationData$=this.locationSubject.asObservable(),this.userAddressSubject=new a.x,this.userAddressData$=this.userAddressSubject.asObservable(),this.userAddressDataFromUnavailableBusinessSubject=new a.x,this.userAddressDataFromUnavailableBusiness$=this.userAddressDataFromUnavailableBusinessSubject.asObservable(),this.hasInitialLocation=!1,this.availableLocations=[]}get locationFromStorage(){return localStorage.getItem(D.Umo.USER_LOCATION)}initialize(){D.VLR.isNativePlatform&&this.checkMobileLocationPermissions(),this.checkLocationParam();const T=this.locationFromStorage&&""!==this.locationFromStorage&&this.locationFromStorage.includes("~")?{city:this.locationFromStorage.split("~")[0],county:this.locationFromStorage.split("~")[1]}:null;this.locationSubject.next(T),this.store.dispatch(re.N.requestAvailableLocationsList()),this.store.dispatch(re.N.requestCountiesList())}getNormalized(T){return D.VLR.normalizeRomanianDiacritics(T)?.toLowerCase()}checkLocationParam(){this.route.queryParams.subscribe(T=>{if(T.city&&T.county){const H={county:T.county,city:T.city};this.getAvailabilityByName(T.county,T.city).pipe((0,h.q)(1),(0,s.w)(N=>{if(N){this.setUserLocation(H);const pe=this.user?.profile?.deliveryAddresses?.find(q=>q.main_address),me=this.getNormalized(pe?.county)===this.getNormalized(H?.county)&&this.getNormalized(pe?.city)===this.getNormalized(H?.city)?new Q.k(pe):new Q.k({city:H.city,county:H.county,address:"",isSetManually:!0});return this.store.dispatch(re.N.setSelectedLocation(H)),this.setUserAddress(me),this.notifyUpdatedUserAddress(me),this.changeCartDeliveryAddress(me)}return t.E})).subscribe()}})}getUserAddress(){return JSON.parse(localStorage.getItem(D.Umo.USER_ADDRESS))}setUserAddress(T){T&&localStorage.setItem(D.Umo.USER_ADDRESS,JSON.stringify(T))}getUserLocationCoordinates(){const T=JSON.parse(localStorage.getItem(D.Umo.USER_ADDRESS));return T?{latitude:T.locationLat,longitude:T.locationLon}:null}getUserLocation(){const T=localStorage.getItem(D.Umo.USER_LOCATION);if(T){const H=T.split("~");if(H&&2===H.length){const N={city:H[0].trim(),county:H[1].trim()};return this.addInitialLocation(N),N}return null}}getAvailableLocations(){return A.Z.availableLocations?.map(T=>{const H=T?.surroundings?.map(pe=>pe.diacritics);return H.push(T.diacritics),{cities:H,alternateCityNames:[...T?.alternateName?[T.alternateName]:[],...T?.surroundings?.map(pe=>pe.alternateName)?.filter(pe=>void 0!==pe)??[]],county:T.countyDiacritics,store_location:T.diacritics}})}isLocationValid(T){return T.city=D.VLR.normalizeRomanianDiacritics(T.city),T.county=D.VLR.normalizeRomanianDiacritics(T.county),!!this.getAvailableLocations().map(H=>({cities:H.cities.map(N=>D.VLR.normalizeRomanianDiacritics(N.toLowerCase())),alternateCityNames:H.alternateCityNames.map(N=>D.VLR.normalizeRomanianDiacritics(N.toLowerCase())),county:D.VLR.normalizeRomanianDiacritics(H.county.toLowerCase())})).find(H=>(H.cities.includes(T.city.toLowerCase())||H.alternateCityNames.includes(T.city.toLowerCase()))&&H.county===T.county.toLowerCase())}isCookieLocationValid(){if(!this.locationFromStorage)return;const T={city:this.locationFromStorage.split("~")[0],county:this.locationFromStorage.split("~")[1]};return this.locationFromStorage.includes("~")&&this.isLocationValid(T)}setUserLocation(T){const H=`${D.VLR.normalizeRomanianDiacritics(T.city,!0)}~${D.VLR.normalizeRomanianDiacritics(T.county,!0)}`;this.locationSubject.next(T),localStorage.setItem(D.Umo.USER_LOCATION,H)}getUserIpLocation(){return this.httpClient.get(D.svR).pipe((0,d.h)(T=>!!T),(0,p.U)(T=>({city:T.location.city,county:T.location.country.subdivision})),(0,u.K)(T=>(0,l.of)({city:"",county:""})))}getLocationByCoordinates(T,H){const N=new b.lJ(this.loader),pe=new google.maps.LatLng(T,H);let de=!1;return N.geocode({location:pe}).pipe((0,g.o)(()=>!de),(0,p.U)(me=>{this.browserLocation=null;const q=me.find(ve=>ve.types.includes("locality")),se={city:q.address_components[0].short_name,county:q.address_components[2].long_name.split(" ").splice(1)[0]};return this.browserLocation=se,se}),(0,v.V)(A.Z.locationFetchTimeout),(0,u.K)(()=>(de=!0,this.detectForBrowser())))}getCounties(){const T=(new e.WM).set("noSpinner","true");return this.httpClient.get(D.MSg.GET_COUNTIES,{headers:T}).pipe((0,y.b)(H=>{this.countyList=H}))}detectForBrowser(){return this.browserLocation?(0,l.of)(null):this.detect()}detect(){return this.httpClient.get(D.svR).pipe((0,p.U)(T=>({city:T.location.city,county:T.location.country.subdivision})),(0,v.V)(A.Z.locationFetchTimeout))}searchCity(T){return this.store.select(P.KY).pipe((0,s.w)(H=>(0,l.of)(H.filter(N=>0===N.name.toLowerCase().indexOf(T.toLowerCase().trim())))))}getCountyByName(T){return T=T.toLowerCase().trim(),this.countyList.find(H=>H.name.toLowerCase()===T||H.diacritics.toLowerCase()===T)}getCountyById(T){return this.countyList.find(H=>H.id===T)}getCityByName(T){return this.cityList.find(H=>H.name.toLowerCase()===D.VLR.normalizeRomanianDiacritics(T).toLowerCase().trim())}getAvailability(T,H){return this.httpClient.get(D.MSg.GET_AVAILABILITY(T,H))}searchCounty(T){return this.store.select(P.GF).pipe((0,s.w)(H=>(0,l.of)(H.filter(N=>0===N.name.toLowerCase().indexOf(T.toLowerCase().trim())))))}getAvailabilityByName(T,H){const N=(new e.WM).set("noSpinner","true");return this.httpClient.get(D.MSg.GET_AVAILABILITY_BY_NAME(D.VLR.normalizeRomanianDiacritics(T),D.VLR.normalizeRomanianDiacritics(H)),{headers:N})}getCities(T){const H=(new e.WM).set("noSpinner","true");return this.httpClient.get(D.MSg.GET_CITIES(T),{headers:H}).pipe((0,y.b)(N=>this.cityList=N))}getAvailableLocation(){const T=(new e.WM).set("noSpinner","true");return this.httpClient.get(D.MSg.GET_AVAILABLE_LOCATION,{headers:T}).pipe((0,y.b)(H=>{this.availableLocations=H}))}isChangeLocationDenied(T){return(this.user?this.cartService.getUserCart():this.cartService.getGuestCart()).pipe((0,u.K)(()=>(0,l.of)(new B.A)),(0,y.b)(H=>this.cart=H),(0,s.w)(()=>this.getStoreLocation(this.cart.city)),(0,p.U)(H=>{if(!H.mainLocality&&this.cart.businessCarts.length&&T.city?.toLowerCase()!==this.getUserAddress()?.city?.toLowerCase())return!0;const N=this.availableLocations.find(pe=>(pe.name?.toLowerCase()===T.city?.toLowerCase()||pe.alternateName?.toLowerCase()===T.city?.toLowerCase()||pe.surroundings.find(de=>de.name?.toLowerCase()===T.city?.toLowerCase()||de.alternateName?.toLowerCase()===T.city?.toLowerCase()))&&this.getCountyById(pe.countyId).name?.toLowerCase()===T.county?.toLowerCase());return this.cart.allItems.length&&(!N||D.VLR.normalizeRomanianDiacritics(H.mainLocality).toLowerCase()!==N.name.toLowerCase()||this.cart.county.toLowerCase()!==this.getCountyById(N.countyId).name?.toLowerCase())}))}checkIfAvailableByNames(T,H){return T&&!H?(0,l.of)({county:!!this.getCountyByName(T),city:!1}):T&&H?(H=H.toLowerCase().trim(),this.store.select(P.KY).pipe((0,s.w)(N=>(0,l.of)({county:!!this.getCountyByName(T),city:!!N.find(pe=>(pe.name.toLowerCase()===H||pe.diacritics.toLowerCase()===H||pe.alternateName.toLowerCase()===H)&&!!this.getCountyByName(T))})))):(0,l.of)({county:!1,city:!1})}getStoreLocation(T){const H=D.VLR.normalizeRomanianDiacritics(T);return this.store.select(P.A_).pipe((0,s.w)(N=>{let de={isSurrounding:!1,mainLocality:N.find(me=>me.name.toLowerCase()===H?.toLowerCase()||me.alternateName?.toLowerCase()===H?.toLowerCase()||me.diacritics.toLowerCase()===H?.toLowerCase())?.diacritics};return N.forEach(me=>{this.getSurroundingLocation(me.surroundings,H)&&(de={isSurrounding:!0,mainLocality:me.diacritics})}),(0,l.of)(de)}))}getSurroundingLocation(T,H){return T.find(N=>N.name?.toLowerCase()===H?.toLowerCase()||N.alternateName?.toLowerCase()===H?.toLowerCase()||N.diacritics.toLowerCase()===H?.toLowerCase())}getUserLocationStore(){const T=this.getUserLocation();if(T){const H=this.getAvailableLocations()?.filter(N=>D.VLR.normalizeRomanianDiacritics(N.county.toLowerCase())===D.VLR.normalizeRomanianDiacritics(T.county.toLowerCase())&&N.cities.map(pe=>D.VLR.normalizeRomanianDiacritics(pe.toLowerCase())).includes(D.VLR.normalizeRomanianDiacritics(T.city.toLowerCase())));return H&&H.length?D.VLR.normalizeRomanianDiacritics(H[0].store_location):null}}changeCartDeliveryAddress(T){const H=JSON.parse(localStorage.getItem(D.Umo.CART_ADDRESS));return D.VLR.isBlank(T.address)||new Q.k(H)?.deliveryText===T?.deliveryText?(0,l.of)(!1):this.userService.getCurrent().pipe((0,h.q)(1),(0,s.w)(N=>this.getCartDeliveryAddressObservable(N,T)),(0,y.b)(()=>localStorage.setItem(D.Umo.CART_ADDRESS,JSON.stringify(T))))}changeCartLocation(T){return T?this.userService.getCurrent().pipe((0,h.q)(1),(0,s.w)(H=>this.getCartDeliveryAddressObservable(H,T)),(0,y.b)(()=>localStorage.setItem(D.Umo.CART_ADDRESS,JSON.stringify(T)))):(0,l.of)(!1)}setCartDeliverAddressOnLogout(T){return this.changeCartDeliveryAddressAsGuest(T).pipe((0,h.q)(1),(0,y.b)(()=>localStorage.setItem(D.Umo.CART_ADDRESS,JSON.stringify(T))))}setCartAddressOnUserLogout(){const T=new Q.k(this.getUserAddress());return this.setCartDeliverAddressOnLogout(T)}getCartDeliveryAddressObservable(T,H){return T&&T.getType()===D.FWD.CLIENT?this.changeCartDeliveryAddressAsUser(H):this.changeCartDeliveryAddressAsGuest(H)}changeCartDeliveryAddressAsUser(T){return this.httpClient.patch(D.bI2.CHANGE_CART_DELIVERY_ADDRESS_AS_USER,T)}changeCartDeliveryAddressAsGuest(T){let H=this.userService.getGuestId();return H||(this.userService.createGuestId(),H=this.userService.getGuestId()),this.httpClient.patch(D.bI2.CHANGE_CART_DELIVERY_ADDRESS_AS_GUEST(H),T)}addInitialLocation(T){this.hasInitialLocation||(this.locationSubject.next(T),this.hasInitialLocation=!0)}notifyUpdatedUserAddress(T,H=!1){this.userAddressSubject.next({userAddress:T,isChanged:H})}notifyUpdatedUserAddressFromUnavailableBusiness(T){this.userAddressDataFromUnavailableBusinessSubject.next(T)}checkMobileLocationPermissions(){E.checkPermissions().then(T=>"granted"===T.location?this.getDeviceLocation():"denied"===T.location?this.requestMobileLocationPermissions():void 0)}requestMobileLocationPermissions(){E.requestPermissions().then(()=>{this.getDeviceLocation()})}getDeviceLocation(){return new Promise((T,H)=>{E.getCurrentPosition({enableHighAccuracy:!0,maximumAge:0,timeout:5e3}).then(N=>{T(N)},N=>{H(N)})})}}U.\u0275fac=function(T){return new(T||U)(K.\u0275\u0275inject(e.eN),K.\u0275\u0275inject(D.vio.CartServiceToken),K.\u0275\u0275inject(k.yh),K.\u0275\u0275inject(b.W7),K.\u0275\u0275inject(ae.O),K.\u0275\u0275inject($.gz))},U.\u0275prov=K.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),function(le,T,H,N){var me,pe=arguments.length,de=pe<3?T:null===N?N=Object.getOwnPropertyDescriptor(T,H):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)de=Reflect.decorate(le,T,H,N);else for(var q=le.length-1;q>=0;q--)(me=le[q])&&(de=(pe<3?me(de):pe>3?me(T,H,de):me(T,H))||de);pe>3&&de&&Object.defineProperty(T,H,de)}([(0,V.I)(),function(le,T){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",T)}(0,X.n)],U.prototype,"user",void 0)},12676:(oe,x,i)=>{"use strict";i.d(x,{O:()=>de});var e=i(80529),n=i(77579),a=i(61135),t=i(39646),l=i(82805),h=i(48382),s=i(62843),d=i(63900),p=i(28746),u=i(82722),g=i(70262),v=i(18505),y=i(54004),b=i(51588),S=i(69319);function E(me){this.message=me}(E.prototype=new Error).name="InvalidCharacterError";var D=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(me){var q=String(me).replace(/=+$/,"");if(q.length%4==1)throw new E("'atob' failed: The string to be decoded is not correctly encoded.");for(var se,ve,Ee=0,Ye=0,wt="";ve=q.charAt(Ye++);~ve&&(se=Ee%4?64*se+ve:ve,Ee++%4)?wt+=String.fromCharCode(255&se>>(-2*Ee&6)):0)ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ve);return wt};function P(me){this.message=me}(P.prototype=new Error).name="InvalidTokenError";var X=i(28918),re=i(55738),Q=i(8141),ae=i(17596),K=i(28854),k=i(11828),$=i(15368),j=i(59633),R=i(50516),U=i(94650),le=i(99283),T=i(92972),H=i(28555);let de=(()=>{class me{constructor(se,ve,Ee,Ye,wt,Wt,Ut){this.http=se,this.businessService=ve,this.addressService=Ee,this.cookieService=Ye,this.snackBar=wt,this.messagingService=Wt,this.store=Ut,this.userLogoutStatus=new n.x,this.userSource=new a.X(null),this.user$=this.userSource.asObservable(),this.compareList=[],this.isUserLoadingInProgress=!1}login(se,ve){localStorage.removeItem(X.Umo.AUTH_TOKEN);const Ee={...se,isNativePlatform:X.VLR.isNativePlatform};return this.http.post(X.UMY.LOGIN_USER,Ee,{headers:ve}).pipe((0,d.w)(Ye=>(X.VLR.saveAuthTokensToLocalStorage(Ye),this.setToken(Ye.access_token,se.rememberMe),this.store.dispatch($.o.setShouldMergeFavorites({payload:!0})),this.getCurrent())))}determineLogout(se){return se?this.http.delete(X.UMY.LOGOUT_USER):(0,t.of)(null)}logout(se,ve=!0){return this.logToSentry(se),this.messagingService.removeToken(),this.userLogoutStatus.next({isUserLogoutInProcess:!0}),this.determineLogout(ve).pipe((0,p.x)(()=>{this.setAuthState(),this.store.dispatch($.o.setShouldMergeFavorites({payload:!1})),this.userLogoutStatus.next({isUserLogoutInProcess:!1})}))}getLogoutStatus(){return this.userLogoutStatus.asObservable()}logToSentry(se){k.Z.sentrySwitchOn&&S.uT(`Logout occurred from:  ${se}`,"debug")}setAuthState(){localStorage.getItem(X.Umo.AUTH_TOKEN)&&(this.store.dispatch(R.F.stop()),X.VLR.deleteAuthTokensFromLocalStorage(),localStorage.removeItem(X.Umo.REMEMBER_ME),localStorage.removeItem(X.Umo.EXPIRATION_DATE)),this.setCurrent(null)}deleteAccount(se){return this.http.post(X.UMY.DELETE_USER_ACCOUNT,{password:se})}getCurrent(){const se=this.userSource;return se.getValue()||this.isUserLoadingInProgress?se.asObservable():this.getToken()?this.loadUser():(0,t.of)(null)}refreshProfile(){const se=new n.x;let ve=0;(0,l.H)(1e3,2e3).pipe((0,u.R)(se),(0,d.w)(()=>this.getToken()?this.loadUser():(0,t.of)(null))).subscribe(Ee=>{(!Ee||Ee.profile.confirmLegalAgeDate||ve++>=4)&&(se.next(),se.complete())})}getUserEndpointBasedOnUserType(se){return se===X.i44.ROLE_BUSINESS_OWNER?X.F06.BUSINESS_PROFILE_ENDPOINT:X.UMY.USER_PROFILE_ENDPOINT}loadUser(){const se=(new e.WM).set("noSpinner","true");return this.isUserLoadingInProgress=!0,this.http.get(X.UMY.LOAD_USER,{headers:se}).pipe((0,d.w)(ve=>{const Ee=new re.n({email:ve.username,accountConfirmed:ve.accountConfirmed,role:ve.role});return this.http.get(this.getUserEndpointBasedOnUserType(ve.role),{headers:se}).pipe((0,d.w)(Ye=>{switch(this.isUserLoadingInProgress=!1,Ee.role.toLowerCase()){case X.FWD.BUSINESS.toLowerCase():case X.i44.ROLE_BUSINESS_OWNER.toLowerCase():Ee.profile=new ae.eL(Ye),Ee.profile.business=Ee.profile;break;case X.FWD.EMPLOYEE.toLowerCase():case X.i44.ROLE_BUSINESS_EMPLOYEE.toLowerCase():Ee.profile=new K.v(Ye),this.businessService.get().subscribe(wt=>{Ee.profile.business=wt});break;case X.FWD.CLIENT.toLowerCase():case X.i44.ROLE_CLIENT.toLowerCase():Ee.profile=new Q.y(Ye),this.addressService.getAddresses().subscribe(wt=>{Ee.profile.deliveryAddresses=wt;const Wt=JSON.parse(localStorage.getItem(X.Umo.USER_ADDRESS));wt.length&&(!localStorage.getItem(X.Umo.USER_ADDRESS)||X.VLR.isBlank(Wt?.address))&&this.store.dispatch(j.N.setUserAddress({addresses:wt}))}),this.addressService.getCompanyBillingAddresses().subscribe(wt=>{Ee.profile.billingAddresses=wt});break;default:return this.snackBar.open("Nu te po\u021bi autentifica cu acest cont.","\xd7",{panelClass:X.CsS.ERROR,verticalPosition:"bottom",duration:3500}),this.logout(X.S2t.AUTHENTICATION)}return this.setCurrent(Ee),(0,t.of)(Ee)}),(0,g.K)(()=>(this.isUserLoadingInProgress=!1,(0,t.of)(null))))}),(0,p.x)(()=>{this.isUserLoadingInProgress=!1}))}setCurrent(se){this.userSource.next(se)}getToken(){return localStorage.getItem(X.Umo.AUTH_TOKEN)}setToken(se,ve){const Ee=function B(me,q){if("string"!=typeof me)throw new P("Invalid token specified");var se=!0===(q=q||{}).header?0:1;try{return JSON.parse(function A(me){var q=me.replace(/-/g,"+").replace(/_/g,"/");switch(q.length%4){case 0:break;case 2:q+="==";break;case 3:q+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(D(q).replace(/(.)/g,function(ve,Ee){var Ye=Ee.charCodeAt(0).toString(16).toUpperCase();return Ye.length<2&&(Ye="0"+Ye),"%"+Ye}))}catch{return D(q)}}(me.split(".")[se]))}catch(ve){throw new P("Invalid token specified: "+ve.message)}}(se),Ye=new Date(1e3*Ee.exp);if(localStorage.setItem(X.Umo.AUTH_TOKEN,se),ve){const wt=navigator;k.Z.isPwaMode=!X.VLR.isNativePlatform&&(wt.standalone||window.matchMedia("(display-mode: standalone)").matches),localStorage.setItem(X.Umo.REMEMBER_ME,Date.now()?.toString()),localStorage.setItem(X.Umo.EXPIRATION_DATE,Ye?.toString())}else localStorage.removeItem(X.Umo.REMEMBER_ME);this.store.dispatch(R.F.start())}handleTokensOnInitialization(){const se=this.cookieService.get(X.Umo.AUTH_TOKEN);se&&(localStorage.setItem(X.Umo.AUTH_TOKEN,se),this.cookieService.delete(X.Umo.AUTH_TOKEN,"/",window.location.hostname)),localStorage.getItem(X.Umo.REFRESH_TOKEN)&&this.store.dispatch(R.F.start())}refreshToken(se){return this.http.post(X.UMY.REFRESH_TOKEN,{refreshToken:se}).pipe((0,v.b)(ve=>{this.setToken(ve.access_token,!1),X.VLR.saveAuthTokensToLocalStorage(ve)}))}refreshTokenRememberMe(){return this.http.get(X.UMY.REFRESH_TOKEN_REMEMBER_ME).pipe((0,v.b)(se=>{this.setToken(se.token,!0)}))}register(se,ve,Ee=!1,Ye=!1,wt,Wt){const Ut=se._dto();return Ut.agreeTerms=ve,Ut.newsletter=Ee,Ut.marketing=Ye,Ut.name=se?.fullName||se?.name,Ut.role=wt?X.FWD.BUSINESS:X.FWD.CLIENT.toUpperCase(),this.http.post(X.UMY.REGISTER_USER(se.role),Ut,{observe:"response",headers:Wt}).pipe((0,v.b)(nt=>{X.VLR.saveAuthTokensToLocalStorage(nt.body)}),(0,d.w)(nt=>(0,h.s)(()=>200!==nt.status||!nt.body,(0,t.of)(null),this.sendInfoToGTMAndLogin())))}sendInfoToGTMAndLogin(){window.fbq("track","CompleteRegistration"),window.gtag("event","conversion",{send_to:"AW-658237800/Hhf0CKO5jNEBEOjS77kC"}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"gtm-new-account"});const se=navigator;return k.Z.isPwaMode=!X.VLR.isNativePlatform&&(se.standalone||window.matchMedia("(display-mode: standalone)").matches),this.getCurrent()}updatePassword(se,ve,Ee){return this.http.patch(X.UMY.UPDATE_PASSWORD,{oldPassword:se,newPassword:ve,token:Ee})}confirm(se,ve){return this.http.patch(X.UMY.CONFIRM,{email:se,confirmationToken:ve})}confirmResend(){const se=(new e.WM).set("noSpinner","true");return this.http.get(X.UMY.CONFIRM_RESEND,{headers:se})}getPreview(se){const ve=X.VLR.isNativePlatform,Ee=(new e.WM).set("noSpinner","true");return this.http.post(X.UMY.GET_USER_PUBLIC_PROFILE,{username:se,isNativePlatform:ve},{headers:Ee,observe:"response"}).pipe((0,d.w)(Ye=>Ye?.body?.errorCode===X.JOK.USER_NOT_FOUND?(0,s._)({status:404}):(0,t.of)(Ye)),(0,y.U)(Ye=>({exists:!0,profile:Ye.body})),(0,g.K)(Ye=>(0,t.of)({exists:404!==Ye.status,status:Ye.status})))}addToCompare(se){let ve,Ee;this.compareList.filter(Ye=>Ye.id===se.id)[0]?(ve="Produst "+se.name+" se afl\u0103 deja \xeen lista de comparare.",Ee="error"):(this.compareList.push(se),ve="Produsul "+se.name+" a fost ad\u0103ugat \xeen lista de comparare.",Ee="success"),this.snackBar.open(ve,"\xd7",{panelClass:[Ee],verticalPosition:"bottom",duration:3500})}sendResetPasswordEmail(se){return this.http.post(X.UMY.SEND_RESET_PASSWORD_EMAIL,{email:se})}resetPassword(se,ve){return this.http.post(X.UMY.RESET_PASSWORD(se),{newPassword:ve})}updateEmail(se,ve){return this.http.post(X.UMY.UPDATE_EMAIL(se),ve)}sendComplaint(se){return this.http.post(X.UMY.SEND_COMPLAINT,se)}sendGDPRComplaint(se){return this.http.post(X.UMY.SEND_GDPR_COMPLAINT,se)}getUserType(){const se=this.userSource.getValue();if(!this._userType&&se||this._userType&&se&&this._userType!==se.getType())switch(se.getType()){case X.FWD.CLIENT:this._userType=X.FWD.CLIENT;break;case"business":this._userType=se.profile.typeName;break;case X.FWD.EMPLOYEE:this._userType="angajat";break;default:this._userType=X.FWD.CLIENT}else this._userType=null;return this._userType}createGuestId(){if(!localStorage.getItem(X.Umo.GUEST_ID)){const se=`G-${b.Z()}`;localStorage.setItem(X.Umo.GUEST_ID,se)}}getGuestId(){return localStorage.getItem(X.Umo.GUEST_ID)&&!localStorage.getItem(X.Umo.GUEST_ID).startsWith("G-")&&(this.deleteGuestId(),this.createGuestId()),localStorage.getItem(X.Umo.GUEST_ID)}getOrCreateGuestId(){return this.getGuestId()||this.createGuestId(),this.getGuestId()}deleteGuestId(){localStorage.removeItem(X.Umo.GUEST_ID)}}return me.\u0275fac=function(se){return new(se||me)(U.\u0275\u0275inject(e.eN),U.\u0275\u0275inject(X.vio.BusinessServiceToken),U.\u0275\u0275inject(X.vio.AddressServiceToken),U.\u0275\u0275inject(le.N),U.\u0275\u0275inject(T.pl),U.\u0275\u0275inject(X.vio.FirebaseMessagingServiceToken),U.\u0275\u0275inject(H.yh))},me.\u0275prov=U.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac,providedIn:"root"}),me})()},80531:(oe,x,i)=>{"use strict";i.d(x,{w:()=>v});var e=i(94650),n=i(77579),a=i(28918),t=i(98311),l=i(50008),h=i(82722),s=i(24006),d=i(1576),p=i(97392),u=i(12371),g=i(89383);let v=(()=>{class y{constructor(S,E){this.userLocationService=S,this.fb=E,this.address=new e.EventEmitter,this.proceedToNextStep=new e.EventEmitter,this.cityCoordinates=new e.EventEmitter,this.destroy$=new n.x,this.shouldValidate=!1,this.coordinates={lat:null,lng:null}}ngOnInit(){this.initForm(),this.listenToValueChanges()}initForm(){this.addressForm=this.fb.group({county:[null,[t.A.required()]],city:[null,[t.A.required()]]})}setCounty(S){this.addressForm.get("county").patchValue(S)}setCity(S){this.addressForm.get("city").patchValue(S)}listenToValueChanges(){this.addressForm.valueChanges.pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.proceedToNextStep.emit(!1)})}ngOnChanges(S){S.shouldProceedToNextStep.currentValue&&this.setManuallyAddress()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setManuallyAddress(){this.shouldValidate=!0,this.addressForm.valid&&(this.getCityCoordinates(),this.selectedAddress=new l.k({city:this.addressForm.get("city").value,county:this.addressForm.get("county").value,isSetManually:!0,locationLat:this.coordinates.lat,locationLon:this.coordinates.lng}),this.address.emit(this.selectedAddress))}getCityCoordinates(){const S=this.userLocationService.getCityByName(this.addressForm.get("city").value);S&&(this.coordinates={lat:S.lat,lng:S.lng})}}return y.\u0275fac=function(S){return new(S||y)(e.\u0275\u0275directiveInject(a.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(s.QS))},y.\u0275cmp=e.\u0275\u0275defineComponent({type:y,selectors:[["app-add-address-manually-presentation"]],inputs:{title:"title",shouldProceedToNextStep:"shouldProceedToNextStep"},outputs:{address:"address",proceedToNextStep:"proceedToNextStep",cityCoordinates:"cityCoordinates"},features:[e.\u0275\u0275NgOnChangesFeature],decls:8,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start start",1,"title-wrapper","mb-24","mt-16"],["fxLayoutAlign","center center","color","primary",1,"location-icon"],[1,"title"],[3,"formGroup"],[3,"shouldValidate","selectedLocation","countySelect","citySelect"]],template:function(S,E){1&S&&(e.\u0275\u0275elementStart(0,"div",0)(1,"mat-icon",1),e.\u0275\u0275text(2,"location_on"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"h1",2),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"form",3)(7,"app-location-selector",4),e.\u0275\u0275listener("countySelect",function(A){return E.setCounty(A)})("citySelect",function(A){return E.setCity(A)}),e.\u0275\u0275elementEnd()()),2&S&&(e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,4,E.title)),e.\u0275\u0275advance(2),e.\u0275\u0275property("formGroup",E.addressForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("shouldValidate",E.shouldValidate)("selectedLocation",E.selectedLocation))},dependencies:[d.xw,d.Wh,p.Hw,s._Y,s.JL,s.sg,u.m,g.X$],styles:[".title-wrapper[_ngcontent-%COMP%]{margin:16px 0}.title-wrapper[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-weight:700;font-size:22px;line-height:29px}.title-wrapper[_ngcontent-%COMP%]   .location-icon[_ngcontent-%COMP%]{width:30px;height:30px;font-size:25px;margin-right:4px}"],changeDetection:0}),y})()},89547:(oe,x,i)=>{"use strict";i.d(x,{u:()=>Q});var e=i(94650),n=i(78372),a=i(71884),t=i(95698),l=i(77579),h=i(28918),s=i(50008),d=i(36895),p=i(1576),u=i(55829),g=i(99818),v=i(24404),y=i(97392),b=i(44850),S=i(13899),E=i(89383);function D(ae,K){1&ae&&(e.\u0275\u0275elementStart(0,"span",13)(1,"span",14),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementStart(6,"span",14),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()),2&ae&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,4,"PAGES.BUSINESS.SENDIT.ORDER_TAB.MANUALLY_CONFIRM_MESSAGE_PART1")," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,6,"PAGES.BUSINESS.SENDIT.ORDER_TAB.MANUALLY_CONFIRM_MESSAGE_PART2")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(8,8,"PAGES.BUSINESS.SENDIT.ORDER_TAB.MANUALLY_CONFIRM_MESSAGE_PART3")," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,10,"PAGES.BUSINESS.SENDIT.ORDER_TAB.MANUALLY_CONFIRM_MESSAGE_PART4")," "))}function A(ae,K){if(1&ae&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,D,11,12,"span",12),e.\u0275\u0275elementContainerEnd()),2&ae){const k=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!k.shouldDisplayPinWarning)}}function P(ae,K){1&ae&&(e.\u0275\u0275elementStart(0,"span",15)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",16),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"span"),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()()),2&ae&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"PAGES.BUSINESS.SENDIT.ORDER_TAB.MAP_MESSAGE_PART1")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(6,5,"PAGES.BUSINESS.SENDIT.ORDER_TAB.MAP_MESSAGE_PART2")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(9,7,"PAGES.BUSINESS.SENDIT.ORDER_TAB.MAP_MESSAGE_PART3")," "))}function B(ae,K){1&ae&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",17)(2,"p",18),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"span"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&ae&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,2,"PAGES.BUSINESS.SENDIT.ORDER_TAB.MAP_PIN_WARNING")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,4,"PAGES.BUSINESS.SENDIT.ORDER_TAB.MAP_PIN_WARNING_INFO")))}function V(ae,K){if(1&ae){const k=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(k);const j=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(j.navigateBack.emit())}),e.\u0275\u0275elementStart(1,"i",20),e.\u0275\u0275text(2,"cached"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"uppercase"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()}2&ae&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,1,e.\u0275\u0275pipeBind1(5,3,"SHARED.ADDRESS.DELIVERY_ADDRESS.CHANGE_PRESELECTED_ADDRESS"))," "))}function X(ae,K){if(1&ae){const k=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",21),e.\u0275\u0275element(1,"mat-divider"),e.\u0275\u0275elementStart(2,"mat-checkbox",22),e.\u0275\u0275listener("change",function(j){e.\u0275\u0275restoreView(k);const R=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(R.setTermsAndConditions(j))}),e.\u0275\u0275elementStart(3,"span",23),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"span"),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd()()()}if(2&ae){const k=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("checked",k.isTermsAndConditionsChecked),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("checked-text",k.isTermsAndConditionsChecked),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,7,"PAGES.BUSINESS.SENDIT.ORDER_TAB.TERMS_AND_CONDITIONS_PART1")," "),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("checked-text",k.isTermsAndConditionsChecked),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(8,9,"PAGES.BUSINESS.SENDIT.ORDER_TAB.TERMS_AND_CONDITIONS_PART2")," ")}}const re=function(ae){return{"map-container--fix-terms-and-conditions-height":ae}};let Q=(()=>{class ae{constructor(k,$){this.locationService=k,this.changeDetectorRef=$,this.shouldCheckTermsAndConditions=!1,this.shouldDisplayPinWarning=!1,this.isTermsAndConditionsChecked=!1,this.isPreselectLocationOnCheckout=!1,this.setAddress=new e.EventEmitter,this.resetManuallyInputtedAddress=new e.EventEmitter,this.setCoordinates=new e.EventEmitter,this.setTermsAndConditionCheckState=new e.EventEmitter,this.navigateBack=new e.EventEmitter,this.sendItOrderStep=h.Gji,this.coordinateSubject=new l.x}get mapLimitDistance(){return this.isAddressSetManually?h.w_u:h.Z8u}get isAddressSetManually(){return this.address.isSetManually}get displayedAddress(){return{address:this.address.address??"",addressNo:this.address.streetNumber??"",city:this.address.city}}ngOnInit(){this.isAddressSetManually&&this.coordinates&&this.getAddressByCoordinates(this.coordinates),this.delayCoordinatesAfterMovingPin()}setTermsAndConditions(k){this.isTermsAndConditionsChecked=k.checked,this.setTermsAndConditionCheckState.emit(this.isTermsAndConditionsChecked)}delayCoordinatesAfterMovingPin(){this.coordinateSubject.pipe((0,n.b)(500),(0,a.x)()).subscribe(k=>this.getAddressByCoordinates(k))}setDeliveryAddress(){this.setAddress.emit(this.address)}getAddressByCoordinates(k){this.locationService.locate({location:k}).pipe((0,t.q)(1)).subscribe($=>{const j=(new s.k)._fromGeocodeAddress($[0]);this.manuallyInputtedAddress&&k.lng!==this.coordinates.lng&&k.lat!==this.coordinates.lat&&(this.resetManuallyInputtedAddress.emit(),this.manuallyInputtedAddress=null),this.setAddressCoordinates(k),this.setAddressByCoordinates(j)})}setAddressByCoordinates(k){this.manuallyInputtedAddress||(this.address=new s.k({...this.address,address:k.address,streetNumber:k.streetNumber,city:k.city,county:k.county,locationLat:this.coordinates.lat,locationLon:this.coordinates.lng}),this.changeDetectorRef.detectChanges(),this.setAddress.emit(this.address))}handleCoordinates(k){this.coordinateSubject.next(k)}setAddressCoordinates(k){this.coordinates=k,this.setCoordinates.emit(k)}}return ae.\u0275fac=function(k){return new(k||ae)(e.\u0275\u0275directiveInject(h.vio.LocationServiceToken),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},ae.\u0275cmp=e.\u0275\u0275defineComponent({type:ae,selectors:[["app-confirm-address-with-coordinates-presentation"]],inputs:{address:"address",manuallyInputtedAddress:"manuallyInputtedAddress",coordinates:"coordinates",shouldCheckTermsAndConditions:"shouldCheckTermsAndConditions",shouldDisplayPinWarning:"shouldDisplayPinWarning",isTermsAndConditionsChecked:"isTermsAndConditionsChecked",isPreselectLocationOnCheckout:"isPreselectLocationOnCheckout"},outputs:{setAddress:"setAddress",resetManuallyInputtedAddress:"resetManuallyInputtedAddress",setCoordinates:"setCoordinates",setTermsAndConditionCheckState:"setTermsAndConditionCheckState",navigateBack:"navigateBack"},decls:15,vars:18,consts:[[1,"content-container"],[1,"map-container",3,"ngClass"],[1,"h-100",3,"enableSatelliteView","shouldDisableKeyboardShortcuts","limitationDistance","locationCoordinates","setCoordinates"],["fxLayout","row","fxLayoutAlign","start start",1,"address-wrapper"],["fxLayoutAlign","center center",1,"address-wrapper__icon","mr-8",3,"color"],[1,"address-wrapper__title",3,"ngClass","innerHtml"],["fxLayout","column","fxLayoutGap","16px",1,"mb-24","pl-16","pr-16"],[4,"ngIf","ngIfElse"],["addressMessage",""],[4,"ngIf"],["class","change-delivery-address-button","fxLayout","row","fxLayoutAlign","center center","mat-button","",3,"click",4,"ngIf"],["fxLayout","column","class","pl-16 pr-16",4,"ngIf"],["class","info-message fs-14",4,"ngIf"],[1,"info-message","fs-14"],[1,"text-primary-color","fw-700"],[1,"fs-14","info-message"],[1,"fw-700","text-primary-color"],[1,"warning-message","fs-14","text-warn-color"],[1,"mb-8"],["fxLayout","row","fxLayoutAlign","center center","mat-button","",1,"change-delivery-address-button",3,"click"],[1,"material-icons"],["fxLayout","column",1,"pl-16","pr-16"],["color","primary",1,"pt-16","pb-16",3,"checked","change"],[1,"text-bold"]],template:function(k,$){if(1&k&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"app-map",2),e.\u0275\u0275listener("setCoordinates",function(R){return $.handleCoordinates(R)}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(3,"div",3)(4,"mat-icon",4),e.\u0275\u0275text(5," location_on "),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(6,"span",5),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",6),e.\u0275\u0275template(9,A,2,1,"ng-container",7),e.\u0275\u0275template(10,P,10,9,"ng-template",null,8,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(12,B,8,6,"ng-container",9),e.\u0275\u0275template(13,V,6,5,"button",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(14,X,9,11,"div",11),e.\u0275\u0275elementEnd()),2&k){const j=e.\u0275\u0275reference(11);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(16,re,$.shouldCheckTermsAndConditions)),e.\u0275\u0275advance(1),e.\u0275\u0275property("enableSatelliteView",!0)("shouldDisableKeyboardShortcuts",!0)("limitationDistance",$.mapLimitDistance)("locationCoordinates",$.coordinates),e.\u0275\u0275advance(2),e.\u0275\u0275property("color",$.shouldDisplayPinWarning?"warn":"primary"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",$.shouldDisplayPinWarning?"text-warn-color":"text-primary-color")("innerHtml",e.\u0275\u0275pipeBind2(7,13,"PAGES.BUSINESS.SENDIT.ORDER_TAB.CLIENT_ADDRESS",$.displayedAddress),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",$.address.isSetManually)("ngIfElse",j),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",$.shouldDisplayPinWarning),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",$.isPreselectLocationOnCheckout),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",$.shouldCheckTermsAndConditions)}},dependencies:[d.NgClass,d.NgIf,p.xw,p.SQ,p.Wh,u.oO,g.eB,v.FC,y.Hw,b.d,S.G,d.UpperCasePipe,E.X$],styles:[".content-container[_ngcontent-%COMP%]{overflow-y:auto}.content-container[_ngcontent-%COMP%]   .fs-14[_ngcontent-%COMP%]{font-size:14px}.content-container[_ngcontent-%COMP%]   .warning-message[_ngcontent-%COMP%]{font-weight:700;line-height:20px}.content-container[_ngcontent-%COMP%]   .info-message[_ngcontent-%COMP%]{line-height:20px}.content-container[_ngcontent-%COMP%]   .map-container[_ngcontent-%COMP%]{height:calc(100vh - 380px);max-height:500px}.content-container[_ngcontent-%COMP%]   .map-container--fix-terms-and-conditions-height[_ngcontent-%COMP%]{height:calc(100vh - 461px)}.content-container[_ngcontent-%COMP%]   .address-wrapper[_ngcontent-%COMP%]{margin:16px}.content-container[_ngcontent-%COMP%]   .address-wrapper__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700;line-height:29px}.content-container[_ngcontent-%COMP%]   .address-wrapper__icon[_ngcontent-%COMP%]{font-size:24px;width:30px;height:30px}.content-container[_ngcontent-%COMP%]   .change-delivery-address-button[_ngcontent-%COMP%]{color:#242424;line-height:20px;font-weight:700;padding:0;width:max-content}.content-container[_ngcontent-%COMP%]   .change-delivery-address-button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-right:4px;color:#7b7b7b}.checked-text[_ngcontent-%COMP%]{color:#00853b}"],changeDetection:0}),ae})()},83261:(oe,x,i)=>{"use strict";i.d(x,{J:()=>H});var e=i(94650),n=i(24006),a=i(28918),t=i(98311),l=i(79912),h=i(50008),s=i(77579),d=i(54244),p=i(82722),u=i(36925),g=i(36895),v=i(1576),y=i(55829),b=i(24404),S=i(18455),E=i(29203),D=i(97600),A=i(89383);function P(N,pe){if(1&N){const de=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"drc-selected-address",20),e.\u0275\u0275listener("rightClickEvent",function(){e.\u0275\u0275restoreView(de);const q=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(q.editAddressWithMap.emit())}),e.\u0275\u0275elementEnd()}if(2&N){const de=e.\u0275\u0275nextContext();e.\u0275\u0275property("displayedAddress",de.getAddressFormattedText())("theme",de.theme.PRIMARY)("leftIcon","location_on")("rightIcon","edit")("isRightIconInteractable",!0)("isLeftIconInteractable",!1)}}function B(N,pe){1&N&&e.\u0275\u0275element(0,"mat-error")}const V=function(N){return{"valid-location":N}};function X(N,pe){if(1&N&&(e.\u0275\u0275elementStart(0,"mat-form-field",21),e.\u0275\u0275element(1,"mat-label",9),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275element(3,"input",22),e.\u0275\u0275template(4,B,1,0,"mat-error",8),e.\u0275\u0275elementEnd()),2&N){const de=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,V,de.extraDetailsForm.get("address").valid)),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(2,3,"PAGES.BUSINESS.SENDIT.ORDER_TAB.ADDRESS_LABEL"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControl",de.addressFormControl)}}function re(N,pe){1&N&&e.\u0275\u0275element(0,"mat-error")}function Q(N,pe){if(1&N&&(e.\u0275\u0275elementStart(0,"div",1)(1,"mat-form-field",6)(2,"mat-label")(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(6,"input",23),e.\u0275\u0275template(7,re,1,0,"mat-error",8),e.\u0275\u0275elementEnd()()),2&N){const de=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,V,de.extraDetailsForm.get("address").valid)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,2,"PAGES.BUSINESS.SENDIT.ORDER_TAB.ADDRESS_LABEL"))}}function ae(N,pe){1&N&&e.\u0275\u0275element(0,"mat-error")}function K(N,pe){1&N&&e.\u0275\u0275element(0,"mat-error")}function k(N,pe){1&N&&e.\u0275\u0275element(0,"mat-error")}function $(N,pe){1&N&&e.\u0275\u0275element(0,"mat-error")}function j(N,pe){1&N&&e.\u0275\u0275element(0,"mat-error")}function R(N,pe){1&N&&e.\u0275\u0275element(0,"mat-error")}function U(N,pe){1&N&&(e.\u0275\u0275elementStart(0,"mat-checkbox",24),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&N&&(e.\u0275\u0275property("color","primary"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,"SHARED.ADDRESS.DELIVERY_ADDRESS.SET_DEFAULT_ADDRESS")," "))}const le=function(N){return{"mt-16":N}},T=function(N){return{"required-label":N}};let H=(()=>{class N{constructor(){this.isAddressChanged=!1,this.isNameMandatory=!0,this.isAddressCoordinatesEditable=!0,this.canSaveAddressAsMainAddress=!1,this.userInputtedStreetNumber=null,this.updateShouldSaveAddress=new e.EventEmitter,this.newAddress=new e.EventEmitter,this.updateAddressNumber=new e.EventEmitter,this.updateStreetAddress=new e.EventEmitter,this.addressFormStatus=new e.EventEmitter,this.editAddressWithMap=new e.EventEmitter,this.closeDialog=new e.EventEmitter,this.atLeastOneMainAddressWarning=new e.EventEmitter,this.theme=a.Q2A,this.carmen=a.VLR,this.destroy$=new s.x}get addressFormControl(){return this.extraDetailsForm.get("address")}ngOnInit(){this.initializeForm(),this.setInitialCoordinates(),this.listenToValueChanges(),this.displayedAddress=new h.k(this.selectedAddress),this.addressFormStatus.emit(this.extraDetailsForm.valid)}ngOnChanges(de){de.shouldSaveAddress.currentValue&&this.setAddress()}setInitialCoordinates(){this.initialCoordinates={lat:this.selectedAddress?.locationLat,lng:this.selectedAddress.locationLon}}initializeForm(){this.extraDetailsForm=new n.nJ({addressExtraDetails:new n.p4(this.selectedAddress.streetExtraInfo||null,[t.A.maxLength(l.g.GENERAL_MAX),t.A.maxLength(255)]),notes:new n.p4(this.selectedAddress.notes||null,[t.A.minLength(l.g.GENERAL_MIN),t.A.maxLength(l.g.NOTES_MAX),t.A.maxLength(255)]),clientName:new n.p4(this.selectedAddress.name||null,[t.A.minLength(l.g.GENERAL_MIN),t.A.maxLength(l.g.GENERAL_MAX),...this.isNameMandatory?[t.A.required()]:[]]),phone:new n.p4(this.selectedAddress.phone||null,[t.A.internationalPhone(),t.A.maxLength(20),t.A.required()]),email:new n.p4(this.selectedAddress.email||null,[t.A.email(),t.A.maxLength(l.g.GENERAL_MAX)]),main_address:new n.p4(this.selectedAddress.main_address),address:new n.p4(this.selectedAddress.address||null,[t.A.required(),t.A.minLength(2),t.A.maxLength(100)])}),this.setAddressNumberValidators()}setAddressNumberValidators(){this.extraDetailsForm.addControl("addressNo",this.userInputtedStreetNumber&&!this.selectedAddress.isSetManually?new n.p4(this.userInputtedStreetNumber||null,[t.A.required(),t.A.notOnlyLetters(),t.A.maxLength(20),t.A.onlyOneStreetNumber()]):new n.p4(this.selectedAddress.streetNumber||null,[t.A.required(),t.A.notOnlyLetters(),t.A.maxLength(20)]))}listenToValueChanges(){this.extraDetailsForm.valueChanges.pipe((0,p.R)(this.destroy$)).subscribe(()=>{this.addressFormStatus.emit(this.extraDetailsForm.valid),this.displayedAddress.streetNumber=this.extraDetailsForm.value.addressNo,this.displayedAddress.address!==this.extraDetailsForm.value.address&&(this.displayedAddress.address=this.extraDetailsForm.value.address,this.selectedAddress.address=this.extraDetailsForm.value.address,this.updateStreetAddress.emit(this.displayedAddress.address)),this.updateShouldSaveAddress.emit(!1)}),this.extraDetailsForm.get("addressNo").valueChanges.pipe((0,d.n)(()=>this.extraDetailsForm.get("addressNo").invalid),(0,p.R)(this.destroy$)).subscribe(de=>this.updateAddressNumber.emit(de))}filterEmptyFields(de){const me=new h.k;return Object.keys(de).forEach(q=>{const se=de[q];if("string"==typeof se){const ve=se.trim();me[q]=""!==ve?ve:null}else me[q]=se}),me}setAddress(){if(this.extraDetailsForm.invalid)return void this.extraDetailsForm.markAllAsTouched();const de=this.extraDetailsForm.value;if(this.updateAddress=new h.k({...this.selectedAddress,address:this.isAddressCoordinatesEditable?this.selectedAddress.address:de.address,notes:de.notes,name:de.clientName,streetNumber:de.addressNo,phone:de.phone,streetExtraInfo:de.addressExtraDetails,email:de.email,main_address:de.main_address}),this.updateAddress=this.filterEmptyFields(this.updateAddress),this.canSaveAddressAsMainAddress){if(!this.isThereAtLeastOneMainAddress())return void this.atLeastOneMainAddressWarning.emit();if(!this.hasAddressChanged())return void this.closeDialog.emit()}this.newAddress.emit(this.updateAddress)}isThereAtLeastOneMainAddress(){return this.updateAddress.main_address===this.selectedAddress.main_address||!1!==this.updateAddress.main_address||(this.updateAddress.main_address=!0,!1)}hasAddressChanged(){if(this.isAddressChanged)return!0;const de=Object.keys(this.updateAddress);for(const me of de)if(this.updateAddress[me]!==this.selectedAddress[me]&&(this.selectedAddress[me]||this.updateAddress[me]))return!0;return!1}getAddressFormattedText(){return this.displayedAddress?.addressTextWithStreetNumberAndCity}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return N.\u0275fac=function(de){return new(de||N)},N.\u0275cmp=e.\u0275\u0275defineComponent({type:N,selectors:[["app-confirm-extra-info-presentation"]],inputs:{selectedAddress:"selectedAddress",shouldSaveAddress:"shouldSaveAddress",isAddressChanged:"isAddressChanged",isNameMandatory:"isNameMandatory",isAddressCoordinatesEditable:"isAddressCoordinatesEditable",canSaveAddressAsMainAddress:"canSaveAddressAsMainAddress",userInputtedStreetNumber:"userInputtedStreetNumber"},outputs:{updateShouldSaveAddress:"updateShouldSaveAddress",newAddress:"newAddress",updateAddressNumber:"updateAddressNumber",updateStreetAddress:"updateStreetAddress",addressFormStatus:"addressFormStatus",editAddressWithMap:"editAddressWithMap",closeDialog:"closeDialog",atLeastOneMainAddressWarning:"atLeastOneMainAddressWarning"},features:[e.\u0275\u0275NgOnChangesFeature],decls:52,vars:50,consts:[[3,"displayedAddress","theme","leftIcon","rightIcon","isRightIconInteractable","isLeftIconInteractable","rightClickEvent",4,"ngIf"],[1,"required-label"],["appearance","outline","class","w-100 pt-4","fxFlex","",3,"ngClass",4,"ngIf"],[1,"title","mb-24",3,"ngClass"],["fxLayout","column",3,"formGroup"],["class","required-label",4,"ngIf"],["appearance","outline","fxFlex","",1,"w-100",3,"ngClass"],["matInput","","type","text","formControlName","addressNo"],[4,"drcForAll"],[3,"innerHTML"],["matInput","","formControlName","addressExtraDetails"],[1,"notes-container"],["appearance","outline","fxFlex","",1,"w-100"],["matInput","","rows","3","formControlName","notes"],[3,"ngClass"],["matInput","","type","text","formControlName","clientName"],["matInput","","type","text","formControlName","phone"],["matInput","","type","text","formControlName","email"],[1,"email-hint-text"],["class","mb-16","formControlName","main_address",3,"color",4,"ngIf"],[3,"displayedAddress","theme","leftIcon","rightIcon","isRightIconInteractable","isLeftIconInteractable","rightClickEvent"],["appearance","outline","fxFlex","",1,"w-100","pt-4",3,"ngClass"],["matInput","","type","text",3,"formControl"],["matInput","","type","text","formControlName","address"],["formControlName","main_address",1,"mb-16",3,"color"]],template:function(de,me){if(1&de&&(e.\u0275\u0275template(0,P,1,6,"drc-selected-address",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275template(2,X,5,7,"mat-form-field",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"p",3),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"form",4),e.\u0275\u0275template(7,Q,8,6,"div",5),e.\u0275\u0275elementStart(8,"div",1)(9,"mat-form-field",6)(10,"mat-label")(11,"span"),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(14,"input",7),e.\u0275\u0275template(15,ae,1,0,"mat-error",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(16,"mat-form-field",6),e.\u0275\u0275element(17,"mat-label",9),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275element(19,"input",10),e.\u0275\u0275template(20,K,1,0,"mat-error",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(21,"div",11)(22,"mat-form-field",12),e.\u0275\u0275element(23,"mat-label",9),e.\u0275\u0275pipe(24,"translate"),e.\u0275\u0275element(25,"textarea",13),e.\u0275\u0275template(26,k,1,0,"mat-error",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"div",14)(28,"mat-form-field",6)(29,"mat-label")(30,"span"),e.\u0275\u0275text(31),e.\u0275\u0275pipe(32,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(33,"input",15),e.\u0275\u0275template(34,$,1,0,"mat-error",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(35,"div",1)(36,"mat-form-field",6)(37,"mat-label")(38,"span"),e.\u0275\u0275text(39),e.\u0275\u0275pipe(40,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(41,"input",16),e.\u0275\u0275template(42,j,1,0,"mat-error",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(43,"mat-form-field",6),e.\u0275\u0275element(44,"mat-label",9),e.\u0275\u0275pipe(45,"translate"),e.\u0275\u0275element(46,"input",17),e.\u0275\u0275elementStart(47,"mat-hint",18),e.\u0275\u0275text(48),e.\u0275\u0275pipe(49,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(50,R,1,0,"mat-error",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(51,U,3,4,"mat-checkbox",19),e.\u0275\u0275elementEnd()),2&de){let q,se;e.\u0275\u0275property("ngIf",me.isAddressCoordinatesEditable),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!me.isAddressCoordinatesEditable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(36,le,me.isAddressCoordinatesEditable)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,20,"SHARED.USER_LOCATION.SUPPLEMENTARY_DETAILS"),"\n"),e.\u0275\u0275advance(2),e.\u0275\u0275property("formGroup",me.extraDetailsForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",me.isAddressCoordinatesEditable),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(38,V,me.extraDetailsForm.get("addressNo").valid)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(13,22,"PAGES.BUSINESS.SENDIT.ORDER_TAB.NUMBER")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(40,V,me.carmen.isFormControlValidAndHasValue(me.extraDetailsForm,"addressExtraDetails"))),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(18,24,"PAGES.BUSINESS.SENDIT.ORDER_TAB.ADDRESS_EXTRA_INFO"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(6),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(24,26,"PAGES.BUSINESS.SENDIT.ORDER_TAB.ADDRESS_NOTES"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(42,T,me.isNameMandatory)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(44,V,(null==(q=me.extraDetailsForm.get("clientName"))||null==q.value?null:q.value.length)&&me.extraDetailsForm.get("clientName").valid)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(32,28,"PAGES.BUSINESS.SENDIT.ORDER_TAB.NAME")),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(46,V,(null==(se=me.extraDetailsForm.get("phone"))||null==se.value?null:se.value.length)&&me.extraDetailsForm.get("phone").valid)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(40,30,"PAGES.BUSINESS.SENDIT.ORDER_TAB.PHONE")),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(48,V,me.extraDetailsForm.get("email").valid&&me.extraDetailsForm.get("email").value)),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(45,32,"PAGES.BUSINESS.SENDIT.ORDER_TAB.EMAIL"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(49,34,"PAGES.BUSINESS.SENDIT.ORDER_TAB.EMAIL_HINT")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",me.canSaveAddressAsMainAddress)}},dependencies:[u.b,g.NgClass,g.NgIf,v.xw,v.yH,y.oO,b.FC,S.nI,S.v_,S.pH,S.$V,E.k0,n._Y,n.Fj,n.JJ,n.JL,n.oH,n.sg,n.u,D.x,A.X$],styles:[".title[_ngcontent-%COMP%]{font-size:22px;font-weight:700;line-height:29px}.email-hint-text[_ngcontent-%COMP%]{font-style:italic}.mat-hint[_ngcontent-%COMP%]{color:#242424!important}textarea[_ngcontent-%COMP%]{resize:none}"],changeDetection:0}),N})()},25456:(oe,x,i)=>{"use strict";i.d(x,{A:()=>pe,i:()=>N});var e=i(35559),n=i(95698),a=i(82722),t=i(77579),l=i(28918),h=i(47716),s=i(50008),d=i(28555),p=i(5221),u=i(50081);const g=(0,d.P1)(p.UJ,de=>de.sharedNavigationState.addressNavigationState.lastUnavailableLocation),v=(0,d.P1)(p.UJ,de=>de.sharedNavigationState.addressNavigationState.lastNavigatedPage),y=(0,d.P1)(p.UJ,de=>de.sharedNavigationState.addressNavigationState.lastNavigatedPage.entities[de.sharedNavigationState.addressNavigationState.lastNavigatedPage.ids[de.sharedNavigationState.addressNavigationState.lastNavigatedPage.ids.length-1]]);(0,d.P1)(v,u.g.getSelectors().selectAll);var S=i(54628),E=i(94650),D=i(92972),A=i(99283),P=i(89383);function B(de,me){1&de&&E.\u0275\u0275elementContainer(0)}function V(de,me){if(1&de){const q=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275template(1,B,1,0,"ng-container",5),E.\u0275\u0275element(2,"mat-divider",6),E.\u0275\u0275elementStart(3,"div",7)(4,"mat-icon",8),E.\u0275\u0275text(5,"location_on"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(6,"h1",9),E.\u0275\u0275text(7),E.\u0275\u0275pipe(8,"translate"),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(9,"form",10),E.\u0275\u0275listener("ngSubmit",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.addressForm.submit())}),E.\u0275\u0275elementStart(10,"drc-street-autocomplete-search",11),E.\u0275\u0275listener("hasNoResults",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.hasNoResult(ve))})("minAddressLengthError",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.handleMinAddressLengthError())})("setAddress",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setAddress(ve))})("setCoords",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setCoordinates(ve))})("setValidity",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setButtonState(ve))})("userInputsStreetNumber",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.saveInputtedStreetNumber(ve))}),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(11,"div",12)(12,"span",13),E.\u0275\u0275text(13),E.\u0275\u0275pipe(14,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(15,"span",14),E.\u0275\u0275listener("click",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.addManually())}),E.\u0275\u0275text(16),E.\u0275\u0275pipe(17,"uppercase"),E.\u0275\u0275pipe(18,"translate"),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(19,"drc-button",15),E.\u0275\u0275listener("mousedown",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return ve.preventDefault(),E.\u0275\u0275resetView(Ee.getUserAddress())})("touchstart",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return ve.preventDefault(),E.\u0275\u0275resetView(Ee.getUserAddress())}),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementContainerEnd()}if(2&de){const q=E.\u0275\u0275nextContext(),se=E.\u0275\u0275reference(8);E.\u0275\u0275advance(1),E.\u0275\u0275property("ngTemplateOutlet",se),E.\u0275\u0275advance(6),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(8,14,"SHARED.ADDRESS.DELIVERY_ADDRESS.ADD_DELIVERY_ADDRESS")),E.\u0275\u0275advance(2),E.\u0275\u0275property("formGroup",q.addressForm),E.\u0275\u0275advance(1),E.\u0275\u0275property("labelTranslationKey","SHARED.ADDRESS.DELIVERY_ADDRESS.STREET_NUMBER")("prioritisedCity",q.userLocation.city)("shouldInvalidateAddress",q.shouldInvalidateObject)("shouldResetAddress",q.shouldValidateAddress),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate1("",E.\u0275\u0275pipeBind1(14,16,"SHARED.ADDRESS.DELIVERY_ADDRESS.NO_ADDRESS_LABEL"),"\xa0"),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate1(" ",E.\u0275\u0275pipeBind1(17,18,E.\u0275\u0275pipeBind1(18,20,"SHARED.ADDRESS.DELIVERY_ADDRESS.MANUALLY_ADD"))," "),E.\u0275\u0275advance(3),E.\u0275\u0275property("color","lightgray")("type",q.buttonTypes.iconAndTextButton)("iconPosition",q.iconsPositions.left)("icon","my_location")("textTranslationKey","SHARED.USER_LOCATION.ADD_ADDRESS.USE_LOCATION")}}function X(de,me){1&de&&E.\u0275\u0275elementContainer(0)}function re(de,me){if(1&de){const q=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275template(1,X,1,0,"ng-container",5),E.\u0275\u0275element(2,"mat-divider",6),E.\u0275\u0275elementStart(3,"div",16)(4,"app-available-location",17),E.\u0275\u0275listener("setAvailableAddressLocation",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setAvailableLocation(ve))}),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementContainerEnd()}if(2&de){const q=E.\u0275\u0275nextContext(),se=E.\u0275\u0275reference(8);E.\u0275\u0275advance(1),E.\u0275\u0275property("ngTemplateOutlet",se),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngStyle",q.getMaxHeightForAvailableAddresses()),E.\u0275\u0275advance(1),E.\u0275\u0275property("fromAddress",!0)}}function Q(de,me){1&de&&E.\u0275\u0275elementContainer(0)}function ae(de,me){if(1&de){const q=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275template(1,Q,1,0,"ng-container",5),E.\u0275\u0275element(2,"mat-divider",6),E.\u0275\u0275elementStart(3,"app-unavailable-location",18),E.\u0275\u0275listener("navigateToChangeAddress",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.setBackNavigation())})("showAvailableLocation",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.showAvailableLocation())}),E.\u0275\u0275elementEnd(),E.\u0275\u0275element(4,"mat-divider",19),E.\u0275\u0275elementStart(5,"drc-button",20),E.\u0275\u0275listener("clickEvent",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.setNextStep(ve.steps.availableLocationStep))}),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementContainerEnd()}if(2&de){const q=E.\u0275\u0275nextContext(),se=E.\u0275\u0275reference(8);E.\u0275\u0275advance(1),E.\u0275\u0275property("ngTemplateOutlet",se),E.\u0275\u0275advance(2),E.\u0275\u0275property("isAddress",!0)("selectedLocation",q.unavailableAddress),E.\u0275\u0275advance(2),E.\u0275\u0275property("iconPosition",q.iconsPositions.right)("icon","keyboard_arrow_right")("textTranslationKey","SHARED.ADDRESS.DELIVERY_ADDRESS.ADD_NEW_ADDRESS")("type",q.buttonTypes.iconAndTextButton)}}function K(de,me){1&de&&E.\u0275\u0275elementContainer(0)}function k(de,me){if(1&de){const q=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275template(1,K,1,0,"ng-container",5),E.\u0275\u0275element(2,"mat-divider",6),E.\u0275\u0275elementStart(3,"app-no-location-access",21),E.\u0275\u0275listener("back",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.setBackNavigation())}),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementContainerEnd()}if(2&de){E.\u0275\u0275nextContext();const q=E.\u0275\u0275reference(8);E.\u0275\u0275advance(1),E.\u0275\u0275property("ngTemplateOutlet",q)}}function $(de,me){if(1&de){const q=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"app-address-add-manually",22),E.\u0275\u0275listener("manuallyAddedAddress",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setAddressAddedManually(ve))})("setAdditionalAddressInfo",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setAdditionalAddressInfo(ve))})("setNextStep",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setNextStep(ve))})("back",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.setBackNavigation())})("setUnavailableAddress",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setUnavailableAddress(ve))}),E.\u0275\u0275elementEnd()}if(2&de){const q=E.\u0275\u0275nextContext();E.\u0275\u0275property("address",q.addressForm.get("address").value)("selectedLocation",q.selectedLocation)("shouldValidate",q.shouldValidate)("streetNumber",null==q.selectedAddress?null:q.selectedAddress.streetNumber)}}function j(de,me){if(1&de){const q=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"app-confirm-address-with-map",23),E.\u0275\u0275listener("navigateBack",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.setBackNavigation())})("resetManuallyInputtedAddress",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.manuallyInputtedAddress=null)})("setAddress",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setAddressWhenNoNumber(ve))})("setCoordinates",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setCoordinates(ve))})("isAddressChanged",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setAddressChanged(ve))})("setNextStep",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setNextStep(ve))})("setUnavailableAddress",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.setUnavailableAddress(ve))}),E.\u0275\u0275elementEnd()}if(2&de){const q=E.\u0275\u0275nextContext();E.\u0275\u0275property("address",q.selectedAddress)("coordinates",q.coords)("previousStep",q.previousStep)("manuallyInputtedAddress",q.manuallyInputtedAddress)("isPreselectLocationOnCheckout",q.isPreselectLocationOnCheckout)}}function R(de,me){if(1&de){const q=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"app-address-additional-info",24),E.\u0275\u0275listener("deleteDeliveryAddress",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.deleteDelivery(ve))})("closeDialog",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.close())})("updateStreetNumber",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.updateStreetNumber(ve))})("updateStreetAddress",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.updateStreetAddress(ve))})("atLeastOneMainAddressWarning",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.openAtLeastOneMainAddressWarning())})("editAddressWithMap",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.setNextStep(ve.steps.confirmAddressWithMap))})("navigateBack",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(ve.setBackNavigation())})("saveAddress",function(ve){E.\u0275\u0275restoreView(q);const Ee=E.\u0275\u0275nextContext();return E.\u0275\u0275resetView(Ee.saveAddress(ve))}),E.\u0275\u0275elementEnd()}if(2&de){const q=E.\u0275\u0275nextContext();E.\u0275\u0275property("address",q.data.address)("isEditedAddress",q.isEditedAddress)("isAddressChanged",q.isAddressChanged)("selectedAddress",q.selectedAddress)("userInputtedStreetNumber",q.userInputtedStreetNumber)}}function U(de,me){if(1&de){const q=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"i",28),E.\u0275\u0275listener("click",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(ve.setBackNavigation())}),E.\u0275\u0275text(1," arrow_back "),E.\u0275\u0275elementEnd()}}function le(de,me){if(1&de){const q=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"i",29),E.\u0275\u0275listener("click",function(){E.\u0275\u0275restoreView(q);const ve=E.\u0275\u0275nextContext(2);return E.\u0275\u0275resetView(ve.close())}),E.\u0275\u0275text(1,"close"),E.\u0275\u0275elementEnd()}}function T(de,me){if(1&de&&(E.\u0275\u0275elementStart(0,"div",25),E.\u0275\u0275template(1,U,2,0,"i",26),E.\u0275\u0275template(2,le,2,0,"i",27),E.\u0275\u0275elementEnd()),2&de){const q=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",q.shouldDisplayBackButton()),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",q.shouldDisplayCloseButton())}}let N=(()=>{class de{constructor(q,se,ve,Ee,Ye,wt,Wt,Ut,nt,Zt,Fe){this.snackBar=q,this.fb=se,this.dialogRef=ve,this.addressService=Ee,this.store=Ye,this.cookies=wt,this.translate=Wt,this.userLocationService=Ut,this.locationService=nt,this.changeDetectorRef=Zt,this.data=Fe,this.existingAddressWarning="",this.addressForm=this.fb.build("patient.address.deliveryAddresses",this.data.address),this.steps=pe,this.addAddressManually=!1,this.coords={lat:null,lng:null},this.isUpdatedNewFormat=!1,this.shouldTriggerValidation=!1,this.canConfirm=!1,this.selectedLocation={county:null,city:null},this.isEditedAddress=!1,this.lastUnavailableLocation=null,this.shouldValidate=!1,this.shouldValidateAddress=!1,this.setManually=!1,this.buttonTypes=l.L$3,this.iconsPositions=l.ggF,this.breakpoints=l.u3l,this.isAddressChanged=!1,this.userInputtedStreetNumber=null,this.isPreselectLocationOnCheckout=!1,this.unsubscribe$=new t.x,this.successCallback=yt=>{this.getUserAddressFromCoordinates(yt)},this.errorCallback=()=>{this.setNextStep(pe.inaccessibleLocationStep)},Fe.existingAddresses=Fe.existingAddresses||[]}get isMapView(){return this.currentStep===pe.confirmAddressWithMap}get userLocation(){return this.userLocationService.getUserLocation()}ngOnInit(){this.windowWidth=window.innerWidth,this.data.address.locationLat&&this.data.address.locationLon&&(this.coords={lat:this.data.address.locationLat,lng:this.data.address.locationLon}),this.currentStep=this.steps.initialLocationStep,this.data.address&&this.data.address.id&&(this.selectedAddress=this.data.address,this.isEditedAddress=!0,this.currentStep=this.steps.addressExtraInfo),this.lastUnavailableLocation=this.store.select(g),this.store.dispatch(S.Y.setAddressNavigationPage({previousPage:this.currentStep})),this.isPreselectLocationOnCheckout=this.data?.isPreselectLocationOnCheckout,this.data.userLocation&&this.setAvailableLocation(this.data.userLocation)}saveInputtedStreetNumber(q){this.userInputtedStreetNumber=q,this.selectedAddress.streetNumber=q}setUnavailableAddress(q){this.unavailableAddress=q,this.setSelectedAddress(this.unavailableAddress)}setSelectedAddress(q){this.selectedAddress=q}getUserAddress(){navigator.geolocation.getCurrentPosition(this.successCallback,this.errorCallback,{enableHighAccuracy:!0,timeout:1e4})}updateStreetAddress(q){this.selectedAddress.address=q,this.manuallyInputtedAddress=this.selectedAddress}updateStreetNumber(q){this.selectedAddress.streetNumber=q}hasNoResult(q){this.shouldInvalidateObject=q?{shouldInvalidate:!0,errorMessageKey:"SHARED.USER_LOCATION.ADD_ADDRESS.NO_RESULTS"}:{shouldInvalidate:!1,errorMessageKey:null}}handleMinAddressLengthError(){this.shouldInvalidateObject={shouldInvalidate:!0,errorMessageKey:"SHARED.USER_LOCATION.ADD_ADDRESS.MINIMUM_CHARACTERS_ADDRESS"}}getUserAddressFromCoordinates(q){const se={lat:Number(q.coords.latitude),lng:Number(q.coords.longitude)};this.locationService.locate({location:se}).subscribe(ve=>{this.updatedAddress=(new s.k)._fromGeocodeAddress(ve[0]);const Ee=ve.find(Ye=>Ye?.types?.includes("country"))?.formatted_address;if(l.VLR.normalizeRomanianDiacritics(Ee)?.toLowerCase()!="Romania".toLowerCase())return this.unavailableAddress=this.updatedAddress,this.setAddress(this.updatedAddress),void this.setNextStep(pe.unavailableLocationStep);this.setAddress(this.updatedAddress),this.setCoordinates(ve[0].geometry)})}addManually(){this.addAddressManually=!0,this.setNextStep(pe.addManually)}openDuplicatedAddressWarning(){this.snackBar.open(this.existingAddressWarning,"\xd7",{panelClass:"error",verticalPosition:"bottom",duration:3500})}saveAddress(q){if(q.county=q.county.toLowerCase(),q.city=q.city.toLowerCase(),l.VLR.isDuplicateAddresses(q,this.data.existingAddresses,this.isEditedAddress))return""===this.existingAddressWarning?this.translate.get("SHARED.ADDRESS.DELIVERY_ADDRESS.YOU_HAVE_ALREADY_AN_ADDRESS_WITH_THESE_DETAILS").pipe((0,n.q)(1)).subscribe(ve=>{this.existingAddressWarning=ve,this.openDuplicatedAddressWarning()}):this.openDuplicatedAddressWarning(),!1;this.data.address.name=q.name,this.data.address.phone=l.P$R.format(q.phone),this.data.address.county=l.VLR.normalize(q.county.toLowerCase()),this.data.address.city=l.VLR.normalize(q.city.toLowerCase()),this.data.address.address=q.address,this.data.address.notes=q.notes,this.data.address.main_address=q.main_address,this.data.address.streetNumber=q.streetNumber,this.data.address.streetExtraInfo=q.streetExtraInfo,this.data.address.isSetManually=!1,this.data.address.email=q.email,this.data.address.locationLat=this.coords.lat,this.data.address.locationLon=this.coords.lng,this.userLocationService.getAvailabilityByName(this.data.address.county,this.data.address.city).pipe((0,n.q)(1)).subscribe(ve=>{if(ve)return this.data.address.isUpdatedNewFormat=!0,void this.dialogRef.close(this.data.address);this.coords=null,this.addressForm.reset(),this.currentStep=pe.unavailableLocationStep,this.store.dispatch(S.Y.setAddressNavigationPage({previousPage:this.currentStep})),this.store.dispatch(S.Y.setLastUnavailableAddress({unavailableAddress:{county:this.data.address.county,city:this.data.address.city,address:this.data.address.address}}))})}setButtonState(q){this.canConfirm=q}deleteDelivery(q){const se=JSON.stringify(q);this.addressService.deleteAddress(q).pipe((0,a.R)(this.unsubscribe$)).subscribe(()=>{q.deleted=!0,this.data.existingAddresses=this.data.existingAddresses.filter(ve=>ve.id!==q.id),this.dialogRef.close(q),se===this.cookies.get("changedLocation")&&this.cookies.delete("changedLocation","/")})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}setAddressWhenNoNumber(q){!this.userInputtedStreetNumber||this.selectedAddress.isSetManually?this.setAddress(q):this.selectedAddress.streetNumber=this.userInputtedStreetNumber}setAddress(q){this.canConfirm=!(q.noResults||!q.city||!q.county),this.selectedAddress=q,this.data.address=q,this.addressForm.get("address").setValue(this.selectedAddress.address),this.addressForm.get("county").setValue(this.selectedAddress.county),this.addressForm.get("city").setValue(this.selectedAddress.city),this.selectedLocation={county:this.selectedAddress.county,city:this.selectedAddress.city},this.changeDetectorRef.detectChanges(),this.addressForm.updateValueAndValidity(),this.setInitialAddressNextStep()}setCoordinates(q){this.coords={lat:q.location?q.location.lat():q.lat,lng:q.location?q.location.lng():q.lng}}setAdditionalAddressInfo(q){this.store.dispatch(S.Y.setAddressNavigationPage({previousPage:this.currentStep})),this.selectedAddress?(this.selectedAddress.phone=q.phone,this.selectedAddress.name=q.name,this.addressForm.patchValue(q),this.data.address=new s.k(q),this.selectedAddress=new s.k(q),this.addressForm.get("address").value||this.addressForm.get("address").setValue(this.selectedAddress.text),!this.coords?.lat&&!this.coords?.lng&&this.getCityCoordinates()):(this.data.address=new s.k(q),this.selectedAddress=new s.k(q),this.addressForm.patchValue(q),this.getCityCoordinates())}setNextStep(q){this.previousStep=this.currentStep,q===pe.addManually&&this.previousStep!==pe.unavailableLocationStep&&this.resetAddress(),this.resetAddressOnNextNavigation(),this.store.dispatch(S.Y.setAddressNavigationPage({previousPage:q})),this.currentStep=q}setAddressChanged(q){this.isAddressChanged=q}setBackNavigation(){this.resetAddressOnNextNavigation(),!this.isConfirmationStep()&&this.currentStep!==pe.addressExtraInfo&&this.previousStep!==pe.confirmAddressWithMap&&this.resetAddress(),this.store.dispatch(S.Y.navigateToPreviousAddressPage()),this.store.select(y).pipe((0,a.R)(this.unsubscribe$)).subscribe(q=>{this.currentStep=q})}resetAddress(){this.coords=null,this.selectedAddress=null,this.addressForm.reset(),this.addressForm.get("address").reset()}showAvailableLocation(){this.shouldNavigate={availableLocation:!0},this.setNextStep(pe.availableLocationStep)}getCityCoordinates(){this.coords=this.getCityCenterCoordinates()}getCityCenterCoordinates(){if(!this.selectedAddress.isSetManually)return;const q=this.userLocationService.getCityByName(this.addressForm.get("city").value);return q?{lat:q.lat,lng:q.lng}:void 0}setAddressAddedManually(q){this.selectedAddress=new s.k({city:q.city,county:q.county,isSetManually:!0,locationLat:q.locationLat,locationLon:q.locationLon}),this.setCoordinates({lat:this.selectedAddress.locationLat,lng:this.selectedAddress.locationLon})}resetAddressOnNextNavigation(){this.shouldValidateAddress=!this.addressForm.get("address").value}shouldDisplayBackButton(){return![this.steps.initialLocationStep,this.steps.inaccessibleLocationStep].includes(this.currentStep)}getMaxHeightForAvailableAddresses(){return{"max-height":.9*window.innerHeight-92+"px","overflow-y":"auto"}}close(){this.store.dispatch(S.Y.emptyNavigationHistory()),this.dialogRef.close()}openAtLeastOneMainAddressWarning(){this.translate.get("SHARED.ADDRESS.DELIVERY_ADDRESS.AT_LEAST_ONE_MAIN_ADDRESS_WARNING").pipe((0,n.q)(1)).subscribe(q=>{this.atLeastOneMainAddressWarning=q}),this.snackBar.open(this.atLeastOneMainAddressWarning,"\xd7",{panelClass:"error",verticalPosition:"bottom",duration:3500})}editAddress(q){this.shouldTriggerValidation=!1,this.editedAddress=new s.k(q),this.data.address=this.editedAddress,this.addressForm.patchValue(q)}goToDeleteStep(){this.store.dispatch(S.Y.setAddressNavigationPage({previousPage:this.currentStep})),this.currentStep=this.steps.deleteAddress}isConfirmationStep(){return[pe.confirmAddressSetManually,pe.confirmEditAddress,pe.confirmAddressWithMap,pe.confirmLocationStep].includes(this.currentStep)}setAvailableLocation(q){this.selectedAddress=new s.k({city:q.city,county:q.county,isSetManually:!0,locationLat:q.lat,locationLon:q.lng}),this.setCoordinates(q.coords),this.setNextStep(pe.confirmAddressWithMap)}shouldDisplayCloseButton(){return[pe.initialLocationStep,pe.inaccessibleLocationStep].includes(this.currentStep)}setInitialAddressNextStep(){this.addressForm.get("address").value?this.userLocationService.getAvailabilityByName(this.data.address.county,this.data.address.city).pipe((0,n.q)(1)).subscribe(q=>{q?this.currentStep!==pe.addressExtraInfo&&(this.setNextStep(pe.confirmAddressWithMap),this.changeDetectorRef.detectChanges()):(this.unavailableAddress=this.selectedAddress,this.coords=null,this.selectedAddress=null,this.addressForm.reset(),this.setNextStep(pe.unavailableLocationStep),this.changeDetectorRef.detectChanges())}):this.shouldTriggerValidation=!0}}return de.\u0275fac=function(q){return new(q||de)(E.\u0275\u0275directiveInject(D.pl),E.\u0275\u0275directiveInject(h.CH),E.\u0275\u0275directiveInject(e.hV),E.\u0275\u0275directiveInject(l.vio.AddressServiceToken),E.\u0275\u0275directiveInject(d.yh),E.\u0275\u0275directiveInject(A.N),E.\u0275\u0275directiveInject(P.sK),E.\u0275\u0275directiveInject(l.vio.UserLocationServiceToken),E.\u0275\u0275directiveInject(l.vio.LocationServiceToken),E.\u0275\u0275directiveInject(E.ChangeDetectorRef),E.\u0275\u0275directiveInject(e.eJ))},de.\u0275cmp=E.\u0275\u0275defineComponent({type:de,selectors:[["app-delivery-address"]],decls:9,vars:7,consts:[[4,"ngIf"],[3,"address","selectedLocation","shouldValidate","streetNumber","manuallyAddedAddress","setAdditionalAddressInfo","setNextStep","back","setUnavailableAddress",4,"ngIf"],[3,"address","coordinates","previousStep","manuallyInputtedAddress","isPreselectLocationOnCheckout","navigateBack","resetManuallyInputtedAddress","setAddress","setCoordinates","isAddressChanged","setNextStep","setUnavailableAddress",4,"ngIf"],[3,"address","isEditedAddress","isAddressChanged","selectedAddress","userInputtedStreetNumber","deleteDeliveryAddress","closeDialog","updateStreetNumber","updateStreetAddress","atLeastOneMainAddressWarning","editAddressWithMap","navigateBack","saveAddress",4,"ngIf"],["header",""],[4,"ngTemplateOutlet"],[1,"full-width-divider"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-16","mb-24"],["color","primary","fxLayoutAlign","center center ",1,"location-icon"],[1,"add-delivery-title"],["fxLayout","row wrap",1,"form",3,"formGroup","ngSubmit"],[1,"w-100",3,"labelTranslationKey","prioritisedCity","shouldInvalidateAddress","shouldResetAddress","hasNoResults","minAddressLengthError","setAddress","setCoords","setValidity","userInputsStreetNumber"],["fxLayout","row",1,"manual-add","mt-24","mb-24"],[1,"manual-add__text"],[1,"manual-add__button","text-bold","cursor-pointer",3,"click"],[3,"color","type","iconPosition","icon","textTranslationKey","mousedown","touchstart"],[1,"available-location",3,"ngStyle"],[3,"fromAddress","setAvailableAddressLocation"],[3,"isAddress","selectedLocation","navigateToChangeAddress","showAvailableLocation"],[1,"mb-16","full-width-divider"],[3,"iconPosition","icon","textTranslationKey","type","clickEvent"],[3,"back"],[3,"address","selectedLocation","shouldValidate","streetNumber","manuallyAddedAddress","setAdditionalAddressInfo","setNextStep","back","setUnavailableAddress"],[3,"address","coordinates","previousStep","manuallyInputtedAddress","isPreselectLocationOnCheckout","navigateBack","resetManuallyInputtedAddress","setAddress","setCoordinates","isAddressChanged","setNextStep","setUnavailableAddress"],[3,"address","isEditedAddress","isAddressChanged","selectedAddress","userInputtedStreetNumber","deleteDeliveryAddress","closeDialog","updateStreetNumber","updateStreetAddress","atLeastOneMainAddressWarning","editAddressWithMap","navigateBack","saveAddress"],[1,"header"],["class","material-icons header__back-icon",3,"click",4,"ngIf"],["class","material-icons header__close-icon",3,"click",4,"ngIf"],[1,"material-icons","header__back-icon",3,"click"],[1,"material-icons","header__close-icon",3,"click"]],template:function(q,se){1&q&&(E.\u0275\u0275template(0,V,20,22,"ng-container",0),E.\u0275\u0275template(1,re,5,3,"ng-container",0),E.\u0275\u0275template(2,ae,6,7,"ng-container",0),E.\u0275\u0275template(3,k,4,1,"ng-container",0),E.\u0275\u0275template(4,$,1,4,"app-address-add-manually",1),E.\u0275\u0275template(5,j,1,5,"app-confirm-address-with-map",2),E.\u0275\u0275template(6,R,1,5,"app-address-additional-info",3),E.\u0275\u0275template(7,T,3,2,"ng-template",null,4,E.\u0275\u0275templateRefExtractor)),2&q&&(E.\u0275\u0275property("ngIf",se.currentStep===se.steps.initialLocationStep),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",se.currentStep===se.steps.availableLocationStep),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",se.currentStep===se.steps.unavailableLocationStep),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",se.currentStep===se.steps.inaccessibleLocationStep),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",se.currentStep===se.steps.addManually),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",se.currentStep===se.steps.confirmAddressWithMap),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",se.currentStep===se.steps.addressExtraInfo))},styles:[".header[_ngcontent-%COMP%]{margin-bottom:16px;height:20px}.header__back-icon[_ngcontent-%COMP%]{font-size:20px;cursor:pointer}.header__close-icon[_ngcontent-%COMP%]{font-size:20px;float:right;cursor:pointer}.full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.location-icon[_ngcontent-%COMP%]{margin-right:4px;width:30px;height:30px;font-size:25px}.manual-add__text[_ngcontent-%COMP%]{font-size:14px;margin-right:8px}.manual-add__button[_ngcontent-%COMP%]{font-weight:700;font-size:14px}.available-location[_ngcontent-%COMP%]{overflow:auto!important}.add-delivery-title[_ngcontent-%COMP%]{font-size:22px;line-height:29px}"]}),de})();var pe=(()=>{return(de=pe||(pe={})).initialLocationStep="initialLocationStep",de.confirmLocationStep="confirmLocationStep",de.addManually="addManually",de.confirmAddressSetManually="confirmAddressSetManually",de.inaccessibleLocationStep="inaccessibleLocationStep",de.editAddress="editAddress",de.confirmEditAddress="confirmEditAddress",de.deleteAddress="deleteAddress",de.unavailableLocationStep="unavailableLocationStep",de.availableLocationStep="availableLocationStep",de.sendItAddAddress="sendItAddAddress",de.confirmAddressWithMap="confirmAddressWithMap",de.addressExtraInfo="addressExtraInfo",pe;var de})()},54628:(oe,x,i)=>{"use strict";i.d(x,{Y:()=>p});var e=i(28555),n=(()=>{return(u=n||(n={})).SetAddressNavigationPage="[User Address Navigation] Set last navigated page",u.SetLastUnavailableAddress="[User Address Navigation] Set last unavailable location",u.NavigateToPreviousAddressPage="[User Address Navigation] Navigate To Previous Page",u.EmptyNavigationHistory="[User Address Navigation] Empty history",u.SetNavigationAddressPageSuccess="[User Address Navigation] Set last navigated page - Success",u.SetAddressNavigationPageFail="[User Address Navigation] Set last navigated page - Fail",n;var u})();const a=(0,e.PH)(n.SetAddressNavigationPage,(0,e.Ky)()),t=(0,e.PH)(n.SetLastUnavailableAddress,(0,e.Ky)()),p={setAddressNavigationPage:a,navigateToPreviousAddressPage:(0,e.PH)(n.NavigateToPreviousAddressPage),emptyNavigationHistory:(0,e.PH)(n.EmptyNavigationHistory),setLastUnavailableAddress:t,setNavigationAddressPageSuccess:(0,e.PH)(n.SetNavigationAddressPageSuccess,(0,e.Ky)()),setAddressNavigationPageFail:(0,e.PH)(n.SetAddressNavigationPageFail,(0,e.Ky)())}},21480:(oe,x,i)=>{"use strict";i.d(x,{B:()=>ae});var e=i(94650),n=i(24006),a=i(77579),t=i(82722),l=i(39300),h=i(28918),s=i(98311),d=i(50008),p=i(89383),u=i(36925),g=i(36895),v=i(1576),y=i(44393),b=i(24363),S=i(18455),E=i(29203);let D=(()=>{class K{transform($,j){return function A(K,k){if(!k.length)return K;const $=(k=h.VLR.normalizeAllDiacritics(k)).trim().split(" ").map(R=>R.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|"),j=new RegExp(`(${$})`,"gi");return K.replace(j,"<b>$1</b>")}($,j)}}return K.\u0275fac=function($){return new($||K)},K.\u0275pipe=e.\u0275\u0275definePipe({name:"textMatchHighlight",type:K,pure:!0}),K})();var B=function(K,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(K,k)};const V=["select"];function X(K,k){1&K&&e.\u0275\u0275element(0,"mat-error")}function re(K,k){if(1&K&&(e.\u0275\u0275elementStart(0,"mat-option",10)(1,"div",11)(2,"div",12)(3,"i",5),e.\u0275\u0275text(4,"location_on"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(5,"span",13),e.\u0275\u0275pipe(6,"textMatchHighlight"),e.\u0275\u0275elementEnd()()),2&K){const $=k.$implicit,j=e.\u0275\u0275nextContext(),R=e.\u0275\u0275reference(8);e.\u0275\u0275property("value",$),e.\u0275\u0275advance(5),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(6,2,j.getOptionText($),R.value),e.\u0275\u0275sanitizeHtml)}}class ae{constructor(k,$,j){this.translationService=k,this.changeDetectorRef=$,this.locationService=j,this.shouldResetAddress=!1,this.setAddress=new e.EventEmitter,this.setCoords=new e.EventEmitter,this.setValidity=new e.EventEmitter,this.hasNoResults=new e.EventEmitter,this.userInputsStreetNumber=new e.EventEmitter,this.minAddressLengthError=new e.EventEmitter,this.predictions=[],this.destroy$=new a.x}getOptionText(k){if(k.address_components){const $=(new d.k)._fromGeocodeAddress(k);return h.VLR.normalizeAllDiacritics($.addressAndCity)}return h.VLR.normalizeAllDiacritics(k.description)}setNoResult(){this.address.value?.length<3?this.minAddressLengthError.emit():(this.address.value&&!this.selectedAddress||this.selectedAddress&&this.selectedAddress.formatedText!==this.address.value.formatedText)&&this.hasNoResults.emit(!0)}addressChanged(k){!this.address||!k?.place_id||this.locationService.getSuggestionDetails(k).pipe((0,t.R)(this.destroy$)).subscribe({next:$=>this.setAddressAndCoordinatesBasedOnAutocompleteResult($)})}setAddressAndCoordinatesBasedOnAutocompleteResult(k){if(!k||!k.geometry)return;const $=(new d.k)._fromGeocodeAddress(k);if(k.formatedText=this.getOptionText(k),this.selectedAddress=k,this.address.setValue(k),this.extractStreetNumbers(this.userText)&&this.userInputsStreetNumber.emit(this.extractStreetNumbers(this.userText)),!$?.streetNumber&&!this.extractStreetNumbers(this.userText))return void this.setNumberError();const j={lat:k.geometry.location.lat(),lng:k.geometry.location.lng()};this.hasNoResults.emit(!1),this.setCoords.emit(j),this.setAddress.emit($)}extractStreetNumbers(k){const R=k.match(/\b(\d+)(?=\s*[a-zA-Z]{2,}\b|\b)/g)||[],U=k.match(/\b(\d+)\s*([a-zA-Z])\b/g)||[],le=R.concat(U.map(T=>T.trim()));return 0===le.length?"":le.join(" ")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnInit(){this.initControl(),this.address.valueChanges.pipe((0,l.h)(k=>k.length>=3),(0,t.R)(this.destroy$)).subscribe(k=>{"string"==typeof k&&(this.userText=k,this.selectedAddress=null),this.setValidity.emit(this.address.valid),this.getPlaceAutocompleteDebounced(k)})}ngOnChanges(k){!0===k?.shouldResetAddress?.currentValue&&this.resetAddress(),k?.shouldInvalidateAddress?.currentValue&&this.invalidateField(k.shouldInvalidateAddress.currentValue)}invalidateField(k){this.address||this.initControl(),this.address.setErrors(!0===k.shouldInvalidate?{incorrect:this.translationService.instant(k.errorMessageKey)}:null)}resetAddress(){if(!this.address)return this.initControl(),void this.resetAddressControl();this.address.setValue(null),this.resetAddressControl(),this.inputElement.nativeElement.value=""}resetAddressControl(){this.address.markAsTouched(),this.address.markAsDirty(),this.address.updateValueAndValidity()}initControl(){this.address=new n.NI("",[s.A.maxLength(50),s.A.notOnlyNumbers()])}sortResults(k){if(k)return k.forEach($=>{if(this.shouldSortResult($)){const j=k.indexOf($);this.insertAsFirstElement(k,j)}}),k}shouldSortResult(k){return h.VLR.normalizeRomanianDiacritics(k.description)&&h.VLR.normalizeRomanianDiacritics(this.prioritisedCity)&&h.VLR.normalizeRomanianDiacritics(k.description).toLowerCase().indexOf(h.VLR.normalizeRomanianDiacritics(this.prioritisedCity).toLowerCase())>=0}insertAsFirstElement(k,$){const j=k.splice($,1)[0];k.splice(0,0,j)}getPlaceAutocompleteDebounced(k){this.getPlaceAutocomplete(k)}getPlaceAutocomplete(k){this.locationService.getStreetSuggestions(k).pipe((0,t.R)(this.destroy$)).subscribe({next:$=>$?.length||this.selectedAddress?(this.predictions=this.sortResults($),$):(this.predictions=[],this.address.markAsTouched(),void this.setPredictionErrors())})}setPredictionErrors(){this.setCustomError("PAGES.PATIENT.ADDRESSES.NO_ADDRESS_PREDICTION_ERROR"),this.address.markAsTouched(),this.changeDetectorRef.detectChanges()}setNumberError(){this.setCustomError("PAGES.PATIENT.ADDRESSES.NO_ADDRESS_NUMBER_ERROR"),this.address.markAsTouched(),this.changeDetectorRef.detectChanges()}setShouldInvalidateAddress(k){this.shouldInvalidateAddress={shouldInvalidate:!0,errorMessageKey:k}}resetShouldInvalidateAddress(){this.shouldInvalidateAddress={shouldInvalidate:!1,errorMessageKey:null}}setCustomError(k){!this.selectedAddress?.streetNumber&&this.address.touched?this.setShouldInvalidateAddress(k):this.resetShouldInvalidateAddress(),this.invalidateField(this.shouldInvalidateAddress)}}ae.\u0275fac=function(k){return new(k||ae)(e.\u0275\u0275directiveInject(p.sK),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(h.vio.LocationServiceToken))},ae.\u0275cmp=e.\u0275\u0275defineComponent({type:ae,selectors:[["drc-street-autocomplete-search"]],viewQuery:function(k,$){if(1&k&&e.\u0275\u0275viewQuery(V,5),2&k){let j;e.\u0275\u0275queryRefresh(j=e.\u0275\u0275loadQuery())&&($.inputElement=j.first)}},inputs:{labelTranslationKey:"labelTranslationKey",prioritisedCity:"prioritisedCity",shouldResetAddress:"shouldResetAddress",shouldInvalidateAddress:"shouldInvalidateAddress"},outputs:{setAddress:"setAddress",setCoords:"setCoords",setValidity:"setValidity",hasNoResults:"hasNoResults",userInputsStreetNumber:"userInputsStreetNumber",minAddressLengthError:"minAddressLengthError"},features:[e.\u0275\u0275NgOnChangesFeature],decls:15,vars:7,consts:[[1,"address-container","required-label"],["appearance","outline","fxFlex","100"],["fxLayout","row"],["id","addressInput","matInput","","type","text",3,"formControl","matAutocomplete","focusout"],["select",""],[1,"material-icons"],[4,"drcForAll"],[1,"custom-address-search-autocomplete",3,"displayWith","click","optionSelected"],["streetAutocomplete","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxLayout","row","fxLayoutAlign","start center"],[1,"icon-container"],[3,"innerHTML"]],template:function(k,$){if(1&k){const j=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0)(1,"mat-form-field",1)(2,"mat-label")(3,"strong"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",2)(7,"input",3,4),e.\u0275\u0275listener("focusout",function(){return $.setNoResult()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"i",5),e.\u0275\u0275text(10,"search"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(11,X,1,0,"mat-error",6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"mat-autocomplete",7,8),e.\u0275\u0275listener("click",function(U){return U.stopPropagation()})("optionSelected",function(U){e.\u0275\u0275restoreView(j);const le=e.\u0275\u0275reference(8);return $.addressChanged(U.option.value),e.\u0275\u0275resetView(le.blur())}),e.\u0275\u0275template(14,re,7,5,"mat-option",9),e.\u0275\u0275elementEnd()}if(2&k){const j=e.\u0275\u0275reference(13);e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,5,$.labelTranslationKey)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("formControl",$.address)("matAutocomplete",j),e.\u0275\u0275advance(5),e.\u0275\u0275property("displayWith",$.getOptionText),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",$.predictions)}},dependencies:[u.b,g.NgForOf,v.xw,v.Wh,v.yH,y.VN,y.QJ,b.CK,S.nI,S.v_,S.$V,E.k0,n.Fj,n.JJ,n.oH,D,p.X$],styles:[".icon-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:20px;width:20px;margin-right:8px}"]}),function(K,k,$,j){var le,R=arguments.length,U=R<3?k:null===j?j=Object.getOwnPropertyDescriptor(k,$):j;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(K,k,$,j);else for(var T=K.length-1;T>=0;T--)(le=K[T])&&(U=(R<3?le(U):R>3?le(k,$,U):le(k,$))||U);R>3&&U&&Object.defineProperty(k,$,U)}([(0,h.DsO)(500),B("design:type",Function),B("design:paramtypes",[Object]),B("design:returntype",void 0)],ae.prototype,"getPlaceAutocompleteDebounced",null)},56846:(oe,x,i)=>{"use strict";i.d(x,{G:()=>zt});var e=i(94650),n=i(80529),a=i(77579),t=i(61135),l=i(60515),h=i(82722),s=i(95698),d=i(70262),p=i(28918),u=i(47716),g=i(12676),v=i(11828),y=i(88069),b=i(22539),S=i(17596),E=i(52267),D=i(49365),A=i(17366),P=i(36925),B=i(36895),V=i(9116),X=i(1576),re=i(55829),Q=i(24404),ae=i(18455),K=i(29203),k=i(24006),$=i(3611),j=i(89383);const R=["emailInput"],U=["passwordInput"],le=function(bt){return{userName:bt}};function T(bt,At){if(1&bt&&(e.\u0275\u0275elementStart(0,"h2",12),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&bt){const $e=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"SHARED.LOGIN."+($e.hasAccount?"WELCOME_USER":"WELCOME"),e.\u0275\u0275pureFunction1(4,le,$e.hasAccount?$e.userName:""))," ")}}function H(bt,At){1&bt&&(e.\u0275\u0275elementStart(0,"h2"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"span",13),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()),2&bt&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,3,"SHARED.LOGIN.UPLOAD_PRESCRIPTION")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,5,"SHARED.LOGIN.MEDICAL_JOURNAL")," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,7,"SHARED.LOGIN.MUST_AUTHENTICATE")," "))}const N=function(bt,At){return{"login__user-image--prescription":bt,"login__user-image--cart":At}};function pe(bt,At){if(1&bt&&(e.\u0275\u0275elementStart(0,"div",14),e.\u0275\u0275element(1,"img",15),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&bt){const $e=e.\u0275\u0275nextContext();let Xe;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(7,N,$e.isPrescriptionLogin,$e.isCartLogin))("src",null!==(Xe=null==$e.userPhoto?null:$e.userPhoto.url)&&void 0!==Xe?Xe:$e.noAvatarImageURL,e.\u0275\u0275sanitizeUrl)("height",$e.isPrescriptionLogin?46:100)("width",$e.isPrescriptionLogin?46:100)("alt",e.\u0275\u0275pipeBind1(2,5,"SHARED.LOGIN.USER_IMAGE"))}}const de=function(bt){return{"login__description--prescription":bt}};function me(bt,At){if(1&bt&&(e.\u0275\u0275elementStart(0,"p",16),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&bt){const $e=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,de,$e.isPrescriptionLogin)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,"SHARED.LOGIN.LOGIN_DESCRIPTION")," ")}}function q(bt,At){1&bt&&e.\u0275\u0275element(0,"mat-error")}function se(bt,At){if(1&bt&&e.\u0275\u0275element(0,"drc-registration-warning",25),2&bt){const $e=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("userEmail",$e.userEmail)("correctedEmail",$e.correctedEmail)}}function ve(bt,At){1&bt&&e.\u0275\u0275elementContainer(0)}function Ee(bt,At){if(1&bt){const $e=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",17)(2,"div",18)(3,"mat-form-field",19),e.\u0275\u0275listener("keydown.enter",function(Pe){return e.\u0275\u0275restoreView($e),e.\u0275\u0275nextContext().nextClick(),e.\u0275\u0275resetView(Pe.preventDefault())})("focusin",function(){e.\u0275\u0275restoreView($e);const Pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Pe.hasTypo=!1)})("focusout",function(){e.\u0275\u0275restoreView($e);const Pe=e.\u0275\u0275nextContext();return Pe.disableValidationOnTouch("email"),e.\u0275\u0275resetView(Pe.checkForEmailChanges())}),e.\u0275\u0275elementStart(4,"mat-label"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(7,"input",20,21),e.\u0275\u0275template(9,q,1,0,"mat-error",22),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(10,se,1,2,"drc-registration-warning",23),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(11,ve,1,0,"ng-container",24),e.\u0275\u0275elementEnd()}if(2&bt){const $e=e.\u0275\u0275nextContext(),Xe=e.\u0275\u0275reference(12);e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,4,"SHARED.LOGIN.EMAIL_LABEL")),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControlName",$e.controls.EMAIL),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",$e.hasTypo&&(null==$e.correctedEmail?null:$e.correctedEmail.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",Xe)}}function Ye(bt,At){1&bt&&e.\u0275\u0275element(0,"mat-error")}function wt(bt,At){1&bt&&e.\u0275\u0275elementContainer(0)}const Wt=function(bt){return{email:bt}};function Ut(bt,At){if(1&bt){const $e=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",26)(1,"div",17)(2,"div",18)(3,"mat-form-field",27),e.\u0275\u0275listener("focusout",function(){e.\u0275\u0275restoreView($e);const Pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Pe.disableValidationOnTouch("password"))}),e.\u0275\u0275elementStart(4,"mat-label"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(7,"input",28,29),e.\u0275\u0275template(9,Ye,1,0,"mat-error",22),e.\u0275\u0275elementStart(10,"i",30),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView($e);const Pe=e.\u0275\u0275reference(8),Ve=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Ve.changeInputType(Pe))}),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275template(12,wt,1,0,"ng-container",24),e.\u0275\u0275elementStart(13,"div",31)(14,"form",32)(15,"mat-checkbox",33)(16,"span"),e.\u0275\u0275text(17),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(19,"div")(20,"a",34),e.\u0275\u0275text(21),e.\u0275\u0275pipe(22,"translate"),e.\u0275\u0275elementEnd()()()()}if(2&bt){const $e=e.\u0275\u0275reference(8),Xe=e.\u0275\u0275nextContext(),Pe=e.\u0275\u0275reference(12);e.\u0275\u0275property("ngClass",Xe.getNextStepAnimation(Xe.hasAccount)),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,11,"SHARED.LOGIN.PASSWORD_LABEL")),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControlName",Xe.controls.PASSWORD),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ","password"===$e.type?"visibility":"visibility_off"," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",Pe),e.\u0275\u0275advance(2),e.\u0275\u0275property("formGroup",Xe.loginForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("formControlName",Xe.controls.REMEMBER_ME),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(18,13,"SHARED.LOGIN.REMEMBER_ME")),e.\u0275\u0275advance(3),e.\u0275\u0275property("routerLink",Xe.accountRecoveryLink)("queryParams",e.\u0275\u0275pureFunction1(17,Wt,Xe.userEmail)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(22,15,"SHARED.LOGIN.FORGOT_PASSWORD")," ")}}const nt=function(bt){return{"login__button--prescription":bt}};function Zt(bt,At){if(1&bt){const $e=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"drc-button",37),e.\u0275\u0275listener("click",function(Pe){return e.\u0275\u0275restoreView($e),e.\u0275\u0275nextContext(3).nextClick(),e.\u0275\u0275resetView(Pe.preventDefault())}),e.\u0275\u0275elementEnd()}if(2&bt){const $e=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(6,nt,$e.isPrescriptionLogin))("type",$e.drcButtonType.iconAndTextButton)("textTranslationKey","SHARED.LOGIN.NEXT")("color",$e.drcButtonColors.primary)("iconPosition",$e.drcButtonIconPosition.right)("icon","chevron_right")}}function Fe(bt,At){1&bt&&(e.\u0275\u0275elementStart(0,"div",38),e.\u0275\u0275element(1,"drc-page-spinner"),e.\u0275\u0275elementEnd())}function yt(bt,At){if(1&bt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Zt,1,8,"drc-button",35),e.\u0275\u0275template(2,Fe,2,0,"div",36),e.\u0275\u0275elementContainerEnd()),2&bt){const $e=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!$e.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",$e.isLoading)}}function ie(bt,At){if(1&bt&&e.\u0275\u0275template(0,yt,3,2,"ng-container",4),2&bt){const $e=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",!$e.isPrescriptionLogin)}}function Ce(bt,At){1&bt&&e.\u0275\u0275elementContainer(0)}function Ie(bt,At){if(1&bt&&(e.\u0275\u0275elementStart(0,"div",39),e.\u0275\u0275template(1,Ce,1,0,"ng-container",24),e.\u0275\u0275elementEnd()),2&bt){const $e=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",$e.socialLoginTemplate)}}const dt=function(bt,At){return{"login__header--cart":bt,"login__header--prescription":At}},Mt=function(bt,At){return{"login__form--prescription":bt,"login__cart-form":At}};var vt=(()=>{return(bt=vt||(vt={})).TOO_MANY_FAILED_ATTEMPTS="SHARED.LOGIN.ERROR.ACCOUNT_SUSPENDED",bt.TOO_MANY_FAILED_ATTEMPTS_WARNING="SHARED.LOGIN.ERROR.LOGIN.3_CHANCES",bt.FACEBOOK_GOOGLE_FAILED_LOGIN="SHARED.LOGIN.ERROR.SOCIAL_MEDIA_ERROR",bt.DEFAULT_ERROR="SHARED.LOGIN.ERROR.PLEASE_TRY_AGAIN",bt.CANNOT_LOGIN_AS_BUSINESS="PAGES.AUTHENTICATION.LOGIN.LOGIN_BUSINESS_ERROR",vt;var bt})(),xt=(()=>{return(bt=xt||(xt={})).EMAIL="email",bt.PASSWORD="password",bt.REMEMBER_ME="rememberMe",xt;var bt})();let zt=(()=>{class bt extends y.c{constructor($e,Xe,Pe,Ve,mt){super(),this.formBuilder=$e,this.changeDetectorRef=Xe,this.userService=Pe,this.messageService=Ve,this.userLocationService=mt,this.isCartLogin=!1,this.isPrescriptionLogin=!1,this.nextAction=new e.EventEmitter,this.userAccountChanges=new e.EventEmitter,this.registerEmail=new e.EventEmitter,this.destroy$=new a.x,this.hasAccount$=new t.X(!1),this.controls=xt,this.loginForm=this.formBuilder.build("user.login"),this.hasAccount=!1,this.userPhoto=new b.P,this.hasTypo=!1,this.isLoading=!1,this.window=window,this.noAvatarImageURL=p.LeP,this.breakpoints=p.u3l,this.accountRecoveryLink=`/${p.nk1.AUTHENTICATION}/${p.nk1.ACCOUNT_RECOVERY}`,this.drcButtonColors=p.B6Y,this.drcButtonType=p.L$3,this.drcButtonIconPosition=p.ggF}ngOnInit(){this.userAccountChanges.emit(this.hasAccount$),this.hasAccount$.pipe((0,h.R)(this.destroy$)).subscribe($e=>this.hasAccount=$e),this.processLoginForm()}ngAfterViewInit(){this.changeDetectorRef.detectChanges(),setTimeout(()=>this.emailRef.nativeElement.focus(),this.isCartLogin?500:0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}processLoginForm(){this.loginForm.submit$.pipe((0,h.R)(this.destroy$)).subscribe($e=>{this.isLoading=!0;let Xe=new n.WM;Xe=Xe.set("noSpinner","true"),Xe=Xe.set("noRedirect","true"),this.timeOut();const[Pe,Ve,mt]=[$e[xt.EMAIL],$e[xt.PASSWORD],$e[xt.REMEMBER_ME]];Pe&&Ve?this.handleLogin({email:Pe,password:Ve,rememberMe:mt},Xe):this.isLoading=!1})}handleLogin($e,Xe){this.userService.login({username:$e.email,password:$e.password,role:this.userRole,rememberMe:$e.rememberMe??!1},Xe).pipe((0,s.q)(1),(0,d.K)(Ve=>(this.isLoading=!1,this.resetPassword(),this.handleLoginErrors(Ve),l.E))).subscribe(Ve=>{Ve&&(this.messageService.displayMessage(p.CsS.SUCCESS,"SHARED.LOGIN.WELCOME_BACK",{userName:Ve?.name??""}),this.userService.deleteGuestId(),this.setBusinessUserLocation(Ve),this.nextAction.emit(!0)),this.isLoading=!1})}setBusinessUserLocation($e){if(!$e.isBusiness())return;const Xe=new S.eL($e.profile);Xe?.county&&Xe?.city&&this.userLocationService.setUserLocation({county:Xe.county,city:Xe.city})}handleLoginErrors($e){switch($e.status){case 400:this.messageService.displayMessage(p.CsS.ERROR,vt.CANNOT_LOGIN_AS_BUSINESS);break;case 423:this.messageService.displayMessage(p.CsS.ERROR,vt.TOO_MANY_FAILED_ATTEMPTS);break;case 304:this.messageService.displayMessage(p.CsS.ERROR,vt.TOO_MANY_FAILED_ATTEMPTS_WARNING);break;case 406:this.messageService.displayMessage(p.CsS.ERROR,vt.FACEBOOK_GOOGLE_FAILED_LOGIN);break;default:this.messageService.displayMessage(p.CsS.ERROR,vt.DEFAULT_ERROR)}this.isLoading=!1}timeOut(){setTimeout(()=>{this.isLoading=!1},v.Z.loginSpinnerTimeoutMs)}nextClick(){const $e=this.getControl(xt.EMAIL);$e.value&&$e.valid?this.hasAccount?this.loginForm.submit():this.checkForExistingUser($e):this.loginForm.validate()}checkForExistingUser($e){this.userService.getPreview($e.value).subscribe({next:Xe=>{if(this.userEmail=$e.value,Xe.profile)this.handlePreviewUpdate(Xe.profile);else if(!Xe.exists&&$e.valid)this.handleUserRegistration();else{if(400===Xe.status)return void this.messageService.displayMessage(p.CsS.ERROR,"PAGES.AUTHENTICATION.LOGIN.LOGIN_BUSINESS_ERROR");this.messageService.displayMessage(p.CsS.ERROR,"PAGES.AUTHENTICATION.LOGIN.LOGIN_ERROR"),$e.markAsTouched(),this.getControl(xt.PASSWORD).markAsUntouched()}},error:()=>{this.isLoading=!1,this.changeDetectorRef.detectChanges()}})}back(){this.resetPassword(),this.hasAccount$.next(!1)}handlePreviewUpdate($e){this.hasAccount$.next(!0),this.userName=$e?.name,this.userPhoto=$e?.profilePhotoKey,this.isLoading=!1,this.userRole=$e?.role,this.changeDetectorRef.detectChanges()}handleUserRegistration(){this.isLoading=!1,this.correctedEmail=this.checkForTypo(this.userEmail),this.userEmail!==this.correctedEmail&&this.previouslyTriedEmail!==this.userEmail?(this.hasTypo=!0,this.previouslyTriedEmail=this.userEmail):(this.registerEmail.emit(this.userEmail),this.nextAction.emit(!1))}getControl($e){return this.loginForm.get($e)}checkForEmailChanges(){this.hasTypo=this.getControl(xt.EMAIL).value===this.previouslyTriedEmail}disableValidationOnTouch($e){const Pe=$e===xt.PASSWORD,Ve=this.getControl($e);(Pe||!Ve.value?.length||0===Ve.value?.length)&&Ve.markAsUntouched()}changeInputType($e){$e.type=$e.type===p.n$I.PASSWORD?p.n$I.TEXT:p.n$I.PASSWORD}getNextStepAnimation($e=!1){return window.innerWidth<=p.u3l.MOBILE_XL&&this.isCartLogin&&$e?"animation-in":""}resetPassword(){this.loginForm.get(xt.PASSWORD).reset(),this.loginForm.get(xt.PASSWORD).markAsUntouched()}}return bt.\u0275fac=function($e){return new($e||bt)(e.\u0275\u0275directiveInject(u.CH),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(g.O),e.\u0275\u0275directiveInject(p.vio.SnackbarMessageServiceToken),e.\u0275\u0275directiveInject(p.vio.UserLocationServiceToken))},bt.\u0275cmp=e.\u0275\u0275defineComponent({type:bt,selectors:[["app-login"]],viewQuery:function($e,Xe){if(1&$e&&(e.\u0275\u0275viewQuery(R,5),e.\u0275\u0275viewQuery(U,5)),2&$e){let Pe;e.\u0275\u0275queryRefresh(Pe=e.\u0275\u0275loadQuery())&&(Xe.emailRef=Pe.first),e.\u0275\u0275queryRefresh(Pe=e.\u0275\u0275loadQuery())&&(Xe.passwordRef=Pe.first)}},inputs:{isCartLogin:"isCartLogin",isPrescriptionLogin:"isPrescriptionLogin",socialLoginTemplate:"socialLoginTemplate"},outputs:{nextAction:"nextAction",userAccountChanges:"userAccountChanges",registerEmail:"registerEmail"},features:[e.\u0275\u0275InheritDefinitionFeature],decls:14,vars:21,consts:[["fxLayout","column",1,"login",3,"ngClass","fxLayoutAlign"],["fxLayout","column",1,"login__header",3,"ngClass","fxLayoutAlign"],[3,"fxLayout","fxLayoutAlign"],["fxLayoutAlign","center center",4,"ngIf"],[4,"ngIf"],["fxLayoutAlign","center",4,"ngIf"],["class","login__description",3,"ngClass",4,"ngIf"],[1,"login__form",3,"ngClass","formGroup","ngSubmit"],["fxFlex","100"],[3,"ngClass",4,"ngIf"],["button",""],["class","w-100",4,"ngIf"],["fxLayoutAlign","center center"],[1,"text-primary-color"],["fxLayoutAlign","center"],[1,"login__user-image",3,"ngClass","src","height","width","alt"],[1,"login__description",3,"ngClass"],[1,"form-group"],["fxLayout","column",1,"mr-0"],["appearance","outline",1,"login-field",3,"keydown.enter","focusin","focusout"],["id","emailInput","matInput","","autocomplete","email","type","email",3,"formControlName"],["emailInput",""],[4,"drcForAll"],["class","login__warning-container",3,"userEmail","correctedEmail",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"login__warning-container",3,"userEmail","correctedEmail"],[3,"ngClass"],["appearance","outline",1,"password-field",3,"focusout"],["matInput","","type","password","id","password",3,"formControlName"],["passwordInput",""],["matSuffix","",1,"material-icons","text-muted",3,"click"],["fxLayout","row","fxLayoutAlign","space-between center"],[3,"formGroup"],["color","primary","value","false",3,"formControlName"],[3,"routerLink","queryParams"],["class","login__button",3,"ngClass","type","textTranslationKey","color","iconPosition","icon","click",4,"ngIf"],["class","spinner-container",4,"ngIf"],[1,"login__button",3,"ngClass","type","textTranslationKey","color","iconPosition","icon","click"],[1,"spinner-container"],[1,"w-100"]],template:function($e,Xe){1&$e&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,T,3,6,"h2",3),e.\u0275\u0275template(4,H,8,9,"h2",4),e.\u0275\u0275template(5,pe,3,10,"div",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,me,3,6,"p",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"form",7),e.\u0275\u0275listener("ngSubmit",function(){return Xe.loginForm.submit()}),e.\u0275\u0275elementStart(8,"div",8),e.\u0275\u0275template(9,Ee,12,6,"div",4),e.\u0275\u0275template(10,Ut,23,19,"div",9),e.\u0275\u0275template(11,ie,1,1,"ng-template",null,10,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(13,Ie,2,1,"div",11),e.\u0275\u0275elementEnd()),2&$e&&(e.\u0275\u0275property("ngClass",Xe.getNextStepAnimation(!Xe.hasAccount))("fxLayoutAlign",Xe.isCartLogin&&Xe.window.innerWidth>Xe.breakpoints.TABLET||Xe.isPrescriptionLogin?"start":"center center"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(15,dt,Xe.isCartLogin,Xe.isPrescriptionLogin&&Xe.hasAccount))("fxLayoutAlign",Xe.isPrescriptionLogin?"flex-start flex-start":Xe.isCartLogin?"center center":"center"),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxLayout",Xe.isPrescriptionLogin?"row-reverse":Xe.isCartLogin?"column-reverse":"column")("fxLayoutAlign","center center"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Xe.isPrescriptionLogin||Xe.hasAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Xe.isPrescriptionLogin&&!Xe.hasAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Xe.hasAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Xe.hasAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(18,Mt,Xe.isPrescriptionLogin,Xe.isCartLogin))("formGroup",Xe.loginForm),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!Xe.hasAccount),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Xe.hasAccount),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!Xe.hasAccount&&Xe.socialLoginTemplate))},dependencies:[E.K,D.g,A.r,P.b,B.NgClass,B.NgIf,B.NgTemplateOutlet,V.rH,X.xw,X.Wh,X.yH,re.oO,Q.FC,ae.nI,ae.v_,ae.$V,ae.nX,K.k0,k._Y,k.Fj,k.JJ,k.JL,k.sg,k.u,$.b,j.X$],styles:[".login[_ngcontent-%COMP%]{width:100%;transition:.5s all ease-in-out;transform:translate(100)}.login--visible[_ngcontent-%COMP%]{transform:translate(0)}.login__header[_ngcontent-%COMP%]{word-break:break-word;margin:0 0 16px;width:100%}.login__header--cart[_ngcontent-%COMP%]{margin:24px 0}.login__header--prescription[_ngcontent-%COMP%]{max-width:min(100%,400px)}.login__description[_ngcontent-%COMP%]{margin-top:5px;text-align:center;white-space:pre}.login__description--prescription[_ngcontent-%COMP%]{text-align:start}.login__user-image[_ngcontent-%COMP%]{border-radius:50%;margin-top:10px}.login__user-image--prescription[_ngcontent-%COMP%]{margin-right:8px;margin-top:unset}.login__user-image--cart[_ngcontent-%COMP%]{margin-bottom:8px}.login__form[_ngcontent-%COMP%]{width:100%}.login__form--prescription[_ngcontent-%COMP%]{max-width:min(100%,400px)}.login__warning-container[_ngcontent-%COMP%]{max-width:368px}"]}),bt})()},11378:(oe,x,i)=>{"use strict";i.d(x,{w:()=>vt});var e=i(94650),n=i(82722),a=i(95698),t=i(77579),l=i(28918),h=i(47716),s=i(55738),d=i(8141),p=i(12676),g=(i(93087),i(11828)),v=i(88069),y=i(17596),b=i(89383),S=i(52267),E=i(73779),D=i(49365),A=i(17366),P=i(36925),B=i(36895),V=i(9116),X=i(1576),re=i(55829),Q=i(18455),ae=i(29203),K=i(44850),k=i(44454),$=i(24006),j=i(3611);const R=["nameInput"];function U(xt,zt){if(1&xt&&(e.\u0275\u0275elementStart(0,"span",37),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&xt){const bt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",bt.registerEmail," ")}}const le=function(xt){return{"registration__header--prescription":xt}};function T(xt,zt){if(1&xt&&(e.\u0275\u0275elementStart(0,"div",33)(1,"h2"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",34),e.\u0275\u0275element(5,"img",35),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275template(7,U,2,1,"span",36),e.\u0275\u0275elementEnd()()),2&xt){const bt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(14,le,bt.isPrescriptionRegistration)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,10,"SHARED.REGISTRATION."+bt.setDisplayTitle())),e.\u0275\u0275advance(2),e.\u0275\u0275property("fxLayout",bt.isPrescriptionRegistration?"row":"column")("fxLayoutAlign",bt.isPrescriptionRegistration?"start center":"center center"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",bt.isPrescriptionRegistration?"registration__image--prescription":"registration__image")("src",bt.noAvatarImageURL,e.\u0275\u0275sanitizeUrl)("alt",e.\u0275\u0275pipeBind1(6,12,"SHARED.REGISTRATION.USER_IMAGE"))("height",bt.isPrescriptionRegistration?46:100)("width",bt.isPrescriptionRegistration?46:100),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",bt.registerEmail&&!bt.isBusinessRegistration)}}function H(xt,zt){if(1&xt&&(e.\u0275\u0275elementStart(0,"div",38)(1,"div",39),e.\u0275\u0275element(2,"img",40),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",41),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"span",42),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()()),2&xt){const bt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("src",bt.noAvatarImageURL,e.\u0275\u0275sanitizeUrl)("alt",e.\u0275\u0275pipeBind1(3,6,"SHARED.REGISTRATION.USER_IMAGE"))("height",100)("width",100),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,8,"SHARED.REGISTRATION."+bt.setDisplayTitle())),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",bt.registerEmail," ")}}function N(xt,zt){1&xt&&e.\u0275\u0275element(0,"mat-error")}function pe(xt,zt){1&xt&&e.\u0275\u0275element(0,"mat-error")}const de=function(xt){return[xt]};function me(xt,zt){if(1&xt&&(e.\u0275\u0275elementStart(0,"div",47),e.\u0275\u0275element(1,"span",48),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"a",49),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()),2&xt){const bt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(2,3,"SHARED.REGISTRATION.FOR_AUTHENTICATION"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(7,de,bt.authLink)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,5,"SHARED.REGISTRATION.CLICK_HERE"))}}function q(xt,zt){if(1&xt&&e.\u0275\u0275element(0,"drc-registration-warning",50),2&xt){const bt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("userEmail",bt.currentEmail)("correctedEmail",bt.correctedEmail)("businessRegistration",!0)}}function se(xt,zt){if(1&xt){const bt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",4)(1,"div",5)(2,"mat-form-field",43),e.\u0275\u0275listener("focusin",function(){e.\u0275\u0275restoreView(bt);const $e=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView($e.hasTypo=!1)})("focusout",function(){e.\u0275\u0275restoreView(bt);const $e=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView($e.checkForEmailChanges())}),e.\u0275\u0275elementStart(3,"mat-label"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(6,"input",44),e.\u0275\u0275template(7,pe,1,0,"mat-error",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,me,6,9,"div",45),e.\u0275\u0275template(9,q,1,3,"drc-registration-warning",46),e.\u0275\u0275elementEnd()()}if(2&xt){const bt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,4,"SHARED.REGISTRATION.EMAIL")),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControlName",bt.controls.EMAIL),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",bt.isUserAlreadyRegistered()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",bt.hasTypo)}}function ve(xt,zt){1&xt&&e.\u0275\u0275element(0,"mat-error")}function Ee(xt,zt){1&xt&&e.\u0275\u0275element(0,"mat-error")}function Ye(xt,zt){1&xt&&e.\u0275\u0275element(0,"mat-divider",51)}const wt=function(xt){return{"mt-8":xt}};function Wt(xt,zt){if(1&xt&&(e.\u0275\u0275elementStart(0,"div",52),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&xt){const bt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,wt,bt.isCartRegistration)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,"SHARED.REGISTRATION.ERROR.CHOOSE_ONE")," ")}}function Ut(xt,zt){1&xt&&e.\u0275\u0275element(0,"mat-divider",51)}function nt(xt,zt){if(1&xt&&(e.\u0275\u0275elementStart(0,"div",52),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&xt){const bt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,wt,bt.isCartRegistration)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,"SHARED.REGISTRATION.ERROR.CHOOSE_ONE")," ")}}function Zt(xt,zt){1&xt&&(e.\u0275\u0275elementStart(0,"div",53),e.\u0275\u0275element(1,"mat-divider"),e.\u0275\u0275elementEnd())}const Fe=function(xt){return{"registration__button--prescription":xt}};function yt(xt,zt){if(1&xt){const bt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",54)(1,"drc-button",55),e.\u0275\u0275listener("click",function($e){return e.\u0275\u0275restoreView(bt),e.\u0275\u0275nextContext().nextClick(),e.\u0275\u0275resetView($e.preventDefault())}),e.\u0275\u0275elementEnd()()}if(2&xt){const bt=e.\u0275\u0275nextContext();e.\u0275\u0275property("fxHide",bt.shouldHideNextButton),e.\u0275\u0275advance(1),e.\u0275\u0275property("type",bt.drcButtonType.iconAndTextButton)("ngClass",e.\u0275\u0275pureFunction1(7,Fe,bt.isPrescriptionRegistration))("textTranslationKey","SHARED.REGISTRATION.NEXT")("iconPosition",bt.drcButtonIconPosition.right)("color",bt.drcButtonColors.primary)("icon","chevron_right")}}function ie(xt,zt){1&xt&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275element(1,"mat-error")(2,"mat-error"),e.\u0275\u0275elementEnd())}function Ce(xt,zt){if(1&xt&&(e.\u0275\u0275elementStart(0,"div",56),e.\u0275\u0275element(1,"drc-page-spinner"),e.\u0275\u0275elementEnd()),2&xt){const bt=e.\u0275\u0275nextContext();e.\u0275\u0275property("fxHide",bt.shouldHideNextButton)}}const Ie=function(xt,zt){return{"registration__form--alternative":xt,"registration__cart-form":zt}},dt=function(xt){return{"cart-label":xt}},Mt=function(xt){return{invalid:xt}};var en=(()=>{return(xt=en||(en={})).FULL_NAME="fullName",xt.EMAIL="email",xt.PASSWORD="password",xt.CONFIRM_PASSWORD="passwordConfirm",xt.NEWSLETTER="newsletter",xt.MARKETING="marketing",en;var xt})();let vt=(()=>{class xt extends v.c{constructor(bt,At,$e,Xe,Pe,Ve,mt,It){super(),this.formBuilder=bt,this.userService=At,this.translateService=$e,this.messageService=Xe,this.fbPixelTrackingService=Pe,this.googleTrackingService=Ve,this.patientService=mt,this.businessService=It,this.isBusinessRegistration=!1,this.isCartRegistration=!1,this.isPrescriptionRegistration=!1,this.shouldHideNextButton=!1,this.userRegistered=new e.EventEmitter,this.displayLegalDocument=new e.EventEmitter,this.loadingChanges=new e.EventEmitter,this.destroy$=new t.x,this.registerForm=this.formBuilder.build("user.register"),this.controls=en,this.isLoading=!1,this.hasTypo=!1,this.noAvatarImageURL=l.LeP,this.breakpoints=l.u3l,this.window=window,this.privacyPolicyLink=l.eN9,this.cookiesPolicyLink=l.Pd3,this.termsAndConditionsLink=l.ZOI,this.authLink=`/${l.nk1.AUTHENTICATION}`,this.drcButtonColors=l.B6Y,this.drcButtonType=l.L$3,this.drcButtonIconPosition=l.ggF}ngOnInit(){this.processRegisterForm()}ngAfterViewInit(){setTimeout(()=>this.nameRef.nativeElement.focus(),500)}ngOnChanges(bt){bt?.registerEmail?.currentValue?.length&&this.registerForm.get("email").setValue(this.registerEmail)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}processRegisterForm(){this.registerForm.submit$.pipe((0,n.R)(this.destroy$)).subscribe(bt=>{this.isLoading=!0,this.loadingChanges.emit(this.isLoading),this.spinnerTimeout();const At=this.getProfile(bt);At.fullName=bt[en.FULL_NAME],this.registerUser(At,!0,bt)})}getProfile(bt){return new s.n({role:this.isBusinessRegistration?"business_owner":l.FWD.CLIENT,email:bt.email,password:bt.password,fullName:bt.fullName})}registerUser(bt,At,$e){this.userService.register(bt,At,$e.newsletter,$e.marketing,this.isBusinessRegistration).pipe((0,a.q)(1)).subscribe(Xe=>{if(Xe){Xe.profile.name=$e.fullName;const Pe=this.isBusinessRegistration?new y.eL(Xe.profile)._dto():new d.y(Xe.profile)._dto();this.updateProfileDto(Pe,Xe)}else this.getControl(en.EMAIL).valid&&(this.getControl(en.EMAIL).setErrors({alreadyInUse:this.translateService.instant("SHARED.REGISTRATION.ERROR.EMAIL_ALREADY_USED",{email:bt.email})}),this.scrollToAndFocusEmailInput()),this.isLoading=!1,this.loadingChanges.emit(this.isLoading)},()=>{this.messageService.displayMessage(l.CsS.ERROR,"SHARED.REGISTRATION.ERROR.NEW_ACCOUNT_ERROR"),this.isLoading=!1,this.loadingChanges.emit(this.isLoading)})}scrollToAndFocusEmailInput(){const bt=document.getElementById("business-registration-email");bt.focus(),l.VLR.scrollPageTo(bt.clientHeight)}updateProfileDto(bt,At){this.isBusinessRegistration?this.businessService.update(bt).pipe((0,a.q)(1)).subscribe(()=>{this.registerForm.reset(),this.userRegistered.emit(At)}):this.patientService.update(bt).pipe((0,a.q)(1)).subscribe(()=>{this.registerForm.reset(),this.fbPixelTrackingService.completeRegistration(),this.googleTrackingService.newAccount(),this.isLoading=!1,this.loadingChanges.emit(this.isLoading),this.userRegistered.emit(At)})}get isAlternative(){return this.isPrescriptionRegistration||this.isCartRegistration}changeInputType(bt){bt.type=bt.type===l.n$I.PASSWORD?l.n$I.TEXT:l.n$I.PASSWORD}getControlState(bt){const At=this.getControl(bt);return At.invalid&&At.touched}getControl(bt){return this.registerForm.get(bt)}nextClick(){this.registerForm.valid?this.registerForm.submit():this.registerForm.validate()}checkForEmailChanges(){const bt=this.getControl(en.EMAIL);bt.valid&&(this.currentEmail=bt.value,this.correctedEmail=this.checkForTypo(this.currentEmail),this.hasTypo=this.currentEmail!==this.correctedEmail)}getAnimationAndModifierClass(){const bt=this.isAlternative?"registration--alternative ":"";return window.innerWidth<=l.u3l.MOBILE_XL&&this.isCartRegistration?`${bt}animation-in`:bt}spinnerTimeout(){setTimeout(()=>{this.isLoading=!1,this.loadingChanges.emit(this.isLoading)},g.Z.loginSpinnerTimeoutMs)}isUserAlreadyRegistered(){return this.getControl(en.EMAIL).hasError("alreadyInUse")}setDisplayTitle(){let bt="REGISTER_ACCOUNT";return this.isPrescriptionRegistration&&(bt="REGISTRATION_ALTERNATIVE"),this.isBusinessRegistration&&(bt="REGISTER_BUSINESS"),this.isCartRegistration&&(bt="REGISTRATION_CART"),bt}}return xt.\u0275fac=function(bt){return new(bt||xt)(e.\u0275\u0275directiveInject(h.CH),e.\u0275\u0275directiveInject(p.O),e.\u0275\u0275directiveInject(b.sK),e.\u0275\u0275directiveInject(l.vio.SnackbarMessageServiceToken),e.\u0275\u0275directiveInject(l.vio.PixelTrackingService),e.\u0275\u0275directiveInject(l.vio.GoogleTrackingService),e.\u0275\u0275directiveInject(l.vio.PatientServiceToken),e.\u0275\u0275directiveInject(l.vio.BusinessServiceToken))},xt.\u0275cmp=e.\u0275\u0275defineComponent({type:xt,selectors:[["app-registration"]],viewQuery:function(bt,At){if(1&bt&&e.\u0275\u0275viewQuery(R,5),2&bt){let $e;e.\u0275\u0275queryRefresh($e=e.\u0275\u0275loadQuery())&&(At.nameRef=$e.first)}},inputs:{isBusinessRegistration:"isBusinessRegistration",isCartRegistration:"isCartRegistration",isPrescriptionRegistration:"isPrescriptionRegistration",registerEmail:"registerEmail",shouldHideNextButton:"shouldHideNextButton"},outputs:{userRegistered:"userRegistered",displayLegalDocument:"displayLegalDocument",loadingChanges:"loadingChanges"},features:[e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature],decls:91,vars:95,consts:[["fxLayout","column",1,"registration",3,"ngClass","fxLayoutAlign"],["class","registration__header",3,"ngClass",4,"ngIf"],["class","mb-24","fxLayout","column","fxLayoutAlign","center center",4,"ngIf"],["fxFlexAlign","center center",1,"registration__form",3,"ngClass","formGroup","ngSubmit"],[1,"form-group"],["fxLayout","column",1,"mr-0"],["appearance","outline",1,"registration-field"],["id","fullName","matInput","","type","text",3,"formControlName"],["nameInput",""],[4,"drcForAll"],["class","form-group",4,"ngIf"],["appearance","outline",1,"registration-field","registration-field--password"],["matInput","","type","password",3,"formControlName"],["currentPassword",""],["matSuffix","",1,"material-icons","text-muted",3,"click"],[3,"password"],["confirmPassword",""],["class","registration__cart-divider mt-8 mb-16",4,"ngIf"],["fxLayout","column",1,"form-group","form-group--options",3,"ngClass"],[1,"mr-16",3,"formControlName","ngClass"],["color","primary",1,"mr-16","checkbox-text",3,"value"],["color","primary",1,"checkbox-text",3,"value"],["class","mat-error",3,"ngClass",4,"ngIf"],["color","primary",1,"mr-16",3,"value"],["color","primary",3,"value"],[1,"mb-16"],["fxLayout","column",1,"h-100"],[1,"pb-16"],["target","_blank",3,"routerLink"],["class","standard-divider mb-16",4,"ngIf"],[3,"fxHide",4,"ngIf"],[4,"ngIf"],["class","spinner-container",3,"fxHide",4,"ngIf"],[1,"registration__header",3,"ngClass"],[1,"register__profile",3,"fxLayout","fxLayoutAlign"],[3,"ngClass","src","alt","height","width"],["class","break-letters",4,"ngIf"],[1,"break-letters"],["fxLayout","column","fxLayoutAlign","center center",1,"mb-24"],["fxLayout","row","fxLayoutAlign","center center",1,"registration__header-cart"],[1,"registration__image-cart",3,"src","alt","height","width"],[1,"registration__cart-title"],[1,"break-letters","registration__cart-email"],["appearance","outline",1,"registration-field",3,"focusin","focusout"],["matInput","","type","email","id","business-registration-email",3,"formControlName"],["class","registration__back-to-authentication",4,"ngIf"],[3,"userEmail","correctedEmail","businessRegistration",4,"ngIf"],[1,"registration__back-to-authentication"],[3,"innerHTML"],[1,"link",3,"routerLink"],[3,"userEmail","correctedEmail","businessRegistration"],[1,"registration__cart-divider","mt-8","mb-16"],[1,"mat-error",3,"ngClass"],[1,"standard-divider","mb-16"],[3,"fxHide"],[1,"registration__button",3,"type","ngClass","textTranslationKey","iconPosition","color","icon","click"],[1,"spinner-container",3,"fxHide"]],template:function(bt,At){if(1&bt){const $e=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,T,8,16,"div",1),e.\u0275\u0275template(2,H,9,10,"div",2),e.\u0275\u0275elementStart(3,"form",3),e.\u0275\u0275listener("ngSubmit",function(){return At.registerForm.submit()}),e.\u0275\u0275elementStart(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(10,"input",7,8),e.\u0275\u0275template(12,N,1,0,"mat-error",9),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(13,se,10,6,"div",10),e.\u0275\u0275elementStart(14,"div",4)(15,"div",5)(16,"mat-form-field",11)(17,"mat-label"),e.\u0275\u0275text(18),e.\u0275\u0275pipe(19,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(20,"input",12,13),e.\u0275\u0275template(22,ve,1,0,"mat-error",9),e.\u0275\u0275elementStart(23,"i",14),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView($e);const Pe=e.\u0275\u0275reference(21);return e.\u0275\u0275resetView(At.changeInputType(Pe))}),e.\u0275\u0275text(24),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(25,"drc-password-strength-checker",15),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(26,"div",4)(27,"div",5)(28,"mat-form-field",6)(29,"mat-label"),e.\u0275\u0275text(30),e.\u0275\u0275pipe(31,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(32,"input",12,16),e.\u0275\u0275elementStart(34,"i",14),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView($e);const Pe=e.\u0275\u0275reference(33);return e.\u0275\u0275resetView(At.changeInputType(Pe))}),e.\u0275\u0275text(35),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(36,Ee,1,0,"mat-error",9),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(37,Ye,1,0,"mat-divider",17),e.\u0275\u0275elementStart(38,"div",18)(39,"label"),e.\u0275\u0275text(40),e.\u0275\u0275pipe(41,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(42,"mat-radio-group",19)(43,"mat-radio-button",20),e.\u0275\u0275text(44),e.\u0275\u0275pipe(45,"uppercase"),e.\u0275\u0275pipe(46,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(47,"mat-radio-button",21),e.\u0275\u0275text(48),e.\u0275\u0275pipe(49,"uppercase"),e.\u0275\u0275pipe(50,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(51,Wt,3,6,"div",22),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(52,Ut,1,0,"mat-divider",17),e.\u0275\u0275elementStart(53,"div",18)(54,"label"),e.\u0275\u0275text(55),e.\u0275\u0275pipe(56,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(57,"mat-radio-group",19)(58,"mat-radio-button",23),e.\u0275\u0275text(59),e.\u0275\u0275pipe(60,"uppercase"),e.\u0275\u0275pipe(61,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(62,"mat-radio-button",24),e.\u0275\u0275text(63),e.\u0275\u0275pipe(64,"uppercase"),e.\u0275\u0275pipe(65,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(66,nt,3,6,"div",22),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(67,"div",25),e.\u0275\u0275element(68,"mat-divider"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(69,"div",26)(70,"p",27)(71,"span"),e.\u0275\u0275text(72),e.\u0275\u0275pipe(73,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(74,"a",28),e.\u0275\u0275text(75),e.\u0275\u0275pipe(76,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(77,"a",28),e.\u0275\u0275text(78),e.\u0275\u0275pipe(79,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(80,"span"),e.\u0275\u0275text(81),e.\u0275\u0275pipe(82,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(83,"a",28),e.\u0275\u0275text(84),e.\u0275\u0275pipe(85,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(86,"div"),e.\u0275\u0275template(87,Zt,2,0,"div",29),e.\u0275\u0275template(88,yt,2,9,"div",30),e.\u0275\u0275template(89,ie,3,0,"div",31),e.\u0275\u0275template(90,Ce,2,1,"div",32),e.\u0275\u0275elementEnd()()()()}if(2&bt){const $e=e.\u0275\u0275reference(21),Xe=e.\u0275\u0275reference(33);e.\u0275\u0275property("ngClass",At.getAnimationAndModifierClass())("fxLayoutAlign",At.isPrescriptionRegistration?"start":"center center"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!At.isCartRegistration),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",At.isCartRegistration),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(84,Ie,At.isAlternative,At.isCartRegistration))("formGroup",At.registerForm),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(9,48,"SHARED.REGISTRATION."+(At.isBusinessRegistration?"BUSINESS_NAME":"FULL_NAME"))," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControlName",At.controls.FULL_NAME),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",At.isBusinessRegistration),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(19,50,"SHARED.REGISTRATION.CHOOSE_PASSWORD")),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControlName",At.controls.PASSWORD),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ","password"===$e.type?"visibility":"visibility_off"," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("password",$e.value),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(31,52,"SHARED.REGISTRATION.CONFIRM_PASSWORD")),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControlName",At.controls.CONFIRM_PASSWORD),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ","password"===Xe.type?"visibility":"visibility_off"," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",At.isCartRegistration),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(87,dt,At.isCartRegistration)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(41,54,"SHARED.REGISTRATION.KEEP_ME_UPDATED")),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControlName",At.controls.NEWSLETTER)("ngClass",e.\u0275\u0275pureFunction1(89,Mt,At.getControlState(At.controls.NEWSLETTER))),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",!0),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(45,56,e.\u0275\u0275pipeBind1(46,58,"SHARED.REGISTRATION.YES"))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("value",!1),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(49,60,e.\u0275\u0275pipeBind1(50,62,"SHARED.REGISTRATION.NO"))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",At.getControlState(At.controls.NEWSLETTER)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",At.isCartRegistration),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(91,dt,At.isCartRegistration)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(56,64,"SHARED.REGISTRATION.NEWSLETTER")),e.\u0275\u0275advance(2),e.\u0275\u0275property("formControlName",At.controls.MARKETING)("ngClass",e.\u0275\u0275pureFunction1(93,Mt,At.getControlState(At.controls.MARKETING))),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",!0),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(60,66,e.\u0275\u0275pipeBind1(61,68,"SHARED.REGISTRATION.YES"))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("value",!1),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(64,70,e.\u0275\u0275pipeBind1(65,72,"SHARED.REGISTRATION.NO"))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",At.getControlState(At.controls.MARKETING)),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(73,74,"SHARED.LOGIN.TERMS_1")),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",At.termsAndConditionsLink),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(76,76,"SHARED.LOGIN.TERMS_2")),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",At.privacyPolicyLink),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(79,78,"SHARED.LOGIN.TERMS_3")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(82,80,"SHARED.LOGIN.TERMS_4")),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",At.cookiesPolicyLink),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(85,82,"SHARED.LOGIN.TERMS_5")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!At.isCartRegistration&&!At.isPrescriptionRegistration),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!At.isLoading),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",At.registerForm.isSubmitted&&!At.registerForm.valid),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",At.isLoading)}},dependencies:[S.K,E._,D.g,A.r,P.b,B.NgClass,B.NgIf,V.rH,X.xw,X.Wh,X.XD,re.b8,re.oO,Q.nI,Q.v_,Q.$V,Q.nX,ae.k0,K.d,k.OY,k.vy,$._Y,$.Fj,$.JJ,$.JL,$.sg,$.u,j.b,B.UpperCasePipe,b.X$],styles:[".registration[_ngcontent-%COMP%]{padding-top:16px;width:100%}.registration[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#000}.registration__header[_ngcontent-%COMP%]{margin-bottom:16px;padding-top:0;width:100%}.registration__header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:16px;text-align:center}.registration__header--prescription[_ngcontent-%COMP%]{max-width:min(100%,400px)}.registration__header--prescription[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:8px;text-align:start}.registration__header-cart[_ngcontent-%COMP%]{margin-bottom:8px;padding-top:0;width:100%}.registration__cart-title[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.registration__cart-email[_ngcontent-%COMP%]{font-size:14px}.registration__image[_ngcontent-%COMP%]{margin-bottom:8px}.registration__image--prescription[_ngcontent-%COMP%]{margin-right:8px}.registration__form[_ngcontent-%COMP%]{width:100%}.registration__form--alternative[_ngcontent-%COMP%]{max-width:min(100%,400px)}.registration__back-to-authentication[_ngcontent-%COMP%]{margin:-16px 0 16px;z-index:1}"]}),xt})()},9566:(oe,x,i)=>{"use strict";i.d(x,{F:()=>t});var e=i(28555),n=(()=>((n||(n={})).SetImportStatus="[Business Stock] Set import status",n))();const t={setImportStatus:(0,e.PH)(n.SetImportStatus,(0,e.Ky)())}},57613:(oe,x,i)=>{"use strict";i.d(x,{A:()=>p});var e=i(28555),n=(()=>{return(u=n||(n={})).SetShouldRedirectToCustomerLoyalty="[Business Customer Loyalty] Set should redirect to customer loyalty",u.OpenRedirectToCustomerLoyaltyDialog="[Business Customer Loyalty] Open redirect to customer loyalty dialog",u.CloseRedirectToCustomerLoyaltyDialog="[Business Customer Loyalty] Close redirect to customer loyalty dialog",u.CheckCopaymentPercent="[Business Customer Loyalty] Check copayment percent",u.CheckCopaymentPercentSuccess="[Business Customer Loyalty] Check copayment percent success",u.CheckCopaymentPercentFail="[Business Customer Loyalty] Check copayment percent fail",n;var u})();const a=(0,e.PH)(n.CheckCopaymentPercent,(0,e.Ky)()),t=(0,e.PH)(n.CheckCopaymentPercentSuccess),l=(0,e.PH)(n.CheckCopaymentPercentFail),h=(0,e.PH)(n.SetShouldRedirectToCustomerLoyalty,(0,e.Ky)()),p={checkCopaymentPercent:a,checkCopaymentPercentSuccess:t,checkCopaymentPercentFail:l,openRedirectToCustomerLoyaltyDialog:(0,e.PH)(n.OpenRedirectToCustomerLoyaltyDialog,(0,e.Ky)()),closeRedirectToCustomerLoyaltyDialog:(0,e.PH)(n.CloseRedirectToCustomerLoyaltyDialog),setShouldRedirectToCustomerLoyalty:h}},10734:(oe,x,i)=>{"use strict";i.d(x,{S5:()=>l,yc:()=>a,zb:()=>t});var e=i(28555);const n=(0,e.ZF)("shared"),a=(0,e.P1)(n,h=>h.businessCustomerLoyaltyState.shouldRedirectToCustomerLoyalty),t=(0,e.P1)(n,h=>h.businessCustomerLoyaltyState.shouldOpenRedirectToCustomerLoyaltyDialog),l=(0,e.P1)(n,h=>h.businessCustomerLoyaltyState.checkedInTime)},28322:(oe,x,i)=>{"use strict";i.d(x,{T:()=>D});var e=i(35559),n=i(28918),a=i(94650),t=i(17366),l=i(36895),h=i(44850),s=i(36667),d=i(89383);const p=function(A,P){return{city:A,surroundingsText:P}};function u(A,P){if(1&A&&(a.\u0275\u0275elementStart(0,"span",6),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275elementEnd()),2&A){const B=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind2(2,1,"PAGES.BUSINESS.CUSTOMER_LOYALTY.MAP_TEXT_2",a.\u0275\u0275pureFunction2(4,p,B.data.city,B.data.surroundingsText))," ")}}const g=function(A,P){return{containerPrice:A,waitingTime:P}},v=function(A){return{price:A}};function y(A,P){if(1&A&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"span",5),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"span",6),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(7,"span",6),a.\u0275\u0275text(8),a.\u0275\u0275pipe(9,"translate"),a.\u0275\u0275elementStart(10,"span"),a.\u0275\u0275text(11),a.\u0275\u0275pipe(12,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(13,u,3,7,"span",27),a.\u0275\u0275element(14,"mat-divider",8),a.\u0275\u0275elementContainerEnd()),2&A){const B=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(3,5,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.ABOUT_MAP_SIMULATION")),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,7,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.SIMULATION_INFO"),""),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind2(9,9,"PAGES.BUSINESS.CUSTOMER_LOYALTY.MAP_TEXT_1",a.\u0275\u0275pureFunction2(15,g,B.data.containerPrice,B.data.waitingTime))," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1("(",a.\u0275\u0275pipeBind2(12,12,B.getCurrency(B.data.waitingPrice),a.\u0275\u0275pureFunction1(18,v,B.data.waitingPrice/100)),")"),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",B.data.city)}}const b=function(A){return{value:A}},S=function(){return{value:1}},E=function(){return{value:2}};let D=(()=>{class A{constructor(B,V){this.dialogRef=B,this.data=V,this.paletteOptions=n.B6Y,this.iconPositions=n.ggF,this.buttonTypes=n.L$3,this.carmen=n.VLR,this.window=window,this.breakpoints=n.u3l}close(){this.dialogRef.close()}getCurrency(B){return 100===B?"PAGES.PROFILE.CART.CURRENCY_SINGULAR":"PAGES.PROFILE.CART.CURRENCY_PLURAL"}}return A.\u0275fac=function(B){return new(B||A)(a.\u0275\u0275directiveInject(e.hV),a.\u0275\u0275directiveInject(e.eJ))},A.\u0275cmp=a.\u0275\u0275defineComponent({type:A,selectors:[["app-transport-voucher-info-dialog"]],decls:84,vars:90,consts:[[1,"voucher-info-dialog"],[1,"voucher-info-dialog__header",3,"click"],[1,"material-icons"],[1,"mt-16","voucher-info-dialog__full-divider"],[1,"voucher-info-dialog__content"],[1,"voucher-info-dialog__title","mb-10"],[1,"voucher-info-dialog__info"],[1,"voucher-info-dialog__info",3,"innerHTML"],[1,"mb-16","mt-16"],[4,"ngIf"],[1,"voucher-info-dialog__info","voucher-info-dialog__info--red","text-bold"],[1,"mt-18","voucher-info-dialog__gray-wrapper"],[1,"voucher-info-dialog__example-wrapper"],[1,"voucher-info-dialog__row","mb-16"],[1,"ml-auto",3,"innerHTML"],[1,"voucher-info-dialog__horizontal-wrapper"],[1,"material-icons","mr-6","voucher-info-dialog__delivery-icon"],[1,"voucher-info-dialog__text--green"],[1,"ml-auto","voucher-info-dialog__text--green"],[1,"voucher-info-dialog__row"],[1,"ml-auto","voucher-info-dialog--fit-content"],[1,"u-strike-through"],[1,"text-bold","voucher-info-dialog__strikethrough-wrapper",3,"innerHTML"],[1,"ml-4","text-bold","voucher-info-dialog__text--green","voucher-info-dialog--fit-content",3,"innerHTML"],[1,"voucher-info-dialog__footer","mt-auto","drc-button-width-fit-content-wrapper"],[1,"mb-16","voucher-info-dialog__full-divider"],[3,"color","type","icon","iconPosition","textTranslationKey","click"],["class","voucher-info-dialog__info",4,"ngIf"]],template:function(B,V){1&B&&(a.\u0275\u0275elementStart(0,"div",0)(1,"div",1),a.\u0275\u0275listener("click",function(){return V.close()}),a.\u0275\u0275elementStart(2,"i",2),a.\u0275\u0275text(3,"close"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(4,"mat-divider",3),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"div",4)(6,"span",5),a.\u0275\u0275text(7),a.\u0275\u0275pipe(8,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(9,"span",6),a.\u0275\u0275text(10),a.\u0275\u0275pipe(11,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(12,"span",7),a.\u0275\u0275pipe(13,"translate"),a.\u0275\u0275element(14,"mat-divider",8),a.\u0275\u0275template(15,y,15,20,"ng-container",9),a.\u0275\u0275elementStart(16,"span",5),a.\u0275\u0275text(17),a.\u0275\u0275pipe(18,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(19,"span",7),a.\u0275\u0275pipe(20,"translate"),a.\u0275\u0275elementStart(21,"span",10),a.\u0275\u0275text(22),a.\u0275\u0275pipe(23,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(24,"mat-divider",8),a.\u0275\u0275elementStart(25,"span",5),a.\u0275\u0275text(26),a.\u0275\u0275pipe(27,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(28,"span",6),a.\u0275\u0275text(29),a.\u0275\u0275pipe(30,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(31,"span",6),a.\u0275\u0275text(32),a.\u0275\u0275pipe(33,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(34,"div",11)(35,"div",12)(36,"div",13)(37,"span"),a.\u0275\u0275text(38),a.\u0275\u0275pipe(39,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(40,"span",14),a.\u0275\u0275pipe(41,"translate"),a.\u0275\u0275pipe(42,"price"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(43,"div",13)(44,"span"),a.\u0275\u0275text(45),a.\u0275\u0275pipe(46,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(47,"span",14),a.\u0275\u0275pipe(48,"translate"),a.\u0275\u0275pipe(49,"price"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(50,"div",13)(51,"div",15)(52,"i",16),a.\u0275\u0275text(53,"local_shipping"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(54,"strong"),a.\u0275\u0275text(55),a.\u0275\u0275pipe(56,"translate"),a.\u0275\u0275elementStart(57,"strong",17),a.\u0275\u0275text(58),a.\u0275\u0275pipe(59,"translate"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(60,"strong",18),a.\u0275\u0275text(61),a.\u0275\u0275pipe(62,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(63,"div",19)(64,"div",15)(65,"i",16),a.\u0275\u0275text(66,"local_shipping"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(67,"strong"),a.\u0275\u0275text(68),a.\u0275\u0275pipe(69,"translate"),a.\u0275\u0275elementStart(70,"strong",17),a.\u0275\u0275text(71),a.\u0275\u0275pipe(72,"translate"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(73,"div",20),a.\u0275\u0275element(74,"div",21)(75,"div",22),a.\u0275\u0275pipe(76,"translate"),a.\u0275\u0275pipe(77,"price"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(78,"div",23),a.\u0275\u0275pipe(79,"translate"),a.\u0275\u0275pipe(80,"price"),a.\u0275\u0275elementEnd()()()(),a.\u0275\u0275elementStart(81,"div",24),a.\u0275\u0275element(82,"mat-divider",25),a.\u0275\u0275elementStart(83,"drc-button",26),a.\u0275\u0275listener("click",function(){return V.close()}),a.\u0275\u0275elementEnd()()()),2&B&&(a.\u0275\u0275advance(7),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(8,26,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.TITLE")),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(11,28,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.SECTION_PURPOSE")," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind1(13,30,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.DRCARMEN_NOT_TAKING_COMMISION"),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",V.window.innerWidth<=V.breakpoints.DESKTOP_S),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(18,32,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.HOW_VOUCHER_IS_COMPUTED")),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind1(20,34,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.HOW_VOUCHER_IS_COMPUTED_RESPONSE"),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(23,36,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.WARNING")),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(27,38,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.HOW_CLIENT_SEES")),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(30,40,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.HOW_CLIENT_SEES_RESPONSE")),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(33,42,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.SEE_EXAMPLE")),a.\u0275\u0275advance(6),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(39,44,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.SHOPPING")),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind2(41,46,V.carmen.getCurrencyTranslationKey(8500),a.\u0275\u0275pureFunction1(80,b,a.\u0275\u0275pipeBind1(42,49,8500))),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(5),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(46,51,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.DRC_SERVICES")),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind2(48,53,V.carmen.getCurrencyTranslationKey(400),a.\u0275\u0275pureFunction1(82,b,a.\u0275\u0275pipeBind1(49,56,400))),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(8),a.\u0275\u0275textInterpolate1("",a.\u0275\u0275pipeBind1(56,58,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.DELIVERY")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1("",a.\u0275\u0275pipeBind2(59,60,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.BUSINESS_NO",a.\u0275\u0275pureFunction0(84,S))," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(62,63,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.FREE")),a.\u0275\u0275advance(7),a.\u0275\u0275textInterpolate1("",a.\u0275\u0275pipeBind1(69,65,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.DELIVERY")," "),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind2(72,67,"PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.BUSINESS_NO",a.\u0275\u0275pureFunction0(85,E))," "),a.\u0275\u0275advance(4),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind2(76,70,V.carmen.getCurrencyTranslationKey(1850),a.\u0275\u0275pureFunction1(86,b,a.\u0275\u0275pipeBind1(77,73,1850))),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(3),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind2(79,75,V.carmen.getCurrencyTranslationKey(925),a.\u0275\u0275pureFunction1(88,b,a.\u0275\u0275pipeBind1(80,78,925))),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(5),a.\u0275\u0275property("color",V.paletteOptions.primary)("type",V.buttonTypes.iconAndTextButton)("icon","check")("iconPosition",V.iconPositions.left)("textTranslationKey","PAGES.BUSINESS.SUBVENTION_INFO_DIALOG.I_UNDERSTAND"))},dependencies:[t.r,l.NgIf,h.d,s.d,d.X$]}),A})()},53877:(oe,x,i)=>{"use strict";i.d(x,{U:()=>e});const e="carousel"},20080:(oe,x,i)=>{"use strict";i.d(x,{q:()=>un});var e=i(35559),n=i(94650),a=i(77579),t=i(95698),l=i(63900),h=i(28918),s=i(9116),d=i(17366),p=i(44850),u=i(36895),g=i(89383);const v=function(rn){return{new_location:rn}};let y=(()=>{class rn{constructor(Nt,Rn,Wn){this.dialogRef=Nt,this.data=Rn,this.router=Wn,this.buttonTypes=h.L$3,this.iconsPositions=h.ggF}ngOnInit(){this.location=this.data.location}confirm(){if(this.router.url.includes(h.Z2M.PRODUCTS)){const Nt=this.router.url.split("/")[2].split("?")[0];"cautare"!==Nt&&this.router.navigate([`${h.Z2M.PRODUCTS}/${Nt}`])}this.dialogRef.close({confirmed:!0})}}return rn.\u0275fac=function(Nt){return new(Nt||rn)(n.\u0275\u0275directiveInject(e.hV),n.\u0275\u0275directiveInject(e.eJ),n.\u0275\u0275directiveInject(s.F0))},rn.\u0275cmp=n.\u0275\u0275defineComponent({type:rn,selectors:[["app-location-warning-dialog"]],decls:26,vars:25,consts:[[1,"app","carmen"],[1,"base-panel-class"],[1,"container-header"],[1,"standard-divider"],[1,"dialog__content"],[1,"material-icons","material-icons--attention","mr-4"],[3,"innerHtml"],[1,"text-warn-color"],[1,"mt-16","confirm-button",3,"type","color","iconPosition","textTranslationKey","icon","click"]],template:function(Nt,Rn){1&Nt&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275element(2,"div",2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"div",3),n.\u0275\u0275element(4,"mat-divider"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"div",4)(6,"h2"),n.\u0275\u0275text(7),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"span")(10,"i",5),n.\u0275\u0275text(11,"error"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(12,"b"),n.\u0275\u0275text(13),n.\u0275\u0275pipe(14,"uppercase"),n.\u0275\u0275pipe(15,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275text(16," \xa0 "),n.\u0275\u0275element(17,"span",6),n.\u0275\u0275pipe(18,"translate"),n.\u0275\u0275text(19," \xa0 "),n.\u0275\u0275elementStart(20,"b",7),n.\u0275\u0275text(21),n.\u0275\u0275pipe(22,"translate"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(23,"div",3),n.\u0275\u0275element(24,"mat-divider"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(25,"drc-button",8),n.\u0275\u0275listener("click",function(){return Rn.confirm()}),n.\u0275\u0275elementEnd()()),2&Nt&&(n.\u0275\u0275advance(7),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind2(8,9,"SHARED.USER_LOCATION.DELIVERY_CHANGE_TITLE",n.\u0275\u0275pureFunction1(21,v,Rn.location))),n.\u0275\u0275advance(6),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(14,12,n.\u0275\u0275pipeBind1(15,14,"SHARED.USER_LOCATION.ATTENTION"))),n.\u0275\u0275advance(4),n.\u0275\u0275property("innerHtml",n.\u0275\u0275pipeBind2(18,16,"SHARED.USER_LOCATION.CONFIRM_CHANGE_INFO",n.\u0275\u0275pureFunction1(23,v,Rn.location)),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(22,19,"SHARED.USER_LOCATION.CONFIRM_CHANGE_TEXT_2")),n.\u0275\u0275advance(4),n.\u0275\u0275property("type",Rn.buttonTypes.iconAndTextButton)("color","primary")("iconPosition",Rn.iconsPositions.left)("textTranslationKey","SHARED.USER_LOCATION.CONFIRM_BUTTON")("icon","location_on"))},dependencies:[d.r,p.d,u.UpperCasePipe,g.X$],styles:[".dialog__content[_ngcontent-%COMP%]{margin-bottom:24px}.dialog__content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:19px;margin-top:16px;margin-bottom:28px}.dialog__content[_ngcontent-%COMP%]   i.material-icons--attention[_ngcontent-%COMP%]{font-size:21px;color:#e42027;vertical-align:middle}.close-button-container[_ngcontent-%COMP%]{padding:0 8px}.confirm-button[_ngcontent-%COMP%]{display:block;width:-moz-fit-content;width:fit-content}@media (max-width: 420px){.confirm-button[_ngcontent-%COMP%]{width:100%}}"]}),rn})();var b=i(84423),S=i(52873),E=i(1576),D=i(55829),A=i(47462),P=i(3611),B=i(36667);const V=function(rn){return{value:rn}};var re=(()=>{return(rn=re||(re={})).SELECTED_OFFER="SELECTED_OFFER",rn.EXISTING_PRODUCT="EXISTING_PRODUCT",re;var rn})();let Q=(()=>{class rn{constructor(Nt,Rn,Wn,ji){this.data=Nt,this.dialogRef=Rn,this.appService=Wn,this.messageService=ji,this.carmen=h.VLR,this.buttonType=h.L$3,this.iconPosition=h.ggF,this.offerKey=re,this.paletteOptions=h.B6Y,this.existingProduct=this.data.existingProduct,this.selectedOffer=this.data.selectedOffer.offer,this.appService.getBusinessById(this.existingProduct.businessExternalId).pipe((0,t.q)(1)).subscribe(ir=>this.existingProductBusinessName=ir.name)}displayMessageForNoStock(Nt){if(0===Nt)return this.messageService.displayMessage(h.CsS.ERROR,"SHARED.PRODUCT.PRODUCT_SELECTOR_DIALOG.OUT_OF_STOCK",{value:this.selectedOffer.stock})}selectOffer(Nt){Nt===this.offerKey.SELECTED_OFFER?(this.displayMessageForNoStock(this.selectedOffer.stock),this.dialogRef.close({newOffer:this.selectedOffer,newQuantity:1,shouldStopSpinner:!1})):Nt===this.offerKey.EXISTING_PRODUCT&&(this.displayMessageForNoStock(this.existingProduct.stock),this.dialogRef.close({shouldStopSpinner:!0}))}}return rn.\u0275fac=function(Nt){return new(Nt||rn)(n.\u0275\u0275directiveInject(e.eJ),n.\u0275\u0275directiveInject(e.hV),n.\u0275\u0275directiveInject(S.z),n.\u0275\u0275directiveInject(h.vio.SnackbarMessageServiceToken))},rn.\u0275cmp=n.\u0275\u0275defineComponent({type:rn,selectors:[["app-product-selector-dialog"]],decls:43,vars:45,consts:[[1,"container-header"],["mat-dialog-close","",1,"close-button-container"],["fxLayoutAlign","center center",1,"material-icons","close-icon"],[1,"full-divider"],["fxLayout","row","fxLayoutAlign","start center",1,"title-container"],[1,"material-icons","shop-icon"],[1,"break-words","title"],["fxLayout","row","fxLayout.lt-sm","column","ngClass.lt-sm","centered","fxLayoutGap","8px"],["fxLayout","column","fxFlex","100",1,"offer"],["fxLayout","row",1,"mb-24"],[1,"offer__image",3,"src","alt"],["fxLayout","column","fxLayoutAlign","center start",1,"offer__info"],[1,"offer__name",3,"matTooltip"],[1,"offer__business-name",3,"matTooltip"],[1,"offer__price"],["fxFlex",""],[3,"innerHTML"],[3,"type","icon","color","iconPosition","textTranslationKey","click"]],template:function(Nt,Rn){1&Nt&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"i",2),n.\u0275\u0275text(3,"close"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(4,"div",3),n.\u0275\u0275element(5,"mat-divider"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"div",4)(7,"i",5),n.\u0275\u0275text(8,"shopping_cart"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"span",6),n.\u0275\u0275text(10),n.\u0275\u0275pipe(11,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(12,"div",7)(13,"div",8)(14,"div",9),n.\u0275\u0275element(15,"img",10),n.\u0275\u0275pipe(16,"translate"),n.\u0275\u0275elementStart(17,"div",11)(18,"div",12),n.\u0275\u0275text(19),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(20,"strong",13),n.\u0275\u0275text(21),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(22,"div",14)(23,"div",15),n.\u0275\u0275element(24,"strong",16),n.\u0275\u0275pipe(25,"translate"),n.\u0275\u0275pipe(26,"price"),n.\u0275\u0275elementEnd()()()(),n.\u0275\u0275elementStart(27,"drc-button",17),n.\u0275\u0275listener("click",function(){return Rn.selectOffer(Rn.offerKey.EXISTING_PRODUCT)}),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(28,"div",8)(29,"div",9),n.\u0275\u0275element(30,"img",10),n.\u0275\u0275pipe(31,"translate"),n.\u0275\u0275elementStart(32,"div",11)(33,"div",12),n.\u0275\u0275text(34),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(35,"strong",13),n.\u0275\u0275text(36),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(37,"div",14)(38,"div",15),n.\u0275\u0275element(39,"strong",16),n.\u0275\u0275pipe(40,"translate"),n.\u0275\u0275pipe(41,"price"),n.\u0275\u0275elementEnd()()()(),n.\u0275\u0275elementStart(42,"drc-button",17),n.\u0275\u0275listener("click",function(){return Rn.selectOffer(Rn.offerKey.SELECTED_OFFER)}),n.\u0275\u0275elementEnd()()()),2&Nt&&(n.\u0275\u0275advance(10),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(11,25,"PAGES.PRODUCTS.PRODUCT_OFFER_SELECTOR.TITLE"),""),n.\u0275\u0275advance(5),n.\u0275\u0275property("src",Rn.existingProduct.photoUrl,n.\u0275\u0275sanitizeUrl)("alt",n.\u0275\u0275pipeBind1(16,27,"PAGES.PRODUCTS.PRODUCT_OFFER_SELECTOR.OFFER_ALT")),n.\u0275\u0275advance(3),n.\u0275\u0275property("matTooltip",Rn.selectedOffer.drugName),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(Rn.selectedOffer.drugName),n.\u0275\u0275advance(1),n.\u0275\u0275property("matTooltip",Rn.existingProductBusinessName),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Rn.existingProductBusinessName," "),n.\u0275\u0275advance(3),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind2(25,29,Rn.carmen.getCurrencyTranslationKey(Rn.existingProduct.price),n.\u0275\u0275pureFunction1(41,V,n.\u0275\u0275pipeBind1(26,32,Rn.existingProduct.price))),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(3),n.\u0275\u0275property("type",Rn.buttonType.iconAndTextButton)("icon","done")("color",Rn.paletteOptions.primary)("iconPosition",Rn.iconPosition.left)("textTranslationKey","PAGES.PRODUCTS.PRODUCT_OFFER_SELECTOR.KEEP_BUTTON"),n.\u0275\u0275advance(3),n.\u0275\u0275property("src",Rn.selectedOffer.packaging.images[0].thumbnail,n.\u0275\u0275sanitizeUrl)("alt",n.\u0275\u0275pipeBind1(31,34,"PAGES.PRODUCTS.PRODUCT_OFFER_SELECTOR.OFFER_ALT")),n.\u0275\u0275advance(3),n.\u0275\u0275property("matTooltip",Rn.selectedOffer.drugName),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(Rn.selectedOffer.drugName),n.\u0275\u0275advance(1),n.\u0275\u0275property("matTooltip",Rn.selectedOffer.businessName),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Rn.selectedOffer.businessName," "),n.\u0275\u0275advance(3),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind2(40,36,Rn.carmen.getCurrencyTranslationKey(Rn.selectedOffer.price),n.\u0275\u0275pureFunction1(43,V,n.\u0275\u0275pipeBind1(41,39,Rn.selectedOffer.price))),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(3),n.\u0275\u0275property("type",Rn.buttonType.iconAndTextButton)("icon","loop")("color",Rn.paletteOptions.lightgray)("iconPosition",Rn.iconPosition.left)("textTranslationKey","PAGES.PRODUCTS.PRODUCT_OFFER_SELECTOR.CHANGE_BUTTON"))},dependencies:[d.r,E.xw,E.SQ,E.Wh,E.yH,D.oO,e.aO,p.d,A.Kd,P.b,B.d,g.X$],styles:[".offer[_ngcontent-%COMP%]{overflow:hidden;padding:16px;background-color:#f4f5f7;border-radius:8px}.offer__info[_ngcontent-%COMP%]{max-width:calc(100% - 83px)}.offer__image[_ngcontent-%COMP%]{border-radius:0!important;height:75px;width:75px;margin-right:8px}.offer__name[_ngcontent-%COMP%]{max-width:100%;font-size:14px;line-height:19px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:700}.offer__business-name[_ngcontent-%COMP%]{color:#00853b;line-height:20px;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%}.offer__price[_ngcontent-%COMP%]{font-size:17px;line-height:23px;letter-spacing:.5px;font-weight:700}.title-container[_ngcontent-%COMP%]{margin:16px 0 24px}.title-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:22px;text-align:left;font-weight:700;line-height:29px;color:#242424;letter-spacing:0}.title-container[_ngcontent-%COMP%]   .shop-icon[_ngcontent-%COMP%]{color:#00853b;margin-right:8px}.close-button-container[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{width:14px;height:14px;font-weight:700}.full-divider[_ngcontent-%COMP%]{margin:0 -16px}.centered[_ngcontent-%COMP%]{justify-content:center}.button[_ngcontent-%COMP%]{max-width:140px}"]}),rn})();var ae=i(15861),K=i(39646),k=i(54004),$=i(70262),j=i(82722),R=i(18505),U=i(86099),le=i(47423),T=i(50076);const H=(0,le.fo)("Camera",{web:()=>i.e(954).then(i.bind(i,63954)).then(rn=>new rn.CameraWeb)});var N=i(29113),pe=i(16346),de=i(17805),me=i(77044),q=i(55738),se=i(22539),ve=i(81208),Ee=i(11481),Ye=i(92972),wt=i(99818),Wt=i(97392);let Ut=(()=>{class rn{constructor(Nt,Rn){this.sanitizer=Nt,this.snackBar=Rn,this.saveNewImage=new n.EventEmitter,this.imageBase64="",this.transform={},this.canvasRotation=0,this.cropperSettings={format:"jpeg",aspectRatio:4/3,maintainAspectRatio:!1,resizeToWidth:1280,cropperMinWidth:400,imageQuality:80,position:null},this.carmen=h.VLR,this.checkFileType()}ngOnInit(){this.originalFile=this.inputFile,this.readFile()}ngOnChanges(Nt){Nt.inputFile&&(this.inputFile=Nt.inputFile.currentValue,this.checkFileType())}checkFileType(){this.inputFile&&!["image/jpeg","image/png","image/jpg"].includes(this.inputFile.type)&&this.snackBar.open("Extensia fisierului nu este acceptata!","\xd7",{panelClass:"error",verticalPosition:"bottom",duration:3500})}readFile(){const Nt=new FileReader;Nt.onloadend=Rn=>{this.image={data:Rn.target.result,url:this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(this.inputFile)),file:this.inputFile},this.imageBase64=this.image.data},Nt.readAsDataURL(this.inputFile)}rotate(Nt){this.imageCropper.autoCrop=!0,"left"===Nt?this.canvasRotation--:this.canvasRotation++}flip(Nt){this.imageCropper.autoCrop=!0,"horizontal"===Nt?this.flipHorizontally():this.flipVertically()}imageCropped(Nt){this.image.data=Nt.base64;const Rn=this.carmen.convertBase64ToBlob(this.image.data);this.image.file=new File([Rn],this.originalFile.name,{type:this.originalFile.type}),this.image.url=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(this.image.file))}emitNewCroppedImage(){this.saveNewImage.emit(this.image)}flipHorizontally(){this.transform={...this.transform,flipH:!this.transform.flipH}}flipVertically(){this.transform={...this.transform,flipV:!this.transform.flipV}}}return rn.\u0275fac=function(Nt){return new(Nt||rn)(n.\u0275\u0275directiveInject(Ee.DomSanitizer),n.\u0275\u0275directiveInject(Ye.pl))},rn.\u0275cmp=n.\u0275\u0275defineComponent({type:rn,selectors:[["app-new-image-editor"]],viewQuery:function(Nt,Rn){if(1&Nt&&n.\u0275\u0275viewQuery(ve.ap,7),2&Nt){let Wn;n.\u0275\u0275queryRefresh(Wn=n.\u0275\u0275loadQuery())&&(Rn.imageCropper=Wn.first)}},inputs:{inputFile:"inputFile"},outputs:{saveNewImage:"saveNewImage"},features:[n.\u0275\u0275NgOnChangesFeature],decls:16,vars:12,consts:[["fxLayout","column",1,"cropper-container"],["fxLayout","row","fxLayoutAlign","center center"],[3,"imageBase64","transform","canvasRotation","imageChangedEvent","autoCrop","cropperMinWidth","format","imageQuality","aspectRatio","maintainAspectRatio","onlyScaleDown","resizeToWidth","imageCropped"],["fxLayout","row","fxLayoutAlign","center start",1,"mt-16","mb-16","w-100"],["mat-icon-button","","matTooltip","Oglinde\u0219te (orizontal)","tabindex","-1",3,"click"],["mat-icon-button","","matTooltip","Oglinde\u0219te (vertical)","tabindex","-1",3,"click"],[1,"rotate-90"],["mat-icon-button","","matTooltip","Rote\u0219te spre dreapta","tabindex","-1",3,"click"],["mat-icon-button","","matTooltip","Rote\u0219te spre st\xe2nga","tabindex","-1",3,"click"]],template:function(Nt,Rn){1&Nt&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"image-cropper",2),n.\u0275\u0275listener("imageCropped",function(ji){return Rn.imageCropped(ji)}),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(3,"div",3)(4,"button",4),n.\u0275\u0275listener("click",function(){return Rn.flip("horizontal")}),n.\u0275\u0275elementStart(5,"mat-icon"),n.\u0275\u0275text(6,"flip"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(7,"button",5),n.\u0275\u0275listener("click",function(){return Rn.flip("vertical")}),n.\u0275\u0275elementStart(8,"mat-icon",6),n.\u0275\u0275text(9,"flip"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(10,"button",7),n.\u0275\u0275listener("click",function(){return Rn.rotate("right")}),n.\u0275\u0275elementStart(11,"mat-icon"),n.\u0275\u0275text(12,"rotate_right"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(13,"button",8),n.\u0275\u0275listener("click",function(){return Rn.rotate("left")}),n.\u0275\u0275elementStart(14,"mat-icon"),n.\u0275\u0275text(15,"rotate_left"),n.\u0275\u0275elementEnd()()()()),2&Nt&&(n.\u0275\u0275advance(2),n.\u0275\u0275property("imageBase64",Rn.imageBase64)("transform",Rn.transform)("canvasRotation",Rn.canvasRotation)("imageChangedEvent",Rn.inputFile)("autoCrop",!1)("cropperMinWidth",Rn.cropperSettings.cropperMinWidth)("format",Rn.cropperSettings.format)("imageQuality",Rn.cropperSettings.imageQuality)("aspectRatio",Rn.cropperSettings.aspectRatio)("maintainAspectRatio",Rn.cropperSettings.maintainAspectRatio)("onlyScaleDown",!0)("resizeToWidth",Rn.cropperSettings.resizeToWidth))},dependencies:[E.xw,E.Wh,wt.eB,Wt.Hw,A.Kd,ve.ap],styles:['.cropper-container[_ngcontent-%COMP%]{width:100%;height:100%}.cropper-container[_ngcontent-%COMP%]   image-cropper[_ngcontent-%COMP%]{padding:0!important;height:370px!important}.cropper-container[_ngcontent-%COMP%]   image-cropper[_ngcontent-%COMP%]   .source-image[_ngcontent-%COMP%]{margin-bottom:-5px}.cropper-container[_ngcontent-%COMP%]   image-cropper[_ngcontent-%COMP%]   .cropper[_ngcontent-%COMP%]{outline:rgba(0,0,0,.5) solid 100vw!important;border-radius:20px;margin-bottom:-10px}.cropper-container[_ngcontent-%COMP%]   .crop-result[_ngcontent-%COMP%]{border:2px dashed #2e7d32;border-radius:10px;max-width:100%}.cropper-container[_ngcontent-%COMP%]   .crop-result[_ngcontent-%COMP%]   .img-thumbnail[_ngcontent-%COMP%]{width:100%;height:100%;margin:0!important;padding:0!important;border:0!important}.cropper-container[_ngcontent-%COMP%]   .crop-result[_ngcontent-%COMP%]:after{content:"";display:block;padding-bottom:100%}.cropper-container[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{height:unset;width:unset}.cropper-container[_ngcontent-%COMP%]   .rotate-90[_ngcontent-%COMP%]{transform:matrix(0,1,-1,0,0,0)}']}),rn})();var nt=i(12676),Zt=i(56846),Fe=i(11378),yt=i(11828),ie=i(37523),Ce=i(52267),Ie=i(44454),dt=i(3238),Mt=i(24006),Xt=i(31829),en=i(57268);const zt=["newPrescription"],bt=["loginRef"],At=["registerRef"];function $e(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"drc-button",14),n.\u0275\u0275listener("clickEvent",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.back())}),n.\u0275\u0275elementEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275property("type",Nt.buttonType.iconButton)("icon","arrow_back")("color","primary")}}function Xe(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"drc-button",14),n.\u0275\u0275listener("clickEvent",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.close())}),n.\u0275\u0275elementEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275property("type",Nt.buttonType.iconButton)("icon","close")("color","primary")}}function Pe(rn,$t){1&rn&&(n.\u0275\u0275elementStart(0,"span"),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementStart(3,"span",16),n.\u0275\u0275text(4),n.\u0275\u0275pipe(5,"translate"),n.\u0275\u0275elementEnd()()),2&rn&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,2,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.TITLE3")," "),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(5,4,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.TITLE4")))}function Ve(rn,$t){if(1&rn&&(n.\u0275\u0275elementContainerStart(0,null,15),n.\u0275\u0275elementStart(2,"h2")(3,"span"),n.\u0275\u0275text(4),n.\u0275\u0275pipe(5,"translate"),n.\u0275\u0275elementStart(6,"span",16),n.\u0275\u0275text(7),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(9,Pe,6,6,"span",4),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(10,"div",17),n.\u0275\u0275element(11,"span",18),n.\u0275\u0275pipe(12,"translate"),n.\u0275\u0275elementStart(13,"div",19),n.\u0275\u0275element(14,"mat-divider"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(15,"div",20),n.\u0275\u0275element(16,"img",21),n.\u0275\u0275elementStart(17,"div",22)(18,"strong"),n.\u0275\u0275text(19),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(20,"span"),n.\u0275\u0275text(21),n.\u0275\u0275pipe(22,"translate"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(23,"div",23),n.\u0275\u0275element(24,"mat-divider"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementContainerEnd()),2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(5,7,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.TITLE1")," "),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(8,9,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.TITLE2")),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",Nt.offer.packaging.product.requiresRetainedPrescription),n.\u0275\u0275advance(2),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind1(12,11,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.SUBTITLE"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(5),n.\u0275\u0275property("src",null==Nt.offer.packaging.images[0]?null:Nt.offer.packaging.images[0].thumbnail,n.\u0275\u0275sanitizeUrl),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(Nt.offer.drugName),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(22,13,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.PRODUCT_CODE")+Nt.offer.packaging.cim)}}function mt(rn,$t){if(1&rn&&(n.\u0275\u0275elementContainerStart(0,null,24),n.\u0275\u0275elementStart(2,"h2"),n.\u0275\u0275text(3),n.\u0275\u0275pipe(4,"translate"),n.\u0275\u0275elementStart(5,"span",25),n.\u0275\u0275text(6),n.\u0275\u0275pipe(7,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(8,"div")(9,"div",19),n.\u0275\u0275element(10,"mat-divider"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(11,"div",20),n.\u0275\u0275element(12,"img",21),n.\u0275\u0275elementStart(13,"div",22)(14,"strong"),n.\u0275\u0275text(15),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(16,"span"),n.\u0275\u0275text(17),n.\u0275\u0275pipe(18,"translate"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(19,"div",23),n.\u0275\u0275element(20,"mat-divider"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementContainerEnd()),2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(4,5,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.TITLE_WARNING1")," "),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(7,7,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.TITLE_WARNING2")),n.\u0275\u0275advance(6),n.\u0275\u0275property("src",null==Nt.offer.packaging.images[0]?null:Nt.offer.packaging.images[0].thumbnail,n.\u0275\u0275sanitizeUrl),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(Nt.offer.drugName),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(18,9,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.PRODUCT_CODE")+Nt.offer.packaging.cim)}}function It(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",35),n.\u0275\u0275listener("click",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext(3);return n.\u0275\u0275resetView(ji.deleteNewPrescription(Wn))}),n.\u0275\u0275elementStart(1,"mat-icon"),n.\u0275\u0275text(2,"close"),n.\u0275\u0275elementEnd()()}}function xn(rn,$t){1&rn&&(n.\u0275\u0275elementStart(0,"mat-icon"),n.\u0275\u0275text(1,"check"),n.\u0275\u0275elementEnd())}function _n(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",36),n.\u0275\u0275listener("click",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext().$implicit,ir=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(ir.editImage(ji,Wn))}),n.\u0275\u0275elementStart(1,"span"),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"uppercase"),n.\u0275\u0275pipe(4,"translate"),n.\u0275\u0275elementEnd()()}2&rn&&(n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(3,1,n.\u0275\u0275pipeBind1(4,3,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.EDIT_IMAGE"))))}function Jt(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275elementStart(1,"div",31),n.\u0275\u0275listener("click",function(){const ji=n.\u0275\u0275restoreView(Nt).index,ir=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(ir.togglePrescription(ji))}),n.\u0275\u0275element(2,"img",21),n.\u0275\u0275template(3,It,3,0,"div",32),n.\u0275\u0275elementStart(4,"div",33),n.\u0275\u0275template(5,xn,2,0,"mat-icon",4),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(6,_n,5,5,"div",34),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementContainerEnd()}if(2&rn){const Nt=$t.$implicit,Rn=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",Nt.selected?"selected":"unselected"),n.\u0275\u0275advance(1),n.\u0275\u0275property("src",Nt.attachment.url,n.\u0275\u0275sanitizeUrl),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",(null==Nt.attachment?null:Nt.attachment.id)===(null==Rn.newPrescription?null:Rn.newPrescription.id)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",Nt.selected),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",(null==Nt.attachment?null:Nt.attachment.id)===(null==Rn.newPrescription?null:Rn.newPrescription.id)&&(null==Rn.activePrescription?null:Rn.activePrescription.attachment.id)===(null==Rn.newPrescription?null:Rn.newPrescription.id))}}function ke(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",37),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(Wn.uploadOrGoToLoginStep())}),n.\u0275\u0275elementStart(1,"input",38,39),n.\u0275\u0275listener("change",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(ji.addNewPrescription(Wn))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"div")(4,"p",40)(5,"i",41),n.\u0275\u0275text(6,"cloud_upload"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(7,"span",42),n.\u0275\u0275text(8),n.\u0275\u0275pipe(9,"translate"),n.\u0275\u0275elementEnd()()()()}if(2&rn){const Nt=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(8),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(9,1,Nt.prescriptions.length?"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.UPLOAD_ANOTHER_PRESCRIPTION":"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.UPLOAD_PRESCRIPTION")," ")}}function Ae(rn,$t){if(1&rn&&(n.\u0275\u0275elementContainerStart(0,null,26),n.\u0275\u0275elementStart(2,"h2"),n.\u0275\u0275text(3),n.\u0275\u0275pipe(4,"translate"),n.\u0275\u0275elementStart(5,"span",16),n.\u0275\u0275text(6),n.\u0275\u0275pipe(7,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(8,"div",17),n.\u0275\u0275element(9,"span",18),n.\u0275\u0275pipe(10,"translate"),n.\u0275\u0275elementStart(11,"a",27),n.\u0275\u0275text(12),n.\u0275\u0275pipe(13,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(14,"div",19),n.\u0275\u0275element(15,"mat-divider"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(16,"div",28),n.\u0275\u0275template(17,Jt,7,5,"ng-container",29),n.\u0275\u0275template(18,ke,10,3,"div",30),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(19,"div",23),n.\u0275\u0275element(20,"mat-divider"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementContainerEnd()),2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(4,7,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.UPLOAD_PRESCRIPTION_TO")," "),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(7,9,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.HEALTH_JOURNAL")),n.\u0275\u0275advance(3),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind1(10,11,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.GDPR_WARNING"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(2),n.\u0275\u0275property("routerLink",Nt.personalDataConsentLink),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(13,13,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.HERE")," "),n.\u0275\u0275advance(5),n.\u0275\u0275property("ngForOf",Nt.prescriptions),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!Nt.newPrescription)}}function ze(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"app-login",45,46),n.\u0275\u0275listener("registerEmail",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(ji.registerMail=Wn)})("userAccountChanges",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(ji.manageStep(Wn))})("nextAction",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(ji.next(Wn))}),n.\u0275\u0275elementEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext(2),Rn=n.\u0275\u0275reference(24);n.\u0275\u0275property("fxHide",Nt.currentStep===Nt.steps.LEGAL_DOCUMENT_STEP)("isPrescriptionLogin",!0)("socialLoginTemplate",Rn)}}function pt(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275elementStart(1,"app-registration",47,48),n.\u0275\u0275listener("displayLegalDocument",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(ji.displayLegalDocument(Wn))})("loadingChanges",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(ji.isLoading=Wn)})("userRegistered",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(Wn.finishRegistration())}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementContainerEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275property("fxHide",Nt.currentStep===Nt.steps.LEGAL_DOCUMENT_STEP)("isPrescriptionRegistration",!0)("shouldHideNextButton",!0)("registerEmail",Nt.registerMail)}}function tn(rn,$t){if(1&rn&&(n.\u0275\u0275elementContainerStart(0,null,43),n.\u0275\u0275template(2,ze,2,3,"app-login",44),n.\u0275\u0275template(3,pt,3,4,"ng-container",4),n.\u0275\u0275elementContainerEnd()),2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",!Nt.isRegistering),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.isRegistering)}}function ot(rn,$t){1&rn&&(n.\u0275\u0275elementStart(0,"div")(1,"h2",51),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(4,"app-tos"),n.\u0275\u0275elementEnd()),2&rn&&(n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(3,1,"PAGES.PROFILE.CART.INFORMATION_DIALOG.TERMS_TITLE")))}function Et(rn,$t){if(1&rn&&(n.\u0275\u0275elementStart(0,"div")(1,"h2",51),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(4,"app-confidentiality-policy-text",52),n.\u0275\u0275elementEnd()),2&rn){const Nt=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(3,2,"PAGES.PROFILE.CART.INFORMATION_DIALOG.CONFIDENTIALITY_POLICY_TITLE")," "),n.\u0275\u0275advance(2),n.\u0275\u0275property("html",Nt.privacyPolicyHtml)}}function z(rn,$t){if(1&rn&&(n.\u0275\u0275elementContainerStart(0,49),n.\u0275\u0275template(1,ot,5,3,"div",50),n.\u0275\u0275template(2,Et,5,4,"div",50),n.\u0275\u0275elementContainerEnd()),2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngSwitch",Nt.currentDocument),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",Nt.documentTypes.PATIENT_TERMS),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",Nt.documentTypes.PRIVACY_POLICY)}}function Z(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementContainerStart(0,null,53),n.\u0275\u0275elementStart(2,"h2"),n.\u0275\u0275text(3),n.\u0275\u0275pipe(4,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"app-new-image-editor",54),n.\u0275\u0275listener("saveNewImage",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(ji.saveEditedImage(Wn))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementContainerEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(4,2,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.EDIT_IMAGE")),n.\u0275\u0275advance(2),n.\u0275\u0275property("inputFile",Nt.attachmentToBeEdited.file)}}function ge(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",55)(1,"span"),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"mat-radio-group",56),n.\u0275\u0275listener("ngModelChange",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(ji.uploadAgreement=Wn)}),n.\u0275\u0275elementStart(5,"mat-radio-button",57),n.\u0275\u0275text(6),n.\u0275\u0275pipe(7,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(8,"mat-radio-button",57),n.\u0275\u0275text(9),n.\u0275\u0275pipe(10,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(11,"span"),n.\u0275\u0275text(12),n.\u0275\u0275pipe(13,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(14,"mat-radio-group",56),n.\u0275\u0275listener("ngModelChange",function(Wn){n.\u0275\u0275restoreView(Nt);const ji=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(ji.privacyAgreement=Wn)}),n.\u0275\u0275elementStart(15,"mat-radio-button",57),n.\u0275\u0275text(16),n.\u0275\u0275pipe(17,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(18,"mat-radio-button",57),n.\u0275\u0275text(19),n.\u0275\u0275pipe(20,"translate"),n.\u0275\u0275elementEnd()()()}if(2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(3,12,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.STORE_DATA_AGREEMENT")),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngModel",Nt.uploadAgreement),n.\u0275\u0275advance(1),n.\u0275\u0275property("value",!0),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(7,14,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.YES")," "),n.\u0275\u0275advance(2),n.\u0275\u0275property("value",!1),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(10,16,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.NO")," "),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(13,18,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.SHARE_INFO_AGREEMENT")),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngModel",Nt.privacyAgreement),n.\u0275\u0275advance(1),n.\u0275\u0275property("value",!0),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(17,20,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.YES")," "),n.\u0275\u0275advance(2),n.\u0275\u0275property("value",!1),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(20,22,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.NO")," ")}}function Qe(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"drc-button",58),n.\u0275\u0275listener("clickEvent",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.goToSelectPrescriptionStep())}),n.\u0275\u0275elementEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275property("type",Nt.buttonType.iconAndTextButton)("iconPosition",Nt.iconPosition.right)("icon","chevron_right")("textTranslationKey","SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.I_HAVE_A_PRESCRIPTION")("color",Nt.buttonColor.primary)}}function qe(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"drc-button",58),n.\u0275\u0275listener("clickEvent",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.uploadOrGoToLoginStep())}),n.\u0275\u0275elementEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275property("type",Nt.buttonType.iconAndTextButton)("iconPosition",Nt.iconPosition.right)("icon","chevron_right")("textTranslationKey","SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.UPLOAD_PRESCRIPTION")("color",Nt.buttonColor.primary)}}function ct(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"drc-button",59),n.\u0275\u0275listener("clickEvent",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.complete())}),n.\u0275\u0275elementEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275property("type",Nt.buttonType.iconAndTextButton)("iconPosition",Nt.iconPosition.right)("icon","check")("textTranslationKey","SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.FINISH")("color",Nt.buttonColor.primary)("disabled",!Nt.canComplete)}}function Yt(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"drc-button",58),n.\u0275\u0275listener("clickEvent",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.finishEditing())}),n.\u0275\u0275elementEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275property("type",Nt.buttonType.iconAndTextButton)("iconPosition",Nt.iconPosition.right)("icon","check")("textTranslationKey","SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.SAVE_IMAGE")("color",Nt.buttonColor.primary)}}function it(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"drc-button",58),n.\u0275\u0275listener("clickEvent",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(Wn.loginUser())}),n.\u0275\u0275elementEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("type",Nt.buttonType.iconAndTextButton)("iconPosition",Nt.iconPosition.right)("icon","chevron_right")("textTranslationKey","SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.FURTHER")("color",Nt.buttonColor.primary)}}function Be(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"drc-button",58),n.\u0275\u0275listener("clickEvent",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(Wn.registerRef.nextClick())}),n.\u0275\u0275elementEnd()}if(2&rn){const Nt=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("type",Nt.buttonType.iconAndTextButton)("iconPosition",Nt.iconPosition.right)("icon","chevron_right")("textTranslationKey","SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.FURTHER")("color",Nt.buttonColor.primary)}}function gt(rn,$t){1&rn&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"drc-page-spinner"),n.\u0275\u0275elementEnd())}function ue(rn,$t){if(1&rn&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275template(1,it,1,5,"drc-button",8),n.\u0275\u0275template(2,Be,1,5,"drc-button",8),n.\u0275\u0275template(3,gt,2,0,"div",4),n.\u0275\u0275elementContainerEnd()),2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!Nt.isRegistering&&!Nt.isLoading),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.isRegistering&&!Nt.isLoading),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.isLoading)}}function Ge(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",60),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.completeWithoutPrescription())}),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()}2&rn&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,1,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.ADD_WITHOUT_UPLOADING")," "))}function ee(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",60),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.showWarning())}),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()}2&rn&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,1,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.I_DONT_HAVE_A_PRESCRIPTION")," "))}function De(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",60),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.close())}),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()}2&rn&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,1,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.CANCEL")," "))}function Ot(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",61),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return Wn.currentStep=Wn.steps.LOGIN_STEP,n.\u0275\u0275resetView(Wn.currentDocument=null)}),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()}2&rn&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,1,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.I_UNDERSTAND")," "))}function cn(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",60),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Wn.goToSelectPrescriptionStep())}),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()}2&rn&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,1,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.CANCEL")," "))}function Gn(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",68),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext(3);return n.\u0275\u0275resetView(Wn.loginWithSocialMedia(Wn.SocialMediaLoginMethod.APPLE))}),n.\u0275\u0275elementStart(1,"div",69),n.\u0275\u0275element(2,"img",70),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",71),n.\u0275\u0275text(5),n.\u0275\u0275pipe(6,"translate"),n.\u0275\u0275elementEnd()()}if(2&rn){const Nt=n.\u0275\u0275nextContext(3);n.\u0275\u0275advance(2),n.\u0275\u0275property("src",Nt.socialLoginIcons.apple,n.\u0275\u0275sanitizeUrl)("alt",n.\u0275\u0275pipeBind1(3,3,"SHARED.LOGIN.APPLE")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(6,5,"SHARED.LOGIN.APPLE"))}}function _i(rn,$t){if(1&rn){const Nt=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",63)(1,"div",64),n.\u0275\u0275element(2,"mat-divider"),n.\u0275\u0275elementStart(3,"div",65)(4,"p",66),n.\u0275\u0275text(5),n.\u0275\u0275pipe(6,"translate"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(7,"div",67)(8,"div",68),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(Wn.loginWithSocialMedia(Wn.SocialMediaLoginMethod.FACEBOOK))}),n.\u0275\u0275elementStart(9,"div",69),n.\u0275\u0275element(10,"img",70),n.\u0275\u0275pipe(11,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(12,"div",71),n.\u0275\u0275text(13),n.\u0275\u0275pipe(14,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(15,"div",68),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Nt);const Wn=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(Wn.loginWithSocialMedia(Wn.SocialMediaLoginMethod.GOOGLE))}),n.\u0275\u0275elementStart(16,"div",69),n.\u0275\u0275element(17,"img",70),n.\u0275\u0275pipe(18,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(19,"div",71),n.\u0275\u0275text(20),n.\u0275\u0275pipe(21,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(22,Gn,7,7,"div",72),n.\u0275\u0275elementEnd()()}if(2&rn){const Nt=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("fxLayoutAlign",Nt.window.innerWidth>Nt.breakpoints.TABLET?"start":"center center"),n.\u0275\u0275advance(5),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(6,9,"SHARED.LOGIN.ALTERNATIVE_LOGIN")),n.\u0275\u0275advance(5),n.\u0275\u0275property("src",Nt.socialLoginIcons.facebook,n.\u0275\u0275sanitizeUrl)("alt",n.\u0275\u0275pipeBind1(11,11,"SHARED.LOGIN.FACEBOOK")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(14,13,"SHARED.LOGIN.FACEBOOK")),n.\u0275\u0275advance(4),n.\u0275\u0275property("src",Nt.socialLoginIcons.google,n.\u0275\u0275sanitizeUrl)("alt",n.\u0275\u0275pipeBind1(18,15,"SHARED.LOGIN.GOOGLE")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(21,17,"SHARED.LOGIN.GOOGLE")),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",!Nt.carmen.isNativeAndroid)}}function Ni(rn,$t){if(1&rn&&n.\u0275\u0275template(0,_i,23,19,"div",62),2&rn){const Nt=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngIf",!Nt.isRegistering)}}var Nn=(()=>{return(rn=Nn||(Nn={}))[rn.WARNING_STEP=-1]="WARNING_STEP",rn[rn.DEFAULT_STEP=0]="DEFAULT_STEP",rn[rn.SELECT_PRESCRIPTION_STEP=1]="SELECT_PRESCRIPTION_STEP",rn[rn.LOGIN_STEP=2]="LOGIN_STEP",rn[rn.LEGAL_DOCUMENT_STEP=1.5]="LEGAL_DOCUMENT_STEP",rn[rn.EDIT_PRESCRIPTION_STEP=3]="EDIT_PRESCRIPTION_STEP",Nn;var rn})();class On{constructor($t,Nt,Rn,Wn,ji,ir,dr,Ln,Vn,Le,Ft,dn,En){this.data=$t,this.dialogRef=Nt,this.sanitizer=Rn,this.snackbarMessageService=Wn,this.userService=ji,this.patientService=ir,this.imgTools=dr,this.documentService=Ln,this.changeDetectorRef=Vn,this.messageService=Le,this.socialLoginService=Ft,this.router=dn,this.route=En,this.destroy$=new a.x,this.window=window,this.prescriptions=[],this.steps=Nn,this.currentStep=Nn.DEFAULT_STEP,this.documentTypes=h.n_u,this.isRegistered=!1,this.isRegistering=!1,this.isLoginNextStep=!1,this.isLoading=!1,this.personalDataConsentLink=h.tUT,this.SocialMediaLoginMethod=h.HCI,this.socialLoginIcons={facebook:h.r8f,google:h.K0B,apple:h.fcp},this.carmen=h.VLR,this.buttonType=h.L$3,this.buttonColor=h.B6Y,this.iconPosition=h.ggF,this.cookiesPolicyLink=h.Pd3,this.termsAndConditionsLink=h.ZOI,this.privacyPolicyLink=h.eN9}ngOnInit(){this.offer=this.data.offer}get breakpoints(){return h.u3l}get shouldShowUserAgreementForm(){return this.currentStep===this.steps.SELECT_PRESCRIPTION_STEP&&this.newPrescription&&this.activePrescription&&this.activePrescription.attachment.id===this.newPrescription.id}goToSelectPrescriptionStep(){if(this.loggedUser)return this.prescriptions.length?void this.gotToStep(Nn.SELECT_PRESCRIPTION_STEP):this.patientService.getAttachments("prescription").subscribe($t=>{if($t&&$t.length){const Nt=$t.length<=2?$t:$t.slice(-2);this.prescriptions=Nt.map((Rn,Wn)=>({attachment:new se.P(Rn),selected:Wn===Nt.length-1}))}this.gotToStep(Nn.SELECT_PRESCRIPTION_STEP)});this.gotToStep(Nn.LOGIN_STEP)}uploadOrGoToLoginStep(){this.loggedUser&&this.loggedUser.getType()===h.FWD.CLIENT?this.newPrescriptionInput.nativeElement.click():this.gotToStep(Nn.LOGIN_STEP),h.VLR.isNativePlatform&&this.askForCameraPermissionsAndOpenIt()}askForCameraPermissionsAndOpenIt(){H.checkPermissions().then($t=>{"granted"===$t.camera?this.openNativeCamera():H.requestPermissions().then(Nt=>{"granted"===Nt.camera&&this.openNativeCamera()})})}openNativeCamera(){var $t=this;return(0,ae.Z)(function*(){try{const Nt=yield H.getPhoto({quality:90,allowEditing:!1,resultType:T.dk.DataUrl}),Rn=new se.P({name:"file",file:h.VLR.dataUrlToFile(Nt.dataUrl,"file","jpeg"),localUrl:$t.sanitizer.bypassSecurityTrustUrl(Nt.dataUrl),type:"prescription"});$t.newPrescription=Rn,$t.prescriptions.push({attachment:Rn,selected:!1}),$t.togglePrescription($t.prescriptions.length-1)}catch{$t.snackbarMessageService.displayMessage(h.CsS.ERROR,"SHARED.PRODUCT.NEW_PRESCRIPTION_DIALOG.UPLOAD_PHOTO_ERROR")}})()}gotToStep($t){this.currentStep=$t}addNewPrescription($t){if(this.loggedUser){const Nt=$t.target.files[0];if(["image/jpeg","image/png","image/jpg"].includes(Nt.type)){const Wn=new se.P({name:Nt.name,file:Nt,localUrl:this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(Nt)),type:"prescription"});this.newPrescription=Wn,this.prescriptions.push({attachment:Wn,selected:!1}),this.togglePrescription(this.prescriptions.length-1)}else this.snackbarMessageService.displayMessage(h.CsS.ERROR,"SHARED.PRODUCT.NEW_PRESCRIPTION_DIALOG.WRONG_FILE")}else this.gotToStep(Nn.LOGIN_STEP)}togglePrescription($t){this.prescriptions=this.prescriptions.map((Nt,Rn)=>(Nt.selected=$t===Rn&&!Nt.selected,Nt))}get activePrescription(){return this.prescriptions.find($t=>$t.selected)}deleteNewPrescription($t){$t.preventDefault(),$t.stopPropagation(),this.prescriptions=this.prescriptions.filter(Nt=>Nt.attachment.id!==this.newPrescription.id),this.newPrescription=null}editImage($t,Nt){Nt.preventDefault(),Nt.stopPropagation(),this.attachmentToBeEdited=$t.attachment,this.gotToStep(Nn.EDIT_PRESCRIPTION_STEP)}finishEditing(){this.imageEditor.emitNewCroppedImage()}saveEditedImage($t){this.prescriptions=this.prescriptions.map(Nt=>(Nt.attachment.id===this.newPrescription.id&&(Nt.attachment.file=$t.file,Nt.attachment.localUrl=$t.url),Nt)),this.gotToStep(Nn.SELECT_PRESCRIPTION_STEP)}close($t){this.dialogRef.close($t)}complete(){this.newPrescription&&this.activePrescription.attachment.id===this.newPrescription.id?this.newPrescription.file.size>9437184?this.savePrescriptionAndCompress(this.newPrescription).subscribe($t=>{this.close($t)}):this.patientService.addPrescription(this.newPrescription?.file,!0).subscribe($t=>{this.close({prescriptionId:$t.storageKey||$t.id})}):this.close({prescriptionId:this.activePrescription.attachment.id})}completeWithoutPrescription(){this.newPrescription=null,this.close({userHasPrescription:!0})}get canComplete(){return!!this.activePrescription&&(!this.newPrescription||this.newPrescription.id!==this.activePrescription.attachment.id||this.uploadAgreement&&this.privacyAgreement)}savePrescriptionAndCompress($t){return this.imgTools.compressImage($t.file,9).pipe((0,l.w)(Rn=>($t.file=Rn,$t.localUrl=this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(Rn)),this.patientService.addPrescription($t.file,!0))),(0,k.U)(Rn=>({prescriptionId:Rn.storageKey||Rn.id})),(0,$.K)(()=>(this.snackbarMessageService.displayMessage(h.CsS.ERROR,"SHARED.PRODUCT.NEW_PRESCRIPTION_DIALOG.RECIPE_UPLOAD_ERROR"),(0,K.of)(!1))))}back(){this.currentStep===this.steps.LEGAL_DOCUMENT_STEP?this.gotToStep(Nn.LOGIN_STEP):this.isRegistering?this.isRegistering=!1:this.isLoginNextStep&&this.loginRef?this.loginRef.back():this.currentStep=this.currentStep===this.steps.LOGIN_STEP?this.steps.DEFAULT_STEP:this.currentStep===this.steps.EDIT_PRESCRIPTION_STEP?this.steps.SELECT_PRESCRIPTION_STEP:this.steps.DEFAULT_STEP}showWarning(){this.gotToStep(Nn.WARNING_STEP)}manageStep($t){$t.pipe((0,j.R)(this.destroy$)).subscribe(Nt=>{this.isLoginNextStep=Nt,this.changeDetectorRef.detectChanges()})}next($t){$t?(this.isLoginNextStep=!0,this.userService.deleteGuestId(),h.VLR.scrollPageToTop(),this.goToSelectPrescriptionStep()):(this.isLoginNextStep=!1,this.isRegistering=!0)}loginUser(){this.loginRef&&this.loginRef.nextClick()}finishRegistration(){this.isRegistered=!0,this.userService.deleteGuestId(),this.goToSelectPrescriptionStep()}displayLegalDocument($t){this.currentDocument=$t,this.gotToStep(Nn.LEGAL_DOCUMENT_STEP),!this.privacyPolicyHtml&&$t===this.documentTypes.PRIVACY_POLICY&&this.documentService.getDocument(h.n_u.PRIVACY_POLICY).pipe((0,t.q)(1)).subscribe(Nt=>this.privacyPolicyHtml=this.sanitizer.bypassSecurityTrustHtml(Nt))}loginWithSocialMedia($t){var Nt=this;return(0,ae.Z)(function*(){switch($t){case h.HCI.FACEBOOK:yield Nt.loginWithFacebook();break;case h.HCI.GOOGLE:yield Nt.loginWithGoogle();break;case h.HCI.APPLE:yield Nt.loginWithApple()}})()}loginWithGoogle(){var $t=this;return(0,ae.Z)(function*(){try{const Nt=yield N.e.signIn();$t.socialLoginService.signInWithGoogle({accessToken:Nt?.authentication?.accessToken,idToken:Nt?.authentication?.idToken}).pipe((0,t.q)(1),(0,R.b)(Rn=>{h.VLR.saveAuthTokensToLocalStorage(Rn),$t.userService.setToken(Rn.access_token,!0)}),(0,U.z)(()=>$t.userService.getCurrent())).subscribe({next:()=>$t.goToSelectPrescriptionStep(),error:()=>$t.messageService.displayMessage(h.CsS.ERROR,"SHARED.LOGIN.ERROR.GOOGLE_LOGIN_ERROR")})}catch{$t.messageService.displayMessage(h.CsS.ERROR,"SHARED.LOGIN.ERROR.GOOGLE_LOGIN_ERROR")}})()}loginWithFacebook(){var $t=this;return(0,ae.Z)(function*(){try{const Nt=yield de.J.login({permissions:h.gHp});$t.socialLoginService.signInWithFacebook({accessToken:Nt.accessToken.token}).pipe((0,t.q)(1),(0,R.b)(Rn=>{h.VLR.saveAuthTokensToLocalStorage(Rn),$t.userService.setToken(Rn.access_token,!0)}),(0,U.z)(()=>$t.userService.getCurrent())).subscribe({next:()=>$t.goToSelectPrescriptionStep(),error:()=>$t.messageService.displayMessage(h.CsS.ERROR,"SHARED.LOGIN.ERROR.FACEBOOK_LOGIN_ERROR")})}catch{$t.messageService.displayMessage(h.CsS.ERROR,"SHARED.LOGIN.ERROR.FACEBOOK_LOGIN_ERROR")}})()}loginWithApple(){var $t=this;return(0,ae.Z)(function*(){pe.s.authorize(yt.Z.appleSignInOptions).then(Nt=>{$t.socialLoginService.signInWithApple({accessToken:Nt.response.authorizationCode,name:`${Nt.response?.familyName} ${Nt.response?.givenName}`,isNativeIOS:h.VLR.isNativeIos}).pipe((0,t.q)(1),(0,R.b)(ji=>{h.VLR.saveAuthTokensToLocalStorage(ji),$t.userService.setToken(ji.access_token,!0)}),(0,U.z)(()=>$t.userService.getCurrent())).subscribe({next:()=>$t.router.navigate([$t.route.snapshot.queryParams.returnTo||h.BW$.REDIRECT_TO_HOME_PAGE]),error:()=>$t.messageService.displayMessage(h.CsS.ERROR,"SHARED.LOGIN.ERROR.APPLE_LOGIN_ERROR")})}).catch(()=>{$t.messageService.displayMessage(h.CsS.ERROR,"SHARED.LOGIN.ERROR.APPLE_LOGIN_ERROR")})})()}}On.\u0275fac=function($t){return new($t||On)(n.\u0275\u0275directiveInject(e.eJ),n.\u0275\u0275directiveInject(e.hV),n.\u0275\u0275directiveInject(Ee.DomSanitizer),n.\u0275\u0275directiveInject(h.vio.SnackbarMessageServiceToken),n.\u0275\u0275directiveInject(nt.O),n.\u0275\u0275directiveInject(h.vio.PatientServiceToken),n.\u0275\u0275directiveInject(ie.Ze),n.\u0275\u0275directiveInject(h.vio.DocumentService),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(h.vio.SnackbarMessageServiceToken),n.\u0275\u0275directiveInject(h.vio.SocialLoginServiceToken),n.\u0275\u0275directiveInject(s.F0),n.\u0275\u0275directiveInject(s.gz))},On.\u0275cmp=n.\u0275\u0275defineComponent({type:On,selectors:[["app-new-prescription-upload-dialog"]],viewQuery:function($t,Nt){if(1&$t&&(n.\u0275\u0275viewQuery(zt,5),n.\u0275\u0275viewQuery(Ut,5),n.\u0275\u0275viewQuery(bt,5),n.\u0275\u0275viewQuery(At,5)),2&$t){let Rn;n.\u0275\u0275queryRefresh(Rn=n.\u0275\u0275loadQuery())&&(Nt.newPrescriptionInput=Rn.first),n.\u0275\u0275queryRefresh(Rn=n.\u0275\u0275loadQuery())&&(Nt.imageEditor=Rn.first),n.\u0275\u0275queryRefresh(Rn=n.\u0275\u0275loadQuery())&&(Nt.loginRef=Rn.first),n.\u0275\u0275queryRefresh(Rn=n.\u0275\u0275loadQuery())&&(Nt.registerRef=Rn.first)}},decls:25,vars:20,consts:[[1,"prescription-dialog-container"],[1,"header",3,"fxLayoutAlign"],[3,"type","icon","color","clickEvent",4,"ngIf"],["mat-dialog-content","","fxLayout","column"],[4,"ngIf"],[3,"ngSwitch",4,"ngIf"],["fxLayout","column","class","agreement-container",4,"ngIf"],[1,"footer","p-16"],["class","w-100 mb-8",3,"type","iconPosition","icon","textTranslationKey","color","clickEvent",4,"ngIf"],["class","w-100 mb-8",3,"type","iconPosition","icon","textTranslationKey","color","disabled","clickEvent",4,"ngIf"],["class","button-size-relative-to-width","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","","class","button-size-relative-to-width",3,"click",4,"ngIf"],["mat-flat-button","","class","button-size-relative-to-width green-button-style mat-primary",3,"click",4,"ngIf"],["socialLoginTemplate",""],[3,"type","icon","color","clickEvent"],["defaultMessageStep",""],[1,"main-color"],[1,"mt-16"],[3,"innerHTML"],[1,"top-inner-divider"],["fxLayout","row",1,"product-info"],["alt","",3,"src"],["fxLayout","column","fxLayoutAlign","center start",1,"ml-16"],[1,"bottom-inner-divider"],["warningStep",""],[1,"warning-color"],["prescriptionSelectionStep",""],["target","_blank",3,"routerLink"],["fxLayout","row wrap","fxLayoutAlign.lt-sm","space-between center",1,"prescriptions-container"],[4,"ngFor","ngForOf"],["class","new-prescription-container",3,"click",4,"ngIf"],[1,"existing-prescription",3,"ngClass","click"],["class","delete-prescription",3,"click",4,"ngIf"],[1,"prescription-checkbox"],["class","edit-image-action","fxLayoutAlign","center center",3,"click",4,"ngIf"],[1,"delete-prescription",3,"click"],["fxLayoutAlign","center center",1,"edit-image-action",3,"click"],[1,"new-prescription-container",3,"click"],["type","file","accept","image/*",1,"cdk-visually-hidden",3,"change"],["newPrescription",""],["fxLayoutAlign","center center"],[1,"material-icons","text-muted"],[1,"text-muted"],["loginStep",""],[3,"fxHide","isPrescriptionLogin","socialLoginTemplate","registerEmail","userAccountChanges","nextAction",4,"ngIf"],[3,"fxHide","isPrescriptionLogin","socialLoginTemplate","registerEmail","userAccountChanges","nextAction"],["loginRef",""],[3,"fxHide","isPrescriptionRegistration","shouldHideNextButton","registerEmail","displayLegalDocument","loadingChanges","userRegistered"],["registerRef",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"title","mb-16"],[3,"html"],["editPrescriptionStep",""],[3,"inputFile","saveNewImage"],["fxLayout","column",1,"agreement-container"],["fxLayout","row","fxLayoutGap","19px",3,"ngModel","ngModelChange"],[3,"value"],[1,"w-100","mb-8",3,"type","iconPosition","icon","textTranslationKey","color","clickEvent"],[1,"w-100","mb-8",3,"type","iconPosition","icon","textTranslationKey","color","disabled","clickEvent"],["mat-flat-button","",1,"button-size-relative-to-width",3,"click"],["mat-flat-button","",1,"button-size-relative-to-width","green-button-style","mat-primary",3,"click"],["class","login__footer mt-16","fxLayout","column",3,"fxLayoutAlign",4,"ngIf"],["fxLayout","column",1,"login__footer","mt-16",3,"fxLayoutAlign"],[1,"w-100","mb-16"],["fxLayoutAlign","center center",1,"alternative-login"],[1,"alternative-login__text"],["fxLayout","column","fxLayoutGap","16px",1,"login__social-container","text-center"],["mat-ripple","","fxLayoutAlign","center center",1,"login__social-btn",3,"click"],[1,"login__social-wrapper"],["fxFlexAlign","start",1,"login__social-icon",3,"src","alt"],["fxFlexAlign","center",1,"login__social-text"],["mat-ripple","","class","login__social-btn","fxLayoutAlign","center center",3,"click",4,"ngIf"]],template:function($t,Nt){1&$t&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275template(2,$e,1,3,"drc-button",2),n.\u0275\u0275template(3,Xe,1,3,"drc-button",2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",3),n.\u0275\u0275template(5,Ve,25,15,"ng-container",4),n.\u0275\u0275template(6,mt,21,11,"ng-container",4),n.\u0275\u0275template(7,Ae,21,15,"ng-container",4),n.\u0275\u0275template(8,tn,4,2,"ng-container",4),n.\u0275\u0275template(9,z,3,3,"ng-container",5),n.\u0275\u0275template(10,Z,6,4,"ng-container",4),n.\u0275\u0275template(11,ge,21,24,"div",6),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(12,"mat-dialog-actions",7),n.\u0275\u0275template(13,Qe,1,5,"drc-button",8),n.\u0275\u0275template(14,qe,1,5,"drc-button",8),n.\u0275\u0275template(15,ct,1,6,"drc-button",9),n.\u0275\u0275template(16,Yt,1,5,"drc-button",8),n.\u0275\u0275template(17,ue,4,3,"ng-container",4),n.\u0275\u0275template(18,Ge,3,3,"button",10),n.\u0275\u0275template(19,ee,3,3,"button",11),n.\u0275\u0275template(20,De,3,3,"button",11),n.\u0275\u0275template(21,Ot,3,3,"button",12),n.\u0275\u0275template(22,cn,3,3,"button",11),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(23,Ni,1,1,"ng-template",null,13,n.\u0275\u0275templateRefExtractor)),2&$t&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("fxLayoutAlign",Nt.currentStep!==Nt.steps.DEFAULT_STEP?"space-between center":"end center"),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep!==Nt.steps.DEFAULT_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep!==Nt.steps.EDIT_PRESCRIPTION_STEP),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.DEFAULT_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.WARNING_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.SELECT_PRESCRIPTION_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.LOGIN_STEP||Nt.currentStep===Nt.steps.LEGAL_DOCUMENT_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.LEGAL_DOCUMENT_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.EDIT_PRESCRIPTION_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.shouldShowUserAgreementForm),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",Nt.currentStep<=Nt.steps.DEFAULT_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.SELECT_PRESCRIPTION_STEP&&!Nt.prescriptions.length),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.SELECT_PRESCRIPTION_STEP&&Nt.prescriptions.length),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.EDIT_PRESCRIPTION_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.LOGIN_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.SELECT_PRESCRIPTION_STEP||Nt.currentStep===Nt.steps.LOGIN_STEP&&!(null!=Nt.loggedUser&&null!=Nt.loggedUser.profile&&Nt.loggedUser.profile.username)||Nt.currentStep===Nt.steps.EDIT_PRESCRIPTION_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.DEFAULT_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.WARNING_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.LEGAL_DOCUMENT_STEP),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Nt.currentStep===Nt.steps.EDIT_PRESCRIPTION_STEP))},dependencies:[Ce.K,d.r,u.NgClass,u.NgForOf,u.NgIf,u.NgSwitch,u.NgSwitchCase,s.rH,E.xw,E.SQ,E.Wh,E.XD,D.b8,D.oO,wt.eB,e.Rb,e.ev,Wt.Hw,p.d,Ie.OY,Ie.vy,dt.wG,Mt.JJ,Mt.On,P.b,Ut,Xt.n,en.w,Zt.G,Fe.w,u.UpperCasePipe,g.X$],styles:[".main-color[_ngcontent-%COMP%]{color:#00853b}.warning-color[_ngcontent-%COMP%]{color:#e42027}.color-black[_ngcontent-%COMP%]{color:#000}.top-inner-divider[_ngcontent-%COMP%]{padding:24px 0 16px}.bottom-inner-divider[_ngcontent-%COMP%]{padding:16px 0 24px}.product-info[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:45px;height:45px;border:1px solid #c8cacd;border-radius:4px;box-shadow:0 2px 2px #00000029}.header[_ngcontent-%COMP%]{padding:16px;box-shadow:0 1px 2px #bfbfbf}.footer[_ngcontent-%COMP%]{box-shadow:0 -1px 2px #bfbfbf}.new-prescription-container[_ngcontent-%COMP%]{align-items:center;justify-content:center;display:flex;border-radius:4px;border:1px solid #bbbbbb;background:#edeff2 0 0 no-repeat padding-box;cursor:pointer;height:150px;width:200px}.new-prescription-container[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;margin-right:10px}@media (max-width: 420px){.new-prescription-container[_ngcontent-%COMP%]{height:133px;width:174px}}.existing-prescription[_ngcontent-%COMP%]{position:relative;border-radius:4px;margin-right:12px;margin-bottom:12px;box-sizing:border-box;height:152px;width:202px}@media (max-width: 420px){.existing-prescription[_ngcontent-%COMP%]{height:135px;width:174px;margin-right:0!important}}.existing-prescription.selected[_ngcontent-%COMP%]{border:3px solid #00853b}.existing-prescription.selected[_ngcontent-%COMP%]   .prescription-checkbox[_ngcontent-%COMP%]{background:#00853b}.existing-prescription.selected[_ngcontent-%COMP%]   .prescription-checkbox[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#fff;font-size:17px}.existing-prescription.selected[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:1px;height:146px;width:196px}@media (max-width: 420px){.existing-prescription.selected[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:129px;width:168px}}.existing-prescription.unselected[_ngcontent-%COMP%]{border:1px solid #c8cacd}.existing-prescription.unselected[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:2px;height:150px;width:200px}@media (max-width: 420px){.existing-prescription.unselected[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:133px;width:174px}}.existing-prescription.unselected[_ngcontent-%COMP%]   .prescription-checkbox[_ngcontent-%COMP%]{box-sizing:border-box;background:white;border:2px solid #757575;top:8px;right:8px}.existing-prescription.unselected[_ngcontent-%COMP%]   .delete-prescription[_ngcontent-%COMP%]{top:8px;left:8px}.existing-prescription[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:4px;height:150px;width:200px}@media (max-width: 420px){.existing-prescription[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:133px;width:174px}}.existing-prescription[_ngcontent-%COMP%]   .delete-prescription[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:5px;left:5px;height:16px;width:16px;border-radius:2px;background:#e42027}.existing-prescription[_ngcontent-%COMP%]   .delete-prescription[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#fff;font-size:17px}.existing-prescription[_ngcontent-%COMP%]   .prescription-checkbox[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:5px;right:5px;height:16px;width:16px;border-radius:2px}.existing-prescription[_ngcontent-%COMP%]   .edit-image-action[_ngcontent-%COMP%]{cursor:pointer;position:absolute;bottom:0;width:100%;height:31px;background:rgba(0,0,0,.7)}.existing-prescription[_ngcontent-%COMP%]   .edit-image-action[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff;font-size:14px;letter-spacing:.42px}app-new-image-editor[_ngcontent-%COMP%]{padding-top:16px}.agreement-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-bottom:13px}.agreement-container[_ngcontent-%COMP%]   mat-radio-group[_ngcontent-%COMP%]{margin-bottom:24px}.button-size-relative-to-width[_ngcontent-%COMP%]{width:100%;text-overflow:ellipsis;overflow:hidden}.button-size-relative-to-width[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{float:right;font-size:22px;margin-right:-5px;margin-top:6px;padding-left:5px}.button-size-relative-to-width[_ngcontent-%COMP%]   .material-icons--left[_ngcontent-%COMP%]{float:left;font-size:19px;margin-right:0;margin-left:-5px;padding-right:16px}.prescription-dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.prescription-dialog-container[_ngcontent-%COMP%]   .warning-container[_ngcontent-%COMP%]{max-width:400px}mat-dialog-content[_ngcontent-%COMP%], div[mat-dialog-content][_ngcontent-%COMP%]{flex-grow:1;max-height:100%;margin:0 -16px;padding:16px}.mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 0 0;min-height:unset;margin:0;flex-direction:row}.mat-dialog-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-weight:700;text-transform:uppercase}@media (max-width: 960px){.mat-dialog-actions[_ngcontent-%COMP%]{align-content:center}.mat-dialog-actions[_ngcontent-%COMP%]   .mb-5[_ngcontent-%COMP%]{margin-bottom:5px}}.login__social-wrapper[_ngcontent-%COMP%]{margin-bottom:-4px}.login__social-container[_ngcontent-%COMP%]{width:100%}.login__social-btn[_ngcontent-%COMP%]{cursor:pointer;border-radius:4px;height:40px;background-color:#dfe1e5}.login__social-icon[_ngcontent-%COMP%]{fill:#8f8f8f;outline:none;margin-right:6px}.login__social-text[_ngcontent-%COMP%]{color:#242424;font-weight:700;font-size:14px}.alternative-login[_ngcontent-%COMP%]{margin-top:-12px}.alternative-login__text[_ngcontent-%COMP%]{background-color:#fff;padding:0 8px}"]}),function(rn,$t,Nt,Rn){var ir,Wn=arguments.length,ji=Wn<3?$t:null===Rn?Rn=Object.getOwnPropertyDescriptor($t,Nt):Rn;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ji=Reflect.decorate(rn,$t,Nt,Rn);else for(var dr=rn.length-1;dr>=0;dr--)(ir=rn[dr])&&(ji=(Wn<3?ir(ji):Wn>3?ir($t,Nt,ji):ir($t,Nt))||ji);Wn>3&&ji&&Object.defineProperty($t,Nt,ji)}([(0,me.I)(),function(rn,$t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",$t)}(0,q.n)],On.prototype,"loggedUser",void 0);let un=class{constructor($t,Nt,Rn,Wn,ji,ir){this.cartService=$t,this.userLocationService=Nt,this.snackbarMessageService=Rn,this.fbPixelTrackingService=Wn,this.dialog=ji,this.messageService=ir,this.isAddToCartLoading=!1,this.loadingFromMultipleOffers=!1,this.closeOffersDialog=new a.x,this.loadingFromMultipleOffersSubject=new a.x,this.quantitySubject=new a.x,this.sendAvailableQuantity=new a.x,this.closeOffersDialog$=this.closeOffersDialog.asObservable(),this.loadingFromMultipleOffers$=this.loadingFromMultipleOffersSubject.asObservable(),this.quantity$=this.quantitySubject.asObservable()}setType($t){this.type=$t}getIsAddToCartLoading(){return this.isAddToCartLoading}setAddToCartLoading($t){this.isAddToCartLoading=$t,this.triggerLoadingFromMultipleOffers($t)}triggerLoadingFromMultipleOffers($t){this.type!==h.yP3.OFFERS_POPUP||this.loadingFromMultipleOffers===$t||(this.setLoadingFromMultipleOffers($t),this.loadingFromMultipleOffersSubject.next($t))}setLoadingFromMultipleOffers($t){this.loadingFromMultipleOffers=$t}triggerUpdatedQuantity($t){this.quantitySubject.next($t)}addOfferToCartIfLocationAvailable($t,Nt=!1){const Rn=this.cartService.getCurrentCart();this.userLocationService.getStoreLocation(Rn?.city).pipe((0,t.q)(1)).subscribe(Wn=>!Wn||!this.userLocationService.getUserLocationStore()||Rn.city&&h.VLR.normalizeAllDiacritics(Wn.mainLocality).toLowerCase()!==h.VLR.normalizeAllDiacritics(this.userLocationService.getUserLocationStore()).toLowerCase()?Rn.businessCarts.length?this.openLocationWarningDialog($t):void this.changeCartLocation($t):this.addOfferToCart($t,Nt))}changeCartLocation($t){this.userLocationService.changeCartLocation(this.userLocationService.getUserAddress()).pipe((0,l.w)(()=>this.cartService.fetch()),(0,t.q)(1)).subscribe(()=>this.addOfferToCart($t))}openLocationWarningDialog($t){this.dialog.closeAll(),this.dialog.open(y,{width:`${b.o7}px`,maxWidth:b.DY,disableClose:!0,panelClass:"base-panel-class",data:{location:this.userLocationService.getUserAddress()?.city}}).afterClosed().pipe((0,t.q)(1)).subscribe(Rn=>{Rn&&Rn.confirmed&&this.changeCartLocationAndAddToCart($t)})}changeCartLocationAndAddToCart($t){this.cartService.clear().pipe((0,l.w)(()=>this.userLocationService.changeCartLocation(this.userLocationService.getUserAddress())),(0,l.w)(()=>this.cartService.fetch()),(0,t.q)(1)).subscribe(()=>this.addOfferToCart($t))}addOfferToCart($t,Nt=!1){if(!$t.offer&&!$t.isPromotionalProduct)return;if($t.quantity<=0||isNaN($t.quantity))return this.snackbarMessageService.displayMessage(h.CsS.ERROR,"SHARED.PRODUCT.CONTROLS.INVALID_QUANTITY");const Rn=this.cartService.getCurrentCart(),Wn=Rn.findProductToBeAddedInCart($t);if(Wn)return this.changeOfferQuantityInCart(Wn,$t);const ji=Rn.findSameProductToBeAddedFromDifferentProvider($t);if(ji)return this.openProductSelectorDialog(ji,$t,Nt);const ir=Rn.hasPrescriptionFor($t.offer).shift();return!$t.requiresPrescription&&!$t.offer.prescriptionNeeded||ir?this.addNewOfferToCart($t,ir):this.openPrescriptionDialog($t)}addNewOfferToCart($t,Nt){const Rn=$t.offer.toCartProduct($t.quantity,Nt);this.setAddToCartLoading(!0),this.cartService.add(Rn).pipe((0,t.q)(1)).subscribe({next:Wn=>{this.sendAvailableQuantity.next({existingProductQuantity:0,availableProductQuantity:Wn[1].quantity}),this.fbPixelTrackingService.addToCart(Rn),this.closeOffersDialog.next(),this.setAddToCartLoading(!1),Wn[1].quantity<$t.quantity?this.messageService.displayMessage(h.CsS.ERROR,"PAGES.PATIENT.FAVORITES.FAVORITES_LIST.AVAILABLE_QUANTITY_ADDED",{quantity:Wn[1].quantity}):$t.messageSnackbarType===h.vax.DEFAULT?this.snackbarMessageService.displayMessage(h.CsS.SUCCESS,"SHARED.PRODUCT.CONTROLS.PRODUCT_IN_CART",{productName:Rn.name}):this.messageService.displayMessage(h.CsS.SUCCESS,"SHARED.PRODUCT.CONTROLS.PRODUCT_ADDED_TO_CART")},error:Wn=>{this.handleAddingToCartErrors(Wn.error.message),this.setAddToCartLoading(!1)}})}handleAddingToCartErrors($t){switch(h.VLR.getErrorCodeFromString($t)){case h.cD9.NO_STOCK_FOUND:case h.cD9.DEPLETED_STOCK:this.snackbarMessageService.displayMessage(h.CsS.ERROR,"SHARED.PRODUCT.CONTROLS.NO_STOCK");break;case h.cD9.INSUFFICIENT_STOCK:this.snackbarMessageService.displayMessage(h.CsS.ERROR,"SHARED.PRODUCT.CONTROLS.STOCK_TOO_LOW");break;default:this.snackbarMessageService.displayMessage(h.CsS.ERROR,"SHARED.PRODUCT.CONTROLS.COULD_NOT_ADD_TO_CART")}}openProductSelectorDialog($t,Nt,Rn=!1){Rn&&this.dialog.closeAll(),this.dialog.open(Q,{data:{existingProduct:$t,selectedOffer:{offer:Nt.offer,quantity:Nt.quantity}},minWidth:(0,h.I3d)(700),width:(0,h.I3d)(700),position:h.VLR.getDialogPosition(),panelClass:"base-panel-class"}).afterClosed().pipe((0,t.q)(1)).subscribe(ji=>(ji.shouldStopSpinner&&this.triggerLoadingFromMultipleOffers(!1),ji?ji.newOffer?this.handleAddingNewOfferAfterClosingProductSelector($t,Nt,ji.newQuantity):ji.newQuantity?this.handleNewQuantityAfterClosingProductSelector($t,Nt,ji.newQuantity):void 0:this.triggerLoadingFromMultipleOffers(!1)))}handleAddingNewOfferAfterClosingProductSelector($t,Nt,Rn){this.cartService.remove($t).pipe((0,t.q)(1)).subscribe(()=>{this.triggerUpdatedQuantity(Rn),Nt.quantity=Rn;const Wn=this.cartService.getCurrentCart().hasPrescriptionFor(Nt.offer).shift();Nt.requiresPrescription&&!Wn?this.openPrescriptionDialog(Nt):this.addProductWithExistingPrescription(Nt,Wn,void 0,!0)})}handleNewQuantityAfterClosingProductSelector($t,Nt,Rn){this.triggerUpdatedQuantity(Rn),Nt.quantity=Rn,this.cartService.changeProductQuantity($t,Rn).pipe((0,t.q)(1)).subscribe({next:()=>{this.snackbarMessageService.displayMessage(h.CsS.SUCCESS,"SHARED.PRODUCT.CONTROLS.QUANTITY_CHANGED"),this.triggerUpdatedQuantity(1),this.fbPixelTrackingService.addToCart($t),this.closeOffersDialog.next()},error:()=>this.triggerUpdatedQuantity(1)})}openPrescriptionDialog($t){this.dialog.closeAll(),this.dialog.open(On,{data:{offer:$t.offer},position:h.VLR.getDialogPosition(),width:(0,h.I3d)(420),height:(0,h.ny$)(700),maxWidth:"100%",panelClass:["base-panel-class","pharma-dialog"]}).afterClosed().pipe((0,t.q)(1)).subscribe({next:Rn=>{this.triggerLoadingFromMultipleOffers(!1),Rn.prescriptionId?this.addProductWithExistingPrescription($t,Rn.prescriptionId,!0):!0===Rn.userHasPrescription&&this.addProductWithExistingPrescription($t,null,Rn.userHasPrescription)}})}addProductWithExistingPrescription($t,Nt,Rn,Wn){const ji=$t.offer.toCartProduct($t.quantity,Nt,Rn);Wn&&this.triggerUpdatedQuantity(1);const dr=this.cartService.getCurrentCart().findProductToBeAddedInCart($t);if(dr)return this.changeOfferQuantityInCart(dr,$t);this.setAddToCartLoading(!0),this.cartService.add(ji).pipe((0,t.q)(1)).subscribe({next:()=>{this.snackbarMessageService.displayMessage(h.CsS.SUCCESS,"SHARED.PRODUCT.CONTROLS.PRODUCT_IN_CART",{productName:ji.name}),this.fbPixelTrackingService.addToCart(ji),this.closeOffersDialog.next(),this.setAddToCartLoading(!1)},error:()=>{this.snackbarMessageService.displayMessage(h.CsS.ERROR,"SHARED.PRODUCT.CONTROLS.CANNOT_ADD_PRODUCT",{value:ji.name}),this.setAddToCartLoading(!1)}})}changeOfferQuantityInCart($t,Nt){this.setAddToCartLoading(!0),this.cartService.changeProductQuantity($t,$t.quantity+Nt.quantity).pipe((0,t.q)(1)).subscribe({next:Rn=>{this.sendAvailableQuantity.next({existingProductQuantity:$t.quantity+Nt.quantity,availableProductQuantity:Rn[1].quantity}),this.fbPixelTrackingService.addToCart($t),this.setAddToCartLoading(!1),Rn[1].quantity<$t.quantity+Nt.quantity?this.messageService.displayMessage(h.CsS.ERROR,"PAGES.PATIENT.FAVORITES.FAVORITES_LIST.AVAILABLE_QUANTITY_ADDED",{quantity:Rn[1].quantity}):this.messageService.displayMessage(h.CsS.SUCCESS,Nt.messageSnackbarType===h.vax.DEFAULT?"SHARED.PRODUCT.CONTROLS.QUANTITY_CHANGED":"SHARED.PRODUCT.CONTROLS.PRODUCT_ADDED_TO_CART")},error:Rn=>{this.handleAddingToCartErrors(Rn.error.errorMessage),this.setAddToCartLoading(!1)}})}};var $t;un=function(rn,$t,Nt,Rn){var ir,Wn=arguments.length,ji=Wn<3?$t:null===Rn?Rn=Object.getOwnPropertyDescriptor($t,Nt):Rn;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ji=Reflect.decorate(rn,$t,Nt,Rn);else for(var dr=rn.length-1;dr>=0;dr--)(ir=rn[dr])&&(ji=(Wn<3?ir(ji):Wn>3?ir($t,Nt,ji):ir($t,Nt))||ji);return Wn>3&&ji&&Object.defineProperty($t,Nt,ji),ji}([(5,$t=(0,n.Inject)(h.vio.SnackbarMessageServiceToken),function(Nt,Rn){$t(Nt,Rn,5)}),function(rn,$t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:paramtypes",$t)}(0,[Object,Object,Object,Object,e.on,Object])],un)},92538:(oe,x,i)=>{"use strict";i.d(x,{A:()=>q});var e=i(35559),n=i(28918),a=i(94650),t=i(17366),l=i(36895),h=i(1576),s=i(55829),d=i(44850),p=i(31829),u=i(57268),g=i(95698),v=i(89383),y=i(3611);const b=function(se){return{wrapper:se}};function S(se,ve){if(1&se&&(a.\u0275\u0275elementStart(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),a.\u0275\u0275element(4,"img",7),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(5,"div",8),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(6,"div",9),a.\u0275\u0275element(7,"span",1),a.\u0275\u0275elementEnd()()()),2&se){const Ee=ve.$implicit,Ye=ve.index,wt=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction1(4,b,Ye<2)),a.\u0275\u0275advance(3),a.\u0275\u0275property("src",wt.getImageURL(Ye),a.\u0275\u0275sanitizeUrl),a.\u0275\u0275advance(1),a.\u0275\u0275property("innerHTML",Ee.TITLE,a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",Ee.TEXT,a.\u0275\u0275sanitizeHtml)}}var E=(()=>{return(se=E||(E={})).DEAL="deal",se.TRUCK="truck",se.ADS="ads",E;var se})(),D=(()=>{return(se=D||(D={}))[se.DEAL=0]="DEAL",se[se.TRUCK=1]="TRUCK",se[se.ADS=2]="ADS",D;var se})();let A=(()=>{class se{constructor(Ee){this.translateService=Ee,this.window=window,this.keys=[],this.texts=[],this.breakpoints=n.u3l}ngOnInit(){Object.keys(E).filter(Ee=>this.keys.push(Ee.toLowerCase())),this.translateService.get("SHARED.INFO_TEXTS.DRCARMEN_SERVICES.SERVICES").pipe((0,g.q)(1)).subscribe(Ee=>this.texts=Ee)}getImageURL(Ee){switch(Ee){case D.DEAL:return"assets/images/home/"+this.keys[Ee]+".svg";case D.TRUCK:case D.ADS:return"assets/images/cart/"+this.keys[Ee]+".svg";default:return""}}}return se.\u0275fac=function(Ee){return new(Ee||se)(a.\u0275\u0275directiveInject(v.sK))},se.\u0275cmp=a.\u0275\u0275defineComponent({type:se,selectors:[["app-drcarmen-services-text"]],decls:7,vars:7,consts:[[1,"container"],[3,"innerHTML"],["class","section",4,"ngFor","ngForOf"],[1,"section"],["fxLayout","column",3,"ngClass"],["fxLayoutAlign","start center",1,"img-and-title-container"],[1,"img-container"],[3,"src"],[1,"title",3,"innerHTML"],[1,"mt-8"]],template:function(Ee,Ye){1&Ee&&(a.\u0275\u0275elementStart(0,"div",0)(1,"h2"),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(4,"p",1),a.\u0275\u0275pipe(5,"translate"),a.\u0275\u0275template(6,S,8,6,"div",2),a.\u0275\u0275elementEnd()),2&Ee&&(a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(3,3,"SHARED.INFO_TEXTS.DRCARMEN_SERVICES.DRCARMEN_SERVICES")),a.\u0275\u0275advance(2),a.\u0275\u0275property("innerHTML",a.\u0275\u0275pipeBind1(5,5,"SHARED.INFO_TEXTS.DRCARMEN_SERVICES.SERVICES_EXPLANATION"),a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",Ye.texts))},dependencies:[l.NgClass,l.NgForOf,h.xw,h.Wh,s.oO,y.b,v.X$],styles:[".container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:19px;margin-bottom:10px}.container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:16px}.container[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]{display:flex;border:2px solid #00853b;border-radius:50%;height:51px;width:51px;min-width:51px;justify-content:center;align-items:center;margin:0 16px 0 0}.container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]{margin-bottom:25px}.container[_ngcontent-%COMP%]   .section[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:19px;color:#00853b}@media (max-width: 420px){.container[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]{margin-bottom:16px}}"]}),se})();i(17596);var B=i(97392);function V(se,ve){if(1&se&&(a.\u0275\u0275elementStart(0,"b",11),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&se){const Ee=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(Ee.todaySchedule.hours)}}function X(se,ve){if(1&se&&(a.\u0275\u0275elementStart(0,"div")(1,"div",18)(2,"b"),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(4,"span",19),a.\u0275\u0275elementEnd()()),2&se){const Ee=ve.$implicit,Ye=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass",Ye.isBusinessDay(Ee.businessHours)?"business-day-container":"free-day-container"),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(Ee.name),a.\u0275\u0275advance(1),a.\u0275\u0275property("innerHTML",Ee.businessHours,a.\u0275\u0275sanitizeHtml)}}function re(se,ve){1&se&&a.\u0275\u0275element(0,"mat-divider",1)}const Q=function(se){return{"mb-8":se}};function ae(se,ve){if(1&se&&(a.\u0275\u0275elementStart(0,"ul")(1,"li",21),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"titlecase"),a.\u0275\u0275pipe(4,"date"),a.\u0275\u0275elementEnd()()),2&se){const Ee=ve.$implicit,Ye=ve.last;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction1(9,Q,!Ye)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(3,2,a.\u0275\u0275pipeBind4(4,4,Ee,"dd MMM yyyy - EEEE","UTC","ro-RO")))}}function K(se,ve){if(1&se&&(a.\u0275\u0275elementStart(0,"div")(1,"h2",20),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(4,ae,5,11,"ul",15),a.\u0275\u0275elementEnd()),2&se){const Ee=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(3,2,"SHARED.INFO_TEXTS.BUSINESS_SCHEDULE.FREE_DAYS")),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",Ee.business.holidays)}}let k=(()=>{class se{constructor(){this.todaySchedule={hours:"-",state:n.h9G.CLOSED},this.businessSchedule=new Array(7),this.holidays=[],this.holidayDate=[],this.today=new Date,this.isBusinessOpen=!1,this.window=window}ngOnInit(){this.setHolidays(),this.getTodaySchedule(),this.getBusinessSchedule()}setHolidays(){this.business.custom.schedule.holidays&&this.business.custom.schedule.holidays.forEach(Ee=>{Ee=new Date(Ee),this.saveThisWeekHolidays(Ee)})}saveThisWeekHolidays(Ee){const Ye=new Date;Ye.setDate(Ye.getDate()+6),(Ye>=Ee&&new Date<=Ee||(new Date).toLocaleDateString()===Ee.toLocaleDateString())&&this.saveTheHolidayDateAndDayOfTheWeek(Ee)}getBusinessSchedule(){const Ee=this.business.schedule;for(let Ye=0;Ye<7;Ye++){const wt=Ee[Ye].name;let Ut=Ee[Ye].open+" <br> "+Ee[Ye].close;Ut="-"===Ee[Ye].open&&"-"===Ee[Ye].close||Ee[Ye].open===Ee[Ye].close||this.getBusinessHolidaySchedule(Ye)?n.h9G.CLOSED:Ut,this.businessSchedule[Ye]={name:wt,businessHours:Ut}}}getBusinessHolidaySchedule(Ee){if(this.holidays.length>0)return this.findHolidayDate(Ee)}findHolidayDate(Ee){const Ye=this.holidays.filter(wt=>wt===Ee);if(null!=Ye[0])return this.getHolidayDateByIndex(this.holidays.indexOf(Ye[0]))}getHolidayDateByIndex(Ee){return this.holidayDate.filter((Ye,wt)=>wt===Ee)[0]}saveTheHolidayDateAndDayOfTheWeek(Ee){this.holidayDate.push(Ee),Ee=this.convertToDayOfWeek(Ee.getDay()),this.holidays.push(Ee)}getTodaySchedule(){this.todaySchedule=this.getDaySchedule(this.business.schedule,this.today.getDay())}getDaySchedule(Ee,Ye){const wt="-"===Ee[Ye=this.convertToDayOfWeek(Ye)]?.open&&"-"===Ee[Ye]?.close||Ee[Ye]?.open===Ee[Ye]?.close,Wt=this.getBusinessHolidaySchedule(Ye);let Ut=Ee[Ye]?.open+" - "+Ee[Ye]?.close;Ut=wt||Wt?null:Ut;const nt=this.business.isBusinessOpen(Ee,this.business.holidays).toUpperCase();return this.isBusinessOpenedNow(nt),{hours:Ut,state:nt}}convertToDayOfWeek(Ee){return-1==(Ee-=1)?6:Ee}isBusinessOpenedNow(Ee){this.isBusinessOpen=Ee!==n.h9G.CLOSED}isBusinessDay(Ee){return Ee!==n.h9G.CLOSED}}return se.\u0275fac=function(Ee){return new(Ee||se)},se.\u0275cmp=a.\u0275\u0275defineComponent({type:se,selectors:[["app-business-schedule"]],inputs:{business:"business"},decls:32,vars:22,consts:[[1,"container"],[1,"mb-16"],["fxLayout","row wrap","fxLayoutAlign","space-between center",1,"business-details","mb-16"],["fxLayout","row","fxLayoutAlign","space-between center",1,"business"],[1,"logo-container"],[3,"src","alt"],["fxLayout","column","fxLayoutAlign","space-between end","fxLayout.lt-sm","space-between start",1,"address-and-hours-container"],["fxLayout","row","fxLayoutAlign","space-between center",1,"address-container"],[1,"location-icon"],[1,"location"],["fxLayout","row wrap","fxLayoutAlign","space-between center",1,"today-schedule-container"],[1,"schedule"],["class","schedule",4,"ngIf"],[1,"state",3,"ngClass"],["fxLayout","row wrap","fxLayoutAlign","start",1,"mb-16",3,"fxLayoutGap"],[4,"ngFor","ngForOf"],["class","mb-16",4,"ngIf"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between center",1,"day-container",3,"ngClass"],[1,"hours",3,"innerHTML"],[1,"mb-8"],[3,"ngClass"]],template:function(Ee,Ye){1&Ee&&(a.\u0275\u0275elementStart(0,"div",0)(1,"h2",1),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"div",2)(5,"div",3)(6,"div",4),a.\u0275\u0275element(7,"img",5),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(8,"span"),a.\u0275\u0275text(9),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(10,"div",6)(11,"div",7)(12,"mat-icon",8),a.\u0275\u0275text(13,"room"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(14,"span",9),a.\u0275\u0275text(15),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(16,"span",9),a.\u0275\u0275text(17),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(18,"div",10)(19,"span",11),a.\u0275\u0275text(20),a.\u0275\u0275pipe(21,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(22,V,2,1,"b",12),a.\u0275\u0275elementStart(23,"div",13)(24,"span"),a.\u0275\u0275text(25),a.\u0275\u0275pipe(26,"uppercase"),a.\u0275\u0275pipe(27,"translate"),a.\u0275\u0275elementEnd()()()()(),a.\u0275\u0275elementStart(28,"div",14),a.\u0275\u0275template(29,X,5,3,"div",15),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(30,re,1,0,"mat-divider",16),a.\u0275\u0275template(31,K,5,4,"div",17),a.\u0275\u0275elementEnd()),2&Ee&&(a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(3,14,"SHARED.INFO_TEXTS.BUSINESS_SCHEDULE.WEEKLY_SCHEDULE")),a.\u0275\u0275advance(5),a.\u0275\u0275property("src",(null==Ye.business||null==Ye.business.files||null==Ye.business.files.profile_image?null:Ye.business.files.profile_image.url)||"assets/images/others/user.jpg",a.\u0275\u0275sanitizeUrl)("alt",Ye.business.name),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(Ye.business.name),a.\u0275\u0275advance(6),a.\u0275\u0275textInterpolate(Ye.business.address.address+", "+Ye.business.address.city),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(Ye.business.address.zip_code?" "+Ye.business.address.zip_code:""),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(21,16,"SHARED.INFO_TEXTS.BUSINESS_SCHEDULE.TODAY_SCHEDULE")),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",Ye.todaySchedule),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass",Ye.isBusinessOpen?"open":"closed"),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(Ye.todaySchedule.state+a.\u0275\u0275pipeBind1(26,18,a.\u0275\u0275pipeBind1(27,20,"SHARED.INFO_TEXTS.BUSINESS_SCHEDULE.NOW"))),a.\u0275\u0275advance(3),a.\u0275\u0275property("fxLayoutGap",Ye.window.innerWidth<720?"4px":"8px"),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",Ye.businessSchedule),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",Ye.holidays.length>0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",Ye.holidays.length>0))},dependencies:[l.NgClass,l.NgForOf,l.NgIf,h.xw,h.SQ,h.Wh,s.oO,B.Hw,d.d,y.b,l.UpperCasePipe,l.TitleCasePipe,l.DatePipe,v.X$],styles:[".container[_ngcontent-%COMP%]{padding:16px 0}.container[_ngcontent-%COMP%]   .business[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{width:40px;height:40px;padding:5px;display:flex;text-align:center;justify-content:center;margin-right:8px}.container[_ngcontent-%COMP%]   .business[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:90%;height:90%}.container[_ngcontent-%COMP%]   .business[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700;font-size:14px;display:flex;text-align:center;justify-content:center}.container[_ngcontent-%COMP%]   .address-and-hours-container[_ngcontent-%COMP%]{max-width:75%;font-size:13px}.container[_ngcontent-%COMP%]   .address-and-hours-container[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]{margin-bottom:5px}.container[_ngcontent-%COMP%]   .address-and-hours-container[_ngcontent-%COMP%]   .address-container[_ngcontent-%COMP%]   .location[_ngcontent-%COMP%]{margin-top:7px}.container[_ngcontent-%COMP%]   .address-and-hours-container[_ngcontent-%COMP%]   .today-schedule-container[_ngcontent-%COMP%]   .schedule[_ngcontent-%COMP%]{padding-top:2px;margin-right:5px}.container[_ngcontent-%COMP%]   .address-and-hours-container[_ngcontent-%COMP%]   .state[_ngcontent-%COMP%]{color:#fff;border-radius:4px;width:85px;max-height:19px;height:100%;font-size:10px!important;font-weight:700;display:flex;text-align:center;justify-content:center;line-height:19px}.container[_ngcontent-%COMP%]   .address-and-hours-container[_ngcontent-%COMP%]   .open[_ngcontent-%COMP%]{background-color:#4caf50}.container[_ngcontent-%COMP%]   .address-and-hours-container[_ngcontent-%COMP%]   .closed[_ngcontent-%COMP%]{background-color:#ff001a}.container[_ngcontent-%COMP%]   .day-container[_ngcontent-%COMP%]{height:75px;width:70px}.container[_ngcontent-%COMP%]   .business-day-container[_ngcontent-%COMP%]{background-color:#f4f5f7;padding:8px 0}.container[_ngcontent-%COMP%]   .business-day-container[_ngcontent-%COMP%]   .hours[_ngcontent-%COMP%]{font-size:11px}.container[_ngcontent-%COMP%]   .free-day-container[_ngcontent-%COMP%]{background-color:#ffebee;padding:8px 0 15px}.container[_ngcontent-%COMP%]   .free-day-container[_ngcontent-%COMP%]   .hours[_ngcontent-%COMP%]{font-weight:700;color:#ff001a}.container[_ngcontent-%COMP%]   .mb-16[_ngcontent-%COMP%]{margin-bottom:16px}.container[_ngcontent-%COMP%]   .mb-8[_ngcontent-%COMP%]{margin-bottom:8px}@media (max-width: 768px){.container[_ngcontent-%COMP%]   .day-container[_ngcontent-%COMP%]{margin-bottom:4px}}@media (max-width: 420px){.container[_ngcontent-%COMP%]   .address-and-hours-container[_ngcontent-%COMP%]{max-width:100%}.container[_ngcontent-%COMP%]   .day-container[_ngcontent-%COMP%]{width:calc(25vw - 22px)}}@media (max-width: 320px){.container[_ngcontent-%COMP%]   .day-container[_ngcontent-%COMP%]{width:calc(33.3333333333vw - 31px)}}"]}),se})();function $(se,ve){1&se&&(a.\u0275\u0275elementStart(0,"div")(1,"h2",9),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(4,"app-tos"),a.\u0275\u0275elementEnd()),2&se&&(a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(3,1,"PAGES.PROFILE.CART.INFORMATION_DIALOG.TERMS_TITLE")))}function j(se,ve){if(1&se&&(a.\u0275\u0275elementStart(0,"div")(1,"h2",9),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(4,"app-confidentiality-policy-text",10),a.\u0275\u0275elementEnd()),2&se){const Ee=a.\u0275\u0275nextContext();a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(3,2,"PAGES.PROFILE.CART.INFORMATION_DIALOG.CONFIDENTIALITY_POLICY_TITLE")),a.\u0275\u0275advance(2),a.\u0275\u0275property("html",Ee.html)}}function R(se,ve){1&se&&(a.\u0275\u0275elementStart(0,"div",11),a.\u0275\u0275element(1,"app-drcarmen-services-text"),a.\u0275\u0275elementEnd())}function U(se,ve){if(1&se&&a.\u0275\u0275element(0,"app-business-schedule",12),2&se){const Ee=a.\u0275\u0275nextContext();a.\u0275\u0275property("business",Ee.data.additionalInformation)}}function le(se,ve){1&se&&a.\u0275\u0275element(0,"span")}function T(se,ve){if(1&se){const Ee=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"drc-button",13),a.\u0275\u0275listener("clickEvent",function(){a.\u0275\u0275restoreView(Ee);const wt=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(wt.close())}),a.\u0275\u0275elementEnd()}if(2&se){const Ee=a.\u0275\u0275nextContext();a.\u0275\u0275property("color",Ee.buttonColors.primary)("type",Ee.buttonType.iconAndTextButton)("icon","keyboard_arrow_left")("iconPosition",Ee.iconPositions.left)("textTranslationKey","PAGES.PROFILE.CART.INFORMATION_DIALOG.BACK")}}function H(se,ve){if(1&se){const Ee=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"drc-button",13),a.\u0275\u0275listener("clickEvent",function(){a.\u0275\u0275restoreView(Ee);const wt=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(wt.close())}),a.\u0275\u0275elementEnd()}if(2&se){const Ee=a.\u0275\u0275nextContext();a.\u0275\u0275property("color",Ee.buttonColors.primary)("type",Ee.buttonType.iconAndTextButton)("icon","done")("iconPosition",Ee.iconPositions.left)("textTranslationKey","PAGES.PROFILE.CART.INFORMATION_DIALOG.I_UNDERSTAND")}}const[N,pe,de,me]=[52,57,16,32];let q=(()=>{class se{constructor(Ee,Ye){this.dialogRef=Ee,this.data=Ye,this.content=n.zcD,this.shouldDisplayScheduleButton=!1,this.dialogMaxHeight={maxHeight:"0px"},this.iconPositions=n.ggF,this.buttonColors=n.B6Y,this.buttonType=n.L$3}ngOnInit(){this.displayContent=this.data.type,this.html=this.data.html,this.shouldDisplayScheduleButton=this.displayContent===n.zcD.SCHEDULE,this.dialogMaxHeight.maxHeight=window.innerHeight-me-N-pe-de+"px"}close(){this.dialogRef.close()}}return se.\u0275fac=function(Ee){return new(Ee||se)(a.\u0275\u0275directiveInject(e.hV),a.\u0275\u0275directiveInject(e.eJ))},se.\u0275cmp=a.\u0275\u0275defineComponent({type:se,selectors:[["app-information-dialog"]],decls:14,vars:8,consts:[["fxLayout","row","fxLayoutAlign","end center",1,"info-container-header"],[1,"material-icons","cursor-pointer",3,"click"],[1,"dialog-full-width-divider"],[3,"ngStyle","ngSwitch"],[4,"ngSwitchCase"],["class","services-container",4,"ngSwitchCase"],[3,"business",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","w-100",3,"color","type","icon","iconPosition","textTranslationKey","clickEvent",4,"ngIf"],[1,"title"],[3,"html"],[1,"services-container"],[3,"business"],[1,"w-100",3,"color","type","icon","iconPosition","textTranslationKey","clickEvent"]],template:function(Ee,Ye){1&Ee&&(a.\u0275\u0275elementStart(0,"div",0)(1,"i",1),a.\u0275\u0275listener("click",function(){return Ye.close()}),a.\u0275\u0275text(2,"close"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(3,"div",2),a.\u0275\u0275element(4,"mat-divider"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"mat-dialog-content",3),a.\u0275\u0275template(6,$,5,3,"div",4),a.\u0275\u0275template(7,j,5,4,"div",4),a.\u0275\u0275template(8,R,2,0,"div",5),a.\u0275\u0275template(9,U,1,1,"app-business-schedule",6),a.\u0275\u0275template(10,le,1,0,"span",7),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(11,"mat-dialog-actions"),a.\u0275\u0275template(12,T,1,5,"drc-button",8),a.\u0275\u0275template(13,H,1,5,"drc-button",8),a.\u0275\u0275elementEnd()),2&Ee&&(a.\u0275\u0275advance(5),a.\u0275\u0275property("ngStyle",Ye.dialogMaxHeight)("ngSwitch",Ye.displayContent),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",Ye.content.TOS),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",Ye.content.POLICY),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",Ye.content.FEE),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",Ye.content.SCHEDULE),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",Ye.shouldDisplayScheduleButton),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!Ye.shouldDisplayScheduleButton))},dependencies:[t.r,l.NgIf,l.NgStyle,l.NgSwitch,l.NgSwitchCase,l.NgSwitchDefault,h.xw,h.Wh,s.Zl,e.Rb,e.ev,d.d,p.n,u.w,A,k,v.X$],styles:[".info-container-header[_ngcontent-%COMP%]{padding-bottom:16px}.info-container-header[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.title[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:16px}.services-container[_ngcontent-%COMP%]{padding:16px 0 24px}.icon[_ngcontent-%COMP%]{font-size:20px}.mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 16px 0}"]}),se})()},20124:(oe,x,i)=>{"use strict";i.d(x,{C:()=>S});var e=i(28918),n=i(94650),a=i(35559),t=i(17366),l=i(36895),h=i(1576),s=i(55829),d=i(44850),p=i(3611),u=i(89383);const[g,v,y,b]=[52,57,16,32];let S=(()=>{class E{constructor(A){this.dialogRef=A,this.breakpoints=e.u3l,this.imagePath=e.W$8,this.sgrPageURL=e.B4t,this.buttonType=e.L$3,this.iconPositions=e.ggF,this.buttonColors=e.B6Y}get dialogMaxHeight(){return{maxHeight:this.dialogHeight-g-v-y+"px"}}ngOnInit(){this.dialogHeight=window.innerHeight-b}close(){this.dialogRef.close()}}return E.\u0275fac=function(A){return new(A||E)(n.\u0275\u0275directiveInject(a.hV))},E.\u0275cmp=n.\u0275\u0275defineComponent({type:E,selectors:[["frontend-sgr-information-dialog"]],decls:44,vars:38,consts:[["fxLayout","row","fxLayoutAlign","end center",1,"sgr-container-header"],[1,"material-icons","cursor-pointer",3,"click"],[1,"dialog-full-width-divider"],[3,"ngStyle"],[1,"content"],[1,"content__heading","pb-8","pt-16"],[1,"content__description"],["target","_blank",3,"href"],[3,"innerHTML"],[1,"content__sgr-image",3,"src","alt"],[1,"w-100",3,"color","type","icon","iconPosition","textTranslationKey","clickEvent"]],template:function(A,P){1&A&&(n.\u0275\u0275elementStart(0,"div",0)(1,"i",1),n.\u0275\u0275listener("click",function(){return P.close()}),n.\u0275\u0275text(2,"close"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(3,"div",2),n.\u0275\u0275element(4,"mat-divider"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"mat-dialog-content",3)(6,"div",4)(7,"div",5),n.\u0275\u0275text(8),n.\u0275\u0275pipe(9,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(10,"div",6)(11,"a",7),n.\u0275\u0275text(12),n.\u0275\u0275pipe(13,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(14,"span"),n.\u0275\u0275text(15),n.\u0275\u0275pipe(16,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275element(17,"mat-divider"),n.\u0275\u0275elementStart(18,"div",5),n.\u0275\u0275text(19),n.\u0275\u0275pipe(20,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(21,"div",6)(22,"div"),n.\u0275\u0275element(23,"span",8),n.\u0275\u0275pipe(24,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(25,"div"),n.\u0275\u0275element(26,"span",8),n.\u0275\u0275pipe(27,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(28,"div"),n.\u0275\u0275element(29,"span",8),n.\u0275\u0275pipe(30,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275element(31,"mat-divider"),n.\u0275\u0275elementStart(32,"div",5),n.\u0275\u0275text(33),n.\u0275\u0275pipe(34,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(35,"div",6),n.\u0275\u0275text(36),n.\u0275\u0275pipe(37,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(38,"img",9),n.\u0275\u0275pipe(39,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(40,"div",2),n.\u0275\u0275element(41,"mat-divider"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(42,"mat-dialog-actions")(43,"drc-button",10),n.\u0275\u0275listener("clickEvent",function(){return P.close()}),n.\u0275\u0275elementEnd()()),2&A&&(n.\u0275\u0275advance(5),n.\u0275\u0275property("ngStyle",P.dialogMaxHeight),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(9,18,"PAGES.ABOUT.SGR.SGR_GUARANTEE")),n.\u0275\u0275advance(3),n.\u0275\u0275property("href",P.sgrPageURL,n.\u0275\u0275sanitizeUrl),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(13,20,"PAGES.ABOUT.SGR.SGR_DESCRIPTION_1")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(16,22,"PAGES.ABOUT.SGR.SGR_DESCRIPTION_2")),n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(20,24,"PAGES.ABOUT.SGR.ADDITIONAL_INFO")),n.\u0275\u0275advance(4),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind1(24,26,"PAGES.ABOUT.SGR.INFORMATION.1"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(3),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind1(27,28,"PAGES.ABOUT.SGR.INFORMATION.2"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(3),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind1(30,30,"PAGES.ABOUT.SGR.INFORMATION.3"),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(34,32,"PAGES.ABOUT.SGR.HOW_TO_RECOGNIZE")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(37,34,"PAGES.ABOUT.SGR.HOW_TO_RECOGNIZE_DESCRIPTION")),n.\u0275\u0275advance(2),n.\u0275\u0275property("src",P.imagePath,n.\u0275\u0275sanitizeUrl)("alt",n.\u0275\u0275pipeBind1(39,36,"PAGES.ABOUT.SGR.SGR_LOGO_ALT")),n.\u0275\u0275advance(5),n.\u0275\u0275property("color",P.buttonColors.accent)("type",P.buttonType.iconAndTextButton)("icon","keyboard_arrow_left")("iconPosition",P.iconPositions.left)("textTranslationKey","PAGES.PROFILE.CART.INFORMATION_DIALOG.BACK"))},dependencies:[t.r,l.NgStyle,h.xw,h.Wh,s.Zl,a.Rb,a.ev,d.d,p.b,u.X$],styles:[".sgr-container-header[_ngcontent-%COMP%]{padding-bottom:16px}.sgr-container-header[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.content__heading[_ngcontent-%COMP%]{font-size:22px;line-height:27px;font-weight:700}.content__description[_ngcontent-%COMP%]{font-size:14px;line-height:22px;padding-right:16px;padding-bottom:16px}.content__sgr-image[_ngcontent-%COMP%]{width:128px;height:124px;margin-bottom:24px}.button-back[_ngcontent-%COMP%]{height:40px;letter-spacing:.7px}.mat-dialog-actions[_ngcontent-%COMP%]{padding:16px 16px 0}"],changeDetection:0}),E})()},57307:(oe,x,i)=>{"use strict";i.d(x,{t:()=>y});var e=i(28918),n=i(94650),a=i(36895),t=i(1576),l=i(55829),h=i(36667),s=i(89383);const d=function(b){return{value:b}};function p(b,S){if(1&b&&(n.\u0275\u0275element(0,"div",7),n.\u0275\u0275pipe(1,"translate"),n.\u0275\u0275pipe(2,"price")),2&b){const E=n.\u0275\u0275nextContext();n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind2(1,1,E.carmen.getCurrencyTranslationKey(E.deliveryCost),n.\u0275\u0275pureFunction1(6,d,n.\u0275\u0275pipeBind1(2,4,E.deliveryCost))),n.\u0275\u0275sanitizeHtml)}}function u(b,S){if(1&b&&(n.\u0275\u0275element(0,"div",8),n.\u0275\u0275pipe(1,"translate"),n.\u0275\u0275pipe(2,"price")),2&b){const E=n.\u0275\u0275nextContext();n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind2(1,1,E.carmen.getCurrencyTranslationKey(E.transportFee),n.\u0275\u0275pureFunction1(6,d,n.\u0275\u0275pipeBind1(2,4,E.transportFee))),n.\u0275\u0275sanitizeHtml)}}function g(b,S){1&b&&(n.\u0275\u0275elementStart(0,"strong",9),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"uppercase"),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd()),2&b&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(2,1,n.\u0275\u0275pipeBind1(3,3,"SHARED.MENU.CART.FREE"))))}const v=function(b){return{"discounted-price text-bold":b}};let y=(()=>{class b{constructor(){this.noPrice=e.DKB,this.carmen=e.VLR}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275cmp=n.\u0275\u0275defineComponent({type:b,selectors:[["app-transport-fee"]],inputs:{deliveryCost:"deliveryCost",transportFee:"transportFee"},decls:8,vars:6,consts:[["fxLayout","row","fxLayoutAlign","center center"],[1,"mr-4"],[1,"u-strike-through"],["class","delivery-cost-mt",3,"innerHTML",4,"ngIf"],[3,"ngClass"],[3,"innerHTML",4,"ngIf","ngIfElse"],["freeDelivery",""],[1,"delivery-cost-mt",3,"innerHTML"],[3,"innerHTML"],[1,"discounted-price"]],template:function(E,D){if(1&E&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275element(2,"div",2),n.\u0275\u0275template(3,p,3,8,"div",3),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",4),n.\u0275\u0275template(5,u,3,8,"div",5),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(6,g,4,5,"ng-template",null,6,n.\u0275\u0275templateRefExtractor)),2&E){const A=n.\u0275\u0275reference(7);n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",D.deliveryCost&&D.deliveryCost>D.transportFee),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(4,v,D.deliveryCost&&D.deliveryCost>D.transportFee)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",D.transportFee>0)("ngIfElse",A)}},dependencies:[a.NgClass,a.NgIf,t.xw,t.Wh,l.oO,a.UpperCasePipe,h.d,s.X$],styles:[".strike-through[_ngcontent-%COMP%]{text-decoration:line-through;margin-right:4px}.discounted-price[_ngcontent-%COMP%]{color:#00853b}.delivery-cost-mt[_ngcontent-%COMP%]{margin-top:-2px}"]}),b})()},17802:(oe,x,i)=>{"use strict";i.d(x,{J:()=>le});var e=i(94650),n=i(95698),a=i(28918),t=i(77044),l=i(98311),h=i(55738),s=i(29466),d=i(9116),p=i(24006),u=i(17366),g=i(36925),v=i(36895),y=i(1576),b=i(55829),S=i(97392),E=i(18455),D=i(29203),A=i(90237),P=i(89383);function X(T,H){1&T&&e.\u0275\u0275element(0,"mat-error")}function re(T,H){1&T&&(e.\u0275\u0275elementStart(0,"div",12)(1,"mat-form-field",13)(2,"mat-label"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"input",14),e.\u0275\u0275template(6,X,1,0,"mat-error",9),e.\u0275\u0275elementEnd()()),2&T&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,1,"PAGES.ABOUT.CONTACT.NAME")," "))}function Q(T,H){1&T&&(e.\u0275\u0275elementStart(0,"mat-icon",17),e.\u0275\u0275text(1,"lock"),e.\u0275\u0275elementEnd())}function ae(T,H){1&T&&e.\u0275\u0275element(0,"mat-error")}function K(T,H){if(1&T&&(e.\u0275\u0275elementStart(0,"div",12)(1,"mat-form-field",13)(2,"mat-label"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"input",15),e.\u0275\u0275template(6,Q,2,0,"mat-icon",16),e.\u0275\u0275template(7,ae,1,0,"mat-error",9),e.\u0275\u0275elementEnd()()),2&T){const N=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,3,"PAGES.ABOUT.CONTACT.EMAIL")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("readonly",N.isGeneralComplaint()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",N.isGeneralComplaint())}}function k(T,H){1&T&&e.\u0275\u0275element(0,"mat-error")}function $(T,H){1&T&&(e.\u0275\u0275elementStart(0,"div",12)(1,"mat-form-field",13)(2,"mat-label"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"input",18),e.\u0275\u0275template(6,k,1,0,"mat-error",9),e.\u0275\u0275elementEnd()()),2&T&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,1,"PAGES.ABOUT.CONTACT.TELEPHONE")," "))}function j(T,H){1&T&&e.\u0275\u0275element(0,"mat-error")}function R(T,H){if(1&T){const N=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",2)(1,"form",3),e.\u0275\u0275template(2,re,7,3,"div",4),e.\u0275\u0275template(3,K,8,5,"div",4),e.\u0275\u0275template(4,$,7,3,"div",4),e.\u0275\u0275elementStart(5,"div",5)(6,"mat-form-field",6)(7,"mat-label",7),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(10,"textarea",8),e.\u0275\u0275template(11,j,1,0,"mat-error",9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"div",10)(13,"drc-button",11),e.\u0275\u0275listener("clickEvent",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(de.submitForm())}),e.\u0275\u0275elementEnd()()()()}if(2&T){const N=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",N.contactForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",N.isGeneralMessage()||N.isBusinessMessage()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",N.isGeneralMessage()||N.isBusinessMessage()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",N.isGeneralMessage()||N.isBusinessMessage()),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(9,11,"PAGES.ABOUT.CONTACT.YOUR_MESSAGE")," "),e.\u0275\u0275advance(5),e.\u0275\u0275property("color",N.PaletteOptions.primary)("type",N.buttonType.iconAndTextButton)("icon","done")("iconPosition",N.iconPositions.left)("textTranslationKey","PAGES.ABOUT.CONTACT.SEND_YOUR_MESSAGE")("disabled",!N.contactForm.valid)}}function U(T,H){if(1&T){const N=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",19)(1,"div",20)(2,"div",21)(3,"mat-icon",22),e.\u0275\u0275text(4,"done"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"span",23),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",24),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"div",10)(12,"drc-button",25),e.\u0275\u0275listener("clickEvent",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(de.reset())}),e.\u0275\u0275elementEnd()()()}if(2&T){const N=e.\u0275\u0275nextContext();e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,5,"PAGES.ABOUT.CONTACT.MESSAGE_SENT_SUCCESSFUL")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,7,N.isReclamation()?"PAGES.ABOUT.CONTACT.SUCCESSFUL_RECLAMATION_SENT_DESCRIPTION":"PAGES.ABOUT.CONTACT.SUCCESSFUL_MESSAGE_SENT_DESCRIPTION")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("color",N.PaletteOptions.lightgray)("type",N.buttonType.textButton)("textTranslationKey","PAGES.ABOUT.CONTACT.SEND_ANOTHER")}}class le{constructor(H,N,pe,de,me){this.router=H,this.formBuilder=N,this.orderService=pe,this.messageService=de,this.changeDetectorRef=me,this.sendFormData=new e.EventEmitter,this.resetForm=new e.EventEmitter,this.orderId="",this.businessId="",this.contactType="DrCarmenContact",this.displaySuccessMessageForOrderComplaint=!1,this.buttonType=a.L$3,this.iconPositions=a.ggF,this.buttonColor=a.B6Y,this.PaletteOptions=a.B6Y}ngOnInit(){this.buildForm(),this.formSubmitted=!1}reset(){this.contactForm.reset(),this.contactForm.markAsUntouched(),this.contactForm.markAsPristine(),this.buildForm(),this.contactMessageType!==a.ZbP.ORDER_COMPLAINT?this.resetForm.emit():this.displaySuccessMessageForOrderComplaint=!1}submitForm(){if(this.contactForm.valid){if(this.contactMessageType===a.ZbP.ORDER_COMPLAINT)return void this.sendOrderComplain({...this.contactForm.value,contactType:this.contactType});this.sendFormData.emit({...this.contactForm.value,contactType:this.contactType})}}buildForm(){switch(this.contactMessageType){case a.ZbP.GENERAL_MESSAGE:this.getGeneralMessageInitialForm();break;case a.ZbP.BUSINESS_MESSAGE:this.getBusinessMessageInitialForm();break;case a.ZbP.GENERAL_COMPLAINT:this.getGeneralComplaintInitialForm();break;case a.ZbP.ORDER_COMPLAINT:case a.ZbP.GDPR_COMPLAINT:this.getGDPRComplainInitialForm()}}getGeneralMessageInitialForm(){this.contactForm=this.formBuilder.group({name:[this.availableInfo?.name,[l.A.required(),l.A.maxLength(30)]],email:[this.availableInfo?.email,[l.A.email(),l.A.required()]],phone:[this.availableInfo?.phoneNumber,[l.A.phone(),l.A.required()]],title:[""],message:["",[l.A.required(),l.A.maxLength(255),l.A.minLength(10)]],orderId:["",l.A.numeric()]})}getGeneralComplaintInitialForm(){this.contactForm=this.formBuilder.group({name:[""],email:[this.availableInfo?.email,[l.A.email(),l.A.required()]],phone:[""],title:[""],message:["",[l.A.required(),l.A.maxLength(255),l.A.minLength(10)]],orderId:["",l.A.numeric()]})}getBusinessMessageInitialForm(){this.contactForm=this.formBuilder.group({name:[this.availableInfo?.name,[l.A.required()]],email:[this.availableInfo?.email,[l.A.email(),l.A.required()]],phone:[this.availableInfo?.phoneNumber,[l.A.phone(),l.A.required()]],title:[""],message:["",[l.A.required(),l.A.maxLength(255),l.A.minLength(10)]],orderId:["",l.A.numeric()]})}getGDPRComplainInitialForm(){this.contactForm=this.formBuilder.group({name:[this.availableInfo?.name],email:[this.availableInfo?.email,[l.A.email()]],phone:["",[l.A.phone()]],title:[""],message:["",[l.A.required(),l.A.maxLength(255),l.A.minLength(10)]],orderId:["",l.A.numeric()]})}sendOrderComplain(H){this.orderService.sendOrderComplaint({email:this.user.email,message:H.message,orderId:this.orderId,businessId:this.businessId}).pipe((0,n.q)(1)).subscribe({next:()=>{this.displaySuccessMessageForOrderComplaint=!0,this.changeDetectorRef.detectChanges(),this.messageService.displayMessage(a.CsS.SUCCESS,"PAGES.PATIENT.COMPLAINTS.MESSAGE_SENT",null,5e3)},error:()=>{this.displaySuccessMessageForOrderComplaint=!1,this.changeDetectorRef.detectChanges(),this.messageService.displayMessage(a.CsS.ERROR,"PAGES.PATIENT.COMPLAINTS.MESSAGE_ERROR")}})}isReclamation(){return this.contactMessageType===a.ZbP.GDPR_COMPLAINT||this.contactMessageType===a.ZbP.GENERAL_COMPLAINT||this.contactMessageType===a.ZbP.ORDER_COMPLAINT}isGeneralMessage(){return this.contactMessageType===a.ZbP.GENERAL_MESSAGE}isGeneralComplaint(){return this.contactMessageType===a.ZbP.GENERAL_COMPLAINT}isBusinessMessage(){return this.contactMessageType===a.ZbP.BUSINESS_MESSAGE&&null==this.availableInfo}}le.\u0275fac=function(H){return new(H||le)(e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(p.qu),e.\u0275\u0275directiveInject(s.v),e.\u0275\u0275directiveInject(a.vio.SnackbarMessageServiceToken),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},le.\u0275cmp=e.\u0275\u0275defineComponent({type:le,selectors:[["app-contact-form-component"]],inputs:{contactMessageType:"contactMessageType",availableInfo:"availableInfo",displaySuccessMessage:"displaySuccessMessage",orderId:"orderId",businessId:"businessId"},outputs:{sendFormData:"sendFormData",resetForm:"resetForm"},decls:4,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center","class","w-100 pt-24 form-wrapper",4,"ngIf","ngIfElse"],["successMessage",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"w-100","pt-24","form-wrapper"],["fxLayout","column wrap","fxFlex.gt-sm","50","fxFlex.lt-lg","75","fxFlex.lt-md","100",3,"formGroup"],["fxFlex","33.3","fxFlex.xs","100","ngClass.gt-xs","formElementStyle",4,"ngIf"],["fxFlex","100","ngClass.gt-xs","formElementStyle"],["appearance","outline",1,"w-100","message","pb-24"],[1,"message-label"],["matInput","","formControlName","message"],[4,"drcForAll"],[1,"button-wrapper"],[3,"color","type","icon","iconPosition","textTranslationKey","disabled","clickEvent"],["fxFlex","33.3","fxFlex.xs","100","ngClass.gt-xs","formElementStyle"],["appearance","outline",1,"w-100","mb-32"],["matInput","","formControlName","name"],["matInput","","formControlName","email",3,"readonly"],["matSuffix","","class","text-muted",4,"ngIf"],["matSuffix","",1,"text-muted"],["matInput","","formControlName","phone"],[1,"w-100"],["fxLayout","column","fxLayoutAlign","start start",1,"mb-24","pt-16"],["fxLayout","row","fxLayoutAlign","center",1,"mb-8"],["color","primary",1,"success-message-icon","mr-8","mt-4"],[1,"formSubmittedMessageStyle"],[1,"success-message"],[3,"color","type","textTranslationKey","clickEvent"]],template:function(H,N){if(1&H&&(e.\u0275\u0275template(0,R,14,13,"div",0),e.\u0275\u0275template(1,U,13,9,"ng-template",null,1,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275element(3,"app-page-loaded")),2&H){const pe=e.\u0275\u0275reference(2);e.\u0275\u0275property("ngIf",!N.displaySuccessMessage&&!N.displaySuccessMessageForOrderComplaint)("ngIfElse",pe)}},dependencies:[u.r,g.b,v.NgIf,y.xw,y.Wh,y.yH,b.oO,S.Hw,E.nI,E.v_,E.$V,E.nX,D.k0,p._Y,p.Fj,p.JJ,p.JL,p.sg,p.u,A.z,P.X$],styles:[".message-label[_ngcontent-%COMP%]{top:26px!important}form[_ngcontent-%COMP%]{max-width:500px!important}.button-wrapper[_ngcontent-%COMP%]{width:max-content}@media (max-width: 430px){.button-wrapper[_ngcontent-%COMP%]{width:100%}}.formSubmittedMessageStyle[_ngcontent-%COMP%]{text-align:left;font-size:22px;font-weight:700;letter-spacing:.57px;color:#00853b}.success-message-icon[_ngcontent-%COMP%]{font-weight:700;width:24px!important;height:24px!important;font-size:24px!important}.success-message[_ngcontent-%COMP%]{font-size:14px;color:#242424}.message-wrapper[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px;float:left}textarea[_ngcontent-%COMP%]{height:7em;line-height:1.5em}"]}),function(T,H,N,pe){var q,de=arguments.length,me=de<3?H:null===pe?pe=Object.getOwnPropertyDescriptor(H,N):pe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)me=Reflect.decorate(T,H,N,pe);else for(var se=T.length-1;se>=0;se--)(q=T[se])&&(me=(de<3?q(me):de>3?q(H,N,me):q(H,N))||me);de>3&&me&&Object.defineProperty(H,N,me)}([(0,t.I)(),function(T,H){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",H)}(0,h.n)],le.prototype,"user",void 0)},74474:(oe,x,i)=>{"use strict";i.d(x,{J:()=>K,V:()=>k});var e=i(94650),n=i(95698),a=i(28918),t=i(77044),l=i(55738),h=i(47716),s=i(36925),d=i(36895),p=i(9116),u=i(1576),g=i(55829),v=i(24363),y=i(99818),b=i(18455),S=i(29203),E=i(44850),D=i(85208),A=i(24006),P=i(89383);function X($,j){1&$&&e.\u0275\u0275element(0,"mat-error")}function re($,j){1&$&&e.\u0275\u0275element(0,"mat-error")}function Q($,j){if(1&$){const R=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"form",10)(2,"mat-form-field",11)(3,"mat-label"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(6,"input",12),e.\u0275\u0275template(7,X,1,0,"mat-error",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"mat-form-field",11)(9,"mat-label"),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"mat-select",14)(13,"mat-option",15),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"mat-option",15),e.\u0275\u0275text(17),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(19,re,1,0,"mat-error",13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(20,"button",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(R);const le=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(le.favoriteListForm.submit())}),e.\u0275\u0275elementStart(21,"i",7),e.\u0275\u0275text(22,"done"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(23),e.\u0275\u0275pipe(24,"translate"),e.\u0275\u0275elementEnd()()()}if(2&$){const R=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",R.favoriteListForm),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,8,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.LIST_NAME")," "),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(11,10,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.VISIBILITY")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("value",R.listVisibility.PUBLIC),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(15,12,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.PUBLIC")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("value",R.listVisibility.PRIVATE),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(18,14,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.PRIVATE")," "),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(24,16,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.CREATE_LIST")," ")}}function ae($,j){if(1&$&&(e.\u0275\u0275elementStart(0,"div",17)(1,"p"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",18)(5,"button",19),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"a",20),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"uppercase"),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementEnd()()()),2&$){const R=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,5,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.ENTER_ACCOUNT_MESSAGE")),e.\u0275\u0275advance(3),e.\u0275\u0275property("routerLink",R.authenticationLink),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,7,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.ENTER_ACCOUNT")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",R.authenticationLink),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,9,e.\u0275\u0275pipeBind1(11,11,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.CREATE_NEW_ACCOUNT"))," ")}}var K=(()=>{return($=K||(K={})).STEP_DEFAULT="default",$.STEP_CREATE_LIST="create-list",$.STEP_SELECTED_LIST="selected-list",K;var $})();class k{constructor(j,R,U){this.formBuilder=j,this.undoRedoMessage=R,this.snackbarService=U,this.formValues=new e.EventEmitter,this.deleteFromLists=new e.EventEmitter,this.steps=K,this.step=this.steps.STEP_DEFAULT,this.listVisibility=a.Gpu,this.favoriteListForm=this.formBuilder.build("user.favorites.editList"),this.window=window,this.authenticationLink=a.baM}ngOnInit(){this.lists.find(j=>!0===j.selected)&&(this.step=this.steps.STEP_SELECTED_LIST)}getFormValues(){this.favoriteListForm.patchValue({visibility:a.Gpu.PUBLIC}),this.favoriteListForm.submit$.pipe((0,n.q)(1)).subscribe(j=>{this.submitValues(j)})}submitValues(j){if(j.name=j.name.trim(),!this.lists?.find(U=>U.text===j.name)&&this.lists.length&&j.name.length)this.formValues.emit(j),this.undoRedoMessage.openSnackBar(a.CsS.SUCCESS,"CREATE_LIST",j.name);else{const U=j.name?.length<=0;this.snackbarService.displayMessage(a.CsS.ERROR,this.lists.length?U?"SHARED.FAVORITES.FAVORITE_LIST_EDIT.EMPTY_NAME":"SHARED.FAVORITES.FAVORITE_LIST_EDIT.EXISTING_LIST":"SHARED.FAVORITES.FAVORITE_LIST_EDIT.CREATE_LIST_ERROR",U?void 0:{value:j.name})}this.reset()}nextStep(j){this.step=j===this.steps.STEP_DEFAULT&&this.lists.find(R=>!0===R.selected)?this.steps.STEP_SELECTED_LIST:j,this.step===this.steps.STEP_CREATE_LIST&&(this.getFormValues(),window.innerWidth>=a.u3l.DESKTOP_S&&window.scrollTo(0,window.pageYOffset+90))}reset(){this.favoriteListForm.reset(),this.favoriteListForm.markAsUntouched(),this.favoriteListForm.markAsPristine(),Object.keys(this.favoriteListForm.controls).forEach(j=>{this.favoriteListForm.get(j).setErrors(null)}),this.nextStep(this.steps.STEP_DEFAULT)}delete(){this.deleteFromLists.emit(),this.step=this.steps.STEP_DEFAULT}}k.\u0275fac=function(j){return new(j||k)(e.\u0275\u0275directiveInject(h.CH),e.\u0275\u0275directiveInject(a.vio.UndoRedoMessageServiceToken),e.\u0275\u0275directiveInject(a.vio.SnackbarMessageServiceToken))},k.\u0275cmp=e.\u0275\u0275defineComponent({type:k,selectors:[["app-favorite-list-edit"]],inputs:{lists:"lists"},outputs:{formValues:"formValues",deleteFromLists:"deleteFromLists"},decls:19,vars:13,consts:[[1,"full-width-divider"],[1,"footer"],["class","user-container",4,"ngIf"],["class","guest-container",4,"ngIf"],["fxLayout","column",3,"fxHide","fxLayoutAlign"],["target","_blank",3,"click"],["fxLayout","row","fxLayoutAlign","space-between start","fxLayoutGap","12px",1,"add-button-content"],[1,"material-icons"],["mat-flat-button","",1,"delete-button-style","mat-warn","w-100","close-button",3,"fxHide","click"],[1,"user-container"],[3,"formGroup"],["appearance","outline",1,"w-100"],["matInput","","formControlName","name"],[4,"drcForAll"],["formControlName","visibility"],[3,"value"],["mat-flat-button","",1,"green-button-style","mat-primary",3,"click"],[1,"guest-container"],["fxLayout","column","fxLayoutAlign","space-between center","fxLayoutGap","16px",1,"guest-controls"],["mat-flat-button","",1,"green-button-style","mat-primary",3,"routerLink"],[3,"routerLink"]],template:function(j,R){1&j&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275element(1,"mat-divider"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",1),e.\u0275\u0275template(3,Q,25,18,"div",2),e.\u0275\u0275template(4,ae,12,13,"div",3),e.\u0275\u0275elementStart(5,"div",4)(6,"a",5),e.\u0275\u0275listener("click",function(){return R.nextStep(R.steps.STEP_CREATE_LIST)}),e.\u0275\u0275elementStart(7,"div",6)(8,"i",7),e.\u0275\u0275text(9,"add"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"span"),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"uppercase"),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(14,"button",8),e.\u0275\u0275listener("click",function(){return R.delete()}),e.\u0275\u0275elementStart(15,"i",7),e.\u0275\u0275text(16,"close"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(17),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd()()()),2&j&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",R.user&&R.step===R.steps.STEP_CREATE_LIST),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!R.user&&R.step===R.steps.STEP_CREATE_LIST),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxHide",R.step===R.steps.STEP_CREATE_LIST)("fxLayoutAlign",R.step===R.steps.STEP_SELECTED_LIST?"space-between center":"space-between start"),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(12,7,e.\u0275\u0275pipeBind1(13,9,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.CREATE_NEW_LIST"))),e.\u0275\u0275advance(3),e.\u0275\u0275property("fxHide",R.step!==R.steps.STEP_SELECTED_LIST),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(18,11,"SHARED.FAVORITES.FAVORITE_LIST_EDIT.DELETE_FROM_FAVORITES")," "))},dependencies:[s.b,d.NgIf,p.rH,u.xw,u.SQ,u.Wh,g.b8,v.CK,y.eB,b.nI,b.v_,b.$V,S.k0,E.d,D.x8,A._Y,A.Fj,A.JJ,A.JL,A.sg,A.u,d.UpperCasePipe,P.X$],styles:[".full-width-divider[_ngcontent-%COMP%]{margin:0 -16px 16px}.footer[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]{min-height:168px;max-width:356px}.footer[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}.footer[_ngcontent-%COMP%]   .guest-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#ff001a;font-weight:700;margin-bottom:16px}.footer[_ngcontent-%COMP%]   .guest-container[_ngcontent-%COMP%]   .guest-controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}.footer[_ngcontent-%COMP%]   .guest-container[_ngcontent-%COMP%]   .guest-controls[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:700}.footer[_ngcontent-%COMP%]   .add-button-content[_ngcontent-%COMP%]{max-width:162px}.footer[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;font-weight:700}.footer[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{height:12px;width:12px;font-size:18px;font-weight:700;color:#7b7b7b}.footer[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{margin-top:16px}.footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{color:#fff;float:left;margin-top:9px}.footer[_ngcontent-%COMP%]   .delete-button-style[_ngcontent-%COMP%]{text-transform:uppercase!important;border-radius:4px!important;height:40px!important;font-weight:500!important;font-size:14px!important;line-height:36px!important}"]}),function($,j,R,U){var H,le=arguments.length,T=le<3?j:null===U?U=Object.getOwnPropertyDescriptor(j,R):U;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate($,j,R,U);else for(var N=$.length-1;N>=0;N--)(H=$[N])&&(T=(le<3?H(T):le>3?H(j,R,T):H(j,R))||T);le>3&&T&&Object.defineProperty(j,R,T)}([(0,t.I)(),function($,j){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",j)}(0,l.n)],k.prototype,"user",void 0)},92829:(oe,x,i)=>{"use strict";i.d(x,{HA:()=>X,kG:()=>V,pQ:()=>re,rl:()=>B});var e=i(94650),n=i(82722),a=i(77579),t=i(28918),l=i(32420),h=i(74474),s=i(6796),d=i(15368),p=i(77044),u=i(55738),g=i(10260),v=i(53433),y=i(49726),b=i(78165),S=i(12676),E=i(28555);const P=["edit"];var B=(()=>{return(Q=B||(B={}))[Q.ROOT_LIST=0]="ROOT_LIST",Q[Q.CRATED_LIST=1]="CRATED_LIST",B;var Q})();const V={listId:"-1",parentId:null,listName:"Favorite"},X="-1";class re{constructor(ae,K,k){this.store=ae,this.undoRedoMessage=K,this.userService=k,this.update=new e.EventEmitter,this.destroy$=new a.x,this.favoritesLists=[],this.favoritesListsProducts=[],this.isGuestUser=!1}ngOnInit(){this.isListingProduct=this.product instanceof l.xs,this.getSelectedProduct(),this.userService.getUserType()?(this.getFavoritesLists(),this.getFavoritesListsProducts()):(this.isGuestUser=!0,this.mapToListToHierarchicalListItemInit())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getSelectedProduct(){this.isListingProduct?this.store.select(g.g,{id:`${this.product.slug}/${this.productSlug}`}).pipe((0,n.R)(this.destroy$)).subscribe(K=>{K?this.selectedProduct=K:this.product&&(this.selectedProduct=this.product,this.selectedProduct.packagings.forEach(k=>k.productSlug=k.slug)),this.selectedProduct.businessId=this.product.bestOffer.businessExternalId}):this.selectedProduct=this.product}getFavoritesLists(){this.favoritesLists$=this.store.select(s.bR),this.favoritesLists$.subscribe(ae=>{this.favoritesLists=ae,this.mapToListToHierarchicalListItem()})}getFavoritesListsProducts(){this.favoritesListsProducts$=this.store.select(y.tx),this.favoritesListsProducts$.subscribe(ae=>{this.favoritesListsProducts=ae}),this.mapToListToHierarchicalListItem()}mapToListToHierarchicalListItemInit(){this.store.select(b.Xo.getTotalElements).subscribe(ae=>{this.hierarchicalListItems=[{id:"-1",name:"Favorite",visibility:void 0,size:ae}].map(k=>({listId:k.id?.toString(),parentId:k.id===X?V.parentId:V.listId,level:k.id===X?B.ROOT_LIST:B.CRATED_LIST,selected:this.selectedProduct?.packagings.find($=>$.productSlug===this.productSlug)?.inFavouriteLists[X]||!1,text:k.id===X?V.listName:k.name,size:k.size,visibility:k.visibility||t.Gpu.PUBLIC})),this.getInitialDefaultListSize()})}mapToListToHierarchicalListItem(){this.favoritesLists$.pipe((0,n.R)(this.destroy$)).subscribe(ae=>{this.hierarchicalListItems=ae.map(K=>({listId:K.id?.toString(),parentId:K.id===X?V.parentId:V.listId,level:K.id===X?B.ROOT_LIST:B.CRATED_LIST,selected:this.getListSelectedState(K.id),text:K.id===X?V.listName:K.name,size:K.size,visibility:K.visibility||t.Gpu.PUBLIC})).sort((K,k)=>Number(K.listId)-Number(k.listId)),this.getInitialDefaultListSize()})}getListSelectedState(ae){return this.isListingProduct?!!this.selectedProduct.packagings.find(K=>K.productSlug===this.productSlug||K.productSlug===this.selectedProduct.productSlug)?.inFavouriteLists[ae]||!1:!!this.product.inLists.find(K=>K.id===ae)}getInitialDefaultListSize(){const ae=this.hierarchicalListItems.find(K=>K.listId===X?.toString());this.initialDefaultListSize=this.getListSelectedState(X)?ae.size-1:ae.size}favoriteFormSubmit(ae){this.store.dispatch(d.o.createFavoriteList({name:ae.name,visibility:ae.visibility}))}updateList(ae){this.selectedList=ae.listId!==X?this.getList(ae.listId):null,this.defaultList=this.getList(X),this.editComponent.nextStep(ae.selected?h.J.STEP_SELECTED_LIST:h.J.STEP_DEFAULT);const K=this.updateListingProduct(ae);this.updateProductInStore(ae,K)}updateListingProduct(ae){let K=this.selectedProduct;return K=ae.selected?this.addLists(K,ae.listId,ae.listName):this.removeLists(K,ae.listId),this.getSelectedProduct(),this.update.emit(),K}addLists(ae,K,k){const $=this.hierarchicalListItems.find(j=>j.listId===K?.toString());return K!==X&&(this.isListingProduct?ae.packagings.find(j=>j.productSlug===this.productSlug).inFavouriteLists[K]=k:ae.inLists.push({id:K,name:k,size:$.size,visibility:$.visibility})),this.isListingProduct&&((ae=this.addFavoriteListStructure(ae)).packagings.find(j=>j.productSlug===this.productSlug).inFavouriteLists[X]=V.listName),ae}addFavoriteListStructure(ae){ae.inLists=[];const K=this.favoritesLists;if(this.isGuestUser||Object.keys(ae.packagings.find(k=>k.productSlug===this.productSlug).inFavouriteLists).forEach(function(k){ae.inLists.push(K.find($=>$.id===k))}),ae.inLists&&ae.inLists?.length>0&&!ae.inLists.find(k=>k.id===X)){let k=K.find($=>$.id===X);k||(k=t.G06),ae.inLists.push()}return ae.productName=this.product.registered_name,ae.businessId=this.product.bestOffer?.businessExternalId,ae.businessId=this.product.bestOffer?.price,ae.stock=this.product.bestOffer?.stock,ae.productPrice=this.product.price,ae.businessName=this.product.businessName,ae.photoUrl=this.product.images[0]?.thumbnail,ae.quantity=1,ae}removeLists(ae,K){if(this.isListingProduct&&(ae=this.addFavoriteListStructure(ae)),K!==X)this.isListingProduct?delete ae.packagings.find(k=>k.productSlug===this.productSlug)?.inFavouriteLists[K]:ae.inLists=ae.inLists.filter(k=>k.id!==K);else if(this.isListingProduct){const k=ae.packagings.find($=>$.productSlug===this.productSlug);this.selectedListsKeys=k?Object.keys(k.inFavouriteLists):[],k&&(ae.packagings.find($=>$.productSlug===this.productSlug).inFavouriteLists={})}return ae}updateProductInStore(ae,K){const k=this.favoritesListsProducts.find($=>$.productSlug===K.productSlug&&$.productSlug===K.productSlug)?.id;this.store.dispatch(ae.selected?v.N.createProductList({slug:this.isListingProduct?this.selectedProduct.slug:this.selectedProduct.productSlug,productSlug:this.productSlug,listId:ae.listId,addToDefaultList:this.initialDefaultListSize+1>this.defaultList.size&&ae.listId!==X,selected:ae.selected,favoriteProductId:k,isGuestUser:this.isGuestUser,product:K}):ae.listId!==X||this.isGuestUser?v.N.deleteProductList({slug:this.isListingProduct?this.selectedProduct.slug:this.selectedProduct.productSlug,productSlug:this.productSlug,listId:ae.listId,addToDefaultList:!1,selected:ae.selected,favoriteProductId:k,isGuestUser:this.isGuestUser,product:K}):v.N.deleteProductFromRootList({slug:this.isListingProduct?this.selectedProduct.slug:this.selectedProduct.productSlug,productSlug:this.productSlug,listId:ae.listId,selected:ae.selected,favoriteProductId:k,product:K}))}getList(ae){const K=this.hierarchicalListItems.find(k=>k.listId===ae?.toString());return{id:K.listId,name:K.text,visibility:K.visibility,size:K.size}}deleteFromAllLists(){this.updateList({listId:X,listName:V.listName,selected:!1}),this.undoRedoMessage.openSnackBar(t.CsS.SUCCESS,"PRODUCT_REMOVED_FROM_LIST",V.listName)}close(){this.editComponent.nextStep(h.J.STEP_DEFAULT)}}re.\u0275fac=function(ae){return new(ae||re)(e.\u0275\u0275directiveInject(E.yh),e.\u0275\u0275directiveInject(t.vio.UndoRedoMessageServiceToken),e.\u0275\u0275directiveInject(S.O))},re.\u0275cmp=e.\u0275\u0275defineComponent({type:re,selectors:[["app-favorite-list"]],viewQuery:function(ae,K){if(1&ae&&e.\u0275\u0275viewQuery(P,5),2&ae){let k;e.\u0275\u0275queryRefresh(k=e.\u0275\u0275loadQuery())&&(K.editComponent=k.first)}},inputs:{product:"product",productSlug:"productSlug"},outputs:{update:"update"},decls:3,vars:2,consts:[[3,"lists","listChanges"],[3,"lists","formValues","deleteFromLists"],["edit",""]],template:function(ae,K){1&ae&&(e.\u0275\u0275elementStart(0,"app-hierarchical-list",0),e.\u0275\u0275listener("listChanges",function($){return K.updateList($)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(1,"app-favorite-list-edit",1,2),e.\u0275\u0275listener("formValues",function($){return K.favoriteFormSubmit($)})("deleteFromLists",function(){return K.deleteFromAllLists()}),e.\u0275\u0275elementEnd()),2&ae&&(e.\u0275\u0275property("lists",K.hierarchicalListItems),e.\u0275\u0275advance(1),e.\u0275\u0275property("lists",K.hierarchicalListItems))}}),function(Q,ae,K,k){var R,$=arguments.length,j=$<3?ae:null===k?k=Object.getOwnPropertyDescriptor(ae,K):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(Q,ae,K,k);else for(var U=Q.length-1;U>=0;U--)(R=Q[U])&&(j=($<3?R(j):$>3?R(ae,K,j):R(ae,K))||j);$>3&&j&&Object.defineProperty(ae,K,j)}([(0,p.I)(),function(Q,ae){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",ae)}(0,u.n)],re.prototype,"user",void 0)},74656:(oe,x,i)=>{"use strict";i.d(x,{q:()=>T});var e=i(94650),n=i(95698),a=i(28918),t=i(5221),h=(i(32420),i(52873)),d=(i(17596),i(9116)),p=i(28555),u=i(84659),g=i(36895),v=i(1576),y=i(55829),b=i(37084),S=i(97392),E=i(89383);function D(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"i",11),e.\u0275\u0275listener("click",function(){const q=e.\u0275\u0275restoreView(pe).$implicit,se=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(se.removeFilter("category",q))}),e.\u0275\u0275text(5,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=N.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,1,pe.name)," ")}}function A(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"i",11),e.\u0275\u0275listener("click",function(){const q=e.\u0275\u0275restoreView(pe).$implicit,se=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(se.removeFilter("businessNames",q))}),e.\u0275\u0275text(7,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=N.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(3,2,e.\u0275\u0275pipeBind1(4,4,"SHARED.FILTERS.ACTIVE_FILTERS.SOLD_BY")),": ",e.\u0275\u0275pipeBind1(5,6,pe)," ")}}function P(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"span",12),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"i",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(pe);const me=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(me.removeFilter("location",me._filters.location))}),e.\u0275\u0275text(7,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(3,2,e.\u0275\u0275pipeBind1(4,4,"SHARED.FILTERS.ACTIVE_FILTERS.LOCALITY")),": ",e.\u0275\u0275pipeBind1(5,6,pe.locationFilter)," ")}}function B(H,N){if(1&H&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,P,8,8,"div",7),e.\u0275\u0275elementContainerEnd()),2&H){const pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==pe._filters?null:pe._filters.location)&&"false"!==(null==pe._filters?null:pe._filters.location))}}function V(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"i",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(pe);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.removeFilter("pharmaceutical_form",me._filters.pharmaceutical_form))}),e.\u0275\u0275text(7,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(3,2,e.\u0275\u0275pipeBind1(4,4,"SHARED.FILTERS.ACTIVE_FILTERS.PHARMACEUTICAL_FORM")),": ",e.\u0275\u0275pipeBind1(5,6,null==pe._filters?null:pe._filters.pharmaceutical_form)," ")}}function X(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"i",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(pe);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.removeFilter("issuing",me._filters.issuing))}),e.\u0275\u0275text(7,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(3,2,e.\u0275\u0275pipeBind1(4,4,"SHARED.FILTERS.ACTIVE_FILTERS.PRESCRIPTION")),": ",e.\u0275\u0275pipeBind1(5,6,pe.filtersMap[null==pe._filters?null:pe._filters.issuing])," ")}}const re=function(H){return{"ui-blur":H}};function Q(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",2)(2,"div",3)(3,"i",4),e.\u0275\u0275text(4,"done"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"span",5),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"uppercase"),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(9,D,6,3,"div",6),e.\u0275\u0275template(10,A,8,8,"div",6),e.\u0275\u0275template(11,B,2,1,"ng-container",0),e.\u0275\u0275template(12,V,8,8,"div",7),e.\u0275\u0275template(13,X,8,8,"div",7),e.\u0275\u0275elementStart(14,"div",8),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(pe);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.resetFilters())}),e.\u0275\u0275elementStart(15,"span"),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"uppercase"),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()}if(2&H){const pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(16,re,pe.loading)),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(7,8,e.\u0275\u0275pipeBind1(8,10,"SHARED.FILTERS.ACTIVE_FILTERS.ACTIVE_FILTERS")),":"),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",pe.selectedSubcategories),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",pe._filters.businessNames),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",pe.shouldShowLocationFilter),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==pe._filters?null:pe._filters.pharmaceutical_form),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==pe._filters?null:pe._filters.issuing),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(17,12,e.\u0275\u0275pipeBind1(18,14,"SHARED.FILTERS.ACTIVE_FILTERS.REMOVE_ALL_FILTERS")),"")}}function ae(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"i",11),e.\u0275\u0275listener("click",function(){const q=e.\u0275\u0275restoreView(pe).$implicit,se=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(se.removeFilter("category",q))}),e.\u0275\u0275text(5,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=N.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,1,pe.name)," ")}}function K(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"i",11),e.\u0275\u0275listener("click",function(){const q=e.\u0275\u0275restoreView(pe).$implicit,se=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(se.removeFilter("businessNames",q))}),e.\u0275\u0275text(7,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=N.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(3,2,e.\u0275\u0275pipeBind1(4,4,"SHARED.FILTERS.ACTIVE_FILTERS.SOLD_BY")),": ",e.\u0275\u0275pipeBind1(5,6,pe)," ")}}function k(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",22)(1,"span",12),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"i",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(pe);const me=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(me.removeFilter("location",me._filters.location))}),e.\u0275\u0275text(7,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(3,2,e.\u0275\u0275pipeBind1(4,4,"SHARED.FILTERS.ACTIVE_FILTERS.LOCALITY")),": ",e.\u0275\u0275pipeBind1(5,6,pe.locationFilter)," ")}}function $(H,N){if(1&H&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,k,8,8,"div",21),e.\u0275\u0275elementContainerEnd()),2&H){const pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==pe._filters?null:pe._filters.location)&&"false"!==(null==pe._filters?null:pe._filters.location))}}function j(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",23)(1,"span",24)(2,"span",25),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"uppercase"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275pipe(6,"uppercase"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"i",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(pe);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.removeFilter("pharmaceutical_form",me._filters.pharmaceutical_form))}),e.\u0275\u0275text(8,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(4,2,e.\u0275\u0275pipeBind1(5,4,"SHARED.FILTERS.ACTIVE_FILTERS.PHARMACEUTICAL_FORM")),": ",e.\u0275\u0275pipeBind1(6,6,null==pe._filters?null:pe._filters.pharmaceutical_form)," ")}}function R(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",9)(1,"span",10),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"i",26),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(pe);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.removeFilter("issuing",me._filters.issuing))}),e.\u0275\u0275text(7,"close"),e.\u0275\u0275elementEnd()()}if(2&H){const pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(3,2,e.\u0275\u0275pipeBind1(4,4,"SHARED.FILTERS.ACTIVE_FILTERS.PRESCRIPTION")),": ",e.\u0275\u0275pipeBind1(5,6,pe.filtersMap[null==pe._filters?null:pe._filters.issuing])," ")}}function U(H,N){if(1&H){const pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",27),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(pe);const me=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(me.resetFilters())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}2&H&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"SHARED.FILTERS.ACTIVE_FILTERS.REMOVE_ALL_FILTERS")," "))}function le(H,N){if(1&H&&(e.\u0275\u0275elementStart(0,"mat-accordion",13)(1,"mat-expansion-panel",14)(2,"mat-expansion-panel-header",15)(3,"mat-panel-title",16)(4,"mat-icon"),e.\u0275\u0275text(5,"check"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"span",17),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(9,"div",18),e.\u0275\u0275template(10,ae,6,3,"div",6),e.\u0275\u0275template(11,K,8,8,"div",6),e.\u0275\u0275template(12,$,2,1,"ng-container",0),e.\u0275\u0275template(13,j,9,8,"div",19),e.\u0275\u0275template(14,R,8,8,"div",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(15,U,3,3,"div",20),e.\u0275\u0275elementEnd()()),2&H){const pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(8,7,"SHARED.FILTERS.ACTIVE_FILTERS.ACTIVE_FILTERS")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",pe.selectedSubcategories),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==pe._filters?null:pe._filters.businessNames),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",pe.shouldShowLocationFilter),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==pe._filters?null:pe._filters.pharmaceutical_form),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==pe._filters?null:pe._filters.issuing),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!pe.isMobileFilter)}}let T=(()=>{class H{constructor(pe,de,me,q,se,ve){this.appService=pe,this.filtersService=de,this.router=me,this.activatedRoute=q,this.store=se,this.sidenavService=ve,this.isMobileFilter=!1,this.removeCategory=new e.EventEmitter,this.selectedSubcategories=[],this.isProductPage=!1,this.noCategory=!1,this.filtersMap={location:"Locatie",price:"Pret",pharmaceutical_form:"Forma farmaceutica",REQUIRED:"Cu reteta",NOT_REQUIRED:"Fara reteta"},this.locationFilterDiacritics="",this.availableLocations=[],this.shouldShowLocationFilter=!1}get locationFilter(){return this.locationFilterDiacritics?this.locationFilterDiacritics:this._filters?.location}ngOnInit(){if(this.getAvailableLocations(),this._filters=this.filtersService.filters,this._options=this.filtersService.options,this.loading=!0,this.setLocationDiacritics(),this.activatedRoute.snapshot._routerState.url){const pe=this.activatedRoute.snapshot._routerState.url.split("/");this.isProductPage=pe[1]===a.Z2M.PRODUCTS,this.noCategory=pe[1]===a.Z2M.PRODUCTS&&!pe[2]}this.appService.currentCategories.pipe((0,n.q)(2)).subscribe(pe=>{pe&&(this.categories=pe,this._filters.categories[0]&&(this.selectedCategory=this.categories?.find(de=>de.categoryId===this._filters.categories[0].charAt(0)),this.selectSubcategories()),this.loading=!1)}),this.noCategory&&this.filtersService.setBaseUrl(`/${a.Z2M.PRODUCTS}`)}ngOnChanges(){this._filters=this.filtersService.filters,this._options=this.filtersService.options,this.setLocationDiacritics(),this.categories&&this._filters.categories[0]&&(this.selectedCategory=this.categories.find(pe=>pe.categoryId===this._filters.categories[0].charAt(0)),this.selectSubcategories())}getAvailableLocations(){this.store.select(t.A_).pipe((0,n.q)(2)).subscribe(pe=>{this.availableLocations=pe})}setLocationDiacritics(){if(this._filters.location){let de,pe=0;for(;!de&&pe<this.availableLocations.length;)de=this.availableLocations[pe].name.toLowerCase()===this._filters.location.toLowerCase()?this.availableLocations[pe].diacritics:this.availableLocations[pe].surroundings.find(me=>me.name.toLowerCase()===this._filters.location.toLowerCase())?.diacritics,pe++;this.locationFilterDiacritics=de.toUpperCase()}}toggle(){this.sidenavService.toggle()}selectSubcategories(){this.selectedSubcategories=[],this._filters.categories&&this.selectedCategory?.children.forEach(pe=>{this._filters.categories.forEach(de=>{pe.categoryId===de?this.selectedSubcategories.push(pe):pe.children.forEach(me=>{me.categoryId===de&&this.selectedSubcategories.push(me)})})})}removeFilter(pe,de){if("businessNames"===pe)this.filtersService.setBusinessFilter({key:de},!1);else{const me={filter:{key:pe,businessProfile:this.businessProfile},option:de,checked:!1};this.filtersService.setFilters(me.filter,me.option,me.checked)}this.filtersService.resetPage(),this.loadPage(),this.isMobileFilter&&this.updateMobileActiveFilters(de)}updateMobileActiveFilters(pe){this.selectedSubcategories=this.selectedSubcategories.filter(de=>de.categoryId!==pe.categoryId),this.removeCategory.emit({fitlters:this._filters,options:this._options})}resetFilters(){if(!this.filtersService.shouldDisplayActiveFilters()&&0===this._filters.price[0]&&this._filters.price[1]===this._filters.maxPriceLimit)return;let pe;this.isProductPage?(this.filtersService.setParentUrl(this.selectedCategory.url),this.filtersService.resetProductFilters().subscribe(de=>{this._filters=de,this.setLocationDiacritics(),this.filtersService.setBaseUrl(this._filters.text?`${a.Z2M.PRODUCTS}/${a.Z2M.SEARCH}/${this._filters.text}`:this.filtersService.parentUrl||a.Z2M.PRODUCTS),this.isMobileFilter?this.selectedSubcategories=[]:this.router.navigate([`${this.filtersService.baseURL}`],{queryParams:pe})})):this.filtersService.resetFilters().subscribe(de=>{this._filters=de.filters,this.setLocationDiacritics(),pe=de.queryParams,this.router.navigate([`${this.filtersService.baseURL}`])})}shouldDisplayFilters(){return this.filtersService.shouldDisplayActiveFilters()}loadPage(){this.noCategory&&this.filtersService.setBaseUrl(`/${a.Z2M.PRODUCTS}`);const pe=this.filtersService.params;a.VLR.compareParams(pe.queryParams,this.filtersService.lastRequest.query)&&this.filtersService.baseURL&&this.router.navigate([this.filtersService.baseURL],{queryParams:pe.queryParams})}updateActiveFilters(){this.selectedCategory=this.categories?.find(pe=>pe.categoryId===this._filters.categories[0]?.charAt(0)),this.selectSubcategories()}get isRestaurantPage(){return this.router.url.includes(`/${a.Z2M.PRODUCTS}/${a.Lkn}`)}}return H.\u0275fac=function(pe){return new(pe||H)(e.\u0275\u0275directiveInject(h.z),e.\u0275\u0275directiveInject(a.vio.FiltersServiceToken),e.\u0275\u0275directiveInject(d.F0),e.\u0275\u0275directiveInject(d.gz),e.\u0275\u0275directiveInject(p.yh),e.\u0275\u0275directiveInject(u.B))},H.\u0275cmp=e.\u0275\u0275defineComponent({type:H,selectors:[["app-active-filters"]],inputs:{_filters:"_filters",businessProfile:"businessProfile",isMobileFilter:"isMobileFilter"},outputs:{removeCategory:"removeCategory"},features:[e.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[[4,"ngIf"],["class","active-filters","ngClass.lt-md","active-filters-tablet","fxHide.gt-sm","",4,"ngIf"],["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","start center","fxFlex","100","fxHide","","fxShow.gt-sm","",1,"active-filters",3,"ngClass"],["fxLayoutAlign","start center",1,"lablebox","mb-8","mr-8"],[1,"material-icons","lablebox__done-icon","mr-8"],[1,"lablebox__text"],["class","filterbox","fxLayout","row","fxLayoutAlign","center center",4,"ngFor","ngForOf"],["class","filterbox","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[1,"delete-filters-button","mb-8","ml-16",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"filterbox"],[1,"filter-label"],["fxLayoutAlign","center center",1,"material-icons","filter-action",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"filter-label"],["ngClass.lt-md","active-filters-tablet","fxHide.gt-sm","",1,"active-filters"],["expanded","",1,"bp-expansion-panel"],["collapsedHeight","*","expandedHeight","*",1,"bp-expansion-panel-header"],["fxLayout","row","fxLayoutGap","5px",1,"active-filters-color"],["fxLayoutAlign","center center",1,"bp-expansion-panel-title"],["fxLayout","row wrap","fxLayoutGap","5px"],["class","filterbox mw-100","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["class","delete-filters-link","ngClass.lt-md","delete-filters-link-tablet",3,"click",4,"ngIf"],["class","filterbox","fxLayout","row","fxLayoutAlign","center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center",1,"filterbox"],["fxLayout","row","fxLayoutAlign","center center",1,"filterbox","mw-100"],["fxLayout","row","fxLayoutAlign","center center",1,"filter-label","mw-100"],[1,"text-truncate"],[1,"material-icons","filter-action",3,"click"],["ngClass.lt-md","delete-filters-link-tablet",1,"delete-filters-link",3,"click"]],template:function(pe,de){1&pe&&(e.\u0275\u0275template(0,Q,19,18,"ng-container",0),e.\u0275\u0275template(1,le,16,9,"mat-accordion",1)),2&pe&&(e.\u0275\u0275property("ngIf",de.shouldDisplayFilters()&&!de.isRestaurantPage),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",((null==de.selectedSubcategories?null:de.selectedSubcategories.length)||(null==de._filters?null:de._filters.location)||(null==de._filters?null:de._filters.pharmaceutical_form)||(null==de._filters?null:de._filters.issuing))&&!de.isRestaurantPage))},dependencies:[g.NgClass,g.NgForOf,g.NgIf,v.xw,v.SQ,v.Wh,v.yH,y.b8,y.oO,b.pp,b.ib,b.yz,b.yK,S.Hw,g.UpperCasePipe,E.X$],styles:[".active-filters[_ngcontent-%COMP%]{padding:16px 0 8px;text-align:left;font-size:13px;font-weight:400;line-height:25px;color:#242424;width:100%}.active-filters[_ngcontent-%COMP%]   .lablebox__text[_ngcontent-%COMP%]{font-weight:700;color:#00853b;font-size:14px;line-height:19px}.active-filters[_ngcontent-%COMP%]   .lablebox__done-icon[_ngcontent-%COMP%]{color:#00853b;font-weight:700;font-size:20px}.active-filters[_ngcontent-%COMP%]   .main-filterbox[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{background:#d4f1db 0 0 no-repeat padding-box;border:1px solid #a1b7a6;font-size:13px!important;line-height:25px!important;font-weight:400!important;border-radius:0;height:30px;margin:10px 3px 0 0;padding:0 8px}.active-filters[_ngcontent-%COMP%]   .filterbox[_ngcontent-%COMP%]{height:32px;margin-left:8px;margin-bottom:8px;background-color:#edeff2;border-radius:16px;padding:0 12px}.active-filters[_ngcontent-%COMP%]   .filterbox[_ngcontent-%COMP%]   .filter-label[_ngcontent-%COMP%]{font-size:11px;line-height:15px;font-weight:700;color:#242424}.active-filters[_ngcontent-%COMP%]   .filterbox[_ngcontent-%COMP%]   .filter-action[_ngcontent-%COMP%]{margin-left:4px;font-size:20px;font-weight:700;color:#ff1b0a;cursor:pointer}.active-filters[_ngcontent-%COMP%]   .filterbox[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:inherit;height:16px;font-weight:700;font-size:initial;margin-left:4px}.active-filters[_ngcontent-%COMP%]   .filterbox[_ngcontent-%COMP%]:hover{background-color:#c8c9cc}.delete-filters-button[_ngcontent-%COMP%]{cursor:pointer;letter-spacing:.35px;line-height:25px;font-size:14px;font-weight:700}.bp-expansion-panel[_ngcontent-%COMP%]{border-radius:0!important;border-bottom:.5px solid #c7c7c7;max-width:100%}.bp-expansion-panel[_ngcontent-%COMP%]   .bp-expansion-panel-header[_ngcontent-%COMP%]{height:51px!important;padding:0 16px!important}.bp-expansion-panel[_ngcontent-%COMP%]   .bp-expansion-panel-header[_ngcontent-%COMP%]   .bp-expansion-panel-title[_ngcontent-%COMP%]{font-size:14px;line-height:19px;font-weight:700;letter-spacing:.42px;text-transform:uppercase}.bp-expansion-panel[_ngcontent-%COMP%]   .active-filter-divider[_ngcontent-%COMP%]{padding-bottom:6px}.active-filters-color[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .active-filters-color[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#00853b}.active-filters-tablet[_ngcontent-%COMP%]{padding:0!important}.delete-filters-link-tablet[_ngcontent-%COMP%]{margin:10px 0 0 3px!important}"]}),H})()},7397:(oe,x,i)=>{"use strict";i.d(x,{N:()=>_n});var e=i(94650),n=i(82722),a=i(95698),t=i(77579),l=i(28918),d=(i(32420),i(17596),i(77044)),p=i(55738),u=i(5221),g=i(97376),v=i(9116),y=i(28555),b=i(84659),S=i(36895),E=i(1576),D=i(55829),A=i(24404),P=i(37084),B=i(97392),V=i(18455),X=i(29203),re=i(44850),Q=i(47462),ae=i(24006),K=i(18815),k=i(3611);let $=(()=>{class Jt{transform(Ae,ze){return Ae?ze?(ze=ze.toLowerCase().trim(),Ae.filter(pt=>pt.name?.toLowerCase().includes(ze)||pt.title?.toLowerCase().includes(ze))):Ae:[]}}return Jt.\u0275fac=function(Ae){return new(Ae||Jt)},Jt.\u0275pipe=e.\u0275\u0275definePipe({name:"searchFilterOptions",type:Jt,pure:!0}),Jt})();var j=i(89262),R=i(614),U=i(89383);const H=["filters"];function N(Jt,ke){1&Jt&&e.\u0275\u0275element(0,"mat-divider")}function pe(Jt,ke){if(1&Jt&&e.\u0275\u0275element(0,"img",15),2&Jt){const Ae=e.\u0275\u0275nextContext(2).$implicit,ze=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("src",ze.getCategoryImagePath(Ae),e.\u0275\u0275sanitizeUrl)("alt",Ae.categoryId)}}const de=function(Jt){return{"category-divider":Jt}};function me(Jt,ke){if(1&Jt){const Ae=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275nextContext().$implicit,tn=e.\u0275\u0275nextContext(2).$implicit,ot=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ot.setFilters(tn,pt,!0,!ot.isMobileFilter))}),e.\u0275\u0275template(1,pe,1,2,"img",13),e.\u0275\u0275elementStart(2,"span",14),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()}if(2&Jt){const Ae=e.\u0275\u0275nextContext(),ze=Ae.last,pt=Ae.$implicit,tn=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,de,!ze&&tn.window.innerWidth<tn.breakpoints.DESKTOP_S)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tn.window.innerWidth<tn.breakpoints.DESKTOP_S&&tn.getCategoryImagePath(pt)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",tn.selectedCategory.key!==pt.categoryId||tn.isSearchResult||tn.isNoCategoryProductPage?"category-not-selected":"category-selected"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",pt.name," ")}}function q(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,me,4,6,"div",11),e.\u0275\u0275elementContainerEnd()),2&Jt){const Ae=ke.$implicit,ze=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ze.shouldDisplayMarketCategoryFilter(Ae))}}const se=function(){return{"bp-panel-radio-content":!0}};function ve(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementStart(0,"mat-expansion-panel",6)(1,"mat-expansion-panel-header",7)(2,"mat-panel-title")(3,"span",8),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(5,N,1,0,"mat-divider",9),e.\u0275\u0275elementStart(6,"div",10),e.\u0275\u0275template(7,q,2,1,"ng-container",2),e.\u0275\u0275elementEnd()()),2&Jt){const Ae=e.\u0275\u0275nextContext().$implicit,ze=e.\u0275\u0275nextContext();e.\u0275\u0275property("expanded",ze.window.innerWidth>=ze.breakpoints.DESKTOP_S||ze.areCategoriesDepthOneExpanded),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(Ae.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ze.window.innerWidth<ze.breakpoints.DESKTOP_S),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction0(5,se)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",ze.categories)}}function Ee(Jt,ke){1&Jt&&e.\u0275\u0275element(0,"mat-divider")}function Ye(Jt,ke){if(1&Jt&&e.\u0275\u0275element(0,"img",15),2&Jt){const Ae=e.\u0275\u0275nextContext(2).$implicit,ze=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("src",ze.getCategoryImagePath(Ae),e.\u0275\u0275sanitizeUrl)("alt",Ae.categoryId)}}function wt(Jt,ke){if(1&Jt){const Ae=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275nextContext().$implicit,tn=e.\u0275\u0275nextContext(2).$implicit,ot=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ot.setFilters(tn,pt,!0))}),e.\u0275\u0275template(1,Ye,1,2,"img",13),e.\u0275\u0275elementStart(2,"span",14),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()}if(2&Jt){const Ae=e.\u0275\u0275nextContext(),ze=Ae.last,pt=Ae.$implicit,tn=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,de,!ze&&tn.window.innerWidth<tn.breakpoints.DESKTOP_S)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",tn.window.innerWidth<tn.breakpoints.DESKTOP_S&&tn.getCategoryImagePath(pt)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",(null==tn.selectedSubcategory?null:tn.selectedSubcategory.key)!==(null==pt?null:pt.categoryId)||tn.isSearchResult||tn.isNoCategoryProductPage?"category-not-selected":"category-selected"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",null==pt?null:pt.name," ")}}function Wt(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,wt,4,6,"div",11),e.\u0275\u0275elementContainerEnd()),2&Jt){const Ae=ke.$implicit,ze=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ze.shouldDisplayMarketCategoryFilter(Ae))}}function Ut(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementStart(0,"mat-expansion-panel",6)(1,"mat-expansion-panel-header",7)(2,"mat-panel-title")(3,"span",8),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(6,Ee,1,0,"mat-divider",9),e.\u0275\u0275elementStart(7,"div",16),e.\u0275\u0275template(8,Wt,2,1,"ng-container",2),e.\u0275\u0275elementEnd()()),2&Jt){const Ae=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("expanded",Ae.window.innerWidth>=Ae.breakpoints.DESKTOP_S||Ae.selectedSubcategory.key),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,5,null==Ae.selectedCategory?null:Ae.selectedCategory.name)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",Ae.window.innerWidth<Ae.breakpoints.DESKTOP_S),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction0(7,se)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Ae.subcategories)}}const nt=function(Jt,ke){return{"fix-margin":Jt,divider:ke}},Zt=function(Jt){return{"selected-filter-text":Jt}};function Fe(Jt,ke){if(1&Jt){const Ae=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-checkbox",28),e.\u0275\u0275listener("change",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext().$implicit,ot=e.\u0275\u0275nextContext(2).$implicit,Et=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Et.setFilters(ot,tn,pt.checked,!Et.isMobileFilter))}),e.\u0275\u0275elementStart(1,"span",29),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()}if(2&Jt){const Ae=e.\u0275\u0275nextContext(),ze=Ae.first,pt=Ae.$implicit,tn=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(5,nt,ze,tn.window.innerWidth<tn.breakpoints.DESKTOP_S))("checked",tn._filters.categories.includes(pt.categoryId)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(8,Zt,tn._filters.categories.includes(pt.categoryId)))("matTooltip",tn.window.innerWidth>=tn.breakpoints.DESKTOP_S?pt.name:""),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",pt.name," ")}}function yt(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Fe,3,10,"mat-checkbox",27),e.\u0275\u0275elementContainerEnd()),2&Jt){const Ae=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Ae.isSidenavOpen)}}const ie=function(Jt){return{"bp-expansion-panel-header--subcategory":Jt}};function Ce(Jt,ke){if(1&Jt){const Ae=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-expansion-panel",17)(1,"mat-expansion-panel-header",18),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(pt.toggleSubcategoryExpansion())})("keydown.enter",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(pt.toggleSubcategoryExpansion())})("keydown.space",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(pt.toggleSubcategoryExpansion())}),e.\u0275\u0275elementStart(2,"mat-panel-title")(3,"span",19),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div",20)(8,"mat-form-field",21)(9,"input",22),e.\u0275\u0275listener("ngModelChange",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(tn.searchText.categoryInput=pt)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"mat-placeholder",23),e.\u0275\u0275text(11),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"mat-icon",24),e.\u0275\u0275text(14,"search"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(15,"div",25)(16,"div",26),e.\u0275\u0275template(17,yt,2,1,"ng-container",2),e.\u0275\u0275pipe(18,"searchFilterOptions"),e.\u0275\u0275elementEnd()()()}if(2&Jt){const Ae=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",Ae.window.innerWidth<Ae.breakpoints.DESKTOP_S?"mat-expansion-panel-with-search-tablet":"")("expanded",Ae.window.innerWidth>=Ae.breakpoints.DESKTOP_S||!(null==Ae._filters||null==Ae._filters.categories||!Ae._filters.categories.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(17,ie,Ae.areSubcategoriesExpanded)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,8,e.\u0275\u0275pipeBind1(6,10,"SHARED.FILTERS.SUBCATEGORIES"))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",!0===Ae.areSubcategoriesExpanded?"fade-out":"fade-in"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",Ae.searchText.categoryInput),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(12,12,"SHARED.FILTERS.SEARCH")),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind2(18,14,Ae.getFilterSubCategories(),Ae.searchText.categoryInput))}}function Ie(Jt,ke){if(1&Jt){const Ae=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-checkbox",34),e.\u0275\u0275listener("change",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext().$implicit,ot=e.\u0275\u0275nextContext(2).$implicit,Et=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(Et.setFilters(ot,tn,pt.checked,!Et.isMobileFilter))}),e.\u0275\u0275elementStart(1,"div",35),e.\u0275\u0275element(2,"span",36),e.\u0275\u0275elementEnd()()}if(2&Jt){const Ae=e.\u0275\u0275nextContext(),ze=Ae.$implicit,pt=Ae.first,tn=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("checked",tn._filters.businessNames.includes(ze.title))("disabled",0===ze.count)("ngClass",e.\u0275\u0275pureFunction2(6,nt,pt,tn.window.innerWidth<tn.breakpoints.DESKTOP_S)),e.\u0275\u0275advance(2),e.\u0275\u0275property("matTooltip",tn.windowInnerWidth>=tn.breakpoints.DESKTOP_S?ze.title:"")("ngClass",e.\u0275\u0275pureFunction1(9,Zt,tn._filters.businessNames.includes(ze.title)))("innerHTML",ze.title,e.\u0275\u0275sanitizeHtml)}}function dt(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Ie,3,11,"mat-checkbox",33),e.\u0275\u0275elementContainerEnd()),2&Jt){const Ae=ke.$implicit,ze=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!1!==Ae.count&&ze.isSidenavOpen)}}function Mt(Jt,ke){if(1&Jt){const Ae=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-expansion-panel",17)(1,"mat-expansion-panel-header",30),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(pt.toggleSoldBySearchExpansion())})("keydown.enter",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(pt.toggleSoldBySearchExpansion())})("keydown.space",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(pt.toggleSoldBySearchExpansion())}),e.\u0275\u0275elementStart(2,"mat-panel-title")(3,"span",19),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",31)(7,"mat-form-field",21)(8,"input",32),e.\u0275\u0275listener("ngModelChange",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(tn.searchText.businessInput=pt)}),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"mat-icon",24),e.\u0275\u0275text(11,"search"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(12,"div",25)(13,"div",26),e.\u0275\u0275template(14,dt,2,1,"ng-container",2),e.\u0275\u0275pipe(15,"searchFilterOptions"),e.\u0275\u0275elementEnd()()()}if(2&Jt){const Ae=e.\u0275\u0275nextContext().$implicit,ze=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",ze.window.innerWidth<ze.breakpoints.DESKTOP_S?"mat-expansion-panel-with-search-tablet":"")("expanded",ze.window.innerWidth>=ze.breakpoints.DESKTOP_S),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,6,Ae.title)),e.\u0275\u0275advance(4),e.\u0275\u0275property("placeholder",e.\u0275\u0275pipeBind1(9,8,"SHARED.FILTERS.SEARCH"))("ngModel",ze.searchText.businessInput),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind2(15,10,Ae.options,ze.searchText.businessInput))}}function Xt(Jt,ke){1&Jt&&e.\u0275\u0275element(0,"mat-divider")}function en(Jt,ke){if(1&Jt){const Ae=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ng5-slider",52),e.\u0275\u0275listener("userChangeEnd",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(tn.setPriceRange(pt.value,pt.highValue))})("highValueChange",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(tn.maxPrice=pt)})("valueChange",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(tn.minPrice=pt)}),e.\u0275\u0275elementEnd()}if(2&Jt){const Ae=e.\u0275\u0275nextContext(3).$implicit,ze=e.\u0275\u0275nextContext();e.\u0275\u0275property("highValue",ze.maxPrice)("value",ze.minPrice)("options",Ae.options)}}function vt(Jt,ke){if(1&Jt){const Ae=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",43),e.\u0275\u0275template(1,en,1,3,"ng5-slider",44),e.\u0275\u0275elementStart(2,"div",45)(3,"div",46)(4,"mat-form-field",47)(5,"mat-label"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"input",48,49),e.\u0275\u0275listener("keydown.enter",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275reference(9),tn=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(tn.setPriceRange(pt.valueAsNumber,tn._filters.price[1]))})("keydown",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(tn.preventNonNumericalInput(pt))})("focusout",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275reference(9),tn=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(tn.window.innerWidth>=tn.breakpoints.DESKTOP_S?tn.setPriceRange(pt.valueAsNumber,tn._filters.price[1]):null)})("input",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(tn.onLowerPriceChange(pt))})("ngModelChange",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(tn.minPrice=pt)}),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(11,"div",46)(12,"mat-form-field",50)(13,"mat-label"),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"input",48,51),e.\u0275\u0275listener("keydown.enter",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275reference(17),tn=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(tn.setPriceRange(tn._filters.price[0],pt.valueAsNumber))})("keydown",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(3);return tn.preventNonNumericalInput(pt),e.\u0275\u0275resetView(tn.preventUpperPriceInput(pt))})("focusout",function(){e.\u0275\u0275restoreView(Ae);const pt=e.\u0275\u0275reference(17),tn=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(tn.window.innerWidth>=tn.breakpoints.DESKTOP_S?tn.setPriceRange(tn._filters.price[0],pt.valueAsNumber):null)})("input",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(tn.onUpperPriceChange(pt))})("ngModelChange",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(tn.maxPrice=pt)}),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd()()()()()}if(2&Jt){const Ae=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",Ae.window.innerWidth<Ae.breakpoints.DESKTOP_S?"custom-class-tablet":""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Ae._filters.price.length),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,8,"SHARED.FILTERS.BUSINESS.FROM")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",Ae.minPrice)("placeholder",e.\u0275\u0275pipeBind1(10,10,"SHARED.FILTERS.BUSINESS.FROM")),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(15,12,"SHARED.FILTERS.BUSINESS.UNTILL")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngModel",Ae.maxPrice)("placeholder",e.\u0275\u0275pipeBind1(18,14,"SHARED.FILTERS.BUSINESS.UNTILL"))}}const xt=function(Jt){return[Jt]};function zt(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementStart(0,"div",54),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&Jt){const Ae=ke.$implicit,ze=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("ngClass",ze.windowInnerWidth<ze.breakpoints.DESKTOP_S?"restaurants-mobile":"restaurants-desktop")("routerLink",e.\u0275\u0275pureFunction1(3,xt,null==Ae?null:Ae.routerLink)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",Ae.title," ")}}function bt(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,zt,2,5,"div",53),e.\u0275\u0275elementContainerEnd()),2&Jt){const Ae=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Ae.options)}}function At(Jt,ke){if(1&Jt){const Ae=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-checkbox",57),e.\u0275\u0275listener("change",function(pt){e.\u0275\u0275restoreView(Ae);const tn=e.\u0275\u0275nextContext(),ot=tn.$implicit,Et=tn.index,z=e.\u0275\u0275nextContext(3).$implicit,Z=e.\u0275\u0275nextContext();return Z.setFilters(z,ot,pt.checked),e.\u0275\u0275resetView(Z.selectedLocation=Et)}),e.\u0275\u0275elementStart(1,"div")(2,"span",58),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"capitalize"),e.\u0275\u0275pipe(5,"truncate"),e.\u0275\u0275elementEnd()()()}if(2&Jt){const Ae=e.\u0275\u0275nextContext(),ze=Ae.$implicit,pt=Ae.index,tn=e.\u0275\u0275nextContext(3).$implicit,ot=e.\u0275\u0275nextContext();e.\u0275\u0275property("checked",ot.isMobileFilter?ot._filters[tn.key]===ze.key||ot.selectedLocation===pt:ot._filters[tn.key]===ze.key)("disabled",0===ze.count),e.\u0275\u0275advance(2),e.\u0275\u0275property("matTooltip",ot.windowInnerWidth>=ot.breakpoints.DESKTOP_S?ze.title:"")("ngClass",e.\u0275\u0275pureFunction1(11,Zt,ot.isMobileFilter?ot._filters[tn.key]===ze.key||ot.selectedLocation===pt:ot._filters[tn.key]===ze.key)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,5,e.\u0275\u0275pipeBind2(5,8,ze.title,ot.windowInnerWidth>=ot.breakpoints.DESKTOP_S?25:0),"each")," ")}}function $e(Jt,ke){1&Jt&&e.\u0275\u0275element(0,"mat-divider")}function Xe(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,At,6,13,"mat-checkbox",56),e.\u0275\u0275template(2,$e,1,0,"mat-divider",9),e.\u0275\u0275elementContainerEnd()),2&Jt){const Ae=ke.$implicit,ze=ke.last,pt=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!1!==Ae.count&&pt.isSidenavOpen),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",pt.windowInnerWidth<pt.breakpoints.DESKTOP_S&&!ze)}}function Pe(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementStart(0,"div")(1,"div",55),e.\u0275\u0275template(2,Xe,3,2,"ng-container",2),e.\u0275\u0275elementEnd()()),2&Jt){const Ae=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",Ae.options)}}function Ve(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementStart(0,"mat-expansion-panel",37)(1,"mat-expansion-panel-header",38)(2,"mat-panel-title")(3,"span",19),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(6,Xt,1,0,"mat-divider",9),e.\u0275\u0275elementStart(7,"div"),e.\u0275\u0275elementContainerStart(8,39),e.\u0275\u0275template(9,vt,19,16,"div",40),e.\u0275\u0275template(10,bt,2,1,"ng-container",41),e.\u0275\u0275template(11,Pe,3,1,"div",42),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()),2&Jt){const Ae=e.\u0275\u0275nextContext().$implicit,ze=e.\u0275\u0275nextContext();e.\u0275\u0275property("expanded",ze.window.innerWidth>=ze.breakpoints.DESKTOP_S),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,6,Ae.title)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",ze.shouldDisplayDivider(Ae.key)&&ze.windowInnerWidth<ze.breakpoints.DESKTOP_S),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngSwitch",Ae.key),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",ze.filterType.PRICE),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",ze.filterType.RESTAURANTS)}}function mt(Jt,ke){if(1&Jt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ve,8,6,"mat-expansion-panel",3),e.\u0275\u0275template(2,Ut,9,8,"mat-expansion-panel",3),e.\u0275\u0275template(3,Ce,19,19,"mat-expansion-panel",4),e.\u0275\u0275template(4,Mt,16,13,"mat-expansion-panel",4),e.\u0275\u0275template(5,Ve,12,8,"mat-expansion-panel",5),e.\u0275\u0275elementContainerEnd()),2&Jt){const Ae=ke.$implicit,ze=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Ae.show&&"category"===Ae.key&&!ze.isSearchResult&&!ze.isNoCategoryProductPage),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ze.shouldDisplaySubcategoriesFilter(Ae)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ze.shouldDisplayFilter(Ae)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ze.hasBackendResponse&&"businessNames"===Ae.key&&ze.shouldShowBusinessFilter()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ze.shouldDisplayDefaultFilter(Ae))}}const It=function(Jt){return{"bp-accordion-tablet":Jt}};var xn=(()=>{return(Jt=xn||(xn={})).GENERIC="generic",Jt.PRICE="price",Jt.RESTAURANTS="restaurants",xn;var Jt})();class _n{constructor(ke,Ae,ze,pt,tn,ot,Et){this.filtersService=ke,this.userLocationService=Ae,this.router=ze,this.activatedRoute=pt,this.store=tn,this.sidenavService=ot,this.productService=Et,this._options={},this.isSidenavOpen=!0,this.filtersChanged=new e.EventEmitter,this.window=window,this.maxPrice=0,this.minPrice=0,this.filterType=xn,this.breakpoints=l.u3l,this.searchText={categoryInput:"",businessInput:""},this.areCategoriesDepthOneExpanded=!1,this.selectedCategory={key:null,name:null},this.selectedSubcategory={key:null,name:null},this.isProductPage=!1,this.isNoCategoryProductPage=!1,this.subcategories=[],this.subcategoriesDepthTwo=[],this.categories=[],this.isSearchResult=!1,this.loading=!1,this.upperSearchValue="",this.allCategories={depthZero:[],depthOne:[],depthTwo:[]},this.nonDefaultFilterKeys=["category","location","businessNames"],this.windowInnerWidth=window.innerWidth,this.mobileFilters=[],this.currentSelectedLocation={city:void 0,county:void 0},this.destroy$=new t.x,this.marketCategories=Object.keys(l.rHK),this._filters=this.filtersService.filters,this._options=this.filtersService.options,this.isMobileFilter=!1}ngOnInit(){if(this.getInitialUserLocation(),this.setCategories(),this.handleLocationChangeForBusinessNames(),this.activatedRoute.snapshot._routerState.url){const ke=this.activatedRoute.snapshot._routerState.url.split("/");ke[1]===l.Z2M.PRODUCTS&&(this.isProductPage=!0),ke[1]===l.Z2M.PRODUCTS&&!ke[2]&&(this.isNoCategoryProductPage=!0),ke[2]===l.Z2M.SEARCH&&(this.isSearchResult=!0)}this.setPriceFilterValues(2e3),this.activatedRoute.queryParams.pipe((0,n.R)(this.destroy$)).subscribe(ke=>{this.pageSize=ke.size})}onResize(){this.windowInnerWidth=window.innerWidth}shouldDisplayMarketCategoryFilter(ke){return ke.parentId!==l._lB.MARKET||this.marketCategories.includes(ke.categoryId)}hasUserLocationChanged(ke){return ke?.city&&ke?.county&&(this.currentSelectedLocation?.city?.toLocaleLowerCase()!==ke?.city?.toLocaleLowerCase()||this.currentSelectedLocation?.county?.toLocaleLowerCase()!==ke?.county?.toLocaleLowerCase())}getInitialUserLocation(){this.store.select(u.Ac).pipe((0,a.q)(1)).subscribe(ke=>{if(ke)this.currentSelectedLocation={city:ke?.city,county:ke?.county};else{const Ae=this.userLocationService.locationFromStorage;this.currentSelectedLocation={city:Ae.split("~")[0],county:Ae?.split("~")[1]}}})}handleLocationChangeForBusinessNames(){this.store.select(u.Ac).pipe((0,n.R)(this.destroy$)).subscribe(ke=>{this.hasUserLocationChanged(ke)&&(this.currentSelectedLocation={city:ke?.city,county:ke?.county},this._filters.businessNames=[],this.sidenavService.currentSidenavFilters.pipe((0,a.q)(1)).subscribe(Ae=>{Ae.filters.businessNames=[],this.sidenavService.setSidenavFilters(Ae)}))})}ngOnChanges(ke){ke.businessCategories&&this.setBusinessCategories(),this._filters=this.filtersService.filters,this._options=this.filtersService.options,this.manageCategoryFilters(),this.isSearchResult&&this._options.filters.find(Ae=>"category"===Ae.key)&&(this._options.filters.find(Ae=>"category"===Ae.key).loading=!1),this.setPriceFilterValues(1e3),this.mobileFilters?.map(Ae=>(this._filters.categories.includes(Ae.option.categoryId)||(Ae.checked=!1),Ae))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}shouldShowBusinessFilter(){return this._options.filters.find(Ae=>Ae.key===l.Ei8.BUSINESS_NAMES)?.options?.length>=1&&!this.businessProfile}setPriceFilterValues(ke){setTimeout(()=>{this._filters=this.filtersService.filters,this.minPrice=this._filters.price[0],this.maxPrice=this._filters.price[1],this.upperSearchValue=this.maxPrice?.toString()},ke)}shouldDisplaySubcategoriesFilter(ke){return this.businessProfile&&ke.show&&ke.key===l.Ei8.CATEGORY&&!!this.subcategories.length}shouldDisplayFilter(ke){return ke.show&&ke.key===l.Ei8.CATEGORY&&!this.isSearchResult&&!this.isNoCategoryProductPage&&(this.businessProfile?!!this.subcategoriesDepthTwo.length:!!this.subcategories.length)}shouldDisplayDefaultFilter(ke){return!(ke.key===l.Ei8.PRICE&&!this._filters.price[0]&&!this._filters.price[1])&&ke.show&&!this.nonDefaultFilterKeys.includes(ke.key)}setAllCategoriesDepths(ke){this.allCategories.depthZero=ke.filter(Ae=>Ae.name),this.allCategories.depthOne=ke?.reduce((Ae,ze)=>Ae.concat(ze.children),[]),this.allCategories.depthTwo=this.allCategories.depthOne?.reduce((Ae,ze)=>Ae.concat(ze.children),[])}toggleSubcategoryExpansion(){this.areSubcategoriesExpanded=!this.areSubcategoriesExpanded}toggleSoldBySearchExpansion(){this.isSoldBySearchExpanded=!this.isSoldBySearchExpanded}setPriceRange(ke,Ae){this.compareArrays(this._filters.price,[ke,Ae])||((!Ae||Ae>this._filters.maxPriceLimit)&&(Ae=this._filters.maxPriceLimit,this.maxPrice=this._filters.maxPriceLimit),0===Ae&&(Ae=0,this.maxPrice=this._filters.maxPriceLimit),ke||(ke=0,this.minPrice=0),this.isMobileFilter?this.saveMobilePriceRange(ke,Ae):this.setPriceRangeAndLoadPage(ke,Ae))}compareArrays(ke,Ae){return ke.length===Ae.length&&ke.every((ze,pt)=>ze===Ae[pt])}preventNonNumericalInput(ke){!Number(ke.key)&&"Backspace"!==ke.key&&"0"!==ke.key&&ke.preventDefault()}preventUpperPriceInput(ke){("0"===this.upperSearchValue&&"Backspace"!==ke.key||"0"===ke.key&&!this.upperSearchValue.length)&&ke.preventDefault()}onUpperPriceChange(ke){this.upperSearchValue=ke.target.value,ke.target.value=this.maxPrice?.toString()}onLowerPriceChange(ke){ke.target.value=this.minPrice?.toString()}setPriceRangeAndLoadPage(ke,Ae){this.isNoCategoryProductPage&&this.filtersService.setBaseUrl(`${l.Z2M.PRODUCTS}/`),this._filters=this.filtersService.setPriceRange(100*ke,100*Ae),this.filtersService.resetPage(),this.loadPage()}setFilters(ke,Ae,ze,pt=!0){Ae.categoryId&&this.selectedCategory.key===Ae.categoryId&&this.isMobileFilter?(this.selectedCategory.name=null,this.selectedCategory.key=null,ze=!1):(this.selectedCategory.name=Ae.name,this.selectedCategory.key=Ae.categoryId),this.saveMobileFilters(Ae,ke,ze),this.isSearchResult&&this.filtersService.setBaseUrl(`${l.Z2M.PRODUCTS}/${l.Z2M.SEARCH}/${this._filters.text}`),l.F6k.includes(Ae.categoryId)&&this.isProductPage?(this.filtersService.resetProductFilters(Ae.categoryId).subscribe(ot=>this._filters=ot),this.filtersService.setBaseUrl(`${l.Z2M.PRODUCTS}/${l.VLR.slugify(Ae.name)}-${Ae.categoryId}`),this.router.navigate([`${this.filtersService.baseURL}`])):(ke.businessProfile=this.businessProfile,pt&&this.setFilterByKey(ke,Ae,ze),this.isMobileFilter||(this.filtersService.resetPage(),this.loadPage()));let tn=1===Ae?.depth;this.businessProfile&&(tn=2!==Ae?.depth),this.filtersChanged.emit(tn)}getParams(ke={}){return this.pageSize&&(ke.size=this.pageSize),ke}saveMobileFilters(ke,Ae,ze){ke.categoryId&&(this.mobileFilters=this.mobileFilters?.filter(pt=>pt.option.categoryId!==ke.categoryId)),this.mobileFilters.push({filter:Ae,option:ke,checked:ze})}setFilterByKey(ke,Ae,ze){switch(ke.key){case"location":this.filtersService.setLocationFilter(Ae.key,ze);break;case"businessNames":this.filtersService.setBusinessFilter(Ae,ze);break;default:this.activatedRoute.queryParams.pipe((0,a.q)(1)).subscribe(()=>{this.filtersService.setFilters(ke,Ae,ze,!!this.businessProfile)})}}loadPage(){this.mobilePriceRange&&(this._filters.price[0]>this.mobilePriceRange.priceMin||this._filters.price[1]>this.mobilePriceRange.priceMax)&&(this._filters.price[0]=this._filters.price[0]/100,this._filters.price[1]=this._filters.price[1]/100),this.isNoCategoryProductPage&&this.filtersService.setBaseUrl(`/${l.Z2M.PRODUCTS}`);const ke=this.filtersService.params;l.VLR.compareParams(ke.queryParams,this.filtersService.lastRequest.query)&&this.filtersService.baseURL&&this.router.navigate([this.filtersService.baseURL],{queryParams:this.getParams(ke.queryParams)})}generateCategoryOptionsForBusinessOfferFromDepthZero(ke){this.selectedCategory.key=ke[0],this.selectedCategory.name=this.categories.find(Ae=>Ae.categoryId===ke[0]).name,this.areCategoriesDepthOneExpanded=!0,this.subcategories=this.categories.find(Ae=>Ae.categoryId===ke[0]).children,this.subcategoriesDepthTwo=[],this.selectedSubcategory={key:null,name:null}}generateCategoryOptionsForBusinessOfferFromDepthOne(ke){let Ae=this.getCategoryById(this.allCategories.depthOne,ke[0]);if(!Ae){const pt=this.getCategoryById(this.allCategories.depthTwo,ke[0]);Ae=this.getCategoryById(this.allCategories.depthOne,pt.parentId)}const ze=this.getCategoryById(this.allCategories.depthZero,Ae.parentId);this.updateDepthCategory(ze,Ae)}updateDepthCategory(ke,Ae){this.selectedCategory.key=ke.categoryId,this.selectedCategory.name=ke.name,this.subcategories=ke.children,this.selectedSubcategory.key=Ae.categoryId,this.selectedSubcategory.name=Ae.name,this.subcategoriesDepthTwo=Ae.children,this.areCategoriesDepthOneExpanded=!0}generateCategoryOptionsForBusinessOffer(){const ke=this._filters.categories;ke.length&&(this.categories=this.allCategories.depthZero,this.categories.find(ze=>ze.categoryId===ke[0])?this.generateCategoryOptionsForBusinessOfferFromDepthZero(ke):this.generateCategoryOptionsForBusinessOfferFromDepthOne(ke))}generateCategoryOptionsFromMainCategory(ke){this.mainCategory=ke,this.categories=ke.children,this.selectedCategory.key=null,this.selectedCategory.name=null,this.subcategories=[],this.areCategoriesDepthOneExpanded=!1}generateCategoryOptionsFromSubcategory(){const ke=this.searchDepthOneCategory();if(ke)this.generateCategoryOptionsFromDepthOneCategory(ke);else{const Ae=this.getCategoryById(this.allCategories.depthOne,this._filters.categories[0]);Ae&&this.generateCategoryOptionsFromDepthTwoCategory(Ae)}}searchDepthOneCategory(ke=2){const Ae=this.allCategories.depthOne.find(ze=>[this._filters.categories[0].substr(0,ke),this._filters.categories[0].substr(0,ke)].includes(ze.categoryId));return!Ae&&ke<=this._filters.categories[0].length?this.searchDepthOneCategory(ke+1):Ae}generateCategoryOptionsFromDepthOneCategory(ke){const Ae=this.getCategoryById(this.allCategories.depthZero,ke.parentId);this.categories=Ae.children,this.mainCategory=Ae,this.selectedCategory.key=ke.categoryId,this.selectedCategory.name=ke.name,this.areCategoriesDepthOneExpanded=!0,this.subcategories=ke.children}generateCategoryOptionsFromDepthTwoCategory(ke){const Ae=this.getCategoryById(this.allCategories.depthOne,ke.parentId),ze=this.getCategoryById(this.allCategories.depthZero,Ae.parentId);this.mainCategory=ze,this.categories=ze.children,this.selectedCategory.key=Ae.categoryId,this.selectedCategory.name=Ae.name,this.areCategoriesDepthOneExpanded=!0,this.subcategories=ze.children}getCategoryById(ke,Ae){return ke.find(ze=>ze.categoryId===Ae)}applyFilters(){this.mobilePriceRange&&this.setPriceRange(this.mobilePriceRange.priceMin,this.mobilePriceRange.priceMax),this.mobileFilters&&(this.mobileFilters.forEach(({filter:ke,option:Ae,checked:ze})=>{this.setFilterByKey(ke,Ae,ze)}),this.mobileFilters=this.mobileFilters?.filter(ke=>!ke.checked)),this.loadPage(),this.selectedLocation=null}getAllCategories(){this.productService.atcsAggregations$.pipe((0,n.R)(this.destroy$)).subscribe(Ae=>{Ae&&(this.setAllCategoriesDepths(Ae),this.filtersService.setCategories(this.allCategories.depthZero,this.allCategories.depthOne),this.manageCategoryFilters())})}setBusinessCategories(){this.setAllCategoriesDepths(this.businessCategories),this.filtersService.setCategories(this.allCategories.depthZero,this.allCategories.depthOne,this.allCategories.depthTwo),this.manageCategoryFilters()}manageCategoryFilters(){if(!this._filters||!this._filters.categories[0])return this.categories=[],this.subcategories=[],void(this.subcategoriesDepthTwo=[]);if(this.businessProfile)this.generateCategoryOptionsForBusinessOffer();else{const ke=this.getCategoryById(this.allCategories.depthZero,this._filters.categories[0]);this.generateCategories(ke)}}generateCategories(ke){ke?this.generateCategoryOptionsFromMainCategory(ke):this.generateCategoryOptionsFromSubcategory()}saveMobilePriceRange(ke,Ae){this.mobilePriceRange={priceMin:ke,priceMax:Ae},this._filters=this.filtersService.setPriceRange(100*ke,100*Ae)}getCategoryImagePath(ke){return 1===ke.categoryId.length?`assets/images/home/spotlight/cat-${ke.categoryId}-small.png`:ke.parentId===l._lB.MARKET?`assets/images/home/menu/market/${ke.categoryId}.png`:null}setCategories(){this.categories=[],this.subcategories=[],this.subcategoriesDepthTwo=[],this.businessProfile?this.setBusinessCategories():this.getAllCategories()}getFilterSubCategories(){return this.businessProfile?this.subcategoriesDepthTwo:this.subcategories}shouldDisplayDivider(ke){return["restaurants","issuing","pharmaceutical_form"].includes(ke)}}_n.\u0275fac=function(ke){return new(ke||_n)(e.\u0275\u0275directiveInject(l.vio.FiltersServiceToken),e.\u0275\u0275directiveInject(l.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(v.F0),e.\u0275\u0275directiveInject(v.gz),e.\u0275\u0275directiveInject(y.yh),e.\u0275\u0275directiveInject(b.B),e.\u0275\u0275directiveInject(g.M))},_n.\u0275cmp=e.\u0275\u0275defineComponent({type:_n,selectors:[["app-business-filters"]],viewQuery:function(ke,Ae){if(1&ke&&e.\u0275\u0275viewQuery(H,5),2&ke){let ze;e.\u0275\u0275queryRefresh(ze=e.\u0275\u0275loadQuery())&&(Ae.filters=ze.first)}},hostBindings:function(ke,Ae){1&ke&&e.\u0275\u0275listener("resize",function(pt){return Ae.onResize(pt)},!1,e.\u0275\u0275resolveWindow)},inputs:{_filters:"_filters",isMobileFilter:"isMobileFilter",_options:"_options",businessCategories:"businessCategories",businessProfile:"businessProfile",isSidenavOpen:"isSidenavOpen",hasBackendResponse:"hasBackendResponse"},outputs:{filtersChanged:"filtersChanged"},features:[e.\u0275\u0275NgOnChangesFeature],decls:3,vars:4,consts:[["displayMode","flat","multi","true","tabindex","-1",1,"bp-accordion","mat-elevation-z1",3,"ngClass"],["filters",""],[4,"ngFor","ngForOf"],["class","bp-expansion-panel categories-expansion-panel",3,"expanded",4,"ngIf"],["class","bp-expansion-panel mat-expansion-panel-with-search",3,"ngClass","expanded",4,"ngIf"],["class","bp-expansion-panel",3,"expanded",4,"ngIf"],[1,"bp-expansion-panel","categories-expansion-panel",3,"expanded"],[1,"bp-expansion-panel-header"],[1,"bp-expansion-panel-title"],[4,"ngIf"],[1,"bp-expansion-panel-content","category-filters-wrapper",3,"ngClass"],["class","category-text-wrapper",3,"ngClass","click",4,"ngIf"],[1,"category-text-wrapper",3,"ngClass","click"],["class","category-image",3,"src","alt",4,"ngIf"],[3,"ngClass"],[1,"category-image",3,"src","alt"],[1,"bp-expansion-panel-content",3,"ngClass"],[1,"bp-expansion-panel","mat-expansion-panel-with-search",3,"ngClass","expanded"],["collapsedHeight","*","expandedHeight","*",1,"bp-expansion-panel-header",3,"ngClass","click","keydown.enter","keydown.space"],[1,"bp-expansion-panel-title","break-words"],["tabindex","1",1,"sticky-search-input",3,"ngClass"],["fxLayout","row","floatLabel","never",1,"filter-search-input","raised-icon-button"],["fxFlex","85","matInput","",3,"ngModel","ngModelChange"],[1,"placeholder-fix"],[1,"mat-icon-color-change"],[1,"bp-expansion-panel-content"],["fxLayout","column",1,"filters-wrapper--subcategory"],["class","filters-item","fxLayoutAlign","start center","color","primary",3,"ngClass","checked","change",4,"ngIf"],["fxLayoutAlign","start center","color","primary",1,"filters-item",3,"ngClass","checked","change"],[1,"filter-title","business-filter-option","break-words",3,"ngClass","matTooltip"],["collapsedHeight","*","expandedHeight","*",1,"bp-expansion-panel-header",3,"click","keydown.enter","keydown.space"],["tabindex","1",1,"sticky-search-input"],["fxFlex","85","matInput","","autocomplete","off",1,"placeholder-text",3,"placeholder","ngModel","ngModelChange"],["class","filters-item","color","primary",3,"checked","disabled","ngClass","change",4,"ngIf"],["color","primary",1,"filters-item",3,"checked","disabled","ngClass","change"],[1,"business-filter-option-wrapper"],[1,"filter-title","business-filter-option","break-words",3,"matTooltip","ngClass","innerHTML"],[1,"bp-expansion-panel",3,"expanded"],["collapsedHeight","*","expandedHeight","*",1,"bp-expansion-panel-header"],[3,"ngSwitch"],["class","custom-slider","fxFlex","100",3,"ngClass",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100",1,"custom-slider",3,"ngClass"],[3,"highValue","value","options","userChangeEnd","highValueChange","valueChange",4,"ngIf"],["fxLayout","row","fxLayoutGap","16px",1,"inputsUnderSlider"],["fxLayout","column","fxLayoutAlign","start start",1,"priceInput"],["appearance","outline","color","primary"],["matInput","","type","number","pattern","[0-9]*",3,"ngModel","placeholder","keydown.enter","keydown","focusout","input","ngModelChange"],["lowPrice",""],["appearance","outline","color","primary",1,"hideArrows"],["highPrice",""],[3,"highValue","value","options","userChangeEnd","highValueChange","valueChange"],["fxLayoutAlign","start center","routerLinkActive","active-link",3,"ngClass","routerLink",4,"ngFor","ngForOf"],["fxLayoutAlign","start center","routerLinkActive","active-link",3,"ngClass","routerLink"],["fxLayout","column",1,"filters-wrapper","aligned-overflow-filters"],["fxLayoutAlign","start center","class","filters-item","color","primary",3,"checked","disabled","change",4,"ngIf"],["fxLayoutAlign","start center","color","primary",1,"filters-item",3,"checked","disabled","change"],[1,"filter-title","business-filter-option","break-words",3,"matTooltip","ngClass"]],template:function(ke,Ae){1&ke&&(e.\u0275\u0275elementStart(0,"mat-accordion",0,1),e.\u0275\u0275template(2,mt,6,5,"ng-container",2),e.\u0275\u0275elementEnd()),2&ke&&(e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,It,Ae.window.innerWidth<Ae.breakpoints.DESKTOP_S)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",Ae._options.filters))},dependencies:[S.NgClass,S.NgForOf,S.NgIf,S.NgSwitch,S.NgSwitchCase,S.NgSwitchDefault,v.rH,v.Od,E.xw,E.SQ,E.Wh,E.yH,D.oO,A.FC,P.pp,P.ib,P.yz,P.yK,B.Hw,V.v_,V.$V,V.Tl,X.k0,re.d,Q.Kd,ae.Fj,ae.wV,ae.JJ,ae.c5,ae.On,K.w5,k.b,S.UpperCasePipe,$,j.W,R.e,U.X$],styles:[".category-filters-wrapper[_ngcontent-%COMP%]{margin-top:8px}.category-image[_ngcontent-%COMP%]{height:45px;width:45px;margin:12px 8px}mat-accordion[_ngcontent-%COMP%]:focus{outline:none!important;border:0!important;width:inherit}.placeholder-text[_ngcontent-%COMP%]{font-size:14px!important}mat-expansion-panel[_ngcontent-%COMP%]   mat-expansion-panel-header[_ngcontent-%COMP%]{height:auto!important}.filters-item[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.inputsUnderSlider[_ngcontent-%COMP%]{text-align:left;font-size:13px;letter-spacing:0;color:#242424;opacity:1;margin-top:22px}.filter-title[_ngcontent-%COMP%]{letter-spacing:0;line-height:30px;font-size:14px;text-transform:none}.filter-title[_ngcontent-%COMP%]:hover{text-decoration:underline}.fix-margin[_ngcontent-%COMP%]{margin-top:16px}.hideArrows[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .hideArrows[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.hideArrows[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.category-selected[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;color:#00853b;font-weight:700;text-align:left;letter-spacing:0;font-size:14px;cursor:pointer}.category-not-selected[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;color:#242424;text-align:left;letter-spacing:0;font-size:14px;cursor:pointer}.categoryNotSelected[_ngcontent-%COMP%]:hover{text-decoration:underline}.fade-out[_ngcontent-%COMP%]{visibility:hidden;opacity:0;transition:visibility 0s .2s,opacity .2s linear}.fade-in[_ngcontent-%COMP%]{visibility:visible;opacity:1;transition:opacity .2s linear}.bp-accordion[_ngcontent-%COMP%]{background-color:#edeff2}.bp-accordion[_ngcontent-%COMP%]   .sticky-search-input[_ngcontent-%COMP%]{z-index:1;height:40px;position:absolute;background-color:#fff;padding-bottom:16px!important}.bp-accordion[_ngcontent-%COMP%]   .sticky-search-input[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{overflow:visible!important}.bp-accordion[_ngcontent-%COMP%]   .sticky-search-input[_ngcontent-%COMP%]:focus{outline:none!important}.bp-accordion[_ngcontent-%COMP%]   .filter-search-input[_ngcontent-%COMP%]:focus{outline:none!important}.bp-accordion[_ngcontent-%COMP%]   .bp-expansion-panel[_ngcontent-%COMP%]{border-radius:8px!important;margin-bottom:16px!important;max-width:224px}.bp-accordion[_ngcontent-%COMP%]   .bp-expansion-panel[_ngcontent-%COMP%]   .bp-expansion-panel-header[_ngcontent-%COMP%]{min-height:19px!important;margin:16px 0!important;padding:0 16px!important;background:none!important}.bp-accordion[_ngcontent-%COMP%]   .bp-expansion-panel[_ngcontent-%COMP%]   .bp-expansion-panel-header[_ngcontent-%COMP%]   .bp-expansion-panel-title[_ngcontent-%COMP%]{font-size:14px;line-height:19px;font-weight:700;letter-spacing:.42px;color:#242424}.bp-accordion[_ngcontent-%COMP%]   .radio-filter-group[_ngcontent-%COMP%]   .radio-filter-button[_ngcontent-%COMP%]{padding-bottom:4px}.bp-accordion[_ngcontent-%COMP%]   .filter-search-input[_ngcontent-%COMP%]{align-items:center;background:#fff 0 0 no-repeat padding-box;border:2px solid #bbbbbb;border-radius:4px;height:40px;padding:0 0 0 8px}.bp-accordion[_ngcontent-%COMP%]   .filter-search-input[_ngcontent-%COMP%]   .mat-icon-color-change[_ngcontent-%COMP%]{margin:-3px 4px 0 auto;color:#7b7b7b;font-size:24px;width:20px;height:20px}.bp-accordion[_ngcontent-%COMP%]   .mat-focused[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]{color:transparent}.bp-accordion[_ngcontent-%COMP%]   .filter-search-input.mat-focused[_ngcontent-%COMP%]{border:2px solid #7b7b7b}.bp-accordion[_ngcontent-%COMP%]   .filter-search-input[_ngcontent-%COMP%]:hover{border:2px solid #bbbbbb}.bp-accordion[_ngcontent-%COMP%]   .mat-focused[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#7b7b7b}.bp-accordion[_ngcontent-%COMP%]   .mat-focused[_ngcontent-%COMP%]   .placeholder-fix[_ngcontent-%COMP%]{display:none}.bp-accordion-tablet[_ngcontent-%COMP%]   .bp-expansion-panel[_ngcontent-%COMP%]{max-width:100%!important;margin-bottom:0!important;box-shadow:none!important;border-radius:0!important;border-bottom:.5px solid #c7c7c7}.custom-slider-tablet[_ngcontent-%COMP%]{width:50%!important}.restaurants-desktop[_ngcontent-%COMP%]{cursor:pointer;font-size:13px}.restaurants-desktop[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:8px}.restaurants-desktop[_ngcontent-%COMP%]:hover{text-decoration:underline}.restaurants-mobile[_ngcontent-%COMP%]{height:68px;cursor:pointer;font-size:14px}.active-link[_ngcontent-%COMP%]{background-color:transparent!important;font-weight:700!important;color:#00853b!important}.category-text-wrapper[_ngcontent-%COMP%]{margin-bottom:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 960px){.inputsUnderSlider[_ngcontent-%COMP%]{margin-bottom:16px}.sticky-search-input[_ngcontent-%COMP%]{width:calc(100% - 32px)}.category-text-wrapper[_ngcontent-%COMP%]{margin-bottom:0;display:flex;align-items:center;height:68px}.category-filters-wrapper[_ngcontent-%COMP%]{margin-top:0}.category-divider[_ngcontent-%COMP%]{border-bottom:1px #bbbbbb solid}.divider[_ngcontent-%COMP%]{border-top:1px #bbbbbb solid}.fix-margin[_ngcontent-%COMP%]{margin-top:24px}}.selected-filter-text[_ngcontent-%COMP%]{font-weight:700;color:#00853b}@media (width: 960px){.sticky-search-input[_ngcontent-%COMP%]{width:auto}.inputsUnderSlider[_ngcontent-%COMP%]{margin-bottom:0}.category-text-wrapper[_ngcontent-%COMP%]{margin-bottom:16px;height:auto}.category-filters-wrapper[_ngcontent-%COMP%]{margin-top:8px;padding:0}.fix-margin[_ngcontent-%COMP%]{margin-top:16px}}"]}),function(Jt,ke,Ae,ze){var ot,pt=arguments.length,tn=pt<3?ke:null===ze?ze=Object.getOwnPropertyDescriptor(ke,Ae):ze;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)tn=Reflect.decorate(Jt,ke,Ae,ze);else for(var Et=Jt.length-1;Et>=0;Et--)(ot=Jt[Et])&&(tn=(pt<3?ot(tn):pt>3?ot(ke,Ae,tn):ot(ke,Ae))||tn);pt>3&&tn&&Object.defineProperty(ke,Ae,tn)}([(0,d.I)(),function(Jt,ke){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",ke)}(0,p.n)],_n.prototype,"user",void 0)},60607:(oe,x,i)=>{"use strict";i.d(x,{Y:()=>A});var e=i(35559),n=i(9116),a=i(28918),t=i(94650),l=i(36895),h=i(1576),s=i(55829),d=i(97392),p=i(44850),u=i(44454);function g(P,B){1&P&&(t.\u0275\u0275elementStart(0,"div",11),t.\u0275\u0275element(1,"mat-divider"),t.\u0275\u0275elementEnd())}function v(P,B){if(1&P){const V=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8)(1,"mat-radio-button",9),t.\u0275\u0275listener("change",function(){const Q=t.\u0275\u0275restoreView(V).$implicit,ae=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(ae.setSorting(Q))}),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,g,2,0,"div",10),t.\u0275\u0275elementEnd()}if(2&P){const V=B.$implicit,X=B.last,re=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("checked",V.field===re._filters.pagination.sort),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",V.title," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!X)}}function y(P,B){if(1&P&&(t.\u0275\u0275elementStart(0,"div",6),t.\u0275\u0275template(1,v,4,3,"div",7),t.\u0275\u0275elementEnd()),2&P){const V=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",V._options.page.sort)}}function b(P,B){1&P&&(t.\u0275\u0275elementStart(0,"div",11),t.\u0275\u0275element(1,"mat-divider"),t.\u0275\u0275elementEnd())}const S=function(P,B){return{"pb-14":P,active:B}};function E(P,B){if(1&P){const V=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",14),t.\u0275\u0275listener("click",function(){const Q=t.\u0275\u0275restoreView(V).$implicit,ae=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(ae.setPage(Q))}),t.\u0275\u0275text(1),t.\u0275\u0275template(2,b,2,0,"div",10),t.\u0275\u0275elementEnd()}if(2&P){const V=B.$implicit,X=B.last,re=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction2(3,S,X,re.currentPage===V)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" Pagina: ",V," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!X)}}function D(P,B){if(1&P&&(t.\u0275\u0275elementStart(0,"mat-dialog-content",12),t.\u0275\u0275template(1,E,3,6,"div",13),t.\u0275\u0275elementEnd()),2&P){const V=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",V.pages)}}let A=(()=>{class P{constructor(V,X,re,Q,ae){this.data=V,this.filtersService=X,this.router=re,this.activatedRoute=Q,this.dialogRef=ae,this.isIOS=!1,this._filters=this.data.filters,this._options=this.data.options,this.title=V.title,this.pages=Array.from({length:this.data.pages},(K,k)=>k+1)}ngOnInit(){this.isIOS=!!navigator.userAgent.match("iPhone"),this._filters=this.filtersService.filters,this.pageSize=this._filters.pagination.size,this.router.events.subscribe(V=>{V instanceof n.m2&&this.dialogRef.close()}),this.listenForQueryParams()}listenForQueryParams(){this.activatedRoute.queryParams.subscribe(V=>{V?.sort&&(this._filters.pagination.sort=V.sort),this.currentPage=V.page?parseInt(V.page,10):this.data.currentPageIndex?this.data.currentPageIndex+1:1,this.currentPageIndex=this.currentPage-1})}setSorting(V){this._filters=this.filtersService.setSorting(V,!0),this.filtersService.resetPage(),this.dialogRef.close(V)}close(){this.dialogRef.close()}setPage(V){this.dialogRef.close(V)}}return P.\u0275fac=function(V){return new(V||P)(t.\u0275\u0275directiveInject(e.eJ),t.\u0275\u0275directiveInject(a.vio.FiltersServiceToken),t.\u0275\u0275directiveInject(n.F0),t.\u0275\u0275directiveInject(n.gz),t.\u0275\u0275directiveInject(e.hV))},P.\u0275cmp=t.\u0275\u0275defineComponent({type:P,selectors:[["app-sorting-filters-dialog"]],decls:11,vars:3,consts:[[1,"container-header"],[1,"close-button-container",3,"click"],[1,"dialog-full-width-divider"],[1,"container-content"],["fxLayout","column",4,"ngIf"],["fxLayout","column","class","mt-16",4,"ngIf"],["fxLayout","column"],["class","filters-item",4,"ngFor","ngForOf"],[1,"filters-item"],["color","primary",3,"checked","change"],["class","pt-14",4,"ngIf"],[1,"pt-14"],["fxLayout","column",1,"mt-16"],["class","filters-item",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"filters-item",3,"ngClass","click"]],template:function(V,X){1&V&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1),t.\u0275\u0275listener("click",function(){return X.close()}),t.\u0275\u0275elementStart(2,"mat-icon"),t.\u0275\u0275text(3,"close"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(4,"div",2),t.\u0275\u0275element(5,"mat-divider"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",3)(7,"h2"),t.\u0275\u0275text(8),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(9,y,2,1,"div",4),t.\u0275\u0275template(10,D,2,1,"mat-dialog-content",5),t.\u0275\u0275elementEnd()),2&V&&(t.\u0275\u0275advance(8),t.\u0275\u0275textInterpolate(X.data.title||"Alege un mod de sortare"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!X.data.title),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",X.data.title))},dependencies:[l.NgClass,l.NgForOf,l.NgIf,h.xw,s.oO,e.Rb,d.Hw,p.d,u.vy],styles:["mat-dialog-content[_ngcontent-%COMP%]{max-width:unset;margin-right:-16px}@media (max-width: 430px){mat-dialog-content[_ngcontent-%COMP%]{max-width:calc(100vw - 12px)}}"]}),P})()},47716:(oe,x,i)=>{"use strict";i.d(x,{CH:()=>d,UT:()=>p});var e=i(94650),n=i(24006),a=i(54004),t=i(28918),l=i(98311),h=i(12676);let d=(()=>{class v extends n.QS{constructor(b,S){super(),this.userService=b,this.productRequestService=S,this.forms={user:{_fields:{email:{validators:{required:[],email:[],maxLength:[74]}},emailUnique:{extends:"user._fields.email",asyncValidators:{emailExists:[this.userService]}},password:{validators:{required:[],minLength:[4],maxLength:[30]}},passwordConfirm:{extends:"user._fields.password",validators:{match:["password"]}},address:{county:{validators:{required:[]},options:[]},city:{validators:{required:[]},options:[]}}},favorites:{editList:{controls:{name:{validators:{required:[],minLength:[3],maxLength:[50]}},visibility:{validators:{required:[]}}}}},login:{controls:{email:{validators:{required:[],email:[]}},password:{extends:"user._fields.password"},rememberMe:{}}},deleteAccount:{controls:{password:{extends:"user._fields.password"}}},register:{controls:{fullName:{validators:{required:[],minLength:[6],maxLength:[50]}},email:{validators:{required:[],email:[]}},password:{extends:"user._fields.password"},passwordConfirm:{extends:"user._fields.passwordConfirm"},newsletter:{validators:{required:["Trebuie sa alegi una din cele dou\u0103 optiuni"]}},marketing:{validators:{required:["Trebuie sa alegi una din cele dou\u0103 optiuni"]}}}},changePassword:{controls:{email:{extends:"user._fields.email",disabled:!0},currentPassword:{extends:"user._fields.password"},password:{extends:"user._fields.password"},passwordConfirm:{extends:"user._fields.passwordConfirm"}}},recovery:{controls:{email:{extends:"user._fields.email"}}},confirmation:{controls:{newPassword:{extends:"user._fields.password"},confirmPassword:{extends:"user._fields.passwordConfirm",validators:{match:["newPassword"]}}}},contact:{controls:{name:{validators:{required:[],minLength:[4],notOnlyNumbers:[],maxLength:[50]}},email:{extends:"user._fields.email"},message:{validators:{required:[],minLength:[10],maxLength:[256]}},phone:{validators:{required:[],phone:[]}}}},downloadData:{controls:{password:{extends:"user._fields.password"}}},complaint:{controls:{message:{validators:{required:[],maxLength:[256]}},email:{},title:{validators:{maxLength:[50]}}}},account:{controls:{name:{validators:{required:[],minLength:[4],notOnlyNumbers:[],maxLength:[50]}},slug:{validators:{required:[],minLength:[4],pattern:["[a-z0-9-_.]+"]}},custom:{controls:{web:{validators:{minLength:[4],pattern:["(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/?"]}},social:{controls:{facebook:{validators:{minLength:[2],pattern:["(https://(www.)?facebook.com/)?[a-zA-Z0-9./?=+%_-]+"]}}}}}}}}},business:{account:{extends:"user.account",controls:{smsNotifications:{},county:{extends:"user._fields.address.county"},city:{extends:"user._fields.address.city"},address1:{validators:{minLength:[4],scharrep:[],notOnlyNumbers:[],required:[]}},address2:{validators:{minLength:[4],scharrep:[],notOnlyNumbers:[]}},streetNumber:{validators:{required:[],maxLength:[10]}},isUpdatedNewFormat:{value:!1},streetExtraInfo:{validators:{minLength:[3],maxLength:[50]}},phone:{validators:{minLength:[7],phone:[]}},mobile:{validators:{minLength:[7],phone:[]}},iban:{validators:{minLength:[10],iban:[]}},name:{validators:{notOnlyNumbers:[]},required:[],maxLength:[50]},slug:{validators:{slug:[],minLength:[3],required:[]}},cui:{validators:{pattern:["(RO)?([0-9]{1,9})"],required:[]}},cif:{validators:{cif:[],required:[]}},custom:{controls:{type:{validators:{},options:{farmacie:["farmacie"],shop:["shop"]}},bank:{controls:{name:{validators:{minLength:[3],alnum:[],notOnlyNumbers:[],scharrep:[],maxLength:[50]}}}},contact:{controls:{name:{validators:{minLength:[4],notOnlyNumbers:[],maxLength:[50]}}}},about:{controls:{company:{validators:{minLength:[10]}}}},schedule:{controls:{mon:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[],invalidBusinessSchedule:[]}}}},tue:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[],invalidBusinessSchedule:[]}}}},wed:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[],invalidBusinessSchedule:[]}}}},thu:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[],invalidBusinessSchedule:[]}}}},fri:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[],invalidBusinessSchedule:[]}}}},sat:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[],invalidBusinessSchedule:[]}}}},sun:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[],invalidBusinessSchedule:[]}}}},holidays:{value:[],validators:{}}}}}}},transformers:{input:E=>{const D=E.data;return D.custom.about.company&&(D.custom.about.company=D.custom.about.company.replace(/<br>/gi,"\n")),D.minBasketValue&&(D.minBasketValue=D.minBasketValue/100),D},output:E=>(E.custom.about.company=E.custom.about.company?E.custom.about.company.replace(/(\n\n)/gi,"<br>"):"",E.minBasketValue&&(E.minBasketValue=100*E.minBasketValue),E)}},accountInvoiceDetails:{controls:{name:{extends:"business.account.controls.name",validators:{required:[],minLength:[4],notOnlyNumbers:[],maxLength:[50]}},slug:{validators:{minLength:[3],slug:[],required:[]}},county:{extends:"user._fields.address.county",populate:"city"},city:{extends:"user._fields.address.city",validators:{required:[]}},address1:{validators:{minLength:[4],scharrep:[],notOnlyNumbers:[],required:[]}},address2:{validators:{minLength:[4],scharrep:[],notOnlyNumbers:[]}},cui:{validators:{pattern:["(RO)?([0-9]{1,9})"],required:[]}},cif:{validators:{cif:[],required:[]}},businessPickupType:{validators:{required:[]},options:{CLICK_AND_COLLECT:["click and collect"],SHOP_AND_CARRY:["shop and carry"]}},businessType:{validators:{required:[]},options:{PHARMACY:["farmacie"],SHOP:["shop"],MARKET:["market"]}},custom:{controls:{schedule:{controls:{mon:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[]}}}},tue:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[]}}}},wed:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[]}}}},thu:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[]}}}},fri:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[]}}}},sat:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[]}}}},sun:{controls:{open:{validators:{time:[],required:[]}},close:{validators:{time:[],required:[]}}}},holidays:{value:[],validators:{}}}}}}}},profileOptimizerDetails:{extends:"user.account",controls:{county:{validators:{}},city:{validators:{}},iban:{validators:{minLength:[10],iban:[]}},businessPickupType:{validators:{},options:{CLICK_AND_COLLECT:["click and collect"],SHOP_AND_CARRY:["shop and carry"]}},businessType:{validators:{},options:{PHARMACY:["farmacie"],SHOP:["shop"],MARKET:["market"]}},name:{validators:{notOnlyNumbers:[],maxLength:[50]}},address1:{validators:{minLength:[4],scharrep:[],notOnlyNumbers:[]}},address2:{validators:{minLength:[4],scharrep:[],notOnlyNumbers:[]}},phone:{validators:{minLength:[7],phone:[]}},mobile:{validators:{minLength:[7],phone:[]}},slug:{validators:{slug:[],minLength:[3],required:[]}},cui:{validators:{pattern:["(RO)?([0-9]{1,9})"]}},cif:{validators:{cif:[]}},custom:{extends:"business.account.controls.custom"}},transformers:{extends:"business.account.transformers"}},employee:{add:{controls:{name:{validators:{minLength:[4],notOnlyNumbers:[],maxLength:[50]}},slug:null,username:{extends:"user._fields.emailUnique"}}},edit:{controls:{name:{validators:{required:[],minLength:[4],notOnlyNumbers:[],maxLength:[50]}},email:{validators:{required:[],email:[]}},phoneNumber:{validators:{required:[],phone:[]}},shouldSendSMS:{},jobTitleId:{validators:{required:[]}},active:{validators:{required:[]}},photoUrl:{}}}},stock:{controls:{price:{validators:{required:[],price:[],min:[.1]}},stock:{validators:{required:[],numeric:[],min:[0],max:[t.sMA]}},discount:{validators:{numeric:[],min:[0]}},copaymentPercent:{validators:{required:[],positiveFloat:[],min:[0],max:[100]}}}},api:{controls:{name:{validators:{required:[],minLength:[4],maxLength:[80]}},key:{validators:{}}}}},employee:{account:{extends:"user.account",controls:{county:{extends:"user._fields.address.county",populate:"city"},city:{extends:"user._fields.address.city"},address1:{validators:{minLength:[4],scharrep:[],notOnlyNumbers:[]}},address2:{validators:{minLength:[4],scharrep:[],notOnlyNumbers:[]}},name:{validators:{minLength:[4],notOnlyNumbers:[],maxLength:[50]}},phone:{validators:{minLength:[7],phone:[]}},mobile:{validators:{minLength:[7],phone:[]}},custom:{controls:{about:{controls:{me:{validators:{minLength:[10]}}}}}}}}},patient:{account:{extends:"user.account",controls:{name:{validators:{minLength:[4],notOnlyNumbers:[],maxLength:[50]}},cnp:{validators:{cnp:[]}},phone:{validators:{minLength:[7],phone:[]}},custom:{controls:{about:{controls:{me:{validators:{minLength:[10]}}}}}}}},confidentiality:{controls:{newsletter:{value:!0,validators:{}},favoriteProductsAlert:{value:!0,validators:{}},relevantProductsAlert:{value:!0,validators:{}}}},address:{deliveryAddresses:{controls:{type:{validators:{},value:"individual"},name:{validators:{required:[],minLength:[4],notOnlyNumbers:[],maxLength:[50]}},phone:{validators:{required:[],minLength:[10],phone:[]}},county:{validators:{required:[]}},city:{validators:{required:[]}},address:{validators:{required:[],minLength:[2],notOnlyNumbers:[]}},streetNumber:{validators:{required:[],maxLength:[10]}},main_address:{},streetExtraInfo:{},isSetManually:{},isUpdatedNewFormat:{},notes:{validators:{maxLength:[256]}}}},billingAddresses:{extends:"patient.address.deliveryAddresses",controls:{notes:null,bankName:{validators:{minLength:[3],maxLength:[50]}},iban:{validators:{required:[],minLength:[10],iban:[]}},type:{value:"individual"},cui:{validators:{pattern:["(RO)?([0-9]{1,9})"],required:[]}},cif:{validators:{cif:[],required:[]}}}}},uploadMedicalDocument:{controls:{file:{validators:{required:[]}},type:{validators:{required:[]}},description:{}}},cart:{summaryForm:{controls:{terms:{validators:{requiredTrue:["PAGES.PROFILE.CART.SUMMARY.TERMS_ERROR"]}},ageConfirmation:{validators:{}}}},quantity:{controls:{quantity:{validators:{required:["Necesar"],min:[1],numeric:[]}},offer:{validators:{required:[]}},package:{validators:{}}}},email:{controls:{email:{extends:"user._fields.email"}}},password:{controls:{password:{extends:"user._fields.password"},rememberMe:{}}},additional_information:{controls:{documents:{controls:{prescriptions:{validators:{required:["\xcencarc\u0103 poz\u0103 dup\u0103 re\u021beta medical\u0103"]}},ci:{validators:{required:["\xcencarc\u0103 o poz\u0103 dup\u0103 cartea ta de identitate"]}},cs:{validators:{required:["\xcencarc\u0103 o poz\u0103 dup\u0103 cardul t\u0103u de s\u0103n\u0103tate"]}}}},cnp:{validators:{cnp:[]}},birthday:{validators:{}},weight:{validators:{min:[10],max:[500]}},height:{validators:{float:[],min:[.5],max:[3]}},current_treatments:{validators:{}},known_allergens:{validators:{}}}},checkout_register:{controls:{user:{controls:{password:{extends:"user._fields.password"},passwordConfirm:{extends:"user._fields.passwordConfirm"},profile:{controls:{name:{validators:{required:[],minLength:[4],notOnlyNumbers:[],maxLength:[50]}},phone:{validators:{required:[],minLength:[7],phone:[]}}}}}},delivery_address:{extends:"patient.address.delivery",controls:{}},delivery_type:{value:"COURIER",validators:{required:[]}},delivery_open_package:{validators:{}},billing_address:{controls:{same_as_delivery:{value:!0,validators:{}},type:{validators:{}},individual:{extends:"patient.address.delivery",disabled:!0,controls:{}},company:{extends:"patient.address.billing",disabled:!0,controls:{}}}},payment_type:{value:"RAMBURS",validators:{required:[]}},pickup_basket:{validators:{required:["Alege o ofert\u0103 cu ridicare din magazin"]}},documents:{controls:{prescriptions:{validators:{required:["\xcencarc\u0103 poz\u0103 dup\u0103 re\u021beta medical\u0103"]}},ci:{validators:{required:["\xcencarc\u0103 o poz\u0103 dup\u0103 cartea ta de identitate"]}},cs:{validators:{required:["\xcencarc\u0103 o poz\u0103 dup\u0103 cardul t\u0103u de s\u0103n\u0103tate"]}}}},newsletter:{validators:{required:["Alege una din cele dou\u0103 optiuni"]}},marketing:{validators:{required:["Alege una din cele dou\u0103 optiuni"]}},agree_terms:{validators:{required:["Trebuie s\u0103 fii de acord cu termenii \u0219i condi\u021biile noastre pentru a finaliza solicitarea de ofert\u0103"]}},captcha:{validators:{required:["Nu s-a putut determina autenticitatea solicit\u0103rii"],minLength:[2,"Nu s-a putut determina autenticitatea solicit\u0103rii"]}},cnp:{validators:{required:[],cnp:[]}},birthday:{validators:{required:[]}},weight:{validators:{required:[],min:[10],max:[500]}},height:{validators:{numeric:[],required:[],min:[50],max:[300]}},sex:{validators:{required:[]}},current_treatments:{validators:{}},known_allergens:{validators:{}},pregnancy:{validators:{required:[]}},breast_feeding:{validators:{required:[]}},message:{validators:[]}},transformers:{input:E=>{if(E){if(E.billing_address){const D=E.billing_address;E.billing_address={same_as_delivery:E.billing_same_as_delivery||!0,type:D.type,individual:{},company:{}},E.billing_address[D.type]=D}return E.attachments&&(E.documents={prescriptions:[],ci:null,cs:null},E.attachments.forEach(D=>{"prescription"===D.type?E.documents.prescriptions.push(D):E.documents[D.type]=D})),E}return{}}}},checkout_user:{controls:{delivery_address:{controls:{id:{validators:{required:["Alege o adres\u0103 de livrare"]}}}},delivery_type:{value:"COURIER",validators:{required:[]}},delivery_open_package:{validators:{}},billing_address:{controls:{type:{validators:{}},id:{validators:{required:["Alege o adres\u0103 de facturare"]}}}},billing_same_as_delivery:{value:!0,validators:{}},payment_type:{value:"RAMBURS",validators:{required:[]}},pickup_basket:{validators:{required:["Alege o ofert\u0103 cu ridicare din magazin"]}},documents:{controls:{prescriptions:{validators:{required:["\xcencarc\u0103 poz\u0103 dup\u0103 re\u021beta medical\u0103"]}},ci:{validators:{}},cs:{validators:{}}}},cnp:{validators:{cnp:[]}},birthday:{validators:{}},weight:{validators:{min:[10],max:[500]}},height:{validators:{float:[],min:[.5],max:[3]}},sex:{validators:{required:[]}},current_treatments:{validators:{}},known_allergens:{validators:{}},pregnancy:{validators:{required:[]}},breast_feeding:{validators:{required:[]}},message:{validators:[]}},transformers:{input:E=>E?(E.attachments&&(E.documents={prescriptions:[],ci:null,cs:null},E.attachments.forEach(D=>{"prescription"===D.type?E.documents.prescriptions.push(D):E.documents[D.type]=D})),E):{}}}}},product:{_fields:{atc:{validators:{},options:[],optionsGenerator:E=>{E.config.options=this.productRequestService.getCategories().pipe((0,a.U)(D=>{const A=P=>({label:P.name,value:P.categoryId,children:P.children.map(B=>A(B))});return D.map(P=>A(P))}))}},labels:{validators:{},options:{"Not returnable":"Nereturnabil","Child restriction":"Interzis copiilor","Minor restriction":"Interzis minorilor",Bio:"Bio",Vegan:"Vegetarian","Cash only":"Doar numerar",Otc:"F\u0103r\u0103 re\u021bet\u0103",Btc:"Necesit\u0103 re\u021bet\u0103",Rx:"Re\u021bet\u0103 re\u021binut\u0103 \xeen farmacie"}}},request:{controls:{requestId:{validators:{}},commercialName:{validators:{required:[],minLength:[4],notOnlyNumbers:[]}},businessEmail:{validators:{required:[]}},businessName:{validators:{required:[]}},editorEmail:{validators:{}},editorName:{validators:{}},issuing:{options:{PR:"PR",PRF:"PRF",P_RF:"P-RF",P6L:"P6L",P_6L:"P-6L",PL:"PL",PS:"PS",S:"S",P_RF_R:"P-RF/R",P_RF_S:"P-RF/S",S_P_RF:"S/P-RF",P_6L_S:"P-6L/S",OTC_S:"OTC/S",P_TS:"P-TS",PR_PS:"PR, PS",PS_PR:"PS/PR",P6L_P:"P6L P",S_PR_F:"S/PR-F",OTC:"OTC"},validators:{}},category:{validators:{required:[],minLength:[1]},extends:"product._fields.atc"},status:{validators:{}},manufacturer:{validators:{}},productType:{options:{NONPHARMACEUTICAL:"non-farmaceutic",PHARMACEUTICAL:"farmaceutic",SERVICE:"serviciu"},validators:{required:[]}},labels:{validators:{},extends:"product._fields.labels"},description:{validators:{required:[]}},ingredients:{validators:{}},source:{validators:{}},productSlug:{validators:{}},contraindications:{validators:{}},pharmaceuticalForm:{validators:{}},linkRcp:{validators:{}},linkPro:{validators:{}},linkAmb:{validators:{}},undesirable:{validators:{}},dosage:{validators:{}},indications:{validators:{}},packagings:{type:"array",controls:{sgrData:{validators:{},controls:{code:{validators:{}},value:{validators:{positiveFloat:[],min:[.01]}},name:{validators:{}}}},concentration:{validators:{}},businessInternalId:{validators:{maxLength:[30]}},productRequestPackageId:{validators:{}},cim:{validators:{cim:[]}},wrapping:{validators:{required:[],minLength:[4],notOnlyNumbers:[]}},description:{validators:{}},ingredients:{validators:{}},qrbarcode:{validators:{numeric:[]}},specialDelivery:{validators:{}},storingTemperature:{validators:{required:[]},options:{"(-24)\xb0C \u2014  2\xb0C Congelate":"(-24)\xb0C \u2014  2\xb0C Congelate","3\xb0C \u2014 8\xb0C Refrigerate":"3\xb0C \u2014 8\xb0C Refrigerate","9\xb0C \u2014 24\xb0C Standard":"9\xb0C \u2014 24\xb0C Standard","25\xb0C \u2014 60\xb0C Fara restrictii":"25\xb0C \u2014 60\xb0C Fara restrictii","25\xb0C \u2014 100\xb0C Calde/ Fierbinti":"25\xb0C \u2014 100\xb0C Calde/ Fierbinti"}},netWeight:{validators:{},controls:{value:{validators:{positiveFloat:[],notNull:[]}},massUnit:{options:{"":"---",kg:"kG",g:"G",mg:"mG"},validators:{}}}},wrappingVolume:{validators:{},controls:{value:{validators:{positiveFloat:[],notNull:[]}},volumeUnit:{options:{"":"---",m3:"m\xb3",cm3:"cm\xb3",ml:"mL",l:"L"},validators:{}}}},productWeight:{validators:{},controls:{value:{validators:{positiveFloat:[],notNull:[],required:[]}},massUnit:{options:{KG:"KG",G:"G"},validators:{}}}},price:{validators:{price:[],required:[]}},stock:{validators:{numeric:[],required:[]}},images:{validators:{}}}}},transformers:{input:E=>E?(E.packagings.forEach(D=>{D.wrappingVolume=D.wrappingVolumeParts,D.productWeight=D.productWeightParts,D.netWeight=D.netWeightParts,D.price&&(D.price=D.price/100),D.sgrData&&(D.sgrData.value=0===D.sgrData?.value?null:D.sgrData.value/100)}),E):{},output:E=>(E.packagings.forEach(D=>{D.productWeight=D.productWeight?"KG"===D.productWeight.massUnit?1e3*Number(D.productWeight.value):Number(D.productWeight.value):null,D.netWeight=D.netWeight&&D.netWeight.value?[D.netWeight.value,D.netWeight.massUnit].join(""):"",D.wrappingVolume=D.wrappingVolume&&D.wrappingVolume.value?[D.wrappingVolume.value,D.wrappingVolume.volumeUnit].join(""):"",D.price=D.price?100*D.price:"",D.sgrData&&D.sgrData.value&&(D.sgrData.value=100*D.sgrData.value)}),E)}}}}}static getValidators(b){const S={static:[],async:[]};return b.validators&&Object.keys(b.validators).forEach(E=>{S.static.push(v.getValidator(E,b.validators[E]))}),b.asyncValidators&&Object.keys(b.asyncValidators).forEach(E=>{S.async.push(v.getValidator(E,b.asyncValidators[E]))}),S}static getValidator(b,S){switch(b){case"required":return l.A.required(...S);case"requiredTrue":return l.A.requiredTrue(...S);case"minLength":return l.A.minLength(S[0],...S.slice(1));case"trimmedMinLength":return l.A.trimmedMinLength(S[0],...S.slice(1));case"onlyOneStreetNumber":return l.A.onlyOneStreetNumber(S[0]);case"maxLength":return l.A.maxLength(S[0],...S.slice(1));case"min":return l.A.min(S[0],...S.slice(1));case"max":return l.A.max(S[0],...S.slice(1));case"slug":return l.A.slug(...S);case"alpha":return l.A.alpha(...S);case"alphaAndDash":return l.A.alphaAndDash(...S);case"numeric":return l.A.numeric(...S);case"cim":return l.A.cim(...S);case"price":return l.A.price(...S);case"alnum":return l.A.alnum(...S);case"localityName":return l.A.localityName(...S);case"float":return l.A.float(...S);case"positiveFloat":return l.A.positiveFloat(...S);case"notNull":return l.A.notNull(...S);case"pattern":return l.A.pattern(S[0],...S.slice(1));case"match":return l.A.match(S[0],...S.slice(1));case"email":return l.A.email(...S);case"emailOrPhone":return l.A.emailOrPhone(...S);case"emailExists":return l.A.emailExists(S[0],...S.slice(1));case"phone":return l.A.phone(...S);case"internationalPhone":return l.A.internationalPhone();case"iban":return l.A.iban(...S);case"cif":return l.A.cif(...S);case"time":return l.A.time(...S);case"autocomplete":return l.A.autocomplete(...S);case"scharrep":return l.A.scharrep(...S);case"notOnlyNumbers":return l.A.notOnlyNumbers(...S);case"cnp":return l.A.cnp(...S);case"invalidBusinessSchedule":return l.A.invalidBusinessSchedule(S[0])}}build(b,S,E){let D=this._getConfigByPath(b,this.forms);return E&&(D=t.VLR.extend(D,this._parseConfig(E))),new p(D,b,S)}_getConfigByPath(b,S){const E=b.split("."),D=E.shift();return E.length?this._getConfigByPath(E.join("."),S[D]):this._parseConfig(S[D])}_parseConfig(b){let S=t.VLR.extend({},b,!1);return S.extends&&(S=t.VLR.extend(this._getConfigByPath(S.extends,this.forms),S)),S.controls&&Object.keys(S.controls).forEach(E=>{S.controls[E]?S.controls[E]=this._parseConfig(S.controls[E]):delete S.controls[E]}),S}}return v.\u0275fac=function(b){return new(b||v)(e.\u0275\u0275inject(h.O),e.\u0275\u0275inject(t.vio.ProductRequestServiceToken))},v.\u0275prov=e.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac}),v})();class p extends n.nJ{constructor(y,b,S){y.transformers&&y.transformers.input&&(S=y.transformers.input(S));const E={};Object.keys(y.controls).forEach(A=>{const P=S&&S[A]?S[A]:null;E[A]=y.controls[A].controls?y.controls[A].type&&"array"===y.controls[A].type?new u(y.controls[A],A,P):new p(y.controls[A],A,P):new g(y.controls[A],A,P||"")});const D=d.getValidators(y);super(E,D.static,D.async),this.submit$=new e.EventEmitter,!0===y.disabled&&this.disable(),this.name=b,this.config=y,this.__submitted=!1,this.statusChanges.subscribe(()=>{const A={};Object.keys(this.controls).forEach(P=>{this.controls[P].errors&&(A[P]=this.controls[P].errors)}),Object.keys(A).length&&this.setErrors(A,{emitEvent:!1})})}get values(){return this.config&&this.config.transformers&&this.config.transformers.output?this.config.transformers.output(this.value):this.value}get canSubmit(){return this.valid}get isSubmitted(){return this.__submitted}get(y){return super.get(y)}getArray(y){const b=super.get(y);if(!b.config.type||"array"!==b.config.type)throw new Error(`ERROR: "${y}" is not a form array in "${this.name}"`);return b}submit(){this.__submitted=!0,this.validate(),this.__validSub=this.statusChanges.subscribe(()=>{this.valid?(this.submit$.emit(this.values),this.__validSub.unsubscribe()):this.invalid&&(setTimeout(()=>this.__scrollToError(),500),this.__validSub.unsubscribe())}),this.validate()}patchValue(y,b){let S={};return Object.keys(y).forEach(E=>{void 0!==y[E]&&(S[E]=y[E])}),this.config.transformers&&this.config.transformers.input&&(S=this.config.transformers.input(S)),Object.keys(this.config.controls).forEach(E=>{const D=this.config.controls[E];if(D.type&&"array"===D.type){const A=this.getArray(E);if(A.reset(),S[E]&&S[E].constructor===Array){if(A.controls.length<S[E].length){let P=A.controls.length;for(;P++<S[E].length;)A.append(null)}else if(A.controls.length>S[E].length)for(let P=A.controls.length-1;P<=S[E].length-1;P--)A.remove(P)}else A.controls.forEach((P,B)=>{A.removeAt(B)})}}),super.patchValue(S,b)}validate(){Object.keys(this.controls).forEach(y=>{this.controls[y].updateValueAndValidity(),this.controls[y]instanceof p&&this.controls[y].validate(),this.controls[y].valid||this.controls[y].markAsTouched()})}__scrollTo(y){y&&y.scrollIntoView({block:"center",behavior:"smooth"})}__scrollToError(){const y=document.querySelector('.mat-error[role="alert"]');this.__scrollTo(y)}}class u extends n.vC{constructor(y,b,S){const E=d.getValidators(y);y.value&&(S=S||y.value);const D=[];S&&S.constructor===Array&&S.forEach(A=>{D.push(new p(t.VLR.extend(y,{type:null}),b,A))}),super(D,E.static,E.async),this.name=b,this.config=y}append(y){return this.push(new p(t.VLR.extend(this.config,{type:null}),this.name,y))}remove(y){return this.removeAt(y)}}class g extends n.p4{constructor(y,b,S){const E=d.getValidators(y);y.value&&(S=S||y.value),super(S,E.static,E.async),!0===y.disabled&&(this.disable(),this.updateValueAndValidity()),y.value&&this.updateValueAndValidity({emitEvent:!0,onlySelf:!1}),this.name=b,this.config=y,this.config.optionsGenerator&&this.config.optionsGenerator(this),this.config.change&&this.valueChanges.subscribe(D=>{this.config.change(this,D)})}}},98311:(oe,x,i)=>{"use strict";i.d(x,{A:()=>n});var e=i(24006);class n{static required(t="C\xe2mp necesar"){return l=>l.value||0===l.value||!1===l.value?null:{required:t}}static requiredTrue(t="Selectie obligatorie"){return l=>""!==l.value&&!1!==l.value&&null!==l.value?null:{required:t}}static email(t="Adres\u0103 invalid\u0103"){return l=>l.value&&!/^(?!.*\.{2})(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/g.test(l.value.toLocaleLowerCase())?{invalidEmail:t}:null}static emailOrPhone(t="SHARED.FORM.VALIDATORS.EMAIL_OR_PHONE"){return l=>l.value&&!/^(?!.*\.{2})(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])|(?:(\+40)|(?:(?:\+)?(?:\()?(?:0)))(?:\s)?(?:\()?(\d{3})(?:\))?(?:\s)?(\d{3})(?:\s)?(\d{3})$/g.test(l.value.toLocaleLowerCase())?{invalidEmail:t}:null}static minLength(t,l=`Minim ${t} caractere`){return h=>e.kI.minLength(t)(h)?{minLength:l}:null}static maxLength(t,l=`Maxim ${t} caractere`){return h=>e.kI.maxLength(t)(h)?{maxLength:l}:null}static notOnlyLetters(t="Minim o liter\u0103"){return n.pattern(/\d/,t)}static fixedLength(t,l=`ID-ul trebuie s\u0103 fie de ${t} caractere`){return h=>e.kI.compose([e.kI.minLength(t),e.kI.maxLength(t)])(h)?{desiredLength:l}:null}static cnp(t="CNP invalid"){return l=>!l.value||/^[1-8][0-9]{2}(0[1-9]|1[0-2]){1}(0[1-9]|([1-2][0-9]|3[0-1])){1}(0[1-9]|([1-4][0-9]|5[0-2]))[0-9]{4}$/.test(l.value)&&this.cnpCheck(l.value?.toString())?null:{invalidEmail:t}}static cnpCheck(t){if(13===t.length){const l=t.split("").map(s=>Number(s)),h=2*l[0]+7*l[1]+9*l[2]+l[3]+4*l[4]+6*l[5]+3*l[6]+5*l[7]+8*l[8]+2*l[9]+7*l[10]+9*l[11];if(h%11===l[12]||h%11==10&&1===l[12])return!0}return!1}static cim(t="Codul CIM trebuie sa inceapa cu W"){return l=>l.value&&!/^[W].*$/.test(l.value)?{invalidEmail:t}:null}static min(t,l=`Minim ${t}`){return h=>e.kI.min(t)(h)?{min:l}:null}static max(t,l=`Maxim ${t}`){return h=>e.kI.max(t)(h)?{max:l}:null}static maximumCashOnPayment(t,l=`Valoare maxim\u0103 Ramburs: ${t} Lei`){return h=>e.kI.max(t)(h)?{max:l}:null}static pattern(t,l="Format invalid"){return h=>e.kI.pattern(t)(h)?{pattern:l}:null}static numeric(t="Doar cifre"){return n.pattern(/^[-]{0,1}[0-9]+$/,t)}static price(t="Pre\u021b invalid"){const l=/^\d*(\.\d+)?$/;return h=>"0"!==h?.value?.toString()&&h?.value&&(h?.value?.toString().startsWith("0")&&!h?.value?.toString().startsWith("0.")||!h?.value?.toString().match(l))?{pattern:t}:null}static alpha(t="Doar litere"){return n.pattern(/^[a-zA-Z\u00C0-\u024F ]+$/u,t)}static alphaAndDash(t="Doar litere \u0219i cratim\u0103"){return n.pattern(/^[a-zA-Z-\u00C0-\u024F ]+$/u,t)}static localityName(t="Numele localit\u0103\u021bii are un format invalid"){return n.pattern(/^(\d*[ ]*[a-zA-Z-\u00C0-\u024F]+[ ]*[a-zA-Z-\u00C0-\u024F]*[ ]*\d*[ ]*)+$/u,t)}static slug(t="Doar litere, cifre  \u0219i cratim\u0103"){return n.pattern(/^[a-zA-Z0-9-]+$/u,t)}static alnum(t="Doar litere, cifre, spa\u021biu \u0219i cratim\u0103"){return n.pattern(/^[a-zA-Z\u00C0-\u024F 0-9-]+$/u,t)}static phone(t="Telefon invalid"){return n.pattern(/^(\+4|)?(07[0-9]{1}[0-9]{1}|02[0-9]{2}|03[0-9]{2}){1}?([0-9]{3}){2}$/,t)}static internationalPhone(){return t=>{if(!t.value?.length)return null;if(/[a-zA-Z]/.test(t.value))return{phone:"Num\u0103rul de telefon nu poate con\u021bine litere"};const h=t.value.trim().replace(/[^+\d]/g,(s,d)=>0===d&&"+"===s?"+":"").length;return h<10?{phone:"Formatul num\u0103rului este incorect sau con\u021bine mai pu\u021bin de 10 cifre"}:h>14?{phone:"Formatul num\u0103rului este incorect sau con\u021bine mai mult de 14 cifre"}:null}}static float(t="Doar cifre \u0219i punct"){return n.pattern(/^\-?\d+((\.|\,)\d+)?$/,t)}static positiveFloat(t="Doar numere pozitive formate din cifre \u0219i punct"){return n.pattern(/^\d+((\.|\,)\d+)?$/,t)}static notNull(t="Num\u0103rul introdus nu poate fi 0 sau negativ"){return n.pattern(/^(?!0*([\.|\,]0+)?$)(\d+|\d*[\.|\,]\d+)$/,t)}static time(t="Ora introdus\u0103 este invalid\u0103 (hh:mm)"){return n.pattern(/^(-|((2[0-3]|[01][0-9]):([0-5]{1}[0-9]{1})+))$/,t)}static scharrep(t="Caratere speciale repetate"){return n.pattern(/^(?!.*[!@#$%^&*()\-_+={}[\]|\\;:'",<.>\/?]{2}).+$/,t)}static notOnlyNumbers(t="Minim o liter\u0103"){return n.pattern(/([0-9].*[a-zA-Z])|([a-zA-Z])/,t)}static cif(t="Format invalid"){return l=>{if(!l.value)return null;if(3!==l.value.split("/").length)return{pattern:t};const d=l.value?.toString().trim().lastIndexOf("/"),[p,u]=[l.value?.toString().slice(0,d),l.value?.toString()?.slice(d+1)];return isNaN(u)||u<1990||u>(new Date).getFullYear()?{pattern:t}:new RegExp("^([J|F|C])([0][1-9]|[1-3][0-9]|[4][0]|[5][1-2])/([0-9]{1,9})$").test(p)?null:{pattern:t}}}static barcode(t,l,h=`Codul de bare trebuie s\u0103 con\u021bin\u0103 \xeentre ${t} \u0219i ${l} caractere`){return s=>e.kI.compose([e.kI.minLength(t),e.kI.maxLength(l)])(s)?{desiredLength:h}:null}static iban(t="IBAN invalid"){return l=>{if(!l.value)return null;const s=String(l.value).toUpperCase().replace(/[^A-Z0-9]/g,""),d=s.match(/^([A-Z]{2})(\d{2})([A-Z\d]+)$/);if(!d||s.length!=={AD:24,AE:23,AT:20,AZ:28,BA:20,BE:16,BG:22,BH:22,BR:29,CH:21,CR:21,CY:28,CZ:24,DE:22,DK:18,DO:28,EE:20,ES:24,FI:18,FO:18,FR:27,GB:22,GI:23,GL:18,GR:27,GT:28,HR:21,HU:28,IE:22,IL:23,IS:26,IT:27,JO:30,KW:30,KZ:20,LB:28,LI:21,LT:20,LU:20,LV:21,MC:27,MD:24,ME:22,MK:19,MR:27,MT:31,MU:30,NL:18,NO:15,PK:24,PL:28,PS:29,PT:25,QA:29,RO:24,RS:22,SA:24,SE:24,SI:19,SK:24,SM:27,TN:24,TR:26}[d[1]])return{iban:t};const p=(d[3]+d[1]+d[2]).replace(/[A-Z]/g,g=>(g.charCodeAt(0)-55).toString());let u=p.slice(0,2);for(let g=2;g<p.length;g+=7)u=(parseInt(u+p.substring(g,g+7),10)%97).toString();return u?null:{iban:t}}}static emailExists(t,l="Aceast\u0103 adres\u0103 de email este deja folosit\u0103"){return h=>t.exists(h.value).map(s=>s?{emailExists:l}:null)}static match(t,l="Parolele nu corespund"){return h=>{if(h.parent){const s=h.parent.get(t);return h.value!==s.value?{match:l}:null}return null}}static autocomplete(t="Op\u021biune indisponibil\u0103"){return l=>{if(!l.config||!l.value)return null;const h=l.value.toLowerCase().trim();return h.length?(!l.config._options&&l.config.options.length&&(l.config._options=l.config.options),l.config._options&&(l.config.options=l.config._options.filter(s=>s.toLowerCase().startsWith(h))),l.config.options.filter(s=>s.toLowerCase()===h).length?null:{autocomplete:t}):null}}static invalidBusinessSchedule(t="Ora de \xeenchidere nu poate fi mai mic\u0103 dec\xe2t ora de deschidere"){return h=>{if(h.parent){const s=h.parent.get("open"),d=+s.value.split(":")[0],p=+s.value.split(":")[1],u=+h.value.split(":")[0],g=+h.value.split(":")[1];return u<d||g<p&&u<=d?{match:t}:null}return null}}static trimmedMinLength(t,l=`Minim ${t} caractere`){return h=>{if(h.value)return h.value.trim().length<t?{minLength:l}:null}}static onlyOneStreetNumber(t="Formatul num\u0103rului adresei este incorect"){return n.pattern(/^\d+[a-zA-Z]?$/,t)}}},57268:(oe,x,i)=>{"use strict";i.d(x,{w:()=>n});var e=i(94650);let n=(()=>{class a{}return a.\u0275fac=function(l){return new(l||a)},a.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-confidentiality-policy-text"]],inputs:{html:"html"},decls:1,vars:1,consts:[[1,"privacy-wrapper",3,"innerHTML"]],template:function(l,h){1&l&&e.\u0275\u0275element(0,"div",0),2&l&&e.\u0275\u0275property("innerHTML",h.html,e.\u0275\u0275sanitizeHtml)}}),a})()},31829:(oe,x,i)=>{"use strict";i.d(x,{n:()=>u});var e=i(9116),n=i(95698),a=i(28918),t=i(77044),l=i(55738),h=i(94650),s=i(11481);class u{constructor(v,y,b,S){this.router=v,this.activatedRoute=y,this.sanitizer=b,this.documentService=S}ngOnInit(){this.activatedRoute.queryParams.subscribe(v=>{this.isBusiness="true"===v?.isBusiness,this.getTCDocument()}),this.aboutPage=this.router.url===a.ZOI,this.router.events.pipe((0,n.q)(1)).subscribe(v=>{v instanceof e.OD&&(this.aboutPage=this.router.url===a.ZOI)}),this.activatedRoute.fragment.value&&setTimeout(()=>{const v=document.getElementById("idImputernicire");v&&window.scrollTo({top:v.getBoundingClientRect().top+window.pageYOffset-500,behavior:"smooth"})},500)}getTCDocument(){this.documentService.getDocument(this.user?.isBusiness()||this.isBusiness?a.n_u.BUSINESS_TERMS:a.n_u.PATIENT_TERMS).pipe((0,n.q)(1)).subscribe(v=>this.html=this.sanitizer.bypassSecurityTrustHtml(v))}}u.\u0275fac=function(v){return new(v||u)(h.\u0275\u0275directiveInject(e.F0),h.\u0275\u0275directiveInject(e.gz),h.\u0275\u0275directiveInject(s.DomSanitizer),h.\u0275\u0275directiveInject(a.vio.DocumentService))},u.\u0275cmp=h.\u0275\u0275defineComponent({type:u,selectors:[["app-tos"]],decls:1,vars:1,consts:[[1,"terms-of-service-wrapper",3,"innerHTML"]],template:function(v,y){1&v&&h.\u0275\u0275element(0,"div",0),2&v&&h.\u0275\u0275property("innerHTML",y.html,h.\u0275\u0275sanitizeHtml)},styles:[".container[_ngcontent-%COMP%]{font-size:14px}.container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px}.section[_ngcontent-%COMP%]{margin-bottom:16px;text-align:justify}.section.initial[_ngcontent-%COMP%]{text-indent:40px}.section[_ngcontent-%COMP%]   .section-heading[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin:16px 0}.section[_ngcontent-%COMP%]   .heading2[_ngcontent-%COMP%]{text-indent:40px;margin:16px 0}ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-left:14px!important}"]}),function(g,v,y,b){var D,S=arguments.length,E=S<3?v:null===b?b=Object.getOwnPropertyDescriptor(v,y):b;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(g,v,y,b);else for(var A=g.length-1;A>=0;A--)(D=g[A])&&(E=(S<3?D(E):S>3?D(v,y,E):D(v,y))||E);S>3&&E&&Object.defineProperty(v,y,E)}([(0,t.I)(),function(g,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",v)}(0,l.n)],u.prototype,"user",void 0)},13899:(oe,x,i)=>{"use strict";i.d(x,{G:()=>s});var e=i(94650),n=i(36895),a=i(41341),t=i(3611);function l(d,p){1&d&&e.\u0275\u0275element(0,"agm-map-type-control")}function h(d,p){if(1&d){const u=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"agm-map",4),e.\u0275\u0275listener("mapReady",function(v){e.\u0275\u0275restoreView(u);const y=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(y.mapReady(v))})("centerChange",function(v){e.\u0275\u0275restoreView(u);const y=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(y.centerChanged(v))}),e.\u0275\u0275template(1,l,1,0,"agm-map-type-control",5),e.\u0275\u0275elementEnd()}if(2&d){const u=e.\u0275\u0275nextContext();e.\u0275\u0275property("latitude",null==u.locationCoordinates?null:u.locationCoordinates.lat)("longitude",null==u.locationCoordinates?null:u.locationCoordinates.lng)("restriction",u.restrictMapToBounds())("mapDraggable",!u.shouldDisableDrag)("disableDefaultUI",!0)("keyboardShortcuts",!u.shouldDisableKeyboardShortcuts)("clickableIcons",!1)("zoom",16)("maxZoom",18)("minZoom",10),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",u.enableSatelliteView)}}let s=(()=>{class d{constructor(u){this.detectorRef=u,this.shouldDisableDrag=!1,this.shouldDisableKeyboardShortcuts=!1,this.enableSatelliteView=!1,this.setCoordinates=new e.EventEmitter,this.shouldLoadMap=!1}ngOnInit(){this.initializeLocation()}ngAfterContentInit(){setTimeout(()=>{this.shouldLoadMap=!0,this.detectorRef.detectChanges()},50)}ngOnChanges(u){u.locationCoordinates&&u.locationCoordinates.currentValue!==this.locationCoordinates&&this.initializeLocation()}initializeLocation(){this.locationCoordinates&&(this.centerCoordinates=JSON.parse(JSON.stringify(this.locationCoordinates)),this.previousCoordinates=JSON.parse(JSON.stringify(this.locationCoordinates)),this.initialCoordinate=JSON.parse(JSON.stringify(this.locationCoordinates)))}mapReady(u){this.onMapDragStart(u),this.onMapDragEnd(u),this.onMapZoom(u)}onMapDragStart(u){u.addListener("dragstart",()=>{const g=document.getElementsByName("focus-out");for(let v=0;v<g.length;v++)g[v].blur()})}onMapDragEnd(u){u.addListener("dragend",()=>{u.getBounds().contains({lat:this.centerCoordinates.lat,lng:this.centerCoordinates.lng})&&(this.locationCoordinates={lat:this.centerCoordinates.lat,lng:this.centerCoordinates.lng},this.previousCoordinates={lat:this.locationCoordinates.lat,lng:this.locationCoordinates.lng},this.setCoordinates.emit(this.locationCoordinates))})}onMapZoom(u){u.addListener("zoom_changed",()=>{this.locationCoordinates=this.previousCoordinates,u.panTo(this.locationCoordinates),u.setCenter(this.locationCoordinates)})}centerChanged(u){this.centerCoordinates.lat=u.lat,this.centerCoordinates.lng=u.lng}restrictMapToBounds(){if(!this.limitationDistance)return;const g=200+this.limitationDistance,y=Math.PI,b=Math.cos,S=1/(2*y/360*6378.137)/1e3;return{latLngBounds:{east:this.initialCoordinate.lng+g*S/b(this.initialCoordinate.lng*(y/180)),west:this.initialCoordinate.lng-g*S/b(this.initialCoordinate.lng*(y/180)),south:this.initialCoordinate.lat-g*S,north:this.initialCoordinate.lat+g*S}}}}return d.\u0275fac=function(u){return new(u||d)(e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},d.\u0275cmp=e.\u0275\u0275defineComponent({type:d,selectors:[["app-map"]],inputs:{shouldDisableDrag:"shouldDisableDrag",shouldDisableKeyboardShortcuts:"shouldDisableKeyboardShortcuts",locationCoordinates:"locationCoordinates",limitationDistance:"limitationDistance",enableSatelliteView:"enableSatelliteView"},outputs:{setCoordinates:"setCoordinates"},features:[e.\u0275\u0275NgOnChangesFeature],decls:4,vars:1,consts:[[1,"map-container"],[3,"latitude","longitude","restriction","mapDraggable","disableDefaultUI","keyboardShortcuts","clickableIcons","zoom","maxZoom","minZoom","mapReady","centerChange",4,"ngIf"],[1,"map-center-overlay"],["src","/assets/images/others/pin-outline.svg","alt","map marker","width","50","height","50"],[3,"latitude","longitude","restriction","mapDraggable","disableDefaultUI","keyboardShortcuts","clickableIcons","zoom","maxZoom","minZoom","mapReady","centerChange"],[4,"ngIf"]],template:function(u,g){1&u&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,h,2,11,"agm-map",1),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275element(3,"img",3),e.\u0275\u0275elementEnd()()),2&u&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",g.shouldLoadMap))},dependencies:[n.NgIf,a.SA,a.zF,t.b],styles:[".sebm-google-map-container[_ngcontent-%COMP%]{height:175px;width:100%}ul.schedule[_ngcontent-%COMP%]{list-style-type:none}.map-container[_ngcontent-%COMP%]{position:relative;height:inherit;overflow:hidden!important}.map-container[_ngcontent-%COMP%]   agm-map[_ngcontent-%COMP%]{height:100%;width:100%;display:inline-flex}.map-container[_ngcontent-%COMP%]   .map-center-overlay[_ngcontent-%COMP%]{height:50px;pointer-events:none;position:absolute;bottom:0;left:50%;margin-left:-25px;top:50%;margin-top:-50px}@media (min-width: 960px){.map-container[_ngcontent-%COMP%]{height:inherit;width:inherit}}"]}),d})()},92615:(oe,x,i)=>{"use strict";i.d(x,{C:()=>s});var e=i(28555),n=(()=>{return(d=n||(n={})).SetNavigationListingPage="[Cart Navigation] Set last navigated listing page",d.NavigateToPreviousListingPage="[Cart Navigation] Navigate To Previous Listing Page",d.SetNavigationListingPageSuccess="[Cart Navigation] Set last navigated listing page - Success",d.SetNavigationListingPageFail="[Cart Navigation] Set last navigated listing page - Fail",n;var d})();const s={setNavigationListingPage:(0,e.PH)(n.SetNavigationListingPage,(0,e.Ky)()),navigateToPreviousListingPage:(0,e.PH)(n.NavigateToPreviousListingPage),setNavigationListingPageSuccess:(0,e.PH)(n.SetNavigationListingPageSuccess,(0,e.Ky)()),setNavigationListingPageFail:(0,e.PH)(n.SetNavigationListingPageFail,(0,e.Ky)())}},73279:(oe,x,i)=>{"use strict";i.d(x,{N:()=>u});var e=i(28555),n=(()=>{return(g=n||(n={})).LoadPreview="[Favorites] Load Preview",g.ClearPreview="[Favorites] Clear Preview",g.LoadPreviewSuccess="[Favorites API] Load Preview Success",g.LoadPreviewFailure="[Favorites API] Load Preview Failure",g.UpdateTotalElementsSuccess="[Favorites API] Update Total Elements Success",g.DeletePreviewProductIfExistsSuccess="[Favorites API] Delete Preview Product If Exists Success",g.AddPreviewProductSuccess="[Favorites API] Add Preview Product Success",n;var g})();const a=(0,e.PH)(n.LoadPreview),t=(0,e.PH)(n.ClearPreview),l=(0,e.PH)(n.LoadPreviewSuccess,(0,e.Ky)()),h=(0,e.PH)(n.LoadPreviewFailure),s=(0,e.PH)(n.DeletePreviewProductIfExistsSuccess,(0,e.Ky)()),u={loadPreview:a,loadPreviewSuccess:l,loadPreviewFailure:h,clearPreview:t,updateTotalElementsSuccess:(0,e.PH)(n.UpdateTotalElementsSuccess,(0,e.Ky)()),deletePreviewProductIfExistsSuccess:s,addPreviewProductSuccess:(0,e.PH)(n.AddPreviewProductSuccess,(0,e.Ky)())}},37097:(oe,x,i)=>{"use strict";i.d(x,{Q0:()=>s,hj:()=>t});var e=i(28555),n=i(64629),a=i(73279);const t=(0,n.H)({}),l=t.getInitialState({totalElements:0,previewLoaded:!1}),h=(0,e.Lq)(l,(0,e.on)(a.N.loadPreviewSuccess,(d,p)=>t.setAll(p.favoriteListProducts,{...d,previewLoaded:!0})),(0,e.on)(a.N.updateTotalElementsSuccess,(d,p)=>({...d,totalElements:p.totalElements})),(0,e.on)(a.N.addPreviewProductSuccess,(d,p)=>{const u=Object.keys(d.entities)?.find(g=>d.entities[g].productSlug===p.product.productSlug);return u&&p.list?(d.entities[u].inLists.push(p.list),d):d.totalElements<20?t.addOne(p.product,{...d,totalElements:d.totalElements+1}):d}),(0,e.on)(a.N.deletePreviewProductIfExistsSuccess,(d,p)=>{const u=Object.keys(d.entities)?.find(g=>d.entities[g].slug===p.productSlug);return u?t.removeOne(u,{...d,totalElements:d.totalElements-1}):d}),(0,e.on)(a.N.clearPreview,d=>t.removeAll({...d,previewLoaded:!1,totalElements:0})));function s(d,p){return h(d,p)}},78165:(oe,x,i)=>{"use strict";i.d(x,{Xo:()=>g});var e=i(28555),n=i(75452),a=i(37097);const{selectAll:t}=a.hj.getSelectors(),h=(0,e.ZF)(n.K),s=(0,e.P1)(h,v=>v.preview),g={getPreviewProducts:(0,e.P1)(s,t),getTotalElements:(0,e.P1)(h,v=>v.preview.totalElements),isPreviewLoaded:(0,e.P1)(h,v=>v.preview.previewLoaded)}},61700:(oe,x,i)=>{"use strict";i.d(x,{r:()=>l});var e=i(61135),n=i(28918),a=i(94650),t=i(84659);let l=(()=>{class h{constructor(d){this.sidenavService=d,this.sidenavTypeSubject=new e.X("filter")}get sidenavType$(){return this.sidenavTypeSubject.asObservable()}checkDisplayedSidenav(){this.sidenavCurrentType===n.YPs.CART?this.changeDisplayedSidenav(n.YPs.CART):this.sidenavCurrentType===n.YPs.WISHLIST&&this.changeDisplayedSidenav(n.YPs.WISHLIST)}changeDisplayedSidenav(d){this.sidenavCurrentType=d,this.sidenavTypeSubject.next(d),this.sidenavCurrentType!==n.YPs.FILTER&&this.sidenavService.open()}close(){this.sidenavService.close()}}return h.\u0275fac=function(d){return new(d||h)(a.\u0275\u0275inject(t.B))},h.\u0275prov=a.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac}),h})()},3611:(oe,x,i)=>{"use strict";i.d(x,{b:()=>n});var e=i(94650);let n=(()=>{class a{constructor(){this.defaultImg="assets/images/products/default/no-img-medium.jpg"}onError(){return this.src=this.defaultImg,this.defaultImg}checkPath(l){return l||this.defaultImg}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275dir=e.\u0275\u0275defineDirective({type:a,selectors:[["img","src",""]],hostVars:1,hostBindings:function(l,h){1&l&&e.\u0275\u0275listener("error",function(){return h.onError()})("checkPath",function(){return h.checkPath()}),2&l&&e.\u0275\u0275hostProperty("src",h.src,e.\u0275\u0275sanitizeUrl)},inputs:{src:"src"}}),a})()},30931:(oe,x,i)=>{"use strict";i.d(x,{U:()=>y});var e=i(94650),n=i(28918),a=i(43437),t=i(36895),l=i(1576),h=i(55829),s=i(99818),d=i(89383);const p=function(b){return{"button-enabled-color":b}},u=function(b){return{"quantity--error":b}},g=function(b){return{value:b}};let v=(()=>{class b{constructor(){this.quantity=1,this.maxQuantityLimit=0,this.isLoadingChangeQuantity=!1,this.isSubtractionDisabled=!1,this.isAdditionDisabled=!1,this.changedQuantity=new e.EventEmitter,this.exceededLimit=new e.EventEmitter,this.oneItem=a.G,this.buttonType=n.L$3,this.iconPosition=n.ggF,this.buttonColors=n.B6Y}get isAdditionButtonDisabled(){return this.maxQuantityLimit>0&&!this.isSubtractionDisabled?this.quantity>=this.maxQuantityLimit:this.isAdditionDisabled}subtract(){this.quantity<=a.G||(this.quantity=this.quantity-a.G,this.changedQuantity.emit(this.quantity))}add(){if(this.maxQuantityLimit&&this.quantity===this.maxQuantityLimit)return this.exceededLimit.emit(!0);this.quantity=this.quantity+a.G,this.changedQuantity.emit(this.quantity)}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275cmp=e.\u0275\u0275defineComponent({type:b,selectors:[["drc-quantity-change-presentation"]],inputs:{quantity:"quantity",maxQuantityLimit:"maxQuantityLimit",isLoadingChangeQuantity:"isLoadingChangeQuantity",isSubtractionDisabled:"isSubtractionDisabled",isAdditionDisabled:"isAdditionDisabled"},outputs:{changedQuantity:"changedQuantity",exceededLimit:"exceededLimit"},decls:12,vars:17,consts:[["fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","row","fxLayoutAlign","space-between center",1,"buttons-wrapper"],["type","button","mat-icon-button","",1,"quantity-button",3,"disabled","click"],[1,"material-icons","icon",3,"ngClass"],["fxLayout","column","fxLayoutAlign","center center",1,"quantity","text-center"],[3,"ngClass"],["type","button","mat-icon-button","",3,"disabled","click"]],template:function(E,D){1&E&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"button",2),e.\u0275\u0275listener("click",function(){return D.subtract()}),e.\u0275\u0275elementStart(3,"i",3),e.\u0275\u0275text(4,"remove_circle"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",4)(6,"span",5),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"button",6),e.\u0275\u0275listener("click",function(){return D.add()}),e.\u0275\u0275elementStart(10,"i",3),e.\u0275\u0275text(11," add_circle "),e.\u0275\u0275elementEnd()()()()),2&E&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",D.isSubtractionDisabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(9,p,D.quantity>D.oneItem)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,u,!D.quantity)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",D.quantity?e.\u0275\u0275pipeBind2(8,6,"SHARED.PRODUCT.CONTROLS.QUANTITY",e.\u0275\u0275pureFunction1(13,g,D.quantity)):0," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",D.isAdditionDisabled),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(15,p,!D.isAdditionButtonDisabled)))},dependencies:[t.NgClass,l.xw,l.Wh,h.oO,s.eB,d.X$],styles:[".quantity-button[_ngcontent-%COMP%]{margin-right:0!important}.quantity[_ngcontent-%COMP%]{font-weight:900;font-size:15px;width:55px;line-height:1em}.quantity--error[_ngcontent-%COMP%]{color:red;opacity:.6}.quantity--empty[_ngcontent-%COMP%]{width:135px}button[_ngcontent-%COMP%]{min-width:32px}.material-icons[_ngcontent-%COMP%]{margin-left:-3px}.button-enabled-color[_ngcontent-%COMP%]{color:#00853b}i[_ngcontent-%COMP%]:not(.button-enabled-color){color:#cacaca}.icon[_ngcontent-%COMP%]{font-size:36px}button[_ngcontent-%COMP%]:hover   .icon.button-enabled-color[_ngcontent-%COMP%]{color:#007534}"]}),b})(),y=(()=>{class b{constructor(E){this.snackBarService=E,this.quantity=1,this.maxQuantityLimit=0,this.isLoadingChangeQuantity=!1,this.isSubtractionDisabled=!1,this.isAdditionDisabled=!1,this.changedQuantity=new e.EventEmitter}changeQuantity(E){this.changedQuantity.emit(E)}displayLimitationError(E){E&&this.snackBarService.displayMessage(n.CsS.ERROR,"SHARED.MISC.QUANTITY_CHANGE.MAXIMUM_LIMIT_EXCEEDED",{value:this.maxQuantityLimit})}}return b.\u0275fac=function(E){return new(E||b)(e.\u0275\u0275directiveInject(n.vio.SnackbarMessageServiceToken))},b.\u0275cmp=e.\u0275\u0275defineComponent({type:b,selectors:[["drc-quantity-change"]],inputs:{quantity:"quantity",maxQuantityLimit:"maxQuantityLimit",isLoadingChangeQuantity:"isLoadingChangeQuantity",isSubtractionDisabled:"isSubtractionDisabled",isAdditionDisabled:"isAdditionDisabled"},outputs:{changedQuantity:"changedQuantity"},decls:1,vars:4,consts:[[3,"quantity","isSubtractionDisabled","maxQuantityLimit","isAdditionDisabled","changedQuantity","exceededLimit"]],template:function(E,D){1&E&&(e.\u0275\u0275elementStart(0,"drc-quantity-change-presentation",0),e.\u0275\u0275listener("changedQuantity",function(P){return D.changeQuantity(P)})("exceededLimit",function(P){return D.displayLimitationError(P)}),e.\u0275\u0275elementEnd()),2&E&&e.\u0275\u0275property("quantity",D.quantity)("isSubtractionDisabled",D.isSubtractionDisabled)("maxQuantityLimit",D.maxQuantityLimit)("isAdditionDisabled",D.isAdditionDisabled)},dependencies:[v]}),b})()},43437:(oe,x,i)=>{"use strict";i.d(x,{G:()=>a,y:()=>t});var e=i(94650),n=i(28918);const a=1;let t=(()=>{class l{constructor(s){this.snackBarService=s,this.isLoadingChangeQuantity=!1,this.changedQuantity=new e.EventEmitter}changeQuantity(s){if(s<=this.stock){const d=parseInt(s,10);this.changedQuantity.emit(d)}else this.snackBarService.displayMessage(n.CsS.ERROR,"SHARED.MISC.QUANTITY_SELECTOR.INSUFFICIENT_STOCK")}}return l.\u0275fac=function(s){return new(s||l)(e.\u0275\u0275directiveInject(n.vio.SnackbarMessageServiceToken))},l.\u0275cmp=e.\u0275\u0275defineComponent({type:l,selectors:[["app-quantity-selector"]],inputs:{initialQuantity:"initialQuantity",isLoadingChangeQuantity:"isLoadingChangeQuantity",quantity:"quantity",stock:"stock",shouldDisableButtons:"shouldDisableButtons",shouldDisableAddButton:"shouldDisableAddButton"},outputs:{changedQuantity:"changedQuantity"},decls:1,vars:6,consts:[[3,"initialQuantity","quantity","stock","shouldDisableButtons","shouldDisableAddButton","isLoadingChangeQuantity","changedQuantity"]],template:function(s,d){1&s&&(e.\u0275\u0275elementStart(0,"app-quantity-selector-presentation",0),e.\u0275\u0275listener("changedQuantity",function(u){return d.changeQuantity(u)}),e.\u0275\u0275elementEnd()),2&s&&e.\u0275\u0275property("initialQuantity",d.initialQuantity)("quantity",d.quantity)("stock",d.stock)("shouldDisableButtons",d.shouldDisableButtons)("shouldDisableAddButton",d.shouldDisableAddButton)("isLoadingChangeQuantity",d.isLoadingChangeQuantity)}}),l})()},97600:(oe,x,i)=>{"use strict";i.d(x,{x:()=>d});var e=i(94650),n=i(28918),a=i(36895),t=i(1576),l=i(55829);function h(p,u){if(1&p){const g=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",4)(1,"i",5),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(g);const y=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(y.leftIconClick())}),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()}if(2&p){const g=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("interactable",g.isLeftIconInteractable),e.\u0275\u0275property("ngClass","icon__"+g.theme),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",g.leftIcon," ")}}function s(p,u){if(1&p){const g=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",6)(1,"i",7),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(g);const y=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(y.rightIconClick())}),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()}if(2&p){const g=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("interactable",g.isRightIconInteractable),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",g.rightIcon," ")}}let d=(()=>{class p{constructor(){this.theme=n.Q2A.PRIMARY,this.isDisabled=!1,this.isLeftIconInteractable=!0,this.isRightIconInteractable=!0,this.leftClickEvent=new e.EventEmitter,this.rightClickEvent=new e.EventEmitter}leftIconClick(){this.isLeftIconInteractable&&this.leftClickEvent.emit()}rightIconClick(){this.isRightIconInteractable&&this.rightClickEvent.emit()}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275cmp=e.\u0275\u0275defineComponent({type:p,selectors:[["drc-selected-address"]],inputs:{displayedAddress:"displayedAddress",rightIcon:"rightIcon",leftIcon:"leftIcon",theme:"theme",isDisabled:"isDisabled",isLeftIconInteractable:"isLeftIconInteractable",isRightIconInteractable:"isRightIconInteractable"},outputs:{leftClickEvent:"leftClickEvent",rightClickEvent:"rightClickEvent"},decls:5,vars:6,consts:[[1,"address","rounded",3,"ngClass"],["fxLayoutAlign","start start",4,"ngIf"],[1,"address__text"],["fxLayoutAlign","end start",4,"ngIf"],["fxLayoutAlign","start start"],["fxLayoutAlign","center center",1,"material-icons","address__left-icon","mt-16",3,"ngClass","click"],["fxLayoutAlign","end start"],["fxLayoutAlign","center center",1,"material-icons","address__right-icon","mt-16",3,"click"]],template:function(g,v){1&g&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,h,3,4,"div",1),e.\u0275\u0275elementStart(2,"b",2),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,s,3,3,"div",3),e.\u0275\u0275elementEnd()),2&g&&(e.\u0275\u0275classProp("disabled",v.isDisabled),e.\u0275\u0275property("ngClass","address__"+v.theme),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",v.leftIcon),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(v.displayedAddress),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",v.rightIcon))},dependencies:[a.NgClass,a.NgIf,t.Wh,l.oO],styles:[".address[_ngcontent-%COMP%]{border-radius:8px;display:flex}.address[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:18px;-webkit-user-select:none;user-select:none}.address[_ngcontent-%COMP%]   .interactable[_ngcontent-%COMP%]{cursor:pointer}.address__text[_ngcontent-%COMP%]{font-size:14px;flex-grow:1;margin:16px 4px;word-break:break-all;line-height:22px}.address__left-icon[_ngcontent-%COMP%]{margin-left:16px;width:20px;height:20px}.address__right-icon[_ngcontent-%COMP%]{margin-right:16px;color:#7b7b7b;width:22px;height:22px}.address__primary[_ngcontent-%COMP%]{background-color:#edeff2}.address__primary[_ngcontent-%COMP%]:hover{background-color:#e1e3e6}.address__warning[_ngcontent-%COMP%]{background-color:#ffe9d1}.address__warning[_ngcontent-%COMP%]:hover{background-color:#ffe1c0}.address__error[_ngcontent-%COMP%]{background-color:#ffdbdb}.address__error[_ngcontent-%COMP%]:hover{background-color:#fdd2d2}.address[_ngcontent-%COMP%]   .icon__primary[_ngcontent-%COMP%]{color:#00853b}.address[_ngcontent-%COMP%]   .icon__warning[_ngcontent-%COMP%]{color:#ff834c}.address[_ngcontent-%COMP%]   .icon__error[_ngcontent-%COMP%]{color:#ff3a3a}.disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}"],changeDetection:0}),p})()},28607:(oe,x,i)=>{"use strict";i.d(x,{h:()=>D});var e=i(35559),n=i(95698),a=i(28918),t=i(77368),l=i(84423),h=i(94650),s=i(9116),d=i(36895),p=i(1576),u=i(55829),g=i(99818),v=i(44850),y=i(3611),b=i(89383);const S=function(A){return{"border-radius-50":A}},E=function(A){return{value:A}};let D=(()=>{class A{constructor(B,V,X,re,Q){this.dialogRef=B,this.dialog=V,this.userLocationService=X,this.router=re,this.data=Q,this.breakpoints=a.u3l}ngOnInit(){this.inputData=this.data.profile?this.data.profile:this.data.product}closeDialog(){this.dialogRef.close()}openLocationDialog(){this.closeDialog(),this.dialog.open(t.u,{minWidth:this.getDialogDimension(a.QmF.width),width:this.getDialogDimension(a.QmF.width),height:"auto",position:a.VLR.getDialogPosition(),disableClose:!0,maxWidth:l.DY,panelClass:["base-panel-class","user-address-dialog"],data:{isMandatory:!0,locations:this.userLocationService.getAvailableLocations(),selectedLocation:{address:JSON.parse(localStorage.getItem(a.Umo.USER_ADDRESS))}}}).afterClosed().pipe((0,n.q)(1)).subscribe(V=>{V&&this.userLocationService.notifyUpdatedUserAddressFromUnavailableBusiness(V)})}getDialogDimension(B){const V=B===a.QmF.width?600:488;return window.innerWidth>a.u3l.TABLET?B===a.QmF.width?(0,a.I3d)(l.zP):(0,a.ny$)(l.ys):window.innerWidth>this.breakpoints.MOBILE_XL&&window.innerHeight>V&&window.innerWidth>V?V.toString():B===a.QmF.width?(0,a.I3d)(V):(0,a.ny$)(V)}goToOffersFromSelectedCity(){if(this.data.profile)switch(this.inputData.businessType){case a.Pui.SHOP:case a.Pui.MARKET:this.router.navigate([`/${a.Z2M.PRODUCTS}/${a.ZTG.MARKET_SUPERMARKET}-${a.h9A}`]);break;case a.Pui.PHARMACY:this.router.navigate([`/${a.Z2M.PRODUCTS}/${a.ZTG.PHARMACY_ROUTE}-${a.tjM}`]);break;case a.Pui.RESTAURANT:this.router.navigate([`/${a.Z2M.PRODUCTS}/${a.nUJ.RESTAURANTS}-${a.Lkn}`])}else this.data.product&&this.router.navigate([`/${a.Z2M.PRODUCTS}/${this.data.product.categorySlug}`]);this.closeDialog()}}return A.\u0275fac=function(B){return new(B||A)(h.\u0275\u0275directiveInject(e.hV),h.\u0275\u0275directiveInject(e.on),h.\u0275\u0275directiveInject(a.vio.UserLocationServiceToken),h.\u0275\u0275directiveInject(s.F0),h.\u0275\u0275directiveInject(e.eJ))},A.\u0275cmp=h.\u0275\u0275defineComponent({type:A,selectors:[["app-unavailable-business-dialog"]],decls:28,vars:18,consts:[["fxLayout","column","fxLayoutAlign","space-between start",1,"h-100"],[1,"w-100"],[1,"mt-24"],[1,"full-width-divider"],[1,"mt-16","mb-16","title"],["fxLayout","row","fxLayoutAlign","start center",1,"location","mb-16"],[1,"material-icons","mr-8"],[1,"text"],["fxLayout","row","fxLayoutAlign","start center",1,"card","mb-16"],[1,"image","ml-16","mr-8",3,"ngClass","src"],[1,"mb-16"],["mat-flat-button","",1,"change-location",3,"click"],["mat-flat-button","",1,"see-offer","green-button-style",3,"click"],[1,"material-icons"]],template:function(B,V){1&B&&(h.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),h.\u0275\u0275element(3,"mat-divider",3),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(4,"div",4),h.\u0275\u0275text(5),h.\u0275\u0275pipe(6,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(7,"div",5)(8,"i",6),h.\u0275\u0275text(9,"location_on"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(10,"span",7),h.\u0275\u0275text(11),h.\u0275\u0275elementEnd()(),h.\u0275\u0275elementStart(12,"div",8),h.\u0275\u0275element(13,"img",9),h.\u0275\u0275elementStart(14,"span",7),h.\u0275\u0275text(15),h.\u0275\u0275elementEnd()()(),h.\u0275\u0275elementStart(16,"div",1)(17,"div",10),h.\u0275\u0275element(18,"mat-divider",3),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(19,"button",11),h.\u0275\u0275listener("click",function(){return V.openLocationDialog()}),h.\u0275\u0275text(20),h.\u0275\u0275pipe(21,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(22,"button",12),h.\u0275\u0275listener("click",function(){return V.goToOffersFromSelectedCity()}),h.\u0275\u0275elementStart(23,"i",13),h.\u0275\u0275text(24,"location_on"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(25,"span"),h.\u0275\u0275text(26),h.\u0275\u0275pipe(27,"translate"),h.\u0275\u0275elementEnd()()()()),2&B&&(h.\u0275\u0275advance(5),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind1(6,7,V.data.titleKey)),h.\u0275\u0275advance(6),h.\u0275\u0275textInterpolate(V.data.newLocation),h.\u0275\u0275advance(2),h.\u0275\u0275property("ngClass",h.\u0275\u0275pureFunction1(14,S,V.data.profile))("src",(V.data.profile?null==V.inputData||null==V.inputData.files||null==V.inputData.files.profile_image?null:V.inputData.files.profile_image.url:null==V.inputData?null:V.inputData.images[0].thumbnail)||"/assets/images/home/carmen-preview.jpg",h.\u0275\u0275sanitizeUrl),h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(V.inputData.name),h.\u0275\u0275advance(5),h.\u0275\u0275textInterpolate1(" ",h.\u0275\u0275pipeBind1(21,9,"SHARED.MISC.UNAVAILABLE_BUSINESS.CHANGE_LOCATION")," "),h.\u0275\u0275advance(6),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind2(27,11,"SHARED.MISC.UNAVAILABLE_BUSINESS.SEE_OFFER",h.\u0275\u0275pureFunction1(16,E,V.data.newLocation))))},dependencies:[d.NgClass,p.xw,p.Wh,u.oO,g.eB,v.d,y.b,b.X$],styles:[".full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.material-icons[_ngcontent-%COMP%]{font-size:22px}.title[_ngcontent-%COMP%]{font-weight:700;font-size:20px}button[_ngcontent-%COMP%]{width:100%;color:#fff!important;padding:0 12px;letter-spacing:1px}button.change-location[_ngcontent-%COMP%]{margin-bottom:16px;background-color:#666!important;border-radius:4px!important;font-weight:500!important;font-size:14px!important;height:40px!important;line-height:36px!important;text-transform:uppercase!important}button.change-location[_ngcontent-%COMP%]:hover{background-color:#5e5e5e!important;transition:.3s}button.see-offer[_ngcontent-%COMP%]{background-color:#00853b!important}button.see-offer[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{float:left;margin-top:6px}.location[_ngcontent-%COMP%]{color:#00853b}.location[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.card[_ngcontent-%COMP%]{width:100%;height:82px;background-color:#f4f5f7;border-radius:4px}.card[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{height:50px;width:50px}.card[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:14px;font-weight:700;word-break:break-word}.border-radius-50[_ngcontent-%COMP%]{border-radius:50%}"]}),A})()},86673:(oe,x,i)=>{"use strict";i.d(x,{y:()=>l});var e=i(94650),n=i(36895),a=i(55829),t=i(89383);let l=(()=>{class h{}return h.\u0275fac=function(d){return new(d||h)},h.\u0275cmp=e.\u0275\u0275defineComponent({type:h,selectors:[["app-order-status"]],inputs:{status:"status"},decls:3,vars:4,consts:[[1,"pill",3,"ngClass"]],template:function(d,p){1&d&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&d&&(e.\u0275\u0275property("ngClass","pill--"+p.status.toLowerCase()),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,"SHARED.ORDERS.ORDER_STATUS."+p.status),"\n"))},dependencies:[n.NgClass,a.oO,t.X$],styles:[".pill[_ngcontent-%COMP%]{border-radius:100px;color:#fff;font-size:10px;font-weight:700;margin:auto 0;max-height:24px;padding:4.5px 10px;text-transform:uppercase;min-width:min-content;text-align:center!important}.pill--preorder[_ngcontent-%COMP%]{background:#0098db}.pill--new[_ngcontent-%COMP%]{background-color:#3dae22}.pill--processing[_ngcontent-%COMP%], .pill--shipping_ready[_ngcontent-%COMP%], .pill--check_in_skipped[_ngcontent-%COMP%], .pill--checked_in[_ngcontent-%COMP%]{background-color:#fb7500}.pill--shipped[_ngcontent-%COMP%], .pill--assigned[_ngcontent-%COMP%], .pill--in_delivery[_ngcontent-%COMP%]{background-color:#009689}.pill--complete[_ngcontent-%COMP%]{background-color:#00853b}.pill--returned[_ngcontent-%COMP%], .pill--undelivered[_ngcontent-%COMP%], .pill--cancelled[_ngcontent-%COMP%]{background-color:#e53935}.pill--unabilable[_ngcontent-%COMP%], .pill--create[_ngcontent-%COMP%]{background-color:#9f9f9f}.pill--pending[_ngcontent-%COMP%], .pill--payment_pending[_ngcontent-%COMP%]{background-color:#fb7500}.pill--confirmed[_ngcontent-%COMP%], .pill--paid[_ngcontent-%COMP%]{background-color:#3dae22}.pill--failed[_ngcontent-%COMP%], .pill--rejected[_ngcontent-%COMP%]{background-color:#e53935}.pill--refunded[_ngcontent-%COMP%], .pill--open_preauthorized[_ngcontent-%COMP%], .pill--partial[_ngcontent-%COMP%]{background-color:#9f9f9f}.pill--prescription_shipped[_ngcontent-%COMP%]{background-color:#fb7500}"],changeDetection:0}),h})()},15282:(oe,x,i)=>{"use strict";i.d(x,{O:()=>yt});var e=i(28918),n=i(94650),a=i(36895),t=i(1576),l=i(55829),h=i(15439),s=i.n(h),d=i(1166),p=i(92538),u=i(20124),g=i(35559),v=i(95118),y=i(44850),b=i(3611),S=i(57307),E=i(36667),D=i(614),A=i(89383);function P(ie,Ce){if(1&ie&&(n.\u0275\u0275elementStart(0,"span",11),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ie){const Ie=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(Ie.orderSummary.businessName)}}const B=function(ie){return{value:ie}};function V(ie,Ce){if(1&ie){const Ie=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",6)(1,"div",12)(2,"span"),n.\u0275\u0275text(3),n.\u0275\u0275pipe(4,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"i",13),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ie);const Mt=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(Mt.openSGRFeeDetailsDialog())}),n.\u0275\u0275text(6," info "),n.\u0275\u0275elementEnd()(),n.\u0275\u0275element(7,"span",7),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275pipe(9,"price"),n.\u0275\u0275elementEnd()}if(2&ie){const Ie=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(4,2,"SHARED.MENU.CART.SGR_GUARANTEE")),n.\u0275\u0275advance(4),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind2(8,4,Ie.carmen.getCurrencyTranslationKey(Ie.getSGRFeesAmount(Ie.orderSummary)),n.\u0275\u0275pureFunction1(9,B,n.\u0275\u0275pipeBind1(9,7,Ie.getSGRFeesAmount(Ie.orderSummary)))),n.\u0275\u0275sanitizeHtml)}}function X(ie,Ce){if(1&ie){const Ie=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",6)(1,"div",12)(2,"span"),n.\u0275\u0275text(3),n.\u0275\u0275pipe(4,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"i",13),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ie);const Mt=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(Mt.openServicesDialog())}),n.\u0275\u0275text(6," info "),n.\u0275\u0275elementEnd()(),n.\u0275\u0275element(7,"span",7),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275pipe(9,"price"),n.\u0275\u0275elementEnd()}if(2&ie){const Ie=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(4,2,"PAGES.PROFILE.CART.THANK_YOU.DRCARMEN_SERVICES")),n.\u0275\u0275advance(4),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind2(8,4,Ie.carmen.getCurrencyTranslationKey(Ie.getCarmenFeesAmount(Ie.orderSummary)),n.\u0275\u0275pureFunction1(9,B,n.\u0275\u0275pipeBind1(9,7,Ie.getCarmenFeesAmount(Ie.orderSummary)))),n.\u0275\u0275sanitizeHtml)}}function re(ie,Ce){if(1&ie&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275elementStart(1,"div",18),n.\u0275\u0275element(2,"img",19),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"span"),n.\u0275\u0275text(5),n.\u0275\u0275pipe(6,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementContainerEnd()),2&ie){const Ie=n.\u0275\u0275nextContext(3);n.\u0275\u0275advance(2),n.\u0275\u0275property("src",Ie.pharmaLogoPath,n.\u0275\u0275sanitizeUrl)("alt",n.\u0275\u0275pipeBind1(3,3,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.PHARMA_LOGO")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(6,5,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.PHARMA"))}}function Q(ie,Ce){if(1&ie&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275elementStart(1,"div",18),n.\u0275\u0275element(2,"img",19),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"span"),n.\u0275\u0275text(5),n.\u0275\u0275pipe(6,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementContainerEnd()),2&ie){const Ie=n.\u0275\u0275nextContext(3);n.\u0275\u0275advance(2),n.\u0275\u0275property("src",Ie.courierDeliveryTypeLogoPath,n.\u0275\u0275sanitizeUrl)("alt",n.\u0275\u0275pipeBind1(3,3,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.GRAY_TRUCK_LOGO")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(6,5,Ie.getCourierDeliveryTranslationKey()))}}function ae(ie,Ce){if(1&ie&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275elementStart(1,"div",18),n.\u0275\u0275element(2,"img",19),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"span"),n.\u0275\u0275text(5),n.\u0275\u0275pipe(6,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementContainerEnd()),2&ie){const Ie=n.\u0275\u0275nextContext(3);n.\u0275\u0275advance(2),n.\u0275\u0275property("src",Ie.expressDeliveryTypeLogoPath,n.\u0275\u0275sanitizeUrl)("alt",n.\u0275\u0275pipeBind1(3,3,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.EXPRESS_LOGO")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(6,5,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.EXPRESS"))}}function K(ie,Ce){if(1&ie&&(n.\u0275\u0275elementStart(0,"div",14)(1,"div",15),n.\u0275\u0275template(2,re,7,7,"ng-container",16),n.\u0275\u0275template(3,Q,7,7,"ng-container",16),n.\u0275\u0275template(4,ae,7,7,"ng-container",16),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(5,"app-transport-fee",17),n.\u0275\u0275elementEnd()),2&ie){const Ie=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",Ie.isPharmaContent()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ie.orderSummary.deliveryType===Ie.deliveryTypes.COURIER&&!Ie.isPharmaContent()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ie.orderSummary.deliveryType===Ie.deliveryTypes.EXPRESS&&!Ie.isPharmaContent()),n.\u0275\u0275advance(1),n.\u0275\u0275property("transportFee",Ie.getDeliveryFeesAmount(Ie.orderSummary))("deliveryCost",Ie.orderSummary.deliveryCost)}}function k(ie,Ce){if(1&ie&&(n.\u0275\u0275elementStart(0,"div",20)(1,"span"),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(4,"span",7),n.\u0275\u0275pipe(5,"translate"),n.\u0275\u0275pipe(6,"price"),n.\u0275\u0275elementEnd()),2&ie){const Ie=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(3,2,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.SUBTOTAL")),n.\u0275\u0275advance(2),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind2(5,4,Ie.carmen.getCurrencyTranslationKey(Ie.orderSummary.total),n.\u0275\u0275pureFunction1(9,B,n.\u0275\u0275pipeBind1(6,7,Ie.orderSummary.totalValue))),n.\u0275\u0275sanitizeHtml)}}const $=function(ie){return{time:ie}};function j(ie,Ce){if(1&ie&&(n.\u0275\u0275elementStart(0,"span")(1,"strong"),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275pipe(4,"date"),n.\u0275\u0275elementEnd()()),2&ie){const Ie=n.\u0275\u0275nextContext(3);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind2(3,1,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.DELIVERY_TIME_TO_DAY",n.\u0275\u0275pureFunction1(7,$,n.\u0275\u0275pipeBind2(4,4,Ie.getDeliveryEstimation(),Ie.customDateFormats.HourAndMinutes)))," ")}}const R=function(ie,Ce){return{startDeliveryTime:ie,endDeliveryTime:Ce}};function U(ie,Ce){if(1&ie&&(n.\u0275\u0275elementStart(0,"span")(1,"strong"),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275pipe(4,"date"),n.\u0275\u0275pipe(5,"date"),n.\u0275\u0275elementEnd()()),2&ie){const Ie=n.\u0275\u0275nextContext(3);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind2(3,1,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.PREORDER_TODAY",n.\u0275\u0275pureFunction2(10,R,n.\u0275\u0275pipeBind2(4,4,null==Ie.orderSummary?null:Ie.orderSummary.startDeliveryRequestDate,Ie.customDateFormats.HourAndMinutes),n.\u0275\u0275pipeBind2(5,7,null==Ie.orderSummary?null:Ie.orderSummary.endDeliveryRequestDate,Ie.customDateFormats.HourAndMinutes)))," ")}}const le=function(ie,Ce){return{date:ie,time:Ce}};function T(ie,Ce){if(1&ie&&(n.\u0275\u0275elementStart(0,"span")(1,"strong"),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275pipe(4,"capitalize"),n.\u0275\u0275pipe(5,"date"),n.\u0275\u0275pipe(6,"date"),n.\u0275\u0275elementEnd()()),2&ie){const Ie=n.\u0275\u0275nextContext(3);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind2(3,1,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.DELIVERY_TIME_ANOTHER_DAY",n.\u0275\u0275pureFunction2(14,le,n.\u0275\u0275pipeBind1(4,4,n.\u0275\u0275pipeBind4(5,6,Ie.getDeliveryEstimation(),Ie.customDateFormats.DayAndMonth2,"","ro")),n.\u0275\u0275pipeBind2(6,11,Ie.getDeliveryEstimation(),Ie.customDateFormats.HourAndMinutes)))," ")}}const H=function(ie,Ce,Ie){return{date:ie,startDeliveryTime:Ce,endDeliveryTime:Ie}};function N(ie,Ce){if(1&ie&&(n.\u0275\u0275elementStart(0,"span")(1,"strong"),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275pipe(4,"capitalize"),n.\u0275\u0275pipe(5,"date"),n.\u0275\u0275pipe(6,"date"),n.\u0275\u0275pipe(7,"date"),n.\u0275\u0275elementEnd()()),2&ie){const Ie=n.\u0275\u0275nextContext(3);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind2(3,1,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.PREORDER_ANOTHER_DAY",n.\u0275\u0275pureFunction3(17,H,n.\u0275\u0275pipeBind1(4,4,n.\u0275\u0275pipeBind4(5,6,Ie.getDeliveryEstimation(),Ie.customDateFormats.DayAndMonth2,"","ro")),n.\u0275\u0275pipeBind2(6,11,null==Ie.orderSummary?null:Ie.orderSummary.startDeliveryRequestDate,Ie.customDateFormats.HourAndMinutes),n.\u0275\u0275pipeBind2(7,14,null==Ie.orderSummary?null:Ie.orderSummary.endDeliveryRequestDate,Ie.customDateFormats.HourAndMinutes)))," ")}}function pe(ie,Ce){if(1&ie&&(n.\u0275\u0275elementStart(0,"div",6)(1,"span"),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(4,j,5,9,"span",16),n.\u0275\u0275template(5,U,6,13,"span",16),n.\u0275\u0275template(6,T,7,17,"span",16),n.\u0275\u0275template(7,N,8,21,"span",16),n.\u0275\u0275elementEnd()),2&ie){const Ie=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(3,5,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.DELIVERY_ESTIMATION")),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",Ie.isDateToday(Ie.getDeliveryEstimation())&&!Ie.isPreorder()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ie.isDateToday(Ie.getDeliveryEstimation())&&Ie.isPreorder()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!Ie.isDateToday(Ie.getDeliveryEstimation())&&!Ie.isPreorder()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!Ie.isDateToday(Ie.getDeliveryEstimation())&&Ie.isPreorder())}}function de(ie,Ce){if(1&ie&&(n.\u0275\u0275elementStart(0,"div",1),n.\u0275\u0275template(1,P,2,1,"span",2),n.\u0275\u0275elementStart(2,"div",3),n.\u0275\u0275element(3,"app-order-status-stepper",4),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",5)(5,"div",6)(6,"span"),n.\u0275\u0275text(7),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(9,"span",7),n.\u0275\u0275pipe(10,"translate"),n.\u0275\u0275pipe(11,"price"),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(12,V,10,11,"div",8),n.\u0275\u0275template(13,X,10,11,"div",8),n.\u0275\u0275template(14,K,6,5,"div",9),n.\u0275\u0275template(15,k,7,11,"div",10),n.\u0275\u0275template(16,pe,8,7,"div",8),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(17,"mat-divider"),n.\u0275\u0275elementEnd()),2&ie){const Ie=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ie.isCartOrderSummary()),n.\u0275\u0275advance(2),n.\u0275\u0275property("orderStatuses",null==Ie.orderSummary?null:Ie.orderSummary.orderStatuses)("isPartialDelivery",Ie.isPartialDelivery),n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(8,10,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.ITEMS_NO")),n.\u0275\u0275advance(2),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind2(10,12,Ie.carmen.getCurrencyTranslationKey(Ie.orderSummary.itemsValue),n.\u0275\u0275pureFunction1(17,B,n.\u0275\u0275pipeBind1(11,15,Ie.orderSummary.itemsValue))),n.\u0275\u0275sanitizeHtml),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",Ie.getSGRFeesAmount(Ie.orderSummary)>0),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ie.getCarmenFeesAmount(Ie.orderSummary)>0),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",null==Ie.orderSummary?null:Ie.orderSummary.deliveryType),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ie.showSubTotal),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ie.displayEstimatedDeliveryTime)}}const[me,q,se,ve]=[600,32,16,24];let Ee=(()=>{class ie{constructor(Ie){this.dialog=Ie,this.showSubTotal=!1,this.isPartialDelivery=!1,this.displayEstimatedDeliveryTime=!0,this.customDateFormats=e.SWR,this.deliveryTypes=e.lFT,this.carmen=e.VLR,this.courierDeliveryTypeLogoPath=e.uw9,this.expressDeliveryTypeLogoPath=e.QfK,this.pharmaLogoPath=e.TK3}isCartOrderSummary(){return this.orderSummaryType===e.zE0.CART_ORDER_SUMMARY}getCarmenFeesAmount(Ie){return Ie.totalFees.filter(dt=>dt.type===d.U.CARMEN_SERVICES||dt.type===d.U.BUSINESS).reduce((dt,Mt)=>dt+Mt.totalAmount,0)}getSGRFeesAmount(Ie){return Ie.totalFees.filter(dt=>dt.type===d.U.SGR).reduce((dt,Mt)=>dt+Mt.totalAmount,0)}getDeliveryFeesAmount(Ie){const dt=this.getDeliveryFees(Ie);return dt?.length?dt.reduce((Mt,Xt)=>Mt+Xt.totalAmount,0):0}getDeliveryFees(Ie){return Ie.fees.filter(dt=>dt.type===d.U.DELIVERY)??[]}openServicesDialog(){this.dialog.closeAll(),this.dialog.open(p.A,{data:{type:e.zcD.FEE,additionalInformation:null},maxWidth:(0,e.I3d)(me),width:window.innerWidth-q+"px",position:e.VLR.getDialogPosition({top:"16px"},{top:"16px"}),panelClass:["base-panel-class","responsive-dialog-panel-class"],autoFocus:!1,restoreFocus:!1})}openSGRFeeDetailsDialog(){this.dialog.closeAll(),this.dialog.open(u.C,{maxWidth:(0,e.I3d)(me),width:window.innerWidth-q+"px",position:e.VLR.getDialogPosition({top:`${se}px`},{top:`${ve}px`},e.u3l.TABLET),panelClass:["base-panel-class","responsive-dialog-panel-class"],autoFocus:!1,restoreFocus:!1})}isDateToday(Ie){return this.carmen.isDateToday(s()(Ie).toDate())}isPharmaContent(){return this.orderSummary.withPharmaceutical}getCourierDeliveryTranslationKey(){return"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY."+(this.isPreorder()?"PREORDER_DELIVERY":"DELIVERY")}isPreorder(){return!!this.orderSummary?.endDeliveryRequestDate&&!!this.orderSummary?.startDeliveryRequestDate}isPreorderStatus(){return this.orderSummary?.orderStatus===e.iFo.PREORDER}getDeliveryEstimation(){return this.isPreorderStatus()?this.orderSummary?.endDeliveryRequestDate:this.orderSummary?.estimatedDeliveryTime}}return ie.\u0275fac=function(Ie){return new(Ie||ie)(n.\u0275\u0275directiveInject(g.on))},ie.\u0275cmp=n.\u0275\u0275defineComponent({type:ie,selectors:[["app-summary-content"]],inputs:{orderSummary:"orderSummary",orderSummaryType:"orderSummaryType",showSubTotal:"showSubTotal",isPartialDelivery:"isPartialDelivery",displayEstimatedDeliveryTime:"displayEstimatedDeliveryTime"},decls:1,vars:1,consts:[["class","summary","fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","16px",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","16px",1,"summary"],["class","summary__title",4,"ngIf"],[1,"summary__stepper"],[3,"orderStatuses","isPartialDelivery"],["fxLayout","column","fxLayoutGap","8px",1,"summary-info"],["fxLayout","row","fxLayoutAlign","space-between center"],[3,"innerHTML"],["fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["class","summary-info__delivery-type-container","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["class","summary-info__subtotal","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],[1,"summary__title"],["fxLayout","row","fxLayoutGap","8px"],["fxLayout","row","fxLayoutAlign","center center",1,"material-icons","cursor-pointer",3,"click"],["fxLayout","row","fxLayoutAlign","space-between center",1,"summary-info__delivery-type-container"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","8px"],[4,"ngIf"],[3,"transportFee","deliveryCost"],[1,"summary-info__img-container"],[3,"src","alt"],["fxLayout","row","fxLayoutAlign","space-between center",1,"summary-info__subtotal"]],template:function(Ie,dt){1&Ie&&n.\u0275\u0275template(0,de,18,19,"div",0),2&Ie&&n.\u0275\u0275property("ngIf",dt.orderSummary)},dependencies:[v.Z,a.NgIf,t.xw,t.SQ,t.Wh,y.d,b.b,S.t,a.DatePipe,E.d,D.e,A.X$],styles:[".summary[_ngcontent-%COMP%]{max-width:400px;width:100%}.summary__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.summary__stepper[_ngcontent-%COMP%]{width:100%}.summary[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{width:100%}.summary-info[_ngcontent-%COMP%]{width:100%}.summary-info__delivery-type-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{min-width:max-content}.summary-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.summary-info[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{height:20px;width:20px;font-size:20px;color:#7b7b7b}.summary-info__free-services[_ngcontent-%COMP%]{font-weight:700;color:#00853b}.summary-info__img-container[_ngcontent-%COMP%]{height:20px;width:20px}.summary-info__img-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.summary-info[_ngcontent-%COMP%]   app-transport-fee[_ngcontent-%COMP%]{font-size:14px}.summary-info__subtotal[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0}),ie})();function Ye(ie,Ce){if(1&ie&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275element(1,"app-summary-content",6),n.\u0275\u0275elementContainerEnd()),2&ie){const Ie=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("orderSummary",Ie.patientBusinessOrder)("displayEstimatedDeliveryTime",!1)("isPartialDelivery",null==Ie.patientBusinessOrder?null:Ie.patientBusinessOrder.partialDelivery)("orderSummaryType",Ie.orderSummaryType)}}function wt(ie,Ce){if(1&ie&&n.\u0275\u0275element(0,"app-summary-content",8),2&ie){const Ie=Ce.$implicit,dt=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("orderSummary",Ie)("showSubTotal",dt.cartOrderSummary.businessOrders.length>1)("orderSummaryType",dt.orderSummaryType)}}function Wt(ie,Ce){if(1&ie&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275template(1,wt,1,3,"app-summary-content",7),n.\u0275\u0275elementContainerEnd()),2&ie){const Ie=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",Ie.cartOrderSummary.businessOrders)}}function Ut(ie,Ce){1&ie&&(n.\u0275\u0275elementStart(0,"span"),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"uppercase"),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd()),2&ie&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,1,n.\u0275\u0275pipeBind1(3,3,"PAGES.PROFILE.CART.THANK_YOU.TOTAL"))," "))}function nt(ie,Ce){1&ie&&(n.\u0275\u0275elementStart(0,"span"),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()),2&ie&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(2,1,"PAGES.PROFILE.CART.THANK_YOU.MODIFIED_TOTAL")))}const Zt=function(ie){return{"summary__total--modified":ie}},Fe=function(ie){return{value:ie}};let yt=(()=>{class ie{constructor(){this.carmen=e.VLR}isPatientOrderSummary(){return this.orderSummaryType===e.zE0.PATIENT_ORDER_SUMMARY}isCartOrderSummary(){return this.orderSummaryType===e.zE0.CART_ORDER_SUMMARY}setTotalValue(){return this.isPatientOrderSummary()?this.getPatientOrderTotalValue():this.cartOrderSummary?.orderValue}getPatientOrderTotalValue(){return this.patientBusinessOrder?.newTotal?this.patientBusinessOrder?.newTotal:this.patientBusinessOrder?.totalValue}isModifiedOrder(){return this.patientBusinessOrder?.paymentStatus===e.bGq.PARTIAL||!!this.patientBusinessOrder?.newTotal}}return ie.\u0275fac=function(Ie){return new(Ie||ie)},ie.\u0275cmp=n.\u0275\u0275defineComponent({type:ie,selectors:[["app-order-summary-stepper"]],inputs:{cartOrderSummary:"cartOrderSummary",patientBusinessOrder:"patientBusinessOrder",orderSummaryType:"orderSummaryType"},decls:10,vars:15,consts:[["fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","16px",1,"summary__container"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"summary__total",3,"ngClass"],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["modifiedTotal",""],[3,"orderSummary","displayEstimatedDeliveryTime","isPartialDelivery","orderSummaryType"],[3,"orderSummary","showSubTotal","orderSummaryType",4,"ngFor","ngForOf"],[3,"orderSummary","showSubTotal","orderSummaryType"]],template:function(Ie,dt){if(1&Ie&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,Ye,2,4,"ng-container",1),n.\u0275\u0275template(2,Wt,2,1,"ng-container",1),n.\u0275\u0275elementStart(3,"div",2),n.\u0275\u0275template(4,Ut,4,5,"span",3),n.\u0275\u0275element(5,"span",4),n.\u0275\u0275pipe(6,"translate"),n.\u0275\u0275pipe(7,"price"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(8,nt,3,3,"ng-template",null,5,n.\u0275\u0275templateRefExtractor)),2&Ie){const Mt=n.\u0275\u0275reference(9);n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",dt.isPatientOrderSummary()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",dt.isCartOrderSummary()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(11,Zt,dt.isModifiedOrder())),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!dt.isModifiedOrder())("ngIfElse",Mt),n.\u0275\u0275advance(1),n.\u0275\u0275property("innerHTML",n.\u0275\u0275pipeBind2(6,6,dt.carmen.getCurrencyTranslationKey(dt.setTotalValue()),n.\u0275\u0275pureFunction1(13,Fe,n.\u0275\u0275pipeBind1(7,9,dt.setTotalValue()))),n.\u0275\u0275sanitizeHtml)}},dependencies:[a.NgClass,a.NgForOf,a.NgIf,t.xw,t.SQ,t.Wh,l.oO,Ee,a.UpperCasePipe,E.d,A.X$],styles:[".summary__container[_ngcontent-%COMP%]{max-width:400px;width:100%;color:#242424;padding:16px 0 24px}.summary__container[_ngcontent-%COMP%]   app-summary-content[_ngcontent-%COMP%]{width:100%!important}.summary__total[_ngcontent-%COMP%]{width:100%;font-size:22px;font-weight:700}.summary__total--modified[_ngcontent-%COMP%]{color:#ff001a}"],changeDetection:0}),ie})()},90237:(oe,x,i)=>{"use strict";i.d(x,{z:()=>a});var e=i(52873),n=i(94650);let a=(()=>{class t{constructor(h){this.appService=h}ngOnInit(){this.appService.pageLoaded()}}return t.\u0275fac=function(h){return new(h||t)(n.\u0275\u0275directiveInject(e.z))},t.\u0275cmp=n.\u0275\u0275defineComponent({type:t,selectors:[["app-page-loaded"]],decls:0,vars:0,template:function(h,s){},encapsulation:2}),t})()},20765:(oe,x,i)=>{"use strict";i.d(x,{F:()=>y});var e=i(94650),n=i(28918),a=i(60607),t=i(35559),l=i(36895),h=i(1576),s=i(55829),d=i(99818),p=i(97392),u=i(89383);const g=function(b){return{currentPage:b}};function v(b,S){if(1&b){const E=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const A=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(A.openSorting())}),e.\u0275\u0275elementStart(4,"div",5)(5,"button",6,7)(7,"span",8),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"uppercase"),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"i",9),e.\u0275\u0275text(12,"keyboard_arrow_down"),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275elementStart(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13)(17,"mat-icon"),e.\u0275\u0275text(18,"chevron_left"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"div",14)(20,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const A=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(A.previousPage())}),e.\u0275\u0275text(21),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275element(22,"div",16),e.\u0275\u0275elementStart(23,"div",17)(24,"div",14)(25,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(E);const A=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(A.nextPage())}),e.\u0275\u0275text(26),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"div",13)(28,"mat-icon"),e.\u0275\u0275text(29,"chevron_right"),e.\u0275\u0275elementEnd()()()()()()}if(2&b){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(8),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(9,5,e.\u0275\u0275pipeBind2(10,7,"SHARED.PAGINATOR.PRODUCT_LISTING.PAGE",e.\u0275\u0275pureFunction1(10,g,E.currentPage)))," "),e.\u0275\u0275advance(12),e.\u0275\u0275property("disabled",1===E.currentPage),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" PAG. ",E.window.innerWidth<E.breakpoints.MOBILE_L?"PREC.":"PRECEDENTA"," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",E.currentPage===E.numberOfPages),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" PAG. ",E.window.innerWidth<E.breakpoints.MOBILE_L?"URM.":"URMATOARE"," ")}}let y=(()=>{class b{constructor(E){this.dialog=E,this.breakpoints=n.u3l,this.isBusinessProcessingPage=!1,this.displayBreakpoint=n.u3l.DESKTOP_S,this.displayAllTheTime=!1,this.pageChangeEvent=new e.EventEmitter}ngOnInit(){this.window=window,this.numberOfPages=Math.ceil(this.numberOfElements/this.pageSize),this.currentPage=this.currentPageIndex+1}ngOnChanges(E){const D=E?.pageSize;D?.previousValue&&D.currentValue!==D.previousValue&&(this.pageSize=D.currentValue,this.currentPage=1,this.currentPageIndex=0,this.numberOfPages=Math.ceil(this.numberOfElements/this.pageSize)),this.isBusinessProcessingPage&&(E?.currentPageIndex&&(this.currentPage=E?.currentPageIndex.currentValue+1),E?.numberOfElements&&(this.numberOfPages=Math.ceil(this.numberOfElements/this.pageSize)))}openSorting(){const[E,D,A]=[400,"95%","90%"];this.dialog.open(a.Y,{data:{title:"Sari la pagina: ",pages:this.numberOfPages,currentPageIndex:this.currentPageIndex},minWidth:(0,n.I3d)(E),height:n.VLR.isNativeIos?A:D,position:n.VLR.getDialogPosition(),panelClass:"base-panel-class"}).afterClosed().subscribe(B=>{B&&this.setPage(B)})}getDialogPosition(E=!0){return E&&n.VLR.isNativeIos?`${n.miL}px`:window.innerWidth>=n.u3l.TABLET?E?`${n._p0}px`:null:`${n._vr}px`}previousPage(){if(0===this.currentPageIndex){if(1===this.currentPage)return!1;this.currentPageIndex=1}this.setPage(this.currentPageIndex)}nextPage(){this.setPage(this.currentPageIndex+2)}setPage(E){this.currentPage=E,this.pageChangeEvent.emit({previousPageIndex:this.currentPageIndex,pageIndex:E})}displayPaginator(){return!(this.numberOfPages<=1)&&(!!this.displayAllTheTime||this.window.innerWidth<this.displayBreakpoint)}}return b.\u0275fac=function(E){return new(E||b)(e.\u0275\u0275directiveInject(t.on))},b.\u0275cmp=e.\u0275\u0275defineComponent({type:b,selectors:[["app-btm-paginator"]],inputs:{isBusinessProcessingPage:"isBusinessProcessingPage",currentPageIndex:"currentPageIndex",displayBreakpoint:"displayBreakpoint",displayAllTheTime:"displayAllTheTime",pageSize:"pageSize",numberOfElements:"numberOfElements"},outputs:{pageChangeEvent:"pageChangeEvent"},features:[e.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mobile-pagination-container w-100","fxShow","",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxShow","",1,"mobile-pagination-container","w-100"],["fxFlex","100","fxLayout","row",1,"page-controls","mat-elevation-z1","mb-16","border-radius-4"],["fxFlex","","fxLayout","row",1,"pagination-buttons-wrapper","change-page-button-wrapper"],["fxFlex","","fxLayout","row",3,"click"],["fxLayoutAlign","center center","fxFlex","100",1,"pagination-button"],["mat-button","","fxFlex","100"],["pageListingMobile",""],[1,"pl-16"],[1,"material-icons","icon-padding"],["fxFlex","","fxLayout","row","fxLayoutGap","6px",1,"page-controls","mat-elevation-z1","px-16","top-page"],["fxFlex","","fxLayout","row",1,"pagination-buttons-wrapper","page-controls"],["fxFlex","50","fxLayout","row",1,"previous-button-wrapper"],["fxLayoutAlign","center center",1,"arrow-button"],["fxLayoutAlign","center center",1,"mlr-auto","pagination-button"],["mat-button","",3,"disabled","click"],[1,"divider-y"],["fxFlex","50","fxLayout","row",1,"next-button-wrapper"]],template:function(E,D){1&E&&e.\u0275\u0275template(0,v,30,12,"div",0),2&E&&e.\u0275\u0275property("ngIf",D.displayPaginator())},dependencies:[l.NgIf,h.xw,h.SQ,h.Wh,h.yH,s.b8,d.eB,p.Hw,l.UpperCasePipe,u.X$],styles:[".paginator-theme--gray[_ngcontent-%COMP%]{background-color:#d5d9de}.paginator-theme--white[_ngcontent-%COMP%]{background-color:#fff}.pagination-container[_ngcontent-%COMP%]{margin-right:4px;padding:16px 0;text-align:left;font-size:13px;line-height:25px;color:#242424}.pagination-container[_ngcontent-%COMP%]   .pagination-interval[_ngcontent-%COMP%]{font-size:14px;line-height:25px;min-width:40%;text-align:right}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]{color:#242424}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button[_ngcontent-%COMP%]{height:25px;min-width:15px;color:#242424;border-radius:3px;font-size:13px;line-height:25px;text-align:center;cursor:pointer;background-color:#e1e3e6}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button.btn-active[_ngcontent-%COMP%]{background:#00853b 0 0% no-repeat padding-box;color:#fff}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button.btn-active[_ngcontent-%COMP%]:hover{background:#00853b 0 0%!important;color:#fff}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button.disabled[_ngcontent-%COMP%]{pointer-events:none}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button[_ngcontent-%COMP%]:hover{background-color:#c8c9cc}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .padding-for-button[_ngcontent-%COMP%]{padding:0 5px}.color-disabled[_ngcontent-%COMP%]{color:#9f9f9f}.pl-16[_ngcontent-%COMP%]{padding-left:16px}.icon-margin[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px}.icon-color[_ngcontent-%COMP%]{color:#242424}@media (min-width: 960px){.top-page[_ngcontent-%COMP%]{margin-bottom:8px}}.next-page-button-style[_ngcontent-%COMP%]{width:200px;font:Regular 13px/15px Roboto}.page-controls[_ngcontent-%COMP%]{box-shadow:none!important;border-radius:4px!important;width:100%;height:40px}.page-controls[_ngcontent-%COMP%]   .pagination-button-text[_ngcontent-%COMP%]{font-weight:700}@media (min-width: 960px){.page-controls[_ngcontent-%COMP%]{margin-left:10px}}.page-control-button[_ngcontent-%COMP%]{border-radius:4px!important}.border-radius-top-4px[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.border-radius-4[_ngcontent-%COMP%]{border-radius:4px!important}@media (max-width: 768px){.pagination-interval[_ngcontent-%COMP%]{display:none}}@media (max-width: 600px){.page-controls[_ngcontent-%COMP%]{margin-left:0}}"]}),b})()},82435:(oe,x,i)=>{"use strict";i.d(x,{Y:()=>le});var e=i(94650),n=i(28555),a=i(28918),h=(i(32420),i(17596),i(60607)),s=i(49726),d=i(9116),p=i(35559),u=i(36895),g=i(1576),v=i(55829),y=i(99818),b=i(97392),S=i(47462),E=i(89383);const D=["pageListingMobile"],A=function(T){return{"btn-active":T}};function P(T,H){if(1&T){const N=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",29),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(de.setPage(1))}),e.\u0275\u0275text(1," 1 "),e.\u0275\u0275elementEnd()}if(2&T){const N=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(1,A,1===N.currentPage))}}function B(T,H){1&T&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1,"..."),e.\u0275\u0275elementEnd())}function V(T,H){if(1&T){const N=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",29),e.\u0275\u0275listener("click",function(){const me=e.\u0275\u0275restoreView(N).$implicit,q=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(q.setPage(me))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&T){const N=H.$implicit,pe=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,A,pe.currentPage===N)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",N," ")}}function X(T,H){1&T&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1,"..."),e.\u0275\u0275elementEnd())}const re=function(T,H,N){return{from:T,to:H,length:N}},Q=function(T){return{disabled:T}},ae=function(T){return{"color-disabled":T}};function K(T,H){if(1&T){const N=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",22)(1,"p",23),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",24)(5,"div",25),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(de.previousPage())}),e.\u0275\u0275elementStart(6,"mat-icon",17),e.\u0275\u0275text(7,"chevron_left"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(8,P,2,3,"div",26),e.\u0275\u0275template(9,B,2,0,"div",27),e.\u0275\u0275template(10,V,2,4,"div",28),e.\u0275\u0275template(11,X,2,0,"div",27),e.\u0275\u0275elementStart(12,"div",29),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(de.setPage(de.numberOfPages))}),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"div",25),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(de.nextPage())}),e.\u0275\u0275elementStart(15,"mat-icon",17),e.\u0275\u0275text(16,"chevron_right"),e.\u0275\u0275elementEnd()()()()}if(2&T){const N=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,11,"SHARED.PAGINATOR.PRODUCT_LISTING.PRODUCTS_PER_PAGE",e.\u0275\u0275pureFunction3(14,re,N.from,N.to,N.productsLength))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(18,Q,1===N.currentPage)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(20,ae,1===N.currentPage)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",N.showStartDots),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",N.showStartDots),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",N.startPages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",N.showEndDots),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(22,A,N.currentPage===N.numberOfPages)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",N.numberOfPages," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(24,Q,N.currentPage===N.numberOfPages)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(26,ae,N.currentPage===N.numberOfPages))}}const k=function(T){return{currentPage:T}};function $(T,H){if(1&T){const N=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275template(1,K,17,28,"div",3),e.\u0275\u0275elementStart(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(de.openSorting())}),e.\u0275\u0275elementStart(6,"div",8)(7,"button",9,10)(9,"span",11),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"uppercase"),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"i",12),e.\u0275\u0275text(14,"keyboard_arrow_down"),e.\u0275\u0275elementEnd()()()()()(),e.\u0275\u0275elementStart(15,"div",13)(16,"div",14)(17,"div",15)(18,"div",16)(19,"mat-icon",17),e.\u0275\u0275text(20,"chevron_left"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(21,"div",18)(22,"button",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(de.previousPage())}),e.\u0275\u0275elementStart(23,"span",20),e.\u0275\u0275text(24),e.\u0275\u0275pipe(25,"uppercase"),e.\u0275\u0275pipe(26,"translate"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(27,"div",15)(28,"div",18)(29,"button",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(de.nextPage())}),e.\u0275\u0275elementStart(30,"span",20),e.\u0275\u0275text(31),e.\u0275\u0275pipe(32,"uppercase"),e.\u0275\u0275pipe(33,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(34,"div",16)(35,"mat-icon",21),e.\u0275\u0275text(36,"chevron_right"),e.\u0275\u0275elementEnd()()()()()()()}if(2&T){const N=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",N.hasProducts()),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass","paginator-theme--"+N.color),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(11,13,e.\u0275\u0275pipeBind2(12,15,"SHARED.PAGINATOR.PRODUCT_LISTING.PAGE",e.\u0275\u0275pureFunction1(26,k,N.currentPage)))," "),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngClass","paginator-theme--"+N.color),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(28,ae,1===N.currentPage)),e.\u0275\u0275advance(3),e.\u0275\u0275property("disabled",1===N.currentPage),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(30,ae,1===N.currentPage)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(25,18,e.\u0275\u0275pipeBind1(26,20,N.window.innerWidth<N.breakpoints.MOBILE_XL?"SHARED.PAGINATOR.PRODUCT_LISTING.PREVIOUS_PAGE_MOBILE":"SHARED.PAGINATOR.PRODUCT_LISTING.PREVIOUS_PAGE_DESKTOP"))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass","paginator-theme--"+N.color),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",N.currentPage===N.numberOfPages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(32,ae,N.currentPage===N.numberOfPages)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(32,22,e.\u0275\u0275pipeBind1(33,24,N.window.innerWidth<N.breakpoints.MOBILE_XL?"SHARED.PAGINATOR.PRODUCT_LISTING.NEXT_PAGE_MOBILE":"SHARED.PAGINATOR.PRODUCT_LISTING.NEXT_PAGE_DESKTOP"))," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(34,ae,N.currentPage===N.numberOfPages))}}function j(T,H){if(1&T&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&T){const N=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("Incarca: Pagina ",N.currentPage+1,"")}}function R(T,H){1&T&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1," Incarca: Pagina urmatoare"),e.\u0275\u0275elementEnd())}function U(T,H){if(1&T){const N=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",30)(1,"button",31),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(N);const de=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(de.nextPage())}),e.\u0275\u0275template(2,j,2,1,"span",27),e.\u0275\u0275template(3,R,2,0,"span",27),e.\u0275\u0275elementEnd()()}if(2&T){const N=e.\u0275\u0275nextContext();e.\u0275\u0275property("matTooltipDisabled",N.currentPage!==N.numberOfPages),e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate1("matTooltip","Incarca: Pagina ",N.currentPage+1,""),e.\u0275\u0275property("disabled",N.currentPage===N.numberOfPages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",N.currentPage!==N.numberOfPages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",N.currentPage===N.numberOfPages)}}let le=(()=>{class T{constructor(N,pe,de,me){if(this.activatedRoute=N,this.filtersService=pe,this.dialog=de,this.store=me,this.type="",this.pageChangeEvent=new e.EventEmitter,this.setNumberOfPages=new e.EventEmitter,this.currentPage=1,this.startPages=[],this.showEndDots=!0,this.showStartDots=!1,this.loading=!1,this.noCategory=!1,this.breakpoints=a.u3l,this._filters=this.filtersService.filters,this.pageSize=this._filters.pagination.size,this.activatedRoute.snapshot._routerState.url){const q=this.activatedRoute.snapshot._routerState.url.split("/");q[1]===a.Z2M.PRODUCTS&&!q[2]&&(this.noCategory=!0)}}ngOnInit(){"FAVORITES_LISTS_PRODUCTS"===this.type&&this.store.pipe((0,n.Ys)(s.ot)).subscribe(N=>{this.currentPage=N.page+1,this.currentPageIndex=N.page,this.store.pipe((0,n.Ys)(s.xz)).subscribe(pe=>{this.window=window,this._filters=this.filtersService.filters,this.pageSize=this._filters.pagination.size,this.setDefaults(pe,this.pageSize)})})}ngOnChanges(){""===this.type&&(this.window=window,this._filters=this.filtersService.filters,this.pageSize=this._filters.pagination.size,this.activatedRoute.queryParams.subscribe(N=>{if(this.currentPage=N.page?parseInt(N.page,10):1,this.currentPageIndex=this.currentPage-1,this.setDefaults(this.productsLength,this.pageSize),this.activatedRoute.snapshot._routerState.url){const pe=this.activatedRoute.snapshot._routerState.url.split("/");pe[1]===a.Z2M.PRODUCTS&&pe[2]===a.Z2M.SEARCH&&2===JSON.stringify(N).length&&setTimeout(()=>{this.autoScrollWithAnimation()},330)}}))}setDefaults(N,pe){this.numberOfPages=Math.ceil(N/pe),this.setNumberOfPages.emit(this.numberOfPages),this.products=this.productsLength,this.from=pe*this.currentPage-pe+1,this.to=1===this.numberOfPages?N:pe*this.currentPage,this.startPages=[];for(let de=this.currentPage;de<this.currentPage+3;de++)this.currentPage<=this.numberOfPages-3?(this.startPages.push(de),this.showEndDots=!0):(this.showEndDots=!1,this.currentPage>3?this.startPages=[this.numberOfPages-3,this.numberOfPages-2,this.numberOfPages-1]:this.setFewerPages());this.showDots()}setFewerPages(){switch(this.numberOfPages){case 3:this.startPages=[this.numberOfPages-2,this.numberOfPages-1];break;case 2:this.startPages=[1];break;case 1:this.startPages=[];break;default:this.startPages=[this.numberOfPages-3,this.numberOfPages-2,this.numberOfPages-1]}}setPage(N){N!==this.currentPage&&(this.currentPage=N,this.showDots(),this.pageChangeEvent.emit({previousPageIndex:this.currentPageIndex,pageIndex:N,pageSize:this.pageSize,length:this.productsLength}),setTimeout(()=>{this.autoScrollWithAnimation()},330))}autoScrollWithAnimation(){const me=window.setInterval(()=>{const q=window.pageYOffset;q>0?window.scrollTo(0,q-120):window.clearInterval(me)},8)}openSorting(){const[N,pe,de]=[400,"95%","90%"];this.dialog.open(h.Y,{data:{filters:this._filters,options:this.filtersService.options,title:"Sari la pagina: ",pages:this.numberOfPages,currentPageIndex:this.currentPageIndex,length:this.productsLength},minWidth:(0,a.I3d)(N),height:a.VLR.isNativeIos?de:pe,position:{top:this.getDialogPosition(!0)},panelClass:"base-panel-class"}).afterClosed().subscribe(q=>{q&&this.setPage(q),this.pageListingMobile._elementRef.nativeElement.classList.remove("cdk-program-focused")})}getDialogPosition(N=!0){return N&&a.VLR.isNativeIos?`${a.miL}px`:window.innerWidth>=a.u3l.TABLET?N?`${a._p0}px`:null:`${a._vr}px`}previousPage(){if(0===this.currentPageIndex){if(1===this.currentPage)return!1;this.currentPageIndex=1}this.setPage(this.currentPageIndex)}nextPage(){this.setPage(this.currentPageIndex+2)}showDots(){this.showStartDots=this.currentPage>=3&&this.numberOfPages>=5}hasProducts(){return 0!==this.productsLength}}return T.\u0275fac=function(N){return new(N||T)(e.\u0275\u0275directiveInject(d.gz),e.\u0275\u0275directiveInject(a.vio.FiltersServiceToken),e.\u0275\u0275directiveInject(p.on),e.\u0275\u0275directiveInject(n.yh))},T.\u0275cmp=e.\u0275\u0275defineComponent({type:T,selectors:[["app-pagination-listing"]],viewQuery:function(N,pe){if(1&N&&e.\u0275\u0275viewQuery(D,5),2&N){let de;e.\u0275\u0275queryRefresh(de=e.\u0275\u0275loadQuery())&&(pe.pageListingMobile=de.first)}},inputs:{color:"color",_filters:"_filters",productsLength:"productsLength",businessProfile:"businessProfile",type:"type",nextPageButton:"nextPageButton"},outputs:{pageChangeEvent:"pageChangeEvent",setNumberOfPages:"setNumberOfPages"},features:[e.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[["class","w-100",4,"ngIf"],["class","py-12","matTooltip","Esti pe ultima pagina",3,"matTooltipDisabled",4,"ngIf"],[1,"w-100"],["class","pagination-container","fxLayout","row","fxLayoutGap","15px","fxLayoutAlign","end center","fxHide","","fxShow.gt-sm","",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxHide.gt-sm","","fxShow","",1,"mobile-pagination-container","w-100"],["fxFlex","100","fxLayout","row",1,"page-controls","mat-elevation-z1","mb-16","border-radius-4",3,"ngClass"],["fxFlex","","fxLayout","row",1,"pagination-buttons-wrapper"],["fxFlex","","fxLayout","row",3,"click"],["fxLayoutAlign","center center","fxFlex","100",1,"pagination-button"],["mat-button","","fxFlex","100",1,"h-100"],["pageListingMobile",""],[1,"pl-16","pagination-button-text"],[1,"material-icons","icon-margin"],["fxFlex","","fxLayout","row","fxLayoutGap","6px",1,"page-controls","mat-elevation-z1","top-page"],["fxFlex","","fxLayout","row","fxLayoutGap","8px",1,"pagination-buttons-wrapper","page-controls"],["fxFlex","50","fxLayout","row","fxLayoutAlign","center center",1,"page-control-button",3,"ngClass"],["fxLayoutAlign","center center"],[3,"ngClass"],["fxLayoutAlign","center center",1,"pagination-button"],["mat-button","",1,"px-4",3,"disabled","click"],[1,"pagination-button-text",3,"ngClass"],[1,"icon-color",3,"ngClass"],["fxLayout","row","fxLayoutGap","15px","fxLayoutAlign","end center","fxHide","","fxShow.gt-sm","",1,"pagination-container"],[1,"pagination-interval"],["fxLayout","row","fxLayout.xs","column","fxLayoutGap","6px",1,"pagination-buttons-wrapper"],[1,"pagination-button",3,"ngClass","click"],["class","pagination-button padding-for-button",3,"ngClass","click",4,"ngIf"],[4,"ngIf"],["class","pagination-button padding-for-button",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"pagination-button","padding-for-button",3,"ngClass","click"],["matTooltip","Esti pe ultima pagina",1,"py-12",3,"matTooltipDisabled"],["color","primary","mat-raised-button","",1,"ml-auto","next-page-button-style",3,"matTooltip","disabled","click"]],template:function(N,pe){1&N&&(e.\u0275\u0275template(0,$,37,36,"div",0),e.\u0275\u0275template(1,U,4,5,"div",1)),2&N&&(e.\u0275\u0275property("ngIf",!pe.nextPageButton&&pe.numberOfPages>1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",pe.nextPageButton&&pe.numberOfPages>1))},dependencies:[u.NgClass,u.NgForOf,u.NgIf,g.xw,g.SQ,g.Wh,g.yH,v.b8,v.oO,y.eB,b.Hw,S.Kd,u.UpperCasePipe,E.X$],styles:[".paginator-theme--gray[_ngcontent-%COMP%]{background-color:#d5d9de}.paginator-theme--white[_ngcontent-%COMP%]{background-color:#fff}.pagination-container[_ngcontent-%COMP%]{margin-right:4px;padding:16px 0;text-align:left;font-size:13px;line-height:25px;color:#242424}.pagination-container[_ngcontent-%COMP%]   .pagination-interval[_ngcontent-%COMP%]{font-size:14px;line-height:25px;min-width:40%;text-align:right}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]{color:#242424}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button[_ngcontent-%COMP%]{height:25px;min-width:15px;color:#242424;border-radius:3px;font-size:13px;line-height:25px;text-align:center;cursor:pointer;background-color:#e1e3e6}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button.btn-active[_ngcontent-%COMP%]{background:#00853b 0 0% no-repeat padding-box;color:#fff}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button.btn-active[_ngcontent-%COMP%]:hover{background:#00853b 0 0%!important;color:#fff}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button.disabled[_ngcontent-%COMP%]{pointer-events:none}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .pagination-button[_ngcontent-%COMP%]:hover{background-color:#c8c9cc}.pagination-container[_ngcontent-%COMP%]   .pagination-buttons-wrapper[_ngcontent-%COMP%]   .padding-for-button[_ngcontent-%COMP%]{padding:0 5px}.color-disabled[_ngcontent-%COMP%]{color:#9f9f9f}.pl-16[_ngcontent-%COMP%]{padding-left:16px}.icon-margin[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px}.icon-color[_ngcontent-%COMP%]{color:#242424}@media (min-width: 960px){.top-page[_ngcontent-%COMP%]{margin-bottom:8px}}.next-page-button-style[_ngcontent-%COMP%]{width:200px;font:Regular 13px/15px Roboto}.page-controls[_ngcontent-%COMP%]{box-shadow:none!important;border-radius:4px!important;width:100%;height:40px}.page-controls[_ngcontent-%COMP%]   .pagination-button-text[_ngcontent-%COMP%]{font-weight:700}@media (min-width: 960px){.page-controls[_ngcontent-%COMP%]{margin-left:10px}}.page-control-button[_ngcontent-%COMP%]{border-radius:4px!important}.border-radius-top-4px[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.border-radius-4[_ngcontent-%COMP%]{border-radius:4px!important}@media (max-width: 768px){.pagination-interval[_ngcontent-%COMP%]{display:none}}@media (max-width: 600px){.page-controls[_ngcontent-%COMP%]{margin-left:0}}"]}),T})()},83494:(oe,x,i)=>{"use strict";i.d(x,{m:()=>E});var e=i(94650),n=i(28918),l=(i(17596),i(32420),i(9116)),h=i(36895),s=i(1576),d=i(99818),p=i(97392),u=i(86255),g=i(89383);const v=["paginatorTop"],y=["paginatorBottom"],b=function(D){return{size:D}};function S(D,A){if(1&D){const P=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",8),e.\u0275\u0275listener("click",function(){const X=e.\u0275\u0275restoreView(P).$implicit,re=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(re.changePageSize(X))}),e.\u0275\u0275elementStart(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()()}if(2&D){const P=A.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,1,"SHARED.PAGINATOR.PAGINATION_OPTIONS.PER_PAGE",e.\u0275\u0275pureFunction1(4,b,P))," ")}}let E=(()=>{class D{constructor(P,B){this.filtersService=P,this.activatedRoute=B,this.pageSizeChangeEvent=new e.EventEmitter,this.noCategory=!1,this.breakpoints=n.u3l}ngOnInit(){if(this.windowWidth=window.innerWidth,this.activatedRoute.snapshot._routerState.url){const P=this.activatedRoute.snapshot._routerState.url.split("/");P[1]===n.Z2M.PRODUCTS&&!P[2]&&(this.noCategory=!0)}this._filters=this.filtersService.filters,this.pageSizeOptions=this._options.page.size,this.pageSize=this._filters.pagination.size}ngOnChanges(){this._filters=this.filtersService.filters,this.pageSize=this._filters.pagination.size}changePageSize(P){this.pageSize=P,this.pageSizeChangeEvent.emit(P)}}return D.\u0275fac=function(P){return new(P||D)(e.\u0275\u0275directiveInject(n.vio.FiltersServiceToken),e.\u0275\u0275directiveInject(l.gz))},D.\u0275cmp=e.\u0275\u0275defineComponent({type:D,selectors:[["app-pagination-options"]],viewQuery:function(P,B){if(1&P&&(e.\u0275\u0275viewQuery(v,5),e.\u0275\u0275viewQuery(y,5)),2&P){let V;e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(B.paginator=V.first),e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(B.paginatorBottom=V.first)}},inputs:{_filters:"_filters",_options:"_options",length:"length",businessProfile:"businessProfile"},outputs:{pageSizeChangeEvent:"pageSizeChangeEvent"},features:[e.\u0275\u0275NgOnChangesFeature],decls:12,vars:8,consts:[["fxLayout","row","fxLayout.xs","column","fxLayoutWrap","","fxLayoutGap","0.5%","fxLayoutAlign","center",1,"pagination-options-container"],["mat-button","",3,"matMenuTriggerFor"],["pageSizeMenuTrigger","matMenuTrigger"],[1,"mat-icon-sm","caret"],["xPosition","before",1,"app-dropdown"],["pageSizeMenu","matMenu"],[3,"mouseleave"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"]],template:function(P,B){if(1&P){const V=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0)(1,"a",1,2)(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"mat-icon",3),e.\u0275\u0275text(7,"keyboard_arrow_down"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"mat-menu",4,5)(10,"span",6),e.\u0275\u0275listener("mouseleave",function(){e.\u0275\u0275restoreView(V);const re=e.\u0275\u0275reference(2);return e.\u0275\u0275resetView(re.closeMenu())}),e.\u0275\u0275template(11,S,4,6,"button",7),e.\u0275\u0275elementEnd()()()}if(2&P){const V=e.\u0275\u0275reference(9);e.\u0275\u0275advance(1),e.\u0275\u0275property("matMenuTriggerFor",V),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(5,3,B.windowWidth>=B.breakpoints.MOBILE_XL?"SHARED.PAGINATOR.PAGINATION_OPTIONS.PER_PAGE":"SHARED.PAGINATOR.PAGINATION_OPTIONS.PER_PAG",e.\u0275\u0275pureFunction1(6,b,B._filters.pagination.size))," "),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngForOf",B.pageSizeOptions)}},dependencies:[h.NgForOf,s.xw,s.SQ,s.Wh,d.Nr,p.Hw,u.W0,u.tN,u.D8,g.X$],styles:[".pagination-options-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:left;font-weight:400;font-size:14px;line-height:25px;color:#242424}"]}),D})()},13128:(oe,x,i)=>{"use strict";i.d(x,{y:()=>re});var e=i(94650),n=i(28918),a=i(60607),t=i(61700),l=i(84659),h=i(35559),s=i(89898),d=i(36895),p=i(1576),u=i(55829),g=i(99818),v=i(89923),y=i(97392),b=i(74656),S=i(82435),E=i(83494);const D=["mobileSortingButton"];function A(Q,ae){if(1&Q){const K=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-pagination-options",16),e.\u0275\u0275listener("pageSizeChangeEvent",function($){e.\u0275\u0275restoreView(K);const j=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(j.changeSize($))}),e.\u0275\u0275elementEnd()}if(2&Q){const K=e.\u0275\u0275nextContext();e.\u0275\u0275property("_filters",K._filters)("_options",K._options)("length",null==K._result?null:K._result.total)}}function P(Q,ae){if(1&Q){const K=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",17)(1,"app-pagination-listing",18),e.\u0275\u0275listener("pageChangeEvent",function($){e.\u0275\u0275restoreView(K);const j=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(j.changePage($))}),e.\u0275\u0275elementEnd()()}if(2&Q){const K=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("productsLength",null==K._result?null:K._result.total)("_filters",K._filters)("type",K.type)}}function B(Q,ae){if(1&Q&&(e.\u0275\u0275elementStart(0,"mat-chip",19),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&Q){const K=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",K.activeFiltersCount," ")}}const V=function(Q,ae,K,k){return{"on-top":Q,"on-top-active-filters-closed":ae,"mat-elevation-z1":K,"page-controls-space-around":k}},X=function(Q,ae,K,k){return{"on-bottom":Q,"on-bottom-active-filters-closed":ae,"mat-elevation-z1":K,"page-controls-space-around":k}};let re=(()=>{class Q{constructor(K,k,$,j){this.filtersService=K,this.sidenavService=k,this.dialog=$,this.sidenavFacade=j,this.maxSize=0,this.type="",this._borderBox=!0,this.sortEvent=new e.EventEmitter,this.pageSizeChangeEvent=new e.EventEmitter,this.pageChangeEvent=new e.EventEmitter,this.breakpoints=n.u3l}get activeFiltersCount(){return this.filtersService.countActiveFilters()}shouldDisplayFilters(){return this.filtersService.shouldDisplayActiveFilters()}openSortingDialog(){this.dialog.open(a.Y,{data:{filters:this._filters,options:this._options},minWidth:window.innerWidth<this.breakpoints.MOBILE_XL?window.innerWidth-16:400,maxHeight:364,minHeight:364,height:"95%",position:n.VLR.getDialogPosition(),panelClass:"sorting-filters-dialog"}).afterClosed().subscribe($=>{$&&this.sortEvent.emit($),this.mobileSortingButton._elementRef.nativeElement.classList.remove("cdk-program-focused")})}getDialogPosition(K=!0){return K&&n.VLR.isNativeIos?`${n.miL}px`:window.innerWidth>=n.u3l.TABLET?K?`${n._p0}px`:null:`${n._vr}px`}setSorting(K){this.sortEvent.emit(K)}changeSize(K){this._filters.pagination.size=K,this._filters.pagination.page=0,this.pageSizeChangeEvent.emit(K)}changePage(K){this.pageChangeEvent.emit(K)}toggle(){this.sidenavService.setSidenavFilters({filters:this.filtersService.filters,options:this.filtersService.options}),this.sidenavFacade.changeDisplayedSidenav(n.YPs.FILTER),this.sidenavService.open()}calculateNumberOfPages(){return Math.ceil((this._result?.total||0)/(this._filters?.pagination?.size||1))}}return Q.\u0275fac=function(K){return new(K||Q)(e.\u0275\u0275directiveInject(n.vio.FiltersServiceToken),e.\u0275\u0275directiveInject(l.B),e.\u0275\u0275directiveInject(h.on),e.\u0275\u0275directiveInject(t.r))},Q.\u0275cmp=e.\u0275\u0275defineComponent({type:Q,selectors:[["app-top-paginator"]],viewQuery:function(K,k){if(1&K&&e.\u0275\u0275viewQuery(D,5),2&K){let $;e.\u0275\u0275queryRefresh($=e.\u0275\u0275loadQuery())&&(k.mobileSortingButton=$.first)}},inputs:{_filters:"_filters",_options:"_options",_result:"_result",maxSize:"maxSize",type:"type",_borderBox:"_borderBox"},outputs:{sortEvent:"sortEvent",pageSizeChangeEvent:"pageSizeChangeEvent",pageChangeEvent:"pageChangeEvent"},decls:22,vars:18,consts:[["fxLayout","row wrap","fxLayout.xs","column","fxLayoutAlign","start center","fxHide","","fxShow.gt-sm","",1,"page-controls","page-controls__min-height","text-muted","small-devices-container",3,"ngClass"],[3,"sort","_options","sorted"],["fxHide.lt-sm",""],[3,"_filters","_options","length","pageSizeChangeEvent",4,"ngIf"],["fxHide.lt-sm","","class","ml-auto",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-controls","text-muted",3,"ngClass"],["fxFlex","100","fxHide","","fxShow.gt-sm",""],[3,"_filters"],["fxFlex","100","fxLayout","row","fxHide.gt-sm","",1,"filtering-buttons-wrapper"],["fxFlex","50","fxLayout","row","fxLayoutAlign","center center"],["mat-button","",1,"mlr-auto",3,"click"],["mobileSortingButton",""],[1,"divider-y"],["fxFlex","50","fxLayout","row","fxLayoutAlign","center center",1,"mlr-auto"],["mat-button","",1,"filter-button",3,"click"],["fxLayoutAlign","center center","class","active-filters-chip",4,"ngIf"],[3,"_filters","_options","length","pageSizeChangeEvent"],["fxHide.lt-sm","",1,"ml-auto"],[3,"productsLength","_filters","type","pageChangeEvent"],["fxLayoutAlign","center center",1,"active-filters-chip"]],template:function(K,k){1&K&&(e.\u0275\u0275elementStart(0,"div",0)(1,"drc-sorting",1),e.\u0275\u0275listener("sorted",function(j){return k.setSorting(j)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",2),e.\u0275\u0275template(3,A,1,3,"app-pagination-options",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,P,2,3,"div",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",5)(6,"div",6),e.\u0275\u0275element(7,"app-active-filters",7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",8)(9,"div",9)(10,"button",10,11),e.\u0275\u0275listener("click",function(){return k.openSortingDialog()}),e.\u0275\u0275elementStart(12,"mat-icon"),e.\u0275\u0275text(13,"arrow_upward"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(14," SORTARE "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(15,"div",12),e.\u0275\u0275elementStart(16,"div",13)(17,"button",14),e.\u0275\u0275listener("click",function(){return k.toggle()}),e.\u0275\u0275elementStart(18,"mat-icon"),e.\u0275\u0275text(19,"filter_list"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(20," FILTRARE "),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(21,B,2,1,"mat-chip",15),e.\u0275\u0275elementEnd()()()),2&K&&(e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction4(8,V,k.shouldDisplayFilters(),!k.shouldDisplayFilters(),k._borderBox,"FAVORITES_LISTS_PRODUCTS"!==k.type)),e.\u0275\u0275advance(1),e.\u0275\u0275property("sort",k._filters.pagination.sort)("_options",k._options),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",k.calculateNumberOfPages()>1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",k._result&&k._filters&&k.maxSize>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction4(13,X,k.shouldDisplayFilters(),!k.shouldDisplayFilters(),k._borderBox,"FAVORITES_LISTS_PRODUCTS"!==k.type)),e.\u0275\u0275advance(2),e.\u0275\u0275property("_filters",k._filters),e.\u0275\u0275advance(14),e.\u0275\u0275property("ngIf",k.activeFiltersCount>0))},dependencies:[s.i,d.NgClass,d.NgIf,p.xw,p.Wh,p.yH,u.b8,u.oO,g.eB,v.lw,y.Hw,b.q,S.Y,E.m],styles:[".page-controls[_ngcontent-%COMP%]{background:#fff;border-radius:8px}.page-controls__min-height[_ngcontent-%COMP%]{min-height:45px}.page-controls[_ngcontent-%COMP%]   app-active-filters[_ngcontent-%COMP%]{width:100%}.page-controls[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-align:left;font-size:13px;font-weight:400;line-height:25px;color:#242424}.page-controls.on-top[_ngcontent-%COMP%]{border-radius:8px 8px 0 0;box-shadow:0 2px 2px #00000029}.page-controls.on-bottom[_ngcontent-%COMP%]{border-radius:8px}@media (min-width: 960px){.page-controls.on-bottom[_ngcontent-%COMP%]{border-radius:0 0 8px 8px;border-top:1px solid rgba(0,0,0,.1607843137)}}.page-controls.on-bottom-active-filters-closed[_ngcontent-%COMP%]{border-radius:4px;box-shadow:0 2px 2px #00000029}@media (min-width: 960px){.page-controls.on-bottom-active-filters-closed[_ngcontent-%COMP%]{display:none;border-radius:4px 4px 0 0;box-shadow:none}}.page-controls-space-around[_ngcontent-%COMP%]{padding:0 16px}.filtering-buttons-wrapper[_ngcontent-%COMP%]{height:47px}.filtering-buttons-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-weight:800;color:#242424}.filtering-buttons-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:22px;font-size:19px}.active-filters-chip[_ngcontent-%COMP%]{background-color:#ff001a!important;color:#fff!important;font-size:11px;border-radius:50%;height:24px;width:24px}@media (max-width: 960px){.page-controls[_ngcontent-%COMP%]{border-radius:0!important}}@media (width: 960px){.page-controls[_ngcontent-%COMP%]{border-radius:8px!important}}@media (max-width: 420px){.page-controls[_ngcontent-%COMP%]{margin-left:8px}}@media (max-width: 600px){.page-controls[_ngcontent-%COMP%]{margin-left:8px}}"]}),Q})()},90140:(oe,x,i)=>{"use strict";i.d(x,{I:()=>At});var e=i(94650),n=i(77579),a=i(82722),t=i(22529),l=i(95698),h=i(28918),s=i(55738),d=i(77044),p=i(47716),u=i(32420),g=i(80037),v=i(97376),y=i(12676),b=i(20080),S=i(9116),E=i(35559),D=i(52267),A=i(17366),P=i(36895),B=i(1576),V=i(55829),X=i(24363),re=i(99818),Q=i(97392),ae=i(18455),K=i(85208),k=i(47462),$=i(24006),j=i(40750),R=i(36667),U=i(89262),le=i(89383);const N=function($e){return{"btn__gray--hover":$e}};function pe($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",5),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(mt.addProductToCart())}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementStart(2,"i",6),e.\u0275\u0275text(3,"add_shopping_cart"),e.\u0275\u0275elementEnd()()}if(2&$e){const Pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,N,Pe.window.innerWidth>Pe.breakpoints.TABLET))("matTooltip",e.\u0275\u0275pipeBind1(1,2,"SHARED.PRODUCT.CONTROLS.ADD_TO_CART"))}}function de($e,Xe){if(1&$e&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",2)(2,"div",3),e.\u0275\u0275template(3,pe,4,6,"button",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&$e){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!(null!=Pe.user&&Pe.user.isBusiness()))}}function me($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-option",17),e.\u0275\u0275listener("onSelectionChange",function(mt){e.\u0275\u0275restoreView(Pe);const It=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(It.handlePackageSelection(mt))}),e.\u0275\u0275elementStart(1,"div",18)(2,"div",19),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"truncate"),e.\u0275\u0275elementEnd()()()}if(2&$e){const Pe=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("value",Pe),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(4,2,Pe.wrapping,35))}}function q($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,me,5,5,"mat-option",16),e.\u0275\u0275elementEnd()),2&$e){const Pe=Xe.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.bestOffer)}}function se($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",10)(1,"mat-form-field",11,12)(3,"mat-select",13,14),e.\u0275\u0275listener("valueChange",function(mt){e.\u0275\u0275restoreView(Pe);const It=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(It.package=mt)})("opened",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275reference(2),It=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(It.addSelectClass(mt))})("closed",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275reference(2),It=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(It.removeSelectClass(mt))}),e.\u0275\u0275pipe(5,"truncate"),e.\u0275\u0275template(6,q,2,1,"div",15),e.\u0275\u0275elementEnd()()()}if(2&$e){const Pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",Pe.isFiledActive?"product-stock":""),e.\u0275\u0275advance(3),e.\u0275\u0275property("disableOptionCentering",!0)("value",Pe.package)("placeholder",e.\u0275\u0275pipeBind2(5,5,Pe.package.wrapping,35)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",null==Pe.product?null:Pe.product.getPackagingForUserCity(null==Pe.selectedUserLocation||null==Pe.selectedUserLocation.city?null:Pe.selectedUserLocation.city.toUpperCase()))}}const ve=function($e){return{"stock-input":$e}},Ee=function($e){return{"button-enabled-color":$e}},Ye=function($e){return{value:$e}};function wt($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",28)(1,"button",29),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(mt.subtract())}),e.\u0275\u0275elementStart(2,"i",30),e.\u0275\u0275text(3," remove_circle "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",31),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"button",29),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(mt.add())}),e.\u0275\u0275elementStart(8,"i",32),e.\u0275\u0275text(9," add_circle "),e.\u0275\u0275elementEnd()()()}if(2&$e){const Pe=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(9,ve,Pe.window.innerWidth>Pe.breakpoints.DESKTOP_S)),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",Pe.quantity<=1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,Ee,Pe.quantity>1)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(6,6,"SHARED.PRODUCT.CONTROLS.QUANTITY",e.\u0275\u0275pureFunction1(13,Ye,Pe.quantity))," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",Pe.quantity>=Pe.offer.stock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(15,Ee,Pe.quantity<Pe.offer.stock))}}const Wt=function($e){return{"loading-button":$e}};function Ut($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div",22),e.\u0275\u0275template(1,wt,10,17,"div",23),e.\u0275\u0275elementStart(2,"div",24)(3,"button",25)(4,"mat-icon",26),e.\u0275\u0275text(5,"add_shopping_cart"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"span"),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"uppercase"),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(10,"drc-page-spinner",27),e.\u0275\u0275elementEnd()()),2&$e){const Pe=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.offer.stock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(10,Wt,Pe.isAddToCartLoading)),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",Pe.offerForm.invalid||!Pe.offer.stock),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(8,6,e.\u0275\u0275pipeBind1(9,8,Pe.offer.stock?"SHARED.PRODUCT.CONTROLS.ADD_TO_CART":"SHARED.PRODUCT.CONTROLS.PRODUCT_UNAVAILABLE"))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("fxHide",!Pe.isAddToCartLoading)("diameter",25)}}function nt($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div",20),e.\u0275\u0275template(1,Ut,11,12,"div",21),e.\u0275\u0275elementEnd()),2&$e){const Pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.offer)}}const Zt=function($e){return{"center-if-unavailable":$e}};function Fe($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"form",7),e.\u0275\u0275listener("ngSubmit",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(mt.offerForm.submit())}),e.\u0275\u0275template(2,se,7,8,"div",8),e.\u0275\u0275template(3,nt,2,1,"div",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&$e){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",Pe.offerForm)("ngClass",e.\u0275\u0275pureFunction1(5,Zt,!Pe.offer.stock&&Pe.window.innerWidth<Pe.breakpoints.DESKTOP_S))("fxLayoutAlign",Pe.window.innerWidth>Pe.breakpoints.DESKTOP_S?"start center":""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.offer&&Pe.offer.stock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(null!=Pe.user&&Pe.user.isBusiness()))}}function yt($e,Xe){if(1&$e&&e.\u0275\u0275element(0,"app-favourites-heart-btn",42),2&$e){const Pe=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("product",Pe.product)("productSlug",Pe.package.slug)}}function ie($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",43)(1,"button",29),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(mt.subtract())}),e.\u0275\u0275elementStart(2,"i",44),e.\u0275\u0275text(3,"remove_circle"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",31),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"button",29),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(mt.add())}),e.\u0275\u0275elementStart(8,"i",44),e.\u0275\u0275text(9," add_circle "),e.\u0275\u0275elementEnd()()()}if(2&$e){const Pe=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",Pe.quantity<=1),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(8,Ee,Pe.quantity>1)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(6,5,"SHARED.PRODUCT.CONTROLS.QUANTITY",e.\u0275\u0275pureFunction1(10,Ye,Pe.quantity))," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",Pe.quantity>=Pe.offer.stock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(12,Ee,Pe.quantity<Pe.offer.stock))}}function Ce($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",34)(2,"div",35),e.\u0275\u0275listener("click",function(mt){e.\u0275\u0275restoreView(Pe);const It=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(It.stopClickPropagate(mt))}),e.\u0275\u0275elementStart(3,"span",36),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"price"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,yt,1,2,"app-favourites-heart-btn",37),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",38),e.\u0275\u0275template(9,ie,10,14,"div",39),e.\u0275\u0275elementStart(10,"div",40),e.\u0275\u0275element(11,"drc-button",41)(12,"drc-page-spinner",27),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()}if(2&$e){const Pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(4,12,Pe.carmen.getCurrencyTranslationKey(Pe.product.priceMin),e.\u0275\u0275pureFunction1(17,Ye,e.\u0275\u0275pipeBind1(5,15,Pe.offer.price))),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",Pe.offer.price," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(null!=Pe.user&&Pe.user.isBusiness())),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",Pe.offer.stock),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(19,Wt,Pe.isAddToCartLoading)),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",Pe.offerForm.invalid||!Pe.offer.stock)("type",Pe.buttonType.iconAndTextButton)("iconPosition",Pe.iconPosition.left)("icon","add_shopping_cart")("textTranslationKey",Pe.window.innerWidth>=Pe.breakpoints.MOBILE_L?"SHARED.PRODUCT.CONTROLS.ADD_TO_CART":"SHARED.PRODUCT.CONTROLS.ADD"),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxHide",!Pe.isAddToCartLoading)("diameter",25)}}function Ie($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"form",33),e.\u0275\u0275listener("ngSubmit",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(mt.offerForm.submit())}),e.\u0275\u0275template(2,Ce,13,21,"ng-container",1),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&$e){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",Pe.offerForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.offer&&!(null!=Pe.user&&Pe.user.isBusiness()))}}const dt=function($e){return{"in-cart-now":$e}};function Mt($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div",54)(1,"i",6),e.\u0275\u0275text(2,"done"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"uppercase"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()),2&$e){const Pe=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(6,dt,Pe.window.innerWidth>Pe.Breakpoints.TABLET)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,2,e.\u0275\u0275pipeBind1(5,4,"SHARED.PRODUCT.CONTROLS.IN_YOUR_CART_NOW"))," ")}}const Xt=function($e){return{"mr-16":$e}};function en($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div",55)(1,"button",56),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"i",57),e.\u0275\u0275text(4," add_shopping_cart "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"span"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"uppercase"),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(9,"drc-page-spinner",27),e.\u0275\u0275elementEnd()),2&$e){const Pe=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(14,Wt,Pe.isAddToCartLoading||Pe.loadingFromMultipleOffers)),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxHide",Pe.isOfferInCart)("disabled",!Pe.offerForm.valid||!Pe.quantity)("matTooltip",e.\u0275\u0275pipeBind1(2,8,"SHARED.PRODUCT.CONTROLS."+(Pe.isProductInCart?"CHANGE_IN_CART":"ADD_TO_CART"))),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(16,Xt,Pe.window.innerWidth>Pe.Breakpoints.TABLET)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",Pe.window.innerWidth>Pe.Breakpoints.TABLET?e.\u0275\u0275pipeBind1(7,10,e.\u0275\u0275pipeBind1(8,12,"SHARED.PRODUCT.CONTROLS."+(Pe.isProductInCart?"CHANGE_IN_CART":"ADD_TO_CART"))):null," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("fxHide",!(Pe.isAddToCartLoading||Pe.loadingFromMultipleOffers)||Pe.isOfferInCart)("diameter",25)}}function vt($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div",51),e.\u0275\u0275template(1,Mt,6,8,"div",52),e.\u0275\u0275template(2,en,10,18,"div",53),e.\u0275\u0275elementEnd()),2&$e){const Pe=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.isOfferInCart),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Pe.isOfferInCart)}}const xt=function($e,Xe){return{"margin-right-div":$e,"in-cart-container":Xe}},zt=function($e,Xe){return{"text-muted":$e,"price-text":Xe}};function bt($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"form",45),e.\u0275\u0275listener("ngSubmit",function(){e.\u0275\u0275restoreView(Pe);const mt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(mt.offerForm.submit())}),e.\u0275\u0275elementStart(2,"div",46)(3,"div",47)(4,"div",48),e.\u0275\u0275element(5,"div",49),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275pipe(7,"price"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div"),e.\u0275\u0275template(9,vt,3,2,"div",50),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()}if(2&$e){const Pe=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("formGroup",Pe.offerForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("fxLayoutGap",Pe.window.innerWidth<Pe.breakpoints.TABLET?Pe.isOfferInCart?"16px":"":"24px")("fxLayout",Pe.isOfferInCart&&Pe.window.innerWidth<Pe.Breakpoints.TABLET?"column":"row")("ngClass",e.\u0275\u0275pureFunction2(12,xt,Pe.isOfferInCart&&Pe.window.innerWidth<=Pe.Breakpoints.TABLET,Pe.window.innerWidth>Pe.Breakpoints.TABLET)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(15,zt,!Pe.offer.stock,Pe.offer.stock)),e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(6,7,Pe.carmen.getCurrencyTranslationKey(Pe.offer.price),e.\u0275\u0275pureFunction1(18,Ye,e.\u0275\u0275pipeBind1(7,10,Pe.offer.price))),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",Pe.offer&&!(null!=Pe.user&&Pe.user.isBusiness()))}}class At{constructor(Xe,Pe,Ve,mt,It,xn,_n,Jt,ke,Ae){this.cartService=Xe,this.userLocationService=Pe,this.fb=xn,this.userService=_n,this.router=Jt,this.dialog=ke,this.productService=Ae,this.offerForm=this.fb.build("patient.cart.quantity"),this.quantityOptions=[],this.isFiledActive=!1,this.locationConfirmed=!1,this.controlType=h.yP3,this.isProductInCart=!1,this.isOfferInCart=!1,this.breakpoints=h.u3l,this.unsubscribe$=new n.x,this.carmen=h.VLR,this.buttonType=h.L$3,this.iconPosition=h.ggF,this.loadingFromMultipleOffers=!1,this.quantity=1,this.messageSnackbarType=h.vax.DEFAULT,this.isAddOfferToCartLoading=!1,this.packageChangeEvent=new e.EventEmitter,this.openProductDialogEvent=new e.EventEmitter,this.openProductOffersDialogEvent=new e.EventEmitter,this.closeOffersDialog=new e.EventEmitter,this.setMultipleOffersLoading=new e.EventEmitter,this.sendProductQuantity=new e.EventEmitter,this.locationConfirmed=this.userLocationService.isCookieLocationValid(),this.cartHelper=new b.q(Xe,Pe,Ve,mt,ke,It),this.cartHelper.closeOffersDialog$.pipe((0,a.R)(this.unsubscribe$)).subscribe(()=>this.closeOffersDialog.emit()),this.cartHelper.loadingFromMultipleOffers$.pipe((0,a.R)(this.unsubscribe$)).subscribe(ze=>{ze!==this.loadingFromMultipleOffers&&this.setMultipleOffersLoading.emit(ze)}),this.cartHelper.quantity$.pipe((0,a.R)(this.unsubscribe$)).subscribe(ze=>this.quantity=ze)}ngOnInit(){this.locationConfirmed=this.userLocationService.isCookieLocationValid(),this.setButtonHidden(),(this.type===h.yP3.PRODUCT_DETAIL_PAGE||this.type===h.yP3.PRODUCT_DETAIL_PAGE_STICKY)&&this.productService.productData.pipe((0,t.o)(()=>this.type===h.yP3.PRODUCT_DETAIL_PAGE||this.type===h.yP3.PRODUCT_DETAIL_PAGE_STICKY),(0,a.R)(this.unsubscribe$)).subscribe(Xe=>{this.offer=Xe.selectedOffer,this.package=Xe.selectedPackage}),this.window=window,this.userSelectedLocationStore=this.userLocationService.getUserLocationStore(),this.offerForm.submit$.pipe((0,a.R)(this.unsubscribe$)).subscribe(Xe=>{const Pe=this.type===h.yP3.OFFERS_POPUP;this.isAddOfferToCartLoading=!0,this.quantity=Xe.quantity,this.cartHelper.addOfferToCartIfLocationAvailable({offer:Xe.offer,quantity:this.quantity,requiresPrescription:this.product.requiresPrescription,businessId:Xe.offer.businessExternalId,productSlug:Xe.offer.productSlug,mustConfirmAge:this.product.mustConfirmAge,isPromotionalProduct:!1,messageSnackbarType:this.messageSnackbarType},Pe)}),this.offerForm.valueChanges.pipe((0,a.R)(this.unsubscribe$)).subscribe(Xe=>{this.valueChanges(Xe)}),this.loadProduct(),this.type===h.yP3.OFFERS_POPUP&&(this.findIfProductIsInCart(),this.findIfOfferIsInCart(this.offer)),this.userLocationService.locationData$.pipe((0,a.R)(this.unsubscribe$)).subscribe(Xe=>{Xe&&(this.selectedUserLocation=Xe,this.setPackagings(this.product,this.selectedUserLocation))}),this.cartHelper.sendAvailableQuantity.pipe((0,a.R)(this.unsubscribe$)).subscribe(Xe=>this.sendProductQuantity.emit(Xe))}ngOnChanges(Xe){Xe.offer&&Xe.offer.currentValue?.stock?this.quantity=1:Xe.offer&&(this.quantity=0),this.loadProduct(),Xe.type&&Xe.type?.currentValue!==Xe.type?.previousValue&&this.cartHelper.setType(Xe.type?.currentValue),Xe.loadingFromMultipleOffers&&!Xe.loadingFromMultipleOffers.firstChange&&Xe.loadingFromMultipleOffers?.currentValue!==Xe.loadingFromMultipleOffers?.previousValue&&this.cartHelper.triggerLoadingFromMultipleOffers(Xe.loadingFromMultipleOffers?.currentValue)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}onWindowResize(){this.window=window}get isAddToCartLoading(){return this.cartHelper.getIsAddToCartLoading()}setButtonHidden(){this.hideButtons=this.router.url.includes(`/${h.Z2M.PRODUCTS}`)}handlePackageSelection(Xe){this.offer?.productSlug!==Xe.source?.value?.slug&&Xe.isUserInput&&(this.quantity=1,this.packageChangeEvent.emit(Xe.source.value),this.getBestOfferForLocation(Xe.source.value.bestOffer)&&(this.offer=this.getBestOfferForLocation(Xe.source.value.bestOffer),this.offerForm.get("offer").patchValue(this.getBestOfferForLocation(Xe.source.value.bestOffer))))}getBestOfferForLocation(Xe){return Xe.drugOffers.filter(Ve=>Ve.city.toLowerCase()===this.userLocationService.getUserLocation().city.toLowerCase()).sort((Ve,mt)=>Ve.price-mt.price)[0]}valueChanges(Xe){this.quantity!==Xe.quantity&&(this.offer.inStock?this.offerForm.valid&&(this.quantity=parseInt(Xe.quantity,10)):this.offerForm.setErrors({numeric:"Stoc insuficient"}))}add(){this.offer.inStock&&(this.quantity++,this.offerForm.get("quantity").setValue(this.quantity))}addSelectClass(Xe){Xe._elementRef.nativeElement.classList.add("mat-focused")}removeSelectClass(Xe){Xe._elementRef.nativeElement.classList.remove("mat-focused")}subtract(){this.offer.inStock&&this.quantity>1&&(this.quantity--,this.offerForm.get("quantity").setValue(this.quantity))}loadProduct(){this.offer=this.isPromotionProduct()?this.promotionProductToOffer():this.offer||this.product.bestOffer||null,this.offerForm.patchValue({offer:this.offer,quantity:this.quantity}),this.offerForm.updateValueAndValidity()}stopClickPropagate(Xe){Xe.stopPropagation(),Xe.preventDefault()}addProductToCart(){if(!this.user&&!this.userService.getGuestId()&&this.userService.createGuestId(),(null==this.product||null==this.product.offers)&&!this.isPromotionProduct())return;if(this.product?.offers?.length>1)return this.openProductOffersDialog();const Xe=this.isPromotionProduct()?this.createAddProductToCartFromPromotion():this.createAddProductToCartFromBestOffer();this.cartHelper.addOfferToCartIfLocationAvailable(Xe)}createAddProductToCartFromPromotion(){const Xe=this.product;return{businessId:Xe.businessId||Xe.businessExternalId,productSlug:Xe.productSlug||Xe.slug,quantity:this.quantity,mustConfirmAge:Xe.mustConfirmAge,isPromotionalProduct:!0,messageSnackbarType:this.messageSnackbarType,requiresPrescription:this.product.requiresPrescription,offer:this.promotionProductToOffer(),sgrValue:Xe.sgrValue}}createAddProductToCartFromBestOffer(){const Xe=this.product.bestOffer;return{businessId:Xe.businessExternalId,productSlug:Xe.productSlug,quantity:this.quantity,mustConfirmAge:this.product.mustConfirmAge,isPromotionalProduct:!1,messageSnackbarType:this.messageSnackbarType,requiresPrescription:this.product.requiresPrescription,offer:Xe}}isPromotionProduct(){return[h.yP3.PROMOTION_CAROUSEL,h.yP3.MINIMAL,h.yP3.BUSINESS_CAROUSEL].includes(this.type)}promotionProductToOffer(){const Xe=this.product;Xe.businessExternalId||(Xe.businessExternalId=Xe.businessId,Xe.productId=Xe.id,Xe.price=Xe.productPrice);const Pe=new u.kt(new u.Cu(Xe),{productId:Xe.id,businessExternalId:Xe.businessExternalId,businessName:Xe.businessName,businessSlug:Xe.businessSlug,price:Xe.productPrice,stock:Xe.stock,atcs:Xe.atcs,prescriptionNeeded:Xe.prescriptionNeeded,inStock:Xe.stock>0});return Xe.packaging?Pe.packaging.images[0].medium=Xe.packaging.images[0].medium:Xe.images&&(Pe.packaging.images[0].medium=Xe.images[0].medium),Pe.drugName=Xe.productName?Xe.productName:Xe.registered_name,Pe.productSlug=Xe.productSlug?Xe.productSlug:Xe.slug,Pe}openProductOffersDialog(){this.dialog.open(g.L,{data:{product:this.product},minWidth:(0,h.I3d)(1404),minHeight:this.getDialogHeight(),maxHeight:this.getDialogHeight(),position:h.VLR.getDialogPosition(),panelClass:"base-panel-class"}).afterClosed().pipe((0,l.q)(1)).subscribe(Pe=>{Pe&&this.router.navigate(Pe.routerLink)})}getDialogHeight(Xe=!0){return window.innerWidth<=h.u3l.TABLET?window.innerHeight-2*(h.VLR.isNativeIos?h.miL:h._vr):Xe?"90%":null}getDialogPosition(Xe=!0){return Xe&&h.VLR.isNativeIos?`${h.miL}px`:window.innerWidth>=h.u3l.TABLET?Xe?`${h._p0}px`:null:`${h._vr}px`}findIfProductIsInCart(){this.cartSub=this.cartService.get().subscribe(Xe=>{this.isProductInCart=Xe.allItems.map(Pe=>Pe.name).includes(this.offer.getDrugAndPackageName())})}findIfOfferIsInCart(Xe){this.cartSub=this.cartService.get().subscribe(Pe=>{const Ve=Pe.allItems.filter(mt=>mt.name===Xe.getDrugAndPackageName());this.isOfferInCart=!(Ve.length<1)&&Ve[0].businessExternalId===Xe.businessExternalId})}setPackagings(Xe,Pe){this.packagingsToShow=Xe?.getPackagingForUserCity(Pe?.city?.toUpperCase())}get Breakpoints(){return h.u3l}}At.\u0275fac=function(Xe){return new(Xe||At)(e.\u0275\u0275directiveInject(h.vio.CartServiceToken),e.\u0275\u0275directiveInject(h.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(h.vio.SnackbarMessageServiceToken),e.\u0275\u0275directiveInject(h.vio.PixelTrackingService),e.\u0275\u0275directiveInject(h.vio.SnackbarMessageServiceToken),e.\u0275\u0275directiveInject(p.CH),e.\u0275\u0275directiveInject(y.O),e.\u0275\u0275directiveInject(S.F0),e.\u0275\u0275directiveInject(E.on),e.\u0275\u0275directiveInject(v.M))},At.\u0275cmp=e.\u0275\u0275defineComponent({type:At,selectors:[["app-controls"]],hostBindings:function(Xe,Pe){1&Xe&&e.\u0275\u0275listener("resize",function(){return Pe.onWindowResize()},!1,e.\u0275\u0275resolveWindow)},inputs:{product:"product",loadingFromMultipleOffers:"loadingFromMultipleOffers",products:"products",type:"type",offer:"offer",package:"package",quantity:"quantity",quantities:"quantities",messageSnackbarType:"messageSnackbarType",isAddOfferToCartLoading:"isAddOfferToCartLoading",hideButtonsOnCarousel:"hideButtonsOnCarousel"},outputs:{packageChangeEvent:"packageChangeEvent",openProductDialogEvent:"openProductDialogEvent",openProductOffersDialogEvent:"openProductOffersDialogEvent",closeOffersDialog:"closeOffersDialog",setMultipleOffersLoading:"setMultipleOffersLoading",sendProductQuantity:"sendProductQuantity"},features:[e.\u0275\u0275NgOnChangesFeature],decls:5,vars:4,consts:[[1,"product-controls"],[4,"ngIf"],["fxLayout","row","fxLayout.xs","column","fxLayoutAlign","center center",1,"text-muted"],["fxFlex.gt-md","100","fxLayout","row","fxLayoutAlign","space-between center",1,"add-to-cart-btn-container"],["mat-icon-button","","class","btn btn__gray",3,"ngClass","matTooltip","click",4,"ngIf"],["mat-icon-button","",1,"btn","btn__gray",3,"ngClass","matTooltip","click"],[1,"material-icons"],["fxLayout","row wrap","fxLayout.lt-md","column",1,"product-details-page",3,"formGroup","ngClass","fxLayoutAlign","ngSubmit"],["fxFlex","","class","selector-container mb-24",3,"ngClass",4,"ngIf"],["fxLayoutGap","12px","fxFlex","","fxLayout","row","fxLayout.sm","row","fxLayout.lt-md","row wrap",4,"ngIf"],["fxFlex","",1,"selector-container","mb-24",3,"ngClass"],["appearance","outline","fxFlex","",1,"mat-select-field"],["selectPanel",""],["id","selectPackage","formControlName","package","panelClass","options",1,"offer",3,"disableOptionCentering","value","placeholder","valueChange","opened","closed"],["selectPackage",""],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",3,"value","onSelectionChange",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",3,"value","onSelectionChange"],["fxFlex","","fxLayoutAlign","start center",1,"text-truncate"],["ngClass.lt-md","ml-16","fxFlex","",1,"text-truncate"],["fxLayoutGap","12px","fxFlex","","fxLayout","row","fxLayout.sm","row","fxLayout.lt-md","row wrap"],["fxFlex","","fxLayout","row",4,"ngIf"],["fxFlex","","fxLayout","row"],["fxLayoutGap","10px","class","mr-16","fxLayout","row","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxLayoutAlign","start center","fxFlex","",1,"add-to-cart-btn-container",3,"ngClass"],["color","primary","fxFlex","","mat-flat-button","","type","submit",1,"add-to-cart","gtm-add-to-cart","disable-shadow",3,"disabled"],[1,"add-to-cart-icon"],[3,"fxHide","diameter"],["fxLayoutGap","10px","fxLayout","row","fxLayoutAlign","space-between center",1,"mr-16",3,"ngClass"],["mat-icon-button","","type","button",1,"quantity-button",3,"disabled","click"],[1,"material-icons","ic","minus-symbol",3,"ngClass"],["formControlName","quantity",1,"quantity","text-center"],[1,"material-icons","ic","plus-symbol",3,"ngClass"],["fxLayout","row wrap","fxLayoutGap","10px",1,"product-details-page",3,"formGroup","ngSubmit"],["fxFlex","","fxLayout","column",1,"product-details-page-sticky"],["fxLayoutAlign","space-between center",1,"mb-16",3,"click"],[1,"price",3,"innerHTML"],["class","add-to-favorites",3,"product","productSlug",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutGap","10px","class","sticky-buttons mr-24",4,"ngIf"],[1,"add-to-cart-btn-container","w-100",3,"ngClass"],["color","primary",3,"disabled","type","iconPosition","icon","textTranslationKey"],[1,"add-to-favorites",3,"product","productSlug"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutGap","10px",1,"sticky-buttons","mr-24"],[1,"material-icons","ic",3,"ngClass"],["ngClass.lt-sm","mt-16","fxFlex","",1,"offers-container",3,"formGroup","ngSubmit"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutAlign.lt-md","center space-between","fxFlex","",3,"fxLayoutGap","fxLayout","ngClass"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center","fxLayoutAlign.lt-md","center center",1,"mr-24","price-wrapper",3,"ngClass"],["fxFlex","","fxLayoutAlign","end center","fxLayoutGap","3px"],[3,"innerHTML"],["fxLayoutAlign.lt-md","center center",4,"ngIf"],["fxLayoutAlign.lt-md","center center"],["class","no-button","fxLayout","row","fxFlex","182px",3,"ngClass",4,"ngIf"],["class","add-to-cart-btn-container",3,"ngClass",4,"ngIf"],["fxLayout","row","fxFlex","182px",1,"no-button",3,"ngClass"],[1,"add-to-cart-btn-container",3,"ngClass"],["mat-flat-button","","fxFlex","182px","type","submit",1,"green-button-style","mat-primary","shopping-button",3,"fxHide","disabled","matTooltip"],[1,"material-icons",3,"ngClass"]],template:function(Xe,Pe){1&Xe&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,de,4,1,"ng-container",1),e.\u0275\u0275template(2,Fe,4,7,"ng-container",1),e.\u0275\u0275template(3,Ie,3,2,"ng-container",1),e.\u0275\u0275template(4,bt,10,20,"ng-container",1),e.\u0275\u0275elementEnd()),2&Xe&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.type===Pe.controlType.MINIMAL),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.type===Pe.controlType.PRODUCT_DETAIL_PAGE),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.type===Pe.controlType.PRODUCT_DETAIL_PAGE_STICKY),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.type===Pe.controlType.OFFERS_POPUP))},dependencies:[D.K,A.r,P.NgClass,P.NgForOf,P.NgIf,B.xw,B.SQ,B.Wh,B.yH,V.b8,V.oO,X.CK,re.eB,Q.Hw,ae.v_,K.x8,k.Kd,$._Y,$.JJ,$.JL,$.sg,$.u,j.l,P.UpperCasePipe,R.d,U.W,le.X$],styles:['.mat-option[_ngcontent-%COMP%]{padding:0 0 0 8px!important}.add-to-favorites[_ngcontent-%COMP%]{background-color:#fff}.add-to-favorites[_ngcontent-%COMP%]:hover   .fav-border-background[_ngcontent-%COMP%]:before{content:"favorite";color:#7b7b7b}.product-details-page-sticky[_ngcontent-%COMP%]{height:40px}.product-details-page-sticky[_ngcontent-%COMP%]   .add-to-cart-button[_ngcontent-%COMP%]{margin-top:0!important}.product-details-page-sticky[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{line-height:29px;font-weight:700;font-size:22px}.full-width-button[_ngcontent-%COMP%]{display:block!important;width:100%!important}.ml-16[_ngcontent-%COMP%]{margin-left:16px}.text-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.price-text[_ngcontent-%COMP%]{margin-right:24px;font-weight:700;color:#000}.margin-right-div[_ngcontent-%COMP%]{margin-right:-22px}.price-wrapper[_ngcontent-%COMP%]{white-space:nowrap}.in-cart-now[_ngcontent-%COMP%]{place-content:center flex-end}.in-cart-container[_ngcontent-%COMP%]{align-items:center!important;min-height:40px}.add-all-cart-btn[_ngcontent-%COMP%]{background-color:#00853b;color:#fff;padding:10px;border-radius:4px;margin-top:-8px;margin-right:16px;margin-left:16px;font-weight:bolder;cursor:pointer}.add-all-cart-btn-text[_ngcontent-%COMP%]{margin-left:12px;display:block}.btn-add-to-cart[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{height:21px;width:22px;font-size:20px;margin-top:-2px}@media (max-width: 960px){input[_ngcontent-%COMP%]{text-align:center}}@media (max-width: 768px){.mat-flat-button[_ngcontent-%COMP%]{padding:0!important}.add-all-cart-btn[_ngcontent-%COMP%]{margin:0;width:100%}.add-all-cart-btn-icon[_ngcontent-%COMP%]{margin-top:5px}.add-all-cart-btn-text[_ngcontent-%COMP%]{width:100%;text-align:center}}@media (max-width: 420px){.button-xs[_ngcontent-%COMP%]{width:100%}.btn__green[_ngcontent-%COMP%]{padding:0px calc((100% - 108px)/2)}.product-details-page[_ngcontent-%COMP%]   .add-to-cart-button[_ngcontent-%COMP%]{margin-top:0!important;min-width:145px!important}.add-to-cart[_ngcontent-%COMP%]   .add-to-cart-icon[_ngcontent-%COMP%]{margin:0}}.mt-15[_ngcontent-%COMP%]{margin-top:15px}.mt-12[_ngcontent-%COMP%]{margin-top:12px}.mt-11[_ngcontent-%COMP%]{margin-top:11px}.mt-8[_ngcontent-%COMP%]{margin-top:8px}.quantity[_ngcontent-%COMP%]{font-weight:900;font-size:15px;width:55px;margin:0!important}.add-to-cart[_ngcontent-%COMP%]{padding:0;font-size:14px;letter-spacing:1.5px;height:40px}.add-to-cart[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{float:left;margin:8px 0 0 8px;font-size:20px}.add-to-cart--sticky[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin:8px 0 0 8px!important}.center-if-unavailable[_ngcontent-%COMP%]{align-items:center!important}.height-50[_ngcontent-%COMP%]{height:50px}.add-to-cart[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#007534!important}.add-to-cart[disabled][_ngcontent-%COMP%]{background-color:#bbb!important;color:#fff!important}.button-enabled-color[_ngcontent-%COMP%]{color:#00853b}button[_ngcontent-%COMP%]   .ic[_ngcontent-%COMP%]{font-size:36px}button[_ngcontent-%COMP%]:hover   .ic.button-enabled-color[_ngcontent-%COMP%]{color:#007534}.quantity-button[_ngcontent-%COMP%]{margin:0 0 4px!important}.minus-symbol[_ngcontent-%COMP%]{float:left!important}.plus-button[_ngcontent-%COMP%]{float:right!important}.add-to-cart-button-text[_ngcontent-%COMP%]{font-size:14px}.add-to-cart-btn-container[_ngcontent-%COMP%]{position:relative}.loading-button[_ngcontent-%COMP%]   drc-button[_ngcontent-%COMP%]{opacity:.3;pointer-events:none}.loading-button[_ngcontent-%COMP%]   drc-page-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}']}),function($e,Xe,Pe,Ve){var xn,mt=arguments.length,It=mt<3?Xe:null===Ve?Ve=Object.getOwnPropertyDescriptor(Xe,Pe):Ve;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)It=Reflect.decorate($e,Xe,Pe,Ve);else for(var _n=$e.length-1;_n>=0;_n--)(xn=$e[_n])&&(It=(mt<3?xn(It):mt>3?xn(Xe,Pe,It):xn(Xe,Pe))||It);mt>3&&It&&Object.defineProperty(Xe,Pe,It)}([(0,d.I)(),function($e,Xe){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Xe)}(0,s.n)],At.prototype,"user",void 0)},40750:(oe,x,i)=>{"use strict";i.d(x,{l:()=>V});var e=i(77579),n=i(82722),a=i(28918),t=i(77044),l=i(55738),h=i(92829),s=i(10260),p=(i(32420),i(53433)),u=i(94650),g=i(28555),v=i(89383),y=i(36895),b=i(99818),S=i(47462);function A(X,re){1&X&&(u.\u0275\u0275elementStart(0,"i",4),u.\u0275\u0275text(1,"favorite"),u.\u0275\u0275elementEnd())}function P(X,re){if(1&X&&(u.\u0275\u0275elementStart(0,"i",5)(1,"span"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&X){const Q=u.\u0275\u0275nextContext(2);u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(Q.isHovered?"favorite":"favorite_border")}}function B(X,re){if(1&X){const Q=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"button",1),u.\u0275\u0275listener("mouseenter",function(){u.\u0275\u0275restoreView(Q);const K=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(K.isHovered=!0)})("mouseleave",function(){u.\u0275\u0275restoreView(Q);const K=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(K.isHovered=!1)})("click",function(){u.\u0275\u0275restoreView(Q);const K=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(K.manageFavorites())}),u.\u0275\u0275pipe(1,"translate"),u.\u0275\u0275template(2,A,2,0,"i",2),u.\u0275\u0275template(3,P,3,1,"i",3),u.\u0275\u0275elementEnd()}if(2&X){const Q=u.\u0275\u0275nextContext();u.\u0275\u0275property("matTooltip",u.\u0275\u0275pipeBind1(1,3,"SHARED.PRODUCT.PRODUCT_CARD_WISHLIST_COMPONENT.ADD_TO_FAVORITES")),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",Q.isInFavourites),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!Q.isInFavourites)}}class V{constructor(re,Q,ae){this.store=re,this.translateService=Q,this.messageService=ae,this.isInFavourites=!1,this.isHovered=!1,this.destroy$=new e.x}ngOnInit(){this.getSelectedProduct()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getSelectedProduct(){this.store.select(s.g,{id:this.product.slug}).pipe((0,n.R)(this.destroy$)).subscribe(re=>{let Q;re||(Q=this.addMissingProduct()),this.selectedProduct=re||Q,this.isInFavourites=this.isInDefaultList()})}addMissingProduct(){const re=this.product.toFavouriteProductPayload();return this.store.dispatch(p.N.addMissingProduct({product:re})),re}isInDefaultList(){return!!this.selectedProduct?.packagings?.find(re=>re.productSlug===this.productSlug||re.productSlug===this.product.slug)?.inFavouriteLists[h.HA]}manageFavorites(){const re=this.selectedProduct.packagings.find($=>$.productSlug===this.productSlug).inFavouriteLists,Q=this.isInFavourites?{}:{"-1":"DEFAULT_LIST"},ae=this.isInFavourites?"PRODUCT_REMOVED_FROM_LIST":"PRODUCT_ADDED_TO_LIST",K=!this.isInFavourites;let k;K||(k=this.selectedProduct.packagings.find($=>$.productSlug===this.productSlug).inFavouriteLists),re&&this.updateProductInStore(K,Q,ae,k)}updateProductInStore(re,Q,ae,K){const k=JSON.parse(JSON.stringify(this.selectedProduct));k.packagings.find(j=>j.productSlug===this.productSlug).inFavouriteLists=Q,k.productSlug=this.productSlug,this.store.dispatch(p.N.updateProduct({selected:re,updatedProduct:k,isGuest:!this.user,deletedLists:K}));const $=this.translateService.instant("PAGES.PATIENT.FAVORITES.FAVORITES_LIST.DEFAULT_LIST");this.messageService.displayMessage(a.CsS.SUCCESS,`SERVICES.UNDO_REDO.${ae}`,{listName:$}),this.isInFavourites=re}}V.\u0275fac=function(re){return new(re||V)(u.\u0275\u0275directiveInject(g.yh),u.\u0275\u0275directiveInject(v.sK),u.\u0275\u0275directiveInject(a.vio.SnackbarMessageServiceToken))},V.\u0275cmp=u.\u0275\u0275defineComponent({type:V,selectors:[["app-favourites-heart-btn"]],inputs:{product:"product",productSlug:"productSlug",type:"type"},decls:1,vars:1,consts:[["mat-icon-button","",3,"matTooltip","mouseenter","mouseleave","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","mouseenter","mouseleave","click"],["class","material-icons text-warn-color",4,"ngIf"],["class","material-icons fav-border-background",4,"ngIf"],[1,"material-icons","text-warn-color"],[1,"material-icons","fav-border-background"]],template:function(re,Q){1&re&&u.\u0275\u0275template(0,B,4,5,"button",0),2&re&&u.\u0275\u0275property("ngIf",!(null!=Q.user&&Q.user.isBusiness()))},dependencies:[y.NgIf,b.eB,S.Kd,v.X$],styles:["button[_ngcontent-%COMP%]   .fav-border-background[_ngcontent-%COMP%]{color:#7b7b7b}"]}),function(X,re,Q,ae){var $,K=arguments.length,k=K<3?re:null===ae?ae=Object.getOwnPropertyDescriptor(re,Q):ae;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)k=Reflect.decorate(X,re,Q,ae);else for(var j=X.length-1;j>=0;j--)($=X[j])&&(k=(K<3?$(k):K>3?$(re,Q,k):$(re,Q))||k);K>3&&k&&Object.defineProperty(re,Q,k)}([(0,t.I)(),function(X,re){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",re)}(0,l.n)],V.prototype,"user",void 0)},84142:(oe,x,i)=>{"use strict";i.d(x,{r:()=>wt});var e=i(94650),n=i(44393),a=i(47957),t=i(24006),l=i(98184),h=i(9116),s=i(71884),d=i(78372),p=i(82722),u=i(95698),g=i(77579),v=i(28918),y=i(55738),b=i(77044),S=i(11828),E=i(35559),D=i(89383),A=i(36895),P=i(1576),B=i(55829),V=i(24363),X=i(99818),re=i(28377),Q=i(97392),ae=i(3611);const $=["mainSearch"];function j(Wt,Ut){if(1&Wt&&(e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275element(1,"img",12),e.\u0275\u0275elementStart(2,"div",13),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()),2&Wt){const nt=Ut.$implicit,Zt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("routerLink",Zt.marketLink+(null==nt?null:nt.slug)),e.\u0275\u0275advance(1),e.\u0275\u0275property("src",Zt.getBusinessProfileImage(nt),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==nt?null:nt.name)}}function R(Wt,Ut){if(1&Wt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",8)(2,"div",9)(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(6,j,4,3,"div",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&Wt){const nt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,2,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.PARTNER")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",nt.searchResult.businesses)}}function U(Wt,Ut){if(1&Wt){const nt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-option",17)(1,"mat-icon",18),e.\u0275\u0275text(2,"access_time"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"span",19),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"button",20),e.\u0275\u0275listener("click",function(Fe){const ie=e.\u0275\u0275restoreView(nt).$implicit,Ce=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(Ce.deleteSearchEntryFromHistory(Fe,ie))}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()()}if(2&Wt){const nt=Ut.$implicit,Zt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("value",Zt.toSearchDto(nt)),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(null==nt?null:nt.keyword),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,3,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.REMOVE")," ")}}const le=function(Wt){return{"mb-1":Wt}};function T(Wt,Ut){if(1&Wt&&(e.\u0275\u0275elementStart(0,"mat-option",21)(1,"mat-icon",18),e.\u0275\u0275text(2,"search"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()),2&Wt){const nt=Ut.$implicit,Zt=Ut.last,Fe=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(3,le,Zt))("value",Fe.toSearchDto(nt)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",nt," ")}}function H(Wt,Ut){if(1&Wt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,U,8,5,"mat-option",14),e.\u0275\u0275pipe(2,"slice"),e.\u0275\u0275elementStart(3,"div",15)(4,"span"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(7,T,4,5,"mat-option",16),e.\u0275\u0275elementContainerEnd()),2&Wt){const nt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind3(2,3,nt.searchData.userSearches,0,3)),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,7,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.POPULAR_SEARCH")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",nt.searchData.popularSearches)}}function N(Wt,Ut){if(1&Wt&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&Wt){const nt=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("\xa0 in ",nt.category.description,"")}}function pe(Wt,Ut){if(1&Wt&&(e.\u0275\u0275elementStart(0,"mat-option",24)(1,"div",25)(2,"mat-icon",18),e.\u0275\u0275text(3,"search"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",26),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,N,2,1,"span",6),e.\u0275\u0275elementEnd()()),2&Wt){const nt=Ut.$implicit,Zt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("value",Zt.toSearchDto(nt)),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(nt.keyword),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",nt.category)}}function de(Wt,Ut){if(1&Wt&&(e.\u0275\u0275elementStart(0,"mat-option",29)(1,"div",30),e.\u0275\u0275element(2,"img",31),e.\u0275\u0275elementStart(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()()),2&Wt){const nt=e.\u0275\u0275nextContext(),Zt=nt.last,Fe=nt.$implicit,yt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,le,Zt))("value",yt.toSearchDto(Fe)),e.\u0275\u0275advance(2),e.\u0275\u0275property("src",yt.getImagesForSearch(Fe.productThumbnailStorageKey)||"src/assets/images/products/default/no-img-thumbnail.jpg",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(Fe.productName)}}function me(Wt,Ut){1&Wt&&(e.\u0275\u0275elementStart(0,"div",32),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&Wt&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.NO_RESULTS")," "))}function q(Wt,Ut){if(1&Wt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,de,5,6,"mat-option",27),e.\u0275\u0275template(2,me,3,3,"div",28),e.\u0275\u0275elementContainerEnd()),2&Wt){const nt=Ut.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","noResults"!==nt),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","noResults"===nt)}}function se(Wt,Ut){if(1&Wt&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",15)(2,"span"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,pe,7,3,"mat-option",22),e.\u0275\u0275elementContainerStart(6),e.\u0275\u0275elementStart(7,"div",15)(8,"span"),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(11,q,3,2,"ng-container",23),e.\u0275\u0275elementContainerEnd()()),2&Wt){const nt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,4,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.SEARCH_SUGGESTIONS")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",nt.searchResult.suggestions),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(10,6,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.RELATED_ARTICLES")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",nt.searchResult.results)}}const ve=function(Wt){return{opened:Wt}};class wt{constructor(Ut,nt,Zt,Fe,yt,ie,Ce){this.searchService=Ut,this.changeDetector=nt,this.router=Zt,this.dialog=Fe,this.translateService=yt,this.messageService=ie,this.userLocationService=Ce,this.searchTerm=new t.NI,this.searchResult={suggestions:[],results:[],businesses:[]},this.searchOpened=!1,this.window=window,this.searchData=new v.TxW,this.destroy$=new g.x,this.marketLink=`${v.ZTG.SHOP_ROUTE}/`,this.focusEvent=new e.EventEmitter,this.router.events.subscribe(Ie=>{Ie instanceof h.OD&&this.searchTrigger.closePanel(),Ie instanceof h.m2&&this.setInitialSearchValue()}),this.searchTerm.valueChanges.pipe((0,s.x)(),(0,d.b)(400),(0,p.R)(this.destroy$)).subscribe(Ie=>{if(this.searchResult.businesses=[],!Ie)return this.searchResult={suggestions:[],results:[],businesses:[]},!1;if(Ie.trim().length>=3){const dt={keyword:Ie,locality:this.userLocationService.getUserLocation()?.city,county:this.userLocationService.getUserLocation()?.county};this.searchService.getSearchSuggestions(dt).pipe((0,s.x)(),(0,p.R)(this.destroy$)).subscribe(Mt=>{Mt?.businesses?.length&&(this.searchResult.businesses=Mt.businesses),this.searchResult.suggestions=[],this.searchResult.suggestions.push({keyword:Mt.guessedWord,category:null}),Mt.categories.forEach(Xt=>{this.searchResult.suggestions.push({keyword:Mt.guessedWord,category:Xt})}),Mt.alternativeWords.forEach(Xt=>{this.searchResult.suggestions.push({keyword:Xt,category:null})}),this.searchResult.results=Mt.products.length?Mt.products:["noResults"],this.changeDetector.detectChanges()})}})}setInitialSearchValue(){const Ut=this.router.url.split("/"),nt=Ut[2]===v.Z2M.SEARCH&&Ut[3]?decodeURI(Ut[3].split("?")[0]):"";this.searchTerm.setValue(nt)}ngOnInit(){this.setHomePageUrl(),this.router.url.includes(`${v.Z2M.PRODUCTS}/${v.Z2M.SEARCH}`)&&this.setInitialSearchValue()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){setTimeout(()=>{this.searchService.getSearchData().subscribe(Ut=>{this.searchData=Ut})},1e3),this.searchTrigger.autocomplete.closed.subscribe(()=>{this.searchOpened=!1}),this.searchTrigger.autocomplete.opened.subscribe(()=>{this.searchOpened=!0}),this.searchTrigger.autocomplete.optionSelected.subscribe(()=>{this.searchResult={suggestions:[],results:[],businesses:[]}})}search(Ut){if(!this.selectedValue&&this.isSearchTermValid(Ut)){const nt=this.formatSearchTerm(Ut.trim());this.navigateTo(`${v.Z2M.PRODUCTS}/${v.Z2M.SEARCH}/${nt}`).then(()=>{this.dialog.closeAll(),this.resetInput(Ut),this.addToHistory({keyword:Ut},!0,!0)})}}getImagesForSearch(Ut){return S.Z.images+Ut}toSearchDto(Ut){return{value:!Ut||Ut.productName||Ut.keyword?Ut:{keyword:Ut},origin:Ut&&Ut.productName?"productResult":"suggestion"}}selectOption(Ut){if(this.selectedValue=Ut,setTimeout(()=>{this.selectedValue=null},200),"productResult"===Ut.origin)this.resetInput(),this.navigateTo(`/${v.Z2M.PRODUCTS}/${v.VLR.slugify(Ut.value.productCategory.description)}-${Ut.value.productCategory.atc}/${Ut.value.productSlug}`).then(()=>{this.dialog.closeAll(),this.resetInput(Ut.value.productName),this.addToHistory({keyword:Ut.value.productName},!0,!0)});else{const nt=Ut.value.category?{category:Ut.value.category.atc}:null,Zt=this.formatSearchTerm(Ut.value.keyword);this.navigateTo(`/${v.Z2M.PRODUCTS}/${v.Z2M.SEARCH}/${Zt}`,nt).then(()=>{this.dialog.closeAll(),this.resetInput(Ut.value.keyword),this.addToHistory(Ut.value,!0,!0)})}}addToHistory(Ut,nt=!1,Zt=!1){const Fe=!!this.searchData.userSearches?.find(yt=>yt.keyword.toLowerCase()===Ut.keyword.toLowerCase());if(!Fe){if(this.user&&"business"!==this.user.getType())return nt?void this.searchService.addToRemoteHistory(Ut).pipe((0,u.q)(1)).subscribe():void this.searchService.updateSearchHistory(Ut);(!Zt||Zt&&!Fe)&&this.searchService.addToLocalHistory(Ut).pipe((0,u.q)(1)).subscribe()}}deleteSearchEntryFromHistory(Ut,nt){Ut.stopPropagation(),Ut.preventDefault(),this.searchService.deleteSearchEntry(nt).subscribe()}navigateTo(Ut,nt){return nt?this.router.navigate([Ut],{queryParams:nt}):this.router.navigate([Ut])}setAutocompleteState(Ut){this.searchOpened="focusin"===Ut.type,this.focusEvent.emit()}resetInput(Ut){this.searchTerm.reset(Ut||"")}formatSearchTerm(Ut){return Ut.replace(/[?\/_]/gi," ")}setHomePageUrl(){this.onHomePage=this.router.url===v.s67,this.router.events.subscribe(Ut=>{Ut instanceof h.OD&&(this.onHomePage=Ut.url===v.s67)})}isSearchTermValid(Ut){const nt=Ut?Ut?.trim():"";return this.checkForErrors(nt)}checkForErrors(Ut){return Ut?.length&&Ut.length>100?(this.messageService.displayMessage(v.CsS.ERROR,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.MAX_LENGTH_ERROR",{value:100}),!1):!(!Ut?.length||Ut.length<=0)||(this.messageService.displayMessage(v.CsS.ERROR,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.MIN_LENGTH_ERROR"),!1)}getBusinessProfileImage(Ut){return Ut?.profileImageKey?S.Z.images+Ut?.profileImageKey:v.LeP}}wt.\u0275fac=function(Ut){return new(Ut||wt)(e.\u0275\u0275directiveInject(v.vio.SearchServiceToken),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(h.F0),e.\u0275\u0275directiveInject(E.on),e.\u0275\u0275directiveInject(D.sK),e.\u0275\u0275directiveInject(v.vio.SnackbarMessageServiceToken),e.\u0275\u0275directiveInject(v.vio.UserLocationServiceToken))},wt.\u0275cmp=e.\u0275\u0275defineComponent({type:wt,selectors:[["app-global-searchbar"]],viewQuery:function(Ut,nt){if(1&Ut&&(e.\u0275\u0275viewQuery(n.QJ,7),e.\u0275\u0275viewQuery($,5)),2&Ut){let Zt;e.\u0275\u0275queryRefresh(Zt=e.\u0275\u0275loadQuery())&&(nt.searchTrigger=Zt.first),e.\u0275\u0275queryRefresh(Zt=e.\u0275\u0275loadQuery())&&(nt.autocomplete=Zt.first)}},outputs:{focusEvent:"focusEvent"},features:[e.\u0275\u0275ProvidersFeature([{provide:a.g8,useFactory:function Ye(Wt){return()=>Wt.scrollStrategies.close()},deps:[l.aV]}])],decls:13,vars:12,consts:[["fxLayout","column",1,"search-container"],["fxLayout","row",1,"search-form",3,"ngClass"],["fxFlex","","type","text",1,"search-input",3,"formControl","matAutocomplete","maxlength","placeholder","focusin","keydown.enter"],["searchInput",""],[1,"product-searchbar-autocomplete","searchbar-autocomplete-position","mat-elevation-z0",3,"optionSelected"],["mainSearch","matAutocomplete"],[4,"ngIf"],["mat-mini-fab","","type","button",1,"search-btn","mat-elevation-z0","text-muted",3,"click"],[1,"cursor-pointer","partner-wrapper"],["fxLayout","column","fxLayoutAlign","center start",1,"subtitle-option","partner-subtitle"],["fxLayoutAlign","start center","class","partner",3,"routerLink",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"partner",3,"routerLink"],["mat-card-avatar","",1,"partner-image",3,"src"],[1,"partner-name"],["fxLayout","row",3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","center start",1,"subtitle-option"],[3,"ngClass","value",4,"ngFor","ngForOf"],["fxLayout","row",3,"value"],["color","accent"],[1,"option-wrapper"],["fxFlexOffset","auto",1,"remove-btn","cursor-pointer",3,"click"],[3,"ngClass","value"],[3,"value",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[3,"value"],["fxLayout","row"],[1,"primary-text"],["class","product-option",3,"ngClass","value",4,"ngIf"],["class","no-results","fxLayoutAlign","start center",4,"ngIf"],[1,"product-option",3,"ngClass","value"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","10px"],[3,"src"],["fxLayoutAlign","start center",1,"no-results"]],template:function(Ut,nt){if(1&Ut){const Zt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0)(1,"form",1)(2,"input",2,3),e.\u0275\u0275listener("focusin",function(yt){return nt.setAutocompleteState(yt)})("keydown.enter",function(){e.\u0275\u0275restoreView(Zt);const yt=e.\u0275\u0275reference(3);return e.\u0275\u0275resetView(nt.search(yt.value))}),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"mat-autocomplete",4,5),e.\u0275\u0275listener("optionSelected",function(yt){return nt.selectOption(yt.option.value)}),e.\u0275\u0275template(7,R,7,4,"ng-container",6),e.\u0275\u0275template(8,H,8,9,"ng-container",6),e.\u0275\u0275template(9,se,12,8,"ng-container",6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"button",7),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Zt);const yt=e.\u0275\u0275reference(3);return e.\u0275\u0275resetView(nt.search(yt.value))}),e.\u0275\u0275elementStart(11,"mat-icon"),e.\u0275\u0275text(12,"search"),e.\u0275\u0275elementEnd()()()()}if(2&Ut){const Zt=e.\u0275\u0275reference(6);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(10,ve,nt.searchOpened)),e.\u0275\u0275advance(1),e.\u0275\u0275property("formControl",nt.searchTerm)("matAutocomplete",Zt)("maxlength",100)("placeholder",e.\u0275\u0275pipeBind1(4,8,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.INPUT_SEARCH")),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",null==nt.searchResult||null==nt.searchResult.businesses?null:nt.searchResult.businesses.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!nt.searchTerm.value||(null==nt.searchTerm.value?null:nt.searchTerm.value.length)<3),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==nt.searchTerm.value?null:nt.searchTerm.value.length)>=3&&nt.searchResult)}},dependencies:[A.NgClass,A.NgForOf,A.NgIf,h.rH,P.xw,P.SQ,P.Wh,P.UT,P.yH,B.oO,n.VN,n.QJ,V.CK,X.eB,re.lb,Q.Hw,t._Y,t.Fj,t.JJ,t.JL,t.nD,t.F,t.oH,ae.b,A.SlicePipe,D.X$],styles:[".search-form[_ngcontent-%COMP%]{border-radius:22px}.search-form[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]{border-radius:22px;font-size:15px;padding-right:35px}.search-form[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{border:1px solid #bbbbbb}.search-form[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::placeholder{font-size:13px;color:#242424}.no-results[_ngcontent-%COMP%]{height:48px!important;padding:0 16px}.remove-btn[_ngcontent-%COMP%]{outline:0;background-color:transparent;border:none}.subtitle-option[_ngcontent-%COMP%]{height:35px;padding:0 16px;font-weight:700;font-size:14px;line-height:17px;pointer-events:none;vertical-align:middle}.partner-wrapper[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.partner-wrapper[_ngcontent-%COMP%]   .partner-subtitle[_ngcontent-%COMP%]{margin:8px 0}.partner-wrapper[_ngcontent-%COMP%]   .partner[_ngcontent-%COMP%]{margin-bottom:16px;padding-left:16px}.partner-wrapper[_ngcontent-%COMP%]   .partner[_ngcontent-%COMP%]   .partner-image[_ngcontent-%COMP%]{width:45px;height:45px;margin-right:8px}.partner-wrapper[_ngcontent-%COMP%]   .partner[_ngcontent-%COMP%]   .partner-name[_ngcontent-%COMP%]{font-size:14px;color:#00853b;font-weight:700}.prevent-click[_ngcontent-%COMP%]{pointer-events:none}.option-wrapper[_ngcontent-%COMP%]{max-width:calc(100% - 75px);overflow:hidden;margin-right:8px}@media (max-width: 420px){.search-container[_ngcontent-%COMP%]   .search-button[_ngcontent-%COMP%]{display:inline-block!important}}"]}),function(Wt,Ut,nt,Zt){var ie,Fe=arguments.length,yt=Fe<3?Ut:null===Zt?Zt=Object.getOwnPropertyDescriptor(Ut,nt):Zt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)yt=Reflect.decorate(Wt,Ut,nt,Zt);else for(var Ce=Wt.length-1;Ce>=0;Ce--)(ie=Wt[Ce])&&(yt=(Fe<3?ie(yt):Fe>3?ie(Ut,nt,yt):ie(Ut,nt))||yt);Fe>3&&yt&&Object.defineProperty(Ut,nt,yt)}([(0,b.I)(),function(Wt,Ut){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Ut)}(0,y.n)],wt.prototype,"user",void 0)},62079:(oe,x,i)=>{"use strict";i.d(x,{Q:()=>p});var e=i(95698),n=i(28918),a=i(94650),t=i(89383),l=i(36895),h=i(55829);function s(u,g){if(1&u&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",1)(2,"span"),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementContainerEnd()),2&u){const v=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass",v.class),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(v.promotionText)}}var d=(()=>{return(u=d||(d={})).DISCOUNTED="promotion-chip--discounted",u.MOST_BOUGHT="promotion-chip--most",u.NEW_PRODUCT="promotion-chip--new",d;var u})();let p=(()=>{class u{constructor(v){this.translateService=v,this.carmen=n.VLR}ngOnInit(){this.translateService.get("SHARED.PRODUCT.PRODUCT_CARD_CHIP."+this.promotionType).pipe((0,e.q)(1)).subscribe(v=>this.text=v.toUpperCase())}get promotionText(){switch(this.promotionType){case n.gZO.BEST_OFFER:return`-${this.discountPercent}%`;case n.gZO.MOST_BOUGHT:case n.gZO.NEW_PRODUCT:return this.text;default:return""}}get class(){switch(this.promotionType){case n.gZO.BEST_OFFER:return d.DISCOUNTED;case n.gZO.MOST_BOUGHT:return d.MOST_BOUGHT;case n.gZO.NEW_PRODUCT:return d.NEW_PRODUCT;default:return""}}shouldShowBadge(){return!(this.promotionType===n.gZO.BEST_OFFER&&!this.discountPercent||this.carmen.isUnavailableBadgeType(this.promotionType))}}return u.\u0275fac=function(v){return new(v||u)(a.\u0275\u0275directiveInject(t.sK))},u.\u0275cmp=a.\u0275\u0275defineComponent({type:u,selectors:[["app-product-card-chip"]],inputs:{promotionType:"promotionType",discountPercent:"discountPercent"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"promotion-chip",3,"ngClass"]],template:function(v,y){1&v&&a.\u0275\u0275template(0,s,4,2,"ng-container",0),2&v&&a.\u0275\u0275property("ngIf",y.shouldShowBadge())},dependencies:[l.NgClass,l.NgIf,h.oO],styles:[".promotion-chip[_ngcontent-%COMP%]{align-items:center;border-radius:50%;color:#fff!important;cursor:pointer;display:flex;font-weight:700;justify-content:center;opacity:1!important;height:45px;text-align:center;width:45px}.promotion-chip--discounted[_ngcontent-%COMP%]{background-color:#ff001a!important;font-size:15px}.promotion-chip--most[_ngcontent-%COMP%]{background-color:#8e24aa!important;font-size:10px}.promotion-chip--most[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:10px}.promotion-chip--new[_ngcontent-%COMP%]{background-color:#00c73c!important;font-size:14px}"]}),u})()},56052:(oe,x,i)=>{"use strict";i.d(x,{Y:()=>S});var e=i(94650),n=i(28918),t=(i(32420),i(55738)),l=i(77044),h=i(80037),s=i(77579),d=i(20080),p=i(99912),u=i(97376),g=i(9116),v=i(35559);class S{constructor(D,A,P,B,V,X,re){this.router=D,this.dialog=A,this.productService=P,this.cartService=B,this.userLocationService=V,this.snackbarMessageService=X,this.fbPixelTrackingService=re,this.breakpoints=n.u3l,this.shouldOpenProductDialog=!1,this.isHomeCarousel=!1,this.isProductPageBtnTheme=!1,this.type=n.yP3.BUSINESS_OFFER_PAGE_PRODUCT,this.shouldHideButtons=!1,this.updateListingProduct=new e.EventEmitter,this.carouselControl=new e.EventEmitter,this.window=window,this.controlTypes=n.yP3,this.unsubscribe$=new s.x,this.initializeCartHelper()}ngOnInit(){this.type!==n.yP3.PROMOTION_CAROUSEL&&(this.discountedProduct=this.getDiscountedPriceAndPercentage())}initializeCartHelper(){this.cartHelper=new d.q(this.cartService,this.userLocationService,this.snackbarMessageService,this.fbPixelTrackingService,this.dialog,this.snackbarMessageService)}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}get isAddToCartLoading(){return this.cartHelper.getIsAddToCartLoading()}openProductDetailsDialog(){const D=window.location.href,A=this.dialog.getDialogById("product-details-dialog");this.productService.updateDialogProductData(this.product),A||this.dialog.open(p.n,{id:"product-details-dialog",data:{product:this.product},height:window.innerWidth<=this.breakpoints.DESKTOP_S?"100%":"auto",width:window.innerWidth<=this.breakpoints.DESKTOP_S?"100%":(0,n.I3d)(n.ZF2),maxWidth:n.ZF2,position:{top:window.innerWidth<=this.breakpoints.DESKTOP_S?"0":"16px",bottom:window.innerWidth<=this.breakpoints.DESKTOP_S?"0":"16px"},panelClass:["product-details-dialog-panel-class"]}).afterClosed().subscribe(()=>{this.productService.updateDialogProductData(null),window.history.replaceState(null,"",D)})}openProductOffersDialog(){this.dialog.open(h.L,{data:{product:this.product},minWidth:(0,n.I3d)(1404),height:this.getDialogHeight(),position:n.VLR.getDialogPosition(),panelClass:"base-panel-class"}).afterClosed().subscribe(A=>{A&&this.router.navigate(A.routerLink)})}get isIOS(){return navigator.userAgent.match("iPhone")}getDialogHeight(){return this.isIOS?"calc(100vh - 130px)":window.innerWidth<=n.u3l.TABLET?"calc(100vh - 80px)":"auto"}getDialogPosition(D=!0){return D&&this.isNativeIos?`${n.miL}px`:window.innerWidth>=n.u3l.TABLET?D?`${n._p0}px`:null:`${n._vr}px`}get isNativeIos(){return!0}calculateTheProductOffers(){return this.offersCount=0,this.product.packagings.forEach(D=>D.drugOffers.forEach(A=>A[this.offersCount++])),this.offersCount}getDiscountedPriceAndPercentage(){const D={oldPrice:this.product.priceMin/(1-this.product.packagings[0].discount/1e4),currentPrice:this.product.priceMin,discountPercentage:(this.product.packagings[0].discount/100).toPrecision(2)};return D.oldPrice>D.currentPrice?D:null}addProductToCart(){this.cartHelper.addOfferToCartIfLocationAvailable({offer:this.product.bestOffer,productSlug:this.product.bestOffer.productSlug,isPromotionalProduct:[n.yP3.MINIMAL,n.yP3.BUSINESS_CAROUSEL,n.yP3.PROMOTION_CAROUSEL].includes(this.type),messageSnackbarType:n.vax.DEFAULT,mustConfirmAge:this.product.mustConfirmAge,businessId:this.product.bestOffer.businessExternalId,quantity:1,requiresPrescription:this.product.requiresPrescription,sgrValue:this.product.sgrValue})}}S.\u0275fac=function(D){return new(D||S)(e.\u0275\u0275directiveInject(g.F0),e.\u0275\u0275directiveInject(v.on),e.\u0275\u0275directiveInject(u.M),e.\u0275\u0275directiveInject(n.vio.CartServiceToken),e.\u0275\u0275directiveInject(n.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(n.vio.SnackbarMessageServiceToken),e.\u0275\u0275directiveInject(n.vio.PixelTrackingService))},S.\u0275cmp=e.\u0275\u0275defineComponent({type:S,selectors:[["app-product-card"]],inputs:{product:"product",dragging:"dragging",loading:"loading",doNotDisplaySeller:"doNotDisplaySeller",cardWidth:"cardWidth",shouldOpenProductDialog:"shouldOpenProductDialog",isHomeCarousel:"isHomeCarousel",isProductPageBtnTheme:"isProductPageBtnTheme",type:"type",shouldHideButtons:"shouldHideButtons"},outputs:{updateListingProduct:"updateListingProduct",carouselControl:"carouselControl"},decls:1,vars:13,consts:[[3,"loading","isAddToCartLoading","shouldHideButtons","discountedProduct","shouldOpenProductDialog","type","dragging","doNotDisplaySeller","product","cardWidth","isHomeCarousel","isProductPageBtnTheme","offersCount","openProductOffer","addProductToCart","carouselControl","openProductDetailsDialog"]],template:function(D,A){1&D&&(e.\u0275\u0275elementStart(0,"app-product-card-presentation",0),e.\u0275\u0275listener("openProductOffer",function(){return A.openProductOffersDialog()})("addProductToCart",function(){return A.addProductToCart()})("carouselControl",function(B){return A.carouselControl.emit(B)})("openProductDetailsDialog",function(){return A.openProductDetailsDialog()}),e.\u0275\u0275elementEnd()),2&D&&e.\u0275\u0275property("loading",A.loading)("isAddToCartLoading",A.isAddToCartLoading)("shouldHideButtons",A.shouldHideButtons)("discountedProduct",A.discountedProduct)("shouldOpenProductDialog",A.shouldOpenProductDialog)("type",A.type)("dragging",A.dragging)("doNotDisplaySeller",A.doNotDisplaySeller)("product",A.product)("cardWidth",A.cardWidth)("isHomeCarousel",A.isHomeCarousel)("isProductPageBtnTheme",A.isProductPageBtnTheme)("offersCount",A.calculateTheProductOffers())}}),function(E,D,A,P){var X,B=arguments.length,V=B<3?D:null===P?P=Object.getOwnPropertyDescriptor(D,A):P;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)V=Reflect.decorate(E,D,A,P);else for(var re=E.length-1;re>=0;re--)(X=E[re])&&(V=(B<3?X(V):B>3?X(D,A,V):X(D,A))||V);B>3&&V&&Object.defineProperty(D,A,V)}([(0,l.I)(),function(E,D){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",D)}(0,t.n)],S.prototype,"user",void 0)},37998:(oe,x,i)=>{"use strict";i.d(x,{X:()=>Ie});var e=i(94650),n=i(28918),a=i(36895),t=i(1576),l=i(55829),h=i(80529),s=i(95698),d=i(77044),p=i(55738),u=i(12676),g=i(97376),v=i(99912),y=i(35559),b=i(9116),S=i(99818),E=i(44850),D=i(47462),A=i(3611),P=i(43437),B=i(36667),V=i(89383);const Q=["productRef"];function ae(dt,Mt){if(1&dt){const Xt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",20),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Xt);const vt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(vt.openProductOffersDialog.emit(vt.product))}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()}2&dt&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"SHARED.PRODUCT.PRODUCT_LIST.OTHER_OFFER")," "))}const K=function(dt){return{productQuantity:dt}};function k(dt,Mt){if(1&dt&&(e.\u0275\u0275elementStart(0,"span",21),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&dt){const Xt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"SHARED.PRODUCT.PRODUCT_LIST.PRODUCT_QUANTITY",e.\u0275\u0275pureFunction1(4,K,Xt.product.quantity))," ")}}function $(dt,Mt){if(1&dt){const Xt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"app-quantity-selector",22),e.\u0275\u0275listener("changedQuantity",function(vt){e.\u0275\u0275restoreView(Xt);const xt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(xt.changeProductQuantity(vt,xt.product))}),e.\u0275\u0275elementEnd()}if(2&dt){const Xt=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("stock",Xt.product.stock)("initialQuantity",Xt.getInitialQuantity(Xt.product.initialQuantity,Xt.product.quantity))("quantity",Xt.product.quantity)}}function j(dt,Mt){1&dt&&e.\u0275\u0275elementContainer(0)}function R(dt,Mt){if(1&dt&&(e.\u0275\u0275elementStart(0,"div",23),e.\u0275\u0275template(1,j,1,0,"ng-container",24),e.\u0275\u0275elementEnd()),2&dt){e.\u0275\u0275nextContext(2);const Xt=e.\u0275\u0275reference(6);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",Xt)}}function U(dt,Mt){if(1&dt){const Xt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"button",25),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Xt);const vt=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(vt.removeProduct.emit(vt.product))}),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"i",26),e.\u0275\u0275text(4,"close"),e.\u0275\u0275elementEnd()()()}2&dt&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("matTooltip",e.\u0275\u0275pipeBind1(2,1,"SHARED.PRODUCT.PRODUCT_LIST.DELETE_FROM_CART")))}const le=function(dt){return{"product--small-screen":dt}},T=function(dt){return{"cursor-pointer":dt}},H=function(dt){return{cursor:dt}},N=function(dt,Mt){return{"product-sale-info--big-screen":dt,"product-sale-info--big-screen-with-errors":Mt}},pe=function(dt){return{"product-sale-info__quantity--big-screen":dt}},de=function(dt){return{value:dt}};function me(dt,Mt){if(1&dt){const Xt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",6)(1,"div",7),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Xt);const vt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(vt.carmen.isNativePlatform?vt.getProductDetailsAndOpenDialog(vt.product.productSlug):null)}),e.\u0275\u0275elementStart(2,"a",8),e.\u0275\u0275element(3,"img",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",10)(5,"a",11),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"uppercase"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,ae,3,3,"a",12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div",13)(10,"div",14),e.\u0275\u0275template(11,k,3,6,"span",15),e.\u0275\u0275template(12,$,1,3,"app-quantity-selector",16),e.\u0275\u0275template(13,R,2,1,"div",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"div",18),e.\u0275\u0275element(15,"span",19),e.\u0275\u0275pipe(16,"translate"),e.\u0275\u0275pipe(17,"price"),e.\u0275\u0275template(18,U,5,3,"div",3),e.\u0275\u0275elementEnd()()()}if(2&dt){const Xt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(25,le,Xt.isSmallScreen())),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(27,T,null==Xt.product?null:Xt.product.routerLink))("routerLink",Xt.carmen.isNativePlatform||null==Xt.product?null:Xt.product.routerLink)("target",Xt.carmen.isNativePlatform?"":"_blank"),e.\u0275\u0275advance(1),e.\u0275\u0275property("alt",null==Xt.product?null:Xt.product.name)("src",null==Xt.product?null:Xt.product.photoUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",Xt.carmen.isNativePlatform?null:Xt.product.routerLink)("ngStyle",e.\u0275\u0275pureFunction1(29,H,Xt.product.routerLink?"pointer":"default"))("target",Xt.carmen.isNativePlatform?"":"_blank"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,18,Xt.product.name)," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",Xt.product.offerCount>1&&Xt.isCartOrderProduct()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(31,N,!Xt.isSmallScreen()&&!Xt.isCardProductError(Xt.product),Xt.isSmallScreen()&&Xt.isCardProductError(Xt.product))),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(34,pe,!Xt.isSmallScreen())),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Xt.isPatientOrderProduct()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Xt.isCartOrderProduct()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Xt.isCardProductError(Xt.product)&&Xt.isLargeDesktopScreen()),e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind2(16,20,Xt.carmen.getCurrencyTranslationKey(Xt.setProductPrice()),e.\u0275\u0275pureFunction1(36,de,Xt.setProductPrice()?e.\u0275\u0275pipeBind1(17,23,Xt.setProductPrice()):0)),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",Xt.isCartOrderProduct())}}function q(dt,Mt){1&dt&&e.\u0275\u0275elementContainer(0)}function se(dt,Mt){if(1&dt&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,q,1,0,"ng-container",24),e.\u0275\u0275elementEnd()),2&dt){e.\u0275\u0275nextContext();const Xt=e.\u0275\u0275reference(6);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",Xt)}}function ve(dt,Mt){1&dt&&e.\u0275\u0275element(0,"mat-divider",27)}function Ee(dt,Mt){1&dt&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"uppercase"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&dt&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,e.\u0275\u0275pipeBind1(3,3,"SHARED.PRODUCT.PRODUCT_LIST.STOCK_CHANGED"))," "))}const Ye=function(dt){return{"mt-16":dt}};function wt(dt,Mt){if(1&dt&&(e.\u0275\u0275elementStart(0,"div",28)(1,"i",26),e.\u0275\u0275text(2,"error"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"uppercase"),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,Ee,4,5,"span",3),e.\u0275\u0275elementEnd()),2&dt){const Xt=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(7,Ye,!Xt.isLargeDesktopScreen())),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(5,3,e.\u0275\u0275pipeBind1(6,5,"SHARED.PRODUCT.PRODUCT_LIST.STOCK_EMPTY"))," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!Xt.isProductQuantityValid(Xt.product)&&Xt.isProductInStock(Xt.product))}}class Wt{constructor(Mt,Xt,en,vt,xt){this.userService=Mt,this.dialog=Xt,this.userLocationService=en,this.productService=vt,this.messageService=xt,this.isHideProductDivider=!1,this.openProductOffersDialog=new e.EventEmitter,this.changeQuantity=new e.EventEmitter,this.removeProduct=new e.EventEmitter,this.carmen=n.VLR}isCartOrderProduct(){return this.productType===n.KoQ.CART_ORDER_PRODUCT}isPatientOrderProduct(){return this.productType===n.KoQ.PATIENT_ORDER_PRODUCT}getInitialQuantity(Mt,Xt){return Mt&&Mt>Xt?Mt:void 0}changeProductQuantity(Mt,Xt){this.changeQuantity.emit({quantity:Mt,product:Xt})}setProductPrice(){return"stock"in this.product?this.product.priceTotal:this.product.price}isSmallScreen(){return window.innerWidth<n.u3l.TABLET}isLargeDesktopScreen(){return window.innerWidth>=n.u3l.DESKTOP_L}isCardProductError(Mt){return this.productType===n.KoQ.CART_ORDER_PRODUCT&&this.hasErrors(Mt)}hasErrors(Mt){return this.hasStockErrors(Mt)}hasStockErrors(Mt){return!this.isProductInStock(Mt)||!this.isProductQuantityValid(Mt)}isProductInStock(Mt){return Mt?.stock>0}isProductQuantityValid(Mt){return!Mt?.initialQuantity}getProduct(Mt){let Xt=this.userService.getGuestId();const en=this.userLocationService.getUserLocation(),vt=(new h.WM).set("noSpinner","true");return!this.user&&!Xt&&(this.userService.createGuestId(),Xt=this.userService.getGuestId()),this.productService.get(Mt,!1,vt,Xt,en)}getProductDetailsAndOpenDialog(Mt){this.getProduct(Mt).pipe((0,s.q)(1)).subscribe({next:Xt=>this.openProductDetailsDialog(Xt),error:()=>this.messageService.displayMessage(n.CsS.ERROR,"SHARED.CART.ADDITIONAL_INFORMATIONS.PRODUCT_NOT_FOUND")})}openProductDetailsDialog(Mt){this.productService.updateDialogProductData(Mt),this.dialog.open(v.n,{id:"product-details-dialog",data:{product:this.product},height:window.innerWidth<=n.u3l.DESKTOP_S?"100%":"auto",width:window.innerWidth<=n.u3l.DESKTOP_S?"100%":(0,n.I3d)(n.ZF2),maxWidth:n.ZF2,position:n.VLR.getDialogPosition(),panelClass:["product-details-dialog-panel-class"]}).afterClosed().subscribe(()=>{this.productService.updateDialogProductData(null)})}}Wt.\u0275fac=function(Mt){return new(Mt||Wt)(e.\u0275\u0275directiveInject(u.O),e.\u0275\u0275directiveInject(y.on),e.\u0275\u0275directiveInject(n.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(g.M),e.\u0275\u0275directiveInject(n.vio.SnackbarMessageServiceToken))},Wt.\u0275cmp=e.\u0275\u0275defineComponent({type:Wt,selectors:[["app-product-entry"]],viewQuery:function(Mt,Xt){if(1&Mt&&e.\u0275\u0275viewQuery(Q,5),2&Mt){let en;e.\u0275\u0275queryRefresh(en=e.\u0275\u0275loadQuery())&&(Xt.productRef=en.first)}},inputs:{product:"product",productType:"productType",isHideProductDivider:"isHideProductDivider"},outputs:{openProductOffersDialog:"openProductOffersDialog",changeQuantity:"changeQuantity",removeProduct:"removeProduct"},decls:7,vars:3,consts:[[1,"product-section"],["productRef",""],["class","product","fxLayoutAlign","center center",3,"ngClass",4,"ngIf"],[4,"ngIf"],["class","product-section__divider",4,"ngIf"],["productErrorsTemplate",""],["fxLayoutAlign","center center",1,"product",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px",1,"product-description",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"product-description__image",3,"ngClass","routerLink","target"],[3,"alt","src"],["fxLayout","column","fxLayoutAlign","center start"],["fxLayout","row","fxLayoutAlign","center center",1,"product-description__title","break-letters","product-line-clamp",3,"routerLink","ngStyle","target"],["class","product-description__other-offer",3,"click",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"product-sale-info",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"product-sale-info__quantity",3,"ngClass"],["class","product-default-quantity","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[3,"stock","initialQuantity","quantity","changedQuantity",4,"ngIf"],["class","mr-8 ml-24",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","8px"],[1,"product-sale-info__price",3,"innerHTML"],[1,"product-description__other-offer",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"product-default-quantity"],[3,"stock","initialQuantity","quantity","changedQuantity"],[1,"mr-8","ml-24"],[4,"ngTemplateOutlet"],["fxLayout","row","id","btnRemoveProduct","fxLayoutAlign","center center","mat-icon-button","","color","warn",1,"product-sale-info__remove-button",3,"matTooltip","click"],["fxLayout","row","fxLayoutAlign","center center",1,"material-icons"],[1,"product-section__divider"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px",1,"product-errors",3,"ngClass"]],template:function(Mt,Xt){1&Mt&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275template(2,me,19,38,"div",2),e.\u0275\u0275template(3,se,2,1,"div",3),e.\u0275\u0275template(4,ve,1,0,"mat-divider",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,wt,8,9,"ng-template",null,5,e.\u0275\u0275templateRefExtractor)),2&Mt&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",Xt.product),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Xt.isCardProductError(Xt.product)&&!Xt.isLargeDesktopScreen()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!Xt.isHideProductDivider))},dependencies:[a.NgClass,a.NgIf,a.NgTemplateOutlet,a.NgStyle,b.rH,t.xw,t.SQ,t.Wh,l.oO,l.Zl,S.eB,E.d,D.Kd,A.b,P.y,a.UpperCasePipe,B.d,V.X$],styles:[".product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%}.product-section[_ngcontent-%COMP%]   .product--small-screen[_ngcontent-%COMP%]{flex-direction:column!important;row-gap:16px}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-description[_ngcontent-%COMP%]{width:100%}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-description__image[_ngcontent-%COMP%]{width:60px;height:60px}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-description__image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:85%}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-description__title[_ngcontent-%COMP%]{font-weight:700!important;text-decoration:none;color:#242424}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-description__other-offer[_ngcontent-%COMP%]{text-decoration:underline;color:#36b}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-sale-info[_ngcontent-%COMP%]{width:100%}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-sale-info--big-screen[_ngcontent-%COMP%]{max-width:321px}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-sale-info--big-screen-with-errors[_ngcontent-%COMP%]{max-width:457px}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-sale-info__quantity--big-screen[_ngcontent-%COMP%]{margin-left:8px}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-sale-info__quantity[_ngcontent-%COMP%]   .product-default-quantity[_ngcontent-%COMP%]{width:60px!important;font-size:14px}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-sale-info__price[_ngcontent-%COMP%]{width:max-content;font-size:15px;font-weight:700}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-sale-info__remove-button[_ngcontent-%COMP%]{border-radius:unset;height:max-content;width:max-content}.product-section[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .product-sale-info__remove-button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-weight:700;height:20px;width:20px}.product-section__divider[_ngcontent-%COMP%]{margin:16px 0}.product-errors[_ngcontent-%COMP%]{width:max-content;font-size:13px;color:#ff001a;font-weight:700}.product-errors[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{height:20px;width:20px}"]}),function(dt,Mt,Xt,en){var zt,vt=arguments.length,xt=vt<3?Mt:null===en?en=Object.getOwnPropertyDescriptor(Mt,Xt):en;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)xt=Reflect.decorate(dt,Mt,Xt,en);else for(var bt=dt.length-1;bt>=0;bt--)(zt=dt[bt])&&(xt=(vt<3?zt(xt):vt>3?zt(Mt,Xt,xt):zt(Mt,Xt))||xt);vt>3&&xt&&Object.defineProperty(Mt,Xt,xt)}([(0,d.I)(),function(dt,Mt){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Mt)}(0,p.n)],Wt.prototype,"user",void 0);const Ut=["productEntryRef"],nt=["section"];function Zt(dt,Mt){if(1&dt){const Xt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Xt);const vt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(vt.showAllProducts())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"uppercase"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()}2&dt&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,e.\u0275\u0275pipeBind1(3,3,"SHARED.PRODUCT.PRODUCT_LIST.SHOW_ITEMS"))," "))}function Fe(dt,Mt){if(1&dt){const Xt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(Xt);const vt=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(vt.hideProducts())}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"uppercase"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()}2&dt&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,e.\u0275\u0275pipeBind1(3,3,"SHARED.PRODUCT.PRODUCT_LIST.HIDE_ITEMS"))," "))}function yt(dt,Mt){if(1&dt&&(e.\u0275\u0275elementStart(0,"div",7)(1,"div",8),e.\u0275\u0275template(2,Zt,4,5,"div",9),e.\u0275\u0275template(3,Fe,4,5,"div",10),e.\u0275\u0275elementEnd()()),2&dt){const Xt=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!Xt.shouldShowHideProductsButton()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Xt.shouldShowHideProductsButton())}}function ie(dt,Mt){if(1&dt){const Xt=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",3)(1,"app-product-entry",4,5),e.\u0275\u0275listener("changeQuantity",function(vt){const zt=e.\u0275\u0275restoreView(Xt).index,bt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(bt.changeQuantity.emit({productIndex:zt,product:vt.product,quantity:vt.quantity}))})("removeProduct",function(vt){const zt=e.\u0275\u0275restoreView(Xt).index,bt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(bt.removeProduct.emit({product:vt,productIndex:zt}))})("openProductOffersDialog",function(vt){e.\u0275\u0275restoreView(Xt);const xt=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(xt.openProductOffersDialog.emit(vt))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,yt,4,2,"div",6),e.\u0275\u0275elementEnd()}if(2&dt){const Xt=Mt.$implicit,en=Mt.index,vt=Mt.last,xt=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("product",Xt)("isHideProductDivider",xt.isHideProductDivider(en,vt))("productType",xt.productType),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",xt.shouldShowProductToggle()&&vt)}}const Ce=function(dt){return{"max-height":dt}};let Ie=(()=>{class dt{constructor(){this.products=[],this.openProductOffersDialog=new e.EventEmitter,this.changeQuantity=new e.EventEmitter,this.removeProduct=new e.EventEmitter,this.displayedProductsLimit=4,this.areDisplayedAllProducts=!1}ngAfterViewInit(){this.calcProductListContainerHeight()}ngOnChanges(Xt){Xt.products&&Xt.products.currentValue!==Xt.products.previousValue&&this.calcProductListContainerHeight()}calcProductListContainerHeight(){const vt=this.productEntryRef.productRef.nativeElement.clientHeight+16,zt=vt*this.products.length;this.productListContainerDefaultHeight=vt*this.displayedProductsLimit+"px",this.productListContainerMaxHeight=`${zt+50}px`}shouldShowProductToggle(){return this.products.length>this.displayedProductsLimit}shouldShowHideProductsButton(){return this.products.length>this.displayedProductsLimit&&this.areDisplayedAllProducts}showAllProducts(){this.areDisplayedAllProducts=!0}hideProducts(){this.areDisplayedAllProducts=!1}isHideProductDivider(Xt,en){return en&&Xt<this.displayedProductsLimit}}return dt.\u0275fac=function(Xt){return new(Xt||dt)},dt.\u0275cmp=e.\u0275\u0275defineComponent({type:dt,selectors:[["app-product-list"]],viewQuery:function(Xt,en){if(1&Xt&&(e.\u0275\u0275viewQuery(Ut,5),e.\u0275\u0275viewQuery(nt,5)),2&Xt){let vt;e.\u0275\u0275queryRefresh(vt=e.\u0275\u0275loadQuery())&&(en.productEntryRef=vt.first),e.\u0275\u0275queryRefresh(vt=e.\u0275\u0275loadQuery())&&(en.section=vt.first)}},inputs:{products:"products",productType:"productType"},outputs:{openProductOffersDialog:"openProductOffersDialog",changeQuantity:"changeQuantity",removeProduct:"removeProduct"},features:[e.\u0275\u0275NgOnChangesFeature],decls:3,vars:4,consts:[["fxLayout","column",1,"product-list",3,"ngStyle"],["section",""],["class","product-list__item",4,"ngFor","ngForOf"],[1,"product-list__item"],[3,"product","isHideProductDivider","productType","changeQuantity","removeProduct","openProductOffersDialog"],["productEntryRef",""],["class","product-list-toggle",4,"ngIf"],[1,"product-list-toggle"],["fxLayoutAlign","center end",1,"product-list-toggle-overlay"],["id","btnShowItems","class","product-list-toggle-overlay__button",3,"click",4,"ngIf"],["id","btnHideItems","class","product-list-toggle-overlay__button",3,"click",4,"ngIf"],["id","btnShowItems",1,"product-list-toggle-overlay__button",3,"click"],["id","btnHideItems",1,"product-list-toggle-overlay__button",3,"click"]],template:function(Xt,en){1&Xt&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275template(2,ie,4,4,"div",2),e.\u0275\u0275elementEnd()),2&Xt&&(e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(2,Ce,en.areDisplayedAllProducts?en.productListContainerMaxHeight:en.productListContainerDefaultHeight)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",en.products))},dependencies:[a.NgForOf,a.NgIf,a.NgStyle,t.xw,t.Wh,l.Zl,Wt,a.UpperCasePipe,V.X$],styles:[".product-list[_ngcontent-%COMP%]{height:max-content;position:relative;padding:16px;background:#ffffff;width:100%;overflow:hidden;transition:max-height .3s ease-in-out}.product-list__item[_ngcontent-%COMP%]{width:100%}.product-list[_ngcontent-%COMP%]   .product-list-toggle[_ngcontent-%COMP%]{height:50px;width:100%}.product-list[_ngcontent-%COMP%]   .product-list-toggle[_ngcontent-%COMP%]   .product-list-toggle-overlay[_ngcontent-%COMP%]{position:absolute;height:70px;width:calc(100% - 32px);overflow:hidden;background:transparent linear-gradient(180deg,rgba(255,255,255,0) 0%,#ffffff 68%,#ffffff 100%) 0 0 no-repeat padding-box;z-index:1;bottom:0}.product-list[_ngcontent-%COMP%]   .product-list-toggle[_ngcontent-%COMP%]   .product-list-toggle-overlay__button[_ngcontent-%COMP%]{width:100%;font-weight:700;font-size:14px;color:#36b!important;padding-bottom:16px;text-align:center;text-decoration:underline;letter-spacing:.7px;height:20px;cursor:pointer}"]}),dt})()},80037:(oe,x,i)=>{"use strict";i.d(x,{L:()=>ae});var e=i(9116),n=i(35559),a=i(73768),t=i(61135),l=i(39646),h=i(95698),s=i(18505),d=i(63900),p=i(28918),u=i(77044),g=i(55738),v=i(97376),y=i(94650);const E=["locationSelector"],D=function(K){return{value:K}};function A(K,k){if(1&K&&(y.\u0275\u0275element(0,"div",24),y.\u0275\u0275pipe(1,"translate"),y.\u0275\u0275pipe(2,"price")),2&K){const $=y.\u0275\u0275nextContext().$implicit,j=y.\u0275\u0275nextContext(2);y.\u0275\u0275property("innerHTML",y.\u0275\u0275pipeBind2(1,1,j.carmen.getCurrencyTranslationKey($.offer.price),y.\u0275\u0275pureFunction1(6,D,y.\u0275\u0275pipeBind1(2,4,$.offer.price))),y.\u0275\u0275sanitizeHtml)}}function P(K,k){if(1&K){const $=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",29)(1,"app-quantity-selector",30),y.\u0275\u0275listener("changedQuantity",function(R){y.\u0275\u0275restoreView($);const U=y.\u0275\u0275nextContext(2).$implicit,le=y.\u0275\u0275nextContext(2);return y.\u0275\u0275resetView(le.changeQuantity(R,U.offer))}),y.\u0275\u0275elementEnd()()}if(2&K){const $=y.\u0275\u0275nextContext(2).$implicit;y.\u0275\u0275advance(1),y.\u0275\u0275property("stock",$.offer.stock)("quantity",$.offer.quantity)}}function B(K,k){if(1&K){const $=y.\u0275\u0275getCurrentView();y.\u0275\u0275elementStart(0,"div",25),y.\u0275\u0275template(1,P,2,2,"div",26),y.\u0275\u0275elementStart(2,"div",27)(3,"app-controls",28),y.\u0275\u0275listener("setMultipleOffersLoading",function(R){y.\u0275\u0275restoreView($);const U=y.\u0275\u0275nextContext(3);return y.\u0275\u0275resetView(U.isAddOfferToCartLoading=R)})("closeOffersDialog",function(){y.\u0275\u0275restoreView($);const R=y.\u0275\u0275nextContext(3);return y.\u0275\u0275resetView(R.close())}),y.\u0275\u0275elementEnd()()()}if(2&K){const $=y.\u0275\u0275nextContext().$implicit,j=y.\u0275\u0275nextContext(2);y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",$.offer.stock),y.\u0275\u0275advance(2),y.\u0275\u0275property("type",j.controlTypes.OFFERS_POPUP)("loadingFromMultipleOffers",j.isAddOfferToCartLoading)("offer",$.offer)("product",j.data.product)("quantity",$.offer.quantity)}}function V(K,k){1&K&&y.\u0275\u0275element(0,"mat-divider")}function X(K,k){if(1&K&&(y.\u0275\u0275elementStart(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16)(4,"div",17),y.\u0275\u0275element(5,"img",18),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(6,"div",19)(7,"div",20),y.\u0275\u0275text(8),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(9,"div")(10,"span"),y.\u0275\u0275text(11),y.\u0275\u0275pipe(12,"translate"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(13,"a",21),y.\u0275\u0275pipe(14,"async"),y.\u0275\u0275pipe(15,"business"),y.\u0275\u0275text(16),y.\u0275\u0275elementEnd()()(),y.\u0275\u0275template(17,A,3,8,"div",22),y.\u0275\u0275elementEnd()(),y.\u0275\u0275template(18,B,4,6,"div",23),y.\u0275\u0275elementEnd(),y.\u0275\u0275template(19,V,1,0,"mat-divider",8),y.\u0275\u0275elementEnd()),2&K){const $=k.$implicit,j=k.last,R=y.\u0275\u0275nextContext(2);y.\u0275\u0275advance(1),y.\u0275\u0275property("fxLayout",R.window.innerWidth<=R.breakpoints.TABLET?"column":"row"),y.\u0275\u0275advance(4),y.\u0275\u0275property("src",$.offer.packaging.images[0].thumbnail,y.\u0275\u0275sanitizeUrl)("alt",$.offer.packageName),y.\u0275\u0275advance(3),y.\u0275\u0275textInterpolate($.offer.packageName),y.\u0275\u0275advance(3),y.\u0275\u0275textInterpolate(y.\u0275\u0275pipeBind1(12,10,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.SOLD_BY")),y.\u0275\u0275advance(2),y.\u0275\u0275property("routerLink",y.\u0275\u0275pipeBind1(14,12,y.\u0275\u0275pipeBind2(15,14,$.offer.businessExternalId,"publicProfileRouterLink"))),y.\u0275\u0275advance(3),y.\u0275\u0275textInterpolate1(" ",$.offer.businessName," "),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",null==R.user?null:R.user.isBusiness()),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!(null!=R.user&&R.user.isBusiness())),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngIf",!j||R.window.innerWidth<=R.breakpoints.TABLET)}}function re(K,k){if(1&K&&(y.\u0275\u0275elementContainerStart(0),y.\u0275\u0275template(1,X,20,17,"div",12),y.\u0275\u0275elementContainerEnd()),2&K){const $=y.\u0275\u0275nextContext();y.\u0275\u0275advance(1),y.\u0275\u0275property("ngForOf",$.dataSource.data)}}const Q=function(K){return{"w-100":K}};class ae{constructor(k,$,j,R,U,le){this.data=k,this.dialogRef=$,this.cartService=j,this.productService=R,this.snackBarMessageService=U,this.router=le,this.displayedColumns=["productDetails","actions"],this.offersSubject=new t.X(null),this.selectedLocation={address:"",closestOffer:null},this.window=window,this.onCheckoutPage=this.router.url===`/${p.Jjk.CART}`,this.breakpoints=p.u3l,this.controlTypes=p.yP3,this.isAddOfferToCartLoading=!1,this.isLoadingStock=!1,this.carmen=p.VLR}ngOnInit(){const k=this.data.product.offers;this.getPackagingOptions(),this.addStockOnOffers(k),this.offersSubject.asObservable().subscribe($=>{this.dataSource=new a.r4($),this.initializeOffers()}),this.router.events.pipe((0,h.q)(1)).subscribe($=>{$ instanceof e.OD&&(this.onCheckoutPage=$.url===`/${p.Jjk.CART}`)})}initializeOffers(){this.user&&this.user.getType()!==p.FWD.CLIENT||(this.user&&this.user.getType()===p.FWD.CLIENT?this.cartService.getUserCart():this.cartService.getGuestCart()).pipe((0,h.q)(1)).subscribe($=>{this.cart=$,this.addQuantityToOffers()})}changeQuantity(k,$){$.cartProductId?this.cartService.changeProductQuantity($,k).pipe((0,h.q)(1)).subscribe(()=>{this.snackBarMessageService.displayMessage(p.CsS.SUCCESS,"SHARED.MISC.QUANTITY_SELECTOR.QUANTITY_CHANGED")},()=>{this.snackBarMessageService.displayMessage(p.CsS.ERROR,"SHARED.MISC.QUANTITY_SELECTOR.NO_QUANTITY_CHANGE")}):$.quantity=k}addQuantityToOffers(){for(const k of this.dataSource.data)k.offer.quantity=void 0,k.offer.cartProductId=void 0,this.cart.businessCarts.forEach($=>{$.items.forEach(j=>{j.productSlug===k.offer.productSlug&&$.businessProfile.businessId===k.offer.businessExternalId&&(k.offer.quantity=j.quantity,k.offer.cartProductId=j.cartProductId)})}),!k.offer.quantity&&k.offer.stock?k.offer.quantity=1:k.offer.quantity||(k.offer.quantity=0)}getPackagingOptions(){this.packages=this.data.product.offers.map(k=>k.packaging).filter((k,$,j)=>j.indexOf(k)===$)}sortOffersByPrice(k){return this.offersSortedByPrice=k.sort(($,j)=>$.price-j.price).map(($,j)=>({offer:$,cheapest:0===j&&!this.data.product.isDrug,closest:!1})),(0,l.of)(this.offersSortedByPrice)}close(){this.dialogRef.close()}get isIOS(){return navigator.userAgent.match("iPhone")}getOffersContainerStyle(){return this.isIOS?"ios-one-selector":this.getDefaultStyle()}getDefaultStyle(){return this.data.packaging&&this.packages.length>1?"one-selector":"no-selector"}addStockOnOffers(k){const $=k.map(j=>({businessExternalId:j.businessExternalId,productSlug:j.productSlug}));this.isLoadingStock=!0,this.productService.getStocksForMultipleOffers($).pipe((0,h.q)(1),(0,s.b)(j=>{k.forEach(R=>R.stock=j.find(U=>U.businessExternalId===R.businessExternalId&&U.productSlug===R.productSlug)?.quantity??0)}),(0,d.w)(()=>this.sortOffersByPrice(k))).subscribe(j=>{this.isLoadingStock=!1,this.offersSubject.next(j)},()=>{this.isLoadingStock=!1,this.snackBarMessageService.displayMessage(p.CsS.ERROR,"SHARED.BUSINESS.PRODUCT.STOCK.IMPORT.AN_ERROR_OCCURED_PLEASE_RETRY"),this.close()})}}ae.\u0275fac=function(k){return new(k||ae)(y.\u0275\u0275directiveInject(n.eJ),y.\u0275\u0275directiveInject(n.hV),y.\u0275\u0275directiveInject(p.vio.CartServiceToken),y.\u0275\u0275directiveInject(v.M),y.\u0275\u0275directiveInject(p.vio.SnackbarMessageServiceToken),y.\u0275\u0275directiveInject(e.F0))},ae.\u0275cmp=y.\u0275\u0275defineComponent({type:ae,selectors:[["app-product-offers-dialog"]],viewQuery:function(k,$){if(1&k&&y.\u0275\u0275viewQuery(E,5),2&k){let j;y.\u0275\u0275queryRefresh(j=y.\u0275\u0275loadQuery())&&($.locationSelector=j.first)}},decls:23,vars:15,consts:[[1,"close-button-container","margin-bottom-container",3,"click"],[1,"material-icons"],[1,"full-divider"],[1,"content-wrapper"],["mat-dialog-content","",1,"offers-container",3,"ngClass"],[1,"spinner",3,"fxHide"],["fxLayout","column","fxLayoutAlign","start start"],["fxFlex","1","fxLayout","column",1,"offer-table-container"],[4,"ngIf"],["mat-flat-button","",1,"green-button-style","mat-primary","button-back",3,"matTooltip","ngClass","click"],[1,"material-icons","button-icon"],[1,"text-button"],["class","offers-table","fxLayoutGap","16px","fxLayout","column",4,"ngFor","ngForOf"],["fxLayoutGap","16px","fxLayout","column",1,"offers-table"],["fxLayoutGap.gt-xs","16px",3,"fxLayout"],["fxLayout","column","fxFlex.lt-sm","100","fxFlex","100","fxLayoutAlign","center start",1,"ml-16","product-details"],["fxLayout","row"],["fxLayoutAlign","start center",1,"product-img-container"],[3,"src","alt"],["fxLayout","column","fxLayoutAlign","center start",1,"ml-8"],[1,"text-bold"],["target","_blank",1,"text-decoration","primary-text",3,"routerLink"],["class","text-bold product-price","fxLayoutAlign","center center",3,"innerHTML",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center end","class","actions-container-2",4,"ngIf"],["fxLayoutAlign","center center",1,"text-bold","product-price",3,"innerHTML"],["fxLayout","row","fxLayoutAlign","center end",1,"actions-container-2"],["fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],[1,"price-and-button-container"],["fxFlex","100",1,"ml-auto",3,"type","loadingFromMultipleOffers","offer","product","quantity","setMultipleOffersLoading","closeOffersDialog"],["fxFlex","100","fxLayoutAlign","start center"],[3,"stock","quantity","changedQuantity"]],template:function(k,$){1&k&&(y.\u0275\u0275elementStart(0,"div")(1,"div",0),y.\u0275\u0275listener("click",function(){return $.close()}),y.\u0275\u0275elementStart(2,"i",1),y.\u0275\u0275text(3,"close"),y.\u0275\u0275elementEnd()()(),y.\u0275\u0275element(4,"mat-divider",2),y.\u0275\u0275elementStart(5,"div",3)(6,"div",4)(7,"h2"),y.\u0275\u0275text(8),y.\u0275\u0275pipe(9,"translate"),y.\u0275\u0275elementEnd(),y.\u0275\u0275element(10,"drc-page-spinner",5),y.\u0275\u0275elementStart(11,"div",6)(12,"div",7),y.\u0275\u0275template(13,re,2,1,"ng-container",8),y.\u0275\u0275elementEnd()()()(),y.\u0275\u0275elementStart(14,"div"),y.\u0275\u0275element(15,"mat-divider",2),y.\u0275\u0275elementStart(16,"button",9),y.\u0275\u0275listener("click",function(){return $.close()}),y.\u0275\u0275pipe(17,"translate"),y.\u0275\u0275elementStart(18,"i",10),y.\u0275\u0275text(19,"keyboard_arrow_left"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(20,"span",11),y.\u0275\u0275text(21),y.\u0275\u0275pipe(22,"translate"),y.\u0275\u0275elementEnd()()()),2&k&&(y.\u0275\u0275advance(6),y.\u0275\u0275property("ngClass",$.getOffersContainerStyle()),y.\u0275\u0275advance(2),y.\u0275\u0275textInterpolate(y.\u0275\u0275pipeBind1(9,7,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.ALL_AVAILABLE_OFFERS")),y.\u0275\u0275advance(2),y.\u0275\u0275property("fxHide",!$.isLoadingStock),y.\u0275\u0275advance(3),y.\u0275\u0275property("ngIf",$.dataSource.data),y.\u0275\u0275advance(3),y.\u0275\u0275property("matTooltip",y.\u0275\u0275pipeBind1(17,9,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.BACK"))("ngClass",y.\u0275\u0275pureFunction1(13,Q,$.window.innerWidth<=$.breakpoints.TABLET)),y.\u0275\u0275advance(5),y.\u0275\u0275textInterpolate(y.\u0275\u0275pipeBind1(22,11,"SHARED.PRODUCT.PRODUCT_OFFERS_DIALOG.BACK")))},styles:[".offers-container[_ngcontent-%COMP%]{margin-right:-16px;margin-left:-16px;overflow-y:auto;overflow-x:hidden;max-height:unset!important}.offers-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:16px}.both-selectors[_ngcontent-%COMP%]{height:calc(100vh - 312px)}.product-price[_ngcontent-%COMP%]{height:65px;position:absolute;right:0}.one-selector[_ngcontent-%COMP%]{height:calc(100vh - 312px)}.no-selector[_ngcontent-%COMP%]{height:calc(100vh - 200px)}.content-wrapper[_ngcontent-%COMP%]{max-height:unset}.highlight[_ngcontent-%COMP%]{background-color:#e0f9eb!important}mat-dialog-content[_ngcontent-%COMP%]{padding:0 20px!important}.mat-dialog-content[_ngcontent-%COMP%]{padding:0 16px!important}mat-row[_ngcontent-%COMP%]{padding:20px 0!important}mat-row[_ngcontent-%COMP%]   mat-cell[_ngcontent-%COMP%]{padding:0}.product-details[_ngcontent-%COMP%]{margin-top:16px;position:relative}.ml-8[_ngcontent-%COMP%]{margin-left:8px}.ml-16[_ngcontent-%COMP%]{margin-left:16px}.mr-16[_ngcontent-%COMP%]{margin-right:16px}.ml-05[_ngcontent-%COMP%]{margin-left:5px}mat-dialog-actions[_ngcontent-%COMP%]{min-height:72px;margin-bottom:-16px;padding:0}mat-dialog-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#fff;margin-top:-6px}.full-divider[_ngcontent-%COMP%]{margin:0 -16px}.actions-container[_ngcontent-%COMP%]{min-width:280px!important}.mt-4[_ngcontent-%COMP%]{margin-top:4px}.margin-bottom-container[_ngcontent-%COMP%]{margin-bottom:6px}.selectors-container[_ngcontent-%COMP%]{margin-top:11px;margin-bottom:18px}.price-and-button-container[_ngcontent-%COMP%]{margin-left:auto}.margin-top-divider[_ngcontent-%COMP%]{margin-top:-10px}.button-icon[_ngcontent-%COMP%]{font-size:20px;margin-right:6px}.button-back[_ngcontent-%COMP%]{padding-left:8px;padding-right:16px;margin-top:16px}.text-button[_ngcontent-%COMP%]{letter-spacing:.7px;font-weight:700}.icon-color[_ngcontent-%COMP%]{color:#00853b}.icon-size[_ngcontent-%COMP%]{font-size:19px;height:19px}.text-decoration[_ngcontent-%COMP%]{text-decoration:none}.actions-container-2[_ngcontent-%COMP%]{margin-bottom:14px;min-width:500px}@media (max-width: 420px){.last-divider-mobile[_ngcontent-%COMP%]{margin-left:-16px!important;margin-right:0!important}.button-back[_ngcontent-%COMP%]{width:100%!important}}@media (max-width: 959px){.product-controls[_ngcontent-%COMP%]{min-width:180px!important;width:180px!important}.actions-container[_ngcontent-%COMP%]{min-width:180px;width:180px}}@media (max-width: 768px){.actions-container-2[_ngcontent-%COMP%]{min-width:unset;margin-bottom:unset}.button-back[_ngcontent-%COMP%]{width:100%}.last-divider-mobile[_ngcontent-%COMP%]{margin-left:-16px;margin-right:16px}.both-selectors[_ngcontent-%COMP%]{height:calc(100vh - 353px)}.one-selector[_ngcontent-%COMP%]{height:calc(100vh - 292px)}.no-selector[_ngcontent-%COMP%]{height:calc(100vh - 200px)}.ios-both-selectors[_ngcontent-%COMP%]{height:calc(100vh - 403px)}.ios-one-selector[_ngcontent-%COMP%], .ios-no-selector[_ngcontent-%COMP%]{height:calc(100vh - 250px)}.button-icon[_ngcontent-%COMP%]{float:left;margin-top:7px}}@media (max-width: 430px){.button-back[_ngcontent-%COMP%]{width:calc(100% - 32px)}}"]}),function(K,k,$,j){var le,R=arguments.length,U=R<3?k:null===j?j=Object.getOwnPropertyDescriptor(k,$):j;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(K,k,$,j);else for(var T=K.length-1;T>=0;T--)(le=K[T])&&(U=(R<3?le(U):R>3?le(k,$,U):le(k,$))||U);R>3&&U&&Object.defineProperty(k,$,U)}([(0,u.I)(),function(K,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",k)}(0,g.n)],ae.prototype,"user",void 0)},50516:(oe,x,i)=>{"use strict";i.d(x,{F:()=>l});var e=i(28555),n=(()=>{return(h=n||(n={})).Start="[Refresh service] Start",h.Stop="[Refresh service] Stop",n;var h})();const l={start:(0,e.PH)(n.Start),stop:(0,e.PH)(n.Stop)}},36098:(oe,x,i)=>{"use strict";i.d(x,{m:()=>Ic});var e=i(36895),n=i(9116),a=i(89383),t=i(84855),l=i(69814),h=i(44393),s=i(94650),d=i(3238),p=i(12687);let b=(()=>{class Ke{}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275mod=s.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=s.\u0275\u0275defineInjector({imports:[p.rt,d.BQ,d.BQ]}),Ke})();var S=i(97855),E=i(84080);i(37340);let V=(()=>{class Ke{}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275mod=s.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=s.\u0275\u0275defineInjector({imports:[S.Su,d.BQ,E.eL,d.BQ]}),Ke})();var k=i(99818),$=i(21281),R=(i(95017),i(24006));let ve=(()=>{class Ke{}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275mod=s.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=s.\u0275\u0275defineInjector({imports:[d.BQ,d.si,d.BQ]}),Ke})();var Ee=i(28377),Ye=i(24404),wt=i(89923),Wt=i(99602),Ut=i(35559),nt=i(37084),Zt=i(18455);let _n=(()=>{class Ke{}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275mod=s.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=s.\u0275\u0275defineInjector({imports:[d.uc,d.BQ,d.uc,d.BQ]}),Ke})();var ke=i(97392),Ae=i(29203),ze=i(19982),pt=i(86255),tn=i(98739),ot=i(27686),Et=i(1256),z=i(84888),Z=i(44454),ge=i(85208),Qe=i(23267),qe=i(47732),ct=i(76066),Yt=i(92972),it=i(96308),Be=i(86257),gt=i(73768),ue=i(83026),Ge=i(83683),ee=i(10266),De=i(47462),Ot=i(77579),cn=i(61135),_i=(i(45191),i(39646)),Ni=i(82722);i(40445);let $i=(()=>{class Ke{}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275mod=s.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=s.\u0275\u0275defineInjector({}),Ke})(),zn=(()=>{class Ke{}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275mod=s.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=s.\u0275\u0275defineInjector({imports:[$i,d.BQ,d.BQ]}),Ke})();var ri=i(41341),vi=i(61396),Ii=i(67375),cr=i(19711),Hi=i(28555),Vi=i(88776);let Er=(()=>{class Ke{static forRoot(){return{ngModule:Ke}}static forChild(){return{ngModule:Ke}}}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275mod=s.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=s.\u0275\u0275defineInjector({}),Ke})();var pr=i(37523),fo=i(59808),Tr=i(44841),Br=i(36774),_o=i(67376),Bn=i(83353),Sn=i(50727),Lt=i(17445),Jn=i(66406),Di=i(69751),Wi=i(56451),br=(i(68675),i(54004)),bo=i(95698),xo=i(18505);function w(Ke,Ne,W){for(let We in Ne)if(Ne.hasOwnProperty(We)){const Dt=Ne[We];Dt?Ke.setProperty(We,Dt,W?.has(We)?"important":""):Ke.removeProperty(We)}return Ke}function ne(Ke,Ne){const W=Ne?"":"none";w(Ke.style,{"touch-action":Ne?"":"none","-webkit-user-drag":Ne?"":"none","-webkit-tap-highlight-color":Ne?"":"transparent","user-select":W,"-ms-user-select":W,"-webkit-user-select":W,"-moz-user-select":W})}function be(Ke,Ne,W){w(Ke.style,{position:Ne?"":"fixed",top:Ne?"":"0",opacity:Ne?"":"0",left:Ne?"":"-999em"},W)}function Ue(Ke,Ne){return Ne&&"none"!=Ne?Ke+" "+Ne:Ke}function at(Ke){const Ne=Ke.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Ke)*Ne}function yn(Ke,Ne){return Ke.getPropertyValue(Ne).split(",").map(We=>We.trim())}function Tn(Ke){const Ne=Ke.getBoundingClientRect();return{top:Ne.top,right:Ne.right,bottom:Ne.bottom,left:Ne.left,width:Ne.width,height:Ne.height,x:Ne.x,y:Ne.y}}function Yn(Ke,Ne,W){const{top:We,bottom:Dt,left:Qt,right:Xn}=Ke;return W>=We&&W<=Dt&&Ne>=Qt&&Ne<=Xn}function Zn(Ke,Ne,W){Ke.top+=Ne,Ke.bottom=Ke.top+Ke.height,Ke.left+=W,Ke.right=Ke.left+Ke.width}function ui(Ke,Ne,W,We){const{top:Dt,right:Qt,bottom:Xn,left:ai,width:Ki,height:Cr}=Ke,ho=Ki*Ne,Oa=Cr*Ne;return We>Dt-Oa&&We<Xn+Oa&&W>ai-ho&&W<Qt+ho}i(63900);class wi{constructor(Ne){this._document=Ne,this.positions=new Map}clear(){this.positions.clear()}cache(Ne){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),Ne.forEach(W=>{this.positions.set(W,{scrollPosition:{top:W.scrollTop,left:W.scrollLeft},clientRect:Tn(W)})})}handleScroll(Ne){const W=(0,Bn.sA)(Ne),We=this.positions.get(W);if(!We)return null;const Dt=We.scrollPosition;let Qt,Xn;if(W===this._document){const Cr=this.getViewportScrollPosition();Qt=Cr.top,Xn=Cr.left}else Qt=W.scrollTop,Xn=W.scrollLeft;const ai=Dt.top-Qt,Ki=Dt.left-Xn;return this.positions.forEach((Cr,ho)=>{Cr.clientRect&&W!==ho&&W.contains(ho)&&Zn(Cr.clientRect,ai,Ki)}),Dt.top=Qt,Dt.left=Xn,{top:ai,left:Ki}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function an(Ke){const Ne=Ke.cloneNode(!0),W=Ne.querySelectorAll("[id]"),We=Ke.nodeName.toLowerCase();Ne.removeAttribute("id");for(let Dt=0;Dt<W.length;Dt++)W[Dt].removeAttribute("id");return"canvas"===We?li(Ke,Ne):("input"===We||"select"===We||"textarea"===We)&&ii(Ke,Ne),bn("canvas",Ke,Ne,li),bn("input, textarea, select",Ke,Ne,ii),Ne}function bn(Ke,Ne,W,We){const Dt=Ne.querySelectorAll(Ke);if(Dt.length){const Qt=W.querySelectorAll(Ke);for(let Xn=0;Xn<Dt.length;Xn++)We(Dt[Xn],Qt[Xn])}}let Dn=0;function ii(Ke,Ne){"file"!==Ne.type&&(Ne.value=Ke.value),"radio"===Ne.type&&Ne.name&&(Ne.name=`mat-clone-${Ne.name}-${Dn++}`)}function li(Ke,Ne){const W=Ne.getContext("2d");if(W)try{W.drawImage(Ke,0,0)}catch{}}const ft=(0,Bn.i$)({passive:!0}),ce=(0,Bn.i$)({passive:!1}),ut=new Set(["position"]);class Kt{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Ne){const W=(0,$.Ig)(Ne);W!==this._disabled&&(this._disabled=W,this._toggleNativeDragInteractions(),this._handles.forEach(We=>ne(We,W)))}constructor(Ne,W,We,Dt,Qt,Xn){this._config=W,this._document=We,this._ngZone=Dt,this._viewportRuler=Qt,this._dragDropRegistry=Xn,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Ot.x,this._pointerMoveSubscription=Sn.w0.EMPTY,this._pointerUpSubscription=Sn.w0.EMPTY,this._scrollSubscription=Sn.w0.EMPTY,this._resizeSubscription=Sn.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Ot.x,this.started=new Ot.x,this.released=new Ot.x,this.ended=new Ot.x,this.entered=new Ot.x,this.exited=new Ot.x,this.dropped=new Ot.x,this.moved=this._moveEvents,this._pointerDown=ai=>{if(this.beforeStarted.next(),this._handles.length){const Ki=this._getTargetHandle(ai);Ki&&!this._disabledHandles.has(Ki)&&!this.disabled&&this._initializeDragSequence(Ki,ai)}else this.disabled||this._initializeDragSequence(this._rootElement,ai)},this._pointerMove=ai=>{const Ki=this._getPointerPositionOnPage(ai);if(!this._hasStartedDragging){if(Math.abs(Ki.x-this._pickupPositionOnPage.x)+Math.abs(Ki.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const nl=Date.now()>=this._dragStartTime+this._getDragStartDelay(ai),tc=this._dropContainer;if(!nl)return void this._endDragSequence(ai);(!tc||!tc.isDragging()&&!tc.isReceiving())&&(ai.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(ai)))}return}ai.preventDefault();const Cr=this._getConstrainedPointerPosition(Ki);if(this._hasMoved=!0,this._lastKnownPointerPosition=Ki,this._updatePointerDirectionDelta(Cr),this._dropContainer)this._updateActiveDropContainer(Cr,Ki);else{const ho=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Oa=this._activeTransform;Oa.x=Cr.x-ho.x+this._passiveTransform.x,Oa.y=Cr.y-ho.y+this._passiveTransform.y,this._applyRootElementTransform(Oa.x,Oa.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Cr,event:ai,distance:this._getDragDistance(Cr),delta:this._pointerDirectionDelta})})},this._pointerUp=ai=>{this._endDragSequence(ai)},this._nativeDragStart=ai=>{if(this._handles.length){const Ki=this._getTargetHandle(ai);Ki&&!this._disabledHandles.has(Ki)&&!this.disabled&&ai.preventDefault()}else this.disabled||ai.preventDefault()},this.withRootElement(Ne).withParent(W.parentDragRef||null),this._parentPositions=new wi(We),Xn.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Ne){this._handles=Ne.map(We=>(0,$.fI)(We)),this._handles.forEach(We=>ne(We,this.disabled)),this._toggleNativeDragInteractions();const W=new Set;return this._disabledHandles.forEach(We=>{this._handles.indexOf(We)>-1&&W.add(We)}),this._disabledHandles=W,this}withPreviewTemplate(Ne){return this._previewTemplate=Ne,this}withPlaceholderTemplate(Ne){return this._placeholderTemplate=Ne,this}withRootElement(Ne){const W=(0,$.fI)(Ne);return W!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{W.addEventListener("mousedown",this._pointerDown,ce),W.addEventListener("touchstart",this._pointerDown,ft),W.addEventListener("dragstart",this._nativeDragStart,ce)}),this._initialTransform=void 0,this._rootElement=W),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Ne){return this._boundaryElement=Ne?(0,$.fI)(Ne):null,this._resizeSubscription.unsubscribe(),Ne&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Ne){return this._parentDragRef=Ne,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Ne){!this._disabledHandles.has(Ne)&&this._handles.indexOf(Ne)>-1&&(this._disabledHandles.add(Ne),ne(Ne,!0))}enableHandle(Ne){this._disabledHandles.has(Ne)&&(this._disabledHandles.delete(Ne),ne(Ne,this.disabled))}withDirection(Ne){return this._direction=Ne,this}_withDropContainer(Ne){this._dropContainer=Ne}getFreeDragPosition(){const Ne=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Ne.x,y:Ne.y}}setFreeDragPosition(Ne){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Ne.x,this._passiveTransform.y=Ne.y,this._dropContainer||this._applyRootElementTransform(Ne.x,Ne.y),this}withPreviewContainer(Ne){return this._previewContainer=Ne,this}_sortFromLastPointerPosition(){const Ne=this._lastKnownPointerPosition;Ne&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Ne),Ne)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Ne){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:Ne}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Ne),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const W=this._getPointerPositionOnPage(Ne);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(W),dropPoint:W,event:Ne})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(Ne){qn(Ne)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const W=this._dropContainer;if(W){const We=this._rootElement,Dt=We.parentNode,Qt=this._placeholder=this._createPlaceholderElement(),Xn=this._anchor=this._anchor||this._document.createComment(""),ai=this._getShadowRoot();Dt.insertBefore(Xn,We),this._initialTransform=We.style.transform||"",this._preview=this._createPreviewElement(),be(We,!1,ut),this._document.body.appendChild(Dt.replaceChild(Qt,We)),this._getPreviewInsertionPoint(Dt,ai).appendChild(this._preview),this.started.next({source:this,event:Ne}),W.start(),this._initialContainer=W,this._initialIndex=W.getItemIndex(this)}else this.started.next({source:this,event:Ne}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(W?W.getScrollableParents():[])}_initializeDragSequence(Ne,W){this._parentDragRef&&W.stopPropagation();const We=this.isDragging(),Dt=qn(W),Qt=!Dt&&0!==W.button,Xn=this._rootElement,ai=(0,Bn.sA)(W),Ki=!Dt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Cr=Dt?(0,p.yG)(W):(0,p.X6)(W);if(ai&&ai.draggable&&"mousedown"===W.type&&W.preventDefault(),We||Qt||Ki||Cr)return;if(this._handles.length){const ds=Xn.style;this._rootElementTapHighlight=ds.webkitTapHighlightColor||"",ds.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(ds=>this._updateOnScroll(ds)),this._boundaryElement&&(this._boundaryRect=Tn(this._boundaryElement));const ho=this._previewTemplate;this._pickupPositionInElement=ho&&ho.template&&!ho.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,Ne,W);const Oa=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(W);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Oa.x,y:Oa.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,W)}_cleanupDragArtifacts(Ne){be(this._rootElement,!0,ut),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const W=this._dropContainer,We=W.getItemIndex(this),Dt=this._getPointerPositionOnPage(Ne),Qt=this._getDragDistance(Dt),Xn=W._isOverContainer(Dt.x,Dt.y);this.ended.next({source:this,distance:Qt,dropPoint:Dt,event:Ne}),this.dropped.next({item:this,currentIndex:We,previousIndex:this._initialIndex,container:W,previousContainer:this._initialContainer,isPointerOverContainer:Xn,distance:Qt,dropPoint:Dt,event:Ne}),W.drop(this,We,this._initialIndex,this._initialContainer,Xn,Qt,Dt,Ne),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Ne,y:W},{x:We,y:Dt}){let Qt=this._initialContainer._getSiblingContainerFromPosition(this,Ne,W);!Qt&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Ne,W)&&(Qt=this._initialContainer),Qt&&Qt!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Qt,this._dropContainer.enter(this,Ne,W,Qt===this._initialContainer&&Qt.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Qt,currentIndex:Qt.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(We,Dt),this._dropContainer._sortItem(this,Ne,W,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(Ne,W):this._applyPreviewTransform(Ne-this._pickupPositionInElement.x,W-this._pickupPositionInElement.y))}_createPreviewElement(){const Ne=this._previewTemplate,W=this.previewClass,We=Ne?Ne.template:null;let Dt;if(We&&Ne){const Qt=Ne.matchSize?this._initialClientRect:null,Xn=Ne.viewContainer.createEmbeddedView(We,Ne.context);Xn.detectChanges(),Dt=ci(Xn,this._document),this._previewRef=Xn,Ne.matchSize?hi(Dt,Qt):Dt.style.transform=mn(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Dt=an(this._rootElement),hi(Dt,this._initialClientRect),this._initialTransform&&(Dt.style.transform=this._initialTransform);return w(Dt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ut),ne(Dt,!1),Dt.classList.add("cdk-drag-preview"),Dt.setAttribute("dir",this._direction),W&&(Array.isArray(W)?W.forEach(Qt=>Dt.classList.add(Qt)):Dt.classList.add(W)),Dt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Ne=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(Ne.left,Ne.top);const W=function Rt(Ke){const Ne=getComputedStyle(Ke),W=yn(Ne,"transition-property"),We=W.find(ai=>"transform"===ai||"all"===ai);if(!We)return 0;const Dt=W.indexOf(We),Qt=yn(Ne,"transition-duration"),Xn=yn(Ne,"transition-delay");return at(Qt[Dt])+at(Xn[Dt])}(this._preview);return 0===W?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(We=>{const Dt=Xn=>{(!Xn||(0,Bn.sA)(Xn)===this._preview&&"transform"===Xn.propertyName)&&(this._preview?.removeEventListener("transitionend",Dt),We(),clearTimeout(Qt))},Qt=setTimeout(Dt,1.5*W);this._preview.addEventListener("transitionend",Dt)}))}_createPlaceholderElement(){const Ne=this._placeholderTemplate,W=Ne?Ne.template:null;let We;return W?(this._placeholderRef=Ne.viewContainer.createEmbeddedView(W,Ne.context),this._placeholderRef.detectChanges(),We=ci(this._placeholderRef,this._document)):We=an(this._rootElement),We.style.pointerEvents="none",We.classList.add("cdk-drag-placeholder"),We}_getPointerPositionInElement(Ne,W,We){const Dt=W===this._rootElement?null:W,Qt=Dt?Dt.getBoundingClientRect():Ne,Xn=qn(We)?We.targetTouches[0]:We,ai=this._getViewportScrollPosition();return{x:Qt.left-Ne.left+(Xn.pageX-Qt.left-ai.left),y:Qt.top-Ne.top+(Xn.pageY-Qt.top-ai.top)}}_getPointerPositionOnPage(Ne){const W=this._getViewportScrollPosition(),We=qn(Ne)?Ne.touches[0]||Ne.changedTouches[0]||{pageX:0,pageY:0}:Ne,Dt=We.pageX-W.left,Qt=We.pageY-W.top;if(this._ownerSVGElement){const Xn=this._ownerSVGElement.getScreenCTM();if(Xn){const ai=this._ownerSVGElement.createSVGPoint();return ai.x=Dt,ai.y=Qt,ai.matrixTransform(Xn.inverse())}}return{x:Dt,y:Qt}}_getConstrainedPointerPosition(Ne){const W=this._dropContainer?this._dropContainer.lockAxis:null;let{x:We,y:Dt}=this.constrainPosition?this.constrainPosition(Ne,this,this._initialClientRect,this._pickupPositionInElement):Ne;if("x"===this.lockAxis||"x"===W?Dt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===W)&&(We=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Qt,y:Xn}=this._pickupPositionInElement,ai=this._boundaryRect,{width:Ki,height:Cr}=this._getPreviewRect(),ho=ai.top+Xn,Oa=ai.bottom-(Cr-Xn);We=Un(We,ai.left+Qt,ai.right-(Ki-Qt)),Dt=Un(Dt,ho,Oa)}return{x:We,y:Dt}}_updatePointerDirectionDelta(Ne){const{x:W,y:We}=Ne,Dt=this._pointerDirectionDelta,Qt=this._pointerPositionAtLastDirectionChange,Xn=Math.abs(W-Qt.x),ai=Math.abs(We-Qt.y);return Xn>this._config.pointerDirectionChangeThreshold&&(Dt.x=W>Qt.x?1:-1,Qt.x=W),ai>this._config.pointerDirectionChangeThreshold&&(Dt.y=We>Qt.y?1:-1,Qt.y=We),Dt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Ne=this._handles.length>0||!this.isDragging();Ne!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Ne,ne(this._rootElement,Ne))}_removeRootElementListeners(Ne){Ne.removeEventListener("mousedown",this._pointerDown,ce),Ne.removeEventListener("touchstart",this._pointerDown,ft),Ne.removeEventListener("dragstart",this._nativeDragStart,ce)}_applyRootElementTransform(Ne,W){const We=mn(Ne,W),Dt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Dt.transform&&"none"!=Dt.transform?Dt.transform:""),Dt.transform=Ue(We,this._initialTransform)}_applyPreviewTransform(Ne,W){const We=this._previewTemplate?.template?void 0:this._initialTransform,Dt=mn(Ne,W);this._preview.style.transform=Ue(Dt,We)}_getDragDistance(Ne){const W=this._pickupPositionOnPage;return W?{x:Ne.x-W.x,y:Ne.y-W.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Ne,y:W}=this._passiveTransform;if(0===Ne&&0===W||this.isDragging()||!this._boundaryElement)return;const We=this._rootElement.getBoundingClientRect(),Dt=this._boundaryElement.getBoundingClientRect();if(0===Dt.width&&0===Dt.height||0===We.width&&0===We.height)return;const Qt=Dt.left-We.left,Xn=We.right-Dt.right,ai=Dt.top-We.top,Ki=We.bottom-Dt.bottom;Dt.width>We.width?(Qt>0&&(Ne+=Qt),Xn>0&&(Ne-=Xn)):Ne=0,Dt.height>We.height?(ai>0&&(W+=ai),Ki>0&&(W-=Ki)):W=0,(Ne!==this._passiveTransform.x||W!==this._passiveTransform.y)&&this.setFreeDragPosition({y:W,x:Ne})}_getDragStartDelay(Ne){const W=this.dragStartDelay;return"number"==typeof W?W:qn(Ne)?W.touch:W?W.mouse:0}_updateOnScroll(Ne){const W=this._parentPositions.handleScroll(Ne);if(W){const We=(0,Bn.sA)(Ne);this._boundaryRect&&We!==this._boundaryElement&&We.contains(this._boundaryElement)&&Zn(this._boundaryRect,W.top,W.left),this._pickupPositionOnPage.x+=W.left,this._pickupPositionOnPage.y+=W.top,this._dropContainer||(this._activeTransform.x-=W.left,this._activeTransform.y-=W.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,Bn.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Ne,W){const We=this._previewContainer||"global";if("parent"===We)return Ne;if("global"===We){const Dt=this._document;return W||Dt.fullscreenElement||Dt.webkitFullscreenElement||Dt.mozFullScreenElement||Dt.msFullscreenElement||Dt.body}return(0,$.fI)(We)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(Ne){return this._handles.find(W=>Ne.target&&(Ne.target===W||W.contains(Ne.target)))}}function mn(Ke,Ne){return`translate3d(${Math.round(Ke)}px, ${Math.round(Ne)}px, 0)`}function Un(Ke,Ne,W){return Math.max(Ne,Math.min(W,Ke))}function qn(Ke){return"t"===Ke.type[0]}function ci(Ke,Ne){const W=Ke.rootNodes;if(1===W.length&&W[0].nodeType===Ne.ELEMENT_NODE)return W[0];const We=Ne.createElement("div");return W.forEach(Dt=>We.appendChild(Dt)),We}function hi(Ke,Ne){Ke.style.width=`${Ne.width}px`,Ke.style.height=`${Ne.height}px`,Ke.style.transform=mn(Ne.left,Ne.top)}function tr(Ke,Ne){return Math.max(0,Math.min(Ne,Ke))}class Lr{constructor(Ne,W){this._element=Ne,this._dragDropRegistry=W,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(Ne){this.withItems(Ne)}sort(Ne,W,We,Dt){const Qt=this._itemPositions,Xn=this._getItemIndexFromPointerPosition(Ne,W,We,Dt);if(-1===Xn&&Qt.length>0)return null;const ai="horizontal"===this.orientation,Ki=Qt.findIndex(il=>il.drag===Ne),Cr=Qt[Xn],Oa=Cr.clientRect,ds=Ki>Xn?1:-1,nl=this._getItemOffsetPx(Qt[Ki].clientRect,Oa,ds),tc=this._getSiblingOffsetPx(Ki,Qt,ds),ks=Qt.slice();return function Ai(Ke,Ne,W){const We=tr(Ne,Ke.length-1),Dt=tr(W,Ke.length-1);if(We===Dt)return;const Qt=Ke[We],Xn=Dt<We?-1:1;for(let ai=We;ai!==Dt;ai+=Xn)Ke[ai]=Ke[ai+Xn];Ke[Dt]=Qt}(Qt,Ki,Xn),Qt.forEach((il,Lu)=>{if(ks[Lu]===il)return;const hc=il.drag===Ne,vd=hc?nl:tc,Pc=hc?Ne.getPlaceholderElement():il.drag.getRootElement();il.offset+=vd,ai?(Pc.style.transform=Ue(`translate3d(${Math.round(il.offset)}px, 0, 0)`,il.initialTransform),Zn(il.clientRect,0,vd)):(Pc.style.transform=Ue(`translate3d(0, ${Math.round(il.offset)}px, 0)`,il.initialTransform),Zn(il.clientRect,vd,0))}),this._previousSwap.overlaps=Yn(Oa,W,We),this._previousSwap.drag=Cr.drag,this._previousSwap.delta=ai?Dt.x:Dt.y,{previousIndex:Ki,currentIndex:Xn}}enter(Ne,W,We,Dt){const Qt=null==Dt||Dt<0?this._getItemIndexFromPointerPosition(Ne,W,We):Dt,Xn=this._activeDraggables,ai=Xn.indexOf(Ne),Ki=Ne.getPlaceholderElement();let Cr=Xn[Qt];if(Cr===Ne&&(Cr=Xn[Qt+1]),!Cr&&(null==Qt||-1===Qt||Qt<Xn.length-1)&&this._shouldEnterAsFirstChild(W,We)&&(Cr=Xn[0]),ai>-1&&Xn.splice(ai,1),Cr&&!this._dragDropRegistry.isDragging(Cr)){const ho=Cr.getRootElement();ho.parentElement.insertBefore(Ki,ho),Xn.splice(Qt,0,Ne)}else(0,$.fI)(this._element).appendChild(Ki),Xn.push(Ne);Ki.style.transform="",this._cacheItemPositions()}withItems(Ne){this._activeDraggables=Ne.slice(),this._cacheItemPositions()}withSortPredicate(Ne){this._sortPredicate=Ne}reset(){this._activeDraggables.forEach(Ne=>{const W=Ne.getRootElement();if(W){const We=this._itemPositions.find(Dt=>Dt.drag===Ne)?.initialTransform;W.style.transform=We||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(Ne){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(We=>We.drag===Ne)}updateOnScroll(Ne,W){this._itemPositions.forEach(({clientRect:We})=>{Zn(We,Ne,W)}),this._itemPositions.forEach(({drag:We})=>{this._dragDropRegistry.isDragging(We)&&We._sortFromLastPointerPosition()})}_cacheItemPositions(){const Ne="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(W=>{const We=W.getVisibleElement();return{drag:W,offset:0,initialTransform:We.style.transform||"",clientRect:Tn(We)}}).sort((W,We)=>Ne?W.clientRect.left-We.clientRect.left:W.clientRect.top-We.clientRect.top)}_getItemOffsetPx(Ne,W,We){const Dt="horizontal"===this.orientation;let Qt=Dt?W.left-Ne.left:W.top-Ne.top;return-1===We&&(Qt+=Dt?W.width-Ne.width:W.height-Ne.height),Qt}_getSiblingOffsetPx(Ne,W,We){const Dt="horizontal"===this.orientation,Qt=W[Ne].clientRect,Xn=W[Ne+-1*We];let ai=Qt[Dt?"width":"height"]*We;if(Xn){const Ki=Dt?"left":"top",Cr=Dt?"right":"bottom";-1===We?ai-=Xn.clientRect[Ki]-Qt[Cr]:ai+=Qt[Ki]-Xn.clientRect[Cr]}return ai}_shouldEnterAsFirstChild(Ne,W){if(!this._activeDraggables.length)return!1;const We=this._itemPositions,Dt="horizontal"===this.orientation;if(We[0].drag!==this._activeDraggables[0]){const Xn=We[We.length-1].clientRect;return Dt?Ne>=Xn.right:W>=Xn.bottom}{const Xn=We[0].clientRect;return Dt?Ne<=Xn.left:W<=Xn.top}}_getItemIndexFromPointerPosition(Ne,W,We,Dt){const Qt="horizontal"===this.orientation,Xn=this._itemPositions.findIndex(({drag:ai,clientRect:Ki})=>ai!==Ne&&((!Dt||ai!==this._previousSwap.drag||!this._previousSwap.overlaps||(Qt?Dt.x:Dt.y)!==this._previousSwap.delta)&&(Qt?W>=Math.floor(Ki.left)&&W<Math.floor(Ki.right):We>=Math.floor(Ki.top)&&We<Math.floor(Ki.bottom))));return-1!==Xn&&this._sortPredicate(Xn,Ne)?Xn:-1}}const Io=.05;class wo{constructor(Ne,W,We,Dt,Qt){this._dragDropRegistry=W,this._ngZone=Dt,this._viewportRuler=Qt,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ot.x,this.entered=new Ot.x,this.exited=new Ot.x,this.dropped=new Ot.x,this.sorted=new Ot.x,this.receivingStarted=new Ot.x,this.receivingStopped=new Ot.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Sn.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ot.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,Lt.F)(0,Jn.Z).pipe((0,Ni.R)(this._stopScrollTimers)).subscribe(()=>{const Xn=this._scrollNode,ai=this.autoScrollStep;1===this._verticalScrollDirection?Xn.scrollBy(0,-ai):2===this._verticalScrollDirection&&Xn.scrollBy(0,ai),1===this._horizontalScrollDirection?Xn.scrollBy(-ai,0):2===this._horizontalScrollDirection&&Xn.scrollBy(ai,0)})},this.element=(0,$.fI)(Ne),this._document=We,this.withScrollableParents([this.element]),W.registerDropContainer(this),this._parentPositions=new wi(We),this._sortStrategy=new Lr(this.element,W),this._sortStrategy.withSortPredicate((Xn,ai)=>this.sortPredicate(Xn,ai,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Ne,W,We,Dt){this._draggingStarted(),null==Dt&&this.sortingDisabled&&(Dt=this._draggables.indexOf(Ne)),this._sortStrategy.enter(Ne,W,We,Dt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Ne,container:this,currentIndex:this.getItemIndex(Ne)})}exit(Ne){this._reset(),this.exited.next({item:Ne,container:this})}drop(Ne,W,We,Dt,Qt,Xn,ai,Ki={}){this._reset(),this.dropped.next({item:Ne,currentIndex:W,previousIndex:We,container:this,previousContainer:Dt,isPointerOverContainer:Qt,distance:Xn,dropPoint:ai,event:Ki})}withItems(Ne){const W=this._draggables;return this._draggables=Ne,Ne.forEach(We=>We._withDropContainer(this)),this.isDragging()&&(W.filter(Dt=>Dt.isDragging()).every(Dt=>-1===Ne.indexOf(Dt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(Ne){return this._sortStrategy.direction=Ne,this}connectedTo(Ne){return this._siblings=Ne.slice(),this}withOrientation(Ne){return this._sortStrategy.orientation=Ne,this}withScrollableParents(Ne){const W=(0,$.fI)(this.element);return this._scrollableElements=-1===Ne.indexOf(W)?[W,...Ne]:Ne.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(Ne){return this._isDragging?this._sortStrategy.getItemIndex(Ne):this._draggables.indexOf(Ne)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Ne,W,We,Dt){if(this.sortingDisabled||!this._clientRect||!ui(this._clientRect,.05,W,We))return;const Qt=this._sortStrategy.sort(Ne,W,We,Dt);Qt&&this.sorted.next({previousIndex:Qt.previousIndex,currentIndex:Qt.currentIndex,container:this,item:Ne})}_startScrollingIfNecessary(Ne,W){if(this.autoScrollDisabled)return;let We,Dt=0,Qt=0;if(this._parentPositions.positions.forEach((Xn,ai)=>{ai===this._document||!Xn.clientRect||We||ui(Xn.clientRect,.05,Ne,W)&&([Dt,Qt]=function Pa(Ke,Ne,W,We){const Dt=aa(Ne,We),Qt=yo(Ne,W);let Xn=0,ai=0;if(Dt){const Ki=Ke.scrollTop;1===Dt?Ki>0&&(Xn=1):Ke.scrollHeight-Ki>Ke.clientHeight&&(Xn=2)}if(Qt){const Ki=Ke.scrollLeft;1===Qt?Ki>0&&(ai=1):Ke.scrollWidth-Ki>Ke.clientWidth&&(ai=2)}return[Xn,ai]}(ai,Xn.clientRect,Ne,W),(Dt||Qt)&&(We=ai))}),!Dt&&!Qt){const{width:Xn,height:ai}=this._viewportRuler.getViewportSize(),Ki={width:Xn,height:ai,top:0,right:Xn,bottom:ai,left:0};Dt=aa(Ki,W),Qt=yo(Ki,Ne),We=window}We&&(Dt!==this._verticalScrollDirection||Qt!==this._horizontalScrollDirection||We!==this._scrollNode)&&(this._verticalScrollDirection=Dt,this._horizontalScrollDirection=Qt,this._scrollNode=We,(Dt||Qt)&&We?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Ne=(0,$.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Ne.msScrollSnapType||Ne.scrollSnapType||"",Ne.scrollSnapType=Ne.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const Ne=(0,$.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(Ne).clientRect}_reset(){this._isDragging=!1;const Ne=(0,$.fI)(this.element).style;Ne.scrollSnapType=Ne.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(W=>W._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(Ne,W){return null!=this._clientRect&&Yn(this._clientRect,Ne,W)}_getSiblingContainerFromPosition(Ne,W,We){return this._siblings.find(Dt=>Dt._canReceive(Ne,W,We))}_canReceive(Ne,W,We){if(!this._clientRect||!Yn(this._clientRect,W,We)||!this.enterPredicate(Ne,this))return!1;const Dt=this._getShadowRoot().elementFromPoint(W,We);if(!Dt)return!1;const Qt=(0,$.fI)(this.element);return Dt===Qt||Qt.contains(Dt)}_startReceiving(Ne,W){const We=this._activeSiblings;!We.has(Ne)&&W.every(Dt=>this.enterPredicate(Dt,this)||this._draggables.indexOf(Dt)>-1)&&(We.add(Ne),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:Ne,receiver:this,items:W}))}_stopReceiving(Ne){this._activeSiblings.delete(Ne),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:Ne,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Ne=>{if(this.isDragging()){const W=this._parentPositions.handleScroll(Ne);W&&this._sortStrategy.updateOnScroll(W.top,W.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Ne=(0,Bn.kV)((0,$.fI)(this.element));this._cachedShadowRoot=Ne||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Ne=this._sortStrategy.getActiveItemsSnapshot().filter(W=>W.isDragging());this._siblings.forEach(W=>W._startReceiving(this,Ne))}}function aa(Ke,Ne){const{top:W,bottom:We,height:Dt}=Ke,Qt=Dt*Io;return Ne>=W-Qt&&Ne<=W+Qt?1:Ne>=We-Qt&&Ne<=We+Qt?2:0}function yo(Ke,Ne){const{left:W,right:We,width:Dt}=Ke,Qt=Dt*Io;return Ne>=W-Qt&&Ne<=W+Qt?1:Ne>=We-Qt&&Ne<=We+Qt?2:0}const Uo=(0,Bn.i$)({passive:!1,capture:!0});let _a=(()=>{class Ke{constructor(W,We){this._ngZone=W,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Dt=>Dt.isDragging(),this.pointerMove=new Ot.x,this.pointerUp=new Ot.x,this.scroll=new Ot.x,this._preventDefaultWhileDragging=Dt=>{this._activeDragInstances.length>0&&Dt.preventDefault()},this._persistentTouchmoveListener=Dt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Dt.preventDefault(),this.pointerMove.next(Dt))},this._document=We}registerDropContainer(W){this._dropInstances.has(W)||this._dropInstances.add(W)}registerDragItem(W){this._dragInstances.add(W),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Uo)})}removeDropContainer(W){this._dropInstances.delete(W)}removeDragItem(W){this._dragInstances.delete(W),this.stopDragging(W),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Uo)}startDragging(W,We){if(!(this._activeDragInstances.indexOf(W)>-1)&&(this._activeDragInstances.push(W),1===this._activeDragInstances.length)){const Dt=We.type.startsWith("touch");this._globalListeners.set(Dt?"touchend":"mouseup",{handler:Qt=>this.pointerUp.next(Qt),options:!0}).set("scroll",{handler:Qt=>this.scroll.next(Qt),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Uo}),Dt||this._globalListeners.set("mousemove",{handler:Qt=>this.pointerMove.next(Qt),options:Uo}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Qt,Xn)=>{this._document.addEventListener(Xn,Qt.handler,Qt.options)})})}}stopDragging(W){const We=this._activeDragInstances.indexOf(W);We>-1&&(this._activeDragInstances.splice(We,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(W){return this._activeDragInstances.indexOf(W)>-1}scrolled(W){const We=[this.scroll];return W&&W!==this._document&&We.push(new Di.y(Dt=>this._ngZone.runOutsideAngular(()=>{const Xn=ai=>{this._activeDragInstances.length&&Dt.next(ai)};return W.addEventListener("scroll",Xn,!0),()=>{W.removeEventListener("scroll",Xn,!0)}}))),(0,Wi.T)(...We)}ngOnDestroy(){this._dragInstances.forEach(W=>this.removeDragItem(W)),this._dropInstances.forEach(W=>this.removeDropContainer(W)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((W,We)=>{this._document.removeEventListener(We,W.handler,W.options)}),this._globalListeners.clear()}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(s.NgZone),s.\u0275\u0275inject(e.DOCUMENT))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();const $o={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let yr=(()=>{class Ke{constructor(W,We,Dt,Qt){this._document=W,this._ngZone=We,this._viewportRuler=Dt,this._dragDropRegistry=Qt}createDrag(W,We=$o){return new Kt(W,We,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(W){return new wo(W,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(e.DOCUMENT),s.\u0275\u0275inject(s.NgZone),s.\u0275\u0275inject(_o.rL),s.\u0275\u0275inject(_a))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),ca=(()=>{class Ke{}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275mod=s.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=s.\u0275\u0275defineInjector({providers:[yr],imports:[_o.ZD]}),Ke})();var Qs=i(18815),ja=i(81208),rs=i(70918),Po=i(24826),Ko=i(20502),Ji=i(28918),Na=i(42274),Ma=i(40488);const Fa=JSON.parse('{"Aw":{"DJ":"frontend"}}');var Fr=i(11828),Ao=i(59633);const fs=(0,Hi.Lq)({availableLocations:[],cities:[],counties:[],selectedLocation:null},(0,Hi.on)(Ao.N.requestCountiesListSuccess,(Ke,Ne)=>({...Ke,counties:Ne.counties,selectedLocation:null})),(0,Hi.on)(Ao.N.requestCitiesListSuccess,(Ke,Ne)=>({...Ke,cities:Ne.cities})),(0,Hi.on)(Ao.N.requestAvailableLocationsListSuccess,(Ke,Ne)=>({...Ke,availableLocations:Ne.locations})),(0,Hi.on)(Ao.N.setSelectedLocation,(Ke,Ne)=>({...Ke,selectedLocation:Ne})));var os=i(50081),ya=i(64629),Ha=i(54628);let La=0;const No=(0,ya.H)({selectId:Ke=>{const Ne=`${Ke}#${La}`;return La+=1,Ne}}),sn={lastNavigatedPage:No.getInitialState(),lastUnavailableLocation:null},In=(0,Hi.Lq)(sn,(0,Hi.on)(Ha.Y.setNavigationAddressPageSuccess,(Ke,Ne)=>({...Ke,lastNavigatedPage:Ne.previousPage?No.addOne(Ne.previousPage,Ke.lastNavigatedPage):Ke.lastNavigatedPage})),(0,Hi.on)(Ha.Y.setLastUnavailableAddress,(Ke,Ne)=>({...Ke,lastUnavailableLocation:Ne.unavailableAddress})),(0,Hi.on)(Ha.Y.navigateToPreviousAddressPage,Ke=>({...Ke,lastNavigatedPage:Ke.lastNavigatedPage.ids.length>1?No.removeOne(Ke.lastNavigatedPage.ids[Ke.lastNavigatedPage.ids.length-1],Ke.lastNavigatedPage):Ke.lastNavigatedPage})),(0,Hi.on)(Ha.Y.emptyNavigationHistory,Ke=>({...Ke,lastNavigatedPage:No.removeAll(No.getInitialState()),lastUnavailableLocation:null})));var oi=i(92615);const si=(0,ya.H)({selectId:Ke=>Ke}),qt={lastNavigatedListingPage:si.getInitialState()},Ri=(0,Hi.Lq)(qt,(0,Hi.on)(oi.C.setNavigationListingPage,(Ke,Ne)=>({...Ke,lastNavigatedListingPage:si.addOne(Ne.previousPage,Ke.lastNavigatedListingPage)})),(0,Hi.on)(oi.C.navigateToPreviousListingPage,(Ke,Ne)=>({...Ke,lastNavigatedListingPage:Ke.lastNavigatedListingPage.ids.length>1?si.removeOne(Ke.lastNavigatedListingPage.ids[Ke.lastNavigatedListingPage.ids.length-1],Ke.lastNavigatedListingPage):Ke.lastNavigatedListingPage})));var sr=i(20569);const Xi=(0,Hi.UY)({userLocationNavigationState:os.X,addressNavigationState:function $n(Ke,Ne){return In(Ke,Ne)},senditAddressNavigationState:sr._,cartNavigationState:function Fi(Ke,Ne){return Ri(Ke,Ne)}});var wr=(()=>{return(Ke=wr||(wr={})).LoadProducts="[Product] Load",Ke.LoadProductsSuccess="[Product] Load Success",Ke.LoadProductsFailure="[Product] Load Fail",wr;var Ke})();const Qo={loadProducts:(0,Hi.PH)(wr.LoadProducts),loadProductsSuccess:(0,Hi.PH)(wr.LoadProductsSuccess,(0,Hi.Ky)()),loadProductsFailure:(0,Hi.PH)(wr.LoadProductsFailure,(0,Hi.Ky)())},Vo=(0,Hi.Lq)({products:[]},(0,Hi.on)(Qo.loadProductsSuccess,(Ke,Ne)=>({...Ke,products:Ne.products})));var Xo=i(9566);const Vt=(0,Hi.Lq)({hasStockImportSucceededRecently:!1},(0,Hi.on)(Xo.F.setImportStatus,(Ke,Ne)=>({...Ke,hasStockImportSucceededRecently:Ne.hasStockImportSucceededRecently})));var ln=i(57613);const yi=(0,Hi.Lq)({shouldOpenRedirectToCustomerLoyaltyDialog:!1,shouldRedirectToCustomerLoyalty:!1,checkedInTime:null},(0,Hi.on)(ln.A.setShouldRedirectToCustomerLoyalty,(Ke,Ne)=>({...Ke,shouldRedirectToCustomerLoyalty:Ne.shouldRedirectToCustomerLoyalty})),(0,Hi.on)(ln.A.openRedirectToCustomerLoyaltyDialog,(Ke,Ne)=>({...Ke,shouldOpenRedirectToCustomerLoyaltyDialog:!0,checkedInTime:Ne.checkedInTime})),(0,Hi.on)(ln.A.closeRedirectToCustomerLoyaltyDialog,(Ke,Ne)=>({...Ke,shouldOpenRedirectToCustomerLoyaltyDialog:!1})));var or=i(29697);const Nr=(0,ya.H)({selectId:Ke=>Ji.VLR.generateCachedRequestId(Ke.searchDto)}),po={productListingRequests:Nr.getInitialState()},Rr=(0,Hi.Lq)(po,(0,Hi.on)(or.m.clearRequests,Ke=>({...Ke,productListingRequests:Nr.removeAll(Ke.productListingRequests)})),(0,Hi.on)(or.m.deleteRequest,(Ke,Ne)=>({...Ke,productListingRequests:Nr.removeOne(Ne.id,Ke.productListingRequests)})),(0,Hi.on)(or.m.saveRequest,(Ke,Ne)=>({...Ke,productListingRequests:Nr.addOne(Ne.request,Ke.productListingRequests)}))),Co={userLocationState:function Sr(Ke,Ne){return fs(Ke,Ne)},promotedProductsState:function Ra(Ke,Ne){return Vo(Ke,Ne)},businessStockState:function st(Ke,Ne){return Vt(Ke,Ne)},businessCustomerLoyaltyState:function Pi(Ke,Ne){return yi(Ke,Ne)},productsListingState:function Vr(Ke,Ne){return Rr(Ke,Ne)},sharedNavigationState:Xi};var Xr=i(77696),vo=i(90140),Zo=i(25456),ia=i(47716),Ga=i(80037);function ra(){const Ke=new tn.ye;return Ke.itemsPerPageLabel="afi\u0219eaz\u0103",Ke.nextPageLabel="pagina urm\u0103toare",Ke.previousPageLabel="pagina anterioar\u0103",Ke.firstPageLabel="prima pagin\u0103",Ke.lastPageLabel="ultima pagin\u0103",Ke.getRangeLabel=(Ne,W,We)=>{if(0===We||0===W)return"";const Dt=Ne*W;return`${Dt+1} - ${Dt<(We=Math.max(We,0))?Math.min(Dt+W,We):Dt+W} din ${We}`},Ke}var mr=i(3611),Ur=i(43437),so=i(1576),sa=i(55829);const Wa=function(Ke){return{"button-enabled-color":Ke}},ml=function(Ke){return{"quantity--error":Ke}},kl=function(Ke){return{value:Ke}};let Ja=(()=>{class Ke{constructor(){this.isLoadingChangeQuantity=!1,this.shouldDisableButtons=!1,this.shouldDisableAddButton=!1,this.changedQuantity=new s.EventEmitter,this.oneItem=Ur.G}ngOnInit(){this.quantity=Number(this.quantity)}subtract(){this.quantity=this.quantity>this.stock?this.stock:this.quantity-Ur.G,this.changedQuantity.emit(this.quantity)}add(){this.quantity=this.quantity+Ur.G,this.changedQuantity.emit(this.quantity)}isAddButtonDisabled(){return this.isLoadingChangeQuantity||this.quantity>=this.stock||this.shouldDisableButtons||this.shouldDisableAddButton}isSubtractButtonDisabled(){return this.isLoadingChangeQuantity||this.quantity<=this.oneItem||this.shouldDisableButtons}ngOnChanges(W){this.quantity=Number(this.quantity),W.shouldDisableButtons&&(this.shouldDisableButtons=W.shouldDisableButtons.currentValue)}}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275cmp=s.\u0275\u0275defineComponent({type:Ke,selectors:[["app-quantity-selector-presentation"]],inputs:{initialQuantity:"initialQuantity",quantity:"quantity",isLoadingChangeQuantity:"isLoadingChangeQuantity",stock:"stock",shouldDisableButtons:"shouldDisableButtons",shouldDisableAddButton:"shouldDisableAddButton"},outputs:{changedQuantity:"changedQuantity"},features:[s.\u0275\u0275NgOnChangesFeature],decls:12,vars:17,consts:[["fxLayout","row","fxLayoutAlign","space-between center",1,"cart-quantity-controls"],["fxLayout","row","fxLayoutAlign","space-between center",1,"buttons-wrapper"],["mat-icon-button","",1,"quantity-button",3,"disabled","click"],[1,"material-icons","ic",3,"ngClass"],["fxLayout","column","fxLayoutAlign","center center",1,"quantity","text-center"],[3,"ngClass"],["mat-icon-button","",3,"disabled","click"]],template:function(W,We){1&W&&(s.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"button",2),s.\u0275\u0275listener("click",function(){return We.subtract()}),s.\u0275\u0275elementStart(3,"i",3),s.\u0275\u0275text(4,"remove_circle"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(5,"div",4)(6,"span",5),s.\u0275\u0275text(7),s.\u0275\u0275pipe(8,"translate"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(9,"button",6),s.\u0275\u0275listener("click",function(){return We.add()}),s.\u0275\u0275elementStart(10,"i",3),s.\u0275\u0275text(11," add_circle "),s.\u0275\u0275elementEnd()()()()),2&W&&(s.\u0275\u0275advance(2),s.\u0275\u0275property("disabled",We.isSubtractButtonDisabled()),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(9,Wa,We.quantity>We.oneItem)),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(11,ml,!We.quantity)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1(" ",s.\u0275\u0275pipeBind2(8,6,"SHARED.PRODUCT.CONTROLS.QUANTITY",s.\u0275\u0275pureFunction1(13,kl,We.quantity))," "),s.\u0275\u0275advance(2),s.\u0275\u0275property("disabled",We.isAddButtonDisabled()),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(15,Wa,We.quantity<We.stock&&!We.shouldDisableAddButton)))},dependencies:[e.NgClass,so.xw,so.Wh,sa.oO,k.eB,a.X$],styles:[".cart-quantity-controls[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button, .cart-quantity-controls[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:inner-spin-button!important;opacity:1;margin-left:5px}.custom-fs[_ngcontent-%COMP%]{font-size:12px!important}@media (max-width: 350px){.custom-fs[_ngcontent-%COMP%]{font-size:11px!important}}.quantity-button[_ngcontent-%COMP%]{margin-right:0!important}button[_ngcontent-%COMP%]{min-width:32px}button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{margin-left:-3px}.mt-15[_ngcontent-%COMP%]{margin-top:15px}.mt-12[_ngcontent-%COMP%]{margin-top:12px}.mt-11[_ngcontent-%COMP%]{margin-top:11px}.mt-8[_ngcontent-%COMP%]{margin-top:8px}.quantity[_ngcontent-%COMP%]{font-weight:900;font-size:15px;width:55px;line-height:1em}.quantity--error[_ngcontent-%COMP%]{color:red;opacity:.6}.quantity--empty[_ngcontent-%COMP%]{width:135px}.button-enabled-color[_ngcontent-%COMP%]{color:#00853b}button[_ngcontent-%COMP%]   .ic[_ngcontent-%COMP%]{font-size:36px}button[_ngcontent-%COMP%]:hover   .ic.button-enabled-color[_ngcontent-%COMP%]{color:#007534}"],changeDetection:0}),Ke})();var ws=i(56052),Ca=i(77044),ms=i(55738),Ea=(i(32420),i(52267)),Xs=i(62079),as=i(40750),Oo=i(43717),gl=i(36667);const _l=function(Ke,Ne){return{height:Ke,width:Ne,margin:"0 0 12px 0","border-radius":"0"}};function Fl(Ke,Ne){if(1&Ke&&(s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275element(1,"ngx-skeleton-loader",2)(2,"ngx-skeleton-loader",3),s.\u0275\u0275elementContainerEnd()),2&Ke){const W=s.\u0275\u0275nextContext();s.\u0275\u0275advance(1),s.\u0275\u0275styleProp("height",W.isCarouselProduct()?W.getCarouselLoadingImageHeight():W.getLoadingImageHeight()),s.\u0275\u0275property("theme",s.\u0275\u0275pureFunction2(4,_l,W.isCarouselProduct()?W.getCarouselLoadingImageHeight():W.getLoadingImageHeight(),W.isCarouselProduct()?W.getCarouselLoadingImageHeight():W.getLoadingImageHeight())),s.\u0275\u0275advance(1),s.\u0275\u0275property("theme",W.cardInfoTheme)}}const vl=function(Ke,Ne){return{height:Ke,width:Ne,margin:"0","border-radius":"8px 8px 0 0"}};function js(Ke,Ne){if(1&Ke&&(s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275element(1,"ngx-skeleton-loader",2),s.\u0275\u0275elementContainerEnd()),2&Ke){const W=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("theme",s.\u0275\u0275pureFunction2(1,vl,W.isCarouselProduct()?W.getCarouselLoadingImageHeight():W.getLoadingImageHeight(),W.isCarouselProduct()?W.getCarouselLoadingImageHeight():W.getLoadingImageHeight()))}}function Jo(Ke,Ne){if(1&Ke&&s.\u0275\u0275element(0,"app-product-card-chip",19),2&Ke){const W=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("promotionType",W.product.carouselType)("discountPercent",W.product.discountPercent)}}function ll(Ke,Ne){if(1&Ke&&(s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275element(1,"app-product-card-chip",22),s.\u0275\u0275elementContainerEnd()),2&Ke){const W=Ne.$implicit,We=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(1),s.\u0275\u0275property("promotionType",W)("discountPercent",We.carmen.formatBadgeDiscount(null==We.product||null==We.product.bestOffer?null:We.product.bestOffer.discount))}}function gs(Ke,Ne){if(1&Ke&&(s.\u0275\u0275elementStart(0,"div",20),s.\u0275\u0275template(1,ll,2,2,"ng-container",21),s.\u0275\u0275elementEnd()),2&Ke){const W=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",W.formatLabels(null==W.product||null==W.product.bestOffer?null:W.product.bestOffer.labels))}}function Hs(Ke,Ne){if(1&Ke&&(s.\u0275\u0275elementStart(0,"div",20),s.\u0275\u0275element(1,"app-product-card-chip",22),s.\u0275\u0275elementEnd()),2&Ke){const W=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("promotionType",W.product.carouselType)("discountPercent",null==W.product?null:W.product.discountPercent)}}function ss(Ke,Ne){1&Ke&&(s.\u0275\u0275elementStart(0,"div",23),s.\u0275\u0275text(1),s.\u0275\u0275pipe(2,"translate"),s.\u0275\u0275elementEnd()),2&Ke&&(s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1(" ",s.\u0275\u0275pipeBind1(2,1,"SHARED.PRODUCT.PRODUCT_CARD.OUT_OF_STOCK")," "))}function _s(Ke,Ne){if(1&Ke){const W=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"span",26),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(W);const Dt=s.\u0275\u0275nextContext(3);return s.\u0275\u0275resetView(Dt.closeAllDialogs())}),s.\u0275\u0275pipe(1,"async"),s.\u0275\u0275pipe(2,"business"),s.\u0275\u0275text(3),s.\u0275\u0275elementEnd()}if(2&Ke){const W=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("routerLink",s.\u0275\u0275pipeBind1(1,2,s.\u0275\u0275pipeBind2(2,4,W.product.bestOffer.businessExternalId,"publicProfileRouterLink"))),s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate1(" ",W.product.bestOffer.businessName," ")}}const Js=function(Ke){return{count:Ke}};function qs(Ke,Ne){if(1&Ke){const W=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"span")(1,"a",27),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(W);const Dt=s.\u0275\u0275nextContext(3);return s.\u0275\u0275resetView(Dt.openProductOffersDialog())}),s.\u0275\u0275element(2,"span",28),s.\u0275\u0275pipe(3,"translate"),s.\u0275\u0275elementEnd()()}if(2&Ke){const W=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(2),s.\u0275\u0275property("innerHTML",s.\u0275\u0275pipeBind2(3,1,"SHARED.PRODUCT.PRODUCT_CARD.OFFERS",s.\u0275\u0275pureFunction1(4,Js,W.offersCount)),s.\u0275\u0275sanitizeHtml)}}function bl(Ke,Ne){if(1&Ke&&(s.\u0275\u0275elementStart(0,"div",24),s.\u0275\u0275template(1,_s,4,7,"span",25),s.\u0275\u0275template(2,qs,4,6,"span",1),s.\u0275\u0275elementEnd()),2&Ke){const W=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",1===(null==W.product.bestOffer||null==W.product.bestOffer.packaging||null==W.product.bestOffer.packaging.drugOffers?null:W.product.bestOffer.packaging.drugOffers.length)||W.isCarouselType(W.product.carouselType)),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",(null==W.product.bestOffer?null:W.product.bestOffer.packaging.drugOffers.length)>1)}}const el=function(Ke){return{value:Ke}};function tl(Ke,Ne){if(1&Ke&&(s.\u0275\u0275element(0,"div",29),s.\u0275\u0275pipe(1,"translate"),s.\u0275\u0275pipe(2,"price")),2&Ke){const W=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("innerHTML",s.\u0275\u0275pipeBind2(1,1,W.carmen.getCurrencyTranslationKey(W.product.priceMin),s.\u0275\u0275pureFunction1(6,el,s.\u0275\u0275pipeBind1(2,4,W.product.priceMin))),s.\u0275\u0275sanitizeHtml)}}function Os(Ke,Ne){if(1&Ke&&(s.\u0275\u0275element(0,"div",29),s.\u0275\u0275pipe(1,"translate"),s.\u0275\u0275pipe(2,"price")),2&Ke){const W=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("innerHTML",s.\u0275\u0275pipeBind2(1,1,W.carmen.getCurrencyTranslationKey(W.product.bestOffer.price),s.\u0275\u0275pureFunction1(6,el,s.\u0275\u0275pipeBind1(2,4,W.product.bestOffer.price))),s.\u0275\u0275sanitizeHtml)}}const vs=function(Ke){return{"loading-button":Ke}},Ts=function(Ke){return{"add-to-cart-button--gray":Ke}};function Ds(Ke,Ne){if(1&Ke){const W=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",30)(1,"button",31),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(W);const Dt=s.\u0275\u0275nextContext(2);return s.\u0275\u0275resetView(Dt.addToCartClicked())}),s.\u0275\u0275pipe(2,"translate"),s.\u0275\u0275elementStart(3,"mat-icon"),s.\u0275\u0275text(4,"add_shopping_cart"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275element(5,"drc-page-spinner",32),s.\u0275\u0275elementEnd()}if(2&Ke){const W=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(7,vs,W.isAddToCartLoading)),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(9,Ts,W.isProductPageBtnTheme))("matTooltip",s.\u0275\u0275pipeBind1(2,5,"SHARED.PRODUCT.CONTROLS.ADD_TO_CART")),s.\u0275\u0275advance(4),s.\u0275\u0275property("fxHide",!W.isAddToCartLoading)("diameter",25)}}const Is=function(Ke){return{height:Ke}},Ps=function(Ke){return{"carousel-title":Ke}};function bs(Ke,Ne){if(1&Ke){const W=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementContainerStart(0),s.\u0275\u0275elementStart(1,"div",4),s.\u0275\u0275template(2,js,2,4,"ng-container",1),s.\u0275\u0275elementStart(3,"img",5),s.\u0275\u0275listener("load",function(){s.\u0275\u0275restoreView(W);const Dt=s.\u0275\u0275nextContext();return s.\u0275\u0275resetView(Dt.hasLoadedImage=!0)})("error",function(){s.\u0275\u0275restoreView(W);const Dt=s.\u0275\u0275nextContext();return s.\u0275\u0275resetView(Dt.hasLoadedImage=!0)}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(4,"a",6),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(W);const Dt=s.\u0275\u0275nextContext();return s.\u0275\u0275resetView(Dt.displayProductDetails())}),s.\u0275\u0275elementStart(5,"div",7)(6,"div",8),s.\u0275\u0275template(7,Jo,1,2,"app-product-card-chip",9),s.\u0275\u0275template(8,gs,2,1,"div",10),s.\u0275\u0275template(9,Hs,2,2,"div",10),s.\u0275\u0275elementEnd()()(),s.\u0275\u0275element(10,"app-favourites-heart-btn",11),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",12)(12,"a",13),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(W);const Dt=s.\u0275\u0275nextContext();return s.\u0275\u0275resetView(Dt.displayProductDetails())}),s.\u0275\u0275text(13),s.\u0275\u0275elementEnd()(),s.\u0275\u0275template(14,ss,3,3,"div",14),s.\u0275\u0275template(15,bl,3,2,"div",15),s.\u0275\u0275elementStart(16,"div",16)(17,"div"),s.\u0275\u0275template(18,tl,3,8,"div",17),s.\u0275\u0275template(19,Os,3,8,"div",17),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(20,Ds,6,11,"div",18),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementContainerEnd()}if(2&Ke){const W=s.\u0275\u0275nextContext();s.\u0275\u0275advance(1),s.\u0275\u0275property("ngClass",W.isCarouselProduct()?"cover-wrapper-carousel":"cover-wrapper")("ngStyle",W.cardWidth?s.\u0275\u0275pureFunction1(21,Is,W.cardWidth+"px"):""),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!W.hasLoadedImage),s.\u0275\u0275advance(1),s.\u0275\u0275attribute("src",W.product.images[0].thumbnail,s.\u0275\u0275sanitizeUrl),s.\u0275\u0275advance(1),s.\u0275\u0275property("disableLink",!W.hasLoadedImage),s.\u0275\u0275advance(1),s.\u0275\u0275styleProp("background-image","url("+W.product.images[0].thumbnail+")"||0),s.\u0275\u0275property("fxHide",!W.hasLoadedImage),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",W.isCarouselType(W.product.carouselType)),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",W.type===W.controlTypes.PRODUCT_LISTING),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",W.isBusinessCarouselType),s.\u0275\u0275advance(1),s.\u0275\u0275property("product",W.product)("type",W.type)("productSlug",(null==W.product||null==W.product.bestOffer?null:W.product.bestOffer.productSlug)||(null==W.product||null==W.product.packagings[0]?null:W.product.packagings[0].slug)||W.product.productSlug),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(23,Ps,W.isCarouselType(W.product.carouselType)||W.isBusinessCarouselType)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate1(" ",W.product.registered_name," "),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!(null!=W.product&&null!=W.product.bestOffer&&W.product.bestOffer.inStock)&&W.type!==W.controlTypes.PROMOTION_CAROUSEL&&W.type!==W.controlTypes.BUSINESS_CAROUSEL),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",((null==W.product||null==W.product.bestOffer?null:W.product.bestOffer.inStock)||W.isCarouselType(W.product.carouselType))&&!W.isBusinessCarouselType),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngIf",!(null!=W.product&&null!=W.product.bestOffer&&W.product.bestOffer.inStock)&&W.type!==W.controlTypes.PROMOTION_CAROUSEL&&W.type!==W.controlTypes.BUSINESS_CAROUSEL||((null==W.product||null==W.product.bestOffer?null:W.product.bestOffer.inStock)||W.isCarouselType(W.product.carouselType))&&!W.isBusinessCarouselType),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",W.isBusinessCarouselType),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!W.shouldHideButtons&&!(null!=W.user&&W.user.isBusiness())&&((null==W.product?null:W.product.bestOffer.inStock)||W.type===W.controlTypes.BUSINESS_CAROUSEL||W.type===W.controlTypes.PROMOTION_CAROUSEL))}}const ql=function(Ke,Ne){return[Ke,Ne]},Fo=function(Ke){return{"no-shadow":Ke}};class cl{constructor(Ne,W){this.router=Ne,this.dialog=W,this.loading=!0,this.isAddToCartLoading=!1,this.shouldOpenProductDialog=!1,this.shouldHideButtons=!1,this.isHomeCarousel=!1,this.isProductPageBtnTheme=!1,this.doNotDisplaySeller=!1,this.openProductOffer=new s.EventEmitter,this.openProductDetailsDialog=new s.EventEmitter,this.addProductToCart=new s.EventEmitter,this.carouselControl=new s.EventEmitter,this.carmen=Ji.VLR,this.window=window,this.breakpoints=Ji.u3l,this.controlTypes=Ji.yP3,this.hasLoadedImage=!1,this.noImageMediumURL=Ji.Mak,this.buttonTypes=Ji.L$3,this.cardInfoTheme={height:"20px",width:this.isCarouselProduct()?this.getCarouselLoadingImageHeight():this.getLoadingImageHeight(),"margin-bottom":"12px","margin-top":"0"}}openProductOffersDialog(){this.openProductOffer.emit()}isCarouselProduct(){return[Ji.yP3.PROMOTION_CAROUSEL,Ji.yP3.BUSINESS_CAROUSEL].includes(this.type)}isCarouselType(Ne){return!!Ne&&this.type===Ji.yP3.PROMOTION_CAROUSEL}displayProductDetails(){if(this.dragging)return;const Ne=!!this.dialog.getDialogById("product-details-dialog");this.shouldOpenProductDialog||Ne?this.openProductDetailsDialog.emit():this.router.navigate(this.product.routerLink)}closeAllDialogs(){this.dialog.closeAll()}get isBusinessCarouselType(){return this.type===Ji.yP3.BUSINESS_CAROUSEL}formatLabels(Ne){if(!Ne?.length)return[];const W=RegExp(/\s+/g);return Ne.map(We=>We.toUpperCase().replace(W,"_")).filter(We=>!Ji.VLR.isUnavailableBadgeType(We))}getLoadingImageHeight(){let Ne;return Ne=window.innerWidth<=420?"calc((100vw / 2) - 20px)":window.innerWidth<=600?"calc((100vw / 2) - 28px)":window.innerWidth<=Ji.u3l.DESKTOP_S?"calc((100vw / 3) - 21.94px)":window.innerWidth<=1280?"calc((100vw / 4) - 81.5px)":window.innerWidth<=1400?"calc((100vw / 5) - 67.6px)":"calc(223.2px)",Ne}getCarouselLoadingImageHeight(){return`${this.cardWidth}px`}addToCartClicked(){if(this.product.bestOffer?.packaging.drugOffers.length>1)return this.openProductOffer.emit();this.addProductToCart.emit()}}cl.\u0275fac=function(Ne){return new(Ne||cl)(s.\u0275\u0275directiveInject(n.F0),s.\u0275\u0275directiveInject(Ut.on))},cl.\u0275cmp=s.\u0275\u0275defineComponent({type:cl,selectors:[["app-product-card-presentation"]],inputs:{loading:"loading",isAddToCartLoading:"isAddToCartLoading",dragging:"dragging",shouldOpenProductDialog:"shouldOpenProductDialog",type:"type",shouldHideButtons:"shouldHideButtons",product:"product",isHomeCarousel:"isHomeCarousel",isProductPageBtnTheme:"isProductPageBtnTheme",discountedProduct:"discountedProduct",doNotDisplaySeller:"doNotDisplaySeller",cardWidth:"cardWidth",offersCount:"offersCount"},outputs:{openProductOffer:"openProductOffer",openProductDetailsDialog:"openProductDetailsDialog",addProductToCart:"addProductToCart",carouselControl:"carouselControl"},decls:3,vars:8,consts:[[1,"business-product-item","text-center",3,"ngClass"],[4,"ngIf"],["appearance","circle",3,"theme"],["count","3",3,"theme"],[3,"ngClass","ngStyle"],["fxHide","",3,"load","error"],[3,"disableLink","click"],[1,"cover-image",3,"fxHide"],[1,"p-8"],[3,"promotionType","discountPercent",4,"ngIf"],["fxLayout","column","fxLayoutGap","4px",4,"ngIf"],[1,"add-to-favorites",3,"product","type","productSlug"],["fxLayout","column","fxLayoutAlign","space-between center",1,"product-title-container","mb-8",3,"ngClass"],[1,"product-title","product-line-clamp",3,"click"],["class","unavailable-text",4,"ngIf"],["class","business-line-clamp business-name business-name-wrapper",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between end",1,"icons"],["class","current-price current-price--updated",3,"innerHTML",4,"ngIf"],["class","add-to-cart-btn-container",3,"ngClass",4,"ngIf"],[3,"promotionType","discountPercent"],["fxLayout","column","fxLayoutGap","4px"],[4,"ngFor","ngForOf"],[1,"label__promotion",3,"promotionType","discountPercent"],[1,"unavailable-text"],[1,"business-line-clamp","business-name","business-name-wrapper"],["class","business-name cursor-pointer",3,"routerLink","click",4,"ngIf"],[1,"business-name","cursor-pointer",3,"routerLink","click"],[1,"offers-number",3,"click"],[3,"innerHTML"],[1,"current-price","current-price--updated",3,"innerHTML"],[1,"add-to-cart-btn-container",3,"ngClass"],["mat-icon-button","","fxFlex","40px",1,"add-to-cart-button",3,"ngClass","matTooltip","click"],[3,"fxHide","diameter"]],template:function(Ne,W){1&Ne&&(s.\u0275\u0275elementStart(0,"mat-card",0),s.\u0275\u0275template(1,Fl,3,7,"ng-container",1),s.\u0275\u0275template(2,bs,21,25,"ng-container",1),s.\u0275\u0275elementEnd()),2&Ne&&(s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(6,Fo,s.\u0275\u0275pureFunction2(3,ql,W.controlTypes.PROMOTION_CAROUSEL,W.controlTypes.BUSINESS_CAROUSEL).includes(W.type))),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",W.loading),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!W.loading))},dependencies:[Ea.K,e.NgClass,e.NgForOf,e.NgIf,e.NgStyle,n.rH,so.xw,so.SQ,so.Wh,so.yH,sa.b8,sa.oO,sa.Zl,k.eB,Ee.S$,ke.Hw,De.Kd,Ko.xr,mr.b,Xs.Q,as.l,e.AsyncPipe,Oo.r,gl.d,a.X$],styles:['mat-card[_ngcontent-%COMP%]{padding:16px 12px 12px!important}.unavailable-container[_ngcontent-%COMP%]{height:50px;display:flex;flex-direction:column;align-items:center;place-content:center}ngx-skeleton-loader[_ngcontent-%COMP%]{display:inline-block}.business-product-item[_ngcontent-%COMP%]{background-color:#cbcbcb;overflow:hidden}.business-product-item[_ngcontent-%COMP%]   .cover-image[_ngcontent-%COMP%]{border-top-left-radius:8px;border-top-right-radius:8px}.business-product-item[_ngcontent-%COMP%]   .carousel-container[_ngcontent-%COMP%]{width:120%}.business-product-item[_ngcontent-%COMP%]   .carousel-add-to-favorites[_ngcontent-%COMP%]{top:12px;right:22px}.business-product-item[_ngcontent-%COMP%]   .add-to-favorites[_ngcontent-%COMP%]{border-radius:50%;position:absolute;top:12px;right:12px;background-color:#fff}.business-product-item[_ngcontent-%COMP%]   .add-to-favorites[_ngcontent-%COMP%]   .fav-border-background[_ngcontent-%COMP%]{color:#7b7b7b}.business-product-item[_ngcontent-%COMP%]   .add-to-favorites[_ngcontent-%COMP%]:hover   .fav-border-background[_ngcontent-%COMP%]:before{content:"favorite";color:#7b7b7b}.business-product-item[_ngcontent-%COMP%]   .old-price[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:17px;letter-spacing:.51px;color:#242424;opacity:1;height:100%}.business-product-item[_ngcontent-%COMP%]   .new-price[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:17px;letter-spacing:.51px;color:#ff001a;opacity:1;height:100%}.business-product-item[_ngcontent-%COMP%]   .current-price[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:17px;letter-spacing:.51px;color:#242424;opacity:1;height:100%}.business-product-item[_ngcontent-%COMP%]   .current-price--updated[_ngcontent-%COMP%]{font-size:20px;line-height:26px}.business-product-item[_ngcontent-%COMP%]   .icons[_ngcontent-%COMP%]{height:40px!important;margin-top:16px}.unavailable-text[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:20px;color:#fc3247}.no-shadow[_ngcontent-%COMP%]{box-shadow:none!important}.product-title-container[_ngcontent-%COMP%]{font-size:14px;height:38px!important}.underline-only-on-hover[_ngcontent-%COMP%]{text-decoration:none}.underline-only-on-hover[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.icons[_ngcontent-%COMP%]{margin:16px 0 0}.color-red[_ngcontent-%COMP%]{color:#ff001a}.business-name[_ngcontent-%COMP%], .offers-number[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#00853b}.business-name-wrapper[_ngcontent-%COMP%]{color:#00853b;max-width:100%;line-height:20px}add-to-cart-btn-container[_ngcontent-%COMP%]{position:relative;min-width:40px!important}.add-to-cart-button[_ngcontent-%COMP%]{color:#fff!important;background-color:#00853b!important;border-radius:4px}.add-to-cart-button[_ngcontent-%COMP%]:hover{background-color:#007534!important}.add-to-cart-button--gray[_ngcontent-%COMP%]{background-color:#edeff2!important;color:#00853b!important}.add-to-cart-button--gray[_ngcontent-%COMP%]:hover{background-color:#e0e0e5!important}.add-to-cart-btn-container[_ngcontent-%COMP%]{position:relative;min-width:40px!important}.loading-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{opacity:.3;pointer-events:none}.loading-button[_ngcontent-%COMP%]   drc-page-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media (max-width: 1400px) and (min-width: 1281px){.cover-wrapper[_ngcontent-%COMP%]{height:calc(20vw - 67.6px)}}@media (max-width: 1280px) and (min-width: 961px){.cover-wrapper[_ngcontent-%COMP%]{height:calc(25vw - 81.5px)}}@media (max-width: 960px) and (min-width: 601px){.cover-wrapper[_ngcontent-%COMP%]{height:calc(33.3333333333vw - 21.94px)}}@media (max-width: 600px) and (min-width: 421px){.cover-wrapper[_ngcontent-%COMP%]{height:calc(50vw - 28px)}}@media (max-width: 420px){.cover-wrapper[_ngcontent-%COMP%]{height:calc(50vw - 20px)}}@media (max-width: 960px) and (min-width: 601px){.icons[_ngcontent-%COMP%]{width:100%;margin:0}}@media (max-width: 600px) and (min-width: 421px){.icons[_ngcontent-%COMP%]{width:100%;margin:0}}@media (max-width: 420px){.icons[_ngcontent-%COMP%]{margin:16px 0 0!important}}']}),function(Ke,Ne,W,We){var Xn,Dt=arguments.length,Qt=Dt<3?Ne:null===We?We=Object.getOwnPropertyDescriptor(Ne,W):We;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Qt=Reflect.decorate(Ke,Ne,W,We);else for(var ai=Ke.length-1;ai>=0;ai--)(Xn=Ke[ai])&&(Qt=(Dt<3?Xn(Qt):Dt>3?Xn(Ne,W,Qt):Xn(Ne,W))||Qt);Dt>3&&Qt&&Object.defineProperty(Ne,W,Qt)}([(0,Ca.I)(),function(Ke,Ne){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Ne)}(0,ms.n)],cl.prototype,"user",void 0);var Bo=i(11365),$a=i(39300),da=i(36129),Lo=i(70262),As=i(5221),jo=function(Ke,Ne){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Ke,Ne)};class Sa{constructor(Ne,W,We){this.actions$=Ne,this.userLocationService=W,this.store=We,this.updateUserLocationAfterUserAddress=!1,this.getCounties$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ao.N.requestCountiesList),(0,Bo.M)(this.store.select(As.GF)),(0,$a.h)(Dt=>!Dt[1].length),(0,da.z)(()=>this.userLocationService.getCounties()),(0,Lo.K)(Dt=>Ao.N.requestCountiesListFail({error:Dt})),(0,br.U)(Dt=>Ao.N.requestCountiesListSuccess({counties:Dt})))),this.getCities$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ao.N.requestCitiesList),(0,da.z)(Dt=>this.userLocationService.getCities(Dt.countyId)),(0,Lo.K)(Dt=>Ao.N.requestCitiesListFail({error:Dt})),(0,br.U)(Dt=>Ao.N.requestCitiesListSuccess({cities:Dt})))),this.getAvailableLocations$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ao.N.requestAvailableLocationsList),(0,Bo.M)(this.store.select(As.A_)),(0,$a.h)(Dt=>!Dt[1].length),(0,da.z)(()=>this.userLocationService.getAvailableLocation()),(0,Lo.K)(Dt=>Ao.N.requestAvailableLocationsListFail({error:Dt})),(0,br.U)(Dt=>Ao.N.requestAvailableLocationsListSuccess({locations:Dt})))),this.setUserAddress$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ao.N.setUserAddress),(0,br.U)(Dt=>{if(Dt.addresses&&(!this.userLocationService.getUserAddress()||this.userLocationService.getUserAddress()&&Ji.VLR.isBlank(this.userLocationService.getUserAddress()?.address)))return this.setUserAddress(Dt.addresses)})),{dispatch:!1})}setUserAddress(Ne){const W=Ne?.find(We=>!0===We.main_address);W&&(!this.userLocationService.getUserAddress()?.city.toLowerCase()||this.userLocationService.getUserLocationStore().toLowerCase()===W.city.toLowerCase()||Ji.VLR.normalizeAllDiacritics(this.userLocationService.getUserAddress()?.city)?.toLowerCase()===W.city.toLowerCase())&&(this.userLocationService.setUserAddress(W),this.userLocationService.changeCartDeliveryAddress(W).pipe((0,bo.q)(1)).subscribe(),this.userLocationService.getStoreLocation(W.city).pipe((0,bo.q)(1)).subscribe({next:We=>{this.userLocationService.setUserLocation({city:We.mainLocality,county:W.county})}}),this.userLocationService.notifyUpdatedUserAddress(W),this.updateUserLocationAfterUserAddress=!0)}}Sa.\u0275fac=function(Ne){return new(Ne||Sa)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(Ji.vio.UserLocationServiceToken),s.\u0275\u0275inject(Hi.yh))},Sa.\u0275prov=s.\u0275\u0275defineInjectable({token:Sa,factory:Sa.\u0275fac}),function(Ke,Ne,W,We){var Xn,Dt=arguments.length,Qt=Dt<3?Ne:null===We?We=Object.getOwnPropertyDescriptor(Ne,W):We;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Qt=Reflect.decorate(Ke,Ne,W,We);else for(var ai=Ke.length-1;ai>=0;ai--)(Xn=Ke[ai])&&(Qt=(Dt<3?Xn(Qt):Dt>3?Xn(Ne,W,Qt):Xn(Ne,W))||Qt);Dt>3&&Qt&&Object.defineProperty(Ne,W,Qt)}([(0,Ji.DsO)(200),jo("design:type",Function),jo("design:paramtypes",[Array]),jo("design:returntype",Object)],Sa.prototype,"setUserAddress",null);var we=i(77917),nr=i(72419),pn=i(97376);const Mi=(0,Hi.ZF)("shared"),mi=(0,Hi.P1)(Mi,Ke=>Ke.promotedProductsState.products);let gr=(()=>{class Ke{constructor(W,We,Dt){this.actions$=W,this.store=We,this.productsService=Dt,this.loadProducts$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Qo.loadProducts),(0,Bo.M)(this.store.select(mi)),(0,$a.h)(Qt=>!Qt[1].length),(0,da.z)(()=>this.productsService.getAllPromotedProducts().pipe((0,br.U)(Qt=>Qo.loadProductsSuccess({products:Qt})),(0,Lo.K)(Qt=>(0,_i.of)(Qo.loadProductsFailure({error:Qt})))))))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(Hi.yh),s.\u0275\u0275inject(pn.M))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var xe=i(50008),He=i(17366),fe=i(44850),rt=i(83261);function Pt(Ke,Ne){if(1&Ke){const W=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"i",10),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(W);const Dt=s.\u0275\u0275nextContext();return s.\u0275\u0275resetView(Dt.navigateBack.emit())}),s.\u0275\u0275text(1," arrow_back "),s.\u0275\u0275elementEnd()}}function hn(Ke,Ne){if(1&Ke){const W=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",11)(1,"div",12),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(W);const Dt=s.\u0275\u0275nextContext();return s.\u0275\u0275resetView(Dt.deleteDeliveryAddress.emit(Dt.address))}),s.\u0275\u0275elementStart(2,"span",13),s.\u0275\u0275text(3),s.\u0275\u0275pipe(4,"uppercase"),s.\u0275\u0275pipe(5,"translate"),s.\u0275\u0275elementEnd()()()}2&Ke&&(s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate1(" ",s.\u0275\u0275pipeBind1(4,1,s.\u0275\u0275pipeBind1(5,3,"SHARED.ADDRESS.DELIVERY_ADDRESS.ADDRESS_EDIT_AND_CONFIRMATION.DELETE_ADDRESS"))," "))}const wn=function(Ke){return{height:Ke}};let Ho=(()=>{class Ke{constructor(){this.isEditedAddress=!1,this.isAddressChanged=!1,this.userInputtedStreetNumber=null,this.saveAddress=new s.EventEmitter,this.editAddressWithMap=new s.EventEmitter,this.navigateBack=new s.EventEmitter,this.updateStreetAddress=new s.EventEmitter,this.updateStreetNumber=new s.EventEmitter,this.deleteDeliveryAddress=new s.EventEmitter,this.closeDialog=new s.EventEmitter,this.atLeastOneMainAddressWarning=new s.EventEmitter,this.iconPosition=Ji.ggF,this.canSaveAddressAsMainAddress=!0,this.buttonType=Ji.L$3,this.isAddressFormValid=!1,this.shouldSaveAddress=!1}ngOnInit(){this.possibleDialogHeight=window.innerHeight-Ji.Jkm}setShouldSaveAddress(W){this.shouldSaveAddress=W}setIsAddressFormValid(W){W&&(this.isAddressFormValid=!0)}save(W){this.saveAddress.emit(W),this.setShouldSaveAddress(!1)}back(){this.navigateBack.emit()}setDialogHeight(){let W=this.possibleDialogHeight-52-57-16;return W=this.isTablet()?W:W-32,W=this.isEditedAddress?W-53:W,this.isTablet()||this.isEditedAddress?`${W}px`:"auto"}isTablet(){return window.innerWidth<=Ji.u3l.TABLET||window.innerHeight<=Ji.lHR}}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275cmp=s.\u0275\u0275defineComponent({type:Ke,selectors:[["app-address-additional-info"]],inputs:{selectedAddress:"selectedAddress",address:"address",isEditedAddress:"isEditedAddress",isAddressChanged:"isAddressChanged",manuallyInputtedAddress:"manuallyInputtedAddress",userInputtedStreetNumber:"userInputtedStreetNumber"},outputs:{saveAddress:"saveAddress",editAddressWithMap:"editAddressWithMap",navigateBack:"navigateBack",updateStreetAddress:"updateStreetAddress",updateStreetNumber:"updateStreetNumber",deleteDeliveryAddress:"deleteDeliveryAddress",closeDialog:"closeDialog",atLeastOneMainAddressWarning:"atLeastOneMainAddressWarning"},decls:14,vars:20,consts:[[1,"mb-16","header",3,"fxLayoutAlign"],["class","material-icons cursor-pointer header__back-icon",3,"click",4,"ngIf"],["mat-button","",1,"header__next-step",3,"click"],[1,"full-width-divider"],[3,"ngStyle"],[1,"content-container","mt-16"],[3,"canSaveAddressAsMainAddress","isAddressChanged","selectedAddress","shouldSaveAddress","userInputtedStreetNumber","addressFormStatus","atLeastOneMainAddressWarning","closeDialog","editAddressWithMap","newAddress","updateAddressNumber","updateStreetAddress","updateShouldSaveAddress"],["fxLayoutAlign","center center",4,"ngIf"],[1,"mt-16"],[3,"iconPosition","icon","textTranslationKey","type","click"],[1,"material-icons","cursor-pointer","header__back-icon",3,"click"],["fxLayoutAlign","center center"],[1,"mt-24","mb-8",3,"click"],[1,"delete-btn-text"]],template:function(W,We){1&W&&(s.\u0275\u0275elementStart(0,"div",0),s.\u0275\u0275template(1,Pt,2,0,"i",1),s.\u0275\u0275elementStart(2,"button",2),s.\u0275\u0275listener("click",function(){return We.setShouldSaveAddress(!0)}),s.\u0275\u0275text(3),s.\u0275\u0275pipe(4,"uppercase"),s.\u0275\u0275pipe(5,"translate"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275element(6,"mat-divider",3),s.\u0275\u0275elementStart(7,"mat-dialog-content",4)(8,"div",5)(9,"app-confirm-extra-info-presentation",6),s.\u0275\u0275listener("addressFormStatus",function(Qt){return We.setIsAddressFormValid(Qt)})("atLeastOneMainAddressWarning",function(){return We.atLeastOneMainAddressWarning.emit()})("closeDialog",function(){return We.closeDialog.emit()})("editAddressWithMap",function(){return We.editAddressWithMap.emit()})("newAddress",function(Qt){return We.save(Qt)})("updateAddressNumber",function(Qt){return We.updateStreetNumber.emit(Qt)})("updateStreetAddress",function(Qt){return We.updateStreetAddress.emit(Qt)})("updateShouldSaveAddress",function(Qt){return We.setShouldSaveAddress(Qt)}),s.\u0275\u0275elementEnd()()(),s.\u0275\u0275element(10,"mat-divider",3),s.\u0275\u0275template(11,hn,6,5,"div",7),s.\u0275\u0275elementStart(12,"div",8)(13,"drc-button",9),s.\u0275\u0275listener("click",function(){return We.setShouldSaveAddress(!0)}),s.\u0275\u0275elementEnd()()),2&W&&(s.\u0275\u0275property("fxLayoutAlign",We.isEditedAddress?"end center":"space-between center"),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!We.isEditedAddress),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate1(" ",s.\u0275\u0275pipeBind1(4,14,s.\u0275\u0275pipeBind1(5,16,"SHARED.ADDRESS.DELIVERY_ADDRESS.SAVE_ADDRESS"))," "),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngStyle",s.\u0275\u0275pureFunction1(18,wn,We.setDialogHeight())),s.\u0275\u0275advance(2),s.\u0275\u0275property("canSaveAddressAsMainAddress",We.canSaveAddressAsMainAddress)("isAddressChanged",We.isAddressChanged)("selectedAddress",We.selectedAddress)("shouldSaveAddress",We.shouldSaveAddress)("userInputtedStreetNumber",We.userInputtedStreetNumber),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",We.isEditedAddress),s.\u0275\u0275advance(2),s.\u0275\u0275property("iconPosition",We.iconPosition.left)("icon","done")("textTranslationKey","SHARED.ADDRESS.DELIVERY_ADDRESS.SAVE_ADDRESS")("type",We.buttonType.iconAndTextButton))},dependencies:[He.r,e.NgIf,e.NgStyle,so.Wh,sa.Zl,k.eB,Ut.Rb,fe.d,rt.J,e.UpperCasePipe,a.X$],styles:[".header__back-icon[_ngcontent-%COMP%]{font-size:20px}.header__next-step[_ngcontent-%COMP%]{line-height:20px;font-weight:700;padding:0}.content-container[_ngcontent-%COMP%]{overflow-y:auto}.delete-btn-text[_ngcontent-%COMP%]{font-size:14px;cursor:pointer;color:#ff001a;font-weight:700}.full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}"]}),Ke})();var ls=i(54244),Wo=i(98311),za=i(79912),Ka=i(80531);class ys{constructor(Ne){this.userLocationService=Ne,this.setAdditionalAddressInfo=new s.EventEmitter,this.manuallyAddedAddress=new s.EventEmitter,this.setUnavailableAddress=new s.EventEmitter,this.setNextStep=new s.EventEmitter,this.back=new s.EventEmitter,this.carmen=Ji.VLR,this.buttonTypes=Ji.L$3,this.iconsPositions=Ji.ggF,this.shouldProceedToNextStep=!1}ngOnInit(){this.initForm(),this.listenToValueChanges()}ngOnChanges(Ne){Ne&&Ne.shouldValidate&&!0===Ne.shouldValidate.currentValue&&(this.addressForm.markAllAsTouched(),this.addressForm.updateValueAndValidity())}ngAfterViewInit(){document.getElementById("street").focus()}initForm(){this.addressForm=new R.nJ({streetNumber:new R.p4(this.streetNumber?this.streetNumber:void 0,[Wo.A.required(),Wo.A.maxLength(za.g.STREET_NUMBER_MAX)]),streetExtraInfo:new R.p4(void 0,[Wo.A.maxLength(za.g.GENERAL_MAX)]),notes:new R.p4(void 0,[Wo.A.minLength(za.g.GENERAL_MIN),Wo.A.maxLength(za.g.NOTES_MAX)]),name:new R.p4(this.user.profile.name?this.user.profile.name:void 0,[Wo.A.required(),Wo.A.minLength(za.g.GENERAL_MIN),Wo.A.maxLength(za.g.GENERAL_MAX)]),phone:new R.p4(this.user.profile.phone?this.user.profile.phone:void 0,[Wo.A.required(),Wo.A.maxLength(20),Wo.A.internationalPhone()]),main_address:new R.p4(!1),address:new R.p4(this.address?this.address:void 0,[Wo.A.required(),Wo.A.maxLength(za.g.GENERAL_MAX),Wo.A.minLength(za.g.STREET_MIN),Wo.A.notOnlyNumbers()]),county:new R.p4(this.selectedLocation&&this.selectedLocation.county?this.selectedLocation.county:void 0,[Wo.A.required()]),city:new R.p4(this.selectedLocation&&this.selectedLocation.city?this.selectedLocation.city:void 0,[Wo.A.required()])})}listenToValueChanges(){this.addressForm.valueChanges.pipe((0,ls.n)(()=>"VALID"!==this.addressForm.status)).subscribe(Ne=>{Ne.isSetManually=!0,this.setAdditionalAddressInfo.emit(Ne)})}setShouldProceedToNextStep(){this.shouldProceedToNextStep=!0}setNextAddressStep(Ne){const W=new xe.k({city:Ne.city,county:Ne.county,isSetManually:!0,locationLat:Ne.locationLat,locationLon:Ne.locationLon});this.userLocationService.getAvailabilityByName(W.county,W.city).pipe((0,bo.q)(1)).subscribe(We=>{We?this.setConfirmWithMapStep(W):this.setUnavailableAddressStep(W)})}setConfirmWithMapStep(Ne){this.manuallyAddedAddress.emit(Ne),this.setNextStep.emit(Zo.A.confirmAddressWithMap)}setUnavailableAddressStep(Ne){this.setUnavailableAddress.emit(Ne),this.setNextStep.emit(Zo.A.unavailableLocationStep)}}ys.\u0275fac=function(Ne){return new(Ne||ys)(s.\u0275\u0275directiveInject(Ji.vio.UserLocationServiceToken))},ys.\u0275cmp=s.\u0275\u0275defineComponent({type:ys,selectors:[["app-address-add-manually"]],inputs:{selectedLocation:"selectedLocation",address:"address",streetNumber:"streetNumber",shouldValidate:"shouldValidate"},outputs:{setAdditionalAddressInfo:"setAdditionalAddressInfo",manuallyAddedAddress:"manuallyAddedAddress",setUnavailableAddress:"setUnavailableAddress",setNextStep:"setNextStep",back:"back"},features:[s.\u0275\u0275NgOnChangesFeature],decls:9,vars:8,consts:[["fxLayoutAlign","start center",1,"header"],[1,"material-icons","header__back-icon",3,"click"],[1,"full-width-divider"],[3,"title","shouldProceedToNextStep","address"],[1,"pt-16"],[3,"iconPosition","icon","textTranslationKey","type","clickEvent"]],template:function(Ne,W){1&Ne&&(s.\u0275\u0275elementStart(0,"div",0)(1,"i",1),s.\u0275\u0275listener("click",function(){return W.back.emit()}),s.\u0275\u0275text(2,"arrow_back"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275element(3,"mat-divider",2),s.\u0275\u0275elementStart(4,"app-add-address-manually-presentation",3),s.\u0275\u0275listener("address",function(Dt){return W.setNextAddressStep(Dt)}),s.\u0275\u0275pipe(5,"translate"),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(6,"mat-divider",2),s.\u0275\u0275elementStart(7,"div",4)(8,"drc-button",5),s.\u0275\u0275listener("clickEvent",function(){return W.setShouldProceedToNextStep()}),s.\u0275\u0275elementEnd()()),2&Ne&&(s.\u0275\u0275advance(4),s.\u0275\u0275property("title",s.\u0275\u0275pipeBind1(5,6,"SHARED.ADDRESS.DELIVERY_ADDRESS.ADD_ADDRESS_MANUALLY_TITLE"))("shouldProceedToNextStep",W.shouldProceedToNextStep),s.\u0275\u0275advance(4),s.\u0275\u0275property("iconPosition",W.iconsPositions.right)("icon","keyboard_arrow_right")("textTranslationKey","SHARED.ADDRESS.DELIVERY_ADDRESS.NEXT")("type",W.buttonTypes.iconAndTextButton))},dependencies:[He.r,so.Wh,fe.d,Ka.w,a.X$],styles:[".header[_ngcontent-%COMP%]{margin-bottom:16px}.header__back-icon[_ngcontent-%COMP%]{font-size:20px;cursor:pointer}.full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}"]}),function(Ke,Ne,W,We){var Xn,Dt=arguments.length,Qt=Dt<3?Ne:null===We?We=Object.getOwnPropertyDescriptor(Ne,W):We;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Qt=Reflect.decorate(Ke,Ne,W,We);else for(var ai=Ke.length-1;ai>=0;ai--)(Xn=Ke[ai])&&(Qt=(Dt<3?Xn(Qt):Dt>3?Xn(Ne,W,Qt):Xn(Ne,W))||Qt);Dt>3&&Qt&&Object.defineProperty(Ne,W,Qt)}([(0,Ca.I)(),function(Ke,Ne){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Ne)}(0,ms.n)],ys.prototype,"user",void 0);let cc=(()=>{class Ke{constructor(W,We){this.actions$=W,this.store=We,this.setNavigationPage$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ha.Y.setAddressNavigationPage),(0,Bo.M)(this.store),(0,br.U)(([Dt,Qt])=>{const Xn=Qt.shared.sharedNavigationState.addressNavigationState;return Ha.Y.setNavigationAddressPageSuccess({previousPage:Xn.lastNavigatedPage.entities[Xn.lastNavigatedPage.ids[Xn.lastNavigatedPage.ids.length-1]]!==Dt.previousPage?Dt.previousPage:null})})))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(Hi.yh))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var jr=i(92275),Ir=i(23677);let Zr=(()=>{class Ke{constructor(W,We,Dt){this.actions$=W,this.store=We,this.productsService=Dt,this.loadMarketProducts$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ir.T.loadMarketProducts),(0,Bo.M)(this.store.select(jr.Xv)),(0,$a.h)(([Qt,Xn])=>!Xn),(0,da.z)(([Qt,Xn])=>this.productsService.getCategoryProductsForCarousel(Qt.category,Qt.city,Qt.county,Qt.guestId).pipe((0,br.U)(ai=>Ir.T.loadMarketProductsSuccess({products:ai})),(0,Lo.K)(ai=>(0,_i.of)(Ir.T.loadMarketProductsFailure({error:ai}))))))),this.loadSupplements$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ir.T.loadSupplements),(0,Bo.M)(this.store.select(jr.ge)),(0,$a.h)(([Qt,Xn])=>!Xn),(0,da.z)(([Qt,Xn])=>this.productsService.getCategoryProductsForCarousel(Qt.category,Qt.city,Qt.county,Qt.guestId).pipe((0,br.U)(ai=>Ir.T.loadSupplementsSuccess({products:ai})),(0,Lo.K)(ai=>(0,_i.of)(Ir.T.loadSupplementsFailure({error:ai}))))))),this.loadRestaurantItems$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ir.T.loadRestaurantItems),(0,Bo.M)(this.store.select(jr.EX)),(0,$a.h)(([Qt,Xn])=>!Xn),(0,da.z)(([Qt,Xn])=>this.productsService.getCategoryProductsForCarousel(Qt.category,Qt.city,Qt.county,Qt.guestId).pipe((0,br.U)(ai=>Ir.T.loadRestaurantItemsSuccess({products:ai})),(0,Lo.K)(ai=>(0,_i.of)(Ir.T.loadRestaurantItemsFailure({error:ai}))))))),this.loadHealthcareItems$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ir.T.loadHealthcareItems),(0,Bo.M)(this.store.select(jr.t4)),(0,$a.h)(([Qt,Xn])=>!Xn),(0,da.z)(([Qt,Xn])=>this.productsService.getCategoryProductsForCarousel(Qt.category,Qt.city,Qt.county,Qt.guestId).pipe((0,br.U)(ai=>Ir.T.loadHealthcareItemsSuccess({products:ai})),(0,Lo.K)(ai=>(0,_i.of)(Ir.T.loadHealthcareItemsFailure({error:ai}))))))),this.loadService$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ir.T.loadServices),(0,Bo.M)(this.store.select(jr.mL)),(0,$a.h)(([Qt,Xn])=>!Xn),(0,da.z)(([Qt,Xn])=>this.productsService.getCategoryProductsForCarousel(Qt.category,Qt.city,Qt.county,Qt.guestId).pipe((0,br.U)(ai=>Ir.T.loadServicesSuccess({products:ai})),(0,Lo.K)(ai=>(0,_i.of)(Ir.T.loadServicesFailure({error:ai}))))))),this.loadEquipment$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(Ir.T.loadEquipment),(0,Bo.M)(this.store.select(jr.pj)),(0,$a.h)(([Qt,Xn])=>!Xn),(0,da.z)(([Qt,Xn])=>this.productsService.getCategoryProductsForCarousel(Qt.category,Qt.city,Qt.county,Qt.guestId).pipe((0,br.U)(ai=>Ir.T.loadEquipmentSuccess({products:ai})),(0,Lo.K)(ai=>(0,_i.of)(Ir.T.loadEquipmentFailure({error:ai})))))))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(Hi.yh),s.\u0275\u0275inject(pn.M))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var qa=i(8883);let Ro=(()=>{class Ke{constructor(W,We){this.actions$=W,this.productsService=We,this.loadProducts$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(qa.r.loadProducts),(0,da.z)(Dt=>this.productsService.getCategoryProductsForCarousel(Dt.category,Dt.city,Dt.county,Dt.guestId).pipe((0,br.U)(Qt=>qa.r.loadProductsSuccess({categoryProducts:Qt})),(0,Lo.K)(Qt=>(0,_i.of)(qa.r.loadProductsFailure({errorMessage:Qt})))))))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(pn.M))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var Ws=(()=>{return(Ke=Ws||(Ws={})).LoadSimilarProducts="[Similar Products] Load",Ke.LoadSimilarProductsSuccess="[Similar Products] Load Success",Ke.LoadSimilarProductsFailure="[Similar Products] Load Fail",Ws;var Ke})();const zo={loadSimilarProducts:(0,Hi.PH)(Ws.LoadSimilarProducts,(0,Hi.Ky)()),loadSimilarProductsSuccess:(0,Hi.PH)(Ws.LoadSimilarProductsSuccess,(0,Hi.Ky)()),loadSimilarProductsFailure:(0,Hi.PH)(Ws.LoadSimilarProductsFailure,(0,Hi.Ky)())};let no=(()=>{class Ke{constructor(W,We){this.actions$=W,this.productsService=We,this.loadSimilarProducts$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(zo.loadSimilarProducts),(0,da.z)(Dt=>this.productsService.getSimilarProducts(Dt.atc,Dt.slug,Dt.county,Dt.city,Dt.guestId).pipe((0,br.U)(Qt=>zo.loadSimilarProductsSuccess({similarProducts:Qt})),(0,Lo.K)(Qt=>(0,_i.of)(zo.loadSimilarProductsFailure({errorMessage:Qt})))))))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(pn.M))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var ua=i(53877),Bl=i(43958),dl=i(38009);const cs=(0,ya.H)({selectId:Ke=>`${Ke.productSlug}/${Ke.businessId}`}),zc={similarProducts:cs.getInitialState(),error:""},Yc=(0,Hi.Lq)(zc,(0,Hi.on)(zo.loadSimilarProductsSuccess,(Ke,Ne)=>({...Ke,similarProducts:cs.setAll(Ne.similarProducts,Ke.similarProducts),error:""}))),ud={homeCarouselProducts:Bl.Zb,listingCarouselProducts:dl.vq,similarCarouselProducts:function Tu(Ke,Ne){return Yc(Ke,Ne)}};var pa=i(86099),wa=i(73279);let Cl=(()=>{class Ke{constructor(W,We){this.action$=W,this.favoritesService=We,this.loadPreview$=(0,Vi.GW)(()=>this.action$.pipe((0,Vi.l4)(wa.N.loadPreview),(0,pa.z)(()=>this.favoritesService.getPreviewProducts().pipe((0,pa.z)(Dt=>[wa.N.loadPreviewSuccess({favoriteListProducts:Dt.favorites}),wa.N.updateTotalElementsSuccess({totalElements:Dt.size})]),(0,Lo.K)(()=>(0,_i.of)(wa.N.loadPreviewFailure()))))))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(Ji.vio.FavoritesServiceToken))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var Qa=i(92829);class Ul{constructor(Ne){Ne&&Object.assign(this,Ne)}onHierarchicalListItemClicked(Ne){}}class Gc extends Ul{constructor(Ne){super(Ne)}onHierarchicalListItemClicked(Ne){Ne.selected=!Ne.selected,this.items.find(We=>We.listId===Ne.listId).selected=Ne.selected;const W=this.items.find(We=>We.listId===Ne.parentId);Ne.selected&&W&&!0!==W.selected?this.onHierarchicalListItemClicked(W):!Ne.selected&&Ne.listId===Qa.kG.listId&&this.items.map(We=>We.selected===Ne.selected)}getNumberOfLists(){return this.items.length}}var pd=i(89262);const hd=function(Ke){return{indent:Ke}};function wc(Ke,Ne){if(1&Ke){const W=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-list-item")(1,"div",2)(2,"button",3),s.\u0275\u0275listener("click",function(){const Qt=s.\u0275\u0275restoreView(W).$implicit,Xn=s.\u0275\u0275nextContext();return Xn.updateList(Qt),s.\u0275\u0275resetView(Xn.onHierarchicalListItemClicked(Qt))}),s.\u0275\u0275elementStart(3,"mat-checkbox",4)(4,"span"),s.\u0275\u0275text(5),s.\u0275\u0275pipe(6,"truncate"),s.\u0275\u0275elementEnd()()(),s.\u0275\u0275element(7,"mat-divider",5),s.\u0275\u0275elementEnd()()}if(2&Ke){const W=Ne.$implicit,We=Ne.last,Dt=s.\u0275\u0275nextContext();s.\u0275\u0275advance(1),s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(8,hd,W.level!==Dt.levelDepth.ROOT_LIST)),s.\u0275\u0275advance(2),s.\u0275\u0275property("checked",W.selected),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate2("",s.\u0275\u0275pipeBind2(6,5,W.text,24)," (",W.size,")"),s.\u0275\u0275advance(2),s.\u0275\u0275property("fxHide",Dt.window.innerWidth>=Dt.breakpoints.DESKTOP_S||We)}}const zs=function(Ke){return{scrollable:Ke}};let Rs=(()=>{class Ke extends Gc{constructor(W){super(),this.undoRedoMessage=W,this.window=window,this.breakpoints=Ji.u3l,this.levelDepth=Qa.rl,this.maxUnscrollableLists=3,this.listChanges=new s.EventEmitter,this.lists$=new cn.X(null)}ngOnInit(){this.lists$.next(this.lists)}updateList(W){this.actualList=W,this.listChanges.emit({listId:Number(W.listId),listName:W.text,selected:!W.selected}),this.undoRedoMessage.openSnackBar(Ji.CsS.SUCCESS,W.selected?"PRODUCT_REMOVED_FROM_LIST":"PRODUCT_ADDED_TO_LIST",W.text)}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275directiveInject(Ji.vio.UndoRedoMessageServiceToken))},Ke.\u0275cmp=s.\u0275\u0275defineComponent({type:Ke,selectors:[["app-hierarchical-list"]],inputs:{lists:"lists"},outputs:{listChanges:"listChanges"},features:[s.\u0275\u0275InheritDefinitionFeature],decls:2,vars:4,consts:[[1,"favorite-lists",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"ngClass"],["mat-flat-button","",1,"list-btn",3,"click"],["color","primary",3,"checked"],[3,"fxHide"]],template:function(W,We){1&W&&(s.\u0275\u0275elementStart(0,"mat-list",0),s.\u0275\u0275template(1,wc,8,10,"mat-list-item",1),s.\u0275\u0275elementEnd()),2&W&&(s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(2,zs,We.getNumberOfLists()>We.maxUnscrollableLists)),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",We.lists))},dependencies:[e.NgClass,e.NgForOf,sa.b8,sa.oO,k.eB,Ye.FC,ze.Zj,ze.oh,fe.d,pd.W],styles:[".favorite-lists[_ngcontent-%COMP%]{max-height:150px;overflow-y:hidden}.favorite-lists.scrollable[_ngcontent-%COMP%]{overflow-y:scroll!important}.favorite-lists[_ngcontent-%COMP%]   .indent[_ngcontent-%COMP%]{margin-left:23px}.favorite-lists[_ngcontent-%COMP%]   .list-btn[_ngcontent-%COMP%]{max-width:224px}"]}),Ke})();var ul=i(74474),go=i(53629),te=i(33765),Oe=i(53433),ht=i(48283),Bt=i(6796),Cn=i(49726),ni=i(15368);let Li=(()=>{class Ke{constructor(W,We,Dt){this.action$=W,this.favoritesService=We,this.store=Dt,this.addProductList$=(0,Vi.GW)(()=>this.action$.pipe((0,Vi.l4)(Oe.N.createProductList),(0,Bo.M)(this.store.select(Bt.qx),this.store.select(Bt.bR)),(0,pa.z)(([Qt,Xn,ai])=>{if(Qt.isGuestUser)return this.addProductToGuestList(this.getGuestPayloadForOneProductToOneList(Qt));{const[Ki,Cr]=this.getPatientPayloadForOneProductToOneList(Qt,ai);return this.addProductToOneList(Ki,Xn)}}))),this.deleteProductList$=(0,Vi.GW)(()=>this.action$.pipe((0,Vi.l4)(Oe.N.deleteProductList),(0,Bo.M)(this.store.select(Bt.qx),this.store.select(Bt.bR)),(0,pa.z)(([Qt,Xn,ai])=>Qt.isGuestUser?(delete Qt.product.packagings?.find(Ki=>Ki.productSlug===Qt.productSlug).inFavouriteLists[`${Qt.listId}`],Qt.product.inLists&&(Qt.product.inLists=Qt.product.inLists.filter(Ki=>!Ki||"-1"!==Ki?.id)),this.removeProductFromGuestList(Qt)):this.removeProductFromOneList(this.getRemoveProductFromOneListPayload(Qt),Xn)))),this.addProductToRootList$=(0,Vi.GW)(()=>this.action$.pipe((0,Vi.l4)(Oe.N.addProductToLists),(0,Bo.M)(this.store.select(Bt.qx),this.store.select(Bt.bR)),(0,pa.z)(([Qt,Xn,ai])=>(Qt.productToList.product.packagings&&(Qt=this.listIdsToInFavoriteLists(Qt,ai)),Qt.productToList.product.inLists&&(Qt=this.listIdsToInLists(Qt,ai)),this.addProductToRootAndFavoriteProducts(Qt,ai,Qt.listIds.includes(Xn),Xn))))),this.deleteProductFromRootList$=(0,Vi.GW)(()=>this.action$.pipe((0,Vi.l4)(Oe.N.deleteProductFromRootList),(0,Bo.M)(this.store.select(Bt.qx),this.store.select(Bt.bR)),(0,pa.z)(([Qt,Xn,ai])=>{let Ki=[];return Qt.product.packagings&&(Qt.product.packagings.find(Cr=>Cr.productSlug===Qt.productSlug).inFavouriteLists={}),Qt.product.inLists&&(Ki=Qt.product.inLists.map(Cr=>Cr.id),Qt.product.inLists=[]),Ki.includes(-1)||Ki.push(-1),this.removeProductFromRootAndFavoriteProducts({productToList:Qt,listIds:Ki},ai,Ki.includes(Xn))}))),this.updateProduct$=(0,Vi.GW)(()=>this.action$.pipe((0,Vi.l4)(Oe.N.updateProduct),(0,pa.z)(Qt=>this.updateUserProduct(Qt))))}getGuestPayloadForOneProductToOneList(W){return W.product.packagings&&(W.product.packagings.find(We=>We.productSlug===W.productSlug).inFavouriteLists[`${W.listId}`]=Ji.G06.name),W.product.inLists&&W.product.inLists.push(Ji.G06),W}getPatientPayloadForOneProductToOneList(W,We){W.product.packagings&&(W.product.packagings.find(Qt=>Qt.productSlug===W.productSlug).inFavouriteLists[`${W.listId}`]=We?.find(Qt=>Qt.id===W.listId).name);const Dt=We?.find(Qt=>Qt.id===W.listId);return Dt.size++,W.product.inLists&&(this.hasInListAListId(W.product.inLists,W.listId)&&(W.product.inLists=W.product.inLists.filter(Qt=>Qt.id!==W.listId)),W.product.inLists.push(Dt)),[W=this.addDefaultListToPayload(W,We),Dt]}addDefaultListToPayload(W,We){if(W.addToDefaultList){const Dt=We?.find(Qt=>-1===Qt.id);Dt.size++,W.product.packagings&&(W.product.packagings.find(Qt=>Qt.productSlug===W.productSlug).inFavouriteLists[-1]=Dt.name),this.hasInListAListId(W.product.inLists,-1)||W.product.inLists.push(Dt)}return W}hasInListAListId(W,We){return!!W?.find(Dt=>Dt.id===We)}addProductToOneList(W,We){return this.favoritesService.add(W.slug,W.listId).pipe((0,pa.z)(Dt=>{const Qt=[];return Qt.push(Oe.N.addProductToListSuccess({...W,favoriteProductId:Dt})),We===W.listId&&Qt.push((0,ht.lE)({product:new Cn.zA({...W.product,id:Dt,productSlug:W.slug})})),Qt.push(wa.N.clearPreview()),Qt.push(wa.N.loadPreview()),Qt}),(0,Lo.K)(()=>(0,_i.of)(Oe.N.addProductToListFailure())))}addProductToGuestList(W){return this.favoritesService.add(W.slug,W.listId).pipe((0,pa.z)(We=>{const Dt=[];return Dt.push(Oe.N.addProductToListSuccess({...W,favoriteProductId:We})),Dt.push(wa.N.clearPreview()),Dt.push(wa.N.loadPreview()),Dt}),(0,Lo.K)(()=>(0,_i.of)(Oe.N.addProductToListFailure())))}getRemoveProductFromOneListPayload(W){return delete W.product.packagings?.find(We=>We.productSlug===W.productSlug).inFavouriteLists[`${W.listId}`],W.product.inLists&&W.addToDefaultList?W.product.inLists=W.product.inLists.filter(We=>-1!==We.id&&We.id!==W.listId):W.product.inLists&&(W.product.inLists=W.product.inLists.filter(We=>We.id!==W.listId)),W.addToDefaultList&&delete W.product.packagings.find(We=>We.productSlug===W.productSlug).inFavouriteLists[-1],W}removeProductFromOneList(W,We){return this.favoritesService.remove(W.slug,W.listId!==Qa.HA?W.listId:null).pipe((0,pa.z)(()=>{const Dt=[];return Dt.push(Oe.N.removeProductFromListSuccess(W)),We===W.listId&&Dt.push((0,ht.jX)({id:Number(W.favoriteProductId)})),Dt.push(ni.o.updateListsFromBackend()),Dt.push(ni.o.loadFavoriteLists()),(W.addToDefaultList||W.listId===Qa.HA)&&(Dt.push(wa.N.clearPreview()),Dt.push(wa.N.loadPreview())),Dt}),(0,Lo.K)(()=>(0,_i.of)(Oe.N.removeProductFromListSFailure())))}removeProductFromGuestList(W){return this.favoritesService.removeFromGuestUser(W.slug).pipe((0,pa.z)(()=>{const We=[];return We.push(Oe.N.removeProductFromListSuccess(W)),We.push(wa.N.clearPreview()),We.push(wa.N.loadPreview()),We}),(0,Lo.K)(()=>(0,_i.of)(Oe.N.removeProductFromListSFailure())))}removeProductFromRootAndFavoriteProducts(W,We,Dt){return this.favoritesService.removeFromRootList(W.productToList.productSlug).pipe((0,pa.z)(()=>{const Qt=[];Qt.push(Oe.N.deleteProductFromRootListSuccess(W)),Qt.push(wa.N.deletePreviewProductIfExistsSuccess({productSlug:W.productToList.slug})),Dt&&Qt.push((0,ht.jX)({id:Number(W.productToList.favoriteProductId)})),We.filter(ai=>ai.id in W.listIds);const Xn=We.filter(ai=>W.listIds.includes(ai.id)).map(ai=>(ai.size--,ai));return Qt.push(ni.o.updateMultipleListSizeSuccess({favoritesLists:Xn})),Qt}),(0,Lo.K)(()=>(0,_i.of)(Oe.N.removeProductFromListSFailure())))}listIdsToInFavoriteLists(W,We){return W.productToList.product.packagings.find(Dt=>Dt.productSlug===W.productToList.productSlug).inFavouriteLists={},W.listIds.forEach(Dt=>{W.productToList.product.packagings.find(Qt=>Qt.productSlug===W.productToList.productSlug).inFavouriteLists[`${Dt}`]=We.find(Qt=>Qt.id===Dt).name}),W}listIdsToInLists(W,We){return W.productToList.product.inLists=[],W.listIds.forEach(Dt=>{W.productToList.product.inLists.push(We.find(Qt=>Qt.id===Dt))}),W}addProductToRootAndFavoriteProducts(W,We,Dt,Qt){return this.favoritesService.addProductToMultipleLists({productSlug:W.productToList.slug,listIds:W.listIds}).pipe((0,pa.z)(Xn=>{const ai=[];if(Qt){const Cr=Xn[W?.listIds?.indexOf(Qt)]?.toString();W.productToList.favoriteProductId=Number(Cr),ai.push(Oe.N.addProductToListsSuccess(W)),Dt&&ai.push((0,ht.lE)({product:new Cn.zA({...W.productToList.product,id:Cr})}))}else ai.push(Oe.N.addProductToListsSuccess(W));ai.push(wa.N.clearPreview()),ai.push(wa.N.loadPreview());const Ki=We.filter(Cr=>W.listIds.includes(Cr.id)).map(Cr=>(Cr.size++,Cr));return ai.push(ni.o.updateMultipleListSizeSuccess({favoritesLists:Ki})),ai}),(0,Lo.K)(()=>(0,_i.of)(Oe.N.removeProductFromListSFailure())))}updateUserProduct(W){let We;return W.deletedLists&&(We=Object.keys(W.deletedLists)?.map(Qt=>Number(Qt))),(W.selected?We?.length>1?this.favoritesService.addProductToMultipleLists({productSlug:W.updatedProduct.slug,listIds:We}):this.favoritesService.add(W.updatedProduct.slug):this.favoritesService.remove(W.updatedProduct.slug)).pipe((0,pa.z)(()=>{const Qt=[];return Qt.push(Oe.N.updateProductSuccess(W)),W.selected?(Qt.push(wa.N.clearPreview()),Qt.push(wa.N.loadPreview())):Qt.push(wa.N.deletePreviewProductIfExistsSuccess({productSlug:W.updatedProduct.slug})),W.isGuest||(Qt.push(ni.o.updateListsFromBackend()),Qt.push(ni.o.loadFavoriteLists())),Qt}),(0,Lo.K)(()=>(0,_i.of)(Oe.N.updateProductFailure())))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(Ji.vio.FavoritesServiceToken),s.\u0275\u0275inject(Hi.yh))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var hr=i(75452),Hr=i(61700),lo=i(15439),Ya=i(80529);let Ys=(()=>{class Ke{constructor(W){this.http=W}getDocument(W){const We=/\\\"/;return this.http.get(`api/documents/${W}`).pipe((0,br.U)(Dt=>{let Qt=Dt.content.replace(We,'"');for(;Qt!==Dt.content;)Dt.content=Qt,Qt=Dt.content.replace(We,'"');return{html:Qt,date:Dt.date}}),(0,br.U)(Dt=>Dt.html.replace(Ji.Kv3,lo(Dt.date).format("DD.MM.YYYY"))))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Ya.eN))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var Eo=i(77368);let Du=(()=>{class Ke{constructor(W,We,Dt){this.snackBarMessageService=W,this.locationService=We,this.userLocationService=Dt,this.shouldProceedToNextStep=!1,this.saveUserAddress=new s.EventEmitter,this.setUnavailableUserAddress=new s.EventEmitter,this.setUserCoordinates=new s.EventEmitter,this.changeNextStep=new s.EventEmitter,this.buttonTypes=Ji.L$3,this.iconsPositions=Ji.ggF,this.coordinates={lat:null,lng:null}}getControl(W){return this.locationFormGroup.get(W)}setCoordinates(W){this.coordinates.lat=W.lat,this.coordinates.lng=W.lng,this.setUserCoordinates.emit(this.coordinates)}setAddressCoordinates(W){this.locationService.locateAddress(W).pipe((0,bo.q)(1)).subscribe(We=>{this.setCoordinates(We),this.changeNextStep.emit(Eo.O.ConfirmAddressStep)})}setAddress(W){const We=new xe.k({city:W.city,county:W.county,isSetManually:!0,locationLon:W.locationLon,locationLat:W.locationLat});this.userLocationService.getAvailabilityByName(We.county,We.city).subscribe(Dt=>{this.setAddressCoordinates(We),Dt?this.saveUserAddress.emit(We):(this.setUnavailableUserAddress.emit(We),this.changeNextStep.emit(Eo.O.UnavailableLocationStep))},()=>this.snackBarMessageService.displayMessage(Ji.CsS.ERROR,"SHARED.USER_LOCATION.ADD_ADDRESS_ERROR")),this.saveUserAddress.emit(We)}save(){this.shouldProceedToNextStep=!0}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275directiveInject(Ji.vio.SnackbarMessageServiceToken),s.\u0275\u0275directiveInject(Ji.vio.LocationServiceToken),s.\u0275\u0275directiveInject(Ji.vio.UserLocationServiceToken))},Ke.\u0275cmp=s.\u0275\u0275defineComponent({type:Ke,selectors:[["app-add-user-address-manually"]],inputs:{selectedAvailableLocation:"selectedAvailableLocation"},outputs:{saveUserAddress:"saveUserAddress",setUnavailableUserAddress:"setUnavailableUserAddress",setUserCoordinates:"setUserCoordinates",changeNextStep:"changeNextStep"},decls:5,vars:9,consts:[[3,"title","shouldProceedToNextStep","address"],[1,"mt-16"],[1,"w-100",3,"type","color","iconPosition","textTranslationKey","icon","click"]],template:function(W,We){1&W&&(s.\u0275\u0275elementStart(0,"app-add-address-manually-presentation",0),s.\u0275\u0275listener("address",function(Qt){return We.setAddress(Qt)}),s.\u0275\u0275pipe(1,"translate"),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(2,"mat-divider"),s.\u0275\u0275elementStart(3,"div",1)(4,"drc-button",2),s.\u0275\u0275listener("click",function(){return We.save()}),s.\u0275\u0275elementEnd()()),2&W&&(s.\u0275\u0275property("title",s.\u0275\u0275pipeBind1(1,7,"SHARED.USER_LOCATION.ADD_MANUALLY.TITLE"))("shouldProceedToNextStep",We.shouldProceedToNextStep),s.\u0275\u0275advance(4),s.\u0275\u0275property("type",We.buttonTypes.iconAndTextButton)("color","primary")("iconPosition",We.iconsPositions.right)("textTranslationKey","SHARED.USER_LOCATION.ADD_MANUALLY.CONTINUE")("icon","navigate_next"))},dependencies:[He.r,fe.d,Ka.w,a.X$],styles:[".title__description[_ngcontent-%COMP%]{line-height:22px}.title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:22px}.required-fields-description[_ngcontent-%COMP%]{opacity:1}.mat-divider[_ngcontent-%COMP%]{margin:0 -16px}@media (min-width: 960px){.title__description[_ngcontent-%COMP%]{display:block;max-width:60%}}"],changeDetection:0}),Ke})();var Oc=i(21480);const Yp=function(Ke){return{"mt-6":Ke}};let zd=(()=>{class Ke{constructor(W,We){this.userLocationService=W,this.locationService=We,this.setUserAddress=new s.EventEmitter,this.setUserCoordinates=new s.EventEmitter,this.changeNextStep=new s.EventEmitter,this.setUnavailableUserAddress=new s.EventEmitter,this.setUserInputtedNumber=new s.EventEmitter,this.coordinates={lat:null,lng:null},this.userInputtedStreetNumber=null,this.buttonTypes=Ji.L$3,this.iconsPositions=Ji.ggF,this.successCallback=Dt=>{this.getUserAddressFromCoordinates(Dt)},this.errorCallback=()=>{this.changeNextStep.emit(Eo.O.InaccessibleLocationStep)}}get breakpoints(){return Ji.u3l}ngOnInit(){this.windowWidth=window.innerWidth,this.address=new xe.k(this.address)}setAddress(W){W.noResults||this.address.deliveryText===W.deliveryText||this.saveAvailableAddress(W)}setAddressCoordinates(W){this.coordinates.lat=W.lat,this.coordinates.lng=W.lng}saveAvailableAddress(W){W.noResults||this.address.deliveryText===W.deliveryText||this.userLocationService.getAvailabilityByName(W.county,W.city).subscribe(We=>{this.address=W,this.address.isSetManually=!1,this.setUserAddress.emit(this.address),this.setUserCoordinates.emit(this.coordinates),We?this.changeNextStep.emit(Eo.O.ConfirmAddressStep):(this.setUnavailableUserAddress.emit(W),this.setUserAddress.emit(W),this.changeNextStep.emit(Eo.O.UnavailableLocationStep))},()=>{this.setUnavailableUserAddress.emit(W),this.setUserAddress.emit(W),this.changeNextStep.emit(Eo.O.UnavailableLocationStep)})}hasNoResult(W){this.shouldInvalidateObject=W?{shouldInvalidate:!0,errorMessageKey:"SHARED.USER_LOCATION.ADD_ADDRESS.NO_RESULTS"}:{shouldInvalidate:!1,errorMessageKey:null}}handleMinAddressLengthError(){this.shouldInvalidateObject={shouldInvalidate:!0,errorMessageKey:"SHARED.USER_LOCATION.ADD_ADDRESS.MINIMUM_CHARACTERS_ADDRESS"}}getUserLocation(){navigator.geolocation.getCurrentPosition(this.successCallback,this.errorCallback,{enableHighAccuracy:!0,timeout:1e4})}getUserAddressFromCoordinates(W){const We={lat:Number(W.coords.latitude),lng:Number(W.coords.longitude)};this.locationService.locate({location:We}).subscribe(Dt=>{this.updatedAddress=(new xe.k)._fromGeocodeAddress(Dt[0]);const Qt=Dt.find(Xn=>Xn?.types?.includes("country"))?.formatted_address;if(Ji.VLR.normalizeRomanianDiacritics(Qt)?.toLowerCase()!="Romania".toLowerCase())return this.setUnavailableUserAddress.emit(this.updatedAddress),this.setUserAddress.emit(this.updatedAddress),void this.changeNextStep.emit(Eo.O.UnavailableLocationStep);this.setAddress(this.updatedAddress),this.setAddressCoordinates(We)})}setAddressManually(){this.changeNextStep.emit(Eo.O.AddAddressManuallyStep)}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275directiveInject(Ji.vio.UserLocationServiceToken),s.\u0275\u0275directiveInject(Ji.vio.LocationServiceToken))},Ke.\u0275cmp=s.\u0275\u0275defineComponent({type:Ke,selectors:[["app-add-user-address"]],inputs:{address:"address"},outputs:{setUserAddress:"setUserAddress",setUserCoordinates:"setUserCoordinates",changeNextStep:"changeNextStep",setUnavailableUserAddress:"setUnavailableUserAddress",setUserInputtedNumber:"setUserInputtedNumber"},decls:21,vars:23,consts:[[1,"title","mb-24","mt-16"],["fxLayout","row","fxLayoutAlign","start center",1,"mb-16"],[1,"material-icons","title__icon","mr-4"],[1,"title__description"],["fxLayout","column"],[1,"w-100","mb-16",3,"shouldInvalidateAddress","labelTranslationKey","prioritisedCity","hasNoResults","minAddressLengthError","setAddress","setCoords"],["fxLayoutAlign","start center",3,"ngClass"],[1,"available-locations__title"],["mat-flat-button","",1,"available-locations__button",3,"mousedown","touchstart"],[1,"w-100","mt-24",3,"type","color","iconPosition","textTranslationKey","icon","mousedown","touchstart"]],template:function(W,We){1&W&&(s.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"i",2),s.\u0275\u0275text(3,"location_on"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(4,"h1"),s.\u0275\u0275text(5),s.\u0275\u0275pipe(6,"translate"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(7,"span",3),s.\u0275\u0275text(8),s.\u0275\u0275pipe(9,"translate"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(10,"div",4)(11,"drc-street-autocomplete-search",5),s.\u0275\u0275listener("hasNoResults",function(Qt){return We.hasNoResult(Qt)})("minAddressLengthError",function(){return We.handleMinAddressLengthError()})("setAddress",function(Qt){return We.setAddress(Qt)})("setCoords",function(Qt){return We.setAddressCoordinates(Qt)}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(12,"div",6)(13,"span",7),s.\u0275\u0275text(14),s.\u0275\u0275pipe(15,"translate"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(16,"button",8),s.\u0275\u0275listener("mousedown",function(Qt){return Qt.preventDefault(),We.setAddressManually()})("touchstart",function(Qt){return Qt.preventDefault(),We.setAddressManually()}),s.\u0275\u0275elementStart(17,"strong"),s.\u0275\u0275text(18),s.\u0275\u0275pipe(19,"translate"),s.\u0275\u0275elementEnd()()(),s.\u0275\u0275elementStart(20,"drc-button",9),s.\u0275\u0275listener("mousedown",function(Qt){return Qt.preventDefault(),We.getUserLocation()})("touchstart",function(Qt){return Qt.preventDefault(),We.getUserLocation()}),s.\u0275\u0275elementEnd()()),2&W&&(s.\u0275\u0275advance(5),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(6,13,"SHARED.USER_LOCATION.ADD_ADDRESS.TITLE")),s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(9,15,"SHARED.USER_LOCATION.ADD_ADDRESS.INFO")),s.\u0275\u0275advance(3),s.\u0275\u0275property("shouldInvalidateAddress",We.shouldInvalidateObject)("labelTranslationKey","SHARED.USER_LOCATION.ADD_ADDRESS.ADDRESS_SEARCH_LABEL")("prioritisedCity",null==We.updatedAddress?null:We.updatedAddress.city),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(21,Yp,We.windowWidth<=We.breakpoints.DESKTOP_S)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate1(" ",s.\u0275\u0275pipeBind1(15,17,"SHARED.USER_LOCATION.ADD_ADDRESS.NOT_FOUND_ADDRESS")," "),s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(19,19,"SHARED.USER_LOCATION.ADD_ADDRESS.ADD_MANUALLY")),s.\u0275\u0275advance(2),s.\u0275\u0275property("type",We.buttonTypes.iconAndTextButton)("color","lightgray")("iconPosition",We.iconsPositions.left)("textTranslationKey","SHARED.USER_LOCATION.ADD_ADDRESS.USE_LOCATION")("icon","my_location"))},dependencies:[He.r,e.NgClass,so.xw,so.Wh,sa.oO,k.eB,Oc.B,a.X$],styles:[".title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:22px;line-height:29px}.title__description[_ngcontent-%COMP%]{line-height:22px;font-size:14px}.title__icon[_ngcontent-%COMP%]{font-size:28px;color:#00853b}.available-locations__button[_ngcontent-%COMP%]{text-decoration:none;color:#242424;background-color:#fff;font-size:14px;letter-spacing:.7px;padding:0 8px;line-height:22px}.available-locations[_ngcontent-%COMP%]   .user-address__button[_ngcontent-%COMP%]{background-color:#e5e5e5}.available-locations__title[_ngcontent-%COMP%]{font-size:14px}"]}),Ke})(),qo=(()=>{class Ke{constructor(){this.buttonTypes=Ji.L$3,this.iconPositions=Ji.ggF,this.back=new s.EventEmitter}goToAvailableLocations(){this.back.emit()}}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275cmp=s.\u0275\u0275defineComponent({type:Ke,selectors:[["app-no-location-access"]],outputs:{back:"back"},decls:12,vars:11,consts:[[1,"no-location-access__wrapper"],[1,"no-location-access__title-wrapper"],[1,"material-icons"],[1,"no-location-access__info-text","mt-8","mb-24"],[1,"full-width-divider"],[3,"color","type","icon","iconPosition","textTranslationKey","clickEvent"]],template:function(W,We){1&W&&(s.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"i",2),s.\u0275\u0275text(3,"location_off"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(4,"strong"),s.\u0275\u0275text(5),s.\u0275\u0275pipe(6,"translate"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(7,"span",3),s.\u0275\u0275text(8),s.\u0275\u0275pipe(9,"translate"),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-divider",4),s.\u0275\u0275elementStart(11,"drc-button",5),s.\u0275\u0275listener("clickEvent",function(){return We.goToAvailableLocations()}),s.\u0275\u0275elementEnd()()),2&W&&(s.\u0275\u0275advance(5),s.\u0275\u0275textInterpolate(s.\u0275\u0275pipeBind1(6,7,"SHARED.ADDRESS.NO_LOCATION_ACCESS.TITLE")),s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate1(" ",s.\u0275\u0275pipeBind1(9,9,"SHARED.ADDRESS.NO_LOCATION_ACCESS.INFO")," "),s.\u0275\u0275advance(3),s.\u0275\u0275property("color","accent")("type",We.buttonTypes.iconAndTextButton)("icon","keyboard_arrow_left")("iconPosition",We.iconPositions.left)("textTranslationKey","SHARED.ADDRESS.NO_LOCATION_ACCESS.BACK"))},dependencies:[He.r,fe.d,a.X$],styles:[".full-width-divider[_ngcontent-%COMP%]{margin:0 -16px 16px!important}.no-location-access__wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:16px}.no-location-access__title-wrapper[_ngcontent-%COMP%]{align-items:flex-start;display:flex}.no-location-access__title-wrapper[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#ff001a;margin-top:3px}.no-location-access__title-wrapper[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:24px;line-height:32px;margin-left:6px}.no-location-access__info-text[_ngcontent-%COMP%]{font-size:14px;line-height:22px}@media (min-width: 430px){.no-location-access__info-text[_ngcontent-%COMP%]{display:block;max-width:60%}}"],changeDetection:0}),Ke})();var Pu=i(89547);let Gp=(()=>{class Ke{constructor(W){this.userLocationService=W,this.saveAddress=new s.EventEmitter,this.setCoordinates=new s.EventEmitter,this.setUnavailableUserAddress=new s.EventEmitter,this.setNextStep=new s.EventEmitter,this.buttonTypes=Ji.L$3,this.iconsPositions=Ji.ggF,this.shouldDisplayPinWarning=!1}save(){this.address.isSetManually&&this.cityCenterCoordinates.lat===this.coordinates.lat&&this.cityCenterCoordinates.lng===this.coordinates.lng?this.shouldDisplayPinWarning=!0:this.userLocationService.getAvailabilityByName(this.address.county,this.address.city).pipe((0,bo.q)(1)).subscribe({next:W=>{W?this.saveAddress.emit(this.address):(this.setUnavailableUserAddress.emit(this.address),this.setNextStep.emit(Eo.O.UnavailableLocationStep))},error:()=>{this.setUnavailableUserAddress.emit(this.address),this.setNextStep.emit(Eo.O.UnavailableLocationStep)}})}setAddress(W){this.address=W}setAddressCoordinates(W){(this.address.isSetManually&&this.cityCenterCoordinates?.lat!==W.lat||this.cityCenterCoordinates?.lng!==W.lng)&&(this.shouldDisplayPinWarning=!1),this.coordinates=W,this.address.locationLon=W.lng,this.address.locationLat=W.lat,this.setCoordinates.emit(W)}ngOnInit(){this.address?.isSetManually&&this.coordinates&&(this.cityCenterCoordinates=this.coordinates)}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275directiveInject(Ji.vio.UserLocationServiceToken))},Ke.\u0275cmp=s.\u0275\u0275defineComponent({type:Ke,selectors:[["app-confirm-user-address"]],inputs:{coordinates:"coordinates",address:"address"},outputs:{saveAddress:"saveAddress",setCoordinates:"setCoordinates",setUnavailableUserAddress:"setUnavailableUserAddress",setNextStep:"setNextStep"},decls:3,vars:8,consts:[[3,"address","shouldDisplayPinWarning","coordinates","setAddress","setCoordinates"],[1,"full-width-divider","mb-16"],[1,"w-100",3,"type","color","iconPosition","textTranslationKey","icon","click"]],template:function(W,We){1&W&&(s.\u0275\u0275elementStart(0,"app-confirm-address-with-coordinates-presentation",0),s.\u0275\u0275listener("setAddress",function(Qt){return We.setAddress(Qt)})("setCoordinates",function(Qt){return We.setAddressCoordinates(Qt)}),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(1,"mat-divider",1),s.\u0275\u0275elementStart(2,"drc-button",2),s.\u0275\u0275listener("click",function(){return We.save()}),s.\u0275\u0275elementEnd()),2&W&&(s.\u0275\u0275property("address",We.address)("shouldDisplayPinWarning",We.shouldDisplayPinWarning)("coordinates",We.coordinates),s.\u0275\u0275advance(2),s.\u0275\u0275property("type",We.buttonTypes.iconAndTextButton)("color","primary")("iconPosition",We.iconsPositions.left)("textTranslationKey","SHARED.USER_LOCATION.CONFIRM_ADDRESS.CONFIRM_ADDRESS")("icon","done"))},dependencies:[He.r,fe.d,Pu.u],styles:[".full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}app-confirm-address-with-coordinates-presentation[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]{margin:0 -16px!important}"],changeDetection:0}),Ke})(),$c=(()=>{class Ke{constructor(W,We,Dt,Qt){this.actions$=W,this.dialog=We,this.router=Dt,this.businessService=Qt,this.checkCopaymentPercent$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(ln.A.checkCopaymentPercent),(0,xo.b)(Xn=>this.redirectUrl=Xn.optionUrl),(0,da.z)(Xn=>this.businessService.getBusinessSettings()),(0,br.U)(Xn=>Xn.copaymentPercent>=Ji.wKw||Xn.withContract&&Xn.copaymentPercent>=Ji.Whk?(this.router.navigate([this.redirectUrl]),ln.A.checkCopaymentPercentSuccess()):ln.A.openRedirectToCustomerLoyaltyDialog({checkedInTime:Xn.checkedInTime})),(0,Lo.K)(()=>(0,_i.of)(ln.A.checkCopaymentPercentFail()))))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(Ut.on),s.\u0275\u0275inject(n.F0),s.\u0275\u0275inject(Ji.vio.BusinessServiceToken))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var fd=i(13863);let jl=(()=>{class Ke{constructor(W,We){this.actions$=W,this.store=We,this.setNavigationPage$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(fd.D.setAddressNavigationPage),(0,Bo.M)(this.store),(0,br.U)(([Dt,Qt])=>{const Xn=Qt.shared.sharedNavigationState.senditAddressNavigationState;return fd.D.setNavigationAddressPageSuccess({previousPage:Xn.lastNavigatedPage.entities[Xn.lastNavigatedPage.ids[Xn.lastNavigatedPage.ids.length-1]]!==Dt.previousPage?Dt.previousPage:null})})))}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(Hi.yh))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();const xa=function(Ke){return{height:Ke}};let Ba=(()=>{class Ke{constructor(W,We){this.userLocationService=W,this.changeDetector=We,this.isPreselectLocationOnCheckout=!1,this.setCoordinates=new s.EventEmitter,this.setAddress=new s.EventEmitter,this.setUnavailableAddress=new s.EventEmitter,this.setNextStep=new s.EventEmitter,this.navigateBack=new s.EventEmitter,this.isAddressChanged=new s.EventEmitter,this.resetManuallyInputtedAddress=new s.EventEmitter,this.buttonTypes=Ji.L$3,this.iconsPositions=Ji.ggF,this.shouldDisplayPinWarning=!1}ngOnInit(){this.setInitialCoordinates(),this.possibleDialogHeight=window.innerHeight-Ji.Jkm,this.address?.isSetManually&&this.coordinates&&(this.cityCenterCoordinates=this.coordinates)}setInitialCoordinates(){this.coordinates&&(this.initialCoordinates={lat:this.coordinates.lat,lng:this.coordinates.lng})}setDeliveryAddress(W){this.address=W}setAddressCoordinates(W){(this.cityCenterCoordinates?.lat!==W.lat||this.cityCenterCoordinates?.lng!==W.lng)&&(this.shouldDisplayPinWarning=!1,this.changeDetector.detectChanges()),this.coordinates=W,this.setCoordinates.emit(W)}setNextAddressStep(){[Zo.A.addManually,Zo.A.availableLocationStep].includes(this.previousStep)&&this.address.isSetManually&&this.cityCenterCoordinates.lat===this.coordinates.lat&&this.cityCenterCoordinates.lng===this.coordinates.lng?this.shouldDisplayPinWarning=!0:this.userLocationService.getAvailabilityByName(this.address.county,this.address.city).pipe((0,bo.q)(1)).subscribe({next:W=>{W?(this.setAddress.emit(this.address),this.setNextStep.emit(Zo.A.addressExtraInfo),this.checkIfAddressChanged()):(this.setUnavailableAddress.emit(this.address),this.setNextStep.emit(Zo.A.unavailableLocationStep))},error:()=>{this.setUnavailableAddress.emit(this.address),this.setNextStep.emit(Zo.A.unavailableLocationStep)}})}checkIfAddressChanged(){this.address.locationLat!==this.initialCoordinates.lat&&this.address.locationLon!==this.initialCoordinates.lng&&this.isAddressChanged.emit(!0)}back(){this.navigateBack.emit()}setDialogHeight(W){return this.possibleDialogHeight<=W+52+57+16?this.possibleDialogHeight-52-57-16+"px":"auto"}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275directiveInject(Ji.vio.UserLocationServiceToken),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},Ke.\u0275cmp=s.\u0275\u0275defineComponent({type:Ke,selectors:[["app-confirm-address-with-map"]],inputs:{address:"address",coordinates:"coordinates",previousStep:"previousStep",manuallyInputtedAddress:"manuallyInputtedAddress",cityCenterCoordinates:"cityCenterCoordinates",isPreselectLocationOnCheckout:"isPreselectLocationOnCheckout"},outputs:{setCoordinates:"setCoordinates",setAddress:"setAddress",setUnavailableAddress:"setUnavailableAddress",setNextStep:"setNextStep",navigateBack:"navigateBack",isAddressChanged:"isAddressChanged",resetManuallyInputtedAddress:"resetManuallyInputtedAddress"},decls:15,vars:17,consts:[["fxLayoutAlign","space-between center",1,"mb-16","header"],[1,"material-icons","cursor-pointer","header__back-icon",3,"click"],["mat-button","",1,"header__next-step",3,"click"],[1,"full-width-divider"],[3,"ngStyle"],["content",""],[1,"content-wrapper-margin"],[3,"address","manuallyInputtedAddress","shouldDisplayPinWarning","isPreselectLocationOnCheckout","coordinates","navigateBack","setAddress","setCoordinates","resetManuallyInputtedAddress"],[1,"pt-16"],[3,"iconPosition","icon","textTranslationKey","type","clickEvent"]],template:function(W,We){if(1&W&&(s.\u0275\u0275elementStart(0,"div",0)(1,"i",1),s.\u0275\u0275listener("click",function(){return We.back()}),s.\u0275\u0275text(2,"arrow_back"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"button",2),s.\u0275\u0275listener("click",function(){return We.setNextAddressStep()}),s.\u0275\u0275text(4),s.\u0275\u0275pipe(5,"uppercase"),s.\u0275\u0275pipe(6,"translate"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275element(7,"mat-divider",3),s.\u0275\u0275elementStart(8,"mat-dialog-content",4,5)(10,"div",6)(11,"app-confirm-address-with-coordinates-presentation",7),s.\u0275\u0275listener("navigateBack",function(){return We.back()})("setAddress",function(Qt){return We.setDeliveryAddress(Qt)})("setCoordinates",function(Qt){return We.setAddressCoordinates(Qt)})("resetManuallyInputtedAddress",function(){return We.resetManuallyInputtedAddress.emit()}),s.\u0275\u0275elementEnd()()(),s.\u0275\u0275element(12,"mat-divider",3),s.\u0275\u0275elementStart(13,"div",8)(14,"drc-button",9),s.\u0275\u0275listener("clickEvent",function(){return We.setNextAddressStep()}),s.\u0275\u0275elementEnd()()),2&W){const Dt=s.\u0275\u0275reference(9);s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate1(" ",s.\u0275\u0275pipeBind1(5,11,s.\u0275\u0275pipeBind1(6,13,"PAGES.BUSINESS.SENDIT.ORDER_TAB.CONTINUE"))," "),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngStyle",s.\u0275\u0275pureFunction1(15,xa,We.setDialogHeight(Dt.clientHeight))),s.\u0275\u0275advance(3),s.\u0275\u0275property("address",We.address)("manuallyInputtedAddress",We.manuallyInputtedAddress)("shouldDisplayPinWarning",We.shouldDisplayPinWarning)("isPreselectLocationOnCheckout",We.isPreselectLocationOnCheckout)("coordinates",We.coordinates),s.\u0275\u0275advance(3),s.\u0275\u0275property("iconPosition",We.iconsPositions.right)("icon","keyboard_arrow_right")("textTranslationKey","SHARED.ADDRESS.DELIVERY_ADDRESS.NEXT")("type",We.buttonTypes.iconAndTextButton)}},dependencies:[He.r,e.NgStyle,so.Wh,sa.Zl,k.eB,Ut.Rb,fe.d,Pu.u,e.UpperCasePipe,a.X$],styles:[".header__back-icon[_ngcontent-%COMP%]{font-size:20px}.header__next-step[_ngcontent-%COMP%]{line-height:20px;font-weight:700;padding:0}.full-width-divider[_ngcontent-%COMP%], .content-wrapper-margin[_ngcontent-%COMP%]{margin:0 -16px}"]}),Ke})();var Tc=i(15861),ha=i(94327),gd=i(47423),$p=i(61443);const _d=(0,gd.fo)("Filesystem",{web:()=>i.e(364).then(i.bind(i,96364)).then(Ke=>new Ke.FilesystemWeb)});let Au=(()=>{class Ke{constructor(W){this.snackbarMessageService=W}saveFile(W,We){var Dt=this;return(0,Tc.Z)(function*(){const Qt=yield Ji.VLR.convertBlobToBase64(W);Ji.VLR.isNativePlatform?_d.writeFile({path:Ji.VLR.isNativeIos?We:`DrCarmen/${We}`,data:Qt,directory:$p.tP.Documents,recursive:!0}).then(()=>{Ji.VLR.isNativePlatform&&Dt.snackbarMessageService.displayMessage(Ji.CsS.SUCCESS,"SHARED.GENERAL.FILE_DOWNLOAD_SUCCESS")}).catch(()=>Dt.snackbarMessageService.displayMessage(Ji.CsS.ERROR,"SHARED.GENERAL.FILE_DOWNLOAD_ERROR")):(0,ha.saveAs)(W,We)})()}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Ji.vio.SnackbarMessageServiceToken))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})();var El=i(50516),uc=i(87326);let Dc=(()=>{class Ke{constructor(W,We){this.actions$=W,this.refreshTokenService=We,this.startRefreshToken$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(El.F.start),(0,xo.b)(()=>this.refreshTokenService.start())),{dispatch:!1}),this.stopRefreshToken$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(El.F.stop),(0,xo.b)(()=>this.refreshTokenService.stop())),{dispatch:!1})}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(uc.$))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();var Yd=i(3163);let Gd=(()=>{class Ke{constructor(W,We,Dt){this.actions$=W,this.store=We,this.productService=Dt,this.saveNextRequest$=(0,Vi.GW)(()=>this.actions$.pipe((0,Vi.l4)(or.m.saveNextRequest),(0,xo.b)(Qt=>this.computeRequestId(Qt.searchDto)),(0,Bo.M)(this.store.select((0,Yd.Tb)(this.cachedRequestId))),(0,da.z)(([Qt,Xn])=>{if(Xn||Qt.searchDto.pagination.page>=Qt.totalPages-1)return(0,_i.of)(null);const ai={...Qt.searchDto};return ai.pagination.page++,this.productService.search(ai,Qt.additionalData)})),{dispatch:!1})}computeRequestId(W){this.cachedRequestId=Ji.VLR.generateCachedRequestId(W)}}return Ke.\u0275fac=function(W){return new(W||Ke)(s.\u0275\u0275inject(Vi.eX),s.\u0275\u0275inject(Hi.yh),s.\u0275\u0275inject(pn.M))},Ke.\u0275prov=s.\u0275\u0275defineInjectable({token:Ke,factory:Ke.\u0275fac}),Ke})();function $d(){return{appName:Fa.Aw.DJ,url:Fr.Z.getUnleashUrl(),clientKey:Fr.Z.getUnleashClientKey()}}i(53010);let Ic=(()=>{class Ke{}return Ke.\u0275fac=function(W){return new(W||Ke)},Ke.\u0275mod=s.\u0275\u0275defineNgModule({type:Ke}),Ke.\u0275inj=s.\u0275\u0275defineInjector({providers:[ia.CH,Hr.r,{provide:Ji.vio.DocumentService,useClass:Ys},{provide:Ji.vio.FileDownloader,useClass:Au},{provide:tn.ye,useValue:ra()},{provide:Tr.op,useValue:{wheelPropagation:!0,suppressScrollX:!1}},{provide:ee.Jm,useValue:Ji.ygQ}],imports:[Na.Nq,e.CommonModule,n.Bz,t.kz,l.o9,h.D8,k.yu,ve,Ee.IF,Ye.Zh,wt.yD,Wt.FA,Ut.yj,nt.To,_n,ke.Ps,Ae.x4,Zt.wp,ze.gR,pt.jT,d.XK,ot.gf,Et.jc,z.UK,Z.Xo,d.si,ge.uw,Qe.SJ,ct.XF,qe.Wd,Yt.y,it.JX,gt.U5,ue.Nn,Ge.g0,De.AA,Be.T5,b,V,zn,ca,Tr.Xd,Xr.D,R.u5,R.UX,ja.QG,Br.DT,ri.su,Er,vi.b,Ii.UM,cr.$2.forRoot(),Qs.bt,rs.GooglePlaceModule,a.aw,pr.B8,fo.t,Ko.hx,Po.bB,Hi.Aw.forFeature("shared",Co),Hi.Aw.forFeature(ua.U,ud),Hi.Aw.forFeature(hr.K,te.L),Vi.sQ.forFeature([Cl,go.b,Li,Sa,gr,cc,$c,jl,Zr,Ro,Dc,Gd,no]),Ma.Ao.withFactory($d),Na.Nq,Ko.hx,Na.Nq,n.Bz,t.kz,l.o9,h.D8,k.yu,ve,Ee.IF,Ye.Zh,wt.yD,Wt.FA,Ut.yj,nt.To,_n,ke.Ps,Ae.x4,Zt.wp,ze.gR,pt.jT,d.XK,ot.gf,Et.jc,z.UK,Z.Xo,d.si,ge.uw,Qe.SJ,ct.XF,qe.Wd,Yt.y,it.JX,gt.U5,ue.Nn,Ge.g0,De.AA,Be.T5,b,V,zn,ca,Tr.Xd,Xr.D,R.UX,R.u5,ja.QG,Br.DT,ri.su,Er,vi.b,Ii.UM,a.aw,Ko.hx]}),Ke})();s.\u0275\u0275setComponentScope(Zo.i,function(){return[He.r,e.NgIf,e.NgTemplateOutlet,e.NgStyle,so.xw,so.Wh,sa.Zl,ke.Hw,fe.d,R._Y,R.JL,R.sg,we.X,nr.Z,Oc.B,Ho,ys,qo,Ba]},function(){return[e.UpperCasePipe,a.X$]}),s.\u0275\u0275setComponentScope(Ga.L,function(){return[Ea.K,e.NgClass,e.NgForOf,e.NgIf,n.rH,so.xw,so.SQ,so.Wh,so.yH,sa.b8,sa.oO,k.eB,Ut.Rb,fe.d,De.Kd,vo.I,mr.b,Ur.y]},function(){return[e.AsyncPipe,Oo.r,gl.d,a.X$]}),s.\u0275\u0275setComponentScope(Ur.y,function(){return[Ja]},[]),s.\u0275\u0275setComponentScope(ws.Y,function(){return[cl]},[]),s.\u0275\u0275setComponentScope(Qa.pQ,function(){return[Rs,ul.V]},[]),s.\u0275\u0275setComponentScope(Eo.u,function(){return[He.r,e.NgClass,e.NgIf,so.xw,so.Wh,sa.oO,fe.d,we.X,nr.Z,Du,qo,zd,Gp]},function(){return[a.X$]})},72419:(oe,x,i)=>{"use strict";i.d(x,{Z:()=>Q});var e=i(94650),n=i(28918),a=i(5221),t=i(59633),l=i(11828),h=i(28555),s=i(36895),d=i(1576),p=i(55829),u=i(99818),g=i(3611),v=i(89383);function y(ae,K){1&ae&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,","),e.\u0275\u0275elementEnd())}const b=function(ae){return{"mb-4":ae}};function S(ae,K){if(1&ae){const k=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",15)(1,"div",16)(2,"span",17),e.\u0275\u0275listener("click",function(j){const U=e.\u0275\u0275restoreView(k).$implicit;return e.\u0275\u0275nextContext(4).showSurrounding(U),e.\u0275\u0275resetView(j.stopPropagation())}),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,y,2,0,"span",18),e.\u0275\u0275elementEnd()()}if(2&ae){const k=K.$implicit,$=K.last;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(3,b,!$)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",k.diacritics," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!$)}}function E(ae,K){if(1&ae&&(e.\u0275\u0275elementStart(0,"div",12)(1,"span",13),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,S,5,5,"div",14),e.\u0275\u0275elementEnd()),2&ae){const k=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"SHARED.USER_LOCATION.AVAILABLE_LOCATION.PLUS")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",k.surroundings)}}function D(ae,K){if(1&ae){const k=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"div",7),e.\u0275\u0275listener("click",function(){const R=e.\u0275\u0275restoreView(k).$implicit,U=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(U.showSurrounding(R))}),e.\u0275\u0275elementStart(2,"div",8)(3,"div",9),e.\u0275\u0275element(4,"img",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"span",11),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerStart(7),e.\u0275\u0275template(8,E,5,4,"div",4),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()}if(2&ae){const k=K.$implicit,$=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(4),e.\u0275\u0275property("src",$.getImageUrl(k.imageKey),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(k.diacritics),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",k.surroundings.length)}}function A(ae,K){if(1&ae&&(e.\u0275\u0275elementStart(0,"div",5),e.\u0275\u0275template(1,D,9,3,"div",6),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&ae){const k=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",k.fromAddress?"address":"location"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind1(2,2,k.availableLocation))}}function P(ae,K){1&ae&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1,","),e.\u0275\u0275elementEnd())}function B(ae,K){if(1&ae){const k=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",15)(1,"div",16)(2,"span",17),e.\u0275\u0275listener("click",function(j){const U=e.\u0275\u0275restoreView(k).$implicit;return e.\u0275\u0275nextContext(4).showSurrounding(U),e.\u0275\u0275resetView(j.stopPropagation())}),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,P,2,0,"span",18),e.\u0275\u0275elementEnd()()}if(2&ae){const k=K.$implicit,$=K.last;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(3,b,!$)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",k.diacritics," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!$)}}function V(ae,K){if(1&ae&&(e.\u0275\u0275elementStart(0,"div",12)(1,"span",13),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,B,5,5,"div",14),e.\u0275\u0275elementEnd()),2&ae){const k=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"SHARED.USER_LOCATION.AVAILABLE_LOCATION.PLUS")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",k.surroundings)}}function X(ae,K){if(1&ae){const k=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",20)(1,"div",21),e.\u0275\u0275listener("click",function(){const R=e.\u0275\u0275restoreView(k).$implicit,U=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(U.showSurrounding(R))}),e.\u0275\u0275element(2,"img",22),e.\u0275\u0275elementStart(3,"div",23)(4,"div",24)(5,"div",25),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(7,V,5,4,"div",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"button",26),e.\u0275\u0275listener("click",function(j){const U=e.\u0275\u0275restoreView(k).$implicit;return e.\u0275\u0275nextContext(2).showSurrounding(U),e.\u0275\u0275resetView(j.stopPropagation())}),e.\u0275\u0275elementStart(9,"i",27),e.\u0275\u0275text(10,"keyboard_arrow_right"),e.\u0275\u0275elementEnd()()()()()}if(2&ae){const k=K.$implicit,$=K.index,j=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",j.window>=961&&j.isThirdElement($)?"margins-on-small-desktop":""),e.\u0275\u0275advance(2),e.\u0275\u0275property("src",j.getImageUrl(k.imageKey),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(k.diacritics),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",k.surroundings.length)}}function re(ae,K){if(1&ae&&(e.\u0275\u0275elementStart(0,"div",12),e.\u0275\u0275template(1,X,11,4,"div",19),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&ae){const k=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind1(2,1,k.availableLocation))}}let Q=(()=>{class ae{constructor(k,$){this.store=k,this.userLocationService=$,this.fromAddress=!1,this.setAvailableLocation=new e.EventEmitter,this.setAvailableAddressLocation=new e.EventEmitter}ngOnInit(){this.window=window.innerWidth,this.store.dispatch(t.N.requestAvailableLocationsList()),this.store.dispatch(t.N.requestCountiesList()),this.availableLocation=this.store.select(a.A_)}getImageUrl(k){return l.Z.images+k}showSurrounding(k){const $=this.userLocationService.getCountyById(k.countyId);this.fromAddress?this.setAvailableAddressLocation.emit({city:k.name,county:$.name,coords:{lat:k.lat,lng:k.lng}}):this.setAvailableLocation.emit({city:k.name,county:$.name})}isThirdElement(k){return(k+1)%3!=0}}return ae.\u0275fac=function(k){return new(k||ae)(e.\u0275\u0275directiveInject(h.yh),e.\u0275\u0275directiveInject(n.vio.UserLocationServiceToken))},ae.\u0275cmp=e.\u0275\u0275defineComponent({type:ae,selectors:[["app-available-location"]],inputs:{fromAddress:"fromAddress"},outputs:{setAvailableLocation:"setAvailableLocation",setAvailableAddressLocation:"setAvailableAddressLocation"},decls:10,vars:9,consts:[[3,"ngClass"],["fxLayout","column","fxLayoutAlign","start start",1,"title-container"],[1,"mb-8"],["class","content-container",3,"ngClass",4,"ngIf"],["fxLayout","row wrap",4,"ngIf"],[1,"content-container",3,"ngClass"],[4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutGap","8px",1,"available-city-container",3,"click"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px",1,"city-info"],[1,"available-city-image"],[3,"src"],[1,"text-bold","title"],["fxLayout","row wrap"],[1,"surroundings-plus"],["class","surrounding","fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column",1,"surrounding"],[1,"mr-4",3,"ngClass"],[3,"click"],[4,"ngIf"],["class","listing-wrapper",3,"ngClass",4,"ngFor","ngForOf"],[1,"listing-wrapper",3,"ngClass"],[1,"locality-wrapper",3,"click"],[1,"image-container",3,"src"],["fxLayoutAlign","start end",1,"locality-names"],["fxLayout","column",1,"locality-container"],[1,"locality-container__title"],["mat-mini-fab","",1,"locality-button",3,"click"],[1,"material-icons"]],template:function(k,$){1&k&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h1",2),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"p"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(8,A,3,4,"div",3),e.\u0275\u0275template(9,re,3,3,"div",4),e.\u0275\u0275elementEnd()),2&k&&(e.\u0275\u0275property("ngClass",$.fromAddress?"available-location":"available-location-selector-container"),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,5,$.fromAddress?"SHARED.USER_LOCATION.AVAILABLE_LOCATION.ADDRESS_TITLE":"SHARED.USER_LOCATION.AVAILABLE_LOCATION.TITLE")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(7,7,"SHARED.USER_LOCATION.AVAILABLE_LOCATION.INFO")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",$.fromAddress),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!$.fromAddress))},dependencies:[s.NgClass,s.NgForOf,s.NgIf,d.xw,d.SQ,d.Wh,p.oO,u.eB,g.b,s.AsyncPipe,v.X$],styles:[".available-location[_ngcontent-%COMP%]{margin-top:16px}.available-location[_ngcontent-%COMP%]   .available-city-container[_ngcontent-%COMP%]{box-shadow:0 2px 2px #00000029;border-radius:8px;margin-bottom:8px;background-color:#f4f5f7;padding:16px;cursor:pointer}.available-location[_ngcontent-%COMP%]   .available-city-container[_ngcontent-%COMP%]   .available-city-image[_ngcontent-%COMP%]{width:50px;height:50px}.available-location[_ngcontent-%COMP%]   .available-city-container[_ngcontent-%COMP%]   .available-city-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;object-fit:cover}.available-location[_ngcontent-%COMP%]   .available-city-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:14px}.available-location[_ngcontent-%COMP%]   .content-container[_ngcontent-%COMP%]{margin-top:24px;overflow-y:auto!important}.available-location[_ngcontent-%COMP%]   .content-container.address[_ngcontent-%COMP%]{max-height:100%}.available-location[_ngcontent-%COMP%]   .content-container.location[_ngcontent-%COMP%]{max-height:240px}.available-location[_ngcontent-%COMP%]   .content-wrapper-overflow[_ngcontent-%COMP%]{overflow-y:auto!important}.available-location[_ngcontent-%COMP%]   .address-content-wrapper-overflow[_ngcontent-%COMP%]{overflow-y:hidden!important}.available-location[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:24px}.available-location[_ngcontent-%COMP%]   .surrounding[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.available-location[_ngcontent-%COMP%]   .divider-y[_ngcontent-%COMP%]{border-right:1px solid black;height:13px;margin-top:3px;margin-left:5px}@media (min-width: 960px){.listing-wrapper[_ngcontent-%COMP%]{height:100%!important;width:calc(33% - 9px)!important;padding:0 0 16px}.listing-wrapper[_ngcontent-%COMP%]   .locality-wrapper[_ngcontent-%COMP%]   .locality-names[_ngcontent-%COMP%]{height:100%!important;width:100%}}.surroundings-plus[_ngcontent-%COMP%]{margin-right:5px}.margins-on-small-desktop[_ngcontent-%COMP%]{margin-right:16px!important}.listing-wrapper[_ngcontent-%COMP%]{height:200px;width:100%;padding-top:16px;padding-bottom:0}.listing-wrapper[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{height:100%;width:100%}.listing-wrapper[_ngcontent-%COMP%]   .locality-container[_ngcontent-%COMP%]{width:auto;color:#fff;padding:16px}.listing-wrapper[_ngcontent-%COMP%]   .locality-container__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;margin-bottom:4px}.listing-wrapper[_ngcontent-%COMP%]   .locality-wrapper[_ngcontent-%COMP%]{height:100%;width:100%;position:relative;overflow:hidden;transition:.15s ease-in}.listing-wrapper[_ngcontent-%COMP%]   .locality-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:auto}.listing-wrapper[_ngcontent-%COMP%]   .locality-wrapper[_ngcontent-%COMP%]   .locality-names[_ngcontent-%COMP%]{position:absolute;top:0;background:transparent linear-gradient(180deg,rgba(0,0,0,0) 0%,#000000 140%) 0 0 no-repeat padding-box;height:200px;width:100%}.listing-wrapper[_ngcontent-%COMP%]   .locality-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{transition:transform .5s ease;display:block}.listing-wrapper[_ngcontent-%COMP%]   .locality-wrapper[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]{transform:scale(1.1)}.listing-wrapper[_ngcontent-%COMP%]   .locality-wrapper[_ngcontent-%COMP%]:hover{cursor:pointer}.listing-wrapper[_ngcontent-%COMP%]   .locality-button[_ngcontent-%COMP%]{margin:0 12px 12px 0;background-color:#4bb84c;height:40px;width:40px}.available-location-selector-container[_ngcontent-%COMP%]{padding:0 12px 0 16px;margin-top:14px}@media (min-width: 1404px){.available-location-selector-container[_ngcontent-%COMP%]{padding:0 10px 0 16px}}@media (max-width: 768px){.available-location-selector-container[_ngcontent-%COMP%]{padding:0 16px!important}.surrounding[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{padding:16px}.content-container[_ngcontent-%COMP%]{max-height:100%!important}.full-width-divider[_ngcontent-%COMP%]{margin:0 -16px!important}}@media (min-width: 430px) and (max-width: 960px){.available-location-selector-container[_ngcontent-%COMP%]{padding:0 16px!important}.listing-wrapper[_ngcontent-%COMP%]:nth-child(odd){margin-right:16px!important}.listing-wrapper[_ngcontent-%COMP%]{height:100%!important;width:calc(50% - 8px)!important}.listing-wrapper[_ngcontent-%COMP%]   .locality-wrapper[_ngcontent-%COMP%]   .locality-names[_ngcontent-%COMP%]{height:100%!important}}@media (max-width: 430px){.listing-wrapper[_ngcontent-%COMP%]:nth-child(odd){margin-right:0!important}p[_ngcontent-%COMP%]{margin-bottom:8px}.listing-wrapper[_ngcontent-%COMP%]{height:100%!important;width:100%!important;padding-top:8px}.listing-wrapper[_ngcontent-%COMP%]   .locality-names[_ngcontent-%COMP%]{height:100%!important}}"]}),ae})()},12371:(oe,x,i)=>{"use strict";i.d(x,{m:()=>le});var e=i(94650),n=i(24006),a=i(77579),t=i(39646),l=i(71884),h=i(18505),s=i(28918),d=i(59633),p=i(98311),u=i(5221),g=i(28555),v=i(36925),y=i(36895),b=i(1576),S=i(55829),E=i(44393),D=i(24363),A=i(97392),P=i(18455),B=i(29203),V=i(89383);function X(T,H){1&T&&(e.\u0275\u0275elementStart(0,"mat-icon"),e.\u0275\u0275text(1,"done"),e.\u0275\u0275elementEnd())}function re(T,H){1&T&&e.\u0275\u0275element(0,"mat-error")}function Q(T,H){if(1&T){const N=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-option",19),e.\u0275\u0275listener("mousedown",function(de){e.\u0275\u0275restoreView(N);const me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.preventEventOnSelection(de))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&T){const N=H.$implicit;e.\u0275\u0275property("value",N.diacritics),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",N.diacritics," ")}}function ae(T,H){1&T&&(e.\u0275\u0275elementStart(0,"mat-icon"),e.\u0275\u0275text(1,"done"),e.\u0275\u0275elementEnd())}function K(T,H){1&T&&e.\u0275\u0275element(0,"mat-error")}function k(T,H){if(1&T){const N=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-option",20),e.\u0275\u0275listener("click",function(de){const q=e.\u0275\u0275restoreView(N).$implicit,se=e.\u0275\u0275nextContext();return se.saveSelectedCity(q),e.\u0275\u0275resetView(se.preventEventOnSelection(de))})("mousedown",function(de){const q=e.\u0275\u0275restoreView(N).$implicit,se=e.\u0275\u0275nextContext();return se.saveSelectedCity(q),e.\u0275\u0275resetView(se.preventEventOnSelection(de))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&T){const N=H.$implicit;e.\u0275\u0275property("value",N.diacritics),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",N.diacritics," ")}}const $=function(T,H){return{"address-location-container":T,"address-location-container--tablet":H}},j=function(T,H){return{"city-field":T,"location-fields-wrapper":H}},R=function(T,H){return{validLocation:T,"mat-form-field--address":H}},U=function(T){return{"fw-700":T}};let le=(()=>{class T{constructor(N,pe,de){this.userLocationService=N,this.store=pe,this.changeDetector=de,this.isAddressLocation=!1,this.shouldResetLocation=!1,this.shouldValidate=!1,this.boldLabels=!0,this.countySelect=new e.EventEmitter,this.citySelect=new e.EventEmitter,this.validityChange=new e.EventEmitter,this.centerCoordinates=new e.EventEmitter,this.isOptionFromSuggestions={city:!1,county:!1},this.isValid={city:!1,county:!1},this.unsubscribe=new a.x,this.isTouched={county:!1,city:!1},this.window=window}ngOnInit(){this.formatSelectedLocation(),this.selectedLocation&&this.selectedLocation?.city&&this.selectedLocation?.county&&(this.store.dispatch(d.N.requestCitiesList({countyId:this.userLocationService.getCountyByName(this.selectedLocation.county).id})),this.checkIfAvailable(this.selectedLocation.county,this.selectedLocation.city)),this.initForm(),this.listenToValueChanges(),this.changeDetector.detectChanges()}ngOnChanges(N){N&&(N.selectedLocation&&N.selectedLocation.currentValue&&(this.selectedLocation=N.selectedLocation.currentValue,this.county&&this.city?(this.county.setValue(this.selectedLocation.county),this.city.setValue(this.selectedLocation.city),this.county.markAsTouched(),this.city.markAsTouched()):this.initForm(),this.listenToValueChanges(),this.changeDetector.detectChanges()),N.shouldResetLocation&&N.shouldResetLocation.currentValue&&(this.shouldResetLocation=N.shouldResetLocation.currentValue,this.initForm(),this.listenToValueChanges()),N.shouldValidate&&N.shouldValidate.currentValue&&(this.county.markAsTouched(),this.city.markAsTouched()))}isNumber(N){return/\d/.test(N)}containsOnlyLetters(N){return/^[a-zA-Z-\u00C0-\u024F ]+$/.test(N)}formatSelectedLocation(){this.selectedLocation&&this.selectedLocation.county&&this.selectedLocation.city||(this.selectedLocation={county:null,city:null})}listenToValueChanges(){this.county.valueChanges.pipe((0,l.x)()).subscribe(()=>{this.changeCountyValueAndFilterCounties()}),this.city.valueChanges.pipe((0,l.x)()).subscribe(()=>{this.changeCityValueAndFilterCities()})}changeCountyValueAndFilterCounties(){if(!this.county.value)return this.county.reset(),this.getUnfilteredCounties(),void this.countySelect.emit(this.county.value);this.county.markAsTouched(),this.county.setValue(this.county.value.trim()),this.selectedLocation&&s.VLR.normalizeRomanianDiacritics(this.county.value,!0)!==s.VLR.normalizeRomanianDiacritics(this.selectedLocation.county,!0)&&this.city.reset(),this.isOptionFromSuggestions.county=!1,this.checkIfAvailable(this.county.value,this.city.value),this.filterCounties()}changeCityValueAndFilterCities(){if(!this.city.value)return this.city.reset(),this.getUnfilteredCities(),void this.citySelect.emit(this.city.value);this.city.markAsTouched(),this.isOptionFromSuggestions.city=!1,this.checkIfAvailable(this.county.value,this.city.value),this.isNumber(this.county.value)?this.filteredCities=(0,t.of)([]):this.filterLocalities()}filterCounties(){this.filteredCounties=(this.county.touched?this.userLocationService.searchCounty(s.VLR.normalizeRomanianDiacritics(this.county.value,!0)):this.store.select(u.GF)).pipe((0,h.b)(N=>{this.isTouched.county=this.county.touched,this.county.markAsTouched(),this.defaultCounty=N[0]}))}filterLocalities(){this.filteredCities=(this.defaultCounty?this.city.touched?this.userLocationService.searchCity(s.VLR.normalizeRomanianDiacritics(this.city.value,!0)):this.store.select(u.KY):(0,t.of)([])).pipe((0,h.b)(N=>{this.isTouched.city=this.city.touched,this.city.markAsTouched(),this.defaultCity=N[0]}))}getUnfilteredCounties(){this.county.value||(this.filteredCounties=this.store.select(u.GF).pipe((0,h.b)(N=>{this.isTouched.county=this.county.touched,this.shouldValidate&&this.county.markAsTouched(),this.defaultCounty=N[0]})))}getUnfilteredCities(){this.city.value||(this.filteredCities=this.store.select(u.KY).pipe((0,h.b)(N=>{this.isTouched.city=this.city.touched,this.shouldValidate&&this.city.markAsTouched(),this.defaultCity=N[0]})))}preventEventOnSelection(N){this.isOptionFromSuggestions.county||this.isNumber(this.county.value)||N.preventDefault()}selectDefaultCounty(){this.county.value&&(this.containsOnlyLetters(this.county.value)||(this.isValid.county=!1,this.validityChange.emit({county:this.isValid.county,city:this.isValid.city})),!this.isOptionFromSuggestions.county&&!this.isNumber(this.county.value)&&this.isTouched.county&&this.countyChanged(this.defaultCounty?.diacritics?this.defaultCounty.diacritics:this.county.value))}selectDefaultCity(){this.city.value&&(this.containsOnlyLetters(this.city.value)||(this.isValid.city=!1,this.validityChange.emit({county:this.isValid.county,city:this.isValid.city})),!this.isOptionFromSuggestions?.city&&this.county.valid&&this.cityChanged(this.defaultCity?.diacritics?this.defaultCity.diacritics:this.city.value))}checkIfAvailable(N,pe){const de_city=pe;this.isValid.county=!!N,this.isValid.city=!!de_city,this.validityChange.emit({city:this.isValid.city,county:this.isValid.county})}countyChanged(N){this.canChangeCounty(N)&&(this.isOptionFromSuggestions.county=!0,this.county.setValue(N),this.selectedLocation.county=N,N=this.userLocationService.getCountyByName(N),this.selectedLocation.city=null,this.city.reset(),N&&this.store.dispatch(d.N.requestCitiesList({countyId:N.id})),this.emitSelectedCounty())}canChangeCounty(N){return!this.selectedLocation||!s.VLR.normalizeRomanianDiacritics(this.selectedLocation.county)||s.VLR.normalizeRomanianDiacritics(this.selectedLocation.county).toLowerCase()!==N.toLowerCase()||this.county.value!==N&&!this.isNumber(this.county.value)}emitSelectedCity(){this.citySelect.emit(s.VLR.normalizeRomanianDiacritics(this.city.value,!0))}emitSelectedCounty(){this.countySelect.emit(s.VLR.normalizeRomanianDiacritics(this.county.value,!0))}cityChanged(N){(!this.selectedLocation||s.VLR.normalizeRomanianDiacritics(this.selectedLocation.city,!0)!==N)&&(this.selectedLocation.city=N,this.city.setValue(N),this.emitSelectedCity())}onCityPaste(){this.filterLocalities()}onCountyPaste(){this.filterLocalities()}saveSelectedCity(N){this.cityChanged(N.diacritics),this.isOptionFromSuggestions.city=!0}ngOnDestroy(){this.unsubscribe.next(),this.unsubscribe.complete()}initForm(){this.county=new n.p4(this.selectedLocation&&this.selectedLocation.county?s.VLR.capitalizeCities(this.selectedLocation.county):"",[p.A.required(),p.A.alphaAndDash()]),this.city=new n.p4(this.selectedLocation&&this.selectedLocation.city?s.VLR.capitalizeCities(this.selectedLocation.city):"",[p.A.required(),p.A.localityName()])}isTablet(){return window.innerWidth===s.u3l.TABLET}}return T.\u0275fac=function(N){return new(N||T)(e.\u0275\u0275directiveInject(s.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(g.yh),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},T.\u0275cmp=e.\u0275\u0275defineComponent({type:T,selectors:[["app-location-selector"]],inputs:{selectedLocation:"selectedLocation",isAddressLocation:"isAddressLocation",shouldResetLocation:"shouldResetLocation",shouldValidate:"shouldValidate",boldLabels:"boldLabels"},outputs:{countySelect:"countySelect",citySelect:"citySelect",validityChange:"validityChange",centerCoordinates:"centerCoordinates"},features:[e.\u0275\u0275NgOnChangesFeature],decls:33,vars:41,consts:[["fxFlex","100",1,"location-container",3,"fxLayout","ngClass"],["fxFlex","50","fxLayout","column",1,"location-input","city-input",3,"ngClass"],[1,"required-label"],["fxFlex","100","appearance","outline",3,"ngClass"],[3,"ngClass"],["fxLayout","row"],["matInput","","type","text","autocomplete","autocomplete-county-off",3,"formControl","matAutocomplete","focusin","focusout","keyup.enter","keyup.tab","paste","blur"],["trigger","matAutocompleteTrigger"],[4,"ngIf"],[4,"drcForAll"],[1,"custom-scroll",3,"keyup.enter","optionSelected"],["countyAutocomplete","matAutocomplete"],[3,"value","mousedown",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column",1,"location-input"],["matInput","","type","text","autocomplete","autocomplete-city-off",3,"formControl","matAutocomplete","focusin","focusout","paste","blur"],["cityTrigger","matAutocompleteTrigger"],[1,"custom-scroll",3,"optionSelected"],["cityAutocomplete","matAutocomplete"],[3,"value","click","mousedown",4,"ngFor","ngForOf"],[3,"value","mousedown"],[3,"value","click","mousedown"]],template:function(N,pe){if(1&N){const de=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label")(5,"strong",4),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"div",5)(9,"input",6,7),e.\u0275\u0275listener("focusin",function(){return pe.getUnfilteredCounties()})("focusout",function(){return pe.selectDefaultCounty()})("keyup.enter",function(){return pe.selectDefaultCounty()})("keyup.tab",function(){return pe.selectDefaultCounty()})("paste",function(){return pe.onCountyPaste()})("blur",function(){e.\u0275\u0275restoreView(de);const q=e.\u0275\u0275reference(10);return e.\u0275\u0275resetView(q.closePanel())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,X,2,0,"mat-icon",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(12,re,1,0,"mat-error",9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"mat-autocomplete",10,11),e.\u0275\u0275listener("keyup.enter",function(q){return pe.countyChanged(q.option.value)})("optionSelected",function(q){return pe.countyChanged(q.option.value)}),e.\u0275\u0275template(15,Q,2,2,"mat-option",12),e.\u0275\u0275pipe(16,"async"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"div",13)(18,"div",2)(19,"mat-form-field",3)(20,"mat-label")(21,"span",4),e.\u0275\u0275text(22),e.\u0275\u0275pipe(23,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(24,"div",5)(25,"input",14,15),e.\u0275\u0275listener("focusin",function(){return pe.getUnfilteredCities()})("focusout",function(){return pe.selectDefaultCity()})("paste",function(){return pe.onCityPaste()})("blur",function(){e.\u0275\u0275restoreView(de);const q=e.\u0275\u0275reference(26);return e.\u0275\u0275resetView(q.closePanel())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(27,ae,2,0,"mat-icon",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(28,K,1,0,"mat-error",9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(29,"mat-autocomplete",16,17),e.\u0275\u0275listener("optionSelected",function(q){return pe.cityChanged(q.option.value)}),e.\u0275\u0275template(31,k,2,2,"mat-option",18),e.\u0275\u0275pipe(32,"async"),e.\u0275\u0275elementEnd()()()}if(2&N){const de=e.\u0275\u0275reference(14),me=e.\u0275\u0275reference(30);e.\u0275\u0275property("fxLayout",pe.isAddressLocation?"row":"column")("ngClass",e.\u0275\u0275pureFunction2(25,$,pe.isAddressLocation,pe.isTablet())),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(28,j,pe.isAddressLocation,pe.isAddressLocation)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(31,R,pe.isValid.county&&pe.county.valid,pe.isAddressLocation)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(34,U,pe.boldLabels)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,17,"SHARED.ADDRESS.COUNTY_AND_CITY_SELECTOR.COUNTY")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("formControl",pe.county)("matAutocomplete",de),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",pe.isValid.county&&pe.county.valid),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind1(16,19,pe.filteredCounties)),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(36,R,pe.isValid.city&&pe.city.valid,pe.isAddressLocation)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(39,U,pe.boldLabels)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(23,21,"SHARED.ADDRESS.COUNTY_AND_CITY_SELECTOR.LOCALITY")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("formControl",pe.city)("matAutocomplete",me),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",pe.isValid.city&&pe.city.valid),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind1(32,23,pe.filteredCities))}},dependencies:[v.b,y.NgClass,y.NgForOf,y.NgIf,b.xw,b.yH,S.oO,E.VN,E.QJ,D.CK,A.Hw,P.nI,P.v_,P.$V,B.k0,n.Fj,n.JJ,n.oH,y.AsyncPipe,V.X$],styles:[".validLocation[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{max-width:calc(100% - 26px)}.validLocation[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:18px!important;height:18px!important;font-size:18px!important;color:#00853b}.city-field[_ngcontent-%COMP%]{margin-right:12px}.mat-form-field[_ngcontent-%COMP%]{margin:0}.mat-form-field--address[_ngcontent-%COMP%]{margin-bottom:unset}@media (max-width: 768px){.address-location-container[_ngcontent-%COMP%]{flex-direction:column!important}.address-location-container--tablet[_ngcontent-%COMP%]{flex-direction:row!important}.address-location-container--tablet[_ngcontent-%COMP%]   .city-input[_ngcontent-%COMP%]{margin-right:12px}.mat-form-field[_ngcontent-%COMP%]{margin:0}.mat-form-field--address[_ngcontent-%COMP%]{margin-bottom:12px!important}.city-field[_ngcontent-%COMP%]{margin-right:0}.city-input[_ngcontent-%COMP%]{max-width:100%!important}.location-fields-wrapper[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{margin-bottom:12px}.location-fields-wrapper[_ngcontent-%COMP%]   .mat-form-field--address[_ngcontent-%COMP%]{margin-bottom:22px!important}}@media (max-width: 420px){.county-field[_ngcontent-%COMP%]{margin-right:0!important}}"]}),T})()},69937:(oe,x,i)=>{"use strict";i.d(x,{e:()=>g});var e=i(28555),n=(()=>{return(v=n||(n={})).SetNavigationPage="[User Location Navigation] Set last navigated page",v.SetNavigationToRegistration="[User Location Navigation] Set navigation to the register page",v.NavigateToPreviousPage="[User Location Navigation] Navigate To Previous Page",v.EmptyNavigationHistory="[User Address Navigation] Empty history",v.SetNavigationPageSuccess="[User Location Navigation] Set last navigated page - Success",v.SetNavigationToRegistrationSuccess="[User Location Navigation] Set navigation to the register page - Success",v.SetNavigationPageFail="[User Location Navigation] Set last navigated page - Fail",v.SetNavigationToRegistrationFail="[User Location Navigation] Set navigation to the register page - Fail",n;var v})();const a=(0,e.PH)(n.EmptyNavigationHistory),g={setNavigationPage:(0,e.PH)(n.SetNavigationPage,(0,e.Ky)()),setNavigationToRegistration:(0,e.PH)(n.SetNavigationToRegistration,(0,e.Ky)()),navigateToPreviousPage:(0,e.PH)(n.NavigateToPreviousPage),emptyNavigationHistory:a,setNavigationPageSuccess:(0,e.PH)(n.SetNavigationPageSuccess,(0,e.Ky)()),setNavigationToRegistrationSuccess:(0,e.PH)(n.SetNavigationToRegistrationSuccess,(0,e.Ky)()),setNavigationPageFail:(0,e.PH)(n.SetNavigationPageFail,(0,e.Ky)()),setNavigationToRegistrationFail:(0,e.PH)(n.SetNavigationToRegistrationFail,(0,e.Ky)())}},50081:(oe,x,i)=>{"use strict";i.d(x,{X:()=>d,g:()=>l});var e=i(28555),n=i(64629),a=i(69937),t=i(54628);const l=(0,n.H)({selectId:p=>p}),h={lastNavigatedPage:l.getInitialState(),shouldRegister:!1},s=(0,e.Lq)(h,(0,e.on)(a.e.setNavigationPage,(p,u)=>({...p,lastNavigatedPage:l.addOne(u.previousPage,p.lastNavigatedPage)})),(0,e.on)(a.e.navigateToPreviousPage,p=>({...p,lastNavigatedPage:p.lastNavigatedPage.ids.length>1?l.removeOne(p.lastNavigatedPage.ids[p.lastNavigatedPage.ids.length-1],p.lastNavigatedPage):p.lastNavigatedPage})),(0,e.on)(a.e.setNavigationToRegistration,(p,u)=>({...p,shouldRegister:u.shouldRegister})),(0,e.on)(t.Y.emptyNavigationHistory,p=>({...p,lastNavigatedPage:l.removeAll(l.getInitialState())})));function d(p,u){return s(p,u)}},71839:(oe,x,i)=>{"use strict";i.d(x,{P:()=>a,T:()=>t});var e=i(28555),n=i(5221);const a=(0,e.P1)(n.UJ,l=>l.sharedNavigationState.userLocationNavigationState.shouldRegister),t=(0,e.P1)(n.UJ,l=>l.sharedNavigationState.userLocationNavigationState.lastNavigatedPage.entities[l.sharedNavigationState.userLocationNavigationState.lastNavigatedPage.ids[l.sharedNavigationState.userLocationNavigationState.lastNavigatedPage.ids.length-1]])},59633:(oe,x,i)=>{"use strict";i.d(x,{N:()=>E});var e=i(28555),n=(()=>{return(D=n||(n={})).RequestCountiesList="[User Location] Get counties list",D.RequestCitiesList="[User Location] Get cities list",D.RequestAvailableLocationsList="[User Location] Request available locations list",D.SetSelectedLocations="[User Location] Set selected location",D.SetUserAddress="[User location] Set User Address",D.RequestCountiesListSuccess="[User Location] Get counties list - Success",D.RequestCitiesListSuccess="[User Location] Get cities list - Success",D.RequestAvailableLocationsListSuccess="[User Location] Request available locations list - Success",D.SetSelectedLocationsSuccess="[User Location] Set selected location - Success",D.RequestCountiesListFail="[User Location] Get counties list - Fail",D.RequestCitiesListFail="[User Location] Get cities list - Fail",D.RequestAvailableLocationsListFail="[User Location] Request available locations list - Fail",D.SetSelectedLocationsFail="[User Location] Set selected location - Fail",n;var D})();const a=(0,e.PH)(n.RequestCountiesList),t=(0,e.PH)(n.RequestCountiesListSuccess,(0,e.Ky)()),l=(0,e.PH)(n.RequestCountiesListFail,(0,e.Ky)()),h=(0,e.PH)(n.SetSelectedLocations,(0,e.Ky)()),s=(0,e.PH)(n.SetSelectedLocationsSuccess,(0,e.Ky)()),d=(0,e.PH)(n.SetSelectedLocationsFail,(0,e.Ky)()),p=(0,e.PH)(n.RequestCitiesList,(0,e.Ky)()),u=(0,e.PH)(n.RequestCitiesListSuccess,(0,e.Ky)()),g=(0,e.PH)(n.RequestCitiesListFail,(0,e.Ky)()),v=(0,e.PH)(n.RequestAvailableLocationsList),y=(0,e.PH)(n.RequestAvailableLocationsListSuccess,(0,e.Ky)()),b=(0,e.PH)(n.RequestAvailableLocationsListFail,(0,e.Ky)()),E={requestCountiesList:a,requestCitiesList:p,requestAvailableLocationsList:v,setSelectedLocation:h,setUserAddress:(0,e.PH)(n.SetUserAddress,(0,e.Ky)()),requestCountiesListSuccess:t,requestCitiesListSuccess:u,requestAvailableLocationsListSuccess:y,setSelectedLocationSuccess:s,requestCountiesListFail:l,requestCitiesListFail:g,requestAvailableLocationsListFail:b,setSelectedLocationFail:d}},5221:(oe,x,i)=>{"use strict";i.d(x,{A_:()=>l,Ac:()=>h,GF:()=>a,KM:()=>s,KY:()=>t,UJ:()=>n,uu:()=>d});var e=i(28555);const n=(0,e.ZF)("shared"),a=(0,e.P1)(n,p=>p.userLocationState.counties),t=(0,e.P1)(n,p=>p.userLocationState.cities),l=(0,e.P1)(n,p=>p.userLocationState.availableLocations),h=(0,e.P1)(n,p=>p.userLocationState.selectedLocation),s=(0,e.P1)(a,(p,u)=>p?.find(g=>g.name===u)),d=(0,e.P1)(l,(p,u)=>{const g=p.find(v=>v.name===u.city);if(!g){const v=p.filter(y=>y.countyId===u.countyId);for(const y of v){const b=y.surroundings.find(S=>S.name===u.city);if(b)return b}}return g})},77368:(oe,x,i)=>{"use strict";i.d(x,{O:()=>k,u:()=>K});var e=i(35559),n=i(77579),a=i(82722),t=i(95698),l=i(28918),h=i(50008),s=i(69937),d=i(71839),p=i(77044),u=i(55738),g=i(94650),v=i(28555),y=i(9116);function E($,j){if(1&$){const R=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"i",12),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(R);const le=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(le.back())}),g.\u0275\u0275text(1," arrow_back "),g.\u0275\u0275elementEnd()}}function D($,j){if(1&$){const R=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"i",13),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(R);const le=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(le.close())}),g.\u0275\u0275text(1," close "),g.\u0275\u0275elementEnd()}}function A($,j){if(1&$){const R=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"app-add-user-address",14),g.\u0275\u0275listener("changeNextStep",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.changeCurrentStep(le))})("setUnavailableUserAddress",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.setUnavailableAddress(le))})("setUserAddress",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.setAddress(le))})("setUserCoordinates",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.setCoordinates(le))}),g.\u0275\u0275elementEnd()}}const P=function($,j){return{county:$,city:j}};function B($,j){if(1&$){const R=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"app-add-user-address-manually",15),g.\u0275\u0275listener("changeNextStep",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.changeCurrentStep(le))})("saveUserAddress",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.setAddress(le))})("setUnavailableUserAddress",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.setUnavailableAddress(le))})("setUserCoordinates",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.setCoordinates(le))}),g.\u0275\u0275elementEnd()}if(2&$){const R=g.\u0275\u0275nextContext();g.\u0275\u0275property("selectedAvailableLocation",g.\u0275\u0275pureFunction2(1,P,R.address.county,R.address.city))}}function V($,j){if(1&$){const R=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"app-confirm-user-address",16),g.\u0275\u0275listener("saveAddress",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.save(le))})("setNextStep",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.changeCurrentStep(le))})("setUnavailableUserAddress",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.setUnavailableAddress(le))})("setCoordinates",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.setCoordinates(le))}),g.\u0275\u0275elementEnd()}if(2&$){const R=g.\u0275\u0275nextContext();g.\u0275\u0275property("address",R.address)("coordinates",R.coordinates)}}function X($,j){if(1&$){const R=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"app-no-location-access",17),g.\u0275\u0275listener("back",function(){g.\u0275\u0275restoreView(R);const le=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(le.back())}),g.\u0275\u0275elementEnd()}}function re($,j){if(1&$){const R=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"app-available-location",18),g.\u0275\u0275listener("setAvailableAddressLocation",function(le){g.\u0275\u0275restoreView(R);const T=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(T.setAvailableLocation(le.county,le.city))}),g.\u0275\u0275elementEnd()}2&$&&g.\u0275\u0275property("fromAddress",!0)}function Q($,j){if(1&$){const R=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"div",19)(1,"app-unavailable-location",20),g.\u0275\u0275listener("navigateToChangeAddress",function(){g.\u0275\u0275restoreView(R);const le=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(le.back())}),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(2,"mat-divider",21),g.\u0275\u0275elementStart(3,"drc-button",22),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(R);const le=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(le.changeCurrentStep(le.userAddressSteps.AvailableLocationStep))}),g.\u0275\u0275elementEnd()()}if(2&$){const R=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275property("isAddress",!0)("selectedLocation",R.unavailableAddress)("showAvailableLocations",!1),g.\u0275\u0275advance(2),g.\u0275\u0275property("color","primary")("iconPosition",R.iconsPositions.left)("icon","location_on")("textTranslationKey","SHARED.USER_LOCATION.ADD_ADDRESS.AVAILABLE_LOCATION")("type",R.buttonTypes.iconAndTextButton)}}function ae($,j){if(1&$){const R=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"div",23)(1,"div"),g.\u0275\u0275element(2,"mat-divider"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"div",24)(4,"span",25),g.\u0275\u0275text(5),g.\u0275\u0275pipe(6,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(7,"drc-button",26),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(R);const le=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(le.navigateToLogin())}),g.\u0275\u0275elementEnd()()()}if(2&$){const R=g.\u0275\u0275nextContext();g.\u0275\u0275advance(5),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(6,6,"SHARED.USER_LOCATION.EXISTING_ACCOUNT")),g.\u0275\u0275advance(2),g.\u0275\u0275property("type",R.buttonTypes.iconAndTextButton)("iconPosition",R.iconsPositions.left)("color","primary")("icon","lock")("textTranslationKey","SHARED.USER_LOCATION.AUTHENTICATION")}}class K{constructor(j,R,U,le,T,H,N){this.changeDetectorRef=j,this.store=R,this.zone=U,this.router=le,this.dialogRef=T,this.data=H,this.locationService=N,this.authLink=l.nk1.AUTHENTICATION,this.currentStep=k.InitialAddressStep,this.coordinates={lat:null,lng:null},this.unsubscribe$=new n.x,this.buttonTypes=l.L$3,this.iconsPositions=l.ggF,this.userInputtedStreetNumber=null}ngOnInit(){this.address=new h.k(this.data.address),this.store.dispatch(s.e.setNavigationPage({previousPage:this.currentStep}))}get userAddressSteps(){return k}get isInitialAddressStep(){return this.currentStep===k.InitialAddressStep}get isInaccessibleLocationStep(){return this.currentStep===k.InaccessibleLocationStep}setAddress(j){this.address=j}setUnavailableAddress(j){this.unavailableAddress=j}setCoordinates(j){this.address&&(this.address.locationLat=j.lat,this.address.locationLon=j.lng,this.coordinates={lat:this.address.locationLat,lng:this.address.locationLon},this.changeDetectorRef.detectChanges())}changeCurrentStep(j){j&&(j===k.UnavailableLocationStep&&this.address?.address&&(this.unavailableAddress=this.address),j===k.AddAddressManuallyStep&&(this.address?.address||this.address?.deliveryText==this.unavailableAddress?.deliveryText)&&(this.address=new h.k),this.currentStep=j,this.store.dispatch(s.e.setNavigationPage({previousPage:this.currentStep})),this.changeDetectorRef.detectChanges())}back(){this.store.dispatch(s.e.navigateToPreviousPage()),this.store.select(d.T).pipe((0,a.R)(this.unsubscribe$)).subscribe(j=>{this.currentStep=j})}save(j){this.address=j,this.address.isSetManually=!1,this.zone.run(()=>{this.dialogRef.close(this.address)}),this.store.dispatch(s.e.emptyNavigationHistory())}navigateToLogin(){this.dialogRef.close(),this.router.navigate([this.authLink])}setAvailableLocation(j,R){this.address=new h.k({city:R,county:j,isSetManually:!0}),this.locationService.locateAddress(this.address).pipe((0,t.q)(1)).subscribe(U=>{this.setCoordinates(U),this.changeCurrentStep(this.userAddressSteps.ConfirmAddressStep)})}ngOnDestroy(){this.store.dispatch(s.e.emptyNavigationHistory()),this.address=null,this.unsubscribe$.next(),this.unsubscribe$.complete()}close(){this.store.dispatch(s.e.emptyNavigationHistory()),this.address=null,this.dialogRef.close()}}K.\u0275fac=function(j){return new(j||K)(g.\u0275\u0275directiveInject(g.ChangeDetectorRef),g.\u0275\u0275directiveInject(v.yh),g.\u0275\u0275directiveInject(g.NgZone),g.\u0275\u0275directiveInject(y.F0),g.\u0275\u0275directiveInject(e.hV),g.\u0275\u0275directiveInject(e.eJ),g.\u0275\u0275directiveInject(l.vio.LocationServiceToken))},K.\u0275cmp=g.\u0275\u0275defineComponent({type:K,selectors:[["app-user-address-dialog"]],decls:14,vars:10,consts:[["fxLayoutAlign","space-between center",1,"header-wrapper","w-100","p-16"],["fxLayoutAlign","space-between center",1,"w-100","header"],["fxLayoutAlign","center center","class","material-icons cursor-pointer header-wrapper--button",3,"click",4,"ngIf"],["class","material-icons cursor-pointer header-wrapper--button ml-auto",3,"click",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between",1,"content-wrapper","pl-16","pr-16","pb-16",3,"ngClass"],[3,"changeNextStep","setUnavailableUserAddress","setUserAddress","setUserCoordinates",4,"ngIf"],[3,"selectedAvailableLocation","changeNextStep","saveUserAddress","setUnavailableUserAddress","setUserCoordinates",4,"ngIf"],[3,"address","coordinates","saveAddress","setNextStep","setUnavailableUserAddress","setCoordinates",4,"ngIf"],[3,"back",4,"ngIf"],[3,"fromAddress","setAvailableAddressLocation",4,"ngIf"],["fxLayout","column",4,"ngIf"],["class","mt-8","fxLayout","column",4,"ngIf"],["fxLayoutAlign","center center",1,"material-icons","cursor-pointer","header-wrapper--button",3,"click"],[1,"material-icons","cursor-pointer","header-wrapper--button","ml-auto",3,"click"],[3,"changeNextStep","setUnavailableUserAddress","setUserAddress","setUserCoordinates"],[3,"selectedAvailableLocation","changeNextStep","saveUserAddress","setUnavailableUserAddress","setUserCoordinates"],[3,"address","coordinates","saveAddress","setNextStep","setUnavailableUserAddress","setCoordinates"],[3,"back"],[3,"fromAddress","setAvailableAddressLocation"],["fxLayout","column"],[3,"isAddress","selectedLocation","showAvailableLocations","navigateToChangeAddress"],[1,"dialog-full-width-divider"],[1,"w-100","mt-16","p-0",3,"color","iconPosition","icon","textTranslationKey","type","click"],["fxLayout","column",1,"mt-8"],["fxLayout","column",1,"w-100","mt-16","pl-16","pr-16","pb-16"],[1,"auth-title","mr-4","mb-16"],[3,"type","iconPosition","color","icon","textTranslationKey","click"]],template:function(j,R){1&j&&(g.\u0275\u0275elementStart(0,"div",0)(1,"div",1),g.\u0275\u0275template(2,E,2,0,"i",2),g.\u0275\u0275template(3,D,2,0,"i",3),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(4,"div"),g.\u0275\u0275element(5,"mat-divider"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(6,"div",4),g.\u0275\u0275template(7,A,1,0,"app-add-user-address",5),g.\u0275\u0275template(8,B,1,4,"app-add-user-address-manually",6),g.\u0275\u0275template(9,V,1,2,"app-confirm-user-address",7),g.\u0275\u0275template(10,X,1,0,"app-no-location-access",8),g.\u0275\u0275template(11,re,1,1,"app-available-location",9),g.\u0275\u0275template(12,Q,4,8,"div",10),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(13,ae,8,8,"div",11)),2&j&&(g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",!R.isInitialAddressStep),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",(null==R.data||null==R.data.selectedLocation?null:R.data.selectedLocation.address)&&!(null!=R.data&&R.data.isMandatory)&&(R.isInitialAddressStep||R.isInaccessibleLocationStep)),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngClass",R.isInitialAddressStep?"content-wrapper__initial_step":"content-wrapper__no_step"),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",R.isInitialAddressStep),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",R.currentStep===R.userAddressSteps.AddAddressManuallyStep),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",R.currentStep===R.userAddressSteps.ConfirmAddressStep),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",R.currentStep===R.userAddressSteps.InaccessibleLocationStep),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",R.currentStep===R.userAddressSteps.AvailableLocationStep),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",R.currentStep===R.userAddressSteps.UnavailableLocationStep),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",R.isInitialAddressStep&&!R.user))},styles:["app-user-address-dialog[_ngcontent-%COMP%]{width:100%}.dialog-full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.header[_ngcontent-%COMP%]{height:17px}.available-location-wrapper[_ngcontent-%COMP%]{margin:0 -16px}.back-button[_ngcontent-%COMP%]{cursor:pointer;font-size:19px!important}.content-wrapper[_ngcontent-%COMP%]{overflow:auto;overflow-x:hidden}.content-wrapper__initial_step[_ngcontent-%COMP%]{max-height:calc(90vh - 117px);height:auto}.content-wrapper__no_step[_ngcontent-%COMP%]{max-height:calc(90vh - 50px);height:auto}.auth-title[_ngcontent-%COMP%]{font-size:14px;line-height:23px}.auth-link[_ngcontent-%COMP%]{text-decoration:none;color:#242424}.header-wrapper--button[_ngcontent-%COMP%]{font-size:22px;height:17px;width:17px}"]}),function($,j,R,U){var H,le=arguments.length,T=le<3?j:null===U?U=Object.getOwnPropertyDescriptor(j,R):U;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate($,j,R,U);else for(var N=$.length-1;N>=0;N--)(H=$[N])&&(T=(le<3?H(T):le>3?H(j,R,T):H(j,R))||T);le>3&&T&&Object.defineProperty(j,R,T)}([(0,p.I)(),function($,j){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",j)}(0,u.n)],K.prototype,"user",void 0);var k=(()=>{return($=k||(k={})).InitialAddressStep="InitialAddressStep",$.AddAddressManuallyStep="AddAddressManuallyStep",$.ConfirmAddressStep="ConfirmAddressStep",$.AvailableLocationStep="AvailableLocationStep",$.UnavailableLocationStep="UnavailableLocationStep",$.InaccessibleLocationStep="InaccessibleLocationStep",k;var $})()},84423:(oe,x,i)=>{"use strict";i.d(x,{DY:()=>q,o7:()=>pe,ys:()=>me,zP:()=>de,W5:()=>se});var e=i(94650),n=i(9116),a=i(77579),t=i(54244),l=i(39646),h=i(95698),s=i(82722),d=i(18505),p=i(63900),u=i(70262),g=i(28918),v=i(35559),y=i(99818),b=i(44850),S=i(36895),E=i(89383);const D=function(ve){return{new_location:ve}},A=function(ve,Ee){return{old_location:ve,new_location:Ee}};let P=(()=>{class ve{constructor(Ye,wt,Wt){this.dialogRef=Ye,this.userLocationService=wt,this.data=Wt,this.old_location=Wt?Wt.old_location:{},this.new_location=Wt?Wt.new_location:{}}ngOnInit(){this.userLocationService.getStoreLocation(g.VLR.normalizeRomanianDiacritics(this.old_location.city,!0)).pipe((0,h.q)(1)).subscribe(Ye=>this.old_location.city=Ye.mainLocality),this.userLocationService.getStoreLocation(g.VLR.normalizeRomanianDiacritics(this.new_location.city,!0)).pipe((0,h.q)(1)).subscribe(Ye=>this.new_location.city=Ye.mainLocality)}close(){this.dialogRef.close()}confirmChange(){this.dialogRef.close({confirmed:!0})}}return ve.\u0275fac=function(Ye){return new(Ye||ve)(e.\u0275\u0275directiveInject(v.hV),e.\u0275\u0275directiveInject(g.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(v.eJ))},ve.\u0275cmp=e.\u0275\u0275defineComponent({type:ve,selectors:[["app-dialog-warning"]],decls:40,vars:34,consts:[[1,"app","carmen"],[1,"base-panel-class"],[1,"container-header"],[1,"close-button-container",3,"click"],[1,"material-icons","material-icons--close"],[1,"standard-divider"],[1,"dialog__content"],[1,"material-icons","material-icons--attention","mr-4"],[3,"innerHtml"],[1,"text-warn-color"],[1,"mt-16"],["color","primary","mat-flat-button","",1,"dialog__accept-button",3,"click"],[1,"material-icons"],["mat-button","",1,"dialog__close-button",3,"click"]],template:function(Ye,wt){1&Ye&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.\u0275\u0275listener("click",function(){return wt.close()}),e.\u0275\u0275elementStart(4,"i",4),e.\u0275\u0275text(5,"close"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(6,"div",5),e.\u0275\u0275element(7,"mat-divider"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"div",6)(9,"h2"),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"span")(13,"i",7),e.\u0275\u0275text(14,"error"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"b"),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"uppercase"),e.\u0275\u0275pipe(18,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(19," \xa0 "),e.\u0275\u0275element(20,"span",8),e.\u0275\u0275pipe(21,"translate"),e.\u0275\u0275text(22," \xa0 "),e.\u0275\u0275elementStart(23,"b",9),e.\u0275\u0275text(24),e.\u0275\u0275pipe(25,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(26,"div",5),e.\u0275\u0275element(27,"mat-divider"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(28,"div",10)(29,"button",11),e.\u0275\u0275listener("click",function(){return wt.confirmChange()}),e.\u0275\u0275elementStart(30,"i",12),e.\u0275\u0275text(31,"check"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"span"),e.\u0275\u0275text(33),e.\u0275\u0275pipe(34,"uppercase"),e.\u0275\u0275pipe(35,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(36,"button",13),e.\u0275\u0275listener("click",function(){return wt.close()}),e.\u0275\u0275text(37),e.\u0275\u0275pipe(38,"uppercase"),e.\u0275\u0275pipe(39,"translate"),e.\u0275\u0275elementEnd()()()),2&Ye&&(e.\u0275\u0275advance(10),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind2(11,6,"SHARED.USER_LOCATION.CONFIRM_CHANGE_LOCATION",e.\u0275\u0275pureFunction1(27,D,null==wt.new_location?null:wt.new_location.city))),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(17,9,e.\u0275\u0275pipeBind1(18,11,"SHARED.USER_LOCATION.ATTENTION"))),e.\u0275\u0275advance(4),e.\u0275\u0275property("innerHtml",e.\u0275\u0275pipeBind2(21,13,"SHARED.USER_LOCATION.CONFIRM_CHANGE_TEXT_1",e.\u0275\u0275pureFunction2(29,A,null==wt.old_location?null:wt.old_location.city,null==wt.new_location?null:wt.new_location.city)),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(25,16,"SHARED.USER_LOCATION.CONFIRM_CHANGE_TEXT_2")),e.\u0275\u0275advance(9),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(34,18,e.\u0275\u0275pipeBind2(35,20,"SHARED.USER_LOCATION.CONFIRM_CHANGE_BUTTON",e.\u0275\u0275pureFunction1(32,D,null==wt.new_location?null:wt.new_location.city)))),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(38,23,e.\u0275\u0275pipeBind1(39,25,"SHARED.USER_LOCATION.CONFIRM_CHANGE_CANCEL"))," "))},dependencies:[y.eB,b.d,S.UpperCasePipe,E.X$],styles:[".dialog__content[_ngcontent-%COMP%]{margin-bottom:24px}.dialog__content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:19px;margin-top:16px;margin-bottom:28px}.dialog__content[_ngcontent-%COMP%]   i.material-icons--close[_ngcontent-%COMP%]{font-weight:700}.dialog__content[_ngcontent-%COMP%]   i.material-icons--attention[_ngcontent-%COMP%]{font-size:21px;color:#e42027;vertical-align:middle}.dialog__accept-button[_ngcontent-%COMP%]{margin-right:4px}.dialog__accept-button[_ngcontent-%COMP%]   i.material-icons[_ngcontent-%COMP%]{font-size:20px;margin-right:8px}.close-button-container[_ngcontent-%COMP%]{padding:0 8px}@media (max-width: 420px){.dialog__close-button[_ngcontent-%COMP%]{width:100%}.dialog__accept-button[_ngcontent-%COMP%]{width:100%;margin-right:unset;margin-bottom:5px}}"]}),ve})();var B=i(77044),V=i(55738),X=i(71839),re=i(5221),Q=i(73279),ae=i(48283),K=i(77368),k=i(50008),$=i(59633),j=i(28555),R=i(1576),U=i(55829);const H=function(ve){return{"location-text--mobile-display":ve}};function N(ve,Ee){if(1&ve&&(e.\u0275\u0275elementStart(0,"div",3)(1,"i",4),e.\u0275\u0275text(2,"location_on"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",5)(4,"span"),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"i",6),e.\u0275\u0275text(7,"keyboard_arrow_down"),e.\u0275\u0275elementEnd()()()),2&ve){const Ye=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,H,!Ye.user&&Ye.isOnMobileGuestMenu)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(Ye.selectedLocation)}}const pe=783,de=600,me=488,q="95VW";class se{constructor(Ee,Ye,wt,Wt,Ut,nt){this.userLocationService=Ee,this.store=Ye,this.filterService=wt,this.router=Wt,this.cartService=Ut,this.dialog=nt,this.isOnMobileGuestMenu=!1,this.locationSelected=new e.EventEmitter,this.addressSelected=new e.EventEmitter,this.openNotifications=new e.EventEmitter,this.destroy$=new a.x,this.unsubscribeFromCartLocation$=new a.x,this.shouldAddLocationAfterRegister=!1,this.availableStoreLocations=[],this.selectedLocationWithDiacritics={county:"",city:""},this.breakpoints=g.u3l,this.userAddress=new k.k}get hasValidLocation(){return this.userAddress&&this.selectedUserLocation?.county&&this.selectedUserLocation?.city&&this.userLocationService.isLocationValid(this.selectedUserLocation)}ngOnInit(){this.checkLocation(),this.openLocationDialog(),this.watchUserAddressUpdateAfterLogin(),this.watchUserLocationUpdate(),this.watchUserAddressUpdateFromUnavailableBusiness(),this.store.select(re.A_).pipe((0,t.n)(Ee=>!Ee?.length),(0,h.q)(1)).subscribe(Ee=>{this.availableStoreLocations=Ee})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeFromCartLocation$.next(),this.destroy$.complete(),this.unsubscribeFromCartLocation$.complete()}ngAfterViewInit(){this.router.events.pipe((0,s.R)(this.destroy$)).subscribe(Ee=>{this.openLocationDialogAfterChecks(Ee)})}watchUserAddressUpdateAfterLogin(){this.userLocationService.userAddressData$.pipe((0,s.R)(this.destroy$)).subscribe(Ee=>{(!this.userAddress||g.VLR.isBlank(this.userAddress.address))&&(this.userAddress=Ee.userAddress),Ee.isChanged&&(this.userAddress=Ee.userAddress)})}watchUserLocationUpdate(){this.userLocationService.locationData$.pipe((0,s.R)(this.destroy$)).subscribe(Ee=>{this.selectedUserLocation=Ee})}watchUserAddressUpdateFromUnavailableBusiness(){this.userLocationService.userAddressDataFromUnavailableBusiness$.pipe((0,s.R)(this.destroy$)).subscribe(Ee=>{Ee&&(this.changeLocationWithCheck({city:Ee.city,county:Ee.county},Ee),this.openNotifications.emit())})}setLocationDiacritics(){this.store.select(re.KM,this.selectedUserLocation.county).pipe((0,h.q)(1),(0,d.b)(Ee=>this.selectedLocationWithDiacritics.county=Ee.diacritics),(0,p.w)(Ee=>this.store.select(re.uu,{city:this.selectedUserLocation.city,countyId:Ee.id}))).subscribe(Ee=>{this.selectedLocationWithDiacritics.city=Ee.diacritics})}openLocationDialogAfterChecks(Ee){this.user?.isBusiness()||this.store.select(X.P).pipe((0,s.R)(this.destroy$)).subscribe(Ye=>{this.dialog.openDialogs.length&&this.dialog.openDialogs.some(wt=>wt.componentInstance instanceof K.u)||(this.shouldAddLocationAfterRegister=Ye,this.openDialog(Ye,Ee))})}openDialog(Ee,Ye){setTimeout(()=>{Ee&&Ye instanceof n.m2&&!this.isPageExemptFromLocationRequirements()&&!this.hasValidLocation&&(this.dialog.closeAll(),this.addLocationForUserOrOpenAddressDialog(),this.router.url===g.s67&&window.scroll(1,1))},400)}isPageExemptFromLocationRequirements(){return g.C39.some(Ee=>this.router.url.split("/").includes(Ee))}openUserAddressDialog(Ee=!1){this.dialog.open(K.u,{minWidth:this.getDialogDimension(g.QmF.width),width:this.getDialogDimension(g.QmF.width),height:"auto",position:g.VLR.getDialogPosition(),disableClose:!0,maxWidth:q,panelClass:["base-panel-class","user-address-dialog"],data:{isMandatory:Ee,locations:this.userLocationService.getAvailableLocations(),selectedLocation:{address:JSON.parse(localStorage.getItem(g.Umo.USER_ADDRESS))}}}).afterClosed().subscribe(wt=>{wt&&(this.changeLocationWithCheck({city:wt.city,county:wt.county},wt),this.openNotifications.emit())})}getDialogDimension(Ee){const Ye=Ee===g.QmF.width?600:488;return window.innerWidth>768?Ee===g.QmF.width?(0,g.I3d)(de):(0,g.ny$)(me):window.innerWidth>this.breakpoints.MOBILE_XL&&window.innerHeight>Ye&&window.innerWidth>Ye?Ye.toString():Ee===g.QmF.width?(0,g.I3d)(Ye):(0,g.ny$)(Ye)}shouldSearchByLocation(){const Ee=this.router.url.split("/");return Ee.length&&Ee[1]===g.Z2M.PRODUCTS&&(!Ee[3]||Ee[2]===g.Z2M.SEARCH)}loadPage(){const Ee=this.filterService.params;g.VLR.compareParams(Ee.queryParams,this.filterService.lastRequest.query)&&this.filterService.baseURL&&this.router.navigate([this.filterService.baseURL],{queryParams:Ee.queryParams})}checkLocation(){this.user&&this.user?.isBusiness()||(this.initSelectedLocation(),!g.C39.some(Ee=>this.router.url.split("/").includes(Ee))&&setTimeout(()=>this.addLocationForUserOrOpenAddressDialog(),1e3))}addLocationForUserOrOpenAddressDialog(){this.dialog?.openDialogs?.some(Ee=>Ee.componentInstance instanceof K.u)||(!this.userLocationService.getUserAddress()||this.userLocationService.getUserAddress()&&!this.hasValidLocation&&!this.shouldAddLocationAfterRegister)&&this.openUserAddressDialog(!0)}persistLocation(){this.userLocationService.changeCartDeliveryAddress(this.userAddress).pipe((0,h.q)(1),(0,u.K)(()=>(0,l.of)(this.openWarningDialog(this.selectedUserLocation,this.userAddress))),(0,p.w)(()=>this.cartService.fetch()),(0,h.q)(1),(0,p.w)(()=>this.userLocationService.getStoreLocation(g.VLR.normalizeRomanianDiacritics(this.selectedUserLocation.city,!0)))).subscribe({next:Ee=>{this.cartService.fetch().subscribe(),g.VLR.saveUserLocation(Ee),g.VLR.saveUserAddress(this.userAddress),localStorage.setItem(g.Umo.CART_ADDRESS,JSON.stringify(this.userAddress)),this.selectedUserLocation.city=g.VLR.normalizeRomanianDiacritics(Ee.mainLocality,!0),this.selectedUserLocation.county=g.VLR.normalizeRomanianDiacritics(this.selectedUserLocation.county,!0),this.userLocationService.setUserLocation(this.selectedUserLocation),this.shouldSearchByLocation()&&(this.filterService.setLocationFilterAndRemoveCityAndCounty(g.VLR.normalizeRomanianDiacritics(Ee.mainLocality).toUpperCase(),!0),this.loadPage()),this.store.dispatch(Q.N.loadPreview()),this.store.dispatch((0,ae.RK)()),this.store.dispatch($.N.setSelectedLocation(this.selectedUserLocation)),this.locationSelected.emit(this.selectedUserLocation),this.addressSelected.emit(this.userAddress),this.userLocationService.notifyUpdatedUserAddress(this.userAddress)}})}initSelectedLocation(){this.userAddress=this.userLocationService.getUserAddress(),this.selectedUserLocation={city:this.userAddress?.city,county:this.userAddress?.county}}openWarningDialog(Ee,Ye){if(!this.userLocationService.getUserLocation()||!Ee||this.areLocationsEqual(this.userLocationService.getUserLocation(),Ee))return;const wt=new k.k(this.userLocationService.getUserAddress());this.userLocationService.getUserAddress()&&Ye&&wt.deliveryText!==Ye.deliveryText&&this.dialog.open(P,{width:pe+"px",maxWidth:q,disableClose:!0,panelClass:"base-panel-class",data:{old_location:this.userLocationService.getUserLocation(),new_location:Ee},position:g.VLR.getDialogPosition()}).afterClosed().subscribe(Ut=>{Ut&&Ut.confirmed&&this.cartService.clear().pipe((0,s.R)(this.destroy$)).subscribe(nt=>{Ee.city=g.VLR.normalizeRomanianDiacritics(Ee.city,!0),this.selectedUserLocation=Ee,this.userAddress=Ye,this.setLocationDiacritics(),this.userAddress&&this.persistLocation()})})}areLocationsEqual(Ee,Ye){return g.VLR.normalizeRomanianDiacritics(Ee.city).toLowerCase()===g.VLR.normalize(Ye.city).toLowerCase()&&g.VLR.normalizeRomanianDiacritics(Ee.county.toLowerCase())===g.VLR.normalizeRomanianDiacritics(Ye.county.toLowerCase())}changeLocationWithCheck(Ee,Ye){!Ee||!Ye||(Ee.city=g.VLR.normalizeRomanianDiacritics(Ee.city),Ee.county=g.VLR.normalizeRomanianDiacritics(Ee.county),this.userLocationService.isChangeLocationDenied(Ee).pipe((0,h.q)(1),(0,u.K)(()=>(0,l.of)(!1))).subscribe(wt=>{wt&&this.selectedUserLocation?this.openWarningDialog(Ee,Ye):(this.selectedUserLocation=Ee,this.userAddress=Ye,this.setLocationDiacritics(),this.userAddress&&this.persistLocation())}))}get selectedLocation(){return this.userAddress?new k.k(this.userAddress).deliveryText:""}getNormalized(Ee){return g.VLR.normalizeRomanianDiacritics(Ee)?.toLowerCase()}openLocationDialog(){this.router.events.pipe((0,s.R)(this.destroy$)).subscribe(Ee=>{Ee instanceof n.m2&&this.checkLocation()})}}se.\u0275fac=function(Ee){return new(Ee||se)(e.\u0275\u0275directiveInject(g.vio.UserLocationServiceToken),e.\u0275\u0275directiveInject(j.yh),e.\u0275\u0275directiveInject(g.vio.FiltersServiceToken),e.\u0275\u0275directiveInject(n.F0),e.\u0275\u0275directiveInject(g.vio.CartServiceToken),e.\u0275\u0275directiveInject(v.on))},se.\u0275cmp=e.\u0275\u0275defineComponent({type:se,selectors:[["app-user-location"]],inputs:{isOnMobileGuestMenu:"isOnMobileGuestMenu"},outputs:{locationSelected:"locationSelected",addressSelected:"addressSelected",openNotifications:"openNotifications"},decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","center",1,"user-location",3,"click"],[1,"location-banner"],["fxLayout","row","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center"],[1,"material-icons","material-icons__location"],["fxLayoutAlign","start center",1,"location-text",3,"ngClass"],[1,"material-icons","material-icons__arrow"]],template:function(Ee,Ye){1&Ee&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(){return Ye.openUserAddressDialog()}),e.\u0275\u0275elementStart(1,"span",1),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,N,8,4,"div",2),e.\u0275\u0275elementEnd()),2&Ee&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"SHARED.USER_LOCATION.BANNER")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",Ye.selectedLocation))},dependencies:[S.NgClass,S.NgIf,R.xw,R.Wh,U.oO,E.X$],styles:[".user-location[_ngcontent-%COMP%]{cursor:pointer;min-width:max-content;column-gap:5px;row-gap:0}.user-location[_ngcontent-%COMP%]   .location-banner[_ngcontent-%COMP%]{line-height:15px;font-size:11px;color:#fff}.user-location[_ngcontent-%COMP%]   .location-text[_ngcontent-%COMP%]{font-size:14px;margin-left:4px}.user-location[_ngcontent-%COMP%]   .location-text[_ngcontent-%COMP%]   i.material-icons[_ngcontent-%COMP%]{margin-left:4px}.user-location[_ngcontent-%COMP%]   .location-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:22px;max-width:140px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 420px){.user-location[_ngcontent-%COMP%]   .location-text--mobile-display[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{max-width:104px}}i.material-icons[_ngcontent-%COMP%]{font-size:20px}i.material-icons__location[_ngcontent-%COMP%]{color:#07f}i.material-icons__arrow[_ngcontent-%COMP%]{font-weight:700;font-size:20px}@media (min-width: 960px){i.material-icons[_ngcontent-%COMP%]{font-weight:400;color:#fff}}@media (width: 420px){.location-banner[_ngcontent-%COMP%]{margin-right:15px!important}}@media (max-width: 420px){.location-banner[_ngcontent-%COMP%]{margin-right:0}}"]}),function(ve,Ee,Ye,wt){var nt,Wt=arguments.length,Ut=Wt<3?Ee:null===wt?wt=Object.getOwnPropertyDescriptor(Ee,Ye):wt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ut=Reflect.decorate(ve,Ee,Ye,wt);else for(var Zt=ve.length-1;Zt>=0;Zt--)(nt=ve[Zt])&&(Ut=(Wt<3?nt(Ut):Wt>3?nt(Ee,Ye,Ut):nt(Ee,Ye))||Ut);Wt>3&&Ut&&Object.defineProperty(Ee,Ye,Ut)}([(0,B.I)(),function(ve,Ee){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Ee)}(0,V.n)],se.prototype,"user",void 0)},39070:(oe,x,i)=>{"use strict";i.d(x,{c:()=>$});var e=i(77579),n=i(39646),a=i(70262),t=i(54004),l=i(95698),h=i(82722),s=i(63900),d=i(42274),p=i(28918),u=i(77044),g=i(55738),v=i(22539),y=i(12676),b=i(94650),S=i(35559),E=i(68423),D=i(92972),A=i(89383),P=i(1576),B=i(55829),V=i(99818),X=i(28377),re=i(97392),Q=i(44850),ae=i(3611);class ${onResize(){this.window=window}constructor(R,U,le,T,H,N,pe,de,me){this.patientService=R,this.businessService=U,this.dialogRef=le,this.spinner=T,this.snackBar=H,this.dialog=N,this.translateService=pe,this.messageService=de,this.userService=me,this.userProfileImage={url:{},file:{}},this.window=window,this.destroy$=new e.x}ngOnInit(){this.userProfileImage.url=this.user?.profile?.attachments?.find(R=>"profile_image"===R.type)?this.user?.profile?.files?.profile_image?.url:p.LeP,this.service=this.user?.isBusiness()?this.businessService:this.patientService}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onProfileImageSelected(R){const U=R.target.files[0];if(!U)return!1;this.adjustImage(U)}adjustImage(R){if(!R)return!1;this.dialog.open(d.GG,{data:{file:R,settings:{aspectRatio:1,resizeToWidth:560}},panelClass:"cropper-dialog",width:(0,p.I3d)(1404),position:p.VLR.getDialogPosition()}).afterClosed().subscribe(T=>{T&&(this.userProfileImage=T)})}deleteImageProfile(){this.userProfileImage.url=p.LeP}deleteAttachment(){const R=this.user.profile.attachments?.find(U=>"profile_image"===U.type)||null;return R?this.service.deleteAttachment(R).pipe((0,a.K)(()=>(0,n.of)(null)),(0,t.U)(U=>(this.user.profile.attachments=this.user.profile.attachments.filter(le=>le.storageKey!==R.storageKey),this.user.profile.refreshFiles(),U))):(0,n.of)([])}close(R){this.dialogRef.close(R)}updateProfileImage(){this.userProfileImage.url===p.LeP?this.deleteAttachment().pipe((0,l.q)(1)).subscribe(()=>{delete this.user.profile.files.profile_image,this.close()}):this.deleteAttachment().pipe((0,h.R)(this.destroy$),(0,s.w)(()=>this.service.addAttachment("profile_image",this.userProfileImage.file)),(0,s.w)(R=>(this.user.profile.attachments.push(new v.P(R)),this.user.profile.refreshFiles(),this.spinner.hide(),this.close(this.user.profile.attachments?.find(U=>"profile_image"===U.type)),this.userService.loadUser()))).subscribe({error:R=>{406===R.status&&this.messageService.displayMessage(p.CsS.ERROR,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.FILE_EXTENSION_NOT_SUPPORTED"),this.spinner.hide(),this.close("deleted")}})}get isDisabled(){return!(this.userProfileImage?.file?.size||this.userProfileImage.url===p.LeP)}}$.\u0275fac=function(R){return new(R||$)(b.\u0275\u0275directiveInject(p.vio.PatientServiceToken),b.\u0275\u0275directiveInject(p.vio.BusinessServiceToken),b.\u0275\u0275directiveInject(S.hV),b.\u0275\u0275directiveInject(E.t2),b.\u0275\u0275directiveInject(D.pl),b.\u0275\u0275directiveInject(S.on),b.\u0275\u0275directiveInject(A.sK),b.\u0275\u0275directiveInject(p.vio.SnackbarMessageServiceToken),b.\u0275\u0275directiveInject(y.O))},$.\u0275cmp=b.\u0275\u0275defineComponent({type:$,selectors:[["app-add-profile-image-dialog"]],hostBindings:function(R,U){1&R&&b.\u0275\u0275listener("resize",function(T){return U.onResize(T)},!1,b.\u0275\u0275resolveWindow)},decls:35,vars:15,consts:[[1,"base-panel-class"],[1,"container-header"],[1,"close-button-container",3,"click"],[1,"dialog-full-width-divider"],["fxLayout","column","fxLayoutAlign.lt-md","center center","fxLayoutAlign","center start"],[1,"edit-user-image-profile"],["mat-card-avatar","",1,"user-profile-image",3,"alt","src"],["profileImage",""],["fxLayout","row-reverse","fxLayout.lt-md","column","fxLayoutAlign","end center","fxLayoutAlign.lt-md","center center","fxLayoutGap.gt-sm","18px",3,"resize"],["ngClass.lt-md","image-menu-container","fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign","start center","fxLayoutAlign.lt-md","center center","fxLayoutGap.gt-sm","18px"],["fxLayout","row"],[1,"camera-icon"],["type","file","accept","image/*",1,"cdk-visually-hidden",3,"change"],["profileImageUpload",""],["href","javascript:",1,"upload-image",3,"click"],["fxLayout","row",1,"delete-image","cursor-pointer",3,"click"],["color","warn"],[1,"delete-image-span"],["type","submit","ngClass.lt-md","save-changes-button","mat-flat-button","",1,"green-button-style","mat-primary",3,"disabled","click"]],template:function(R,U){if(1&R){const le=b.\u0275\u0275getCurrentView();b.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),b.\u0275\u0275listener("click",function(){return U.close()}),b.\u0275\u0275elementStart(3,"mat-icon"),b.\u0275\u0275text(4,"close"),b.\u0275\u0275elementEnd()()()(),b.\u0275\u0275element(5,"mat-divider",3),b.\u0275\u0275elementStart(6,"div",4)(7,"span",5)(8,"strong"),b.\u0275\u0275text(9),b.\u0275\u0275pipe(10,"translate"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275element(11,"img",6,7),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(13,"mat-divider",3),b.\u0275\u0275elementStart(14,"mat-dialog-actions",8),b.\u0275\u0275listener("resize",function(){return U.onResize()},!1,b.\u0275\u0275resolveWindow),b.\u0275\u0275elementStart(15,"div",9)(16,"div",10)(17,"mat-icon",11),b.\u0275\u0275text(18,"camera_alt"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(19,"input",12,13),b.\u0275\u0275listener("change",function(H){return U.onProfileImageSelected(H)}),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(21,"a",14),b.\u0275\u0275listener("click",function(){b.\u0275\u0275restoreView(le);const H=b.\u0275\u0275reference(20);return b.\u0275\u0275resetView(H.click())}),b.\u0275\u0275text(22),b.\u0275\u0275pipe(23,"translate"),b.\u0275\u0275elementEnd()(),b.\u0275\u0275elementStart(24,"div",15),b.\u0275\u0275listener("click",function(){return U.deleteImageProfile()}),b.\u0275\u0275elementStart(25,"mat-icon",16),b.\u0275\u0275text(26,"close"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(27,"span",17)(28,"strong"),b.\u0275\u0275text(29),b.\u0275\u0275pipe(30,"translate"),b.\u0275\u0275elementEnd()()()(),b.\u0275\u0275elementStart(31,"button",18),b.\u0275\u0275listener("click",function(){return U.updateProfileImage()}),b.\u0275\u0275elementStart(32,"span"),b.\u0275\u0275text(33),b.\u0275\u0275pipe(34,"translate"),b.\u0275\u0275elementEnd()()()}2&R&&(b.\u0275\u0275advance(9),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(10,7,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.EDIT_PROFILE_IMAGE")," "),b.\u0275\u0275advance(2),b.\u0275\u0275property("alt",U.user.username)("src",U.userProfileImage.url,b.\u0275\u0275sanitizeUrl),b.\u0275\u0275advance(11),b.\u0275\u0275textInterpolate1(" ",b.\u0275\u0275pipeBind1(23,9,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.UPLOAD_IMAGE")," "),b.\u0275\u0275advance(7),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(30,11,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.DELETE_IMAGE")),b.\u0275\u0275advance(2),b.\u0275\u0275property("disabled",U.isDisabled),b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(b.\u0275\u0275pipeBind1(34,13,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.SAVE_CHANGES")))},dependencies:[P.xw,P.SQ,P.Wh,B.oO,V.eB,X.lb,S.ev,re.Hw,Q.d,ae.b,A.X$],styles:[".user-profile-image[_ngcontent-%COMP%]{width:120px;height:120px;margin-bottom:24px}.dialog-full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.edit-user-image-profile[_ngcontent-%COMP%]{font-size:19px;margin:16px 0}.upload-image[_ngcontent-%COMP%]{font-weight:700;text-decoration:none;color:#242424;margin-left:10px}.camera-icon[_ngcontent-%COMP%]{height:19px;width:19px;color:#5d5d5d}.delete-image[_ngcontent-%COMP%]{margin:25px 0}.delete-image-span[_ngcontent-%COMP%]{margin-left:12px;color:#ff001a}.save-changes-button[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}@media (min-width: 960px){mat-dialog-actions[_ngcontent-%COMP%]{padding-top:0}}"]}),function(j,R,U,le){var N,T=arguments.length,H=T<3?R:null===le?le=Object.getOwnPropertyDescriptor(R,U):le;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)H=Reflect.decorate(j,R,U,le);else for(var pe=j.length-1;pe>=0;pe--)(N=j[pe])&&(H=(T<3?N(H):T>3?N(R,U,H):N(R,U))||H);T>3&&H&&Object.defineProperty(R,U,H)}([(0,u.I)(),function(j,R){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",R)}(0,g.n)],$.prototype,"user",void 0)},39783:(oe,x,i)=>{"use strict";i.d(x,{L:()=>re});var e=i(9116),n=i(39300),a=i(28918),t=i(94650),l=i(11828),h=i(11481),s=i(36895),d=i(1576),p=i(55829),u=i(28377),g=i(35559),v=i(89383);function y(Q,ae){if(1&Q&&(t.\u0275\u0275elementStart(0,"a",8)(1,"span",9),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&Q){const K=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("routerLink",K.homePageRoute),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,2,"THEME.COMPONENTS.BREADCRUMB.DEFAULT_TITLE"))}}const b=function(Q){return[Q]};function S(Q,ae){if(1&Q&&(t.\u0275\u0275elementStart(0,"a",13),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&Q){const K=t.\u0275\u0275nextContext().$implicit,k=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("routerLink",t.\u0275\u0275pureFunction1(5,b,K.url))("queryParams",k.getParams(K.url)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,3,K.name)," ")}}function E(Q,ae){if(1&Q&&(t.\u0275\u0275elementStart(0,"a"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&Q){const K=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,K.name))}}function D(Q,ae){if(1&Q&&(t.\u0275\u0275elementStart(0,"div",10),t.\u0275\u0275template(1,S,3,7,"a",11),t.\u0275\u0275template(2,E,3,3,"a",12),t.\u0275\u0275elementEnd()),2&Q){const K=ae.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",K.url),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!K.url)}}function A(Q,ae){if(1&Q&&(t.\u0275\u0275elementStart(0,"a",16),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&Q){const K=t.\u0275\u0275nextContext().$implicit,k=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("routerLink",t.\u0275\u0275pureFunction1(4,b,K.url?K.url:k.homePageRoute)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,K.name)," ")}}function P(Q,ae){if(1&Q&&(t.\u0275\u0275elementStart(0,"a"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&Q){const K=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,K.name))}}function B(Q,ae){if(1&Q&&(t.\u0275\u0275elementStart(0,"div",14),t.\u0275\u0275template(1,A,3,6,"a",15),t.\u0275\u0275template(2,P,3,3,"a",12),t.\u0275\u0275elementEnd()),2&Q){const K=ae.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null!==K.url),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null===K.url)}}const V=function(Q){return{nowrap:Q}};function X(Q,ae){if(1&Q&&(t.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"mat-card",3)(3,"div",4),t.\u0275\u0275template(4,y,4,4,"a",5),t.\u0275\u0275template(5,D,3,2,"div",6),t.\u0275\u0275template(6,B,3,2,"div",7),t.\u0275\u0275elementEnd()()()()),2&Q){const K=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(4,V,K.window.innerWidth<K.breakpoints.MOBILE_L)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!K.isHomePage()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",K.breadcrumbs),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",K.shortBreadcrumbs)}}let re=(()=>{class Q{constructor(K,k,$,j){this.appSettings=K,this.router=k,this.activatedRoute=$,this.title=j,this.shouldCloseProductDialog=!1,this.breadcrumbs=[],this.shortBreadcrumbs=[],this.homePageRoute=a.s67,this.window=window,this.breakpoints=a.u3l,this.settings=this.appSettings.settings}get node(){return this.activatedRoute.snapshot}ngOnInit(){this.load(this.breadcrumbsFromRoute(this.node)),this.node.data.breadcrumb||(this.__subjectSub=this.appSettings.currentBreadcrumb$.subscribe(K=>{this.load(0===this.selectedBreadcrumbIndex?K.splice(1):K)})),this.__routeSub=this.router.events.pipe((0,n.h)(K=>K instanceof e.m2)).subscribe(()=>{this.load(this.breadcrumbsFromRoute(this.node))})}load(K){if(K&&K.length){if(!K[0].name)return void(this.breadcrumbs=[]);this.breadcrumbs=K,this.pageTitle="",this.breadcrumbs.forEach(k=>{k.name&&(this.pageTitle+=" > "+k.name)}),this.currentBreadcrumb=this.breadcrumbs[this.breadcrumbs.length-1],this.title.getTitle()||this.title.setTitle(this.settings.name+this.pageTitle),this.createShortBreadcrumbs(K)}}createShortBreadcrumbs(K){switch(!!K){case 1===K.length:this.shortBreadcrumbs[0]=K[0],this.shortBreadcrumbs.splice(1,3);break;case 2===K.length:this.shortBreadcrumbs[0]=K[0],this.shortBreadcrumbs[1]=K[1],this.shortBreadcrumbs.splice(2,2);break;case 3===K.length:this.shortBreadcrumbs[0]=K[0],this.shortBreadcrumbs[1]=K[1],this.shortBreadcrumbs[2]=K[K.length-1],this.shortBreadcrumbs.splice(3,1);break;case K.length>3:this.shortBreadcrumbs[0]=K[0],this.shortBreadcrumbs[1]=K[1],this.shortBreadcrumbs[2]=K[2],this.shortBreadcrumbs[3]=K[K.length-1];break;default:this.shortBreadcrumbs.splice(0,4)}}breadcrumbsFromRoute(K){this.pageSize=K.queryParams?.size;const k=[];if(K.data.breadcrumb){let $=[];K.pathFromRoot.forEach(R=>{$=$.concat(R.url)});const j=$.map(R=>R.path).join("/");k.push(K.params.name?{name:K.params.name,url:"/"+j}:{name:K.data.breadcrumb,url:"/"+j})}return k}isHomePage(){return this.router.url===a.s67}ngOnDestroy(){this.__routeSub&&this.__routeSub.unsubscribe(),this.__subjectSub&&this.__subjectSub.unsubscribe(),this.shortBreadcrumbs=null}getParams(K){return this.pageSize&&K!==`/${a.nUJ.RESTAURANTS}`?{size:this.pageSize}:{}}}return Q.\u0275fac=function(K){return new(K||Q)(t.\u0275\u0275directiveInject(l.d),t.\u0275\u0275directiveInject(e.F0),t.\u0275\u0275directiveInject(e.gz),t.\u0275\u0275directiveInject(h.Title))},Q.\u0275cmp=t.\u0275\u0275defineComponent({type:Q,selectors:[["app-breadcrumb"]],inputs:{shouldCloseProductDialog:"shouldCloseProductDialog"},decls:1,vars:1,consts:[["fxLayout","row wrap",4,"ngIf"],["fxLayout","row wrap"],["fxFlex","100",1,"breadcrumb__wrapper"],["fxLayout","column",1,"breadcrumb","text-muted"],["fxLayout.gt-lg","row wrap","fxLayout","row",3,"ngClass"],["mat-dialog-close","","class","breadcrumb-item","fxLayout","row","fxLayoutAlign","start center",3,"routerLink",4,"ngIf"],["class","breadcrumb-item desktop-breadcrumbs","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["class","breadcrumb-item mobile-breadcrumbs","fxLayout","row","fxLayoutAlign","start center",4,"ngFor","ngForOf"],["mat-dialog-close","","fxLayout","row","fxLayoutAlign","start center",1,"breadcrumb-item",3,"routerLink"],[1,"breadcrumb-title"],["fxLayout","row","fxLayoutAlign","start center",1,"breadcrumb-item","desktop-breadcrumbs"],["mat-dialog-close","",3,"routerLink","queryParams",4,"ngIf"],[4,"ngIf"],["mat-dialog-close","",3,"routerLink","queryParams"],["fxLayout","row","fxLayoutAlign","start center",1,"breadcrumb-item","mobile-breadcrumbs"],["mat-dialog-close","",3,"routerLink",4,"ngIf"],["mat-dialog-close","",3,"routerLink"]],template:function(K,k){1&K&&t.\u0275\u0275template(0,X,7,6,"div",0),2&K&&t.\u0275\u0275property("ngIf",!k.isHomePage()&&(null==k.breadcrumbs?null:k.breadcrumbs.length))},dependencies:[s.NgClass,s.NgForOf,s.NgIf,e.rH,d.xw,d.Wh,d.yH,p.oO,u.S$,g.aO,v.X$],styles:['.breadcrumb[_ngcontent-%COMP%]{padding:0;box-shadow:none!important}.breadcrumb__wrapper[_ngcontent-%COMP%]{overflow-x:auto}.breadcrumb[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .breadcrumb[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:11px;text-decoration:none;color:inherit}.breadcrumb[_ngcontent-%COMP%]   .breadcrumb-title.active[_ngcontent-%COMP%]{text-transform:uppercase}.breadcrumb[_ngcontent-%COMP%]   .breadcrumb-item[_ngcontent-%COMP%] + .breadcrumb-item[_ngcontent-%COMP%]:before{color:#7b7b7b;display:inline-block;padding-right:.2rem;padding-left:.2rem;content:"/"}span[_ngcontent-%COMP%]   .text-muted[_ngcontent-%COMP%]{font-size:10px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.nowrap[_ngcontent-%COMP%]{white-space:nowrap}.mobile-breadcrumbs[_ngcontent-%COMP%]{display:none!important}.desktop-breadcrumbs[_ngcontent-%COMP%]{display:flex!important}@media (max-width: 420px){.mobile-breadcrumbs[_ngcontent-%COMP%]{display:flex!important}.desktop-breadcrumbs[_ngcontent-%COMP%]{display:none!important}}']}),Q})()},9615:(oe,x,i)=>{"use strict";i.d(x,{$:()=>a});var e=i(36895),n=i(94650);let a=(()=>{class t{transform(h,s,d,p){return"string"==typeof h&&!h.includes("Z")&&(h+="Z"),new e.DatePipe("ro").transform(h,s,d,p)}}return t.\u0275fac=function(h){return new(h||t)},t.\u0275pipe=n.\u0275\u0275definePipe({name:"utcdate",type:t,pure:!0}),t})()},43717:(oe,x,i)=>{"use strict";i.d(x,{r:()=>t});var e=i(94813),n=i(52873),a=i(94650);let t=(()=>{class l{constructor(s){this.appService=s}transform(s,d="name"){const p=this.appService.getBusinessById(s);return"profile"===d?p:p.pipe((0,e.j)(d))}}return l.\u0275fac=function(s){return new(s||l)(a.\u0275\u0275directiveInject(n.z,16))},l.\u0275pipe=a.\u0275\u0275definePipe({name:"business",type:l,pure:!0}),l})()},614:(oe,x,i)=>{"use strict";i.d(x,{e:()=>n});var e=i(94650);let n=(()=>{class a{transform(l,h="first"){let s=l.toLowerCase().split(/[-\s]/);return"each"===h?s=s.map(d=>d.charAt(0).toUpperCase()+d.substring(1)):s[0]=s[0].charAt(0).toUpperCase()+s[0].substring(1),l.includes("-")&&"each"===h?s.join("-"):s.join(" ")}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275pipe=e.\u0275\u0275definePipe({name:"capitalize",type:a,pure:!0}),a})()},77696:(oe,x,i)=>{"use strict";i.d(x,{D:()=>a});var e=i(36895),n=i(94650);let a=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=n.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.CommonModule]}),t})()},36667:(oe,x,i)=>{"use strict";i.d(x,{d:()=>n});var e=i(94650);let n=(()=>{class a{transform(l,h=!0){if(!l||isNaN(l))return"0";const s=(l/100).toFixed(2).split(".");return"00"===s[1]?s[0]:h?`${s[0]}<sup class="line-height-0"><span class="opacity-0 font-size-1">.</span>${s[1]}</sup>`:`${s[0]},${s[1]}`}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275pipe=e.\u0275\u0275definePipe({name:"price",type:a,pure:!0}),a})()},89262:(oe,x,i)=>{"use strict";i.d(x,{W:()=>n});var e=i(94650);let n=(()=>{class a{transform(l,h){return h=h||100,l?l.length>h?l.slice(0,h)+"...":l:""}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275pipe=e.\u0275\u0275definePipe({name:"truncate",type:a,pure:!0}),a})()},79912:(oe,x,i)=>{"use strict";i.d(x,{g:()=>e});var e=(()=>{return(n=e||(e={}))[n.GENERAL_MIN=3]="GENERAL_MIN",n[n.GENERAL_MAX=50]="GENERAL_MAX",n[n.NOTES_MAX=600]="NOTES_MAX",n[n.STREET_MIN=2]="STREET_MIN",n[n.STREET_NUMBER_MAX=10]="STREET_NUMBER_MAX",e;var n})()},76542:(oe,x,i)=>{"use strict";i.d(x,{a:()=>g});var e=i(39646),n=i(63900),a=i(28918),t=i(77044),l=i(55738),h=i(12676),s=i(94650),d=i(9116);class g{constructor(y,b){this.router=y,this.userService=b}canActivate(y,b){return y.data?.cartAuth?this.checkCartAuthentication():(this.user?this.userService.getCurrent():this.userService.loadUser()).pipe((0,n.w)(E=>E||this.userService.isUserLoadingInProgress?y.data.roles&&-1===y.data.roles.indexOf(E.getType())?(this.router.navigate([`/${a.YuG.NOT_FOUND_404}`],{skipLocationChange:!0}),(0,e.of)(!1)):(0,e.of)(!0):(this.userService.logout(a.S2t.AUTH_GUARD).subscribe(),this.router.navigate([a.baM],{queryParams:{returnTo:b.url}}),(0,e.of)(!1))))}checkCartAuthentication(){return this.user||this.userService.isUserLoadingInProgress?(0,e.of)(!0):(this.router.navigate([a.L1t]),(0,e.of)(!1))}}g.\u0275fac=function(y){return new(y||g)(s.\u0275\u0275inject(d.F0),s.\u0275\u0275inject(h.O))},g.\u0275prov=s.\u0275\u0275defineInjectable({token:g,factory:g.\u0275fac}),function(v,y,b,S){var A,E=arguments.length,D=E<3?y:null===S?S=Object.getOwnPropertyDescriptor(y,b):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)D=Reflect.decorate(v,y,b,S);else for(var P=v.length-1;P>=0;P--)(A=v[P])&&(D=(E<3?A(D):E>3?A(y,b,D):A(y,b))||D);E>3&&D&&Object.defineProperty(y,b,D)}([(0,t.I)(),function(v,y){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",y)}(0,l.n)],g.prototype,"user",void 0)},22436:(oe,x,i)=>{"use strict";i.d(x,{Q:()=>d});var e=i(28918),n=i(77044),a=i(55738),t=i(94650),l=i(9116);class d{constructor(u){this.router=u}canActivate(){return!this.user||(this.router.navigate([e.s67]),!1)}}d.\u0275fac=function(u){return new(u||d)(t.\u0275\u0275inject(l.F0))},d.\u0275prov=t.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),function(p,u,g,v){var S,y=arguments.length,b=y<3?u:null===v?v=Object.getOwnPropertyDescriptor(u,g):v;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)b=Reflect.decorate(p,u,g,v);else for(var E=p.length-1;E>=0;E--)(S=p[E])&&(b=(y<3?S(b):y>3?S(u,g,b):S(u,g))||b);y>3&&b&&Object.defineProperty(u,g,b)}([(0,n.I)(),function(p,u){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",u)}(0,a.n)],d.prototype,"user",void 0)},96778:(oe,x,i)=>{"use strict";i.d(x,{y:()=>a});var e=i(28918),n=i(43651);class a{static filterCategoriesforTobaccoAndAlcohol(l,h){const s=new n.W(l);return h&&(s.children=s.children.filter(d=>!e.VLR.isTobaccoAndAlcoholCategory(d.categoryId))),s}}},77044:(oe,x,i)=>{"use strict";i.d(x,{I:()=>a});var e=i(70037),n=i(12676);function a(){return function(t,l){let h=null;Object.defineProperty(t,l,{configurable:!1,get:()=>(e.S.injector.get(n.O).user$.subscribe(d=>{h=d}),h)})}}},47225:(oe,x,i)=>{"use strict";i.d(x,{T:()=>e});var e=(()=>{return(n=e||(e={})).BoldCopyright="BoldVersion",n.HiddenPage="HiddenFeature",n.ProductListingCaching="TSP-606-page-load-optimization-enable-caching",n.Bioclinica="DEV-6507-BioclinicaMedicalAnalysisResults",n.HideTobaccoAndAlcoholCategory="TDV-3198-Hide-iOS-Tobacco-And-Alcohol-Category",e;var n})()},67e3:(oe,x,i)=>{"use strict";var e={};i.r(e),i.d(e,{FunctionToString:()=>t1,InboundFilters:()=>Sy,LinkedErrors:()=>Ov});var n={};i.r(n),i.d(n,{Breadcrumbs:()=>D1,Dedupe:()=>M0,GlobalHandlers:()=>sM,HttpContext:()=>B1,LinkedErrors:()=>H0,TryCatch:()=>_v});var a=i(11481),t=i(94650),l=i(11828),h=i(15861),s=i(80529),d=i(37340);function u(c){return new t.\u0275RuntimeError(3e3,!1)}function nt(){return typeof window<"u"&&typeof window.document<"u"}function Zt(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Fe(c){switch(c.length){case 0:return new d.ZN;case 1:return c[0];default:return new d.ZE(c)}}function yt(c,o,r,m,M=new Map,I=new Map){const G=[],Me=[];let _t=-1,Gt=null;if(m.forEach(Pn=>{const kn=Pn.get("offset"),fi=kn==_t,xi=fi&&Gt||new Map;Pn.forEach((Ui,qi)=>{let Dr=qi,ro=Ui;if("offset"!==qi)switch(Dr=o.normalizePropertyName(Dr,G),ro){case d.k1:ro=M.get(qi);break;case d.l3:ro=I.get(qi);break;default:ro=o.normalizeStyleValue(qi,Dr,ro,G)}xi.set(Dr,ro)}),fi||Me.push(xi),Gt=xi,_t=kn}),G.length)throw function H(c){return new t.\u0275RuntimeError(3502,!1)}();return Me}function ie(c,o,r,m){switch(o){case"start":c.onStart(()=>m(r&&Ce(r,"start",c)));break;case"done":c.onDone(()=>m(r&&Ce(r,"done",c)));break;case"destroy":c.onDestroy(()=>m(r&&Ce(r,"destroy",c)))}}function Ce(c,o,r){const I=Ie(c.element,c.triggerName,c.fromState,c.toState,o||c.phaseName,r.totalTime??c.totalTime,!!r.disabled),G=c._data;return null!=G&&(I._data=G),I}function Ie(c,o,r,m,M="",I=0,G){return{element:c,triggerName:o,fromState:r,toState:m,phaseName:M,totalTime:I,disabled:!!G}}function dt(c,o,r){let m=c.get(o);return m||c.set(o,m=r),m}function Mt(c){const o=c.indexOf(":");return[c.substring(1,o),c.slice(o+1)]}let Xt=(c,o)=>!1,en=(c,o,r)=>[],vt=null;function xt(c){const o=c.parentNode||c.host;return o===vt?null:o}(Zt()||typeof Element<"u")&&(nt()?(vt=(()=>document.documentElement)(),Xt=(c,o)=>{for(;o;){if(o===c)return!0;o=xt(o)}return!1}):Xt=(c,o)=>c.contains(o),en=(c,o,r)=>{if(r)return Array.from(c.querySelectorAll(o));const m=c.querySelector(o);return m?[m]:[]});let At=null,$e=!1;const mt=Xt,It=en;let _n=(()=>{class c{validateStyleProperty(r){return function Xe(c){At||(At=function Ve(){return typeof document<"u"?document.body:null}()||{},$e=!!At.style&&"WebkitAppearance"in At.style);let o=!0;return At.style&&!function bt(c){return"ebkit"==c.substring(1,6)}(c)&&(o=c in At.style,!o&&$e&&(o="Webkit"+c.charAt(0).toUpperCase()+c.slice(1)in At.style)),o}(r)}matchesElement(r,m){return!1}containsElement(r,m){return mt(r,m)}getParentElement(r){return xt(r)}query(r,m,M){return It(r,m,M)}computeStyle(r,m,M){return M||""}animate(r,m,M,I,G,Me=[],_t){return new d.ZN(M,I)}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})(),Jt=(()=>{class c{}return c.NOOP=new _n,c})();const ke=1e3,pt="ng-enter",tn="ng-leave",ot="ng-trigger",Et=".ng-trigger",z="ng-animating",Z=".ng-animating";function ge(c){if("number"==typeof c)return c;const o=c.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:Qe(parseFloat(o[1]),o[2])}function Qe(c,o){return"s"===o?c*ke:c}function qe(c,o,r){return c.hasOwnProperty("duration")?c:function ct(c,o,r){let M,I=0,G="";if("string"==typeof c){const Me=c.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Me)return o.push(u()),{duration:0,delay:0,easing:""};M=Qe(parseFloat(Me[1]),Me[2]);const _t=Me[3];null!=_t&&(I=Qe(parseFloat(_t),Me[4]));const Gt=Me[5];Gt&&(G=Gt)}else M=c;if(!r){let Me=!1,_t=o.length;M<0&&(o.push(function g(){return new t.\u0275RuntimeError(3100,!1)}()),Me=!0),I<0&&(o.push(function v(){return new t.\u0275RuntimeError(3101,!1)}()),Me=!0),Me&&o.splice(_t,0,u())}return{duration:M,delay:I,easing:G}}(c,o,r)}function Yt(c,o={}){return Object.keys(c).forEach(r=>{o[r]=c[r]}),o}function it(c){const o=new Map;return Object.keys(c).forEach(r=>{o.set(r,c[r])}),o}function ue(c,o=new Map,r){if(r)for(let[m,M]of r)o.set(m,M);for(let[m,M]of c)o.set(m,M);return o}function Ge(c,o,r){return r?o+":"+r+";":""}function ee(c){let o="";for(let r=0;r<c.style.length;r++){const m=c.style.item(r);o+=Ge(0,m,c.style.getPropertyValue(m))}for(const r in c.style)c.style.hasOwnProperty(r)&&!r.startsWith("_")&&(o+=Ge(0,Ti(r),c.style[r]));c.setAttribute("style",o)}function De(c,o,r){c.style&&(o.forEach((m,M)=>{const I=Qn(M);r&&!r.has(M)&&r.set(M,c.style[I]),c.style[I]=m}),Zt()&&ee(c))}function Ot(c,o){c.style&&(o.forEach((r,m)=>{const M=Qn(m);c.style[M]=""}),Zt()&&ee(c))}function cn(c){return Array.isArray(c)?1==c.length?c[0]:(0,d.vP)(c):c}const _i=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ni(c){let o=[];if("string"==typeof c){let r;for(;r=_i.exec(c);)o.push(r[1]);_i.lastIndex=0}return o}function Nn(c,o,r){const m=c.toString(),M=m.replace(_i,(I,G)=>{let Me=o[G];return null==Me&&(r.push(function b(c){return new t.\u0275RuntimeError(3003,!1)}()),Me=""),Me.toString()});return M==m?c:M}function Mn(c){const o=[];let r=c.next();for(;!r.done;)o.push(r.value),r=c.next();return o}const On=/-+([a-z0-9])/g;function Qn(c){return c.replace(On,(...o)=>o[1].toUpperCase())}function Ti(c){return c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function rn(c,o,r){switch(o.type){case 7:return c.visitTrigger(o,r);case 0:return c.visitState(o,r);case 1:return c.visitTransition(o,r);case 2:return c.visitSequence(o,r);case 3:return c.visitGroup(o,r);case 4:return c.visitAnimate(o,r);case 5:return c.visitKeyframes(o,r);case 6:return c.visitStyle(o,r);case 8:return c.visitReference(o,r);case 9:return c.visitAnimateChild(o,r);case 10:return c.visitAnimateRef(o,r);case 11:return c.visitQuery(o,r);case 12:return c.visitStagger(o,r);default:throw function S(c){return new t.\u0275RuntimeError(3004,!1)}()}}function $t(c,o){return window.getComputedStyle(c)[o]}const Vn="*";function Le(c,o){const r=[];return"string"==typeof c?c.split(/\s*,\s*/).forEach(m=>function Ft(c,o,r){if(":"==c[0]){const _t=function dn(c,o){switch(c){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,m)=>parseFloat(m)>parseFloat(r);case":decrement":return(r,m)=>parseFloat(m)<parseFloat(r);default:return o.push(function R(c){return new t.\u0275RuntimeError(3016,!1)}()),"* => *"}}(c,r);if("function"==typeof _t)return void o.push(_t);c=_t}const m=c.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==m||m.length<4)return r.push(function j(c){return new t.\u0275RuntimeError(3015,!1)}()),o;const M=m[1],I=m[2],G=m[3];o.push($i(M,G));"<"==I[0]&&!(M==Vn&&G==Vn)&&o.push($i(G,M))}(m,r,o)):r.push(c),r}const En=new Set(["true","1"]),gi=new Set(["false","0"]);function $i(c,o){const r=En.has(c)||gi.has(c),m=En.has(o)||gi.has(o);return(M,I)=>{let G=c==Vn||c==M,Me=o==Vn||o==I;return!G&&r&&"boolean"==typeof M&&(G=M?En.has(c):gi.has(c)),!Me&&m&&"boolean"==typeof I&&(Me=I?En.has(o):gi.has(o)),G&&Me}}const Mr=new RegExp("s*:selfs*,?","g");function ti(c,o,r,m){return new on(c).build(o,r,m)}class on{constructor(o){this._driver=o}build(o,r,m){const M=new tt(r);return this._resetContextStyleTimingState(M),rn(this,cn(o),M)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles=new Map,o.collectedStyles.set("",new Map),o.currentTime=0}visitTrigger(o,r){let m=r.queryCount=0,M=r.depCount=0;const I=[],G=[];return"@"==o.name.charAt(0)&&r.errors.push(function D(){return new t.\u0275RuntimeError(3006,!1)}()),o.definitions.forEach(Me=>{if(this._resetContextStyleTimingState(r),0==Me.type){const _t=Me,Gt=_t.name;Gt.toString().split(/\s*,\s*/).forEach(Pn=>{_t.name=Pn,I.push(this.visitState(_t,r))}),_t.name=Gt}else if(1==Me.type){const _t=this.visitTransition(Me,r);m+=_t.queryCount,M+=_t.depCount,G.push(_t)}else r.errors.push(function A(){return new t.\u0275RuntimeError(3007,!1)}())}),{type:7,name:o.name,states:I,transitions:G,queryCount:m,depCount:M,options:null}}visitState(o,r){const m=this.visitStyle(o.styles,r),M=o.options&&o.options.params||null;if(m.containsDynamicStyles){const I=new Set,G=M||{};m.styles.forEach(Me=>{Me instanceof Map&&Me.forEach(_t=>{Ni(_t).forEach(Gt=>{G.hasOwnProperty(Gt)||I.add(Gt)})})}),I.size&&(Mn(I.values()),r.errors.push(function P(c,o){return new t.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:o.name,style:m,options:M?{params:M}:null}}visitTransition(o,r){r.queryCount=0,r.depCount=0;const m=rn(this,cn(o.animation),r);return{type:1,matchers:Le(o.expr,r.errors),animation:m,queryCount:r.queryCount,depCount:r.depCount,options:jt(o.options)}}visitSequence(o,r){return{type:2,steps:o.steps.map(m=>rn(this,m,r)),options:jt(o.options)}}visitGroup(o,r){const m=r.currentTime;let M=0;const I=o.steps.map(G=>{r.currentTime=m;const Me=rn(this,G,r);return M=Math.max(M,r.currentTime),Me});return r.currentTime=M,{type:3,steps:I,options:jt(o.options)}}visitAnimate(o,r){const m=function zn(c,o){if(c.hasOwnProperty("duration"))return c;if("number"==typeof c)return Fn(qe(c,o).duration,0,"");const r=c;if(r.split(/\s+/).some(I=>"{"==I.charAt(0)&&"{"==I.charAt(1))){const I=Fn(0,0,"");return I.dynamic=!0,I.strValue=r,I}const M=qe(r,o);return Fn(M.duration,M.delay,M.easing)}(o.timings,r.errors);r.currentAnimateTimings=m;let M,I=o.styles?o.styles:(0,d.oB)({});if(5==I.type)M=this.visitKeyframes(I,r);else{let G=o.styles,Me=!1;if(!G){Me=!0;const Gt={};m.easing&&(Gt.easing=m.easing),G=(0,d.oB)(Gt)}r.currentTime+=m.duration+m.delay;const _t=this.visitStyle(G,r);_t.isEmptyStep=Me,M=_t}return r.currentAnimateTimings=null,{type:4,timings:m,style:M,options:null}}visitStyle(o,r){const m=this._makeStyleAst(o,r);return this._validateStyleAst(m,r),m}_makeStyleAst(o,r){const m=[],M=Array.isArray(o.styles)?o.styles:[o.styles];for(let Me of M)"string"==typeof Me?Me===d.l3?m.push(Me):r.errors.push(new t.\u0275RuntimeError(3002,!1)):m.push(it(Me));let I=!1,G=null;return m.forEach(Me=>{if(Me instanceof Map&&(Me.has("easing")&&(G=Me.get("easing"),Me.delete("easing")),!I))for(let _t of Me.values())if(_t.toString().indexOf("{{")>=0){I=!0;break}}),{type:6,styles:m,easing:G,offset:o.offset,containsDynamicStyles:I,options:null}}_validateStyleAst(o,r){const m=r.currentAnimateTimings;let M=r.currentTime,I=r.currentTime;m&&I>0&&(I-=m.duration+m.delay),o.styles.forEach(G=>{"string"!=typeof G&&G.forEach((Me,_t)=>{const Gt=r.collectedStyles.get(r.currentQuerySelector),Pn=Gt.get(_t);let kn=!0;Pn&&(I!=M&&I>=Pn.startTime&&M<=Pn.endTime&&(r.errors.push(function X(c,o,r,m,M){return new t.\u0275RuntimeError(3010,!1)}()),kn=!1),I=Pn.startTime),kn&&Gt.set(_t,{startTime:I,endTime:M}),r.options&&function Gn(c,o,r){const m=o.params||{},M=Ni(c);M.length&&M.forEach(I=>{m.hasOwnProperty(I)||r.push(function y(c){return new t.\u0275RuntimeError(3001,!1)}())})}(Me,r.options,r.errors)})})}visitKeyframes(o,r){const m={type:5,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(function re(){return new t.\u0275RuntimeError(3011,!1)}()),m;let I=0;const G=[];let Me=!1,_t=!1,Gt=0;const Pn=o.steps.map(ro=>{const Do=this._makeStyleAst(ro,r);let Ia=null!=Do.offset?Do.offset:function nn(c){if("string"==typeof c)return null;let o=null;if(Array.isArray(c))c.forEach(r=>{if(r instanceof Map&&r.has("offset")){const m=r;o=parseFloat(m.get("offset")),m.delete("offset")}});else if(c instanceof Map&&c.has("offset")){const r=c;o=parseFloat(r.get("offset")),r.delete("offset")}return o}(Do.styles),ko=0;return null!=Ia&&(I++,ko=Do.offset=Ia),_t=_t||ko<0||ko>1,Me=Me||ko<Gt,Gt=ko,G.push(ko),Do});_t&&r.errors.push(function Q(){return new t.\u0275RuntimeError(3012,!1)}()),Me&&r.errors.push(function ae(){return new t.\u0275RuntimeError(3200,!1)}());const kn=o.steps.length;let fi=0;I>0&&I<kn?r.errors.push(function K(){return new t.\u0275RuntimeError(3202,!1)}()):0==I&&(fi=1/(kn-1));const xi=kn-1,Ui=r.currentTime,qi=r.currentAnimateTimings,Dr=qi.duration;return Pn.forEach((ro,Do)=>{const Ia=fi>0?Do==xi?1:fi*Do:G[Do],ko=Ia*Dr;r.currentTime=Ui+qi.delay+ko,qi.duration=ko,this._validateStyleAst(ro,r),ro.offset=Ia,m.styles.push(ro)}),m}visitReference(o,r){return{type:8,animation:rn(this,cn(o.animation),r),options:jt(o.options)}}visitAnimateChild(o,r){return r.depCount++,{type:9,options:jt(o.options)}}visitAnimateRef(o,r){return{type:10,animation:this.visitReference(o.animation,r),options:jt(o.options)}}visitQuery(o,r){const m=r.currentQuerySelector,M=o.options||{};r.queryCount++,r.currentQuery=o;const[I,G]=function he(c){const o=!!c.split(/\s*,\s*/).find(r=>":self"==r);return o&&(c=c.replace(Mr,"")),c=c.replace(/@\*/g,Et).replace(/@\w+/g,r=>Et+"-"+r.slice(1)).replace(/:animating/g,Z),[c,o]}(o.selector);r.currentQuerySelector=m.length?m+" "+I:I,dt(r.collectedStyles,r.currentQuerySelector,new Map);const Me=rn(this,cn(o.animation),r);return r.currentQuery=null,r.currentQuerySelector=m,{type:11,selector:I,limit:M.limit||0,optional:!!M.optional,includeSelf:G,animation:Me,originalSelector:o.selector,options:jt(o.options)}}visitStagger(o,r){r.currentQuery||r.errors.push(function k(){return new t.\u0275RuntimeError(3013,!1)}());const m="full"===o.timings?{duration:0,delay:0,easing:"full"}:qe(o.timings,r.errors,!0);return{type:12,animation:rn(this,cn(o.animation),r),timings:m,options:null}}}class tt{constructor(o){this.errors=o,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 jt(c){return c?(c=Yt(c)).params&&(c.params=function et(c){return c?Yt(c):null}(c.params)):c={},c}function Fn(c,o,r){return{duration:c,delay:o,easing:r}}function jn(c,o,r,m,M,I,G=null,Me=!1){return{type:1,element:c,keyframes:o,preStyleProps:r,postStyleProps:m,duration:M,delay:I,totalTime:M+I,easing:G,subTimeline:Me}}class ri{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,r){let m=this._map.get(o);m||this._map.set(o,m=[]),m.push(...r)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const cr=new RegExp(":enter","g"),Vi=new RegExp(":leave","g");function kr(c,o,r,m,M,I=new Map,G=new Map,Me,_t,Gt=[]){return(new Er).buildKeyframes(c,o,r,m,M,I,G,Me,_t,Gt)}class Er{buildKeyframes(o,r,m,M,I,G,Me,_t,Gt,Pn=[]){Gt=Gt||new ri;const kn=new fo(o,r,Gt,M,I,Pn,[]);kn.options=_t;const fi=_t.delay?ge(_t.delay):0;kn.currentTimeline.delayNextStep(fi),kn.currentTimeline.setStyles([G],null,kn.errors,_t),rn(this,m,kn);const xi=kn.timelines.filter(Ui=>Ui.containsAnimation());if(xi.length&&Me.size){let Ui;for(let qi=xi.length-1;qi>=0;qi--){const Dr=xi[qi];if(Dr.element===r){Ui=Dr;break}}Ui&&!Ui.allowOnlyTimelineStyles()&&Ui.setStyles([Me],null,kn.errors,_t)}return xi.length?xi.map(Ui=>Ui.buildKeyframes()):[jn(r,[],[],[],0,fi,"",!1)]}visitTrigger(o,r){}visitState(o,r){}visitTransition(o,r){}visitAnimateChild(o,r){const m=r.subInstructions.get(r.element);if(m){const M=r.createSubContext(o.options),I=r.currentTimeline.currentTime,G=this._visitSubInstructions(m,M,M.options);I!=G&&r.transformIntoNewTimeline(G)}r.previousNode=o}visitAnimateRef(o,r){const m=r.createSubContext(o.options);m.transformIntoNewTimeline(),this._applyAnimationRefDelays([o.options,o.animation.options],r,m),this.visitReference(o.animation,m),r.transformIntoNewTimeline(m.currentTimeline.currentTime),r.previousNode=o}_applyAnimationRefDelays(o,r,m){for(const M of o){const I=M?.delay;if(I){const G="number"==typeof I?I:ge(Nn(I,M?.params??{},r.errors));m.delayNextStep(G)}}}_visitSubInstructions(o,r,m){let I=r.currentTimeline.currentTime;const G=null!=m.duration?ge(m.duration):null,Me=null!=m.delay?ge(m.delay):null;return 0!==G&&o.forEach(_t=>{const Gt=r.appendInstructionToTimeline(_t,G,Me);I=Math.max(I,Gt.duration+Gt.delay)}),I}visitReference(o,r){r.updateOptions(o.options,!0),rn(this,o.animation,r),r.previousNode=o}visitSequence(o,r){const m=r.subContextCount;let M=r;const I=o.options;if(I&&(I.params||I.delay)&&(M=r.createSubContext(I),M.transformIntoNewTimeline(),null!=I.delay)){6==M.previousNode.type&&(M.currentTimeline.snapshotCurrentStyles(),M.previousNode=pr);const G=ge(I.delay);M.delayNextStep(G)}o.steps.length&&(o.steps.forEach(G=>rn(this,G,M)),M.currentTimeline.applyStylesToKeyframe(),M.subContextCount>m&&M.transformIntoNewTimeline()),r.previousNode=o}visitGroup(o,r){const m=[];let M=r.currentTimeline.currentTime;const I=o.options&&o.options.delay?ge(o.options.delay):0;o.steps.forEach(G=>{const Me=r.createSubContext(o.options);I&&Me.delayNextStep(I),rn(this,G,Me),M=Math.max(M,Me.currentTimeline.currentTime),m.push(Me.currentTimeline)}),m.forEach(G=>r.currentTimeline.mergeTimelineCollectedStyles(G)),r.transformIntoNewTimeline(M),r.previousNode=o}_visitTiming(o,r){if(o.dynamic){const m=o.strValue;return qe(r.params?Nn(m,r.params,r.errors):m,r.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,r){const m=r.currentAnimateTimings=this._visitTiming(o.timings,r),M=r.currentTimeline;m.delay&&(r.incrementTime(m.delay),M.snapshotCurrentStyles());const I=o.style;5==I.type?this.visitKeyframes(I,r):(r.incrementTime(m.duration),this.visitStyle(I,r),M.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=o}visitStyle(o,r){const m=r.currentTimeline,M=r.currentAnimateTimings;!M&&m.hasCurrentStyleProperties()&&m.forwardFrame();const I=M&&M.easing||o.easing;o.isEmptyStep?m.applyEmptyStep(I):m.setStyles(o.styles,I,r.errors,r.options),r.previousNode=o}visitKeyframes(o,r){const m=r.currentAnimateTimings,M=r.currentTimeline.duration,I=m.duration,Me=r.createSubContext().currentTimeline;Me.easing=m.easing,o.styles.forEach(_t=>{Me.forwardTime((_t.offset||0)*I),Me.setStyles(_t.styles,_t.easing,r.errors,r.options),Me.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(Me),r.transformIntoNewTimeline(M+I),r.previousNode=o}visitQuery(o,r){const m=r.currentTimeline.currentTime,M=o.options||{},I=M.delay?ge(M.delay):0;I&&(6===r.previousNode.type||0==m&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=pr);let G=m;const Me=r.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!M.optional,r.errors);r.currentQueryTotal=Me.length;let _t=null;Me.forEach((Gt,Pn)=>{r.currentQueryIndex=Pn;const kn=r.createSubContext(o.options,Gt);I&&kn.delayNextStep(I),Gt===r.element&&(_t=kn.currentTimeline),rn(this,o.animation,kn),kn.currentTimeline.applyStylesToKeyframe(),G=Math.max(G,kn.currentTimeline.currentTime)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(G),_t&&(r.currentTimeline.mergeTimelineCollectedStyles(_t),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=o}visitStagger(o,r){const m=r.parentContext,M=r.currentTimeline,I=o.timings,G=Math.abs(I.duration),Me=G*(r.currentQueryTotal-1);let _t=G*r.currentQueryIndex;switch(I.duration<0?"reverse":I.easing){case"reverse":_t=Me-_t;break;case"full":_t=m.currentStaggerTime}const Pn=r.currentTimeline;_t&&Pn.delayNextStep(_t);const kn=Pn.currentTime;rn(this,o.animation,r),r.previousNode=o,m.currentStaggerTime=M.currentTime-kn+(M.startTime-m.currentTimeline.startTime)}}const pr={};class fo{constructor(o,r,m,M,I,G,Me,_t){this._driver=o,this.element=r,this.subInstructions=m,this._enterClassName=M,this._leaveClassName=I,this.errors=G,this.timelines=Me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=_t||new Tr(this._driver,r,0),Me.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,r){if(!o)return;const m=o;let M=this.options;null!=m.duration&&(M.duration=ge(m.duration)),null!=m.delay&&(M.delay=ge(m.delay));const I=m.params;if(I){let G=M.params;G||(G=this.options.params={}),Object.keys(I).forEach(Me=>{(!r||!G.hasOwnProperty(Me))&&(G[Me]=Nn(I[Me],G,this.errors))})}}_copyOptions(){const o={};if(this.options){const r=this.options.params;if(r){const m=o.params={};Object.keys(r).forEach(M=>{m[M]=r[M]})}}return o}createSubContext(o=null,r,m){const M=r||this.element,I=new fo(this._driver,M,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(M,m||0));return I.previousNode=this.previousNode,I.currentAnimateTimings=this.currentAnimateTimings,I.options=this._copyOptions(),I.updateOptions(o),I.currentQueryIndex=this.currentQueryIndex,I.currentQueryTotal=this.currentQueryTotal,I.parentContext=this,this.subContextCount++,I}transformIntoNewTimeline(o){return this.previousNode=pr,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,r,m){const M={duration:r??o.duration,delay:this.currentTimeline.currentTime+(m??0)+o.delay,easing:""},I=new Br(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,M,o.stretchStartingKeyframe);return this.timelines.push(I),M}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,r,m,M,I,G){let Me=[];if(M&&Me.push(this.element),o.length>0){o=(o=o.replace(cr,"."+this._enterClassName)).replace(Vi,"."+this._leaveClassName);let Gt=this._driver.query(this.element,o,1!=m);0!==m&&(Gt=m<0?Gt.slice(Gt.length+m,Gt.length):Gt.slice(0,m)),Me.push(...Gt)}return!I&&0==Me.length&&G.push(function $(c){return new t.\u0275RuntimeError(3014,!1)}()),Me}}class Tr{constructor(o,r,m,M){this._driver=o,this.element=r,this.startTime=m,this._elementTimelineStylesLookup=M,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(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,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(o){const r=1===this._keyframes.size&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+o),r&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,r){return this.applyStylesToKeyframe(),new Tr(this._driver,o,r||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(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,r){this._localTimelineStyles.set(o,r),this._globalTimelineStyles.set(o,r),this._styleSummary.set(o,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[r,m]of this._globalTimelineStyles)this._backFill.set(r,m||d.l3),this._currentKeyframe.set(r,d.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,r,m,M){r&&this._previousKeyframe.set("easing",r);const I=M&&M.params||{},G=function Bn(c,o){const r=new Map;let m;return c.forEach(M=>{if("*"===M){m=m||o.keys();for(let I of m)r.set(I,d.l3)}else ue(M,r)}),r}(o,this._globalTimelineStyles);for(let[Me,_t]of G){const Gt=Nn(_t,I,m);this._pendingStyles.set(Me,Gt),this._localTimelineStyles.has(Me)||this._backFill.set(Me,this._globalTimelineStyles.get(Me)??d.l3),this._updateStyle(Me,Gt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((o,r)=>{this._currentKeyframe.set(r,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,o)}))}snapshotCurrentStyles(){for(let[o,r]of this._localTimelineStyles)this._pendingStyles.set(o,r),this._updateStyle(o,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let r in this._currentKeyframe)o.push(r);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((r,m)=>{const M=this._styleSummary.get(m);(!M||r.time>M.time)&&this._updateStyle(m,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,r=new Set,m=1===this._keyframes.size&&0===this.duration;let M=[];this._keyframes.forEach((Me,_t)=>{const Gt=ue(Me,new Map,this._backFill);Gt.forEach((Pn,kn)=>{Pn===d.k1?o.add(kn):Pn===d.l3&&r.add(kn)}),m||Gt.set("offset",_t/this.duration),M.push(Gt)});const I=o.size?Mn(o.values()):[],G=r.size?Mn(r.values()):[];if(m){const Me=M[0],_t=new Map(Me);Me.set("offset",0),_t.set("offset",1),M=[Me,_t]}return jn(this.element,M,I,G,this.duration,this.startTime,this.easing,!1)}}class Br extends Tr{constructor(o,r,m,M,I,G,Me=!1){super(o,r,G.delay),this.keyframes=m,this.preStyleProps=M,this.postStyleProps=I,this._stretchStartingKeyframe=Me,this.timings={duration:G.duration,delay:G.delay,easing:G.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:r,duration:m,easing:M}=this.timings;if(this._stretchStartingKeyframe&&r){const I=[],G=m+r,Me=r/G,_t=ue(o[0]);_t.set("offset",0),I.push(_t);const Gt=ue(o[0]);Gt.set("offset",_o(Me)),I.push(Gt);const Pn=o.length-1;for(let kn=1;kn<=Pn;kn++){let fi=ue(o[kn]);const xi=fi.get("offset");fi.set("offset",_o((r+xi*m)/G)),I.push(fi)}m=G,r=0,M="",o=I}return jn(this.element,o,this.preStyleProps,this.postStyleProps,m,r,M,!0)}}function _o(c,o=3){const r=Math.pow(10,o-1);return Math.round(c*r)/r}class Lt{}const Di=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 Wi extends Lt{normalizePropertyName(o,r){return Qn(o)}normalizeStyleValue(o,r,m,M){let I="";const G=m.toString().trim();if(Di.has(r)&&0!==m&&"0"!==m)if("number"==typeof m)I="px";else{const Me=m.match(/^[+-]?[\d\.]+([a-z]*)$/);Me&&0==Me[1].length&&M.push(function E(c,o){return new t.\u0275RuntimeError(3005,!1)}())}return G+I}}function Ar(c,o,r,m,M,I,G,Me,_t,Gt,Pn,kn,fi){return{type:0,element:c,triggerName:o,isRemovalTransition:M,fromState:r,fromStyles:I,toState:m,toStyles:G,timelines:Me,queriedElements:_t,preStyleProps:Gt,postStyleProps:Pn,totalTime:kn,errors:fi}}const br={};class bo{constructor(o,r,m){this._triggerName=o,this.ast=r,this._stateStyles=m}match(o,r,m,M){return function Re(c,o,r,m,M){return c.some(I=>I(o,r,m,M))}(this.ast.matchers,o,r,m,M)}buildStyles(o,r,m){let M=this._stateStyles.get("*");return void 0!==o&&(M=this._stateStyles.get(o?.toString())||M),M?M.buildStyles(r,m):new Map}build(o,r,m,M,I,G,Me,_t,Gt,Pn){const kn=[],fi=this.ast.options&&this.ast.options.params||br,Ui=this.buildStyles(m,Me&&Me.params||br,kn),qi=_t&&_t.params||br,Dr=this.buildStyles(M,qi,kn),ro=new Set,Do=new Map,Ia=new Map,ko="void"===M,Ll={params:w(qi,fi),delay:this.ast.options?.delay},ol=Pn?[]:kr(o,r,this.ast.animation,I,G,Ui,Dr,Ll,Gt,kn);let Jl=0;if(ol.forEach(wu=>{Jl=Math.max(wu.duration+wu.delay,Jl)}),kn.length)return Ar(r,this._triggerName,m,M,ko,Ui,Dr,[],[],Do,Ia,Jl,kn);ol.forEach(wu=>{const Ou=wu.element,$M=dt(Do,Ou,new Set);wu.preStyleProps.forEach(qh=>$M.add(qh));const Fv=dt(Ia,Ou,new Set);wu.postStyleProps.forEach(qh=>Fv.add(qh)),Ou!==r&&ro.add(Ou)});const Su=Mn(ro.values());return Ar(r,this._triggerName,m,M,ko,Ui,Dr,ol,Su,Do,Ia,Jl)}}function w(c,o){const r=Yt(o);for(const m in c)c.hasOwnProperty(m)&&null!=c[m]&&(r[m]=c[m]);return r}class ne{constructor(o,r,m){this.styles=o,this.defaultParams=r,this.normalizer=m}buildStyles(o,r){const m=new Map,M=Yt(this.defaultParams);return Object.keys(o).forEach(I=>{const G=o[I];null!==G&&(M[I]=G)}),this.styles.styles.forEach(I=>{"string"!=typeof I&&I.forEach((G,Me)=>{G&&(G=Nn(G,M,r));const _t=this.normalizer.normalizePropertyName(Me,r);G=this.normalizer.normalizeStyleValue(Me,_t,G,r),m.set(Me,G)})}),m}}class Ue{constructor(o,r,m){this.name=o,this.ast=r,this._normalizer=m,this.transitionFactories=[],this.states=new Map,r.states.forEach(M=>{this.states.set(M.name,new ne(M.style,M.options&&M.options.params||{},m))}),Rt(this.states,"true","1"),Rt(this.states,"false","0"),r.transitions.forEach(M=>{this.transitionFactories.push(new bo(o,M,this.states))}),this.fallbackTransition=function at(c,o,r){return new bo(c,{type:1,animation:{type:2,steps:[],options:null},matchers:[(G,Me)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,r,m,M){return this.transitionFactories.find(G=>G.match(o,r,m,M))||null}matchStyles(o,r,m){return this.fallbackTransition.buildStyles(o,r,m)}}function Rt(c,o,r){c.has(o)?c.has(r)||c.set(r,c.get(o)):c.has(r)&&c.set(o,c.get(r))}const yn=new ri;class Tn{constructor(o,r,m){this.bodyNode=o,this._driver=r,this._normalizer=m,this._animations=new Map,this._playersById=new Map,this.players=[]}register(o,r){const m=[],M=[],I=ti(this._driver,r,m,M);if(m.length)throw function N(c){return new t.\u0275RuntimeError(3503,!1)}();this._animations.set(o,I)}_buildPlayer(o,r,m){const M=o.element,I=yt(0,this._normalizer,0,o.keyframes,r,m);return this._driver.animate(M,I,o.duration,o.delay,o.easing,[],!0)}create(o,r,m={}){const M=[],I=this._animations.get(o);let G;const Me=new Map;if(I?(G=kr(this._driver,r,I,pt,tn,new Map,new Map,m,yn,M),G.forEach(Pn=>{const kn=dt(Me,Pn.element,new Map);Pn.postStyleProps.forEach(fi=>kn.set(fi,null))})):(M.push(function pe(){return new t.\u0275RuntimeError(3300,!1)}()),G=[]),M.length)throw function de(c){return new t.\u0275RuntimeError(3504,!1)}();Me.forEach((Pn,kn)=>{Pn.forEach((fi,xi)=>{Pn.set(xi,this._driver.computeStyle(kn,xi,d.l3))})});const Gt=Fe(G.map(Pn=>{const kn=Me.get(Pn.element);return this._buildPlayer(Pn,new Map,kn)}));return this._playersById.set(o,Gt),Gt.onDestroy(()=>this.destroy(o)),this.players.push(Gt),Gt}destroy(o){const r=this._getPlayer(o);r.destroy(),this._playersById.delete(o);const m=this.players.indexOf(r);m>=0&&this.players.splice(m,1)}_getPlayer(o){const r=this._playersById.get(o);if(!r)throw function me(c){return new t.\u0275RuntimeError(3301,!1)}();return r}listen(o,r,m,M){const I=Ie(r,"","","");return ie(this._getPlayer(o),m,I,M),()=>{}}command(o,r,m,M){if("register"==m)return void this.register(o,M[0]);if("create"==m)return void this.create(o,r,M[0]||{});const I=this._getPlayer(o);switch(m){case"play":I.play();break;case"pause":I.pause();break;case"reset":I.reset();break;case"restart":I.restart();break;case"finish":I.finish();break;case"init":I.init();break;case"setPosition":I.setPosition(parseFloat(M[0]));break;case"destroy":this.destroy(o)}}}const Yn="ng-animate-queued",ui="ng-animate-disabled",Dn=[],ii={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},li={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ft="__ng_removed";class ce{get params(){return this.options.params}constructor(o,r=""){this.namespaceId=r;const m=o&&o.hasOwnProperty("value");if(this.value=function ci(c){return c??null}(m?o.value:o),m){const I=Yt(o);delete I.value,this.options=I}else this.options={};this.options.params||(this.options.params={})}absorbOptions(o){const r=o.params;if(r){const m=this.options.params;Object.keys(r).forEach(M=>{null==m[M]&&(m[M]=r[M])})}}}const Se="void",ut=new ce(Se);class Kt{constructor(o,r,m){this.id=o,this.hostElement=r,this._engine=m,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,Lr(r,this._hostClassName)}listen(o,r,m,M){if(!this._triggers.has(r))throw function q(c,o){return new t.\u0275RuntimeError(3302,!1)}();if(null==m||0==m.length)throw function se(c){return new t.\u0275RuntimeError(3303,!1)}();if(!function Ai(c){return"start"==c||"done"==c}(m))throw function ve(c,o){return new t.\u0275RuntimeError(3400,!1)}();const I=dt(this._elementListeners,o,[]),G={name:r,phase:m,callback:M};I.push(G);const Me=dt(this._engine.statesByElement,o,new Map);return Me.has(r)||(Lr(o,ot),Lr(o,ot+"-"+r),Me.set(r,ut)),()=>{this._engine.afterFlush(()=>{const _t=I.indexOf(G);_t>=0&&I.splice(_t,1),this._triggers.has(r)||Me.delete(r)})}}register(o,r){return!this._triggers.has(o)&&(this._triggers.set(o,r),!0)}_getTrigger(o){const r=this._triggers.get(o);if(!r)throw function Ee(c){return new t.\u0275RuntimeError(3401,!1)}();return r}trigger(o,r,m,M=!0){const I=this._getTrigger(r),G=new Un(this.id,r,o);let Me=this._engine.statesByElement.get(o);Me||(Lr(o,ot),Lr(o,ot+"-"+r),this._engine.statesByElement.set(o,Me=new Map));let _t=Me.get(r);const Gt=new ce(m,this.id);if(!(m&&m.hasOwnProperty("value"))&&_t&&Gt.absorbOptions(_t.options),Me.set(r,Gt),_t||(_t=ut),Gt.value!==Se&&_t.value===Gt.value){if(!function yo(c,o){const r=Object.keys(c),m=Object.keys(o);if(r.length!=m.length)return!1;for(let M=0;M<r.length;M++){const I=r[M];if(!o.hasOwnProperty(I)||c[I]!==o[I])return!1}return!0}(_t.params,Gt.params)){const qi=[],Dr=I.matchStyles(_t.value,_t.params,qi),ro=I.matchStyles(Gt.value,Gt.params,qi);qi.length?this._engine.reportError(qi):this._engine.afterFlush(()=>{Ot(o,Dr),De(o,ro)})}return}const fi=dt(this._engine.playersByElement,o,[]);fi.forEach(qi=>{qi.namespaceId==this.id&&qi.triggerName==r&&qi.queued&&qi.destroy()});let xi=I.matchTransition(_t.value,Gt.value,o,Gt.params),Ui=!1;if(!xi){if(!M)return;xi=I.fallbackTransition,Ui=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:r,transition:xi,fromState:_t,toState:Gt,player:G,isFallbackTransition:Ui}),Ui||(Lr(o,Yn),G.onStart(()=>{Gr(o,Yn)})),G.onDone(()=>{let qi=this.players.indexOf(G);qi>=0&&this.players.splice(qi,1);const Dr=this._engine.playersByElement.get(o);if(Dr){let ro=Dr.indexOf(G);ro>=0&&Dr.splice(ro,1)}}),this.players.push(G),fi.push(G),G}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(r=>r.delete(o)),this._elementListeners.forEach((r,m)=>{this._elementListeners.set(m,r.filter(M=>M.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const r=this._engine.playersByElement.get(o);r&&(r.forEach(m=>m.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,r){const m=this._engine.driver.query(o,Et,!0);m.forEach(M=>{if(M[ft])return;const I=this._engine.fetchNamespacesByElement(M);I.size?I.forEach(G=>G.triggerLeaveAnimation(M,r,!1,!0)):this.clearElementCache(M)}),this._engine.afterFlushAnimationsDone(()=>m.forEach(M=>this.clearElementCache(M)))}triggerLeaveAnimation(o,r,m,M){const I=this._engine.statesByElement.get(o),G=new Map;if(I){const Me=[];if(I.forEach((_t,Gt)=>{if(G.set(Gt,_t.value),this._triggers.has(Gt)){const Pn=this.trigger(o,Gt,Se,M);Pn&&Me.push(Pn)}}),Me.length)return this._engine.markElementAsRemoved(this.id,o,!0,r,G),m&&Fe(Me).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const r=this._elementListeners.get(o),m=this._engine.statesByElement.get(o);if(r&&m){const M=new Set;r.forEach(I=>{const G=I.name;if(M.has(G))return;M.add(G);const _t=this._triggers.get(G).fallbackTransition,Gt=m.get(G)||ut,Pn=new ce(Se),kn=new Un(this.id,G,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:G,transition:_t,fromState:Gt,toState:Pn,player:kn,isFallbackTransition:!0})})}}removeNode(o,r){const m=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,r),this.triggerLeaveAnimation(o,r,!0))return;let M=!1;if(m.totalAnimations){const I=m.players.length?m.playersByQueriedElement.get(o):[];if(I&&I.length)M=!0;else{let G=o;for(;G=G.parentNode;)if(m.statesByElement.get(G)){M=!0;break}}}if(this.prepareLeaveAnimationListeners(o),M)m.markElementAsRemoved(this.id,o,!1,r);else{const I=o[ft];(!I||I===ii)&&(m.afterFlush(()=>this.clearElementCache(o)),m.destroyInnerAnimations(o),m._onRemovalComplete(o,r))}}insertNode(o,r){Lr(o,this._hostClassName)}drainQueuedTransitions(o){const r=[];return this._queue.forEach(m=>{const M=m.player;if(M.destroyed)return;const I=m.element,G=this._elementListeners.get(I);G&&G.forEach(Me=>{if(Me.name==m.triggerName){const _t=Ie(I,m.triggerName,m.fromState.value,m.toState.value);_t._data=o,ie(m.player,Me.phase,_t,Me.callback)}}),M.markedForDestroy?this._engine.afterFlush(()=>{M.destroy()}):r.push(m)}),this._queue=[],r.sort((m,M)=>{const I=m.transition.ast.depCount,G=M.transition.ast.depCount;return 0==I||0==G?I-G:this._engine.driver.containsElement(m.element,M.element)?1:-1})}destroy(o){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let r=!1;return this._elementListeners.has(o)&&(r=!0),r=!!this._queue.find(m=>m.element===o)||r,r}}class mn{_onRemovalComplete(o,r){this.onRemovalComplete(o,r)}constructor(o,r,m){this.bodyNode=o,this.driver=r,this._normalizer=m,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=(M,I)=>{}}get queuedPlayers(){const o=[];return this._namespaceList.forEach(r=>{r.players.forEach(m=>{m.queued&&o.push(m)})}),o}createNamespace(o,r){const m=new Kt(o,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(m,r):(this.newHostElements.set(r,m),this.collectEnterElement(r)),this._namespaceLookup[o]=m}_balanceNamespaceList(o,r){const m=this._namespaceList,M=this.namespacesByHostElement;if(m.length-1>=0){let G=!1,Me=this.driver.getParentElement(r);for(;Me;){const _t=M.get(Me);if(_t){const Gt=m.indexOf(_t);m.splice(Gt+1,0,o),G=!0;break}Me=this.driver.getParentElement(Me)}G||m.unshift(o)}else m.push(o);return M.set(r,o),o}register(o,r){let m=this._namespaceLookup[o];return m||(m=this.createNamespace(o,r)),m}registerTrigger(o,r,m){let M=this._namespaceLookup[o];M&&M.register(r,m)&&this.totalAnimations++}destroy(o,r){if(!o)return;const m=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(m.hostElement),delete this._namespaceLookup[o];const M=this._namespaceList.indexOf(m);M>=0&&this._namespaceList.splice(M,1)}),this.afterFlushAnimationsDone(()=>m.destroy(r))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const r=new Set,m=this.statesByElement.get(o);if(m)for(let M of m.values())if(M.namespaceId){const I=this._fetchNamespace(M.namespaceId);I&&r.add(I)}return r}trigger(o,r,m,M){if(hi(r)){const I=this._fetchNamespace(o);if(I)return I.trigger(r,m,M),!0}return!1}insertNode(o,r,m,M){if(!hi(r))return;const I=r[ft];if(I&&I.setForRemoval){I.setForRemoval=!1,I.setForMove=!0;const G=this.collectedLeaveElements.indexOf(r);G>=0&&this.collectedLeaveElements.splice(G,1)}if(o){const G=this._fetchNamespace(o);G&&G.insertNode(r,m)}M&&this.collectEnterElement(r)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,r){r?this.disabledNodes.has(o)||(this.disabledNodes.add(o),Lr(o,ui)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),Gr(o,ui))}removeNode(o,r,m,M){if(hi(r)){const I=o?this._fetchNamespace(o):null;if(I?I.removeNode(r,M):this.markElementAsRemoved(o,r,!1,M),m){const G=this.namespacesByHostElement.get(r);G&&G.id!==o&&G.removeNode(r,M)}}else this._onRemovalComplete(r,M)}markElementAsRemoved(o,r,m,M,I){this.collectedLeaveElements.push(r),r[ft]={namespaceId:o,setForRemoval:M,hasAnimation:m,removedBeforeQueried:!1,previousTriggersValues:I}}listen(o,r,m,M,I){return hi(r)?this._fetchNamespace(o).listen(r,m,M,I):()=>{}}_buildInstruction(o,r,m,M,I){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,m,M,o.fromState.options,o.toState.options,r,I)}destroyInnerAnimations(o){let r=this.driver.query(o,Et,!0);r.forEach(m=>this.destroyActiveAnimationsForElement(m)),0!=this.playersByQueriedElement.size&&(r=this.driver.query(o,Z,!0),r.forEach(m=>this.finishActiveQueriedAnimationOnElement(m)))}destroyActiveAnimationsForElement(o){const r=this.playersByElement.get(o);r&&r.forEach(m=>{m.queued?m.markedForDestroy=!0:m.destroy()})}finishActiveQueriedAnimationOnElement(o){const r=this.playersByQueriedElement.get(o);r&&r.forEach(m=>m.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return Fe(this.players).onDone(()=>o());o()})}processLeaveNode(o){const r=o[ft];if(r&&r.setForRemoval){if(o[ft]=ii,r.namespaceId){this.destroyInnerAnimations(o);const m=this._fetchNamespace(r.namespaceId);m&&m.clearElementCache(o)}this._onRemovalComplete(o,r.setForRemoval)}o.classList?.contains(ui)&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(m=>{this.markElementAsDisabled(m,!1)})}flush(o=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((m,M)=>this._balanceNamespaceList(m,M)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let m=0;m<this.collectedEnterElements.length;m++)Lr(this.collectedEnterElements[m],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const m=[];try{r=this._flushAnimations(m,o)}finally{for(let M=0;M<m.length;M++)m[M]()}}else for(let m=0;m<this.collectedLeaveElements.length;m++)this.processLeaveNode(this.collectedLeaveElements[m]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(m=>m()),this._flushFns=[],this._whenQuietFns.length){const m=this._whenQuietFns;this._whenQuietFns=[],r.length?Fe(r).onDone(()=>{m.forEach(M=>M())}):m.forEach(M=>M())}}reportError(o){throw function Ye(c){return new t.\u0275RuntimeError(3402,!1)}()}_flushAnimations(o,r){const m=new ri,M=[],I=new Map,G=[],Me=new Map,_t=new Map,Gt=new Map,Pn=new Set;this.disabledNodes.forEach(Pr=>{Pn.add(Pr);const Qr=this.driver.query(Pr,".ng-animate-queued",!0);for(let ao=0;ao<Qr.length;ao++)Pn.add(Qr[ao])});const kn=this.bodyNode,fi=Array.from(this.statesByElement.keys()),xi=tr(fi,this.collectedEnterElements),Ui=new Map;let qi=0;xi.forEach((Pr,Qr)=>{const ao=pt+qi++;Ui.set(Qr,ao),Pr.forEach(ta=>Lr(ta,ao))});const Dr=[],ro=new Set,Do=new Set;for(let Pr=0;Pr<this.collectedLeaveElements.length;Pr++){const Qr=this.collectedLeaveElements[Pr],ao=Qr[ft];ao&&ao.setForRemoval&&(Dr.push(Qr),ro.add(Qr),ao.hasAnimation?this.driver.query(Qr,".ng-star-inserted",!0).forEach(ta=>ro.add(ta)):Do.add(Qr))}const Ia=new Map,ko=tr(fi,Array.from(ro));ko.forEach((Pr,Qr)=>{const ao=tn+qi++;Ia.set(Qr,ao),Pr.forEach(ta=>Lr(ta,ao))}),o.push(()=>{xi.forEach((Pr,Qr)=>{const ao=Ui.get(Qr);Pr.forEach(ta=>Gr(ta,ao))}),ko.forEach((Pr,Qr)=>{const ao=Ia.get(Qr);Pr.forEach(ta=>Gr(ta,ao))}),Dr.forEach(Pr=>{this.processLeaveNode(Pr)})});const Ll=[],ol=[];for(let Pr=this._namespaceList.length-1;Pr>=0;Pr--)this._namespaceList[Pr].drainQueuedTransitions(r).forEach(ao=>{const ta=ao.player,al=ao.element;if(Ll.push(ta),this.collectedEnterElements.length){const Rl=al[ft];if(Rl&&Rl.setForMove){if(Rl.previousTriggersValues&&Rl.previousTriggersValues.has(ao.triggerName)){const ef=Rl.previousTriggersValues.get(ao.triggerName),Vc=this.statesByElement.get(ao.element);if(Vc&&Vc.has(ao.triggerName)){const SC=Vc.get(ao.triggerName);SC.value=ef,Vc.set(ao.triggerName,SC)}}return void ta.destroy()}}const Wd=!kn||!this.driver.containsElement(kn,al),Sc=Ia.get(al),zp=Ui.get(al),is=this._buildInstruction(ao,m,zp,Sc,Wd);if(is.errors&&is.errors.length)return void ol.push(is);if(Wd)return ta.onStart(()=>Ot(al,is.fromStyles)),ta.onDestroy(()=>De(al,is.toStyles)),void M.push(ta);if(ao.isFallbackTransition)return ta.onStart(()=>Ot(al,is.fromStyles)),ta.onDestroy(()=>De(al,is.toStyles)),void M.push(ta);const XM=[];is.timelines.forEach(Rl=>{Rl.stretchStartingKeyframe=!0,this.disabledNodes.has(Rl.element)||XM.push(Rl)}),is.timelines=XM,m.append(al,is.timelines),G.push({instruction:is,player:ta,element:al}),is.queriedElements.forEach(Rl=>dt(Me,Rl,[]).push(ta)),is.preStyleProps.forEach((Rl,ef)=>{if(Rl.size){let Vc=_t.get(ef);Vc||_t.set(ef,Vc=new Set),Rl.forEach((SC,Dx)=>Vc.add(Dx))}}),is.postStyleProps.forEach((Rl,ef)=>{let Vc=Gt.get(ef);Vc||Gt.set(ef,Vc=new Set),Rl.forEach((SC,Dx)=>Vc.add(Dx))})});if(ol.length){const Pr=[];ol.forEach(Qr=>{Pr.push(function Wt(c,o){return new t.\u0275RuntimeError(3505,!1)}())}),Ll.forEach(Qr=>Qr.destroy()),this.reportError(Pr)}const Jl=new Map,Su=new Map;G.forEach(Pr=>{const Qr=Pr.element;m.has(Qr)&&(Su.set(Qr,Qr),this._beforeAnimationBuild(Pr.player.namespaceId,Pr.instruction,Jl))}),M.forEach(Pr=>{const Qr=Pr.element;this._getPreviousPlayers(Qr,!1,Pr.namespaceId,Pr.triggerName,null).forEach(ta=>{dt(Jl,Qr,[]).push(ta),ta.destroy()})});const wu=Dr.filter(Pr=>Pa(Pr,_t,Gt)),Ou=new Map;Yi(Ou,this.driver,Do,Gt,d.l3).forEach(Pr=>{Pa(Pr,_t,Gt)&&wu.push(Pr)});const Fv=new Map;xi.forEach((Pr,Qr)=>{Yi(Fv,this.driver,new Set(Pr),_t,d.k1)}),wu.forEach(Pr=>{const Qr=Ou.get(Pr),ao=Fv.get(Pr);Ou.set(Pr,new Map([...Array.from(Qr?.entries()??[]),...Array.from(ao?.entries()??[])]))});const qh=[],KM=[],QM={};G.forEach(Pr=>{const{element:Qr,player:ao,instruction:ta}=Pr;if(m.has(Qr)){if(Pn.has(Qr))return ao.onDestroy(()=>De(Qr,ta.toStyles)),ao.disabled=!0,ao.overrideTotalTime(ta.totalTime),void M.push(ao);let al=QM;if(Su.size>1){let Sc=Qr;const zp=[];for(;Sc=Sc.parentNode;){const is=Su.get(Sc);if(is){al=is;break}zp.push(Sc)}zp.forEach(is=>Su.set(is,al))}const Wd=this._buildAnimation(ao.namespaceId,ta,Jl,I,Fv,Ou);if(ao.setRealPlayer(Wd),al===QM)qh.push(ao);else{const Sc=this.playersByElement.get(al);Sc&&Sc.length&&(ao.parentPlayer=Fe(Sc)),M.push(ao)}}else Ot(Qr,ta.fromStyles),ao.onDestroy(()=>De(Qr,ta.toStyles)),KM.push(ao),Pn.has(Qr)&&M.push(ao)}),KM.forEach(Pr=>{const Qr=I.get(Pr.element);if(Qr&&Qr.length){const ao=Fe(Qr);Pr.setRealPlayer(ao)}}),M.forEach(Pr=>{Pr.parentPlayer?Pr.syncPlayerEvents(Pr.parentPlayer):Pr.destroy()});for(let Pr=0;Pr<Dr.length;Pr++){const Qr=Dr[Pr],ao=Qr[ft];if(Gr(Qr,tn),ao&&ao.hasAnimation)continue;let ta=[];if(Me.size){let Wd=Me.get(Qr);Wd&&Wd.length&&ta.push(...Wd);let Sc=this.driver.query(Qr,Z,!0);for(let zp=0;zp<Sc.length;zp++){let is=Me.get(Sc[zp]);is&&is.length&&ta.push(...is)}}const al=ta.filter(Wd=>!Wd.destroyed);al.length?Io(this,Qr,al):this.processLeaveNode(Qr)}return Dr.length=0,qh.forEach(Pr=>{this.players.push(Pr),Pr.onDone(()=>{Pr.destroy();const Qr=this.players.indexOf(Pr);this.players.splice(Qr,1)}),Pr.play()}),qh}elementContainsData(o,r){let m=!1;const M=r[ft];return M&&M.setForRemoval&&(m=!0),this.playersByElement.has(r)&&(m=!0),this.playersByQueriedElement.has(r)&&(m=!0),this.statesByElement.has(r)&&(m=!0),this._fetchNamespace(o).elementContainsData(r)||m}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,r,m,M,I){let G=[];if(r){const Me=this.playersByQueriedElement.get(o);Me&&(G=Me)}else{const Me=this.playersByElement.get(o);if(Me){const _t=!I||I==Se;Me.forEach(Gt=>{Gt.queued||!_t&&Gt.triggerName!=M||G.push(Gt)})}}return(m||M)&&(G=G.filter(Me=>!(m&&m!=Me.namespaceId||M&&M!=Me.triggerName))),G}_beforeAnimationBuild(o,r,m){const I=r.element,G=r.isRemovalTransition?void 0:o,Me=r.isRemovalTransition?void 0:r.triggerName;for(const _t of r.timelines){const Gt=_t.element,Pn=Gt!==I,kn=dt(m,Gt,[]);this._getPreviousPlayers(Gt,Pn,G,Me,r.toState).forEach(xi=>{const Ui=xi.getRealPlayer();Ui.beforeDestroy&&Ui.beforeDestroy(),xi.destroy(),kn.push(xi)})}Ot(I,r.fromStyles)}_buildAnimation(o,r,m,M,I,G){const Me=r.triggerName,_t=r.element,Gt=[],Pn=new Set,kn=new Set,fi=r.timelines.map(Ui=>{const qi=Ui.element;Pn.add(qi);const Dr=qi[ft];if(Dr&&Dr.removedBeforeQueried)return new d.ZN(Ui.duration,Ui.delay);const ro=qi!==_t,Do=function wo(c){const o=[];return aa(c,o),o}((m.get(qi)||Dn).map(Jl=>Jl.getRealPlayer())).filter(Jl=>!!Jl.element&&Jl.element===qi),Ia=I.get(qi),ko=G.get(qi),Ll=yt(0,this._normalizer,0,Ui.keyframes,Ia,ko),ol=this._buildPlayer(Ui,Ll,Do);if(Ui.subTimeline&&M&&kn.add(qi),ro){const Jl=new Un(o,Me,qi);Jl.setRealPlayer(ol),Gt.push(Jl)}return ol});Gt.forEach(Ui=>{dt(this.playersByQueriedElement,Ui.element,[]).push(Ui),Ui.onDone(()=>function qn(c,o,r){let m=c.get(o);if(m){if(m.length){const M=m.indexOf(r);m.splice(M,1)}0==m.length&&c.delete(o)}return m}(this.playersByQueriedElement,Ui.element,Ui))}),Pn.forEach(Ui=>Lr(Ui,z));const xi=Fe(fi);return xi.onDestroy(()=>{Pn.forEach(Ui=>Gr(Ui,z)),De(_t,r.toStyles)}),kn.forEach(Ui=>{dt(M,Ui,[]).push(xi)}),xi}_buildPlayer(o,r,m){return r.length>0?this.driver.animate(o.element,r,o.duration,o.delay,o.easing,m):new d.ZN(o.duration,o.delay)}}class Un{constructor(o,r,m){this.namespaceId=o,this.triggerName=r,this.element=m,this._player=new d.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(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((r,m)=>{r.forEach(M=>ie(o,m,void 0,M))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const r=this._player;r.triggerCallback&&o.onStart(()=>r.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,r){dt(this._queuedCallbacks,o,[]).push(r)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}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(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const r=this._player;r.triggerCallback&&r.triggerCallback(o)}}function hi(c){return c&&1===c.nodeType}function zi(c,o){const r=c.style.display;return c.style.display=o??"none",r}function Yi(c,o,r,m,M){const I=[];r.forEach(_t=>I.push(zi(_t)));const G=[];m.forEach((_t,Gt)=>{const Pn=new Map;_t.forEach(kn=>{const fi=o.computeStyle(Gt,kn,M);Pn.set(kn,fi),(!fi||0==fi.length)&&(Gt[ft]=li,G.push(Gt))}),c.set(Gt,Pn)});let Me=0;return r.forEach(_t=>zi(_t,I[Me++])),G}function tr(c,o){const r=new Map;if(c.forEach(Me=>r.set(Me,[])),0==o.length)return r;const m=1,M=new Set(o),I=new Map;function G(Me){if(!Me)return m;let _t=I.get(Me);if(_t)return _t;const Gt=Me.parentNode;return _t=r.has(Gt)?Gt:M.has(Gt)?m:G(Gt),I.set(Me,_t),_t}return o.forEach(Me=>{const _t=G(Me);_t!==m&&r.get(_t).push(Me)}),r}function Lr(c,o){c.classList?.add(o)}function Gr(c,o){c.classList?.remove(o)}function Io(c,o,r){Fe(r).onDone(()=>c.processLeaveNode(o))}function aa(c,o){for(let r=0;r<c.length;r++){const m=c[r];m instanceof d.ZE?aa(m.players,o):o.push(m)}}function Pa(c,o,r){const m=r.get(c);if(!m)return!1;let M=o.get(c);return M?m.forEach(I=>M.add(I)):o.set(c,m),r.delete(c),!0}class Uo{constructor(o,r,m){this.bodyNode=o,this._driver=r,this._normalizer=m,this._triggerCache={},this.onRemovalComplete=(M,I)=>{},this._transitionEngine=new mn(o,r,m),this._timelineEngine=new Tn(o,r,m),this._transitionEngine.onRemovalComplete=(M,I)=>this.onRemovalComplete(M,I)}registerTrigger(o,r,m,M,I){const G=o+"-"+M;let Me=this._triggerCache[G];if(!Me){const _t=[],Gt=[],Pn=ti(this._driver,I,_t,Gt);if(_t.length)throw function T(c,o){return new t.\u0275RuntimeError(3404,!1)}();Me=function be(c,o,r){return new Ue(c,o,r)}(M,Pn,this._normalizer),this._triggerCache[G]=Me}this._transitionEngine.registerTrigger(r,M,Me)}register(o,r){this._transitionEngine.register(o,r)}destroy(o,r){this._transitionEngine.destroy(o,r)}onInsert(o,r,m,M){this._transitionEngine.insertNode(o,r,m,M)}onRemove(o,r,m,M){this._transitionEngine.removeNode(o,r,M||!1,m)}disableAnimations(o,r){this._transitionEngine.markElementAsDisabled(o,r)}process(o,r,m,M){if("@"==m.charAt(0)){const[I,G]=Mt(m);this._timelineEngine.command(I,r,G,M)}else this._transitionEngine.trigger(o,r,m,M)}listen(o,r,m,M,I){if("@"==m.charAt(0)){const[G,Me]=Mt(m);return this._timelineEngine.listen(G,r,Me,I)}return this._transitionEngine.listen(o,r,m,M,I)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let $o=(()=>{class c{constructor(r,m,M){this._element=r,this._startStyles=m,this._endStyles=M,this._state=0;let I=c.initialStylesByElement.get(r);I||c.initialStylesByElement.set(r,I=new Map),this._initialStyles=I}start(){this._state<1&&(this._startStyles&&De(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(De(this._element,this._initialStyles),this._endStyles&&(De(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(c.initialStylesByElement.delete(this._element),this._startStyles&&(Ot(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ot(this._element,this._endStyles),this._endStyles=null),De(this._element,this._initialStyles),this._state=3)}}return c.initialStylesByElement=new WeakMap,c})();function yr(c){let o=null;return c.forEach((r,m)=>{(function va(c){return"display"===c||"position"===c})(m)&&(o=o||new Map,o.set(m,r))}),o}class Tt{constructor(o,r,m,M){this.element=o,this.keyframes=r,this.options=m,this._specialStyles=M,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=m.duration,this._delay=m.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(o){const r=[];return o.forEach(m=>{r.push(Object.fromEntries(m))}),r}_triggerWebAnimation(o,r,m){return o.animate(this._convertKeyframesToObject(r),m)}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),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(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((m,M)=>{"offset"!==M&&o.set(M,this._finished?m:$t(this.element,M))}),this.currentSnapshot=o}triggerCallback(o){const r="start"===o?this._onStartFns:this._onDoneFns;r.forEach(m=>m()),r.length=0}}class Ct{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}matchesElement(o,r){return!1}containsElement(o,r){return mt(o,r)}getParentElement(o){return xt(o)}query(o,r,m){return It(o,r,m)}computeStyle(o,r,m){return window.getComputedStyle(o)[r]}animate(o,r,m,M,I,G=[]){const _t={duration:m,delay:M,fill:0==M?"both":"forwards"};I&&(_t.easing=I);const Gt=new Map,Pn=G.filter(xi=>xi instanceof Tt);(function Si(c,o){return 0===c||0===o})(m,M)&&Pn.forEach(xi=>{xi.currentSnapshot.forEach((Ui,qi)=>Gt.set(qi,Ui))});let kn=function Be(c){return c.length?c[0]instanceof Map?c:c.map(o=>it(o)):[]}(r).map(xi=>ue(xi));kn=function un(c,o,r){if(r.size&&o.length){let m=o[0],M=[];if(r.forEach((I,G)=>{m.has(G)||M.push(G),m.set(G,I)}),M.length)for(let I=1;I<o.length;I++){let G=o[I];M.forEach(Me=>G.set(Me,$t(c,Me)))}}return o}(o,kn,Gt);const fi=function _a(c,o){let r=null,m=null;return Array.isArray(o)&&o.length?(r=yr(o[0]),o.length>1&&(m=yr(o[o.length-1]))):o instanceof Map&&(r=yr(o)),r||m?new $o(c,r,m):null}(o,kn);return new Tt(o,kn,_t,fi)}}var Ze=i(36895);let vn=(()=>{class c extends d._j{constructor(r,m){super(),this._nextAnimationId=0,this._renderer=r.createRenderer(m.body,{id:"0",encapsulation:t.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(r){const m=this._nextAnimationId.toString();this._nextAnimationId++;const M=Array.isArray(r)?(0,d.vP)(r):r;return oo(this._renderer,null,m,"register",[M]),new Ci(m,this._renderer)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(t.RendererFactory2),t.\u0275\u0275inject(Ze.DOCUMENT))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})();class Ci extends d.LC{constructor(o,r){super(),this._id=o,this._renderer=r}create(o,r){return new rr(this._id,o,r||{},this._renderer)}}class rr{constructor(o,r,m,M){this.id=o,this.element=r,this._renderer=M,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",m)}_listen(o,r){return this._renderer.listen(this.element,`@@${this.id}:${o}`,r)}_command(o,...r){return oo(this._renderer,this.element,this.id,o,r)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}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(o){this._command("setPosition",o)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function oo(c,o,r,m,M){return c.setProperty(o,`@@${r}:${m}`,M)}const xr="@.disabled";let zr=(()=>{class c{constructor(r,m,M){this.delegate=r,this.engine=m,this._zone=M,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),m.onRemovalComplete=(I,G)=>{const Me=G?.parentNode(I);Me&&G.removeChild(Me,I)}}createRenderer(r,m){const I=this.delegate.createRenderer(r,m);if(!(r&&m&&m.data&&m.data.animation)){let Pn=this._rendererCache.get(I);return Pn||(Pn=new Aa("",I,this.engine,()=>this._rendererCache.delete(I)),this._rendererCache.set(I,Pn)),Pn}const G=m.id,Me=m.id+"-"+this._currentId;this._currentId++,this.engine.register(Me,r);const _t=Pn=>{Array.isArray(Pn)?Pn.forEach(_t):this.engine.registerTrigger(G,Me,r,Pn.name,Pn)};return m.data.animation.forEach(_t),new Mo(this,Me,I,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(r,m,M){r>=0&&r<this._microtaskId?this._zone.run(()=>m(M)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(I=>{const[G,Me]=I;G(Me)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([m,M]))}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.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(t.RendererFactory2),t.\u0275\u0275inject(Uo),t.\u0275\u0275inject(t.NgZone))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})();class Aa{constructor(o,r,m,M){this.namespaceId=o,this.delegate=r,this.engine=m,this._onDestroy=M,this.destroyNode=this.delegate.destroyNode?I=>r.destroyNode(I):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(o,r){return this.delegate.createElement(o,r)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,r){this.delegate.appendChild(o,r),this.engine.onInsert(this.namespaceId,r,o,!1)}insertBefore(o,r,m,M=!0){this.delegate.insertBefore(o,r,m),this.engine.onInsert(this.namespaceId,r,o,M)}removeChild(o,r,m){this.engine.onRemove(this.namespaceId,r,this.delegate,m)}selectRootElement(o,r){return this.delegate.selectRootElement(o,r)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,r,m,M){this.delegate.setAttribute(o,r,m,M)}removeAttribute(o,r,m){this.delegate.removeAttribute(o,r,m)}addClass(o,r){this.delegate.addClass(o,r)}removeClass(o,r){this.delegate.removeClass(o,r)}setStyle(o,r,m,M){this.delegate.setStyle(o,r,m,M)}removeStyle(o,r,m){this.delegate.removeStyle(o,r,m)}setProperty(o,r,m){"@"==r.charAt(0)&&r==xr?this.disableAnimations(o,!!m):this.delegate.setProperty(o,r,m)}setValue(o,r){this.delegate.setValue(o,r)}listen(o,r,m){return this.delegate.listen(o,r,m)}disableAnimations(o,r){this.engine.disableAnimations(o,r)}}class Mo extends Aa{constructor(o,r,m,M,I){super(r,m,M,I),this.factory=o,this.namespaceId=r}setProperty(o,r,m){"@"==r.charAt(0)?"."==r.charAt(1)&&r==xr?this.disableAnimations(o,m=void 0===m||!!m):this.engine.process(this.namespaceId,o,r.slice(1),m):this.delegate.setProperty(o,r,m)}listen(o,r,m){if("@"==r.charAt(0)){const M=function ka(c){switch(c){case"body":return document.body;case"document":return document;case"window":return window;default:return c}}(o);let I=r.slice(1),G="";return"@"!=I.charAt(0)&&([I,G]=function Ss(c){const o=c.indexOf(".");return[c.substring(0,o),c.slice(o+1)]}(I)),this.engine.listen(this.namespaceId,M,I,G,Me=>{this.factory.scheduleListenerCallback(Me._data||-1,m,Me)})}return this.delegate.listen(o,r,m)}}const Qs=[{provide:d._j,useClass:vn},{provide:Lt,useFactory:function sl(){return new Wi}},{provide:Uo,useClass:(()=>{class c extends Uo{constructor(r,m,M,I){super(r.body,m,M)}ngOnDestroy(){this.flush()}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(Ze.DOCUMENT),t.\u0275\u0275inject(Jt),t.\u0275\u0275inject(Lt),t.\u0275\u0275inject(t.ApplicationRef))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})()},{provide:t.RendererFactory2,useFactory:function ca(c,o,r){return new zr(c,o,r)},deps:[a.\u0275DomRendererFactory2,Uo,t.NgZone]}],ja=[{provide:Jt,useFactory:()=>new Ct},{provide:t.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...Qs],rs=[{provide:Jt,useClass:_n},{provide:t.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...Qs];let Po=(()=>{class c{static withConfig(r){return{ngModule:c,providers:r.disableAnimations?rs:ja}}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=t.\u0275\u0275defineNgModule({type:c}),c.\u0275inj=t.\u0275\u0275defineInjector({providers:ja,imports:[a.BrowserModule]}),c})();var Ma=i(34986),Fa=i(69751),Fr=i(39646),Ao=i(56451),$r=i(54004),fs=i(13099),Sr=i(63900),os=i(22940),ya=i(71884),Ha=i(11365),La=i(54244),No=i(38100),sn=i(12011),$n=(i(32644),i(63942)),oi=i(34859),si=i(6881),qt=i(42090),Ri=i(41877);const Fi="@firebase/database";let Xi="";function wr(c){Xi=c}class mo{constructor(o){this.domStorage_=o,this.prefix_="firebase:"}set(o,r){null==r?this.domStorage_.removeItem(this.prefixedName_(o)):this.domStorage_.setItem(this.prefixedName_(o),(0,qt.Wl)(r))}get(o){const r=this.domStorage_.getItem(this.prefixedName_(o));return null==r?null:(0,qt.cI)(r)}remove(o){this.domStorage_.removeItem(this.prefixedName_(o))}prefixedName_(o){return this.prefix_+o}toString(){return this.domStorage_.toString()}}class Jr{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(o,r){null==r?delete this.cache_[o]:this.cache_[o]=r}get(o){return(0,qt.r3)(this.cache_,o)?this.cache_[o]:null}remove(o){delete this.cache_[o]}}const na=function(c){try{if(typeof window<"u"&&typeof window[c]<"u"){const o=window[c];return o.setItem("firebase:sentinel","cache"),o.removeItem("firebase:sentinel"),new mo(o)}}catch{}return new Jr},Qo=na("localStorage"),Va=na("sessionStorage"),Vo=new Ri.Yd("@firebase/database"),Ra=function(){let c=1;return function(){return c++}}(),Xo=function(c){const o=(0,qt.dS)(c),r=new qt.gQ;r.update(o);const m=r.digest();return qt.US.encodeByteArray(m)},Je=function(...c){let o="";for(let r=0;r<c.length;r++){const m=c[r];Array.isArray(m)||m&&"object"==typeof m&&"number"==typeof m.length?o+=Je.apply(null,m):o+="object"==typeof m?(0,qt.Wl)(m):m,o+=" "}return o};let Vt=null,st=!0;const ln=function(c,o){(0,qt.hu)(!o||!0===c||!1===c,"Can't turn on custom loggers persistently."),!0===c?(Vo.logLevel=Ri.in.VERBOSE,Vt=Vo.log.bind(Vo),o&&Va.set("logging_enabled",!0)):"function"==typeof c?Vt=c:(Vt=null,Va.remove("logging_enabled"))},An=function(...c){if(!0===st&&(st=!1,null===Vt&&!0===Va.get("logging_enabled")&&ln(!0)),Vt){const o=Je.apply(null,c);Vt(o)}},yi=function(c){return function(...o){An(c,...o)}},Pi=function(...c){const o="FIREBASE INTERNAL ERROR: "+Je(...c);Vo.error(o)},or=function(...c){const o=`FIREBASE FATAL ERROR: ${Je(...c)}`;throw Vo.error(o),new Error(o)},Nr=function(...c){const o="FIREBASE WARNING: "+Je(...c);Vo.warn(o)},Rr=function(c){return"number"==typeof c&&(c!=c||c===Number.POSITIVE_INFINITY||c===Number.NEGATIVE_INFINITY)},Co="[MIN_NAME]",Xr="[MAX_NAME]",vo=function(c,o){if(c===o)return 0;if(c===Co||o===Xr)return-1;if(o===Co||c===Xr)return 1;{const r=ws(c),m=ws(o);return null!==r?null!==m?r-m==0?c.length-o.length:r-m:-1:null!==m?1:c<o?-1:1}},Zo=function(c,o){return c===o?0:c<o?-1:1},ia=function(c,o){if(o&&c in o)return o[c];throw new Error("Missing required key ("+c+") in object: "+(0,qt.Wl)(o))},Ga=function(c){if("object"!=typeof c||null===c)return(0,qt.Wl)(c);const o=[];for(const m in c)o.push(m);o.sort();let r="{";for(let m=0;m<o.length;m++)0!==m&&(r+=","),r+=(0,qt.Wl)(o[m]),r+=":",r+=Ga(c[o[m]]);return r+="}",r},ra=function(c,o){const r=c.length;if(r<=o)return[c];const m=[];for(let M=0;M<r;M+=o)m.push(c.substring(M,M+o>r?r:M+o));return m};function mr(c,o){for(const r in c)c.hasOwnProperty(r)&&o(r,c[r])}const Ur=function(c){(0,qt.hu)(!Rr(c),"Invalid JSON number");const m=1023;let M,I,G,Me,_t;0===c?(I=0,G=0,M=1/c==-1/0?1:0):(M=c<0,(c=Math.abs(c))>=Math.pow(2,1-m)?(Me=Math.min(Math.floor(Math.log(c)/Math.LN2),m),I=Me+m,G=Math.round(c*Math.pow(2,52-Me)-Math.pow(2,52))):(I=0,G=Math.round(c/Math.pow(2,-1074))));const Gt=[];for(_t=52;_t;_t-=1)Gt.push(G%2?1:0),G=Math.floor(G/2);for(_t=11;_t;_t-=1)Gt.push(I%2?1:0),I=Math.floor(I/2);Gt.push(M?1:0),Gt.reverse();const Pn=Gt.join("");let kn="";for(_t=0;_t<64;_t+=8){let fi=parseInt(Pn.substr(_t,8),2).toString(16);1===fi.length&&(fi="0"+fi),kn+=fi}return kn.toLowerCase()},ml=new RegExp("^-?(0*)\\d{1,10}$"),ws=function(c){if(ml.test(c)){const o=Number(c);if(o>=-2147483648&&o<=2147483647)return o}return null},Ca=function(c){try{c()}catch(o){setTimeout(()=>{throw Nr("Exception was thrown by user callback.",o.stack||""),o},Math.floor(0))}},ms=function(){return("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},Us=function(c,o){const r=setTimeout(c,o);return"number"==typeof r&&typeof Deno<"u"&&Deno.unrefTimer?Deno.unrefTimer(r):"object"==typeof r&&r.unref&&r.unref(),r};class Ea{constructor(o,r){this.appName_=o,this.appCheckProvider=r,this.appCheck=r?.getImmediate({optional:!0}),this.appCheck||r?.get().then(m=>this.appCheck=m)}getToken(o){return this.appCheck?this.appCheck.getToken(o):new Promise((r,m)=>{setTimeout(()=>{this.appCheck?this.getToken(o).then(r,m):r(null)},0)})}addTokenChangeListener(o){var r;null===(r=this.appCheckProvider)||void 0===r||r.get().then(m=>m.addTokenListener(o))}notifyForInvalidToken(){Nr(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}class Xs{constructor(o,r,m){this.appName_=o,this.firebaseOptions_=r,this.authProvider_=m,this.auth_=null,this.auth_=m.getImmediate({optional:!0}),this.auth_||m.onInit(M=>this.auth_=M)}getToken(o){return this.auth_?this.auth_.getToken(o).catch(r=>r&&"auth/token-not-initialized"===r.code?(An("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(r)):new Promise((r,m)=>{setTimeout(()=>{this.auth_?this.getToken(o).then(r,m):r(null)},0)})}addTokenChangeListener(o){this.auth_?this.auth_.addAuthTokenListener(o):this.authProvider_.get().then(r=>r.addAuthTokenListener(o))}removeTokenChangeListener(o){this.authProvider_.get().then(r=>r.removeAuthTokenListener(o))}notifyForInvalidToken(){let o='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';o+="credential"in this.firebaseOptions_?'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',Nr(o)}}let as=(()=>{class c{constructor(r){this.accessToken=r}getToken(r){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(r){r(this.accessToken)}removeTokenChangeListener(r){}notifyForInvalidToken(){}}return c.OWNER="owner",c})();const Fl=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,ll="websocket",gs="long_polling";class Hs{constructor(o,r,m,M,I=!1,G="",Me=!1,_t=!1){this.secure=r,this.namespace=m,this.webSocketOnly=M,this.nodeAdmin=I,this.persistenceKey=G,this.includeNamespaceInQueryParams=Me,this.isUsingEmulator=_t,this._host=o.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=Qo.get("host:"+o)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(o){o!==this.internalHost&&(this.internalHost=o,this.isCacheableHost()&&Qo.set("host:"+this._host,this.internalHost))}toString(){let o=this.toURLString();return this.persistenceKey&&(o+="<"+this.persistenceKey+">"),o}toURLString(){return`${this.secure?"https://":"http://"}${this.host}/${this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:""}`}}function _s(c,o,r){let m;if((0,qt.hu)("string"==typeof o,"typeof type must == string"),(0,qt.hu)("object"==typeof r,"typeof params must == object"),o===ll)m=(c.secure?"wss://":"ws://")+c.internalHost+"/.ws?";else{if(o!==gs)throw new Error("Unknown connection type: "+o);m=(c.secure?"https://":"http://")+c.internalHost+"/.lp?"}(function ss(c){return c.host!==c.internalHost||c.isCustomHost()||c.includeNamespaceInQueryParams})(c)&&(r.ns=c.namespace);const M=[];return mr(r,(I,G)=>{M.push(I+"="+G)}),m+M.join("&")}class Js{constructor(){this.counters_={}}incrementCounter(o,r=1){(0,qt.r3)(this.counters_,o)||(this.counters_[o]=0),this.counters_[o]+=r}get(){return(0,qt.p$)(this.counters_)}}const qs={},bl={};function el(c){const o=c.toString();return qs[o]||(qs[o]=new Js),qs[o]}class Os{constructor(o){this.onMessage_=o,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(o,r){this.closeAfterResponse=o,this.onClose=r,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(o,r){for(this.pendingResponses[o]=r;this.pendingResponses[this.currentResponseNum];){const m=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let M=0;M<m.length;++M)m[M]&&Ca(()=>{this.onMessage_(m[M])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}class we{constructor(o,r,m,M,I,G,Me){this.connId=o,this.repoInfo=r,this.applicationId=m,this.appCheckToken=M,this.authToken=I,this.transportSessionId=G,this.lastSessionId=Me,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=yi(o),this.stats_=el(r),this.urlFn=_t=>(this.appCheckToken&&(_t.ac=this.appCheckToken),_s(r,gs,_t))}open(o,r){this.curSegmentNum=0,this.onDisconnect_=r,this.myPacketOrderer=new Os(o),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(3e4)),function(c){if((0,qt.Yr)()||"complete"===document.readyState)c();else{let o=!1;const r=function(){document.body?o||(o=!0,c()):setTimeout(r,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",r,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&r()}),window.attachEvent("onload",r))}}(()=>{if(this.isClosed_)return;this.scriptTagHolder=new nr((...I)=>{const[G,Me,_t,Gt,Pn]=I;if(this.incrementIncomingBytes_(I),this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,"start"===G)this.id=Me,this.password=_t;else{if("close"!==G)throw new Error("Unrecognized command received: "+G);Me?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(Me,()=>{this.onClosed_()})):this.onClosed_()}},(...I)=>{const[G,Me]=I;this.incrementIncomingBytes_(I),this.myPacketOrderer.handleResponse(G,Me)},()=>{this.onClosed_()},this.urlFn);const m={start:"t"};m.ser=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(m.cb=this.scriptTagHolder.uniqueCallbackIdentifier),m.v="5",this.transportSessionId&&(m.s=this.transportSessionId),this.lastSessionId&&(m.ls=this.lastSessionId),this.applicationId&&(m.p=this.applicationId),this.appCheckToken&&(m.ac=this.appCheckToken),typeof location<"u"&&location.hostname&&Fl.test(location.hostname)&&(m.r="f");const M=this.urlFn(m);this.log_("Connecting via long-poll to "+M),this.scriptTagHolder.addTag(M,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){we.forceAllow_=!0}static forceDisallow(){we.forceDisallow_=!0}static isAvailable(){return!((0,qt.Yr)()||!we.forceAllow_&&(we.forceDisallow_||!(typeof document<"u")||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(o){const r=(0,qt.Wl)(o);this.bytesSent+=r.length,this.stats_.incrementCounter("bytes_sent",r.length);const m=(0,qt.h$)(r),M=ra(m,1840);for(let I=0;I<M.length;I++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,M.length,M[I]),this.curSegmentNum++}addDisconnectPingFrame(o,r){if((0,qt.Yr)())return;this.myDisconnFrame=document.createElement("iframe");const m={dframe:"t"};m.id=o,m.pw=r,this.myDisconnFrame.src=this.urlFn(m),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(o){const r=(0,qt.Wl)(o).length;this.bytesReceived+=r,this.stats_.incrementCounter("bytes_received",r)}}class nr{constructor(o,r,m,M){if(this.onDisconnect=m,this.urlFn=M,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,(0,qt.Yr)())this.commandCB=o,this.onMessageCB=r;else{this.uniqueCallbackIdentifier=Ra(),window["pLPCommand"+this.uniqueCallbackIdentifier]=o,window["pRTLPCB"+this.uniqueCallbackIdentifier]=r,this.myIFrame=nr.createIFrame_();let I="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)&&(I='<script>document.domain="'+document.domain+'";<\/script>');const G="<html><body>"+I+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(G),this.myIFrame.doc.close()}catch(Me){An("frame writing exception"),Me.stack&&An(Me.stack),An(Me)}}}static createIFrame_(){const o=document.createElement("iframe");if(o.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(o);try{o.contentWindow.document||An("No IE domain setting required")}catch{const m=document.domain;o.src="javascript:void((function(){document.open();document.domain='"+m+"';document.close();})())"}return o.contentDocument?o.doc=o.contentDocument:o.contentWindow?o.doc=o.contentWindow.document:o.document&&(o.doc=o.document),o}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const o=this.onDisconnect;o&&(this.onDisconnect=null,o())}startLongPoll(o,r){for(this.myID=o,this.myPW=r,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const o={};o.id=this.myID,o.pw=this.myPW,o.ser=this.currentSerial;let r=this.urlFn(o),m="",M=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+m.length<=1870;){const G=this.pendingSegs.shift();m=m+"&seg"+M+"="+G.seg+"&ts"+M+"="+G.ts+"&d"+M+"="+G.d,M++}return r+=m,this.addLongPollTag_(r,this.currentSerial),!0}return!1}enqueueSegment(o,r,m){this.pendingSegs.push({seg:o,ts:r,d:m}),this.alive&&this.newRequest_()}addLongPollTag_(o,r){this.outstandingRequests.add(r);const m=()=>{this.outstandingRequests.delete(r),this.newRequest_()},M=setTimeout(m,Math.floor(25e3));this.addTag(o,()=>{clearTimeout(M),m()})}addTag(o,r){(0,qt.Yr)()?this.doNodeLongPoll(o,r):setTimeout(()=>{try{if(!this.sendNewPolls)return;const m=this.myIFrame.doc.createElement("script");m.type="text/javascript",m.async=!0,m.src=o,m.onload=m.onreadystatechange=function(){const M=m.readyState;(!M||"loaded"===M||"complete"===M)&&(m.onload=m.onreadystatechange=null,m.parentNode&&m.parentNode.removeChild(m),r())},m.onerror=()=>{An("Long-poll script failed to load: "+o),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(m)}catch{}},Math.floor(1))}}let mi=null;typeof MozWebSocket<"u"?mi=MozWebSocket:typeof WebSocket<"u"&&(mi=WebSocket);let gr=(()=>{class c{constructor(r,m,M,I,G,Me,_t){this.connId=r,this.applicationId=M,this.appCheckToken=I,this.authToken=G,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=yi(this.connId),this.stats_=el(m),this.connURL=c.connectionURL_(m,Me,_t,I,M),this.nodeAdmin=m.nodeAdmin}static connectionURL_(r,m,M,I,G){const Me={v:"5"};return!(0,qt.Yr)()&&typeof location<"u"&&location.hostname&&Fl.test(location.hostname)&&(Me.r="f"),m&&(Me.s=m),M&&(Me.ls=M),I&&(Me.ac=I),G&&(Me.p=G),_s(r,ll,Me)}open(r,m){this.onDisconnect=m,this.onMessage=r,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,Qo.set("previous_websocket_failure",!0);try{let M;if((0,qt.Yr)()){M={headers:{"User-Agent":`Firebase/5/${Xi}/${process.platform}/${this.nodeAdmin?"AdminNode":"Node"}`,"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(M.headers.Authorization=`Bearer ${this.authToken}`),this.appCheckToken&&(M.headers["X-Firebase-AppCheck"]=this.appCheckToken);const G=process.env,Me=0===this.connURL.indexOf("wss://")?G.HTTPS_PROXY||G.https_proxy:G.HTTP_PROXY||G.http_proxy;Me&&(M.proxy={origin:Me})}this.mySock=new mi(this.connURL,[],M)}catch(M){this.log_("Error instantiating WebSocket.");const I=M.message||M.data;return I&&this.log_(I),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=M=>{this.handleIncomingFrame(M)},this.mySock.onerror=M=>{this.log_("WebSocket error.  Closing connection.");const I=M.message||M.data;I&&this.log_(I),this.onClosed_()}}start(){}static forceDisallow(){c.forceDisallow_=!0}static isAvailable(){let r=!1;if(typeof navigator<"u"&&navigator.userAgent){const M=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);M&&M.length>1&&parseFloat(M[1])<4.4&&(r=!0)}return!r&&null!==mi&&!c.forceDisallow_}static previouslyFailed(){return Qo.isInMemoryStorage||!0===Qo.get("previous_websocket_failure")}markConnectionHealthy(){Qo.remove("previous_websocket_failure")}appendFrame_(r){if(this.frames.push(r),this.frames.length===this.totalFrames){const m=this.frames.join("");this.frames=null;const M=(0,qt.cI)(m);this.onMessage(M)}}handleNewFrameCount_(r){this.totalFrames=r,this.frames=[]}extractFrameCount_(r){if((0,qt.hu)(null===this.frames,"We already have a frame buffer"),r.length<=6){const m=Number(r);if(!isNaN(m))return this.handleNewFrameCount_(m),null}return this.handleNewFrameCount_(1),r}handleIncomingFrame(r){if(null===this.mySock)return;const m=r.data;if(this.bytesReceived+=m.length,this.stats_.incrementCounter("bytes_received",m.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(m);else{const M=this.extractFrameCount_(m);null!==M&&this.appendFrame_(M)}}send(r){this.resetKeepAlive();const m=(0,qt.Wl)(r);this.bytesSent+=m.length,this.stats_.incrementCounter("bytes_sent",m.length);const M=ra(m,16384);M.length>1&&this.sendString_(String(M.length));for(let I=0;I<M.length;I++)this.sendString_(M[I])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(45e3))}sendString_(r){try{this.mySock.send(r)}catch(m){this.log_("Exception thrown from WebSocket.send():",m.message||m.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}return c.responsesRequiredToBeHealthy=2,c.healthyTimeout=3e4,c})(),xe=(()=>{class c{constructor(r){this.initTransports_(r)}static get ALL_TRANSPORTS(){return[we,gr]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}initTransports_(r){const m=gr&&gr.isAvailable();let M=m&&!gr.previouslyFailed();if(r.webSocketOnly&&(m||Nr("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),M=!0),M)this.transports_=[gr];else{const I=this.transports_=[];for(const G of c.ALL_TRANSPORTS)G&&G.isAvailable()&&I.push(G);c.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}return c.globalTransportInitialized_=!1,c})();class za{constructor(o,r,m,M,I,G,Me,_t,Gt,Pn){this.id=o,this.repoInfo_=r,this.applicationId_=m,this.appCheckToken_=M,this.authToken_=I,this.onMessage_=G,this.onReady_=Me,this.onDisconnect_=_t,this.onKill_=Gt,this.lastSessionId=Pn,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=yi("c:"+this.id+":"),this.transportManager_=new xe(r),this.log_("Connection created"),this.start_()}start_(){const o=this.transportManager_.initialTransport();this.conn_=new o(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=o.responsesRequiredToBeHealthy||0;const r=this.connReceiver_(this.conn_),m=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(r,m)},Math.floor(0));const M=o.healthyTimeout||0;M>0&&(this.healthyTimeout_=Us(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>102400?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes.  Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>10240?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes.  Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(M)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(o){return r=>{o===this.conn_?this.onConnectionLost_(r):o===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(o){return r=>{2!==this.state_&&(o===this.rx_?this.onPrimaryMessageReceived_(r):o===this.secondaryConn_?this.onSecondaryMessageReceived_(r):this.log_("message on old connection"))}}sendRequest(o){this.sendData_({t:"d",d:o})}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(o){if("t"in o){const r=o.t;"a"===r?this.upgradeIfSecondaryHealthy_():"r"===r?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):"o"===r&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(o){const r=ia("t",o),m=ia("d",o);if("c"===r)this.onSecondaryControl_(m);else{if("d"!==r)throw new Error("Unknown protocol layer: "+r);this.pendingDataMessages.push(m)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(o){const r=ia("t",o),m=ia("d",o);"c"===r?this.onControl_(m):"d"===r&&this.onDataMessage_(m)}onDataMessage_(o){this.onPrimaryResponse_(),this.onMessage_(o)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(o){const r=ia("t",o);if("d"in o){const m=o.d;if("h"===r){const M=Object.assign({},m);this.repoInfo_.isUsingEmulator&&(M.h=this.repoInfo_.host),this.onHandshake_(M)}else if("n"===r){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let M=0;M<this.pendingDataMessages.length;++M)this.onDataMessage_(this.pendingDataMessages[M]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===r?this.onConnectionShutdown_(m):"r"===r?this.onReset_(m):"e"===r?Pi("Server Error: "+m):"o"===r?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):Pi("Unknown control packet command: "+r)}}onHandshake_(o){const r=o.ts,m=o.v,M=o.h;this.sessionId=o.s,this.repoInfo_.host=M,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,r),"5"!==m&&Nr("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const o=this.transportManager_.upgradeTransport();o&&this.startUpgrade_(o)}startUpgrade_(o){this.secondaryConn_=new o(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=o.responsesRequiredToBeHealthy||0;const r=this.connReceiver_(this.secondaryConn_),m=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(r,m),Us(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(6e4))}onReset_(o){this.log_("Reset packet received.  New host: "+o),this.repoInfo_.host=o,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(o,r){this.log_("Realtime connection established."),this.conn_=o,this.state_=1,this.onReady_&&(this.onReady_(r,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Us(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&1===this.state_&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}onSecondaryConnectionLost_(){const o=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===o||this.rx_===o)&&this.close()}onConnectionLost_(o){this.conn_=null,o||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(Qo.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(o){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(o),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(o){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(o)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}class Ka{put(o,r,m,M){}merge(o,r,m,M){}refreshAuthToken(o){}refreshAppCheckToken(o){}onDisconnectPut(o,r,m){}onDisconnectMerge(o,r,m){}onDisconnectCancel(o,r){}reportStats(o){}}class lc{constructor(o){this.allowedEvents_=o,this.listeners_={},(0,qt.hu)(Array.isArray(o)&&o.length>0,"Requires a non-empty array")}trigger(o,...r){if(Array.isArray(this.listeners_[o])){const m=[...this.listeners_[o]];for(let M=0;M<m.length;M++)m[M].callback.apply(m[M].context,r)}}on(o,r,m){this.validateEventType_(o),this.listeners_[o]=this.listeners_[o]||[],this.listeners_[o].push({callback:r,context:m});const M=this.getInitialEvent(o);M&&r.apply(m,M)}off(o,r,m){this.validateEventType_(o);const M=this.listeners_[o]||[];for(let I=0;I<M.length;I++)if(M[I].callback===r&&(!m||m===M[I].context))return void M.splice(I,1)}validateEventType_(o){(0,qt.hu)(this.allowedEvents_.find(r=>r===o),"Unknown event: "+o)}}class Vs extends lc{constructor(){super(["online"]),this.online_=!0,typeof window<"u"&&typeof window.addEventListener<"u"&&!(0,qt.uI)()&&(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}static getInstance(){return new Vs}getInitialEvent(o){return(0,qt.hu)("online"===o,"Unknown event type: "+o),[this.online_]}currentlyOnline(){return this.online_}}const ys=32,cc=768;class jr{constructor(o,r){if(void 0===r){this.pieces_=o.split("/");let m=0;for(let M=0;M<this.pieces_.length;M++)this.pieces_[M].length>0&&(this.pieces_[m]=this.pieces_[M],m++);this.pieces_.length=m,this.pieceNum_=0}else this.pieces_=o,this.pieceNum_=r}toString(){let o="";for(let r=this.pieceNum_;r<this.pieces_.length;r++)""!==this.pieces_[r]&&(o+="/"+this.pieces_[r]);return o||"/"}}function Ir(){return new jr("")}function Zr(c){return c.pieceNum_>=c.pieces_.length?null:c.pieces_[c.pieceNum_]}function qa(c){return c.pieces_.length-c.pieceNum_}function Ro(c){let o=c.pieceNum_;return o<c.pieces_.length&&o++,new jr(c.pieces_,o)}function Ws(c){return c.pieceNum_<c.pieces_.length?c.pieces_[c.pieces_.length-1]:null}function Ls(c,o=0){return c.pieces_.slice(c.pieceNum_+o)}function Wc(c){if(c.pieceNum_>=c.pieces_.length)return null;const o=[];for(let r=c.pieceNum_;r<c.pieces_.length-1;r++)o.push(c.pieces_[r]);return new jr(o,0)}function zo(c,o){const r=[];for(let m=c.pieceNum_;m<c.pieces_.length;m++)r.push(c.pieces_[m]);if(o instanceof jr)for(let m=o.pieceNum_;m<o.pieces_.length;m++)r.push(o.pieces_[m]);else{const m=o.split("/");for(let M=0;M<m.length;M++)m[M].length>0&&r.push(m[M])}return new jr(r,0)}function no(c){return c.pieceNum_>=c.pieces_.length}function ua(c,o){const r=Zr(c),m=Zr(o);if(null===r)return o;if(r===m)return ua(Ro(c),Ro(o));throw new Error("INTERNAL ERROR: innerPath ("+o+") is not within outerPath ("+c+")")}function Bl(c,o){const r=Ls(c,0),m=Ls(o,0);for(let M=0;M<r.length&&M<m.length;M++){const I=vo(r[M],m[M]);if(0!==I)return I}return r.length===m.length?0:r.length<m.length?-1:1}function dl(c,o){if(qa(c)!==qa(o))return!1;for(let r=c.pieceNum_,m=o.pieceNum_;r<=c.pieces_.length;r++,m++)if(c.pieces_[r]!==o.pieces_[m])return!1;return!0}function cs(c,o){let r=c.pieceNum_,m=o.pieceNum_;if(qa(c)>qa(o))return!1;for(;r<c.pieces_.length;){if(c.pieces_[r]!==o.pieces_[m])return!1;++r,++m}return!0}class zc{constructor(o,r){this.errorPrefix_=r,this.parts_=Ls(o,0),this.byteLength_=Math.max(1,this.parts_.length);for(let m=0;m<this.parts_.length;m++)this.byteLength_+=(0,qt.ug)(this.parts_[m]);ud(this)}}function ud(c){if(c.byteLength_>cc)throw new Error(c.errorPrefix_+"has a key path longer than "+cc+" bytes ("+c.byteLength_+").");if(c.parts_.length>ys)throw new Error(c.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+ys+") or object contains a cycle "+pa(c))}function pa(c){return 0===c.parts_.length?"":"in property '"+c.parts_.join(".")+"'"}class wa extends lc{constructor(){let o,r;super(["visible"]),typeof document<"u"&&typeof document.addEventListener<"u"&&(typeof document.hidden<"u"?(r="visibilitychange",o="hidden"):typeof document.mozHidden<"u"?(r="mozvisibilitychange",o="mozHidden"):typeof document.msHidden<"u"?(r="msvisibilitychange",o="msHidden"):typeof document.webkitHidden<"u"&&(r="webkitvisibilitychange",o="webkitHidden")),this.visible_=!0,r&&document.addEventListener(r,()=>{const m=!document[o];m!==this.visible_&&(this.visible_=m,this.trigger("visible",m))},!1)}static getInstance(){return new wa}getInitialEvent(o){return(0,qt.hu)("visible"===o,"Unknown event type: "+o),[this.visible_]}}const Cl=1e3;let ul,zs=(()=>{class c extends Ka{constructor(r,m,M,I,G,Me,_t,Gt){if(super(),this.repoInfo_=r,this.applicationId_=m,this.onDataUpdate_=M,this.onConnectStatus_=I,this.onServerInfoUpdate_=G,this.authTokenProvider_=Me,this.appCheckTokenProvider_=_t,this.authOverride_=Gt,this.id=c.nextPersistentConnectionId_++,this.log_=yi("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=Cl,this.maxReconnectDelay_=3e5,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,Gt&&!(0,qt.Yr)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");wa.getInstance().on("visible",this.onVisible_,this),-1===r.host.indexOf("fblocal")&&Vs.getInstance().on("online",this.onOnline_,this)}sendRequest(r,m,M){const I=++this.requestNumber_,G={r:I,a:r,b:m};this.log_((0,qt.Wl)(G)),(0,qt.hu)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(G),M&&(this.requestCBHash_[I]=M)}get(r){this.initConnection_();const m=new qt.BH,I={action:"g",request:{p:r._path.toString(),q:r._queryObject},onComplete:Me=>{const _t=Me.d;"ok"===Me.s?m.resolve(_t):m.reject(_t)}};return this.outstandingGets_.push(I),this.outstandingGetCount_++,this.connected_&&this.sendGet_(this.outstandingGets_.length-1),m.promise}listen(r,m,M,I){this.initConnection_();const G=r._queryIdentifier,Me=r._path.toString();this.log_("Listen called for "+Me+" "+G),this.listens.has(Me)||this.listens.set(Me,new Map),(0,qt.hu)(r._queryParams.isDefault()||!r._queryParams.loadsAllData(),"listen() called for non-default but complete query"),(0,qt.hu)(!this.listens.get(Me).has(G),"listen() called twice for same path/queryId.");const _t={onComplete:I,hashFn:m,query:r,tag:M};this.listens.get(Me).set(G,_t),this.connected_&&this.sendListen_(_t)}sendGet_(r){const m=this.outstandingGets_[r];this.sendRequest("g",m.request,M=>{delete this.outstandingGets_[r],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),m.onComplete&&m.onComplete(M)})}sendListen_(r){const m=r.query,M=m._path.toString(),I=m._queryIdentifier;this.log_("Listen on "+M+" for "+I);const G={p:M};r.tag&&(G.q=m._queryObject,G.t=r.tag),G.h=r.hashFn(),this.sendRequest("q",G,_t=>{const Gt=_t.d,Pn=_t.s;c.warnOnListenWarnings_(Gt,m),(this.listens.get(M)&&this.listens.get(M).get(I))===r&&(this.log_("listen response",_t),"ok"!==Pn&&this.removeListen_(M,I),r.onComplete&&r.onComplete(Pn,Gt))})}static warnOnListenWarnings_(r,m){if(r&&"object"==typeof r&&(0,qt.r3)(r,"w")){const M=(0,qt.DV)(r,"w");if(Array.isArray(M)&&~M.indexOf("no_index")){const I='".indexOn": "'+m._queryParams.getIndex().toString()+'"',G=m._path.toString();Nr(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${I} at ${G} to your security rules for better performance.`)}}}refreshAuthToken(r){this.authToken_=r,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(r)}reduceReconnectDelayIfAdminCredential_(r){(r&&40===r.length||(0,qt.GJ)(r))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}refreshAppCheckToken(r){this.appCheckToken_=r,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const r=this.authToken_,m=(0,qt.w9)(r)?"auth":"gauth",M={cred:r};null===this.authOverride_?M.noauth=!0:"object"==typeof this.authOverride_&&(M.authvar=this.authOverride_),this.sendRequest(m,M,I=>{const G=I.s,Me=I.d||"error";this.authToken_===r&&("ok"===G?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(G,Me))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},r=>{const m=r.s,M=r.d||"error";"ok"===m?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(m,M)})}unlisten(r,m){const M=r._path.toString(),I=r._queryIdentifier;this.log_("Unlisten called for "+M+" "+I),(0,qt.hu)(r._queryParams.isDefault()||!r._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(M,I)&&this.connected_&&this.sendUnlisten_(M,I,r._queryObject,m)}sendUnlisten_(r,m,M,I){this.log_("Unlisten on "+r+" for "+m);const G={p:r};I&&(G.q=M,G.t=I),this.sendRequest("n",G)}onDisconnectPut(r,m,M){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",r,m,M):this.onDisconnectRequestQueue_.push({pathString:r,action:"o",data:m,onComplete:M})}onDisconnectMerge(r,m,M){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",r,m,M):this.onDisconnectRequestQueue_.push({pathString:r,action:"om",data:m,onComplete:M})}onDisconnectCancel(r,m){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",r,null,m):this.onDisconnectRequestQueue_.push({pathString:r,action:"oc",data:null,onComplete:m})}sendOnDisconnect_(r,m,M,I){const G={p:m,d:M};this.log_("onDisconnect "+r,G),this.sendRequest(r,G,Me=>{I&&setTimeout(()=>{I(Me.s,Me.d)},Math.floor(0))})}put(r,m,M,I){this.putInternal("p",r,m,M,I)}merge(r,m,M,I){this.putInternal("m",r,m,M,I)}putInternal(r,m,M,I,G){this.initConnection_();const Me={p:m,d:M};void 0!==G&&(Me.h=G),this.outstandingPuts_.push({action:r,request:Me,onComplete:I}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+m)}sendPut_(r){const m=this.outstandingPuts_[r].action,M=this.outstandingPuts_[r].request,I=this.outstandingPuts_[r].onComplete;this.outstandingPuts_[r].queued=this.connected_,this.sendRequest(m,M,G=>{this.log_(m+" response",G),delete this.outstandingPuts_[r],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),I&&I(G.s,G.d)})}reportStats(r){if(this.connected_){const m={c:r};this.log_("reportStats",m),this.sendRequest("s",m,M=>{"ok"!==M.s&&this.log_("reportStats","Error sending stats: "+M.d)})}}onDataMessage_(r){if("r"in r){this.log_("from server: "+(0,qt.Wl)(r));const m=r.r,M=this.requestCBHash_[m];M&&(delete this.requestCBHash_[m],M(r.b))}else{if("error"in r)throw"A server-side error has occurred: "+r.error;"a"in r&&this.onDataPush_(r.a,r.b)}}onDataPush_(r,m){this.log_("handleServerMessage",r,m),"d"===r?this.onDataUpdate_(m.p,m.d,!1,m.t):"m"===r?this.onDataUpdate_(m.p,m.d,!0,m.t):"c"===r?this.onListenRevoked_(m.p,m.q):"ac"===r?this.onAuthRevoked_(m.s,m.d):"apc"===r?this.onAppCheckRevoked_(m.s,m.d):"sd"===r?this.onSecurityDebugPacket_(m):Pi("Unrecognized action received from server: "+(0,qt.Wl)(r)+"\nAre you using the latest client?")}onReady_(r,m){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(r),this.lastSessionId=m,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(r){(0,qt.hu)(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(r))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(r){r&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=Cl,this.realtime_||this.scheduleConnect_(0)),this.visible_=r}onOnline_(r){r?(this.log_("Browser went online."),this.reconnectDelay_=Cl,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=Cl),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());const r=(new Date).getTime()-this.lastConnectionAttemptTime_;let m=Math.max(0,this.reconnectDelay_-r);m=Math.random()*m,this.log_("Trying to reconnect in "+m+"ms"),this.scheduleConnect_(m),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}establishConnection_(){var r=this;return(0,h.Z)(function*(){if(r.shouldReconnect_()){r.log_("Making a connection attempt"),r.lastConnectionAttemptTime_=(new Date).getTime(),r.lastConnectionEstablishedTime_=null;const m=r.onDataMessage_.bind(r),M=r.onReady_.bind(r),I=r.onRealtimeDisconnect_.bind(r),G=r.id+":"+c.nextConnectionId_++,Me=r.lastSessionId;let _t=!1,Gt=null;const Pn=function(){Gt?Gt.close():(_t=!0,I())};r.realtime_={close:Pn,sendRequest:function(xi){(0,qt.hu)(Gt,"sendRequest call when we're not connected not allowed."),Gt.sendRequest(xi)}};const fi=r.forceTokenRefresh_;r.forceTokenRefresh_=!1;try{const[xi,Ui]=yield Promise.all([r.authTokenProvider_.getToken(fi),r.appCheckTokenProvider_.getToken(fi)]);_t?An("getToken() completed but was canceled"):(An("getToken() completed. Creating connection."),r.authToken_=xi&&xi.accessToken,r.appCheckToken_=Ui&&Ui.token,Gt=new za(G,r.repoInfo_,r.applicationId_,r.appCheckToken_,r.authToken_,m,M,I,qi=>{Nr(qi+" ("+r.repoInfo_.toString()+")"),r.interrupt("server_kill")},Me))}catch(xi){r.log_("Failed to get token: "+xi),_t||(r.repoInfo_.nodeAdmin&&Nr(xi),Pn())}}})()}interrupt(r){An("Interrupting connection for reason: "+r),this.interruptReasons_[r]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(r){An("Resuming connection for reason: "+r),delete this.interruptReasons_[r],(0,qt.xb)(this.interruptReasons_)&&(this.reconnectDelay_=Cl,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(r){const m=r-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:m})}cancelSentTransactions_(){for(let r=0;r<this.outstandingPuts_.length;r++){const m=this.outstandingPuts_[r];m&&"h"in m.request&&m.queued&&(m.onComplete&&m.onComplete("disconnect"),delete this.outstandingPuts_[r],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])}onListenRevoked_(r,m){let M;M=m?m.map(G=>Ga(G)).join("$"):"default";const I=this.removeListen_(r,M);I&&I.onComplete&&I.onComplete("permission_denied")}removeListen_(r,m){const M=new jr(r).toString();let I;if(this.listens.has(M)){const G=this.listens.get(M);I=G.get(m),G.delete(m),0===G.size&&this.listens.delete(M)}else I=void 0;return I}onAuthRevoked_(r,m){An("Auth token revoked: "+r+"/"+m),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),("invalid_token"===r||"permission_denied"===r)&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(r,m){An("App check token revoked: "+r+"/"+m),this.appCheckToken_=null,this.forceTokenRefresh_=!0,("invalid_token"===r||"permission_denied"===r)&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(r){this.securityDebugCallback_?this.securityDebugCallback_(r):"msg"in r&&console.log("FIREBASE: "+r.msg.replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const r of this.listens.values())for(const m of r.values())this.sendListen_(m);for(let r=0;r<this.outstandingPuts_.length;r++)this.outstandingPuts_[r]&&this.sendPut_(r);for(;this.onDisconnectRequestQueue_.length;){const r=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(r.action,r.pathString,r.data,r.onComplete)}for(let r=0;r<this.outstandingGets_.length;r++)this.outstandingGets_[r]&&this.sendGet_(r)}sendConnectStats_(){const r={};let m="js";(0,qt.Yr)()&&(m=this.repoInfo_.nodeAdmin?"admin_node":"node"),r["sdk."+m+"."+Xi.replace(/\./g,"-")]=1,(0,qt.uI)()?r["framework.cordova"]=1:(0,qt.b$)()&&(r["framework.reactnative"]=1),this.reportStats(r)}shouldReconnect_(){const r=Vs.getInstance().currentlyOnline();return(0,qt.xb)(this.interruptReasons_)&&r}}return c.nextPersistentConnectionId_=0,c.nextConnectionId_=0,c})();class qr{constructor(o,r){this.name=o,this.node=r}static Wrap(o,r){return new qr(o,r)}}class Rs{getCompare(){return this.compare.bind(this)}indexedValueChanged(o,r){const m=new qr(Co,o),M=new qr(Co,r);return 0!==this.compare(m,M)}minPost(){return qr.MIN}}class go extends Rs{static get __EMPTY_NODE(){return ul}static set __EMPTY_NODE(o){ul=o}compare(o,r){return vo(o.name,r.name)}isDefinedOn(o){throw(0,qt.g5)("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(o,r){return!1}minPost(){return qr.MIN}maxPost(){return new qr(Xr,ul)}makePost(o,r){return(0,qt.hu)("string"==typeof o,"KeyIndex indexValue must always be a string."),new qr(o,ul)}toString(){return".key"}}const te=new go;class Oe{constructor(o,r,m,M,I=null){this.isReverse_=M,this.resultGenerator_=I,this.nodeStack_=[];let G=1;for(;!o.isEmpty();)if(G=r?m(o.key,r):1,M&&(G*=-1),G<0)o=this.isReverse_?o.left:o.right;else{if(0===G){this.nodeStack_.push(o);break}this.nodeStack_.push(o),o=this.isReverse_?o.right:o.left}}getNext(){if(0===this.nodeStack_.length)return null;let r,o=this.nodeStack_.pop();if(r=this.resultGenerator_?this.resultGenerator_(o.key,o.value):{key:o.key,value:o.value},this.isReverse_)for(o=o.left;!o.isEmpty();)this.nodeStack_.push(o),o=o.right;else for(o=o.right;!o.isEmpty();)this.nodeStack_.push(o),o=o.left;return r}hasNext(){return this.nodeStack_.length>0}peek(){if(0===this.nodeStack_.length)return null;const o=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(o.key,o.value):{key:o.key,value:o.value}}}let hr,ht=(()=>{class c{constructor(r,m,M,I,G){this.key=r,this.value=m,this.color=M??c.RED,this.left=I??Cn.EMPTY_NODE,this.right=G??Cn.EMPTY_NODE}copy(r,m,M,I,G){return new c(r??this.key,m??this.value,M??this.color,I??this.left,G??this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(r){return this.left.inorderTraversal(r)||!!r(this.key,this.value)||this.right.inorderTraversal(r)}reverseTraversal(r){return this.right.reverseTraversal(r)||r(this.key,this.value)||this.left.reverseTraversal(r)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(r,m,M){let I=this;const G=M(r,I.key);return I=G<0?I.copy(null,null,null,I.left.insert(r,m,M),null):0===G?I.copy(null,m,null,null,null):I.copy(null,null,null,null,I.right.insert(r,m,M)),I.fixUp_()}removeMin_(){if(this.left.isEmpty())return Cn.EMPTY_NODE;let r=this;return!r.left.isRed_()&&!r.left.left.isRed_()&&(r=r.moveRedLeft_()),r=r.copy(null,null,null,r.left.removeMin_(),null),r.fixUp_()}remove(r,m){let M,I;if(M=this,m(r,M.key)<0)!M.left.isEmpty()&&!M.left.isRed_()&&!M.left.left.isRed_()&&(M=M.moveRedLeft_()),M=M.copy(null,null,null,M.left.remove(r,m),null);else{if(M.left.isRed_()&&(M=M.rotateRight_()),!M.right.isEmpty()&&!M.right.isRed_()&&!M.right.left.isRed_()&&(M=M.moveRedRight_()),0===m(r,M.key)){if(M.right.isEmpty())return Cn.EMPTY_NODE;I=M.right.min_(),M=M.copy(I.key,I.value,null,null,M.right.removeMin_())}M=M.copy(null,null,null,null,M.right.remove(r,m))}return M.fixUp_()}isRed_(){return this.color}fixUp_(){let r=this;return r.right.isRed_()&&!r.left.isRed_()&&(r=r.rotateLeft_()),r.left.isRed_()&&r.left.left.isRed_()&&(r=r.rotateRight_()),r.left.isRed_()&&r.right.isRed_()&&(r=r.colorFlip_()),r}moveRedLeft_(){let r=this.colorFlip_();return r.right.left.isRed_()&&(r=r.copy(null,null,null,null,r.right.rotateRight_()),r=r.rotateLeft_(),r=r.colorFlip_()),r}moveRedRight_(){let r=this.colorFlip_();return r.left.left.isRed_()&&(r=r.rotateRight_(),r=r.colorFlip_()),r}rotateLeft_(){const r=this.copy(null,null,c.RED,null,this.right.left);return this.right.copy(null,null,this.color,r,null)}rotateRight_(){const r=this.copy(null,null,c.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,r)}colorFlip_(){const r=this.left.copy(null,null,!this.left.color,null,null),m=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,r,m)}checkMaxDepth_(){const r=this.check_();return Math.pow(2,r)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const r=this.left.check_();if(r!==this.right.check_())throw new Error("Black depths differ");return r+(this.isRed_()?0:1)}}return c.RED=!0,c.BLACK=!1,c})();class Cn{constructor(o,r=Cn.EMPTY_NODE){this.comparator_=o,this.root_=r}insert(o,r){return new Cn(this.comparator_,this.root_.insert(o,r,this.comparator_).copy(null,null,ht.BLACK,null,null))}remove(o){return new Cn(this.comparator_,this.root_.remove(o,this.comparator_).copy(null,null,ht.BLACK,null,null))}get(o){let r,m=this.root_;for(;!m.isEmpty();){if(r=this.comparator_(o,m.key),0===r)return m.value;r<0?m=m.left:r>0&&(m=m.right)}return null}getPredecessorKey(o){let r,m=this.root_,M=null;for(;!m.isEmpty();){if(r=this.comparator_(o,m.key),0===r){if(m.left.isEmpty())return M?M.key:null;for(m=m.left;!m.right.isEmpty();)m=m.right;return m.key}r<0?m=m.left:r>0&&(M=m,m=m.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(o){return this.root_.inorderTraversal(o)}reverseTraversal(o){return this.root_.reverseTraversal(o)}getIterator(o){return new Oe(this.root_,null,this.comparator_,!1,o)}getIteratorFrom(o,r){return new Oe(this.root_,o,this.comparator_,!1,r)}getReverseIteratorFrom(o,r){return new Oe(this.root_,o,this.comparator_,!0,r)}getReverseIterator(o){return new Oe(this.root_,null,this.comparator_,!0,o)}}function ni(c,o){return vo(c.name,o.name)}function Li(c,o){return vo(c,o)}Cn.EMPTY_NODE=new class Bt{copy(o,r,m,M,I){return this}insert(o,r,m){return new ht(o,r,null)}remove(o,r){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(o){return!1}reverseTraversal(o){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}};const lo=function(c){return"number"==typeof c?"number:"+Ur(c):"string:"+c},Ya=function(c){if(c.isLeafNode()){const o=c.val();(0,qt.hu)("string"==typeof o||"number"==typeof o||"object"==typeof o&&(0,qt.r3)(o,".sv"),"Priority must be a string or number.")}else(0,qt.hu)(c===hr||c.isEmpty(),"priority of unexpected type.");(0,qt.hu)(c===hr||c.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};let Ys,Du,Oc,Eo=(()=>{class c{constructor(r,m=c.__childrenNodeConstructor.EMPTY_NODE){this.value_=r,this.priorityNode_=m,this.lazyHash_=null,(0,qt.hu)(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),Ya(this.priorityNode_)}static set __childrenNodeConstructor(r){Ys=r}static get __childrenNodeConstructor(){return Ys}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(r){return new c(this.value_,r)}getImmediateChild(r){return".priority"===r?this.priorityNode_:c.__childrenNodeConstructor.EMPTY_NODE}getChild(r){return no(r)?this:".priority"===Zr(r)?this.priorityNode_:c.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(r,m){return null}updateImmediateChild(r,m){return".priority"===r?this.updatePriority(m):m.isEmpty()&&".priority"!==r?this:c.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(r,m).updatePriority(this.priorityNode_)}updateChild(r,m){const M=Zr(r);return null===M?m:m.isEmpty()&&".priority"!==M?this:((0,qt.hu)(".priority"!==M||1===qa(r),".priority must be the last token in a path"),this.updateImmediateChild(M,c.__childrenNodeConstructor.EMPTY_NODE.updateChild(Ro(r),m)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(r,m){return!1}val(r){return r&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let r="";this.priorityNode_.isEmpty()||(r+="priority:"+lo(this.priorityNode_.val())+":");const m=typeof this.value_;r+=m+":",r+="number"===m?Ur(this.value_):this.value_,this.lazyHash_=Xo(r)}return this.lazyHash_}getValue(){return this.value_}compareTo(r){return r===c.__childrenNodeConstructor.EMPTY_NODE?1:r instanceof c.__childrenNodeConstructor?-1:((0,qt.hu)(r.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(r))}compareToLeafNode_(r){const m=typeof r.value_,M=typeof this.value_,I=c.VALUE_TYPE_ORDER.indexOf(m),G=c.VALUE_TYPE_ORDER.indexOf(M);return(0,qt.hu)(I>=0,"Unknown leaf type: "+m),(0,qt.hu)(G>=0,"Unknown leaf type: "+M),I===G?"object"===M?0:this.value_<r.value_?-1:this.value_===r.value_?0:1:G-I}withIndex(){return this}isIndexed(){return!0}equals(r){return r===this||!!r.isLeafNode()&&(this.value_===r.value_&&this.priorityNode_.equals(r.priorityNode_))}}return c.VALUE_TYPE_ORDER=["object","boolean","number","string"],c})();const qo=new class zd extends Rs{compare(o,r){const m=o.node.getPriority(),M=r.node.getPriority(),I=m.compareTo(M);return 0===I?vo(o.name,r.name):I}isDefinedOn(o){return!o.getPriority().isEmpty()}indexedValueChanged(o,r){return!o.getPriority().equals(r.getPriority())}minPost(){return qr.MIN}maxPost(){return new qr(Xr,new Eo("[PRIORITY-POST]",Oc))}makePost(o,r){const m=Du(o);return new qr(r,new Eo("[PRIORITY-POST]",m))}toString(){return".priority"}},Pu=Math.log(2);class Gp{constructor(o){this.count=parseInt(Math.log(o+1)/Pu,10),this.current_=this.count-1;const M=(I=>parseInt(Array(this.count+1).join("1"),2))();this.bits_=o+1&M}nextBitIsOne(){const o=!(this.bits_&1<<this.current_);return this.current_--,o}}const $c=function(c,o,r,m){c.sort(o);const M=function(_t,Gt){const Pn=Gt-_t;let kn,fi;if(0===Pn)return null;if(1===Pn)return kn=c[_t],fi=r?r(kn):kn,new ht(fi,kn.node,ht.BLACK,null,null);{const xi=parseInt(Pn/2,10)+_t,Ui=M(_t,xi),qi=M(xi+1,Gt);return kn=c[xi],fi=r?r(kn):kn,new ht(fi,kn.node,ht.BLACK,Ui,qi)}},Me=function(_t){let Gt=null,Pn=null,kn=c.length;const fi=function(Ui,qi){const Dr=kn-Ui,ro=kn;kn-=Ui;const Do=M(Dr+1,ro),Ia=c[Dr],ko=r?r(Ia):Ia;xi(new ht(ko,Ia.node,qi,null,Do))},xi=function(Ui){Gt?(Gt.left=Ui,Gt=Ui):(Pn=Ui,Gt=Ui)};for(let Ui=0;Ui<_t.count;++Ui){const qi=_t.nextBitIsOne(),Dr=Math.pow(2,_t.count-(Ui+1));qi?fi(Dr,ht.BLACK):(fi(Dr,ht.BLACK),fi(Dr,ht.RED))}return Pn}(new Gp(c.length));return new Cn(m||o,Me)};let fd;const jl={};class xa{constructor(o,r){this.indexes_=o,this.indexSet_=r}static get Default(){return(0,qt.hu)(jl&&qo,"ChildrenNode.ts has not been loaded"),fd=fd||new xa({".priority":jl},{".priority":qo}),fd}get(o){const r=(0,qt.DV)(this.indexes_,o);if(!r)throw new Error("No index defined for "+o);return r instanceof Cn?r:null}hasIndex(o){return(0,qt.r3)(this.indexSet_,o.toString())}addIndex(o,r){(0,qt.hu)(o!==te,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const m=[];let M=!1;const I=r.getIterator(qr.Wrap);let Me,G=I.getNext();for(;G;)M=M||o.isDefinedOn(G.node),m.push(G),G=I.getNext();Me=M?$c(m,o.getCompare()):jl;const _t=o.toString(),Gt=Object.assign({},this.indexSet_);Gt[_t]=o;const Pn=Object.assign({},this.indexes_);return Pn[_t]=Me,new xa(Pn,Gt)}addToIndexes(o,r){const m=(0,qt.UI)(this.indexes_,(M,I)=>{const G=(0,qt.DV)(this.indexSet_,I);if((0,qt.hu)(G,"Missing index implementation for "+I),M===jl){if(G.isDefinedOn(o.node)){const Me=[],_t=r.getIterator(qr.Wrap);let Gt=_t.getNext();for(;Gt;)Gt.name!==o.name&&Me.push(Gt),Gt=_t.getNext();return Me.push(o),$c(Me,G.getCompare())}return jl}{const Me=r.get(o.name);let _t=M;return Me&&(_t=_t.remove(new qr(o.name,Me))),_t.insert(o,o.node)}});return new xa(m,this.indexSet_)}removeFromIndexes(o,r){const m=(0,qt.UI)(this.indexes_,M=>{if(M===jl)return M;{const I=r.get(o.name);return I?M.remove(new qr(o.name,I)):M}});return new xa(m,this.indexSet_)}}let ec,eo=(()=>{class c{constructor(r,m,M){this.children_=r,this.priorityNode_=m,this.indexMap_=M,this.lazyHash_=null,this.priorityNode_&&Ya(this.priorityNode_),this.children_.isEmpty()&&(0,qt.hu)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}static get EMPTY_NODE(){return ec||(ec=new c(new Cn(Li),null,xa.Default))}isLeafNode(){return!1}getPriority(){return this.priorityNode_||ec}updatePriority(r){return this.children_.isEmpty()?this:new c(this.children_,r,this.indexMap_)}getImmediateChild(r){if(".priority"===r)return this.getPriority();{const m=this.children_.get(r);return null===m?ec:m}}getChild(r){const m=Zr(r);return null===m?this:this.getImmediateChild(m).getChild(Ro(r))}hasChild(r){return null!==this.children_.get(r)}updateImmediateChild(r,m){if((0,qt.hu)(m,"We should always be passing snapshot nodes"),".priority"===r)return this.updatePriority(m);{const M=new qr(r,m);let I,G;m.isEmpty()?(I=this.children_.remove(r),G=this.indexMap_.removeFromIndexes(M,this.children_)):(I=this.children_.insert(r,m),G=this.indexMap_.addToIndexes(M,this.children_));const Me=I.isEmpty()?ec:this.priorityNode_;return new c(I,Me,G)}}updateChild(r,m){const M=Zr(r);if(null===M)return m;{(0,qt.hu)(".priority"!==Zr(r)||1===qa(r),".priority must be the last token in a path");const I=this.getImmediateChild(M).updateChild(Ro(r),m);return this.updateImmediateChild(M,I)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(r){if(this.isEmpty())return null;const m={};let M=0,I=0,G=!0;if(this.forEachChild(qo,(Me,_t)=>{m[Me]=_t.val(r),M++,G&&c.INTEGER_REGEXP_.test(Me)?I=Math.max(I,Number(Me)):G=!1}),!r&&G&&I<2*M){const Me=[];for(const _t in m)Me[_t]=m[_t];return Me}return r&&!this.getPriority().isEmpty()&&(m[".priority"]=this.getPriority().val()),m}hash(){if(null===this.lazyHash_){let r="";this.getPriority().isEmpty()||(r+="priority:"+lo(this.getPriority().val())+":"),this.forEachChild(qo,(m,M)=>{const I=M.hash();""!==I&&(r+=":"+m+":"+I)}),this.lazyHash_=""===r?"":Xo(r)}return this.lazyHash_}getPredecessorChildName(r,m,M){const I=this.resolveIndex_(M);if(I){const G=I.getPredecessorKey(new qr(r,m));return G?G.name:null}return this.children_.getPredecessorKey(r)}getFirstChildName(r){const m=this.resolveIndex_(r);if(m){const M=m.minKey();return M&&M.name}return this.children_.minKey()}getFirstChild(r){const m=this.getFirstChildName(r);return m?new qr(m,this.children_.get(m)):null}getLastChildName(r){const m=this.resolveIndex_(r);if(m){const M=m.maxKey();return M&&M.name}return this.children_.maxKey()}getLastChild(r){const m=this.getLastChildName(r);return m?new qr(m,this.children_.get(m)):null}forEachChild(r,m){const M=this.resolveIndex_(r);return M?M.inorderTraversal(I=>m(I.name,I.node)):this.children_.inorderTraversal(m)}getIterator(r){return this.getIteratorFrom(r.minPost(),r)}getIteratorFrom(r,m){const M=this.resolveIndex_(m);if(M)return M.getIteratorFrom(r,I=>I);{const I=this.children_.getIteratorFrom(r.name,qr.Wrap);let G=I.peek();for(;null!=G&&m.compare(G,r)<0;)I.getNext(),G=I.peek();return I}}getReverseIterator(r){return this.getReverseIteratorFrom(r.maxPost(),r)}getReverseIteratorFrom(r,m){const M=this.resolveIndex_(m);if(M)return M.getReverseIteratorFrom(r,I=>I);{const I=this.children_.getReverseIteratorFrom(r.name,qr.Wrap);let G=I.peek();for(;null!=G&&m.compare(G,r)>0;)I.getNext(),G=I.peek();return I}}compareTo(r){return this.isEmpty()?r.isEmpty()?0:-1:r.isLeafNode()||r.isEmpty()?1:r===Ba?-1:0}withIndex(r){if(r===te||this.indexMap_.hasIndex(r))return this;{const m=this.indexMap_.addIndex(r,this.children_);return new c(this.children_,this.priorityNode_,m)}}isIndexed(r){return r===te||this.indexMap_.hasIndex(r)}equals(r){if(r===this)return!0;if(r.isLeafNode())return!1;{const m=r;if(this.getPriority().equals(m.getPriority())){if(this.children_.count()===m.children_.count()){const M=this.getIterator(qo),I=m.getIterator(qo);let G=M.getNext(),Me=I.getNext();for(;G&&Me;){if(G.name!==Me.name||!G.node.equals(Me.node))return!1;G=M.getNext(),Me=I.getNext()}return null===G&&null===Me}return!1}return!1}}resolveIndex_(r){return r===te?null:this.indexMap_.get(r.toString())}}return c.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,c})();const Ba=new class md extends eo{constructor(){super(new Cn(Li),eo.EMPTY_NODE,xa.Default)}compareTo(o){return o===this?0:1}equals(o){return o===this}getPriority(){return this}getImmediateChild(o){return eo.EMPTY_NODE}isEmpty(){return!1}};Object.defineProperties(qr,{MIN:{value:new qr(Co,eo.EMPTY_NODE)},MAX:{value:new qr(Xr,Ba)}}),go.__EMPTY_NODE=eo.EMPTY_NODE,Eo.__childrenNodeConstructor=eo,function Hr(c){hr=c}(Ba),function Iu(c){Oc=c}(Ba);const Tc=!0;function ha(c,o=null){if(null===c)return eo.EMPTY_NODE;if("object"==typeof c&&".priority"in c&&(o=c[".priority"]),(0,qt.hu)(null===o||"string"==typeof o||"number"==typeof o||"object"==typeof o&&".sv"in o,"Invalid priority type found: "+typeof o),"object"==typeof c&&".value"in c&&null!==c[".value"]&&(c=c[".value"]),"object"!=typeof c||".sv"in c)return new Eo(c,ha(o));if(c instanceof Array||!Tc){let r=eo.EMPTY_NODE;return mr(c,(m,M)=>{if((0,qt.r3)(c,m)&&"."!==m.substring(0,1)){const I=ha(M);(I.isLeafNode()||!I.isEmpty())&&(r=r.updateImmediateChild(m,I))}}),r.updatePriority(ha(o))}{const r=[];let m=!1;if(mr(c,(G,Me)=>{if("."!==G.substring(0,1)){const _t=ha(Me);_t.isEmpty()||(m=m||!_t.getPriority().isEmpty(),r.push(new qr(G,_t)))}}),0===r.length)return eo.EMPTY_NODE;const I=$c(r,ni,G=>G.name,Li);if(m){const G=$c(r,qo.getCompare());return new eo(I,ha(o),new xa({".priority":G},{".priority":qo}))}return new eo(I,ha(o),xa.Default)}}!function Yp(c){Du=c}(ha);class gd extends Rs{constructor(o){super(),this.indexPath_=o,(0,qt.hu)(!no(o)&&".priority"!==Zr(o),"Can't create PathIndex with empty path or .priority key")}extractChild(o){return o.getChild(this.indexPath_)}isDefinedOn(o){return!o.getChild(this.indexPath_).isEmpty()}compare(o,r){const m=this.extractChild(o.node),M=this.extractChild(r.node),I=m.compareTo(M);return 0===I?vo(o.name,r.name):I}makePost(o,r){const m=ha(o),M=eo.EMPTY_NODE.updateChild(this.indexPath_,m);return new qr(r,M)}maxPost(){const o=eo.EMPTY_NODE.updateChild(this.indexPath_,Ba);return new qr(Xr,o)}toString(){return Ls(this.indexPath_,0).join("/")}}const _d=new class $p extends Rs{compare(o,r){const m=o.node.compareTo(r.node);return 0===m?vo(o.name,r.name):m}isDefinedOn(o){return!0}indexedValueChanged(o,r){return!o.equals(r)}minPost(){return qr.MIN}maxPost(){return qr.MAX}makePost(o,r){const m=ha(o);return new qr(r,m)}toString(){return".value"}};function Au(c){return{type:"value",snapshotNode:c}}function El(c,o){return{type:"child_added",snapshotNode:o,childName:c}}function uc(c,o){return{type:"child_removed",snapshotNode:o,childName:c}}function Dc(c,o,r){return{type:"child_changed",snapshotNode:o,childName:c,oldSnap:r}}class Gd{constructor(o){this.index_=o}updateChild(o,r,m,M,I,G){(0,qt.hu)(o.isIndexed(this.index_),"A node must be indexed if only a child is updated");const Me=o.getImmediateChild(r);return Me.getChild(M).equals(m.getChild(M))&&Me.isEmpty()===m.isEmpty()||(null!=G&&(m.isEmpty()?o.hasChild(r)?G.trackChildChange(uc(r,Me)):(0,qt.hu)(o.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):Me.isEmpty()?G.trackChildChange(El(r,m)):G.trackChildChange(Dc(r,m,Me))),o.isLeafNode()&&m.isEmpty())?o:o.updateImmediateChild(r,m).withIndex(this.index_)}updateFullNode(o,r,m){return null!=m&&(o.isLeafNode()||o.forEachChild(qo,(M,I)=>{r.hasChild(M)||m.trackChildChange(uc(M,I))}),r.isLeafNode()||r.forEachChild(qo,(M,I)=>{if(o.hasChild(M)){const G=o.getImmediateChild(M);G.equals(I)||m.trackChildChange(Dc(M,I,G))}else m.trackChildChange(El(M,I))})),r.withIndex(this.index_)}updatePriority(o,r){return o.isEmpty()?eo.EMPTY_NODE:o.updatePriority(r)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}class pc{constructor(o){this.indexedFilter_=new Gd(o.getIndex()),this.index_=o.getIndex(),this.startPost_=pc.getStartPost_(o),this.endPost_=pc.getEndPost_(o),this.startIsInclusive_=!o.startAfterSet_,this.endIsInclusive_=!o.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(o){const r=this.startIsInclusive_?this.index_.compare(this.getStartPost(),o)<=0:this.index_.compare(this.getStartPost(),o)<0,m=this.endIsInclusive_?this.index_.compare(o,this.getEndPost())<=0:this.index_.compare(o,this.getEndPost())<0;return r&&m}updateChild(o,r,m,M,I,G){return this.matches(new qr(r,m))||(m=eo.EMPTY_NODE),this.indexedFilter_.updateChild(o,r,m,M,I,G)}updateFullNode(o,r,m){r.isLeafNode()&&(r=eo.EMPTY_NODE);let M=r.withIndex(this.index_);M=M.updatePriority(eo.EMPTY_NODE);const I=this;return r.forEachChild(qo,(G,Me)=>{I.matches(new qr(G,Me))||(M=M.updateImmediateChild(G,eo.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(o,M,m)}updatePriority(o,r){return o}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(o){if(o.hasStart()){const r=o.getIndexStartName();return o.getIndex().makePost(o.getIndexStartValue(),r)}return o.getIndex().minPost()}static getEndPost_(o){if(o.hasEnd()){const r=o.getIndexEndName();return o.getIndex().makePost(o.getIndexEndValue(),r)}return o.getIndex().maxPost()}}class $d{constructor(o){this.withinDirectionalStart=r=>this.reverse_?this.withinEndPost(r):this.withinStartPost(r),this.withinDirectionalEnd=r=>this.reverse_?this.withinStartPost(r):this.withinEndPost(r),this.withinStartPost=r=>{const m=this.index_.compare(this.rangedFilter_.getStartPost(),r);return this.startIsInclusive_?m<=0:m<0},this.withinEndPost=r=>{const m=this.index_.compare(r,this.rangedFilter_.getEndPost());return this.endIsInclusive_?m<=0:m<0},this.rangedFilter_=new pc(o),this.index_=o.getIndex(),this.limit_=o.getLimit(),this.reverse_=!o.isViewFromLeft(),this.startIsInclusive_=!o.startAfterSet_,this.endIsInclusive_=!o.endBeforeSet_}updateChild(o,r,m,M,I,G){return this.rangedFilter_.matches(new qr(r,m))||(m=eo.EMPTY_NODE),o.getImmediateChild(r).equals(m)?o:o.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(o,r,m,M,I,G):this.fullLimitUpdateChild_(o,r,m,I,G)}updateFullNode(o,r,m){let M;if(r.isLeafNode()||r.isEmpty())M=eo.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<r.numChildren()&&r.isIndexed(this.index_)){let I;M=eo.EMPTY_NODE.withIndex(this.index_),I=this.reverse_?r.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):r.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);let G=0;for(;I.hasNext()&&G<this.limit_;){const Me=I.getNext();if(this.withinDirectionalStart(Me)){if(!this.withinDirectionalEnd(Me))break;M=M.updateImmediateChild(Me.name,Me.node),G++}}}else{let I;M=r.withIndex(this.index_),M=M.updatePriority(eo.EMPTY_NODE),I=this.reverse_?M.getReverseIterator(this.index_):M.getIterator(this.index_);let G=0;for(;I.hasNext();){const Me=I.getNext();G<this.limit_&&this.withinDirectionalStart(Me)&&this.withinDirectionalEnd(Me)?G++:M=M.updateImmediateChild(Me.name,eo.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(o,M,m)}updatePriority(o,r){return o}filtersNodes(){return!0}getIndexedFilter(){return this.rangedFilter_.getIndexedFilter()}getIndex(){return this.index_}fullLimitUpdateChild_(o,r,m,M,I){let G;if(this.reverse_){const kn=this.index_.getCompare();G=(fi,xi)=>kn(xi,fi)}else G=this.index_.getCompare();const Me=o;(0,qt.hu)(Me.numChildren()===this.limit_,"");const _t=new qr(r,m),Gt=this.reverse_?Me.getFirstChild(this.index_):Me.getLastChild(this.index_),Pn=this.rangedFilter_.matches(_t);if(Me.hasChild(r)){const kn=Me.getImmediateChild(r);let fi=M.getChildAfterChild(this.index_,Gt,this.reverse_);for(;null!=fi&&(fi.name===r||Me.hasChild(fi.name));)fi=M.getChildAfterChild(this.index_,fi,this.reverse_);const xi=null==fi?1:G(fi,_t);if(Pn&&!m.isEmpty()&&xi>=0)return I?.trackChildChange(Dc(r,m,kn)),Me.updateImmediateChild(r,m);{I?.trackChildChange(uc(r,kn));const qi=Me.updateImmediateChild(r,eo.EMPTY_NODE);return null!=fi&&this.rangedFilter_.matches(fi)?(I?.trackChildChange(El(fi.name,fi.node)),qi.updateImmediateChild(fi.name,fi.node)):qi}}return m.isEmpty()?o:Pn&&G(Gt,_t)>=0?(null!=I&&(I.trackChildChange(uc(Gt.name,Gt.node)),I.trackChildChange(El(r,m))),Me.updateImmediateChild(r,m).updateImmediateChild(Gt.name,eo.EMPTY_NODE)):o}}class Ic{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=qo}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return(0,qt.hu)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return(0,qt.hu)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:Co}hasEnd(){return this.endSet_}getIndexEndValue(){return(0,qt.hu)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return(0,qt.hu)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:Xr}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return(0,qt.hu)(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===qo}copy(){const o=new Ic;return o.limitSet_=this.limitSet_,o.limit_=this.limit_,o.startSet_=this.startSet_,o.startAfterSet_=this.startAfterSet_,o.indexStartValue_=this.indexStartValue_,o.startNameSet_=this.startNameSet_,o.indexStartName_=this.indexStartName_,o.endSet_=this.endSet_,o.endBeforeSet_=this.endBeforeSet_,o.indexEndValue_=this.indexEndValue_,o.endNameSet_=this.endNameSet_,o.indexEndName_=this.indexEndName_,o.index_=this.index_,o.viewFrom_=this.viewFrom_,o}}function We(c,o,r){const m=c.copy();return m.startSet_=!0,void 0===o&&(o=null),m.indexStartValue_=o,null!=r?(m.startNameSet_=!0,m.indexStartName_=r):(m.startNameSet_=!1,m.indexStartName_=""),m}function Qt(c,o,r){const m=c.copy();return m.endSet_=!0,void 0===o&&(o=null),m.indexEndValue_=o,void 0!==r?(m.endNameSet_=!0,m.indexEndName_=r):(m.endNameSet_=!1,m.indexEndName_=""),m}function ai(c,o){const r=c.copy();return r.index_=o,r}function Ki(c){const o={};if(c.isDefault())return o;let r;if(c.index_===qo?r="$priority":c.index_===_d?r="$value":c.index_===te?r="$key":((0,qt.hu)(c.index_ instanceof gd,"Unrecognized index type!"),r=c.index_.toString()),o.orderBy=(0,qt.Wl)(r),c.startSet_){const m=c.startAfterSet_?"startAfter":"startAt";o[m]=(0,qt.Wl)(c.indexStartValue_),c.startNameSet_&&(o[m]+=","+(0,qt.Wl)(c.indexStartName_))}if(c.endSet_){const m=c.endBeforeSet_?"endBefore":"endAt";o[m]=(0,qt.Wl)(c.indexEndValue_),c.endNameSet_&&(o[m]+=","+(0,qt.Wl)(c.indexEndName_))}return c.limitSet_&&(c.isViewFromLeft()?o.limitToFirst=c.limit_:o.limitToLast=c.limit_),o}function Cr(c){const o={};if(c.startSet_&&(o.sp=c.indexStartValue_,c.startNameSet_&&(o.sn=c.indexStartName_),o.sin=!c.startAfterSet_),c.endSet_&&(o.ep=c.indexEndValue_,c.endNameSet_&&(o.en=c.indexEndName_),o.ein=!c.endBeforeSet_),c.limitSet_){o.l=c.limit_;let r=c.viewFrom_;""===r&&(r=c.isViewFromLeft()?"l":"r"),o.vf=r}return c.index_!==qo&&(o.i=c.index_.toString()),o}class ho extends Ka{constructor(o,r,m,M){super(),this.repoInfo_=o,this.onDataUpdate_=r,this.authTokenProvider_=m,this.appCheckTokenProvider_=M,this.log_=yi("p:rest:"),this.listens_={}}reportStats(o){throw new Error("Method not implemented.")}static getListenId_(o,r){return void 0!==r?"tag$"+r:((0,qt.hu)(o._queryParams.isDefault(),"should have a tag if it's not a default query."),o._path.toString())}listen(o,r,m,M){const I=o._path.toString();this.log_("Listen called for "+I+" "+o._queryIdentifier);const G=ho.getListenId_(o,m),Me={};this.listens_[G]=Me;const _t=Ki(o._queryParams);this.restRequest_(I+".json",_t,(Gt,Pn)=>{let kn=Pn;if(404===Gt&&(kn=null,Gt=null),null===Gt&&this.onDataUpdate_(I,kn,!1,m),(0,qt.DV)(this.listens_,G)===Me){let fi;fi=Gt?401===Gt?"permission_denied":"rest_error:"+Gt:"ok",M(fi,null)}})}unlisten(o,r){const m=ho.getListenId_(o,r);delete this.listens_[m]}get(o){const r=Ki(o._queryParams),m=o._path.toString(),M=new qt.BH;return this.restRequest_(m+".json",r,(I,G)=>{let Me=G;404===I&&(Me=null,I=null),null===I?(this.onDataUpdate_(m,Me,!1,null),M.resolve(Me)):M.reject(new Error(Me))}),M.promise}refreshAuthToken(o){}restRequest_(o,r={},m){return r.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([M,I])=>{M&&M.accessToken&&(r.auth=M.accessToken),I&&I.token&&(r.ac=I.token);const G=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+o+"?ns="+this.repoInfo_.namespace+(0,qt.xO)(r);this.log_("Sending REST request for "+G);const Me=new XMLHttpRequest;Me.onreadystatechange=()=>{if(m&&4===Me.readyState){this.log_("REST Response for "+G+" received. status:",Me.status,"response:",Me.responseText);let _t=null;if(Me.status>=200&&Me.status<300){try{_t=(0,qt.cI)(Me.responseText)}catch{Nr("Failed to parse JSON response for "+G+": "+Me.responseText)}m(null,_t)}else 401!==Me.status&&404!==Me.status&&Nr("Got unsuccessful REST response for "+G+" Status: "+Me.status),m(Me.status);m=null}},Me.open("GET",G,!0),Me.send()})}}class Oa{constructor(){this.rootNode_=eo.EMPTY_NODE}getNode(o){return this.rootNode_.getChild(o)}updateSnapshot(o,r){this.rootNode_=this.rootNode_.updateChild(o,r)}}function ds(){return{value:null,children:new Map}}function nl(c,o,r){if(no(o))c.value=r,c.children.clear();else if(null!==c.value)c.value=c.value.updateChild(o,r);else{const m=Zr(o);c.children.has(m)||c.children.set(m,ds()),nl(c.children.get(m),o=Ro(o),r)}}function tc(c,o){if(no(o))return c.value=null,c.children.clear(),!0;if(null!==c.value){if(c.value.isLeafNode())return!1;{const r=c.value;return c.value=null,r.forEachChild(qo,(m,M)=>{nl(c,new jr(m),M)}),tc(c,o)}}if(c.children.size>0){const r=Zr(o);return o=Ro(o),c.children.has(r)&&tc(c.children.get(r),o)&&c.children.delete(r),0===c.children.size}return!0}function ks(c,o,r){null!==c.value?r(o,c.value):function il(c,o){c.children.forEach((r,m)=>{o(m,r)})}(c,(m,M)=>{ks(M,new jr(o.toString()+"/"+m),r)})}class Lu{constructor(o){this.collection_=o,this.last_=null}get(){const o=this.collection_.get(),r=Object.assign({},o);return this.last_&&mr(this.last_,(m,M)=>{r[m]=r[m]-M}),this.last_=o,r}}class og{constructor(o,r){this.server_=r,this.statsToReport_={},this.statsListener_=new Lu(o);const m=1e4+2e4*Math.random();Us(this.reportStats_.bind(this),Math.floor(m))}reportStats_(){const o=this.statsListener_.get(),r={};let m=!1;mr(o,(M,I)=>{I>0&&(0,qt.r3)(this.statsToReport_,M)&&(r[M]=I,m=!0)}),m&&this.server_.reportStats(r),Us(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}var xl=(()=>{return(c=xl||(xl={}))[c.OVERWRITE=0]="OVERWRITE",c[c.MERGE=1]="MERGE",c[c.ACK_USER_WRITE=2]="ACK_USER_WRITE",c[c.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",xl;var c})();function fc(c){return{fromUser:!1,fromServer:!0,queryId:c,tagged:!0}}class Kc{constructor(o,r,m){this.path=o,this.affectedTree=r,this.revert=m,this.type=xl.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}operationForChild(o){if(no(this.path)){if(null!=this.affectedTree.value)return(0,qt.hu)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const r=this.affectedTree.subtree(new jr(o));return new Kc(Ir(),r,this.revert)}}return(0,qt.hu)(Zr(this.path)===o,"operationForChild called for unrelated child."),new Kc(Ro(this.path),this.affectedTree,this.revert)}}class yd{constructor(o,r){this.source=o,this.path=r,this.type=xl.LISTEN_COMPLETE}operationForChild(o){return no(this.path)?new yd(this.source,Ir()):new yd(this.source,Ro(this.path))}}class Qc{constructor(o,r,m){this.source=o,this.path=r,this.snap=m,this.type=xl.OVERWRITE}operationForChild(o){return no(this.path)?new Qc(this.source,Ir(),this.snap.getImmediateChild(o)):new Qc(this.source,Ro(this.path),this.snap)}}class Kd{constructor(o,r,m){this.source=o,this.path=r,this.children=m,this.type=xl.MERGE}operationForChild(o){if(no(this.path)){const r=this.children.subtree(new jr(o));return r.isEmpty()?null:r.value?new Qc(this.source,Ir(),r.value):new Kd(this.source,Ir(),r)}return(0,qt.hu)(Zr(this.path)===o,"Can't get a merge for a child not on the path of the operation"),new Kd(this.source,Ro(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}class Hl{constructor(o,r,m){this.node_=o,this.fullyInitialized_=r,this.filtered_=m}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(o){if(no(o))return this.isFullyInitialized()&&!this.filtered_;const r=Zr(o);return this.isCompleteForChild(r)}isCompleteForChild(o){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(o)}getNode(){return this.node_}}class ag{constructor(o){this.query_=o,this.index_=this.query_._queryParams.getIndex()}}function Ac(c,o,r,m,M,I){const G=m.filter(Me=>Me.type===r);G.sort((Me,_t)=>function Qp(c,o,r){if(null==o.childName||null==r.childName)throw(0,qt.g5)("Should only compare child_ events.");const m=new qr(o.childName,o.snapshotNode),M=new qr(r.childName,r.snapshotNode);return c.index_.compare(m,M)}(c,Me,_t)),G.forEach(Me=>{const _t=function tf(c,o,r){return"value"===o.type||"child_removed"===o.type||(o.prevName=r.getPredecessorChildName(o.childName,o.snapshotNode,c.index_)),o}(c,Me,I);M.forEach(Gt=>{Gt.respondsTo(Me.type)&&o.push(Gt.createEvent(_t,c.query_))})})}function Xc(c,o){return{eventCache:c,serverCache:o}}function nc(c,o,r,m){return Xc(new Hl(o,r,m),c.serverCache)}function Qd(c,o,r,m){return Xc(c.eventCache,new Hl(o,r,m))}function Xd(c){return c.eventCache.isFullyInitialized()?c.eventCache.getNode():null}function Ml(c){return c.serverCache.isFullyInitialized()?c.serverCache.getNode():null}let Zd;class Go{constructor(o,r=(()=>(Zd||(Zd=new Cn(Zo)),Zd))()){this.value=o,this.children=r}static fromObject(o){let r=new Go(null);return mr(o,(m,M)=>{r=r.set(new jr(m),M)}),r}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(o,r){if(null!=this.value&&r(this.value))return{path:Ir(),value:this.value};if(no(o))return null;{const m=Zr(o),M=this.children.get(m);if(null!==M){const I=M.findRootMostMatchingPathAndValue(Ro(o),r);return null!=I?{path:zo(new jr(m),I.path),value:I.value}:null}return null}}findRootMostValueAndPath(o){return this.findRootMostMatchingPathAndValue(o,()=>!0)}subtree(o){if(no(o))return this;{const r=Zr(o),m=this.children.get(r);return null!==m?m.subtree(Ro(o)):new Go(null)}}set(o,r){if(no(o))return new Go(r,this.children);{const m=Zr(o),I=(this.children.get(m)||new Go(null)).set(Ro(o),r),G=this.children.insert(m,I);return new Go(this.value,G)}}remove(o){if(no(o))return this.children.isEmpty()?new Go(null):new Go(null,this.children);{const r=Zr(o),m=this.children.get(r);if(m){const M=m.remove(Ro(o));let I;return I=M.isEmpty()?this.children.remove(r):this.children.insert(r,M),null===this.value&&I.isEmpty()?new Go(null):new Go(this.value,I)}return this}}get(o){if(no(o))return this.value;{const r=Zr(o),m=this.children.get(r);return m?m.get(Ro(o)):null}}setTree(o,r){if(no(o))return r;{const m=Zr(o),I=(this.children.get(m)||new Go(null)).setTree(Ro(o),r);let G;return G=I.isEmpty()?this.children.remove(m):this.children.insert(m,I),new Go(this.value,G)}}fold(o){return this.fold_(Ir(),o)}fold_(o,r){const m={};return this.children.inorderTraversal((M,I)=>{m[M]=I.fold_(zo(o,M),r)}),r(o,this.value,m)}findOnPath(o,r){return this.findOnPath_(o,Ir(),r)}findOnPath_(o,r,m){const M=!!this.value&&m(r,this.value);if(M)return M;if(no(o))return null;{const I=Zr(o),G=this.children.get(I);return G?G.findOnPath_(Ro(o),zo(r,I),m):null}}foreachOnPath(o,r){return this.foreachOnPath_(o,Ir(),r)}foreachOnPath_(o,r,m){if(no(o))return this;{this.value&&m(r,this.value);const M=Zr(o),I=this.children.get(M);return I?I.foreachOnPath_(Ro(o),zo(r,M),m):new Go(null)}}foreach(o){this.foreach_(Ir(),o)}foreach_(o,r){this.children.inorderTraversal((m,M)=>{M.foreach_(zo(o,m),r)}),this.value&&r(o,this.value)}foreachChild(o){this.children.inorderTraversal((r,m)=>{m.value&&o(r,m.value)})}}class Sl{constructor(o){this.writeTree_=o}static empty(){return new Sl(new Go(null))}}function Cd(c,o,r){if(no(o))return new Sl(new Go(r));{const m=c.writeTree_.findRootMostValueAndPath(o);if(null!=m){const M=m.path;let I=m.value;const G=ua(M,o);return I=I.updateChild(G,r),new Sl(c.writeTree_.set(M,I))}{const M=new Go(r),I=c.writeTree_.setTree(o,M);return new Sl(I)}}}function Zp(c,o,r){let m=c;return mr(r,(M,I)=>{m=Cd(m,zo(o,M),I)}),m}function nf(c,o){if(no(o))return Sl.empty();{const r=c.writeTree_.setTree(o,new Go(null));return new Sl(r)}}function Jp(c,o){return null!=wl(c,o)}function wl(c,o){const r=c.writeTree_.findRootMostValueAndPath(o);return null!=r?c.writeTree_.get(r.path).getChild(ua(r.path,o)):null}function qp(c){const o=[],r=c.writeTree_.value;return null!=r?r.isLeafNode()||r.forEachChild(qo,(m,M)=>{o.push(new qr(m,M))}):c.writeTree_.children.inorderTraversal((m,M)=>{null!=M.value&&o.push(new qr(m,M.value))}),o}function Ol(c,o){if(no(o))return c;{const r=wl(c,o);return new Sl(null!=r?new Go(r):c.writeTree_.subtree(o))}}function Jd(c){return c.writeTree_.isEmpty()}function Vl(c,o){return rf(Ir(),c.writeTree_,o)}function rf(c,o,r){if(null!=o.value)return r.updateChild(c,o.value);{let m=null;return o.children.inorderTraversal((M,I)=>{".priority"===M?((0,qt.hu)(null!==I.value,"Priority writes must always be leaf nodes"),m=I.value):r=rf(zo(c,M),I,r)}),!r.getChild(c).isEmpty()&&null!==m&&(r=r.updateChild(zo(c,".priority"),m)),r}}function ku(c,o){return $s(o,c)}function sf(c,o){if(c.snap)return cs(c.path,o);for(const r in c.children)if(c.children.hasOwnProperty(r)&&cs(zo(c.path,r),o))return!0;return!1}function eh(c){return c.visible}function Gs(c,o,r){let m=Sl.empty();for(let M=0;M<c.length;++M){const I=c[M];if(o(I)){const G=I.path;let Me;if(I.snap)cs(r,G)?(Me=ua(r,G),m=Cd(m,Me,I.snap)):cs(G,r)&&(Me=ua(G,r),m=Cd(m,Ir(),I.snap.getChild(Me)));else{if(!I.children)throw(0,qt.g5)("WriteRecord should have .snap or .children");if(cs(r,G))Me=ua(r,G),m=Zp(m,Me,I.children);else if(cs(G,r))if(Me=ua(G,r),no(Me))m=Zp(m,Ir(),I.children);else{const _t=(0,qt.DV)(I.children,Zr(Me));if(_t){const Gt=_t.getChild(Ro(Me));m=Cd(m,Ir(),Gt)}}}}}return m}function Zc(c,o,r,m,M){if(m||M){const I=Ol(c.visibleWrites,o);return!M&&Jd(I)?r:M||null!=r||Jp(I,Ir())?Vl(Gs(c.allWrites,function(Gt){return(Gt.visible||M)&&(!m||!~m.indexOf(Gt.writeId))&&(cs(Gt.path,o)||cs(o,Gt.path))},o),r||eo.EMPTY_NODE):null}{const I=wl(c.visibleWrites,o);if(null!=I)return I;{const G=Ol(c.visibleWrites,o);return Jd(G)?r:null!=r||Jp(G,Ir())?Vl(G,r||eo.EMPTY_NODE):null}}}function Fu(c,o,r,m){return Zc(c.writeTree,c.treePath,o,r,m)}function us(c,o){return function th(c,o,r){let m=eo.EMPTY_NODE;const M=wl(c.visibleWrites,o);if(M)return M.isLeafNode()||M.forEachChild(qo,(I,G)=>{m=m.updateImmediateChild(I,G)}),m;if(r){const I=Ol(c.visibleWrites,o);return r.forEachChild(qo,(G,Me)=>{const _t=Vl(Ol(I,new jr(G)),Me);m=m.updateImmediateChild(G,_t)}),qp(I).forEach(G=>{m=m.updateImmediateChild(G.name,G.node)}),m}return qp(Ol(c.visibleWrites,o)).forEach(G=>{m=m.updateImmediateChild(G.name,G.node)}),m}(c.writeTree,c.treePath,o)}function Lc(c,o,r,m){return function Jc(c,o,r,m,M){(0,qt.hu)(m||M,"Either existingEventSnap or existingServerSnap must exist");const I=zo(o,r);if(Jp(c.visibleWrites,I))return null;{const G=Ol(c.visibleWrites,I);return Jd(G)?M.getChild(r):Vl(G,M.getChild(r))}}(c.writeTree,c.treePath,o,r,m)}function eu(c,o){return function ih(c,o){return wl(c.visibleWrites,o)}(c.writeTree,zo(c.treePath,o))}function rh(c,o,r){return function nh(c,o,r,m){const M=zo(o,r),I=wl(c.visibleWrites,M);return null!=I?I:m.isCompleteForChild(r)?Vl(Ol(c.visibleWrites,M),m.getNode().getImmediateChild(r)):null}(c.writeTree,c.treePath,o,r)}function oh(c,o){return $s(zo(c.treePath,o),c.writeTree)}function $s(c,o){return{treePath:c,writeTree:o}}class ah{constructor(){this.changeMap=new Map}trackChildChange(o){const r=o.type,m=o.childName;(0,qt.hu)("child_added"===r||"child_changed"===r||"child_removed"===r,"Only child changes supported for tracking"),(0,qt.hu)(".priority"!==m,"Only non-priority child changes can be tracked.");const M=this.changeMap.get(m);if(M){const I=M.type;if("child_added"===r&&"child_removed"===I)this.changeMap.set(m,Dc(m,o.snapshotNode,M.snapshotNode));else if("child_removed"===r&&"child_added"===I)this.changeMap.delete(m);else if("child_removed"===r&&"child_changed"===I)this.changeMap.set(m,uc(m,M.oldSnap));else if("child_changed"===r&&"child_added"===I)this.changeMap.set(m,El(m,o.snapshotNode));else{if("child_changed"!==r||"child_changed"!==I)throw(0,qt.g5)("Illegal combination of changes: "+o+" occurred after "+M);this.changeMap.set(m,Dc(m,o.snapshotNode,M.oldSnap))}}else this.changeMap.set(m,o)}getChanges(){return Array.from(this.changeMap.values())}}const cf=new class Bu{getCompleteChild(o){return null}getChildAfterChild(o,r,m){return null}};class Wl{constructor(o,r,m=null){this.writes_=o,this.viewCache_=r,this.optCompleteServerCache_=m}getCompleteChild(o){const r=this.viewCache_.eventCache;if(r.isCompleteForChild(o))return r.getNode().getImmediateChild(o);{const m=null!=this.optCompleteServerCache_?new Hl(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return rh(this.writes_,o,m)}}getChildAfterChild(o,r,m){const M=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:Ml(this.viewCache_),I=function cg(c,o,r,m,M,I){return function lg(c,o,r,m,M,I,G){let Me;const _t=Ol(c.visibleWrites,o),Gt=wl(_t,Ir());if(null!=Gt)Me=Gt;else{if(null==r)return[];Me=Vl(_t,r)}if(Me=Me.withIndex(G),Me.isEmpty()||Me.isLeafNode())return[];{const Pn=[],kn=G.getCompare(),fi=I?Me.getReverseIteratorFrom(m,G):Me.getIteratorFrom(m,G);let xi=fi.getNext();for(;xi&&Pn.length<M;)0!==kn(xi,m)&&Pn.push(xi),xi=fi.getNext();return Pn}}(c.writeTree,c.treePath,o,r,m,M,I)}(this.writes_,M,r,1,m,o);return 0===I.length?null:I[0]}}function Rc(c,o,r,m,M,I){const G=o.eventCache;if(null!=eu(m,r))return o;{let Me,_t;if(no(r))if((0,qt.hu)(o.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),o.serverCache.isFiltered()){const Gt=Ml(o),kn=us(m,Gt instanceof eo?Gt:eo.EMPTY_NODE);Me=c.filter.updateFullNode(o.eventCache.getNode(),kn,I)}else{const Gt=Fu(m,Ml(o));Me=c.filter.updateFullNode(o.eventCache.getNode(),Gt,I)}else{const Gt=Zr(r);if(".priority"===Gt){(0,qt.hu)(1===qa(r),"Can't have a priority with additional path components");const Pn=G.getNode();_t=o.serverCache.getNode();const kn=Lc(m,r,Pn,_t);Me=null!=kn?c.filter.updatePriority(Pn,kn):G.getNode()}else{const Pn=Ro(r);let kn;if(G.isCompleteForChild(Gt)){_t=o.serverCache.getNode();const fi=Lc(m,r,G.getNode(),_t);kn=null!=fi?G.getNode().getImmediateChild(Gt).updateChild(Pn,fi):G.getNode().getImmediateChild(Gt)}else kn=rh(m,Gt,o.serverCache);Me=null!=kn?c.filter.updateChild(G.getNode(),Gt,kn,Pn,M,I):G.getNode()}}return nc(o,Me,G.isFullyInitialized()||no(r),c.filter.filtersNodes())}}function iu(c,o,r,m,M,I,G,Me){const _t=o.serverCache;let Gt;const Pn=G?c.filter:c.filter.getIndexedFilter();if(no(r))Gt=Pn.updateFullNode(_t.getNode(),m,null);else if(Pn.filtersNodes()&&!_t.isFiltered()){const xi=_t.getNode().updateChild(r,m);Gt=Pn.updateFullNode(_t.getNode(),xi,null)}else{const xi=Zr(r);if(!_t.isCompleteForPath(r)&&qa(r)>1)return o;const Ui=Ro(r),Dr=_t.getNode().getImmediateChild(xi).updateChild(Ui,m);Gt=".priority"===xi?Pn.updatePriority(_t.getNode(),Dr):Pn.updateChild(_t.getNode(),xi,Dr,Ui,cf,null)}const kn=Qd(o,Gt,_t.isFullyInitialized()||no(r),Pn.filtersNodes());return Rc(c,kn,r,M,new Wl(M,kn,I),Me)}function Uu(c,o,r,m,M,I,G){const Me=o.eventCache;let _t,Gt;const Pn=new Wl(M,o,I);if(no(r))Gt=c.filter.updateFullNode(o.eventCache.getNode(),m,G),_t=nc(o,Gt,!0,c.filter.filtersNodes());else{const kn=Zr(r);if(".priority"===kn)Gt=c.filter.updatePriority(o.eventCache.getNode(),m),_t=nc(o,Gt,Me.isFullyInitialized(),Me.isFiltered());else{const fi=Ro(r),xi=Me.getNode().getImmediateChild(kn);let Ui;if(no(fi))Ui=m;else{const qi=Pn.getCompleteChild(kn);Ui=null!=qi?".priority"===Ws(fi)&&qi.getChild(Wc(fi)).isEmpty()?qi:qi.updateChild(fi,m):eo.EMPTY_NODE}_t=xi.equals(Ui)?o:nc(o,c.filter.updateChild(Me.getNode(),kn,Ui,fi,Pn,G),Me.isFullyInitialized(),c.filter.filtersNodes())}}return _t}function sh(c,o){return c.eventCache.isCompleteForChild(o)}function _e(c,o,r){return r.foreach((m,M)=>{o=o.updateChild(m,M)}),o}function F(c,o,r,m,M,I,G,Me){if(o.serverCache.getNode().isEmpty()&&!o.serverCache.isFullyInitialized())return o;let Gt,_t=o;Gt=no(r)?m:new Go(null).setTree(r,m);const Pn=o.serverCache.getNode();return Gt.children.inorderTraversal((kn,fi)=>{if(Pn.hasChild(kn)){const Ui=_e(0,o.serverCache.getNode().getImmediateChild(kn),fi);_t=iu(c,_t,new jr(kn),Ui,M,I,G,Me)}}),Gt.children.inorderTraversal((kn,fi)=>{const xi=!o.serverCache.isCompleteForChild(kn)&&null===fi.value;if(!Pn.hasChild(kn)&&!xi){const qi=_e(0,o.serverCache.getNode().getImmediateChild(kn),fi);_t=iu(c,_t,new jr(kn),qi,M,I,G,Me)}}),_t}class gn{constructor(o,r){this.query_=o,this.eventRegistrations_=[];const m=this.query_._queryParams,M=new Gd(m.getIndex()),I=function Ke(c){return c.loadsAllData()?new Gd(c.getIndex()):c.hasLimit()?new $d(c):new pc(c)}(m);this.processor_=function tu(c){return{filter:c}}(I);const G=r.serverCache,Me=r.eventCache,_t=M.updateFullNode(eo.EMPTY_NODE,G.getNode(),null),Gt=I.updateFullNode(eo.EMPTY_NODE,Me.getNode(),null),Pn=new Hl(_t,G.isFullyInitialized(),M.filtersNodes()),kn=new Hl(Gt,Me.isFullyInitialized(),I.filtersNodes());this.viewCache_=Xc(kn,Pn),this.eventGenerator_=new ag(this.query_)}get query(){return this.query_}}function Gi(c,o){const r=Ml(c.viewCache_);return r&&(c.query._queryParams.loadsAllData()||!no(o)&&!r.getImmediateChild(Zr(o)).isEmpty())?r.getChild(o):null}function er(c){return 0===c.eventRegistrations_.length}function vr(c,o,r){const m=[];if(r){(0,qt.hu)(null==o,"A cancel should cancel all event registrations.");const M=c.query._path;c.eventRegistrations_.forEach(I=>{const G=I.createCancelEvent(r,M);G&&m.push(G)})}if(o){let M=[];for(let I=0;I<c.eventRegistrations_.length;++I){const G=c.eventRegistrations_[I];if(G.matches(o)){if(o.hasAnyCallback()){M=M.concat(c.eventRegistrations_.slice(I+1));break}}else M.push(G)}c.eventRegistrations_=M}else c.eventRegistrations_=[];return m}function la(c,o,r,m){o.type===xl.MERGE&&null!==o.source.queryId&&((0,qt.hu)(Ml(c.viewCache_),"We should always have a full cache before handling merges"),(0,qt.hu)(Xd(c.viewCache_),"Missing event cache, even though we have a server cache"));const M=c.viewCache_,I=function nu(c,o,r,m,M){const I=new ah;let G,Me;if(r.type===xl.OVERWRITE){const Gt=r;Gt.source.fromUser?G=Uu(c,o,Gt.path,Gt.snap,m,M,I):((0,qt.hu)(Gt.source.fromServer,"Unknown source."),Me=Gt.source.tagged||o.serverCache.isFiltered()&&!no(Gt.path),G=iu(c,o,Gt.path,Gt.snap,m,M,Me,I))}else if(r.type===xl.MERGE){const Gt=r;Gt.source.fromUser?G=function Bv(c,o,r,m,M,I,G){let Me=o;return m.foreach((_t,Gt)=>{const Pn=zo(r,_t);sh(o,Zr(Pn))&&(Me=Uu(c,Me,Pn,Gt,M,I,G))}),m.foreach((_t,Gt)=>{const Pn=zo(r,_t);sh(o,Zr(Pn))||(Me=Uu(c,Me,Pn,Gt,M,I,G))}),Me}(c,o,Gt.path,Gt.children,m,M,I):((0,qt.hu)(Gt.source.fromServer,"Unknown source."),Me=Gt.source.tagged||o.serverCache.isFiltered(),G=F(c,o,Gt.path,Gt.children,m,M,Me,I))}else if(r.type===xl.ACK_USER_WRITE){const Gt=r;G=Gt.revert?function kt(c,o,r,m,M,I){let G;if(null!=eu(m,r))return o;{const Me=new Wl(m,o,M),_t=o.eventCache.getNode();let Gt;if(no(r)||".priority"===Zr(r)){let Pn;if(o.serverCache.isFullyInitialized())Pn=Fu(m,Ml(o));else{const kn=o.serverCache.getNode();(0,qt.hu)(kn instanceof eo,"serverChildren would be complete if leaf node"),Pn=us(m,kn)}Gt=c.filter.updateFullNode(_t,Pn,I)}else{const Pn=Zr(r);let kn=rh(m,Pn,o.serverCache);null==kn&&o.serverCache.isCompleteForChild(Pn)&&(kn=_t.getImmediateChild(Pn)),Gt=null!=kn?c.filter.updateChild(_t,Pn,kn,Ro(r),Me,I):o.eventCache.getNode().hasChild(Pn)?c.filter.updateChild(_t,Pn,eo.EMPTY_NODE,Ro(r),Me,I):_t,Gt.isEmpty()&&o.serverCache.isFullyInitialized()&&(G=Fu(m,Ml(o)),G.isLeafNode()&&(Gt=c.filter.updateFullNode(Gt,G,I)))}return G=o.serverCache.isFullyInitialized()||null!=eu(m,Ir()),nc(o,Gt,G,c.filter.filtersNodes())}}(c,o,Gt.path,m,M,I):function Y(c,o,r,m,M,I,G){if(null!=eu(M,r))return o;const Me=o.serverCache.isFiltered(),_t=o.serverCache;if(null!=m.value){if(no(r)&&_t.isFullyInitialized()||_t.isCompleteForPath(r))return iu(c,o,r,_t.getNode().getChild(r),M,I,Me,G);if(no(r)){let Gt=new Go(null);return _t.getNode().forEachChild(te,(Pn,kn)=>{Gt=Gt.set(new jr(Pn),kn)}),F(c,o,r,Gt,M,I,Me,G)}return o}{let Gt=new Go(null);return m.foreach((Pn,kn)=>{const fi=zo(r,Pn);_t.isCompleteForPath(fi)&&(Gt=Gt.set(Pn,_t.getNode().getChild(fi)))}),F(c,o,r,Gt,M,I,Me,G)}}(c,o,Gt.path,Gt.affectedTree,m,M,I)}else{if(r.type!==xl.LISTEN_COMPLETE)throw(0,qt.g5)("Unknown operation type: "+r.type);G=function Te(c,o,r,m,M){const I=o.serverCache;return Rc(c,Qd(o,I.getNode(),I.isFullyInitialized()||no(r),I.isFiltered()),r,m,cf,M)}(c,o,r.path,m,I)}const _t=I.getChanges();return function mc(c,o,r){const m=o.eventCache;if(m.isFullyInitialized()){const M=m.getNode().isLeafNode()||m.getNode().isEmpty(),I=Xd(c);(r.length>0||!c.eventCache.isFullyInitialized()||M&&!m.getNode().equals(I)||!m.getNode().getPriority().equals(I.getPriority()))&&r.push(Au(Xd(o)))}}(o,G,_t),{viewCache:G,changes:_t}}(c.processor_,M,o,r,m);return function df(c,o){(0,qt.hu)(o.eventCache.getNode().isIndexed(c.filter.getIndex()),"Event snap not indexed"),(0,qt.hu)(o.serverCache.getNode().isIndexed(c.filter.getIndex()),"Server snap not indexed")}(c.processor_,I.viewCache),(0,qt.hu)(I.viewCache.serverCache.isFullyInitialized()||!M.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),c.viewCache_=I.viewCache,qc(c,I.changes,I.viewCache.eventCache.getNode(),null)}function qc(c,o,r,m){return function Kp(c,o,r,m){const M=[],I=[];return o.forEach(G=>{"child_changed"===G.type&&c.index_.indexedValueChanged(G.oldSnap,G.snapshotNode)&&I.push(function Yd(c,o){return{type:"child_moved",snapshotNode:o,childName:c}}(G.childName,G.snapshotNode))}),Ac(c,M,"child_removed",o,m,r),Ac(c,M,"child_added",o,m,r),Ac(c,M,"child_moved",I,m,r),Ac(c,M,"child_changed",o,m,r),Ac(c,M,"value",o,m,r),M}(c.eventGenerator_,o,r,m?[m]:c.eventRegistrations_)}let ru,Wu;class Ta{constructor(){this.views=new Map}}function xd(c,o,r,m){const M=o.source.queryId;if(null!==M){const I=c.views.get(M);return(0,qt.hu)(null!=I,"SyncTree gave us an op for an invalid query."),la(I,o,r,m)}{let I=[];for(const G of c.views.values())I=I.concat(la(G,o,r,m));return I}}function ju(c,o,r,m,M){const G=c.views.get(o._queryIdentifier);if(!G){let Me=Fu(r,M?m:null),_t=!1;Me?_t=!0:m instanceof eo?(Me=us(r,m),_t=!1):(Me=eo.EMPTY_NODE,_t=!1);const Gt=Xc(new Hl(Me,_t,!1),new Hl(m,M,!1));return new gn(o,Gt)}return G}function uf(c){const o=[];for(const r of c.views.values())r.query._queryParams.loadsAllData()||o.push(r);return o}function zl(c,o){let r=null;for(const m of c.views.values())r=r||Gi(m,o);return r}function dg(c,o){return o._queryParams.loadsAllData()?Vu(c):c.views.get(o._queryIdentifier)}function wC(c,o){return null!=dg(c,o)}function ic(c){return null!=Vu(c)}function Vu(c){for(const o of c.views.values())if(o.query._queryParams.loadsAllData())return o;return null}let OC=1;class ug{constructor(o){this.listenProvider_=o,this.syncPointTree_=new Go(null),this.pendingWriteTree_=function lf(){return{visibleWrites:Sl.empty(),allWrites:[],lastWriteId:-1}}(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function pf(c,o,r,m,M){return function sg(c,o,r,m,M){(0,qt.hu)(m>c.lastWriteId,"Stacking an older write on top of newer ones"),void 0===M&&(M=!0),c.allWrites.push({path:o,snap:r,writeId:m,visible:M}),M&&(c.visibleWrites=Cd(c.visibleWrites,o,r)),c.lastWriteId=m}(c.pendingWriteTree_,o,r,m,M),M?Yu(c,new Qc({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},o,r)):[]}function kc(c,o,r=!1){const m=function qd(c,o){for(let r=0;r<c.allWrites.length;r++){const m=c.allWrites[r];if(m.writeId===o)return m}return null}(c.pendingWriteTree_,o);if(function af(c,o){const r=c.allWrites.findIndex(Me=>Me.writeId===o);(0,qt.hu)(r>=0,"removeWrite called with nonexistent writeId.");const m=c.allWrites[r];c.allWrites.splice(r,1);let M=m.visible,I=!1,G=c.allWrites.length-1;for(;M&&G>=0;){const Me=c.allWrites[G];Me.visible&&(G>=r&&sf(Me,m.path)?M=!1:cs(m.path,Me.path)&&(I=!0)),G--}return!!M&&(I?(function Ed(c){c.visibleWrites=Gs(c.allWrites,eh,Ir()),c.lastWriteId=c.allWrites.length>0?c.allWrites[c.allWrites.length-1].writeId:-1}(c),!0):(m.snap?c.visibleWrites=nf(c.visibleWrites,m.path):mr(m.children,_t=>{c.visibleWrites=nf(c.visibleWrites,zo(m.path,_t))}),!0))}(c.pendingWriteTree_,o)){let I=new Go(null);return null!=m.snap?I=I.set(Ir(),!0):mr(m.children,G=>{I=I.set(new jr(G),!0)}),Yu(c,new Kc(m.path,I,r))}return[]}function hf(c,o,r){return Yu(c,new Qc({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},o,r))}function uh(c,o,r,m,M=!1){const I=o._path,G=c.syncPointTree_.get(I);let Me=[];if(G&&("default"===o._queryIdentifier||wC(G,o))){const _t=function dh(c,o,r,m){const M=o._queryIdentifier,I=[];let G=[];const Me=ic(c);if("default"===M)for(const[_t,Gt]of c.views.entries())G=G.concat(vr(Gt,r,m)),er(Gt)&&(c.views.delete(_t),Gt.query._queryParams.loadsAllData()||I.push(Gt.query));else{const _t=c.views.get(M);_t&&(G=G.concat(vr(_t,r,m)),er(_t)&&(c.views.delete(M),_t.query._queryParams.loadsAllData()||I.push(_t.query)))}return Me&&!ic(c)&&I.push(new(function ch(){return(0,qt.hu)(ru,"Reference.ts has not been loaded"),ru}())(o._repo,o._path)),{removed:I,events:G}}(G,o,r,m);(function ou(c){return 0===c.views.size})(G)&&(c.syncPointTree_=c.syncPointTree_.remove(I));const Gt=_t.removed;if(Me=_t.events,!M){const Pn=-1!==Gt.findIndex(fi=>fi._queryParams.loadsAllData()),kn=c.syncPointTree_.findOnPath(I,(fi,xi)=>ic(xi));if(Pn&&!kn){const fi=c.syncPointTree_.subtree(I);if(!fi.isEmpty()){const xi=function Ku(c){return c.fold((o,r,m)=>{if(r&&ic(r))return[Vu(r)];{let M=[];return r&&(M=uf(r)),mr(m,(I,G)=>{M=M.concat(G)}),M}})}(fi);for(let Ui=0;Ui<xi.length;++Ui){const qi=xi[Ui],Dr=qi.query,ro=Md(c,qi);c.listenProvider_.startListening(hh(Dr),Gu(c,Dr),ro.hashFn,ro.onComplete)}}}!kn&&Gt.length>0&&!m&&(Pn?c.listenProvider_.stopListening(hh(o),null):Gt.forEach(fi=>{const xi=c.queryToTagMap.get($u(fi));c.listenProvider_.stopListening(hh(fi),xi)}))}!function DC(c,o){for(let r=0;r<o.length;++r){const m=o[r];if(!m._queryParams.loadsAllData()){const M=$u(m),I=c.queryToTagMap.get(M);c.queryToTagMap.delete(M),c.tagToQueryMap.delete(I)}}}(c,Gt)}return Me}function fg(c,o,r,m){const M=gg(c,m);if(null!=M){const I=_g(M),G=I.path,Me=I.queryId,_t=ua(G,o);return gf(c,G,new Qc(fc(Me),_t,r))}return[]}function mg(c,o,r,m=!1){const M=o._path;let I=null,G=!1;c.syncPointTree_.foreachOnPath(M,(fi,xi)=>{const Ui=ua(fi,M);I=I||zl(xi,Ui),G=G||ic(xi)});let _t,Me=c.syncPointTree_.get(M);Me?(G=G||ic(Me),I=I||zl(Me,Ir())):(Me=new Ta,c.syncPointTree_=c.syncPointTree_.set(M,Me)),null!=I?_t=!0:(_t=!1,I=eo.EMPTY_NODE,c.syncPointTree_.subtree(M).foreachChild((xi,Ui)=>{const qi=zl(Ui,Ir());qi&&(I=I.updateImmediateChild(xi,qi))}));const Gt=wC(Me,o);if(!Gt&&!o._queryParams.loadsAllData()){const fi=$u(o);(0,qt.hu)(!c.queryToTagMap.has(fi),"View does not exist, but we have a tag");const xi=function IC(){return OC++}();c.queryToTagMap.set(fi,xi),c.tagToQueryMap.set(xi,fi)}let kn=function Hu(c,o,r,m,M,I){const G=ju(c,o,m,M,I);return c.views.has(o._queryIdentifier)||c.views.set(o._queryIdentifier,G),function _r(c,o){c.eventRegistrations_.push(o)}(G,r),function Tl(c,o){const r=c.viewCache_.eventCache,m=[];return r.getNode().isLeafNode()||r.getNode().forEachChild(qo,(I,G)=>{m.push(El(I,G))}),r.isFullyInitialized()&&m.push(Au(r.getNode())),qc(c,m,r.getNode(),o)}(G,r)}(Me,o,r,ku(c.pendingWriteTree_,M),I,_t);if(!Gt&&!G&&!m){const fi=dg(Me,o);kn=kn.concat(function vg(c,o,r){const m=o._path,M=Gu(c,o),I=Md(c,r),G=c.listenProvider_.startListening(hh(o),M,I.hashFn,I.onComplete),Me=c.syncPointTree_.subtree(m);if(M)(0,qt.hu)(!ic(Me.value),"If we're adding a query, it shouldn't be shadowed");else{const _t=Me.fold((Gt,Pn,kn)=>{if(!no(Gt)&&Pn&&ic(Pn))return[Vu(Pn).query];{let fi=[];return Pn&&(fi=fi.concat(uf(Pn).map(xi=>xi.query))),mr(kn,(xi,Ui)=>{fi=fi.concat(Ui)}),fi}});for(let Gt=0;Gt<_t.length;++Gt){const Pn=_t[Gt];c.listenProvider_.stopListening(hh(Pn),Gu(c,Pn))}}return G}(c,o,fi))}return kn}function zu(c,o,r){const M=c.pendingWriteTree_,I=c.syncPointTree_.findOnPath(o,(G,Me)=>{const Gt=zl(Me,ua(G,o));if(Gt)return Gt});return Zc(M,o,I,r,!0)}function Yu(c,o){return mf(o,c.syncPointTree_,null,ku(c.pendingWriteTree_,Ir()))}function mf(c,o,r,m){if(no(c.path))return ph(c,o,r,m);{const M=o.get(Ir());null==r&&null!=M&&(r=zl(M,Ir()));let I=[];const G=Zr(c.path),Me=c.operationForChild(G),_t=o.children.get(G);if(_t&&Me){const Gt=r?r.getImmediateChild(G):null,Pn=oh(m,G);I=I.concat(mf(Me,_t,Gt,Pn))}return M&&(I=I.concat(xd(M,c,m,r))),I}}function ph(c,o,r,m){const M=o.get(Ir());null==r&&null!=M&&(r=zl(M,Ir()));let I=[];return o.children.inorderTraversal((G,Me)=>{const _t=r?r.getImmediateChild(G):null,Gt=oh(m,G),Pn=c.operationForChild(G);Pn&&(I=I.concat(ph(Pn,Me,_t,Gt)))}),M&&(I=I.concat(xd(M,c,m,r))),I}function Md(c,o){const r=o.query,m=Gu(c,r);return{hashFn:()=>(function ei(c){return c.viewCache_.serverCache.getNode()}(o)||eo.EMPTY_NODE).hash(),onComplete:M=>{if("ok"===M)return m?function hg(c,o,r){const m=gg(c,r);if(m){const M=_g(m),I=M.path,G=M.queryId,Me=ua(I,o);return gf(c,I,new yd(fc(G),Me))}return[]}(c,r._path,m):function TC(c,o){return Yu(c,new yd({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},o))}(c,r._path);{const I=function Wa(c,o){let r="Unknown Error";"too_big"===c?r="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===c?r="Client doesn't have permission to access the desired data.":"unavailable"===c&&(r="The service is unavailable");const m=new Error(c+" at "+o._path.toString()+": "+r);return m.code=c.toUpperCase(),m}(M,r);return uh(c,r,null,I)}}}}function Gu(c,o){const r=$u(o);return c.queryToTagMap.get(r)}function $u(c){return c._path.toString()+"$"+c._queryIdentifier}function gg(c,o){return c.tagToQueryMap.get(o)}function _g(c){const o=c.indexOf("$");return(0,qt.hu)(-1!==o&&o<c.length-1,"Bad queryKey."),{queryId:c.substr(o+1),path:new jr(c.substr(0,o))}}function gf(c,o,r){const m=c.syncPointTree_.get(o);return(0,qt.hu)(m,"Missing sync point for query tag that we're tracking"),xd(m,r,ku(c.pendingWriteTree_,o),null)}function hh(c){return c._queryParams.loadsAllData()&&!c._queryParams.isDefault()?new(function jv(){return(0,qt.hu)(Wu,"Reference.ts has not been loaded"),Wu}())(c._repo,c._path):c}class _f{constructor(o){this.node_=o}getImmediateChild(o){const r=this.node_.getImmediateChild(o);return new _f(r)}node(){return this.node_}}class Qu{constructor(o,r){this.syncTree_=o,this.path_=r}getImmediateChild(o){const r=zo(this.path_,o);return new Qu(this.syncTree_,r)}node(){return zu(this.syncTree_,this.path_)}}const PC=function(c){return(c=c||{}).timestamp=c.timestamp||(new Date).getTime(),c},bg=function(c,o,r){return c&&"object"==typeof c?((0,qt.hu)(".sv"in c,"Unexpected leaf node or priority contents"),"string"==typeof c[".sv"]?Ix(c[".sv"],o,r):"object"==typeof c[".sv"]?AC(c[".sv"],o):void(0,qt.hu)(!1,"Unexpected server value: "+JSON.stringify(c,null,2))):c},Ix=function(c,o,r){if("timestamp"===c)return r.timestamp;(0,qt.hu)(!1,"Unexpected server value: "+c)},AC=function(c,o,r){c.hasOwnProperty("increment")||(0,qt.hu)(!1,"Unexpected server value: "+JSON.stringify(c,null,2));const m=c.increment;"number"!=typeof m&&(0,qt.hu)(!1,"Unexpected increment value: "+m);const M=o.node();if((0,qt.hu)(null!==M&&typeof M<"u","Expected ChildrenNode.EMPTY_NODE for nulls"),!M.isLeafNode())return m;const G=M.getValue();return"number"!=typeof G?m:G+m},Xu=function(c,o,r,m){return Sd(o,new Qu(r,c),m)},yg=function(c,o,r){return Sd(c,new _f(o),r)};function Sd(c,o,r){const m=c.getPriority().val(),M=bg(m,o.getImmediateChild(".priority"),r);let I;if(c.isLeafNode()){const G=c,Me=bg(G.getValue(),o,r);return Me!==G.getValue()||M!==G.getPriority().val()?new Eo(Me,ha(M)):c}{const G=c;return I=G,M!==G.getPriority().val()&&(I=I.updatePriority(new Eo(M))),G.forEachChild(qo,(Me,_t)=>{const Gt=Sd(_t,o.getImmediateChild(Me),r);Gt!==_t&&(I=I.updateImmediateChild(Me,Gt))}),I}}class su{constructor(o="",r=null,m={children:{},childCount:0}){this.name=o,this.parent=r,this.node=m}}function vf(c,o){let r=o instanceof jr?o:new jr(o),m=c,M=Zr(r);for(;null!==M;){const I=(0,qt.DV)(m.node.children,M)||{children:{},childCount:0};m=new su(M,m,I),r=Ro(r),M=Zr(r)}return m}function wd(c){return c.node.value}function Cg(c,o){c.node.value=o,xg(c)}function Vv(c){return c.node.childCount>0}function fh(c,o){mr(c.node.children,(r,m)=>{o(new su(r,c,m))})}function Eg(c,o,r,m){r&&!m&&o(c),fh(c,M=>{Eg(M,o,!0,m)}),r&&m&&o(c)}function lu(c){return new jr(null===c.parent?c.name:lu(c.parent)+"/"+c.name)}function xg(c){null!==c.parent&&function Mg(c,o,r){const m=function Wv(c){return void 0===wd(c)&&!Vv(c)}(r),M=(0,qt.r3)(c.node.children,o);m&&M?(delete c.node.children[o],c.node.childCount--,xg(c)):!m&&!M&&(c.node.children[o]=r.node,c.node.childCount++,xg(c))}(c.parent,c.name,c)}const mh=/[\[\].#$\/\u0000-\u001F\u007F]/,LC=/[\[\].#$\u0000-\u001F\u007F]/,Sg=10485760,yf=function(c){return"string"==typeof c&&0!==c.length&&!mh.test(c)},zv=function(c){return"string"==typeof c&&0!==c.length&&!LC.test(c)},Zu=function(c){return null===c||"string"==typeof c||"number"==typeof c&&!Rr(c)||c&&"object"==typeof c&&(0,qt.r3)(c,".sv")},gc=function(c,o,r,m){m&&void 0===o||Nc((0,qt.gK)(c,"value"),o,r)},Nc=function(c,o,r){const m=r instanceof jr?new zc(r,c):r;if(void 0===o)throw new Error(c+"contains undefined "+pa(m));if("function"==typeof o)throw new Error(c+"contains a function "+pa(m)+" with contents = "+o.toString());if(Rr(o))throw new Error(c+"contains "+o.toString()+" "+pa(m));if("string"==typeof o&&o.length>Sg/3&&(0,qt.ug)(o)>Sg)throw new Error(c+"contains a string greater than "+Sg+" utf8 bytes "+pa(m)+" ('"+o.substring(0,50)+"...')");if(o&&"object"==typeof o){let M=!1,I=!1;if(mr(o,(G,Me)=>{if(".value"===G)M=!0;else if(".priority"!==G&&".sv"!==G&&(I=!0,!yf(G)))throw new Error(c+" contains an invalid key ("+G+") "+pa(m)+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');(function Yc(c,o){c.parts_.length>0&&(c.byteLength_+=1),c.parts_.push(o),c.byteLength_+=(0,qt.ug)(o),ud(c)})(m,G),Nc(c,Me,m),function Tu(c){const o=c.parts_.pop();c.byteLength_-=(0,qt.ug)(o),c.parts_.length>0&&(c.byteLength_-=1)}(m)}),M&&I)throw new Error(c+' contains ".value" child '+pa(m)+" in addition to actual children.")}},Gv=function(c,o,r,m){if(m&&void 0===o)return;const M=(0,qt.gK)(c,"values");if(!o||"object"!=typeof o||Array.isArray(o))throw new Error(M+" must be an object containing the children to replace.");const I=[];mr(o,(G,Me)=>{const _t=new jr(G);if(Nc(M,Me,zo(r,_t)),".priority"===Ws(_t)&&!Zu(Me))throw new Error(M+"contains an invalid value for '"+_t.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");I.push(_t)}),function(c,o){let r,m;for(r=0;r<o.length;r++){m=o[r];const I=Ls(m);for(let G=0;G<I.length;G++)if((".priority"!==I[G]||G!==I.length-1)&&!yf(I[G]))throw new Error(c+"contains an invalid key ("+I[G]+") in path "+m.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"')}o.sort(Bl);let M=null;for(r=0;r<o.length;r++){if(m=o[r],null!==M&&cs(M,m))throw new Error(c+"contains a path "+M.toString()+" that is ancestor of another path "+m.toString());M=m}}(M,I)},wg=function(c,o,r){if(!r||void 0!==o){if(Rr(o))throw new Error((0,qt.gK)(c,"priority")+"is "+o.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!Zu(o))throw new Error((0,qt.gK)(c,"priority")+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},Cf=function(c,o,r,m){if(!(m&&void 0===r||yf(r)))throw new Error((0,qt.gK)(c,o)+'was an invalid key = "'+r+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},Ef=function(c,o,r,m){if(!(m&&void 0===r||zv(r)))throw new Error((0,qt.gK)(c,o)+'was an invalid path = "'+r+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},$v=function(c,o,r,m){r&&(r=r.replace(/^\/*\.info(\/|$)/,"/")),Ef(c,o,r,m)},_c=function(c,o){if(".info"===Zr(o))throw new Error(c+" failed = Can't modify data under /.info/")},Og=function(c,o){const r=o.path.toString();if("string"!=typeof o.repoInfo.host||0===o.repoInfo.host.length||!yf(o.repoInfo.namespace)&&"localhost"!==o.repoInfo.host.split(":")[0]||0!==r.length&&!function(c){return c&&(c=c.replace(/^\/*\.info(\/|$)/,"/")),zv(c)}(r))throw new Error((0,qt.gK)(c,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')};class Kv{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function xf(c,o){let r=null;for(let m=0;m<o.length;m++){const M=o[m],I=M.getPath();null!==r&&!dl(I,r.path)&&(c.eventLists_.push(r),r=null),null===r&&(r={events:[],path:I}),r.events.push(M)}r&&c.eventLists_.push(r)}function Tg(c,o,r){xf(c,r),Qv(c,m=>dl(m,o))}function Yl(c,o,r){xf(c,r),Qv(c,m=>cs(m,o)||cs(o,m))}function Qv(c,o){c.recursionDepth_++;let r=!0;for(let m=0;m<c.eventLists_.length;m++){const M=c.eventLists_[m];M&&(o(M.path)?(vc(c.eventLists_[m]),c.eventLists_[m]=null):r=!1)}r&&(c.eventLists_=[]),c.recursionDepth_--}function vc(c){for(let o=0;o<c.events.length;o++){const r=c.events[o];if(null!==r){c.events[o]=null;const m=r.getEventRunner();Vt&&An("event: "+r.toString()),Ca(m)}}}const Xv="repo_interrupt",Zv=25;class RC{constructor(o,r,m,M){this.repoInfo_=o,this.forceRestClient_=r,this.authTokenProvider_=m,this.appCheckProvider_=M,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Kv,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=ds(),this.transactionQueueTree_=new su,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function Jv(c){const r=c.infoData_.getNode(new jr(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+r}function gh(c){return PC({timestamp:Jv(c)})}function Dg(c,o,r,m,M){c.dataUpdateCount++;const I=new jr(o);r=c.interceptServerDataCallback_?c.interceptServerDataCallback_(o,r):r;let G=[];if(M)if(m){const _t=(0,qt.UI)(r,Gt=>ha(Gt));G=function au(c,o,r,m){const M=gg(c,m);if(M){const I=_g(M),G=I.path,Me=I.queryId,_t=ua(G,o),Gt=Go.fromObject(r);return gf(c,G,new Kd(fc(Me),_t,Gt))}return[]}(c.serverSyncTree_,I,_t,M)}else{const _t=ha(r);G=fg(c.serverSyncTree_,I,_t,M)}else if(m){const _t=(0,qt.UI)(r,Gt=>ha(Gt));G=function pg(c,o,r){const m=Go.fromObject(r);return Yu(c,new Kd({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},o,m))}(c.serverSyncTree_,I,_t)}else{const _t=ha(r);G=hf(c.serverSyncTree_,I,_t)}let Me=I;G.length>0&&(Me=qu(c,I)),Yl(c.eventQueue_,Me,G)}function qv(c,o){Ig(c,"connected",o),!1===o&&function FC(c){cu(c,"onDisconnectEvents");const o=gh(c),r=ds();ks(c.onDisconnect_,Ir(),(M,I)=>{const G=Xu(M,I,c.serverSyncTree_,o);nl(r,M,G)});let m=[];ks(r,Ir(),(M,I)=>{m=m.concat(hf(c.serverSyncTree_,M,I));const G=kg(c,M);qu(c,G)}),c.onDisconnect_=ds(),Yl(c.eventQueue_,Ir(),m)}(c)}function Ig(c,o,r){const m=new jr("/.info/"+o),M=ha(r);c.infoData_.updateSnapshot(m,M);const I=hf(c.infoSyncTree_,m,M);Yl(c.eventQueue_,m,I)}function io(c){return c.nextWriteId_++}function Mf(c,o,r,m,M){cu(c,"set",{path:o.toString(),value:r,priority:m});const I=gh(c),G=ha(r,m),Me=zu(c.serverSyncTree_,o),_t=yg(G,Me,I),Gt=io(c),Pn=pf(c.serverSyncTree_,o,_t,Gt,!0);xf(c.eventQueue_,Pn),c.server_.put(o.toString(),G.val(!0),(fi,xi)=>{const Ui="ok"===fi;Ui||Nr("set at "+o+" failed: "+fi);const qi=kc(c.serverSyncTree_,Gt,!Ui);Yl(c.eventQueue_,o,qi),pl(0,M,fi,xi)});const kn=kg(c,o);qu(c,kn),Yl(c.eventQueue_,kn,[])}function BC(c,o,r){c.server_.onDisconnectCancel(o.toString(),(m,M)=>{"ok"===m&&tc(c.onDisconnect_,o),pl(0,r,m,M)})}function Pg(c,o,r,m){const M=ha(r);c.server_.onDisconnectPut(o.toString(),M.val(!0),(I,G)=>{"ok"===I&&nl(c.onDisconnect_,o,M),pl(0,m,I,G)})}function Ag(c,o,r){let m;m=".info"===Zr(o._path)?uh(c.infoSyncTree_,o,r):uh(c.serverSyncTree_,o,r),Tg(c.eventQueue_,o._path,m)}function ib(c){c.persistentConnection_&&c.persistentConnection_.interrupt(Xv)}function cu(c,...o){let r="";c.persistentConnection_&&(r=c.persistentConnection_.id+":"),An(r,...o)}function pl(c,o,r,m){o&&Ca(()=>{if("ok"===r)o(null);else{const M=(r||"error").toUpperCase();let I=M;m&&(I+=": "+m);const G=new Error(I);G.code=M,o(G)}})}function _h(c,o,r){return zu(c.serverSyncTree_,o,r)||eo.EMPTY_NODE}function Ju(c,o=c.transactionQueueTree_){if(o||Sf(c,o),wd(o)){const r=ob(c,o);(0,qt.hu)(r.length>0,"Sending zero length transaction queue"),r.every(M=>0===M.status)&&function VC(c,o,r){const m=r.map(Gt=>Gt.currentWriteId),M=_h(c,o,m);let I=M;const G=M.hash();for(let Gt=0;Gt<r.length;Gt++){const Pn=r[Gt];(0,qt.hu)(0===Pn.status,"tryToSendTransactionQueue_: items in queue should all be run."),Pn.status=1,Pn.retryCount++;const kn=ua(o,Pn.path);I=I.updateChild(kn,Pn.currentOutputSnapshotRaw)}const Me=I.val(!0),_t=o;c.server_.put(_t.toString(),Me,Gt=>{cu(c,"transaction put response",{path:_t.toString(),status:Gt});let Pn=[];if("ok"===Gt){const kn=[];for(let fi=0;fi<r.length;fi++)r[fi].status=2,Pn=Pn.concat(kc(c.serverSyncTree_,r[fi].currentWriteId)),r[fi].onComplete&&kn.push(()=>r[fi].onComplete(null,!0,r[fi].currentOutputSnapshotResolved)),r[fi].unwatcher();Sf(c,vf(c.transactionQueueTree_,o)),Ju(c,c.transactionQueueTree_),Yl(c.eventQueue_,o,Pn);for(let fi=0;fi<kn.length;fi++)Ca(kn[fi])}else{if("datastale"===Gt)for(let kn=0;kn<r.length;kn++)r[kn].status=3===r[kn].status?4:0;else{Nr("transaction at "+_t.toString()+" failed: "+Gt);for(let kn=0;kn<r.length;kn++)r[kn].status=4,r[kn].abortReason=Gt}qu(c,o)}},G)}(c,lu(o),r)}else Vv(o)&&fh(o,r=>{Ju(c,r)})}function qu(c,o){const r=rb(c,o),m=lu(r);return function WC(c,o,r){if(0===o.length)return;const m=[];let M=[];const G=o.filter(Me=>0===Me.status).map(Me=>Me.currentWriteId);for(let Me=0;Me<o.length;Me++){const _t=o[Me],Gt=ua(r,_t.path);let kn,Pn=!1;if((0,qt.hu)(null!==Gt,"rerunTransactionsUnderNode_: relativePath should not be null."),4===_t.status)Pn=!0,kn=_t.abortReason,M=M.concat(kc(c.serverSyncTree_,_t.currentWriteId,!0));else if(0===_t.status)if(_t.retryCount>=Zv)Pn=!0,kn="maxretry",M=M.concat(kc(c.serverSyncTree_,_t.currentWriteId,!0));else{const fi=_h(c,_t.path,G);_t.currentInputSnapshot=fi;const xi=o[Me].update(fi.val());if(void 0!==xi){Nc("transaction failed: Data returned ",xi,_t.path);let Ui=ha(xi);"object"==typeof xi&&null!=xi&&(0,qt.r3)(xi,".priority")||(Ui=Ui.updatePriority(fi.getPriority()));const Dr=_t.currentWriteId,ro=gh(c),Do=yg(Ui,fi,ro);_t.currentOutputSnapshotRaw=Ui,_t.currentOutputSnapshotResolved=Do,_t.currentWriteId=io(c),G.splice(G.indexOf(Dr),1),M=M.concat(pf(c.serverSyncTree_,_t.path,Do,_t.currentWriteId,_t.applyLocally)),M=M.concat(kc(c.serverSyncTree_,Dr,!0))}else Pn=!0,kn="nodata",M=M.concat(kc(c.serverSyncTree_,_t.currentWriteId,!0))}Yl(c.eventQueue_,r,M),M=[],Pn&&(o[Me].status=2,setTimeout(o[Me].unwatcher,Math.floor(0)),o[Me].onComplete&&m.push("nodata"===kn?()=>o[Me].onComplete(null,!1,o[Me].currentInputSnapshot):()=>o[Me].onComplete(new Error(kn),!1,null)))}Sf(c,c.transactionQueueTree_);for(let Me=0;Me<m.length;Me++)Ca(m[Me]);Ju(c,c.transactionQueueTree_)}(c,ob(c,r),m),m}function rb(c,o){let r,m=c.transactionQueueTree_;for(r=Zr(o);null!==r&&void 0===wd(m);)m=vf(m,r),r=Zr(o=Ro(o));return m}function ob(c,o){const r=[];return Rg(c,o,r),r.sort((m,M)=>m.order-M.order),r}function Rg(c,o,r){const m=wd(o);if(m)for(let M=0;M<m.length;M++)r.push(m[M]);fh(o,M=>{Rg(c,M,r)})}function Sf(c,o){const r=wd(o);if(r){let m=0;for(let M=0;M<r.length;M++)2!==r[M].status&&(r[m]=r[M],m++);r.length=m,Cg(o,r.length>0?r:void 0)}fh(o,m=>{Sf(c,m)})}function kg(c,o){const r=lu(rb(c,o)),m=vf(c.transactionQueueTree_,o);return function bf(c,o,r){let m=r?c:c.parent;for(;null!==m;){if(o(m))return!0;m=m.parent}}(m,M=>{bc(c,M)}),bc(c,m),Eg(m,M=>{bc(c,M)}),r}function bc(c,o){const r=wd(o);if(r){const m=[];let M=[],I=-1;for(let G=0;G<r.length;G++)3===r[G].status||(1===r[G].status?((0,qt.hu)(I===G-1,"All SENT items should be at beginning of queue."),I=G,r[G].status=3,r[G].abortReason="set"):((0,qt.hu)(0===r[G].status,"Unexpected transaction status in abort"),r[G].unwatcher(),M=M.concat(kc(c.serverSyncTree_,r[G].currentWriteId,!0)),r[G].onComplete&&m.push(r[G].onComplete.bind(null,new Error("set"),!1,null))));-1===I?Cg(o,void 0):r.length=I+1,Yl(c.eventQueue_,lu(o),M);for(let G=0;G<m.length;G++)Ca(m[G])}}const ep=function(c,o){const r=YC(c),m=r.namespace;return"firebase.com"===r.domain&&or(r.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!m||"undefined"===m)&&"localhost"!==r.domain&&or("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),r.secure||typeof window<"u"&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&Nr("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new Hs(r.host,r.secure,m,"ws"===r.scheme||"wss"===r.scheme,o,"",m!==r.subdomain),path:new jr(r.pathString)}},YC=function(c){let o="",r="",m="",M="",I="",G=!0,Me="https",_t=443;if("string"==typeof c){let Gt=c.indexOf("//");Gt>=0&&(Me=c.substring(0,Gt-1),c=c.substring(Gt+2));let Pn=c.indexOf("/");-1===Pn&&(Pn=c.length);let kn=c.indexOf("?");-1===kn&&(kn=c.length),o=c.substring(0,Math.min(Pn,kn)),Pn<kn&&(M=function zC(c){let o="";const r=c.split("/");for(let m=0;m<r.length;m++)if(r[m].length>0){let M=r[m];try{M=decodeURIComponent(M.replace(/\+/g," "))}catch{}o+="/"+M}return o}(c.substring(Pn,kn)));const fi=function ab(c){const o={};"?"===c.charAt(0)&&(c=c.substring(1));for(const r of c.split("&")){if(0===r.length)continue;const m=r.split("=");2===m.length?o[decodeURIComponent(m[0])]=decodeURIComponent(m[1]):Nr(`Invalid query segment '${r}' in query '${c}'`)}return o}(c.substring(Math.min(c.length,kn)));Gt=o.indexOf(":"),Gt>=0?(G="https"===Me||"wss"===Me,_t=parseInt(o.substring(Gt+1),10)):Gt=o.length;const xi=o.slice(0,Gt);if("localhost"===xi.toLowerCase())r="localhost";else if(xi.split(".").length<=2)r=xi;else{const Ui=o.indexOf(".");m=o.substring(0,Ui).toLowerCase(),r=o.substring(Ui+1),I=m}"ns"in fi&&(I=fi.ns)}return{host:o,port:_t,domain:r,subdomain:m,secure:G,scheme:Me,pathString:M,namespace:I}},Ng="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",sb=function(){let c=0;const o=[];return function(r){const m=r===c;let M;c=r;const I=new Array(8);for(M=7;M>=0;M--)I[M]=Ng.charAt(r%64),r=Math.floor(r/64);(0,qt.hu)(0===r,"Cannot push at time == 0");let G=I.join("");if(m){for(M=11;M>=0&&63===o[M];M--)o[M]=0;o[M]++}else for(M=0;M<12;M++)o[M]=Math.floor(64*Math.random());for(M=0;M<12;M++)G+=Ng.charAt(o[M]);return(0,qt.hu)(20===G.length,"nextPushId: Length should be 20."),G}}();class lb{constructor(o,r,m,M){this.eventType=o,this.eventRegistration=r,this.snapshot=m,this.prevName=M}getPath(){const o=this.snapshot.ref;return"value"===this.eventType?o._path:o.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+(0,qt.Wl)(this.snapshot.exportVal())}}class cb{constructor(o,r,m){this.eventRegistration=o,this.error=r,this.path=m}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}class Fg{constructor(o,r){this.snapshotCallback=o,this.cancelCallback=r}onValue(o,r){this.snapshotCallback.call(null,o,r)}onCancel(o){return(0,qt.hu)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,o)}get hasCancelCallback(){return!!this.cancelCallback}matches(o){return this.snapshotCallback===o.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===o.snapshotCallback.userCallback&&this.snapshotCallback.context===o.snapshotCallback.context}}class db{constructor(o,r){this._repo=o,this._path=r}cancel(){const o=new qt.BH;return BC(this._repo,this._path,o.wrapCallback(()=>{})),o.promise}remove(){_c("OnDisconnect.remove",this._path);const o=new qt.BH;return Pg(this._repo,this._path,null,o.wrapCallback(()=>{})),o.promise}set(o){_c("OnDisconnect.set",this._path),gc("OnDisconnect.set",o,this._path,!1);const r=new qt.BH;return Pg(this._repo,this._path,o,r.wrapCallback(()=>{})),r.promise}setWithPriority(o,r){_c("OnDisconnect.setWithPriority",this._path),gc("OnDisconnect.setWithPriority",o,this._path,!1),wg("OnDisconnect.setWithPriority",r,!1);const m=new qt.BH;return function UC(c,o,r,m,M){const I=ha(r,m);c.server_.onDisconnectPut(o.toString(),I.val(!0),(G,Me)=>{"ok"===G&&nl(c.onDisconnect_,o,I),pl(0,M,G,Me)})}(this._repo,this._path,o,r,m.wrapCallback(()=>{})),m.promise}update(o){_c("OnDisconnect.update",this._path),Gv("OnDisconnect.update",o,this._path,!1);const r=new qt.BH;return function nb(c,o,r,m){if((0,qt.xb)(r))return An("onDisconnect().update() called with empty data.  Don't do anything."),void pl(0,m,"ok",void 0);c.server_.onDisconnectMerge(o.toString(),r,(M,I)=>{"ok"===M&&mr(r,(G,Me)=>{const _t=ha(Me);nl(c.onDisconnect_,zo(o,G),_t)}),pl(0,m,M,I)})}(this._repo,this._path,o,r.wrapCallback(()=>{})),r.promise}}class hl{constructor(o,r,m,M){this._repo=o,this._path=r,this._queryParams=m,this._orderByCalled=M}get key(){return no(this._path)?null:Ws(this._path)}get ref(){return new Dl(this._repo,this._path)}get _queryIdentifier(){const o=Cr(this._queryParams),r=Ga(o);return"{}"===r?"default":r}get _queryObject(){return Cr(this._queryParams)}isEqual(o){if(!((o=(0,qt.m9)(o))instanceof hl))return!1;const r=this._repo===o._repo,m=dl(this._path,o._path);return r&&m&&this._queryIdentifier===o._queryIdentifier}toJSON(){return this.toString()}toString(){return this._repo.toString()+function dc(c){let o="";for(let r=c.pieceNum_;r<c.pieces_.length;r++)""!==c.pieces_[r]&&(o+="/"+encodeURIComponent(String(c.pieces_[r])));return o||"/"}(this._path)}}function wf(c,o){if(!0===c._orderByCalled)throw new Error(o+": You can't combine multiple orderBy calls.")}function td(c){let o=null,r=null;if(c.hasStart()&&(o=c.getIndexStartValue()),c.hasEnd()&&(r=c.getIndexEndValue()),c.getIndex()===te){const m="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",M="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(c.hasStart()){if(c.getIndexStartName()!==Co)throw new Error(m);if("string"!=typeof o)throw new Error(M)}if(c.hasEnd()){if(c.getIndexEndName()!==Xr)throw new Error(m);if("string"!=typeof r)throw new Error(M)}}else if(c.getIndex()===qo){if(null!=o&&!Zu(o)||null!=r&&!Zu(r))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if((0,qt.hu)(c.getIndex()instanceof gd||c.getIndex()===_d,"unknown index type."),null!=o&&"object"==typeof o||null!=r&&"object"==typeof r)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function vh(c){if(c.hasStart()&&c.hasEnd()&&c.hasLimit()&&!c.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}class Dl extends hl{constructor(o,r){super(o,r,new Ic,!1)}get parent(){const o=Wc(this._path);return null===o?null:new Dl(this._repo,o)}get root(){let o=this;for(;null!==o.parent;)o=o.parent;return o}}class yc{constructor(o,r,m){this._node=o,this.ref=r,this._index=m}get priority(){return this._node.getPriority().val()}get key(){return this.ref.key}get size(){return this._node.numChildren()}child(o){const r=new jr(o),m=uu(this.ref,o);return new yc(this._node.getChild(r),m,qo)}exists(){return!this._node.isEmpty()}exportVal(){return this._node.val(!0)}forEach(o){return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,(m,M)=>o(new yc(M,uu(this.ref,m),qo)))}hasChild(o){const r=new jr(o);return!this._node.getChild(r).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function du(c,o){return(c=(0,qt.m9)(c))._checkNotDeleted("ref"),void 0!==o?uu(c._root,o):c._root}function ub(c,o){(c=(0,qt.m9)(c))._checkNotDeleted("refFromURL");const r=ep(o,c._repo.repoInfo_.nodeAdmin);Og("refFromURL",r);const m=r.repoInfo;return!c._repo.repoInfo_.isCustomHost()&&m.host!==c._repo.repoInfo_.host&&or("refFromURL: Host name does not match the current database: (found "+m.host+" but expected "+c._repo.repoInfo_.host+")"),du(c,r.path.toString())}function uu(c,o){return null===Zr((c=(0,qt.m9)(c))._path)?$v("child","path",o,!1):Ef("child","path",o,!1),new Dl(c._repo,zo(c._path,o))}function Of(c,o){c=(0,qt.m9)(c),_c("set",c._path),gc("set",o,c._path,!1);const r=new qt.BH;return Mf(c._repo,c._path,o,null,r.wrapCallback(()=>{})),r.promise}function Tf(c,o){Gv("update",o,c._path,!1);const r=new qt.BH;return function tb(c,o,r,m){cu(c,"update",{path:o.toString(),value:r});let M=!0;const I=gh(c),G={};if(mr(r,(Me,_t)=>{M=!1,G[Me]=Xu(zo(o,Me),ha(_t),c.serverSyncTree_,I)}),M)An("update() called with empty data.  Don't do anything."),pl(0,m,"ok",void 0);else{const Me=io(c),_t=function Hv(c,o,r,m){!function Nu(c,o,r,m){(0,qt.hu)(m>c.lastWriteId,"Stacking an older merge on top of newer ones"),c.allWrites.push({path:o,children:r,writeId:m,visible:!0}),c.visibleWrites=Zp(c.visibleWrites,o,r),c.lastWriteId=m}(c.pendingWriteTree_,o,r,m);const M=Go.fromObject(r);return Yu(c,new Kd({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},o,M))}(c.serverSyncTree_,o,G,Me);xf(c.eventQueue_,_t),c.server_.merge(o.toString(),r,(Gt,Pn)=>{const kn="ok"===Gt;kn||Nr("update at "+o+" failed: "+Gt);const fi=kc(c.serverSyncTree_,Me,!kn),xi=fi.length>0?qu(c,o):o;Yl(c.eventQueue_,xi,fi),pl(0,m,Gt,Pn)}),mr(r,Gt=>{const Pn=kg(c,zo(o,Gt));qu(c,Pn)}),Yl(c.eventQueue_,o,[])}}(c._repo,c._path,o,r.wrapCallback(()=>{})),r.promise}function tp(c){c=(0,qt.m9)(c);const o=new Fg(()=>{}),r=new pu(o);return function eb(c,o,r){const m=function ff(c,o){const r=o._path;let m=null;c.syncPointTree_.foreachOnPath(r,(Gt,Pn)=>{const kn=ua(Gt,r);m=m||zl(Pn,kn)});let M=c.syncPointTree_.get(r);M?m=m||zl(M,Ir()):(M=new Ta,c.syncPointTree_=c.syncPointTree_.set(r,M));const I=null!=m,G=I?new Hl(m,!0,!1):null;return function bi(c){return Xd(c.viewCache_)}(ju(M,o,ku(c.pendingWriteTree_,o._path),I?G.getNode():eo.EMPTY_NODE,I))}(c.serverSyncTree_,o);return null!=m?Promise.resolve(m):c.server_.get(o).then(M=>{const I=ha(M).withIndex(o._queryParams.getIndex());let G;if(mg(c.serverSyncTree_,o,r,!0),o._queryParams.loadsAllData())G=hf(c.serverSyncTree_,o._path,I);else{const Me=Gu(c.serverSyncTree_,o);G=fg(c.serverSyncTree_,o._path,I,Me)}return Yl(c.eventQueue_,o._path,G),uh(c.serverSyncTree_,o,r,null,!0),I},M=>(cu(c,"get for query "+(0,qt.Wl)(o)+" failed: "+M),Promise.reject(new Error(M))))}(c._repo,c,r).then(m=>new yc(m,new Dl(c._repo,c._path),c._queryParams.getIndex()))}class pu{constructor(o){this.callbackContext=o}respondsTo(o){return"value"===o}createEvent(o,r){const m=r._queryParams.getIndex();return new lb("value",this,new yc(o.snapshotNode,new Dl(r._repo,r._path),m))}getEventRunner(o){return"cancel"===o.getEventType()?()=>this.callbackContext.onCancel(o.error):()=>this.callbackContext.onValue(o.snapshot,null)}createCancelEvent(o,r){return this.callbackContext.hasCancelCallback?new cb(this,o,r):null}matches(o){return o instanceof pu&&(!o.callbackContext||!this.callbackContext||o.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}class Od{constructor(o,r){this.eventType=o,this.callbackContext=r}respondsTo(o){let r="children_added"===o?"child_added":o;return r="children_removed"===r?"child_removed":r,this.eventType===r}createCancelEvent(o,r){return this.callbackContext.hasCancelCallback?new cb(this,o,r):null}createEvent(o,r){(0,qt.hu)(null!=o.childName,"Child events should have a childName.");const m=uu(new Dl(r._repo,r._path),o.childName),M=r._queryParams.getIndex();return new lb(o.type,this,new yc(o.snapshotNode,m,M),o.prevName)}getEventRunner(o){return"cancel"===o.getEventType()?()=>this.callbackContext.onCancel(o.error):()=>this.callbackContext.onValue(o.snapshot,o.prevName)}matches(o){return o instanceof Od&&this.eventType===o.eventType&&(!this.callbackContext||!o.callbackContext||this.callbackContext.matches(o.callbackContext))}hasAnyCallback(){return!!this.callbackContext}}function hu(c,o,r,m,M){let I;if("object"==typeof m&&(I=void 0,M=m),"function"==typeof m&&(I=m),M&&M.onlyOnce){const _t=r,Gt=(Pn,kn)=>{Ag(c._repo,c,Me),_t(Pn,kn)};Gt.userCallback=r.userCallback,Gt.context=r.context,r=Gt}const G=new Fg(r,I||void 0),Me="value"===o?new pu(G):new Od(o,G);return function jC(c,o,r){let m;m=".info"===Zr(o._path)?mg(c.infoSyncTree_,o,r):mg(c.serverSyncTree_,o,r),Tg(c.eventQueue_,o._path,m)}(c._repo,c,Me),()=>Ag(c._repo,c,Me)}function np(c,o,r,m){return hu(c,"value",o,r,m)}function Bg(c,o,r,m){return hu(c,"child_added",o,r,m)}function Df(c,o,r,m){return hu(c,"child_changed",o,r,m)}function If(c,o,r,m){return hu(c,"child_moved",o,r,m)}function Pf(c,o,r,m){return hu(c,"child_removed",o,r,m)}function Ug(c,o,r){let m=null;const M=r?new Fg(r):null;"value"===o?m=new pu(M):o&&(m=new Od(o,M)),Ag(c._repo,c,m)}class Gl{}class hb extends Gl{constructor(o,r){super(),this._value=o,this._key=r}_apply(o){gc("endAt",this._value,o._path,!0);const r=Qt(o._queryParams,this._value,this._key);if(vh(r),td(r),o._queryParams.hasEnd())throw new Error("endAt: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new hl(o._repo,o._path,r,o._orderByCalled)}}class fb extends Gl{constructor(o,r){super(),this._value=o,this._key=r}_apply(o){gc("endBefore",this._value,o._path,!1);const r=function Xn(c,o,r){let m;return m=Qt(c,o,c.index_===te||r?r:Co),m.endBeforeSet_=!0,m}(o._queryParams,this._value,this._key);if(vh(r),td(r),o._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new hl(o._repo,o._path,r,o._orderByCalled)}}class jg extends Gl{constructor(o,r){super(),this._value=o,this._key=r}_apply(o){gc("startAt",this._value,o._path,!0);const r=We(o._queryParams,this._value,this._key);if(vh(r),td(r),o._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new hl(o._repo,o._path,r,o._orderByCalled)}}class ZC extends Gl{constructor(o,r){super(),this._value=o,this._key=r}_apply(o){gc("startAfter",this._value,o._path,!1);const r=function Dt(c,o,r){let m;return m=We(c,o,c.index_===te||r?r:Xr),m.startAfterSet_=!0,m}(o._queryParams,this._value,this._key);if(vh(r),td(r),o._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new hl(o._repo,o._path,r,o._orderByCalled)}}class $l extends Gl{constructor(o){super(),this._limit=o}_apply(o){if(o._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new hl(o._repo,o._path,function Ne(c,o){const r=c.copy();return r.limitSet_=!0,r.limit_=o,r.viewFrom_="l",r}(o._queryParams,this._limit),o._orderByCalled)}}class eE extends Gl{constructor(o){super(),this._limit=o}_apply(o){if(o._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new hl(o._repo,o._path,function W(c,o){const r=c.copy();return r.limitSet_=!0,r.limit_=o,r.viewFrom_="r",r}(o._queryParams,this._limit),o._orderByCalled)}}class Hg extends Gl{constructor(o){super(),this._path=o}_apply(o){wf(o,"orderByChild");const r=new jr(this._path);if(no(r))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");const m=new gd(r),M=ai(o._queryParams,m);return td(M),new hl(o._repo,o._path,M,!0)}}class tE extends Gl{_apply(o){wf(o,"orderByKey");const r=ai(o._queryParams,te);return td(r),new hl(o._repo,o._path,r,!0)}}class iE extends Gl{_apply(o){wf(o,"orderByPriority");const r=ai(o._queryParams,qo);return td(r),new hl(o._repo,o._path,r,!0)}}class rE extends Gl{_apply(o){wf(o,"orderByValue");const r=ai(o._queryParams,_d);return td(r),new hl(o._repo,o._path,r,!0)}}class Vg extends Gl{constructor(o,r){super(),this._value=o,this._key=r}_apply(o){if(gc("equalTo",this._value,o._path,!1),o._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(o._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new hb(this._value,this._key)._apply(new jg(this._value,this._key)._apply(o))}}function Cc(c,...o){let r=(0,qt.m9)(c);for(const m of o)r=m._apply(r);return r}(function lh(c){(0,qt.hu)(!ru,"__referenceConstructor has already been defined"),ru=c})(Dl),function Uv(c){(0,qt.hu)(!Wu,"__referenceConstructor has already been defined"),Wu=c}(Dl);const sE="FIREBASE_DATABASE_EMULATOR_HOST",Wg={};let vb=!1;function Af(c,o,r,m,M){let I=m||c.options.databaseURL;void 0===I&&(c.options.projectId||or("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),An("Using default host for project ",c.options.projectId),I=`${c.options.projectId}-default-rtdb.firebaseio.com`);let _t,Gt,G=ep(I,M),Me=G.repoInfo;typeof process<"u"&&process.env&&(Gt=process.env[sE]),Gt?(_t=!0,I=`http://${Gt}?ns=${Me.namespace}`,G=ep(I,M),Me=G.repoInfo):_t=!G.repoInfo.secure;const Pn=M&&_t?new as(as.OWNER):new Xs(c.name,c.options,o);Og("Invalid Firebase Database URL",G),no(G.path)||or("Database URL must point to the root of a Firebase Database (not including a child path).");const kn=function cE(c,o,r,m){let M=Wg[o.name];M||(M={},Wg[o.name]=M);let I=M[c.toURLString()];return I&&or("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),I=new RC(c,vb,r,m),M[c.toURLString()]=I,I}(Me,c,Pn,new Ea(c.name,r));return new dE(kn,c)}class dE{constructor(o,r){this._repoInternal=o,this.app=r,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(function kC(c,o,r){if(c.stats_=el(c.repoInfo_),c.forceRestClient_||ms())c.server_=new ho(c.repoInfo_,(m,M,I,G)=>{Dg(c,m,M,I,G)},c.authTokenProvider_,c.appCheckProvider_),setTimeout(()=>qv(c,!0),0);else{if(typeof r<"u"&&null!==r){if("object"!=typeof r)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{(0,qt.Wl)(r)}catch(m){throw new Error("Invalid authOverride provided: "+m)}}c.persistentConnection_=new zs(c.repoInfo_,o,(m,M,I,G)=>{Dg(c,m,M,I,G)},m=>{qv(c,m)},m=>{!function NC(c,o){mr(o,(r,m)=>{Ig(c,r,m)})}(c,m)},c.authTokenProvider_,c.appCheckProvider_,r),c.server_=c.persistentConnection_}c.authTokenProvider_.addTokenChangeListener(m=>{c.server_.refreshAuthToken(m)}),c.appCheckProvider_.addTokenChangeListener(m=>{c.server_.refreshAppCheckToken(m.token)}),c.statsReporter_=function tl(c,o){const r=c.toString();return bl[r]||(bl[r]=o()),bl[r]}(c.repoInfo_,()=>new og(c.stats_,c.server_)),c.infoData_=new Oa,c.infoSyncTree_=new ug({startListening:(m,M,I,G)=>{let Me=[];const _t=c.infoData_.getNode(m._path);return _t.isEmpty()||(Me=hf(c.infoSyncTree_,m._path,_t),setTimeout(()=>{G("ok")},0)),Me},stopListening:()=>{}}),Ig(c,"connected",!1),c.serverSyncTree_=new ug({startListening:(m,M,I,G)=>(c.server_.listen(m,I,M,(Me,_t)=>{const Gt=G(Me,_t);Yl(c.eventQueue_,m._path,Gt)}),[]),stopListening:(m,M)=>{c.server_.unlisten(m,M)}})}(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new Dl(this._repo,Ir())),this._rootInternal}_delete(){return null!==this._rootInternal&&(function lE(c,o){const r=Wg[o];(!r||r[c.key]!==c)&&or(`Database ${o}(${c.repoInfo_}) has already been deleted.`),ib(c),delete r[c.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(o){null===this._rootInternal&&or("Cannot call "+o+" on a deleted database.")}}function yb(){xe.IS_TRANSPORT_INITIALIZED&&Nr("Transport has already been initialized. Please call this function before calling ref or setting up a listener")}function uE(){yb(),we.forceDisallow()}function zg(){yb(),gr.forceDisallow(),we.forceAllow()}function kf(c,o){ln(c,o)}const Yg={".sv":"timestamp"};class xb{constructor(o,r){this.committed=o,this.snapshot=r}toJSON(){return{committed:this.committed,snapshot:this.snapshot.toJSON()}}}zs.prototype.simpleListen=function(c,o){this.sendRequest("q",{p:c},o)},zs.prototype.echo=function(c,o){this.sendRequest("echo",{d:c},o)},function Lx(c){wr(si.SDK_VERSION),(0,si._registerComponent)(new oi.wA("database",(o,{instanceIdentifier:r})=>Af(o.getProvider("app").getImmediate(),o.getProvider("auth-internal"),o.getProvider("app-check-internal"),r),"PUBLIC").setMultipleInstances(!0)),(0,si.registerVersion)(Fi,"0.14.4",c),(0,si.registerVersion)(Fi,"0.14.4","esm2017")}();const Ff=new Ri.Yd("@firebase/database-compat"),fu=function(c){Ff.warn("FIREBASE WARNING: "+c)};class Ob{constructor(o){this._delegate=o}cancel(o){(0,qt.Dv)("OnDisconnect.cancel",0,1,arguments.length),(0,qt.Wj)("OnDisconnect.cancel","onComplete",o,!0);const r=this._delegate.cancel();return o&&r.then(()=>o(null),m=>o(m)),r}remove(o){(0,qt.Dv)("OnDisconnect.remove",0,1,arguments.length),(0,qt.Wj)("OnDisconnect.remove","onComplete",o,!0);const r=this._delegate.remove();return o&&r.then(()=>o(null),m=>o(m)),r}set(o,r){(0,qt.Dv)("OnDisconnect.set",1,2,arguments.length),(0,qt.Wj)("OnDisconnect.set","onComplete",r,!0);const m=this._delegate.set(o);return r&&m.then(()=>r(null),M=>r(M)),m}setWithPriority(o,r,m){(0,qt.Dv)("OnDisconnect.setWithPriority",2,3,arguments.length),(0,qt.Wj)("OnDisconnect.setWithPriority","onComplete",m,!0);const M=this._delegate.setWithPriority(o,r);return m&&M.then(()=>m(null),I=>m(I)),M}update(o,r){if((0,qt.Dv)("OnDisconnect.update",1,2,arguments.length),Array.isArray(o)){const M={};for(let I=0;I<o.length;++I)M[""+I]=o[I];o=M,fu("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}(0,qt.Wj)("OnDisconnect.update","onComplete",r,!0);const m=this._delegate.update(o);return r&&m.then(()=>r(null),M=>r(M)),m}}class fE{constructor(o,r){this.committed=o,this.snapshot=r}toJSON(){return(0,qt.Dv)("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}}}class Td{constructor(o,r){this._database=o,this._delegate=r}val(){return(0,qt.Dv)("DataSnapshot.val",0,0,arguments.length),this._delegate.val()}exportVal(){return(0,qt.Dv)("DataSnapshot.exportVal",0,0,arguments.length),this._delegate.exportVal()}toJSON(){return(0,qt.Dv)("DataSnapshot.toJSON",0,1,arguments.length),this._delegate.toJSON()}exists(){return(0,qt.Dv)("DataSnapshot.exists",0,0,arguments.length),this._delegate.exists()}child(o){return(0,qt.Dv)("DataSnapshot.child",0,1,arguments.length),o=String(o),Ef("DataSnapshot.child","path",o,!1),new Td(this._database,this._delegate.child(o))}hasChild(o){return(0,qt.Dv)("DataSnapshot.hasChild",1,1,arguments.length),Ef("DataSnapshot.hasChild","path",o,!1),this._delegate.hasChild(o)}getPriority(){return(0,qt.Dv)("DataSnapshot.getPriority",0,0,arguments.length),this._delegate.priority}forEach(o){return(0,qt.Dv)("DataSnapshot.forEach",1,1,arguments.length),(0,qt.Wj)("DataSnapshot.forEach","action",o,!1),this._delegate.forEach(r=>o(new Td(this._database,r)))}hasChildren(){return(0,qt.Dv)("DataSnapshot.hasChildren",0,0,arguments.length),this._delegate.hasChildren()}get key(){return this._delegate.key}numChildren(){return(0,qt.Dv)("DataSnapshot.numChildren",0,0,arguments.length),this._delegate.size}getRef(){return(0,qt.Dv)("DataSnapshot.ref",0,0,arguments.length),new Il(this._database,this._delegate.ref)}get ref(){return this.getRef()}}class Xa{constructor(o,r){this.database=o,this._delegate=r}on(o,r,m,M){var I;(0,qt.Dv)("Query.on",2,4,arguments.length),(0,qt.Wj)("Query.on","callback",r,!1);const G=Xa.getCancelAndContextArgs_("Query.on",m,M),Me=(Gt,Pn)=>{r.call(G.context,new Td(this.database,Gt),Pn)};Me.userCallback=r,Me.context=G.context;const _t=null===(I=G.cancel)||void 0===I?void 0:I.bind(G.context);switch(o){case"value":return np(this._delegate,Me,_t),r;case"child_added":return Bg(this._delegate,Me,_t),r;case"child_removed":return Pf(this._delegate,Me,_t),r;case"child_changed":return Df(this._delegate,Me,_t),r;case"child_moved":return If(this._delegate,Me,_t),r;default:throw new Error((0,qt.gK)("Query.on","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}off(o,r,m){if((0,qt.Dv)("Query.off",0,3,arguments.length),function(c,o,r){if(void 0!==o)switch(o){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error((0,qt.gK)("Query.off","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}(0,o),(0,qt.Wj)("Query.off","callback",r,!0),(0,qt.lb)("Query.off","context",m,!0),r){const M=()=>{};M.userCallback=r,M.context=m,Ug(this._delegate,o,M)}else Ug(this._delegate,o)}get(){return tp(this._delegate).then(o=>new Td(this.database,o))}once(o,r,m,M){(0,qt.Dv)("Query.once",1,4,arguments.length),(0,qt.Wj)("Query.once","callback",r,!0);const I=Xa.getCancelAndContextArgs_("Query.once",m,M),G=new qt.BH,Me=(Gt,Pn)=>{const kn=new Td(this.database,Gt);r&&r.call(I.context,kn,Pn),G.resolve(kn)};Me.userCallback=r,Me.context=I.context;const _t=Gt=>{I.cancel&&I.cancel.call(I.context,Gt),G.reject(Gt)};switch(o){case"value":np(this._delegate,Me,_t,{onlyOnce:!0});break;case"child_added":Bg(this._delegate,Me,_t,{onlyOnce:!0});break;case"child_removed":Pf(this._delegate,Me,_t,{onlyOnce:!0});break;case"child_changed":Df(this._delegate,Me,_t,{onlyOnce:!0});break;case"child_moved":If(this._delegate,Me,_t,{onlyOnce:!0});break;default:throw new Error((0,qt.gK)("Query.once","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}return G.promise}limitToFirst(o){return(0,qt.Dv)("Query.limitToFirst",1,1,arguments.length),new Xa(this.database,Cc(this._delegate,function qC(c){if("number"!=typeof c||Math.floor(c)!==c||c<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new $l(c)}(o)))}limitToLast(o){return(0,qt.Dv)("Query.limitToLast",1,1,arguments.length),new Xa(this.database,Cc(this._delegate,function Px(c){if("number"!=typeof c||Math.floor(c)!==c||c<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new eE(c)}(o)))}orderByChild(o){return(0,qt.Dv)("Query.orderByChild",1,1,arguments.length),new Xa(this.database,Cc(this._delegate,function gb(c){if("$key"===c)throw new Error('orderByChild: "$key" is invalid.  Use orderByKey() instead.');if("$priority"===c)throw new Error('orderByChild: "$priority" is invalid.  Use orderByPriority() instead.');if("$value"===c)throw new Error('orderByChild: "$value" is invalid.  Use orderByValue() instead.');return Ef("orderByChild","path",c,!1),new Hg(c)}(o)))}orderByKey(){return(0,qt.Dv)("Query.orderByKey",0,0,arguments.length),new Xa(this.database,Cc(this._delegate,function nE(){return new tE}()))}orderByPriority(){return(0,qt.Dv)("Query.orderByPriority",0,0,arguments.length),new Xa(this.database,Cc(this._delegate,function _b(){return new iE}()))}orderByValue(){return(0,qt.Dv)("Query.orderByValue",0,0,arguments.length),new Xa(this.database,Cc(this._delegate,function oE(){return new rE}()))}startAt(o=null,r){return(0,qt.Dv)("Query.startAt",0,2,arguments.length),new Xa(this.database,Cc(this._delegate,function mb(c=null,o){return Cf("startAt","key",o,!0),new jg(c,o)}(o,r)))}startAfter(o=null,r){return(0,qt.Dv)("Query.startAfter",0,2,arguments.length),new Xa(this.database,Cc(this._delegate,function JC(c,o){return Cf("startAfter","key",o,!0),new ZC(c,o)}(o,r)))}endAt(o=null,r){return(0,qt.Dv)("Query.endAt",0,2,arguments.length),new Xa(this.database,Cc(this._delegate,function QC(c,o){return Cf("endAt","key",o,!0),new hb(c,o)}(o,r)))}endBefore(o=null,r){return(0,qt.Dv)("Query.endBefore",0,2,arguments.length),new Xa(this.database,Cc(this._delegate,function XC(c,o){return Cf("endBefore","key",o,!0),new fb(c,o)}(o,r)))}equalTo(o,r){return(0,qt.Dv)("Query.equalTo",1,2,arguments.length),new Xa(this.database,Cc(this._delegate,function aE(c,o){return Cf("equalTo","key",o,!0),new Vg(c,o)}(o,r)))}toString(){return(0,qt.Dv)("Query.toString",0,0,arguments.length),this._delegate.toString()}toJSON(){return(0,qt.Dv)("Query.toJSON",0,1,arguments.length),this._delegate.toJSON()}isEqual(o){if((0,qt.Dv)("Query.isEqual",1,1,arguments.length),!(o instanceof Xa))throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.");return this._delegate.isEqual(o._delegate)}static getCancelAndContextArgs_(o,r,m){const M={cancel:void 0,context:void 0};if(r&&m)M.cancel=r,(0,qt.Wj)(o,"cancel",M.cancel,!0),M.context=m,(0,qt.lb)(o,"context",M.context,!0);else if(r)if("object"==typeof r&&null!==r)M.context=r;else{if("function"!=typeof r)throw new Error((0,qt.gK)(o,"cancelOrContext")+" must either be a cancel callback or a context object.");M.cancel=r}return M}get ref(){return new Il(this.database,new Dl(this._delegate._repo,this._delegate._path))}}class Il extends Xa{constructor(o,r){super(o,new hl(r._repo,r._path,new Ic,!1)),this.database=o,this._delegate=r}getKey(){return(0,qt.Dv)("Reference.key",0,0,arguments.length),this._delegate.key}child(o){return(0,qt.Dv)("Reference.child",1,1,arguments.length),"number"==typeof o&&(o=String(o)),new Il(this.database,uu(this._delegate,o))}getParent(){(0,qt.Dv)("Reference.parent",0,0,arguments.length);const o=this._delegate.parent;return o?new Il(this.database,o):null}getRoot(){return(0,qt.Dv)("Reference.root",0,0,arguments.length),new Il(this.database,this._delegate.root)}set(o,r){(0,qt.Dv)("Reference.set",1,2,arguments.length),(0,qt.Wj)("Reference.set","onComplete",r,!0);const m=Of(this._delegate,o);return r&&m.then(()=>r(null),M=>r(M)),m}update(o,r){if((0,qt.Dv)("Reference.update",1,2,arguments.length),Array.isArray(o)){const M={};for(let I=0;I<o.length;++I)M[""+I]=o[I];o=M,fu("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}_c("Reference.update",this._delegate._path),(0,qt.Wj)("Reference.update","onComplete",r,!0);const m=Tf(this._delegate,o);return r&&m.then(()=>r(null),M=>r(M)),m}setWithPriority(o,r,m){(0,qt.Dv)("Reference.setWithPriority",2,3,arguments.length),(0,qt.Wj)("Reference.setWithPriority","onComplete",m,!0);const M=function KC(c,o,r){if(_c("setWithPriority",c._path),gc("setWithPriority",o,c._path,!1),wg("setWithPriority",r,!1),".length"===c.key||".keys"===c.key)throw"setWithPriority failed: "+c.key+" is a read-only object.";const m=new qt.BH;return Mf(c._repo,c._path,o,r,m.wrapCallback(()=>{})),m.promise}(this._delegate,o,r);return m&&M.then(()=>m(null),I=>m(I)),M}remove(o){(0,qt.Dv)("Reference.remove",0,1,arguments.length),(0,qt.Wj)("Reference.remove","onComplete",o,!0);const r=function GC(c){return _c("remove",c._path),Of(c,null)}(this._delegate);return o&&r.then(()=>o(null),m=>o(m)),r}transaction(o,r,m){(0,qt.Dv)("Reference.transaction",1,3,arguments.length),(0,qt.Wj)("Reference.transaction","transactionUpdate",o,!1),(0,qt.Wj)("Reference.transaction","onComplete",r,!0),function(c,o,r,m){if(void 0!==r&&"boolean"!=typeof r)throw new Error((0,qt.gK)("Reference.transaction","applyLocally")+"must be a boolean.")}(0,0,m);const M=function Mb(c,o,r){var m;if(c=(0,qt.m9)(c),_c("Reference.transaction",c._path),".length"===c.key||".keys"===c.key)throw"Reference.transaction failed: "+c.key+" is a read-only object.";const M=null===(m=r?.applyLocally)||void 0===m||m,I=new qt.BH,Me=np(c,()=>{});return function HC(c,o,r,m,M,I){cu(c,"transaction on "+o);const G={path:o,update:r,onComplete:m,status:null,order:Ra(),applyLocally:I,retryCount:0,unwatcher:M,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},Me=_h(c,o,void 0);G.currentInputSnapshot=Me;const _t=G.update(Me.val());if(void 0===_t)G.unwatcher(),G.currentOutputSnapshotRaw=null,G.currentOutputSnapshotResolved=null,G.onComplete&&G.onComplete(null,!1,G.currentInputSnapshot);else{Nc("transaction failed: Data returned ",_t,G.path),G.status=0;const Gt=vf(c.transactionQueueTree_,o),Pn=wd(Gt)||[];let kn;Pn.push(G),Cg(Gt,Pn),"object"==typeof _t&&null!==_t&&(0,qt.r3)(_t,".priority")?(kn=(0,qt.DV)(_t,".priority"),(0,qt.hu)(Zu(kn),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):kn=(zu(c.serverSyncTree_,o)||eo.EMPTY_NODE).getPriority().val();const fi=gh(c),xi=ha(_t,kn),Ui=yg(xi,Me,fi);G.currentOutputSnapshotRaw=xi,G.currentOutputSnapshotResolved=Ui,G.currentWriteId=io(c);const qi=pf(c.serverSyncTree_,o,Ui,G.currentWriteId,G.applyLocally);Yl(c.eventQueue_,o,qi),Ju(c,c.transactionQueueTree_)}}(c._repo,c._path,o,(_t,Gt,Pn)=>{let kn=null;_t?I.reject(_t):(kn=new yc(Pn,new Dl(c._repo,c._path),qo),I.resolve(new xb(Gt,kn)))},Me,M),I.promise}(this._delegate,o,{applyLocally:m}).then(I=>new fE(I.committed,new Td(this.database,I.snapshot)));return r&&M.then(I=>r(null,I.committed,I.snapshot),I=>r(I,!1,null)),M}setPriority(o,r){(0,qt.Dv)("Reference.setPriority",1,2,arguments.length),(0,qt.Wj)("Reference.setPriority","onComplete",r,!0);const m=function $C(c,o){c=(0,qt.m9)(c),_c("setPriority",c._path),wg("setPriority",o,!1);const r=new qt.BH;return Mf(c._repo,zo(c._path,".priority"),o,null,r.wrapCallback(()=>{})),r.promise}(this._delegate,o);return r&&m.then(()=>r(null),M=>r(M)),m}push(o,r){(0,qt.Dv)("Reference.push",0,2,arguments.length),(0,qt.Wj)("Reference.push","onComplete",r,!0);const m=function pb(c,o){c=(0,qt.m9)(c),_c("push",c._path),gc("push",o,c._path,!0);const r=Jv(c._repo),m=sb(r),M=uu(c,m),I=uu(c,m);let G;return G=null!=o?Of(I,o).then(()=>I):Promise.resolve(I),M.then=G.then.bind(G),M.catch=G.then.bind(G,void 0),M}(this._delegate,o),M=m.then(G=>new Il(this.database,G));r&&M.then(()=>r(null),G=>r(G));const I=new Il(this.database,m);return I.then=M.then.bind(M),I.catch=M.catch.bind(M,void 0),I}onDisconnect(){return _c("Reference.onDisconnect",this._delegate._path),new Ob(new db(this._delegate._repo,this._delegate._path))}get key(){return this.getKey()}get parent(){return this.getParent()}get root(){return this.getRoot()}}class Bf{constructor(o,r){this._delegate=o,this.app=r,this.INTERNAL={delete:()=>this._delegate._delete(),forceWebSockets:uE,forceLongPolling:zg}}useEmulator(o,r,m={}){!function Cb(c,o,r,m={}){(c=(0,qt.m9)(c))._checkNotDeleted("useEmulator"),c._instanceStarted&&or("Cannot call useEmulator() after instance has already been initialized.");const M=c._repoInternal;let I;if(M.repoInfo_.nodeAdmin)m.mockUserToken&&or('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),I=new as(as.OWNER);else if(m.mockUserToken){const G="string"==typeof m.mockUserToken?m.mockUserToken:(0,qt.Sg)(m.mockUserToken,c.app.options.projectId);I=new as(G)}!function Fc(c,o,r,m){c.repoInfo_=new Hs(`${o}:${r}`,!1,c.repoInfo_.namespace,c.repoInfo_.webSocketOnly,c.repoInfo_.nodeAdmin,c.repoInfo_.persistenceKey,c.repoInfo_.includeNamespaceInQueryParams,!0),m&&(c.authTokenProvider_=m)}(M,o,r,I)}(this._delegate,o,r,m)}ref(o){if((0,qt.Dv)("database.ref",0,1,arguments.length),o instanceof Il){const r=ub(this._delegate,o.toString());return new Il(this,r)}{const r=du(this._delegate,o);return new Il(this,r)}}refFromURL(o){(0,qt.Dv)("database.refFromURL",1,1,arguments.length);const m=ub(this._delegate,o);return new Il(this,m)}goOffline(){return(0,qt.Dv)("database.goOffline",0,0,arguments.length),function Lf(c){(c=(0,qt.m9)(c))._checkNotDeleted("goOffline"),ib(c._repo)}(this._delegate)}goOnline(){return(0,qt.Dv)("database.goOnline",0,0,arguments.length),function Rf(c){(c=(0,qt.m9)(c))._checkNotDeleted("goOnline"),function Lg(c){c.persistentConnection_&&c.persistentConnection_.resume(Xv)}(c._repo)}(this._delegate)}}Bf.ServerValue={TIMESTAMP:function Rx(){return Yg}(),increment:c=>function Eb(c){return{".sv":{increment:c}}}(c)};var gE=Object.freeze({__proto__:null,initStandalone:function mE({app:c,url:o,version:r,customAuthImpl:m,namespace:M,nodeAdmin:I=!1}){wr(r);const G=new oi.zt("auth-internal",new oi.H0("database-standalone"));return G.setComponent(new oi.wA("auth-internal",()=>m,"PRIVATE")),{instance:new Bf(Af(c,G,void 0,o,I),c),namespace:M}}});const _E=Bf.ServerValue;!function vE(c){c.INTERNAL.registerComponent(new oi.wA("database-compat",(o,{instanceIdentifier:r})=>{const m=o.getProvider("app-compat").getImmediate(),M=o.getProvider("database").getImmediate({identifier:r});return new Bf(M,m)},"PUBLIC").setServiceProps({Reference:Il,Query:Xa,Database:Bf,DataSnapshot:Td,enableLogging:kf,INTERNAL:gE,ServerValue:_E}).setMultipleInstances(!0)),c.registerVersion("@firebase/database-compat","0.3.4")}($n.Z);var Ks=i(77579),Tb=i(88996),Kl=i(85363),Uf=i(34782),Gg=i(50590),bE=i(30576);function ip(c,o){return(0,bE.m)(o)?(0,Sr.w)(()=>c,o):(0,Sr.w)(()=>c)}var Ec=i(49468),Dd=i(39300);i(70259);const Ns=new Map,Id={activated:!1,tokenObservers:[]},Wf={initialized:!1,enabled:!1};function Yo(c){return Ns.get(c)||Object.assign({},Id)}function rd(){return Wf}const Pd="https://content-firebaseappcheck.googleapis.com/v1",ap="exchangeDebugToken",mu={OFFSET_DURATION:3e5,RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4};class lp{constructor(o,r,m,M,I){if(this.operation=o,this.retryPolicy=r,this.getWaitDuration=m,this.lowerBound=M,this.upperBound=I,this.pending=null,this.nextErrorWaitInterval=M,M>I)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(o){var r=this;return(0,h.Z)(function*(){r.stop();try{r.pending=new qt.BH,yield function cp(c){return new Promise(o=>{setTimeout(o,c)})}(r.getNextRun(o)),r.pending.resolve(),yield r.pending.promise,r.pending=new qt.BH,yield r.operation(),r.pending.resolve(),yield r.pending.promise,r.process(!0).catch(()=>{})}catch(m){r.retryPolicy(m)?r.process(!1).catch(()=>{}):r.stop()}})()}getNextRun(o){if(o)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const r=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),r}}}const Cs=new qt.LL("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"});function yh(c){if(!Yo(c).activated)throw Cs.create("use-before-activation",{appName:c.name})}function pp(c,o){return Eh.apply(this,arguments)}function Eh(){return(Eh=(0,h.Z)(function*({url:c,body:o},r){const m={"Content-Type":"application/json"},M=r.getImmediate({optional:!0});if(M){const kn=yield M.getHeartbeatsHeader();kn&&(m["X-Firebase-Client"]=kn)}const I={method:"POST",body:JSON.stringify(o),headers:m};let G,Me;try{G=yield fetch(c,I)}catch(kn){throw Cs.create("fetch-network-error",{originalErrorMessage:kn?.message})}if(200!==G.status)throw Cs.create("fetch-status-error",{httpStatus:G.status});try{Me=yield G.json()}catch(kn){throw Cs.create("fetch-parse-error",{originalErrorMessage:kn?.message})}const _t=Me.ttl.match(/^([\d.]+)(s)$/);if(!_t||!_t[2]||isNaN(Number(_t[1])))throw Cs.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${Me.ttl}`});const Gt=1e3*Number(_t[1]),Pn=Date.now();return{token:Me.token,expireTimeMillis:Pn+Gt,issuedAtTimeMillis:Pn}})).apply(this,arguments)}function Rb(c,o){const{projectId:r,appId:m,apiKey:M}=c.options;return{url:`${Pd}/projects/${r}/apps/${m}:${ap}?key=${M}`,body:{debug_token:o}}}const kb="firebase-app-check-database",Nb=1,hp="firebase-app-check-store";let fp=null;function xh(c,o){return mp.apply(this,arguments)}function mp(){return(mp=(0,h.Z)(function*(c,o){const m=(yield function Fb(){return fp||(fp=new Promise((c,o)=>{try{const r=indexedDB.open(kb,Nb);r.onsuccess=m=>{c(m.target.result)},r.onerror=m=>{var M;o(Cs.create("storage-open",{originalErrorMessage:null===(M=m.target.error)||void 0===M?void 0:M.message}))},r.onupgradeneeded=m=>{0===m.oldVersion&&m.target.result.createObjectStore(hp,{keyPath:"compositeKey"})}}catch(r){o(Cs.create("storage-open",{originalErrorMessage:r?.message}))}}),fp)}()).transaction(hp,"readwrite"),I=m.objectStore(hp).put({compositeKey:c,value:o});return new Promise((G,Me)=>{I.onsuccess=_t=>{G()},m.onerror=_t=>{var Gt;Me(Cs.create("storage-set",{originalErrorMessage:null===(Gt=_t.target.error)||void 0===Gt?void 0:Gt.message}))}})})).apply(this,arguments)}const gp=new Ri.Yd("@firebase/app-check");function Sh(c,o){return(0,qt.hl)()?function Gf(c,o){return xh(function Qf(c){return`${c.options.appId}-${c.name}`}(c),o)}(c,o).catch(r=>{gp.warn(`Failed to write token to IndexedDB. Error: ${r}`)}):Promise.resolve()}function Zf(){return rd().enabled}function Jf(){return qf.apply(this,arguments)}function qf(){return(qf=(0,h.Z)(function*(){const c=rd();if(c.enabled&&c.token)return c.token.promise;throw Error("\n            Can't get debug token in production mode.\n        ")})).apply(this,arguments)}const Ub={error:"UNKNOWN_ERROR"};function jb(c){return qt.US.encodeString(JSON.stringify(c),!1)}function _p(c){return vp.apply(this,arguments)}function vp(){return(vp=(0,h.Z)(function*(c,o=!1){const r=c.app;yh(r);const m=Yo(r);let I,M=m.token;if(M&&!Ad(M)&&(m.token=void 0,M=void 0),!M){const _t=yield m.cachedTokenPromise;_t&&(Ad(_t)?M=_t:yield Sh(r,void 0))}if(!o&&M&&Ad(M))return{token:M.token};let Me,G=!1;if(Zf()){m.exchangeTokenPromise||(m.exchangeTokenPromise=pp(Rb(r,yield Jf()),c.heartbeatServiceProvider).finally(()=>{m.exchangeTokenPromise=void 0}),G=!0);const _t=yield m.exchangeTokenPromise;return yield Sh(r,_t),m.token=_t,{token:_t.token}}try{m.exchangeTokenPromise||(m.exchangeTokenPromise=m.provider.getToken().finally(()=>{m.exchangeTokenPromise=void 0}),G=!0),M=yield Yo(r).exchangeTokenPromise}catch(_t){"appCheck/throttled"===_t.code?gp.warn(_t.message):gp.error(_t),I=_t}return M?I?Me=Ad(M)?{token:M.token,internalError:I}:Dh(I):(Me={token:M.token},m.token=M,yield Sh(r,M)):Me=Dh(I),G&&function nm(c,o){const r=Yo(c).tokenObservers;for(const m of r)try{"EXTERNAL"===m.type&&null!=o.error?m.error(o.error):m.next(o)}catch{}}(r,Me),Me})).apply(this,arguments)}function em(c){return wh.apply(this,arguments)}function wh(){return(wh=(0,h.Z)(function*(c){const o=c.app;yh(o);const{provider:r}=Yo(o);if(Zf()){const m=yield Jf(),{token:M}=yield pp(Rb(o,m),c.heartbeatServiceProvider);return{token:M}}{const{token:m}=yield r.getToken();return{token:m}}})).apply(this,arguments)}function Th(c,o){const r=Yo(c),m=r.tokenObservers.filter(M=>M.next!==o);0===m.length&&r.tokenRefresher&&r.tokenRefresher.isRunning()&&r.tokenRefresher.stop(),r.tokenObservers=m}function tm(c){const{app:o}=c,r=Yo(o);let m=r.tokenRefresher;m||(m=function Jg(c){const{app:o}=c;return new lp((0,h.Z)(function*(){let m;if(m=Yo(o).token?yield _p(c,!0):yield _p(c),m.error)throw m.error;if(m.internalError)throw m.internalError}),()=>!0,()=>{const r=Yo(o);if(r.token){let m=r.token.issuedAtTimeMillis+.5*(r.token.expireTimeMillis-r.token.issuedAtTimeMillis)+3e5;return m=Math.min(m,r.token.expireTimeMillis-3e5),Math.max(0,m-Date.now())}return 0},mu.RETRIAL_MIN_WAIT,mu.RETRIAL_MAX_WAIT)}(c),r.tokenRefresher=m),!m.isRunning()&&r.isTokenAutoRefreshEnabled&&m.start()}function Ad(c){return c.expireTimeMillis-Date.now()>0}function Dh(c){return{token:jb(Ub),error:c}}class Ld{constructor(o,r){this.app=o,this.heartbeatServiceProvider=r}_delete(){const{tokenObservers:o}=Yo(this.app);for(const r of o)Th(this.app,r.next);return Promise.resolve()}}const om="app-check-internal";!function o_(){(0,si._registerComponent)(new oi.wA("app-check",c=>function OE(c,o){return new Ld(c,o)}(c.getProvider("app").getImmediate(),c.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((c,o,r)=>{c.getProvider(om).initialize()})),(0,si._registerComponent)(new oi.wA(om,c=>function TE(c){return{getToken:o=>_p(c,o),getLimitedUseToken:()=>em(c),addTokenListener:o=>function Oh(c,o,r,m){const{app:M}=c,I=Yo(M);if(I.tokenObservers=[...I.tokenObservers,{next:r,error:m,type:o}],I.token&&Ad(I.token)){const Me=I.token;Promise.resolve().then(()=>{r({token:Me.token}),tm(c)}).catch(()=>{})}I.cachedTokenPromise.then(()=>tm(c))}(c,"INTERNAL",o),removeTokenListener:o=>Th(c.app,o)}}(c.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,si.registerVersion)("@firebase/app-check","0.8.0")}();class am{constructor(){return(0,No.vb)("app-check")}}typeof window<"u"&&window;var lm=i(29260);const Ih=new t.InjectionToken("angularfire2.auth.use-emulator"),Qb=new t.InjectionToken("angularfire2.auth.settings"),l_=new t.InjectionToken("angularfire2.auth.tenant-id"),c_=new t.InjectionToken("angularfire2.auth.langugage-code"),cm=new t.InjectionToken("angularfire2.auth.use-device-language"),Ph=new t.InjectionToken("angularfire.auth.persistence"),dm=(c,o,r,m,M,I,G,Me)=>(0,sn.cc)(`${c.name}.auth`,"AngularFireAuth",c.name,()=>{const _t=o.runOutsideAngular(()=>c.auth());if(r&&_t.useEmulator(...r),m&&(_t.tenantId=m),_t.languageCode=M,I&&_t.useDeviceLanguage(),G)for(const[Gt,Pn]of Object.entries(G))_t.settings[Gt]=Pn;return Me&&_t.setPersistence(Me),_t},[r,m,M,I,G,Me]);let yp=(()=>{class c{constructor(r,m,M,I,G,Me,_t,Gt,Pn,kn,fi,xi){const Ui=new Ks.x,qi=(0,Fr.of)(void 0).pipe((0,Kl.Q)(G.outsideAngular),(0,Sr.w)(()=>I.runOutsideAngular(()=>Promise.resolve().then(i.bind(i,32644)))),(0,$r.U)(()=>(0,sn.on)(r,I,m)),(0,$r.U)(Dr=>dm(Dr,I,Me,Gt,Pn,kn,_t,fi)),(0,Uf.d)({bufferSize:1,refCount:!1}));if((0,Ze.isPlatformServer)(M))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,Fr.of)(null);else{qi.pipe((0,Gg.P)()).subscribe();const ro=qi.pipe((0,Sr.w)(ko=>ko.getRedirectResult().then(Ll=>Ll,()=>null)),No.iC,(0,Uf.d)({bufferSize:1,refCount:!1})),Do=qi.pipe((0,Sr.w)(ko=>new Fa.y(Ll=>({unsubscribe:I.runOutsideAngular(()=>ko.onAuthStateChanged(ol=>Ll.next(ol),ol=>Ll.error(ol),()=>Ll.complete()))})))),Ia=qi.pipe((0,Sr.w)(ko=>new Fa.y(Ll=>({unsubscribe:I.runOutsideAngular(()=>ko.onIdTokenChanged(ol=>Ll.next(ol),ol=>Ll.error(ol),()=>Ll.complete()))}))));this.authState=ro.pipe(ip(Do),(0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular)),this.user=ro.pipe(ip(Ia),(0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular)),this.idToken=this.user.pipe((0,Sr.w)(ko=>ko?(0,Tb.D)(ko.getIdToken()):(0,Fr.of)(null))),this.idTokenResult=this.user.pipe((0,Sr.w)(ko=>ko?(0,Tb.D)(ko.getIdTokenResult()):(0,Fr.of)(null))),this.credential=(0,Ao.T)(ro,Ui,this.authState.pipe((0,Dd.h)(ko=>!ko))).pipe((0,$r.U)(ko=>ko?.user?ko:null),(0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular))}return(0,sn.pX)(this,qi,I,{spy:{apply:(Dr,ro,Do)=>{(Dr.startsWith("signIn")||Dr.startsWith("createUser"))&&Do.then(Ia=>Ui.next(Ia))}}})}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(sn.Dh),t.\u0275\u0275inject(sn.xv,8),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(No.HU),t.\u0275\u0275inject(Ih,8),t.\u0275\u0275inject(Qb,8),t.\u0275\u0275inject(l_,8),t.\u0275\u0275inject(c_,8),t.\u0275\u0275inject(cm,8),t.\u0275\u0275inject(Ph,8),t.\u0275\u0275inject(am,8))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"any"}),c})(),d_=(()=>{class c{constructor(){lm.Z.registerVersion("angularfire",No.q4.full,"auth-compat")}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=t.\u0275\u0275defineNgModule({type:c}),c.\u0275inj=t.\u0275\u0275defineInjector({providers:[yp]}),c})();function um(c){return null==c}function pm(c){return"function"==typeof c.set}function hm(c,o){return pm(o)?o:c.ref(o)}function h_(c,o){if(function u_(c){return"string"==typeof c}(c))return o.stringCase();if(pm(c))return o.firebaseCase();if(function p_(c){return"function"==typeof c.exportVal}(c))return o.snapshotCase();throw new Error("Expects a string, snapshot, or reference. Got: "+typeof c)}function Cp(c,o,r="on",m=Ma.z){return new Fa.y(M=>{let I=null;return I=c[r](o,(G,Me)=>{m.schedule(()=>{M.next({snapshot:G,prevKey:Me})}),"once"===r&&m.schedule(()=>M.complete())},G=>{m.schedule(()=>M.error(G))}),"on"===r?{unsubscribe(){null!=I&&c.off(o,I)}}:{unsubscribe(){}}}).pipe((0,$r.U)(M=>{const{snapshot:I,prevKey:G}=M;let Me=null;return I.exists()&&(Me=I.key),{type:o,payload:I,prevKey:G,key:Me}}),(0,fs.B)())}function f_(c,o){const r=c.length;for(let m=0;m<r;m++)if(c[m].payload.key===o)return m;return-1}function Jb(c,o){const{payload:r,prevKey:m,key:M}=o,I=f_(c,M),G=function Zb(c,o){if(um(o))return 0;{const r=f_(c,o);return-1===r?c.length:r+1}}(c,m);switch(o.type){case"value":if(o.payload&&o.payload.exists()){let Me=null;o.payload.forEach(_t=>{const Gt={payload:_t,type:"value",prevKey:Me,key:_t.key};return Me=_t.key,c=[...c,Gt],!1})}return c;case"child_added":if(I>-1){const Me=c[I-1];(Me&&Me.key||null)!==m&&(c=c.filter(_t=>_t.payload.key!==r.key)).splice(G,0,o)}else{if(null==m)return[o,...c];(c=c.slice()).splice(G,0,o)}return c;case"child_removed":return c.filter(Me=>Me.payload.key!==r.key);case"child_changed":return c.map(Me=>Me.payload.key===M?o:Me);case"child_moved":if(I>-1){const Me=c.splice(I,1)[0];return(c=c.slice()).splice(G,0,Me),c}return c;default:return c}}function m_(c){return(um(c)||0===c.length)&&(c=["child_added","child_removed","child_changed","child_moved"]),c}function g_(c,o,r){return function Xb(c,o,r){return Cp(c,"value","once",r).pipe((0,Sr.w)(m=>{const M=[(0,Fr.of)(m)];return o.forEach(I=>M.push(Cp(c,I,"on",r))),(0,Ao.T)(...M).pipe((0,os.R)(Jb,[]))}),(0,ya.x)())}(c,o=m_(o),r)}function __(c,o,r){const m=(o=m_(o)).map(M=>Cp(c,M,"on",r));return(0,Ao.T)(...m)}function v_(c,o){return function(m,M){return h_(m,{stringCase:()=>c.child(m)[o](M),firebaseCase:()=>m[o](M),snapshotCase:()=>m.ref[o](M)})}}function ny(c){return function(r){return r?h_(r,{stringCase:()=>c.child(r).remove(),firebaseCase:()=>r.remove(),snapshotCase:()=>r.ref.remove()}):c.remove()}}function b_(c,o){return function(){return Cp(c,"value","on",o)}}const oy=new t.InjectionToken("angularfire2.realtimeDatabaseURL"),y_=new t.InjectionToken("angularfire2.database.use-emulator");let fm=(()=>{class c{constructor(r,m,M,I,G,Me,_t,Gt,Pn,kn,fi,xi,Ui,qi,Dr){this.schedulers=Me;const ro=_t,Do=(0,sn.on)(r,G,m);Gt&&dm(Do,G,Pn,fi,xi,Ui,kn,qi),this.database=(0,sn.cc)(`${Do.name}.database.${M}`,"AngularFireDatabase",Do.name,()=>{const Ia=G.runOutsideAngular(()=>Do.database(M||void 0));return ro&&Ia.useEmulator(...ro),Ia},[ro])}list(r,m){const M=this.schedulers.ngZone.runOutsideAngular(()=>hm(this.database,r));let I=M;return m&&(I=m(M)),function iy(c,o){const r=o.schedulers.outsideAngular,m=o.schedulers.ngZone.run(()=>c.ref);return{query:c,update:v_(m,"update"),set:v_(m,"set"),push:M=>m.push(M),remove:ny(m),snapshotChanges:M=>g_(c,M,r).pipe(No.iC),stateChanges:M=>__(c,M,r).pipe(No.iC),auditTrail:M=>function qb(c,o,r){return function ty(c,o,r){return function ey(c,o){return Cp(c,"value","on",o).pipe((0,$r.U)(r=>{let m;return r.payload.forEach(M=>(m=M.key,!1)),{data:r,lastKeyToLoad:m}}))}(c,r).pipe((0,Ha.M)(o),(0,$r.U)(([M,I])=>{const G=M.lastKeyToLoad,Me=I.map(_t=>_t.key);return{actions:I,lastKeyToLoad:G,loadedKeys:Me}}),(0,La.n)(M=>-1===M.loadedKeys.indexOf(M.lastKeyToLoad)),(0,$r.U)(M=>M.actions))}(c,__(c,o).pipe((0,os.R)((M,I)=>[...M,I],[])),r)}(c,M,r).pipe(No.iC),valueChanges:(M,I)=>g_(c,M,r).pipe((0,$r.U)(Me=>Me.map(_t=>I&&I.idField?Object.assign(Object.assign({},_t.payload.val()),{[I.idField]:_t.key}):_t.payload.val())),No.iC)}}(I,this)}object(r){return function ry(c,o){return{query:c,snapshotChanges:()=>b_(c,o.schedulers.outsideAngular)().pipe(No.iC),update:r=>c.ref.update(r),set:r=>c.ref.set(r),remove:()=>c.ref.remove(),valueChanges:()=>b_(c,o.schedulers.outsideAngular)().pipe(No.iC,(0,$r.U)(m=>m.payload.exists()?m.payload.val():null))}}(this.schedulers.ngZone.runOutsideAngular(()=>hm(this.database,r)),this)}createPushId(){return this.schedulers.ngZone.runOutsideAngular(()=>this.database.ref()).push().key}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(sn.Dh),t.\u0275\u0275inject(sn.xv,8),t.\u0275\u0275inject(oy,8),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(No.HU),t.\u0275\u0275inject(y_,8),t.\u0275\u0275inject(yp,8),t.\u0275\u0275inject(Ih,8),t.\u0275\u0275inject(Qb,8),t.\u0275\u0275inject(l_,8),t.\u0275\u0275inject(c_,8),t.\u0275\u0275inject(cm,8),t.\u0275\u0275inject(Ph,8),t.\u0275\u0275inject(am,8))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"any"}),c})(),C_=(()=>{class c{constructor(){lm.Z.registerVersion("angularfire",No.q4.full,"rtdb-compat")}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=t.\u0275\u0275defineNgModule({type:c}),c.\u0275inj=t.\u0275\u0275defineInjector({providers:[fm]}),c})();var mm=i(97582),Ep=i(60515),gm=i(97272),_u=i(70262),Ah=i(86099),E_=i(46590),x_=i(26774);const vu=new t.InjectionToken("angularfire2.messaging.vapid-key"),FE=new t.InjectionToken("angularfire2.messaging.service-worker-registeration");let S_=(()=>{class c{constructor(r,m,M,I,G,Me,_t){const Gt=_t,Pn=(0,Fr.of)(void 0).pipe((0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular),(0,Sr.w)(x_.Gb),(0,Sr.w)(xi=>xi?i.e(742).then(i.bind(i,4666)):Ep.E),(0,$r.U)(()=>(0,sn.on)(r,I,m)),(0,Sr.w)(xi=>(0,sn.cc)(`${xi.name}.messaging`,"AngularFireMessaging",xi.name,()=>(0,mm.mG)(this,void 0,void 0,function*(){return xi.messaging()}),[])),(0,Uf.d)({bufferSize:1,refCount:!1}));this.requestPermission=Pn.pipe((0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular),(0,Sr.w)(()=>Notification.requestPermission())),this.getToken=Pn.pipe((0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular),(0,Sr.w)(xi=>(0,mm.mG)(this,void 0,void 0,function*(){if("granted"===Notification.permission){const Ui=Gt?yield Gt:null;return yield xi.getToken({vapidKey:Me,serviceWorkerRegistration:Ui})}return null})));const kn=new Fa.y(xi=>{navigator.permissions.query({name:"notifications"}).then(Ui=>{Ui.onchange=()=>xi.next()})}),fi=Pn.pipe((0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular),ip(kn),ip(this.getToken));return this.tokenChanges=Pn.pipe((0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular),(0,Sr.w)(()=>(0,gm.z)(this.getToken,fi))),this.messages=Pn.pipe((0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular),(0,Sr.w)(xi=>new Fa.y(Ui=>xi.onMessage(Ui)))),this.requestToken=Pn.pipe((0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular),(0,Sr.w)(()=>this.requestPermission),(0,_u.K)(()=>(0,Fr.of)(null)),(0,Ah.z)(()=>this.tokenChanges)),this.deleteToken=()=>Pn.pipe((0,Ec.R)(G.outsideAngular),(0,Kl.Q)(G.insideAngular),(0,Sr.w)(xi=>xi.deleteToken()),(0,E_.d)(!1)),(0,sn.pX)(this,Pn,I)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(sn.Dh),t.\u0275\u0275inject(sn.xv,8),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(No.HU),t.\u0275\u0275inject(vu,8),t.\u0275\u0275inject(FE,8))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"any"}),c})(),xp=(()=>{class c{constructor(){lm.Z.registerVersion("angularfire",No.q4.full,"fcm-compat")}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=t.\u0275\u0275defineNgModule({type:c}),c.\u0275inj=t.\u0275\u0275defineInjector({providers:[S_]}),c})();var ay=i(98184);const oa=void 0,sy=["ro",[["a.m.","p.m."],oa,oa],oa,[["D","L","M","M","J","V","S"],["dum.","lun.","mar.","mie.","joi","vin.","s\xe2m."],["duminic\u0103","luni","mar\u021bi","miercuri","joi","vineri","s\xe2mb\u0103t\u0103"],["du.","lu.","ma.","mi.","joi","vi.","s\xe2."]],oa,[["I","F","M","A","M","I","I","A","S","O","N","D"],["ian.","feb.","mar.","apr.","mai","iun.","iul.","aug.","sept.","oct.","nov.","dec."],["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]],oa,[["\xee.Hr.","d.Hr."],oa,["\xeenainte de Hristos","dup\u0103 Hristos"]],1,[6,0],["dd.MM.y","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",oa,oa,oa],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"RON","RON","leu rom\xe2nesc",{AUD:[oa,"$"],BRL:[oa,"R$"],BYN:[oa,"\u0440."],CAD:[oa,"$"],CNY:[oa,"\xa5"],EUR:[oa,"\u20ac"],GBP:[oa,"\xa3"],HKD:[oa,"$"],ILS:[oa,"\u20aa"],INR:[oa,"\u20b9"],JPY:[oa,"\xa5"],KRW:[oa,"\u20a9"],MXN:[oa,"$"],NZD:[oa,"$"],PHP:[oa,"\u20b1"],TWD:[oa,"NT$"],USD:[oa,"$"],VND:[oa,"\u20ab"],XCD:[oa,"$"]},"ltr",function BE(c){const o=c,r=Math.floor(Math.abs(c)),m=c.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===m?1:0!==m||0===o||o%100===Math.floor(o%100)&&o%100>=2&&o%100<=19?3:5}];var w_=i(49770),O_=i(62843),Wr=i(54968),UE=i(25032);const Rd=new Fa.y(UE.Z);var bu=i(13446),So=i(95698),oc=i(18505),_m=i(94086);const Da="Service workers are disabled or not supported by this browser";class Lh{constructor(o){if(this.serviceWorker=o,o){const m=(0,Wr.R)(o,"controllerchange").pipe((0,$r.U)(()=>o.controller)),M=(0,w_.P)(()=>(0,Fr.of)(o.controller)),I=(0,gm.z)(M,m);this.worker=I.pipe((0,Dd.h)(Pn=>!!Pn)),this.registration=this.worker.pipe((0,Sr.w)(()=>o.getRegistration()));const Gt=(0,Wr.R)(o,"message").pipe((0,$r.U)(Pn=>Pn.data)).pipe((0,Dd.h)(Pn=>Pn&&Pn.type)).pipe((0,bu.n)());Gt.connect(),this.events=Gt}else this.worker=this.events=this.registration=function Xx(c){return(0,w_.P)(()=>(0,O_._)(new Error(c)))}(Da)}postMessage(o,r){return this.worker.pipe((0,So.q)(1),(0,oc.b)(m=>{m.postMessage({action:o,...r})})).toPromise().then(()=>{})}postMessageWithOperation(o,r,m){const M=this.waitForOperationCompleted(m),I=this.postMessage(o,r);return Promise.all([I,M]).then(([,G])=>G)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(o){let r;return r="string"==typeof o?m=>m.type===o:m=>o.includes(m.type),this.events.pipe((0,Dd.h)(r))}nextEventOfType(o){return this.eventsOfType(o).pipe((0,So.q)(1))}waitForOperationCompleted(o){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,Dd.h)(r=>r.nonce===o),(0,So.q)(1),(0,$r.U)(r=>{if(void 0!==r.result)return r.result;throw new Error(r.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let T_=(()=>{class c{get isEnabled(){return this.sw.isEnabled}constructor(r){if(this.sw=r,this.pushManager=null,this.subscriptionChanges=new Ks.x,!r.isEnabled)return this.messages=Rd,this.notificationClicks=Rd,void(this.subscription=Rd);this.messages=this.sw.eventsOfType("PUSH").pipe((0,$r.U)(M=>M.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,$r.U)(M=>M.data)),this.pushManager=this.sw.registration.pipe((0,$r.U)(M=>M.pushManager));const m=this.pushManager.pipe((0,Sr.w)(M=>M.getSubscription()));this.subscription=(0,Ao.T)(m,this.subscriptionChanges)}requestSubscription(r){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(Da));const m={userVisibleOnly:!0};let M=this.decodeBase64(r.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),I=new Uint8Array(new ArrayBuffer(M.length));for(let G=0;G<M.length;G++)I[G]=M.charCodeAt(G);return m.applicationServerKey=I,this.pushManager.pipe((0,Sr.w)(G=>G.subscribe(m)),(0,So.q)(1)).toPromise().then(G=>(this.subscriptionChanges.next(G),G))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,So.q)(1),(0,Sr.w)(m=>{if(null===m)throw new Error("Not subscribed to push notifications.");return m.unsubscribe().then(M=>{if(!M)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Da))}decodeBase64(r){return atob(r)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(Lh))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})(),ly=(()=>{class c{get isEnabled(){return this.sw.isEnabled}constructor(r){if(this.sw=r,!r.isEnabled)return this.versionUpdates=Rd,this.available=Rd,this.activated=Rd,void(this.unrecoverable=Rd);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,Dd.h)(m=>"VERSION_READY"===m.type),(0,$r.U)(m=>({type:"UPDATE_AVAILABLE",current:m.currentVersion,available:m.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Da));const r=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:r},r)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Da));const r=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:r},r)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(Lh))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})();class vm{}const D_=new t.InjectionToken("NGSW_REGISTER_SCRIPT");function cy(c,o,r,m){return()=>{if(!(0,Ze.isPlatformBrowser)(m)||!("serviceWorker"in navigator)||!1===r.enabled)return;let M;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof r.registrationStrategy)M=r.registrationStrategy();else{const[G,...Me]=(r.registrationStrategy||"registerWhenStable:30000").split(":");switch(G){case"registerImmediately":M=(0,Fr.of)(null);break;case"registerWithDelay":M=I_(+Me[0]||0);break;case"registerWhenStable":M=Me[0]?(0,Ao.T)(dy(c),I_(+Me[0])):dy(c);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${r.registrationStrategy}`)}}c.get(t.NgZone).runOutsideAngular(()=>M.pipe((0,So.q)(1)).subscribe(()=>navigator.serviceWorker.register(o,{scope:r.scope}).catch(G=>console.error("Service worker registration failed with:",G))))}}function I_(c){return(0,Fr.of)(null).pipe((0,_m.g)(c))}function dy(c){return c.get(t.ApplicationRef).isStable.pipe((0,Dd.h)(r=>r))}function jE(c,o){return new Lh((0,Ze.isPlatformBrowser)(o)&&!1!==c.enabled?navigator.serviceWorker:void 0)}let HE=(()=>{class c{static register(r,m={}){return{ngModule:c,providers:[{provide:D_,useValue:r},{provide:vm,useValue:m},{provide:Lh,useFactory:jE,deps:[vm,t.PLATFORM_ID]},{provide:t.APP_INITIALIZER,useFactory:cy,deps:[t.Injector,D_,vm,t.PLATFORM_ID],multi:!0}]}}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=t.\u0275\u0275defineNgModule({type:c}),c.\u0275inj=t.\u0275\u0275defineInjector({providers:[T_,ly]}),c})();var Uc=i(88776),VE=i(90825),xs=i(28555),WE=i(34999);const Mp="@ngrx/store/init",py=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/,hy=(c,o)=>"string"==typeof o&&py.test(o)?new Date(o):o,zE=(c,o)=>o;function fy(c,o){return o.reduce((r,m)=>{if("string"==typeof m||"number"==typeof m){const M=c?.[m];void 0!==M&&(r[m]=M)}else for(const M in m)Object.prototype.hasOwnProperty.call(m,M)&&(r[M]=fy(c[M],m[M]));return r},{})}const GE=(c,o,r,m,M,I)=>{if(I)try{if(!0!==I(c))return}catch(G){if(G instanceof TypeError)return;throw G}o.forEach(G=>{let _t,Gt,Pn,Me=c[G];if("object"==typeof G){let kn=Object.keys(G)[0];if(Me=c[kn],typeof Me<"u"&&G[kn]){if(G[kn].serialize)Me=G[kn].serialize(Me);else{let fi;G[kn].reduce?fi=G[kn]:G[kn].filter&&(fi=G[kn].filter),fi&&(Me=fy(Me,fi)),G[kn].encrypt&&G[kn].decrypt?"function"==typeof G[kn].encrypt&&(Pn=G[kn].encrypt):(G[kn].encrypt||G[kn].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${G[kn]}' key object.`)}_t=G[kn].replacer,Gt=G[kn].space}G=kn}if(typeof Me<"u"&&void 0!==r)try{Pn&&(Me=Pn("string"==typeof Me?Me:JSON.stringify(Me,_t,Gt))),r.setItem(m(G),"string"==typeof Me?Me:JSON.stringify(Me,_t,Gt))}catch(kn){console.warn("Unable to save state to localStorage:",kn)}else if(typeof Me>"u"&&M&&void 0!==r)try{r.removeItem(m(G))}catch(kn){console.warn(`Exception on removing/cleaning undefined '${G}' state`,kn)}})},my=(c,o,r)=>((r.type===Mp||"@ngrx/store/update-reducers"===r.type)&&o&&(c=WE(c,o,{arrayMerge:(I,G,Me)=>G})),c),gy=c=>o=>{(void 0===c.storage&&!c.checkStorageAvailability||c.checkStorageAvailability&&typeof window<"u")&&(c.storage=localStorage||window.localStorage),void 0===c.storageKeySerializer&&(c.storageKeySerializer=I=>I),void 0===c.restoreDates&&(c.restoreDates=!0);let r=c.mergeReducer;(void 0===r||"function"!=typeof r)&&(r=my);const m=(c=>c.map(o=>{let r=o;if("object"==typeof o&&(r=Object.keys(o)[0]),"string"!=typeof r)throw new TypeError("localStorageSync Unknown Parameter Type: Expected type of string, got "+typeof r);return o}))(c.keys),M=c.rehydrate?((c,o,r,m)=>c.reduce((M,I)=>{let _t,Gt,G=I,Me=m?hy:zE;if("object"==typeof G&&(G=Object.keys(G)[0],"function"==typeof I[G]?Me=I[G]:(I[G].reviver&&(Me=I[G].reviver),I[G].deserialize&&(_t=I[G].deserialize)),I[G].encrypt&&I[G].decrypt?"function"==typeof I[G].encrypt&&"function"==typeof I[G].decrypt?Gt=I[G].decrypt:console.error(`Either encrypt or decrypt is not a function on '${I[G]}' key object.`):(I[G].encrypt||I[G].decrypt)&&console.error(`Either encrypt or decrypt function is not present on '${I[G]}' key object.`)),void 0!==o){let Pn=o.getItem(r(G));if(Pn){Gt&&(Pn=Gt(Pn));const kn=new RegExp("{|\\[");let fi=Pn;return("null"===Pn||"true"===Pn||"false"===Pn||kn.test(Pn.charAt(0)))&&(fi=JSON.parse(Pn,Me)),Object.assign({},M,{[G]:_t?_t(fi):fi})}}return M},{}))(m,c.storage,c.storageKeySerializer,c.restoreDates):void 0;return function(I,G){let Me;return Me=G.type!==Mp||I?{...I}:o(I,G),Me=r(Me,M,G),Me=o(Me,G),G.type!==Mp&&GE(Me,m,c.storage,c.storageKeySerializer,c.removeOnUndefined,c.syncCondition),Me}};var P_=i(79207),yu=i(68423),bm=i(41341),ea=i(89383);class $E{constructor(o,r="/assets/i18n/",m=".json"){this.http=o,this.prefix=r,this.suffix=m}getTranslation(o){return this.http.get(`${this.prefix}${o}${this.suffix}`)}}var co=i(11446),Fs=i(15535),Sp=i(21090),es=i(10442),_y=i(61603),Cu=i(32739);const vy=[];function by(c){const o=c.defaultIntegrations||[],r=c.integrations;let m;o.forEach(G=>{G.isDefaultInstance=!0}),m=Array.isArray(r)?[...o,...r]:"function"==typeof r?(0,Fs.lE)(r(o)):o;const M=function KE(c){const o={};return c.forEach(r=>{const{name:m}=r,M=o[m];M&&!M.isDefaultInstance&&r.isDefaultInstance||(o[m]=r)}),Object.keys(o).map(r=>o[r])}(m),I=function QE(c,o){for(let r=0;r<c.length;r++)if(!0===o(c[r]))return r;return-1}(M,G=>"Debug"===G.name);if(-1!==I){const[G]=M.splice(I,1);M.push(G)}return M}function yy(c,o){for(const r of o)r&&r.afterAllSetup&&r.afterAllSetup(c)}function Cy(c,o,r){if(r[o.name])es.X&&co.kg.log(`Integration skipped because it was already installed: ${o.name}`);else{if(r[o.name]=o,-1===vy.indexOf(o.name)&&(o.setupOnce(_y.cc,Cu.Gd),vy.push(o.name)),o.setup&&"function"==typeof o.setup&&o.setup(c),c.on&&"function"==typeof o.preprocessEvent){const m=o.preprocessEvent.bind(o);c.on("preprocessEvent",(M,I)=>m(M,I,c))}if(c.addEventProcessor&&"function"==typeof o.processEvent){const m=o.processEvent.bind(o),M=Object.assign((I,G)=>m(I,G,c),{id:o.name});c.addEventProcessor(M)}es.X&&co.kg.log(`Integration installed: ${o.name}`)}}function kd(c,o){return Object.assign(function(...m){return o(...m)},{id:c})}const Ey=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],XE=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],xy="InboundFilters",My=(c={})=>({name:xy,setupOnce(){},processEvent(o,r,m){const M=m.getOptions(),I=function ZE(c={},o={}){return{allowUrls:[...c.allowUrls||[],...o.allowUrls||[]],denyUrls:[...c.denyUrls||[],...o.denyUrls||[]],ignoreErrors:[...c.ignoreErrors||[],...o.ignoreErrors||[],...c.disableErrorDefaults?[]:Ey],ignoreTransactions:[...c.ignoreTransactions||[],...o.ignoreTransactions||[],...c.disableTransactionDefaults?[]:XE],ignoreInternal:void 0===c.ignoreInternal||c.ignoreInternal}}(c,M);return function wy(c,o){return o.ignoreInternal&&function Ty(c){try{return"SentryError"===c.exception.values[0].type}catch{}return!1}(c)?(es.X&&co.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,Fs.jH)(c)}`),!0):function JE(c,o){return!(c.type||!o||!o.length)&&function e1(c){const o=[];let r;c.message&&o.push(c.message);try{r=c.exception.values[c.exception.values.length-1]}catch{}return r&&r.value&&(o.push(r.value),r.type&&o.push(`${r.type}: ${r.value}`)),es.X&&0===o.length&&co.kg.error(`Could not extract message for event ${(0,Fs.jH)(c)}`),o}(c).some(r=>(0,Sp.U0)(r,o))}(c,o.ignoreErrors)?(es.X&&co.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,Fs.jH)(c)}`),!0):function Oy(c,o){if("transaction"!==c.type||!o||!o.length)return!1;const r=c.transaction;return!!r&&(0,Sp.U0)(r,o)}(c,o.ignoreTransactions)?(es.X&&co.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,Fs.jH)(c)}`),!0):function qE(c,o){if(!o||!o.length)return!1;const r=Cm(c);return!!r&&(0,Sp.U0)(r,o)}(c,o.denyUrls)?(es.X&&co.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,Fs.jH)(c)}.\nUrl: ${Cm(c)}`),!0):!function A_(c,o){if(!o||!o.length)return!0;const r=Cm(c);return!r||(0,Sp.U0)(r,o)}(c,o.allowUrls)&&(es.X&&co.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,Fs.jH)(c)}.\nUrl: ${Cm(c)}`),!0)}(o,I)?null:o}}),Sy=kd(xy,My);function Cm(c){try{let o;try{o=c.exception.values[0].stacktrace.frames}catch{}return o?function Dy(c=[]){for(let o=c.length-1;o>=0;o--){const r=c[o];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(o):null}catch{return es.X&&co.kg.error(`Cannot extract url for event ${(0,Fs.jH)(c)}`),null}}var fa=i(57759),ma=i(69319);let Em;const Iy="FunctionToString",L_=new WeakMap,Py=()=>({name:Iy,setupOnce(){Em=Function.prototype.toString;try{Function.prototype.toString=function(...c){const o=(0,fa.HK)(this),r=L_.has((0,ma.s3)())&&void 0!==o?o:this;return Em.apply(r,c)}}catch{}},setup(c){L_.set(c,!0)}}),t1=kd(Iy,Py);var R_=i(59843);const a1=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Nd(c,o=!1){const{host:r,path:m,pass:M,port:I,projectId:G,protocol:Me,publicKey:_t}=c;return`${Me}://${_t}${o&&M?`:${M}`:""}@${r}${I?`:${I}`:""}/${m&&`${m}/`}${G}`}function N_(c){return{protocol:c.protocol,publicKey:c.publicKey||"",pass:c.pass||"",host:c.host,port:c.port||"",path:c.path||"",projectId:c.projectId}}function B_(c){const o="string"==typeof c?function Ay(c){const o=a1.exec(c);if(!o)return void(0,co.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${c}`)});const[r,m,M="",I,G="",Me]=o.slice(1);let _t="",Gt=Me;const Pn=Gt.split("/");if(Pn.length>1&&(_t=Pn.slice(0,-1).join("/"),Gt=Pn.pop()),Gt){const kn=Gt.match(/^\d+/);kn&&(Gt=kn[0])}return N_({host:I,pass:M,path:_t,projectId:Gt,port:G,protocol:r,publicKey:m})}(c):N_(c);if(o&&function F_(c){if(!R_.X)return!0;const{port:o,projectId:r,protocol:m}=c;return!(["protocol","publicKey","host","projectId"].find(G=>!c[G]&&(co.kg.error(`Invalid Sentry Dsn: ${G} missing`),!0))||(r.match(/^\d+$/)?function k_(c){return"http"===c||"https"===c}(m)?o&&isNaN(parseInt(o,10))&&(co.kg.error(`Invalid Sentry Dsn: Invalid port ${o}`),1):(co.kg.error(`Invalid Sentry Dsn: Invalid protocol ${m}`),1):(co.kg.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(o))return o}const Ly="7";function Ry(c){return`${c.protocol?`${c.protocol}:`:""}//${c.host}${c.port?`:${c.port}`:""}${c.path?`/${c.path}`:""}/api/`}var ad=i(19725),Bs=i(42732);const wp=(0,Bs.Rf)();function xm(){if(!("fetch"in wp))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Mm(c){return c&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(c.toString())}const Sm=(0,Bs.Rf)(),Op={},z_={};function sd(c,o){Op[c]=Op[c]||[],Op[c].push(o)}function Fd(c,o){z_[c]||(o(),z_[c]=!0)}function ac(c,o){const r=c&&Op[c];if(r)for(const m of r)try{m(o)}catch(M){R_.X&&co.kg.error(`Error while triggering instrumentation handler.\nType: ${c}\nName: ${(0,ad.$P)(m)}\nError:`,M)}}const Tp=Bs.n2;let wm;function Y_(c){const o="history";sd(o,c),Fd(o,d1)}function d1(){if(!function W_(){const c=Sm.chrome;return!(c&&c.app&&c.app.runtime||!("history"in Sm)||!Sm.history.pushState||!Sm.history.replaceState)}())return;const c=Tp.onpopstate;function o(r){return function(...m){const M=m.length>2?m[2]:void 0;if(M){const I=wm,G=String(M);wm=G,ac("history",{from:I,to:G})}return r.apply(this,m)}}Tp.onpopstate=function(...r){const m=Tp.location.href,M=wm;if(wm=m,ac("history",{from:M,to:m}),c)try{return c.apply(this,r)}catch{}},(0,fa.hl)(Tp.history,"pushState",o),(0,fa.hl)(Tp.history,"replaceState",o)}var ga=i(96412),Pl=i(30509),u1=i(69572);function Eu(c,o=[]){return[c,o]}function p1(c,o){const[r,m]=c;return[r,[...m,o]]}function G_(c,o){const r=c[1];for(const m of r)if(o(m,m[0].type))return!0;return!1}function $_(c,o){return(o||new TextEncoder).encode(c)}function Fy(c,o){const[r,m]=c;let M=JSON.stringify(r);function I(G){"string"==typeof M?M="string"==typeof G?M+G:[$_(M,o),G]:M.push("string"==typeof G?$_(G,o):G)}for(const G of m){const[Me,_t]=G;if(I(`\n${JSON.stringify(Me)}\n`),"string"==typeof _t||_t instanceof Uint8Array)I(_t);else{let Gt;try{Gt=JSON.stringify(_t)}catch{Gt=JSON.stringify((0,u1.Fv)(_t))}I(Gt)}}return"string"==typeof M?M:function By(c){const o=c.reduce((M,I)=>M+I.length,0),r=new Uint8Array(o);let m=0;for(const M of c)r.set(M,m),m+=M.length;return r}(M)}function Uy(c,o){const r="string"==typeof c.data?$_(c.data,o):c.data;return[(0,fa.Jr)({type:"attachment",length:r.length,filename:c.filename,content_type:c.contentType,attachment_type:c.attachmentType}),r]}const jy={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function K_(c){return jy[c]}function Q_(c){if(!c||!c.sdk)return;const{name:o,version:r}=c.sdk;return{name:o,version:r}}class xc extends Error{constructor(o,r="warn"){super(o),this.message=o,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}var X_=i(95822),Uh=i(16940),y1=i(84497);const Om="Not capturing exception because it's already been captured.";class jc{constructor(o){if(this._options=o,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],o.dsn?this._dsn=B_(o.dsn):es.X&&co.kg.warn("No DSN provided, client will not send events."),this._dsn){const r=function ky(c,o={}){const m="string"!=typeof o&&o._metadata?o._metadata.sdk:void 0;return("string"==typeof o?o:o.tunnel)||`${function U_(c){return`${Ry(c)}${c.projectId}/envelope/`}(c)}?${function j_(c,o){return(0,fa._j)({sentry_key:c.publicKey,sentry_version:Ly,...o&&{sentry_client:`${o.name}/${o.version}`}})}(c,m)}`}(this._dsn,o);this._transport=o.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...o.transportOptions,url:r})}}captureException(o,r,m){if((0,Fs.YO)(o))return void(es.X&&co.kg.log(Om));let M=r&&r.event_id;return this._process(this.eventFromException(o,r).then(I=>this._captureEvent(I,r,m)).then(I=>{M=I})),M}captureMessage(o,r,m,M){let I=m&&m.event_id;const G=(0,ga.Le)(o)?o:String(o),Me=(0,ga.pt)(o)?this.eventFromMessage(G,r,m):this.eventFromException(o,m);return this._process(Me.then(_t=>this._captureEvent(_t,m,M)).then(_t=>{I=_t})),I}captureEvent(o,r,m){if(r&&r.originalException&&(0,Fs.YO)(r.originalException))return void(es.X&&co.kg.log(Om));let M=r&&r.event_id;return this._process(this._captureEvent(o,r,(o.sdkProcessingMetadata||{}).capturedSpanScope||m).then(Me=>{M=Me})),M}captureSession(o){"string"!=typeof o.release?es.X&&co.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(o),(0,X_.CT)(o,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(o){const r=this._transport;return r?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(o).then(m=>r.flush(o).then(M=>m&&M))):(0,Pl.WD)(!0)}close(o){return this.flush(o).then(r=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(o){this._eventProcessors.push(o)}setupIntegrations(o){(o&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(o){return this.getIntegrationByName(o)}getIntegrationByName(o){return this._integrations[o]}getIntegration(o){try{return this._integrations[o.id]||null}catch{return es.X&&co.kg.warn(`Cannot retrieve integration ${o.id} from the current Client`),null}}addIntegration(o){const r=this._integrations[o.name];Cy(this,o,this._integrations),r||yy(this,[o])}sendEvent(o,r={}){this.emit("beforeSendEvent",o,r);let m=function Bh(c,o,r,m){const M=Q_(r),I=c.type&&"replay_event"!==c.type?c.type:"event";!function Vy(c,o){o&&(c.sdk=c.sdk||{},c.sdk.name=c.sdk.name||o.name,c.sdk.version=c.sdk.version||o.version,c.sdk.integrations=[...c.sdk.integrations||[],...o.integrations||[]],c.sdk.packages=[...c.sdk.packages||[],...o.packages||[]])}(c,r&&r.sdk);const G=function Hy(c,o,r,m){const M=c.sdkProcessingMetadata&&c.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:c.event_id,sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&m&&{dsn:Nd(m)},...M&&{trace:(0,fa.Jr)({...M})}}}(c,M,m,o);return delete c.sdkProcessingMetadata,Eu(G,[[{type:I},c]])}(o,this._dsn,this._options._metadata,this._options.tunnel);for(const I of r.attachments||[])m=p1(m,Uy(I,this._options.transportOptions&&this._options.transportOptions.textEncoder));const M=this._sendEnvelope(m);M&&M.then(I=>this.emit("afterSendEvent",o,I),null)}sendSession(o){const r=function Wy(c,o,r,m){const M=Q_(r);return Eu({sent_at:(new Date).toISOString(),...M&&{sdk:M},...!!m&&o&&{dsn:Nd(o)}},["aggregates"in c?[{type:"sessions"},c]:[{type:"session"},c.toJSON()]])}(o,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}recordDroppedEvent(o,r,m){if(this._options.sendClientReports){const M="number"==typeof m?m:1,I=`${o}:${r}`;es.X&&co.kg.log(`Recording outcome: "${I}"${M>1?` (${M} times)`:""}`),this._outcomes[I]=(this._outcomes[I]||0)+M}}captureAggregateMetrics(o){es.X&&co.kg.log(`Flushing aggregated metrics, number of metrics: ${o.length}`);const r=function $y(c,o,r,m){const M={sent_at:(new Date).toISOString()};r&&r.sdk&&(M.sdk={name:r.sdk.name,version:r.sdk.version}),m&&o&&(M.dsn=Nd(o));const I=function Ky(c){const o=function zy(c){let o="";for(const r of c){const m=Object.entries(r.tags),M=m.length>0?`|#${m.map(([I,G])=>`${I}:${G}`).join(",")}`:"";o+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${M}|T${r.timestamp}\n`}return o}(c);return[{type:"statsd",length:o.length},o]}(c);return Eu(M,[I])}(o,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}on(o,r){this._hooks[o]||(this._hooks[o]=[]),this._hooks[o].push(r)}emit(o,...r){this._hooks[o]&&this._hooks[o].forEach(m=>m(...r))}_setupIntegrations(){const{integrations:o}=this._options;this._integrations=function Nh(c,o){const r={};return o.forEach(m=>{m&&Cy(c,m,r)}),r}(this,o),yy(this,o),this._integrationsInitialized=!0}_updateSessionFromEvent(o,r){let m=!1,M=!1;const I=r.exception&&r.exception.values;if(I){M=!0;for(const _t of I){const Gt=_t.mechanism;if(Gt&&!1===Gt.handled){m=!0;break}}}const G="ok"===o.status;(G&&0===o.errors||G&&m)&&((0,X_.CT)(o,{...m&&{status:"crashed"},errors:o.errors||Number(M||m)}),this.captureSession(o))}_isClientDoneProcessing(o){return new Pl.cW(r=>{let m=0;const I=setInterval(()=>{0==this._numProcessing?(clearInterval(I),r(!0)):(m+=1,o&&m>=o&&(clearInterval(I),r(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(o,r,m,M=(0,Cu.aF)()){const I=this.getOptions(),G=Object.keys(this._integrations);return!r.integrations&&G.length>0&&(r.integrations=G),this.emit("preprocessEvent",o,r),(0,y1.R)(I,o,r,m,this,M).then(Me=>{if(null===Me)return Me;const _t={...M.getPropagationContext(),...m?m.getPropagationContext():void 0};if((!Me.contexts||!Me.contexts.trace)&&_t){const{traceId:Pn,spanId:kn,parentSpanId:fi,dsc:xi}=_t;Me.contexts={trace:{trace_id:Pn,span_id:kn,parent_span_id:fi},...Me.contexts};const Ui=xi||(0,Uh._)(Pn,this,m);Me.sdkProcessingMetadata={dynamicSamplingContext:Ui,...Me.sdkProcessingMetadata}}return Me})}_captureEvent(o,r={},m){return this._processEvent(o,r,m).then(M=>M.event_id,M=>{if(es.X){const I=M;"log"===I.logLevel?co.kg.log(I.message):co.kg.warn(I)}})}_processEvent(o,r,m){const M=this.getOptions(),{sampleRate:I}=M,G=Qy(o),Me=Dp(o),_t=o.type||"error",Gt=`before send for type \`${_t}\``;if(Me&&"number"==typeof I&&Math.random()>I)return this.recordDroppedEvent("sample_rate","error",o),(0,Pl.$2)(new xc(`Discarding event because it's not included in the random sample (sampling rate = ${I})`,"log"));const Pn="replay_event"===_t?"replay":_t;return this._prepareEvent(o,r,m,(o.sdkProcessingMetadata||{}).capturedSpanIsolationScope).then(xi=>{if(null===xi)throw this.recordDroppedEvent("event_processor",Pn,o),new xc("An event processor returned `null`, will not send event.","log");if(r.data&&!0===r.data.__sentry__)return xi;const qi=function Tm(c,o,r){const{beforeSend:m,beforeSendTransaction:M}=c;return Dp(o)&&m?m(o,r):Qy(o)&&M?(o.spans&&(o.sdkProcessingMetadata={...o.sdkProcessingMetadata,spanCountBeforeProcessing:o.spans.length}),M(o,r)):o}(M,xi,r);return function C1(c,o){const r=`${o} must return \`null\` or a valid event.`;if((0,ga.J8)(c))return c.then(m=>{if(!(0,ga.PO)(m)&&null!==m)throw new xc(r);return m},m=>{throw new xc(`${o} rejected with ${m}`)});if(!(0,ga.PO)(c)&&null!==c)throw new xc(r);return c}(qi,Gt)}).then(xi=>{if(null===xi)throw this.recordDroppedEvent("before_send",Pn,o),G&&this.recordDroppedEvent("before_send","span",1+(o.spans||[]).length),new xc(`${Gt} returned \`null\`, will not send event.`,"log");const Ui=m&&m.getSession();if(!G&&Ui&&this._updateSessionFromEvent(Ui,xi),G){const Do=(xi.sdkProcessingMetadata&&xi.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(xi.spans?xi.spans.length:0);Do>0&&this.recordDroppedEvent("before_send","span",Do)}const qi=xi.transaction_info;if(G&&qi&&xi.transaction!==o.transaction){const Dr="custom";xi.transaction_info={...qi,source:Dr}}return this.sendEvent(xi,r),xi}).then(null,xi=>{throw xi instanceof xc?xi:(this.captureException(xi,{data:{__sentry__:!0},originalException:xi}),new xc(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${xi}`))})}_process(o){this._numProcessing++,o.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_sendEnvelope(o){if(this.emit("beforeEnvelope",o),this._isEnabled()&&this._transport)return this._transport.send(o).then(null,r=>{es.X&&co.kg.error("Error while sending event:",r)});es.X&&co.kg.error("Transport disabled")}_clearOutcomes(){const o=this._outcomes;return this._outcomes={},Object.keys(o).map(r=>{const[m,M]=r.split(":");return{reason:m,category:M,quantity:o[r]}})}}function Dp(c){return void 0===c.type}function Qy(c){return"transaction"===c.type}var Xy=i(99853),x1=i(43967);const Xl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Im(c,o){const r=Hh(c,o),m={type:o&&o.name,value:q_(o)};return r.length&&(m.stacktrace={frames:r}),void 0===m.type&&""===m.value&&(m.value="Unrecoverable error caught"),m}function jh(c,o){return{exception:{values:[Im(c,o)]}}}function Hh(c,o){const r=o.stacktrace||o.stack||"",m=function J_(c){if(c){if("number"==typeof c.framesToPop)return c.framesToPop;if(qy.test(c.message))return 1}return 0}(o);try{return c(r,m)}catch{}return[]}const qy=/Minified React error #\d+;/i;function q_(c){const o=c&&c.message;return o?o.error&&"string"==typeof o.error.message?o.error.message:o:"No error message"}function ev(c,o,r,m,M){let I;if((0,ga.VW)(o)&&o.error)return jh(c,o.error);if((0,ga.TX)(o)||(0,ga.fm)(o)){const G=o;if("stack"in o)I=jh(c,o);else{const Me=G.name||((0,ga.TX)(G)?"DOMError":"DOMException"),_t=G.message?`${Me}: ${G.message}`:Me;I=tv(c,_t,r,m),(0,Fs.Db)(I,_t)}return"code"in G&&(I.tags={...I.tags,"DOMException.code":`${G.code}`}),I}return(0,ga.VZ)(o)?jh(c,o):(0,ga.PO)(o)||(0,ga.cO)(o)?(I=function Jy(c,o,r,m){const M=(0,ma.s3)(),I=M&&M.getOptions().normalizeDepth,G={exception:{values:[{type:(0,ga.cO)(o)?o.constructor.name:m?"UnhandledRejection":"Error",value:e0(o,{isUnhandledRejection:m})}]},extra:{__serialized__:(0,u1.Qy)(o,I)}};if(r){const Me=Hh(c,r);Me.length&&(G.exception.values[0].stacktrace={frames:Me})}return G}(c,o,r,M),(0,Fs.EG)(I,{synthetic:!0}),I):(I=tv(c,o,r,m),(0,Fs.Db)(I,`${o}`,void 0),(0,Fs.EG)(I,{synthetic:!0}),I)}function tv(c,o,r,m){const M={};if(m&&r){const I=Hh(c,r);I.length&&(M.exception={values:[{value:o,stacktrace:{frames:I}}]})}if((0,ga.Le)(o)){const{__sentry_template_string__:I,__sentry_template_values__:G}=o;return M.logentry={message:I,params:G},M}return M.message=o,M}function e0(c,{isUnhandledRejection:o}){const r=(0,fa.zf)(c),m=o?"promise rejection":"exception";return(0,ga.VW)(c)?`Event \`ErrorEvent\` captured as ${m} with message \`${c.message}\``:(0,ga.cO)(c)?`Event \`${function nv(c){try{const o=Object.getPrototypeOf(c);return o?o.constructor.name:void 0}catch{}}(c)}\` (type=${c.type}) captured as ${m}`:`Object captured as ${m} with keys: ${r}`}const To=Bs.n2;let Pm=0;function iv(){return Pm>0}function Ip(c,o={},r){if("function"!=typeof c)return c;try{const M=c.__sentry_wrapped__;if(M)return"function"==typeof M?M:c;if((0,fa.HK)(c))return c}catch{return c}const m=function(){const M=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);const I=M.map(G=>Ip(G,o));return c.apply(this,I)}catch(I){throw function t0(){Pm++,setTimeout(()=>{Pm--})}(),(0,ma.$e)(G=>{G.addEventProcessor(Me=>(o.mechanism&&((0,Fs.Db)(Me,void 0,void 0),(0,Fs.EG)(Me,o.mechanism)),Me.extra={...Me.extra,arguments:M},Me)),(0,ma.Tb)(I)}),I}};try{for(const M in c)Object.prototype.hasOwnProperty.call(c,M)&&(m[M]=c[M])}catch{}(0,fa.$Q)(m,c),(0,fa.xp)(c,"__sentry_wrapped__",m);try{Object.getOwnPropertyDescriptor(m,"name").configurable&&Object.defineProperty(m,"name",{get:()=>c.name})}catch{}return m}class w1 extends jc{constructor(o){(function Dm(c,o,r=[o],m="npm"){const M=c._metadata||{};M.sdk||(M.sdk={name:`sentry.javascript.${o}`,packages:r.map(I=>({name:`${m}:@sentry/${I}`,version:Xy.J})),version:Xy.J}),c._metadata=M})(o,"browser",["browser"],To.SENTRY_SDK_SOURCE||"npm"),super(o),o.sendClientReports&&To.document&&To.document.addEventListener("visibilitychange",()=>{"hidden"===To.document.visibilityState&&this._flushOutcomes()})}eventFromException(o,r){return function M1(c,o,r,m){const I=ev(c,o,r&&r.syntheticException||void 0,m);return(0,Fs.EG)(I),I.level="error",r&&r.event_id&&(I.event_id=r.event_id),(0,Pl.WD)(I)}(this._options.stackParser,o,r,this._options.attachStacktrace)}eventFromMessage(o,r="info",m){return function S1(c,o,r="info",m,M){const G=tv(c,o,m&&m.syntheticException||void 0,M);return G.level=r,m&&m.event_id&&(G.event_id=m.event_id),(0,Pl.WD)(G)}(this._options.stackParser,o,r,m,this._options.attachStacktrace)}captureUserFeedback(o){if(!this._isEnabled())return void(Xl&&co.kg.warn("SDK not enabled, will not capture user feedback."));const r=function n0(c,{metadata:o,tunnel:r,dsn:m}){const M={event_id:c.event_id,sent_at:(new Date).toISOString(),...o&&o.sdk&&{sdk:{name:o.sdk.name,version:o.sdk.version}},...!!r&&!!m&&{dsn:Nd(m)}},I=function r0(c){return[{type:"user_report"},c]}(c);return Eu(M,[I])}(o,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(r)}_prepareEvent(o,r,m){return o.platform=o.platform||"javascript",super._prepareEvent(o,r,m)}_flushOutcomes(){const o=this._clearOutcomes();if(0===o.length)return void(Xl&&co.kg.log("No outcomes to send"));if(!this._dsn)return void(Xl&&co.kg.log("No dsn provided, will not send outcomes"));Xl&&co.kg.log("Sending outcomes:",o);const r=function Zy(c,o,r){return Eu(o?{dsn:o}:{},[[{type:"client_report"},{timestamp:r||(0,x1.yW)(),discarded_events:c}]])}(o,this._options.tunnel&&Nd(this._dsn));this._sendEnvelope(r)}}function a0(){"console"in Bs.n2&&co.RU.forEach(function(c){c in Bs.n2.console&&(0,fa.hl)(Bs.n2.console,c,function(o){return co.LD[c]=o,function(...r){ac("console",{args:r,level:c});const M=co.LD[c];M&&M.apply(Bs.n2.console,r)}})})}const ps=Bs.n2,Pp=1e3;let s0,rv,ov;function l0(){if(!ps.document)return;const c=ac.bind(null,"dom"),o=c0(c,!0);ps.document.addEventListener("click",o,!1),ps.document.addEventListener("keypress",o,!1),["EventTarget","Node"].forEach(r=>{const m=ps[r]&&ps[r].prototype;!m||!m.hasOwnProperty||!m.hasOwnProperty("addEventListener")||((0,fa.hl)(m,"addEventListener",function(M){return function(I,G,Me){if("click"===I||"keypress"==I)try{const _t=this,Gt=_t.__sentry_instrumentation_handlers__=_t.__sentry_instrumentation_handlers__||{},Pn=Gt[I]=Gt[I]||{refCount:0};if(!Pn.handler){const kn=c0(c);Pn.handler=kn,M.call(this,I,kn,Me)}Pn.refCount++}catch{}return M.call(this,I,G,Me)}}),(0,fa.hl)(m,"removeEventListener",function(M){return function(I,G,Me){if("click"===I||"keypress"==I)try{const _t=this,Gt=_t.__sentry_instrumentation_handlers__||{},Pn=Gt[I];Pn&&(Pn.refCount--,Pn.refCount<=0&&(M.call(this,I,Pn.handler,Me),Pn.handler=void 0,delete Gt[I]),0===Object.keys(Gt).length&&delete _t.__sentry_instrumentation_handlers__)}catch{}return M.call(this,I,G,Me)}}))})}function c0(c,o=!1){return r=>{if(!r||r._sentryCaptured)return;const m=function sv(c){try{return c.target}catch{return null}}(r);if(function Vh(c,o){return!("keypress"!==c||o&&o.tagName&&("INPUT"===o.tagName||"TEXTAREA"===o.tagName||o.isContentEditable))}(r.type,m))return;(0,fa.xp)(r,"_sentryCaptured",!0),m&&!m._sentryId&&(0,fa.xp)(m,"_sentryId",(0,Fs.DM)());const M="keypress"===r.type?"input":r.type;(function av(c){if(c.type!==rv)return!1;try{if(!c.target||c.target._sentryId!==ov)return!1}catch{}return!0})(r)||(c({event:r,name:M,global:o}),rv=r.type,ov=m?m._sentryId:void 0),clearTimeout(s0),s0=ps.setTimeout(()=>{ov=void 0,rv=void 0},Pp)}}const d0=Bs.n2,Ap="__sentry_xhr_v3__";function p0(){if(!d0.XMLHttpRequest)return;const c=XMLHttpRequest.prototype;(0,fa.hl)(c,"open",function(o){return function(...r){const m=Date.now(),M=(0,ga.HD)(r[0])?r[0].toUpperCase():void 0,I=function O1(c){if((0,ga.HD)(c))return c;try{return c.toString()}catch{}}(r[1]);if(!M||!I)return o.apply(this,r);this[Ap]={method:M,url:I,request_headers:{}},"POST"===M&&I.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const G=()=>{const Me=this[Ap];if(Me&&4===this.readyState){try{Me.status_code=this.status}catch{}ac("xhr",{args:[M,I],endTimestamp:Date.now(),startTimestamp:m,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,fa.hl)(this,"onreadystatechange",function(Me){return function(..._t){return G(),Me.apply(this,_t)}}):this.addEventListener("readystatechange",G),(0,fa.hl)(this,"setRequestHeader",function(Me){return function(..._t){const[Gt,Pn]=_t,kn=this[Ap];return kn&&(0,ga.HD)(Gt)&&(0,ga.HD)(Pn)&&(kn.request_headers[Gt.toLowerCase()]=Pn),Me.apply(this,_t)}}),o.apply(this,r)}}),(0,fa.hl)(c,"send",function(o){return function(...r){const m=this[Ap];return m?(void 0!==r[0]&&(m.body=r[0]),ac("xhr",{args:[m.method,m.url],startTimestamp:Date.now(),xhr:this}),o.apply(this,r)):o.apply(this,r)}})}function h0(){(function l1(){if("string"==typeof EdgeRuntime)return!0;if(!xm())return!1;if(Mm(wp.fetch))return!0;let c=!1;const o=wp.document;if(o&&"function"==typeof o.createElement)try{const r=o.createElement("iframe");r.hidden=!0,o.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(c=Mm(r.contentWindow.fetch)),o.head.removeChild(r)}catch(r){R_.X&&co.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return c})()&&(0,fa.hl)(Bs.n2,"fetch",function(c){return function(...o){const{method:r,url:m}=function cv(c){if(0===c.length)return{method:"GET",url:""};if(2===c.length){const[r,m]=c;return{url:Wh(r),method:Am(m,"method")?String(m.method).toUpperCase():"GET"}}const o=c[0];return{url:Wh(o),method:Am(o,"method")?String(o.method).toUpperCase():"GET"}}(o),M={args:o,fetchData:{method:r,url:m},startTimestamp:Date.now()};return ac("fetch",{...M}),c.apply(Bs.n2,o).then(I=>(ac("fetch",{...M,endTimestamp:Date.now(),response:I}),I),I=>{throw ac("fetch",{...M,endTimestamp:Date.now(),error:I}),I})}})}function Am(c,o){return!!c&&"object"==typeof c&&!!c[o]}function Wh(c){return"string"==typeof c?c:c?Am(c,"url")?c.url:c.toString?c.toString():"":""}var dv=i(36477);const f0=["fatal","error","warning","log","info","debug"];function Lm(c){return"warn"===c?"warning":f0.includes(c)?c:"log"}function ld(c){if(!c)return{};const o=c.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!o)return{};const r=o[6]||"",m=o[8]||"";return{host:o[4],path:o[5],protocol:o[2],search:r,hash:m,relative:o[5]+r+m}}const g0="Breadcrumbs",_0=(c={})=>{const o={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...c};return{name:g0,setupOnce(){},setup(r){o.console&&function o0(c){const o="console";sd(o,c),Fd(o,a0)}(function b0(c){return function(r){if((0,ma.s3)()!==c)return;const m={category:"console",data:{arguments:r.args,logger:"console"},level:Lm(r.level),message:(0,Sp.nK)(r.args," ")};if("assert"===r.level){if(!1!==r.args[0])return;m.message=`Assertion failed: ${(0,Sp.nK)(r.args.slice(1)," ")||"console.assert"}`,m.data.arguments=r.args.slice(1)}(0,ma.n_)(m,{input:r.args,level:r.level})}}(r)),o.dom&&function iM(c){sd("dom",c),Fd("dom",l0)}(function v0(c,o){return function(m){if((0,ma.s3)()!==c)return;let M,I,G="object"==typeof o?o.serializeAttribute:void 0,Me="object"==typeof o&&"number"==typeof o.maxStringLength?o.maxStringLength:void 0;Me&&Me>1024&&(Xl&&co.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${Me} was configured. Sentry will use 1024 instead.`),Me=1024),"string"==typeof G&&(G=[G]);try{const Gt=m.event,Pn=function P1(c){return!!c&&!!c.target}(Gt)?Gt.target:Gt;M=(0,dv.Rt)(Pn,{keyAttrs:G,maxStringLength:Me}),I=(0,dv.iY)(Pn)}catch{M="<unknown>"}if(0===M.length)return;const _t={category:`ui.${m.name}`,message:M};I&&(_t.data={"ui.component_name":I}),(0,ma.n_)(_t,{event:m.event,name:m.name,global:m.global})}}(r,o.dom)),o.xhr&&function u0(c){sd("xhr",c),Fd("xhr",p0)}(function I1(c){return function(r){if((0,ma.s3)()!==c)return;const{startTimestamp:m,endTimestamp:M}=r,I=r.xhr[Ap];if(!m||!M||!I)return;const{method:G,url:Me,status_code:_t,body:Gt}=I;(0,ma.n_)({category:"xhr",data:{method:G,url:Me,status_code:_t},type:"http"},{xhr:r.xhr,input:Gt,startTimestamp:m,endTimestamp:M})}}(r)),o.fetch&&function lv(c){const o="fetch";sd(o,c),Fd(o,h0)}(function y0(c){return function(r){if((0,ma.s3)()!==c)return;const{startTimestamp:m,endTimestamp:M}=r;if(M&&(!r.fetchData.url.match(/sentry_key/)||"POST"!==r.fetchData.method))if(r.error)(0,ma.n_)({category:"fetch",data:r.fetchData,level:"error",type:"http"},{data:r.error,input:r.args,startTimestamp:m,endTimestamp:M});else{const I=r.response,G={...r.fetchData,status_code:I&&I.status};(0,ma.n_)({category:"fetch",data:G,type:"http"},{input:r.args,response:I,startTimestamp:m,endTimestamp:M})}}}(r)),o.history&&Y_(function C0(c){return function(r){if((0,ma.s3)()!==c)return;let m=r.from,M=r.to;const I=ld(To.location.href);let G=m?ld(m):void 0;const Me=ld(M);(!G||!G.path)&&(G=I),I.protocol===Me.protocol&&I.host===Me.host&&(M=Me.relative),I.protocol===G.protocol&&I.host===G.host&&(m=G.relative),(0,ma.n_)({category:"navigation",data:{from:m,to:M}})}}(r)),o.sentry&&r.on&&r.on("beforeSendEvent",function uv(c){return function(r){(0,ma.s3)()===c&&(0,ma.n_)({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:(0,Fs.jH)(r)},{event:r})}}(r))}}},D1=kd(g0,_0),x0=()=>{let c;return{name:"Dedupe",setupOnce(){},processEvent(o){if(o.type)return o;try{if(function S0(c,o){return!(!o||!function w0(c,o){const r=c.message,m=o.message;return!(!r&&!m||r&&!m||!r&&m||r!==m||!D0(c,o)||!T0(c,o))}(c,o)&&!function O0(c,o){const r=pv(o),m=pv(c);return!!(r&&m&&r.type===m.type&&r.value===m.value&&D0(c,o)&&T0(c,o))}(c,o))}(o,c))return Xl&&co.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return c=o}}},M0=kd("Dedupe",x0);function T0(c,o){let r=hv(c),m=hv(o);if(!r&&!m)return!0;if(r&&!m||!r&&m||m.length!==r.length)return!1;for(let M=0;M<m.length;M++){const I=m[M],G=r[M];if(I.filename!==G.filename||I.lineno!==G.lineno||I.colno!==G.colno||I.function!==G.function)return!1}return!0}function D0(c,o){let r=c.fingerprint,m=o.fingerprint;if(!r&&!m)return!0;if(r&&!m||!r&&m)return!1;try{return r.join("")===m.join("")}catch{return!1}}function pv(c){return c.exception&&c.exception.values&&c.exception.values[0]}function hv(c){const o=c.exception;if(o)try{return o.values[0].stacktrace.frames}catch{return}}let Yh=null;function R1(){Yh=Bs.n2.onerror,Bs.n2.onerror=function(c,o,r,m,M){return ac("error",{column:m,error:M,line:r,msg:c,url:o}),!(!Yh||Yh.__SENTRY_LOADER__)&&Yh.apply(this,arguments)},Bs.n2.onerror.__SENTRY_INSTRUMENTED__=!0}let Rm=null;function N1(){Rm=Bs.n2.onunhandledrejection,Bs.n2.onunhandledrejection=function(c){return ac("unhandledrejection",c),!(Rm&&!Rm.__SENTRY_LOADER__)||Rm.apply(this,arguments)},Bs.n2.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const I0="GlobalHandlers",Gh=(c={})=>{const o={onerror:!0,onunhandledrejection:!0,...c};return{name:I0,setupOnce(){Error.stackTraceLimit=50},setup(r){o.onerror&&(function P0(c){!function L1(c){const o="error";sd(o,c),Fd(o,R1)}(o=>{const{stackParser:r,attachStacktrace:m}=R0();if((0,ma.s3)()!==c||iv())return;const{msg:M,url:I,line:G,column:Me,error:_t}=o,Gt=void 0===_t&&(0,ga.HD)(M)?function F1(c,o,r,m){let I=(0,ga.VW)(c)?c.message:c,G="Error";const Me=I.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return Me&&(G=Me[1],I=Me[2]),Nm({exception:{values:[{type:G,value:I}]}},o,r,m)}(M,I,G,Me):Nm(ev(r,_t||M,void 0,m,!1),I,G,Me);Gt.level="error",(0,ma.eN)(Gt,{originalException:_t,mechanism:{handled:!1,type:"onerror"}})})}(r),fv("onerror")),o.onunhandledrejection&&(function km(c){!function k1(c){const o="unhandledrejection";sd(o,c),Fd(o,N1)}(o=>{const{stackParser:r,attachStacktrace:m}=R0();if((0,ma.s3)()!==c||iv())return;const M=function A0(c){if((0,ga.pt)(c))return c;const o=c;try{if("reason"in o)return o.reason;if("detail"in o&&"reason"in o.detail)return o.detail.reason}catch{}return c}(o),I=(0,ga.pt)(M)?function L0(c){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(c)}`}]}}}(M):ev(r,M,void 0,m,!0);I.level="error",(0,ma.eN)(I,{originalException:M,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(r),fv("onunhandledrejection"))}}},sM=kd(I0,Gh);function Nm(c,o,r,m){const M=c.exception=c.exception||{},I=M.values=M.values||[],G=I[0]=I[0]||{},Me=G.stacktrace=G.stacktrace||{},_t=Me.frames=Me.frames||[],Gt=isNaN(parseInt(m,10))?void 0:m,Pn=isNaN(parseInt(r,10))?void 0:r,kn=(0,ga.HD)(o)&&o.length>0?o:(0,dv.l4)();return 0===_t.length&&_t.push({colno:Gt,filename:kn,function:"?",in_app:!0,lineno:Pn}),c}function fv(c){Xl&&co.kg.log(`Global Handler attached: ${c}`)}function R0(){const c=(0,ma.s3)();return c&&c.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const k0="HttpContext",N0=()=>({name:k0,setupOnce(){},preprocessEvent(c){if(!To.navigator&&!To.location&&!To.document)return;const o=c.request&&c.request.url||To.location&&To.location.href,{referrer:r}=To.document||{},{userAgent:m}=To.navigator||{},M={...c.request&&c.request.headers,...r&&{Referer:r},...m&&{"User-Agent":m}},I={...c.request,...o&&{url:o},headers:M};c.request=I}}),B1=kd(k0,N0);function $h(c,o,r=250,m,M,I,G){if(!(I.exception&&I.exception.values&&G&&(0,ga.V9)(G.originalException,Error)))return;const Me=I.exception.values.length>0?I.exception.values[I.exception.values.length-1]:void 0;Me&&(I.exception.values=function Hc(c,o){return c.map(r=>(r.value&&(r.value=(0,Sp.$G)(r.value,o)),r))}(mv(c,o,M,G.originalException,m,I.exception.values,Me,0),r))}function mv(c,o,r,m,M,I,G,Me){if(I.length>=r+1)return I;let _t=[...I];if((0,ga.V9)(m[M],Error)){F0(G,Me);const Gt=c(o,m[M]),Pn=_t.length;B0(Gt,M,Pn,Me),_t=mv(c,o,r,m[M],M,[Gt,..._t],Gt,Pn)}return Array.isArray(m.errors)&&m.errors.forEach((Gt,Pn)=>{if((0,ga.V9)(Gt,Error)){F0(G,Me);const kn=c(o,Gt),fi=_t.length;B0(kn,`errors[${Pn}]`,fi,Me),_t=mv(c,o,r,Gt,M,[kn,..._t],kn,fi)}}),_t}function F0(c,o){c.mechanism=c.mechanism||{type:"generic",handled:!0},c.mechanism={...c.mechanism,..."AggregateError"===c.type&&{is_exception_group:!0},exception_id:o}}function B0(c,o,r,m){c.mechanism=c.mechanism||{type:"generic",handled:!0},c.mechanism={...c.mechanism,type:"chained",source:o,exception_id:r,parent_id:m}}const gv="LinkedErrors",j0=(c={})=>{const o=c.limit||5,r=c.key||"cause";return{name:gv,setupOnce(){},preprocessEvent(m,M,I){const G=I.getOptions();$h(Im,G.stackParser,G.maxValueLength,r,o,m,M)}}},H0=kd(gv,j0),V0=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],W0="TryCatch",z0=(c={})=>{const o={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...c};return{name:W0,setupOnce(){o.setTimeout&&(0,fa.hl)(To,"setTimeout",Y0),o.setInterval&&(0,fa.hl)(To,"setInterval",Y0),o.requestAnimationFrame&&(0,fa.hl)(To,"requestAnimationFrame",dM),o.XMLHttpRequest&&"XMLHttpRequest"in To&&(0,fa.hl)(XMLHttpRequest.prototype,"send",sc);const r=o.eventTarget;r&&(Array.isArray(r)?r:V0).forEach(j1)}}},_v=kd(W0,z0);function Y0(c){return function(...o){return o[0]=Ip(o[0],{mechanism:{data:{function:(0,ad.$P)(c)},handled:!1,type:"instrument"}}),c.apply(this,o)}}function dM(c){return function(o){return c.apply(this,[Ip(o,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,ad.$P)(c)},handled:!1,type:"instrument"}})])}}function sc(c){return function(...o){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(M=>{M in r&&"function"==typeof r[M]&&(0,fa.hl)(r,M,function(I){const G={mechanism:{data:{function:M,handler:(0,ad.$P)(I)},handled:!1,type:"instrument"}},Me=(0,fa.HK)(I);return Me&&(G.mechanism.data.handler=(0,ad.$P)(Me)),Ip(I,G)})}),c.apply(this,o)}}function j1(c){const r=To[c]&&To[c].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||((0,fa.hl)(r,"addEventListener",function(m){return function(M,I,G){try{"function"==typeof I.handleEvent&&(I.handleEvent=Ip(I.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,ad.$P)(I),target:c},handled:!1,type:"instrument"}}))}catch{}return m.apply(this,[M,Ip(I,{mechanism:{data:{function:"addEventListener",handler:(0,ad.$P)(I),target:c},handled:!1,type:"instrument"}}),G])}}),(0,fa.hl)(r,"removeEventListener",function(m){return function(M,I,G){const Me=I;try{const _t=Me&&Me.__sentry_wrapped__;_t&&m.call(this,M,_t,G)}catch{}return m.call(this,M,Me,G)}}))}function Lp(c,o,r,m){const M={filename:c,function:o,in_app:!0};return void 0!==r&&(M.lineno=r),void 0!==m&&(M.colno=m),M}const K0=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Q0=/\((\S*)(?::(\d+))(?::(\d+))\)/,Z0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,bv=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yv=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,G1=(0,ad.pE)([30,c=>{const o=K0.exec(c);if(o){if(o[2]&&0===o[2].indexOf("eval")){const I=Q0.exec(o[2]);I&&(o[2]=I[1],o[3]=I[2],o[4]=I[3])}const[m,M]=Cv(o[1]||"?",o[2]);return Lp(M,m,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}}],[50,c=>{const o=Z0.exec(c);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){const I=bv.exec(o[3]);I&&(o[1]=o[1]||"eval",o[3]=I[1],o[4]=I[2],o[5]="")}let m=o[3],M=o[1]||"?";return[M,m]=Cv(M,m),Lp(m,M,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}}],[40,c=>{const o=yv.exec(c);return o?Lp(o[2],o[1]||"?",+o[3],o[4]?+o[4]:void 0):void 0}]),Cv=(c,o)=>{const r=-1!==c.indexOf("safari-extension"),m=-1!==c.indexOf("safari-web-extension");return r||m?[-1!==c.indexOf("@")?c.split("@")[0]:"?",r?`safari-extension:${o}`:`safari-web-extension:${o}`]:[c,o]};const iC=6e4;const oC=30;function xv(c,o,r=function nC(c){const o=[];function m(G){return o.splice(o.indexOf(G),1)[0]}return{$:o,add:function M(G){if(!function r(){return void 0===c||o.length<c}())return(0,Pl.$2)(new xc("Not adding Promise because buffer limit was reached."));const Me=G();return-1===o.indexOf(Me)&&o.push(Me),Me.then(()=>m(Me)).then(null,()=>m(Me).then(null,()=>{})),Me},drain:function I(G){return new Pl.cW((Me,_t)=>{let Gt=o.length;if(!Gt)return Me(!0);const Pn=setTimeout(()=>{G&&G>0&&Me(!1)},G);o.forEach(kn=>{(0,Pl.WD)(kn).then(()=>{--Gt||(clearTimeout(Pn),Me(!0))},_t)})})}}}(c.bufferSize||oC)){let m={};function I(G){const Me=[];if(G_(G,(kn,fi)=>{const xi=K_(fi);if(function Ev(c,o,r=Date.now()){return function Fm(c,o){return c[o]||c.all||0}(c,o)>r}(m,xi)){const Ui=Mv(kn,fi);c.recordDroppedEvent("ratelimit_backoff",xi,Ui)}else Me.push(kn)}),0===Me.length)return(0,Pl.WD)();const _t=Eu(G[0],Me),Gt=kn=>{G_(_t,(fi,xi)=>{const Ui=Mv(fi,xi);c.recordDroppedEvent(kn,K_(xi),Ui)})};return r.add(()=>o({body:Fy(_t,c.textEncoder)}).then(kn=>(void 0!==kn.statusCode&&(kn.statusCode<200||kn.statusCode>=300)&&es.X&&co.kg.warn(`Sentry responded with status code ${kn.statusCode} to sent event.`),m=function rC(c,{statusCode:o,headers:r},m=Date.now()){const M={...c},I=r&&r["x-sentry-rate-limits"],G=r&&r["retry-after"];if(I)for(const Me of I.trim().split(",")){const[_t,Gt,,,Pn]=Me.split(":",5),kn=parseInt(_t,10),fi=1e3*(isNaN(kn)?60:kn);if(Gt)for(const xi of Gt.split(";"))"metric_bucket"===xi?(!Pn||Pn.split(";").includes("custom"))&&(M[xi]=m+fi):M[xi]=m+fi;else M.all=m+fi}else G?M.all=m+function $1(c,o=Date.now()){const r=parseInt(`${c}`,10);if(!isNaN(r))return 1e3*r;const m=Date.parse(`${c}`);return isNaN(m)?iC:m-o}(G,m):429===o&&(M.all=m+6e4);return M}(m,kn),kn),kn=>{throw Gt("network_error"),kn})).then(kn=>kn,kn=>{if(kn instanceof xc)return es.X&&co.kg.error("Skipped sending event because buffer is full."),Gt("queue_overflow"),(0,Pl.WD)();throw kn})}return I.__sentry__baseTransport__=!0,{send:I,flush:G=>r.drain(G)}}function Mv(c,o){if("event"===o||"transaction"===o)return Array.isArray(c)?c[1]:void 0}let Hd;function K1(c,o=function Bm(){if(Hd)return Hd;if(Mm(To.fetch))return Hd=To.fetch.bind(To);const c=To.document;let o=To.fetch;if(c&&"function"==typeof c.createElement)try{const r=c.createElement("iframe");r.hidden=!0,c.head.appendChild(r);const m=r.contentWindow;m&&m.fetch&&(o=m.fetch),c.head.removeChild(r)}catch(r){Xl&&co.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return Hd=o.bind(To)}()){let r=0,m=0;return xv(c,function M(I){const G=I.body.length;r+=G,m++;const Me={body:I.body,method:"POST",referrerPolicy:"origin",headers:c.headers,keepalive:r<=6e4&&m<15,...c.fetchOptions};try{return o(c.url,Me).then(_t=>(r-=G,m--,{statusCode:_t.status,headers:{"x-sentry-rate-limits":_t.headers.get("X-Sentry-Rate-Limits"),"retry-after":_t.headers.get("Retry-After")}}))}catch(_t){return function aC(){Hd=void 0}(),r-=G,m--,(0,Pl.$2)(_t)}})}const Q1=4;function X1(c){return xv(c,function o(r){return new Pl.cW((m,M)=>{const I=new XMLHttpRequest;I.onerror=M,I.onreadystatechange=()=>{I.readyState===Q1&&m({statusCode:I.status,headers:{"x-sentry-rate-limits":I.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":I.getResponseHeader("Retry-After")}})},I.open("POST",c.url);for(const G in c.headers)Object.prototype.hasOwnProperty.call(c.headers,G)&&I.setRequestHeader(G,c.headers[G]);I.send(r.body)})})}const Z1=[My(),Py(),z0(),_0(),Gh(),j0(),x0(),N0()];function sC(c={}){void 0===c.defaultIntegrations&&(c.defaultIntegrations=function J1(c){return[...Z1]}()),void 0===c.release&&("string"==typeof __SENTRY_RELEASE__&&(c.release=__SENTRY_RELEASE__),To.SENTRY_RELEASE&&To.SENTRY_RELEASE.id&&(c.release=To.SENTRY_RELEASE.id)),void 0===c.autoSessionTracking&&(c.autoSessionTracking=!0),void 0===c.sendClientReports&&(c.sendClientReports=!0);const o={...c,stackParser:(0,ad.Sq)(c.stackParser||G1),integrations:by(c),transport:c.transport||(xm()?K1:X1)};(function n1(c,o){!0===o.debug&&(es.X?co.kg.enable():(0,co.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,ma.nZ)().update(o.initialScope);const m=new c(o);(function r1(c){const r=(0,Cu.Gd)().getStackTop();r.client=c,r.scope.setClient(c)})(m),function o1(c){c.init?c.init():c.setupIntegrations&&c.setupIntegrations()}(m)})(w1,o),c.autoSessionTracking&&function tx(){typeof To.document>"u"?Xl&&co.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."):((0,ma.yj)({ignoreDuration:!0}),(0,ma.cg)(),Y_(({from:c,to:o})=>{void 0!==c&&c!==o&&((0,ma.yj)({ignoreDuration:!0}),(0,ma.cg)())}))}()}function dC(c,o){const r={type:o.name||o.constructor.name,value:o.message},m=function cC(c,o){return c(o.stack||"",1)}(c,o);return m.length&&(r.stacktrace={frames:m}),r}const Vd="LinkedErrors",Ov=kd(Vd,(c={})=>{const o=c.limit||5,r=c.key||"cause";return{name:Vd,setupOnce(){},preprocessEvent(m,M,I){const G=I.getOptions();$h(dC,G.stackParser,G.maxValueLength,r,o,m,M)}}}),rx=e;let jm={};To.Sentry&&To.Sentry.Integrations&&(jm=To.Sentry.Integrations);const Tv={...jm,...rx,...n};var Rp=i(70918),ox=i(59808),St=i(28918),mM=i(36098);let gM=(()=>{class c{constructor(){}extractError(r){return r&&r.ngOriginalError&&(r=r.ngOriginalError),"string"==typeof r||r instanceof Error?r:r instanceof s.UA?r.error instanceof Error?r.error:r.error instanceof ErrorEvent?r.error.message:"string"==typeof r.error?`Server returned code ${r.status} with body "${r.error}"`:r.message:"Handled unknown error"}handleError(r){if(l.Z.sentrySwitchOn&&!St.VLR.isNativePlatform){const m=this.extractError(r);((c={},o=(0,Cu.Gd)())=>{if(!To.document)return void(Xl&&co.kg.error("Global document not defined in showReportDialog call"));const{client:r,scope:m}=o.getStackTop(),M=c.dsn||r&&r.getDsn();if(!M)return void(Xl&&co.kg.error("DSN not configured for showReportDialog call"));m&&(c.user={...m.getUser(),...c.user}),c.eventId||(c.eventId=o.lastEventId());const I=To.document.createElement("script");I.async=!0,I.crossOrigin="anonymous",I.src=function H_(c,o){const r=B_(c);if(!r)return"";const m=`${Ry(r)}embed/error-page/`;let M=`dsn=${Nd(r)}`;for(const I in o)if("dsn"!==I&&"onClose"!==I)if("user"===I){const G=o.user;if(!G)continue;G.name&&(M+=`&name=${encodeURIComponent(G.name)}`),G.email&&(M+=`&email=${encodeURIComponent(G.email)}`)}else M+=`&${encodeURIComponent(I)}=${encodeURIComponent(o[I])}`;return`${m}?${M}`}(M,c),c.onLoad&&(I.onload=c.onLoad);const{onClose:G}=c;if(G){const _t=Gt=>{if("__sentry_reportdialog_closed__"===Gt.data)try{G()}finally{To.removeEventListener("message",_t)}};To.addEventListener("message",_t)}const Me=To.document.head||To.document.body;Me?Me.appendChild(I):Xl&&co.kg.error("Not injecting report dialog. No injection point found in HTML")})({eventId:ma.Tb(m)})}}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})();var to=i(9116),ax=i(84385),pC=i(17445),ts=i(82722),Dv=i(47423);const Hm=(0,Dv.fo)("App",{web:()=>i.e(477).then(i.bind(i,94477)).then(c=>new c.AppWeb)});var kp=i(15439),Np=i.n(kp);const sx=(0,Dv.fo)("Toast",{web:()=>i.e(789).then(i.bind(i,82789)).then(c=>new c.ToastWeb)});var lx=i(17805),hC=i(29113),Kh=i(42274),Fp=i(52873),Al=i(12676),fC=i(16893),Ms=i(77044),hs=i(55738),rl=i(35559);class Bp{constructor(o,r,m,M,I,G,Me,_t,Gt,Pn,kn,fi,xi,Ui,qi,Dr,ro,Do,Ia){this.router=o,this.route=r,this.appService=m,this.cartService=M,this.searchService=I,this.userService=G,this.renderer2=Me,this.errorHandler=_t,this.customerLoyaltyService=Gt,this.scriptLoader=Pn,this.userLocationService=kn,this.swUpdate=fi,this.dialog=xi,this.location=Ui,this.translateService=qi,this.favoritesService=Dr,this.fbPixelTrackingService=ro,this.googleTrackingService=Do,this.snackbarMessageService=Ia,this.hasUpdate=!1,this.destroy$=new Ks.x,this.carmen=St.VLR}ngOnInit(){this.userService.handleTokensOnInitialization(),this.updatePwaIfUpdatesAvailable(),this.checkPWA(),this.initializeServices(),this.setLoginTokenFromSocialMedia(),this.setViewPortDimensions(),this.listenForBackButton(),this.addPlacesApiKey(),this.checkSafariVersion(),this.preventZoomingForIos(),this.subscribeToNewsletter()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updatePwaIfUpdatesAvailable(){St.VLR.isNativePlatform||(this.trackVersionUpdates(),this.swUpdate.isEnabled&&(this.checkForUpdatesOnLoad(),this.checkForUpdatesPeriodically()))}checkForUpdatesOnLoad(){this.swUpdate.checkForUpdate().then(()=>{this.hasUpdate&&this.reloadSite()})}checkSafariVersion(){St.VLR.matchUserAgentRegex(/^((?!chrome|android).)*safari/i)&&St.VLR.matchUserAgentRegex(/AppleWebKit\/604\.1/i)&&St.VLR.matchUserAgentRegex(/Mac OS X 10_13/i)&&St.VLR.matchUserAgentRegex(/Version\/11\.0/i)&&(this.dialog.closeAll(),this.dialog.open(Kh.N9,{width:(0,St.I3d)(600),minWidth:(0,St.I3d)(388),disableClose:!0,position:St.VLR.getDialogPosition(),panelClass:"base-panel-class"}))}checkForUpdatesPeriodically(){(0,pC.F)(6e4).pipe((0,ts.R)(this.destroy$)).subscribe(()=>this.swUpdate.checkForUpdate().then(()=>{this.hasUpdate&&!this.dialogRef&&this.openVersionDialog()}))}trackVersionUpdates(){this.swUpdate.versionUpdates.pipe((0,ts.R)(this.destroy$),(0,Dd.h)(o=>"VERSION_READY"===o.type),(0,$r.U)(o=>({type:"UPDATE_AVAILABLE",current:o.currentVersion,available:o.latestVersion}))).subscribe(o=>{this.hasUpdate=o?.available?.hash!==o?.current?.hash})}listenForBackButton(){let o=kp();St.VLR.isNativePlatform&&Hm.addListener("backButton",()=>{"/"===this.router.url?o.add(1,"second").isSameOrAfter(kp())?Hm.exitApp():(o=kp(),this.showConfirmToast()):this.location.back()})}showConfirmToast(){var o=this;return(0,h.Z)(function*(){const r=o.translateService.instant("APP.CONFIRMATION_TOAST");yield sx.show({text:r,duration:"short"})})()}openVersionDialog(){this.dialog.closeAll(),this.dialogRef=this.dialog.open(Kh.LB,{width:(0,St.I3d)(474),minWidth:(0,St.I3d)(474),position:St.VLR.getDialogPosition(),panelClass:"base-panel-class",disableClose:!0}),this.dialogRef.afterClosed().pipe((0,So.q)(1)).subscribe(()=>this.reloadSite())}reloadSite(){location.reload()}checkPWA(){const o=navigator;l.Z.isPwaMode=!St.VLR.isNativePlatform&&(o.standalone||window.matchMedia("(display-mode: standalone)").matches)}setViewPortDimensions(){setTimeout(function(){const o=window.innerHeight,r=window.innerWidth;document.querySelector("meta[name=viewport]").setAttribute("content","height="+o+"px, width="+r+"px, initial-scale=1.0")},300)}initializeServices(){this.scriptLoader.initialize(this.renderer2),this.appService.initialize(),this.cartService.initialize(),this.searchService.initialize(),this.userLocationService.initialize(),this.favoritesService.initialize(),this.customerLoyaltyService.initialize(),this.loadScripts(),lx.J.initialize({appId:"611689959302628"}),hC.e.initialize({clientId:l.Z.google.socialClientId,scopes:["profile","email"],grantOfflineAccess:!0})}ngAfterViewInit(){this.router.events.subscribe(o=>{if(o instanceof to.m2){let m=!1;["inStock","location","price","category","issuing","pharmaceutical_form"].forEach(M=>{this.route.snapshot.queryParamMap.has(M)&&(m=!0)}),m||window.scrollTo(0,0)}})}setLoginTokenFromSocialMedia(){this.route.queryParams.subscribe(o=>{if(o.token){this.userService.setToken(o.token,!0);const r=this.router.url.split("?")[0];"true"===o.newUser&&(this.fbPixelTrackingService.completeRegistration(),this.googleTrackingService.newAccount()),this.router.navigate([o.redirectUrl?o.redirectUrl:r])}})}loadScripts(){l.Z.getFeatureToggleStatus(St.uvn.TAG_MANAGER)&&this.scriptLoader.loadScript("tag-manager").catch(o=>{this.errorHandler.handleError(o)})}addPlacesApiKey(){const o=document.createElement("script");o.src=`https://maps.googleapis.com/maps/api/js?key=${St.VLR.isNativePlatform?St.xpH.MOBILE:l.Z.google.autoCompleteKey}&libraries=places&language=ro`,o.defer=!0,document.getElementsByTagName("head")[0].appendChild(o)}preventZoomingForIos(){St.VLR.isNativeIos&&document.addEventListener("gesturestart",o=>o.preventDefault())}subscribeToNewsletter(){this.route.queryParams.pipe((0,Sr.w)(o=>this.shouldSubscribeToNewsletter(o)?this.appService.confirmNewsletterSubscription({email:o.email,token:o.token}).pipe((0,$r.U)(()=>o)):(0,Fr.of)(o)),(0,ts.R)(this.destroy$)).subscribe({next:o=>this.handleSuccessNewsletterSubscription(o),error:()=>this.snackbarMessageService.displayMessage(St.CsS.ERROR,"PAGES.HOME.NEWSLETTER.SUBSCRIBE_ERROR_MESSAGE")})}handleSuccessNewsletterSubscription(o){this.shouldSubscribeToNewsletter(o)&&this.snackbarMessageService.displayMessage(St.CsS.SUCCESS,"PAGES.HOME.NEWSLETTER.SUBSCRIBE_SUCCESS_MESSAGE"),this.shouldSubscribeToNewsletter(o)&&o.email===this.user.email&&(this.user.profile.newsletter=!0)}shouldSubscribeToNewsletter(o){return o&&"newsletter"===o.redirect}}Bp.\u0275fac=function(o){return new(o||Bp)(t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(to.gz),t.\u0275\u0275directiveInject(Fp.z),t.\u0275\u0275directiveInject(St.vio.CartServiceToken),t.\u0275\u0275directiveInject(St.vio.SearchServiceToken),t.\u0275\u0275directiveInject(Al.O),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ErrorHandler),t.\u0275\u0275directiveInject(fC.h),t.\u0275\u0275directiveInject(St.vio.DynamicScriptLoaderServiceToken),t.\u0275\u0275directiveInject(St.vio.UserLocationServiceToken),t.\u0275\u0275directiveInject(ly),t.\u0275\u0275directiveInject(rl.on),t.\u0275\u0275directiveInject(Ze.Location),t.\u0275\u0275directiveInject(ea.sK),t.\u0275\u0275directiveInject(St.vio.FavoritesServiceToken),t.\u0275\u0275directiveInject(St.vio.PixelTrackingService),t.\u0275\u0275directiveInject(St.vio.GoogleTrackingService),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken))},Bp.\u0275cmp=t.\u0275\u0275defineComponent({type:Bp,selectors:[["app-root"]],features:[t.\u0275\u0275ProvidersFeature([{provide:ax.bI,useFactory:function ux(c){return()=>c.scrollStrategies.close({threshold:40})},deps:[ay.aV]}])],decls:7,vars:0,consts:[["id","app",1,"h-100","app","carmen"],["bdColor","rgba(51,51,51,0.7)","size","medium","color","#fff","type","ball-clip-rotate"],[0,"xmlns","xlink","http://www.w3.org/1999/xlink","version","1.1","xmlns","http://www.w3.org/2000/svg",1,"ui-blur-svg"],["id","ui-blur-svg-filter"],["stdDeviation","2"]],template:function(o,r){1&o&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275element(1,"router-outlet")(2,"ngx-spinner",1),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(3,"svg",2)(4,"defs")(5,"filter",3),t.\u0275\u0275element(6,"feGaussianBlur",4),t.\u0275\u0275elementEnd()()()())},dependencies:[yu.Ro,to.lC]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Bp.prototype,"user",void 0);class Pv{constructor(o,r,m){this.strategy=o,this.usesAuthToken=r,this.additionalHeaders=m}setNext(o){this.next=o}setAdditionalHeader(o){(!o||this.additionalHeaders?.get(St.sJ6)!==o?.get(St.sJ6))&&this.additionalHeaders.delete(St.sJ6),this.usesAuthToken&&o&&o.forEach((r,m)=>{this.additionalHeaders.has(m)||this.additionalHeaders.set(m,r)}),this.next&&this.next.setAdditionalHeader(o)}process(o){const r=o.url,m=this.strategy.process(r);if(m){let M=o.headers;return this.additionalHeaders.forEach((I,G)=>{G===St.sJ6&&r.includes(St.UMY.REFRESH_TOKEN)||(M=M.append(G,I))}),o.clone({url:m,headers:M})}return this.next?this.next.process(o):o}}class fx{constructor(o,r){this.enumUrl=o,this.prefix=r}process(o){let r="";const m=this.enumUrl.map(M=>M.toLowerCase());for(let M=0;M<=m.length;M++)if(m[M]&&o.toLowerCase().indexOf(m[M])>=0){r=`${this.prefix}${o}`;break}return r}}class mC{constructor(o,r,m=!1){this.regexExpression=o,this.value=r,this.replace=m}process(o){let r="";const m=RegExp(this.regexExpression);if(m.test(o)){const M=m.exec(o);M.length&&(r=this.replace?o.replace(M[0],this.value):`${this.value}${o}`)}return r}}var mx=i(50516);const gx=[];let _x=(()=>{class c{constructor(r,m,M,I){this.router=r,this.spinner=m,this.store=M,this.userService=I,this.hasTriedRefresh=!1,this.generateProcessingChain()}intercept(r,m){r.headers.get("noSpinner")||(this.spinner.show(),setTimeout(()=>{this.spinner.hide()},1e4)),this.urlProcessor.setAdditionalHeader(this.getTokenHeader());const M=this.urlProcessor.process(r);return m.handle(M).pipe((0,Sr.w)(I=>this.handleResponseOrError(I)),(0,_u.K)(I=>this.handleErrorWithRefreshToken(r,m,I)),(0,oc.b)({next:I=>{I instanceof s.Zn&&(r.headers.get("noSpinner")||this.spinner.hide())},error:I=>{r.headers.get("noSpinner")||this.spinner.hide(),I instanceof s.UA&&401===I.status&&(r.headers.get("noRedirect")||this.router.navigate([St.baM]),this.hasTriedRefresh=!1,this.store.dispatch(mx.F.stop()),St.VLR.deleteAuthTokensFromLocalStorage(),localStorage.removeItem(St.Umo.REMEMBER_ME),localStorage.removeItem(St.Umo.EXPIRATION_DATE),this.userService.userSource.next(null))}}))}handleErrorWithRefreshToken(r,m,M){if(M instanceof s.UA&&401===M.status&&!M.url.includes(St.UMY.REFRESH_TOKEN)&&!this.hasTriedRefresh)return(0,Fr.of)(St.VLR.getRefreshToken()).pipe((0,Sr.w)(I=>{if(I)return this.userService.refreshToken(I);throw M}),(0,Sr.w)(I=>(this.hasTriedRefresh=!1,this.urlProcessor.setAdditionalHeader(this.getTokenHeader(I.access_token)),m.handle(this.urlProcessor.process(r.clone())))),(0,_u.K)(I=>(I.url.includes(St.UMY.REFRESH_TOKEN)&&(this.hasTriedRefresh=!0),(0,O_._)(I))));throw M}generateProcessingChain(){const r=new fx(gx,l.Z.mockOrigin),m=new mC("^(actuator/.+)",l.Z.origin),M=new mC("^(api/)",l.Z.origin),I=new Map,G=new Map,Me=new Map;I.set("Accept","application/json").set(l.Z.mockApiKey.header,l.Z.mockApiKey.key),G.set("Accept","application/json").set(l.Z.apiKey.header,l.Z.apiKey.key),Me.set("Accept","application/json"),this.urlProcessor=new Pv(r,!1,I);const _t=new Pv(m,!1,Me),Gt=new Pv(M,!0,G);Gt.setAdditionalHeader(this.getTokenHeader()),_t.setNext(Gt),this.urlProcessor.setNext(_t)}getTokenHeader(r=null){let m="";const M=new Map;return m=r||localStorage.getItem(St.Umo.AUTH_TOKEN),m?M.set(St.sJ6,`${St.HEB} ${m}`):M}handleResponseOrError(r){return r?.body?.errorCode&&r.body.errorCode!==St.JOK.USER_NOT_FOUND&&!(r?.url||"").includes(St.UMY.GET_USER_PUBLIC_PROFILE)?(0,O_._)(new s.UA({error:r?.body,headers:r?.headers,status:r.status,statusText:r?.status,url:r?.url})):(0,Fr.of)(r)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(to.F0),t.\u0275\u0275inject(yu.t2),t.\u0275\u0275inject(xs.yh),t.\u0275\u0275inject(Al.O))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})();var vx=i(76542),bx=i(70037),f=i(21740);let _=(()=>{class c{constructor(r){this.userService=r}resolve(){return this.userService.getCurrent()}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(Al.O))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})();var C=i(99283),O=i(40488);const L=(0,Dv.fo)("PushNotifications",{});var J=i(19711),ye=i(92972),je=i(1576),lt=i(55829),Ht=i(99818),fn=i(3611);let Hn=(()=>{class c{constructor(){this.confidentialityPolicyLink=St.eN9,this.cookiesPolicyLink=St.Pd3,this.gdprCookieNotification=new t.EventEmitter,this.breakpoints=St.u3l}onGdprCookieNotification(r){this.gdprCookieNotification.emit(r)}getTextCenterClass(){return window.innerWidth>St.u3l.TABLET?"center-button":null}getMarginClass(){return window.innerWidth>St.u3l.TABLET?"button-margin":null}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-guest-user-cookie-notification-presentation"]],outputs:{gdprCookieNotification:"gdprCookieNotification"},decls:29,vars:29,consts:[["fxLayout","row",1,"cookie-notification-container"],["fxLayout","row",1,"container-width","mlr-auto"],["fxFlex","100","fxFlex.lt-lg","100","fxFlex.lt-sm","100","fxLayoutGap","16px","fxLayoutGap.lt-md","16px",1,"cookie-notification-text-color","mlr-auto","cookie-notification-container-orientation"],["src","assets/images/others/cookie.png",3,"alt"],["fxFlex","85",1,"fw-400","scrollable-text"],[1,"link","fw-500",3,"routerLink"],["fxFlex","15","fxLayoutAlign.lt-md","center","fxLayoutAlign","start center",1,"cookie-notification-container-orientation","buttons-container"],["fxFlex","60","fxFlex.lt-md","45","fxFlex.lt-sm","45","mat-flat-button","","color","primary",1,"button","accept-button",3,"ngClass","click"],["fxFlexAlign","start center",1,"material-icons"],["fxFlexAlign.lt-md","start",1,"fw-700"],["fxFlex","60","fxFlex.lt-md","30","fxFlex.lt-sm","45","mat-flat-button","",1,"button",3,"ngClass","click"],[1,"fw-700"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),t.\u0275\u0275element(3,"img",3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementStart(5,"p",4),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementStart(8,"a",5),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(11),t.\u0275\u0275pipe(12,"translate"),t.\u0275\u0275elementStart(13,"a",5),t.\u0275\u0275text(14),t.\u0275\u0275pipe(15,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(16,"div",6)(17,"button",7),t.\u0275\u0275listener("click",function(){return m.onGdprCookieNotification(!0)}),t.\u0275\u0275elementStart(18,"i",8),t.\u0275\u0275text(19,"done"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(20,"span",9),t.\u0275\u0275text(21),t.\u0275\u0275pipe(22,"uppercase"),t.\u0275\u0275pipe(23,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(24,"button",10),t.\u0275\u0275listener("click",function(){return m.onGdprCookieNotification(!1)}),t.\u0275\u0275elementStart(25,"span",11),t.\u0275\u0275text(26),t.\u0275\u0275pipe(27,"uppercase"),t.\u0275\u0275pipe(28,"translate"),t.\u0275\u0275elementEnd()()()()()()),2&r&&(t.\u0275\u0275advance(3),t.\u0275\u0275propertyInterpolate("alt",t.\u0275\u0275pipeBind1(4,11,"SHARED.GUEST_USER_COOKIE_NOTIFICATION.IMAGE_ALT")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(7,13,"SHARED.GUEST_USER_COOKIE_NOTIFICATION.PARAGRAPH_START")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",m.confidentialityPolicyLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(10,15,"SHARED.GUEST_USER_COOKIE_NOTIFICATION.CONFIDENTIALITY_POLICY")," "),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(12,17,"SHARED.GUEST_USER_COOKIE_NOTIFICATION.PARAGRAPH_MIDDLE")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",m.cookiesPolicyLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(15,19,"SHARED.GUEST_USER_COOKIE_NOTIFICATION.COOKIE_POLICY")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",m.getTextCenterClass()),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(22,21,t.\u0275\u0275pipeBind1(23,23,"SHARED.GUEST_USER_COOKIE_NOTIFICATION.ACCEPT_BUTTON"))," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",m.getMarginClass()),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(27,25,t.\u0275\u0275pipeBind1(28,27,"SHARED.GUEST_USER_COOKIE_NOTIFICATION.LATER_BUTTON"))," "))},dependencies:[Ze.NgClass,to.rH,je.xw,je.SQ,je.Wh,je.XD,je.yH,lt.oO,Ht.eB,fn.b,Ze.UpperCasePipe,ea.X$],styles:["div[_ngcontent-%COMP%], span[_ngcontent-%COMP%]{color:#ffffffb3}.cookie-notification-container-sm[_ngcontent-%COMP%]{padding:5px}.cookie-notification-container-orientation[_ngcontent-%COMP%]{flex-direction:row!important}.cookie-notification-container[_ngcontent-%COMP%]{height:90px;padding:16px;width:100vw}.cookie-notification-container[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{height:40px!important;min-height:40px!important;min-width:110px!important;border-radius:4px!important;font-size:14px!important;letter-spacing:.7px!important;text-align:center}.cookie-notification-container[_ngcontent-%COMP%]   .button-margin[_ngcontent-%COMP%]{margin-top:4px}.cookie-notification-container[_ngcontent-%COMP%]   .accept-button[_ngcontent-%COMP%]{color:#fff!important;padding-top:3px;font-weight:700;font-size:14px}.cookie-notification-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:89px;height:57px}.cookie-notification-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px!important;overflow:auto}.cookie-notification-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{letter-spacing:.7px!important;color:inherit}.cookie-notification-container[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{float:left;font-size:24px;font-weight:700;line-height:30px;margin-top:2px}.cookie-notification-container[_ngcontent-%COMP%]   .cookie-notification-text-color[_ngcontent-%COMP%]{color:#1e1e1ee8}.cookie-notification-container[_ngcontent-%COMP%]   .scrollable-text[_ngcontent-%COMP%]{max-height:60px!important;min-height:50px!important;overflow:auto;padding-right:8px}.buttons-container[_ngcontent-%COMP%]{place-content:unset!important}@media (min-width: 768px){p[_ngcontent-%COMP%]{margin-right:16px!important}img[_ngcontent-%COMP%]{margin-right:8px}.button[_ngcontent-%COMP%]{width:110px!important;max-width:110px!important}i[_ngcontent-%COMP%]{margin-left:-8px!important;margin-right:4px!important}.buttons-container[_ngcontent-%COMP%]{align-items:center!important;max-width:30%!important}.container-width[_ngcontent-%COMP%]{max-width:1400px}}@media (min-width: 960px){.buttons-container[_ngcontent-%COMP%]{max-width:23%!important}}@media (min-width: 1404px){img[_ngcontent-%COMP%]{margin-right:16px!important}.buttons-container[_ngcontent-%COMP%]{max-width:15%!important}}@media (max-width: 960px){img[_ngcontent-%COMP%]{margin-right:8px!important}.buttons-container[_ngcontent-%COMP%]{max-width:28%!important}}@media (max-width: 768px){p[_ngcontent-%COMP%]{margin-bottom:16px!important;margin-right:0!important}img[_ngcontent-%COMP%]{width:117px!important;height:75px!important;margin-bottom:16px;margin-top:0;margin-left:auto!important;margin-right:auto!important;z-index:1}.buttons-container[_ngcontent-%COMP%]{max-width:100%!important}i[_ngcontent-%COMP%]{float:left;margin-right:-36px!important}.cookie-notification-container-orientation[_ngcontent-%COMP%]{flex-direction:column!important}.cookie-notification-container[_ngcontent-%COMP%]{height:280px}.button[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important}}"],changeDetection:0}),c})(),di=(()=>{class c{constructor(r,m){this.snackBar=r,this.cookieService=m}ngAfterViewInit(){this.checkForAdBlocker()}ngOnDestroy(){this.intervalId&&clearInterval(this.intervalId)}checkForAdBlocker(){var r=this;return(0,h.Z)(function*(){navigator.brave&&(yield navigator.brave?.isBrave())&&(r.intervalId=setInterval(()=>{const M=document.querySelector(".cookie-notification-container");window.getComputedStyle(M,null)?.display?.includes("none")&&r.snackBar.dismiss()},2e3))})()}onGdprCookieNotification(r){r?(this.cookieService.set("gdprCookieNotification","userHasReadNotification",366,"/",window.location.hostname,l.Z.enableSSL,"Strict"),this.cookieService.set("trackingAgreement","userHasAcceptedToBeTracked",366,"/",window.location.hostname,l.Z.enableSSL,"Strict"),this.updateUserConsent(!0)):(this.cookieService.set("gdprCookieNotification","userHasReadNotification",null,"/",window.location.hostname,l.Z.enableSSL,"Strict"),this.updateUserConsent()),this.snackBar.dismiss()}updateUserConsent(r=!1){const m=r?"granted":"denied";window.gtag("consent","update",{ad_storage:m,analytics_storage:m,ad_personalization:m,ad_user_data:m})}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(ye.pl),t.\u0275\u0275directiveInject(C.N))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-guest-user-cookie-notification"]],decls:1,vars:0,consts:[[3,"gdprCookieNotification"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"app-guest-user-cookie-notification-presentation",0),t.\u0275\u0275listener("gdprCookieNotification",function(I){return m.onGdprCookieNotification(I)}),t.\u0275\u0275elementEnd())},dependencies:[Hn]}),c})();var Ei=i(69937),Bi=(()=>{return(c=Bi||(Bi={})).MASK="mask",c.RESTAURANT="restaurants",Bi;var c})(),Zi=(()=>{return(c=Zi||(Zi={})).DEFAULT_NEW_ORDER="default-new",c.NATIVE_NEW_ORDER="native-new",c.ENABLE_NOTIFICATIONS="enable-native",Zi;var c})(),ar=i(44850);function Or(c,o){1&c&&(t.\u0275\u0275elementStart(0,"p",12),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&c&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"PAGES.BUSINESS.NEW_ORDERS_WARNING_DIALOG.NOTIFICATIONS_MESSAGE")," "))}function Kr(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"audio",13,14),t.\u0275\u0275element(2,"source",15),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("src",r.audioPath,t.\u0275\u0275sanitizeUrl)}}let Qi=(()=>{class c{constructor(r,m){this.dialogRef=r,this.data=m,this.audioPath=St.VRK}get title(){return this.isEnableType?"ENABLE_NOTIFICATIONS_TITLE":"TITLE"}get isEnableType(){return this.data.type===Zi.ENABLE_NOTIFICATIONS}get imagePath(){return this.data.type===Zi.NATIVE_NEW_ORDER?St.R9z:St._yl}close(r=!1){this.dialogRef.close(r)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(rl.hV),t.\u0275\u0275directiveInject(rl.eJ))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-new-orders-warning-dialog"]],decls:19,vars:12,consts:[[1,"header"],[1,"close-button-container",3,"click"],[1,"material-icons"],[1,"full-width-divider"],["fxLayout","column","fxLayoutAlign","center center",1,"content","w-100"],[1,"img-container"],[3,"src","alt"],[1,"title"],["class","detail",4,"ngIf"],["autoplay","","loop","",4,"ngIf"],[1,"footer"],["mat-flat-button","",1,"green-button-style","mat-primary","w-100",3,"click"],[1,"detail"],["autoplay","","loop",""],["audioOption",""],["type","audio/mp3",3,"src"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1),t.\u0275\u0275listener("click",function(){return m.close()}),t.\u0275\u0275elementStart(2,"i",2),t.\u0275\u0275text(3,"close"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(4,"mat-divider",3),t.\u0275\u0275elementStart(5,"div",4)(6,"div",5),t.\u0275\u0275element(7,"img",6),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"p",7),t.\u0275\u0275text(10),t.\u0275\u0275pipe(11,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(12,Or,3,3,"p",8),t.\u0275\u0275template(13,Kr,3,1,"audio",9),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(14,"mat-divider",3),t.\u0275\u0275elementStart(15,"div",10)(16,"button",11),t.\u0275\u0275listener("click",function(){return m.close(!0)}),t.\u0275\u0275text(17),t.\u0275\u0275pipe(18,"translate"),t.\u0275\u0275elementEnd()()),2&r&&(t.\u0275\u0275advance(7),t.\u0275\u0275property("src",m.imagePath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(8,6,"PAGES.BUSINESS.NEW_ORDERS_WARNING_DIALOG.MESSAGE")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(11,8,"PAGES.BUSINESS.NEW_ORDERS_WARNING_DIALOG."+m.title)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",m.isEnableType),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!m.isEnableType),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(18,10,"PAGES.BUSINESS.NEW_ORDERS_WARNING_DIALOG.I_UNDERSTAND")," "))},dependencies:[Ze.NgIf,je.xw,je.Wh,Ht.eB,ar.d,fn.b,ea.X$],styles:[".close-button-container[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.content[_ngcontent-%COMP%]{padding:16px 0}.content[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:220px}.content[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:19px;font-weight:700}.content[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{font-size:14px;margin:21px 0 24px}.footer[_ngcontent-%COMP%]{padding-top:16px}.full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}"]}),c})();class xu{constructor(o,r,m,M,I){this.angularFireDB=o,this.angularFireAuth=r,this.angularFireMessaging=m,this.cookieService=M,this.http=I,this.currentMessage=new Ks.x,this.hasToken=new Ks.x,this.permissionsAllowedOnNativeDevice=new Ks.x,this.updateTokenHeaders=(new s.WM).set("noSpinner","true")}updateToken(o){const r=this.cookieService.get(St.fSN.businessNotificationToken);!o&&r&&this.removeToken(),r!==o&&o&&this.saveToken(r,o),this.angularFireAuth.authState.pipe((0,So.q)(1)).subscribe(m=>{if(!m)return;const M={[m.uid]:o};this.angularFireDB.object("fcmTokens/").update(M)})}requestPermission(){this.angularFireMessaging.requestToken.subscribe(o=>{this.hasToken.next(!!o),this.updateToken(o)})}receiveMessage(){this.angularFireMessaging.messages.subscribe(o=>{this.currentMessage.next(o)})}registerPush(){var o=this;return(0,h.Z)(function*(){let r=yield L.checkPermissions();"prompt"===r?.receive&&(r=yield L.requestPermissions()),o.permissionsAllowedOnNativeDevice.next("granted"===r?.receive),"granted"===r?.receive?yield L.register():(o.hasToken.next(!1),o.updateToken(null)),yield L.removeAllListeners(),L.addListener("registration",m=>{o.hasToken.next(!!m.value),o.updateToken(m.value)}),L.addListener("pushNotificationReceived",function(){var m=(0,h.Z)(function*(M){o.currentMessage.next(M)});return function(M){return m.apply(this,arguments)}}()),L.addListener("pushNotificationActionPerformed",function(){var m=(0,h.Z)(function*(M){o.currentMessage.next(M?.notification?.data)});return function(M){return m.apply(this,arguments)}}())})()}getNotificationTokenEndpointByUserType(){return this.user?.isBusiness()?St.YsS.NOTIFICATIONS_TOKEN_BUSINESS_ENDPOINT:St.YsS.NOTIFICATIONS_TOKEN_CLIENT_ENDPOINT}saveToken(o,r){const m={oldToken:o.length>0?o:null,newToken:r};this.http.put(this.getNotificationTokenEndpointByUserType(),m,{headers:this.updateTokenHeaders}).pipe((0,So.q)(1)).subscribe(()=>this.cookieService.set(St.fSN.businessNotificationToken,r,365,"/",window.location.hostname,l.Z.enableSSL,"Strict"))}removeToken(){const o=this.cookieService.get(St.fSN.businessNotificationToken);if(o){const r={oldToken:o,newToken:null};this.http.put(this.getNotificationTokenEndpointByUserType(),r,{headers:this.updateTokenHeaders}).pipe((0,So.q)(1)).subscribe(()=>this.cookieService.delete(St.fSN.businessNotificationToken,"/",window.location.hostname))}}}xu.\u0275fac=function(o){return new(o||xu)(t.\u0275\u0275inject(fm),t.\u0275\u0275inject(yp),t.\u0275\u0275inject(S_),t.\u0275\u0275inject(C.N),t.\u0275\u0275inject(s.eN))},xu.\u0275prov=t.\u0275\u0275defineInjectable({token:xu,factory:xu.\u0275fac,providedIn:"root"}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Object)}()],xu.prototype,"user",void 0);var _M=i(77784),vM=i(61700),bM=i(29466),Av=i(61135);class Mu{constructor(o){this.document=o,this.hasReturnedToForegroundSubject=new Av.X(!1)}setRenderer(o){this.renderer=o,this.renderer&&this.monitorApplication()}hasReturnedToForeground(){return this.hasReturnedToForegroundSubject.asObservable()}monitorApplication(){if(this.user&&this.user.isClient())try{this.renderer.listen("document","visibilitychange",()=>this.handleVisibilityChange())}catch(o){console.error("Error attaching visibility change listener:",o)}else console.log("User is not a patient or user is not defined.")}handleVisibilityChange(){"visible"===this.document.visibilityState&&this.hasReturnedToForegroundSubject.next(!0)}}Mu.\u0275fac=function(o){return new(o||Mu)(t.\u0275\u0275inject(Ze.DOCUMENT))},Mu.\u0275prov=t.\u0275\u0275defineInjectable({token:Mu,factory:Mu.\u0275fac,providedIn:"root"}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Mu.prototype,"user",void 0);var Qh=i(84659);let yx=(()=>{class c{static MARK_AS_READ(r){return`api/clients/notifications/mark-as-read/${r}`}}return c.GET_HAS_UNREAD_NOTIFICATIONS="api/clients/notifications/unread",c.GET_ORDERS_NOTIFICATIONS="api/clients/notifications",c})(),gC=(()=>{class c{constructor(r){this.http=r,this.notifications=[],this.notificationsSubject=new Av.X([]),this.notifications$=this.notificationsSubject.asObservable(),this.notificationChanges=new Ks.x}addNotification(r){const m={orderNotification:r,visible:!0};this.isNotificationAlreadyAdded(r.notificationExternalId)||(this.notifications.unshift(m),this.notificationsSubject.next([...this.notifications]),this.notificationChanges.next())}removeNotification(r){const m=this.notifications?.findIndex(M=>M.orderNotification.notificationExternalId===r);-1!==m&&(this.notifications.splice(m,1),this.notificationsSubject.next([...this.notifications])),this.notificationChanges.next()}isNotificationAlreadyAdded(r){return this.notifications.some(m=>m.orderNotification.notificationExternalId===r)}getNotifications(){return this.notificationChanges.next(),this.http.get(yx.GET_ORDERS_NOTIFICATIONS,{headers:this.noSpinner()})}markAsRead(r){return this.http.patch(yx.MARK_AS_READ(r),{})}refreshNotificationsAfterMarkingAsRead(r){return this.markAsRead(r).pipe((0,Sr.w)(()=>(this.notificationsSubject.next([...this.notifications]),Ep.E)))}hasUnseenNotifications(){return this.http.get(yx.GET_HAS_UNREAD_NOTIFICATIONS,{headers:this.noSpinner()})}noSpinner(){return(new s.WM).set("noSpinner","true")}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(s.eN))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var Up=i(97392),Cx=i(23267),rS=i(28746),oS=i(92538),aS=i(32676),sS=i(92615),lS=i(20124),_C=i(17366),cd=i(19982),Lv=i(47462),cS=i(43437),dS=i(57307),Ex=i(36667);function hS(c,o){1&c&&(t.\u0275\u0275elementStart(0,"mat-list-item",14)(1,"div",15),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&c&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,"SHARED.MENU.CART.EMPTY_CART")))}function fS(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",20)(1,"b"),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&c&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,"SHARED.MENU.CART.WARNING")))}function mS(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"span",35)(1,"app-quantity-selector",36),t.\u0275\u0275listener("changedQuantity",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext().$implicit,G=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(G.changeQuantity(M,I))}),t.\u0275\u0275elementEnd()()}if(2&c){const r=t.\u0275\u0275nextContext().$implicit,m=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("stock",r.stock)("quantity",r.quantity)("isLoadingChangeQuantity",m.isLoadingChangeQuantity)}}function gS(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",37)(1,"span",38),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"uppercase"),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()),2&c&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,1,t.\u0275\u0275pipeBind1(4,3,"SHARED.MENU.CART.UNAVAILABLE"))," "))}const Vm=function(c){return{value:c}};function _S(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",39),t.\u0275\u0275element(1,"span",40),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"price"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit,m=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(2,1,m.carmen.getCurrencyTranslationKey(m.getProductPriceByQuantity(r)),t.\u0275\u0275pureFunction1(6,Vm,t.\u0275\u0275pipeBind1(3,4,m.getProductPriceByQuantity(r)))),t.\u0275\u0275sanitizeHtml)}}function vS(c,o){1&c&&t.\u0275\u0275element(0,"mat-divider",41)}function bS(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-list-item",21)(1,"div",22)(2,"div",23)(3,"div",24),t.\u0275\u0275element(4,"img",25),t.\u0275\u0275elementStart(5,"div")(6,"a",26),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(M.close())}),t.\u0275\u0275text(7),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(8,"div",27),t.\u0275\u0275template(9,mS,2,3,"span",28),t.\u0275\u0275template(10,gS,5,5,"div",29),t.\u0275\u0275elementStart(11,"div",30),t.\u0275\u0275template(12,_S,4,8,"div",31),t.\u0275\u0275elementStart(13,"button",32),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(G.removeFromCart(I))}),t.\u0275\u0275pipe(14,"translate"),t.\u0275\u0275elementStart(15,"i",33),t.\u0275\u0275text(16,"close"),t.\u0275\u0275elementEnd()()()()()(),t.\u0275\u0275template(17,vS,1,0,"mat-divider",34),t.\u0275\u0275elementEnd()}if(2&c){const r=o.$implicit,m=o.first,M=o.last,I=t.\u0275\u0275nextContext().last,G=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",m?"first-item":M&&I?"last-item pb-16":"item"),t.\u0275\u0275advance(1),t.\u0275\u0275property("fxLayout",G.window.innerWidth>=G.breakpoints.DESKTOP_S?"row":"column")("fxLayoutAlign",G.window.innerWidth>=G.breakpoints.DESKTOP_S?"space-between center":""),t.\u0275\u0275advance(1),t.\u0275\u0275property("fxLayoutAlign",G.window.innerWidth>=G.breakpoints.DESKTOP_S?"start center":"center center"),t.\u0275\u0275advance(1),t.\u0275\u0275property("src",r.photoUrl,t.\u0275\u0275sanitizeUrl)("alt",r.name)("title",r.name),t.\u0275\u0275advance(2),t.\u0275\u0275property("matTooltip",r.name)("routerLink",r.routerLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",r.name," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.stock),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.stock),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.price&&r.stock),t.\u0275\u0275advance(1),t.\u0275\u0275property("matTooltip",t.\u0275\u0275pipeBind1(14,15,"SHARED.MENU.CART.DELETE")),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",!(M&&I))}}function yS(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",16)(2,"span"),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementStart(5,"span",17),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(7,fS,4,3,"div",18),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(8,bS,18,17,"mat-list-item",19),t.\u0275\u0275elementContainerEnd()),2&c){const r=o.$implicit,m=o.first,M=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",m?"py-14":"py-16"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,6,"SHARED.MENU.CART.SOLD_BY")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",r.businessProfile.name," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.containsDrugs()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r.items)("ngForTrackBy",M.trackByCartProductChange)}}function CS(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",2)(1,"div",47)(2,"span"),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(5,"div",51),t.\u0275\u0275element(6,"span",40),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275pipe(8,"price"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,2,"SHARED.MENU.CART.TOTAl_ITEMS")),t.\u0275\u0275advance(3),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(7,4,r.carmen.getCurrencyTranslationKey(r.cart.totalItemsValue),t.\u0275\u0275pureFunction1(9,Vm,t.\u0275\u0275pipeBind1(8,7,r.cart.totalItemsValue))),t.\u0275\u0275sanitizeHtml)}}function ES(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",46)(1,"div",47)(2,"span",48),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",49),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(M.openSGRFeeDetailsDialog())}),t.\u0275\u0275element(6,"img",50),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(8,"div",51),t.\u0275\u0275element(9,"span",40),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275pipe(11,"price"),t.\u0275\u0275elementEnd()()}if(2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,4,"PAGES.ABOUT.SGR.SGR_GUARANTEE")),t.\u0275\u0275advance(3),t.\u0275\u0275property("src",r.bigInfoIconUrl,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(7,6,"SHARED.MENU.CART.SGR_GUARANTEE")),t.\u0275\u0275advance(3),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(10,8,r.carmen.getCurrencyTranslationKey(r.cart.getSGRFeesAmount()),t.\u0275\u0275pureFunction1(13,Vm,t.\u0275\u0275pipeBind1(11,11,r.cart.getSGRFeesAmount()))),t.\u0275\u0275sanitizeHtml)}}function xS(c,o){1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"span",66),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementContainerEnd()),2&c&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,"SHARED.MENU.CART.WE_DO_NOT_HAVE_YOUR_ADDRESS")))}function MS(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275element(1,"app-transport-fee",68),t.\u0275\u0275elementContainerEnd()),2&c){const r=t.\u0275\u0275nextContext(3).$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("transportFee",r.getDeliveryFeesAmount())("deliveryCost",r.deliveryCost)}}function SS(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,MS,2,2,"ng-container",67),t.\u0275\u0275elementContainerEnd()),2&c){const r=t.\u0275\u0275nextContext(2).$implicit,m=t.\u0275\u0275nextContext(2),M=t.\u0275\u0275reference(21);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.getDeliveryFeesAmount()>m.noPrice)("ngIfElse",M)}}function wS(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",2)(1,"div",62),t.\u0275\u0275element(2,"img",63),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementStart(4,"span"),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementStart(7,"span",64),t.\u0275\u0275text(8),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(9,xS,4,3,"ng-container",65),t.\u0275\u0275template(10,SS,2,2,"ng-container",65),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit,m=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275property("alt",t.\u0275\u0275pipeBind1(3,5,"SHARED.MENU.CART.DELIVERY")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,7,"SHARED.MENU.CART.DELIVERY")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",r.businessProfile.name," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.noAddressOnCart()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!m.noAddressOnCart())}}function OS(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",51),t.\u0275\u0275element(1,"span",40),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"price"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(3).$implicit,m=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(2,1,m.carmen.getCurrencyTranslationKey(r.getEmpoweredDeliveryFeesAmount()),t.\u0275\u0275pureFunction1(6,Vm,t.\u0275\u0275pipeBind1(3,4,r.getEmpoweredDeliveryFeesAmount()))),t.\u0275\u0275sanitizeHtml)}}function TS(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,OS,4,8,"div",69),t.\u0275\u0275elementContainerEnd()),2&c){const r=t.\u0275\u0275nextContext(2).$implicit,m=t.\u0275\u0275nextContext(2),M=t.\u0275\u0275reference(21);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.getEmpoweredDeliveryFeesAmount()>m.noPrice)("ngIfElse",M)}}function DS(c,o){1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"span",66),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementContainerEnd()),2&c&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,"SHARED.MENU.CART.WE_DO_NOT_HAVE_YOUR_ADDRESS")))}function IS(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",2)(1,"div",62),t.\u0275\u0275element(2,"img",63),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementStart(4,"span"),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementStart(7,"span",17),t.\u0275\u0275text(8),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(9,TS,2,2,"ng-container",65),t.\u0275\u0275template(10,DS,4,3,"ng-container",65),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit,m=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275property("alt",t.\u0275\u0275pipeBind1(3,5,"SHARED.MENU.CART.DELIVERY")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,7,"SHARED.MENU.CART.MANDATORY")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(r.businessProfile.name),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!m.noAddressOnCart()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.noAddressOnCart())}}function PS(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,wS,11,9,"div",44),t.\u0275\u0275template(2,IS,11,9,"div",44),t.\u0275\u0275elementEnd()),2&c){const r=o.$implicit,m=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.shouldShowDeliveryFee(r)&&!m.shouldShowEmpoweredDeliveryFee(r)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.shouldShowEmpoweredDeliveryFee(r))}}function AS(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",42)(1,"div",7),t.\u0275\u0275element(2,"mat-divider"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",43),t.\u0275\u0275template(4,CS,9,11,"div",44),t.\u0275\u0275template(5,ES,12,15,"div",45),t.\u0275\u0275elementStart(6,"div",46)(7,"div",47)(8,"span",48),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"div",49),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.openServicesDialog())}),t.\u0275\u0275element(12,"img",50),t.\u0275\u0275pipe(13,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(14,"div",51),t.\u0275\u0275element(15,"span",40),t.\u0275\u0275pipe(16,"translate"),t.\u0275\u0275pipe(17,"price"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(18,PS,3,2,"div",52),t.\u0275\u0275elementStart(19,"div",53)(20,"div",54),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.openDeliveryDetailsDialog())}),t.\u0275\u0275elementStart(21,"span",55),t.\u0275\u0275text(22),t.\u0275\u0275pipe(23,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(24,"img",56),t.\u0275\u0275pipe(25,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(26,"mat-divider",57),t.\u0275\u0275elementStart(27,"div",58)(28,"span"),t.\u0275\u0275text(29),t.\u0275\u0275pipe(30,"uppercase"),t.\u0275\u0275pipe(31,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(32,"strong",59),t.\u0275\u0275element(33,"span",40),t.\u0275\u0275pipe(34,"translate"),t.\u0275\u0275pipe(35,"price"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(36,"div",7),t.\u0275\u0275element(37,"mat-divider"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(38,"div",60)(39,"drc-button",61),t.\u0275\u0275listener("clickEvent",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.closeAndSaveUrl())}),t.\u0275\u0275elementEnd()()()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",r.cart.totalItemsValue>r.noPrice),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.shouldShowSGRFee()),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(10,17,"SHARED.MENU.CART.DRCARMEN_SERVICES")),t.\u0275\u0275advance(3),t.\u0275\u0275property("src",r.bigInfoIconUrl,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(13,19,"SHARED.MENU.CART.INFO_ICON_ALT")),t.\u0275\u0275advance(3),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(16,21,r.carmen.getCurrencyTranslationKey(r.cart.getCarmenFeesAmount()),t.\u0275\u0275pureFunction1(39,Vm,t.\u0275\u0275pipeBind1(17,24,r.cart.getCarmenFeesAmount()))),t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",r.cart.businessCarts),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(23,26,"SHARED.MENU.CART.DELIVERY_COSTS")),t.\u0275\u0275advance(2),t.\u0275\u0275property("src",r.bigInfoIconUrl,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(25,28,"SHARED.MENU.CART.INFO_ICON_ALT")),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(30,30,t.\u0275\u0275pipeBind1(31,32,"SHARED.MENU.CART.TOTAL"))),t.\u0275\u0275advance(4),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(34,34,r.carmen.getCurrencyTranslationKey(r.cart.totalValue),t.\u0275\u0275pureFunction1(41,Vm,t.\u0275\u0275pipeBind1(35,37,r.cart.totalValue))),t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(6),t.\u0275\u0275property("type",r.buttonTypes.iconAndTextButton)("color","primary")("iconPosition",r.iconsPositions.left)("textTranslationKey","SHARED.MENU.CART.FINISH_ORDER")("icon","done")}}function LS(c,o){1&c&&(t.\u0275\u0275elementStart(0,"strong",70),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"uppercase"),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()),2&c&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,t.\u0275\u0275pipeBind1(3,3,"SHARED.MENU.CART.FREE_DELIVERY"))))}var jp=(()=>{return(c=jp||(jp={}))[c.NO_FEE=0]="NO_FEE",c[c.ONE_FEE=1]="ONE_FEE",c[c.TWO_FEES=2]="TWO_FEES",c[c.THREE_FEES=3]="THREE_FEES",jp;var c})();const[xx,yM,Mx,RS]=[600,32,16,24];class Wm{constructor(o,r,m,M,I,G,Me){this.cartService=o,this.dialog=r,this.sidenavService=m,this.store=M,this.router=I,this.snackbarMessageService=G,this.fbPixelTrackingService=Me,this.unsubscribe$=new Ks.x,this.currentSidenav=new t.EventEmitter,this.window=window,this.isDrugInCart=!1,this.breakpoints=St.u3l,this.feeAmount=jp,this.carmen=St.VLR,this.noPrice=St.DKB,this.cartLink=`/${St.Jjk.CART}`,this.buttonTypes=St.L$3,this.iconsPositions=St.ggF,this.isLoadingChangeQuantity=!1,this.infoIconUrl=St.mNX,this.bigInfoIconUrl=St.oZ5}ngOnInit(){this.initializeCart()}ngOnDestroy(){this.cartSub.unsubscribe(),this.unsubscribe$.next(),this.unsubscribe$.complete()}onWindowResize(){window.innerWidth>=960&&this.sideNav.opened&&this.close()}initializeCart(){this.cartSub=this.cartService.get().subscribe(o=>{this.cart=o,this.deletedProduct?this.updateProductsAfterDeleting():(this.cart.allItems.sort((r,m)=>r.isDrug===m.isDrug?0:r.isDrug?1:-1),this.updateProducts())})}getProductPriceByQuantity(o){return o.price*o.quantity}removeFromCart(o){this.deletedProduct=o,this.cartService.remove(o).pipe((0,So.q)(1)).subscribe(()=>{this.snackbarMessageService.displayMessage(St.CsS.SUCCESS,"SHARED.MENU.CART.REMOVE_PRODUCT",{value:o.name}),this.checkIfCartContainsDrugs()},()=>{this.snackbarMessageService.displayMessage(St.CsS.ERROR,"SHARED.MENU.CART.CANNOT_REMOVE_PRODUCT",{value:o.name})})}close(){this.sidenavService.close(),document.activeElement.blur(),this.currentSidenav.emit(St.YPs.FILTER)}closeAndSaveUrl(){this.fbPixelTrackingService.initiateCheckout(this.cart),this.close();const o=this.router.url?.toString();this.router.navigate([this.cartLink]),this.store.dispatch(sS.C.setNavigationListingPage({previousPage:o}))}openServicesDialog(){this.dialog.closeAll(),this.dialog.open(oS.A,{data:{type:St.zcD.FEE,additionalInformation:null},maxWidth:(0,St.I3d)(xx),width:window.innerWidth-yM+"px",position:St.VLR.getDialogPosition({top:"16px"},{top:"16px"}),panelClass:["base-panel-class","responsive-dialog-panel-class"],autoFocus:!1,restoreFocus:!1})}openSGRFeeDetailsDialog(){this.dialog.closeAll(),this.dialog.open(lS.C,{maxWidth:(0,St.I3d)(xx),width:window.innerWidth-yM+"px",position:St.VLR.getDialogPosition({top:`${Mx}px`},{top:`${RS}px`},St.u3l.TABLET),panelClass:["base-panel-class","responsive-dialog-panel-class"],autoFocus:!1,restoreFocus:!1})}openDeliveryDetailsDialog(){this.dialog.open(aS.S,{data:{shouldDisplayCostDetail:!1,extraContainerFee:this.cart.getFeePerContainer()},position:St.VLR.getDialogPosition({top:`${Mx}px`},{top:`${Mx}px`}),panelClass:["base-panel-class","responsive-dialog-panel-class"],width:(0,St.I3d)(1354),maxWidth:(0,St.I3d)(xx)})}checkIfCartContainsDrugs(){this.isDrugInCart=this.cart.allItems.some(o=>o.isDrug)}shouldShowDeliveryFee(o){return!!o.getDeliveryFees().length}shouldShowEmpoweredDeliveryFee(o){return!!o.getEmpoweredDeliveryFees().length}shouldShowCarmenFee(){return this.cart.getCarmenFeesAmount()>0}shouldShowSGRFee(){return this.cart.getSGRFeesAmount()>0}numberOfFees(){let o=jp.NO_FEE;return o=this.cart.getDeliveryFees().length===this.cart.getEmpoweredDeliveryFees().length?jp.ONE_FEE:jp.TWO_FEES,o=this.cart.getEmpoweredDeliveryFees().length?o:jp.ONE_FEE,o=this.shouldShowCarmenFee()?++o:o,o}updateProducts(){this.checkIfCartContainsDrugs()}updateProductsAfterDeleting(){this.deletedProduct=void 0,this.checkIfCartContainsDrugs()}changeQuantity(o,r){this.isLoadingChangeQuantity=!0,this.cartService.changeProductQuantity(r,o).pipe((0,ts.R)(this.unsubscribe$),(0,rS.x)(()=>this.isLoadingChangeQuantity=!1)).subscribe(()=>{this.snackbarMessageService.displayMessage(St.CsS.SUCCESS,"SHARED.MISC.QUANTITY_SELECTOR.QUANTITY_CHANGED")},()=>{this.snackbarMessageService.displayMessage(St.CsS.ERROR,"SHARED.MISC.QUANTITY_SELECTOR.NO_QUANTITY_CHANGE")})}trackByCartProductChange(o){return o}trackByBusinessCartChange(o){return o}noAddressOnCart(){return!this.cart?.deliveryAddressId&&""===JSON.parse(localStorage.getItem(St.Umo.USER_ADDRESS))?.address}}Wm.\u0275fac=function(o){return new(o||Wm)(t.\u0275\u0275directiveInject(St.vio.CartServiceToken),t.\u0275\u0275directiveInject(rl.on),t.\u0275\u0275directiveInject(Qh.B),t.\u0275\u0275directiveInject(xs.yh),t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken),t.\u0275\u0275directiveInject(St.vio.PixelTrackingInitCheckoutService))},Wm.\u0275cmp=t.\u0275\u0275defineComponent({type:Wm,selectors:[["app-cart-menu"]],hostBindings:function(o,r){1&o&&t.\u0275\u0275listener("resize",function(){return r.onWindowResize()},!1,t.\u0275\u0275resolveWindow)},inputs:{sideNav:"sideNav"},outputs:{currentSidenav:"currentSidenav"},decls:22,vars:10,consts:[[1,"wrapper"],["fxLayout","column",1,"sidenav-header","cart-header"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxFlex","100","fxLayout","row","fxLayoutAlign","start center"],["fxLayoutAlign","center",1,"close-button"],["mat-icon-button","",3,"click"],[1,"material-icons","cart-header__close-icon"],[1,"full-width-divider"],[1,"cart-nav-container",3,"ngClass"],[1,"cart-nav-content"],["class","mat-list-text",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","cart-footer",4,"ngIf"],["freeDelivery",""],[1,"mat-list-text"],[1,"text-muted","text-center","mt-16"],["fxLayout","column","fxLayoutAlign","center start",3,"ngClass"],[1,"text-bold","text-primary-color"],["class","warn",4,"ngIf"],["class","h-100",4,"ngFor","ngForOf","ngForTrackBy"],[1,"warn"],[1,"h-100"],["fxLayout","column",3,"ngClass"],["fxLayoutGap","8px",1,"w-100",3,"fxLayout","fxLayoutAlign"],["fxLayout","row",1,"product-container",3,"fxLayoutAlign"],["matListAvatar","",1,"img-thumbnail",3,"src","alt","title"],[1,"cart-item-text","product-line-clamp",3,"matTooltip","routerLink","click"],["fxLayoutAlign","space-between center","fxLayout","row",1,"quantity-price-container"],["class","quantity",4,"ngIf"],["fxFlex","140px","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","10px",1,"price-container"],["class","price price--height","fxLayout","row","fxLayoutAlign","end center",4,"ngIf"],["color","warn","mat-icon-button","",1,"remove-btn",3,"matTooltip","click"],[1,"material-icons","text-bold"],["class","divider-length",4,"ngIf"],[1,"quantity"],[3,"stock","quantity","isLoadingChangeQuantity","changedQuantity"],["fxFlex","140px","fxLayoutAlign","center center"],[1,"out-of-stock"],["fxLayout","row","fxLayoutAlign","end center",1,"price","price--height"],[3,"innerHTML"],[1,"divider-length"],[1,"cart-footer"],["fxLayout","column","fxLayoutGap","8px",1,"summary"],["fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["class","services","fxLayout","row","fxLayoutAlign","space-between center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between center",1,"services"],["fxLayout","row"],[1,"mr-8"],[1,"icon-container","cursor-pointer",3,"click"],[3,"src","alt"],[1,"price"],[4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxLayout","row","fxLayoutAlign","start center",1,"transport-info","cursor-pointer",3,"click"],[1,"text-bold"],[1,"info-pointer","ml-8",3,"src","alt"],[1,"total-divider"],["fxLayout","row","fxLayoutAlign","space-between center",1,"total-title"],[1,"total-title__price"],["fxLayout","row","fxLayoutAlign","space-between center",1,"buttons"],[1,"w-100",3,"type","color","iconPosition","textTranslationKey","icon","clickEvent"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","8px"],["src","assets/images/cart/gray_truck.svg",3,"alt"],[1,"text-primary-color","text-bold"],[4,"ngIf"],[1,"no-address-text"],[4,"ngIf","ngIfElse"],[3,"transportFee","deliveryCost"],["class","price",4,"ngIf","ngIfElse"],[1,"no-price"]],template:function(o,r){1&o&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span"),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"uppercase"),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(8,"div",4)(9,"button",5),t.\u0275\u0275listener("click",function(){return r.close()}),t.\u0275\u0275elementStart(10,"i",6),t.\u0275\u0275text(11,"close"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(12,"div",7),t.\u0275\u0275element(13,"mat-divider"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(14,"div",8)(15,"div",9)(16,"mat-list"),t.\u0275\u0275template(17,hS,4,3,"mat-list-item",10),t.\u0275\u0275template(18,yS,9,8,"ng-container",11),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(19,AS,40,43,"div",12),t.\u0275\u0275template(20,LS,4,5,"ng-template",null,13,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementEnd()),2&o&&(t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(6,6,t.\u0275\u0275pipeBind1(7,8,"SHARED.MENU.CART.MY_CART"))),t.\u0275\u0275advance(9),t.\u0275\u0275property("ngClass",r.numberOfFees()===r.feeAmount.TWO_FEES?"two-fees":r.numberOfFees()===r.feeAmount.ONE_FEE?"one-fee":""),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!r.cart.count.quantity&&!r.cart.count.stock),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r.cart.businessCarts)("ngForTrackBy",r.trackByBusinessCartChange),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.cart.count.quantity>0&&r.cart.count.stock>0))},dependencies:[_C.r,Ze.NgClass,Ze.NgForOf,Ze.NgIf,to.rH,je.xw,je.SQ,je.Wh,je.yH,lt.oO,Ht.eB,cd.Zj,cd.oh,cd.Wx,ar.d,Lv.Kd,fn.b,cS.y,dS.t,Ze.UpperCasePipe,Ex.d,ea.X$],styles:['.cart-nav-container[_ngcontent-%COMP%]{padding:0 0 0 16px;grid-area:content;overflow:hidden}.cart-nav-container[_ngcontent-%COMP%]   .cart-nav-content[_ngcontent-%COMP%]{overflow-y:auto;padding:0!important;width:100%;height:100%}.cart-nav-container[_ngcontent-%COMP%]   .warn[_ngcontent-%COMP%]{color:#ff001a;font-size:13px}.cart-nav-container[_ngcontent-%COMP%]   .first-item[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}.cart-nav-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin:16px 0}.cart-nav-container[_ngcontent-%COMP%]   .last-item[_ngcontent-%COMP%]{width:100%;margin-top:16px}.cart-nav-container[_ngcontent-%COMP%]   .divider-length[_ngcontent-%COMP%]{width:100%}.cart-nav-container[_ngcontent-%COMP%]   .product-container[_ngcontent-%COMP%]{width:max-content}@media (min-width: 960px){.cart-nav-container[_ngcontent-%COMP%]   .product-container[_ngcontent-%COMP%]{width:260px}}.cart-nav-container[_ngcontent-%COMP%]   .product-container[_ngcontent-%COMP%]   .cart-item-text[_ngcontent-%COMP%]{color:#000;text-decoration:none;font-size:14px;font-weight:500;max-width:170px;width:100%}.cart-nav-container[_ngcontent-%COMP%]   .product-container[_ngcontent-%COMP%]   .img-thumbnail[_ngcontent-%COMP%]{margin:2px 5px;border-radius:0!important}.cart-nav-container[_ngcontent-%COMP%]   .quantity-price-container[_ngcontent-%COMP%]{margin-left:16px;min-width:39%}@media (min-width: 960px){.cart-nav-container[_ngcontent-%COMP%]   .quantity-price-container[_ngcontent-%COMP%]{width:270px}}.cart-nav-container[_ngcontent-%COMP%]   .quantity-price-container[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:15px!important;font-weight:700}.cart-nav-container[_ngcontent-%COMP%]   .quantity-price-container[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]{margin-right:auto;font-size:13px}.cart-nav-container[_ngcontent-%COMP%]   .quantity-price-container[_ngcontent-%COMP%]   .remove-btn[_ngcontent-%COMP%]{width:20px}.cart-nav-container[_ngcontent-%COMP%]   .quantity-price-container[_ngcontent-%COMP%]   .remove-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-bottom:2px}.cart-nav-container[_ngcontent-%COMP%]   .out-of-stock[_ngcontent-%COMP%]{border-radius:4px;padding:2px 5px;font-size:10px;color:#fff;background-color:#ff001a;height:15px}.cart-nav-container--ios-native[_ngcontent-%COMP%]{margin-top:94px}@media (min-width: 960px){.price-container[_ngcontent-%COMP%]{margin-left:24px}}.cart-header[_ngcontent-%COMP%]{padding:0 16px;width:100%;grid-area:header}.cart-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:19px;font-weight:700;padding:16px 0}.cart-header[_ngcontent-%COMP%]   .full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.cart-header[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:20px;height:24px}.cart-header[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{vertical-align:unset}.cart-header__close-icon[_ngcontent-%COMP%]{width:20px;font-weight:700}.no-address-text[_ngcontent-%COMP%]{color:#ff001a;font-weight:700}.mat-list-base[_ngcontent-%COMP%]{padding-top:0;padding-right:16px}.py-14[_ngcontent-%COMP%]{padding:14px 0}.py-16[_ngcontent-%COMP%]{padding:16px 0}.price--height[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{line-height:20px}.total-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.total-title__price[_ngcontent-%COMP%]{font-size:20px}.total-divider[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:0;padding-bottom:16px}.empty-item.three-fees[_ngcontent-%COMP%]{min-height:115px}.empty-item.two-fees[_ngcontent-%COMP%], .empty-item.one-fee[_ngcontent-%COMP%]{min-height:100px}.cart-footer[_ngcontent-%COMP%]{grid-area:footer;font-size:14px;padding:0 16px 8px}.cart-footer[_ngcontent-%COMP%]   .full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.cart-footer[_ngcontent-%COMP%]   .summary[_ngcontent-%COMP%]{padding:16px 0}.cart-footer[_ngcontent-%COMP%]   .summary[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{min-height:1px;font-size:14px!important}.cart-footer[_ngcontent-%COMP%]   .summary[_ngcontent-%COMP%]   .no-price[_ngcontent-%COMP%]{color:#00853b}.cart-footer[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]{height:20px;display:flex;justify-content:center;align-items:center}.cart-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{padding-top:16px}.cart-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}.cart-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:18px;margin-right:8px;font-weight:700;color:#fff}.transport-info[_ngcontent-%COMP%]{height:20px}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-template-areas:"header" "content" "footer";grid-template-rows:auto 1fr auto;height:100%;width:100%}@media (max-width: 420px){.cart-nav-container[_ngcontent-%COMP%]   .cart-item-text[_ngcontent-%COMP%]{max-width:88px}.cart-nav-container[_ngcontent-%COMP%]   .quantity-price-container[_ngcontent-%COMP%]{margin-left:8px!important}}']}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Wm.prototype,"user",void 0);var CM=i(7397),EM=i(74656),kS=i(17596),NS=i(97376);function FS(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",15)(1,"button",16),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.removeAllFilters())}),t.\u0275\u0275elementStart(2,"mat-icon",17),t.\u0275\u0275text(3,"close"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"strong"),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"uppercase"),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(8,"drc-button",18),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.applyFilters())}),t.\u0275\u0275pipe(9,"uppercase"),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd()()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(6,6,t.\u0275\u0275pipeBind1(7,8,"SHARED.FILTERS.MOBILE_FILTERS.REMOVE_ALL_FILTERS"))),t.\u0275\u0275advance(3),t.\u0275\u0275property("type",r.buttonType.iconAndTextButton)("color","primary")("textTranslationKey",t.\u0275\u0275pipeBind1(9,10,t.\u0275\u0275pipeBind1(10,12,"SHARED.FILTERS.MOBILE_FILTERS.APPLY_FILTERS")))("icon","check")("iconPosition",r.iconsPositions.left)}}const BS=function(c){return{"main-wrapper--ios":c}},US=function(c){return{"filters__container--ios":c}},jS=function(c){return{hidden:c}};let HS=(()=>{class c{constructor(r,m,M,I){this.sidenavService=r,this.router=m,this.productService=M,this.filtersService=I,this.destroy$=new Ks.x,this.carmen=St.VLR,this.iconsPositions=St.ggF,this.buttonType=St.L$3,this.businessCategories=[],this.hasBackendResponse=!1,this.getFiltersAndOptions()}ngOnChanges(){this.getFiltersAndOptions(),this.setBusinessCategories()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}close(){this.sidenavService&&this.sidenavService.close()}ngOnInit(){this.setBusinessCategories()}setBusinessCategories(){this.businessProfile.externalId&&this.productService.atcsAggregations$.pipe((0,ts.R)(this.destroy$)).subscribe(m=>{this.businessCategories=m})}isSmallScreen(){return window.innerWidth<St.u3l.DESKTOP_S}applyFilters(){this.activeFilters.updateActiveFilters(),this.filtersService.resetPage(),this.businessFilters.applyFilters(),this.close()}removeAllFilters(){this.activeFilters.isMobileFilter=!1,this.activeFilters.resetFilters(),this.close()}getFiltersAndOptions(){this.sidenavService.currentSidenavFilters.pipe((0,ts.R)(this.destroy$)).subscribe(r=>{this.hasBackendResponse=!0,r?.filters&&r?.options?(this._filters=r.filters,this._options=r.options):(this._filters=this.filtersService.filters,this._options=this.filtersService.options)})}isIos(){return!!navigator.userAgent.match("iPhone")}handleFilterUpdate(r){r&&this.applyFilters()}removeCategory(r){this._filters=r.filters,this._options=r.options,this.close()}shouldHideActiveFilters(){return!this.filtersService.shouldDisplayActiveFilters()}get isRestaurantListingPage(){return this.router.url.includes(`${St.nUJ.RESTAURANTS}`)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(Qh.B),t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(NS.M),t.\u0275\u0275directiveInject(St.vio.FiltersServiceToken))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-mobile-filters"]],viewQuery:function(r,m){if(1&r&&(t.\u0275\u0275viewQuery(CM.N,5),t.\u0275\u0275viewQuery(EM.q,5)),2&r){let M;t.\u0275\u0275queryRefresh(M=t.\u0275\u0275loadQuery())&&(m.businessFilters=M.first),t.\u0275\u0275queryRefresh(M=t.\u0275\u0275loadQuery())&&(m.activeFilters=M.first)}},inputs:{isSidenavOpen:"isSidenavOpen",businessProfile:"businessProfile"},features:[t.\u0275\u0275NgOnChangesFeature],decls:20,vars:24,consts:[[1,"main-wrapper",3,"ngClass"],["fxLayout","column",1,"filters__header"],["fxLayout","row","fxLayoutAlign","space-between center","fxHide","","fxShow.lt-md",""],["fxFlex","100","fxLayout","row"],["fxLayoutAlign","center center",1,"material-icons","material-icons--filter"],[1,"filters__title"],["mat-icon-button","",1,"filters__close-btn",3,"click"],[1,"material-icons"],["fxLayout","column",1,"filters__container",3,"ngClass"],[3,"ngClass"],[3,"_filters","isMobileFilter","removeCategory"],["activeFilers",""],[3,"isMobileFilter","_filters","_options","isSidenavOpen","businessCategories","hasBackendResponse","businessProfile","filtersChanged"],[1,"filters__footer"],["class","filters__footer-content","fxLayout","column","fxLayoutAlign","center none",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center none",1,"filters__footer-content"],["fxLayout","row","fxLayoutAlign","center center","mat-flat-button","",1,"mb-16","delete-filters-button",3,"click"],["color","warn",1,"close-icon"],[3,"type","color","textTranslationKey","icon","iconPosition","click"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"i",4),t.\u0275\u0275text(5,"filter_list"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"span",5),t.\u0275\u0275text(7),t.\u0275\u0275pipe(8,"uppercase"),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(10,"button",6),t.\u0275\u0275listener("click",function(){return m.close()}),t.\u0275\u0275elementStart(11,"i",7),t.\u0275\u0275text(12,"close"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(13,"div",8)(14,"div",9)(15,"app-active-filters",10,11),t.\u0275\u0275listener("removeCategory",function(I){return m.removeCategory(I)}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(17,"app-business-filters",12),t.\u0275\u0275listener("filtersChanged",function(I){return m.handleFilterUpdate(I)}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(18,"div",13),t.\u0275\u0275template(19,FS,11,14,"div",14),t.\u0275\u0275elementEnd()()),2&r&&(t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(18,BS,m.carmen.isNativeIos)),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(8,14,t.\u0275\u0275pipeBind1(9,16,"SHARED.FILTERS.MOBILE_FILTERS.FILTERS"))," "),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(20,US,m.isIos())),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(22,jS,m.shouldHideActiveFilters())),t.\u0275\u0275advance(1),t.\u0275\u0275property("_filters",m._filters)("isMobileFilter",m.isSidenavOpen),t.\u0275\u0275advance(2),t.\u0275\u0275property("isMobileFilter",!0)("_filters",m._filters)("_options",m._options)("isSidenavOpen",m.isSidenavOpen)("businessCategories",m.businessCategories)("hasBackendResponse",m.hasBackendResponse)("businessProfile",m.businessProfile),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!m.isRestaurantListingPage))},dependencies:[_C.r,Ze.NgClass,Ze.NgIf,je.xw,je.Wh,je.yH,lt.b8,lt.oO,Ht.eB,Up.Hw,EM.q,CM.N,Ze.UpperCasePipe,ea.X$],styles:['.main-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-template-areas:"header" "content" "footer";grid-template-rows:auto 1fr auto;height:calc(100vh - 8px);width:100%}.main-wrapper--ios[_ngcontent-%COMP%]{height:calc(100vh - 82px)}.filters__header[_ngcontent-%COMP%]{box-shadow:0 2px 2px #00000042;height:67px;grid-area:header;padding:0 16px;width:100%;z-index:1;justify-content:center}.filters__header[_ngcontent-%COMP%]   .top-divider[_ngcontent-%COMP%]{margin:0 -16px}.filters__title[_ngcontent-%COMP%]{line-height:25px;letter-spacing:.35px;font-size:14px;font-weight:700}.filters__close-btn[_ngcontent-%COMP%]{width:24px;font-weight:700!important}.filters__container[_ngcontent-%COMP%]{grid-area:content;overflow:auto}.filters__footer[_ngcontent-%COMP%]{grid-area:footer;width:100%;background:white}.filters__footer-content[_ngcontent-%COMP%]{padding:16px 16px 8px;box-shadow:0 -2px 2px #00000042;z-index:1;position:relative}.filters__footer-content[_ngcontent-%COMP%]   .close-icon[_ngcontent-%COMP%]{font-weight:700}.filters__footer-content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-weight:700;line-height:40px;min-height:40px}.filters__footer-content[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{display:inline;font-size:20px;line-height:40px;margin-right:8px}.material-icons--filter[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-right:8px}.hidden[_ngcontent-%COMP%]{height:0;visibility:hidden}.absorb-focus[_ngcontent-%COMP%]{height:0;position:absolute}.cart-header[_ngcontent-%COMP%]{padding:0 12px 0 16px}.cart-header[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px}.cart-header__title[_ngcontent-%COMP%]{font-size:14px;margin-left:8px}']}),c})();function VS(c,o){1&c&&(t.\u0275\u0275elementStart(0,"strong"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&c&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"SHARED.MISC.PROMOTIONS_DIALOG.SURGICAL_MASK")))}function WS(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"a",12),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.close(!0))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"uppercase"),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()}2&c&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,t.\u0275\u0275pipeBind1(3,3,"SHARED.MISC.PROMOTIONS_DIALOG.I_UNDERSTAND"))," "))}function zS(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"a",13),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.close(!0))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"uppercase"),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("routerLink",r.restaurantProductsLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,t.\u0275\u0275pipeBind1(3,4,"SHARED.MISC.PROMOTIONS_DIALOG.ORDER_NOW"))," ")}}const YS=function(c){return{"promotion__container--show":c}};let KS=(()=>{class c{constructor(r){this.cookieService=r,this.shouldShow=!1,this.type=Bi.MASK,this.closeClick=new t.EventEmitter,this.promotionTypes=Bi,this.maskImagePath=St.Ro$,this.restaurantImagePath=St.ayo,this.breakpoints=St.u3l,this.window=window,this.maxShortTextWidth=442,this.restaurantProductsLink=`/${St.Z2M.PRODUCTS}/${St.nUJ.RESTAURANTS}-${St.Lkn}`}onKeyUp(){this.close()}get imagePath(){return this.isMaskPromotion?this.maskImagePath:this.restaurantImagePath}get isMaskPromotion(){return this.type===Bi.MASK}close(r=!1){this.cookieService.set(St.fSN.seenSurgicalMaskPromotion,"true",!0===r?7:null,"/",window.location.hostname,l.Z.enableSSL,"Strict"),this.closeClick.emit()}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(C.N))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-promotions-dialog"]],hostBindings:function(r,m){1&r&&t.\u0275\u0275listener("keyup.esc",function(){return m.onKeyUp()},!1,t.\u0275\u0275resolveWindow)},inputs:{shouldShow:"shouldShow",type:"type"},outputs:{closeClick:"closeClick"},decls:19,vars:19,consts:[["fxLayout","row",1,"promotion__container",3,"ngClass"],["fxLayout","row",1,"promotion__content"],[1,"promotion__image-container",3,"fxHide"],[3,"src","height","width","alt"],[1,"promotion__info-container"],[1,"close-button-container",3,"click"],[1,"material-icons"],[1,"promotion__title"],[1,"promotion__subtitle"],[4,"ngIf"],[3,"click",4,"ngIf"],[3,"routerLink","click",4,"ngIf"],[3,"click"],[3,"routerLink","click"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),t.\u0275\u0275element(3,"img",3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",4)(6,"div",5),t.\u0275\u0275listener("click",function(){return m.close()}),t.\u0275\u0275elementStart(7,"i",6),t.\u0275\u0275text(8,"close"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(9,"div",7),t.\u0275\u0275text(10),t.\u0275\u0275pipe(11,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"div",8),t.\u0275\u0275template(13,VS,3,3,"strong",9),t.\u0275\u0275elementStart(14,"span"),t.\u0275\u0275text(15),t.\u0275\u0275pipe(16,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(17,WS,4,5,"a",10),t.\u0275\u0275template(18,zS,4,6,"a",11),t.\u0275\u0275elementEnd()()()),2&r&&(t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(17,YS,m.shouldShow)),t.\u0275\u0275advance(2),t.\u0275\u0275property("fxHide",m.window.innerWidth<=m.breakpoints.MOBILE_S),t.\u0275\u0275advance(1),t.\u0275\u0275property("src",m.imagePath,t.\u0275\u0275sanitizeUrl)("height",m.window.innerWidth>m.breakpoints.MOBILE_L?169:127)("width",m.window.innerWidth>m.breakpoints.MOBILE_L?169:127)("alt",t.\u0275\u0275pipeBind1(4,11,"SHARED.MISC.PROMOTIONS_DIALOG."+(m.isMaskPromotion?"SURGICAL_MASK":"ORDER_NOW"))),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(11,13,"SHARED.MISC.PROMOTIONS_DIALOG."+(m.isMaskPromotion?"GIFT":"FREE_RESTAURANT_DELIVERY"))," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",m.isMaskPromotion),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(16,15,"SHARED.MISC.PROMOTIONS_DIALOG."+(m.isMaskPromotion?"MASK_DETAIL":m.window.innerWidth<=m.maxShortTextWidth?"RESTAURANT_DETAIL_MOBILE":"RESTAURANT_DETAIL"))," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",m.isMaskPromotion),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!m.isMaskPromotion))},dependencies:[Ze.NgClass,Ze.NgIf,to.rH,je.xw,lt.b8,lt.oO,fn.b,Ze.UpperCasePipe,ea.X$],styles:[".promotion__container[_ngcontent-%COMP%]{background-color:#fff;border-radius:4px;bottom:-185px;box-shadow:0 2px 2px #0003;padding:16px;right:0;position:absolute;transition:all 1.8s;visibility:hidden}.promotion__container--show[_ngcontent-%COMP%]{transform:translateY(-185px);visibility:visible}.promotion__content[_ngcontent-%COMP%]{height:calc(100% + 32px);margin:-16px;overflow-y:hidden;padding:0;width:calc(100% + 32px)}.promotion__image-container[_ngcontent-%COMP%]{height:169px;width:169px}.promotion__image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;border-radius:5px 0 0 5px}.promotion__info-container[_ngcontent-%COMP%]{padding:16px;width:calc(100% + 169px)}.promotion__info-container[_ngcontent-%COMP%]   .close-button-container[_ngcontent-%COMP%]{height:14px;margin-bottom:12px;margin-left:auto;width:14px}.promotion__info-container[_ngcontent-%COMP%]   .close-button-container[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-left:-3px;margin-top:-3px}.promotion__info-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#00853b;text-decoration:none}.promotion__title[_ngcontent-%COMP%]{font-size:19px;font-weight:700}.promotion__subtitle[_ngcontent-%COMP%]{margin-bottom:16px}@media (max-width: 768px){.promotion__container[_ngcontent-%COMP%]{bottom:unset;left:0;top:-185px;width:calc(100% - 32px)}.promotion__container--show[_ngcontent-%COMP%]{transform:translateY(185px)}.promotion__info-container[_ngcontent-%COMP%]{padding:16px 14px 14px 16px;max-height:139px}.promotion__info-container[_ngcontent-%COMP%]   .close-button-container[_ngcontent-%COMP%]{margin-bottom:4vw}.promotion__info-container[_ngcontent-%COMP%]   .promotion__title[_ngcontent-%COMP%]{margin-top:-16px}}@media (max-width: 420px){.promotion__container[_ngcontent-%COMP%]{width:calc(100% - 20px)}.promotion__image-container[_ngcontent-%COMP%]{height:127px;width:127px}.promotion__info-container[_ngcontent-%COMP%]{height:105px;padding:12px 10px 10px 12px;width:calc(100vh + 169px)}.promotion__info-container[_ngcontent-%COMP%]   .close-button-container[_ngcontent-%COMP%]{margin-bottom:12px}.promotion__title[_ngcontent-%COMP%]{font-size:4vw}.promotion__subtitle[_ngcontent-%COMP%]{margin-bottom:8px;font-size:3.1vw}}@media (max-width: 320px){.promotion__title[_ngcontent-%COMP%]{font-size:16px}.promotion__subtitle[_ngcontent-%COMP%]{font-size:13px}}"]}),c})();var vC=i(78165),Za=i(53433),Hp=i(32420),xM=i(10260),Sx=i(3238),MM=i(44841),SM=i(90140);function ZS(c,o){1&c&&(t.\u0275\u0275elementStart(0,"mat-list-item",18)(1,"div",19),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&c&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,"SHARED.MENU.WISHLIST.EMPTY_WISHLIST")))}const JS=function(c){return{price:c}};function qS(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",35),t.\u0275\u0275element(1,"span",36),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"price"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(2,1,100===(null==r?null:r.productPrice)?"SHARED.MENU.WISHLIST.CURRENCY_SINGULAR":"SHARED.MENU.WISHLIST.CURRENCY_PLURAL",t.\u0275\u0275pureFunction1(6,JS,t.\u0275\u0275pipeBind1(3,4,null==r?null:r.productPrice))),t.\u0275\u0275sanitizeHtml)}}function ew(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",37),t.\u0275\u0275element(1,"app-controls",38),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit,m=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("product",r)("type",m.controlTypes.MINIMAL)("messageSnackbarType",m.snackbarMessageType)}}function tw(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",39)(1,"div"),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"uppercase"),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()),2&c&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,t.\u0275\u0275pipeBind1(4,3,"SHARED.MENU.WISHLIST.UNAVAILABLE"))))}function nw(c,o){1&c&&t.\u0275\u0275element(0,"div",40)}const iw=function(c,o){return{"first-item":c,"last-item":o}};function rw(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-list-item")(1,"div",20)(2,"div",21)(3,"div",22)(4,"div",23),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.close())}),t.\u0275\u0275element(5,"img",24),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",25)(7,"a",26),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.close())}),t.\u0275\u0275text(8),t.\u0275\u0275pipe(9,"uppercase"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(10,"div",27)(11,"div",28),t.\u0275\u0275template(12,qS,4,8,"div",29),t.\u0275\u0275template(13,ew,2,3,"div",30),t.\u0275\u0275template(14,tw,5,5,"div",31),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(15,"div",32)(16,"button",33),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(G.removeFromFavourites(I))}),t.\u0275\u0275pipe(17,"translate"),t.\u0275\u0275elementStart(18,"i",6),t.\u0275\u0275text(19,"close"),t.\u0275\u0275elementEnd()()()()(),t.\u0275\u0275template(20,nw,1,0,"div",34),t.\u0275\u0275elementEnd()()}if(2&c){const r=o.$implicit,m=o.first,M=o.last,I=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction2(21,iw,m,M)),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",null==r?null:r.productRoute)("fxFlex",I.window.innerWidth>=I.breakpoints.MOBILE_L?"45px":"38px"),t.\u0275\u0275advance(1),t.\u0275\u0275property("src",(null==r?null:r.photoUrl)||"assets/images/business/no-logo.jpg",t.\u0275\u0275sanitizeUrl)("alt",r.productName),t.\u0275\u0275advance(2),t.\u0275\u0275property("matTooltip",r.productName)("routerLink",null==r?null:r.productRoute),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(9,17,r.productName)," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("fxLayoutGap",I.calculateLayoutGap(r))("fxLayoutAlign",I.shouldChangeLayout(r)?"center end":"center center")("fxLayout",I.shouldChangeLayout(r)?"column-reverse":"row"),t.\u0275\u0275advance(1),t.\u0275\u0275property("fxLayout",null!=r&&r.inStock?"row":"row wrap"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r?null:r.productPrice),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r?null:r.inStock),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.inStock),t.\u0275\u0275advance(2),t.\u0275\u0275property("matTooltip",t.\u0275\u0275pipeBind1(17,19,"SHARED.MENU.WISHLIST.DELETE")),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",!M)}}class zm{constructor(o,r,m,M){this.sidenavService=o,this.translateService=r,this.store=m,this.messageService=M,this.breakpoints=St.u3l,this.window=window,this.items=[],this.controlItems=[],this.size=0,this.snackbarMessageType=St.vax.REDIRECT,this.controlTypes=St.yP3,this.currentSidenav=new t.EventEmitter}ngOnInit(){this.getFavoritesPreviewProducts()}ngOnDestroy(){this.previewProducts$.unsubscribe(),this.totalElements$.unsubscribe()}onWindowResize(){window.innerWidth>=960&&this.close()}getFavoritesPreviewProducts(){this.previewProducts$=this.store.select(vC.Xo.getPreviewProducts),this.previewProducts$.subscribe(o=>{this.items=o,this.controlItems=this.items.map(r=>new Hp.xs({registered_name:r.productName,slug:r.slug,productSlug:r.slug,businessExternalId:r.businessId,businessName:r?.businessName,priceMin:r.productPrice,images:[{medium:r.photoUrl}],stock:r.stock,packagings:[{slug:r.slug}],mustConfirmAge:r.mustConfirmAge}))}),this.totalElements$=this.store.select(vC.Xo.getTotalElements),this.totalElements$.subscribe(o=>{this.size=o})}removeFromFavourites(o){this.store.select(xM.g,{id:o.slug}).pipe((0,So.q)(1)).subscribe(m=>{if(m)this.removeProduct(m,o);else{const M=this.addMissingProduct(o);this.removeProduct(M,o)}});const r=this.translateService.instant("PAGES.PATIENT.FAVORITES.FAVORITES_LIST.DEFAULT_LIST");this.messageService.displayMessage(St.CsS.SUCCESS,"SERVICES.UNDO_REDO.PRODUCT_REMOVED_FROM_LIST",{listName:r})}removeProduct(o,r){const m=this.getDeletedLists(o,r);o.packagings.find(M=>M.productSlug===r.slug).inFavouriteLists={},this.store.dispatch(Za.N.updateProduct({selected:!1,updatedProduct:o,isGuest:!this.user,deletedLists:m}))}getDeletedLists(o,r){return JSON.parse(JSON.stringify(o.packagings.find(m=>m.productSlug===r.slug).inFavouriteLists))}addMissingProduct(o){const r={id:o.slug,slug:o.slug,packagings:[{productSlug:o.slug,inFavouriteLists:{}}]};return r.packagings[0].inFavouriteLists[-1]="DEFAULT_LIST",o?.inLists.forEach(m=>r.packagings[0].inFavouriteLists[m.id]=m.name),this.store.dispatch(Za.N.addMissingProduct({product:r})),r}wishlistHasProducts(){return this.size&&this.size>0}close(){this.sidenavService.close(),this.currentSidenav.emit()}shouldChangeLayout(o){return window.innerWidth<=St.u3l.MOBILE_S&&!o.productPrice}calculateLayoutGap(o){return window.innerWidth>=St.u3l.MOBILE_L?"24px":window.innerWidth>=St.u3l.MOBILE_S&&!o.productPrice?"16px":"9px"}get listsLinkPath(){return this.user?`/${St.tKG}`:St.baM}}zm.\u0275fac=function(o){return new(o||zm)(t.\u0275\u0275directiveInject(Qh.B),t.\u0275\u0275directiveInject(ea.sK),t.\u0275\u0275directiveInject(xs.yh),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken))},zm.\u0275cmp=t.\u0275\u0275defineComponent({type:zm,selectors:[["app-mobile-favorites-preview-menu"]],hostBindings:function(o,r){1&o&&t.\u0275\u0275listener("resize",function(){return r.onWindowResize()},!1,t.\u0275\u0275resolveWindow)},outputs:{currentSidenav:"currentSidenav"},decls:36,vars:21,consts:[["fxLayout","column",1,"favorites-header"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxFlex","100","fxLayout","row","fxLayoutAlign","start center"],[1,""],[1,"close-button"],["mat-icon-button","",3,"click"],[1,"material-icons"],[1,"full-width-divider"],[1,"last-items-text","mb-16"],[1,"favorites-preview-nav-container"],["perfectScrollbar","",1,"favorites-preview-nav-content"],[1,"favorites-preview"],["class","mat-list-text",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"cart-footer"],["fxLayout","row","fxLayoutAlign","center center",1,"buttons","w-100"],["mat-flat-button","","matTooltipPosition","before",1,"green-button-style","mat-primary",3,"routerLink","matTooltip","click"],[1,"material-icons","fav-list-btn"],[1,"mat-list-text"],["matLine","",1,"text-muted","text-center"],["fxFlex","","fxLayout","column",1,"item",3,"ngClass"],["fxLayout","row","fxFlex","",1,"favorites-preview-product-wrapper"],["fxLayout","row","fxLayoutGap","8px","fxLayoutAlign","space-between center",1,"favorites-preview-product"],["fxLayoutAlign","center center",1,"favorites-preview-image-container","cursor-pointer",3,"routerLink","fxFlex","click"],["matListAvatar","",1,"favorites-preview-image",3,"src","alt"],["fxLayoutAlign","start center",1,"favorites-preview-product-name"],[3,"matTooltip","routerLink","click"],[1,"favorites-preview-product-controls",3,"fxLayoutGap","fxLayoutAlign","fxLayout"],["fxLayoutGap","16px","fxLayoutAlign","end center","fxFlex","",1,"favorites-preview-price",3,"fxLayout"],["class","price","matLine","",4,"ngIf"],["class","favorites-preview-add-button-container","fxLayoutAlign","center center",4,"ngIf"],["class","unavailable",4,"ngIf"],[1,"favorites-preview-remove-container"],["mat-icon-button","",1,"remove-button",3,"matTooltip","click"],["class","divider",4,"ngIf"],["matLine","",1,"price"],[3,"innerHTML"],["fxLayoutAlign","center center",1,"favorites-preview-add-button-container"],[3,"product","type","messageSnackbarType"],[1,"unavailable"],[1,"divider"]],template:function(o,r){1&o&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"uppercase"),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div",4)(8,"button",5),t.\u0275\u0275listener("click",function(){return r.close()}),t.\u0275\u0275elementStart(9,"i",6),t.\u0275\u0275text(10,"close"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(11,"div",7),t.\u0275\u0275element(12,"mat-divider"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"div",8),t.\u0275\u0275text(14),t.\u0275\u0275pipe(15,"uppercase"),t.\u0275\u0275pipe(16,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(17,"div",7),t.\u0275\u0275element(18,"mat-divider"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(19,"div",9)(20,"div",10)(21,"mat-list",11),t.\u0275\u0275template(22,ZS,4,3,"mat-list-item",12),t.\u0275\u0275template(23,rw,21,24,"mat-list-item",13),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(24,"div",14)(25,"div",7),t.\u0275\u0275element(26,"mat-divider"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(27,"div",15)(28,"button",16),t.\u0275\u0275listener("click",function(){return r.close()}),t.\u0275\u0275pipe(29,"translate"),t.\u0275\u0275elementStart(30,"i",17),t.\u0275\u0275text(31,"favorite_border"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(32,"strong"),t.\u0275\u0275text(33),t.\u0275\u0275pipe(34,"uppercase"),t.\u0275\u0275pipe(35,"translate"),t.\u0275\u0275elementEnd()()()()),2&o&&(t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(5,7,t.\u0275\u0275pipeBind1(6,9,"SHARED.MENU.WISHLIST.FAVORITES"))),t.\u0275\u0275advance(10),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(15,11,t.\u0275\u0275pipeBind1(16,13,"SHARED.MENU.WISHLIST.LAST_ADDED"))),t.\u0275\u0275advance(8),t.\u0275\u0275property("ngIf",!r.wishlistHasProducts()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r.items),t.\u0275\u0275advance(5),t.\u0275\u0275property("routerLink",r.listsLinkPath)("matTooltip",t.\u0275\u0275pipeBind1(29,15,"SHARED.MENU.WISHLIST.SEE_LISTS")),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(34,17,t.\u0275\u0275pipeBind1(35,19,"SHARED.MENU.WISHLIST.SEE_LISTS"))))},dependencies:[Ze.NgClass,Ze.NgForOf,Ze.NgIf,to.rH,je.xw,je.SQ,je.Wh,je.yH,lt.oO,Ht.eB,Sx.X2,cd.Zj,cd.oh,cd.Wx,ar.d,Lv.Kd,MM.$V,SM.I,fn.b,Ze.UpperCasePipe,Ex.d,ea.X$],styles:[".last-items-text[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:14px;color:#00853b;margin-top:16px}.favorites-preview-nav-container[_ngcontent-%COMP%]{overflow:hidden;margin-left:16px;height:calc(100% - 173px);width:calc(100% - 16px)}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-nav-content[_ngcontent-%COMP%]{padding:0!important;width:100%;height:100%}.favorites-preview-nav-container[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:96%;margin-right:14px;margin-bottom:16px;min-height:62px}.favorites-preview-nav-container[_ngcontent-%COMP%]   .first-item[_ngcontent-%COMP%]{margin-top:8px}.favorites-preview-nav-container[_ngcontent-%COMP%]   .last-item[_ngcontent-%COMP%]{margin-bottom:0}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]{width:50%}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]   .favorites-preview-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]   .favorites-preview-product-name[_ngcontent-%COMP%]{width:145px;height:45px}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]   .favorites-preview-product-name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:#000;line-height:1.5em;font-size:14px;font-weight:700;max-height:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product-controls[_ngcontent-%COMP%]{width:49%}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product-controls[_ngcontent-%COMP%]   .favorites-preview-price[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:15px;font-weight:700}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product-controls[_ngcontent-%COMP%]   .favorites-preview-price[_ngcontent-%COMP%]   .favorites-preview-add-button-container[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#e1e3e6;border-radius:5px}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product-controls[_ngcontent-%COMP%]   .favorites-preview-price[_ngcontent-%COMP%]   .unavailable[_ngcontent-%COMP%]{background-color:#a7a7a7;border-radius:4px;width:74px;height:19px;font-size:10px;font-weight:700;color:#fff;text-align:center;line-height:2em}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product-controls[_ngcontent-%COMP%]   .favorites-preview-remove-container[_ngcontent-%COMP%]{width:18px;height:18px}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product-controls[_ngcontent-%COMP%]   .favorites-preview-remove-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:18px;height:18px;color:#ff3a3a}.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product-controls[_ngcontent-%COMP%]   .favorites-preview-remove-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:18px;height:17px;font-weight:700;margin-top:-28px}.favorites-header[_ngcontent-%COMP%]{padding:0 16px;width:100%}.favorites-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;font-weight:700;padding:16px 0}.favorites-header[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:unset}.cart-footer[_ngcontent-%COMP%]{background-color:#fff;font-size:13px;bottom:0;padding-left:16px;width:calc(100% - 32px)}.cart-footer[_ngcontent-%COMP%]   .summary[_ngcontent-%COMP%]{padding:16px 0}.cart-footer[_ngcontent-%COMP%]   .summary[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{min-height:1px;font-size:15px!important;font-weight:700}.cart-footer[_ngcontent-%COMP%]   .summary[_ngcontent-%COMP%]   .no-price[_ngcontent-%COMP%]{color:#00853b}.cart-footer[_ngcontent-%COMP%]   .services[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]{margin-left:5px;display:flex;justify-content:center;align-items:center}.cart-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{padding-top:16px}.cart-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}.cart-footer[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:18px;padding-top:9px!important;float:left!important;color:#fff!important}.full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}@media (max-width: 420px){.favorites-preview-nav-container[_ngcontent-%COMP%]   .favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]   .favorites-preview-product-name[_ngcontent-%COMP%]{max-width:134px}}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],zm.prototype,"user",void 0);var Vp=i(24006),wM=i(78372),wx=i(98311),ow=i(84142),aw=i(36925),bC=i(18455),sw=i(29203);const dw=["globalSearchbarComponent"];function uw(c,o){1&c&&t.\u0275\u0275element(0,"mat-error")}function pw(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",20),t.\u0275\u0275element(1,"mat-divider"),t.\u0275\u0275elementEnd())}function hw(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"div",14),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(G.searchBusiness(null==I?null:I.slug))}),t.\u0275\u0275elementStart(2,"div",15),t.\u0275\u0275element(3,"img",16),t.\u0275\u0275elementStart(4,"div",17),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"i",18),t.\u0275\u0275text(7,"chevron_right"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(8,pw,2,0,"div",19),t.\u0275\u0275elementEnd()}if(2&c){const r=o.$implicit,m=o.last,M=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275property("src",M.getBusinessProfileImage(null==r?null:r.profileImageKey),t.\u0275\u0275sanitizeUrl)("alt","SHARED.PRODUCT.GLOBAL_SEARCHBAR.PRODUCT_IMAGE"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(null==r?null:r.name),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!m)}}function fw(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"div",14),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(M.searchProductInCategory(M.searchControl.value))}),t.\u0275\u0275elementStart(2,"div",15)(3,"i",18),t.\u0275\u0275text(4,"search"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",21),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"i",18),t.\u0275\u0275text(8,"chevron_right"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(9,"div",20),t.\u0275\u0275element(10,"mat-divider"),t.\u0275\u0275elementEnd()()}if(2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(r.suggestions.guessedWord)}}function mw(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",20),t.\u0275\u0275element(1,"mat-divider"),t.\u0275\u0275elementEnd())}const gw=function(c,o){return{searchTerm:c,category:o}};function _w(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"div",14),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(G.searchProductInCategory(G.searchControl.value,I.atc))}),t.\u0275\u0275elementStart(2,"div",15)(3,"i",18),t.\u0275\u0275text(4,"search"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(5,"div",22),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"i",18),t.\u0275\u0275text(8,"chevron_right"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(9,mw,2,0,"div",19),t.\u0275\u0275elementEnd()}if(2&c){const r=o.$implicit,m=o.last,M=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(5),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(6,2,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.SEARCHED_PRODUCT",t.\u0275\u0275pureFunction2(5,gw,M.suggestions.guessedWord,r.description)),t.\u0275\u0275sanitizeHtml),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",!m||(null==M.suggestions||null==M.suggestions.products?null:M.suggestions.products.length))}}function vw(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",20),t.\u0275\u0275element(1,"mat-divider"),t.\u0275\u0275elementEnd())}function bw(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"div",14),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(G.searchProduct(I.productSlug,I.productCategory.atc,I.productName))}),t.\u0275\u0275elementStart(2,"div",15),t.\u0275\u0275element(3,"img",16),t.\u0275\u0275elementStart(4,"div",17),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"i",18),t.\u0275\u0275text(7,"chevron_right"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(8,vw,2,0,"div",19),t.\u0275\u0275elementEnd()}if(2&c){const r=o.$implicit,m=o.last,M=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275property("src",M.getImagesForSearch(r.productThumbnailStorageKey),t.\u0275\u0275sanitizeUrl)("alt","SHARED.PRODUCT.GLOBAL_SEARCHBAR.PRODUCT_IMAGE"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(r.productName),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!m)}}function yw(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,hw,9,4,"div",12),t.\u0275\u0275template(2,fw,11,1,"div",13),t.\u0275\u0275template(3,_w,10,8,"div",12),t.\u0275\u0275template(4,bw,9,4,"div",12),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",null==r.suggestions?null:r.suggestions.businesses),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.suggestions?null:r.suggestions.guessedWord),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",null==r.suggestions?null:r.suggestions.categories),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",null==r.suggestions?null:r.suggestions.products)}}function Cw(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",20),t.\u0275\u0275element(1,"mat-divider"),t.\u0275\u0275elementEnd())}function Ew(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"div",23),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(G.searchProductInCategory(I.keyword,I.category))}),t.\u0275\u0275elementStart(2,"div",15)(3,"i",18),t.\u0275\u0275text(4,"schedule"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",17),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"span",24),t.\u0275\u0275listener("click",function(M){const G=t.\u0275\u0275restoreView(r).$implicit,Me=t.\u0275\u0275nextContext(3);return M.stopPropagation(),t.\u0275\u0275resetView(Me.deleteFromHistory(G))}),t.\u0275\u0275text(8),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(10,Cw,2,0,"div",19),t.\u0275\u0275elementEnd()}if(2&c){const r=o.$implicit,m=o.last,M=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(r.keyword),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(9,3,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.REMOVE")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!m||(null==M.searchData||null==M.searchData.popularSearches?null:M.searchData.popularSearches.length))}}function xw(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",20),t.\u0275\u0275element(1,"mat-divider"),t.\u0275\u0275elementEnd())}function Mw(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"div",14),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(G.searchProductInCategory(I))}),t.\u0275\u0275elementStart(2,"div",15)(3,"i",18),t.\u0275\u0275text(4,"search"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",17),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"i",18),t.\u0275\u0275text(8,"chevron_right"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(9,xw,2,0,"div",19),t.\u0275\u0275elementEnd()}if(2&c){const r=o.$implicit,m=o.last;t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(r),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!m)}}function Sw(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,Ew,11,5,"div",12),t.\u0275\u0275template(2,Mw,10,2,"div",12),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r.searchData.userSearches),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r.searchData.popularSearches)}}function ww(c,o){if(1&c&&t.\u0275\u0275template(0,Sw,3,2,"div",13),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngIf",r.searchData)}}class Ym{constructor(o,r,m,M,I,G){this.router=o,this.cookies=r,this.activatedRoute=m,this.dialogRef=M,this.searchService=I,this.userLocationService=G,this.carmen=St.VLR,this.drcButtonColors=St.B6Y,this.drcButtonType=St.L$3,this.searchControl=new Vp.NI(null,[wx.A.required(),wx.A.minLength(3),wx.A.maxLength(100)]),this.destroy$=new Ks.x,this.router.events.subscribe(Me=>{Me instanceof to.m2&&this.closeDialog()})}ngOnInit(){this.listenForValueChanges(),this.getSearchData(),this.setInitialSearchValue()}listenForValueChanges(){this.searchControl.valueChanges.pipe((0,ya.x)(),(0,wM.b)(400),(0,ts.R)(this.destroy$)).subscribe({next:o=>{if(o&&this.searchControl.valid){const r={keyword:o,locality:this.userLocationService.getUserLocation()?.city,county:this.userLocationService.getUserLocation()?.county};this.getSuggestions(r)}}})}getSearchData(){this.searchService.getSearchData().subscribe(o=>{this.searchData=o})}getSuggestions(o){this.searchService.getSearchSuggestions(o).pipe((0,So.q)(1)).subscribe({next:r=>{this.suggestions=r}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}search(){this.searchbar.search(this.searchbar.searchTerm.value),this.closeDialog()}closeDialog(){this.dialogRef.close()}get getIconType(){return this.searchControl.value?"close":"search"}clearText(){this.searchControl.reset(),this.suggestions=null}getImagesForSearch(o){return o?l.Z.images+o:St.Mak}getBusinessProfileImage(o){return o?.length?l.Z.images+o:St.LeP}submitForm(){this.searchControl.invalid||this.searchProductInCategory(this.searchControl.value)}searchProduct(o,r,m){this.closeDialog(),this.router.navigate([`${St.Z2M.PRODUCTS}/${r}/${o}`]),this.addToHistory({keyword:m},!0,!0)}searchProductInCategory(o,r){this.closeDialog(),this.router.navigate([`${St.Z2M.PRODUCTS}/${St.Z2M.SEARCH}/${o}`],{queryParams:{category:r}}),this.addToHistory({keyword:o},!0,!0)}searchBusiness(o){this.closeDialog(),this.router.navigate([`${St.ZTG.SHOP_ROUTE}/${o}`])}addToHistory(o,r=!1,m=!1){const M=!!this.searchData.userSearches?.find(I=>I.keyword.toLowerCase()===o.keyword.toLowerCase());if(!M){if(this.user&&"business"!==this.user.getType())return r?void this.searchService.addToRemoteHistory(o).pipe((0,So.q)(1)).subscribe():void this.searchService.updateSearchHistory(o);(!m||m&&!M)&&this.searchService.addToLocalHistory(o).pipe((0,So.q)(1)).subscribe()}}deleteFromHistory(o){this.searchService.deleteSearchEntry(o).pipe((0,So.q)(1)).subscribe({next:()=>this.getSearchData()})}setInitialSearchValue(){const o=this.router.url.split("/"),r=o[o.length-2]===St.Z2M.SEARCH&&o[o.length-1]?decodeURI(o[o.length-1].split("?")[0]):"";this.searchControl.setValue(r)}}Ym.\u0275fac=function(o){return new(o||Ym)(t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(C.N),t.\u0275\u0275directiveInject(to.gz),t.\u0275\u0275directiveInject(rl.hV),t.\u0275\u0275directiveInject(St.vio.SearchServiceToken),t.\u0275\u0275directiveInject(St.vio.UserLocationServiceToken))},Ym.\u0275cmp=t.\u0275\u0275defineComponent({type:Ym,selectors:[["app-product-searchbar-mobile"]],viewQuery:function(o,r){if(1&o&&t.\u0275\u0275viewQuery(dw,7),2&o){let m;t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.searchbar=m.first)}},decls:22,vars:13,consts:[[1,"drop-shadow"],["fxLayoutAlign","end start",1,"p-16"],[3,"type","icon","clickEvent"],[1,"pt-24","pl-16","pr-16"],["action","",3,"submit"],[1,"pt-16","pl-16","pr-16","pb-12"],["appearance","outline",1,"w-100"],["matInput","","type","search","cdkFocusInitial","",3,"formControl","maxlength"],["matSuffix","",1,"material-icons",3,"click"],[4,"drcForAll"],[4,"ngIf","ngIfElse"],["historyAndPopularSearches",""],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-ripple","","fxLayoutAlign","space-between center",1,"pt-24","pb-24","pl-24","pr-24",3,"click"],["fxLayoutAlign","start center",1,"w-100"],[1,"product-image",3,"src","alt"],[1,"ml-8","mr-8","break-words","w-100"],[1,"material-icons"],["class","pl-16 pr-16",4,"ngIf"],[1,"pl-16","pr-16"],[1,"ml-8","mr-8","text-primary-color","break-words","w-100"],[1,"ml-8","mr-8","break-words","w-100",3,"innerHTML"],["mat-ripple","","fxLayoutAlign","space-between center",1,"pt-16","pb-16","pl-24","pr-16",3,"click"],[1,"pt-8","pb-8","pl-8","pr-8",3,"click"]],template:function(o,r){if(1&o&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"drc-button",2),t.\u0275\u0275listener("clickEvent",function(){return r.closeDialog()}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(3,"div"),t.\u0275\u0275element(4,"mat-divider"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"h1",3),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"form",4),t.\u0275\u0275listener("submit",function(){return r.submitForm()}),t.\u0275\u0275elementStart(9,"div",5)(10,"mat-form-field",6)(11,"mat-label"),t.\u0275\u0275text(12),t.\u0275\u0275pipe(13,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(14,"input",7),t.\u0275\u0275elementStart(15,"i",8),t.\u0275\u0275listener("click",function(){return r.clearText()}),t.\u0275\u0275text(16),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(17,uw,1,0,"mat-error",9),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(18,"mat-dialog-content"),t.\u0275\u0275template(19,yw,5,4,"div",10),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(20,ww,1,1,"ng-template",null,11,t.\u0275\u0275templateRefExtractor)),2&o){const m=t.\u0275\u0275reference(21);t.\u0275\u0275advance(2),t.\u0275\u0275property("type",r.drcButtonType.iconButton)("icon","close"),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(7,9,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.MOBILE_SEARCH")),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(13,11,"SHARED.PRODUCT.GLOBAL_SEARCHBAR.MOBILE_SEARCH_INPUT")),t.\u0275\u0275advance(2),t.\u0275\u0275property("formControl",r.searchControl)("maxlength",101),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(r.getIconType),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",r.suggestions&&r.searchControl.valid)("ngIfElse",m)}},dependencies:[_C.r,aw.b,Ze.NgForOf,Ze.NgIf,je.Wh,rl.Rb,bC.nI,bC.v_,bC.$V,bC.nX,sw.k0,ar.d,Sx.wG,Vp._Y,Vp.Fj,Vp.JJ,Vp.JL,Vp.nD,Vp.F,Vp.oH,fn.b,ea.X$],styles:["h1[_ngcontent-%COMP%]{font-size:22px}.material-icons[_ngcontent-%COMP%]{color:#75777b}.drop-shadow[_ngcontent-%COMP%]{box-shadow:#00000040 0 2px 4px}.product-image[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Ym.prototype,"user",void 0);var Ow=i(2550),Gm=i(83683),fl=i(86255);function Iw(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"span",20),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(r.size)}}const Pw=function(c){return{"small-count":c}};function Aw(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"span",21),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(2,Pw,r.window.innerWidth<=r.breakpoints.TABLET)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",r.size," ")}}function Lw(c,o){1&c&&(t.\u0275\u0275elementStart(0,"mat-list-item",22)(1,"div",23),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&c&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,"SHARED.MENU.WISHLIST.EMPTY_WISHLIST")))}const Rw=function(c){return{price:c}};function kw(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",40),t.\u0275\u0275element(1,"span",41),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"price"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(2,1,100===(null==r?null:r.productPrice)?"SHARED.MENU.WISHLIST.CURRENCY_SINGULAR":"SHARED.MENU.WISHLIST.CURRENCY_PLURAL",t.\u0275\u0275pureFunction1(6,Rw,t.\u0275\u0275pipeBind1(3,4,null==r?null:r.productPrice))),t.\u0275\u0275sanitizeHtml)}}function Nw(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",42),t.\u0275\u0275element(1,"app-controls",43),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().index,m=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("product",m.controlItems[r])("type",m.controlTypes.MINIMAL)("messageSnackbarType",m.snackbarMessageType)}}function Fw(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",44)(1,"div"),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"uppercase"),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()),2&c&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,1,t.\u0275\u0275pipeBind1(4,3,"SHARED.MENU.WISHLIST.UNAVAILABLE"))))}function Bw(c,o){1&c&&t.\u0275\u0275element(0,"div",45)}const Uw=function(c){return{"last-item":c}};function jw(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-list-item",24)(1,"div",25)(2,"div",26)(3,"div",27)(4,"div",28),t.\u0275\u0275element(5,"img",29),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",30)(7,"a",31),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(M.closeMenu())}),t.\u0275\u0275text(8),t.\u0275\u0275pipe(9,"uppercase"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(10,"div",32),t.\u0275\u0275template(11,kw,4,8,"div",33),t.\u0275\u0275template(12,Nw,2,3,"div",34),t.\u0275\u0275template(13,Fw,5,5,"div",35),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(14,"div",36)(15,"button",37),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(G.removeFromFavourites(I))}),t.\u0275\u0275pipe(16,"translate"),t.\u0275\u0275elementStart(17,"i",38),t.\u0275\u0275text(18,"close"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275template(19,Bw,1,0,"div",39),t.\u0275\u0275elementEnd()()}if(2&c){const r=o.$implicit,m=o.last,M=o.index,I=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(16,Uw,m)),t.\u0275\u0275advance(4),t.\u0275\u0275property("routerLink",null==r?null:r.productRoute),t.\u0275\u0275advance(1),t.\u0275\u0275property("src",(null==r?null:r.photoUrl)||"assets/images/business/no-logo.jpg",t.\u0275\u0275sanitizeUrl)("alt",r.productName),t.\u0275\u0275advance(2),t.\u0275\u0275property("matTooltip",r.productName)("routerLink",null==r?null:r.productRoute),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(9,12,r.productName)," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",(null==r?null:r.productPrice)&&(null==r?null:r.inStock)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==r?null:r.inStock)&&I.controlItems[M]),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.inStock),t.\u0275\u0275advance(2),t.\u0275\u0275property("matTooltip",t.\u0275\u0275pipeBind1(16,14,"SHARED.MENU.WISHLIST.DELETE")),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",!m)}}function Hw(c,o){1&c&&(t.\u0275\u0275elementStart(0,"i",51),t.\u0275\u0275text(1,"favorite_border"),t.\u0275\u0275elementEnd())}function Vw(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",46),t.\u0275\u0275element(1,"div",45),t.\u0275\u0275elementStart(2,"div",47)(3,"a",48),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(M.closeMenu())}),t.\u0275\u0275elementStart(4,"strong"),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"uppercase"),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(8,"button",49),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275template(10,Hw,2,0,"i",50),t.\u0275\u0275elementStart(11,"strong"),t.\u0275\u0275text(12),t.\u0275\u0275pipe(13,"uppercase"),t.\u0275\u0275pipe(14,"translate"),t.\u0275\u0275elementEnd()()()()}if(2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(6,5,t.\u0275\u0275pipeBind1(7,7,"SHARED.MENU.WISHLIST.BACK"))),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.listsLinkPath)("matTooltip",t.\u0275\u0275pipeBind1(9,9,r.user?"SHARED.MENU.WISHLIST.SEE_LISTS":"SHARED.MENU.WISHLIST.LOGIN_TOOLTIP")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.user),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(13,11,t.\u0275\u0275pipeBind1(14,13,r.user?"SHARED.MENU.WISHLIST.SEE_LISTS":"SHARED.MENU.WISHLIST.LOGIN"))," ")}}const Ww=function(c){return{"no-scroll":c}};function zw(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",1)(1,"button",2,3),t.\u0275\u0275listener("menuOpened",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.menuControls(!0))})("menuClosed",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.menuControls())}),t.\u0275\u0275elementStart(3,"div",4),t.\u0275\u0275element(4,"img",5),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(6,Iw,2,1,"span",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"button",7),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.openSideNav())}),t.\u0275\u0275element(8,"img",5),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275template(10,Aw,2,4,"span",8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"mat-menu",9,10)(13,"div",11),t.\u0275\u0275listener("click",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.stopClickPropagate(M))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(14,"div",12),t.\u0275\u0275listener("click",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.stopClickPropagate(M))}),t.\u0275\u0275elementStart(15,"div",13),t.\u0275\u0275text(16),t.\u0275\u0275pipe(17,"uppercase"),t.\u0275\u0275pipe(18,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(19,"mat-divider",14),t.\u0275\u0275elementStart(20,"div",15)(21,"mat-list",16),t.\u0275\u0275listener("click",function(M){return M.stopPropagation()}),t.\u0275\u0275template(22,Lw,4,3,"mat-list-item",17),t.\u0275\u0275template(23,jw,20,18,"mat-list-item",18),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(24,Vw,15,15,"div",19),t.\u0275\u0275elementEnd()()}if(2&c){const r=t.\u0275\u0275reference(12),m=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("matMenuTriggerFor",r),t.\u0275\u0275advance(3),t.\u0275\u0275property("src",m.favoritesIconPath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(5,13,"PAGES.HEADER.FAVORITES_ALT")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",m.wishlistHasProducts()),t.\u0275\u0275advance(2),t.\u0275\u0275property("src",m.favoritesIconPath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(9,15,"PAGES.HEADER.FAVORITES_ALT")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",m.wishlistHasProducts()),t.\u0275\u0275advance(1),t.\u0275\u0275property("overlapTrigger",!1),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(21,Ww,!m.isScrollable())),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(17,17,t.\u0275\u0275pipeBind1(18,19,"SHARED.MENU.WISHLIST.LAST_ADDED"))),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",!m.wishlistHasProducts()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",m.items),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.wishlistHasProducts())}}class $m{constructor(o,r,m){this.translateService=o,this.store=r,this.messageService=m,this.items=[],this.controlItems=[],this.size=0,this.menuIsOpen=!1,this.window=window,this.snackbarMessageType=St.vax.REDIRECT,this.breakpoints=St.u3l,this.controlTypes=St.yP3,this.favoritesIconPath=St.NHW,this.currentSidenav=new t.EventEmitter,this.menuOpened=new t.EventEmitter,this.menuClosed=new t.EventEmitter}ngOnInit(){this.getFavoritesPreviewProducts()}ngOnDestroy(){this.previewProductsSubscription?.unsubscribe(),this.totalElementsSubscription?.unsubscribe()}onWindowResize(){this.window=window,window.innerWidth<960&&this.closeMenu()}getFavoritesPreviewProducts(){this.previewProductsSubscription=this.store.select(vC.Xo.getPreviewProducts).subscribe(o=>{this.items=o,this.controlItems=this.items.map(r=>new Hp.xs({registered_name:r.productName,slug:r.slug,productSlug:r.slug,businessExternalId:r.businessId,businessName:r?.businessName,priceMin:r.productPrice,images:[{medium:r.photoUrl}],inStock:r.inStock,packagings:[{slug:r.slug}],issuing:r.prescriptionNeeded?"PR":null,mustConfirmAge:r.mustConfirmAge,sgrValue:r.sgrValue}))}),this.totalElementsSubscription=this.store.select(vC.Xo.getTotalElements).subscribe(o=>{this.size=o})}removeFromFavourites(o){this.store.select(xM.g,{id:o.slug}).pipe((0,So.q)(1)).subscribe(m=>{if(m)this.removeProduct(m,o);else{const M=this.addMissingProduct(o);this.removeProduct(M,o)}});const r=this.translateService.instant("PAGES.PATIENT.FAVORITES.FAVORITES_LIST.DEFAULT_LIST");this.messageService.displayMessage(St.CsS.SUCCESS,"SERVICES.UNDO_REDO.PRODUCT_REMOVED_FROM_LIST",{listName:r})}removeProduct(o,r){const m=this.getDeletedLists(o,r);o.packagings.find(M=>M.productSlug===r.slug).inFavouriteLists={},this.store.dispatch(Za.N.updateProduct({selected:!1,updatedProduct:o,isGuest:!this.user,deletedLists:m}))}getDeletedLists(o,r){return JSON.parse(JSON.stringify(o.packagings?.find(m=>m.productSlug===r.slug).inFavouriteLists))}addMissingProduct(o){const r={id:o.slug,slug:o.slug,packagings:[{productSlug:o.slug,inFavouriteLists:{}}]};return r.packagings[0].inFavouriteLists[-1]="DEFAULT_LIST",o?.inLists.forEach(m=>r.packagings[0].inFavouriteLists[m.id]=m.name),this.store.dispatch(Za.N.addMissingProduct({product:r})),r}menuControls(o=!1){o?this.menuOpened.emit():this.menuClosed.emit(),this.menuIsOpen=!this.menuIsOpen}wishlistHasProducts(){return this.size&&this.size>0}closeMenu(){this.menuClosed.emit(),this.menuIsOpen=!this.menuIsOpen,this.trigger.closeMenu()}isScrollable(){return this.size>5}openSideNav(){window.innerWidth<960&&this.currentSidenav.emit()}stopClickPropagate(o){o.stopPropagation(),o.preventDefault()}get listsLinkPath(){return this.user?`/${St.tKG}`:St.baM}}$m.\u0275fac=function(o){return new(o||$m)(t.\u0275\u0275directiveInject(ea.sK),t.\u0275\u0275directiveInject(xs.yh),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken))},$m.\u0275cmp=t.\u0275\u0275defineComponent({type:$m,selectors:[["app-favorites-preview-menu"]],viewQuery:function(o,r){if(1&o&&(t.\u0275\u0275viewQuery(fl.D8,5),t.\u0275\u0275viewQuery(MM.Vv,5)),2&o){let m;t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.trigger=m.first),t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.scrollbar=m.first)}},hostBindings:function(o,r){1&o&&t.\u0275\u0275listener("resize",function(){return r.onWindowResize()},!1,t.\u0275\u0275resolveWindow)},outputs:{currentSidenav:"currentSidenav",menuOpened:"menuOpened",menuClosed:"menuClosed"},decls:1,vars:1,consts:[["fxLayoutAlign","center center","class","header-buttons-container",4,"ngIf"],["fxLayoutAlign","center center",1,"header-buttons-container"],["mat-button","","fxHide","","fxShow.gt-sm","",1,"flex-row-button","top-menu-buttons",3,"matMenuTriggerFor","menuOpened","menuClosed"],["wishlistMenuTrigger","matMenuTrigger"],["fxLayoutAlign","center center",1,"favorites-icon-container"],[3,"src","alt"],["class","favorites-preview-items-count",4,"ngIf"],["fxHide.gt-sm","","mat-button","",1,"flex-row-button","top-menu-buttons",3,"click"],["class","favorites-preview-items-count",3,"ngClass",4,"ngIf"],["xPosition","before","backdropClass","favorites-preview-backdrop",1,"favorites-preview-menu",3,"overlapTrigger"],["wishlistMenu","matMenu"],[1,"triangle",3,"click"],[1,"favorites-preview-container",3,"ngClass","click"],[1,"last-items-text","mb-16"],[1,"full-width-divider","full-width-divider--top"],[1,"favorites-preview-content"],[1,"favorites-preview",3,"click"],["class","mat-list-text",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],["class","cart-dropdown-footer",4,"ngIf"],[1,"favorites-preview-items-count"],[1,"favorites-preview-items-count",3,"ngClass"],[1,"mat-list-text"],["matLine","",1,"text-muted","text-center"],[3,"ngClass"],["fxFlex","","fxLayout","column"],["fxLayout","row","fxFlex","",1,"favorites-preview-product-wrapper"],["fxLayout","row","fxLayoutGap","8px","fxLayoutAlign","space-between center",1,"favorites-preview-product"],[1,"favorites-preview-image-container","cursor-pointer",3,"routerLink"],["matListAvatar","",1,"favorites-preview-image",3,"src","alt"],["fxLayoutAlign","start center",1,"favorites-preview-product-name"],[3,"matTooltip","routerLink","click"],["fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","end center","fxFlex","",1,"favorites-preview-price"],["class","price","matLine","",4,"ngIf"],["class","favorites-preview-add-button-container","fxLayoutAlign","center center",4,"ngIf"],["class","unavailable",4,"ngIf"],["fxLayoutAlign","center center",1,"favorites-preview-remove-container"],["mat-icon-button","","fxLayoutAlign","center center",3,"matTooltip","click"],[1,"material-icons"],["class","divider",4,"ngIf"],["matLine","",1,"price"],[3,"innerHTML"],["fxLayoutAlign","center center",1,"favorites-preview-add-button-container"],[3,"product","type","messageSnackbarType"],[1,"unavailable"],[1,"divider"],[1,"cart-dropdown-footer"],["fxLayout","row","fxLayoutAlign","space-between center",1,"footer-buttons","mt-16","px-16"],["target","_blank",3,"click"],["color","primary","mat-flat-button","",1,"letter-spacing",3,"routerLink","matTooltip"],["class","material-icons fav-list-icon",4,"ngIf"],[1,"material-icons","fav-list-icon"]],template:function(o,r){1&o&&t.\u0275\u0275template(0,zw,25,23,"div",0),2&o&&t.\u0275\u0275property("ngIf",!(null!=r.user&&r.user.isBusiness()))},dependencies:[Ze.NgClass,Ze.NgForOf,Ze.NgIf,to.rH,je.xw,je.SQ,je.Wh,je.yH,lt.b8,lt.oO,Ht.eB,Sx.X2,cd.Zj,cd.oh,cd.Wx,ar.d,fl.W0,fl.D8,Lv.Kd,SM.I,fn.b,Ze.UpperCasePipe,Ex.d,ea.X$],styles:[".favorites-preview-items-count[_ngcontent-%COMP%]{position:absolute;top:-5px;left:16px;background:#f44336;height:17px;width:16px;line-height:18px;border-radius:5px;font-size:9px}.favorites-preview-items-count.small-count[_ngcontent-%COMP%]{top:-3px!important}.mat-button[_ngcontent-%COMP%]{padding:0;min-width:30px}@media (max-width: 960px){.mat-button[_ngcontent-%COMP%]{min-width:26px!important}}@media (max-width: 360px){.mat-button[_ngcontent-%COMP%]{min-width:24px!important}}.favorites-preview-container[_ngcontent-%COMP%]{padding:16px 8px 16px 16px;overflow-x:hidden}.favorites-preview-container[_ngcontent-%COMP%]   .favorites-preview-content[_ngcontent-%COMP%]{padding:0!important;overflow-x:hidden;width:100%}.favorites-preview-container[_ngcontent-%COMP%]   .favorites-preview-content[_ngcontent-%COMP%]   mat-list[_ngcontent-%COMP%]{min-height:330px;max-height:330px}.favorites-preview-container[_ngcontent-%COMP%]   .last-items-text[_ngcontent-%COMP%]{text-align:center;font-weight:700;font-size:14px;color:#00853b;padding-right:8px}.favorites-preview-container[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}.favorites-preview-container[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#e1e3e6}.favorites-preview-container[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:100px;background:#7b7b7b}.favorites-preview-container[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#626262}.header-buttons-container[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]{padding:0}.header-buttons-container[_ngcontent-%COMP%]   .top-menu-buttons[_ngcontent-%COMP%]   .mat-icon-lg[_ngcontent-%COMP%]{font-size:30px!important}.header-buttons-container[_ngcontent-%COMP%]   .top-menu-buttons[_ngcontent-%COMP%]   .mat-icon-sm[_ngcontent-%COMP%]{display:block}.favorites-preview-product-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]{width:268px;margin-right:8px}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]   .favorites-preview-image-container[_ngcontent-%COMP%]{height:45px;width:45px}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]   .favorites-preview-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]   .favorites-preview-product-name[_ngcontent-%COMP%]{width:215px;height:45px}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-product[_ngcontent-%COMP%]   .favorites-preview-product-name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:#000;line-height:1.5em;font-size:14px;font-weight:700;max-height:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-price[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:15px;font-weight:700}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-price[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]     sup{font-size:8px;font-weight:700}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-price[_ngcontent-%COMP%]   .favorites-preview-add-button-container[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#e1e3e6;border-radius:5px}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-price[_ngcontent-%COMP%]   .favorites-preview-add-button-container[_ngcontent-%COMP%]     mat-icon{height:21px;width:20px;font-size:20px;margin-top:-5px}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-price[_ngcontent-%COMP%]   .unavailable[_ngcontent-%COMP%]{background-color:#a7a7a7;border-radius:4px;width:74px;height:19px;font-size:10px;font-weight:700;color:#fff;text-align:center;line-height:2em}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-remove-container[_ngcontent-%COMP%]{width:18px;height:45px;margin-left:8px}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-remove-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:18px;height:18px;color:#ff3a3a}.favorites-preview-product-wrapper[_ngcontent-%COMP%]   .favorites-preview-remove-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:18px;height:24px;font-weight:700}.divider[_ngcontent-%COMP%]{width:100%;min-height:1px}.full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.full-width-divider--top[_ngcontent-%COMP%], .footer-buttons[_ngcontent-%COMP%]{margin-bottom:16px}.footer-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-height:40px}.footer-buttons[_ngcontent-%COMP%]   .fav-list-icon[_ngcontent-%COMP%]{font-size:20px;margin-right:9px}.mt-16[_ngcontent-%COMP%]{margin-top:16px}.mb-16[_ngcontent-%COMP%]{margin-bottom:16px}.px-16[_ngcontent-%COMP%]{padding:0 16px}.triangle[_ngcontent-%COMP%]{position:absolute;height:0;width:0;border:10px solid white;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;top:-19px;right:50px}.letter-spacing[_ngcontent-%COMP%]{letter-spacing:1px}@media (max-width: 1404px){.header-buttons-container[_ngcontent-%COMP%]   .top-menu-buttons[_ngcontent-%COMP%]   .top-menu-label[_ngcontent-%COMP%], .header-buttons-container[_ngcontent-%COMP%]   .top-menu-buttons[_ngcontent-%COMP%]   .mat-icon-sm[_ngcontent-%COMP%]{display:none!important}.triangle[_ngcontent-%COMP%]{right:16px!important}}@media (max-width: 960px){.header-buttons-container[_ngcontent-%COMP%]   .top-menu-buttons[_ngcontent-%COMP%], .header-buttons-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{min-width:26px;width:26px;height:26px;padding:0!important}}@media (max-width: 360px){.header-buttons-container[_ngcontent-%COMP%]   .top-menu-buttons[_ngcontent-%COMP%], .header-buttons-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{min-width:24px;width:24px;height:24px;padding:0!important}}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],$m.prototype,"user",void 0);var Gw=i(39070);function Qw(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",7)(1,"a",8),t.\u0275\u0275element(2,"img",9),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("routerLink",r.onPartnerLandingPage?r.businessAuthenticationLink:r.authenticationLink),t.\u0275\u0275advance(1),t.\u0275\u0275property("src",r.loggedUserNoImage,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(3,3,"SHARED.REGISTRATION.DEFAULT_IMAGE_ALT"))}}const Xw=function(c){return{"p-0":c}};function Zw(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"a",10,11),t.\u0275\u0275element(2,"img",12),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(),m=t.\u0275\u0275reference(4);t.\u0275\u0275property("matMenuTriggerFor",m)("ngClass",t.\u0275\u0275pureFunction1(4,Xw,r.onCheckout)),t.\u0275\u0275advance(2),t.\u0275\u0275property("alt",null==r.user.profile?null:r.user.profile.username)("src",r.getUserImage(),t.\u0275\u0275sanitizeUrl)}}function Jw(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"img",21),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(M.openImageProfileDialog())}),t.\u0275\u0275elementEnd()}if(2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("src",r.getUserImage(),t.\u0275\u0275sanitizeUrl)}}function qw(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"small"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(null==r.user?null:r.user.email)}}function eO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"a",22)(1,"mat-icon",20),t.\u0275\u0275text(2,"settings"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"span"),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("routerLink",r.accountOrdersLink),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(5,2,"SHARED.MENU.ACCOUNT_MENU.MY_ACCOUNT"))}}function tO(c,o){1&c&&t.\u0275\u0275element(0,"div",16)}const nO=function(c){return{"business-email":c}};function iO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",13),t.\u0275\u0275template(2,Jw,1,1,"img",14),t.\u0275\u0275elementStart(3,"p",15),t.\u0275\u0275text(4),t.\u0275\u0275element(5,"br"),t.\u0275\u0275template(6,qw,2,1,"small",6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(7,"div",16),t.\u0275\u0275template(8,eO,6,4,"a",17),t.\u0275\u0275template(9,tO,1,0,"div",18),t.\u0275\u0275elementStart(10,"a",19),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.signOut())}),t.\u0275\u0275elementStart(11,"mat-icon",20),t.\u0275\u0275text(12,"power_settings_new"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"span"),t.\u0275\u0275text(14),t.\u0275\u0275pipe(15,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!(null!=r.user&&r.user.isBusiness())),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(9,nO,null==r.user?null:r.user.isBusiness())),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",null!=r.user&&r.user.isBusiness()?null==r.user?null:r.user.email:r.getUserName()," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!(null!=r.user&&r.user.isBusiness())),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!(null!=r.user&&r.user.isBusiness())),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=r.user&&r.user.isBusiness())),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(15,7,"SHARED.MENU.ACCOUNT_MENU.LOG_OUT"))}}class Km{constructor(o,r,m,M,I,G){this.router=o,this.userService=r,this.activatedRoute=m,this.translateService=M,this.dialog=I,this.snackbarMessageService=G,this.breakpoints=St.u3l,this.authenticationLink=St.baM,this.businessAuthenticationLink=St.qE$,this.loggedUserNoImage=St.Err}ngOnInit(){this.window=window,this.onCouriersPage=this.router.url===`/${St.BW$.COURIERS}`,this.onCheckout=this.router.url.includes(St.Jjk.CART),this.onPartnerLandingPage=this.router.url===`/${St.BW$.BUSINESS_PARTNERS}`,this.router.events.subscribe(o=>{o instanceof to.m2&&(this.onCheckout=!!this.activatedRoute.children[0].url.value[0]&&this.activatedRoute.children[0].url.value[0].path===St.Jjk.CART),o instanceof to.OD&&(this.onCheckout=this.router.url===`/${St.Jjk.CART}`,this.onCouriersPage=o.url===`/${St.BW$.COURIERS}`,this.onPartnerLandingPage=o.url===`/${St.BW$.BUSINESS_PARTNERS}`)})}onWindowResize(){window.innerWidth<St.u3l.DESKTOP_S&&!this.isSpecialPage()&&this.closeMenu()}closeMenu(){this.trigger.closeMenu()}signOut(){this.userService.logout(St.S2t.ACCOUNT_MENU).subscribe(()=>{this.snackbarMessageService.displayMessage(St.CsS.SUCCESS,"PAGES.PATIENT.PATIENT_ACCOUNT_MENU.SUCCESSFULLY_LOGGED_OUT"),this.router.navigate([St.s67])})}userType(){let o=St.FWD.CLIENT;if(this.user)switch(this.user.getType()){case St.FWD.CLIENT:o=St.FWD.CLIENT;break;case St.FWD.BUSINESS:o=this.user.profile.typeName;break;case St.FWD.EMPLOYEE:o="angajat"}return o}getUserImage(){return this.user?.profile?.files?.profile_image?.url||St.dko}getUserName(){return this.user?.isBusiness()?this.translateService.instant("SHARED.MENU.ACCOUNT_MENU.MY_ACCOUNT"):this.user?.name}openImageProfileDialog(){this.dialog.closeAll(),this.dialog.open(Gw.c,{panelClass:"base-panel-class",width:(0,St.I3d)(1404),position:St.VLR.getDialogPosition()})}getBackdropClass(){return this.user?.isBusiness()?["common-menu-backdrop","business-account-menu-backdrop"]:St.VLR.isNativeIos?["common-menu-backdrop","patient-account-menu-backdrop","common-menu-backdrop-ios-native"]:["common-menu-backdrop","patient-account-menu-backdrop"]}getCustomClass(){return this.isSpecialPage()?"checkout":""}isSpecialPage(){return this.onCheckout||this.onCouriersPage||this.onPartnerLandingPage}getTriangleClass(){return this.user?.isBusiness()?"business-triangle":this.isSpecialPage()?"patient-checkout-triangle":"patient-triangle"}get accountOrdersLink(){return`/${this.userType()}/${St.ZTG.MY_ACCOUNT}/${St.ZTG.ORDERS}`}get isOnCheckoutLoginPage(){return this.router.url.includes(St.Jjk.CART)}}Km.\u0275fac=function(o){return new(o||Km)(t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(Al.O),t.\u0275\u0275directiveInject(to.gz),t.\u0275\u0275directiveInject(ea.sK),t.\u0275\u0275directiveInject(rl.on),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken))},Km.\u0275cmp=t.\u0275\u0275defineComponent({type:Km,selectors:[["app-account-menu"]],viewQuery:function(o,r){if(1&o&&t.\u0275\u0275viewQuery(fl.D8,5),2&o){let m;t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.trigger=m.first)}},hostBindings:function(o,r){1&o&&t.\u0275\u0275listener("resize",function(){return r.onWindowResize()},!1,t.\u0275\u0275resolveWindow)},decls:7,vars:10,consts:[["fxLayoutAlign","center center","fxShow","",1,"user-menu",3,"fxHide"],["class","account-button",4,"ngIf"],["class","flex-row-button top-menu-buttons","mat-button","",3,"matMenuTriggerFor","ngClass",4,"ngIf"],["xPosition","before",1,"app-dropdown","account","ml-16","mr-16",3,"overlapTrigger","backdropClass"],["accountMenu","matMenu"],[1,"triangle"],[4,"ngIf"],[1,"account-button"],["mat-button","",1,"flex-row-button","top-menu-buttons",3,"routerLink"],[1,"user-icon",3,"src","alt"],["mat-button","",1,"flex-row-button","top-menu-buttons",3,"matMenuTriggerFor","ngClass"],["accountMenuTrigger","matMenuTrigger"],[1,"user-avatar",3,"alt","src"],["fxLayout","row","fxLayoutAlign","space-around center",1,"user-info"],["alt","user-image","class","user-image cursor-pointer",3,"src","click",4,"ngIf"],[1,"text-truncate",3,"ngClass"],[1,"divider"],["mat-menu-item","",3,"routerLink",4,"ngIf"],["class","divider",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"mat-icon-sm"],["alt","user-image",1,"user-image","cursor-pointer",3,"src","click"],["mat-menu-item","",3,"routerLink"]],template:function(o,r){1&o&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275template(1,Qw,4,5,"div",1),t.\u0275\u0275template(2,Zw,3,6,"a",2),t.\u0275\u0275elementStart(3,"mat-menu",3,4),t.\u0275\u0275element(5,"div",5),t.\u0275\u0275template(6,iO,16,11,"ng-container",6),t.\u0275\u0275elementEnd()()),2&o&&(t.\u0275\u0275property("fxHide",!r.onCheckout&&r.window.innerWidth<r.breakpoints.DESKTOP_S),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.user&&!r.isOnCheckoutLoginPage),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.user),t.\u0275\u0275advance(1),t.\u0275\u0275classMap(r.getCustomClass()),t.\u0275\u0275property("overlapTrigger",!1)("backdropClass",r.getBackdropClass()),t.\u0275\u0275advance(2),t.\u0275\u0275classMap(r.getTriangleClass()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.user))},dependencies:[Ze.NgClass,Ze.NgIf,to.rH,je.xw,je.Wh,lt.b8,lt.oO,Ht.Nr,Up.Hw,fl.W0,fl.tN,fl.D8,fn.b,ea.X$],styles:[".user-menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{min-width:30px!important}.user-menu[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:30px!important;height:30px!important}.user-icon[_ngcontent-%COMP%]{font-size:30px!important}.triangle[_ngcontent-%COMP%]{border:10px solid transparent;border-bottom-color:#fff;height:0;position:absolute;top:-19px;width:0}.business-triangle[_ngcontent-%COMP%]{right:70px}.patient-triangle[_ngcontent-%COMP%]{right:90px}.patient-checkout-triangle[_ngcontent-%COMP%]{right:90px!important}.top-menu-label[_ngcontent-%COMP%]{letter-spacing:.39px}.top-menu-buttons[_ngcontent-%COMP%]{padding:0}.caret[_ngcontent-%COMP%]{display:block}.user-image[_ngcontent-%COMP%]{width:50px}.user-avatar[_ngcontent-%COMP%]{border-radius:100%}.business-email[_ngcontent-%COMP%]{font-size:14px}.material-icons[_ngcontent-%COMP%]{font-size:20px}.account-button[_ngcontent-%COMP%]{min-width:30px;height:30px}@media (max-width: 1404px){.patient-triangle[_ngcontent-%COMP%]{right:30px}.patient-checkout-triangle[_ngcontent-%COMP%]{right:22px!important}.caret[_ngcontent-%COMP%]{display:none!important}}@media (max-width: 960px){.patient-checkout-triangle[_ngcontent-%COMP%]{right:30px!important}}@media (max-width: 768px){.patient-checkout-triangle[_ngcontent-%COMP%]{right:22px!important}}@media (max-width: 420px){.patient-checkout-triangle[_ngcontent-%COMP%]{right:15px!important}}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Km.prototype,"user",void 0);var OM=i(84423),rO=i(22539),oO=i(57613),Qm=i(28377);function lO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"i",26),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(r.icon)}}function cO(c,o){if(1&c&&t.\u0275\u0275element(0,"img",27),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275propertyInterpolate("alt",r.icon)}}function dO(c,o){1&c&&(t.\u0275\u0275elementStart(0,"span",28),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&c&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"SHARED.MENU.ADMINISTRATE.COMING_SOON")," "))}function uO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",21)(1,"button",22),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(G.redirectToOptionUrlAndCloseMenu(I.url))}),t.\u0275\u0275template(2,lO,2,1,"i",23),t.\u0275\u0275template(3,cO,1,1,"img",24),t.\u0275\u0275elementStart(4,"span"),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(6,dO,3,3,"span",25),t.\u0275\u0275elementEnd()()}if(2&c){const r=o.$implicit,m=o.index,M=t.\u0275\u0275nextContext(3);t.\u0275\u0275property("fxHide",M.isUnavailable(r.url)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",1!==m),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",1===m),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(r.text),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",M.isUnavailable(r.url))}}function pO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",12)(2,"input",13,14),t.\u0275\u0275listener("click",function(M){return M.stopPropagation()})("change",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(I.onProfileImageSelected(M))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"button",15),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275reference(3);return t.\u0275\u0275resetView(M.click())}),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275element(6,"img",16),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"p",17),t.\u0275\u0275text(8),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(9,"div",18),t.\u0275\u0275elementStart(10,"div",19),t.\u0275\u0275template(11,uO,7,5,"div",20),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementContainerEnd()}if(2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(4),t.\u0275\u0275property("matTooltip",t.\u0275\u0275pipeBind1(5,5,"SHARED.MENU.ADMINISTRATE.UPLOAD_IMAGE")),t.\u0275\u0275advance(2),t.\u0275\u0275property("src",r.getBusinessProfileImage(),t.\u0275\u0275sanitizeUrl)("alt",null==r.user?null:r.user.name),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(null==r.user?null:r.user.name),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",r.options)}}const hO=function(){return["common-menu-backdrop","administration-menu-backdrop"]};function fO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",1)(1,"button",2,3)(3,"i",4),t.\u0275\u0275text(4,"apps"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"span",5),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"i",6),t.\u0275\u0275text(9,"keyboard_arrow_down"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(10,"mat-menu",7,8)(12,"div",9),t.\u0275\u0275listener("click",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.stopClickPropagate(M))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"div",10),t.\u0275\u0275listener("click",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.stopClickPropagate(M))}),t.\u0275\u0275template(14,pO,12,7,"ng-container",11),t.\u0275\u0275elementEnd()()()}if(2&c){const r=t.\u0275\u0275reference(11),m=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("matMenuTriggerFor",r),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(7,5,"SHARED.MENU.ADMINISTRATE.ADMINISTRATE")," "),t.\u0275\u0275advance(4),t.\u0275\u0275property("overlapTrigger",!1)("backdropClass",t.\u0275\u0275pureFunction0(7,hO)),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",null==m.user?null:m.user.isBusiness())}}const mO=["library_books","stock","shopping_cart","send","replay","monetization_on","location_on","people","settings"],Ox=`/${St.ZTG.MY_ACCOUNT}/${St.ZTG.CATALOG}`,TM=[St.tLg,Ox,`/${St.ZTG.MY_ACCOUNT}/${St.ZTG.ORDERS}`,`/${St.ZTG.MY_ACCOUNT}/${St.ZTG.SEND_IT}`,St.tLg,`/${St.ZTG.MY_ACCOUNT}/${St.ZTG.REPORTS}`,St.tLg,`/${St.ZTG.MY_ACCOUNT}/${St.ZTG.EMPLOYEES}`,`/${St.ZTG.MY_ACCOUNT}/${St.ZTG.ACCOUNT_SETTINGS}`];class Xm{constructor(o,r,m,M,I,G,Me){this.translateService=o,this.spinner=r,this.businessService=m,this.dialog=M,this.router=I,this.store=G,this.snackbarMessageService=Me,this.options=[],this.menuClosed=new t.EventEmitter,this.menuIsOpen=!1}ngOnInit(){this.getOptions()}closeMenu(){this.trigger.closeMenu(),this.menuClosed.emit(),this.menuIsOpen=!this.menuIsOpen}getOptions(){this.translateService.get("SHARED.MENU.ADMINISTRATE.MENU_BUTTONS").pipe((0,So.q)(1)).subscribe(o=>{Object.keys(o).forEach((r,m)=>{this.options.push({text:o[r].TEXT,url:TM[m].length>1?`/${this.user.profile.typeName}${TM[m]}`:"",icon:mO[m]})})})}isRedirectingToBusinessStocks(o){const r=Ox.length,m=o.length;return m>r&&o.slice(m-r,m)===Ox}redirectToOptionUrlAndCloseMenu(o){this.isUnavailable(o)||(this.isRedirectingToBusinessStocks(o)?this.store.dispatch(oO.A.checkCopaymentPercent({optionUrl:o})):this.router.navigate([o]),this.closeMenu())}getBusinessProfileImage(){return this.user.profile?.files?.profile_image?.url||St.C7F}onProfileImageSelected(o){const r=o.target.files[0];if(!r)return!1;this.adjustImage(r)}adjustImage(o){if(!o)return!1;this.openImageEditorDialog(o,{aspectRatio:1,resizeToWidth:560})}openImageEditorDialog(o,r){this.dialog.open(Kh.GG,{data:{file:o,settings:r},panelClass:"cropper-dialog"}).afterClosed().subscribe(M=>{M&&(this.spinner.show(),this.deleteAttachment("profile_image").subscribe(()=>{this.businessService.addAttachment("profile_image",M.file).subscribe(I=>{this.user.profile.attachments.push(new rO.P(I)),this.user.profile.refreshFiles(),this.spinner.hide()},I=>{406===I.status&&this.snackbarMessageService.displayMessage(St.CsS.ERROR,"SHARED.MENU.ADMINISTRATE.EXTENSION_NOT_ACCEPTED")})},()=>{this.spinner.hide()}))})}deleteAttachment(o){const r=this.user.profile.files[o]||null;return r?this.businessService.deleteAttachment(r).pipe((0,$r.U)(m=>(this.user.profile.attachments=this.user.profile.attachments.filter(M=>M.storageKey!==r.storageKey),this.user.profile.refreshFiles(),m))):(0,Fr.of)([])}stopClickPropagate(o){o.stopPropagation(),o.preventDefault()}isUnavailable(o){return o.length<1}}Xm.\u0275fac=function(o){return new(o||Xm)(t.\u0275\u0275directiveInject(ea.sK),t.\u0275\u0275directiveInject(yu.t2),t.\u0275\u0275directiveInject(St.vio.BusinessServiceToken),t.\u0275\u0275directiveInject(rl.on),t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(xs.yh),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken))},Xm.\u0275cmp=t.\u0275\u0275defineComponent({type:Xm,selectors:[["app-administration"]],viewQuery:function(o,r){if(1&o&&t.\u0275\u0275viewQuery(fl.D8,5),2&o){let m;t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.trigger=m.first)}},decls:1,vars:1,consts:[["fxLayoutAlign","center center","class","header-buttons-container",4,"ngIf"],["fxLayoutAlign","center center",1,"header-buttons-container"],["mat-button","",1,"menu-button","flex-row-button",3,"matMenuTriggerFor"],["adminMenuTrigger","matMenuTrigger"],[1,"administration-icon","material-icons"],["fxLayout","column","fxLayoutAlign","center center","fxHide","","fxShow.gt-sm","",1,"cart-menu-text"],["fxHide","","fxShow.gt-sm","",1,"material-icons","mat-icon-sm","dropdown-icon"],["xPosition","before",1,"administration-menu",3,"overlapTrigger","backdropClass"],["adminMenu","matMenu"],[1,"triangle",3,"click"],[1,"administration-menu-container",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center",1,"user-info"],["type","file","accept","image/*",1,"cdk-visually-hidden",3,"click","change"],["fileInput",""],["mat-icon-button","",3,"matTooltip","click"],["mat-card-avatar","",3,"src","alt"],[1,"business-name","text-truncate"],[1,"divider","full-divider"],["fxLayout","column"],["class","element","fxLayout","start center",3,"fxHide",4,"ngFor","ngForOf"],["fxLayout","start center",1,"element",3,"fxHide"],["mat-flat-button","",1,"w-100",3,"click"],["class","material-icons",4,"ngIf"],["src","assets/images/business/stock.svg",3,"alt",4,"ngIf"],["class","badge",4,"ngIf"],[1,"material-icons"],["src","assets/images/business/stock.svg",3,"alt"],[1,"badge"]],template:function(o,r){1&o&&t.\u0275\u0275template(0,fO,15,8,"div",0),2&o&&t.\u0275\u0275property("ngIf",null==r.user?null:r.user.isBusiness())},dependencies:[Ze.NgForOf,Ze.NgIf,je.xw,je.Wh,lt.b8,Ht.eB,Qm.lb,fl.W0,fl.D8,Lv.Kd,fn.b,ea.X$],styles:[".header-buttons-container[_ngcontent-%COMP%]   .menu-button[_ngcontent-%COMP%]{padding:0}.header-buttons-container[_ngcontent-%COMP%]   .menu-button[_ngcontent-%COMP%]   .administration-icon[_ngcontent-%COMP%]{font-size:30px}.header-buttons-container[_ngcontent-%COMP%]   .menu-button[_ngcontent-%COMP%]   .cart-menu-text[_ngcontent-%COMP%]{line-height:22px;margin-left:8px}.mat-button[_ngcontent-%COMP%]{min-width:30px}.administration-menu[_ngcontent-%COMP%]{min-width:250px;max-width:250px;overflow:hidden}.triangle[_ngcontent-%COMP%]{position:absolute;height:0;width:0;border:10px solid white;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;top:-19px;right:206px}.dropdown-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:20px}.administration-menu-container[_ngcontent-%COMP%]{max-width:250px;min-width:250px;padding:16px}.administration-menu-container[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]{padding-bottom:16px}.administration-menu-container[_ngcontent-%COMP%]   .user-info[_ngcontent-%COMP%]   .business-name[_ngcontent-%COMP%]{margin-left:8px;font-size:14px;font-weight:700}.administration-menu-container[_ngcontent-%COMP%]   .mat-card-avatar[_ngcontent-%COMP%]{height:33px!important;width:33px!important;border:1px solid #bbbbbb}.administration-menu-container[_ngcontent-%COMP%]   .full-divider[_ngcontent-%COMP%]{margin:0 -16px}.administration-menu-container[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%]{font-size:13px;width:100%;height:34px}.administration-menu-container[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px;color:#242424}.administration-menu-container[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%]   .mat-flat-button[_ngcontent-%COMP%]{padding:0!important;display:flex;height:34px!important}.administration-menu-container[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%]   .mat-flat-button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:20px;width:20px;margin-right:8px}.administration-menu-container[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%]   .mat-flat-button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:18px;opacity:.55;width:20px;margin-right:8px}.administration-menu-container[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{background-color:#e72525;color:#fff;font-size:9px;height:17px;border-radius:4px;padding:3px 4px;margin-left:8px}@media (width: 960px){.menu-button[_ngcontent-%COMP%]{margin-right:0!important}}@media (max-width: 960px){.triangle[_ngcontent-%COMP%]{right:22px}.menu-button[_ngcontent-%COMP%]{margin-right:-16px}}@media (min-width: 960px) and (max-width: 1404px){.triangle[_ngcontent-%COMP%]{right:220px}}@media (max-width: 768px){.triangle[_ngcontent-%COMP%]{right:14px}}@media (max-width: 420px){.triangle[_ngcontent-%COMP%]{right:6px}}@media (max-width: 320px){.triangle[_ngcontent-%COMP%]{right:12px}}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Xm.prototype,"user",void 0);let gO=(()=>{class c{constructor(r,m){const M=r||m,I=M.onClick;M.onClick=(...G)=>this.disableLink?!m:I.apply(M,G)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(to.rH,8),t.\u0275\u0275directiveInject(to.rH,8))},c.\u0275dir=t.\u0275\u0275defineDirective({type:c,selectors:[["","routerLink","","disableLink",""]],inputs:{disableLink:"disableLink"}}),c})();const bO=["favoritePreviewMenu"],yO=["adminMenu"],CO=["accountMenu"];function EO(c,o){1&c&&(t.\u0275\u0275elementStart(0,"p",23),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&c&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"PAGES.HEADER.BUSINESS")," "))}function xO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-user-location",24),t.\u0275\u0275listener("openNotifications",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.checkIfUserAcceptedCookies(M.views.DESKTOP))}),t.\u0275\u0275elementEnd()}}function MO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-global-searchbar",25),t.\u0275\u0275listener("focusEvent",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.closeAllCategoryMenus.emit())}),t.\u0275\u0275elementEnd()}}function SO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",26)(1,"button",27),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.mobileSearch())}),t.\u0275\u0275element(2,"img",4),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("src",r.searchPath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(3,2,"PAGES.HEADER.SEARCH_ALT"))}}function wO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-administration",28,29),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.closeMenuIfOpened(M.menuTypes.ADMINISTRATION_MENU))}),t.\u0275\u0275elementEnd()}}function OO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"span",33),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(r.unreadNotificationsCount)}}function TO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",30)(1,"a",31),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return M.changeDisplayedSidenav(M.sidenavTypes.NOTIFICATION),t.\u0275\u0275resetView(M.closeAllCategoryMenus.emit())}),t.\u0275\u0275element(2,"img",4),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275template(4,OO,2,1,"span",32),t.\u0275\u0275elementEnd()()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("fxHide",r.routingVariables.isNotificationPage),t.\u0275\u0275advance(2),t.\u0275\u0275property("src",r.notificationPath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(3,4,"PAGES.HEADER.SEARCH_ALT")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.unreadNotificationsCount)}}function DO(c,o){1&c&&t.\u0275\u0275elementContainer(0)}function IO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",34),t.\u0275\u0275template(1,DO,1,0,"ng-container",35),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(),m=t.\u0275\u0275reference(26),M=t.\u0275\u0275reference(28);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",r.window.innerWidth<r.breakpoints.DESKTOP_S?m:M)}}const PO=function(c){return{"small-count":c}};function AO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"span",37),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(4,PO,r.window.innerWidth<=r.breakpoints.TABLET)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,r.cart$).count.quantity," ")}}function LO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",31),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.changeDisplayedSidenav(M.sidenavTypes.CART))}),t.\u0275\u0275element(1,"img",4),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275template(3,AO,3,6,"span",36),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275elementEnd()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("src",r.cartIconPath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(2,3,"PAGES.HEADER.CART_ALT")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(4,5,r.cart$).count.quantity>0)}}function RO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"span",40),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,r.cart$).count.quantity," ")}}function kO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",31),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return M.changeDisplayedSidenav(M.sidenavTypes.CART),t.\u0275\u0275resetView(M.closeAllCategoryMenus.emit())}),t.\u0275\u0275elementStart(1,"div",38),t.\u0275\u0275element(2,"img",4),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,RO,3,3,"span",39),t.\u0275\u0275pipe(5,"async"),t.\u0275\u0275elementEnd()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("src",r.cartIconPath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(3,3,"PAGES.HEADER.CART_ALT")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(5,5,r.cart$).count.quantity>0)}}const NO=function(c){return{"p-0":c}},FO=function(c){return{"logo-margin":c}};class Zm{constructor(o,r,m,M,I,G,Me,_t){this.dialog=o,this.userService=r,this.notificationsService=m,this.userLocationService=M,this.cartService=I,this.snackbarService=G,this.sidenavFacade=Me,this.foregroundDetectionService=_t,this.UserType=St.FWD,this.window=window,this.isWishlistMenuOpened=!1,this.sidenavTypes=St.YPs,this.menuTypes=St.Ifu,this.breakpoints=St.u3l,this.views=St.kOt,this.homePageLink=St.s67,this.isUserLogoutInProcess=!1,this.drCarmenLogoUrl=St.Uso,this.drCarmenLogoUrlDesktop=St.DZB,this.shouldDisplayTopSearchOnHomepage=!1,this.unreadNotificationsCount=0,this.cartIconPath=St.xiR,this.hamburgerIconPath=St.RgI,this.searchPath=St.kW9,this.notificationPath=St.gqM,this.destroy$=new Ks.x,this.closedMenu=new t.EventEmitter,this.openSideNav=new t.EventEmitter,this.preventScroll=new t.EventEmitter,this.resetScroll=new t.EventEmitter,this.openNotifications=new t.EventEmitter,this.closeAllCategoryMenus=new t.EventEmitter,this.scrollEvent=Gt=>{const kn=document.getElementsByClassName("mat-drawer-shown");document.getElementsByClassName("favorites-preview-backdrop")?.length||(this.shouldDisplayTopSearchOnHomepage=!kn?.length&&(Gt.target?.scrollTop??0)>280)}}ngOnInit(){window.addEventListener("scroll",this.scrollEvent,!0),this.manageLogout(),this.cart$=this.cartService.get()}ngAfterViewInit(){this.setupNotificationListeners()}setupNotificationListeners(){this.userService.user$.pipe((0,ts.R)(this.destroy$)).subscribe(o=>{o&&o.getType()===St.FWD.CLIENT&&(this.subscribeToFirebaseNotifications(),this.subscribeToForegroundChanges())})}manageLogout(){this.userService.getLogoutStatus().pipe((0,ts.R)(this.destroy$)).subscribe(o=>{o&&(this.isUserLogoutInProcess=o.isUserLogoutInProcess,o.isUserLogoutInProcess||this.userLocationService.setCartAddressOnUserLogout().pipe((0,So.q)(1)).subscribe())})}ngOnChanges(o){o.shouldCloseMenus&&o.shouldCloseMenus.currentValue&&this.closeMenuIfOpened()}changeDisplayedSidenav(o){this.closeMenuIfOpened(),this.sidenavFacade.changeDisplayedSidenav(o)}checkIfUserAcceptedCookies(o){this.openNotifications.emit(o)}onOpenSideNav(){this.openSideNav.emit(),this.closeMenuIfOpened()}closeMenuIfOpened(o=St.YPs.FILTER){this.closeWishlistMenuIfOpened(o),this.closeAdministrationMenuIfOpened(o),this.closeAccountMenuIfOpened(o),this.closedMenu.emit()}closeWishlistMenuIfOpened(o){this.isWishlistMenuOpened&&o&&o!==St.YPs.WISHLIST&&this.favoritePreviewMenu&&this.favoritePreviewMenu.closeMenu()}closeAdministrationMenuIfOpened(o){this.adminMenu&&o&&o!==St.Ifu.ADMINISTRATION_MENU&&this.adminMenu&&this.adminMenu.closeMenu()}closeAccountMenuIfOpened(o){this.accountMenu&&o&&o!==St.Ifu.ACCOUNT_MENU&&this.accountMenu&&this.user&&this.accountMenu.closeMenu()}toggleWishlistMenu(o){this.isWishlistMenuOpened=o,this.isWishlistMenuOpened?this.preventScroll.emit():this.resetScroll.emit()}mobileSearch(){this.dialog.open(Ym,{minWidth:(0,St.I3d)(768),width:(0,St.I3d)(768),height:(0,St.ny$)(window.innerHeight),maxHeight:(0,St.ny$)(window.innerHeight),minHeight:(0,St.ny$)(window.innerHeight),disableClose:!0,panelClass:["base-panel-class","no-padding-dialog"],position:St.VLR.getDialogPosition()})}shouldDisplayMenuButtonOnPage(){return this.routingVariables.onCartPage||this.routingVariables.onPartnerLandingPage||this.routingVariables.onCouriersPage}subscribeToFirebaseNotifications(){this.notificationsService.notifications$.pipe((0,ts.R)(this.destroy$),(0,Sr.w)(()=>this.notificationsService.hasUnseenNotifications())).subscribe({next:o=>this.unreadNotificationsCount=o.unreadNotificationsCount,error:()=>this.unreadNotificationsCount=0})}subscribeToForegroundChanges(){this.foregroundDetectionService.hasReturnedToForeground().pipe((0,ts.R)(this.destroy$),(0,ya.x)(),(0,Sr.w)(o=>o&&this.user&&this.user.isClient()?this.notificationsService.hasUnseenNotifications():Ep.E)).subscribe({error:()=>this.snackbarService.displayMessage(St.CsS.ERROR,"SHARED.BUSINESS.ORDER.AN_ERROR_OCCURED")})}shouldDisplayUserLocation(){return(!this.user||this.user.getType()===St.FWD.CLIENT)&&window.innerWidth>=this.breakpoints.DESKTOP_S&&!this.routingVariables.onCartPage}ngOnDestroy(){window.removeEventListener("scroll",this.scrollEvent,!0),this.destroy$.next(),this.destroy$.complete()}getLogoImage(){return window.innerWidth<=St.u3l.MOBILE_M?St.PKu:window.innerWidth<=St.u3l.TABLET?St.Uso:St.DZB}}Zm.\u0275fac=function(o){return new(o||Zm)(t.\u0275\u0275directiveInject(rl.on),t.\u0275\u0275directiveInject(Al.O),t.\u0275\u0275directiveInject(gC),t.\u0275\u0275directiveInject(St.vio.UserLocationServiceToken),t.\u0275\u0275directiveInject(St.vio.CartServiceToken),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken),t.\u0275\u0275directiveInject(vM.r),t.\u0275\u0275directiveInject(Mu))},Zm.\u0275cmp=t.\u0275\u0275defineComponent({type:Zm,selectors:[["app-header"]],viewQuery:function(o,r){if(1&o&&(t.\u0275\u0275viewQuery(bO,5),t.\u0275\u0275viewQuery(yO,5),t.\u0275\u0275viewQuery(CO,5)),2&o){let m;t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.favoritePreviewMenu=m.first),t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.adminMenu=m.first),t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.accountMenu=m.first)}},inputs:{routingVariables:"routingVariables"},outputs:{closedMenu:"closedMenu",openSideNav:"openSideNav",preventScroll:"preventScroll",resetScroll:"resetScroll",openNotifications:"openNotifications",closeAllCategoryMenus:"closeAllCategoryMenus"},features:[t.\u0275\u0275NgOnChangesFeature],decls:29,vars:32,consts:[["color","primary",1,"header-container",3,"fxHide"],["fxLayoutAlign","space-between center",1,"logo-toolbar",3,"ngClass"],["fxHide.gt-sm","","fxShow","",1,"header-icon-container","mr-16"],["mat-button","","fxLayoutAlign","center center",1,"sidenav-toggle",3,"click"],[1,"icons",3,"src","alt"],["fxLayout","row","fxLayoutAlign","start start","fxLayoutGap","5px",1,"logo-container",3,"ngClass","click"],[1,"logo",3,"disableLink","routerLink"],[3,"alt","src","title"],["class","business-logo",4,"ngIf"],["fxLayout","row","fxFlex","","fxLayoutGap","16px","fxLayoutAlign","start center","fxHide","","fxShow.gt-sm","",1,"search-container",3,"click"],[3,"openNotifications",4,"ngIf"],["class","global-searchbar",3,"focusEvent",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center","fxLayoutAlign.lt-md","end center","ngClass.lt-sm","header-buttons-container",1,"ml-16",3,"fxLayoutGap"],["fxLayoutAlign","center center","class","mobile-search-button-container",4,"ngIf"],[3,"click",4,"ngIf"],["fxShow","",3,"fxHide","click"],["accountMenu",""],["fxLayoutAlign","center center","class","header-buttons-container",3,"fxHide",4,"ngIf"],[3,"fxHide","currentSidenav","click","menuOpened","menuClosed"],["favoritePreviewMenu",""],["fxLayoutAlign","center center","class","header-buttons-container",4,"ngIf"],["mobileButton",""],["desktopButton",""],[1,"business-logo"],[3,"openNotifications"],[1,"global-searchbar",3,"focusEvent"],["fxLayoutAlign","center center",1,"mobile-search-button-container"],["fxLayoutAlign","center center","mat-button","","fxHide.gt-sm","","fxShow","",1,"flex-row-button","top-menu-buttons","mobile-search-button",3,"click"],[3,"click"],["adminMenu",""],["fxLayoutAlign","center center",1,"header-buttons-container",3,"fxHide"],["mat-button","",1,"flex-row-button","top-menu-buttons",3,"click"],["class","new-notifications-mark",4,"ngIf"],[1,"new-notifications-mark"],["fxLayoutAlign","center center",1,"header-buttons-container"],[4,"ngTemplateOutlet"],["class","cart-items-count",3,"ngClass",4,"ngIf"],[1,"cart-items-count",3,"ngClass"],["fxLayoutAlign","center center",1,"header-icon-container"],["class","cart-items-count",4,"ngIf"],[1,"cart-items-count"]],template:function(o,r){1&o&&(t.\u0275\u0275elementStart(0,"mat-toolbar",0)(1,"mat-toolbar-row",1)(2,"span",2)(3,"button",3),t.\u0275\u0275listener("click",function(){return r.onOpenSideNav()}),t.\u0275\u0275element(4,"img",4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"div",5),t.\u0275\u0275listener("click",function(){return r.closeMenuIfOpened()}),t.\u0275\u0275elementStart(7,"a",6),t.\u0275\u0275element(8,"img",7),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(11,EO,3,3,"p",8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"div",9),t.\u0275\u0275listener("click",function(){return r.closeMenuIfOpened()}),t.\u0275\u0275template(13,xO,1,0,"app-user-location",10),t.\u0275\u0275template(14,MO,1,0,"app-global-searchbar",11),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(15,"div",12),t.\u0275\u0275template(16,SO,4,4,"div",13),t.\u0275\u0275template(17,wO,2,0,"app-administration",14),t.\u0275\u0275elementStart(18,"app-account-menu",15,16),t.\u0275\u0275listener("click",function(){return r.closeMenuIfOpened(r.menuTypes.ACCOUNT_MENU)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(20,TO,5,6,"div",17),t.\u0275\u0275elementStart(21,"app-favorites-preview-menu",18,19),t.\u0275\u0275listener("currentSidenav",function(){return r.changeDisplayedSidenav(r.sidenavTypes.WISHLIST)})("click",function(){return r.closeMenuIfOpened(r.sidenavTypes.WISHLIST)})("menuOpened",function(){return r.toggleWishlistMenu(!0)})("menuClosed",function(){return r.toggleWishlistMenu(!1)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(23,IO,2,1,"div",20),t.\u0275\u0275pipe(24,"async"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(25,LO,5,7,"ng-template",null,21,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(27,kO,6,7,"ng-template",null,22,t.\u0275\u0275templateRefExtractor)),2&o&&(t.\u0275\u0275property("fxHide",r.routingVariables.onCouriersPage),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(28,NO,r.routingVariables.onCartPage&&r.window.innerWidth>r.breakpoints.DESKTOP_L)),t.\u0275\u0275advance(3),t.\u0275\u0275property("src",r.hamburgerIconPath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(5,20,"PAGES.HEADER.MENU_ALT")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(30,FO,!r.routingVariables.onCartPage)),t.\u0275\u0275advance(1),t.\u0275\u0275property("disableLink",r.isUserLogoutInProcess)("routerLink",r.homePageLink),t.\u0275\u0275advance(1),t.\u0275\u0275property("alt",t.\u0275\u0275pipeBind1(9,22,"APP.NAME"))("src",r.getLogoImage(),t.\u0275\u0275sanitizeUrl)("title",t.\u0275\u0275pipeBind1(10,24,"APP.NAME")),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",(r.routingVariables.onPartnerLandingPage||r.routingVariables.onCouriersPage)&&r.window.innerWidth>r.breakpoints.DESKTOP_S),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.shouldDisplayUserLocation()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(r.routingVariables.onHomePage&&!r.shouldDisplayTopSearchOnHomepage||r.routingVariables.onCartPage||r.routingVariables.onPartnerLandingPage||r.routingVariables.onCouriersPage||r.routingVariables.authPage||r.routingVariables.signupPage)),t.\u0275\u0275advance(1),t.\u0275\u0275property("fxLayoutGap",r.window.innerWidth<=r.breakpoints.DESKTOP_S?"9px":"16px"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.routingVariables.onCartPage),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==r.user?null:r.user.isBusiness()),t.\u0275\u0275advance(1),t.\u0275\u0275property("fxHide",!r.routingVariables.onCartPage&&r.window.innerWidth<r.breakpoints.DESKTOP_S),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",(null==r.user?null:r.user.isClient())&&!r.shouldDisplayMenuButtonOnPage()),t.\u0275\u0275advance(1),t.\u0275\u0275property("fxHide",r.shouldDisplayMenuButtonOnPage()),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!(null!=r.user&&r.user.isBusiness())&&t.\u0275\u0275pipeBind1(24,26,r.cart$)&&!r.shouldDisplayMenuButtonOnPage()))},dependencies:[Ze.NgClass,Ze.NgIf,Ze.NgTemplateOutlet,to.rH,je.xw,je.SQ,je.Wh,je.yH,lt.b8,lt.oO,Ht.eB,Ht.Nr,Gm.Ye,Gm.rD,fn.b,$m,ow.r,Km,OM.W5,Xm,gO,Ze.AsyncPipe,ea.X$],styles:[".header-icon[_ngcontent-%COMP%]{font-size:30px}.header-icon-container[_ngcontent-%COMP%]{width:30px;height:30px}@media (max-width: 960px){.header-icon-container[_ngcontent-%COMP%]{width:26px;height:26px;min-width:26px!important}}@media (max-width: 360px){.header-icon-container[_ngcontent-%COMP%]{width:24px;height:24px;min-width:24px!important}}.mat-button[_ngcontent-%COMP%]{padding:0;min-width:30px}.header-container[_ngcontent-%COMP%]{padding:0 25px}.header-buttons-container[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]{padding:0}.cart-items-count[_ngcontent-%COMP%]{position:absolute;top:-5px;left:16px;background:#f44336;height:16px;width:17px;line-height:18px;border-radius:5px;font-size:9px}.cart-items-count.small-count[_ngcontent-%COMP%]{top:-2px!important}.cart-menu-text[_ngcontent-%COMP%]{letter-spacing:.39px;line-height:22px;display:block}.mat-icon-sm[_ngcontent-%COMP%]{display:block}.search-container[_ngcontent-%COMP%]{margin-left:16px!important;height:40px}.logo-toolbar[_ngcontent-%COMP%]{padding:0;height:67px!important;max-width:1400px;margin:0 auto}.checkout-logo-layout[_ngcontent-%COMP%]{margin-left:calc(50vw - 120px)}@media (max-width: 768px){.checkout-logo-layout[_ngcontent-%COMP%]{margin-left:calc(50vw - 90px)}}@media (max-width: 430px){.checkout-logo-layout[_ngcontent-%COMP%]{margin-left:calc(50vw - 65px)}}.global-searchbar[_ngcontent-%COMP%]{width:inherit}.business-logo[_ngcontent-%COMP%]{font-size:16px}.top-toolbar[_ngcontent-%COMP%]{padding:0 16px!important}.checkout-progress-container[_ngcontent-%COMP%]{width:100%;margin-bottom:5px;min-height:20px}.top-menu-dropdown-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:20px}.mat-list-item[_ngcontent-%COMP%]   .mat-list-avatar[_ngcontent-%COMP%]{border-radius:0}.mat-list-item[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{align-self:start;padding:4px}.custom-logo[_ngcontent-%COMP%]{max-height:40px;margin-right:calc(100vw - 250px)}.sidenav-toggle[_ngcontent-%COMP%]{min-width:30px!important;height:30px;padding:0;margin:0}.sidenav-toggle[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{min-width:30px!important;font-size:30px!important;font-weight:500!important}@media (max-width: 960px){.sidenav-toggle[_ngcontent-%COMP%]{width:26px;height:26px;min-width:26px!important}}@media (max-width: 360px){.sidenav-toggle[_ngcontent-%COMP%]{width:24px;height:24px;min-width:24px!important}}.hamburgerMenuSidenav[_ngcontent-%COMP%]{position:absolute;inset:0}@media (max-width: 1404px){.header-container[_ngcontent-%COMP%]{padding:0}.cart-menu-text[_ngcontent-%COMP%]{display:none!important}.logo-toolbar[_ngcontent-%COMP%]{padding:0 25px}.mat-icon-sm[_ngcontent-%COMP%]{display:none!important}.home[_ngcontent-%COMP%]{padding:0 25px 24px}.top-toolbar[_ngcontent-%COMP%]{padding:0 9px 0 25px!important}}.logo[_ngcontent-%COMP%]{height:38px}@media (min-width: 960px){.mobile-search-button-container[_ngcontent-%COMP%]{display:none!important}}@media (width: 960px){.logo-container.logo-margin[_ngcontent-%COMP%]{margin-left:0!important}}@media (max-width: 960px){.logo-container.logo-margin[_ngcontent-%COMP%]{margin-left:11.5%}.mobile-search-button[_ngcontent-%COMP%]{display:inline-block!important}.top-toolbar[_ngcontent-%COMP%]{padding:0 9px 0 23px!important}.logo-toolbar[_ngcontent-%COMP%]{padding:0 16px}.mat-button[_ngcontent-%COMP%]{font-size:13px!important}}@media (max-width: 960px){.top-menu-buttons[_ngcontent-%COMP%], .mobile-search-button[_ngcontent-%COMP%], .icons[_ngcontent-%COMP%]{min-width:26px!important;width:26px!important;height:26px!important;padding:0!important}.mobile-search-button[_ngcontent-%COMP%]{display:inline-block!important}.top-toolbar[_ngcontent-%COMP%]{padding:0 3px 0 18px!important}.header-buttons-container[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]{padding:0}.logo[_ngcontent-%COMP%]{height:34px}}@media (max-width: 430px){.header-buttons-container[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]{padding:0!important}.logo-container.logo-margin[_ngcontent-%COMP%]{margin-left:0}.mat-toolbar-multiple-rows[_ngcontent-%COMP%]{min-height:49px}.mat-toolbar-row[_ngcontent-%COMP%]{height:49px}}@media (max-width: 420px){.logo-toolbar[_ngcontent-%COMP%]{padding:0 8px}}@media (max-width: 360px){.top-menu-buttons[_ngcontent-%COMP%], .mobile-search-button[_ngcontent-%COMP%], .icons[_ngcontent-%COMP%]{min-width:24px!important;width:24px!important;height:24px!important}.logo[_ngcontent-%COMP%]{height:auto}}.new-notifications-mark[_ngcontent-%COMP%]{position:absolute;top:-5px;left:17px;background:#f44336;height:17px;width:16px;line-height:18px;border-radius:5px;font-size:9px}@media (max-width: 768px){.new-notifications-mark[_ngcontent-%COMP%]{left:16px;top:-3px}}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Zm.prototype,"user",void 0);var IM=i(39841),BO=i(58476),UO=i(1256),jO=i(614);function HO(c,o){if(1&c&&(t.\u0275\u0275element(0,"img",15),t.\u0275\u0275pipe(1,"translate")),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("src",r.iconPath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(1,2,"NOTIFICATION_ICON_ALT"))}}function VO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",16)(1,"mat-icon",17),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngClass",r.isOrderCanceled()?"status-details__icon--red":"status-details__icon--green"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(r.getIconName)}}const WO=function(c,o){return{date:c,time:o}};function zO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"span",20),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"capitalize"),t.\u0275\u0275pipe(4,"date"),t.\u0275\u0275pipe(5,"date"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.DELIVERY_TIME_ANOTHER_DAY",t.\u0275\u0275pureFunction2(14,WO,t.\u0275\u0275pipeBind1(3,4,t.\u0275\u0275pipeBind4(4,6,r.deliveryEstimation,r.customDateFormats.DayAndMonth2,"","ro")),t.\u0275\u0275pipeBind2(5,11,r.deliveryEstimation,r.customDateFormats.HourAndMinutes)))," ")}}function YO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",18),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275template(3,zO,6,17,"span",19),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(2),m=t.\u0275\u0275reference(17);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,3,"SHARED.MENU.NOTIFICATIONS.ESTIMATED_DELIVERY")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!r.isDateToday(r.deliveryEstimation))("ngIfElse",m)}}function GO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",18),t.\u0275\u0275template(1,YO,4,5,"div",8),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.isCardPayment&&!r.isOutdated())}}const $O=function(c){return{orderId:c}};function KO(c,o){if(1&c&&(t.\u0275\u0275element(0,"div",21),t.\u0275\u0275pipe(1,"translate")),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(1,1,"SHARED.MENU.NOTIFICATIONS.FOR_ORDER",t.\u0275\u0275pureFunction1(4,$O,r.orderId)),t.\u0275\u0275sanitizeHtml)}}function QO(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",22),t.\u0275\u0275element(1,"div",23),t.\u0275\u0275elementEnd())}function XO(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-icon",24),t.\u0275\u0275listener("click",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext();return M.stopPropagation(),t.\u0275\u0275resetView(I.removeNotification.emit(I.orderExternalId))}),t.\u0275\u0275text(1," close "),t.\u0275\u0275elementEnd()}}function ZO(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",25),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(r.waitingSince)}}function JO(c,o){if(1&c&&t.\u0275\u0275element(0,"mat-progress-bar",26),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("value",r.progressValue)}}const qO=function(c){return{time:c}};function eT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"span",20),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"date"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"PAGES.PROFILE.CART.THANK_YOU.ORDER_SUMMARY.DELIVERY_TIME_TO_DAY",t.\u0275\u0275pureFunction1(7,qO,t.\u0275\u0275pipeBind2(3,4,r.deliveryEstimation,r.customDateFormats.HourAndMinutes)))," ")}}const tT=function(c,o){return{orderId:c,businessName:o}};let nT=(()=>{class c{constructor(){this.firebaseNotificationMode=!1,this.isCardPayment=!1,this.removeNotification=new t.EventEmitter,this.notificationClicked=new t.EventEmitter,this.markNotificationAsRead=new t.EventEmitter,this.customDateFormats=St.SWR,this.paymentTypes=St.uG_,this.progressValue=0}ngOnInit(){this.firebaseNotificationMode&&this.setNotificationDisplayInterval()}isDateToday(r){return St.VLR.isDateToday(Np()(r).toDate())}get getIconName(){return this.isOrderCanceled()?"close":"done"}isOrderCanceled(){return this.orderStatus===St.iFo.CANCELLED}isOrderCompletedOrCanceled(){return this.isOrderCanceled()||this.orderStatus===St.iFo.COMPLETE}handleNotificationClick(){this.notificationClicked.emit(this.orderExternalId)}setNotificationDisplayInterval(){let G=0;const Me=setInterval(()=>{this.progressValue+=.45918367346938777,G++,G>217.77777777777777&&(this.removeNotification.emit(this.orderExternalId),clearInterval(Me))},45)}isOutdated(){return Np()().isAfter(this.deliveryEstimation)}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["frontend-notification"]],inputs:{orderId:"orderId",orderExternalId:"orderExternalId",orderStatus:"orderStatus",iconPath:"iconPath",notificationDescription:"notificationDescription",deliveryEstimation:"deliveryEstimation",waitingSince:"waitingSince",isRead:"isRead",displayAdditionalText:"displayAdditionalText",paymentType:"paymentType",businessName:"businessName",businessExternalId:"businessExternalId",firebaseNotificationMode:"firebaseNotificationMode",isCardPayment:"isCardPayment"},outputs:{removeNotification:"removeNotification",notificationClicked:"notificationClicked",markNotificationAsRead:"markNotificationAsRead"},decls:18,vars:15,consts:[[1,"notification-wrapper",3,"click"],[1,"notification-wrapper__sidenav","p-16"],[1,"details","mb-16"],[1,"status-details","w-100"],["class","status-details__image mr-16",3,"src","alt",4,"ngIf"],["class","status-details__icon mr-16",3,"ngClass",4,"ngIf"],[1,"status-details__wrapper"],[1,"status-details__text"],["class","delivery-time mt-8",4,"ngIf"],["class","delivery-time mt-8",3,"innerHTML",4,"ngIf"],["class","new-notification",4,"ngIf"],["class","material-icons close-button",3,"click",4,"ngIf"],["class","timestamp",4,"ngIf"],["mode","determinate",3,"value",4,"ngIf"],["sameDayDelivery",""],[1,"status-details__image","mr-16",3,"src","alt"],[1,"status-details__icon","mr-16",3,"ngClass"],[1,"material-icons"],[1,"delivery-time","mt-8"],["class","delivery-time__value",4,"ngIf","ngIfElse"],[1,"delivery-time__value"],[1,"delivery-time","mt-8",3,"innerHTML"],[1,"new-notification"],[1,"new-notification__circle"],[1,"material-icons","close-button",3,"click"],[1,"timestamp"],["mode","determinate",3,"value"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275listener("click",function(){return m.handleNotificationClick()}),t.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"div",3),t.\u0275\u0275template(4,HO,2,4,"img",4),t.\u0275\u0275template(5,VO,3,2,"div",5),t.\u0275\u0275elementStart(6,"div",6)(7,"div",7),t.\u0275\u0275text(8),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(10,GO,2,1,"div",8),t.\u0275\u0275template(11,KO,2,6,"div",9),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(12,QO,2,0,"div",10),t.\u0275\u0275template(13,XO,2,0,"mat-icon",11),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(14,ZO,2,1,"div",12),t.\u0275\u0275template(15,JO,1,1,"mat-progress-bar",13),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(16,eT,4,9,"ng-template",null,14,t.\u0275\u0275templateRefExtractor)),2&r&&(t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",m.iconPath),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!m.iconPath),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(9,9,m.notificationDescription,t.\u0275\u0275pureFunction2(12,tT,m.orderId,m.businessName))," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",m.displayAdditionalText),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.isCardPayment),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!m.firebaseNotificationMode&&!m.isRead),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.firebaseNotificationMode),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!m.firebaseNotificationMode),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.firebaseNotificationMode))},dependencies:[Ze.NgClass,Ze.NgIf,lt.oO,Up.Hw,UO.eI,fn.b,Ze.DatePipe,jO.e,ea.X$],styles:[".notification-wrapper__sidenav[_ngcontent-%COMP%]{background:#ffffff;margin:0 8px 8px;border-radius:16px;box-shadow:0 1px 2px #00000042}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .status-details[_ngcontent-%COMP%]{display:flex;align-items:center}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .status-details__image[_ngcontent-%COMP%]{width:64px;height:64px}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .status-details__text[_ngcontent-%COMP%]{font-size:16px;font-weight:700;color:#242424;line-height:17px}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .status-details__wrapper[_ngcontent-%COMP%]{width:70%}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .status-details__icon[_ngcontent-%COMP%]{width:58px;height:58px;border:solid 3px;border-radius:50%;display:flex;justify-content:center;align-items:center}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .status-details__icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:34px;width:34px;height:34px}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .status-details__icon--red[_ngcontent-%COMP%]{color:#ff001a}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .status-details__icon--green[_ngcontent-%COMP%]{color:#00853b}.notification-wrapper[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   .new-notification__circle[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:5px;background:#00853b}.notification-wrapper[_ngcontent-%COMP%]   .delivery-time[_ngcontent-%COMP%]{font-size:14px;color:#242424;line-height:14px}.notification-wrapper[_ngcontent-%COMP%]   .delivery-time__value[_ngcontent-%COMP%]{color:#242424;font-weight:700;margin-left:3px}.notification-wrapper[_ngcontent-%COMP%]   .timestamp[_ngcontent-%COMP%]{text-align:end;font-size:10px;line-height:22px;color:#7b7b7b}.notification-wrapper[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]{color:#7b7b7b;z-index:2}"]}),c})();function oT(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",5)(1,"div",6)(2,"div",7)(3,"mat-icon",8),t.\u0275\u0275text(4,"notifications"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"span"),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"uppercase"),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(9,"div",9)(10,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.close())}),t.\u0275\u0275elementStart(11,"i",11),t.\u0275\u0275text(12,"close"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(13,"div",12),t.\u0275\u0275element(14,"mat-divider"),t.\u0275\u0275elementEnd()()}2&c&&(t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(7,1,t.\u0275\u0275pipeBind1(8,3,"SHARED.MENU.CART.NOTIFICATIONS"))))}const aT=function(c,o){return{"pt-8":c,"pb-8":o}};function sT(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",14)(2,"frontend-notification",15),t.\u0275\u0275listener("removeNotification",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(I.removeNotification(M))})("notificationClicked",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(I.handleNotificationClick(M))})("markNotificationAsRead",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(I.markNotificationAsRead(M))}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()}if(2&c){const r=o.$implicit,m=o.first,M=o.last,I=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction2(15,aT,m&&!I.firebaseNotificationMode,M)),t.\u0275\u0275advance(1),t.\u0275\u0275property("iconPath",I.getIconPath(r))("orderStatus",r.orderStatus)("notificationDescription",I.setNotificationDescription(r))("deliveryEstimation",r.estimatedDeliveryTime)("waitingSince",I.getWaitingSince(r.createDate))("orderId",r.orderId)("orderExternalId",r.notificationExternalId)("businessExternalId",r.businessExternalId)("isRead",r.isRead)("businessName",null==r?null:r.businessName)("paymentType",r.paymentType)("displayAdditionalText",I.displayAdditionalText)("firebaseNotificationMode",I.firebaseNotificationMode)("isCardPayment",I.isCardPayment)}}function lT(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,sT,3,18,"ng-container",13),t.\u0275\u0275elementContainerEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r.notifications)}}function cT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",16),t.\u0275\u0275element(1,"img",17),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementStart(3,"div",18),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("src",r.noNotificationImagePath,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(2,3,"SHARED.MENU.NOTIFICATIONS.NOTIFICATION_ICON_ALT")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(5,5,"SHARED.MENU.NOTIFICATIONS.NO_NOTIFICATIONS"))}}const dT=function(c,o){return{"gray-background":c,"h-100":o}};class Jm{constructor(o,r,m,M,I,G,Me,_t){this.sidenavService=o,this.notificationsService=r,this.dialog=m,this.userService=M,this.router=I,this.foregroundDetectionService=G,this.orderService=Me,this.snackBarMessageService=_t,this.noNotificationImagePath=St.pnZ,this.notifications=[],this.customDateFormats=St.SWR,this.isCardPayment=!1,this.destroy$=new Ks.x}ngOnInit(){this.setupNotificationListeners(),this.setNotifications(),this.listenForSidenavOpenState()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}close(){this.sidenavService.close(),document.activeElement.blur()}setNotifications(){this.userService.user$.pipe((0,ts.R)(this.destroy$)).subscribe(o=>{if(o){if(this.firebaseNotificationMode)return this.notificationDetails.isRead=!1,void this.notifications.push(this.notificationDetails);o.getType()===St.FWD.CLIENT&&this.notificationsService.getNotifications().pipe((0,So.q)(1)).subscribe(r=>this.notifications=r)}})}subscribeToFirebaseNotifications(){this.firebaseNotificationMode||(0,IM.a)(this.notificationsService.notifications$,this.foregroundDetectionService.hasReturnedToForeground()).pipe((0,ts.R)(this.destroy$),(0,Sr.w)(()=>this.user?.getType()!==St.FWD.CLIENT?Ep.E:this.notificationsService.getNotifications())).subscribe({next:o=>this.notifications=o,error:()=>this.notifications=[]})}setupNotificationListeners(){this.userService.user$.pipe((0,ts.R)(this.destroy$)).subscribe(o=>{o?.getType()===St.FWD.CLIENT&&this.subscribeToFirebaseNotifications()})}getIconPath(o){switch(this.displayAdditionalText=!0,o.orderStatus){case St.iFo.NEW:return o.paymentStatus===St.bGq.FAILED&&o.paymentType===St.uG_.CARD?(this.isCardPayment=!0,St.Bdo):o.paymentStatus===St.bGq.CAPTURED&&o.paymentType===St.uG_.CARD?(this.isCardPayment=!0,St.aWC):null;case St.iFo.COMPLETE:return this.displayAdditionalText=!1,St.Z8b;case St.iFo.IN_DELIVERY:return St.Es5;case St.iFo.CANCELLED:return this.displayAdditionalText=!1,null;case St.iFo.PROCESSING:return St.r0O;case St.iFo.PRESCRIPTION_SHIPPED:return St.rMP;case St.iFo.PAYMENT_PENDING:return this.displayAdditionalText=!1,this.isCardPayment=!0,St.Bdo}}setNotificationDescription(o){return o.paymentStatus!==St.bGq.PENDING||o.estimatedDeliveryTime?o.paymentStatus!==St.bGq.CAPTURED||o.estimatedDeliveryTime?"SHARED.MENU.NOTIFICATIONS.TEXT."+o.orderStatus:"SHARED.MENU.NOTIFICATIONS.TEXT.CARD_PAYMENT":"SHARED.MENU.NOTIFICATIONS.TEXT.PAYMENT_PENDING"}getWaitingSince(o){const r=Np()();return Np().updateLocale("en",{relativeTime:St.VLR.roRelativeTimeSpecs}),Np()(o).from(r)}getNotification(o){return this.notifications.find(r=>r.notificationExternalId===o)}handleNewOrderNotificationClick(){this.router.navigate([`/${St.v2Z.PATIENT_ACCOUNT}/${St.v2Z.ORDERS}`])}handleNotificationClick(o){const r=this.getNotification(o);if(this.removeNotification(r.notificationExternalId),this.close(),r.isRead||this.markNotificationAsRead(o),r&&!r?.businessExternalId)return this.handleNewOrderNotificationClick();this.getOrderDetailsAndOpenDialog(r)}markNotificationAsRead(o){this.notificationsService.refreshNotificationsAfterMarkingAsRead(o).pipe((0,So.q)(1),(0,Sr.w)(()=>this.notificationsService.getNotifications())).subscribe({next:r=>this.notifications=r})}removeNotification(o){this.notificationsService.removeNotification(o)}getOrderDetailsAndOpenDialog(o){this.orderService.getOrderDetails(o?.orderId,o?.businessExternalId).pipe((0,So.q)(1)).subscribe({next:r=>{this.dialog.closeAll(),this.dialog.open(BO.k,{data:{orderDetails:r},panelClass:"base-panel-class",width:(0,St.I3d)(1024),minWidth:(0,St.I3d)(1024),autoFocus:!1,restoreFocus:!1}).afterClosed().pipe((0,So.q)(1)).subscribe(()=>this.setNotifications())},error:()=>this.snackBarMessageService.displayMessage(St.CsS.ERROR,"SHARED.MENU.NOTIFICATIONS.ORDER_DETAILS_ERROR")})}listenForSidenavOpenState(){this.sidenavService.onSideNavOpen.pipe((0,ts.R)(this.destroy$)).subscribe({next:()=>this.setNotifications()})}}function pT(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"div",3),t.\u0275\u0275element(3,"img",4),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",5)(6,"div",6),t.\u0275\u0275text(7),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementStart(9,"button",7),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.closeNotification())}),t.\u0275\u0275elementStart(10,"i",8),t.\u0275\u0275text(11,"close"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(12,"div",9),t.\u0275\u0275text(13),t.\u0275\u0275pipe(14,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(15,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.closeNotification(!0))}),t.\u0275\u0275elementStart(16,"mat-icon",11),t.\u0275\u0275text(17,"download"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(18,"strong"),t.\u0275\u0275text(19),t.\u0275\u0275pipe(20,"uppercase"),t.\u0275\u0275pipe(21,"translate"),t.\u0275\u0275elementEnd()()()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275property("src",r.drCarmenLogoUrl,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(4,5,"PAGES.A2HS_WRAPPER.DR_CARMEN_LOGO")),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(8,7,"PAGES.A2HS_WRAPPER.HEADING")," "),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(14,9,"PAGES.A2HS_WRAPPER.DESCRIPTION")),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(20,11,t.\u0275\u0275pipeBind1(21,13,"PAGES.A2HS_WRAPPER.DOWNLOAD_APP")))}}Jm.\u0275fac=function(o){return new(o||Jm)(t.\u0275\u0275directiveInject(Qh.B),t.\u0275\u0275directiveInject(gC),t.\u0275\u0275directiveInject(rl.on),t.\u0275\u0275directiveInject(Al.O),t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(Mu),t.\u0275\u0275directiveInject(St.vio.OrderServiceToken),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken))},Jm.\u0275cmp=t.\u0275\u0275defineComponent({type:Jm,selectors:[["frontend-notifications-menu"]],inputs:{notificationDetails:"notificationDetails",firebaseNotificationMode:"firebaseNotificationMode"},decls:6,vars:7,consts:[[1,"wrapper"],["class","sidenav-header cart-header","fxLayout","column",4,"ngIf"],[1,"cart-nav-container",3,"ngClass"],[4,"ngIf","ngIfElse"],["noNotificationsTemplate",""],["fxLayout","column",1,"sidenav-header","cart-header"],["fxLayout","row","fxLayoutAlign","space-between"],["fxFlex","100","fxLayout","row","fxLayoutAlign","start center"],[1,"material-icons","cart-header__notification-icon"],["fxLayoutAlign","center",1,"close-button"],["mat-icon-button","",3,"click"],[1,"material-icons","cart-header__close-icon"],[1,"full-width-divider","mt-16"],[4,"ngFor","ngForOf"],[1,"notification-wrapper",3,"ngClass"],[3,"iconPath","orderStatus","notificationDescription","deliveryEstimation","waitingSince","orderId","orderExternalId","businessExternalId","isRead","businessName","paymentType","displayAdditionalText","firebaseNotificationMode","isCardPayment","removeNotification","notificationClicked","markNotificationAsRead"],[1,"no-notifications"],[1,"no-notifications__image",3,"src","alt"],[1,"no-notifications__text"]],template:function(o,r){if(1&o&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275template(1,oT,15,5,"div",1),t.\u0275\u0275elementStart(2,"div",2),t.\u0275\u0275template(3,lT,2,1,"ng-container",3),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(4,cT,6,7,"ng-template",null,4,t.\u0275\u0275templateRefExtractor)),2&o){const m=t.\u0275\u0275reference(5);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.firebaseNotificationMode),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction2(4,dT,!r.firebaseNotificationMode,!r.notifications.length)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.notifications.length)("ngIfElse",m)}},dependencies:[Ze.NgClass,Ze.NgForOf,Ze.NgIf,je.xw,je.Wh,je.yH,lt.oO,Ht.eB,Up.Hw,ar.d,fn.b,nT,Ze.UpperCasePipe,ea.X$],styles:['.adjust-height[_ngcontent-%COMP%]{min-height:56vh}.wrapper[_ngcontent-%COMP%]{overflow:hidden;display:grid;grid-template-columns:1fr;grid-template-areas:"header" "content";grid-template-rows:auto 1fr auto;height:100%;width:100%}.cart-header[_ngcontent-%COMP%]{padding:16px 16px 0;width:100%;grid-area:header}.cart-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:19px;font-weight:700}.cart-header[_ngcontent-%COMP%]   .full-width-divider[_ngcontent-%COMP%]{margin:0 -16px}.cart-header[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:20px;height:20px}.cart-header[_ngcontent-%COMP%]   .close-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{vertical-align:unset}.cart-header__back-section[_ngcontent-%COMP%]{font-size:22px;display:flex;align-items:center;height:52px;box-shadow:0 2px 2px #00000042;position:sticky;top:56px;z-index:100;background-color:#fff}.cart-header__back-section[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:14px 16px 14px 14px;cursor:pointer}@media (min-width: 960px){.cart-header__back-section[_ngcontent-%COMP%]{display:none}}@media (min-width: 430px) and (max-width: 600px){.cart-header__back-section[_ngcontent-%COMP%]{top:56px}}@media (min-width: 600px){.cart-header__back-section[_ngcontent-%COMP%]{top:64px}}.cart-header__close-icon[_ngcontent-%COMP%]{width:20px;font-weight:700}.cart-header__notification-icon[_ngcontent-%COMP%]{color:#7b7b7b;width:24px;height:24px;margin-right:4px}.cart-nav-container[_ngcontent-%COMP%]{overflow-y:auto;grid-area:content}.cart-nav-container[_ngcontent-%COMP%]   .notification-wrapper[_ngcontent-%COMP%]{cursor:pointer}.no-notifications[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-notifications__image[_ngcontent-%COMP%]{width:100px;height:100px}.no-notifications__text[_ngcontent-%COMP%]{font-size:22px;line-height:26px;font-weight:700;color:#7b7b7b;text-align:center}.gray-background[_ngcontent-%COMP%]{background-color:#edeff2}']}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Jm.prototype,"user",void 0);let hT=(()=>{class c{constructor(r){this.cookieService=r,this.drCarmenLogoUrl=St.s0B,this.displayNotification=!0}navigateToStore(){window.open(St.VLR.isIos()?St.EKz:St.HVM)}closeNotification(r=!1){this.displayNotification=!1,this.setDownloadMobileAppCookie(r)}setDownloadMobileAppCookie(r){if(r)return this.cookieService.set(St.fSN.mobileAppDownloadNotificationCookie,"mobileAppDownloadNotificationRead",30,"/",window.location.hostname,l.Z.enableSSL,"Strict"),this.navigateToStore();this.cookieService.set(St.fSN.mobileAppDownloadNotificationCookie,"mobileAppDownloadNotificationRead",null,"/",window.location.hostname,l.Z.enableSSL,"Strict")}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(C.N))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["download-mobile-app-notification"]],decls:1,vars:1,consts:[["class","notification-wrapper p-16",4,"ngIf"],[1,"notification-wrapper","p-16"],[1,"notification-wrapper__download","mb-16"],[1,"notification-wrapper__image-wrapper"],[1,"notification-wrapper__download-image",3,"src","alt"],[1,"ml-16","w-100"],[1,"notification-wrapper__heading","mb-4"],["id","btnClose","mat-flat-button","",1,"notification-wrapper__close-button",3,"click"],[1,"material-icons"],[1,"notification-wrapper__description"],["mat-flat-button","","color","primary","id","btnDownload","type","button",1,"w-100",3,"click"],[1,"material-icons","mr-8"]],template:function(r,m){1&r&&t.\u0275\u0275template(0,pT,22,15,"div",0),2&r&&t.\u0275\u0275property("ngIf",m.displayNotification)},dependencies:[Ze.NgIf,Ht.eB,Up.Hw,fn.b,Ze.UpperCasePipe,ea.X$],styles:[".notification-wrapper[_ngcontent-%COMP%]{border-radius:16px}.notification-wrapper__download[_ngcontent-%COMP%]{display:flex;color:#242424}.notification-wrapper__image-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-width:64px;height:64px;border-radius:32px;background-color:#c4eec5}.notification-wrapper__heading[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:700}.notification-wrapper__description[_ngcontent-%COMP%]{font-size:14px;line-height:22px}.notification-wrapper__close-button[_ngcontent-%COMP%]{background:none;border-style:none;outline:none}.notification-wrapper__close-button[_ngcontent-%COMP%]   i.material-icons[_ngcontent-%COMP%]{font-size:20px;color:#7b7b7b}.notification-wrapper__download-button[_ngcontent-%COMP%]{font-size:14px}"]}),c})();var AM=i(89262);function gT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"button",5),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("routerLink",r.url),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",r.name," ")}}function _T(c,o){1&c&&(t.\u0275\u0275elementStart(0,"mat-icon",16),t.\u0275\u0275text(1,"expand_more"),t.\u0275\u0275elementEnd())}function vT(c,o){1&c&&(t.\u0275\u0275elementStart(0,"mat-icon",17),t.\u0275\u0275text(1,"close"),t.\u0275\u0275elementEnd())}function bT(c,o){if(1&c&&t.\u0275\u0275element(0,"img",24),2&c){const r=t.\u0275\u0275nextContext(3).$implicit,m=t.\u0275\u0275nextContext(3);t.\u0275\u0275propertyInterpolate1("srcset","",m.menuMarketImages[r.categoryId+"_MOBILE"]," 2x"),t.\u0275\u0275property("src",m.canLoadImages.forMarketMenu?m.menuMarketImages[r.categoryId+"_DESKTOP"]:null,t.\u0275\u0275sanitizeUrl)("alt",r.categoryId)}}function yT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"a",21),t.\u0275\u0275template(1,bT,1,3,"img",22),t.\u0275\u0275elementStart(2,"div",23),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"truncate"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext(2).$implicit,m=t.\u0275\u0275nextContext(2).$implicit,M=t.\u0275\u0275nextContext();t.\u0275\u0275property("routerLink",r.routerLink),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.categoryId===M.marketCategoryId),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind2(4,3,r.name,M.window.innerWidth<1404?21:35))}}function CT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",19),t.\u0275\u0275template(1,yT,5,6,"a",20),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.empty)}}function ET(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,CT,2,1,"div",18),t.\u0275\u0275elementContainerEnd()),2&c){const r=o.$implicit,m=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.marketSubcategories.includes(r.categoryId))}}function xT(c,o){if(1&c&&t.\u0275\u0275element(0,"img",28),2&c){const r=t.\u0275\u0275nextContext().$implicit,m=t.\u0275\u0275nextContext(3);t.\u0275\u0275property("src",m.canLoadImages.forPharmacyMenu?"assets/images/home/menu/drugs/"+r.categoryId+".svg":null,t.\u0275\u0275sanitizeUrl)}}const MT=function(){return{exact:!0}};function ST(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"span",25)(2,"a",26),t.\u0275\u0275template(3,xT,1,1,"img",27),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()),2&c){const r=o.$implicit,m=t.\u0275\u0275nextContext(2).$implicit,M=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(4,MT))("routerLink",r.routerLink),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.categoryId===M.pharmacyCategoryId),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(r.name)}}const wT=function(c){return{"has-menu-opened":c}};function OT(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"button",6,7),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275reference(2),I=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(I.closePreviousMenu(M))})("menuOpened",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext().$implicit,I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.updateLoadImageStatus(M.categoryId))}),t.\u0275\u0275text(3),t.\u0275\u0275template(4,_T,2,0,"mat-icon",8),t.\u0275\u0275template(5,vT,2,0,"mat-icon",9),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"mat-menu",10,11)(8,"div",12),t.\u0275\u0275template(9,ET,2,1,"ng-container",2),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(10,"mat-menu",13,14)(12,"div",15),t.\u0275\u0275template(13,ST,5,5,"ng-container",2),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()}if(2&c){const r=t.\u0275\u0275reference(2),m=t.\u0275\u0275reference(7),M=t.\u0275\u0275reference(11),I=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("matMenuTriggerFor","F"===I.categoryId?m:M)("ngClass",t.\u0275\u0275pureFunction1(7,wT,r.menuOpen)),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",I.name," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.menuOpen),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.menuOpen),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngForOf",I.children),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngForOf",I.children)}}function TT(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,gT,2,2,"button",3),t.\u0275\u0275template(2,OT,14,9,"ng-container",4),t.\u0275\u0275elementContainerEnd()),2&c){const r=o.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.children.length||r.isSubcategoryHidden()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.children.length&&!r.isSubcategoryHidden())}}const DT=["A","G"];class qm{constructor(o,r,m,M,I,G){this.spinner=o,this.ren=r,this.router=m,this.userService=M,this.snackBar=I,this.appService=G,this.marketCategoryId="F",this.pharmacyCategoryId="A",this.mainCategories=[],this.marketSubcategories=Object.keys(St.rHK),this.breakpoints=St.u3l,this.window=window,this.canLoadImages={forPharmacyMenu:!1,forMarketMenu:!1},this.menuMarketImages=St.JUc,this.shouldCloseAllMenus=!1,this.menusClosed=new t.EventEmitter}ngOnChanges(o){o&&o.shouldCloseAllMenus.currentValue&&this.closeMenus()}ngOnInit(){this.userType=this.userService.getUserType(),this.router.events.subscribe(o=>{o instanceof to.m2&&(this.spinner.hide(),this.previousTrigger&&this.previousTrigger.closeMenu())}),this.appService.currentCategories.pipe((0,So.q)(2)).subscribe(o=>{o&&St.F6k.forEach(r=>{o.forEach(m=>{m.categoryId===r&&"Services"!==(m=m.categoryId===this.marketCategoryId?this.getMarketCategoryWithSortedSubcategories(m):m).description&&!DT.includes(m.categoryId)&&this.mainCategories.push(m)})})})}closeMenus(){this.menuTriggers.toArray().forEach(o=>{o.menuOpen&&o.closeMenu()}),this.menusClosed.emit()}getMarketCategoryWithSortedSubcategories(o){return o.children=o.children.slice().sort((r,m)=>this.marketSubcategories.indexOf(r.categoryId)-this.marketSubcategories.indexOf(m.categoryId)),o}closePreviousMenu(o){this.previousTrigger&&this.previousTrigger!==o&&(this.previousTrigger.closeMenu(),this.ren.removeClass(this.previousTrigger._element.nativeElement,"cdk-focused"),this.ren.removeClass(this.previousTrigger._element.nativeElement,"cdk-program-focused")),this.previousTrigger=o}updateLoadImageStatus(o){this.canLoadImages.forMarketMenu=o===this.marketCategoryId,this.canLoadImages.forPharmacyMenu=o===this.pharmacyCategoryId}}qm.\u0275fac=function(o){return new(o||qm)(t.\u0275\u0275directiveInject(yu.t2),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(Al.O),t.\u0275\u0275directiveInject(ye.pl),t.\u0275\u0275directiveInject(Fp.z))},qm.\u0275cmp=t.\u0275\u0275defineComponent({type:qm,selectors:[["app-menu"]],viewQuery:function(o,r){if(1&o&&t.\u0275\u0275viewQuery(fl.D8,5),2&o){let m;t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.menuTriggers=m)}},inputs:{shouldCloseAllMenus:"shouldCloseAllMenus"},outputs:{menusClosed:"menusClosed"},features:[t.\u0275\u0275NgOnChangesFeature],decls:3,vars:2,consts:[["fxShow","","fxLayoutAlign","left center",1,"top-navbar","mat-elevation-z2",3,"fxHide"],[1,"theme-container"],[4,"ngFor","ngForOf"],["mat-button","","class","menu-trigger menu-btn-text",3,"routerLink",4,"ngIf"],[4,"ngIf"],["mat-button","",1,"menu-trigger","menu-btn-text",3,"routerLink"],["mat-button","",1,"menu-btn-text",3,"matMenuTriggerFor","ngClass","click","menuOpened"],["menuTrigger","matMenuTrigger"],["class","trigger-icon arrow",4,"ngIf"],["class","trigger-icon close",4,"ngIf"],["hasBackdrop","true","backdropClass","market-category-menu-backdrop","yPosition","below",1,"market-dropdown"],["marketMenu","matMenu"],["fxLayout","row wrap"],["hasBackdrop","true","backdropClass","category-menu-backdrop","yPosition","below",1,"app-dropdown","menu-dimension"],["mainMenu","matMenu"],["fxFill",""],[1,"trigger-icon","arrow"],[1,"trigger-icon","close"],["class","subcategory-container",4,"ngIf"],[1,"subcategory-container"],["fxLayout","column","fxLayoutAlign","start center","class","sub-container",3,"routerLink",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center",1,"sub-container",3,"routerLink"],["class","market-img",3,"src","srcset","alt",4,"ngIf"],[1,"sub-name"],[1,"market-img",3,"src","srcset","alt"],["fxLayoutAlign","start center",1,"pt-05"],["fxFlex","100","fxLayoutAlign","start center","fxLayoutGap","10px","mat-menu-item","","routerLinkActive","horizontal-active-link",3,"routerLinkActiveOptions","routerLink"],["alt","","height","35px",3,"src",4,"ngIf"],["alt","","height","35px",3,"src"]],template:function(o,r){1&o&&(t.\u0275\u0275elementStart(0,"mat-toolbar",0)(1,"mat-toolbar-row",1),t.\u0275\u0275template(2,TT,3,2,"ng-container",2),t.\u0275\u0275elementEnd()()),2&o&&(t.\u0275\u0275property("fxHide",r.window.innerWidth<959),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",r.mainCategories))},dependencies:[Ze.NgClass,Ze.NgForOf,Ze.NgIf,to.rH,to.Od,je.xw,je.SQ,je.Wh,je.s9,je.yH,lt.b8,lt.oO,Ht.eB,Up.Hw,fl.W0,fl.tN,fl.D8,Gm.Ye,Gm.rD,fn.b,AM.W],styles:[".top-navbar[_ngcontent-%COMP%]{box-shadow:0 2px 2px #0003;min-height:46px!important;padding:0 25px}.top-navbar[_ngcontent-%COMP%]   .theme-container[_ngcontent-%COMP%]{padding:0}.top-navbar[_ngcontent-%COMP%]   .mat-toolbar-row[_ngcontent-%COMP%]{height:48px}.top-navbar[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]{text-transform:uppercase;color:#242424;font-size:13px;font-weight:500;height:48px;border-radius:0}.top-navbar[_ngcontent-%COMP%]   .mat-button.has-menu-opened[_ngcontent-%COMP%], .top-navbar[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover{background-color:#edeff2!important}.text-warn[_ngcontent-%COMP%]{color:#f44336}a[_ngcontent-%COMP%]{text-decoration:none;color:#4a4a4a!important}.pt-05[_ngcontent-%COMP%]{padding-top:5px!important}.menu-btn-text[_ngcontent-%COMP%]{font-size:14px!important}.trigger-icon[_ngcontent-%COMP%]{color:#7b7b7b;height:20px!important;width:20px!important}.trigger-icon.arrow[_ngcontent-%COMP%]{font-size:20px;margin-bottom:3px}.trigger-icon.close[_ngcontent-%COMP%]{font-size:16px}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],qm.prototype,"user",void 0);var RM=i(47225),dd=i(37084),kM=i(82194);let IT=(()=>{class c{constructor(r,m){this.dialog=r,this.dialogRef=m,this.breakpoints=St.u3l}ngOnInit(){this.window=window}onCloseClick(){this.dialogRef.close()}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(rl.on),t.\u0275\u0275directiveInject(rl.hV))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-add-browser-dialog"]],decls:36,vars:28,consts:[["mat-dialog-content",""],["fxLayoutAlign","end center",1,"close"],[1,"delete-btn-icon",3,"click"],[1,"dialog-content"],[1,"text"],[1,"text-first"],[1,"text-second"],["fxLayoutAlign","start center",3,"fxLayout"],["href","https://www.google.com/chrome/"],["mat-raised-button","",1,"install-browser"],["src","assets/images/social/chrome.png",1,"install-browser-img",3,"alt"],["fxFlex",""],["href","https://www.microsoft.com/en-us/edge/"],["src","assets/images/social/edge.png",1,"install-browser-img",3,"alt"],["mat-raised-button","",1,"no-btn",3,"click"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"mat-icon",2),t.\u0275\u0275listener("click",function(){return m.onCloseClick()}),t.\u0275\u0275text(3,"close"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(4,"mat-divider"),t.\u0275\u0275elementStart(5,"div",3)(6,"div",4)(7,"div",5),t.\u0275\u0275text(8),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"div",6),t.\u0275\u0275text(11),t.\u0275\u0275pipe(12,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(13,"mat-divider"),t.\u0275\u0275elementStart(14,"div",7)(15,"a",8)(16,"button",9),t.\u0275\u0275element(17,"img",10),t.\u0275\u0275pipe(18,"translate"),t.\u0275\u0275elementStart(19,"span",11),t.\u0275\u0275text(20),t.\u0275\u0275pipe(21,"uppercase"),t.\u0275\u0275pipe(22,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(23,"a",12)(24,"button",9),t.\u0275\u0275element(25,"img",13),t.\u0275\u0275pipe(26,"translate"),t.\u0275\u0275elementStart(27,"span",11),t.\u0275\u0275text(28),t.\u0275\u0275pipe(29,"uppercase"),t.\u0275\u0275pipe(30,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(31,"button",14),t.\u0275\u0275listener("click",function(){return m.onCloseClick()}),t.\u0275\u0275elementStart(32,"span",11),t.\u0275\u0275text(33),t.\u0275\u0275pipe(34,"uppercase"),t.\u0275\u0275pipe(35,"translate"),t.\u0275\u0275elementEnd()()()()()),2&r&&(t.\u0275\u0275advance(8),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(9,8,"PAGES.ADD_BROWSER_DIALOG.FIRST_TEXT")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(12,10,"PAGES.ADD_BROWSER_DIALOG.SECOND_TEXT")),t.\u0275\u0275advance(3),t.\u0275\u0275property("fxLayout",m.window.innerWidth>m.breakpoints.DESKTOP_S?"row":"column"),t.\u0275\u0275advance(3),t.\u0275\u0275property("alt",t.\u0275\u0275pipeBind1(18,12,"PAGES.ABOUT.ABOUT.EMAIL")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(21,14,t.\u0275\u0275pipeBind1(22,16,"PAGES.ADD_BROWSER_DIALOG.INSTALL_CHROME")),""),t.\u0275\u0275advance(5),t.\u0275\u0275property("alt",t.\u0275\u0275pipeBind1(26,18,"PAGES.ABOUT.ABOUT.EMAIL")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(29,20,t.\u0275\u0275pipeBind1(30,22,"PAGES.ADD_BROWSER_DIALOG.INSTALL_EDGE"))),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(34,24,t.\u0275\u0275pipeBind1(35,26,"PAGES.ADD_BROWSER_DIALOG.ABORT"))))},dependencies:[je.xw,je.Wh,je.yH,Ht.eB,rl.Rb,Up.Hw,ar.d,fn.b,Ze.UpperCasePipe,ea.X$],styles:[".mat-dialog-content[_ngcontent-%COMP%]{width:100%;padding:0}.text[_ngcontent-%COMP%]{color:#242424;padding:16px}.text-first[_ngcontent-%COMP%]{font-size:19px;font-weight:700;margin-bottom:16px}.text-second[_ngcontent-%COMP%]{font-size:15px}.install-browser[_ngcontent-%COMP%]{font-size:14px;color:#242424;font-weight:700!important;margin:16px 0 16px 16px;background-color:#e4e4e4!important;box-shadow:none!important;text-align:center}.install-browser-img[_ngcontent-%COMP%]{display:block;width:24px;height:24px;margin:5px 12px 0 0}.no-btn[_ngcontent-%COMP%]{background-color:transparent;font-size:14px;color:#242424;font-weight:700!important;margin:0 16px 0 0;box-shadow:none!important}.close[_ngcontent-%COMP%]{cursor:pointer;width:100%;padding-right:16px;padding-bottom:16px;padding-top:19px}@media (max-width: 960px){.install-browser[_ngcontent-%COMP%]{margin:0;width:100%}.install-browser-img[_ngcontent-%COMP%]{position:absolute}.no-btn[_ngcontent-%COMP%]{margin:3px 16px;width:calc(100% - 32px)}a[_ngcontent-%COMP%]{margin:16px 16px 0;width:calc(100% - 32px)}}"]}),c})(),PT=(()=>{class c{constructor(r){var m=this;this.dialog=r,this.hasPwaSupport=!1,this.breakpoints=St.u3l,this.openBrowserDialog=(0,h.Z)(function*(){const M=window.innerWidth>m.breakpoints.MOBILE_L?16:14;m.dialog.closeAll(),m.dialog.open(IT,{maxWidth:"100%",width:`calc(100% - ${2*M}px)`,position:St.VLR.getDialogPosition(),panelClass:"add-browser-panel-class"})})}ngOnInit(){this.window=window,navigator.platform.toUpperCase().indexOf("MAC")>=0||navigator.platform.toUpperCase().indexOf("IP")>=0||St.VLR.isNativePlatform?this.enable=!1:(this.enable=!l.Z.isPwaMode,this.setA2hsWindowListener()),navigator.getInstalledRelatedApps().then(()=>{this.hasPwaSupport=!0})}setA2hsWindowListener(){window.addEventListener("beforeinstallprompt",r=>{r.preventDefault(),this.deferredPrompt=r})}installApp(){void 0!==this.deferredPrompt?(this.deferredPrompt.prompt(),this.deferredPrompt.userChoice.then(r=>{"accepted"===r.outcome&&(this.enable=!1),this.deferredPrompt=null})):this.openBrowserDialog()}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(rl.on))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-a2hs-wrapper"]],decls:23,vars:18,consts:[[1,"a2hs-wrapper",3,"ngClass"],[1,"a2hs-wrapper-row","first-row",3,"fxLayoutAlign"],["fxLayout","row","fxLayoutAlign","space-around center"],[1,"logo"],["src","assets/a2hs/iOS/Icon-40.png","alt",""],["fxLayout","column","fxLayoutAlign","space-between start",1,"text"],[1,"text-first"],[1,"text-second"],[1,"first-row-btns"],[1,"yes-btn","gtm-pwa-download",3,"click"],[1,"a2hs-wrapper-row","second-row"],[1,"yes-btn",3,"click"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"mat-toolbar",0)(1,"div",1)(2,"div",2)(3,"div",3),t.\u0275\u0275element(4,"img",4),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div")(6,"div",5)(7,"div",6),t.\u0275\u0275text(8),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"div",7),t.\u0275\u0275text(11),t.\u0275\u0275pipe(12,"translate"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275elementStart(13,"div",8)(14,"button",9),t.\u0275\u0275listener("click",function(){return m.installApp()}),t.\u0275\u0275text(15),t.\u0275\u0275pipe(16,"uppercase"),t.\u0275\u0275pipe(17,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(18,"mat-toolbar-row",10)(19,"button",11),t.\u0275\u0275listener("click",function(){return m.installApp()}),t.\u0275\u0275text(20),t.\u0275\u0275pipe(21,"uppercase"),t.\u0275\u0275pipe(22,"translate"),t.\u0275\u0275elementEnd()()()),2&r&&(t.\u0275\u0275property("ngClass",!m.enable||m.hasPwaSupport&&void 0===m.deferredPrompt?"hide":"show"),t.\u0275\u0275advance(1),t.\u0275\u0275property("fxLayoutAlign",m.window.innerWidth>768?"center center":"start center"),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(9,6,"PAGES.A2HS_WRAPPER.FIRST_TEXT")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(12,8,"PAGES.A2HS_WRAPPER.SECOND_TEXT")),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(16,10,t.\u0275\u0275pipeBind1(17,12,"PAGES.A2HS_WRAPPER.DOWNLOAD_APP"))," "),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(21,14,t.\u0275\u0275pipeBind1(22,16,"PAGES.A2HS_WRAPPER.DOWNLOAD_APP"))," "))},dependencies:[Ze.NgClass,je.xw,je.Wh,lt.oO,Gm.Ye,Gm.rD,fn.b,Ze.UpperCasePipe,ea.X$],styles:[".a2hs-wrapper[_ngcontent-%COMP%], .a2hs-wrapper-row[_ngcontent-%COMP%]{background-color:#b2f2ce}.first-row[_ngcontent-%COMP%]{min-height:115px;padding:16px 0 16px 16px}.show[_ngcontent-%COMP%]{display:block;transition:ease-out;transition-duration:.6s}.hide[_ngcontent-%COMP%]{display:none}.logo[_ngcontent-%COMP%]{background-color:#fff;width:40px;height:40px;padding:12px;border-radius:20%;box-shadow:#00000029 0 3px 6px}.text[_ngcontent-%COMP%]{color:#242424;margin-left:16px;margin-right:16px}.text-first[_ngcontent-%COMP%]{font-weight:700;font-size:19px;margin-top:3px}.text-second[_ngcontent-%COMP%]{font-size:13px}.first-row-btns[_ngcontent-%COMP%]{display:block}button[_ngcontent-%COMP%]{width:172px;height:40px;border:none;font-size:14px;cursor:pointer}.yes-btn[_ngcontent-%COMP%]{background-color:#00853b;border-radius:4px;color:#fff;font-weight:510;font-weight:700}.second-row[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){.first-row[_ngcontent-%COMP%]{padding-bottom:0;place-content:left space-around;align-content:flex-end}.first-row-btns[_ngcontent-%COMP%]{display:none}.mat-toolbar-row[_ngcontent-%COMP%]{white-space:pre-wrap}.logo[_ngcontent-%COMP%]{margin-top:-36px}.text[_ngcontent-%COMP%]{padding-top:16px;white-space:normal;height:120px;width:calc(100% - 36px);line-height:normal}.text-first[_ngcontent-%COMP%]{width:100%;word-wrap:break-word;height:50px}.text-second[_ngcontent-%COMP%]{margin-left:-80px;margin-top:12px;padding-top:16px;width:calc(100% + 66px);word-wrap:break-word;height:36px}.second-row[_ngcontent-%COMP%]{min-height:72px;display:block;padding:16px}.second-row[_ngcontent-%COMP%]   .yes-btn[_ngcontent-%COMP%]{width:100%}}@media (max-width: 420px){.text-first[_ngcontent-%COMP%]{max-width:250px}.text-second[_ngcontent-%COMP%]{max-width:364px;width:calc(100% + 90px)}}@media (max-width: 320px){.text-first[_ngcontent-%COMP%]{font-size:16px;max-width:250px}}"]}),c})();function RT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"p")(1,"a",8),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("routerLink",r.url),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(r.name)}}function kT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,RT,3,2,"p",40),t.\u0275\u0275elementEnd()),2&c){const r=o.$implicit,m=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.name!==m.mainCategoriesNames.PHARMACEUTICAL)}}function NT(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"p")(2,"a",8),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.accountSettingsLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,2,"THEME.COMPONENTS.FOOTER.ACCOUNT")," ")}}function FT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"a",23),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("routerLink",r.url),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",r.name," ")}}function BT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,FT,2,2,"a",41),t.\u0275\u0275elementEnd()),2&c){const r=o.$implicit,m=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.name!==m.mainCategoriesNames.PHARMACEUTICAL)}}function UT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"a",23),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("routerLink",r.accountSettingsLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,"THEME.COMPONENTS.FOOTER.ACCOUNT")," ")}}const NM=function(c,o){return{year:c,appVersions:o}};function jT(c,o){if(1&c&&(t.\u0275\u0275namespaceSVG(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(0,"b")(1,"p",42),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind2(3,1,"THEME.COMPONENTS.FOOTER.COPYRIGHT",t.\u0275\u0275pureFunction2(4,NM,r.year,r.appVersions)))}}function HT(c,o){if(1&c&&(t.\u0275\u0275namespaceSVG(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(0,"p",42),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"THEME.COMPONENTS.FOOTER.COPYRIGHT",t.\u0275\u0275pureFunction2(4,NM,r.year,r.appVersions))," ")}}function VT(c,o){if(1&c&&(t.\u0275\u0275namespaceSVG(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(0,"p")(1,"a",8),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(4,"p")(5,"a",8),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(8,"p")(9,"a",8),t.\u0275\u0275text(10),t.\u0275\u0275pipe(11,"translate"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("routerLink",r.authenticationPage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,6,"THEME.COMPONENTS.FOOTER.AUTHENTICATION")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.authenticationPage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(7,8,"THEME.COMPONENTS.FOOTER.REGISTER_NEW_ACCOUNT")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.businessAuthPage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(11,10,"THEME.COMPONENTS.FOOTER.REGISTER_BUSINESS")," ")}}function WT(c,o){if(1&c&&(t.\u0275\u0275namespaceSVG(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(0,"a",23),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"a",23),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"a",23),t.\u0275\u0275text(7),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("routerLink",r.authenticationPage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,6,"THEME.COMPONENTS.FOOTER.AUTHENTICATION")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.authenticationPage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(5,8,"THEME.COMPONENTS.FOOTER.REGISTER_NEW_ACCOUNT")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.businessAuthPage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(8,10,"THEME.COMPONENTS.FOOTER.REGISTER_BUSINESS")," ")}}class eg{constructor(o){this.appService=o,this.onCouriersPage=!1,this.year=(new Date).getFullYear(),this.FEVersion="13.3.2",this.homePage=St.s67,this.authenticationPage=St.baM,this.businessAuthPage=St.qE$,this.termsAndConditionsLink=St.ZOI,this.privacyPolicyLink=St.eN9,this.cookiesPolicyLink=St.Pd3,this.personalDataConsentLink=St.tUT,this.fusionProjectLink=St.xfd,this.shoppingInfoPage=`/${St.D2x.ABOUT}/${St.D2x.SHOPPING}`,this.paymentTypeLink=`/${St.D2x.ABOUT}/${St.D2x.PAYMENT_TYPE}`,this.shippingLink=`/${St.D2x.ABOUT}/${St.D2x.SHIPPING}`,this.contactPageLink=St.rUW,this.contactB2BPageLink=St.mHP,this.userType=St.FWD,this.mainCategoriesNames=St.Stn,this.featureFlags=RM.T}ngOnInit(){this.categories=this.appService.currentCategories,this.appService.getBEVersion().subscribe(o=>{if(o&&o.build){const r=o.build.version;r&&(this.BEVersion=r)}}),this.getMobileAppVersion()}getUserType(){let o=St.FWD.CLIENT;if(this.user)switch(this.user.getType()){case this.userType.CLIENT:o=St.FWD.CLIENT;break;case this.userType.BUSINESS:o=this.user.profile.typeName;break;case this.userType.EMPLOYEE:o="angajat";break;default:o=St.FWD.CLIENT}return o}get accountSettingsLink(){return`/${this.getUserType()}/${St.ZTG.MY_ACCOUNT}/${St.ZTG.ACCOUNT_SETTINGS}`}get appVersions(){return this.BEVersion?`FE: ${this.FEVersion} BE: ${this.BEVersion}`:`FE: ${this.FEVersion}`}getMobileAppVersion(){var o=this;return(0,h.Z)(function*(){try{const r=yield Hm.getInfo();o.FEVersion=r.version}catch{o.FEVersion="13.3.2"}})()}}eg.\u0275fac=function(o){return new(o||eg)(t.\u0275\u0275directiveInject(Fp.z))},eg.\u0275cmp=t.\u0275\u0275defineComponent({type:eg,selectors:[["app-footer"]],inputs:{onCouriersPage:"onCouriersPage"},decls:212,vars:166,consts:[["fxLayoutAlign","center center",1,"bg-secondary","footer"],["fxFlex","100","fxLayout","column","fxLayoutGap","23px",3,"ngClass"],["fxLayout","row",1,"logo-container"],[3,"routerLink"],["alt","DrCarmen","src","/assets/images/others/logo-gri.png","title","DrCarmen","ngClass.lt-sm","mlr-auto",1,"footer-logo"],["fxLayout","row","fxLayoutAlign","space-between start",1,"footer-container"],["fxLayout","column"],[1,"col-title"],[1,"link",3,"routerLink"],[4,"ngFor","ngForOf"],["href","http://www.anpc.gov.ro/","target","_blank",1,"link"],["rel","nofollow","target","_blank","href","https://www.anm.ro/medicamente-de-uz-uman/farmacovigilenta/raporteaza-o-reactie-adversa/",1,"link"],["target","_blank","href","https://ec.europa.eu/consumers/odr/main/index.cfm?event=main.home2.show&lng=EN",1,"link"],[4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutGap","23px"],["href","mailto:contact@drcarmen.com",1,"link"],["href","https://www.facebook.com/DrCarmencom/","target","_blank",1,"facebook-link"],["xmlns","http://www.w3.org/2000/svg","width","40","height","40","viewBox","0 0 25 25"],["cx","12.5","cy","12.5","r","12.5",1,"a"],["d","M4.62,13.9H1.539V7.335H0V4.806H1.539V3.289C1.539,1.227,2.409,0,4.878,0H6.934V2.529H5.649c-.962,0-1.026.353-1.026,1.013l0,1.264H6.948L6.676,7.335H4.62V13.9Z","transform","translate(9.026 5.552)",1,"b"],[1,"small-footer-container"],[3,"expandedHeight"],["fxLayout","column",1,"expansion-element"],["fxLayoutAlign","center center",1,"link",3,"routerLink"],[1,"footer-title"],["fxLayout","column","fxLayoutAlign","center center",1,"expansion-element"],["href","http://www.anpc.gov.ro/","fxLayoutAlign","center center",1,"link"],["fxLayoutAlign","center center","rel","nofollow","target","_blank","href","https://www.anm.ro/medicamente-de-uz-uman/farmacovigilenta/raporteaza-o-reactie-adversa/",1,"link"],["fxLayoutAlign","center center","target","_blank","href","https://ec.europa.eu/consumers/odr/main/index.cfm?event=main.home2.show&lng=EN",1,"link"],["class","link","fxLayoutAlign","center center",3,"routerLink",4,"ngIf","ngIfElse"],["href","mailto:contact@drcarmen.com","fxLayoutAlign","center center",1,"link"],[1,"divider"],["fxLayoutAlign","center center","href","https://www.facebook.com/DrCarmencom/","target","_blank",1,"facebook-link__mobile"],["fxLayout","row","fxLayoutAlign","center center",1,"copyright","theme-container"],[1,"mobile-social-icon-container"],["xmlns","http://www.w3.org/2000/svg","width","25","height","25","viewBox","0 0 25 25"],[4,"libFeatureEnabled"],["class","text-center",4,"libFeatureDisabled"],["noUserTemplate",""],["noUserTemplateMobile",""],[4,"ngIf"],["class","link","fxLayoutAlign","center center",3,"routerLink",4,"ngIf"],[1,"text-center"]],template:function(o,r){if(1&o&&(t.\u0275\u0275element(0,"app-a2hs-wrapper"),t.\u0275\u0275elementStart(1,"footer",0)(2,"div",1)(3,"div",2)(4,"a",3),t.\u0275\u0275element(5,"img",4),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"div",5)(7,"div",6)(8,"h3",7),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"p")(12,"a",8),t.\u0275\u0275text(13),t.\u0275\u0275pipe(14,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(15,"div",6),t.\u0275\u0275template(16,kT,2,1,"div",9),t.\u0275\u0275pipe(17,"async"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(18,"div",6)(19,"h3",7),t.\u0275\u0275text(20),t.\u0275\u0275pipe(21,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(22,"p")(23,"a",8),t.\u0275\u0275text(24),t.\u0275\u0275pipe(25,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(26,"p")(27,"a",8),t.\u0275\u0275text(28),t.\u0275\u0275pipe(29,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(30,"p")(31,"a",8),t.\u0275\u0275text(32),t.\u0275\u0275pipe(33,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(34,"p")(35,"a",8),t.\u0275\u0275text(36),t.\u0275\u0275pipe(37,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(38,"p")(39,"a",8),t.\u0275\u0275text(40),t.\u0275\u0275pipe(41,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(42,"p")(43,"a",10),t.\u0275\u0275text(44),t.\u0275\u0275pipe(45,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(46,"p")(47,"a",11),t.\u0275\u0275text(48),t.\u0275\u0275pipe(49,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(50,"p")(51,"a",12),t.\u0275\u0275text(52),t.\u0275\u0275pipe(53,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(54,"div",6)(55,"h3",7),t.\u0275\u0275text(56),t.\u0275\u0275pipe(57,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(58,NT,5,4,"ng-container",13),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(59,"div",6)(60,"h3",7),t.\u0275\u0275text(61),t.\u0275\u0275pipe(62,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(63,"p")(64,"a",8),t.\u0275\u0275text(65),t.\u0275\u0275pipe(66,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(67,"p")(68,"a",8),t.\u0275\u0275text(69),t.\u0275\u0275pipe(70,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(71,"p")(72,"a",8),t.\u0275\u0275text(73),t.\u0275\u0275pipe(74,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(75,"div",14)(76,"div",6)(77,"h3",7),t.\u0275\u0275text(78),t.\u0275\u0275pipe(79,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(80,"p")(81,"a",15),t.\u0275\u0275text(82),t.\u0275\u0275pipe(83,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(84,"p")(85,"a",8),t.\u0275\u0275text(86),t.\u0275\u0275pipe(87,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(88,"p")(89,"a",8),t.\u0275\u0275text(90),t.\u0275\u0275pipe(91,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(92,"div",6)(93,"h3",7),t.\u0275\u0275text(94),t.\u0275\u0275pipe(95,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(96,"a",16),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(97,"svg",17)(98,"defs")(99,"style"),t.\u0275\u0275text(100," .a { fill: #3d5a96; } .b { fill: #fff; } "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(101,"circle",18)(102,"path",19),t.\u0275\u0275elementEnd()()()()(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(103,"div",20)(104,"mat-accordion")(105,"mat-expansion-panel")(106,"mat-expansion-panel-header",21)(107,"mat-panel-title"),t.\u0275\u0275text(108),t.\u0275\u0275pipe(109,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(110,"div",22)(111,"a",23),t.\u0275\u0275text(112),t.\u0275\u0275pipe(113,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(114,"div",6),t.\u0275\u0275template(115,BT,2,1,"div",9),t.\u0275\u0275pipe(116,"async"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(117,"mat-expansion-panel")(118,"mat-expansion-panel-header",21)(119,"mat-panel-title")(120,"span",24),t.\u0275\u0275text(121),t.\u0275\u0275pipe(122,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(123,"div",25)(124,"a",23),t.\u0275\u0275text(125),t.\u0275\u0275pipe(126,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(127,"a",23),t.\u0275\u0275text(128),t.\u0275\u0275pipe(129,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(130,"a",23),t.\u0275\u0275text(131),t.\u0275\u0275pipe(132,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(133,"a",23),t.\u0275\u0275text(134),t.\u0275\u0275pipe(135,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(136,"a",23),t.\u0275\u0275text(137),t.\u0275\u0275pipe(138,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(139,"a",26),t.\u0275\u0275text(140),t.\u0275\u0275pipe(141,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(142,"a",27),t.\u0275\u0275text(143),t.\u0275\u0275pipe(144,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(145,"a",28),t.\u0275\u0275text(146),t.\u0275\u0275pipe(147,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(148,"mat-expansion-panel")(149,"mat-expansion-panel-header",21)(150,"mat-panel-title")(151,"span",24),t.\u0275\u0275text(152),t.\u0275\u0275pipe(153,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(154,"div",25),t.\u0275\u0275template(155,UT,3,4,"a",29),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(156,"mat-expansion-panel")(157,"mat-expansion-panel-header",21)(158,"mat-panel-title")(159,"span",24),t.\u0275\u0275text(160),t.\u0275\u0275pipe(161,"uppercase"),t.\u0275\u0275pipe(162,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(163,"div",25)(164,"a",23),t.\u0275\u0275text(165),t.\u0275\u0275pipe(166,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(167,"a",23),t.\u0275\u0275text(168),t.\u0275\u0275pipe(169,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(170,"a",23),t.\u0275\u0275text(171),t.\u0275\u0275pipe(172,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(173,"mat-expansion-panel")(174,"mat-expansion-panel-header",21)(175,"mat-panel-title")(176,"span"),t.\u0275\u0275text(177),t.\u0275\u0275pipe(178,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(179,"div",25)(180,"a",23),t.\u0275\u0275text(181),t.\u0275\u0275pipe(182,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(183,"a",23),t.\u0275\u0275text(184),t.\u0275\u0275pipe(185,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(186,"a",30),t.\u0275\u0275text(187),t.\u0275\u0275pipe(188,"translate"),t.\u0275\u0275elementEnd()()()(),t.\u0275\u0275element(189,"div",31),t.\u0275\u0275elementStart(190,"a",32),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(191,"svg",17)(192,"defs")(193,"style"),t.\u0275\u0275text(194," .a { fill: #3d5a96; } .b { fill: #fff; } "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(195,"circle",18)(196,"path",19),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275element(197,"div",31),t.\u0275\u0275elementStart(198,"div",33)(199,"div",34),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(200,"svg",35)(201,"defs")(202,"style"),t.\u0275\u0275text(203," .a { fill: #3d5a96; } .b { fill: #fff; } "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(204,"circle",18)(205,"path",19),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(206,jT,4,7,"b",36),t.\u0275\u0275template(207,HT,3,7,"p",37),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(208,VT,12,12,"ng-template",null,38,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(210,WT,9,12,"ng-template",null,39,t.\u0275\u0275templateRefExtractor)),2&o){const m=t.\u0275\u0275reference(209),M=t.\u0275\u0275reference(211);t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",r.onCouriersPage?"footer-on-couriers-page":"footer-content"),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.homePage),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(10,78,"THEME.COMPONENTS.FOOTER.NAVIGATION")),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.homePage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(14,80,"THEME.COMPONENTS.FOOTER.HOME")),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind1(17,82,r.categories)),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(21,84,"THEME.COMPONENTS.FOOTER.ABOUT_US")),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.termsAndConditionsLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(25,86,"THEME.COMPONENTS.FOOTER.TERMS_AND_CONDITIONS")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.privacyPolicyLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(29,88,"THEME.COMPONENTS.FOOTER.PRIVACY_POLICY")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.cookiesPolicyLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(33,90,"THEME.COMPONENTS.FOOTER.COOKIES_POLICY")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.personalDataConsentLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(37,92,"THEME.COMPONENTS.FOOTER.CONSENT_DECLARATION")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.fusionProjectLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(41,94,"ROUTES.ABOUT.FUSION_PROJECT")," "),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(45,96,"THEME.COMPONENTS.FOOTER.NACP")," "),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(49,98,"THEME.COMPONENTS.FOOTER.NAMMD")," "),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(53,100,"THEME.COMPONENTS.FOOTER.SDO_PLATFORM")," "),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(57,102,"THEME.COMPONENTS.FOOTER.MY_ACCOUNT")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.user)("ngIfElse",m),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(62,104,"THEME.COMPONENTS.FOOTER.HELP")),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.shoppingInfoPage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(66,106,"THEME.COMPONENTS.FOOTER.HOW_TO_BUY")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.paymentTypeLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(70,108,"THEME.COMPONENTS.FOOTER.PAYMENT_METHODS")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.shippingLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(74,110,"THEME.COMPONENTS.FOOTER.TRANSPORT")),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(79,112,"THEME.COMPONENTS.FOOTER.CONTACT")),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(83,114,"THEME.COMPONENTS.FOOTER.CONTACT_EMAIL")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.contactPageLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(87,116,"THEME.COMPONENTS.FOOTER.CONTACT_FORM_CLIENT")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.contactB2BPageLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(91,118,"THEME.COMPONENTS.FOOTER.CONTACT_FORM_B2B")," "),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(95,120,"THEME.COMPONENTS.FOOTER.FOLLOW_US")),t.\u0275\u0275advance(12),t.\u0275\u0275property("expandedHeight","48px"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(109,122,"THEME.COMPONENTS.FOOTER.NAVIGATION")),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.homePage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(113,124,"THEME.COMPONENTS.FOOTER.HOME")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind1(116,126,r.categories)),t.\u0275\u0275advance(3),t.\u0275\u0275property("expandedHeight","48px"),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(122,128,"THEME.COMPONENTS.FOOTER.ABOUT_US")),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.termsAndConditionsLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(126,130,"THEME.COMPONENTS.FOOTER.TERMS_AND_CONDITIONS")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.privacyPolicyLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(129,132,"THEME.COMPONENTS.FOOTER.PRIVACY_POLICY")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.cookiesPolicyLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(132,134,"THEME.COMPONENTS.FOOTER.COOKIES_POLICY")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.personalDataConsentLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(135,136,"THEME.COMPONENTS.FOOTER.CONSENT_DECLARATION")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.fusionProjectLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(138,138,"ROUTES.ABOUT.FUSION_PROJECT")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(141,140,"THEME.COMPONENTS.FOOTER.NACP")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(144,142,"THEME.COMPONENTS.FOOTER.NAMMD")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(147,144,"THEME.COMPONENTS.FOOTER.SDO_PLATFORM")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("expandedHeight","48px"),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(153,146,"THEME.COMPONENTS.FOOTER.MY_ACCOUNT")),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",r.user)("ngIfElse",M),t.\u0275\u0275advance(2),t.\u0275\u0275property("expandedHeight","48px"),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(161,148,t.\u0275\u0275pipeBind1(162,150,"THEME.COMPONENTS.FOOTER.HELP"))," "),t.\u0275\u0275advance(4),t.\u0275\u0275property("routerLink",r.shoppingInfoPage),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(166,152,"THEME.COMPONENTS.FOOTER.HOW_TO_BUY")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.paymentTypeLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(169,154,"THEME.COMPONENTS.FOOTER.PAYMENT_METHODS")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.shippingLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(172,156,"THEME.COMPONENTS.FOOTER.TRANSPORT")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("expandedHeight","48px"),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(178,158,"THEME.COMPONENTS.FOOTER.CONTACT")," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("routerLink",r.contactPageLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(182,160,"THEME.COMPONENTS.FOOTER.CONTACT_FORM_CLIENT")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.contactB2BPageLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(185,162,"THEME.COMPONENTS.FOOTER.CONTACT_FORM_B2B")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(188,164,"THEME.COMPONENTS.FOOTER.CONTACT_EMAIL")," "),t.\u0275\u0275advance(19),t.\u0275\u0275property("libFeatureEnabled",r.featureFlags.BoldCopyright),t.\u0275\u0275advance(1),t.\u0275\u0275property("libFeatureDisabled",r.featureFlags.BoldCopyright)}},dependencies:[Ze.NgClass,Ze.NgForOf,Ze.NgIf,to.rH,je.xw,je.SQ,je.Wh,je.yH,lt.oO,dd.pp,dd.ib,dd.yz,dd.yK,fn.b,kM.S,kM.z,PT,Ze.AsyncPipe,Ze.UpperCasePipe,ea.X$],styles:[".footer-on-couriers-page[_ngcontent-%COMP%]{max-width:1208px!important}@media (max-width: 1404px){.footer-on-couriers-page[_ngcontent-%COMP%]{max-width:calc(100% - 80px)!important}}@media (max-width: 960px){.footer-on-couriers-page[_ngcontent-%COMP%]{max-width:unset}}.footer[_ngcontent-%COMP%]{background-color:#d5d9de;color:#6d6d6d;min-height:100px;padding:23px;line-height:20px}.footer[_ngcontent-%COMP%]   .footer-content[_ngcontent-%COMP%]{max-width:1400px!important}.footer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{height:44px}.footer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   .footer-logo[_ngcontent-%COMP%]{height:44px;width:200px}.footer[_ngcontent-%COMP%]   .col-title[_ngcontent-%COMP%]{line-height:25px;text-transform:uppercase;font-size:14px;font-weight:bolder;color:#242424}.footer[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{font-size:14px;line-height:25px;text-decoration:none;color:#242424}.footer[_ngcontent-%COMP%]   .copyright[_ngcontent-%COMP%]{color:#242424}.small-footer-container[_ngcontent-%COMP%], .mobile-social-icon-container[_ngcontent-%COMP%]{display:none}.facebook-link[_ngcontent-%COMP%]{max-width:40px;max-height:40px}.facebook-link__mobile[_ngcontent-%COMP%]{margin:16px 0}mat-panel-title[_ngcontent-%COMP%]{text-align:center}@media (max-width: 960px){.footer-container[_ngcontent-%COMP%]{display:none!important}.small-footer-container[_ngcontent-%COMP%]{display:block}mat-expansion-panel[_ngcontent-%COMP%]{background:#d5d9de!important;box-shadow:none!important;border-top:1px solid #bbbbbb}mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background:#d5d9de!important}.small-footer-container[_ngcontent-%COMP%]{margin-bottom:0!important}.footer[_ngcontent-%COMP%]{padding:0 0 24px}.footer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{margin-bottom:16px!important}.footer-title[_ngcontent-%COMP%]{white-space:nowrap}.copyright[_ngcontent-%COMP%]{flex-direction:column!important}.expansion-element[_ngcontent-%COMP%]{font-size:14px;margin-left:-8px}.expansion-element[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{height:48px;width:100%;padding:0 16px;border-top:1px solid #bbbbbb}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:bolder;flex-grow:unset;margin:0 auto}.logo-container[_ngcontent-%COMP%]{margin-top:16px;align-self:center}}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],eg.prototype,"user",void 0);var zT=i(8141);function $T(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"a",16),t.\u0275\u0275element(1,"img",17),t.\u0275\u0275elementStart(2,"span",18),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("routerLink",r.authenticationLink),t.\u0275\u0275advance(1),t.\u0275\u0275property("alt",null==r.user||null==r.user.profile?null:r.user.profile.username),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,3,"THEME.COMPONENTS.FOOTER.MY_ACCOUNT"))}}function KT(c,o){1&c&&t.\u0275\u0275element(0,"app-user-location",19),2&c&&t.\u0275\u0275property("isOnMobileGuestMenu",!0)}function QT(c,o){1&c&&t.\u0275\u0275element(0,"app-user-location",25)}function XT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div")(1,"div",20),t.\u0275\u0275element(2,"img",21),t.\u0275\u0275elementStart(3,"div",22)(4,"strong",23),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(7,QT,1,0,"app-user-location",24),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("alt",null==r.user||null==r.user.profile?null:r.user.profile.username)("src",(null==r.user||null==r.user.profile||null==r.user.profile.files||null==r.user.profile.files.profile_image?null:r.user.profile.files.profile_image.url)||"/assets/images/avatars/avatar-doe_40x40.png",t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(1),t.\u0275\u0275property("routerLink",r.patientAccountMenuLink),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,5,"THEME.COMPONENTS.FOOTER.MY_ACCOUNT")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",(null==r.user?null:r.user.getType())===r.userRole.CLIENT)}}function ZT(c,o){1&c&&t.\u0275\u0275element(0,"mat-divider")}function JT(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-accordion")(1,"mat-expansion-panel",26,27)(3,"mat-expansion-panel-header",28),t.\u0275\u0275element(4,"img",21),t.\u0275\u0275elementStart(5,"div",29)(6,"strong",23),t.\u0275\u0275text(7),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(9,ZT,1,0,"mat-divider",4),t.\u0275\u0275elementStart(10,"mat-nav-list")(11,"mat-list-item")(12,"a",30),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.signOut())}),t.\u0275\u0275elementStart(13,"i",31),t.\u0275\u0275text(14,"power_settings_new"),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(15),t.\u0275\u0275pipe(16,"uppercase"),t.\u0275\u0275pipe(17,"translate"),t.\u0275\u0275elementEnd()()()()()}if(2&c){const r=t.\u0275\u0275reference(2),m=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("hideToggle",!0),t.\u0275\u0275advance(3),t.\u0275\u0275property("alt",null==m.user||null==m.user.profile?null:m.user.profile.username)("src",m.getUserImage(),t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(8,6,"THEME.COMPONENTS.FOOTER.MY_ACCOUNT")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.opened),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(16,8,t.\u0275\u0275pipeBind1(17,10,"PAGES.LOG_OUT"))," ")}}const Xh=function(){return{exact:!0}};function qT(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"a",33)(1,"strong"),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"uppercase"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("routerLink",r.url)("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(5,Xh)),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,3,r.name))}}function eD(c,o){1&c&&t.\u0275\u0275element(0,"mat-divider",40)}function tD(c,o){1&c&&t.\u0275\u0275element(0,"mat-divider",40)}function nD(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"mat-list-item")(2,"a",41),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"truncate"),t.\u0275\u0275pipe(5,"uppercase"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(6,tD,1,0,"mat-divider",39),t.\u0275\u0275elementContainerEnd()),2&c){const r=o.$implicit,m=o.last,M=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.url)("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(9,Xh)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(4,4,t.\u0275\u0275pipeBind1(5,7,r.name),M.window.innerWidth<M.breakpoints.MOBILE_L?M.mobileTruncateSize:M.desktopTruncateSize)," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!m)}}function iD(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"mat-nav-list"),t.\u0275\u0275template(1,nD,7,10,"ng-container",9),t.\u0275\u0275elementEnd()),2&c){const r=t.\u0275\u0275nextContext(2).$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r.children)}}function rD(c,o){if(1&c&&t.\u0275\u0275element(0,"img",46),2&c){const r=t.\u0275\u0275nextContext(2).$implicit,m=t.\u0275\u0275nextContext(4);t.\u0275\u0275propertyInterpolate1("srcset","",m.menuMarketImages[r.categoryId+"_MOBILE"]," 2x"),t.\u0275\u0275property("src",m.menuMarketImages[r.categoryId+"_DESKTOP"],t.\u0275\u0275sanitizeUrl)("alt",r.categoryId)}}function oD(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div")(1,"a",43),t.\u0275\u0275template(2,rD,1,3,"img",44),t.\u0275\u0275elementStart(3,"div",45),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"truncate"),t.\u0275\u0275elementEnd()()()),2&c){const r=t.\u0275\u0275nextContext().$implicit,m=t.\u0275\u0275nextContext(3).$implicit,M=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("routerLink",r.url),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","F"===m.categoryId),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(5,3,r.name,M.window.innerWidth<M.breakpoints.MOBILE_L?16:25)," ")}}function aD(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,oD,6,6,"div",4),t.\u0275\u0275elementContainerEnd()),2&c){const r=o.$implicit,m=t.\u0275\u0275nextContext(4);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.marketCategories.includes(r.categoryId))}}function sD(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",42),t.\u0275\u0275template(2,aD,2,1,"ng-container",9),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementContainerEnd()),2&c){const r=t.\u0275\u0275nextContext(2).$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",r.children)}}function lD(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"mat-expansion-panel",34,35)(3,"mat-expansion-panel-header",36)(4,"a",37),t.\u0275\u0275listener("click",function(m){return m.stopPropagation()}),t.\u0275\u0275elementStart(5,"strong",38),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"uppercase"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(8,eD,1,0,"mat-divider",39),t.\u0275\u0275template(9,iD,2,1,"mat-nav-list",4),t.\u0275\u0275template(10,sD,3,1,"ng-container",4),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementContainerEnd()),2&c){const r=t.\u0275\u0275reference(2),m=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(4),t.\u0275\u0275property("routerLink",m.url),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(7,5,m.name)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",r.opened),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","F"!==m.categoryId),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","F"===m.categoryId)}}function cD(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,qT,4,6,"a",32),t.\u0275\u0275template(2,lD,11,7,"ng-container",4),t.\u0275\u0275element(3,"mat-divider"),t.\u0275\u0275elementContainerEnd()),2&c){const r=o.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.children.length||r.isSubcategoryHidden()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.children.length&&!r.isSubcategoryHidden())}}class tg{constructor(o,r,m,M,I,G,Me){this.router=o,this.spinner=r,this.userService=m,this.snackbarMessageService=M,this.appService=I,this.dialog=G,this.fbPixelTrackingService=Me,this.sidenavClose=new t.EventEmitter,this.openNotificationsMobile=new t.EventEmitter,this.openCartSidenav=new t.EventEmitter,this.menuMarketImages=St.JUc,this.categories=[],this.window=window,this.userRole=St.FWD,this.businessLinkTypes=[],this.breakpoints=St.u3l,this.mobileTruncateSize=25,this.desktopTruncateSize=60,this.authenticationLink=St.baM,this.patientAccountMenuLink=St.unn,this.homePageLink=St.s67,this.termsAndConditionsLink=St.ZOI,this.contactPageLink=St.rUW,this.favoritePageLink=St.tKG,this.marketCategories=Object.keys(St.rHK)}ngOnInit(){this.businessLinkTypes=Object.values(St.ejx),this.categoriesSub=this.userService.userSource.pipe((0,Sr.w)(()=>(this.userType=this.userService.getUserType(),this.links=this.businessLinkTypes.includes(this.userType)?kS.Hp:zT.l,this.appService.currentCategories))).subscribe(o=>this.setCategories(o)),this.openNotificationsMobile.emit()}ngOnDestroy(){this.categoriesSub.unsubscribe()}setCategories(o){o&&St.F6k.forEach(r=>{o.forEach(m=>{m.categoryId===r&&!this.alreadyExistingCategory(r)&&"A"!==m.categoryId&&this.categories.push(m)})})}alreadyExistingCategory(o){return!!this.categories?.find(r=>r.categoryId===o)}signOut(){this.router.navigate([St.s67]).then(()=>{this.userService.logout(St.S2t.MOBILE_CATEGORIES).subscribe(()=>{this.snackbarMessageService.displayMessage(St.CsS.SUCCESS,"PAGES.PATIENT.PATIENT_ACCOUNT_MENU.SUCCESSFULLY_LOGGED_OUT")})})}close(){this.sidenavClose.emit()}getUserImage(){return this.user?.profile?.files?.profile_image?.url||`/${St._G6}`}trackInitCheckout(){this.fbPixelTrackingService.initiateCheckout()}openCart(){this.trackInitCheckout(),this.openCartSidenav.emit()}}tg.\u0275fac=function(o){return new(o||tg)(t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(yu.t2),t.\u0275\u0275directiveInject(Al.O),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken),t.\u0275\u0275directiveInject(Fp.z),t.\u0275\u0275directiveInject(rl.on),t.\u0275\u0275directiveInject(St.vio.PixelTrackingInitCheckoutService))},tg.\u0275cmp=t.\u0275\u0275defineComponent({type:tg,selectors:[["app-mobile-categories-menu"]],outputs:{sidenavClose:"sidenavClose",openNotificationsMobile:"openNotificationsMobile",openCartSidenav:"openCartSidenav"},decls:51,vars:44,consts:[["fxLayout","column",1,"mobile-menu"],["fxLayout","row",1,"menu-item","account"],["fxLayoutAlign","start center","mat-button","",3,"routerLink",4,"ngIf"],["fxLayoutAlign","end center","class","menu-item location",3,"isOnMobileGuestMenu",4,"ngIf"],[4,"ngIf"],["fxFlex","48px","fxLayoutAlign","start center","mat-button","","routerLinkActive","horizontal-active-link",1,"menu-item",3,"routerLink","routerLinkActiveOptions"],[1,"material-icons"],[1,"ml-8"],["fxLayout","column"],[4,"ngFor","ngForOf"],["fxFlex","48px","fxLayoutAlign","start center","mat-button","","routerLinkActive","horizontal-active-link",1,"menu-item",3,"routerLinkActiveOptions","click"],["width","24","height","24","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.70345 9.23584L5.78905 6.1748C5.89548 5.87513 6.24032 5.71223 6.55748 5.81279C6.79802 5.88921 6.95341 6.09234 6.97044 6.3176L8.48389 14.1975L9.36088 1L1.49988 5.24161V9.24589L4.70345 9.23584Z","fill","#7b7b7b"],["d","M12.5911 10.9849L13.0615 9.6595C13.0636 9.65347 13.0679 9.64744 13.07 9.6414C13.0785 9.62129 13.087 9.60118 13.0977 9.58308C13.1062 9.56699 13.1147 9.55291 13.1232 9.53883C13.1339 9.52274 13.1466 9.50665 13.1594 9.49258C13.1722 9.4785 13.1828 9.46442 13.1956 9.45034C13.2084 9.43626 13.2233 9.42419 13.2382 9.41213C13.2531 9.40006 13.2658 9.38799 13.2829 9.37794C13.2999 9.36587 13.3169 9.35783 13.3339 9.34777C13.351 9.33973 13.3659 9.32967 13.3829 9.32364C13.3999 9.31559 13.4191 9.30956 13.4383 9.30353C13.4574 9.29749 13.4744 9.29146 13.4936 9.28744C13.5106 9.28341 13.5298 9.2814 13.5489 9.27738C13.5702 9.27537 13.5915 9.27134 13.6149 9.27134C13.6213 9.27134 13.6277 9.26933 13.6362 9.26933L18.4788 9.25727C18.4852 9.25727 18.4916 9.25928 18.5001 9.25928V5.24091L10.6796 1.02344L12.5911 10.9849Z","fill","#7b7b7b"],["d","M6.1871 8.66211L5.71668 9.98951C5.71455 9.99554 5.71029 10.0016 5.70816 10.0076C5.69965 10.0277 5.69113 10.0458 5.68049 10.0659C5.67198 10.082 5.66346 10.0961 5.65495 10.1122C5.6443 10.1283 5.63153 10.1424 5.62089 10.1584C5.60812 10.1725 5.59747 10.1886 5.5847 10.2007C5.57193 10.2148 5.55703 10.2248 5.54213 10.2369C5.52723 10.249 5.51233 10.261 5.49743 10.2731C5.4804 10.2831 5.46337 10.2932 5.44634 10.3033C5.42931 10.3113 5.41441 10.3214 5.39738 10.3294C5.38036 10.3374 5.3612 10.3435 5.34204 10.3495C5.32288 10.3556 5.30585 10.3616 5.28457 10.3656C5.26754 10.3696 5.24838 10.3716 5.22922 10.3736C5.20794 10.3777 5.18452 10.3797 5.16324 10.3797C5.15685 10.3797 5.15046 10.3817 5.14195 10.3817L1.50201 10.3938H1.49988V14.4141L7.96237 17.9015L6.1871 8.66211Z","fill","#7b7b7b"],["d","M18.4797 10.4042L14.0713 10.4162L12.9857 13.4773C12.8792 13.7769 12.5344 13.9399 12.2172 13.8393C11.9767 13.7629 11.8213 13.5597 11.8043 13.3345L10.2823 5.40234L9.4032 18.6782L9.99921 19L18.4988 14.4145V10.4022C18.4903 10.4022 18.486 10.4042 18.4797 10.4042Z","fill","#7b7b7b"],["fxLayoutAlign","start center","mat-button","",3,"routerLink"],["mat-card-avatar","","src","assets/images/avatars/avatar-doe_40x40.png",3,"alt"],[1,"ml-16"],["fxLayoutAlign","end center",1,"menu-item","location",3,"isOnMobileGuestMenu"],["fxLayoutAlign","center center",1,"user-account","logged-user-options"],["mat-card-avatar","",3,"alt","src"],[1,"my-account",3,"routerLink"],["fxLayoutAlign","start center","fxFlex","",1,"ml-8"],["fxLayoutAlign","end center","class","menu-item location",4,"ngIf"],["fxLayoutAlign","end center",1,"menu-item","location"],[1,"no-box-shadow",3,"hideToggle"],["panel",""],["fxLayoutAlign","center center","expandedHeight","61px","collapsedHeight","61px",1,"logged-user-options"],[1,"my-account"],["fxLayoutAlign","start center",3,"click"],[1,"material-icons","mr-8"],["fxFlex","48px","fxLayoutAlign","start center","class","menu-item","routerLinkActive","horizontal-active-link",3,"routerLink","routerLinkActiveOptions",4,"ngIf"],["fxFlex","48px","fxLayoutAlign","start center","routerLinkActive","horizontal-active-link",1,"menu-item",3,"routerLink","routerLinkActiveOptions"],[1,"no-box-shadow"],["expansionPanel",""],["expandedHeight","48px"],["routerLinkActive","horizontal-active-link",1,"fit-content",3,"routerLink","click"],["fxFlexAlign","start"],["class","shorter-divider",4,"ngIf"],[1,"shorter-divider"],["fxLayoutAlign","start center","routerLinkActive","horizontal-active-link",3,"routerLink","routerLinkActiveOptions"],["fxLayout","row wrap",1,"market-dropdown-mobile"],["fxLayout","column","fxLayoutAlign","start center",1,"sub-container-mobile",3,"routerLink"],["class","market-img",3,"src","srcset","alt",4,"ngIf"],[1,"sub-name-mobile","break-words"],[1,"market-img",3,"src","srcset","alt"]],template:function(o,r){1&o&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1),t.\u0275\u0275template(2,$T,5,5,"a",2),t.\u0275\u0275template(3,KT,1,1,"app-user-location",3),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,XT,8,7,"div",4),t.\u0275\u0275template(5,JT,18,12,"mat-accordion",4),t.\u0275\u0275element(6,"mat-divider"),t.\u0275\u0275elementStart(7,"a",5)(8,"i",6),t.\u0275\u0275text(9,"home"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"strong",7),t.\u0275\u0275text(11),t.\u0275\u0275pipe(12,"uppercase"),t.\u0275\u0275pipe(13,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(14,"mat-divider"),t.\u0275\u0275elementStart(15,"mat-accordion",8),t.\u0275\u0275template(16,cD,4,2,"ng-container",9),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(17,"a",5)(18,"i",6),t.\u0275\u0275text(19,"favorite"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(20,"strong",7),t.\u0275\u0275text(21),t.\u0275\u0275pipe(22,"uppercase"),t.\u0275\u0275pipe(23,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(24,"mat-divider"),t.\u0275\u0275elementStart(25,"a",10),t.\u0275\u0275listener("click",function(){return r.openCart()}),t.\u0275\u0275elementStart(26,"i",6),t.\u0275\u0275text(27,"shopping_cart"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(28,"strong",7),t.\u0275\u0275text(29),t.\u0275\u0275pipe(30,"uppercase"),t.\u0275\u0275pipe(31,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(32,"mat-divider"),t.\u0275\u0275elementStart(33,"a",5),t.\u0275\u0275namespaceSVG(),t.\u0275\u0275elementStart(34,"svg",11),t.\u0275\u0275element(35,"path",12)(36,"path",13)(37,"path",14)(38,"path",15),t.\u0275\u0275elementEnd(),t.\u0275\u0275namespaceHTML(),t.\u0275\u0275elementStart(39,"strong",7),t.\u0275\u0275text(40),t.\u0275\u0275pipe(41,"uppercase"),t.\u0275\u0275pipe(42,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(43,"mat-divider"),t.\u0275\u0275elementStart(44,"a",5)(45,"i",6),t.\u0275\u0275text(46,"info"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(47,"strong",7),t.\u0275\u0275text(48),t.\u0275\u0275pipe(49,"uppercase"),t.\u0275\u0275pipe(50,"translate"),t.\u0275\u0275elementEnd()()()),2&o&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!r.user),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.user),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.user&&r.user.getType()===r.userRole.CLIENT),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.user&&r.user.getType()!==r.userRole.CLIENT),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",r.homePageLink)("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(39,Xh)),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(12,19,t.\u0275\u0275pipeBind1(13,21,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.HOME"))," "),t.\u0275\u0275advance(5),t.\u0275\u0275property("ngForOf",r.categories),t.\u0275\u0275advance(1),t.\u0275\u0275property("routerLink",r.favoritePageLink)("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(40,Xh)),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(22,23,t.\u0275\u0275pipeBind1(23,25,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.FAVORITE"))," "),t.\u0275\u0275advance(4),t.\u0275\u0275property("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(41,Xh)),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(30,27,t.\u0275\u0275pipeBind1(31,29,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.BASKET"))," "),t.\u0275\u0275advance(4),t.\u0275\u0275property("routerLink",r.termsAndConditionsLink)("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(42,Xh)),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(41,31,t.\u0275\u0275pipeBind1(42,33,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.ABOUT_US"))," "),t.\u0275\u0275advance(4),t.\u0275\u0275property("routerLink",r.contactPageLink)("routerLinkActiveOptions",t.\u0275\u0275pureFunction0(43,Xh)),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(49,35,t.\u0275\u0275pipeBind1(50,37,"THEME.COMPONENTS.MOBILE_CATEGORIES_MENU.ADD_PROFILE_IMAGE_DIALOG.INFO_CONTACT"))," "))},dependencies:[Ze.NgForOf,Ze.NgIf,to.rH,to.Od,je.xw,je.Wh,je.XD,je.yH,Ht.Nr,Qm.lb,dd.pp,dd.ib,dd.yz,cd.U,cd.oh,ar.d,fn.b,OM.W5,Ze.UpperCasePipe,AM.W,ea.X$],styles:[".market-dropdown-mobile[_ngcontent-%COMP%]{padding:16px 6px 23px 12px}.market-dropdown-mobile[_ngcontent-%COMP%]   .sub-container-mobile[_ngcontent-%COMP%]{max-width:122px;max-height:158px;width:calc((87vw - 26px) / 3);height:calc((87vw - 26px) / 3 * 1.33);cursor:pointer}.market-dropdown-mobile[_ngcontent-%COMP%]   .sub-container-mobile[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:10px;max-width:90px;max-height:90px;width:calc((87vw - 26px) / 3 * .73);height:calc((87vw - 26px) / 3 * .73);border-radius:50%}.market-dropdown-mobile[_ngcontent-%COMP%]   .sub-container-mobile[_ngcontent-%COMP%]   .sub-name-mobile[_ngcontent-%COMP%]{text-align:center;vertical-align:top;margin-top:10px;padding:0 6px;max-height:40px}.user-account[_ngcontent-%COMP%]{height:48px}.my-account[_ngcontent-%COMP%]{height:40px;margin-right:auto}.my-account[_ngcontent-%COMP%]:focus{outline:none}.shorter-divider[_ngcontent-%COMP%]{margin:0 16px}.menu-item[_ngcontent-%COMP%]:not(.horizontal-active-link)   .material-icons[_ngcontent-%COMP%]{color:#7b7b7b}.menu-item.horizontal-active-link[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{fill:#00853b}.fit-content[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}@media (max-width: 420px){.market-dropdown-mobile[_ngcontent-%COMP%]{padding:16px 2px 23px 10px}.market-dropdown-mobile[_ngcontent-%COMP%]   .sub-container-mobile[_ngcontent-%COMP%]   .sub-name-mobile[_ngcontent-%COMP%]{font-size:13px;margin-top:5px}}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],tg.prototype,"user",void 0);const hD=["pagesWrapper"],fD=["hamburgerMenuSidenav"],mD=["sidenav"],gD=["rightSidenav"],_D=["stickySearch"];function vD(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",27),t.\u0275\u0275element(1,"download-mobile-app-notification"),t.\u0275\u0275elementEnd())}function bD(c,o){if(1&c&&t.\u0275\u0275element(0,"frontend-notifications-menu",32),2&c){const r=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("firebaseNotificationMode",!0)("notificationDetails",r.orderNotification)}}function yD(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",30),t.\u0275\u0275template(1,bD,1,2,"frontend-notifications-menu",31),t.\u0275\u0275elementEnd()),2&c){const r=o.last;t.\u0275\u0275property("@fadeInOut",r?"visible":"hidden"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r)}}function CD(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",28),t.\u0275\u0275template(1,yD,2,2,"div",29),t.\u0275\u0275elementEnd()),2&c){const r=o.ngIf;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",r)}}function ED(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-mobile-categories-menu",33),t.\u0275\u0275listener("sidenavClose",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext(),I=t.\u0275\u0275reference(9);return t.\u0275\u0275resetView(M.closeSidenav(I))})("openCartSidenav",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.openCartSidenav())})("openNotificationsMobile",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.checkIfUserAcceptedCookies())}),t.\u0275\u0275elementEnd()}}function xD(c,o){if(1&c&&t.\u0275\u0275element(0,"app-mobile-filters",34),2&c){const r=t.\u0275\u0275nextContext(),m=t.\u0275\u0275reference(14);t.\u0275\u0275property("isSidenavOpen",m.opened)("businessProfile",r.businessProfile)}}function MD(c,o){1&c&&t.\u0275\u0275element(0,"div",35)}function SD(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-menu",36),t.\u0275\u0275listener("menusClosed",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.shouldCloseCategoryMenus=!1)}),t.\u0275\u0275elementEnd()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("fxHide",r.hideNavigateMenu)("shouldCloseAllMenus",r.shouldCloseCategoryMenus)}}const wD=function(c){return{"raise-arrow":c}};function OD(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",37),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.scrollToTop())}),t.\u0275\u0275elementStart(1,"mat-icon"),t.\u0275\u0275text(2,"arrow_upward"),t.\u0275\u0275elementEnd()()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(1,wD,r.routingVariable.isProductPage))}}const TD=function(c,o){return{"sticky-sidenav":c,"white-background":o}},DD=function(c){return{"ios-native-padding-top ios-native-padding-bottom":c}},ID=function(c,o,r){return{"filter-sidenav":c,"favorites-preview-sidenav":o,"ios-native-padding-top ios-native-padding-bottom":r}},PD=function(c){return{"fix-home-page-horizontal-scroll":c}},AD=function(c,o){return[c,o]},LD=function(c){return{"mb-2":c}};class ng{constructor(o,r,m,M,I,G,Me,_t,Gt,Pn,kn,fi,xi,Ui,qi,Dr,ro,Do){this.dialog=o,this.userService=r,this.sidenavService=m,this.snackBar=M,this.cookies=I,this.router=G,this.activatedRoute=Me,this.spinner=_t,this.idle=Gt,this.cookieService=Pn,this.userLocationService=kn,this.store=fi,this.messagingService=xi,this.sidenavFacade=Ui,this.orderService=qi,this.foregroundDetectionService=Dr,this.renderer=ro,this.notificationService=Do,this.routingVariable={onPartnerLandingPage:!1,onCouriersPage:!1,onHomePage:!1,onInfoCenterPage:!1,onCartPage:!1,authPage:!1,signupPage:!1,onRestaurantPage:!1,onPatientOrderPage:!1,isProductPage:!1,isSendItPage:!1,isBusinessProfilePage:!1,isNotificationPage:!1,onNewsletterUnsubscribePage:!1},this.viewInitialized=!1,this.showBackToTop=!1,this.sidenavTypes=St.YPs,this.sidenavIsOpen=!1,this.breakpoints=St.u3l,this.shouldStartPromotionAnimation=!1,this.shouldCloseMenus=!1,this.views=St.kOt,this.promotionType=Bi.MASK,this.isMaskPromotionActive=l.Z.isPromotionActive,this.firebaseMessage=new Ks.x,this.hasNotificationToken=new Ks.x,this.destroy$=new Ks.x,this.carmen=St.VLR,this.shouldCloseCategoryMenus=!1,this.displayDownloadAppNotification=!1}get areNativeNotificationsAllowed(){return St.VLR.isNativePlatform?this.permissionsAllowedOnNativeDevice:"granted"===Notification.permission}get isIOS(){return!!navigator.userAgent.match("iPhone")}onWindowResize(){this.shouldCloseCategoryMenus||(this.shouldCloseCategoryMenus=!0)}ngOnInit(){this.sidenavType$=this.sidenavFacade.sidenavType$,this.setAvailableLocations(),this.handleRouterNavigationData(),this.setRouteVariables(this.router.url),this.initiateUserRelatedProcedures(),this.setBusinessProfile(this.router.url),this.window=window,this.checkAppVersion()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}closeAllCategoryMenus(){this.shouldCloseCategoryMenus=!0}checkAppVersion(){}handleRouterNavigationData(){St.C39.some(o=>this.router.url.split("/").includes(o))&&this.store.dispatch(Ei.e.setNavigationToRegistration({shouldRegister:!0})),this.router.events.subscribe(o=>{o instanceof to.m2&&(St.C39.some(r=>this.router.url.split("/").includes(r))&&this.store.dispatch(Ei.e.setNavigationToRegistration({shouldRegister:!0})),this.setBusinessProfilePageState(),this.setRouteVariables(o.url),this.setBusinessProfile(o.url),this.setCheckoutPageRelatedData(),this.scrollSidenavContent(),(this.routingVariable.onHomePage||this.routingVariable.onPatientOrderPage)&&this.notificationService.notificationsSubject.next([])),o instanceof to.OD&&this.setRouteVariables(o.url)})}scrollSidenavContent(){const o=document.querySelector("mat-sidenav-content");!this.routingVariable.isProductPage&&o&&o?.scrollTop>0&&St.VLR.scrollPageToTop()}setCheckoutPageRelatedData(){this.routingVariable.onCartPage&&(this.shouldCloseMenus=!0,this.rightSidenav&&this.rightSidenav.close())}setBusinessProfilePageState(){if(this.activatedRoute.children[0].url.value&&this.activatedRoute.children[0].url.value[0]&&this.activatedRoute.children[0].url.value[1]&&this.activatedRoute.children[0].url.value[1].path!==St.ZTG.MY_ACCOUNT){const r=["shop","farmacie","market"]?.find(m=>this.activatedRoute.children[0].url.value[0].path===m);this.routingVariable.isBusinessProfilePage=!!r}else this.routingVariable.isBusinessProfilePage=!1}setBusinessProfile(o){const m=["shop","farmacie","market","restaurant"].includes(o.split("/")[1]);this.businessProfile=this.activatedRoute.children[0].data._value.profile&&m?this.activatedRoute.children[0].data._value.profile:null}initiateUserRelatedProcedures(){this.userService.user$.subscribe(o=>{o&&((o.isBusiness()||o.isClient())&&this.initializeFirebaseNotifications(),o.getType()===St.FWD.CLIENT&&(this.handleUserTokenAndActivity(),this.foregroundDetectionService.setRenderer(this.renderer)))})}handleUserTokenAndActivity(){(l.Z.isPwaMode?localStorage.getItem(St.Umo.REMEMBER_ME):this.cookies.get(St.Umo.REMEMBER_ME))?.length>1?this.shouldRefreshRememberMeToken():(this.idle.setIdle(3590),this.idle.setTimeout(10),this.idle.setInterrupts(J.WO),this.idle.onIdleEnd.subscribe(()=>this.userService.refreshToken(St.VLR.getRefreshToken())),this.idle.onTimeout.subscribe(()=>{this.userService.logout(St.S2t.PAGES),this.router.navigate([St.s67])})),this.idle.watch()}setAvailableLocations(){this.activatedRoute.data.subscribe(o=>{l.Z.availableLocations=o.availableLocations})}setRouteVariables(o){const r=o.split("?")[0];this.routingVariable.onHomePage=r===`${St.BW$.REDIRECT_TO_HOME_PAGE}`,this.routingVariable.onCouriersPage=r===`/${St.BW$.COURIERS}`,this.routingVariable.onPartnerLandingPage=r===`/${St.BW$.BUSINESS_PARTNERS}`,this.routingVariable.onInfoCenterPage=r===`/${St.D2x.ABOUT}/${St.D2x.CONTENT}`,this.routingVariable.onCartPage=r.includes(`/${St.Jjk.CART}`),this.routingVariable.authPage=r.includes(`/${St.nk1.AUTHENTICATION}`),this.routingVariable.signupPage=r.includes(`/${St.nk1.REGISTRATION}`),this.routingVariable.onRestaurantPage=r===`/${St.nUJ.RESTAURANTS}`,this.routingVariable.isProductPage=r===`/${St.Z2M.PRODUCTS}`,this.routingVariable.onPatientOrderPage=r.includes(`/${St.v2Z.PATIENT_ACCOUNT}/${St.v2Z.ORDERS}`),this.routingVariable.onNewsletterUnsubscribePage=r.includes(`/${St.tNi.NEWSLETTER_UNSUBSCRIBE}`)}initializeFirebaseNotifications(){St.VLR.isNativePlatform?(this.messagingService.registerPush(),this.trackPermissionsOnNativeDevice()):(this.messagingService.requestPermission(),this.messagingService.receiveMessage()),this.firebaseMessage=this.messagingService.currentMessage,this.hasNotificationToken=this.messagingService.hasToken,this.checkPermissions(),this.checkForNativeNotifications()}trackPermissionsOnNativeDevice(){this.messagingService.permissionsAllowedOnNativeDevice.pipe((0,ts.R)(this.destroy$)).subscribe(o=>this.permissionsAllowedOnNativeDevice=o)}checkPermissions(){var o=this;this.hasNotificationToken.pipe((0,ts.R)(this.destroy$)).subscribe(r=>{const m=this.cookieService.get(St.fSN.acceptedNotifications);!this.dialogRef&&!m&&!1===r&&this.user?.getType()===St.FWD.BUSINESS&&(this.dialog.closeAll(),this.dialogRef=this.dialog.open(Qi,{data:{type:Zi.ENABLE_NOTIFICATIONS},minWidth:(0,St.I3d)(St.L7i),maxWidth:(0,St.I3d)(St.L7i),panelClass:"base-panel-class"}),this.dialogRef.afterClosed().pipe((0,So.q)(1)).subscribe(function(){var M=(0,h.Z)(function*(I){!0===I&&(St.VLR.isNativePlatform?yield L.requestPermissions():Notification.requestPermission(),o.cookieService.set(St.fSN.acceptedNotifications,"true",30,"/",window.location.hostname,l.Z.enableSSL,"Strict")),o.dialogRef=void 0});return function(I){return M.apply(this,arguments)}}())),this.areNativeNotificationsAllowed&&this.cookieService.delete(St.fSN.acceptedNotifications,"/",window.location.hostname)})}openBusinessNewOrderNotification(o){this.notificationService.addNotification(o)}checkForNativeNotifications(){this.firebaseMessage.pipe((0,ts.R)(this.destroy$)).subscribe(o=>{if(this.areNativeNotificationsAllowed&&this.user.isClient())return this.openBusinessNewOrderNotification(o?.data);!this.dialogRef&&this.areNativeNotificationsAllowed&&this.openBusinessOrderDialog()})}toggleCartMenu(o){o?this.preventScroll():this.resetScroll()}toggleWishlistMenu(o){o?this.preventScroll():this.resetScroll()}preventScroll(){this.PageOffsetY=window.pageYOffset,this.sidenavIsOpen=!0,this.pagesWrapper.nativeElement.style="overflow: hidden",this.hamburgerMenuSidenav._element.nativeElement.style.bottom=this.PageOffsetY+"px"}resetScroll(){this.sidenavIsOpen=!1,this.pagesWrapper.nativeElement.style="overflow: visible",this.hamburgerMenuSidenav._element.nativeElement.style.bottom="0",window.scrollTo(0,this.PageOffsetY)}pagesContainerClasses(){if(this.routingVariable.onCouriersPage)return"courier-container";if(this.routingVariable.isNotificationPage)return"";const o="checkout"+(this.isIOS?"--iOS":""),r="patient-container"+(this.isIOS?"--iOS":"");return window.innerWidth>St.u3l.DESKTOP_S?this.routingVariable.onHomePage?"home":this.routingVariable.isBusinessProfilePage?"profile-container p-0":this.routingVariable.onCartPage?o:this.routingVariable.onPatientOrderPage?r:this.routingVariable.onNewsletterUnsubscribePage?"newsletter-unsubscribe-page":this.routingVariable.onPartnerLandingPage||this.routingVariable.onCouriersPage?"partner-container":"":this.routingVariable.isProductPage?"product-main":this.routingVariable.isBusinessProfilePage?"p-0 main":this.routingVariable.onRestaurantPage?"restaurant-page":this.routingVariable.onCartPage||this.routingVariable.authPage||this.routingVariable.signupPage?o:this.routingVariable.onPatientOrderPage?r:this.routingVariable.onNewsletterUnsubscribePage?"newsletter-unsubscribe-page":this.routingVariable.isSendItPage?"sendit-page":"main compact"}scrollToTop(){const r=-window.pageYOffset/10,m=setInterval(()=>{0!==window.pageYOffset?window.scrollBy(0,r):clearInterval(m)},10);window.innerWidth<=768&&setTimeout(()=>{window.scrollTo(0,0)})}onWindowScroll(o){this.showBackToTop=o.target.documentElement.scrollTop>300}ngAfterViewInit(){this.router.events.subscribe(o=>{o instanceof to.m2&&(this.sidenav.close(),this.spinner.hide())}),this.sidenavService.setSidenav(this.rightSidenav),this.userLocationService.locationFromStorage&&this.userLocationService.isCookieLocationValid()&&this.checkIfUserAcceptedCookies(),this.viewInitialized=!0}closeSidenav(o){o.close()}checkDisplayedSidenav(){this.sidenavFacade.checkDisplayedSidenav()}changeDisplayedSidenav(o){this.sidenavFacade.changeDisplayedSidenav(o)}checkIfUserAcceptedCookies(){const o=!!this.cookies.get("gdprCookieNotification"),r=!!this.cookies.get("trackingAgreement"),m=!!this.cookies.get("mobileAppDownloadNotificationCookie");this.setPromotionType(),this.updateUserConsent(o,r),!St.VLR.isNativePlatform&&window.innerWidth<this.breakpoints.DESKTOP_S&&!m&&(this.displayDownloadAppNotification=!0),o||St.VLR.isNativePlatform?this.shouldStartPromotionAnimation=this.shouldDisplayMaskPromotion():this.openGdprNotification()}updateUserConsent(o=!1,r=!1){const m=o?r?"granted":"denied":"";m&&window.gtag("consent","update",{ad_storage:m,analytics_storage:m,ad_personalization:m,ad_user_data:m})}openGdprNotification(){setTimeout(()=>{this.snackBar.openFromComponent(di,{panelClass:"gdprCookieNotification",verticalPosition:"bottom"}).afterDismissed().pipe((0,So.q)(1),(0,oc.b)(()=>{this.cookies.get("gdprCookieNotification")&&(this.shouldStartPromotionAnimation=this.shouldDisplayMaskPromotion())})).subscribe()})}shouldDisplayMaskPromotion(){const o=!this.user||this.user&&this.user.getType()===St.FWD.CLIENT,r=!this.routingVariable.onCouriersPage&&!this.routingVariable.onPartnerLandingPage,m=!!this.cookieService.get(St.fSN.seenSurgicalMaskPromotion);return o&&r&&!m&&this.isMaskPromotionActive}setPromotionType(){const o=Bi[l.Z.promotionType];o&&(this.promotionType=o)}getMainClassIfNotCourierPage(){return this.routingVariable.onCouriersPage||this.routingVariable.isNotificationPage?"":"main"}shouldOpenSidenavOnOverMode(o){return o===St.YPs.NOTIFICATION&&window.innerWidth>=St.u3l.DESKTOP_S||o===St.YPs.FILTER||o===St.YPs.CART&&window.innerWidth>=St.u3l.DESKTOP_S}shouldRefreshRememberMeToken(){const o=parseInt(l.Z.isPwaMode?localStorage.getItem(St.Umo.REMEMBER_ME):this.cookies.get(St.Umo.REMEMBER_ME),10);kp(o).isSame(new Date,"day")||this.userService.refreshTokenRememberMe().pipe((0,So.q)(1)).subscribe()}openBusinessOrderDialog(){this.dialogRef=this.dialog.open(Qi,{data:{type:Zi.NATIVE_NEW_ORDER},minWidth:(0,St.I3d)(St.L7i),panelClass:"base-panel-class"}),this.dialogRef.afterClosed().pipe((0,So.q)(1)).subscribe(o=>{if(!0===o){const r=this.router.url===`/${St.ZTG.SHOP_ACCOUNT}/${St.ZTG.ORDERS}`;this.router.navigateByUrl(`/${St.ZTG.SHOP_ACCOUNT}/${St.ZTG.ORDERS}`).then(()=>{r&&(St.VLR.isNativePlatform?this.orderService.forceRefreshOnBusinessOrders():window.location.reload())})}this.dialogRef=void 0})}openCartSidenav(){this.sidenav.close().then(()=>{this.sidenavFacade.changeDisplayedSidenav(St.YPs.CART)})}get shouldHaveWhiteBackground(){return window.innerWidth<St.u3l.TABLET&&(this.routingVariable.authPage||this.routingVariable.signupPage)}get hideNavigateMenu(){return window.innerWidth<St.u3l.DESKTOP_S||this.routingVariable.onPartnerLandingPage||this.routingVariable.onCouriersPage}}ng.\u0275fac=function(o){return new(o||ng)(t.\u0275\u0275directiveInject(rl.on),t.\u0275\u0275directiveInject(Al.O),t.\u0275\u0275directiveInject(Qh.B),t.\u0275\u0275directiveInject(ye.pl),t.\u0275\u0275directiveInject(C.N),t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(to.gz),t.\u0275\u0275directiveInject(yu.t2),t.\u0275\u0275directiveInject(J.hX),t.\u0275\u0275directiveInject(C.N),t.\u0275\u0275directiveInject(_M.U),t.\u0275\u0275directiveInject(xs.yh),t.\u0275\u0275directiveInject(xu),t.\u0275\u0275directiveInject(vM.r),t.\u0275\u0275directiveInject(bM.v),t.\u0275\u0275directiveInject(Mu),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(gC))},ng.\u0275cmp=t.\u0275\u0275defineComponent({type:ng,selectors:[["app-pages"]],viewQuery:function(o,r){if(1&o&&(t.\u0275\u0275viewQuery(hD,7),t.\u0275\u0275viewQuery(fD,7),t.\u0275\u0275viewQuery(mD,7),t.\u0275\u0275viewQuery(gD,5),t.\u0275\u0275viewQuery(_D,5)),2&o){let m;t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.pagesWrapper=m.first),t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.hamburgerMenuSidenav=m.first),t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.sidenav=m.first),t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.rightSidenav=m.first),t.\u0275\u0275queryRefresh(m=t.\u0275\u0275loadQuery())&&(r.stickySearch=m.first)}},hostBindings:function(o,r){1&o&&t.\u0275\u0275listener("resize",function(){return r.onWindowResize()},!1,t.\u0275\u0275resolveWindow)("scroll",function(M){return r.onWindowScroll(M)},!1,t.\u0275\u0275resolveWindow)},decls:38,vars:59,consts:[[1,"promotion",3,"shouldShow","type","closeClick"],["class","download-mobile-app",4,"ngIf"],["class","order-notifications",4,"ngIf"],["id","pagesWrapper",1,"fix-flex-for-ios","h-100",3,"ngClass"],["pagesWrapper",""],["id","hamburgerMenuSidenav",1,"h-100",3,"ngClass","backdropClick"],["hamburgerMenuSidenav",""],["mode","over",1,"sidenav","mat-elevation-z6",3,"autoFocus","ngClass","opened","closed"],["sidenav",""],[1,"sidenav-app-menu"],[3,"sidenavClose","openCartSidenav","openNotificationsMobile",4,"ngIf"],["position","end",1,"mat-elevation-z24","cart-preview-sidenav",3,"fixedInViewport","autoFocus","ngClass","mode","keydown.escape","opened","closed"],["rightSidenav",""],[3,"isSidenavOpen","businessProfile",4,"ngIf"],[3,"fxHide","sideNav"],[3,"fxHide"],["mobileFavoritesMenu",""],["id","sidenavContent",3,"ngClass"],["ngClass.lt-md","mat-elevation-z2",1,"header-container"],["stickyHeader",""],["class","ios-native-top-space",4,"ngIf"],[3,"routingVariables","openSideNav","preventScroll","resetScroll","closedMenu","openNotifications","closeAllCategoryMenus"],["fxShow","",3,"fxHide","shouldCloseAllMenus","menusClosed",4,"ngIf"],["id","the-main-content",1,"theme-container",3,"ngClass"],["id","footer",3,"ngClass.xs"],[3,"fxHide","onCouriersPage"],["fxHide","onCartPage","class","back-to-top transition","fxLayout","row","fxLayoutAlign","center center",3,"ngClass","click",4,"ngIf"],[1,"download-mobile-app"],[1,"order-notifications"],["class","order-notifications__order-wrapper",4,"ngFor","ngForOf"],[1,"order-notifications__order-wrapper"],[3,"firebaseNotificationMode","notificationDetails",4,"ngIf"],[3,"firebaseNotificationMode","notificationDetails"],[3,"sidenavClose","openCartSidenav","openNotificationsMobile"],[3,"isSidenavOpen","businessProfile"],[1,"ios-native-top-space"],["fxShow","",3,"fxHide","shouldCloseAllMenus","menusClosed"],["fxHide","onCartPage","fxLayout","row","fxLayoutAlign","center center",1,"back-to-top","transition",3,"ngClass","click"]],template:function(o,r){if(1&o){const m=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-promotions-dialog",0),t.\u0275\u0275listener("closeClick",function(){return r.shouldStartPromotionAnimation=!1}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(1,vD,2,0,"div",1),t.\u0275\u0275template(2,CD,2,1,"div",2),t.\u0275\u0275pipe(3,"async"),t.\u0275\u0275elementStart(4,"div",3,4)(6,"mat-sidenav-container",5,6),t.\u0275\u0275listener("backdropClick",function(){return r.checkDisplayedSidenav()}),t.\u0275\u0275elementStart(8,"mat-sidenav",7,8),t.\u0275\u0275listener("opened",function(){return r.preventScroll()})("closed",function(){return r.resetScroll()}),t.\u0275\u0275elementStart(10,"div",9),t.\u0275\u0275template(11,ED,1,0,"app-mobile-categories-menu",10),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(12,"mat-divider"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"mat-sidenav",11,12),t.\u0275\u0275listener("keydown.escape",function(){return r.checkDisplayedSidenav()})("opened",function(){return r.preventScroll()})("closed",function(){t.\u0275\u0275restoreView(m);const I=t.\u0275\u0275reference(25);return r.resetScroll(),r.changeDisplayedSidenav(r.sidenavTypes.FILTER),t.\u0275\u0275resetView(I.getFavoritesPreviewProducts())}),t.\u0275\u0275pipe(15,"async"),t.\u0275\u0275pipe(16,"async"),t.\u0275\u0275pipe(17,"async"),t.\u0275\u0275template(18,xD,1,2,"app-mobile-filters",13),t.\u0275\u0275pipe(19,"async"),t.\u0275\u0275element(20,"app-cart-menu",14),t.\u0275\u0275pipe(21,"async"),t.\u0275\u0275element(22,"frontend-notifications-menu",15),t.\u0275\u0275pipe(23,"async"),t.\u0275\u0275element(24,"app-mobile-favorites-preview-menu",15,16),t.\u0275\u0275pipe(26,"async"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(27,"mat-sidenav-content",17)(28,"div",18,19),t.\u0275\u0275template(30,MD,1,0,"div",20),t.\u0275\u0275elementStart(31,"app-header",21),t.\u0275\u0275listener("openSideNav",function(){return t.\u0275\u0275restoreView(m),t.\u0275\u0275reference(9).open(),t.\u0275\u0275resetView(r.shouldCloseMenus=!0)})("preventScroll",function(){return r.preventScroll()})("resetScroll",function(){return r.resetScroll()})("closedMenu",function(){return r.shouldCloseMenus=!1})("openNotifications",function(){return r.checkIfUserAcceptedCookies()})("closeAllCategoryMenus",function(){return r.closeAllCategoryMenus()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(32,SD,1,2,"app-menu",22),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(33,"div",23),t.\u0275\u0275element(34,"router-outlet"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(35,"div",24),t.\u0275\u0275element(36,"app-footer",25),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(37,OD,3,3,"div",26),t.\u0275\u0275elementEnd()()()}if(2&o){const m=t.\u0275\u0275reference(14);t.\u0275\u0275property("shouldShow",r.shouldStartPromotionAnimation)("type",r.promotionType),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.displayDownloadAppNotification&&!r.carmen.isSafariBrowser()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(3,27,r.notificationService.notifications$)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",r.sidenavIsOpen?"noScrollOnBackground":"returnToNormalScroll"),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction2(43,TD,(r.routingVariable.isProductPage||r.routingVariable.isBusinessProfilePage)&&r.window.innerWidth>=r.breakpoints.DESKTOP_S,r.shouldHaveWhiteBackground)),t.\u0275\u0275advance(2),t.\u0275\u0275property("autoFocus",!1)("ngClass",t.\u0275\u0275pureFunction1(46,DD,r.carmen.isNativeIos)),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!r.routingVariable.isBusinessProfilePage||r.routingVariable.isBusinessProfilePage&&r.window.innerWidth<r.breakpoints.DESKTOP_S),t.\u0275\u0275advance(2),t.\u0275\u0275property("fixedInViewport",!0)("autoFocus",!1)("ngClass",t.\u0275\u0275pureFunction3(48,ID,t.\u0275\u0275pipeBind1(15,29,r.sidenavType$)===r.sidenavTypes.FILTER,t.\u0275\u0275pipeBind1(16,31,r.sidenavType$)!==r.sidenavTypes.FILTER,r.carmen.isNativeIos))("mode",r.shouldOpenSidenavOnOverMode(t.\u0275\u0275pipeBind1(17,33,r.sidenavType$))?"over":"push"),t.\u0275\u0275advance(5),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(19,35,r.sidenavType$)===r.sidenavTypes.FILTER),t.\u0275\u0275advance(2),t.\u0275\u0275property("fxHide",t.\u0275\u0275pipeBind1(21,37,r.sidenavType$)!==r.sidenavTypes.CART)("sideNav",m),t.\u0275\u0275advance(2),t.\u0275\u0275property("fxHide",t.\u0275\u0275pipeBind1(23,39,r.sidenavType$)!==r.sidenavTypes.NOTIFICATION),t.\u0275\u0275advance(2),t.\u0275\u0275property("fxHide",t.\u0275\u0275pipeBind1(26,41,r.sidenavType$)!==r.sidenavTypes.WISHLIST),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(52,PD,r.routingVariable.onHomePage||r.routingVariable.isBusinessProfilePage||r.routingVariable.onCouriersPage)),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",r.carmen.isNativeIos),t.\u0275\u0275advance(1),t.\u0275\u0275property("routingVariables",r.routingVariable),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.routingVariable.onCartPage),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction2(54,AD,r.getMainClassIfNotCourierPage(),r.pagesContainerClasses())),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass.xs",t.\u0275\u0275pureFunction1(57,LD,r.routingVariable.isProductPage)),t.\u0275\u0275advance(1),t.\u0275\u0275property("fxHide",r.routingVariable.onInfoCenterPage||r.routingVariable.onCartPage||r.routingVariable.authPage||r.routingVariable.signupPage)("onCouriersPage",r.routingVariable.onCouriersPage),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",r.showBackToTop)}},dependencies:[Ze.NgClass,Ze.NgForOf,Ze.NgIf,to.lC,je.xw,je.Wh,lt.b8,lt.oO,Up.Hw,ar.d,Cx.JX,Cx.TM,Cx.Rh,Wm,HS,KS,zm,Zm,Jm,hT,qm,eg,tg,Ze.AsyncPipe],styles:[".main[_ngcontent-%COMP%]{min-height:calc(100vh - 350px);padding:12px 23px!important}.fix-home-page-horizontal-scroll[_ngcontent-%COMP%]{overflow-x:hidden!important}.order-notifications[_ngcontent-%COMP%]{position:absolute;z-index:2000;top:16px;left:0;right:0;margin:0 auto;max-width:420px}.order-notifications__order-wrapper[_ngcontent-%COMP%]{position:absolute}.visible[_ngcontent-%COMP%]{opacity:1}.hidden[_ngcontent-%COMP%]{opacity:0}.home[_ngcontent-%COMP%]{margin-left:0;margin-right:0;padding:0 23px 24px!important;max-width:100vw}.sticky-sidenav[_ngcontent-%COMP%]{overflow:visible}.product-main[_ngcontent-%COMP%]{min-height:calc(100vh - 288px)}.raise-arrow[_ngcontent-%COMP%]{bottom:90px!important}.main.checkout-container[_ngcontent-%COMP%]{min-height:calc(100vh - 90px)}.main.checkout-container--iOS[_ngcontent-%COMP%]{padding:0!important}.sidenav[_ngcontent-%COMP%]{width:88vw;max-width:400px;height:100%;position:fixed}.sidenav[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{margin-left:178px}.sidenav[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{margin:8px 0}.filter-sidenav[_ngcontent-%COMP%]{max-width:384px!important;width:80%;height:100%;padding:0 0 8px;position:fixed}.filter-sidenav[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{margin-left:178px}.filter-sidenav[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{margin:8px 0}.favorites-preview-sidenav[_ngcontent-%COMP%]{max-width:420px;width:88%;height:-webkit-fill-available;padding:0 0 8px;position:fixed}.cart-preview-sidenav[_ngcontent-%COMP%]{max-width:420px;width:88%;height:100%;padding:0 0 8px;position:fixed}@media (min-width: 960px){.cart-preview-sidenav[_ngcontent-%COMP%]{max-width:605px}}.top-menu-label[_ngcontent-%COMP%]{line-height:16px;padding-left:6px}.header-container[_ngcontent-%COMP%]{transition:all 3s;position:sticky;-webkit-transform:translateZ(0);top:0;left:0;right:0;z-index:2}.header-container[_ngcontent-%COMP%]   .back-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:13px;text-decoration:underline}.mat-button[_ngcontent-%COMP%]{font-size:13px!important}.user-menu[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:36px;height:36px}.mat-list-item[_ngcontent-%COMP%]   .mat-list-avatar[_ngcontent-%COMP%]{border-radius:0}.mat-list-item[_ngcontent-%COMP%]   .mat-icon-button[_ngcontent-%COMP%]{align-self:start;padding:4px}.custom-logo[_ngcontent-%COMP%]{max-height:40px;margin-right:calc(100vw - 250px)}.contact-button[_ngcontent-%COMP%]{min-width:100px}.contact-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:19px;width:19px;font-size:19px}.sidenav-toggle[_ngcontent-%COMP%]{min-width:30px!important}.sidenav-toggle[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{min-width:30px!important;font-size:35px!important;font-weight:400!important;margin-bottom:10px}.noScrollOnBackground[_ngcontent-%COMP%]{inset:0;position:absolute;overflow:hidden}.returnToNormalScroll[_ngcontent-%COMP%]{overflow:visible;overflow-x:hidden}.hamburgerMenuSidenav[_ngcontent-%COMP%]{position:absolute;inset:0}.download-mobile-app[_ngcontent-%COMP%]{position:absolute;z-index:3;width:calc(100% - 32px);background:#ffffff;margin-top:16px;margin-left:16px;border-radius:16px;box-shadow:0 0 6px #0006}.promotion[_ngcontent-%COMP%]{bottom:16px;position:fixed;right:16px;width:500px;z-index:9001}@media (max-width: 1404px){.home[_ngcontent-%COMP%]{padding:0 25px 24px}.header-container[_ngcontent-%COMP%]   .top-toolbar[_ngcontent-%COMP%]{padding:0 9px 0 25px!important}}@media (width: 960px){.logo-container.logo-margin[_ngcontent-%COMP%]{margin-left:0!important}.restaurant-page[_ngcontent-%COMP%], .product-main[_ngcontent-%COMP%]{padding:12px 23px!important}}@media (max-width: 960px){.logo-container.logo-margin[_ngcontent-%COMP%]{margin-left:10%}.restaurant-page[_ngcontent-%COMP%]{padding:0!important}.product-main[_ngcontent-%COMP%]{padding:12px 25px!important}.mobile-search-button[_ngcontent-%COMP%]{display:inline-block!important}.main[_ngcontent-%COMP%]{padding:12px 25px!important}.main.checkout[_ngcontent-%COMP%], .main.newsletter-unsubscribe-page[_ngcontent-%COMP%]{padding:0!important}}@media (width: 960px){.product-main[_ngcontent-%COMP%]{padding:12px 23px!important}}@media (max-width: 768px){.main[_ngcontent-%COMP%]{padding:12px 18px!important}.main.newsletter-unsubscribe-page[_ngcontent-%COMP%]{padding:0!important}.product-main[_ngcontent-%COMP%]{padding:12px 18px!important}.mobile-search-button[_ngcontent-%COMP%]{min-width:36px!important;display:inline-block!important}.promotion[_ngcontent-%COMP%]{bottom:unset;left:16px;top:16px;right:16px;width:100%}}@media (max-width: 430px){.main.checkout[_ngcontent-%COMP%]{padding:0!important}.main.patient-container[_ngcontent-%COMP%]{background-color:#fff;padding:0!important}.main.patient-container--iOS[_ngcontent-%COMP%], .main.sendit-page[_ngcontent-%COMP%], .main.newsletter-unsubscribe-page[_ngcontent-%COMP%]{padding:0!important}}@media (max-width: 420px){.main[_ngcontent-%COMP%]{padding:8px 10px!important}.main.newsletter-unsubscribe-page[_ngcontent-%COMP%], .main.checkout[_ngcontent-%COMP%]{padding:0!important}.header-container[_ngcontent-%COMP%]   .logo-toolbar[_ngcontent-%COMP%]{padding:0 2px 0 8px!important}.mat-toolbar-multiple-rows[_ngcontent-%COMP%]{min-height:49px}.mat-toolbar-row[_ngcontent-%COMP%]{height:49px}.promotion[_ngcontent-%COMP%]{bottom:unset;left:10px;top:10px;right:10px}.favorites-preview-sidenav[_ngcontent-%COMP%]{max-width:370px!important;width:90%}.restaurant-page[_ngcontent-%COMP%]{padding:0!important}.product-main[_ngcontent-%COMP%]{padding:8px 10px!important}}@media (max-width: 320px){.main[_ngcontent-%COMP%]{padding:8px!important}.main.newsletter-unsubscribe-page[_ngcontent-%COMP%]{padding:0!important}.favorites-preview-sidenav[_ngcontent-%COMP%]{max-width:277px!important;width:100%}.restaurant-page[_ngcontent-%COMP%]{padding:0!important}.product-main[_ngcontent-%COMP%]{padding:8px!important}}"],data:{animation:[(0,d.X$)("fadeInOut",[(0,d.eR)("void => *",[(0,d.oB)({opacity:0,transform:"translateY(-100%)"}),(0,d.jt)("500ms ease-in",(0,d.oB)({opacity:1,transform:"translateY(0)"}))]),(0,d.eR)("* => void",[(0,d.jt)("500ms ease-out",(0,d.oB)({opacity:0,transform:"translateY(-100%)"}))])])]}}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],ng.prototype,"user",void 0);let RD=(()=>{class c{constructor(r){this.router=r,this.homePageLink=St.BW$.REDIRECT_TO_HOME_PAGE}goHome(){this.router.navigate([St.BW$.REDIRECT_TO_HOME_PAGE])}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(to.F0))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-not-found"]],decls:14,vars:10,consts:[["fxLayout","row","fxLayoutAlign","center center",1,"theme-container"],["fxLayoutAlign","end center",1,"not-found-image"],["src","assets/images/not-found/notFound-lg.png"],["fxLayout","column","fxLayoutAlign","center start","fxLayoutGap","16px",1,"text-wrapper"],["fxLayout","column","fxLayoutGap","5px"],["mat-flat-button","","color","primary",1,"green-button-style",3,"routerLink"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"mat-card",0)(1,"div",1),t.\u0275\u0275element(2,"img",2),t.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"h2"),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"p"),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(11,"button",5),t.\u0275\u0275text(12),t.\u0275\u0275pipe(13,"translate"),t.\u0275\u0275elementEnd()()()()),2&r&&(t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(7,4,"PAGES.NOT_FOUND.TITLE")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(10,6,"PAGES.NOT_FOUND.NAVIGATE_TEXT")),t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",m.homePageLink),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(13,8,"PAGES.NOT_FOUND.ACTION_TEXT")," "))},dependencies:[to.rH,je.xw,je.SQ,je.Wh,Ht.eB,Qm.S$,fn.b,ea.X$],styles:[".not-found-image[_ngcontent-%COMP%]{max-width:900px;width:100%}.not-found-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:458px;width:100%;height:inherit}h2[_ngcontent-%COMP%]{font-size:19px;line-height:25px}@media (max-width: 960px){.not-found-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60%;height:auto}}@media (max-width: 768px){.not-found-image[_ngcontent-%COMP%]{flex-direction:column!important;place-content:center center!important;width:100%}.not-found-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:458px;width:100%;height:auto}.text-wrapper[_ngcontent-%COMP%]{place-content:center flex-start!important;align-items:center!important;width:100%}.text-wrapper[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .text-wrapper[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}.text-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%}}"]}),c})(),kD=(()=>{class c{constructor(r,m){this.cookieService=r,this.router=m}ngOnInit(){this.cookieService.delete(St.Umo.USER_LOCATION,"/",window.location.hostname),localStorage.removeItem(St.Umo.USER_LOCATION),this.router.navigate([St.s67])}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(C.N),t.\u0275\u0275directiveInject(to.F0))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-reset"]],decls:2,vars:0,template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1,"Redirecting to home page ..."),t.\u0275\u0275elementEnd())}}),c})(),ND=(()=>{class c{constructor(r){this.userLocationService=r}resolve(){return this.userLocationService.getAvailableLocation()}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(St.vio.UserLocationServiceToken))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var FD=i(78767),BD=i(5221),UD=i(41184),FM=i(39783),jD=i(13128),HD=i(20765);const VD=function(c){return{value:c}};function WD(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",13)(1,"div"),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div",14),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275pipe(7,"date"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,2,"PAGES.RESTAURANTS.RESTAURANT_CLOSED")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(6,4,"PAGES.RESTAURANTS.OPENS_AT",t.\u0275\u0275pureFunction1(10,VD,t.\u0275\u0275pipeBind2(7,7,r.restaurant.nextOpeningTime,r.customDates.HoursAndMinutes)))," ")}}const zD=function(c){return{"restaurant-closed-background":c}};let YD=(()=>{class c{constructor(){this.customDates=St.SWR}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-restaurant-card"]],inputs:{restaurant:"restaurant"},decls:23,vars:15,consts:[[1,"restaurant-card-wrapper"],[1,"image-wrapper"],[1,"image-container"],[1,"restaurant-image",3,"ngClass","src"],[1,"gradient-overlay"],[1,"logo-wrapper"],[1,"restaurant-logo",3,"src"],[1,"time-estimation-wrapper"],["fxLayout","column","fxLayoutAlign","center center","matTooltipPosition","above",1,"time-estimation",3,"matTooltip","click"],[1,"time-estimation--smaller"],["class","restaurant-closed",4,"ngIf"],[1,"restaurant-description"],[1,"food-tags"],[1,"restaurant-closed"],[1,"font-size-12"]],template:function(r,m){1&r&&(t.\u0275\u0275elementStart(0,"mat-card",0)(1,"div",1)(2,"div",2),t.\u0275\u0275element(3,"img",3)(4,"div",4),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",5),t.\u0275\u0275element(6,"img",6),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div",7)(8,"div",8),t.\u0275\u0275listener("click",function(I){return I.stopPropagation()}),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275elementStart(10,"div")(11,"strong"),t.\u0275\u0275text(12),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(13,"div",9),t.\u0275\u0275text(14),t.\u0275\u0275pipe(15,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(16,WD,8,12,"div",10),t.\u0275\u0275elementStart(17,"div",11)(18,"div")(19,"strong"),t.\u0275\u0275text(20),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(21,"div",12),t.\u0275\u0275text(22),t.\u0275\u0275elementEnd()()()),2&r&&(t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(13,zD,!m.restaurant.open))("src",m.restaurant.coverUrl,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(3),t.\u0275\u0275property("src",m.restaurant.logoUrl,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(2),t.\u0275\u0275property("matTooltip",t.\u0275\u0275pipeBind1(9,9,"PAGES.RESTAURANTS.TIME_ESTIMATION_TOOLTIP")),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(m.restaurant.idealDeliveryTime),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(15,11,"PAGES.RESTAURANTS.MINUTES")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!m.restaurant.open),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(m.restaurant.name),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(m.restaurant.foodTags))},dependencies:[Ze.NgClass,Ze.NgIf,je.xw,je.Wh,lt.oO,Qm.S$,Lv.Kd,fn.b,Ze.DatePipe,ea.X$],styles:[".restaurant-card-wrapper[_ngcontent-%COMP%]{background-color:#fff;width:100%;border-radius:4px;padding:0;cursor:pointer}.image-wrapper[_ngcontent-%COMP%]{height:150px}.restaurant-image[_ngcontent-%COMP%]{width:100%;height:150px;border-radius:4px 4px 0 0;object-fit:cover}.restaurant-description[_ngcontent-%COMP%]{padding:16px;font-size:14px}.food-tags[_ngcontent-%COMP%]{font-size:13px}.logo-wrapper[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;position:relative;bottom:76px;left:16px;height:0}.logo-wrapper[_ngcontent-%COMP%]   .restaurant-logo[_ngcontent-%COMP%]{width:54px;height:54px;border-radius:50%;border:solid white}.time-estimation-wrapper[_ngcontent-%COMP%]{height:0;width:0;position:relative;bottom:150px;left:calc(100% - 58px);cursor:default}.time-estimation-wrapper[_ngcontent-%COMP%]   .time-estimation[_ngcontent-%COMP%]{width:42px;height:42px;background-color:#fff;border-radius:0 0 4px 4px;text-align:center;box-shadow:0 3px 6px #00000023}.time-estimation-wrapper[_ngcontent-%COMP%]   .time-estimation--smaller[_ngcontent-%COMP%]{font-size:10px}.time-estimation-wrapper[_ngcontent-%COMP%]   .time-estimation[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{height:13px}.restaurant-closed-background[_ngcontent-%COMP%]{filter:brightness(22%)}.restaurant-closed[_ngcontent-%COMP%]{height:0;text-align:center;position:relative;bottom:95px;color:#fff;font-size:14px}.font-size-12[_ngcontent-%COMP%]{font-size:12px}.image-container[_ngcontent-%COMP%]{height:150px;width:100%;position:relative;display:inline-block}.gradient-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(to bottom,rgba(0,0,0,0) 24%,rgba(0,0,0,.4) 155%)}"]}),c})();function GD(c,o){1&c&&t.\u0275\u0275element(0,"app-breadcrumb")}const $D=function(c){return{"sticky-header":c}};function KD(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",12)(1,"i",13),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.location.back())}),t.\u0275\u0275text(2,"arrow_back"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",14),t.\u0275\u0275template(4,GD,1,0,"app-breadcrumb",15),t.\u0275\u0275elementStart(5,"strong",16),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd()()()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(5,$D,r.scrollPos>r.titleHeight)),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",r.scrollPos<r.titleHeight),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(7,3,"PAGES.RESTAURANTS.TITLE")," ")}}function QD(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",17),t.\u0275\u0275element(1,"app-breadcrumb"),t.\u0275\u0275elementStart(2,"strong",16),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()),2&c&&(t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,1,"PAGES.RESTAURANTS.TITLE")," "))}function XD(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-top-paginator",18),t.\u0275\u0275listener("sortEvent",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.setSorting(M))}),t.\u0275\u0275elementEnd()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("_filters",r.filters)("_options",r.options)("_result",r.result)}}function ZD(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",24),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&c){const r=o.$implicit,m=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("routerLink",m.getRestaurantPage(r)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",null==r?null:r.name," ")}}function JD(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",19)(1,"mat-accordion")(2,"mat-expansion-panel",20)(3,"mat-expansion-panel-header")(4,"mat-panel-title",21)(5,"strong",22),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"uppercase"),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementContainerStart(9),t.\u0275\u0275template(10,ZD,2,2,"div",23),t.\u0275\u0275elementContainerEnd(),t.\u0275\u0275elementEnd()()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(7,2,t.\u0275\u0275pipeBind1(8,4,"PAGES.RESTAURANTS.TITLE"))),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngForOf",r.restaurantFilters)}}function qD(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",36),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(G.setSorting(I))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()}if(2&c){const r=o.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"PAGES.RESTAURANTS."+r)," ")}}const Rv=function(c){return{value:c}};function eI(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",28),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementStart(3,"i",29),t.\u0275\u0275text(4,"expand_more"),t.\u0275\u0275elementEnd()()),2&c){t.\u0275\u0275nextContext();const r=t.\u0275\u0275reference(14),m=t.\u0275\u0275nextContext();t.\u0275\u0275property("matMenuTriggerFor",r),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,2,"PAGES.RESTAURANTS.ON_PAGE",t.\u0275\u0275pureFunction1(5,Rv,null==m.filters||null==m.filters.pagination?null:m.filters.pagination.size))," ")}}function tI(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",36),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(G.changePageSize(I))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()}if(2&c){const r=o.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"PAGES.RESTAURANTS.ON_PAGE",t.\u0275\u0275pureFunction1(4,Rv,r))," ")}}function nI(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"drc-paginator",37),t.\u0275\u0275listener("pageChange",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(I.changePagination(M))}),t.\u0275\u0275elementEnd()}if(2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("currentPage",(null==r.searchConfig?null:r.searchConfig.pageIndex)+1)("numberOfElements",null==r.searchConfig?null:r.searchConfig.totalElements)("pageSize",null==r.filters||null==r.filters.pagination?null:r.filters.pagination.size)}}function iI(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"mat-card",25)(1,"div",26)(2,"div",27)(3,"div",28),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementStart(7,"i",29),t.\u0275\u0275text(8,"expand_more"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(9,"mat-menu",30,31),t.\u0275\u0275template(11,qD,3,3,"button",32),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(12,eI,5,7,"div",33),t.\u0275\u0275elementStart(13,"mat-menu",30,34),t.\u0275\u0275template(15,tI,3,6,"button",32),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(16,"div"),t.\u0275\u0275template(17,nI,1,3,"drc-paginator",35),t.\u0275\u0275elementEnd()()()),2&c){const r=t.\u0275\u0275reference(10),m=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275property("matMenuTriggerFor",r),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate2(" ",t.\u0275\u0275pipeBind1(5,7,"PAGES.RESTAURANTS.SORT_BY")," ",t.\u0275\u0275pipeBind1(6,9,"PAGES.RESTAURANTS."+m.searchConfig.sort)," "),t.\u0275\u0275advance(7),t.\u0275\u0275property("ngForOf",m.sortOptions),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.calculateNumberOfPages()>1),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",m.pageSizeOptions),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==m.restaurants?null:m.restaurants.length)}}function rI(c,o){1&c&&(t.\u0275\u0275elementStart(0,"mat-card",38),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&c&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"PAGES.RESTAURANTS.NO_AVAILABLE_RESTAURANTS")," "))}function oI(c,o){if(1&c&&t.\u0275\u0275element(0,"app-restaurant-card",39),2&c){const r=o.$implicit,m=t.\u0275\u0275nextContext();t.\u0275\u0275property("routerLink",m.getRestaurantPage(r))("restaurant",r)}}function aI(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",36),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(r).$implicit,G=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(G.changePageSize(I))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()}if(2&c){const r=o.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"PAGES.RESTAURANTS.ON_PAGE",t.\u0275\u0275pureFunction1(4,Rv,r))," ")}}function sI(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"mat-card",40)(1,"div",41)(2,"button",42),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.nextPage())}),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"uppercase"),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"div",43),t.\u0275\u0275element(7,"mat-divider"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"div",26)(9,"div",28),t.\u0275\u0275text(10),t.\u0275\u0275pipe(11,"translate"),t.\u0275\u0275elementStart(12,"i",29),t.\u0275\u0275text(13,"expand_more"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(14,"mat-menu",30,44),t.\u0275\u0275template(16,aI,3,6,"button",32),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(17,"div")(18,"drc-paginator",37),t.\u0275\u0275listener("pageChange",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.changePagination(M))}),t.\u0275\u0275elementEnd()()()()}if(2&c){const r=t.\u0275\u0275reference(15),m=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("disabled",m.numberOfPages===(null==m.filters||null==m.filters.pagination?null:m.filters.pagination.page)+1),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,8,t.\u0275\u0275pipeBind2(5,10,"PAGES.RESTAURANTS.LOAD_PAGE",t.\u0275\u0275pureFunction1(16,Rv,(null==m.filters||null==m.filters.pagination?null:m.filters.pagination.page)+2)))," "),t.\u0275\u0275advance(6),t.\u0275\u0275property("matMenuTriggerFor",r),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(11,13,"PAGES.RESTAURANTS.ON_PAGE",t.\u0275\u0275pureFunction1(18,Rv,null==m.filters||null==m.filters.pagination?null:m.filters.pagination.size))," "),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngForOf",m.pageSizeOptions),t.\u0275\u0275advance(2),t.\u0275\u0275property("currentPage",(null==m.searchConfig?null:m.searchConfig.pageIndex)+1)("numberOfElements",null==m.searchConfig?null:m.searchConfig.totalElements)("pageSize",null==m.filters||null==m.filters.pagination?null:m.filters.pagination.size)}}function lI(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"app-btm-paginator",46),t.\u0275\u0275listener("pageChangeEvent",function(M){t.\u0275\u0275restoreView(r);const I=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(I.changePagination(M))}),t.\u0275\u0275elementEnd()}if(2&c){const r=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("currentPageIndex",null==r.searchConfig?null:r.searchConfig.pageIndex)("pageSize",null==r.filters.pagination?null:r.filters.pagination.size)("numberOfElements",null==r.searchConfig?null:r.searchConfig.totalElements)}}function cI(c,o){if(1&c&&t.\u0275\u0275template(0,lI,1,3,"app-btm-paginator",45),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngIf",null==r.restaurants?null:r.restaurants.length)}}let dI=(()=>{class c{constructor(r,m,M,I,G,Me,_t,Gt,Pn,kn){this.restaurantsService=r,this.appSettings=m,this.location=M,this.filtersService=I,this.translateService=G,this.router=Me,this.appService=_t,this.activatedRoute=Gt,this.store=Pn,this.locationService=kn,this.pageSizeOptions=[12,24,48,75],this.sortOptions=["NAME","NEWEST","DELIVERY_ASC","DELIVERY_DESC"],this.searchConfig={},this.window=window,this.breakpoints=St.u3l,this.scrollPos=0,this.titleHeight=88,this.result={},this.destroy$=new Ks.x,this.restaurantFilters=[],this.firstPageLoad=!0}ngOnInit(){this.filters=this.filtersService.filters,this.options=this.filtersService.options,this.searchConfig.totalElements=50,this.searchConfig.sort=this.sortOptions[0],this.translateService.get("PAGES.RESTAURANTS.TITLE").pipe((0,So.q)(1)).subscribe(r=>{this.appService.setTitle(r)}),this.setFiltersAndOptions(),this.setupBreadCrumb(),this.listenForScroll()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getRestaurants(){const r=this.newLocation??this.locationService.locationFromStorage.replace("~","-");this.restaurantsService.getRestaurants(this.filters.pagination,r).pipe((0,So.q)(1)).subscribe(m=>{this.restaurants=m.content,this.searchConfig.totalElements=m.totalElements,this.calculateNumberOfPages(),this.setSortingOptions(),this.scrollUp(),this.setFilters(),this.result.total=this.searchConfig.totalElements})}listenForLocationChange(){this.locationSubscription||(this.locationSubscription=this.store.select(BD.Ac).pipe((0,ts.R)(this.destroy$)).subscribe(r=>{if(r){this.newLocation=`${r.city}-${r.county}`,this.isScrollBottom=!1;const m={pageIndex:1,pageSize:this.filters?.pagination?.size||this.pageSizeOptions[0]};this.filtersService.changePage(m,!0),this.filters.pagination.page=0,this.activatedRoute?.snapshot?.queryParams.page===m?.pageIndex?.toString()?(this.getRestaurants(),this.getRestaurantsFilters()):this.loadPage()}}))}getRestaurantsFilters(){const r=this.newLocation??this.locationService.locationFromStorage.replace("~","-");this.restaurantsService.getRestaurantsFilter(r).pipe((0,So.q)(1)).subscribe(m=>{this.restaurantFilters=m})}setFilters(){this.options.filters.find(r=>"restaurants"===r.key).options=this.restaurantFilters.map(r=>({key:r.name,title:r.name,routerLink:`/${St.Z2M.PRODUCTS}/${St.Lkn}/${r.businessId}`}))}setFiltersAndOptions(){this.filtersService.resetFilters(),this.filtersService.setFiltersSource({filters:this.filters,options:this.options}),this.filtersService.setBaseUrl(`/${St.nUJ.RESTAURANTS}`);const r=(0,IM.a)([this.activatedRoute.params,this.activatedRoute.queryParams]).pipe((0,wM.b)(100)),m={};this.appService.currentCategories.pipe((0,oc.b)(M=>m.categories=M),(0,ts.R)(this.destroy$),(0,Sr.w)(()=>r.pipe((0,oc.b)(M=>m.changes=M))),(0,Sr.w)(()=>this.filtersService.loadFilters(m).pipe((0,oc.b)(M=>{this.filters=M.filters,this.options=M.options,m.changes[1].sort&&(this.searchConfig.sort=Object.entries(St.Y7D)?.find(([I,G])=>G===this.filters.pagination.sort)?.[0]),10===this.filters.pagination.size&&(this.filters.pagination.size=this.pageSizeOptions[0])})))).subscribe(()=>{this.firstPageLoad&&(this.filters.pagination.sort=St.Y7D[this.sortOptions[0]],this.firstPageLoad=!1),this.searchConfig.pageIndex=this.filters.pagination.page,this.options.filters.find(M=>M.key===St.Ei8.CATEGORY).show=!1,this.options.filters.find(M=>M.key===St.Ei8.PRICE).show=!1,this.options.filters.find(M=>M.key===St.Ei8.BUSINESS_NAMES).show=!1,this.options.filters.find(M=>M.key===St.Ei8.RESTAURANTS).show=!0,this.getRestaurants(),this.getRestaurantsFilters(),this.listenForLocationChange()})}calculateNumberOfPages(){return this.searchConfig&&this.filters&&this.filters.pagination?Math.ceil(this.searchConfig.totalElements/this.filters.pagination.size):0}setupBreadCrumb(){this.appSettings.breadcrumbSource.next([{name:"Restaurante",description:"Restaurante",url:`/${St.nUJ.RESTAURANTS}`}])}changePageSize(r){const m={pageIndex:1,pageSize:r};this.filtersService.changePageSize(r,!0),this.filtersService.changePage(m,!0),this.loadPage()}changePagination(r){r.pageSize||(r=Object.assign(r,{pageSize:this.filters.pagination.size})),this.filtersService.changePage(r,!0),this.loadPage()}scrollUp(){setTimeout(()=>{document.querySelector("mat-sidenav-content").scroll({top:0,behavior:"smooth"})},300)}getRestaurantPage(r){return`/${St.Z2M.PRODUCTS}/${St.Lkn}/${r.businessId}`}listenForScroll(){window.addEventListener("scroll",r=>{this.isScrollBottom=r.target.scrollTop>this.scrollPos,this.scrollPos=r.target.scrollTop},!0)}setSortingOptions(){this.options.page.sort=[],this.sortOptions.forEach((r,m)=>{this.translateService.get(`PAGES.RESTAURANTS.${this.sortOptions[m]}`).pipe((0,So.q)(1)).subscribe(M=>{this.options.page.sort.push({title:M,field:St.Y7D[this.sortOptions[m]]})})})}loadPage(){const r=this.filtersService.params;(!this.filtersService.lastRequest||St.VLR.compareParams(r.queryParams,this.filtersService.lastRequest.query))&&this.filtersService.baseURL&&this.router.navigate([this.filtersService.baseURL],{queryParams:r.queryParams,queryParamsHandling:"merge"})}setSorting(r){let m,M;"string"==typeof r?(m={field:St.Y7D[r]},M=r):(m={field:r.field},M=Object.keys(St.Y7D)[Object.values(St.Y7D).indexOf(r.field)]),this.filters=this.filtersService.setSorting(m,!0),this.filtersService.resetPage(),this.loadPage(),this.searchConfig.sort=M}nextPage(){this.filtersService.changePage({pageIndex:this.filters.pagination.page+2,pageSize:this.filters.pagination.size},!0),this.loadPage()}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275directiveInject(FD.P),t.\u0275\u0275directiveInject(l.d),t.\u0275\u0275directiveInject(Ze.Location),t.\u0275\u0275directiveInject(St.vio.FiltersServiceToken),t.\u0275\u0275directiveInject(ea.sK),t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(Fp.z),t.\u0275\u0275directiveInject(to.gz),t.\u0275\u0275directiveInject(xs.yh),t.\u0275\u0275directiveInject(St.vio.LocationServiceToken))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["app-restaurant-listing"]],decls:15,vars:9,consts:[["fxLayoutAlign","start center","class","navigate-back-card",3,"ngClass",4,"ngIf"],["class","title-card",4,"ngIf"],[3,"_filters","_options","_result","sortEvent",4,"ngIf"],[1,"content"],["class","sidenav-wrapper",4,"ngIf"],[1,"w-100"],["class","filters-card mb-16",4,"ngIf"],["fxLayoutAlign","center center",4,"ngIf"],[1,"cards-wrapper"],["class","cards",3,"routerLink","restaurant",4,"ngFor","ngForOf"],["class","mt-12 filters-card",4,"ngIf","ngIfElse"],["bottomPaginator",""],["fxLayoutAlign","start center",1,"navigate-back-card",3,"ngClass"],[1,"material-icons",3,"click"],["fxLayout","column","fxLayoutAlign","center center",1,"w-100"],[4,"ngIf"],[1,"page-title"],[1,"title-card"],[3,"_filters","_options","_result","sortEvent"],[1,"sidenav-wrapper"],["expanded","true"],[1,"restaurants-title"],[1,"restaurants-filter"],["class","restaurants-sidenav",3,"routerLink",4,"ngFor","ngForOf"],[1,"restaurants-sidenav",3,"routerLink"],[1,"filters-card","mb-16"],["fxLayoutAlign","space-between center"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","16px"],["fxLayoutAlign","start center",1,"cursor-pointer",3,"matMenuTriggerFor"],[1,"material-icons","filter-arrows"],["xPosition","before",1,"app-dropdown"],["sortMenu",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["class","cursor-pointer","fxLayoutAlign","start center",3,"matMenuTriggerFor",4,"ngIf"],["pageSizeMenu",""],[3,"currentPage","numberOfElements","pageSize","pageChange",4,"ngIf"],["mat-menu-item","",3,"click"],[3,"currentPage","numberOfElements","pageSize","pageChange"],["fxLayoutAlign","center center"],[1,"cards",3,"routerLink","restaurant"],[1,"mt-12","filters-card"],["fxLayoutAlign","center center",1,"mb-12"],["mat-flat-button","","color","primary",3,"disabled","click"],[1,"standard-divider","mb-24"],["pageSizeMenu2",""],[3,"currentPageIndex","pageSize","numberOfElements","pageChangeEvent",4,"ngIf"],[3,"currentPageIndex","pageSize","numberOfElements","pageChangeEvent"]],template:function(r,m){if(1&r&&(t.\u0275\u0275template(0,KD,8,7,"div",0),t.\u0275\u0275elementStart(1,"div"),t.\u0275\u0275template(2,QD,5,3,"div",1),t.\u0275\u0275elementStart(3,"div"),t.\u0275\u0275template(4,XD,1,3,"app-top-paginator",2),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(5,"div",3),t.\u0275\u0275template(6,JD,11,6,"div",4),t.\u0275\u0275elementStart(7,"div",5),t.\u0275\u0275template(8,iI,18,11,"mat-card",6),t.\u0275\u0275template(9,rI,3,3,"mat-card",7),t.\u0275\u0275elementStart(10,"div",8),t.\u0275\u0275template(11,oI,1,2,"app-restaurant-card",9),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(12,sI,19,20,"mat-card",10),t.\u0275\u0275template(13,cI,1,1,"ng-template",null,11,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementEnd()()),2&r){const M=t.\u0275\u0275reference(14);t.\u0275\u0275property("ngIf",m.window.innerWidth<m.breakpoints.DESKTOP_S),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",m.window.innerWidth>=m.breakpoints.DESKTOP_S),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",m.window.innerWidth<m.breakpoints.DESKTOP_S&&m.result&&m.filters&&m.options),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",m.window.innerWidth>=m.breakpoints.DESKTOP_S&&(null==m.restaurants?null:m.restaurants.length)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",m.window.innerWidth>=m.breakpoints.DESKTOP_S),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=m.restaurants&&m.restaurants.length)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",m.restaurants),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",m.window.innerWidth>=m.breakpoints.DESKTOP_S&&(null==m.restaurants?null:m.restaurants.length)&&m.calculateNumberOfPages()>1)("ngIfElse",M)}},dependencies:[Ze.NgClass,Ze.NgForOf,Ze.NgIf,UD.J,to.rH,je.xw,je.SQ,je.Wh,lt.oO,Ht.eB,Qm.S$,dd.pp,dd.ib,dd.yz,dd.yK,ar.d,fl.W0,fl.tN,fl.D8,FM.L,jD.y,HD.F,YD,Ze.UpperCasePipe,ea.X$],styles:[".page-title[_ngcontent-%COMP%]{font-size:19px}.restaurants-title[_ngcontent-%COMP%]{line-height:19px}.content[_ngcontent-%COMP%]{margin-top:12px;display:flex;gap:12px}.fix-height[_ngcontent-%COMP%]{height:55px}.sidenav-wrapper[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]{width:244px}.sidenav-wrapper[_ngcontent-%COMP%]   mat-expansion-panel-header[_ngcontent-%COMP%]{height:50px}.restaurants-sidenav[_ngcontent-%COMP%]{cursor:pointer;font-size:14px}.restaurants-sidenav[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:16px}.restaurants-sidenav[_ngcontent-%COMP%]:hover{text-decoration:underline}.restaurants-filter[_ngcontent-%COMP%]{font-size:14px}.filter-arrows[_ngcontent-%COMP%]{font-size:19px;margin-top:2px;margin-left:4px}.filters-card[_ngcontent-%COMP%]{padding:12px 16px}.cards-wrapper[_ngcontent-%COMP%]{margin:12px -12px 0 0;display:flex;flex-wrap:wrap}.cards-wrapper[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]{margin:0 12px 12px 0;width:calc(33.33% - 12px)}.navigate-back-card[_ngcontent-%COMP%]{background-color:#fff;padding:18px;height:88px;border-bottom:1px solid rgba(0,0,0,.1607843137)!important}.title-card[_ngcontent-%COMP%]{padding:16px;background-color:#fff;border-radius:4px;box-shadow:0 2px 2px #0003}.hide-header[_ngcontent-%COMP%]{transform:translateY(-300px)}@media (max-width: 960px){.content[_ngcontent-%COMP%]{padding:16px}.cards-wrapper[_ngcontent-%COMP%]{margin-top:0}.cards-wrapper[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]{width:calc(50% - 12px)}.title-card[_ngcontent-%COMP%]{box-shadow:none!important;border-radius:0!important;border-bottom:solid thin lightgray}.content[_ngcontent-%COMP%]{margin-top:0}.sticky-header[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.1607843137)!important;position:sticky;top:67px;z-index:1}}@media (width: 960px){.sticky-header[_ngcontent-%COMP%]{top:67px}.title-card[_ngcontent-%COMP%]{box-shadow:0 2px 2px #00000029!important;border:none;border-radius:8px!important}.content[_ngcontent-%COMP%]{padding:16px 0}.cards-wrapper[_ngcontent-%COMP%]{margin:12px -12px 0 0;display:flex;flex-wrap:wrap}.cards-wrapper[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]{margin:0 12px 12px 0;width:calc(33.33% - 12px)}}@media (max-width: 768px){.cards-wrapper[_ngcontent-%COMP%]{margin:0}.cards-wrapper[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]{margin:0 0 12px;width:100%}}@media (max-width: 430px){.sticky-header--native-ios[_ngcontent-%COMP%]{top:84px}}"]}),c})();var uI=i(22436);function fI(c,o){1&c&&(t.\u0275\u0275elementStart(0,"div",13),t.\u0275\u0275element(1,"app-breadcrumb"),t.\u0275\u0275elementStart(2,"span",14),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()),2&c&&(t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,1,"SHARED.NEWSLETTER_UNSUBSCRIBE.NEWSLETTER")," "))}function mI(c,o){1&c&&t.\u0275\u0275element(0,"mat-divider")}const gI=function(c){return{"newsletter-unsubscribe__container--unsubscribe-section":c}};function _I(c,o){if(1&c&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",15),t.\u0275\u0275element(2,"img",16),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementStart(4,"div",17)(5,"span",18),t.\u0275\u0275text(6),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"span",19),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementContainerEnd()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(13,gI,r.isSmallDevice))("fxLayout",r.isSmallDevice?"column":"row"),t.\u0275\u0275advance(1),t.\u0275\u0275property("src",r.NEWSLETTER_UNSUBSCRIBE_ICON,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(3,7,"SHARED.NEWSLETTER_UNSUBSCRIBE.UNSUBSCRIBE_ICON")),t.\u0275\u0275advance(2),t.\u0275\u0275property("fxLayoutAlign",r.isSmallDevice?"center center":"center start"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(7,9,"SHARED.NEWSLETTER_UNSUBSCRIBE.UNSUBSCRIBE_QUESTION")," "),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(10,11,"SHARED.NEWSLETTER_UNSUBSCRIBE.UNSUBSCRIBE_INFO")," ")}}function vI(c,o){1&c&&t.\u0275\u0275element(0,"mat-divider",20)}const BM=function(c){return{"w-100":c}};function bI(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"span",21),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.redirectToHomePage())}),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"uppercase"),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"drc-button",22),t.\u0275\u0275listener("clickEvent",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.confirmUnsubscribe())}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementContainerEnd()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,5,t.\u0275\u0275pipeBind1(4,7,"SHARED.NEWSLETTER_UNSUBSCRIBE.CANCEL_UNSUBSCRIBE"))," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(9,BM,r.isSmallDevice))("color",r.buttonColor.warn)("type",r.buttonType.textButton)("textTranslationKey","SHARED.NEWSLETTER_UNSUBSCRIBE.CONFIRM_UNSUBSCRIBE")}}const yI=function(c){return{"newsletter-unsubscribe__container--unsubcribed-section":c}},CI=function(c){return{email:c}};function EI(c,o){if(1&c&&(t.\u0275\u0275elementStart(0,"div",15),t.\u0275\u0275element(1,"img",16),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementStart(3,"div",17)(4,"span",23),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(7,"span",24),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementEnd()()),2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(14,yI,r.isSmallDevice))("fxLayout",r.isSmallDevice?"column":"row"),t.\u0275\u0275advance(1),t.\u0275\u0275property("src",r.NEWSLETTER_UNSUBSCRIBE_ICON,t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(2,7,"SHARED.NEWSLETTER_UNSUBSCRIBE.UNSUBSCRIBED_ICON")),t.\u0275\u0275advance(2),t.\u0275\u0275property("fxLayoutAlign",r.isSmallDevice?"center center":"center start"),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,9,"SHARED.NEWSLETTER_UNSUBSCRIBE.SUCCESSFULLY_UNSUBSCRIBE")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind2(8,11,"SHARED.NEWSLETTER_UNSUBSCRIBE.SUCCESSFULLY_UNSUBSCRIBE_INFO",t.\u0275\u0275pureFunction1(16,CI,r.email)),t.\u0275\u0275sanitizeHtml)}}function xI(c,o){if(1&c){const r=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"drc-button",25),t.\u0275\u0275listener("clickEvent",function(){t.\u0275\u0275restoreView(r);const M=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(M.redirectToHomePage())}),t.\u0275\u0275elementEnd()}if(2&c){const r=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(6,BM,r.isSmallDevice))("color",r.buttonColor.primary)("type",r.buttonType.iconAndTextButton)("icon","chevron_right")("iconPosition",r.iconPositions.right)("textTranslationKey","SHARED.NEWSLETTER_UNSUBSCRIBE.TO_HOME_PAGE")}}const MI=function(c){return{"newsletter-unsubscribe__card-container--full-size":c}},SI=function(c,o){return{"newsletter-unsubscribe__footer":c,"pt-16":o}};class ig{constructor(o,r,m,M){this.router=o,this.route=r,this.appService=m,this.snackbarMessageService=M,this.isUnsubscribed=!1,this.buttonType=St.L$3,this.iconPositions=St.ggF,this.buttonColor=St.B6Y,this.NEWSLETTER_UNSUBSCRIBE_ICON=St.VCj,this.destroy$=new Ks.x}ngOnInit(){this.route.queryParams.pipe((0,ts.R)(this.destroy$)).subscribe({next:o=>{this.email=o.email,this.token=o.token}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get isSmallDevice(){return window.innerWidth<=St.u3l.DESKTOP_S}redirectToHomePage(){this.router.navigate([St.s67])}confirmUnsubscribe(){this.appService.unsubscribeNewsletter({token:this.token,email:this.email}).pipe((0,So.q)(1)).subscribe({next:()=>{this.email===this.user?.email&&(this.user.profile.newsletter=!1),this.isUnsubscribed=!0},error:()=>this.snackbarMessageService.displayMessage(St.CsS.ERROR,"SHARED.NEWSLETTER_UNSUBSCRIBE.UNSUBSCRIBE_ERROR_MESSAGE")})}}ig.\u0275fac=function(o){return new(o||ig)(t.\u0275\u0275directiveInject(to.F0),t.\u0275\u0275directiveInject(to.gz),t.\u0275\u0275directiveInject(Fp.z),t.\u0275\u0275directiveInject(St.vio.SnackbarMessageServiceToken))},ig.\u0275cmp=t.\u0275\u0275defineComponent({type:ig,selectors:[["app-newsletter-unsubscribe"]],decls:19,vars:19,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"newsletter-unsubscribe-nav",3,"fxHide"],[1,"material-icons",3,"click"],["fxLayout","row","fxLayoutAlign","center center",1,"newsletter-unsubscribe-nav__title-wrapper"],[1,"newsletter-unsubscribe-nav__title"],[1,"newsletter-unsubscribe__card-container",3,"ngClass"],["class","newsletter-unsubscribe__title-wrapper",4,"ngIf"],[1,"newsletter-unsubscribe"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["class","mat-divider",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px",3,"ngClass","fxLayoutAlign"],["unsubscribedSection",""],["unsubscribedSectionButton",""],[1,"newsletter-unsubscribe__title-wrapper"],[1,"newsletter-unsubscribe__title"],["fxLayoutAlign","start center","fxLayoutGap","16px",1,"newsletter-unsubscribe__container",3,"ngClass","fxLayout"],[3,"src","alt"],["fxLayout","column","fxLayoutGap","8px",3,"fxLayoutAlign"],[1,"newsletter-unsubscribe__question-title"],[1,"newsletter-unsubscribe__info"],[1,"mat-divider"],[1,"newsletter-unsubscribe__cancel-button",3,"click"],[3,"ngClass","color","type","textTranslationKey","clickEvent"],[1,"newsletter-unsubscribe__successfully-title"],[1,"newsletter-unsubscribe__info",3,"innerHTML"],[3,"ngClass","color","type","icon","iconPosition","textTranslationKey","clickEvent"]],template:function(o,r){if(1&o&&(t.\u0275\u0275elementStart(0,"div",0)(1,"i",1),t.\u0275\u0275listener("click",function(){return r.redirectToHomePage()}),t.\u0275\u0275text(2,"arrow_back"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",2)(4,"span",3),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(7,"mat-card",4),t.\u0275\u0275template(8,fI,5,3,"div",5),t.\u0275\u0275elementStart(9,"div",6),t.\u0275\u0275template(10,mI,1,0,"mat-divider",7),t.\u0275\u0275template(11,_I,11,15,"ng-container",8),t.\u0275\u0275template(12,vI,1,0,"mat-divider",9),t.\u0275\u0275elementStart(13,"div",10),t.\u0275\u0275template(14,bI,6,11,"ng-container",8),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(15,EI,9,18,"ng-template",null,11,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(17,xI,1,8,"ng-template",null,12,t.\u0275\u0275templateRefExtractor)),2&o){const m=t.\u0275\u0275reference(16),M=t.\u0275\u0275reference(18);t.\u0275\u0275property("fxHide",!r.isSmallDevice),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(6,12,"SHARED.NEWSLETTER_UNSUBSCRIBE.NEWSLETTER")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(14,MI,r.isSmallDevice)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.isSmallDevice),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!r.isSmallDevice),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.isUnsubscribed)("ngIfElse",m),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.isSmallDevice&&!r.isUnsubscribed),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction2(16,SI,r.isSmallDevice,!r.isUnsubscribed&&!r.isSmallDevice))("fxLayoutAlign",r.isSmallDevice?"center center":"center start"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!r.isUnsubscribed)("ngIfElse",M)}},dependencies:[_C.r,Ze.NgClass,Ze.NgIf,je.xw,je.SQ,je.Wh,lt.b8,lt.oO,Qm.S$,ar.d,fn.b,FM.L,Ze.UpperCasePipe,ea.X$],styles:[".newsletter-unsubscribe__successfully-title[_ngcontent-%COMP%], .newsletter-unsubscribe__question-title[_ngcontent-%COMP%], .newsletter-unsubscribe__title[_ngcontent-%COMP%], .newsletter-unsubscribe-nav__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700}.newsletter-unsubscribe-nav[_ngcontent-%COMP%]{padding:11.5px 16px;border-bottom:1px solid #b2b5bb;background:#ffffff;position:sticky;top:67px;z-index:1}.newsletter-unsubscribe-nav[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:20px;font-weight:700;z-index:1;cursor:pointer}.newsletter-unsubscribe-nav__title[_ngcontent-%COMP%]{line-height:29px}.newsletter-unsubscribe-nav__title-wrapper[_ngcontent-%COMP%]{width:100%;margin-left:-20px}.newsletter-unsubscribe[_ngcontent-%COMP%]{background:#ffffff;color:#242424;height:100%}.newsletter-unsubscribe__title-wrapper[_ngcontent-%COMP%]{padding-bottom:16px}.newsletter-unsubscribe__title[_ngcontent-%COMP%]{line-height:29px}.newsletter-unsubscribe__question-title[_ngcontent-%COMP%]{color:#d93c2f}.newsletter-unsubscribe__successfully-title[_ngcontent-%COMP%]{color:#00853b}.newsletter-unsubscribe__info[_ngcontent-%COMP%]{font-size:14px;line-height:22px;text-align:center}.newsletter-unsubscribe__container[_ngcontent-%COMP%]{padding:16px 0}.newsletter-unsubscribe__container--unsubscribe-section[_ngcontent-%COMP%]{padding:0;height:calc(100vh - 245px)}.newsletter-unsubscribe__container--unsubcribed-section[_ngcontent-%COMP%]{padding:0;height:calc(100vh - 207px)}.newsletter-unsubscribe__footer[_ngcontent-%COMP%]{box-shadow:0 -2px #0003;position:sticky;bottom:0;padding:16px 16px 0;margin:0 -16px}.newsletter-unsubscribe__cancel-button[_ngcontent-%COMP%]{font-size:14px;line-height:22px;font-weight:700;cursor:pointer}.newsletter-unsubscribe__card-container--full-size[_ngcontent-%COMP%]{border-radius:0!important}.mat-divider[_ngcontent-%COMP%]{margin:0 -16px}"]}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],ig.prototype,"user",void 0);const UM=to.Bz.forRoot([{path:St.tLg,component:ng,resolve:{user:_,availableLocations:ND},children:[{path:St.tLg,loadChildren:()=>Promise.all([i.e(592),i.e(404)]).then(i.bind(i,90404)).then(c=>c.HomeModule)},{path:St.v2Z.PATIENT_ACCOUNT,loadChildren:()=>Promise.all([i.e(222),i.e(592),i.e(858)]).then(i.bind(i,28858)).then(c=>c.PatientModule),data:{breadcrumb:"ROUTES.APP.PATIENT_ACCOUNT"}},{path:St.ZTG.SHOP_ACCOUNT,loadChildren:()=>Promise.all([i.e(592),i.e(850)]).then(i.bind(i,42850)).then(c=>c.BusinessModule),data:{breadcrumb:"ROUTES.APP.SHOP_ACCOUNT"}},{path:St.ZTG.MARKET_ACCOUNT,loadChildren:()=>Promise.all([i.e(592),i.e(850)]).then(i.bind(i,42850)).then(c=>c.BusinessModule),data:{breadcrumb:"ROUTES.APP.MARKET_ACCOUNT"}},{path:St.ZTG.PARTNER_ACCOUNT,loadChildren:()=>Promise.all([i.e(592),i.e(850)]).then(i.bind(i,42850)).then(c=>c.BusinessModule),data:{breadcrumb:"ROUTES.APP.PARTNER_ACCOUNT"}},{path:St.ZTG.PHARMACY_ACCOUNT,loadChildren:()=>Promise.all([i.e(592),i.e(850)]).then(i.bind(i,42850)).then(c=>c.BusinessModule),data:{breadcrumb:"ROUTES.APP.PHARMACY_ACCOUNT"}},{path:St.M0m.PHARMACY_PROFILE,loadChildren:()=>Promise.all([i.e(58),i.e(592),i.e(782)]).then(i.bind(i,57782)).then(c=>c.ProfileModule),data:{type:"business"},resolve:{profile:f.B}},{path:St.M0m.SHOP_PROFILE,loadChildren:()=>Promise.all([i.e(58),i.e(592),i.e(782)]).then(i.bind(i,57782)).then(c=>c.ProfileModule),data:{type:"business"},resolve:{profile:f.B}},{path:St.M0m.PARTNER_PROFILE,loadChildren:()=>Promise.all([i.e(58),i.e(592),i.e(782)]).then(i.bind(i,57782)).then(c=>c.ProfileModule),data:{type:"business"},resolve:{profile:f.B}},{path:St.M0m.EMPLOYEE_PROFILE,loadChildren:()=>Promise.all([i.e(58),i.e(592),i.e(782)]).then(i.bind(i,57782)).then(c=>c.ProfileModule),data:{type:"employee"},resolve:{profile:f.B}},{path:St.v2Z.FAVORITES,redirectTo:St.tKG,data:{}},{path:St.Jjk.CART,loadChildren:()=>Promise.all([i.e(222),i.e(231)]).then(i.bind(i,1231)).then(c=>c.CartModule),data:{}},{path:St.D2x.CONTACT,redirectTo:`${St.D2x.ABOUT}/${St.D2x.CONTACT}`,data:{}},{path:St.D2x.CONTACT_B2B,redirectTo:`${St.D2x.ABOUT}/${St.D2x.CONTACT_B2B}`,data:{}},{path:St.tNi.NEWSLETTER_UNSUBSCRIBE,pathMatch:"full",component:ig,data:{breadcrumb:"ROUTES.NEWSLETTER.TITLE"}},{path:St.nk1.AUTHENTICATION,loadChildren:()=>i.e(780).then(i.bind(i,29780)).then(c=>c.AuthenticationModule),canActivate:[uI.Q],data:{breadcrumb:!1}},{path:St.Z2M.PRODUCTS,loadChildren:()=>Promise.all([i.e(58),i.e(486)]).then(i.bind(i,96486)).then(c=>c.ProductsModule),data:{}},{path:St.nUJ.RESTAURANTS,component:dI},{path:St.Z2M.RESTAURANTS,loadChildren:()=>Promise.all([i.e(58),i.e(486)]).then(i.bind(i,96486)).then(c=>c.ProductsModule)},{path:St.D2x.ABOUT,loadChildren:()=>i.e(317).then(i.bind(i,33317)).then(c=>c.AboutModule),data:{breadcrumb:"ROUTES.APP.ABOUT"}},{path:St.nk1.REGISTRATION,loadChildren:()=>i.e(780).then(i.bind(i,29780)).then(c=>c.AuthenticationModule),data:{breadcrumb:!1}},{path:St.LXs.RESET,component:kD},{path:"hidden",canActivate:[O.Ne],loadChildren:()=>i.e(621).then(i.bind(i,52621)).then(c=>c.HiddenModule),data:{toggleName:RM.T.HiddenPage,redirectUrl:"/inregistrare"}},{path:St.YuG.NOT_FOUND,component:RD}]},{path:St.nk1.CONFIRMATION,loadChildren:()=>i.e(780).then(i.bind(i,29780)).then(c=>c.AuthenticationModule),data:{breadcrumb:!1}}],{anchorScrolling:"enabled"});var OI=i(51588),jM=i(48382);class Wp{constructor(o,r){this.http=o,this.userService=r,this.searchDataSubject=new Av.X(null),this.searchData$=this.searchDataSubject.asObservable()}initialize(){this.userService.user$.pipe((0,Sr.w)(o=>(0,jM.s)(()=>this._user&&!o,this.updateDataOnLogout(),(0,Fr.of)(o))),(0,Sr.w)(o=>(0,jM.s)(()=>!this._user&&o&&o instanceof hs.n,this.updateDataOnLogin(o),(0,Fr.of)(o)))).subscribe()}updateDataOnLogout(){this._user=null;const o=this.searchDataSubject.getValue();return o&&o.userSearches&&(o.userSearches=[],this.searchDataSubject.next(o)),(0,Fr.of)(!1)}updateDataOnLogin(o){if(o&&o.getType()===St.FWD.CLIENT){this._user=o;const r=JSON.parse(localStorage.getItem("searchHistory"));(r?.length>0?this.mergeSearchHistories(r):this.fetchRemoteSearchHistory()).subscribe()}return(0,Fr.of)(!0)}getFormattedSearchEntries(o){return o.map(r=>(r.id&&delete r.id,r))}fetchRemoteSearchHistory(){return this.fetch().pipe((0,oc.b)(o=>this.searchDataSubject.next(new St.TxW(o))))}mergeSearchHistories(o){return this.addMultipleSearchEntries(this.getFormattedSearchEntries(o)).pipe((0,Sr.w)(()=>this.fetch()),(0,oc.b)(r=>this.searchDataSubject.next(new St.TxW(r))),(0,Sr.w)(()=>this.clearLocalSearchHistory()))}getSearchData(){return this.searchDataSubject.getValue()?this.searchData$:this.fetch().pipe((0,Sr.w)(o=>(this.searchDataSubject.next(new St.TxW(o)),this.searchData$)))}fetch(){let o=new s.WM;return o=o.set("noSpinner","true"),this.http.get(St.jAO.GET_SEARCH_HISTORY,{headers:o}).pipe((0,Sr.w)(r=>this.userService.getCurrent().pipe((0,Sr.w)(m=>m?(0,Fr.of)(r):this.setUserSearchesAsGuest(r)))))}setUserSearchesAsGuest(o){const r=JSON.parse(localStorage.getItem("searchHistory"))??[];return o.userSearches=r.slice(0,3),(0,Fr.of)(o)}addToRemoteHistory(o){return this.http.post(St.jAO.ADD_TO_REMOTE_HISTORY,{keyword:o.keyword}).pipe((0,Sr.w)(r=>(this.updateSearchHistory(r),(0,Fr.of)(!0))),(0,_u.K)(()=>(0,Fr.of)(!1)))}addToLocalHistory(o){const r={id:(0,OI.Z)(),keyword:o.keyword};o.category&&(r.category=o.category.categoryId);const m=this.updateSearchHistory(r);return localStorage.setItem("searchHistory",JSON.stringify(m)),(0,Fr.of)(!0)}updateSearchHistory(o){const r=this.searchDataSubject.getValue();return r?.userSearches||(r.userSearches=[]),r.userSearches.unshift(o),this.searchDataSubject.next(r),r.userSearches}addMultipleSearchEntries(o){return this.http.post(St.jAO.ADD_MULTIPLE_SEARCH_ENTRIES,o)}deleteSearchEntry(o){const r=this.searchDataSubject.getValue();return r.userSearches=r.userSearches.filter(m=>m.id!==o.id),this.user?this.http.delete(St.jAO.DELETE_SEARCH_ENTRY(o.id)).pipe((0,Sr.w)(()=>(this.searchDataSubject.next(r),(0,Fr.of)(!0))),(0,_u.K)(()=>(0,Fr.of)(!1))):(localStorage.setItem("searchHistory",JSON.stringify(r.userSearches)),this.searchDataSubject.next(r),(0,Fr.of)(!0))}clearLocalSearchHistory(){return localStorage.setItem("searchHistory",JSON.stringify([])),(0,Fr.of)(!0)}getSearchSuggestions(o){let r=new s.WM;return r=r.set("noSpinner","true"),this.http.post(St.jAO.GET_SEARCH_SUGGESTIONS,o,{headers:r}).pipe((0,Sr.w)(m=>(0,Fr.of)(new St.lt8(m))))}}Wp.\u0275fac=function(o){return new(o||Wp)(t.\u0275\u0275inject(s.eN),t.\u0275\u0275inject(Al.O))},Wp.\u0275prov=t.\u0275\u0275defineInjectable({token:Wp,factory:Wp.\u0275fac,providedIn:"root"}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Wp.prototype,"user",void 0);const HM=[{title:"Relevan\u021b\u0103",field:"_score,desc"},{title:"Nume Produs",field:"registered_name.raw,asc"},{title:"Cele mai noi",field:"last_added_products,desc"},{title:"Pre\u021b crescator",field:"packagings.drugOffers.price,asc"},{title:"Pre\u021b descrescator",field:"packagings.drugOffers.price,desc"}];let VM=(()=>{class c{constructor(){this.category=null,this.filtersSource=new Av.X(null),this.queryParam={queryParams:{},routeParams:{},commands:[]},this.categories={depthZero:[],depthOne:[],depthTwo:[]},this._options={firstLoad:!1,view:{type:"grid",size:25,sidenav:!0},page:{size:[30,45,60,75],sortMap:{"_score,desc":"Relevan\u021b\u0103","registered_name.raw,asc":"Nume Produs","last_added_products,desc":"Cele mai noi","packagings.drugOffers.price,asc":"Pre\u021b crescator","packagings.drugOffers.price,desc":"Pre\u021b descrescator"},sort:HM},filters:[],filtersConfig:{default:[{key:"category",title:"CATEGORII",show:!0,loading:!0,exclusive:!0,options:[]},{key:"restaurants",title:"RESTAURANTE",show:!1,routerLink:"",options:[]},{key:"location",title:"LOCALITATE",show:!0,loading:!0,exclusive:!0,options:[]},{key:"businessNames",title:"V\xc2NDUT DE",show:!0,loading:!0,exclusive:!1,options:[]},{key:"price",title:"PRE\u021a",show:!0,loading:!0,options:{showSelectionBar:!1,showSelectionBarEnd:!1,selectionBarGradient:{from:"#00853b",to:"#ff0000"},floor:0,ceil:0}}],A:[{key:"issuing",title:"RE\u021aET\u0102",show:!0,loading:!0,required:!1,default:"NOT_REQUIRED",exclusive:!0,options:[]},{key:"pharmaceutical_form",title:"FORM\u0102 FARMACEUTIC\u0102",show:!0,loading:!0,exclusive:!0,options:[]}]}},this._defaults={sort:this._options.page.sort[0].field,size:this._options.page.size[0]},this._filters=new Hp.jO,this._lastRequest={route:null,query:null}}get options(){return this._options}get filters(){return this._filters}get lastRequest(){return this._lastRequest}get params(){return this.queryParam}get baseURL(){return this.baseUrl}get currentCategory(){return this.category}setCategories(r,m,M){this.categories.depthZero=r,this.categories.depthOne=m,this.categories.depthTwo=M}setFilters(r,m,M,I=!1){let G=r.required;return G&&"function"==typeof G&&(G=G(this._filters)),this._filters[r.key]=G&&!M?r.options.find(_t=>_t.key!==m.key).key:M?m.key:null,r.key.includes("category")&&(this._filters=this.manageCategoryFilter(m,M,I)),(0,Fr.of)({filters:this._filters,params:this.queryParam})}setBusinessFilter(r,m){return m?this.addBusinessName(r.key):this.removeBusinessName(r.key),this.updateFilters(),(0,Fr.of)({filters:this._filters,params:this.queryParam})}removeBusinessName(r){!this._filters.businessNames.length||!this._filters.businessNames.includes(r)||(this._filters.businessNames=this._filters.businessNames.filter(m=>m!==r))}addBusinessName(r){this._filters.businessNames.length&&this._filters.businessNames.includes(r)||this._filters.businessNames.push(r)}setOptions(r){this._options.page.sort=r}setProductListingOptions(){this._options.page.sort=HM}updateFilters(){let r=this._filters.stripEmpty(this._filters);this._filters.categories.length>=1&&(r.category=this._filters.categories.join(",")),this._filters.businessNames.length>=1&&(r.businessNames=this._filters.businessNames.join(",")),(!this._filters.price[0]&&0!==this._filters.price[0]||!this._filters.price[1])&&delete r.price;const m={categories:r.categories,text:r.text};delete r.categories,delete r.text,this._options.filters.filter(G=>!!G.default).forEach(G=>{if(r[G.key]===G.default){let Me=G.required;Me&&"function"==typeof Me&&(Me=Me(this._filters)),Me&&delete r[G.key]}}),r.price?r.price=this.formatPriceParams(r):delete r.price,r=this.setPaginationDetails(r),delete r.pagination,delete r.businessEmail,Object.keys(r).forEach(G=>{r[G]=String(r[G])});const M=[this.baseURL];let I=!1;this.baseURL.split("/")[0]===St.Z2M.PRODUCTS&&!this.baseURL.split("/")[1]&&(I=!0),I&&delete r.category,this.queryParam={queryParams:r,routeParams:m,commands:M}}formatPriceParams(r){if(r.price){const m=parseFloat(r.price[0]),M=parseFloat(r.price[1]);r.price=m>M?[100*M,100*m].join("-"):[100*m,100*M].join("-")}return r.price}setPaginationDetails(r){return this._filters.pagination.page>0&&(r.page=this._filters.pagination.page),this._filters.pagination.size!==this._defaults.size&&(r.size=this._filters.pagination.size),this._filters.pagination.sort!==this._defaults.sort&&(r.sort=this._filters.pagination.sort),r}shouldDisplayActiveFilters(){return!this._filters.text&&this._filters.categories.length>=1&&!St.F6k.includes(this._filters.categories[0])||!!this._filters.pharmaceutical_form||!!this._filters.issuing||!!this._filters.businessNames&&this._filters.businessNames.length>0}countActiveFilters(){let r=0;if(this.shouldDisplayActiveFilters()){const m=this._filters.categories.filter(M=>!St.F6k.includes(M));r+=m.length?m.length:0,r+=this._filters.pharmaceutical_form?1:0,r+=this._filters.issuing?1:0,r+=this._filters.businessNames.length?this._filters.businessNames.length:0}return r}setBaseUrl(r){this.baseUrl=r}setParentUrl(r){this.parentUrl=r}setPriceRange(r,m){return this._filters.price=[r/100,m/100],this._filters.price[0]===r&&0===r&&100*this._filters.maxPriceLimit===m?delete this.queryParam.queryParams.price:this.queryParam.queryParams.price=`${r}-${m}`,this._filters}setSorting(r,m=!1){return this._filters.pagination.sort=r.field,m&&(this.queryParam.queryParams.sort=r.field),this._filters}getBusinessDefaultCategory(){return St.FgB[this.businessType]??St.FgB.SHOP}loadFilters(r){const[m,M]=r.changes;return m.atc&&"undefined"!==m.atc?(this.categorySlug=m.atc,this.category=this.categorySlug.split("-").pop(),this._filters.categories=[this.category],this._filters.category=this.category):(this._filters.categories=m.slug?[M.category||this.getBusinessDefaultCategory()]:[],this._filters.category=m.slug?M.category||this.getBusinessDefaultCategory():null),this._options.filters=this._options.filtersConfig.default.filter(()=>!0),this._filters.categories.length&&this._options.filtersConfig[this._filters.categories[0].substr(0,1)]&&this._options.filters.push(...this._options.filtersConfig[this._filters.categories[0].substr(0,1)]),this._options.filters.forEach(I=>{I.key.includes("category")&&!I.options.length&&(r.categories.forEach(G=>{G.categoryId.length<=3&&I.options.push(G)}),I.options.sort((G,Me)=>{const _t=G.categoryId.toLowerCase(),Gt=Me.categoryId.toLowerCase();return _t<Gt?-1:_t>Gt?1:0}))}),this._filters.pagination.page=0,Object.keys(M).forEach(I=>{switch(I){case"category":M[I]&&"undefined"!==M[I]&&(this._filters.categories=M[I].split(",")||this.category,this.category=M[I]||this.category);break;case"businessNames":this._filters.businessNames=M[I].split(",");break;case"price":const G=M[I].split("-").map(Me=>parseInt(Me,10));this._filters.price=[G[0]/100,G[1]/100];break;case"page":this._filters.pagination.page=parseInt(M.page,10)-1;break;case"size":this._filters.pagination.size=parseInt(M.size,10);break;case"sort":this._filters.pagination.sort=M.sort;break;case"withPhoto":case"inStock":case"newOffer":this._filters[I]="true"===M[I];break;default:this._filters[I]=M[I]}}),this._options.filters.forEach(I=>{let G=I.required;G&&"function"==typeof G&&(G=G(this._filters)),G&&!this._filters[I.key]&&(this._filters[I.key]=I)}),m.term&&(this._filters.text=m.term,this.setBaseUrl(`${St.Z2M.PRODUCTS}/${St.Z2M.SEARCH}/${this._filters.text}`)),this._lastRequest={route:m,query:M},this._options.firstLoad=!0,this.updateFilters(),(0,Fr.of)({filters:this._filters,options:this._options})}setUpBusinessFilters(r,m){const M=r.changes?r.changes.find(I=>I.category):null;m?(this.businessType=m.businessType,this.businessSlug=m.slug,this._filters=new Hp.jO({categories:M?M.category.split(","):[],withPhoto:!1,newOffer:!1,pagination:{page:0,size:this._defaults.size,sort:this._defaults.sort},businessEmail:m?m.email:""})):this._filters=new Hp.jO({categories:M?M.category.split(","):[this.category],withPhoto:!1,inStock:!1,newOffer:!1,pagination:{page:0,size:this._defaults.size,sort:this._defaults.sort}})}setFiltersSource(r){this.filtersSource.next(r||null)}setLocationFilter(r,m){St.VLR.normalizeRomanianDiacritics(r?.toLowerCase())!=St.VLR.normalizeRomanianDiacritics(this._filters.location?.toLowerCase())&&(this._filters.businessNames=[]),this._filters.location=m?r.toUpperCase():"false",this.queryParam&&this.queryParam.queryParams&&(this.queryParam.queryParams.location=r.toUpperCase()),this.updateFilters()}setLocationFilterAndRemoveCityAndCounty(r,m){this._filters.city&&this._filters.county&&(delete this._filters.city,delete this._filters.county),this.setLocationFilter(r,m)}changePageSize(r,m=!1){return this._filters.pagination.size=r,this.resetPage(),m&&(this.queryParam.queryParams.price&&delete this.queryParam.queryParams.price,this.queryParam.queryParams.size=r),this._filters}resetFilters(){return this._filters=new Hp.jO({categories:[this.businessSlug?this.getBusinessDefaultCategory():"A"]}),this.queryParam={queryParams:{category:this.businessSlug?this.getBusinessDefaultCategory():"A"}},(0,Fr.of)({filters:this._filters,queryParams:this.queryParam})}resetProductFilters(r){return this._filters=new Hp.jO(r?{categories:[r]}:this._filters.text?{text:this._filters.text}:null),this._filters.category=r||null,this.queryParam=r?{queryParams:{category:r}}:this.queryParam,(0,Fr.of)(this._filters)}changePage(r,m=!1){return this._filters.pagination.page=r.pageIndex,this._filters.pagination.size=r.pageSize,m&&(this.queryParam.queryParams.size=r.pageSize,this.queryParam.queryParams.page=r.pageIndex),this._filters}resetPage(){this._filters.pagination.page=1,this.queryParam.queryParams.page=1}manageCategoryFilter(r,m,M=!1){return m?this.checkCategoryFilter(r,M):this.uncheckCategoryFilter(r),this._filters.category=this._filters.categories.join(","),this.queryParam.queryParams.category=this._filters.categories.join(","),this._filters}checkCategoryFilter(r,m=!1){const M=[...this.categories.depthZero,...this.categories.depthOne];(m?M:this.categories.depthOne).find(G=>G.categoryId===r.categoryId)?this._filters=new Hp.jO({categories:[r.categoryId],withPhoto:!1,newOffer:!1,pagination:{page:0,size:this._defaults.size,sort:this._defaults.sort}}):this._filters.categories.includes(r.categoryId)||(this._filters.categories=this._filters.categories.filter(G=>G!==r.parentId),this._filters.categories.push(r.categoryId))}uncheckCategoryFilter(r){this._filters.categories=this._filters.categories.filter(m=>m!==r.categoryId),this._filters.categories.length||(this._filters.categories.push(r.parentId),this._filters.price=[],this._filters.maxPriceLimit=null)}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const II={};let PI=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})();var Zl=i(15368);const rg={undo:(0,xs.PH)("[UndoRedo] Undo"),redo:(0,xs.PH)("[UndoRedo] Redo")},WM=(0,xs.ZF)("history"),RI=(0,xs.P1)(WM,c=>c.undone),kI=(0,xs.P1)(WM,c=>c.undoable),zM=[{action:Zl.o.createFavoriteListSuccess.type,type:"CREATE"},{action:Zl.o.deleteFavoriteListSuccess.type,type:"DELETE"},{action:Zl.o.updateFavoriteList.type,type:"UPDATE"},{action:Za.N.addProductToListSuccess.type,type:"CREATE"},{action:Za.N.removeProductFromListSuccess.type,type:"DELETE"},{action:Za.N.deleteProductFromRootListSuccess.type,type:"DELETE"},{action:Za.N.addProductToListsSuccess.type,type:"CREATE"},{action:Za.N.updateProductSuccess.type,type:"UPDATE"}];function YM(c){return zM?.find(o=>o.action===c).type}function Tx(c,o){let r;const m=JSON.parse(JSON.stringify(o));let M;switch(o.type){case Zl.o.createFavoriteListSuccess.type:return r=Zl.o.deleteFavoriteList({id:o.favoriteList.id}),m.name=o.favoriteList.name,m.visibility=o.favoriteList.visibility,m.type=Zl.o.createFavoriteList.type,{action:o,newAction:[m],revAction:[r]};case Zl.o.deleteFavoriteListSuccess.type:return M=c.favorites?.favoritesLists.entities[`${o.id}`],r=Zl.o.createFavoriteList({name:M.name,visibility:M.visibility}),m.id=o.id,m.type=Zl.o.deleteFavoriteList.type,{action:o,newAction:[m],revAction:[r]};case Zl.o.updateFavoriteList.type:return M=c.favorites?.favoritesLists.entities[`${o.favoriteList.id}`],r=Zl.o.updateFavoriteList({favoriteList:M}),{action:o,newAction:[m],revAction:[r]};case Za.N.addProductToListSuccess.type:return r=Za.N.deleteProductList({...o,selected:!1}),{action:o,newAction:[{...o,type:Za.N.createProductList.type}],revAction:[r]};case Za.N.removeProductFromListSuccess.type:return r=Za.N.createProductList({...o,selected:!1}),{action:o,newAction:[{...o,type:Za.N.deleteProductList.type}],revAction:[r]};case Za.N.deleteProductFromRootListSuccess.type:return r=Za.N.addProductToLists(o),{action:o,newAction:[{...o,type:Za.N.deleteProductFromRootList.type}],revAction:[r]};case Za.N.addProductToListsSuccess.type:return r=Za.N.deleteProductFromRootList(o.productToList),{action:o,newAction:[{...o,type:Za.N.addProductToLists.type}],revAction:[r]};case Za.N.updateProductSuccess.type:const G=!m.selected,Me=G?m.updatedProduct.packagings[0].inFavouriteLists:{};return m.selected=G,m.type=Za.N.updateProductSuccess,m.updatedProduct.packagings[0].inFavouriteLists=Me,r=Za.N.updateProduct(m),{action:o,newAction:[m],revAction:[r]}}}let yC=1;function FI(c){const o={undone:[],undoable:[]};return(r,m)=>{let M;switch(m.type){case rg.undo.type:const I=r.history.undoable[0];return yC=0,M=c({...r,history:{undone:[I,...r.history.undone],undoable:r.history.undoable.slice(1)}},m),M;case rg.redo.type:const G=r.history.undone[0];return yC=0,M=c({...r,history:{undoable:[G,...r.history.undoable],undone:r.history.undone.slice(1)}},m),M;default:const Me=c(r,m);return function NI(c){return zM.map(o=>o.action).includes(c)}(m.type)?function BI(c,o,r,m){return yC<1?function UI(c,o){if(c.history?.undone[0]&&"DELETE"===YM(c.history.undone[0].action?.type)){const r=Tx(c,o);c.history.undone[0].newAction=r.revAction,c.history.undone[0].revAction=r.newAction}return yC++,c}(o,r):function jI(c,o,r,m){let M;M="CREATE"===YM(r.type)?Tx(o,r):Tx(c,r);const I={...c,history:m};return{...o,history:{undoable:[...I.history.undoable,M],undone:[]}}}(c,o,r,m)}(r,Me,m,o):Me}}}let HI=(()=>{class c{constructor(r,m){this.action$=r,this.store=m,this.undo$=(0,Uc.GW)(()=>this.action$.pipe((0,Uc.l4)(rg.undo),(0,Ha.M)(this.store.pipe((0,xs.Ys)(RI))),(0,Ah.z)(M=>M[1][0].revAction))),this.redo$=(0,Uc.GW)(()=>this.action$.pipe((0,Uc.l4)(rg.redo),(0,Ha.M)(this.store.pipe((0,xs.Ys)(kI))),(0,Ah.z)(M=>M[1][0].newAction)))}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(Uc.eX),t.\u0275\u0275inject(xs.yh))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})();const VI={};var CC=i(6204);let WI=(()=>{class c{constructor(r){this.cartService=r}initiateCheckout(r){r?this.emitInitiateCheckoutEvent(r):this.cartService.fetch().pipe((0,So.q)(1)).subscribe(m=>{this.emitInitiateCheckoutEvent(m)})}emitInitiateCheckoutEvent(r){const m=this.hashCartItems(r);window.fbq("track","InitiateCheckout",{currency:St.Kt6.Ron,num_items:m.length,value:r.totalValue/100,content_ids:m})}hashCartItems(r){const m=[];return r.allItems.forEach(M=>m.push(CC.V8.hashStr(`${M.productSlug}-${M.businessExternalId}`))),m}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(St.vio.CartServiceToken))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var zI=i(93087);let YI=(()=>{class c{addToCart(r){window.fbq("track","AddToCart",{content_type:"product",currency:St.Kt6.Ron,value:r.price/100,content_name:r.name,content_ids:[CC.V8.hashStr(`${r.productSlug}-${r.businessExternalId}`)],contents:[{id:r.productSlug,quantity:r.quantity}]})}completeRegistration(){window.fbq("track","CompleteRegistration")}viewContent(r){const m=[];r.offers.forEach(M=>m.push(CC.V8.hashStr(`${M.productSlug}-${M.businessExternalId}`))),window.fbq("track","ViewContent",{content_type:"product",content_ids:m,value:r.price/100,currency:St.Kt6.Ron,content_category:r.categorySlug,content_name:r.name})}purchase(r){const m=[];r.orderSummaryBase.businessOrders.forEach(M=>M.products.forEach(I=>m.push(CC.V8.hashStr(`${I.productSlug}-${M.businessExternalId}`)))),window.fbq("track","Purchase",{currency:St.Kt6.Ron,value:r.orderValue/100,content_ids:m,num_items:m.length})}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var GI=i(59049),EC=i(50008);let $I=(()=>{class c{constructor(r){this.http=r}getAddresses(){return this.http.get(St.Rr$.DELIVERY_ADDRESS_ENDPOINT,{headers:this.getNoSpinnerHeaders()}).pipe((0,$r.U)(r=>r.map(m=>new EC.k(m))))}addAddress(r){return this.http.post(St.Rr$.DELIVERY_ADDRESS_ENDPOINT,r,{headers:this.getNoSpinnerHeaders()}).pipe((0,$r.U)(m=>new EC.k(m)))}updateAddress(r){return this.http.put(St.Rr$.DELIVERY_ADDRESS_ENDPOINT,r,{headers:this.getNoSpinnerHeaders()})}changeCartAddress(r){return this.http.patch(St.Rr$.CHANGE_CART_DELIVERY_ADDRESS,{deliveryAddressId:r},{headers:this.getNoSpinnerHeaders()})}deleteAddress(r){return this.http.delete(St.Rr$.DELETE_ADDRESS(r.id),{headers:this.getNoSpinnerHeaders()})}getCompanyBillingAddresses(){return this.http.get(St.Rr$.COMPANY_BILLING_ADDRESS_ENDPOINT,{headers:this.getNoSpinnerHeaders()}).pipe((0,$r.U)(r=>r.map(m=>{const M=new GI.c(m);return M.type="company",M})))}addCompanyBillingAddress(r){return this.http.post(St.Rr$.COMPANY_BILLING_ADDRESS_ENDPOINT,r)}updateCompanyBillingAddress(r){return this.http.put(St.Rr$.COMPANY_BILLING_ADDRESS_ENDPOINT,r)}deleteCompanyBillingAddress(r){return this.http.delete(St.Rr$.DELETE_COMPANY_BILLING_ADDRESS(r.id))}getNoSpinnerHeaders(r=!0){let m=new s.WM;return m=m.set("noSpinner",r?"true":"false"),m}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(s.eN))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var KI=i(37049);let QI=(()=>{class c{constructor(r){this.http=r}getApiKeys(){return this.http.get(St.q7.BUSINESS_API_KEYS_ENDPOINT)}deleteApi(r){return this.http.delete(St.q7.DELETE_API_KEY(r))}getServices(){return this.http.get(St.q7.GET_SERVICES)}addKey(r,m,M){return this.http.post(St.q7.BUSINESS_API_KEYS_ENDPOINT,{name:r,key:m,services:M})}generateApiKey(){return this.http.get(St.q7.GET_API_KEY)}addService(r,m){return this.http.post(St.q7.ADD_SERVICE(r),m)}changeApiName(r,m){const M={name:m};return this.http.patch(St.q7.CHANGE_API_NAME(r),M)}regenerateApiKey(r){return this.http.put(St.q7.REGENERATE_API_KEY(r),null,{responseType:"text"})}getWebhookStatus(){return this.http.get("api/business/webhooks/status")}updateWebhookUrl(r){return this.http.put("api/business/webhooks",r)}testWebhooks(r){return this.http.post("api/business/developer/test-webhooks",r)}editWebhookUrl(r,m){return this.http.patch(St.q7.CHANGE_WEBHOOK_URL(r),m)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(s.eN))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var XI=i(41433),ZI=i(31483),JI=i(23312),kv=(()=>{return(c=kv||(kv={})).LOADED="loaded",c.COMPLETE="complete",kv;var c})(),Nv=(()=>{return(c=Nv||(Nv={})).LOADED="loaded",c.ALREADY_EXISTS="already loaded",Nv;var c})();const qI=[{name:"tag-manager",src:"../../assets/js/tag-manager.js",defer:!0}];let eP=(()=>{class c{constructor(r){this.document=r,this.scripts=[],qI.forEach(m=>{this.scripts.push(m),m.loaded||(m.loaded=!1),m.async||(m.async=!1),m.defer||(m.defer=!1)})}static buildScriptResolver(r,m){return{script:r,status:m?Nv.LOADED:Nv.ALREADY_EXISTS,loaded:!0}}initialize(r){this.renderer=r}loadScript(r){return new Promise(m=>{if(void 0===r||""===r)return;const M=this.scripts.filter(Me=>Me.name===r)[0];if(M.loaded)return m(c.buildScriptResolver(r,!1));const I=this.document.head,G=this.renderer.createElement("script");G.type="text/javascript",G.async=M.async,G.defer=M.defer,G.src=M.src,this.renderer.insertBefore(I,G,I.firstChild),G.readyState?G.onreadystatechange=()=>{if(G.readyState===kv.LOADED||G.readyState===kv.COMPLETE)return G.onreadystatechange=null,M.loaded=!0,m(c.buildScriptResolver(r,!0))}:G.onload=()=>(M.loaded=!0,m(c.buildScriptResolver(r,!0)))})}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(Ze.DOCUMENT))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var tP=i(6796),xC=i(73279);class Zh{constructor(o,r,m,M){this.http=o,this.userService=r,this.locationService=m,this.store=M}initialize(){this.store.select(tP.Qe).subscribe(o=>this.shouldMergeFavorites=o),this.userService.user$.subscribe(o=>{this.reloadPreviewOnRefresh(o),this.onUserLogout(o),this.onUserLogin(o)})}onUserLogin(o){!this.user&&o&&o.getType()===St.FWD.CLIENT&&(this.user=new hs.n(o),this.store.dispatch(xC.N.clearPreview()),this.shouldMergeFavorites?this.store.dispatch(Zl.o.mergeGuestFavorites()):(this.store.dispatch(xC.N.loadPreview()),this.store.dispatch(Zl.o.loadFavoriteLists())),this.userService.getGuestId()&&this.userService.deleteGuestId(),this.store.dispatch(Zl.o.loadFavoriteLists()))}reloadPreviewOnRefresh(o){!this.userService.isUserLoadingInProgress&&!o&&this.store.dispatch(xC.N.loadPreview())}onUserLogout(o){this.user&&!o&&(this.user=null,this.store.dispatch(Zl.o.refreshStoreAfterLogout()),this.store.dispatch(xC.N.clearPreview()))}mergeGuestFavorites(){const r={guestId:this.userService.getGuestId()};return this.http.post(St.EYe.MERGE_GUEST_FAVORITES,r)}add(o,r){const m={};return m.slug=o,"-1"!==r&&(m.favouriteListId=r),this.userService.getCurrent().pipe((0,So.q)(1),(0,Sr.w)(M=>M&&M.getType()===St.FWD.CLIENT?this.addToUserFavoriteList(m):this.addToGuestFavorite(m)))}addProductToMultipleLists(o){return this.http.post(St.EYe.ADD_PRODUCT_TO_MULTIPLE_LISTS,o,{headers:St.VLR.setDisplaySpinnerHeaders()})}addToUserFavoriteList(o){return-1===o.favouriteListId&&delete o.favouriteListId,this.http.post(St.EYe.ADD_PRODUCT_TO_FAVORITES_LIST,o,{headers:St.VLR.setDisplaySpinnerHeaders()})}addToGuestFavorite(o){const r=this.userService.getGuestId();return this.http.post(St.EYe.ADD_PRODUCT_TO_GUEST_FAVORITES_LIST(r),o,{headers:St.VLR.setDisplaySpinnerHeaders()})}remove(o,r){return this.userService.getCurrent().pipe((0,So.q)(1),(0,Sr.w)(m=>m&&m.getType()===St.FWD.CLIENT?r?this.removeFromList(o,r):this.removeFromRootList(o):this.removeFromGuestUser(o)))}removeFromList(o,r){return this.http.delete(St.EYe.REMOVE_FROM_LIST(r,o))}removeFromRootList(o){return this.http.delete(St.EYe.REMOVE_FROM_ROOT_LIST(o),{headers:St.VLR.setDisplaySpinnerHeaders()})}removeFromGuestUser(o){const r=this.userService.getGuestId();return this.http.delete(St.EYe.REMOVE_FROM_GUEST_LIST(r,o),{headers:St.VLR.setDisplaySpinnerHeaders()})}deleteFromList(o,r){return this.http.delete("-1"===o?St.EYe.REMOVE_FROM_ROOT_LIST(r):St.EYe.REMOVE_FROM_LIST(o,r))}createFavoritesList(o){return this.http.post(St.EYe.FAVORITES_LISTS_ENDPOINT,{name:o.name,visibility:o.visibility})}updateFavoritesList(o){return this.http.put(St.EYe.FAVORITE_LIST_BY_ID_ENDPOINT(o.id),{name:o.name,visibility:o.visibility})}deleteFavoritesList(o){return this.http.delete(St.EYe.FAVORITE_LIST_BY_ID_ENDPOINT(o))}getFavoritesLists(){return this.http.get(St.EYe.FAVORITES_LISTS_ENDPOINT,{headers:St.VLR.setDisplaySpinnerHeaders()})}getFavoritesListsProducts(o,r){const m={city:"",county:""},M=this.locationService.locationFromStorage.split("~");if(m.city=M[0],m.county=M[1],o)return this.http.get(St.EYe.GET_FAVORITES_LISTS_PRODUCTS(o,m.county,m.city),{params:r})}getPreviewProducts(){const o={city:"",county:""},r=this.locationService.locationFromStorage.split("~");return o.city=r[0],o.county=r[1],this.userService.getCurrent().pipe((0,So.q)(1),(0,Sr.w)(m=>m&&m.getType()===St.FWD.CLIENT?this.getUserPreview(o):this.getGuestPreview(o)))}getUserPreview(o){return this.http.get(St.EYe.GET_USER_PREVIEW(o.county,o.city),{headers:St.VLR.setDisplaySpinnerHeaders()})}getGuestPreview(o){let r=this.userService.getGuestId();return r||(this.userService.createGuestId(),r=this.userService.getGuestId()),this.http.get(St.EYe.GET_GUEST_PREVIEW(r,o.county,o.city),{headers:St.VLR.setDisplaySpinnerHeaders()})}}Zh.\u0275fac=function(o){return new(o||Zh)(t.\u0275\u0275inject(s.eN),t.\u0275\u0275inject(Al.O),t.\u0275\u0275inject(St.vio.LocationServiceToken),t.\u0275\u0275inject(xs.yh))},Zh.\u0275prov=t.\u0275\u0275defineInjectable({token:Zh,factory:Zh.\u0275fac,providedIn:"root"}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Zh.prototype,"currentUser",void 0);let rP=(()=>{class c{constructor(r,m,M,I){this.mapsApiLoader=r,this.snackBar=m,this.http=M,this.userService=I,this.earthRadiusKm=6371,this.userDeniedLocationAccess=!1,this.mapsApiLoader=r}get userPosition(){return this.userCoordinates}get userDeniedLocationPermission(){return this.userDeniedLocationAccess}get locationFromStorage(){return localStorage.getItem(St.Umo.USER_LOCATION)}locate(r){return new Fa.y(m=>{this.mapsApiLoader.load().then(()=>{(new google.maps.Geocoder).geocode(r,(I,G)=>{G===google.maps.GeocoderStatus.OK?m.next(I):m.error(G),m.complete()})})})}locateMe(){return new Fa.y(r=>{navigator.geolocation.getCurrentPosition(m=>{this.userDeniedLocationAccess=!1,this.userCoordinates=m,r.next(m),r.complete()},m=>{this.userDeniedLocationAccess=!0,r.error(m),r.complete()})})}distanceBetween(r,m){const M=this.degreesToRadians(m.lat-r.lat),I=this.degreesToRadians(m.lng-r.lng),G=this.degreesToRadians(r.lat),Me=this.degreesToRadians(m.lat),_t=Math.sin(M/2)*Math.sin(M/2)+Math.sin(I/2)*Math.sin(I/2)*Math.cos(G)*Math.cos(Me);return 2*this.earthRadiusKm*Math.atan2(Math.sqrt(_t),Math.sqrt(1-_t))}setLocationCookie(r){localStorage.setItem(St.TvR,r)}saveLocation(r,m){return this.http.post(St.bI2.SAVE_LOCATION,{county:m,locality:r})}changeCartDeliveryAddress(){const r=JSON.parse(localStorage.getItem(St.Umo.CART_ADDRESS));if(localStorage.getItem(St.Umo.USER_ADDRESS)){const m=new EC.k(JSON.parse(localStorage.getItem(St.Umo.USER_ADDRESS)));return St.VLR.isBlank(m.address)||new EC.k(r)?.deliveryText===m?.deliveryText?(0,Fr.of)(!1):this.userService.getCurrent().pipe((0,So.q)(1),(0,Sr.w)(M=>this.getCartDeliveryAddressObservable.call(this,M,m)),(0,oc.b)(()=>localStorage.setItem(St.Umo.CART_ADDRESS,localStorage.getItem(St.Umo.USER_ADDRESS))))}return(0,Fr.of)(!1)}getCartDeliveryAddressObservable(r,m){return r&&r.getType()===St.FWD.CLIENT?this.changeCartDeliveryAddressAsUser(m):r?void 0:this.changeCartDeliveryAddressAsGuest(m)}changeCartDeliveryAddressAsUser(r){return this.http.patch(St.bI2.CHANGE_CART_DELIVERY_ADDRESS_AS_USER,r)}changeCartDeliveryAddressAsGuest(r){let m=this.userService.getGuestId();return m||(this.userService.createGuestId(),m=this.userService.getGuestId()),this.http.patch(St.bI2.CHANGE_CART_DELIVERY_ADDRESS_AS_GUEST(m),r)}degreesToRadians(r){return r*Math.PI/180}locateAddress(r){return this.locate({address:r.deliveryText}).pipe((0,$r.U)(m=>({lat:m[0].geometry.location.lat(),lng:m[0].geometry.location.lng()})))}getStreetSuggestions(r){return new Fa.y(m=>{(new google.maps.places.AutocompleteService).getPlacePredictions({input:r,componentRestrictions:{country:"RO"},types:["address"],fields:["place_id","address_component"]},Me=>{m.next(Me=Me??[]),m.complete()})})}getSuggestionDetails(r){return new Fa.y(m=>{const M=r.place_id;new google.maps.places.PlacesService(document.createElement("div")).getDetails({placeId:M,fields:["address_component","geometry"]},(G,Me)=>{Me!==google.maps.places.PlacesServiceStatus.OK&&m.error(`Place prediction details request failed with status: ${Me}`),m.next(G),m.complete()})})}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(bm.W7),t.\u0275\u0275inject(ye.pl),t.\u0275\u0275inject(s.eN),t.\u0275\u0275inject(Al.O))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var oP=i(71427),MC=i(21044);class Jh{constructor(o){this.http=o}search(o){o=St.VLR.extend({},o);const r={};Object.keys(o).forEach(M=>{["sort","page","size"].includes(M)&&(r[M]=o[M],delete o[M])});const m=(new s.WM).set("noSpinner","true");return this.http.post(St.EES.SEARCH_PRODUCT_REQUESTS,o,{headers:m,params:r}).pipe((0,$r.U)(M=>({data:M.content.map(I=>new MC.ms(I)),total:M.totalElements,pages:M.totalPages,size:M.size,sort:M.sort})))}get(o){const r=(new s.WM).set("noSpinner","true");return this.http.get(St.EES.PRODUCT_REQUEST_ENDPOINT(o),{headers:r}).pipe((0,$r.U)(m=>new MC.ms(m)))}submit(o){const r=St.VLR.extend({},o);return r.packagings=r.packagings.map(m=>(delete m.images,m)),this.http.put(St.EES.SUBMIT_PRODUCT_REQUEST(o.requestId),r)}getPreview(o){const r=(new s.WM).set("noSpinner","true");return this.http.get(St.EES.GET_PRODUCT_REQUEST_PREVIEW(o),{headers:r})}assign(o){return this.http.put(St.EES.ASSIGN_PRODUCT_REQUEST(o.businessExternalId,o.requestId),{})}delete(o){const r={headers:(new s.WM).set("noSpinner","true")};return this.http.delete(St.EES.PRODUCT_REQUEST_ENDPOINT(o.requestId),r)}deleteMultipleRequests(o){const r={headers:(new s.WM).set("noSpinner","true")};return this.http.post(St.EES.DELETE_MULTIPLE_REQUESTS,{requestIds:o},r)}deleteAllDrafts(o){return this.http.delete(St.EES.DELETE_ALL_DRAFTS(o))}create(o){const r=St.VLR.extend({},o);r.packagings=r.packagings.map(M=>(delete M.images,M));const m={headers:(new s.WM).set("noSpinner","true")};return this.http.post(St.EES.CREATE_NEW_PRODUCT_REQUEST,r,m).pipe((0,$r.U)(M=>new MC.ms(M)))}update(o){const r=St.VLR.extend({},o,!1);return r.packagings=r.packagings.map(m=>(delete m.images,m)),this.http.put(St.EES.PRODUCT_REQUEST_ENDPOINT(o.requestId),r).pipe((0,$r.U)(m=>new MC.ms(m)))}uploadImage(o,r){if(!r.file)throw new Error(`Cannot upload empty file for image ${r.name}`);const m=r._attachmentDto(),M=new FormData;return M.append("file",r.file,r.name),this.http.post(St.EES.UPLOAD_ATTACHMENT(o.productRequestPackageId,m.type),M)}uploadAttachment(o,r){if(!r.file)throw new Error(`Cannot upload empty file for image ${r.name}`);const m=new FormData;return m.append("file",r.file,r.name),this.http.post(St.EES.UPLOAD_ATTACHMENT(o.productRequestPackageId,r.type),m)}deleteImage(o){return o.storageKey?this.http.delete(St.EES.DELETE_IMAGE(o.storageKey)):(0,Fr.of)(o)}setMainImage(o){return o.storageKey?this.http.put(St.EES.SET_MAIN_IMAGE(o.storageKey),{}):(0,Fr.of)(o)}getCategories(){if(this.categoriesCache)return(0,Fr.of)(this.categoriesCache);const o={headers:(new s.WM).set("noSpinner","true")};return this.http.get(St.EES.GET_CATEGORIES(this.user.profile.externalId),o).pipe((0,$r.U)(r=>(this.categoriesCache=r,this.categoriesCache)))}}Jh.\u0275fac=function(o){return new(o||Jh)(t.\u0275\u0275inject(s.eN))},Jh.\u0275prov=t.\u0275\u0275defineInjectable({token:Jh,factory:Jh.\u0275fac,providedIn:"root"}),function(c,o,r,m){var G,M=arguments.length,I=M<3?o:null===m?m=Object.getOwnPropertyDescriptor(o,r):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)I=Reflect.decorate(c,o,r,m);else for(var Me=c.length-1;Me>=0;Me--)(G=c[Me])&&(I=(M<3?G(I):M>3?G(o,r,I):G(o,r))||I);M>3&&I&&Object.defineProperty(o,r,I)}([(0,Ms.I)(),function(c,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",o)}(0,hs.n)],Jh.prototype,"user",void 0);class GM{constructor(o){this.businessReturns=[],o&&(Object.assign(this,o),this.businessReturns=this.businessReturns.map(r=>new lP(r)))}get numberOfItems(){return this.businessReturns.reduce((o,r)=>o+r.returnedItems.length,0)}}class lP{constructor(o){this.returnedItems=[],o&&Object.assign(this,o)}}class cP{constructor(o){this.businessStatuses=[],o&&Object.assign(this,o)}}class dP{constructor(o){o&&Object.assign(this,o)}}let uP=(()=>{class c{constructor(r){this.http=r}setUrlWithFilters(r,m){return Object.keys(m).forEach((M,I)=>{r=r.concat(0===I?"?":"&").concat(`${M}=${m[M]}`)}),r}getReturns(r){let m=St.eWB.RETURN_ENDPOINT;return r&&(m=this.setUrlWithFilters(m,r)),this.http.get(m).pipe((0,$r.U)(M=>(M.content=M.content.map(I=>new cP(I)),M)))}getReturnableProducts(r){let m=St.eWB.GET_RETURNABLE_PRODUCTS;return r&&(m=this.setUrlWithFilters(m,r)),this.http.get(m).pipe((0,$r.U)(M=>(M.content=M.content.map(I=>new dP(I)),M)))}getReturnReasons(){return this.http.get(St.eWB.GET_RETURN_REASONS).pipe((0,fs.B)())}registerReturn(r){return this.http.post(St.eWB.RETURN_ENDPOINT,r).pipe((0,$r.U)(m=>new GM(m)))}getReturnById(r){return this.http.get(St.eWB.GET_RETURN_BY_ID(r)).pipe((0,$r.U)(m=>new GM(m)))}getReturnPDF(r){return this.http.get(St.eWB.GET_RETURN_PDF(r),{headers:{Accept:"*/*"},responseType:"blob"})}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(s.eN))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),pP=(()=>{class c{constructor(r,m,M){this.snackBar=r,this.translateService=m,this.store=M,this.actionPerformed=new Av.X(null)}openSnackBar(r,m,M){if("DELETE_ALL_PRODUCTS_FORM_LIST"===m)this.message=this.translateService.instant(`SERVICES.UNDO_REDO.${m}`);else{const G=this.translateService.instant(`SERVICES.UNDO_REDO.${m}`);this.message=`${G} ${M}`}this.snackBar.open(this.message,"Undo",{panelClass:[r,"custom-back-btn"],duration:St.qVd}).onAction().subscribe(()=>{this.actionPerformed.next("[UndoRedo] Undo"),this.store.dispatch(rg.undo())})}openRedoSnackBar(r){this.snackBar.open(this.message,"Redo",{panelClass:[r,"custom-back-btn"],duration:St.qVd}).onAction().subscribe(()=>{this.actionPerformed.next("[UndoRedo] Redo"),this.store.dispatch(rg.redo())})}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(ye.pl),t.\u0275\u0275inject(ea.sK),t.\u0275\u0275inject(xs.yh))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),hP=(()=>{class c{constructor(r){this.httpClient=r}signInWithGoogle(r){return this.httpClient.post(St.c6W.GOOGLE_LOGIN_ENDPOINT,r)}signInWithFacebook(r){return this.httpClient.post(St.c6W.FACEBOOK_LOGIN_ENDPOINT,r)}signInWithApple(r){return this.httpClient.post(St.c6W.APPLE_LOGIN_ENDPOINT,r)}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(s.eN))},c.\u0275prov=t.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac}),c})();var fP=i(87326);function mP(c){return new $E(c,"../assets/i18n/",".json")}function gP(){return(0,h.Z)(function*(){l.Z.sentrySwitchOn&&!St.VLR.isNativePlatform&&sC({dsn:l.Z.dsn,integrations:[new Tv.TryCatch({XMLHttpRequest:!1,eventTarget:!1,requestAnimationFrame:!1,setInterval:!1,setTimeout:!1})],ignoreErrors:["i","TypeError ._onDragMove(main)"]})})}function _P(c){return gy({keys:[{shared:["productsListingState"],serialize:o=>(0,P_.Pz)(o),deserialize:o=>(0,P_.Qc)(o)}],storageKeySerializer:()=>"productsListing",rehydrate:!0,removeOnUndefined:!0,restoreDates:!1})(c)}(0,Ze.registerLocaleData)(sy,"ro");let vP=(()=>{class c{constructor(r,m){this.injector=r,this.meta=m,this.meta.addTag({name:"google-signin-client_id",content:l.Z.google.socialClientId}),bx.S.injector=this.injector}}return c.\u0275fac=function(r){return new(r||c)(t.\u0275\u0275inject(t.Injector),t.\u0275\u0275inject(a.Meta))},c.\u0275mod=t.\u0275\u0275defineNgModule({type:c,bootstrap:[Bp]}),c.\u0275inj=t.\u0275\u0275defineInjector({providers:[l.d,Fp.z,Al.O,_,fP.$,VM,Qh.B,f.B,vx.a,bm.Hh,gC,UM.ngModule,Wp,fC.h,{provide:C.N,useFactory:C.i,deps:[Ze.DOCUMENT,t.PLATFORM_ID]},{provide:t.APP_INITIALIZER,useFactory:gP,multi:!0},{provide:ay.Xj,useClass:St.AxW},{provide:s.TP,useClass:_x,multi:!0},{provide:t.ErrorHandler,useClass:gM},{provide:t.ErrorHandler,useClass:St.L6k},{provide:St.vio.PixelTrackingInitCheckoutService,useClass:WI},{provide:St.vio.PixelTrackingService,useClass:YI},{provide:St.vio.GoogleTrackingService,useClass:zI.n},{provide:St.vio.AddressServiceToken,useClass:$I},{provide:St.vio.BusinessServiceToken,useClass:KI.f},{provide:St.vio.BusinessAipServiceToken,useClass:QI},{provide:St.vio.BusinessEmployeeServiceToken,useClass:XI.K},{provide:St.vio.CartServiceToken,useClass:ZI.Y},{provide:St.vio.CourierServiceToken,useClass:JI.C},{provide:St.vio.DynamicScriptLoaderServiceToken,useClass:eP},{provide:St.vio.FavoritesServiceToken,useClass:Zh},{provide:St.vio.FirebaseMessagingServiceToken,useClass:xu},{provide:St.vio.LocationServiceToken,useClass:rP},{provide:St.vio.OrderServiceToken,useClass:bM.v},{provide:St.vio.PatientServiceToken,useClass:oP.x},{provide:St.vio.ProductRequestServiceToken,useClass:Jh},{provide:St.vio.ReturnServiceToken,useClass:uP},{provide:St.vio.SearchServiceToken,useClass:Wp},{provide:St.vio.SidenavServiceToken,useClass:Qh.B},{provide:St.vio.SnackbarMessageServiceToken,useClass:Ow.r},{provide:St.vio.UndoRedoMessageServiceToken,useClass:pP},{provide:St.vio.UserLocationServiceToken,useClass:_M.U},{provide:St.vio.FiltersServiceToken,useClass:VM},{provide:St.vio.SocialLoginServiceToken,useClass:hP}],imports:[Rp.GooglePlaceModule,a.BrowserModule,Po,s.JF,yu.ef,ox.t,bm.su.forRoot({apiKey:"AIzaSyAkV1ldLxqBv9BdDH2BGCmGxsmm5sLsfFo",language:"ro"}),mM.m,UM,ea.aw.forRoot({loader:{provide:ea.Zw,useFactory:mP,deps:[s.eN]},defaultLanguage:"ro"}),HE.register("ngsw-worker.js",{enabled:l.Z.production}),xs.Aw.forRoot(II,{metaReducers:[FI,_P],runtimeChecks:{strictStateImmutability:!0,strictActionImmutability:!0}}),VE.FT.instrument({maxAge:40,name:"Dr Carmen",logOnly:l.Z.production}),C_,d_,xp,sn.hO.initializeApp({apiKey:"AIzaSyB4rxNlP13wjVjsIc46USUiGEfERreJjaU",authDomain:"drcarmen.firebaseapp.com",projectId:"drcarmen",storageBucket:"drcarmen.appspot.com",messagingSenderId:"857618709676",appId:"1:857618709676:web:8d3c1b01ea846b5fdc3309",measurementId:"G-K0MCPV6J6J"}),xs.Aw.forFeature("history",VI),Uc.sQ.forRoot([PI,HI])]}),c})();fetch("/assets/config/configuration.json").then(c=>c.json()).then(c=>Object.assign(l.Z,c)).catch(c=>{throw new Error(`Configuration cannot be read: ${JSON.stringify(c)}`)}).then(()=>{l.Z.production&&(0,t.enableProdMode)(),a.platformBrowser().bootstrapModule(vP).catch(c=>console.log(c))})},28918:(oe,x,i)=>{"use strict";i.d(x,{Nqk:()=>Ji,J1s:()=>Na,BxA:()=>Va,wey:()=>Vo,svR:()=>on,_6:()=>Lt,fcp:()=>$t,VRK:()=>Tn,L1t:()=>va,kmE:()=>yr,baM:()=>Ct,sJ6:()=>Bn,D2x:()=>n,cD9:()=>qe,Rr$:()=>ll,RPZ:()=>z,_BY:()=>gs,nk1:()=>e,tLg:()=>$o,HEB:()=>Sn,oZ5:()=>Rn,qE$:()=>Ze,c9I:()=>ir,JOK:()=>Mt,gZO:()=>N,d5e:()=>Xe,XzW:()=>Wt,u3l:()=>d,q7:()=>Hs,Y0J:()=>ss,F06:()=>_s,ejx:()=>g,SnC:()=>xn,CE5:()=>dt,LnK:()=>_n,ZTG:()=>a,k6e:()=>js,CCV:()=>q,Pui:()=>s,L$3:()=>Ce,bTv:()=>Kt,wIh:()=>ut,Oyi:()=>Jr,EgV:()=>Ra,vor:()=>st,JTL:()=>Je,iFt:()=>mo,YBl:()=>na,ILf:()=>Xo,J12:()=>Vt,rUW:()=>rr,mHP:()=>oo,kKm:()=>po,Sgy:()=>Qs,UPL:()=>_o,Pd3:()=>xr,aXs:()=>Qo,uw9:()=>qt,eTg:()=>xt,VLR:()=>Ca,Oey:()=>Js,Jjk:()=>t,rCx:()=>mt,ZbP:()=>vt,zcD:()=>K,yP3:()=>ge,fSN:()=>ee,f2D:()=>qs,Kt6:()=>j,SWR:()=>u,AxW:()=>Ea,ygQ:()=>Yi,Z8u:()=>xo,JvL:()=>Xr,Jkm:()=>vo,G06:()=>hi,XNo:()=>Fn,l6b:()=>li,_p0:()=>bn,_vr:()=>Dn,miL:()=>ii,qVd:()=>he,n61:()=>ce,s0B:()=>ji,FgB:()=>gt,qRY:()=>ue,hlY:()=>U,igS:()=>me,lFT:()=>R,XOn:()=>Z,QmF:()=>S,AUI:()=>Ve,n_u:()=>Xt,UX_:()=>X,Y5A:()=>Wi,QfK:()=>Fi,QOl:()=>pe,r8f:()=>un,gHp:()=>Pa,rsg:()=>os,xfd:()=>zr,EYe:()=>bl,Gpu:()=>ra,uvn:()=>re,Ei8:()=>wt,YsS:()=>el,K0B:()=>rn,L6k:()=>ms,xiR:()=>pr,NHW:()=>Er,RgI:()=>Br,gqM:()=>Tr,kW9:()=>fo,V_c:()=>Io,zeY:()=>Un,cZp:()=>mn,gYz:()=>Wn,s67:()=>Tt,BW$:()=>l,feR:()=>Ha,mNX:()=>Nt,g_Q:()=>sn,ggF:()=>yt,P1X:()=>$e,vio:()=>Ur,n$I:()=>Q,Kv3:()=>qn,U3L:()=>Qn,TvR:()=>et,nSw:()=>No,bI2:()=>tl,S2t:()=>p,xDS:()=>si,jHH:()=>Ko,_lB:()=>zt,w_u:()=>bo,tRX:()=>Ar,Mhc:()=>fs,n2c:()=>Sr,rHK:()=>bt,h9A:()=>Gr,Ro$:()=>nn,l3j:()=>oi,a8Y:()=>be,sMA:()=>br,Mw3:()=>ya,FIx:()=>Rr,wKw:()=>w,Whk:()=>ne,o3B:()=>Fr,hD4:()=>Ao,EGH:()=>$r,Stn:()=>At,JUc:()=>Jt,Ifu:()=>V,vax:()=>Qe,CsS:()=>y,NOW:()=>wi,dXp:()=>ui,VCj:()=>Ga,_yl:()=>Ue,R9z:()=>at,aWC:()=>ln,Bdo:()=>Nr,Z8b:()=>An,L7i:()=>Jn,Es5:()=>yi,rMP:()=>Pi,r0O:()=>or,_G6:()=>Si,pnZ:()=>Rt,DKB:()=>tt,tNi:()=>Sa,YuG:()=>da,TT0:()=>an,EVE:()=>ft,sJR:()=>Os,jym:()=>vl,KoQ:()=>ze,B7v:()=>vs,iFo:()=>se,_rg:()=>Zt,xRc:()=>Ae,fdy:()=>Et,zE0:()=>ot,C39:()=>ci,tKG:()=>ka,unn:()=>Ss,a54:()=>vn,tUT:()=>Mo,tjM:()=>Lr,TK3:()=>Ri,c15:()=>ja,eN9:()=>Oi,ZF2:()=>Di,a1d:()=>vi,B6Y:()=>ie,RQ$:()=>Ts,v2Z:()=>h,C5S:()=>Pe,bGq:()=>en,uG_:()=>T,P$R:()=>so,xpH:()=>Ie,MI0:()=>de,gc4:()=>Ds,EES:()=>Is,kvN:()=>le,Z2M:()=>Lo,M0m:()=>As,KBO:()=>ae,IBe:()=>sr,Lkn:()=>tr,ayo:()=>zn,d9E:()=>In,zk7:()=>La,LXs:()=>yl,nUJ:()=>jo,jRy:()=>Ps,O$6:()=>H,eWB:()=>bs,Rcc:()=>jt,LDw:()=>jn,Wb8:()=>Se,W$8:()=>yn,buk:()=>rs,HA$:()=>On,vu:()=>Co,qVZ:()=>Vr,Nyb:()=>wr,xs6:()=>Re,TxW:()=>Xs,jAO:()=>ql,e3n:()=>_l,lt8:()=>Fl,lPI:()=>Fo,Gji:()=>Fe,YPs:()=>B,c6W:()=>cl,HCI:()=>nt,Y7D:()=>Ye,oF:()=>ke,h9G:()=>v,cRW:()=>ca,lHR:()=>Zo,ZOI:()=>Aa,Q2A:()=>It,Umo:()=>k,nbj:()=>Yt,pN$:()=>ct,Aon:()=>Xi,fNW:()=>tn,UMY:()=>Bo,MSg:()=>$a,i44:()=>A,FWD:()=>E,eV:()=>Ma,xJf:()=>Fa,eHP:()=>$n,kOt:()=>$,wwl:()=>Po,p9w:()=>sl,EKz:()=>Ft,TyM:()=>_a,ny$:()=>Oo,I3d:()=>as,DsO:()=>Jo,Uso:()=>Gn,DZB:()=>Ni,PKu:()=>_i,tCN:()=>dr,o2c:()=>dn,HVM:()=>gi,jJq:()=>Ai,w9z:()=>zi,Err:()=>Vi,wr$:()=>En,pqJ:()=>Vn,R_u:()=>ti,dko:()=>kr,MSO:()=>Le,F6k:()=>Uo,LeP:()=>Ti,Mak:()=>Mn,czQ:()=>cn,B4t:()=>Ln,C7F:()=>Hi});var e=(()=>{return(we=e||(e={})).AUTHENTICATION="autentificare",we.REGISTRATION="inregistrare",we.CONFIRMATION="confirmare",we.CONFIRM_EMAIL=":email/:token",we.ACCOUNT_RECOVERY="recuperare-cont",we.ACCOUNT_RECOVERY_EMAIL_TOKEN="recuperare-cont:email&:token",we.REGISTER_PATIENT="client",we.REGISTER_BUSINESS="shop",we.LOGIN=":loginToken",e;var we})(),n=(()=>{return(we=n||(n={})).ABOUT="despre",we.SHOPPING="cum-cumpar",we.FAQ="intrebari-frecvente",we.FAQ_QUESTION="intrebari-frecvente/:question",we.SHIPPING="transport",we.PAYMENT_TYPE="modalitati-de-plata",we.TERMS_AND_CONDITIONS="termeni-si-conditii",we.COOKIES_POLICY="politica-de-cookies",we.FUSION_PROJECT="proiect-fuziune",we.PERSONAL_DATA_CONSENT="consimtamant-prelucrare-date-personale",we.CONFIDENTIALITY_POLICY="politica-de-confidentialitate",we.CONTACT="contact-client",we.CONTACT_B2B="contact-B2B",we.CONTENT="cuprins",n;var we})(),a=(()=>{return(we=a||(a={})).SHOP_ACCOUNT="shop/contul-meu",we.MARKET_ACCOUNT="market/contul-meu",we.PARTNER_ACCOUNT="partener/contul-meu",we.PHARMACY_ACCOUNT="farmacie/contul-meu",we.ORDERS="comenzi",we.REPORTS="statistici",we.CATALOG="catalog",we.CUSTOMER_LOYALTY="fidelizare-clienti",we.CATALOG_STOCKS="catalog/stocuri",we.CATALOG_PRODUCTS="catalog/produse",we.PRODUCT_REQUEST_EDIT="catalog/produse/:id",we.ACCOUNT_SETTINGS="profil",we.EMPLOYEES="angajati",we.API_DOCUMENTATION="api-documentatie",we.SEND_IT="sendIt",we.MY_ACCOUNT="contul-meu",we.PHARMACY_ROUTE="farmacie",we.MARKET_SUPERMARKET="piata--supermarket",we.MARKET_ROUTE="market",we.SHOP_ROUTE="shop",we.PARTNER_ROUTE="partener",a;var we})(),t=(()=>{return(we=t||(t={})).CART="cos-cumparaturi",we.THANK_YOU_WITH_ID=":id/multumim",we.THANK_YOU_CARD_SUCCESS="multumim",we.THANK_YOU_CARD_ERROR="eroare-plata",t;var we})(),l=(()=>{return(we=l||(l={})).REDIRECT_TO_HOME_PAGE="/",we.BUSINESS_PARTNERS="shop",we.COURIERS="curieri",l;var we})(),h=(()=>{return(we=h||(h={})).PATIENT_ACCOUNT="client/contul-meu",we.ORDERS="comenzi",we.ACCOUNT_SETTINGS="profil",we.DELIVERY_ADDRESSES_AND_BILLING="livrare-si-facturare",we.SUBSCRIPTIONS_AND_CONFIDENTIALITY="abonarile-mele",we.MY_RIGHTS="drepturile-mele",we.MEDICAL_JOURNAL="jurnal-medical",we.MY_RIGHTS_SECTION="drepturile-mele/:section",we.COMPLAINTS="reclamatii-si-sesizari",we.RETURNS="returnare-produse",we.PATIENT_ACCOUNT_MENU="meniu",we.FAVORITES="favorite",we.ADD_DELIVERY_ADDRESS="./",we.MEDICAL_ANALYSES="rezultate-analize",h;var we})(),s=(()=>{return(we=s||(s={})).PHARMACY="PHARMACY",we.SHOP="SHOP",we.MARKET="MARKET",we.RESTAURANT="RESTAURANT",s;var we})(),d=(()=>{return(we=d||(d={}))[we.DESKTOP_L=1404]="DESKTOP_L",we[we.DESKTOP_S=960]="DESKTOP_S",we[we.TABLET=768]="TABLET",we[we.MOBILE_XL=430]="MOBILE_XL",we[we.MOBILE_L=420]="MOBILE_L",we[we.MOBILE_M=360]="MOBILE_M",we[we.MOBILE_S=320]="MOBILE_S",d;var we})(),p=(()=>{return(we=p||(p={})).AUTHENTICATION="login.component.ts",we.BUSINESS="business.component.ts",we.PATIENT="patient.component.ts",we.PAGES="pages.component.ts",we.MY_RIGHTS="my-rights.component.ts",we.USER_SERVICE="user.service.ts",we.ACCOUNT_MENU="account0menu.component.ts",we.MOBILE_CATEGORIES="mobile-categories-menu.component.ts",we.AUTH_GUARD="auth-guard.ts",p;var we})(),u=(()=>{return(we=u||(u={})).YearMonthDaySeparatedByDash="yyyy-MM-DD",we.YearMonthDaySeparatedBySpace="yyyy MM DD",we.DayMonthYearSeparatedByDot="dd.MM.yyyy",we.DayMonthYearSeparatedBySpace="dd MMM yyyy",we.NumericDayMonthYearSeparatedByDot="DD.MM.yyyy",we.NumericDayMonthNamedAndYear="DD MMM YYYY",we.DayMonthYearSeparatedBySlash="dd/MM/yyyy",we.FullDateTimeFormat="dd.MM.yyyy-HH:mm",we.FullDateTimeFormat2="dd/MM/yyyy - HH:mm",we.FullDateTimeFormat3="HH:mm dd.MM.yyyy",we.FullDateTimeFormat4="dd/MM/yy - HH:mm",we.FullDateTimeFormat5="dd.MM.yyyy",we.FullDateTimeFormat6="dd.MM.yyyy - HH:mm",we.FullDateTimeFormat7="dddd - DD MMMM YYYY",we.FullDateTimeFormatWithSeconds="dd/MM/yyyy - HH:mm:ss",we.FullDateTimeFormatWithSeconds2="DD-MMMM-yyyy | HH:mm:ss",we.FullDateTimeFormatWithSecondsInBrackets="[dd/MM/yyyy - HH:mm:ss]",we.FullDateTimeFormatWithMonthName="dd MMM YYYY - HH:mm",we.DayMonthHourAndMinute="dd MMM - HH:mm",we.MonthYear="MM/yyyy",we.MonthYearShortFormat="MM/yy",we.MinutesAndSeconds="mm:ss",we.HoursAndMinutes="HH:mm",we.HoursAndMinutesSpaced="HH : mm",we.MonthNameFormat="MMMM",we.YearFormat="YYYY",we.HourAndMinutes="HH:mm",we.HourAndMinutes2="h:mm a",we.DayAndMonth="d MMMM",we.DayAndMonth2="EEEE d MMM",we.DayAndMonth3="EEEE d MMMM",we.DayInLetters="EEEE",u;var we})(),g=(()=>{return(we=g||(g={})).BUSINESS="business",we.PHARMACY="farmacie",we.MARKET="market",we.SHOP="shop",we.PARTNER="partener",g;var we})(),v=(()=>{return(we=v||(v={})).OPEN="DESCHIS",we.CLOSED="INCHIS",v;var we})(),y=(()=>{return(we=y||(y={})).SUCCESS="success",we.ERROR="error",y;var we})(),S=(()=>{return(we=S||(S={})).width="width",we.height="height",S;var we})(),E=(()=>{return(we=E||(E={})).BUSINESS="business",we.EMPLOYEE="employee",we.ADMINISTRATOR="administrator",we.CLIENT="client",E;var we})(),A=(()=>{return(we=A||(A={})).ROLE_CLIENT="ROLE_CLIENT",we.ROLE_BUSINESS_OWNER="ROLE_BUSINESS_OWNER",we.ROLE_BUSINESS_EMPLOYEE="ROLE_BUSINESS_EMPLOYEE",A;var we})(),B=(()=>{return(we=B||(B={})).CART="cart",we.WISHLIST="wishlist",we.FILTER="filter",we.NOTIFICATION="notification",B;var we})(),V=(()=>{return(we=V||(V={})).ADMINISTRATION_MENU="administration",we.ACCOUNT_MENU="account",we.CART_MENU="cart",we.WISHLIST_MENU="wishlist",V;var we})(),X=(()=>((X||(X={})).EXCELL="application/xls",X))(),re=(()=>((re||(re={})).TAG_MANAGER="tag-manager",re))(),Q=(()=>{return(we=Q||(Q={})).PASSWORD="password",we.TEXT="text",Q;var we})(),ae=(()=>{return(we=ae||(ae={})).import="import",we.search="search",ae;var we})(),K=(()=>{return(we=K||(K={})).TOS="tos",we.FEE="fee",we.SCHEDULE="schedule",we.POLICY="confidentiality-policy",K;var we})(),k=(()=>{return(we=k||(k={})).AUTH_TOKEN="token",we.AUTH_TOKEN_EXPIRES_IN="authTokenExpiresIn",we.REFRESH_TOKEN="refreshToken",we.REFRESH_TOKEN_EXPIRES_IN="refreshTokenExpiresIn",we.REFRESH_TOKEN_EXPIRATION_DATE_TIME="refreshTokenExpirationDateTime",we.REMEMBER_ME="rememberMe",we.EXPIRATION_DATE="expirationDate",we.GUEST_ID="guestId",we.USER_LOCATION="UserLocation",we.USER_ADDRESS="UserAddress",we.CART_ADDRESS="CartAddress",we.CART="cart",k;var we})(),$=(()=>{return(we=$||($={})).MOBILE="MOBILE",we.DESKTOP="DESKTOP",$;var we})(),j=(()=>((j||(j={})).Ron="RON",j))(),R=(()=>{return(we=R||(R={})).PICKUP="PICKUP",we.COURIER="COURIER",we.EXPRESS="EXPRESS",R;var we})(),U=(()=>{return(we=U||(U={})).DISTANCE="DISTANCE",we.TARIFF_MINUTE="TARIFF_MINUTE",we.CONTAINER="CONTAINER",we.TOTAL_DELIVERY="TOTAL_DELIVERY",U;var we})(),le=(()=>{return(we=le||(le={})).PHARMA="PHARMACEUTICAL",we.NON_PHARMA="NONPHARMACEUTICAL",we.SERVICE="SERVICE",le;var we})(),T=(()=>{return(we=T||(T={})).CARD="CARD",we.CASH="RAMBURS",we.REVOLUT="RAMBURS_REVOLUT",we.PREPAID="PREPAID",T;var we})(),H=(()=>{return(we=H||(H={})).REGISTERED="Inregistrat",we.PROCESSED="In Procesare",we.WAITING_PAYMENT="Plata in asteptare",we.PAID="Finalizat",we.REFUSED="Anulat",H;var we})(),N=(()=>{return(we=N||(N={})).MOST_BOUGHT="MOST_BOUGHT",we.BEST_OFFER="BEST_OFFER",we.NEW_PRODUCT="NEW_PRODUCT",we.SIMILAR_SALES="SIMILAR_SALES",N;var we})(),pe=(()=>{return(we=pe||(pe={})).NEW_ORDER="NEW_ORDER",we.UPDATE_ORDER="UPDATE_ORDER",we.UPDATE_CART="UPDATE_CART",pe;var we})(),de=(()=>{return(we=de||(de={})).CLICK_AND_COLLECT="CLICK_AND_COLLECT",we.SHOP_AND_GO="SHOP_AND_GO",de;var we})(),me=(()=>{return(we=me||(me={})).EXPRESS="EXPRESS",we.STANDARD="STANDARD",me;var we})(),q=(()=>{return(we=q||(q={})).APPROVED="APPROVED",we.SUSPENDED="SUSPENDED",we.PENDING="PENDING",we.REJECTED="REJECTED",q;var we})(),se=(()=>{return(we=se||(se={})).NEW="NEW",we.PROCESSING="PROCESSING",we.SHIPPING_READY="SHIPPING_READY",we.IN_DELIVERY="IN_DELIVERY",we.CHECKED_IN="CHECKED_IN",we.CHECK_IN_SKIPPED="CHECK_IN_SKIPPED",we.PRESCRIPTION_SHIPPED="PRESCRIPTION_SHIPPED",we.PAYMENT_PENDING="PAYMENT_PENDING",we.ASSIGNED="ASSIGNED",we.RETURNED="RETURNED",we.UNDELIVERED="UNDELIVERED",we.COMPLETE="COMPLETE",we.CANCELLED="CANCELLED",we.PREORDER="PREORDER",se;var we})(),Ye=(()=>{return(we=Ye||(Ye={})).NAME="name,asc",we.NEWEST="createDate,desc",we.DELIVERY_ASC="idealDeliveryTime,asc",we.DELIVERY_DESC="idealDeliveryTime,desc",Ye;var we})(),wt=(()=>{return(we=wt||(wt={})).CATEGORY="category",we.RESTAURANTS="restaurants",we.LOCATION="location",we.PRICE="price",we.BUSINESS_NAMES="businessNames",wt;var we})(),Wt=(()=>{return(we=Wt||(Wt={})).GRAY="gray",we.WHITE="white",Wt;var we})(),nt=(()=>{return(we=nt||(nt={})).GOOGLE="google",we.FACEBOOK="facebook",we.APPLE="apple",nt;var we})(),Zt=(()=>{return(we=Zt||(Zt={})).NEW="#E53935",we.PROCESSING="#FB7500",we.SHIPPING_READY="#009689",we.IN_DELIVERY="#009689",we.CHECKED_IN="#009689",we.CHECK_IN_SKIPPED="#009689",we.ASSIGNED="#009689",we.RETURNED="#E53935",we.UNDELIVERED="#E53935",we.COMPLETE="#3DAE22",we.CANCELLED="#919191",we.PREORDER="#A8A8A8",we.UNAVAILABLE="#919191",Zt;var we})(),Fe=(()=>{return(we=Fe||(Fe={})).SearchDeliveryAddressStep="SearchDeliveryAddressStep",we.AddAddressStep="AddAddressStep",we.AvailableLocationsStep="AvailableLocationsStep",we.ExistingAddressStep="ExistingAddressStep",we.AddAddressManuallyStep="AddAddressManuallyStep",we.SearchDeliveryAddressNotAvailableStep="SearchDeliveryAddressNotAvailableStep",we.ConfirmAddressStep="ConfirmAddressStep",we.ConfirmExtraInfoStep="ConfirmExtraInfoStep",Fe;var we})(),yt=(()=>{return(we=yt||(yt={})).left="left",we.right="right",yt;var we})(),ie=(()=>{return(we=ie||(ie={})).primary="primary",we.warn="warn",we.accent="accent",we.lightgray="lightgray",we.transparent="transparent",ie;var we})(),Ce=(()=>{return(we=Ce||(Ce={})).textButton="textButton",we.iconAndTextButton="iconAndTextButton",we.iconButton="iconButton",Ce;var we})(),Ie=(()=>{return(we=Ie||(Ie={})).MOBILE="AIzaSyA2RiRlwi20HCKL8zpveusQz--2MV9mrJ8",we.PROD="AIzaSyBEMp2Soc8uYl1_lzHcixx7Ttpbt5OJQ1w",we.DEV="AIzaSyAiGdOErtWHXd3hmsnZeKe2W-W-GNhut_M",we.QA="AIzaSyBcH_UjGdgRhfsgbQwXMVBessnvpjgRDq8",we.TEST="AIzaSyBHITSCWGCA5QskKT3ebpmDA567MH2S_iw",we.SANDBOX="AIzaSyAvrzaz6kB9JKNZi_YoSeOJNXIFT1jlMr8",we.DEMO="AIzaSyBaHm9o6hNn8LRp0KrAmQndqEn9qTE4phk",we.AUCHAN="",Ie;var we})(),dt=(()=>{return(we=dt||(dt={})).NEW="NEW",we.PENDING="PENDING",we.APPROVED="APPROVED",we.REJECTED="REJECTED",dt;var we})(),Mt=(()=>{return(we=Mt||(Mt={})).CANNOT_CANCEL_API_ORDER="MAIN-SERVICE-2001",we.SENDIT_DELIVERY_ADDRESS_ALREADY_EXISTS="MAIN-SERVICE-3002",we.DELIVERY_NOT_POSSIBLE="MAIN-SERVICE-3001",we.USER_NOT_FOUND="GATEWAY-SERVICE-2008",we.EMPLOYEE_ALREADY_EXISTS="MAIN-SERVICE-1006",we.CHANGES_ALLOWED_ONCE_PER_DAY="MAIN-SERVICE-4008",we.INVALID_SPECIFIC_DELIVERY_TIME="MAIN-SERVICE-11001",we.CANNOT_RESEND_LINK="#28",we.LAST_EMPLOYEE="MAIN-SERVICE-5001",we.EMPLOYEE_SUSPENDED="MAIN-SERVICE-5005",Mt;var we})(),Xt=(()=>{return(we=Xt||(Xt={})).COURIER_TERMS="TERMS_COND_COURIER",we.PATIENT_TERMS="TERMS_COND_CLIENT",we.BUSINESS_TERMS="TERMS_COND_BUSINESS",we.FAQ="FAQ",we.COOKIE_POLICY="COOKIE_POLICY",we.PRIVACY_POLICY="PRIVACY_POLICY",we.STATEMENT_OF_CONSENT="STATEMENT_OF_CONSENT",we.COURIER_CONTRACT="COURIER_CONTRACT",we.COURIER_RULES="COURIER_RULES",Xt;var we})(),en=(()=>{return(we=en||(en={})).CREATE="CREATE",we.PENDING="PENDING",we.PROCESSING="PROCESSING",we.CONFIRMED="CONFIRMED",we.FAILED="FAILED",we.CANCELLED="CANCELLED",we.PAID="PAID",we.REFUNDED="REFUNDED",we.REJECTED="REJECTED",we.PREORDER="PREORDER",we.OPEN_PREAUTHORIZED="OPEN_PREAUTHORIZED",we.PARTIAL="PARTIAL",we.CAPTURED="CAPTURED",en;var we})(),vt=(()=>{return(we=vt||(vt={})).ORDER_COMPLAINT="ORDER_COMPLAINT",we.GENERAL_COMPLAINT="GENERAL_COMPLAINT",we.GDPR_COMPLAINT="GDPR_COMPLAINT",we.GENERAL_MESSAGE="GENERAL_MESSAGE",we.BUSINESS_MESSAGE="BUSINESS_MESSAGE",we.BUSINESS_GUEST_MESSAGE="BUSINESS_GUEST_MESSAGE",we.B2B_ENROLMENT_MESSAGE="B2B_ENROLMENT_MESSAGE",vt;var we})(),xt=(()=>{return(we=xt||(xt={})).VISA="VISA",we.MASTERCARD="MASTERCARD",we.AMERICAN_EXPRESS="AMERICAN_EXPRESS",we.CHINA_UNION_PAY="CHINA_UNION_PAY",we.UNKNOWN="UNKNOWN",xt;var we})(),zt=(()=>{return(we=zt||(zt={})).PHARMACEUTICAL="A",we.SUPPLEMENTS="B",we.PERSONAL_CARE="C",we.EQUIPMENT="D",we.MARKET="F",we.SERVICES="G",we.RESTAURANTS="H",zt;var we})(),bt=(()=>{return(we=bt||(bt={})).F33="F33",we.F34="F34",we.F35="F35",we.F36="F36",we.F37="F37",we.F38="F38",we.F39="F39",we.F40="F40",we.F41="F41",we.F42="F42",we.F43="F43",we.F44="F44",we.F45="F45",we.F46="F46",we.F47="F47",we.F48="F48",we.F49="F49",we.F50="F50",we.F51="F51",bt;var we})(),At=(()=>{return(we=At||(At={})).PHARMACEUTICAL="Farmacie",we.SUPPLEMENTS="Suplimente",we.PERSONAL_CARE="\xcengrijire Personal\u0103",we.EQUIPMENT="Echipamente & Accesorii",we.MARKET=" Pia\u021b\u0103 & Supermarket",we.SERVICES="Services",we.RESTAURANTS="Restaurante",At;var we})(),$e=(()=>{return(we=$e||($e={}))[we.ORDERS=0]="ORDERS",we[we.CONTAINERS=1]="CONTAINERS",we[we.DISTANCE=2]="DISTANCE",we[we.DELAY=3]="DELAY",$e;var we})(),Xe=(()=>{return(we=Xe||(Xe={})).ORDER="order",we.CART="cart",we.ORDER_SUMMARY="orderSummary",we.SENDIT_ORDER="senditOrder",Xe;var we})(),Pe=(()=>{return(we=Pe||(Pe={}))[we.RETRY=0]="RETRY",we[we.CHANGE=1]="CHANGE",Pe;var we})(),Ve=(()=>{return(we=Ve||(Ve={})).NEW="NEW",we.PROCESSING="PROCESSING",we.SHIPPING_READY="SHIPPING_READY",we.CHECKED_IN="CHECKED_IN",we.CHECK_IN_SKIPPED="CHECK_IN_SKIPPED",we.IN_DELIVERY="IN_DELIVERY",we.COMPLETE="COMPLETE",we.CANCELLED="CANCELLED",we.PRESCRIPTION_SHIPPED="PRESCRIPTION_SHIPPED",we.ASSIGNED="ASSIGNED",we.RETURNED="RETURNED",we.UNDELIVERED="UNDELIVERED",we.PREORDER="PREORDER",we.CREATE="CREATE",we.PENDING="PENDING",we.CONFIRMED="CONFIRMED",we.FAILED="FAILED",we.PAID="PAID",we.REFUNDED="REFUNDED",we.REJECTED="REJECTED",we.OPEN_PREAUTHORIZED="OPEN_PREAUTHORIZED",we.PARTIAL="PARTIAL",we.PAYMENT_PENDING="PAYMENT_PENDING",we.CAPTURED="CAPTURED",Ve;var we})(),mt=(()=>{return(we=mt||(mt={}))[we.CLOSE_DIALOG=0]="CLOSE_DIALOG",we[we.MORE_INFO_DIALOG=1]="MORE_INFO_DIALOG",we[we.REDIRECT_TO_CUSTOMER_LOYALTY=2]="REDIRECT_TO_CUSTOMER_LOYALTY",mt;var we})(),It=(()=>{return(we=It||(It={})).PRIMARY="primary",we.WARNING="warning",we.ERROR="error",It;var we})(),xn=(()=>{return(we=xn||(xn={})).AUCHAN_DESKTOP="assets/images/home/business_partners/auchan-desktop.webp",we.AUCHAN_MOBILE="assets/images/home/business_partners/auchan-mobile.webp",we.BIOCLINICA_DESKTOP="assets/images/home/business_partners/bioclinica-desktop.webp",we.BIOCLINICA_MOBILE="assets/images/home/business_partners/bioclinica-mobile.webp",we.FARMACIA3_DESKTOP="assets/images/home/business_partners/farmacia3-desktop.webp",we.FARMACIA3_MOBILE="assets/images/home/business_partners/farmacia3-mobile.webp",we.MEGA_PROTEINE_DESKTOP="assets/images/home/business_partners/mega_proteine-desktop.webp",we.MEGA_PROTEINE_MOBILE="assets/images/home/business_partners/mega_proteine-mobile.webp",xn;var we})(),_n=(()=>{return(we=_n||(_n={})).BUSINESS_DESKTOP="assets/images/home/business_promo/business-desktop.webp",we.BUSINESS_MOBILE="assets/images/home/business_promo/business-mobile.webp",we.BUSINESS_LARGE="assets/images/home/business_promo/business_large.webp",we.COURIER_DESKTOP="assets/images/home/business_promo/courier-desktop.webp",we.COURIER_MOBILE="assets/images/home/business_promo/courier-mobile.webp",_n;var we})(),Jt=(()=>{return(we=Jt||(Jt={})).F33_DESKTOP="assets/images/home/menu/market/F33-desktop.webp",we.F33_MOBILE="assets/images/home/menu/market/F33-mobile.webp",we.F34_DESKTOP="assets/images/home/menu/market/F34-desktop.webp",we.F34_MOBILE="assets/images/home/menu/market/F34-mobile.webp",we.F35_DESKTOP="assets/images/home/menu/market/F35-desktop.webp",we.F35_MOBILE="assets/images/home/menu/market/F35-mobile.webp",we.F36_DESKTOP="assets/images/home/menu/market/F36-desktop.webp",we.F36_MOBILE="assets/images/home/menu/market/F36-mobile.webp",we.F38_DESKTOP="assets/images/home/menu/market/F38-desktop.webp",we.F38_MOBILE="assets/images/home/menu/market/F38-mobile.webp",we.F39_DESKTOP="assets/images/home/menu/market/F39-desktop.webp",we.F39_MOBILE="assets/images/home/menu/market/F39-mobile.webp",we.F40_DESKTOP="assets/images/home/menu/market/F40-desktop.webp",we.F40_MOBILE="assets/images/home/menu/market/F40-mobile.webp",we.F41_DESKTOP="assets/images/home/menu/market/F41-desktop.webp",we.F41_MOBILE="assets/images/home/menu/market/F41-mobile.webp",we.F42_DESKTOP="assets/images/home/menu/market/F42-desktop.webp",we.F42_MOBILE="assets/images/home/menu/market/F42-mobile.webp",we.F43_DESKTOP="assets/images/home/menu/market/F43-desktop.webp",we.F43_MOBILE="assets/images/home/menu/market/F43-mobile.webp",we.F44_DESKTOP="assets/images/home/menu/market/F44-desktop.webp",we.F44_MOBILE="assets/images/home/menu/market/F44-mobile.webp",we.F45_DESKTOP="assets/images/home/menu/market/F45-desktop.webp",we.F45_MOBILE="assets/images/home/menu/market/F45-mobile.webp",we.F46_DESKTOP="assets/images/home/menu/market/F46-desktop.webp",we.F46_MOBILE="assets/images/home/menu/market/F46-mobile.webp",we.F47_DESKTOP="assets/images/home/menu/market/F47-desktop.webp",we.F47_MOBILE="assets/images/home/menu/market/F46-mobile.webp",we.F48_DESKTOP="assets/images/home/menu/market/F48-desktop.webp",we.F48_MOBILE="assets/images/home/menu/market/F48-mobile.webp",we.F49_DESKTOP="assets/images/home/menu/market/F49-desktop.webp",we.F49_MOBILE="assets/images/home/menu/market/F49-mobile.webp",we.F50_DESKTOP="assets/images/home/menu/market/F50-desktop.webp",we.F50_MOBILE="assets/images/home/menu/market/F50-mobile.webp",we.F51_DESKTOP="assets/images/home/menu/market/F51-desktop.webp",we.F51_MOBILE="assets/images/home/menu/market/F51-mobile.webp",Jt;var we})(),ke=(()=>{return(we=ke||(ke={})).CAT_A_DESKTOP="assets/images/home/spotlight/cat-A-desktop.webp",we.CAT_A_MOBILE="assets/images/home/spotlight/cat-A-mobile.webp",we.CAT_B_DESKTOP="assets/images/home/spotlight/cat-B-desktop.webp",we.CAT_B_MOBILE="assets/images/home/spotlight/cat-B-mobile.webp",we.CAT_C_DESKTOP="assets/images/home/spotlight/cat-C-desktop.webp",we.CAT_C_MOBILE="assets/images/home/spotlight/cat-C-mobile.webp",we.CAT_D_DESKTOP="assets/images/home/spotlight/cat-D-desktop.webp",we.CAT_D_MOBILE="assets/images/home/spotlight/cat-D-mobile.webp",we.CAT_F_DESKTOP="assets/images/home/spotlight/cat-F-desktop.webp",we.CAT_F_MOBILE="assets/images/home/spotlight/cat-F-mobile.webp",we.CAT_G_DESKTOP="assets/images/home/spotlight/cat-G-desktop.webp",we.CAT_G_MOBILE="assets/images/home/spotlight/cat-G-mobile.webp",we.CAT_H_DESKTOP="assets/images/home/spotlight/cat-H-desktop.webp",we.CAT_H_MOBILE="assets/images/home/spotlight/cat-H-mobile.webp",ke;var we})(),Ae=(()=>{return(we=Ae||(Ae={})).DONE="done",we.CREDIT_CARD="credit_card",we.SETTINGS="settings",we.LOCAL_SHIPPING="local_shipping",we.HOME="home",we.CLOSE="close",we.DESCRIPTION="description",Ae;var we})(),ze=(()=>{return(we=ze||(ze={})).CART_ORDER_PRODUCT="CART_ORDER_PRODUCT",we.PATIENT_ORDER_PRODUCT="PATIENT_ORDER_PRODUCT",ze;var we})(),tn=(()=>{return(we=tn||(tn={})).SUMMARY_SECTION="SUMMARY_SECTION",we.COMMENT_SECTION="COMMENT_SECTION",we.PAYMENT_SECTION_SAVED_CARD="PAYMENT_SECTION_SAVED_CARD",we.PRODUCT_LIST_QUANTITY="PRODUCT_LIST_QUANTITY",we.BUSINESS_PRODUCT_SECTION="BUSINESS_PRODUCT_SECTION",we.UPDATE_SSE="UPDATE_SSE",tn;var we})(),ot=(()=>{return(we=ot||(ot={})).CART_ORDER_SUMMARY="CART_ORDER_SUMMARY",we.PATIENT_ORDER_SUMMARY="PATIENT_ORDER_SUMMARY",ot;var we})(),Et=(()=>{return(we=Et||(Et={})).SUCCESS="SUCCESS",we.ERROR="ERROR",Et;var we})(),z=(()=>{return(we=z||(z={}))[we.SelectServicesStep=1]="SelectServicesStep",we[we.GenerateApiKeyStep=2]="GenerateApiKeyStep",we[we.AddUrlStep=3]="AddUrlStep",we[we.ConfirmTestingStep=4]="ConfirmTestingStep",we[we.TestingInProgressStep=5]="TestingInProgressStep",we[we.TestStatusStep=6]="TestStatusStep",z;var we})(),Z=(()=>{return(we=Z||(Z={})).PICKUP="pickup",we.COURIER="gray_truck",we.EXPRESS="express",Z;var we})(),ge=(()=>{return(we=ge||(ge={})).MINIMAL="minimal",we.OFFERS_POPUP="offers-popup",we.PRODUCT_DETAIL_PAGE_STICKY="product-details-page-sticky",we.PRODUCT_DETAIL_PAGE="product-details-page",we.BUSINESS_OFFER_PAGE_PRODUCT="business-offer-page-product",we.PRODUCT_LISTING="product-listing",we.PROMOTION_CAROUSEL="promotions-carousel",we.BUSINESS_CAROUSEL="business-carousel",ge;var we})(),Qe=(()=>{return(we=Qe||(Qe={}))[we.DEFAULT=0]="DEFAULT",we[we.REDIRECT=1]="REDIRECT",Qe;var we})(),qe=(()=>{return(we=qe||(qe={}))[we.NO_STOCK_FOUND=1]="NO_STOCK_FOUND",we[we.DEPLETED_STOCK=2]="DEPLETED_STOCK",we[we.INSUFFICIENT_STOCK=29]="INSUFFICIENT_STOCK",qe;var we})(),ct=(()=>{return(we=ct||(ct={})).ENV_KEY="env_key",we.DATA="data",ct;var we})(),Yt=(()=>{return(we=Yt||(Yt={})).FORM_METHOD="post",we.FORM_INPUT_TYPE="hidden",we.FORM_BUTTON_TYPE="submit",Yt;var we})(),gt=(()=>{return(we=gt||(gt={})).SHOP="F",we.PHARMACY="A",we.RESTAURANT="H",gt;var we})(),ue=(()=>{return(we=ue||(ue={})).DELIVERY_ADDRESS_OPTION="DELIVERY_ADDRESS_OPTION",we.INVALID_ADDRESS="INVALID_ADDRESS",ue;var we})(),ee=(()=>{return(we=ee||(ee={})).gdprCookieNotification="gdprCookieNotification",we.mobileAppDownloadNotificationCookie="mobileAppDownloadNotificationCookie",we.acceptedNotifications="acceptedNotifications",we.businessNotificationToken="businessNotificationToken",we.seenSurgicalMaskPromotion="seenSurgicalMaskPromotion",ee;var we})(),Ot=(()=>((Ot||(Ot={})).PRIVATE="PRIVATE",Ot))();const cn="assets/images/products/default/no-img-large.jpg",Gn="assets/images/others/logo.svg",_i="assets/images/others/logo-only-text.png",Ni="assets/images/others/logo-desktop.svg",Mn="assets/images/products/default/no-img-thumbnail.jpg",On="assets/images/others/schedule.svg",Qn="assets/images/others/local-shipping.svg",Ti="assets/images/avatars/avatar-doe.png",Si="assets/images/avatars/avatar-doe_40x40.png",un="assets/images/social/facebook-logo.svg",rn="assets/images/social/google-logo.svg",$t="assets/images/social/apple-logo.svg",Nt="assets/images/cart/info.svg",Rn="assets/images/cart/info_big.svg",Wn="assets/videos/home/drcarmen.mp4",ji="assets/images/home/drcarmen-logo.png",ir="assets/images/business/map-business-default.webp",dr="https://www.google.com/maps/place/Strada+Iuliu+Maniu+7,+Oradea?hl=ro",Ln="https://returosgr.ro/",Vn=47.0542485,Le=21.9262212,Ft="https://apps.apple.com/ro/app/drcarmen/id1631497648?l=ro",dn="https://docs.google.com/document/d/1ko5rSF-4boVJ7X-NiWPbjpgHJBWbRQGBI8JTW-NCgZg/pub",En="https://docs.google.com/document/d/1jIV3vCv5HxeUjNs4weqLjLRgi8QKpZQHmMmCW9fAldo/pub?embedded=true",gi="https://play.google.com/store/apps/details?id=com.drcarmen.main",ti="oradea",on="https://api.ip2loc.com/PwusoBSp9xHvGzoWK3e5H9MAaWBa0baq/detect",he=1e4,et="UserLocation",tt=0,nn="assets/images/home/promotional_mask.png",zn="assets/images/home/promotional_restaurants.png",jt="assets/images/others/see_on_map.svg",Fn="assets/images/business/business-delivery-fee.jpg",jn="assets/images/business/business-services-fee.jpg",vi="masca-cu-3-straturi",Hi="assets/images/others/user.jpg",Vi="assets/images/home/guest.svg",kr="assets/images/home/logged-user-no-image.svg",Er="assets/images/home/favorites.svg",pr="assets/images/home/cart.svg",fo="assets/images/home/search.svg",Tr="assets/images/home/notification-bell.svg",Br="assets/images/home/hamburger-icon.svg",_o=15,Bn="Authorization",Sn="Bearer",Lt=5,Jn=448,Di=1168,Wi=6371,Ar=754,br=1e7,bo=12e3,xo=2e3,Re=1200,w=5,ne=0,be=35,Ue="assets/images/business/new_order_alert.png",at="assets/images/business/new_order_native.png",Rt="assets/images/home/no-notifications-icon.png",yn="assets/images/products/label/sgr_logo.png",Tn="assets/audio/business/DrC_notification.mp3",ui="/assets/images/home/newsletter/newsletter-mobile.webp",wi="/assets/images/home/newsletter/newsletter-desktop.webp 2x",an=100,bn=24,Dn=10,ii=52,li=22,ft=300,ce="Servicii DrCarmen",Se="SGR",ut=5,Kt="minutes",mn=60,Un=60,qn="##LAST_MODIFIED_DATE##",ci=[e.AUTHENTICATION,e.REGISTRATION,n.ABOUT,a.SHOP_ROUTE,a.PHARMACY_ROUTE,a.MARKET_ROUTE,a.PARTNER_ROUTE],hi={id:"-1",name:"Favorite",size:0,visibility:Ot.PRIVATE},Ai="AW-658237800/M4pKCMXE35QCEOjS77kC",zi="AW-658237800/Hhf0CKO5jNEBEOjS77kC",Yi={showDelay:400,hideDelay:0,touchendHideDelay:0},tr="H",Lr="A",Gr="F",Io=[tr],[aa,yo]=[30,60],Pa=["public_profile","email"],Uo=["F","H","B","C","D","A","E","G"],_a=[{category:"A",name:"Farmacie"},{category:"B",name:"Suplimente"},{category:"C",name:"Ingrijire Personala"},{category:"D",name:"Echipamente si Accesorii"},{category:"E",name:"Accesorii & Consumabile"},{category:"F",name:"Piata & Supermarket"},{category:"G",name:"Servicii"},{category:"H",name:"Restaurante"}],$o="",yr="autentificare",va=`${t.CART}/${yr}`,Tt=l.REDIRECT_TO_HOME_PAGE,Ct=`/${e.AUTHENTICATION}`,Ze=`/${e.REGISTRATION}/${e.REGISTER_BUSINESS}`,vn=`/${e.REGISTRATION}/${e.REGISTER_PATIENT}`,rr=`/${n.ABOUT}/${n.CONTACT}`,oo=`/${n.ABOUT}/${n.CONTACT_B2B}`,Oi=`/${n.ABOUT}/${n.CONFIDENTIALITY_POLICY}`,xr=`/${n.ABOUT}/${n.COOKIES_POLICY}`,zr=`/${n.ABOUT}/${n.FUSION_PROJECT}`,Aa=`/${n.ABOUT}/${n.TERMS_AND_CONDITIONS}`,Mo=`/${n.ABOUT}/${n.PERSONAL_DATA_CONSENT}`,ka=`${h.PATIENT_ACCOUNT}/${h.FAVORITES}`,Ss=`/${h.PATIENT_ACCOUNT}/${h.PATIENT_ACCOUNT_MENU}`,sl=[{name:"Cum cump\u0103r",routerLink:n.SHOPPING,external:!1},{name:"Modalit\u0103\u021bi de plat\u0103",routerLink:n.PAYMENT_TYPE,external:!1},{name:"Modalit\u0103\u021bi de livrare",routerLink:n.SHIPPING,external:!1},{name:"Termeni \u0219i condi\u021bii",routerLink:n.TERMS_AND_CONDITIONS,external:!1},{name:"Politica de confiden\u021bialitate",routerLink:n.CONFIDENTIALITY_POLICY,external:!1},{name:"Politica de cookies",routerLink:n.COOKIES_POLICY,external:!1},{name:"Declara\u021bie de consim\u021b\u0103m\xe2nt",routerLink:n.PERSONAL_DATA_CONSENT,external:!1},{name:"Proiect fuziune",routerLink:n.FUSION_PROJECT,external:!1},{name:"ANPC",routerLink:"http://www.anpc.gov.ro/",external:!0},{name:"ANMDM",routerLink:"https://www.anm.ro/medicamente-de-uz-uman/farmacovigilenta/raporteaza-o-reactie-adversa/",external:!0},{name:"Platforma SOL",routerLink:"https://ec.europa.eu/consumers/odr/main/index.cfm?event=main.home2.show&lng=EN",external:!0},{name:"Formular de contact client",routerLink:n.CONTACT,external:!1},{name:"Formular de contact B2B",routerLink:n.CONTACT_B2B,external:!1}];var ca=(()=>{return(we=ca||(ca={})).PLAY_STORE="https://play.google.com/store/apps/details?id=com.drcarmen.delivery",we.APP_STORE="https://apps.apple.com/ro/app/rider-drc/id1580432905",we.NO_STORE="",ca;var we})();const Qs="assets/images/home/couriers/container.svg",ja="assets/images/home/couriers/pin_drop.svg",rs="assets/images/home/couriers/shopping_cart.svg",Po="assets/images/home/couriers/watch_later.svg",Ko="assets/images/home/mail_full.svg",Ji="assets/images/home/couriers/accounting.jpg",Na="assets/images/home/couriers/accounting-mobile.jpg",Ma="assets/images/home/couriers/vehicle.jpg",Fa="assets/images/home/couriers/vehicle-mobile.jpg",Fr="assets/images/home/couriers/mobile-screen-1.png",Ao="assets/images/home/couriers/mobile-screen-2.png",$r="assets/images/home/couriers/mobile-screen-3.png",fs="assets/images/home/couriers/map.png",Sr="assets/images/home/couriers/map-mobile.jpg",os="assets/images/order/fire.svg",ya="assets/images/order/max-15.svg",Ha="assets/images/order/ice_pack_enabled.svg",La="https://www.revolut.com/ro-RO",No="../../../../assets/images/cart/lock.svg",sn="../../../../assets/images/cart/info.svg",In="../../../../assets/images/others/logo-revolut.png",$n="../../../../assets/images/cart/LOGO-VISA.png",oi="../../../../assets/images/cart/LOGO-MASTER.png",si="../../../../assets/images/cart/LOGO-MAESTRO.png",qt="assets/images/cart/gray_truck.svg",Ri="../../../../assets/images/cart/pharma_delivery.svg",Fi="assets/images/cart/express.svg",sr="UI_LIB.ORDER_STATUS_STEPPER.REGISTERED",Xi="UI_LIB.ORDER_STATUS_STEPPER.UNFINISHED",wr="/assets/images/cart/stepper-arrow-tooltip.svg",mo="../../../../assets/images/cart/package.svg",Jr="../../../../assets/images/cart/clock.svg",na="../../../../assets/images/cart/red_star.svg",Qo="assets/images/home/couriers/container_cube.svg",Va="../../../../assets/images/cart/add_comment.svg",Vo="../../../../assets/images/cart/add_comment_green.svg",Ra="../../../../assets/images/cart",Xo="/assets/images/cart/Revolut.png",Je="/assets/images/cart/netopia_small.png",Vt="/assets/images/cart/visa_small.png",st="/assets/images/cart/mastercard_small.png",ln="/assets/images/notifications/card.png",An="/assets/images/notifications/delivered.png",yi="/assets/images/notifications/delivery.png",Pi="/assets/images/notifications/prescription.png",or="/assets/images/notifications/processing.png",Nr="/assets/images/notifications/card-red.png",po="assets/images/others/container.png",Rr="assets/images/others/medical-document.svg",Vr="assets/images/notifications/success.svg",Co="assets/images/notifications/error.svg",Xr=5,vo=32,Zo=600,Ga="assets/images/newsletter/unsubscribe-icon.svg";var ra=(()=>{return(we=ra||(ra={})).PUBLIC="PUBLIC",we.PRIVATE="PRIVATE",ra;var we})(),mr=i(94650);class Ur{}Ur.ProductServiceToken=new mr.InjectionToken("PRODUCT_TOKEN"),Ur.BusinessAipServiceToken=new mr.InjectionToken("BUSINESS_API_TOKEN"),Ur.CourierServiceToken=new mr.InjectionToken("COURIER_TOKEN"),Ur.DynamicScriptLoaderServiceToken=new mr.InjectionToken("DYNAMIC_SCRIPT_LOADER_TOKEN"),Ur.LocationServiceToken=new mr.InjectionToken("LOCATION_TOKEN"),Ur.SidenavServiceToken=new mr.InjectionToken("SIDENAV_TOKEN"),Ur.UndoRedoMessageServiceToken=new mr.InjectionToken("UNDO_REDO_MESSAGE_SERVICE_TOKEN"),Ur.UserLocationServiceToken=new mr.InjectionToken("USER_LOCATION_SERVICE_TOKEN"),Ur.AddressServiceToken=new mr.InjectionToken("ADDRESS_SERVICE_TOKEN"),Ur.BusinessServiceToken=new mr.InjectionToken("BUSINESS_SERVICE_TOKEN"),Ur.CartServiceToken=new mr.InjectionToken("CART_SERVICE_TOKEN"),Ur.BusinessEmployeeServiceToken=new mr.InjectionToken("BUSINESS_EMPLOYEE_SERVICE_TOKEN"),Ur.FavoritesServiceToken=new mr.InjectionToken("FAVORITES_SERVICE_TOKEN"),Ur.PixelTrackingService=new mr.InjectionToken("PIXEL_TRACKING_SERVICE_TOKEN"),Ur.PixelTrackingInitCheckoutService=new mr.InjectionToken("PIXEL_TRACKING_INIT_CHECKOUT_SERVICE_TOKEN"),Ur.GoogleTrackingService=new mr.InjectionToken("GOOGLE_TRACKING_SERVICE_TOKEN"),Ur.FiltersServiceToken=new mr.InjectionToken("FILTERS_SERVICE_TOKEN"),Ur.FirebaseMessagingServiceToken=new mr.InjectionToken("FIREBASE_MESSAGING_SERVICE_TOKEN"),Ur.OrderServiceToken=new mr.InjectionToken("ORDER_SERVICE_TOKEN"),Ur.PatientServiceToken=new mr.InjectionToken("PATIENT_SERVICE_TOKEN"),Ur.ProductRequestServiceToken=new mr.InjectionToken("PRODUCT_REQUEST_SERVICE_TOKEN"),Ur.SearchServiceToken=new mr.InjectionToken("SEARCH_SERVICE_TOKEN"),Ur.UserServiceToken=new mr.InjectionToken("USER_SERVICE_TOKEN"),Ur.ReturnServiceToken=new mr.InjectionToken("RETURN_SERVICE_TOKEN"),Ur.SnackbarMessageServiceToken=new mr.InjectionToken("SNACKBAR_MESSAGE_SERVICE_TOKEN"),Ur.SocialLoginServiceToken=new mr.InjectionToken("SOCIAL_LOGIN_SERVICE_TOKEN"),Ur.DocumentService=new mr.InjectionToken("DRC_DOCUMENT_SERVICE"),Ur.OrderStatisticsService=new mr.InjectionToken("ORDER_STATISTICS_SERVICE_TOKEN"),Ur.FileDownloader=new mr.InjectionToken("FILE_DOWNLOADER_SERVICE");class so{constructor(nr){this.phoneNumber=nr}static format(nr){if(null!=nr)return new so(nr).removeWhiteSpace().build()}removeWhiteSpace(){return this.phoneNumber=this.phoneNumber.replace(/\s/g,""),this}build(){return this.phoneNumber}}var sa=i(15861),Wa=i(80529),ml=i(69751),kl=i(15439),Ja=i.n(kl),ws=i(47423);let Ca=(()=>{class we{constructor(){}static extend(pn,Mi,mi=!0){const gr={};return Object.keys(pn).forEach(xe=>{gr[xe]=pn[xe]&&"object"==typeof pn[xe]?pn[xe]instanceof ml.y||pn[xe].constructor===Array?pn[xe]:we.extend(gr[xe]||{},pn[xe],mi):pn[xe]}),Object.keys(Mi).forEach(xe=>{null===Mi[xe]&&mi?delete gr[xe]:gr[xe]=Mi[xe]&&"object"==typeof Mi[xe]?Mi[xe]instanceof ml.y||Mi[xe].constructor===Array?Mi[xe]:we.extend(gr[xe]||{},Mi[xe],mi):Mi[xe]}),gr}static compareParams(pn,Mi){const mi=Object.getOwnPropertyNames(pn),gr=Object.getOwnPropertyNames(Mi);return!(mi.length===gr.length&&!mi.filter(xe=>pn[xe]!==Mi[xe]).length&&!gr.filter(xe=>Mi[xe]!==pn[xe]).length)}static areObjectsEqual(pn,Mi){if(Object.keys(pn).every(mi=>Mi.hasOwnProperty(mi)),Object.keys(pn).length!==Object.keys(Mi).length||!Object.keys(pn).every(mi=>Mi.hasOwnProperty(mi)))return!1;for(let mi in pn){const gr=Array.isArray(pn[mi]);if(gr&&!this.areArraysEqual(pn[mi],Mi[mi])||!gr&&pn[mi]!==Mi[mi])return!1}return!0}static areArraysEqual(pn,Mi){return pn.length===Mi.length&&pn.every(mi=>Mi.includes(mi))}static slugify(pn){if(!pn?.length)return null;const Mi="\xe2\u0103\xee\u0219\u021b\xb7/_,:;",gr=new RegExp(Mi.split("").join("|"),"g");return pn.toLowerCase().replace(gr,xe=>"aaist------".charAt(Mi.indexOf(xe))).replace(/[^a-zA-Z0-9 ]/g,"").replace(/[ ]/g,"-")}static customBusinessSlugify(pn){const Mi="\xe2\u0103\xee\u0219\u021b\xb7/_,:;",gr=new RegExp(Mi.split("").join("|"),"g");return pn.toLowerCase().replace(gr,xe=>"aaist------".charAt(Mi.indexOf(xe))).replace(/[^a-zA-Z0-9 -]/g,"").replace(/[ ]/g,"-")}static normalize(pn){return pn.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}static normalizeRomanianDiacritics(pn,Mi=!1){if(!pn)return;const mi="\xe2\u0103\xee\u0219\u015f\u021b\u0163",xe=new RegExp(mi.split("").join("|"),"g"),He=pn.toLowerCase().replace(xe,fe=>"aaisstt".charAt(mi.indexOf(fe))).replace(/[^a-zA-Z0-9 -]/g,"");return Mi?we.capitalizeCities(He):He}static normalizeAllDiacritics(pn){if(!pn)return;const Mi="\xe2\u0103\xe1\xee\xed\u0219\u015f\u021b\u0163\xe9\xf3\xf6\u0151\xfa\xfc\u0171\xc2\u0102\xc1\xce\xcd\u0218\u015e\u021a\u0162\xc9\xd3\xd6\u0150\xda\xdc\u0170",gr=new RegExp(Mi.split("").join("|"),"g");return pn.replace(gr,He=>"aaaiisstteooouuuAAAIISSTTEOOOUUU".charAt(Mi.indexOf(He)))}static dateAsString(pn){return we.date.dayNames[pn.getDay()]+", "+pn.getDate()+" "+we.date.monthNames[pn.getMonth()]}static lowercaseFirstLetter(pn){return pn.charAt(0).toLowerCase()+pn.slice(1)}static capitalize(pn){return pn.split(" ").map(Mi=>Mi.charAt(0).toUpperCase()+Mi.slice(1).toLocaleLowerCase()).join(" ")}static capitalizeCities(pn){return pn.includes("-")?pn.split("-").map(Mi=>Mi.charAt(0).toUpperCase()+Mi.slice(1).toLocaleLowerCase()).join("-"):pn.split(" ").map(Mi=>Mi.charAt(0).toUpperCase()+Mi.slice(1).toLocaleLowerCase()).join(" ")}static ucwords(pn){return pn.toLowerCase().replace(/([^a-z\u0103\xee\u0219\u021b\xe2]|^)([a-z\u0103\xee\u0219\u021b\xe2])(?=[a-z\u0103\xee\u0219\u021b\xe2]{2})/g,(Mi,mi,gr)=>mi+gr.toUpperCase())}static formatAddress(pn){return pn.phone=so.format(pn.phone),pn}static isFormControlValidAndHasValue(pn,Mi){if(pn){const mi=pn.get(Mi);return mi.valid&&mi.value}return!1}static scrollPageToTop(){this.scrollPageTo(0)}static scrollMobilePageToTop(){document.querySelector("mat-sidenav-content").scrollTop=0,window.scroll(0,0)}static scrollPageTo(pn=0){const Mi=document.querySelector("mat-sidenav-content"),mi={top:pn};-1===navigator.userAgent.indexOf("Firefox")&&!this.isNativeIos&&(mi.behavior="smooth"),Mi.scroll(mi)}static scrollIntoView(pn){const Mi=document.getElementById(pn);-1===navigator.userAgent.toLowerCase().indexOf("safari")||navigator.userAgent.toLowerCase().indexOf("chrome")>-1?(Mi.scrollIntoView({behavior:"smooth"}),Mi.scrollTo({top:Mi.scrollHeight,behavior:"smooth"})):Mi.scrollIntoView()}static isIos(){const pn=/iPad|iPhone|iPod/.test(navigator.userAgent),Mi=/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1;return pn||Mi}static getCurrencyTranslationKey(pn){return 100===pn?"SHARED.CURRENCY_SINGULAR":"SHARED.CURRENCY_PLURAL"}static isUnavailableBadgeType(pn){return[N.SIMILAR_SALES]?.includes(pn)}static truncateBusinessName(pn){return window.innerWidth<=d.MOBILE_S?pn.MOBILE_S:window.innerWidth<=d.MOBILE_L?pn.MOBILE_L:window.innerWidth<=d.MOBILE_XL?pn.MOBILE_XL:window.innerWidth<=d.TABLET?pn.TABLET:window.innerWidth<=d.DESKTOP_S?pn.DESKTOP_S:pn.DESKTOP}static isDateToday(pn){return Ja()(pn).isSame(Ja()(),"day")}static saveUserLocation(pn){const Mi=`${we.normalizeRomanianDiacritics(pn.city,!0)}~${we.normalizeRomanianDiacritics(pn.county,!0)}`;localStorage.setItem(k.USER_LOCATION,Mi)}static saveUserAddress(pn){const Mi=JSON.stringify(pn);localStorage.setItem(k.USER_ADDRESS,Mi)}static deleteSavedCartAddress(){localStorage.getItem(k.CART_ADDRESS)&&localStorage.removeItem(k.CART_ADDRESS)}static dataUrlToFile(pn,Mi,mi){const gr=pn.split(","),xe=atob(gr[1]);let He=xe.length;const fe=new Uint8Array(He);for(;He--;)fe[He]=xe.charCodeAt(He);return new File([fe],Mi,{type:mi})}static get isNativePlatform(){return ws.dV.isNativePlatform()}static get isNativeIos(){return"ios"===ws.dV.getPlatform()}static get isNativeAndroid(){return"android"===ws.dV.getPlatform()}static getDialogPosition(pn,Mi,mi=d.MOBILE_XL){return pn=pn??{top:"8px",bottom:"8px"},Mi=Mi??{top:"24px"},we.isNativeIos?{top:`${ii}px`,bottom:`${li}px`}:mi===d.TABLET?this.isTablet()?pn:Mi:window.innerWidth<=mi?pn:Mi}static isTablet(){return window.innerWidth<=d.TABLET||window.innerHeight<=Zo}static convertBase64ToBlob(pn){const Mi=pn.split(";base64,"),mi=Mi[0].split(":")[1],gr=window.atob(Mi[1]),xe=new Uint8Array(gr.length);for(let He=0;He<gr.length;++He)xe[He]=gr.charCodeAt(He);return new Blob([xe],{type:mi})}static formatDistance(pn){if(Number.isInteger(pn))return pn;let mi=pn.toFixed(2);return"0"===mi[mi.length-1]&&(mi=mi.slice(0,mi.length-1),"0"===mi[mi.length-1]&&(mi=mi.slice(0,mi.length-2))),mi}static getErrorCodeFromString(pn){const mi=/^[^\d]*(\d+)/.exec(pn);return mi?parseInt(mi[1],10):0}static isDuplicateAddresses(pn,Mi,mi=!1){const gr=["name","address","streetNumber","phone","county","city","streetExtraInfo","notes","email"];let xe,He=!1;if(mi){const rt=Mi.find(Pt=>Pt.id===pn.id);xe=rt.main_address!==pn.main_address;for(const Pt of gr)if(rt[Pt]!==pn[Pt]&&(rt[Pt]||pn[Pt])){He=!0;break}if(xe&&!He)return!1}return!!Mi?.find(rt=>gr.every(Pt=>rt[Pt]===pn[Pt]||!rt[Pt]&&!pn[Pt]))}static isBlank(pn){return!pn||/^\s*$/.test(pn)}static matchUserAgentRegex(pn){return pn.test(navigator.userAgent)}static setDisplaySpinnerHeaders(pn=!0){return(new Wa.WM).set("noSpinner",pn?"true":"false")}static formatBadgeDiscount(pn){if(pn)return Math.round(pn/an)}static copyValue(pn){return pn&&JSON.parse(JSON.stringify(pn))}static get roRelativeTimeSpecs(){return{future:"%s",past:"%s",s:"Acum c\xe2teva secunde",ss:"%d seconds",m:"Acum un minut",mm:"Acum %d minute",h:"Acum o or\u0103",hh:"Acum %d ore",d:"Acum o zi",dd:"Acum %d zile",w:"Acum o s\u0103pt\u0103m\xe2n\u0103",ww:"Acum %d s\u0103pt\u0103m\xe2ni",M:"Acum o lun\u0103",MM:"Acum %d luni",y:"Acum un an",yy:"Acum %d ani"}}static isSafariBrowser(){return!navigator.userAgent.match("CriOS")&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}static convertBlobToBase64(pn){return(0,sa.Z)(function*(){return new Promise((Mi,mi)=>{const gr=new FileReader;gr.onerror=mi,gr.onload=()=>{Mi(gr.result)},gr.readAsDataURL(pn)})})()}static saveAuthTokensToLocalStorage(pn){localStorage.setItem(k.AUTH_TOKEN,pn.access_token),localStorage.setItem(k.AUTH_TOKEN_EXPIRES_IN,pn.expires_in.toString()),localStorage.setItem(k.REFRESH_TOKEN,pn.refresh_token),localStorage.setItem(k.REFRESH_TOKEN_EXPIRES_IN,pn.refresh_expires_in.toString()),localStorage.setItem(k.REFRESH_TOKEN_EXPIRATION_DATE_TIME,new Date((new Date).getTime()+1e3*pn.refresh_expires_in).toString())}static deleteAuthTokensFromLocalStorage(){localStorage.removeItem(k.AUTH_TOKEN),localStorage.removeItem(k.AUTH_TOKEN_EXPIRES_IN),localStorage.removeItem(k.REFRESH_TOKEN),localStorage.removeItem(k.REFRESH_TOKEN_EXPIRES_IN),localStorage.removeItem(k.REFRESH_TOKEN_EXPIRATION_DATE_TIME)}static getRefreshToken(){const pn=localStorage.getItem(k.REFRESH_TOKEN),Mi=localStorage.getItem(k.REFRESH_TOKEN_EXPIRATION_DATE_TIME),mi=new Date(Mi).toISOString();return Ja()().isBefore(Ja()(mi))?pn:null}static isTobaccoAndAlcoholCategory(pn){return"F42"===pn}static isFeatureEnabledOnIos(pn){return this.isNativeIos&&pn}static generateCachedRequestId(pn){return`size-${pn?.pagination?.size}-page-${pn?.pagination?.page}-sort-${pn?.pagination?.sort}`}}return we.date={monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayNames:["Duminica","Luni","Marti","Miercuri","Joi","Vineri","Sambata"]},we.\u0275fac=function(pn){return new(pn||we)},we.\u0275prov=mr.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),ms=(()=>{class we{handleError(pn){pn.message&&/Loading chunk [\d]+ failed/.test(pn.message)&&window.location.reload()}}return we.\u0275fac=function(pn){return new(pn||we)},we.\u0275prov=mr.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();var Us=i(98184);let Ea=(()=>{class we extends Us.Xj{_createContainer(){const pn=document.createElement("div");pn.classList.add("cdk-overlay-container"),document.getElementById("app").appendChild(pn),this._containerElement=pn}}return we.\u0275fac=function(){let nr;return function(Mi){return(nr||(nr=mr.\u0275\u0275getInheritedFactory(we)))(Mi||we)}}(),we.\u0275prov=mr.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class Xs{constructor(nr){this.userSearches=[],nr&&Object.assign(this,nr)}}function as(we){return gl(we>=window.innerWidth?window.innerWidth-2*Nl:we)}function Oo(we){let nr;return nr=Ca.isNativeIos?window.innerHeight-ii-2*li:we>=window.innerHeight?window.innerHeight-2*Nl:we,gl(nr)}function gl(we){return we+"px"}const Nl=function Zs(){const pn=[d.MOBILE_S,d.MOBILE_XL,d.TABLET,d.DESKTOP_S,d.DESKTOP_L].findIndex(Mi=>window.innerWidth<=Mi);return[8,8,24,24,24][pn>=0?pn:4]}();class _l{constructor(nr){this.body={},this.pagination={page:0,size:10,sort:"_score,desc"},nr&&Object.assign(this,nr)}}class Fl{constructor(nr){this.categories=[],this.products=[],this.alternativeWords=[],nr&&Object.assign(this,nr)}}class vl{constructor(nr){this.appliesTo=()=>!0,nr&&Object.assign(this,nr)}}class js{constructor(nr){nr&&Object.assign(this,nr)}}function Jo(we){return function(nr,pn,Mi){let mi=null;const gr=Mi.value;return Mi.value=function(...xe){clearTimeout(mi),mi=setTimeout(()=>gr.apply(this,xe),we)},Mi}}let ll=(()=>{class we{static DELETE_ADDRESS(pn){return`api/cart/address/${pn}`}static DELETE_COMPANY_BILLING_ADDRESS(pn){return`api/cart/invoice/company/${pn}`}}return we.DELIVERY_ADDRESS_ENDPOINT="api/cart/address",we.CHANGE_CART_DELIVERY_ADDRESS="api/cart/delivery-address",we.COMPANY_BILLING_ADDRESS_ENDPOINT="api/cart/invoice/company",we})(),gs=(()=>{class we{static GET_CATEGORY_PATH(pn){return`api/categories/${pn}/path`}static NEWSLETTER_CONFIRM_ENDPOINT(pn){return`api/newsletter/${pn}`}static UNSUBSCRIBE_TEMPORARY_NEWSLETTER_USER(pn){return`api/newsletter/temporary/${pn}`}}return we.GET_CATEGORIES="api/categories",we.NEWSLETTER_ENDPOINT="api/newsletter",we.CONTACT_SUBMIT="api/contact/send",we.CONTACT_B2B_SUBMIT="api/contact/send-business",we.SEND_QUESTION="api/faq/send",we.BUSINESS_CONTACT_SUBMIT="api/contact/business/send",we.GET_BUSINESS_PROFILES="api/business/public/list",we.GET_BE_VERSION="api/actuator/info",we})(),Hs=(()=>{class we{static CHANGE_WEBHOOK_URL(pn){return`api/business/developer/api-keys/${pn}/services`}static DELETE_API_KEY(pn){return`api/business/developer/api-keys/${pn}`}static ADD_SERVICE(pn){return`api/business/developer/api-keys/${pn}/services`}static REMOVE_SERVICE(pn,Mi){return`api/business/developer/api-keys/${pn}/services/${Mi}`}static CHANGE_API_NAME(pn){return`api/business/developer/api-keys/${pn}`}static REGENERATE_API_KEY(pn){return`api/business/developer/api-keys/${pn}/regenerate`}}return we.BUSINESS_API_KEYS_ENDPOINT="api/business/developer/api-keys",we.GET_SERVICES="api/business/developer/services",we.TEST_WEBHOOKS="api/business/developer/test-webhooks",we.GET_API_KEY="api/business/developer/api-keys/generate",we})(),ss=(()=>{class we{static GET_EMPLOYEE_BY_SLUG(pn){return`api/business/employee/${pn}/public/profile`}static EMPLOYEE_ENDPOINT(pn){return`api/business/employees/${pn}`}static EMPLOYEE_ATTACHMENTS_ENDPOINT(pn){return`api/business/employee/attachments/${pn}`}static DELETE_ATTACHMENT(pn){return`api/business/employee/attachment/${pn}`}static ADD_APPLICATION_TO_EMPLOYEE(pn,Mi){return`api/business/employees/${pn}/add-application?applicationId=${Mi}`}}return we.ADD_EMPLOYEE="api/business/employee/",we.EMPLOYEE_PROFILE_ENDPOINT="api/business/employee/profile",we.GET_JOB_TITLES="api/business/job-titles",we.ADD_NEW_EMPLOYEE="api/users/create/employee",we.GET_AVAILABLE_APPLICATIONS="api/applications/business",we.SEND_INSTALL_LINK="api/business/employees/install",we.GET_ATTACHMENTS="api/business/employee/attachments",we})(),_s=(()=>{class we{static GET_BUSINESS_BY_SLUG(pn){return`api/business/${pn}/public/profile`}static ADD_ATTACHMENT(pn){return`api/business/attachment?type=${pn}`}static DELETE_ATTACHMENT(pn){return`api/business/attachment/${pn}`}static GET_BUSINESS_EMPLOYEES(pn){return`api/business/employees/public/list/${pn}`}static UPDATE_STOCK(pn){return`api/stock/business/product/${pn.productStockId}`}static DRUG_STOCK_ENDPOINT(pn){return`api/stock/business/drug/${pn}`}static GET_CATEGORIES(pn){return`api/store/categories/with-empty/${pn}`}static GET_BUSINESS_SCHEDULE(pn){return`api/business/schedule/${pn}`}}return we.BUSINESS_PROFILE_ENDPOINT="api/business/profile",we.GET_BUSINESS_TYPES="api/business/types",we.GET_EMPLOYEES="api/business/employees/search",we.GET_STOCKS="api/stock/business",we.ADD_STOCK="api/stock/business/product",we.UPDATE_ARRAY_OF_STOCKS="api/stock/business/drug/multiple",we.DELETE_NOT_UPDATED_STOCKS="api/stock/business/importer",we.GET_STOCKS_DELETION_STATUS="api/stock/business/importer/delete/status",we.RESET_SMART_MIN_BASKET="api/stock/business/products-sales/reset",we.GET_BUSINESS_PAYMENTS="api/accounting/business/payment/search",we.GET_BUSINESS_CLAIMS="api/accounting/business/claim/search",we.CLAIM_FUNDS="api/accounting/business/claim",we.BUSINESS_SETTINGS_ENDPOINT="api/business/settings",we.BUSINESS_COPAYMENT_ENDPOINT="api/business/copayment",we.INITIATE_BUSINESS_COPAYMENT_ENDPOINT="api/business/copayment/initiate",we.BUSINESS_ACTIVE_SUBVENTION_ENDPOINT="api/business/subvention/active",we})(),Js=(()=>{class we{static GET_GUEST_CART(pn){return`api/cart/guests/${pn}`}static ADD_PRODUCT_FOR_GUEST(pn){return`api/cart/guests/${pn}/products`}static REMOVE_PRODUCT_FOR_USER(pn){return`api/cart/products/${pn}`}static REMOVE_PRODUCT_FOR_GUEST(pn,Mi){return`api/cart/guests/${pn}/products/${Mi}`}static CHANGE_QUANTITY_AS_USER(pn){return`api/cart/products/${pn}/quantity`}static CHANGE_QUANTITY_AS_GUEST(pn,Mi){return`api/cart/guests/${pn}/products/${Mi}/quantity`}static CHANGE_BUSINESS_OFFER_AS_USER(pn){return`api/cart/products/${pn}/businessId`}static CHANGE_BUSINESS_OFFER_AS_GUEST(pn,Mi){return`api/cart/guests/${pn}/products/${Mi}/businessId`}static GET_USER_DELIVERY_TYPES(pn){return`api/cart/businesses/${pn}/delivery-types`}static GET_GUEST_DELIVERY_TYPES(pn,Mi){return`api/cart/guests/${pn}/businesses/${Mi}/delivery-types`}static CHANGE_USER_BUSINESS_ORDER_DELIVERY_TYPE(pn){return`api/cart/businesses/${pn}/delivery-type`}static CHANGE_GUEST_BUSINESS_ORDER_DELIVERY_TYPE(pn,Mi){return`api/cart/guests/${pn}/businesses/${Mi}/delivery-type`}static GET_PRODUCT_OFFERS(pn,Mi){return`api/drugs/${pn}/package/${Mi}/offer`}static CLEAR_CART_AS_GUEST(pn){return`api/cart/guests/${pn}/clear`}static SAVE_GUEST_NOTES(pn,Mi){return`api/cart/guests/${pn}/${Mi}/comment`}static SAVE_NOTES(pn){return`api/cart/${pn}/comment`}static SSE_UPDATES(pn){return`api/cart/sse/${pn}/subscribe`}static SSE_UPDATES_UNSUBSCRIBE(pn){return`api/cart/sse/${pn}/unsubscribe`}static GET_BUSINESS_DELIVERY_TIME_INTERVALS(pn){return`api/cart/${pn}/delivery-time`}static DELETE_BUSINESS_SCHEDULE_DELIVERY_TIME(pn){return`api/cart/${pn}/delete-delivery-time`}}return we.MERGE_GUEST_CART="api/cart/guest/merge",we.ADD_MULTIPLE_PRODUCTS="api/cart/products",we.GET_USER_CART="api/cart",we.ADD_PRODUCT_FOR_USER="api/cart/product",we.CHANGE_PAYMENT_TYPE="api/cart/payment-type",we.CLEAR_CART="api/cart/clear",we.CHECKOUT_CART="api/cart/checkout",we.UPDATE_CART_PRICES="api/cart/update-prices",we.GET_NUMBER_OF_FREE_CONTAINERS="api/container/config",we.CART_DELIVERY_TIME_ENDPOINT="api/cart/delivery-time",we})(),qs=(()=>{class we{static GET_COURIER_LAST_LOCATION(pn,Mi){return`api/delivery/public/couriers/${pn}/last-location/${Mi}`}}return we.GET_COURIER_FEES="api/admin/delivery-fees/public",we.SEND_CONTACT_MESSAGE="api/contact/send-courier",we})(),bl=(()=>{class we{static REMOVE_FROM_LIST(pn,Mi){return`api/favourites/lists/${pn}/product/${Mi}`}static ADD_PRODUCT_TO_GUEST_FAVORITES_LIST(pn){return`api/favourites/guest/${pn}/products`}static REMOVE_FROM_ROOT_LIST(pn){return`api/favourites/products/${pn}`}static REMOVE_FROM_GUEST_LIST(pn,Mi){return`api/favourites/guest/${pn}/products/${Mi}`}static FAVORITE_LIST_BY_ID_ENDPOINT(pn){return`api/favourites/lists/${pn}`}static GET_FAVORITES_LISTS_PRODUCTS(pn,Mi,mi){return`api/favourites/products/lists/${pn}/${Mi}/${mi}`}static GET_USER_PREVIEW(pn,Mi){return`api/favourites/${pn}/${Mi}/preview`}static GET_GUEST_PREVIEW(pn,Mi,mi){return`api/favourites/guest/${pn}/${Mi}/${mi}/preview`}}return we.MERGE_GUEST_FAVORITES="api/favourites/merge",we.ADD_PRODUCT_TO_MULTIPLE_LISTS="api/favourites/products/lists",we.ADD_PRODUCT_TO_FAVORITES_LIST="api/favourites/products",we.FAVORITES_LISTS_ENDPOINT="api/favourites/lists",we})(),el=(()=>{class we{}return we.NOTIFICATIONS_TOKEN_BUSINESS_ENDPOINT="api/business/tokens",we.NOTIFICATIONS_TOKEN_CLIENT_ENDPOINT="api/clients/tokens",we})(),tl=(()=>{class we{static CHANGE_CART_DELIVERY_CITY_AS_GUEST(pn){return`api/cart/guests/${pn}/city`}static CHANGE_CART_DELIVERY_ADDRESS_AS_GUEST(pn){return`api/cart/guests/${pn}/address`}}return we.SAVE_LOCATION="api/cart/address/request",we.CHANGE_CART_DELIVERY_CITY_AS_USER="api/cart/city",we.CHANGE_CART_DELIVERY_ADDRESS_AS_USER="api/cart/address",we})(),Os=(()=>{class we{static GET_ORDER_DETAILS(pn,Mi){return`api/orders/${pn}/businesses/${Mi}`}static ORDER_ENDPOINT(pn){return`api/cart/${pn}`}static BUSINESS_ORDER_ENDPOINT(pn){return`api/cart/business/${pn}`}static SAVE_ASSIGNED_CONTAINER(pn){return`api/orders/${pn}/container/assign`}static UPDATE_ORDER_STATUS_SHIPPING_READY(pn){return`api/orders/business/${pn}/status/shipping-ready`}static CHANGE_ORDER_DELIVERY_TYPE(pn){return`api/cart/business/${pn}/delivery-type`}static GET_ORDER_BY_ID(pn){return`api/orders/${pn}`}static SET_ORDER_STATUS(pn){return`api/cart/business/${pn}/status`}static GET_AWB_HTML(pn){return`api/shipping/order/printhml?awb=${pn}`}static UPDATE_PATIENT_ORDER(pn,Mi){return`api/cart/${pn}/basket/${Mi}`}static GET_ORDER_PDF(pn){return`api/orders/pdf/${pn}`}static GET_SALES_ARCHIVE_XLS_FOR_DAY(pn){return`api/orders/sales-archive/${pn}/day`}static GET_SALES_ARCHIVE_XLS_FOR_MONTH(pn){return`api/orders/sales-archive/${pn}`}static GET_ORDER_PROCESSING_REPORT_BY_FILTER(pn){return`api/statistics/orders/${pn}/processing`}static PATIENT_CANCEL_ORDER(pn){return`api/orders/${pn}`}static PATIENT_CANCEL_ORDER_PARTIALLY(pn,Mi){return`api/orders/${pn}/businesses/${Mi}`}static CHANGE_ORDER_PAYMENT_TYPE(pn){return`api/orders/${pn}/payment-type`}static GET_ORDER_SUMMARY(pn){return`api/orders/${pn}/summary`}static GET_ORDER_SUMMARY_BASE(pn){return`api/marketing/orders/${pn}`}static RETRY_CARD_PAYMENT(pn){return`api/orders/retry-card-payment/${pn}`}}return we.GET_ORDERS_OLD="api/cart/search",we.GET_ORDERS="api/orders",we.GET_SSE_BUSINESS_ORDERS="api/cart/business/search",we.UNSUBSCRIBE_FROM_SSE="api/cart/business/unsubscribe",we.ADD_RECEIPT_ID="api/cart/business/receipt",we.GET_ORDER_PROCESSING_REPORT="api/statistics/orders/processing",we.SET_WAITING_TIME="api/statistics/orders/reference-value/waiting-time",we.SET_PROCESSING_TIME="api/statistics/orders/reference-value/processing-time",we.DOWNLOAD_PATIENT_ORDER_REPORT="api/statistics/orders/private-report",we.GET_NEW_BUSINESS_ORDER="api/cart/business/search/new-orders",we.SEND_ORDER_COMPLAINT="api/orders/complaint",we})(),vs=(()=>{class we{}return we.GET_REPORT="api/statistics/orders/private-report",we.DOWNLOAD_BUSINESS_ORDER_REPORT="api/statistics/orders/private-report",we.SAVE_REFERENCE_VALUES="api/statistics/orders/reference-values",we})(),Ts=(()=>{class we{static GET_STATISTICS(pn,Mi){return`api/clients/medical-journal/shopping-statistics/${pn}/${Mi}`}static GET_ATTACHMENTS(pn){return`api/clients/attachments/${pn}`}static ADD_ATTACHMENT(pn){return`api/clients/attachment/${pn}`}static ADD_PRESCRIPTION(pn){return`api/clients/attachment/prescription?isAgreeWithGDPR=${pn}`}static DELETE_ATTACHMENT(pn){return`api/clients/attachment/${pn}`}static PRESCRIPTION_ENDPOINT(pn,Mi){return`api/cart/${pn}/attachment/${Mi}`}static DOWNLOAD_ARCHIVE(pn){return`api/clients/download/${pn}`}static DOWNLOAD_MEDICAL_JOURNAL(pn){return`api/clients/medical-journal/bulletins/${pn}`}}return we.PATIENT_PROFILE_ENDPOINT="api/clients/profile",we.GET_SHOPPING_FOR_LOGGED_USER="api/clients/medical-journal/shopping",we.GET_DOCUMENTS="api/clients/medical-journal/attachments",we.PATIENT_DATA_ENDPOINT="api/clients/archive",we.GET_MEDICAL_JOURNAL="api/clients/medical-journal/bulletins",we})(),Ds=(()=>{class we{static GET_PRODUCT_BY_SLUG_FOR_BUSINESSS(pn){return`api/drugs/registeredname/${pn}`}static GET_PRODUCT_BY_SLUG_FOR_PATIENT(pn){return`api/drugs/registeredname/${pn}/in-stock`}static GET_CATEGORY_PRODUCTS_FOR_CAROUSEL_AS_GUEST(pn,Mi,mi,gr){return`api/products/carousel/${pn}/category/${Mi}/county/${mi}/city/${gr}`}static GET_CATEGORY_PRODUCTS_FOR_CAROUSEL_AS_USER(pn,Mi,mi){return`api/products/carousel/category/${pn}/county/${Mi}/city/${mi}`}static GET_SIMILAR_PRODUCTS_AS_GUEST(pn,Mi,mi,gr,xe){return`api/products/carousel/${pn}/similar/${Mi}/products/${mi}/county/${gr}/city/${xe}`}static GET_SIMILAR_PRODUCTS_AS_USER(pn,Mi,mi,gr){return`api/products/carousel/similar/${pn}/products/${Mi}/county/${mi}/city/${gr}`}static GET_CAROUSEL_FOR_BUSINESS(pn){return`api/products/carousel/business/${pn}`}}return we.SEARCH_PRODUCT="api/drugs/search",we.GET_ALL_PROMOTED_PRODUCTS="api/promotions",we.SEARCH_REGISTERED_NAMES="api/drugs/search/registeredNames",we.SEARCH_BY_INTERNAL_ID="api/stock/business/drug/search-by-multiple-values",we.DETECT_BARCODE="api/drugs/parseqrbarcode/",we})(),Is=(()=>{class we{static GET_CATEGORIES(pn){return`api/categories/with-empty/${pn}`}static PRODUCT_REQUEST_ENDPOINT(pn){return`api/drugs/business/request/${pn}`}static SUBMIT_PRODUCT_REQUEST(pn){return`api/drugs/business/request/${pn}/submit`}static GET_PRODUCT_REQUEST_PREVIEW(pn){return`api/drugs/request/${pn}`}static ASSIGN_PRODUCT_REQUEST(pn,Mi){return`api/drugs/business/${pn}/request/${Mi}/assign`}static DELETE_ALL_DRAFTS(pn){return`api/drugs/business/request/all/${pn}`}static UPLOAD_ATTACHMENT(pn,Mi){return`api/drugs/business/${pn}/package/attachment/${Mi}`}static DELETE_IMAGE(pn){return`api/drugs/business/request/attachment/${pn}`}static SET_MAIN_IMAGE(pn){return`api/drugs/business/request/attachment/mainphoto/${pn}`}}return we.SEARCH_PRODUCT_REQUESTS="api/drugs/business/request/search",we.DELETE_MULTIPLE_REQUESTS="api/drugs/business/requests",we.CREATE_NEW_PRODUCT_REQUEST="api/drugs/business/request",we})(),Ps=(()=>{class we{}return we.GET_RESTAURANTS="api/business/restaurants",we.GET_RESTAURANTS_FILTER="api/business/restaurants-filter",we})(),bs=(()=>{class we{static GET_RETURN_BY_ID(pn){return`api/order/return/${pn}`}static GET_RETURN_PDF(pn){return`api/order/return/generatePDF/${pn}`}}return we.RETURN_ENDPOINT="api/order/return",we.GET_RETURNABLE_PRODUCTS="api/order/return/products",we.GET_RETURN_REASONS="api/order/return/reasons",we})(),ql=(()=>{class we{static DELETE_SEARCH_ENTRY(pn){return`api/search/history/remove/${pn}`}}return we.GET_SEARCH_HISTORY="api/search/history",we.ADD_TO_REMOTE_HISTORY="api/search/history/add",we.ADD_MULTIPLE_SEARCH_ENTRIES="api/search/history/add/multiple",we.GET_SEARCH_SUGGESTIONS="api/drugs/search/suggestions",we})(),Fo=(()=>{class we{static CANCEL_RIDE(pn){return`api/send-it/orders/${pn}/cancel`}static ADDRESS_ENDPOINT(pn){return`api/send-it/delivery-address/${pn}`}static RECALCULATE_DISTANCE(pn){return`api/send-it/delivery-address/${pn}/recalculate-distance`}}return we.UNSUBSCRIBE_FROM_SSE="api/send-it/orders/unsubscribe",we.ORDER_COURIER="api/send-it/orders",we.GET_SSE_ORDERS_LIST="api/send-it/orders/search",we.GET_EXISTING_ADDRESSES="api/send-it/delivery-address/search",we.SAVE_NEW_DELIVERY_ADDRESS="api/send-it/delivery-address",we})(),cl=(()=>{class we{}return we.GOOGLE_LOGIN_ENDPOINT="api/users/social/google",we.FACEBOOK_LOGIN_ENDPOINT="api/users/social/facebook",we.APPLE_LOGIN_ENDPOINT="api/users/social/apple",we})(),Bo=(()=>{class we{static REGISTER_USER(pn){return`api/users/create/${pn.toUpperCase()}`}static RESET_PASSWORD(pn){return`api/users/password/reset?token=${pn}`}static UPDATE_EMAIL(pn){return`api/users/${pn}/update-email`}}return we.LOGIN_USER="api/users/login",we.LOGOUT_USER="api/users/logout",we.DELETE_USER_ACCOUNT="api/users/delete",we.LOAD_USER="api/users",we.USER_PROFILE_ENDPOINT="api/clients/profile",we.REFRESH_TOKEN="api/users/refresh-token",we.REFRESH_TOKEN_REMEMBER_ME="api/refreshRememberMe",we.UPDATE_PASSWORD="api/users/password/change",we.CONFIRM_RESEND="api/users/confirm/resend",we.GET_USER_PUBLIC_PROFILE="api/users/profile/public",we.SEND_RESET_PASSWORD_EMAIL="api/users/password/reset/send-email",we.SEND_COMPLAINT="api/clients/complaint",we.SEND_GDPR_COMPLAINT="api/clients/complaint-gdpr",we.CONFIRM="api/users/confirm",we})(),$a=(()=>{class we{static GET_AVAILABILITY(pn,Mi){return`api/location/counties/${pn}/localities/${Mi}/availability`}static GET_AVAILABILITY_BY_NAME(pn,Mi){return`api/location/counties/name/${pn}/localities/name/${Mi}/availability`}static GET_CITIES(pn){return`api/location/counties/${pn}/localities`}}return we.GET_COUNTIES="api/location/counties",we.GET_AVAILABLE_LOCATION="api/location/localities/available",we})();var da=(()=>{return(we=da||(da={})).NOT_FOUND="**",we.NOT_FOUND_404="404",da;var we})(),Lo=(()=>{return(we=Lo||(Lo={})).PRODUCTS="produse",we.RESTAURANTS="restaurante/H/:id",we.ATC=":atc",we.SEARCH_TERM="cautare/:term",we.RESTAURANT_BY_ID="H/:restaurantId",we.ATC_SLUG=":atc/:slug",we.SEARCH="cautare",we.MARKET="piata",we.SUPPLEMENTS="suplimente",Lo;var we})(),As=(()=>{return(we=As||(As={})).PHARMACY_PROFILE="farmacie/:slug",we.SHOP_PROFILE="shop/:slug",we.MARKET_PROFILE="market/:slug",we.PARTNER_PROFILE="partener/:slug",we.EMPLOYEE_PROFILE="angajat/:slug",As;var we})(),yl=(()=>((yl||(yl={})).RESET="reset",yl))(),jo=(()=>((jo||(jo={})).RESTAURANTS="restaurante",jo))(),Sa=(()=>{return(we=Sa||(Sa={})).NEWSLETTER="newsletter",we.NEWSLETTER_UNSUBSCRIBE="newsletter/dezabonare",Sa;var we})()},17366:(oe,x,i)=>{"use strict";i.d(x,{r:()=>S});var e=i(94650),n=i(28918),a=i(36895),t=i(99818),l=i(55829),h=i(47462),s=i(89383);function d(E,D){1&E&&e.\u0275\u0275elementContainer(0)}function p(E,D){if(1&E){const A=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",4),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(A);const B=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(B.onClick())}),e.\u0275\u0275elementStart(1,"span",5),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()}if(2&E){const A=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("button-disabled",A.disabled),e.\u0275\u0275property("ngClass","button--"+A.color)("disabled",A.disabled)("disableRipple",!A.hasRipple),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,6,e.\u0275\u0275pipeBind1(4,8,A.textTranslationKey)))}}function u(E,D){if(1&E&&(e.\u0275\u0275elementStart(0,"i",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&E){const A=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(A.icon)}}function g(E,D){if(1&E&&(e.\u0275\u0275elementStart(0,"i",9),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&E){const A=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(A.icon)}}function v(E,D){if(1&E){const A=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",4),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(A);const B=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(B.onClick())}),e.\u0275\u0275template(1,u,2,1,"i",6),e.\u0275\u0275elementStart(2,"span",5),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"uppercase"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,g,2,1,"i",7),e.\u0275\u0275elementEnd()}if(2&E){const A=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("button-disabled",A.disabled),e.\u0275\u0275property("ngClass","button--"+A.color)("disabled",A.disabled)("disableRipple",!A.hasRipple),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",A.iconPosition===A.iconPositions.left),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,8,e.\u0275\u0275pipeBind1(5,10,A.textTranslationKey))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",A.iconPosition===A.iconPositions.right)}}function y(E,D){if(1&E){const A=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",10),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(A);const B=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(B.onClick())}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementStart(2,"i",11),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()()}if(2&E){const A=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("button-disabled",A.disabled),e.\u0275\u0275property("disabled",A.disabled)("ngClass",A.iconColor?"button--"+A.iconColor:null)("disableRipple",!A.hasRipple)("matTooltip",e.\u0275\u0275pipeBind1(1,7,A.toolTip)),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(A.icon)}}const b=function(E,D,A){return{textButton:E,iconAndTextButton:D,iconButton:A}};let S=(()=>{class E{constructor(){this.color=n.B6Y.primary,this.type=n.L$3.textButton,this.hasRipple=!0,this.disabled=!1,this.toolTip="",this.clickEvent=new e.EventEmitter,this.iconPositions=n.ggF,this.paletteOptions=n.B6Y,this.buttonTypes=Object.values(n.L$3)}ngOnChanges(A){A.disabled&&null!=A.disabled.currentValue&&(this.disabled=A.disabled.currentValue)}onClick(){this.clickEvent.emit()}}return E.\u0275fac=function(A){return new(A||E)},E.\u0275cmp=e.\u0275\u0275defineComponent({type:E,selectors:[["drc-button"]],inputs:{color:"color",iconColor:"iconColor",textTranslationKey:"textTranslationKey",type:"type",hasRipple:"hasRipple",disabled:"disabled",icon:"icon",iconPosition:"iconPosition",toolTip:"toolTip"},outputs:{clickEvent:"clickEvent"},features:[e.\u0275\u0275NgOnChangesFeature],decls:7,vars:5,consts:[[4,"ngTemplateOutlet"],["textButton",""],["iconAndTextButton",""],["iconButton",""],["mat-flat-button","",1,"w-100",3,"ngClass","disabled","disableRipple","click"],[1,"button-text","text-bold"],["class","material-icons mr-8",4,"ngIf"],["class","material-icons ml-8",4,"ngIf"],[1,"material-icons","mr-8"],[1,"material-icons","ml-8"],["mat-icon-button","",1,"w-100","icon-button",3,"disabled","ngClass","disableRipple","matTooltip","click"],[1,"material-icons"]],template:function(A,P){if(1&A&&(e.\u0275\u0275template(0,d,1,0,"ng-container",0),e.\u0275\u0275template(1,p,5,10,"ng-template",null,1,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(3,v,7,12,"ng-template",null,2,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(5,y,4,9,"ng-template",null,3,e.\u0275\u0275templateRefExtractor)),2&A){const B=e.\u0275\u0275reference(2),V=e.\u0275\u0275reference(4),X=e.\u0275\u0275reference(6);e.\u0275\u0275property("ngTemplateOutlet",e.\u0275\u0275pureFunction3(1,b,B,V,X)[P.type])}},dependencies:[a.NgClass,a.NgIf,a.NgTemplateOutlet,t.eB,l.oO,h.Kd,a.UpperCasePipe,s.X$],changeDetection:0}),E})()},81417:(oe,x,i)=>{"use strict";i.d(x,{o:()=>v});var e=i(94650),n=i(35559),a=i(36895),t=i(1576),l=i(99818),h=i(55829);function s(y,b){if(1&y&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&y){const S=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(S.data.message)}}function d(y,b){}function p(y,b){if(1&y&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,d,0,0,"ng-template",7),e.\u0275\u0275elementEnd()),2&y){const S=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngTemplateOutlet",S.data.message)}}let u=(()=>{class y{constructor(){this.isTemplateRef=!1,this.closeDialog=new e.EventEmitter,this.confirmClicked=new e.EventEmitter}confirm(){this.confirmClicked.emit(!0),this.close()}close(){this.closeDialog.emit(!0)}}return y.\u0275fac=function(S){return new(S||y)},y.\u0275cmp=e.\u0275\u0275defineComponent({type:y,selectors:[["drc-confirm-presentation"]],inputs:{isTemplateRef:"isTemplateRef",data:"data"},outputs:{closeDialog:"closeDialog",confirmClicked:"confirmClicked"},decls:14,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions","","fxLayout","row","fxLayoutAlign","space-between center",1,"mt-16"],["mat-button","","ngClass.lt-sm","mlr-auto",3,"click"],[1,"material-icons","mat-18"],["mat-button","","color","warn","ngClass.lt-sm","mlr-auto",3,"click"],[3,"ngTemplateOutlet"]],template:function(S,E){1&S&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"div",1),e.\u0275\u0275template(3,s,2,1,"div",2),e.\u0275\u0275template(4,p,2,1,"div",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",3)(6,"button",4),e.\u0275\u0275listener("click",function(){return E.close()}),e.\u0275\u0275elementStart(7,"i",5),e.\u0275\u0275text(8,"cancel"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(9," M-am r\u0103zg\xe2ndit "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"button",6),e.\u0275\u0275listener("click",function(){return E.confirm()}),e.\u0275\u0275elementStart(11,"i",5),e.\u0275\u0275text(12,"check"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(13," Da "),e.\u0275\u0275elementEnd()()),2&S&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(E.data.title),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!E.isTemplateRef),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",E.isTemplateRef))},dependencies:[a.NgIf,a.NgTemplateOutlet,n.YS,n.Rb,n.ev,t.xw,t.Wh,l.eB,h.oO],changeDetection:0}),y})(),g=(()=>{class y{constructor(S,E){this.dialogRef=S,this.data=E,this.confirmed=new e.EventEmitter,this.isTemplateRef=!1}ngOnInit(){this.data.message instanceof e.TemplateRef&&(this.isTemplateRef=!0)}confirm(){this.confirmed.emit(!0),this.close()}close(){this.dialogRef.close()}}return y.\u0275fac=function(S){return new(S||y)(e.\u0275\u0275directiveInject(n.hV),e.\u0275\u0275directiveInject(n.eJ))},y.\u0275cmp=e.\u0275\u0275defineComponent({type:y,selectors:[["drc-confirm"]],outputs:{confirmed:"confirmed"},decls:1,vars:2,consts:[[3,"isTemplateRef","data","closeDialog","confirmClicked"]],template:function(S,E){1&S&&(e.\u0275\u0275elementStart(0,"drc-confirm-presentation",0),e.\u0275\u0275listener("closeDialog",function(){return E.close()})("confirmClicked",function(){return E.confirm()}),e.\u0275\u0275elementEnd()),2&S&&e.\u0275\u0275property("isTemplateRef",E.isTemplateRef)("data",E.data)},dependencies:[u]}),y})(),v=(()=>{class y{constructor(S,E){this.el=S,this.dialog=E}ngOnInit(){this._listeners=this.el.nativeElement.eventListeners("click"),this.el.nativeElement.removeAllListeners("click"),this.el.nativeElement.addEventListener("click",this.handleClick())}handleClick(){return()=>{this._dialogRef=this.dialog.open(g,{data:{title:"Confirm\u0103 ac\u021biunea",message:this.drcConfirm},panelClass:"confirmation-dialog"}),this._dialogRef.componentInstance.confirmed.subscribe(()=>{this.el.nativeElement.removeAllListeners("click"),this._listeners.forEach(S=>{this.el.nativeElement.addEventListener("click",S)}),this.el.nativeElement.click(),this.el.nativeElement.removeAllListeners("click"),this.el.nativeElement.addEventListener("click",this.handleClick())}),this._dialogRef.afterClosed().subscribe(()=>{})}}ngOnDestroy(){this.el.nativeElement.removeAllListeners("click"),this._listeners.forEach(S=>{this.el.nativeElement.addEventListener("click",S)})}}return y.\u0275fac=function(S){return new(S||y)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.on))},y.\u0275dir=e.\u0275\u0275defineDirective({type:y,selectors:[["","drcConfirm",""]],inputs:{drcConfirm:"drcConfirm"}}),y})()},95118:(oe,x,i)=>{"use strict";i.d(x,{Z:()=>y});var e=i(28918),n=i(94650),a=i(36895),t=i(1576),l=i(55829),h=i(89383);const s=function(b,S){return{"status-done":b,"status-error":S}},d=function(b,S){return{"step-icon--disabled":b,"cursor-pointer":S}},p=function(b){return{"show-arrow":b}};function u(b,S){if(1&b){const E=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",8)(1,"div",9),n.\u0275\u0275element(2,"hr",10),n.\u0275\u0275elementStart(3,"div",11)(4,"i",12),n.\u0275\u0275listener("click",function(){const P=n.\u0275\u0275restoreView(E).index,B=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(B.viewStepInfo(P))}),n.\u0275\u0275text(5),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"div",13),n.\u0275\u0275element(7,"img",14),n.\u0275\u0275elementEnd()()()()}if(2&b){const E=S.$implicit,D=S.index,A=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction2(5,s,E.timestamp,A.isFailedStatus(E))),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction2(8,d,A.isCancelledOrder(),D<=A.lastStepIndex)),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",E.icon," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(11,p,D===A.activeStepIndex)),n.\u0275\u0275advance(1),n.\u0275\u0275property("src",A.stepper_arrow_path,n.\u0275\u0275sanitizeUrl)}}function g(b,S){if(1&b&&(n.\u0275\u0275elementStart(0,"span",5),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()),2&b){const E=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngClass",E.setTextColorClass(E.steps[E.activeStepIndex].messageStatusColor)),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,2,E.steps[E.activeStepIndex].confirmMessage)," ")}}function v(b,S){if(1&b&&(n.\u0275\u0275elementStart(0,"span"),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"date"),n.\u0275\u0275elementEnd()),2&b){const E=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",n.\u0275\u0275pipeBind2(2,1,E.steps[E.activeStepIndex].timestamp,E.customDateFormats.FullDateTimeFormat6),"]")}}let y=(()=>{class b{constructor(){this.isPartialDelivery=!1,this.customDateFormats=e.SWR,this.paymentStatus=e.fdy,this.stepper_arrow_path=e.Nyb}ngOnInit(){this.createSteps(),this.findActiveStepIndex()}ngOnChanges(E){E.orderStatuses&&E.orderStatuses.currentValue!==E.orderStatuses.previousValue&&(this.createSteps(),this.findActiveStepIndex())}addIconAndContentToStep(E){switch(E){case e.AUI.CAPTURED:case e.AUI.PAYMENT_PENDING:case e.AUI.FAILED:case e.AUI.REFUNDED:return{icon:e.xRc.CREDIT_CARD};case e.AUI.NEW:return{icon:e.xRc.DONE};case e.AUI.PROCESSING:return{icon:e.xRc.SETTINGS};case e.AUI.IN_DELIVERY:return{icon:e.xRc.LOCAL_SHIPPING};case e.AUI.COMPLETE:return{icon:e.xRc.HOME};case e.AUI.CANCELLED:return{icon:e.xRc.CLOSE};case e.AUI.PRESCRIPTION_SHIPPED:return{icon:e.xRc.DESCRIPTION};default:return{}}}addContent(E){const D={text:`UI_LIB.ORDER_STATUS_STEPPER.${this.isCardPayment(E)?"CARD_PAYMENT":E}`,statusColor:e.fdy.SUCCESS};return this.isFailedCardPayment(E)&&(D.confirmMessage=e.Aon,D.messageStatusColor=e.fdy.ERROR),(E===e.AUI.CAPTURED||E===e.AUI.REFUNDED)&&(D.confirmMessage=e.IBe,D.messageStatusColor=e.fdy.SUCCESS),this.isCardPayment(E)&&(D.statusColor=null),this.isStepWithErrorText(E)&&!this.isCardPayment(E)&&(D.statusColor=e.fdy.ERROR),D}createSteps(){this.steps=this.orderStatuses.map(E=>({...E,...this.addIconAndContentToStep(E.status),...this.addContent(E.status)}))}isStepWithErrorText(E){return E.includes(e.AUI.CANCELLED)}isFailedStatus(E){return!!E.timestamp&&[e.AUI.FAILED,e.AUI.CANCELLED,e.AUI.PAYMENT_PENDING].includes(E.status)}isCardPayment(E){return[e.AUI.REFUNDED,e.AUI.PAYMENT_PENDING,e.AUI.CAPTURED,e.AUI.FAILED].includes(E)}findActiveStepIndex(){this.steps.forEach((E,D)=>{E.timestamp&&(this.activeStepIndex=D,this.lastStepIndex=D)})}isFailedCardPayment(E){return E.includes(e.AUI.FAILED)||E.includes(e.AUI.PAYMENT_PENDING)}isCancelledOrder(){return this.orderStatuses[this.lastStepIndex].status.includes(e.AUI.CANCELLED)}viewStepInfo(E){this.activeStepIndex=E>this.lastStepIndex?this.lastStepIndex:E}setTextColorClass(E){return E===e.fdy.SUCCESS?"step-message--success":E===e.fdy.ERROR?"step-message--error":void 0}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275cmp=n.\u0275\u0275defineComponent({type:b,selectors:[["app-order-status-stepper"]],inputs:{orderStatuses:"orderStatuses",isPartialDelivery:"isPartialDelivery"},features:[n.\u0275\u0275NgOnChangesFeature],decls:11,vars:7,consts:[[1,"stepper"],[1,"stepper__container"],["class","step",4,"ngFor","ngForOf"],[1,"stepper__content"],["fxLayout","row","fxLayoutGap","5px"],[1,"step-message",3,"ngClass"],["class","step-message",3,"ngClass",4,"ngIf","ngIfElse"],["time",""],[1,"step"],[1,"step-header",3,"ngClass"],[1,"step-line"],[1,"step-icons-container"],[1,"material-icons","step-icon",3,"ngClass","click"],[1,"arrow-icon-container",3,"ngClass"],[1,"arrow-icon",3,"src"]],template:function(E,D){if(1&E&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275template(2,u,8,13,"div",2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"span",5),n.\u0275\u0275text(6),n.\u0275\u0275pipe(7,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(8,g,3,4,"span",6),n.\u0275\u0275template(9,v,3,4,"ng-template",null,7,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementEnd()()()),2&E){const A=n.\u0275\u0275reference(10);n.\u0275\u0275advance(2),n.\u0275\u0275property("ngForOf",D.steps),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngClass",D.setTextColorClass(D.steps[D.activeStepIndex].statusColor)),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(7,5,D.steps[D.activeStepIndex].text)," "),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",D.steps[D.activeStepIndex].confirmMessage)("ngIfElse",A)}},dependencies:[a.NgClass,a.NgForOf,a.NgIf,t.xw,t.SQ,l.oO,a.DatePipe,h.X$]}),b})()},52267:(oe,x,i)=>{"use strict";i.d(x,{K:()=>a});var e=i(94650),n=i(84888);let a=(()=>{class t{constructor(){this.diameter=40}}return t.\u0275fac=function(h){return new(h||t)},t.\u0275cmp=e.\u0275\u0275defineComponent({type:t,selectors:[["drc-page-spinner"]],inputs:{diameter:"diameter"},decls:1,vars:1,consts:[[3,"diameter"]],template:function(h,s){1&h&&e.\u0275\u0275element(0,"mat-spinner",0),2&h&&e.\u0275\u0275property("diameter",s.diameter)},dependencies:[n.sN],changeDetection:0}),t})()},41184:(oe,x,i)=>{"use strict";i.d(x,{J:()=>A});var e=i(94650),n=i(35559),a=i(36895),t=i(1576),l=i(99818),h=i(55829),s=i(89383);const d=function(P,B,V){return{firstElementOnCurrentPage:P,lastElementOnCurrentPage:B,numberOfElements:V}};function p(P,B){if(1&P&&(e.\u0275\u0275elementStart(0,"p",8),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&P){const V=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,1,"SHARED.PAGINATOR.INTERVAL",e.\u0275\u0275pureFunction3(6,d,V.firstElementOnCurrentPage,V.lastElementOnCurrentPage,V.numberOfElements))+e.\u0275\u0275pipeBind1(3,4,V.textTypeKey)," ")}}const u=function(P){return{"btn-active":P}};function g(P,B){if(1&P){const V=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",9),e.\u0275\u0275listener("click",function(){const Q=e.\u0275\u0275restoreView(V).$implicit,ae=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ae.setPage(Q))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&P){const V=B.$implicit,X=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,u,X.currentPage===V)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",V," ")}}function v(P,B){if(1&P){const V=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",9),e.\u0275\u0275listener("click",function(){const Q=e.\u0275\u0275restoreView(V).$implicit,ae=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(ae.setPage(Q))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&P){const V=B.$implicit,X=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,u,X.currentPage===V)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",V," ")}}function y(P,B){if(1&P&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div"),e.\u0275\u0275text(2,"..."),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,v,2,4,"button",6),e.\u0275\u0275elementContainerEnd()),2&P){const V=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",V.middlePages)}}function b(P,B){1&P&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275text(1,"..."),e.\u0275\u0275elementEnd())}function S(P,B){if(1&P){const V=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",9),e.\u0275\u0275listener("click",function(){const Q=e.\u0275\u0275restoreView(V).$implicit,ae=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(ae.setPage(Q))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&P){const V=B.$implicit,X=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,u,X.currentPage===V)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",V," ")}}const E=function(P){return{"disabled-icon":P}};function D(P,B){if(1&P){const V=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275template(1,p,4,10,"p",2),e.\u0275\u0275elementStart(2,"div",3)(3,"button",4),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(V);const re=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(re.previousPage())}),e.\u0275\u0275elementStart(4,"i",5),e.\u0275\u0275text(5,"chevron_left"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(6,g,2,4,"button",6),e.\u0275\u0275template(7,y,4,1,"ng-container",7),e.\u0275\u0275template(8,b,2,0,"div",7),e.\u0275\u0275template(9,S,2,4,"button",6),e.\u0275\u0275elementStart(10,"button",4),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(V);const re=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(re.nextPage())}),e.\u0275\u0275elementStart(11,"i",5),e.\u0275\u0275text(12," chevron_right "),e.\u0275\u0275elementEnd()()()()}if(2&P){const V=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.numberOfPages>0),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",1===V.currentPage),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(9,E,1===V.currentPage)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",V.firstPages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.showStartDots),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",V.showEndDots),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",V.lastPages),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",V.currentPage===V.numberOfPages||0===V.numberOfPages),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,E,V.currentPage===V.numberOfPages||0===V.numberOfPages))}}let A=(()=>{class P{constructor(V){this.dialog=V,this.pageSize=10,this.numberOfElements=1,this.currentPage=1,this.textTypeKey="SHARED.PAGINATOR.PRODUCTS",this.shouldResetPage=!1,this.pageChange=new e.EventEmitter,this.firstPages=[],this.middlePages=[],this.lastPages=[],this.showEndDots=!0,this.showStartDots=!1,this.setPageGroups()}ngOnChanges(V){V.pageSize&&V.pageSize.currentValue!==V.pageSize.previousValue&&(this.currentPage=1,this.pageSize=V.pageSize.currentValue),V.numberOfElements&&V.numberOfElements.currentValue!==V.numberOfElements.previousValue&&(this.numberOfElements=V.numberOfElements.currentValue),V.shouldResetPage&&V.shouldResetPage.currentValue!==V.shouldResetPage.previousValue&&(this.currentPage=1),V.currentPage&&V.currentPage.currentValue!==V.currentPage.previousValue&&(this.currentPage=V.currentPage.currentValue),this.setPageGroups()}generateRange(V,X){const re=[];if(X)for(let Q=V;Q<=X;Q++)re.push(Q);else re.push(V);return re}setPageGroups(){if(this.setDefaults(),this.numberOfPages<=5)this.firstPages=this.generateRange(1,this.numberOfPages);else switch(this.currentPage){case 1:case 2:this.firstPages=this.generateRange(1,this.currentPage+2),this.lastPages=this.generateRange(this.numberOfPages);break;case 3:this.firstPages=this.generateRange(1,this.currentPage+1),this.lastPages=this.generateRange(this.numberOfPages);break;case this.numberOfPages-2:this.firstPages=this.generateRange(1),this.lastPages=this.generateRange(this.numberOfPages-3,this.numberOfPages);break;case this.numberOfPages:case this.numberOfPages-1:this.firstPages=this.generateRange(1),this.lastPages=this.generateRange(this.numberOfPages-2,this.numberOfPages);break;default:this.firstPages=this.generateRange(1),this.middlePages=this.generateRange(this.currentPage-1,this.currentPage+1),this.lastPages=this.generateRange(this.numberOfPages)}this.showDots()}setDefaults(){this.numberOfPages=Math.ceil(this.numberOfElements/this.pageSize),this.firstElementOnCurrentPage=this.pageSize*this.currentPage-this.pageSize+1,this.lastElementOnCurrentPage=1===this.numberOfPages||this.currentPage===this.numberOfPages?this.numberOfElements:this.pageSize*this.currentPage,this.firstPages=[],this.middlePages=[],this.lastPages=[]}setPage(V){if(V===this.currentPage)return;const X={previousPageIndex:this.currentPage-1,pageIndex:V,pageSize:this.pageSize,length:this.numberOfElements};this.currentPage=V,this.setPageGroups(),this.pageChange.emit(X)}previousPage(){this.setPage(this.currentPage-1)}nextPage(){this.setPage(this.currentPage+1)}showDots(){this.numberOfPages<=5?(this.showStartDots=!1,this.showEndDots=!1):(this.showStartDots=!0,this.showEndDots=this.currentPage>3&&this.currentPage+2<this.numberOfPages)}}return P.\u0275fac=function(V){return new(V||P)(e.\u0275\u0275directiveInject(n.on))},P.\u0275cmp=e.\u0275\u0275defineComponent({type:P,selectors:[["drc-paginator"]],inputs:{pageSize:"pageSize",numberOfElements:"numberOfElements",currentPage:"currentPage",textTypeKey:"textTypeKey",shouldResetPage:"shouldResetPage"},outputs:{pageChange:"pageChange"},features:[e.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[["class","pagination-container","fxLayout","row","fxLayoutGap","12px","fxLayoutAlign","end center",4,"ngIf"],["fxLayout","row","fxLayoutGap","12px","fxLayoutAlign","end center",1,"pagination-container"],["class","pagination-interval",4,"ngIf"],["fxLayout","row","fxLayoutGap","6px",1,"pagination-buttons-wrapper"],["mat-icon-button","",1,"pagination-button",3,"disabled","click"],[1,"material-icons",3,"ngClass"],["mat-icon-button","","class","pagination-button padding-for-button",3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"pagination-interval"],["mat-icon-button","",1,"pagination-button","padding-for-button",3,"ngClass","click"]],template:function(V,X){1&V&&e.\u0275\u0275template(0,D,13,13,"div",0),2&V&&e.\u0275\u0275property("ngIf",X.numberOfPages>1)},dependencies:[a.NgClass,a.NgForOf,a.NgIf,t.xw,t.SQ,t.Wh,l.eB,h.oO,s.X$],changeDetection:0}),P})()},73779:(oe,x,i)=>{"use strict";i.d(x,{_:()=>y});var e=i(94650),n=i(36895),a=i(1576),t=i(55829),l=i(89383);function h(b,S){if(1&b&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"li",5),e.\u0275\u0275elementContainerEnd()),2&b){const E=S.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",E)}}const s=function(b){return[b,"message"]};function d(b,S){if(1&b&&(e.\u0275\u0275elementStart(0,"p",6),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&b){const E=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(4,s,E.titleColor)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,2,E.titleKey))}}function p(b,S){if(1&b&&(e.\u0275\u0275elementStart(0,"span"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&b){const E=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,E.additionalMessage))}}var g=(()=>{return(b=g||(g={})).VERY_WEAK="SHARED.MISC.PASSWORD_STRENGTH_CHECKER.WEAK",b.WEAK="SHARED.MISC.PASSWORD_STRENGTH_CHECKER.WEAK",b.MEDIUM="SHARED.MISC.PASSWORD_STRENGTH_CHECKER.AVERAGE",b.STRONG="SHARED.MISC.PASSWORD_STRENGTH_CHECKER.STRONG",g;var b})(),v=(()=>{return(b=v||(v={})).VERY_WEAK="very-weak",b.WEAK="weak",b.AVERAGE="average",b.STRONG="strong",b.DEFAULT="default",v;var b})();let y=(()=>{class b{constructor(){this.statusColors=Object.values(v),this.statusMessagesKey=Object.values(g),this.passwordStrength=0,this.barColorClasses=["","","",""],this.titleColor=`strength__title--${this.statusColors[4]}`,this.additionalMessage="SHARED.MISC.PASSWORD_STRENGTH_CHECKER.HELPFUL_INFO"}ngOnInit(){this.barColorClasses=this.barColorClasses.map(()=>`strength__bar--${this.statusColors[4]}`)}ngOnChanges(E){this.setPasswordCheckerStatus(this.checkStrength(E.password.currentValue))}checkStrength(E){this.passwordStrength=0;const A=/[!@#$%^&*]/g.test(E),P=/[a-z]+/.test(E),B=/[A-Z]+/.test(E),V=/[0-9]+/.test(E);return E.length>4?[A,P,B,V].forEach(re=>this.passwordStrength+=!0===re?1:0):E.length>0&&(this.passwordStrength=1),this.passwordStrength}showAdditionalMessage(){return this.passwordStrength>0&&this.passwordStrength<4}setPasswordCheckerStatus(E){this.barColorClasses=this.barColorClasses.map((D,A)=>E>A?`strength__bar--${this.statusColors[E-1]}`:`strength__bar--${this.statusColors[4]}`),this.titleKey=this.statusMessagesKey[E-1],this.titleColor=`strength__title--${this.statusColors[E-1]}`}}return b.\u0275fac=function(E){return new(E||b)},b.\u0275cmp=e.\u0275\u0275defineComponent({type:b,selectors:[["drc-password-strength-checker"]],inputs:{password:"password"},features:[e.\u0275\u0275NgOnChangesFeature],decls:5,vars:3,consts:[[1,"strength__container"],["fxLayout","row",1,"strength"],[4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"strength__bar",3,"ngClass"],[3,"ngClass"]],template:function(E,D){1&E&&(e.\u0275\u0275elementStart(0,"div",0)(1,"ul",1),e.\u0275\u0275template(2,h,2,1,"ng-container",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,d,3,6,"p",3),e.\u0275\u0275template(4,p,3,3,"span",4),e.\u0275\u0275elementEnd()),2&E&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",D.barColorClasses),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",D.passwordStrength>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",D.showAdditionalMessage()))},dependencies:[n.NgClass,n.NgForOf,n.NgIf,a.xw,t.oO,l.X$],changeDetection:0}),b})()},49365:(oe,x,i)=>{"use strict";i.d(x,{g:()=>s});var e=i(94650),n=i(36895),a=i(55829),t=i(89383);const l=function(d){return{"business-validation-aid":d}},h=function(d,p){return{domainName:d,correctedDomainName:p}};let s=(()=>{class d{constructor(){this.businessRegistration=!1}ngOnChanges(u){this.domainName=u.userEmail.currentValue.split("@")[1],this.correctedDomainName=u.correctedEmail.currentValue.split("@")[1]}}return d.\u0275fac=function(u){return new(u||d)},d.\u0275cmp=e.\u0275\u0275defineComponent({type:d,selectors:[["drc-registration-warning"]],inputs:{userEmail:"userEmail",correctedEmail:"correctedEmail",businessRegistration:"businessRegistration"},features:[e.\u0275\u0275NgOnChangesFeature],decls:3,vars:10,consts:[[1,"validation-aid",3,"ngClass"]],template:function(u,g){1&u&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&u&&(e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,l,g.businessRegistration)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(2,2,g.businessRegistration?"SHARED.MISC.REGISTRATION_WARNING.MESSAGE":"SHARED.MISC.REGISTRATION_WARNING.BUSINESS_MESSAGE",e.\u0275\u0275pureFunction2(7,h,g.domainName,g.correctedDomainName)),"\n"))},dependencies:[n.NgClass,a.oO,t.X$],changeDetection:0}),d})()},83159:(oe,x,i)=>{"use strict";i.d(x,{i:()=>S});var e=i(94650),n=i(37340),a=i(36895),t=i(1576),l=i(55829),h=i(97392),s=i(89383);function d(E,D){1&E&&(e.\u0275\u0275elementStart(0,"i",9),e.\u0275\u0275text(1,"watch_later"),e.\u0275\u0275elementEnd())}function p(E,D){if(1&E){const A=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",5),e.\u0275\u0275template(1,d,2,0,"i",6),e.\u0275\u0275elementStart(2,"a",7),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(A);const B=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(B.onExtendToggled())}),e.\u0275\u0275elementStart(3,"span",8),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"mat-icon"),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()()}if(2&E){const A=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!A.hideIcon),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(A.extendSchedule?"ascunde orarul":"arata orarul"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(A.extendSchedule?"keyboard_arrow_up":"keyboard_arrow_down")}}function u(E,D){1&E&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",13),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uppercase"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&E&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,1,e.\u0275\u0275pipeBind1(4,3,"SHARED.MISC.SCHEDULE.HIDE_SCHEDULE"))))}function g(E,D){if(1&E){const A=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",10)(1,"a",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(A);const B=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(B.extendSchedule=!B.extendSchedule)}),e.\u0275\u0275template(2,u,5,5,"ng-container",12),e.\u0275\u0275elementEnd()()}if(2&E){const A=e.\u0275\u0275nextContext(),P=e.\u0275\u0275reference(5);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",A.extendSchedule)("ngIfElse",P)}}function v(E,D){if(1&E&&(e.\u0275\u0275elementStart(0,"div",14)(1,"span",0)(2,"span",15),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"span",15),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"span",15),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"span",15),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(10,"div",16),e.\u0275\u0275elementStart(11,"span",17)(12,"span",15),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"span",15),e.\u0275\u0275text(15),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"span",15),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd()()()),2&E){const A=e.\u0275\u0275nextContext();e.\u0275\u0275property("@animated",void 0)("ngClass",A.getScheduleExpandedPanelStyle()),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("Luni: ",A.businessSchedule[0],""),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("Mar\u021bi: ",A.businessSchedule[1],""),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("Miercuri: ",A.businessSchedule[2],""),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("Joi: ",A.businessSchedule[3],""),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1("Vineri: ",A.businessSchedule[4],""),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("S\xe2mb\u0103t\u0103: ",A.businessSchedule[5],""),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("Duminic\u0103: ",A.businessSchedule[6],"")}}function y(E,D){1&E&&(e.\u0275\u0275elementStart(0,"span",13),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"uppercase"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&E&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,e.\u0275\u0275pipeBind1(3,3,"SHARED.MISC.SCHEDULE.SCHEDULE"))))}let b=(()=>{class E{constructor(){this.hideIcon=!1,this.extendToggled=new e.EventEmitter,this.day=new e.EventEmitter}onExtendToggled(){this.extendToggled.emit()}getScheduleExpandedPanelStyle(){return["product","return"].includes(this.pageType)?"product-page-schedule":"business-profile"===this.pageType?"ml-neg-110":"ml-24"}}return E.\u0275fac=function(A){return new(A||E)},E.\u0275cmp=e.\u0275\u0275defineComponent({type:E,selectors:[["drc-schedule-presentation"]],inputs:{business:"business",businessSchedule:"businessSchedule",pageType:"pageType",extendSchedule:"extendSchedule",hideIcon:"hideIcon"},outputs:{extendToggled:"extendToggled",day:"day"},decls:6,vars:3,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","end center","class","show-schedule-width",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row","class","mt-16",3,"ngClass",4,"ngIf"],["showSchedule",""],["fxLayout","row","fxLayoutAlign","end center",1,"show-schedule-width"],["fxLayoutAlign","center center","class","material-icons text-muted location-icon",4,"ngIf"],["fxLayout","row",1,"show-more-container",3,"click"],["fxLayoutAlign","start start"],["fxLayoutAlign","center center",1,"material-icons","text-muted","location-icon"],["fxLayout","row"],["fxLayout","row",1,"link",3,"click"],[4,"ngIf","ngIfElse"],["fxLayoutAlign","start center"],["fxLayout","row",1,"mt-16",3,"ngClass"],[1,"break-sentences"],[1,"divider-y","ml-16"],["fxLayout","column",1,"ml-16"]],template:function(A,P){1&A&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,p,7,3,"div",1),e.\u0275\u0275template(2,g,3,2,"div",2),e.\u0275\u0275template(3,v,18,9,"div",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,y,4,5,"ng-template",null,4,e.\u0275\u0275templateRefExtractor)),2&A&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","product"!==P.pageType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","product"===P.pageType),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",P.extendSchedule))},dependencies:[a.NgClass,a.NgIf,t.xw,t.Wh,l.oO,h.Hw,a.UpperCasePipe,s.X$],data:{animation:[(0,n.X$)("animated",[(0,n.SB)("*",(0,n.oB)({"overflow-y":"hidden"})),(0,n.SB)("void",(0,n.oB)({"overflow-y":"hidden"})),(0,n.eR)("* => void",[(0,n.oB)({height:"*"}),(0,n.jt)(150,(0,n.oB)({height:0,opacity:0}))]),(0,n.eR)("void => *",[(0,n.oB)({height:"0"}),(0,n.jt)(150,(0,n.oB)({height:"*",opacity:1}))])])]},changeDetection:0}),E})(),S=(()=>{class E{constructor(){this.hideIcon=!1,this.businessSchedule=new Array(7),this.holidays=[],this.holidayDate=[],this.extendSchedule=!1}ngOnInit(){this.setHolidays(),this.getBusinessSchedule()}setHolidays(){this.business.custom.schedule.holidays&&this.business.custom.schedule.holidays.forEach(A=>{A=new Date(A),this.saveThisWeekHolidays(A)})}saveThisWeekHolidays(A){const P=new Date;P.setDate(P.getDate()+6),(P>=A&&new Date<=A||(new Date).toLocaleDateString()===A.toLocaleDateString())&&this.saveTheHolidayDateAndDayOfTheWeek(A)}getBusinessSchedule(){for(let A=0;A<7;A++){const P=this.business.schedule,B=" Inchis";let X=P[A].open+" - "+P[A].close;if("-"===P[A].open&&"-"===P[A].close)X=B;else{const re=this.getBusinessHolidaySchedule(A);X=re?re.toLocaleDateString("ro-RO")+B:X}this.businessSchedule[A]=X}}getBusinessHolidaySchedule(A){if(this.holidays.length>0)return this.findHolidayDate(A)}findHolidayDate(A){const P=this.holidays.filter(B=>B===A);if(null!=P[0])return this.getHolidayDateByIndex(this.holidays.indexOf(P[0]))}getHolidayDateByIndex(A){return this.holidayDate.filter(P=>P===A)[0]}saveTheHolidayDateAndDayOfTheWeek(A){this.holidayDate.push(A),A=A.getDay()-1,this.holidays.push(A=-1===A?6:A)}onExtendToggled(){this.extendSchedule=!this.extendSchedule}}return E.\u0275fac=function(A){return new(A||E)},E.\u0275cmp=e.\u0275\u0275defineComponent({type:E,selectors:[["drc-schedule"]],inputs:{business:"business",pageType:"pageType",hideIcon:"hideIcon"},decls:1,vars:5,consts:[[3,"business","pageType","extendSchedule","businessSchedule","hideIcon","extendToggled"]],template:function(A,P){1&A&&(e.\u0275\u0275elementStart(0,"drc-schedule-presentation",0),e.\u0275\u0275listener("extendToggled",function(){return P.onExtendToggled()}),e.\u0275\u0275elementEnd()),2&A&&e.\u0275\u0275property("business",P.business)("pageType",P.pageType)("extendSchedule",P.extendSchedule)("businessSchedule",P.businessSchedule)("hideIcon",P.hideIcon)},dependencies:[b],changeDetection:0}),E})()},89898:(oe,x,i)=>{"use strict";i.d(x,{i:()=>d});var e=i(94650),n=i(36895),a=i(1576),t=i(99818),l=i(55829),h=i(86255);function s(p,u){if(1&p){const g=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",8),e.\u0275\u0275listener("click",function(){const b=e.\u0275\u0275restoreView(g).$implicit,S=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(S.setSorting(b))}),e.\u0275\u0275elementStart(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()}if(2&p){const g=u.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(g.title)}}let d=(()=>{class p{constructor(){this.shouldHideOnMobile=!0,this.sorted=new e.EventEmitter}setSorting(g){this.sorted.emit(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275cmp=e.\u0275\u0275defineComponent({type:p,selectors:[["drc-sorting"]],inputs:{_options:"_options",sort:"sort",shouldHideOnMobile:"shouldHideOnMobile"},outputs:{sorted:"sorted"},decls:10,vars:4,consts:[["fxShow.gt-sm","","fxLayoutAlign.lt-sm","center center",1,"sorting-container",3,"fxHide"],["mat-button","",1,"p-0",3,"matMenuTriggerFor"],["sortMenuTrigger","matMenuTrigger"],[1,"material-icons","icon-sm","caret"],["xPosition","before",1,"app-dropdown"],["sortMenu","matMenu"],[3,"mouseleave"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"]],template:function(g,v){if(1&g){const y=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0)(1,"a",1,2),e.\u0275\u0275text(3),e.\u0275\u0275elementStart(4,"i",3),e.\u0275\u0275text(5,"keyboard_arrow_down"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"mat-menu",4,5)(8,"span",6),e.\u0275\u0275listener("mouseleave",function(){e.\u0275\u0275restoreView(y);const S=e.\u0275\u0275reference(2);return e.\u0275\u0275resetView(S.closeMenu())}),e.\u0275\u0275template(9,s,3,1,"button",7),e.\u0275\u0275elementEnd()()()}if(2&g){const y=e.\u0275\u0275reference(7);e.\u0275\u0275property("fxHide",v.shouldHideOnMobile),e.\u0275\u0275advance(1),e.\u0275\u0275property("matMenuTriggerFor",y),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" Ordoneaza dupa: ",v._options.page.sortMap[v.sort]," "),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngForOf",v._options.page.sort)}},dependencies:[n.NgForOf,a.Wh,t.Nr,l.b8,h.W0,h.tN,h.D8],changeDetection:0}),p})()},18267:(oe,x,i)=>{"use strict";i.d(x,{C:()=>t});var e=i(28918),n=i(94650),a=i(9116);let t=(()=>{class l{constructor(s,d){this.el=s,this.activatedRoute=d,this.zoom=2.5,this.ix=0,this.iy=0,this.iw=0,this.ih=0,this.isIEOrEdge=/msie\s|trident\/|edge\//i.test(window.navigator.userAgent),this.img=s.nativeElement,this.preview=this.activatedRoute.snapshot._urlSegment.segments.find(p=>"preview"===p.path)}ngAfterViewInit(){this.isIEOrEdge||(this.glass=document.createElement("div"),this.glass.className="img-magnifier-glass",this.el.nativeElement.parentElement.classList.add("imgMagnifierContainer"),this.el.nativeElement.parentElement.appendChild(this.glass))}onMouseEnter(s){if(this.image.blank||this.isIEOrEdge)return!1;window.innerWidth>=(this.preview?500:992)&&(this.imgPos=this.img.getBoundingClientRect(),this.iw=this.img.width,this.ih=this.img.height,this.glass.style.backgroundRepeat="no-repeat",this.glass.style.backgroundSize=this.img.width*this.zoom+"px "+this.img.height*this.zoom+"px",this.glass.style.backgroundImage="url("+(this.image.large!==e.czQ?this.image.large:this.image.medium)+")",this.glass.style.display="block",this.w=this.glass.offsetWidth/2,this.h=this.glass.offsetHeight/2,this.move(s))}onMouseMove(s){this.move(s)}onTouchMove(s){this.move(s)}move(s){if(!this.imgPos||this.image.blank)return!1;const d=s.pageX,p=s.pageY;this.ix=this.imgPos.left+window.pageXOffset,this.iy=this.imgPos.top+window.pageYOffset,d<this.ix-1||p<this.iy-1||d>this.ix+this.iw+1||p>this.iy+this.ih+1?this.glass.style.display="none":(this.glass.style.left=d-this.ix-this.w+"px",this.glass.style.top=p-this.iy-this.h+"px",this.glass.style.backgroundPosition=(this.ix-d)*this.zoom+this.w+"px "+((this.iy-p)*this.zoom+this.h)+"px")}ngOnDestroy(){!this.isIEOrEdge&&this.glass.parentNode===document.querySelector(".imgMagnifierContainer")&&document.querySelector(".imgMagnifierContainer").removeChild(this.glass)}}return l.\u0275fac=function(s){return new(s||l)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(a.gz))},l.\u0275dir=n.\u0275\u0275defineDirective({type:l,selectors:[["","drcMagnifierGlass",""]],hostBindings:function(s,d){1&s&&n.\u0275\u0275listener("mouseenter",function(u){return d.onMouseEnter(u)})("mousemove",function(u){return d.onMouseMove(u)},!1,n.\u0275\u0275resolveDocument)("touchmove",function(u){return d.onTouchMove(u)},!1,n.\u0275\u0275resolveDocument)},inputs:{image:["magnifierGlass","image"],zoom:"zoom"}}),l})()},36925:(oe,x,i)=>{"use strict";i.d(x,{b:()=>l});var e=i(18455),n=i(94650),a=i(89383);let t=(()=>{class h{}return h.\u0275fac=function(d){return new(d||h)},h.\u0275cmp=n.\u0275\u0275defineComponent({type:h,selectors:[["ng-component"]],inputs:{error:"error"},decls:3,vars:3,template:function(d,p){1&d&&(n.\u0275\u0275elementStart(0,"mat-error"),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275elementEnd()),2&d&&(n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(2,1,p.error)))},dependencies:[e.nI,a.X$],encapsulation:2}),h})(),l=(()=>{class h{constructor(d,p,u){this.container=d,this.template=p,this.resolver=u}set forAll(d){d&&(this._control=d)}ngOnInit(){this._control=this._control||this.container.injector.get(e.v_)._control.ngControl.control,this._control.updateValueAndValidity({onlySelf:!0}),this.displayErrors()}ngAfterViewInit(){this._control.statusChanges.subscribe(()=>{this.container.clear(),this.displayErrors()})}displayErrors(){Object.keys(this._control.errors||{}).forEach(d=>{this.container.createEmbeddedView(this.template);const p=this.resolver.resolveComponentFactory(t);this.container.createComponent(p).instance.error=this._control.errors[d]})}}return h.\u0275fac=function(d){return new(d||h)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ComponentFactoryResolver))},h.\u0275dir=n.\u0275\u0275defineDirective({type:h,selectors:[["","drcForAll",""]],inputs:{forAll:"forAll"}}),h})()},42274:(oe,x,i)=>{"use strict";i.d(x,{o9:()=>B.o,GG:()=>U,mA:()=>Q,N9:()=>le,Nq:()=>P,LB:()=>V});var e=i(84888),n=i(36895),a=i(35559),t=i(1576),l=i(69814),h=i(99818),s=i(97392),d=i(44850),p=i(86255),u=i(24006),g=i(18455),v=i(85208),y=i(29203),b=i(9116),S=i(47462),E=i(89383),D=i(81208),A=i(94650);let P=(()=>{class H{}return H.\u0275fac=function(pe){return new(pe||H)},H.\u0275mod=A.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=A.\u0275\u0275defineInjector({imports:[n.CommonModule,e.UK,E.aw,a.yj,t.ae,h.yu,l.o9,s.Ps,d.t,p.jT,u.u5,u.UX,g.wp,v.uw,D.QG,y.x4,b.Bz,S.AA]}),H})();var B=i(81417);let V=(()=>{class H{constructor(pe){this.data=pe}}return H.\u0275fac=function(pe){return new(pe||H)(A.\u0275\u0275directiveInject(a.eJ))},H.\u0275cmp=A.\u0275\u0275defineComponent({type:H,selectors:[["drc-version-dialog"]],decls:14,vars:9,consts:[[1,"full-width-divider"],[1,"version__content"],["mat-dialog-close","","mat-flat-button","",1,"green-button-style","mat-primary","w-100"],[1,"material-icons","version__icon"]],template:function(pe,de){1&pe&&(A.\u0275\u0275elementStart(0,"div",0),A.\u0275\u0275element(1,"mat-divider"),A.\u0275\u0275elementEnd(),A.\u0275\u0275elementStart(2,"div",1)(3,"h2"),A.\u0275\u0275text(4),A.\u0275\u0275pipe(5,"translate"),A.\u0275\u0275elementEnd(),A.\u0275\u0275elementStart(6,"p"),A.\u0275\u0275text(7),A.\u0275\u0275pipe(8,"translate"),A.\u0275\u0275elementEnd(),A.\u0275\u0275elementStart(9,"button",2),A.\u0275\u0275text(10),A.\u0275\u0275pipe(11,"translate"),A.\u0275\u0275elementStart(12,"i",3),A.\u0275\u0275text(13,"chevron_right"),A.\u0275\u0275elementEnd()()()),2&pe&&(A.\u0275\u0275advance(4),A.\u0275\u0275textInterpolate(A.\u0275\u0275pipeBind1(5,3,"SHARED.MISC.VERSION_DIALOG.TITLE")),A.\u0275\u0275advance(3),A.\u0275\u0275textInterpolate(A.\u0275\u0275pipeBind1(8,5,"SHARED.MISC.VERSION_DIALOG.MESSAGE")),A.\u0275\u0275advance(3),A.\u0275\u0275textInterpolate1(" ",A.\u0275\u0275pipeBind1(11,7,"SHARED.MISC.VERSION_DIALOG.I_UNDERSTAND")," "))},dependencies:[a.aO,h.eB,d.d,E.X$],styles:[".full-width-divider[_ngcontent-%COMP%]{margin:36px -16px 0}"],changeDetection:0}),H})();var X=i(55829),re=i(18267);let Q=(()=>{class H{constructor(pe,de,me){this.data=pe,this.dialogRef=de,this.img=me.nativeElement}ngOnInit(){this.data.large=this.data.image}}return H.\u0275fac=function(pe){return new(pe||H)(A.\u0275\u0275directiveInject(a.eJ),A.\u0275\u0275directiveInject(a.hV),A.\u0275\u0275directiveInject(A.ElementRef))},H.\u0275cmp=A.\u0275\u0275defineComponent({type:H,selectors:[["drc-image-preview"]],decls:8,vars:2,consts:[[1,"close-btn-outer"],["color","warn","mat-dialog-close","","mat-mini-fab",""],[1,"image-preview-container"],[1,"mlr-auto","w-100"],["fxLayoutAlign","center center","ngClass.lt-lg","object-fit-contain","drcMagnifierGlass","",1,"image-preview",3,"magnifierGlass","src"]],template:function(pe,de){1&pe&&(A.\u0275\u0275elementStart(0,"div",0)(1,"button",1)(2,"mat-icon"),A.\u0275\u0275text(3,"close"),A.\u0275\u0275elementEnd()()(),A.\u0275\u0275elementStart(4,"mat-dialog-content")(5,"div",2)(6,"div",3),A.\u0275\u0275element(7,"img",4),A.\u0275\u0275elementEnd()()()),2&pe&&(A.\u0275\u0275advance(7),A.\u0275\u0275property("magnifierGlass",de.data)("src",de.data.image,A.\u0275\u0275sanitizeUrl))},dependencies:[a.aO,a.Rb,t.Wh,h.eB,X.oO,s.Hw,re.C],changeDetection:0}),H})();var ae=i(28918),K=i(17366),$=i(37340),j=i(11481),R=i(92972);let U=(()=>{class H{constructor(pe,de,me,q){this.dialogRef=pe,this.sanitizer=de,this.snackBar=me,this.data=q,this.imageBase64="",this.transform={},this.canvasRotation=0,this.cropperSettings={format:"jpeg",aspectRatio:4/3,maintainAspectRatio:!1,resizeToWidth:1280,cropperMinWidth:470,imageQuality:80,position:null},this.carmen=ae.VLR,q.settings&&(this.cropperSettings.format=q.file.type.split("/").pop(),this.cropperSettings.aspectRatio=q.settings.aspectRatio?q.settings.aspectRatio:4/3,this.cropperSettings.resizeToWidth=q.settings.resizeToWidth?q.settings.resizeToWidth:1280,this.cropperSettings.maintainAspectRatio=!!q.settings.aspectRatio),["image/jpeg","image/png","image/jpg"].includes(q.file.type)||(this.dialogRef.close(),this.snackBar.open("Extensia fisierului nu este acceptata!","\xd7",{panelClass:"error",verticalPosition:"bottom",duration:3500}))}ngOnInit(){this.checkFilesSize(),this.originalFile=this.data.file;const pe=new FileReader;pe.onloadend=de=>{this.image={data:de.target.result,url:this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(this.data.file)),file:this.data.file},this.imageBase64=this.image.data},pe.readAsDataURL(this.data.file)}checkFilesSize(){const pe=URL.createObjectURL(this.data.file),de=new Image;de.onload=()=>{(de.width<470||de.height<470)&&(this.dialogRef.close(),this.snackBar.open("Dimensiunea imaginii e prea mica!","\xd7",{panelClass:"error",verticalPosition:"bottom",duration:3500}))},de.src=pe}rotate(pe){"left"===pe?this.canvasRotation--:this.canvasRotation++}flip(pe){"horizontal"===pe?this.flipHorizontally():this.flipVertically()}imageCropped(pe){this.image.data=pe.base64;const de=this.carmen.convertBase64ToBlob(this.image.data);this.image.file=new File([de],this.originalFile.name,{type:this.originalFile.type}),this.image.url=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(this.image.file))}flipHorizontally(){this.transform={...this.transform,flipH:!this.transform.flipH}}flipVertically(){this.transform={...this.transform,flipV:!this.transform.flipV}}}return H.\u0275fac=function(pe){return new(pe||H)(A.\u0275\u0275directiveInject(a.hV),A.\u0275\u0275directiveInject(j.DomSanitizer),A.\u0275\u0275directiveInject(R.pl),A.\u0275\u0275directiveInject(a.eJ))},H.\u0275cmp=A.\u0275\u0275defineComponent({type:H,selectors:[["drc-cropper"]],viewQuery:function(pe,de){if(1&pe&&A.\u0275\u0275viewQuery(D.ap,7),2&pe){let me;A.\u0275\u0275queryRefresh(me=A.\u0275\u0275loadQuery())&&(de.imageCropper=me.first)}},decls:18,vars:35,consts:[[1,"close-btn-outer"],["color","warn","mat-dialog-close","","mat-mini-fab",""],["mat-dialog-title",""],["fxLayout","row","fxLayoutAlign","center center"],["fxFlex","100",3,"imageBase64","transform","canvasRotation","cropperMinWidth","format","imageQuality","aspectRatio","maintainAspectRatio","onlyScaleDown","resizeToWidth","imageCropped"],["fxFlex","100","fxLayout","row","fxLayout.lt-sm","column","fxLayoutAlign","start center",1,"mt-32","mb-16","actions-container"],["fxFlex","","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","16px"],[3,"type","icon","color","toolTip","clickEvent"],["ngClass.lt-sm","mlr-auto",1,"ml-auto",3,"mat-dialog-close","type","icon","color","iconPosition","textTranslationKey"]],template:function(pe,de){1&pe&&(A.\u0275\u0275elementStart(0,"div",0)(1,"button",1)(2,"mat-icon"),A.\u0275\u0275text(3,"close"),A.\u0275\u0275elementEnd()()(),A.\u0275\u0275elementStart(4,"div",2),A.\u0275\u0275text(5),A.\u0275\u0275pipe(6,"translate"),A.\u0275\u0275elementEnd(),A.\u0275\u0275elementStart(7,"mat-dialog-content")(8,"div",3)(9,"image-cropper",4),A.\u0275\u0275listener("imageCropped",function(q){return de.imageCropped(q)}),A.\u0275\u0275elementEnd()()(),A.\u0275\u0275elementStart(10,"mat-dialog-actions")(11,"div",5)(12,"div",6)(13,"drc-button",7),A.\u0275\u0275listener("clickEvent",function(){return de.flip("horizontal")}),A.\u0275\u0275elementEnd(),A.\u0275\u0275elementStart(14,"drc-button",7),A.\u0275\u0275listener("clickEvent",function(){return de.rotate("left")}),A.\u0275\u0275elementEnd(),A.\u0275\u0275elementStart(15,"drc-button",7),A.\u0275\u0275listener("clickEvent",function(){return de.rotate("right")}),A.\u0275\u0275elementEnd(),A.\u0275\u0275elementStart(16,"drc-button",7),A.\u0275\u0275listener("clickEvent",function(){return de.flip("vertical")}),A.\u0275\u0275elementEnd()(),A.\u0275\u0275element(17,"drc-button",8),A.\u0275\u0275elementEnd()()),2&pe&&(A.\u0275\u0275advance(5),A.\u0275\u0275textInterpolate(A.\u0275\u0275pipeBind1(6,33,"UI_LIB.IMAGE_EDITOR.TITLE")),A.\u0275\u0275advance(4),A.\u0275\u0275property("imageBase64",de.imageBase64)("transform",de.transform)("canvasRotation",de.canvasRotation)("cropperMinWidth",null==de.cropperSettings?null:de.cropperSettings.cropperMinWidth)("format",de.cropperSettings.format)("imageQuality",null==de.cropperSettings?null:de.cropperSettings.imageQuality)("aspectRatio",null==de.cropperSettings?null:de.cropperSettings.aspectRatio)("maintainAspectRatio",null==de.cropperSettings?null:de.cropperSettings.maintainAspectRatio)("onlyScaleDown",!0)("resizeToWidth",null==de.cropperSettings?null:de.cropperSettings.resizeToWidth),A.\u0275\u0275advance(4),A.\u0275\u0275property("type","iconButton")("icon","swap_horiz")("color","accent")("toolTip","UI_LIB.IMAGE_EDITOR.SWAP_HORIZONTALLY"),A.\u0275\u0275advance(1),A.\u0275\u0275property("type","iconButton")("icon","rotate_left")("color","accent")("toolTip","UI_LIB.IMAGE_EDITOR.ROTATE_LEFT"),A.\u0275\u0275advance(1),A.\u0275\u0275property("type","iconButton")("icon","rotate_right")("color","accent")("toolTip","UI_LIB.IMAGE_EDITOR.ROTATE_RIGHT"),A.\u0275\u0275advance(1),A.\u0275\u0275property("type","iconButton")("icon","swap_vert")("color","accent")("toolTip","UI_LIB.IMAGE_EDITOR.SWAP_VERTICALLY"),A.\u0275\u0275advance(1),A.\u0275\u0275property("mat-dialog-close",de.image)("type","iconAndTextButton")("icon","done")("color","primary")("iconPosition","left")("textTranslationKey","UI_LIB.IMAGE_EDITOR.DONE"))},dependencies:[a.aO,a.YS,a.Rb,a.ev,t.xw,t.SQ,t.Wh,t.yH,h.eB,X.oO,s.Hw,D.ap,K.r,E.X$],data:{animation:[(0,$.X$)("fadeInOut",[(0,$.SB)("cropping",(0,$.oB)({opacity:.4})),(0,$.SB)("cropped",(0,$.oB)({opacity:1})),(0,$.eR)("* <=> *",(0,$.jt)("300ms"))])]},changeDetection:0}),H})(),le=(()=>{class H{}return H.\u0275fac=function(pe){return new(pe||H)},H.\u0275cmp=A.\u0275\u0275defineComponent({type:H,selectors:[["drc-safari-version-dialog"]],decls:8,vars:6,consts:[[1,"version"],[1,"version__title"],[1,"version__text"]],template:function(pe,de){1&pe&&(A.\u0275\u0275elementStart(0,"div",0),A.\u0275\u0275element(1,"mat-divider"),A.\u0275\u0275elementStart(2,"p",1),A.\u0275\u0275text(3),A.\u0275\u0275pipe(4,"translate"),A.\u0275\u0275elementEnd(),A.\u0275\u0275elementStart(5,"p",2),A.\u0275\u0275text(6),A.\u0275\u0275pipe(7,"translate"),A.\u0275\u0275elementEnd()()),2&pe&&(A.\u0275\u0275advance(3),A.\u0275\u0275textInterpolate(A.\u0275\u0275pipeBind1(4,2,"UI_LIB.SAFARI_VERSION_DIALOG.TITLE")),A.\u0275\u0275advance(3),A.\u0275\u0275textInterpolate(A.\u0275\u0275pipeBind1(7,4,"UI_LIB.SAFARI_VERSION_DIALOG.DESCRIPTION")))},dependencies:[d.d,E.X$],changeDetection:0}),H})();i(95118)},43649:(oe,x,i)=>{"use strict";i.d(x,{E:()=>n});const n=new(i(94650).InjectionToken)("unleashConfig")},53010:(oe,x,i)=>{"use strict";i.d(x,{A:()=>l});var e=i(36895),n=i(94650),a=i(43649),t=i(88836);let l=(()=>{class h{static init(d){return{ngModule:h,providers:[{provide:a.E,useValue:d},{provide:n.APP_INITIALIZER,useFactory:p=>()=>p.onInitialized,deps:[t.$],multi:!0}]}}static withFactory(d){return{ngModule:h,providers:[{provide:a.E,useFactory:d},{provide:n.APP_INITIALIZER,useFactory:p=>()=>p.onInitialized,deps:[t.$],multi:!0}]}}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275mod=n.\u0275\u0275defineNgModule({type:h}),h.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.CommonModule]}),h})()},88836:(oe,x,i)=>{"use strict";i.d(x,{$:()=>p});var e=i(94650),n=i(54968),a=i(95698),t=i(18505),l=i(13099),h=i(85313),d=i(43649);let p=(()=>{class u{constructor(v,y){this.injector=y,this.unleash=new h.UnleashClient(v),this.onInitialized=(0,n.R)(this.unleash,"initialized").pipe((0,a.q)(1),(0,t.b)(()=>this.unleash.start())),this.onError=(0,n.R)(this.unleash,"error").pipe((0,l.B)()),this.onUpdate=(0,n.R)(this.unleash,"update").pipe((0,l.B)()),this.onUpdate.subscribe(()=>{this.injector.get(e.ApplicationRef).tick()})}isEnabled(v){return this.unleash.isEnabled(v)}getVariant(v){return this.unleash.getVariant(v)}updateContext(v){return this.unleash.updateContext(v)}}return u.\u0275fac=function(v){return new(v||u)(e.\u0275\u0275inject(d.E),e.\u0275\u0275inject(e.Injector))},u.\u0275prov=e.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()},82194:(oe,x,i)=>{"use strict";i.d(x,{S:()=>a,z:()=>t});var e=i(88836),n=i(94650);let a=(()=>{class l{set libFeatureEnabled(s){this.unleashService.isEnabled(s)?this.hasView||(this.viewContainer.createEmbeddedView(this.templateRef),this.hasView=!0):(this.viewContainer.clear(),this.hasView=!1),this.toggleName=s}constructor(s,d,p){this.templateRef=s,this.viewContainer=d,this.unleashService=p,this.hasView=!1,this.toggleName=""}ngOnInit(){this.unleashService.onUpdate.subscribe(()=>{this.libFeatureEnabled=this.toggleName})}}return l.\u0275fac=function(s){return new(s||l)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(e.$))},l.\u0275dir=n.\u0275\u0275defineDirective({type:l,selectors:[["","libFeatureEnabled",""]],inputs:{libFeatureEnabled:"libFeatureEnabled"}}),l})(),t=(()=>{class l{set libFeatureDisabled(s){this.unleashService.isEnabled(s)?(this.viewContainer.clear(),this.hasView=!1):this.hasView||(this.viewContainer.createEmbeddedView(this.templateRef),this.hasView=!0),this.toggleName=s}constructor(s,d,p){this.templateRef=s,this.viewContainer=d,this.unleashService=p,this.hasView=!1,this.toggleName=""}ngOnInit(){this.unleashService.onUpdate.subscribe(()=>{this.libFeatureDisabled=this.toggleName})}}return l.\u0275fac=function(s){return new(s||l)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(e.$))},l.\u0275dir=n.\u0275\u0275defineDirective({type:l,selectors:[["","libFeatureDisabled",""]],inputs:{libFeatureDisabled:"libFeatureDisabled"}}),l})()},40488:(oe,x,i)=>{"use strict";i.d(x,{Ne:()=>t,Ao:()=>s.A,$2:()=>e.$});var e=i(88836),n=i(94650),a=i(9116);let t=(()=>{class d{constructor(u,g){this.unleash=u,this.router=g}canActivate(u){const g=u.data.toggleName,v=u.data.redirectUrl,y=u.data.shouldBe??!0;if(!g){const b=`UnleashGuard was used on route '${u.url}' without a 'toggleName'. You must add a 'data.toggleName' property to the Route.`;if((0,n.isDevMode)())throw new Error(b);return console.error(b),!1}return this.unleash.isEnabled(g)===y||(v&&this.router.navigateByUrl(v),!1)}}return d.\u0275fac=function(u){return new(u||d)(n.\u0275\u0275inject(e.$),n.\u0275\u0275inject(a.F0))},d.\u0275prov=n.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})();i(82194),i(43649);var s=i(53010)},61563:(oe,x,i)=>{"use strict";i.d(x,{J:()=>e});const e="production"},10442:(oe,x,i)=>{"use strict";i.d(x,{X:()=>e});const e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__},61603:(oe,x,i)=>{"use strict";i.d(x,{RP:()=>d,cc:()=>s,fH:()=>h});var e=i(42732),n=i(30509),a=i(11446),t=i(96412),l=i(10442);function h(){return(0,e.YO)("globalEventProcessors",()=>[])}function s(p){h().push(p)}function d(p,u,g,v=0){return new n.cW((y,b)=>{const S=p[v];if(null===u||"function"!=typeof S)y(u);else{const E=S({...u},g);l.X&&S.id&&null===E&&a.kg.log(`Event processor "${S.id}" dropped event`),(0,t.J8)(E)?E.then(D=>d(p,D,g,v+1).then(y)).then(null,b):d(p,E,g,v+1).then(y).then(null,b)}})}},69319:(oe,x,i)=>{"use strict";i.d(x,{$e:()=>D,Tb:()=>h,cg:()=>H,eN:()=>d,nZ:()=>R,n_:()=>u,s3:()=>$,uT:()=>s,yj:()=>U});var e=i(42732),n=i(61563),a=i(32739),t=i(95822),l=i(84497);function h(N,pe){return(0,a.Gd)().captureException(N,(0,l.U0)(pe))}function s(N,pe){const de="string"==typeof pe?pe:void 0,me="string"!=typeof pe?{captureContext:pe}:void 0;return(0,a.Gd)().captureMessage(N,de,me)}function d(N,pe){return(0,a.Gd)().captureEvent(N,pe)}function u(N,pe){(0,a.Gd)().addBreadcrumb(N,pe)}function D(...N){const pe=(0,a.Gd)();if(2===N.length){const[de,me]=N;return pe.withScope(de?()=>(pe.getStackTop().scope=de,me(de)):me)}return pe.withScope(N[0])}function $(){return(0,a.Gd)().getClient()}function R(){return(0,a.Gd)().getScope()}function U(N){const pe=$(),de=(0,a.aF)(),me=R(),{release:q,environment:se=n.J}=pe&&pe.getOptions()||{},{userAgent:ve}=e.n2.navigator||{},Ee=(0,t.Hv)({release:q,environment:se,user:me.getUser()||de.getUser(),...ve&&{userAgent:ve},...N}),Ye=de.getSession();return Ye&&"ok"===Ye.status&&(0,t.CT)(Ye,{status:"exited"}),le(),de.setSession(Ee),me.setSession(Ee),Ee}function le(){const N=(0,a.aF)(),pe=R(),de=pe.getSession()||N.getSession();de&&(0,t.RJ)(de),T(),N.setSession(),pe.setSession()}function T(){const N=(0,a.aF)(),pe=R(),de=$(),me=pe.getSession()||N.getSession();me&&de&&de.captureSession&&de.captureSession(me)}function H(N=!1){N?le():T()}},32739:(oe,x,i)=>{"use strict";i.d(x,{Gd:()=>E,aF:()=>D});var e=i(96412),n=i(15535),a=i(43967),t=i(11446),l=i(42732),h=i(61563),s=i(10442),d=i(87883),p=i(95822),u=i(99853);const g=parseFloat(u.J),v=100;class y{constructor(K,k,$,j=g){let R,U;this._version=j,k?R=k:(R=new d.sX,R.setClient(K)),$?U=$:(U=new d.sX,U.setClient(K)),this._stack=[{scope:R}],K&&this.bindClient(K),this._isolationScope=U}isOlderThan(K){return this._version<K}bindClient(K){const k=this.getStackTop();k.client=K,k.scope.setClient(K),K&&K.setupIntegrations&&K.setupIntegrations()}pushScope(){const K=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:K}),K}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(K){const k=this.pushScope();let $;try{$=K(k)}catch(j){throw this.popScope(),j}return(0,e.J8)($)?$.then(j=>(this.popScope(),j),j=>{throw this.popScope(),j}):(this.popScope(),$)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(K,k){const $=this._lastEventId=k&&k.event_id?k.event_id:(0,n.DM)(),j=new Error("Sentry syntheticException");return this.getScope().captureException(K,{originalException:K,syntheticException:j,...k,event_id:$}),$}captureMessage(K,k,$){const j=this._lastEventId=$&&$.event_id?$.event_id:(0,n.DM)(),R=new Error(K);return this.getScope().captureMessage(K,k,{originalException:K,syntheticException:R,...$,event_id:j}),j}captureEvent(K,k){const $=k&&k.event_id?k.event_id:(0,n.DM)();return K.type||(this._lastEventId=$),this.getScope().captureEvent(K,{...k,event_id:$}),$}lastEventId(){return this._lastEventId}addBreadcrumb(K,k){const{scope:$,client:j}=this.getStackTop();if(!j)return;const{beforeBreadcrumb:R=null,maxBreadcrumbs:U=v}=j.getOptions&&j.getOptions()||{};if(U<=0)return;const T={timestamp:(0,a.yW)(),...K},H=R?(0,t.Cf)(()=>R(T,k)):T;null!==H&&(j.emit&&j.emit("beforeAddBreadcrumb",H,k),$.addBreadcrumb(H,U))}setUser(K){this.getScope().setUser(K),this.getIsolationScope().setUser(K)}setTags(K){this.getScope().setTags(K),this.getIsolationScope().setTags(K)}setExtras(K){this.getScope().setExtras(K),this.getIsolationScope().setExtras(K)}setTag(K,k){this.getScope().setTag(K,k),this.getIsolationScope().setTag(K,k)}setExtra(K,k){this.getScope().setExtra(K,k),this.getIsolationScope().setExtra(K,k)}setContext(K,k){this.getScope().setContext(K,k),this.getIsolationScope().setContext(K,k)}configureScope(K){const{scope:k,client:$}=this.getStackTop();$&&K(k)}run(K){const k=S(this);try{K(this)}finally{S(k)}}getIntegration(K){const k=this.getClient();if(!k)return null;try{return k.getIntegration(K)}catch{return s.X&&t.kg.warn(`Cannot retrieve integration ${K.id} from the current Hub`),null}}startTransaction(K,k){const $=this._callExtensionMethod("startTransaction",K,k);return s.X&&!$&&(this.getClient()?t.kg.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):t.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),$}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(K=!1){if(K)return this.endSession();this._sendSessionUpdate()}endSession(){const k=this.getStackTop().scope,$=k.getSession();$&&(0,p.RJ)($),this._sendSessionUpdate(),k.setSession()}startSession(K){const{scope:k,client:$}=this.getStackTop(),{release:j,environment:R=h.J}=$&&$.getOptions()||{},{userAgent:U}=l.n2.navigator||{},le=(0,p.Hv)({release:j,environment:R,user:k.getUser(),...U&&{userAgent:U},...K}),T=k.getSession&&k.getSession();return T&&"ok"===T.status&&(0,p.CT)(T,{status:"exited"}),this.endSession(),k.setSession(le),le}shouldSendDefaultPii(){const K=this.getClient(),k=K&&K.getOptions();return Boolean(k&&k.sendDefaultPii)}_sendSessionUpdate(){const{scope:K,client:k}=this.getStackTop(),$=K.getSession();$&&k&&k.captureSession&&k.captureSession($)}_callExtensionMethod(K,...k){const j=b().__SENTRY__;if(j&&j.extensions&&"function"==typeof j.extensions[K])return j.extensions[K].apply(this,k);s.X&&t.kg.warn(`Extension method ${K} couldn't be found, doing nothing.`)}}function b(){return l.n2.__SENTRY__=l.n2.__SENTRY__||{extensions:{},hub:void 0},l.n2}function S(ae){const K=b(),k=re(K);return Q(K,ae),k}function E(){const ae=b();if(ae.__SENTRY__&&ae.__SENTRY__.acs){const K=ae.__SENTRY__.acs.getCurrentHub();if(K)return K}return function A(ae=b()){return(!function X(ae){return!!(ae&&ae.__SENTRY__&&ae.__SENTRY__.hub)}(ae)||re(ae).isOlderThan(g))&&Q(ae,new y),re(ae)}(ae)}function D(){return E().getIsolationScope()}function re(ae){return(0,l.YO)("hub",()=>new y,ae)}function Q(ae,K){return!!ae&&((ae.__SENTRY__=ae.__SENTRY__||{}).hub=K,!0)}},87883:(oe,x,i)=>{"use strict";i.d(x,{lW:()=>g,sX:()=>u});var e=i(96412),n=i(43967),a=i(15535),t=i(11446),l=i(61603),h=i(95822),s=i(90933);let p;class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=y()}static clone(S){return S?S.clone():new u}clone(){const S=new u;return S._breadcrumbs=[...this._breadcrumbs],S._tags={...this._tags},S._extra={...this._extra},S._contexts={...this._contexts},S._user=this._user,S._level=this._level,S._span=this._span,S._session=this._session,S._transactionName=this._transactionName,S._fingerprint=this._fingerprint,S._eventProcessors=[...this._eventProcessors],S._requestSession=this._requestSession,S._attachments=[...this._attachments],S._sdkProcessingMetadata={...this._sdkProcessingMetadata},S._propagationContext={...this._propagationContext},S._client=this._client,S}setClient(S){this._client=S}getClient(){return this._client}addScopeListener(S){this._scopeListeners.push(S)}addEventProcessor(S){return this._eventProcessors.push(S),this}setUser(S){return this._user=S||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,h.CT)(this._session,{user:S}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(S){return this._requestSession=S,this}setTags(S){return this._tags={...this._tags,...S},this._notifyScopeListeners(),this}setTag(S,E){return this._tags={...this._tags,[S]:E},this._notifyScopeListeners(),this}setExtras(S){return this._extra={...this._extra,...S},this._notifyScopeListeners(),this}setExtra(S,E){return this._extra={...this._extra,[S]:E},this._notifyScopeListeners(),this}setFingerprint(S){return this._fingerprint=S,this._notifyScopeListeners(),this}setLevel(S){return this._level=S,this._notifyScopeListeners(),this}setTransactionName(S){return this._transactionName=S,this._notifyScopeListeners(),this}setContext(S,E){return null===E?delete this._contexts[S]:this._contexts[S]=E,this._notifyScopeListeners(),this}setSpan(S){return this._span=S,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const S=this._span;return S&&S.transaction}setSession(S){return S?this._session=S:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(S){if(!S)return this;const E="function"==typeof S?S(this):S;if(E instanceof u){const D=E.getScopeData();this._tags={...this._tags,...D.tags},this._extra={...this._extra,...D.extra},this._contexts={...this._contexts,...D.contexts},D.user&&Object.keys(D.user).length&&(this._user=D.user),D.level&&(this._level=D.level),D.fingerprint.length&&(this._fingerprint=D.fingerprint),E.getRequestSession()&&(this._requestSession=E.getRequestSession()),D.propagationContext&&(this._propagationContext=D.propagationContext)}else if((0,e.PO)(E)){const D=S;this._tags={...this._tags,...D.tags},this._extra={...this._extra,...D.extra},this._contexts={...this._contexts,...D.contexts},D.user&&(this._user=D.user),D.level&&(this._level=D.level),D.fingerprint&&(this._fingerprint=D.fingerprint),D.requestSession&&(this._requestSession=D.requestSession),D.propagationContext&&(this._propagationContext=D.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=y(),this}addBreadcrumb(S,E){const D="number"==typeof E?E:100;if(D<=0)return this;const A={timestamp:(0,n.yW)(),...S},P=this._breadcrumbs;return P.push(A),this._breadcrumbs=P.length>D?P.slice(-D):P,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(S){return this._attachments.push(S),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:S,_attachments:E,_contexts:D,_tags:A,_extra:P,_user:B,_level:V,_fingerprint:X,_eventProcessors:re,_propagationContext:Q,_sdkProcessingMetadata:ae,_transactionName:K,_span:k}=this;return{breadcrumbs:S,attachments:E,contexts:D,tags:A,extra:P,user:B,level:V,fingerprint:X||[],eventProcessors:re,propagationContext:Q,sdkProcessingMetadata:ae,transactionName:K,span:k}}applyToEvent(S,E={},D=[]){(0,s.gi)(S,this.getScopeData());const A=[...D,...(0,l.fH)(),...this._eventProcessors];return(0,l.RP)(A,S,E)}setSDKProcessingMetadata(S){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...S},this}setPropagationContext(S){return this._propagationContext=S,this}getPropagationContext(){return this._propagationContext}captureException(S,E){const D=E&&E.event_id?E.event_id:(0,a.DM)();if(!this._client)return t.kg.warn("No client configured on scope - will not capture exception!"),D;const A=new Error("Sentry syntheticException");return this._client.captureException(S,{originalException:S,syntheticException:A,...E,event_id:D},this),D}captureMessage(S,E,D){const A=D&&D.event_id?D.event_id:(0,a.DM)();if(!this._client)return t.kg.warn("No client configured on scope - will not capture message!"),A;const P=new Error(S);return this._client.captureMessage(S,E,{originalException:S,syntheticException:P,...D,event_id:A},this),A}captureEvent(S,E){const D=E&&E.event_id?E.event_id:(0,a.DM)();return this._client?(this._client.captureEvent(S,{...E,event_id:D},this),D):(t.kg.warn("No client configured on scope - will not capture event!"),D)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(S=>{S(this)}),this._notifyingListeners=!1)}}function g(){return p||(p=new u),p}function y(){return{traceId:(0,a.DM)(),spanId:(0,a.DM)().substring(16)}}},95822:(oe,x,i)=>{"use strict";i.d(x,{CT:()=>l,Hv:()=>t,RJ:()=>h});var e=i(43967),n=i(15535),a=i(57759);function t(d){const p=(0,e.ph)(),u={sid:(0,n.DM)(),init:!0,timestamp:p,started:p,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function s(d){return(0,a.Jr)({sid:`${d.sid}`,init:d.init,started:new Date(1e3*d.started).toISOString(),timestamp:new Date(1e3*d.timestamp).toISOString(),status:d.status,errors:d.errors,did:"number"==typeof d.did||"string"==typeof d.did?`${d.did}`:void 0,duration:d.duration,abnormal_mechanism:d.abnormal_mechanism,attrs:{release:d.release,environment:d.environment,ip_address:d.ipAddress,user_agent:d.userAgent}})}(u)};return d&&l(u,d),u}function l(d,p={}){if(p.user&&(!d.ipAddress&&p.user.ip_address&&(d.ipAddress=p.user.ip_address),!d.did&&!p.did&&(d.did=p.user.id||p.user.email||p.user.username)),d.timestamp=p.timestamp||(0,e.ph)(),p.abnormal_mechanism&&(d.abnormal_mechanism=p.abnormal_mechanism),p.ignoreDuration&&(d.ignoreDuration=p.ignoreDuration),p.sid&&(d.sid=32===p.sid.length?p.sid:(0,n.DM)()),void 0!==p.init&&(d.init=p.init),!d.did&&p.did&&(d.did=`${p.did}`),"number"==typeof p.started&&(d.started=p.started),d.ignoreDuration)d.duration=void 0;else if("number"==typeof p.duration)d.duration=p.duration;else{const u=d.timestamp-d.started;d.duration=u>=0?u:0}p.release&&(d.release=p.release),p.environment&&(d.environment=p.environment),!d.ipAddress&&p.ipAddress&&(d.ipAddress=p.ipAddress),!d.userAgent&&p.userAgent&&(d.userAgent=p.userAgent),"number"==typeof p.errors&&(d.errors=p.errors),p.status&&(d.status=p.status)}function h(d,p){let u={};p?u={status:p}:"ok"===d.status&&(u={status:"exited"}),l(d,u)}},16940:(oe,x,i)=>{"use strict";i.d(x,{_:()=>h,j:()=>s});var e=i(57759),n=i(61563),a=i(69319),t=i(43012),l=i(71114);function h(d,p,u){const g=p.getOptions(),{publicKey:v}=p.getDsn()||{},{segment:y}=u&&u.getUser()||{},b=(0,e.Jr)({environment:g.environment||n.J,release:g.release,user_segment:y,public_key:v,trace_id:d});return p.emit&&p.emit("createDsc",b),b}function s(d){const p=(0,a.s3)();if(!p)return{};const u=h((0,l.XU)(d).trace_id||"",p,(0,a.nZ)()),g=(0,t.G)(d);if(!g)return u;const v=g&&g._frozenDynamicSamplingContext;if(v)return v;const{sampleRate:y,source:b}=g.metadata;null!=y&&(u.sample_rate=`${y}`);const S=(0,l.XU)(g);return b&&"url"!==b&&(u.transaction=S.description),u.sampled=String((0,l.Tt)(g)),p.emit&&p.emit("createDsc",u),u}},90933:(oe,x,i)=>{"use strict";i.d(x,{gi:()=>h,yo:()=>s});var e=i(57759),n=i(15535),a=i(16940),t=i(43012),l=i(71114);function h(b,S){const{fingerprint:E,span:D,breadcrumbs:A,sdkProcessingMetadata:P}=S;(function p(b,S){const{extra:E,tags:D,user:A,contexts:P,level:B,transactionName:V}=S,X=(0,e.Jr)(E);X&&Object.keys(X).length&&(b.extra={...X,...b.extra});const re=(0,e.Jr)(D);re&&Object.keys(re).length&&(b.tags={...re,...b.tags});const Q=(0,e.Jr)(A);Q&&Object.keys(Q).length&&(b.user={...Q,...b.user});const ae=(0,e.Jr)(P);ae&&Object.keys(ae).length&&(b.contexts={...ae,...b.contexts}),B&&(b.level=B),V&&(b.transaction=V)})(b,S),D&&function v(b,S){b.contexts={trace:(0,l.wy)(S),...b.contexts};const E=(0,t.G)(S);if(E){b.sdkProcessingMetadata={dynamicSamplingContext:(0,a.j)(S),...b.sdkProcessingMetadata};const D=(0,l.XU)(E).description;D&&(b.tags={transaction:D,...b.tags})}}(b,D),function y(b,S){b.fingerprint=b.fingerprint?(0,n.lE)(b.fingerprint):[],S&&(b.fingerprint=b.fingerprint.concat(S)),b.fingerprint&&!b.fingerprint.length&&delete b.fingerprint}(b,E),function u(b,S){const E=[...b.breadcrumbs||[],...S];b.breadcrumbs=E.length?E:void 0}(b,A),function g(b,S){b.sdkProcessingMetadata={...b.sdkProcessingMetadata,...S}}(b,P)}function s(b,S){const{extra:E,tags:D,user:A,contexts:P,level:B,sdkProcessingMetadata:V,breadcrumbs:X,fingerprint:re,eventProcessors:Q,attachments:ae,propagationContext:K,transactionName:k,span:$}=S;d(b,"extra",E),d(b,"tags",D),d(b,"user",A),d(b,"contexts",P),d(b,"sdkProcessingMetadata",V),B&&(b.level=B),k&&(b.transactionName=k),$&&(b.span=$),X.length&&(b.breadcrumbs=[...b.breadcrumbs,...X]),re.length&&(b.fingerprint=[...b.fingerprint,...re]),Q.length&&(b.eventProcessors=[...b.eventProcessors,...Q]),ae.length&&(b.attachments=[...b.attachments,...ae]),b.propagationContext={...b.propagationContext,...K}}function d(b,S,E){if(E&&Object.keys(E).length){b[S]={...b[S]};for(const D in E)Object.prototype.hasOwnProperty.call(E,D)&&(b[S][D]=E[D])}}},43012:(oe,x,i)=>{"use strict";function e(n){return n.transaction}i.d(x,{G:()=>e})},84497:(oe,x,i)=>{"use strict";i.d(x,{R:()=>g,U0:()=>P});var e=i(15535),n=i(43967),a=i(21090),t=i(42732),l=i(69572),h=i(61563),s=i(61603),d=i(87883),p=i(90933),u=i(71114);function g(re,Q,ae,K,k,$){const{normalizeDepth:j=3,normalizeMaxBreadth:R=1e3}=re,U={...Q,event_id:Q.event_id||ae.event_id||(0,e.DM)(),timestamp:Q.timestamp||(0,n.yW)()},le=ae.integrations||re.integrations.map(q=>q.name);(function v(re,Q){const{environment:ae,release:K,dist:k,maxValueLength:$=250}=Q;"environment"in re||(re.environment="environment"in Q?ae:h.J),void 0===re.release&&void 0!==K&&(re.release=K),void 0===re.dist&&void 0!==k&&(re.dist=k),re.message&&(re.message=(0,a.$G)(re.message,$));const j=re.exception&&re.exception.values&&re.exception.values[0];j&&j.value&&(j.value=(0,a.$G)(j.value,$));const R=re.request;R&&R.url&&(R.url=(0,a.$G)(R.url,$))})(U,re),function E(re,Q){Q.length>0&&(re.sdk=re.sdk||{},re.sdk.integrations=[...re.sdk.integrations||[],...Q])}(U,le),void 0===Q.type&&function b(re,Q){const ae=t.n2._sentryDebugIds;if(!ae)return;let K;const k=y.get(Q);k?K=k:(K=new Map,y.set(Q,K));const $=Object.keys(ae).reduce((j,R)=>{let U;const le=K.get(R);le?U=le:(U=Q(R),K.set(R,U));for(let T=U.length-1;T>=0;T--){const H=U[T];if(H.filename){j[H.filename]=ae[R];break}}return j},{});try{re.exception.values.forEach(j=>{j.stacktrace.frames.forEach(R=>{R.filename&&(R.debug_id=$[R.filename])})})}catch{}}(U,re.stackParser);const T=function A(re,Q){if(!Q)return re;const ae=re?re.clone():new d.sX;return ae.update(Q),ae}(K,ae.captureContext);ae.mechanism&&(0,e.EG)(U,ae.mechanism);const H=k&&k.getEventProcessors?k.getEventProcessors():[],N=(0,d.lW)().getScopeData();if($){const q=$.getScopeData();(0,p.yo)(N,q)}if(T){const q=T.getScopeData();(0,p.yo)(N,q)}const pe=[...ae.attachments||[],...N.attachments];pe.length&&(ae.attachments=pe),(0,p.gi)(U,N);const de=[...H,...(0,s.fH)(),...N.eventProcessors];return(0,s.RP)(de,U,ae).then(q=>(q&&function S(re){const Q={};try{re.exception.values.forEach(K=>{K.stacktrace.frames.forEach(k=>{k.debug_id&&(k.abs_path?Q[k.abs_path]=k.debug_id:k.filename&&(Q[k.filename]=k.debug_id),delete k.debug_id)})})}catch{}if(0===Object.keys(Q).length)return;re.debug_meta=re.debug_meta||{},re.debug_meta.images=re.debug_meta.images||[];const ae=re.debug_meta.images;Object.keys(Q).forEach(K=>{ae.push({type:"sourcemap",code_file:K,debug_id:Q[K]})})}(q),"number"==typeof j&&j>0?function D(re,Q,ae){if(!re)return null;const K={...re,...re.breadcrumbs&&{breadcrumbs:re.breadcrumbs.map(k=>({...k,...k.data&&{data:(0,l.Fv)(k.data,Q,ae)}}))},...re.user&&{user:(0,l.Fv)(re.user,Q,ae)},...re.contexts&&{contexts:(0,l.Fv)(re.contexts,Q,ae)},...re.extra&&{extra:(0,l.Fv)(re.extra,Q,ae)}};return re.contexts&&re.contexts.trace&&K.contexts&&(K.contexts.trace=re.contexts.trace,re.contexts.trace.data&&(K.contexts.trace.data=(0,l.Fv)(re.contexts.trace.data,Q,ae))),re.spans&&(K.spans=re.spans.map(k=>{const $=(0,u.XU)(k).data;return $&&(k.data=(0,l.Fv)($,Q,ae)),k})),K}(q,j,R):q))}const y=new WeakMap;function P(re){if(re)return function B(re){return re instanceof d.sX||"function"==typeof re}(re)||function X(re){return Object.keys(re).some(Q=>V.includes(Q))}(re)?{captureContext:re}:re}const V=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},71114:(oe,x,i)=>{"use strict";i.d(x,{Tt:()=>u,XU:()=>d,wy:()=>t});var e=i(57759);const a=1;function t(g){const{spanId:v,traceId:y}=g.spanContext(),{data:b,op:S,parent_span_id:E,status:D,tags:A,origin:P}=d(g);return(0,e.Jr)({data:b,op:S,parent_span_id:E,span_id:v,status:D,tags:A,trace_id:y,origin:P})}function d(g){return function p(g){return"function"==typeof g.getSpanJSON}(g)?g.getSpanJSON():"function"==typeof g.toJSON?g.toJSON():{}}function u(g){const{traceFlags:v}=g.spanContext();return Boolean(v&a)}},99853:(oe,x,i)=>{"use strict";i.d(x,{J:()=>e});const e="7.119.2"},36477:(oe,x,i)=>{"use strict";i.d(x,{Rt:()=>l,iY:()=>p,l4:()=>s});var e=i(96412);const a=(0,i(42732).Rf)(),t=80;function l(u,g={}){if(!u)return"<unknown>";try{let v=u;const y=5,b=[];let S=0,E=0;const D=" > ",A=D.length;let P;const B=Array.isArray(g)?g:g.keyAttrs,V=!Array.isArray(g)&&g.maxStringLength||t;for(;v&&S++<y&&(P=h(v,B),!("html"===P||S>1&&E+b.length*A+P.length>=V));)b.push(P),E+=P.length,v=v.parentNode;return b.reverse().join(D)}catch{return"<unknown>"}}function h(u,g){const v=u,y=[];let b,S,E,D,A;if(!v||!v.tagName)return"";if(a.HTMLElement&&v instanceof HTMLElement&&v.dataset&&v.dataset.sentryComponent)return v.dataset.sentryComponent;y.push(v.tagName.toLowerCase());const P=g&&g.length?g.filter(V=>v.getAttribute(V)).map(V=>[V,v.getAttribute(V)]):null;if(P&&P.length)P.forEach(V=>{y.push(`[${V[0]}="${V[1]}"]`)});else if(v.id&&y.push(`#${v.id}`),b=v.className,b&&(0,e.HD)(b))for(S=b.split(/\s+/),A=0;A<S.length;A++)y.push(`.${S[A]}`);const B=["aria-label","type","name","title","alt"];for(A=0;A<B.length;A++)E=B[A],D=v.getAttribute(E),D&&y.push(`[${E}="${D}"]`);return y.join("")}function s(){try{return a.document.location.href}catch{return""}}function p(u){if(!a.HTMLElement)return null;let g=u;for(let y=0;y<5;y++){if(!g)return null;if(g instanceof HTMLElement&&g.dataset.sentryComponent)return g.dataset.sentryComponent;g=g.parentNode}return null}},59843:(oe,x,i)=>{"use strict";i.d(x,{X:()=>e});const e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__},96412:(oe,x,i)=>{"use strict";i.d(x,{Cy:()=>S,HD:()=>s,J8:()=>b,Kj:()=>y,Le:()=>d,PO:()=>u,TX:()=>l,V9:()=>D,VW:()=>t,VZ:()=>n,cO:()=>g,fm:()=>h,i2:()=>E,kK:()=>v,pt:()=>p,y1:()=>A});const e=Object.prototype.toString;function n(P){switch(e.call(P)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return D(P,Error)}}function a(P,B){return e.call(P)===`[object ${B}]`}function t(P){return a(P,"ErrorEvent")}function l(P){return a(P,"DOMError")}function h(P){return a(P,"DOMException")}function s(P){return a(P,"String")}function d(P){return"object"==typeof P&&null!==P&&"__sentry_template_string__"in P&&"__sentry_template_values__"in P}function p(P){return null===P||d(P)||"object"!=typeof P&&"function"!=typeof P}function u(P){return a(P,"Object")}function g(P){return typeof Event<"u"&&D(P,Event)}function v(P){return typeof Element<"u"&&D(P,Element)}function y(P){return a(P,"RegExp")}function b(P){return Boolean(P&&P.then&&"function"==typeof P.then)}function S(P){return u(P)&&"nativeEvent"in P&&"preventDefault"in P&&"stopPropagation"in P}function E(P){return"number"==typeof P&&P!=P}function D(P,B){try{return P instanceof B}catch{return!1}}function A(P){return!("object"!=typeof P||null===P||!P.__isVue&&!P._isVue)}},11446:(oe,x,i)=>{"use strict";i.d(x,{Cf:()=>h,LD:()=>l,RU:()=>t,kg:()=>d});var e=i(59843),n=i(42732);const t=["debug","info","warn","error","log","assert","trace"],l={};function h(p){if(!("console"in n.n2))return p();const u=n.n2.console,g={},v=Object.keys(l);v.forEach(y=>{const b=l[y];g[y]=u[y],u[y]=b});try{return p()}finally{v.forEach(y=>{u[y]=g[y]})}}const d=function s(){let p=!1;const u={enable:()=>{p=!0},disable:()=>{p=!1},isEnabled:()=>p};return t.forEach(e.X?g=>{u[g]=(...v)=>{p&&h(()=>{n.n2.console[g](`Sentry Logger [${g}]:`,...v)})}}:g=>{u[g]=()=>{}}),u}()},15535:(oe,x,i)=>{"use strict";i.d(x,{DM:()=>a,Db:()=>h,EG:()=>s,YO:()=>g,jH:()=>l,lE:()=>v});var e=i(57759),n=i(42732);function a(){const y=n.n2,b=y.crypto||y.msCrypto;let S=()=>16*Math.random();try{if(b&&b.randomUUID)return b.randomUUID().replace(/-/g,"");b&&b.getRandomValues&&(S=()=>{const E=new Uint8Array(1);return b.getRandomValues(E),E[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,E=>(E^(15&S())>>E/4).toString(16))}function t(y){return y.exception&&y.exception.values?y.exception.values[0]:void 0}function l(y){const{message:b,event_id:S}=y;if(b)return b;const E=t(y);return E?E.type&&E.value?`${E.type}: ${E.value}`:E.type||E.value||S||"<unknown>":S||"<unknown>"}function h(y,b,S){const E=y.exception=y.exception||{},D=E.values=E.values||[],A=D[0]=D[0]||{};A.value||(A.value=b||""),A.type||(A.type=S||"Error")}function s(y,b){const S=t(y);if(!S)return;const D=S.mechanism;if(S.mechanism={type:"generic",handled:!0,...D,...b},b&&"data"in b){const A={...D&&D.data,...b.data};S.mechanism.data=A}}function g(y){if(y&&y.__sentry_captured__)return!0;try{(0,e.xp)(y,"__sentry_captured__",!0)}catch{}return!1}function v(y){return Array.isArray(y)?y:[y]}},69572:(oe,x,i)=>{"use strict";i.d(x,{Fv:()=>l,Qy:()=>h});var e=i(96412),a=i(57759),t=i(19725);function l(y,b=100,S=1/0){try{return s("",y,b,S)}catch(E){return{ERROR:`**non-serializable** (${E})`}}}function h(y,b=3,S=102400){const E=l(y,b);return function g(y){return function u(y){return~-encodeURI(y).split(/%..|./).length}(JSON.stringify(y))}(E)>S?h(y,b-1,S):E}function s(y,b,S=1/0,E=1/0,D=function n(){const y="function"==typeof WeakSet,b=y?new WeakSet:[];return[function S(D){if(y)return!!b.has(D)||(b.add(D),!1);for(let A=0;A<b.length;A++)if(b[A]===D)return!0;return b.push(D),!1},function E(D){if(y)b.delete(D);else for(let A=0;A<b.length;A++)if(b[A]===D){b.splice(A,1);break}}]}()){const[A,P]=D;if(null==b||["number","boolean","string"].includes(typeof b)&&!(0,e.i2)(b))return b;const B=function d(y,b){try{if("domain"===y&&b&&"object"==typeof b&&b._events)return"[Domain]";if("domainEmitter"===y)return"[DomainEmitter]";if(typeof global<"u"&&b===global)return"[Global]";if(typeof window<"u"&&b===window)return"[Window]";if(typeof document<"u"&&b===document)return"[Document]";if((0,e.y1)(b))return"[VueViewModel]";if((0,e.Cy)(b))return"[SyntheticEvent]";if("number"==typeof b&&b!=b)return"[NaN]";if("function"==typeof b)return`[Function: ${(0,t.$P)(b)}]`;if("symbol"==typeof b)return`[${String(b)}]`;if("bigint"==typeof b)return`[BigInt: ${String(b)}]`;const S=function p(y){const b=Object.getPrototypeOf(y);return b?b.constructor.name:"null prototype"}(b);return/^HTML(\w*)Element$/.test(S)?`[HTMLElement: ${S}]`:`[object ${S}]`}catch(S){return`**non-serializable** (${S})`}}(y,b);if(!B.startsWith("[object "))return B;if(b.__sentry_skip_normalization__)return b;const V="number"==typeof b.__sentry_override_normalization_depth__?b.__sentry_override_normalization_depth__:S;if(0===V)return B.replace("object ","");if(A(b))return"[Circular ~]";const X=b;if(X&&"function"==typeof X.toJSON)try{return s("",X.toJSON(),V-1,E,D)}catch{}const re=Array.isArray(b)?[]:{};let Q=0;const ae=(0,a.Sh)(b);for(const K in ae)if(Object.prototype.hasOwnProperty.call(ae,K)){if(Q>=E){re[K]="[MaxProperties ~]";break}re[K]=s(K,ae[K],V-1,E,D),Q++}return P(b),re}},57759:(oe,x,i)=>{"use strict";i.d(x,{$Q:()=>d,HK:()=>p,Jr:()=>S,Sh:()=>g,_j:()=>u,hl:()=>h,xp:()=>s,zf:()=>b});var e=i(36477),n=i(59843),a=i(96412),t=i(11446),l=i(21090);function h(P,B,V){if(!(B in P))return;const X=P[B],re=V(X);"function"==typeof re&&d(re,X),P[B]=re}function s(P,B,V){try{Object.defineProperty(P,B,{value:V,writable:!0,configurable:!0})}catch{n.X&&t.kg.log(`Failed to add non-enumerable property "${B}" to object`,P)}}function d(P,B){try{P.prototype=B.prototype=B.prototype||{},s(P,"__sentry_original__",B)}catch{}}function p(P){return P.__sentry_original__}function u(P){return Object.keys(P).map(B=>`${encodeURIComponent(B)}=${encodeURIComponent(P[B])}`).join("&")}function g(P){if((0,a.VZ)(P))return{message:P.message,name:P.name,stack:P.stack,...y(P)};if((0,a.cO)(P)){const B={type:P.type,target:v(P.target),currentTarget:v(P.currentTarget),...y(P)};return typeof CustomEvent<"u"&&(0,a.V9)(P,CustomEvent)&&(B.detail=P.detail),B}return P}function v(P){try{return(0,a.kK)(P)?(0,e.Rt)(P):Object.prototype.toString.call(P)}catch{return"<unknown>"}}function y(P){if("object"==typeof P&&null!==P){const B={};for(const V in P)Object.prototype.hasOwnProperty.call(P,V)&&(B[V]=P[V]);return B}return{}}function b(P,B=40){const V=Object.keys(g(P));if(V.sort(),!V.length)return"[object has no keys]";if(V[0].length>=B)return(0,l.$G)(V[0],B);for(let X=V.length;X>0;X--){const re=V.slice(0,X).join(", ");if(!(re.length>B))return X===V.length?re:(0,l.$G)(re,B)}return""}function S(P){return E(P,new Map)}function E(P,B){if(function D(P){if(!(0,a.PO)(P))return!1;try{const B=Object.getPrototypeOf(P).constructor.name;return!B||"Object"===B}catch{return!0}}(P)){const V=B.get(P);if(void 0!==V)return V;const X={};B.set(P,X);for(const re of Object.keys(P))typeof P[re]<"u"&&(X[re]=E(P[re],B));return X}if(Array.isArray(P)){const V=B.get(P);if(void 0!==V)return V;const X=[];return B.set(P,X),P.forEach(re=>{X.push(E(re,B))}),X}return P}},19725:(oe,x,i)=>{"use strict";i.d(x,{$P:()=>d,Sq:()=>l,pE:()=>t});const e=50,n=/\(error: (.*)\)/,a=/captureMessage|captureException/;function t(...u){const g=u.sort((v,y)=>v[0]-y[0]).map(v=>v[1]);return(v,y=0)=>{const b=[],S=v.split("\n");for(let E=y;E<S.length;E++){const D=S[E];if(D.length>1024)continue;const A=n.test(D)?D.replace(n,"$1"):D;if(!A.match(/\S*Error: /)){for(const P of g){const B=P(A);if(B){b.push(B);break}}if(b.length>=e)break}}return function h(u){if(!u.length)return[];const g=Array.from(u);return/sentryWrapped/.test(g[g.length-1].function||"")&&g.pop(),g.reverse(),a.test(g[g.length-1].function||"")&&(g.pop(),a.test(g[g.length-1].function||"")&&g.pop()),g.slice(0,e).map(v=>({...v,filename:v.filename||g[g.length-1].filename,function:v.function||"?"}))}(b)}}function l(u){return Array.isArray(u)?t(...u):u}const s="<anonymous>";function d(u){try{return u&&"function"==typeof u&&u.name||s}catch{return s}}},21090:(oe,x,i)=>{"use strict";i.d(x,{$G:()=>n,U0:()=>h,nK:()=>t});var e=i(96412);function n(s,d=0){return"string"!=typeof s||0===d||s.length<=d?s:`${s.slice(0,d)}...`}function t(s,d){if(!Array.isArray(s))return"";const p=[];for(let u=0;u<s.length;u++){const g=s[u];try{(0,e.y1)(g)?p.push("[VueViewModel]"):p.push(String(g))}catch{p.push("[value cannot be serialized]")}}return p.join(d)}function h(s,d=[],p=!1){return d.some(u=>function l(s,d,p=!1){return!!(0,e.HD)(s)&&((0,e.Kj)(d)?d.test(s):!!(0,e.HD)(d)&&(p?s===d:s.includes(d)))}(s,u,p))}},30509:(oe,x,i)=>{"use strict";i.d(x,{$2:()=>t,WD:()=>a,cW:()=>l});var n,h,e=i(96412);function a(h){return new l(s=>{s(h)})}function t(h){return new l((s,d)=>{d(h)})}(h=n||(n={}))[h.PENDING=0]="PENDING",h[h.RESOLVED=1]="RESOLVED",h[h.REJECTED=2]="REJECTED";class l{constructor(s){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),this._state=n.PENDING,this._handlers=[];try{s(this._resolve,this._reject)}catch(d){this._reject(d)}}then(s,d){return new l((p,u)=>{this._handlers.push([!1,g=>{if(s)try{p(s(g))}catch(v){u(v)}else p(g)},g=>{if(d)try{p(d(g))}catch(v){u(v)}else u(g)}]),this._executeHandlers()})}catch(s){return this.then(d=>d,s)}finally(s){return new l((d,p)=>{let u,g;return this.then(v=>{g=!1,u=v,s&&s()},v=>{g=!0,u=v,s&&s()}).then(()=>{g?p(u):d(u)})})}__init(){this._resolve=s=>{this._setResult(n.RESOLVED,s)}}__init2(){this._reject=s=>{this._setResult(n.REJECTED,s)}}__init3(){this._setResult=(s,d)=>{if(this._state===n.PENDING){if((0,e.J8)(d))return void d.then(this._resolve,this._reject);this._state=s,this._value=d,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===n.PENDING)return;const s=this._handlers.slice();this._handlers=[],s.forEach(d=>{d[0]||(this._state===n.RESOLVED&&d[1](this._value),this._state===n.REJECTED&&d[2](this._value),d[0]=!0)})}}}},43967:(oe,x,i)=>{"use strict";i.d(x,{ph:()=>l,yW:()=>a});var e=i(42732);const n=1e3;function a(){return Date.now()/n}const l=function t(){const{performance:p}=e.n2;if(!p||!p.now)return a;const u=Date.now()-p.now(),g=null==p.timeOrigin?u:p.timeOrigin;return()=>(g+p.now())/n}();let s;(()=>{const{performance:p}=e.n2;if(!p||!p.now)return void(s="none");const u=36e5,g=p.now(),v=Date.now(),y=p.timeOrigin?Math.abs(p.timeOrigin+g-v):u,b=y<u,S=p.timing&&p.timing.navigationStart,D="number"==typeof S?Math.abs(S+g-v):u;s=b||D<u?y<=D?"timeOrigin":"navigationStart":"dateNow"})()},42732:(oe,x,i)=>{"use strict";function e(l){return l&&l.Math==Math?l:void 0}i.d(x,{Rf:()=>a,YO:()=>t,n2:()=>n});const n="object"==typeof globalThis&&e(globalThis)||"object"==typeof window&&e(window)||"object"==typeof self&&e(self)||"object"==typeof global&&e(global)||function(){return this}()||{};function a(){return n}function t(l,h,s){const d=s||n,p=d.__SENTRY__=d.__SENTRY__||{};return p[l]||(p[l]=h())}},95512:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=i(94650),n=i(92326),a=i(94650),t=function(){function l(){this.array=[],this.arrayChange=new e.EventEmitter,this.errorChange=new e.EventEmitter,this.catcher=new e.EventEmitter,this.videoInputsChange=new e.EventEmitter,this.audioInputsChange=new e.EventEmitter,this.audioOutputsChange=new e.EventEmitter}return l.prototype.ngOnInit=function(){this.loadDevices()},l.prototype.loadDevices=function(){var h=this;return n.promiseDevices().then(function(s){return h.onDevices(s)&&s}).catch(function(s){return h.catcher.emit(s),h.errorChange.emit(h.error=s),Promise.reject(s)})},l.prototype.onDevices=function(h){return this.arrayChange.emit(this.array=h),this.audioInputsChange.observers.length&&(this.audioInputs=n.audioInputsByDevices(h),this.audioInputsChange.emit(this.audioInputs)),this.audioOutputsChange.observers.length&&(this.audioOutputs=n.audioOutputsByDevices(h),this.audioOutputsChange.emit(this.audioOutputs)),this.videoInputsChange.observers.length&&(this.videoInputs=n.videoInputsByDevices(h),this.videoInputsChange.emit(this.videoInputs)),this},l.ctorParameters=function(){return[]},l.propDecorators={array:[{type:e.Input}],arrayChange:[{type:e.Output}],error:[{type:e.Input}],errorChange:[{type:e.Output}],catcher:[{type:e.Output,args:["catch"]}],videoInputs:[{type:e.Input}],videoInputsChange:[{type:e.Output}],audioInputs:[{type:e.Input}],audioInputsChange:[{type:e.Output}],audioOutputs:[{type:e.Input}],audioOutputsChange:[{type:e.Output}]},l.\u0275fac=function(s){return new(s||l)},l.\u0275dir=a.\u0275\u0275defineDirective({type:l,selectors:[["ack-media-devices"]],inputs:{array:"array",audioInputs:"audioInputs",audioOutputs:"audioOutputs",videoInputs:"videoInputs",error:"error"},outputs:{arrayChange:"arrayChange",errorChange:"errorChange",catcher:"catch",videoInputsChange:"videoInputsChange",audioInputsChange:"audioInputsChange",audioOutputsChange:"audioOutputsChange"}}),l}();x.AckMediaDevices=t},36774:(oe,x,i)=>{i(95512);var a=i(37917);x.$O=a.WebCamComponent;var t=i(69250);x.DT=t.WebCamModule},92326:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=i(94650);function a(b){var S;S=b.split(",")[0].indexOf("base64")>=0?atob(b.split(",")[1]):window.unescape(b.split(",")[1]);for(var E=b.split(",")[0].split(":")[1].split(";")[0],D=new Uint8Array(S.length),A=0;A<S.length;A++)D[A]=S.charCodeAt(A);return new Blob([D],{type:E})}function l(b){var S=document.createElement("canvas"),E=S.getContext("2d"),D=b[0].split(";").length,A=b.length;S.width=D,S.height=A,E.clearRect(0,0,D,A);for(var P={imgData:E.getImageData(0,0,D,A),pos:0},B=null,V=0;V<b.length;++V)for(var X=b[V].split(";"),re=0;re<D;re++)B=parseInt(X[re],10),P.imgData.data[P.pos+0]=B>>16&255,P.imgData.data[P.pos+1]=B>>8&255,P.imgData.data[P.pos+2]=255&B,P.imgData.data[P.pos+3]=255,P.pos+=4;return E.putImageData(P.imgData,0,0),S}x.browser=navigator,x.getMedia=function n(){return x.browser.getUserMedia||x.browser.webkitGetUserMedia||x.browser.mozGetUserMedia||x.browser.msGetUserMedia},x.dataUriToBlob=a,x.dataUriToFormData=function t(b,S){return(S=S||{}).form=S.form||new FormData,S.form.append("file",a(b),S.fileName||"file.jpg"),S.form},x.drawImageArrayToCanvas=l;var h=function(){function b(S){var E=this;this.onImage=new e.EventEmitter,this.videoObject=S;var D=[];this.debug=function(A,P){"notify"==A&&"Capturing finished."==P&&E.onImage.emit(l(D))},this.onCapture=function(){D.length=0,S.save()},this.onSave=function(A){D.push(A)},window.webcam=this}return b.prototype.captureToCanvas=function(){var S=this;return new Promise(function(E,D){var A=S.onImage.subscribe(function(P){E(P),A.unsubscribe()});S.videoObject.capture()})},b.prototype.captureBase64=function(S){return this.captureToCanvas().then(function(E){return E.toDataURL(S||"image/jpeg")})},b.prototype.addFallbackParams=function(S){var E=document.createElement("param");E.name="FlashVars",E.value="mode="+S.fallbackMode+"&amp;quality="+S.fallbackQuality,this.videoObject.appendChild(E);var D=document.createElement("param");D.name="allowScriptAccess",D.value="always",this.videoObject.appendChild(D),this.videoObject.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";var A=document.createElement("param");A.name="movie",A.value=S.fallbackSrc,this.videoObject.appendChild(A),this.videoObject.data=S.fallbackSrc},b}();function u(b,S){return b.filter(function(E){return E.kind===S})}function v(){return x.browser.mediaDevices.enumerateDevices()}x.Fallback=h,x.videoInputsByDevices=function s(b){return u(b,"videoinput")},x.audioInputsByDevices=function d(b){return u(b,"audioinput")},x.audioOutputsByDevices=function p(b){return u(b,"audiooutput")},x.devicesByKind=u,x.promiseDeviceById=function g(b){return v().then(function(S){return S.find(function(E){return E.deviceId==b})})},x.promiseDevices=v,x.isFacingModeSupported=function y(){return!!x.browser.mediaDevices&&x.browser.mediaDevices.getSupportedConstraints().facingMode}},37917:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=i(94650),n=i(11481),a=i(92326),t=i(94650),l=i(11481),h=i(36895);function s(g,v){1&g&&(t.\u0275\u0275elementStart(0,"video",1),t.\u0275\u0275text(1,"Video stream not available"),t.\u0275\u0275elementEnd())}var p=function(){function g(v,y){this.sanitizer=v,this.element=y,this.isSupportUserMedia=!1,this.isSupportWebRTC=!1,this.isFallback=!1,this.sets={element:{width:0,height:0}},this.mime="image/jpeg",this.useParentWidthHeight=!1,this.success=new e.EventEmitter,this.refChange=new e.EventEmitter,this.errorChange=new e.EventEmitter,this.catcher=new e.EventEmitter}return g.prototype.ngOnInit=function(){this.isSupportUserMedia=null!=a.getMedia(),this.isSupportUserMedia=!1,this.isSupportWebRTC=!(!a.browser.mediaDevices||!a.browser.mediaDevices.getUserMedia)},g.prototype.ngAfterViewInit=function(){var v=this;this.applyDefaults(),setTimeout(function(){return v.afterInitCycles()},0)},g.prototype.ngOnChanges=function(v){this.initComplete&&((v.facingMode||v.videoDevice||v.videoDeviceId)&&this.redraw(),v.reflect&&this.applyReflect())},g.prototype.ngOnDestroy=function(){this.observer.disconnect(),window.removeEventListener("resize",this.onResize),this.stop()},g.prototype.play=function(){return this.redraw()},g.prototype.stop=function(){var v=this.getVideoElm();v&&v.pause&&v.pause(),this.stream&&this.stream.getTracks().forEach(function(y){return y.stop()})},g.prototype.redraw=function(){this.stop(),this.startCapturingVideo()},g.prototype.afterInitCycles=function(){var v=this,y=a.getMedia();void 0===a.browser.mediaDevices&&y&&(a.browser.mediaDevices={}),a.browser.mediaDevices&&void 0===a.browser.mediaDevices.getUserMedia&&!!y&&(a.browser.mediaDevices.getUserMedia=function(S){return new Promise(function(E,D){var A=y.call(a.browser,S,E,D);A.then&&A.then(function(P){return v.applyStream(P)})}).catch(function(E){return v.catchError(E)})}),this.initComplete=!0,setTimeout(function(){return v.refChange.emit(v)},0),this.createVideoResizer(),this.startCapturingVideo().then(function(){return setTimeout(function(){return v.resize()},10)}).catch(function(S){return v.catchError(S)})},g.prototype.applyReflect=function(){var v=this.getVideoElm();v&&(v.style.transform=this.reflect?"scaleX(-1)":"scaleX(1)")},g.prototype.applyStream=function(v){this.getVideoElm().srcObject=v,this.applyReflect()},g.prototype.createVideoResizer=function(){var v=this;this.observer=new MutationObserver(function(){return v.resize()}),this.observer.observe(this.element.nativeElement,{attributes:!0,childList:!0,characterData:!0}),this.onResize=function(){return v.resize()},window.addEventListener("resize",this.onResize)},g.prototype.applyDefaults=function(){this.options=this.options||{},this.options.fallbackSrc=this.options.fallbackSrc||"jscam_canvas_only.swf",this.options.fallbackMode=this.options.fallbackMode||"callback",this.options.fallbackQuality=this.options.fallbackQuality||200,this.isFallback=!(!this.options.fallback&&(this.isSupportUserMedia||this.isSupportWebRTC||!this.options.fallbackSrc)),!this.options.video&&!this.options.audio&&(this.options.video=!0)},g.prototype.onWebRTC=function(){var v=this;return Promise.resolve(null),this.promiseVideoOptions().then(function(b){return v.options.video=b,v.setWebcam(v.options)})},g.prototype.promiseVideoOptions=function(){var v=Promise.resolve(),y={};return this.options.video&&u(this.options.video)&&(Object.assign(y,this.options.video),y.width&&u(y.width)&&!Object.keys(y.width).length&&delete y.width,y.height&&u(y.height)&&!Object.keys(y.height).length&&delete y.height),this.facingMode&&(y.facingMode=this.facingMode),this.videoDeviceId?y.deviceId=this.videoDeviceId:this.videoDevice&&(y.deviceId=this.videoDevice.deviceId),v.then(function(){return y})},g.prototype.resizeVideo=function(v){return void 0===v&&(v=4),this.resize(v)},g.prototype.resize=function(v){var y=this;void 0===v&&(v=4);var b=this.getVideoElm();if(b){b.style.position="absolute";var S=this.useParentWidthHeight?this.element.nativeElement.parentNode:this.element.nativeElement,E=this.options.width||parseInt(S.offsetWidth,10),D=this.options.height||parseInt(S.offsetHeight,10);(!E||!D)&&(E=320,D=240),setTimeout(function(){b.width=E,b.height=D,y.sets.element.width=E,y.sets.element.height=D,b.style.position="static",(!y.options.width&&E!=parseInt(S.offsetWidth,10)||!y.options.height&&D!=parseInt(S.offsetHeight,10))&&v&&y.resize(--v)},1)}},g.prototype.getVideoDimensions=function(v){var y={width:0,height:0};return(v=v||this.getVideoElm()).videoWidth?(y.width=v.videoWidth,y.height=v.videoHeight):(y.width=this.options.width||parseInt(this.element.nativeElement.offsetWidth,10),y.height=this.options.height||parseInt(this.element.nativeElement.offsetHeight,10)),y.width||(y.width=320),y.height||(y.height=240),y},g.prototype.getVideoElm=function(){return this.element.nativeElement.getElementsByTagName(this.isFallback?"object":"video")[0]},g.prototype.setWebcam=function(v){var y=this;return this.promiseStreamByVidOptions(v).then(function(b){return y.applyStream(b),y.processSuccess(b),y.stream=b,b}).catch(function(b){return y.catchError(b)})},g.prototype.catchError=function(v){if(this.errorChange.emit(this.error=v),this.catcher.emit(v),!this.errorChange.observers.length&&!this.catcher.observers.length)return Promise.reject(v)},g.prototype.promiseStreamByVidOptions=function(v){return new Promise(function(y,b){try{a.browser.mediaDevices.getUserMedia(v).then(function(S){return y(S)}).catch(function(S){return b(S)})}catch(S){b(S)}})},g.prototype.processSuccess=function(v){this.isFallback?this.setupFallback():this.success.emit(v)},g.prototype.startCapturingVideo=function(){return!this.isFallback&&this.isSupportWebRTC?this.onWebRTC():Promise.resolve(this.processSuccess())},g.prototype.getCanvas=function(){return document.createElement("canvas")},g.prototype.getBase64=function(v){if(this.isFallback)return this.flashPlayer.captureBase64(v||this.mime);var y=this.getCanvas(),b=this.getVideoElm();this.setCanvasWidth(y,b);var S=y.getContext("2d");return this.reflect&&(S.translate(y.width,0),S.scale(-1,1)),S.drawImage(b,0,0),Promise.resolve(y.toDataURL(v))},g.prototype.setCanvasWidth=function(v,y){var b=this.getVideoDimensions(y);(v=v||this.getCanvas()).width=b.width,v.height=b.height},g.prototype.createVidElmOb=function(){var v=document.createElement("object");v.innerHTML="Video stream not available",v.setAttribute("type","application/x-shockwave-flash"),v.setAttribute("data",this.options.fallbackSrc);var y=document.createElement("param");y.setAttribute("name","FlashVars"),y.setAttribute("value","mode=callback&amp;quality=200"),v.appendChild(y),(y=document.createElement("param")).setAttribute("name","allowScriptAccess"),y.setAttribute("value","always"),v.appendChild(y),(y=document.createElement("param")).setAttribute("name","movie"),y.setAttribute("value",this.options.fallbackSrc),v.appendChild(y);var b=this.element.nativeElement.getElementsByTagName("object");return b.length&&this.element.nativeElement.removeChild(b[0]),this.element.nativeElement.appendChild(v),v},g.prototype.setupFallback=function(){this.isFallback=!0;var v=this.getVideoElm()||this.createVidElmOb();this.flashPlayer=new a.Fallback(v)},g.prototype.captureAsFormData=function(v){return this.getBase64((v=v||{}).mime).then(function(y){return a.dataUriToFormData(y,{fileName:v.fileName})})},g.prototype.dataUriToFormData=function(v,y){return a.dataUriToFormData(v,{fileName:y.fileName})},g.ctorParameters=function(){return[{type:n.DomSanitizer},{type:e.ElementRef}]},g.propDecorators={videoDevice:[{type:e.Input}],videoDeviceId:[{type:e.Input}],reflect:[{type:e.Input}],facingMode:[{type:e.Input}],mime:[{type:e.Input}],useParentWidthHeight:[{type:e.Input}],options:[{type:e.Input}],success:[{type:e.Output}],ref:[{type:e.Input}],refChange:[{type:e.Output}],error:[{type:e.Input}],errorChange:[{type:e.Output}],catcher:[{type:e.Output,args:["catch"]}]},g.\u0275fac=function(y){return new(y||g)(t.\u0275\u0275directiveInject(l.DomSanitizer),t.\u0275\u0275directiveInject(t.ElementRef))},g.\u0275cmp=t.\u0275\u0275defineComponent({type:g,selectors:[["ack-webcam"]],inputs:{mime:"mime",useParentWidthHeight:"useParentWidthHeight",options:"options",error:"error",videoDevice:"videoDevice",videoDeviceId:"videoDeviceId",reflect:"reflect",facingMode:"facingMode",ref:"ref"},outputs:{success:"success",refChange:"refChange",errorChange:"errorChange",catcher:"catch"},exportAs:["webcam"],features:[t.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[["id","video","autoplay","","playsinline","",4,"ngIf"],["id","video","autoplay","","playsinline",""]],template:function(y,b){1&y&&t.\u0275\u0275template(0,s,2,0,"video",0),2&y&&t.\u0275\u0275property("ngIf",b.isSupportUserMedia||b.isSupportWebRTC)},dependencies:[h.NgIf],encapsulation:2}),g}();function u(g){return"object"==typeof g}x.WebCamComponent=p},69250:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=i(36895),l=(i(94650),i(37917),i(95512),i(94650)),u=(i(37917),i(95512),i(36895),function(){function g(){}return g.ctorParameters=function(){return[]},g.\u0275fac=function(y){return new(y||g)},g.\u0275mod=l.\u0275\u0275defineNgModule({type:g}),g.\u0275inj=l.\u0275\u0275defineInjector({imports:[e.CommonModule]}),g}());x.WebCamModule=u},61396:(oe,x,i)=>{"use strict";i.d(x,{b:()=>d,c:()=>s});var e=i(97582),n=i(94650),a=i(41341),t=i(36895);const l=["content"],h=["*"];let s=(()=>{let p=class{constructor(g,v){this._mapsWrapper=g,this._markerManager=v,this.visible=!0,this.zIndex=1,this.markerClick=new n.EventEmitter,this.openInfoWindow=!0,this.infoWindow=new n.QueryList,this.draggable=!1,this._observableSubscriptions=[]}ngAfterViewInit(){const g=this.template.nativeElement.getElementsByTagName("agm-info-window");for(let v=g.length-1;v>=0;--v)g[v].parentNode.removeChild(g[v]);this.load().then(()=>{this.onChanges=this.onChangesOverride})}ngAfterContentInit(){this.infoWindow.changes.subscribe(()=>this.handleInfoWindowUpdate())}ngOnChanges(g){this.onChanges(g)}onChanges(g){}onChangesOverride(g){(g.latitude||g.longitude||g.zIndex)&&(this.overlayView.latitude=this.latitude,this.overlayView.longitude=this.longitude,this.overlayView.zIndex=this.zIndex,this.destroy().then(()=>this.load()))}ngOnDestroy(){this.destroy()}destroy(){this.destroyed=!0;const g=this._markerManager.deleteMarker(this.overlayView);return this.overlayView&&(this.overlayView.div&&this.overlayView.remove(),this.overlayView.setMap(null)),this._observableSubscriptions.forEach(v=>v.unsubscribe()),delete this.overlayView,g}handleInfoWindowUpdate(){if(this.infoWindow.length>1)throw new Error("Expected no more than one info window.");this.infoWindow.forEach(g=>{g.hostMarker=this.overlayView})}load(){return this._mapsWrapper.getNativeMap().then(g=>{const v=this.getOverlay(g);return this._markerManager.addMarker(v),this._addEventListeners(),this._markerManager.getNativeMarker(v)}).then(g=>{const v=g.setMap;g.map&&this.overlayView.setMap(g.map),g.setMap=y=>{v.call(g,y),this.overlayView&&this.overlayView.setMap(y)}})}getOverlay(g){this.overlayView=this.overlayView||new google.maps.OverlayView,this.overlayView.iconUrl=" ",this.overlayView.latitude=this.latitude,this.overlayView.longitude=this.longitude,this.overlayView.visible=!1,this.bounds&&(this.overlayView.bounds_=new google.maps.LatLngBounds(new google.maps.LatLng(this.latitude+this.bounds.x.latitude,this.longitude+this.bounds.x.longitude),new google.maps.LatLng(this.latitude+this.bounds.y.latitude,this.longitude+this.bounds.y.longitude)));const v=this.template.nativeElement.children[0],y=b=>{this.template.nativeElement.appendChild(b)};return this.overlayView.remove=function(){this.div&&(this.div.parentNode.removeChild(this.div),y(this.div),delete this.div)},this.overlayView.getDiv=function(){return this.div},this.overlayView.draw=function(){if(!this.div){this.div=v;const D=this.getPanes();if(!D||!D.overlayImage)return;D.overlayImage.appendChild(v)}const b=new google.maps.LatLng(this.latitude,this.longitude),S=this.getProjection();if(!S)return;const E=S.fromLatLngToDivPixel(b);if(E&&(v.style.left=E.x-10+"px",v.style.top=E.y-20+"px"),this.bounds_){const D=this.getProjection(),A=D.fromLatLngToDivPixel(this.bounds_.getSouthWest()),P=D.fromLatLngToDivPixel(this.bounds_.getNorthEast());this.div.style.left=A.x+"px",this.div.style.top=P.y+"px",this.div.children[0].style.width=P.x-A.x+"px",this.div.children[0].style.height=A.y-P.y+"px"}},v.addEventListener("click",b=>{this.handleTap(),b.stopPropagation()}),this.handleInfoWindowUpdate(),this.overlayView}handleTap(){this.openInfoWindow&&this.infoWindow.forEach(g=>{g.open()}),this.markerClick.emit(null)}_addEventListeners(){const v=this._markerManager.createEventObservable("click",this.overlayView).subscribe(()=>this.handleTap());this._observableSubscriptions.push(v)}};return p.\u0275fac=function(g){return new(g||p)(n.\u0275\u0275directiveInject(a.Hh),n.\u0275\u0275directiveInject(a.xU))},p.\u0275cmp=n.\u0275\u0275defineComponent({type:p,selectors:[["agm-overlay"]],contentQueries:function(g,v,y){if(1&g&&n.\u0275\u0275contentQuery(y,a.d,4),2&g){let b;n.\u0275\u0275queryRefresh(b=n.\u0275\u0275loadQuery())&&(v.infoWindow=b)}},viewQuery:function(g,v){if(1&g&&n.\u0275\u0275viewQuery(l,5,n.ElementRef),2&g){let y;n.\u0275\u0275queryRefresh(y=n.\u0275\u0275loadQuery())&&(v.template=y.first)}},inputs:{visible:"visible",zIndex:"zIndex",openInfoWindow:"openInfoWindow",draggable:["markerDraggable","draggable"],latitude:"latitude",longitude:"longitude",bounds:"bounds"},outputs:{markerClick:"markerClick"},features:[n.\u0275\u0275NgOnChangesFeature],ngContentSelectors:h,decls:4,vars:0,consts:[["content",""],[2,"position","absolute"]],template:function(g,v){1&g&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",null,0)(2,"div",1),n.\u0275\u0275projection(3),n.\u0275\u0275elementEnd()())},encapsulation:2}),(0,e.gn)([(0,n.Input)()],p.prototype,"latitude",void 0),(0,e.gn)([(0,n.Input)()],p.prototype,"longitude",void 0),(0,e.gn)([(0,n.Input)()],p.prototype,"visible",void 0),(0,e.gn)([(0,n.Input)()],p.prototype,"zIndex",void 0),(0,e.gn)([(0,n.Input)()],p.prototype,"bounds",void 0),(0,e.gn)([(0,n.Output)()],p.prototype,"markerClick",void 0),(0,e.gn)([(0,n.Input)()],p.prototype,"openInfoWindow",void 0),(0,e.gn)([(0,n.ContentChildren)(a.d)],p.prototype,"infoWindow",void 0),(0,e.gn)([(0,n.Input)("markerDraggable")],p.prototype,"draggable",void 0),(0,e.gn)([(0,n.ViewChild)("content",{read:n.ElementRef})],p.prototype,"template",void 0),p})(),d=(()=>{let p=class{};return p.\u0275fac=function(g){return new(g||p)},p.\u0275mod=n.\u0275\u0275defineNgModule({type:p}),p.\u0275inj=n.\u0275\u0275defineInjector({imports:[t.CommonModule]}),p})()},34999:oe=>{"use strict";var x=function(D){return function i(E){return!!E&&"object"==typeof E}(D)&&!function e(E){var D=Object.prototype.toString.call(E);return"[object RegExp]"===D||"[object Date]"===D||function t(E){return E.$$typeof===a}(E)}(D)},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function h(E,D){return!1!==D.clone&&D.isMergeableObject(E)?b(function l(E){return Array.isArray(E)?[]:{}}(E),E,D):E}function s(E,D,A){return E.concat(D).map(function(P){return h(P,A)})}function u(E){return Object.keys(E).concat(function p(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(D){return Object.propertyIsEnumerable.call(E,D)}):[]}(E))}function g(E,D){try{return D in E}catch{return!1}}function b(E,D,A){(A=A||{}).arrayMerge=A.arrayMerge||s,A.isMergeableObject=A.isMergeableObject||x,A.cloneUnlessOtherwiseSpecified=h;var P=Array.isArray(D);return P===Array.isArray(E)?P?A.arrayMerge(E,D,A):function y(E,D,A){var P={};return A.isMergeableObject(E)&&u(E).forEach(function(B){P[B]=h(E[B],A)}),u(D).forEach(function(B){(function v(E,D){return g(E,D)&&!(Object.hasOwnProperty.call(E,D)&&Object.propertyIsEnumerable.call(E,D))})(E,B)||(P[B]=g(E,B)&&A.isMergeableObject(D[B])?function d(E,D){if(!D.customMerge)return b;var A=D.customMerge(E);return"function"==typeof A?A:b}(B,A)(E[B],D[B],A):h(D[B],A))}),P}(E,D,A):h(D,A)}b.all=function(D,A){if(!Array.isArray(D))throw new Error("first argument should be an array");return D.reduce(function(P,B){return b(P,B,A)},{})},oe.exports=b},18089:(oe,x)=>{"use strict";var e={update:function(){if(typeof window<"u"&&"function"==typeof window.addEventListener){var a=!1,t=Object.defineProperty({},"passive",{get:function(){a=!0}}),l=function(){};window.addEventListener("testPassiveEventSupport",l,t),window.removeEventListener("testPassiveEventSupport",l,t),e.hasSupport=a}}};e.update(),x.Z=e},29104:function(oe,x){var i,e,n;!function(a){"use strict";var t=a.setTimeout,l=a.clearTimeout,h=a.XMLHttpRequest,s=a.XDomainRequest,d=a.ActiveXObject,p=a.EventSource,u=a.document,g=a.Promise,v=a.fetch,y=a.Response,b=a.TextDecoder,S=a.TextEncoder,E=a.AbortController;if(typeof window<"u"&&typeof u<"u"&&!("readyState"in u)&&null==u.body&&(u.readyState="loading",window.addEventListener("load",function(Ie){u.readyState="complete"},!1)),null==h&&null!=d&&(h=function(){return new d("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(Ie){function dt(){}return dt.prototype=Ie,new dt}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==E){var D=v;v=function(Ie,dt){var Mt=dt.signal;return D(Ie,{headers:dt.headers,credentials:dt.credentials,cache:dt.cache}).then(function(Xt){var en=Xt.body.getReader();return Mt._reader=en,Mt._aborted&&Mt._reader.cancel(),{status:Xt.status,statusText:Xt.statusText,headers:Xt.headers,body:{getReader:function(){return en}}}})},E=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function A(){this.bitsNeeded=0,this.codePoint=0}A.prototype.decode=function(Ie){function dt(At,$e,Xe){if(1===Xe)return At>=128>>$e&&At<<$e<=2047;if(2===Xe)return At>=2048>>$e&&At<<$e<=55295||At>=57344>>$e&&At<<$e<=65535;if(3===Xe)return At>=65536>>$e&&At<<$e<=1114111;throw new Error}function Mt(At,$e){if(6===At)return $e>>6>15?3:$e>31?2:1;if(12===At)return $e>15?3:2;if(18===At)return 3;throw new Error}for(var en="",vt=this.bitsNeeded,xt=this.codePoint,zt=0;zt<Ie.length;zt+=1){var bt=Ie[zt];0!==vt&&(bt<128||bt>191||!dt(xt<<6|63&bt,vt-6,Mt(vt,xt)))&&(vt=0,xt=65533,en+=String.fromCharCode(xt)),0===vt?(bt>=0&&bt<=127?(vt=0,xt=bt):bt>=192&&bt<=223?(vt=6,xt=31&bt):bt>=224&&bt<=239?(vt=12,xt=15&bt):bt>=240&&bt<=247?(vt=18,xt=7&bt):(vt=0,xt=65533),0!==vt&&!dt(xt,vt,Mt(vt,xt))&&(vt=0,xt=65533)):(vt-=6,xt=xt<<6|63&bt),0===vt&&(xt<=65535?en+=String.fromCharCode(xt):(en+=String.fromCharCode(55296+(xt-65535-1>>10)),en+=String.fromCharCode(56320+(xt-65535-1&1023))))}return this.bitsNeeded=vt,this.codePoint=xt,en},(null==b||null==S||!function(){try{return"test"===(new b).decode((new S).encode("test"),{stream:!0})}catch(Ie){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+Ie)}return!1}())&&(b=A);var B=function(){};function V(Ie){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=B,this.onload=B,this.onerror=B,this.onreadystatechange=B,this._contentType="",this._xhr=Ie,this._sendTimeout=0,this._abort=B}function X(Ie){return Ie.replace(/[A-Z]/g,function(dt){return String.fromCharCode(dt.charCodeAt(0)+32)})}function re(Ie){for(var dt=Object.create(null),Mt=Ie.split("\r\n"),Xt=0;Xt<Mt.length;Xt+=1){var vt=Mt[Xt].split(": "),xt=vt.shift(),zt=vt.join(": ");dt[X(xt)]=zt}this._map=dt}function Q(){}function ae(Ie){this._headers=Ie}function K(){}function k(){this._listeners=Object.create(null)}function $(Ie){t(function(){throw Ie},0)}function j(Ie){this.type=Ie,this.target=void 0}function R(Ie,dt){j.call(this,Ie),this.data=dt.data,this.lastEventId=dt.lastEventId}function U(Ie,dt){j.call(this,Ie),this.status=dt.status,this.statusText=dt.statusText,this.headers=dt.headers}function le(Ie,dt){j.call(this,Ie),this.error=dt.error}V.prototype.open=function(Ie,dt){this._abort(!0);var Mt=this,Xt=this._xhr,en=1,vt=0;this._abort=function(Xe){0!==Mt._sendTimeout&&(l(Mt._sendTimeout),Mt._sendTimeout=0),(1===en||2===en||3===en)&&(en=4,Xt.onload=B,Xt.onerror=B,Xt.onabort=B,Xt.onprogress=B,Xt.onreadystatechange=B,Xt.abort(),0!==vt&&(l(vt),vt=0),Xe||(Mt.readyState=4,Mt.onabort(null),Mt.onreadystatechange())),en=0};var xt=function(){if(1===en){var Xe=0,Pe="",Ve=void 0;if("contentType"in Xt)Xe=200,Pe="OK",Ve=Xt.contentType;else try{Xe=Xt.status,Pe=Xt.statusText,Ve=Xt.getResponseHeader("Content-Type")}catch{Xe=0,Pe="",Ve=void 0}0!==Xe&&(en=2,Mt.readyState=2,Mt.status=Xe,Mt.statusText=Pe,Mt._contentType=Ve,Mt.onreadystatechange())}},zt=function(){if(xt(),2===en||3===en){en=3;var Xe="";try{Xe=Xt.responseText}catch{}Mt.readyState=3,Mt.responseText=Xe,Mt.onprogress()}},bt=function(Xe,Pe){if((null==Pe||null==Pe.preventDefault)&&(Pe={preventDefault:B}),zt(),1===en||2===en||3===en){if(en=4,0!==vt&&(l(vt),vt=0),Mt.readyState=4,"load"===Xe)Mt.onload(Pe);else if("error"===Xe)Mt.onerror(Pe);else{if("abort"!==Xe)throw new TypeError;Mt.onabort(Pe)}Mt.onreadystatechange()}},$e=function(){vt=t(function(){$e()},500),3===Xt.readyState&&zt()};"onload"in Xt&&(Xt.onload=function(Xe){bt("load",Xe)}),"onerror"in Xt&&(Xt.onerror=function(Xe){bt("error",Xe)}),"onabort"in Xt&&(Xt.onabort=function(Xe){bt("abort",Xe)}),"onprogress"in Xt&&(Xt.onprogress=zt),"onreadystatechange"in Xt&&(Xt.onreadystatechange=function(Xe){!function(Xe){null!=Xt&&(4===Xt.readyState?(!("onload"in Xt)||!("onerror"in Xt)||!("onabort"in Xt))&&bt(""===Xt.responseText?"error":"load",Xe):3===Xt.readyState?"onprogress"in Xt||zt():2===Xt.readyState&&xt())}(Xe)}),("contentType"in Xt||!("ontimeout"in h.prototype))&&(dt+=(-1===dt.indexOf("?")?"?":"&")+"padding=true"),Xt.open(Ie,dt,!0),"readyState"in Xt&&(vt=t(function(){$e()},0))},V.prototype.abort=function(){this._abort(!1)},V.prototype.getResponseHeader=function(Ie){return this._contentType},V.prototype.setRequestHeader=function(Ie,dt){var Mt=this._xhr;"setRequestHeader"in Mt&&Mt.setRequestHeader(Ie,dt)},V.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},V.prototype.send=function(){if("ontimeout"in h.prototype&&("sendAsBinary"in h.prototype||"mozAnon"in h.prototype)||null==u||null==u.readyState||"complete"===u.readyState){var dt=this._xhr;"withCredentials"in dt&&(dt.withCredentials=this.withCredentials);try{dt.send(void 0)}catch(Mt){throw Mt}}else{var Ie=this;Ie._sendTimeout=t(function(){Ie._sendTimeout=0,Ie.send()},4)}},re.prototype.get=function(Ie){return this._map[X(Ie)]},null!=h&&null==h.HEADERS_RECEIVED&&(h.HEADERS_RECEIVED=2),Q.prototype.open=function(Ie,dt,Mt,Xt,en,vt,xt){Ie.open("GET",en);var zt=0;for(var bt in Ie.onprogress=function(){var $e=Ie.responseText.slice(zt);zt+=$e.length,Mt($e)},Ie.onerror=function(At){At.preventDefault(),Xt(new Error("NetworkError"))},Ie.onload=function(){Xt(null)},Ie.onabort=function(){Xt(null)},Ie.onreadystatechange=function(){if(Ie.readyState===h.HEADERS_RECEIVED){var At=Ie.status,$e=Ie.statusText,Xe=Ie.getResponseHeader("Content-Type"),Pe=Ie.getAllResponseHeaders();dt(At,$e,Xe,new re(Pe))}},Ie.withCredentials=vt,xt)Object.prototype.hasOwnProperty.call(xt,bt)&&Ie.setRequestHeader(bt,xt[bt]);return Ie.send(),Ie},ae.prototype.get=function(Ie){return this._headers.get(Ie)},K.prototype.open=function(Ie,dt,Mt,Xt,en,vt,xt){var zt=null,bt=new E,At=bt.signal,$e=new b;return v(en,{headers:xt,credentials:vt?"include":"same-origin",signal:At,cache:"no-store"}).then(function(Xe){return zt=Xe.body.getReader(),dt(Xe.status,Xe.statusText,Xe.headers.get("Content-Type"),new ae(Xe.headers)),new g(function(Pe,Ve){var mt=function(){zt.read().then(function(It){if(It.done)Pe(void 0);else{var xn=$e.decode(It.value,{stream:!0});Mt(xn),mt()}}).catch(function(It){Ve(It)})};mt()})}).catch(function(Xe){if("AbortError"!==Xe.name)return Xe}).then(function(Xe){Xt(Xe)}),{abort:function(){zt?.cancel(),bt.abort()}}},k.prototype.dispatchEvent=function(Ie){Ie.target=this;var dt=this._listeners[Ie.type];if(null!=dt)for(var Mt=dt.length,Xt=0;Xt<Mt;Xt+=1){var en=dt[Xt];try{"function"==typeof en.handleEvent?en.handleEvent(Ie):en.call(this,Ie)}catch(vt){$(vt)}}},k.prototype.addEventListener=function(Ie,dt){Ie=String(Ie);var Mt=this._listeners,Xt=Mt[Ie];null==Xt&&(Mt[Ie]=Xt=[]);for(var en=!1,vt=0;vt<Xt.length;vt+=1)Xt[vt]===dt&&(en=!0);en||Xt.push(dt)},k.prototype.removeEventListener=function(Ie,dt){Ie=String(Ie);var Mt=this._listeners,Xt=Mt[Ie];if(null!=Xt){for(var en=[],vt=0;vt<Xt.length;vt+=1)Xt[vt]!==dt&&en.push(Xt[vt]);0===en.length?delete Mt[Ie]:Mt[Ie]=en}},R.prototype=Object.create(j.prototype),U.prototype=Object.create(j.prototype),le.prototype=Object.create(j.prototype);var T=-1,H=0,N=1,pe=2,de=-1,me=0,q=1,se=2,ve=3,Ee=/^text\/event\-stream(;.*)?$/i,Wt=function(Ie,dt){var Mt=null==Ie?dt:parseInt(Ie,10);return Mt!=Mt&&(Mt=dt),Ut(Mt)},Ut=function(Ie){return Math.min(Math.max(Ie,1e3),18e6)},nt=function(Ie,dt,Mt){try{"function"==typeof dt&&dt.call(Ie,Mt)}catch(Xt){$(Xt)}};function Zt(Ie,dt){k.call(this),dt=dt||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function ie(Ie,dt,Mt){dt=String(dt);var Xt=Boolean(Mt.withCredentials),en=Mt.lastEventIdQueryParameterName||"lastEventId",vt=Ut(1e3),xt=Wt(Mt.heartbeatTimeout,45e3),zt="",bt=vt,At=!1,$e=0,Xe=Mt.headers||{},Pe=Mt.Transport,Ve=yt&&null==Pe?void 0:new V(null!=Pe?new Pe:function Fe(){return null!=h&&"withCredentials"in h.prototype||null==s?new h:new s}()),mt=null!=Pe&&"string"!=typeof Pe?new Pe:null==Ve?new K:new Q,It=void 0,xn=0,_n=T,Jt="",ke="",Ae="",ze="",pt=me,tn=0,ot=0,Et=function(qe,ct,Yt,it){if(_n===H)if(200===qe&&null!=Yt&&Ee.test(Yt)){_n=N,At=Date.now(),bt=vt,Ie.readyState=N;var Be=new U("open",{status:qe,statusText:ct,headers:it});Ie.dispatchEvent(Be),nt(Ie,Ie.onopen,Be)}else{var gt="";200!==qe?(ct&&(ct=ct.replace(/\s+/g," ")),gt="EventSource's response has a status "+qe+" "+ct+" that is not 200. Aborting the connection."):gt="EventSource's response has a Content-Type specifying an unsupported type: "+(null==Yt?"-":Yt.replace(/\s+/g," "))+". Aborting the connection.",ge(),Be=new U("error",{status:qe,statusText:ct,headers:it}),Ie.dispatchEvent(Be),nt(Ie,Ie.onerror,Be),console.error(gt)}},z=function(qe){if(_n===N){for(var ct=-1,Yt=0;Yt<qe.length;Yt+=1)((it=qe.charCodeAt(Yt))==="\n".charCodeAt(0)||it==="\r".charCodeAt(0))&&(ct=Yt);var Be=(-1!==ct?ze:"")+qe.slice(0,ct+1);ze=(-1===ct?ze:"")+qe.slice(ct+1),""!==qe&&(At=Date.now(),$e+=qe.length);for(var gt=0;gt<Be.length;gt+=1){var it=Be.charCodeAt(gt);if(pt===de&&it==="\n".charCodeAt(0))pt=me;else if(pt===de&&(pt=me),it==="\r".charCodeAt(0)||it==="\n".charCodeAt(0)){if(pt!==me){pt===q&&(ot=gt+1);var ue=Be.slice(tn,ot-1),Ge=Be.slice(ot+(ot<gt&&Be.charCodeAt(ot)===" ".charCodeAt(0)?1:0),gt);"data"===ue?(Jt+="\n",Jt+=Ge):"id"===ue?ke=Ge:"event"===ue?Ae=Ge:"retry"===ue?(vt=Wt(Ge,vt),bt=vt):"heartbeatTimeout"===ue&&(xt=Wt(Ge,xt),0!==xn&&(l(xn),xn=t(function(){Qe()},xt)))}if(pt===me){if(""!==Jt){zt=ke,""===Ae&&(Ae="message");var ee=new R(Ae,{data:Jt.slice(1),lastEventId:ke});if(Ie.dispatchEvent(ee),"open"===Ae?nt(Ie,Ie.onopen,ee):"message"===Ae?nt(Ie,Ie.onmessage,ee):"error"===Ae&&nt(Ie,Ie.onerror,ee),_n===pe)return}Jt="",Ae=""}pt=it==="\r".charCodeAt(0)?de:me}else pt===me&&(tn=gt,pt=q),pt===q?it===":".charCodeAt(0)&&(ot=gt+1,pt=se):pt===se&&(pt=ve)}}},Z=function(qe){if(_n===N||_n===H){_n=T,0!==xn&&(l(xn),xn=0),xn=t(function(){Qe()},bt),bt=Ut(Math.min(16*vt,2*bt)),Ie.readyState=H;var ct=new le("error",{error:qe});Ie.dispatchEvent(ct),nt(Ie,Ie.onerror,ct),null!=qe&&console.error(qe)}},ge=function(){_n=pe,null!=It&&(It.abort(),It=void 0),0!==xn&&(l(xn),xn=0),Ie.readyState=pe},Qe=function(){if(xn=0,_n===T){At=!1,$e=0,xn=t(function(){Qe()},xt),_n=H,Jt="",Ae="",ke=zt,ze="",tn=0,ot=0,pt=me;var ct=dt;if("data:"!==dt.slice(0,5)&&"blob:"!==dt.slice(0,5)&&""!==zt){var Yt=dt.indexOf("?");ct=-1===Yt?dt:dt.slice(0,Yt+1)+dt.slice(Yt+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Ge,ee){return ee===en?"":Ge}),ct+=(-1===dt.indexOf("?")?"?":"&")+en+"="+encodeURIComponent(zt)}var it=Ie.withCredentials,Be={Accept:"text/event-stream"},gt=Ie.headers;if(null!=gt)for(var ue in gt)Object.prototype.hasOwnProperty.call(gt,ue)&&(Be[ue]=gt[ue]);try{It=mt.open(Ve,Et,z,Z,ct,it,Be)}catch(Ge){throw ge(),Ge}}else if(At||null==It){var qe=Math.max((At||Date.now())+xt-Date.now(),1);At=!1,xn=t(function(){Qe()},qe)}else Z(new Error("No activity within "+xt+" milliseconds. "+(_n===H?"No response received.":$e+" chars received.")+" Reconnecting.")),null!=It&&(It.abort(),It=void 0)};Ie.url=dt,Ie.readyState=H,Ie.withCredentials=Xt,Ie.headers=Xe,Ie._close=ge,Qe()}(this,Ie,dt)}var yt=null!=v&&null!=y&&"body"in y.prototype;(Zt.prototype=Object.create(k.prototype)).CONNECTING=H,Zt.prototype.OPEN=N,Zt.prototype.CLOSED=pe,Zt.prototype.close=function(){this._close()},Zt.CONNECTING=H,Zt.OPEN=N,Zt.CLOSED=pe,Zt.prototype.withCredentials=void 0;var Ce=p;null!=h&&(null==p||!("withCredentials"in p.prototype))&&(Ce=Zt),function(Ie){if("object"==typeof oe.exports){var dt=Ie(x);void 0!==dt&&(oe.exports=dt)}else e=[x],void 0!==(n="function"==typeof(i=Ie)?i.apply(x,e):i)&&(oe.exports=n)}(function(Ie){Ie.EventSourcePolyfill=Zt,Ie.NativeEventSource=p,Ie.EventSource=Ce})}(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:this:globalThis)},94327:function(oe,x){var i,n;void 0!==(n="function"==typeof(i=function(){"use strict";function t(u,g,v){var y=new XMLHttpRequest;y.open("GET",u),y.responseType="blob",y.onload=function(){p(y.response,g,v)},y.onerror=function(){console.error("could not download file")},y.send()}function l(u){var g=new XMLHttpRequest;g.open("HEAD",u,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function h(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(g)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,d=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!d?function(u,g,v){var y=s.URL||s.webkitURL,b=document.createElement("a");b.download=g=g||u.name||"download",b.rel="noopener","string"==typeof u?(b.href=u,b.origin===location.origin?h(b):l(b.href)?t(u,g,v):h(b,b.target="_blank")):(b.href=y.createObjectURL(u),setTimeout(function(){y.revokeObjectURL(b.href)},4e4),setTimeout(function(){h(b)},0))}:"msSaveOrOpenBlob"in navigator?function(u,g,v){if(g=g||u.name||"download","string"!=typeof u)navigator.msSaveOrOpenBlob(function a(u,g){return typeof g>"u"?g={autoBom:!1}:"object"!=typeof g&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\ufeff",u],{type:u.type}):u}(u,v),g);else if(l(u))t(u,g,v);else{var y=document.createElement("a");y.href=u,y.target="_blank",setTimeout(function(){h(y)})}}:function(u,g,v,y){if((y=y||open("","_blank"))&&(y.document.title=y.document.body.innerText="downloading..."),"string"==typeof u)return t(u,g,v);var b="application/octet-stream"===u.type,S=/constructor/i.test(s.HTMLElement)||s.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||b&&S||d)&&typeof FileReader<"u"){var D=new FileReader;D.onloadend=function(){var B=D.result;B=E?B:B.replace(/^data:[^;]*;/,"data:attachment/file;"),y?y.location.href=B:location=B,y=null},D.readAsDataURL(u)}else{var A=s.URL||s.webkitURL,P=A.createObjectURL(u);y?y.location=P:location.href=P,y=null,setTimeout(function(){A.revokeObjectURL(P)},4e4)}});s.saveAs=p.saveAs=p,oe.exports=p})?i.apply(x,[]):i)&&(oe.exports=n)},27243:(oe,x,i)=>{"use strict";var n=A(i(49721)),t=A(i(44070)),h=A(i(76162)),d=A(i(13800)),u=A(i(41731)),v=A(i(40070)),b=A(i(3930)),S=i(87497),D=A(i(97850));function A(K){return K&&K.__esModule?K:{default:K}}var P=function(){},B=function(k,$,j){var R=new P;if(typeof k>"u")throw Error("No element to render on was provided.");return R._renderProperties=(0,u.default)(k),R._encodings=[],R._options=D.default,R._errorHandler=new b.default(R),typeof $<"u"&&((j=j||{}).format||(j.format=Q()),R.options(j)[j.format]($,j).render()),R};for(var V in B.getModule=function(K){return n.default[K]},n.default)n.default.hasOwnProperty(V)&&X(n.default,V);function X(K,k){P.prototype[k]=P.prototype[k.toUpperCase()]=P.prototype[k.toLowerCase()]=function($,j){var R=this;return R._errorHandler.wrapBarcodeCall(function(){j.text=typeof j.text>"u"?void 0:""+j.text;var U=(0,t.default)(R._options,j);U=(0,v.default)(U);var T=re($,K[k],U);return R._encodings.push(T),R})}}function re(K,k,$){var j=new k(K=""+K,$);if(!j.valid())throw new S.InvalidInputException(j.constructor.name,K);var R=j.encode();R=(0,h.default)(R);for(var U=0;U<R.length;U++)R[U].options=(0,t.default)($,R[U].options);return R}function Q(){return n.default.CODE128?"CODE128":Object.keys(n.default)[0]}function ae(K,k,$){k=(0,h.default)(k);for(var j=0;j<k.length;j++)k[j].options=(0,t.default)($,k[j].options),(0,d.default)(k[j].options);(0,d.default)($),new(0,K.renderer)(K.element,k,$).render(),K.afterRender&&K.afterRender()}P.prototype.options=function(K){return this._options=(0,t.default)(this._options,K),this},P.prototype.blank=function(K){var k=new Array(K+1).join("0");return this._encodings.push({data:k}),this},P.prototype.init=function(){var K;if(this._renderProperties)for(var k in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){var $=(0,t.default)(this._options,(K=this._renderProperties[k]).options);"auto"==$.format&&($.format=Q()),this._errorHandler.wrapBarcodeCall(function(){var U=re($.value,n.default[$.format.toUpperCase()],$);ae(K,U,$)})}},P.prototype.render=function(){if(!this._renderProperties)throw new S.NoElementException;if(Array.isArray(this._renderProperties))for(var K=0;K<this._renderProperties.length;K++)ae(this._renderProperties[K],this._encodings,this._options);else ae(this._renderProperties,this._encodings,this._options);return this},P.prototype._defaults=D.default,typeof window<"u"&&(window.JsBarcode=B),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(K,k){var $=[];return jQuery(this).each(function(){$.push(this)}),B($,K,k)}),oe.exports=B},74648:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.default=function n(a,t){(function i(n,a){if(!(n instanceof a))throw new TypeError("Cannot call a class as a function")})(this,n),this.data=a,this.text=t.text||a,this.options=t}},16106:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function u(g,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,v,y){return v&&u(g.prototype,v),y&&u(g,y),g}}(),a=function l(u){return u&&u.__esModule?u:{default:u}}(i(74648)),t=i(89068),p=function(u){function g(v,y){!function h(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g);var b=function s(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?u:g}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,v.substring(1),y));return b.bytes=v.split("").map(function(S){return S.charCodeAt(0)}),b}return function d(u,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}(g,u),e(g,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var y=this.bytes,b=y.shift()-105,S=t.SET_BY_CODE[b];if(void 0===S)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&y.unshift(t.FNC1);var E=g.next(y,1,S);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:g.getBar(b)+E.result+g.getBar((E.checksum+b)%t.MODULO)+g.getBar(t.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var y=this.options.ean128||!1;return"string"==typeof y&&(y="true"===y.toLowerCase()),y}}],[{key:"getBar",value:function(y){return t.BARS[y]?t.BARS[y].toString():""}},{key:"correctIndex",value:function(y,b){if(b===t.SET_A){var S=y.shift();return S<32?S+64:S-32}return b===t.SET_B?y.shift()-32:10*(y.shift()-48)+y.shift()-48}},{key:"next",value:function(y,b,S){if(!y.length)return{result:"",checksum:0};var E=void 0,D=void 0;if(y[0]>=200){D=y.shift()-105;var A=t.SWAP[D];void 0!==A?E=g.next(y,b+1,A):((S===t.SET_A||S===t.SET_B)&&D===t.SHIFT&&(y[0]=S===t.SET_A?y[0]>95?y[0]-96:y[0]:y[0]<32?y[0]+96:y[0]),E=g.next(y,b+1,S))}else D=g.correctIndex(y,S),E=g.next(y,b+1,S);return{result:g.getBar(D)+E.result,checksum:D*b+E.checksum}}}]),g}(a.default);x.default=p},8964:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function u(g,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,v,y){return v&&u(g.prototype,v),y&&u(g,y),g}}(),a=function l(u){return u&&u.__esModule?u:{default:u}}(i(16106)),t=i(89068),p=function(u){function g(v,y){return function h(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),function s(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?u:g}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t.A_START_CHAR+v,y))}return function d(u,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}(g,u),e(g,[{key:"valid",value:function(){return new RegExp("^"+t.A_CHARS+"+$").test(this.data)}}]),g}(a.default);x.default=p},73254:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function u(g,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,v,y){return v&&u(g.prototype,v),y&&u(g,y),g}}(),a=function l(u){return u&&u.__esModule?u:{default:u}}(i(16106)),t=i(89068),p=function(u){function g(v,y){return function h(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),function s(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?u:g}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t.B_START_CHAR+v,y))}return function d(u,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}(g,u),e(g,[{key:"valid",value:function(){return new RegExp("^"+t.B_CHARS+"+$").test(this.data)}}]),g}(a.default);x.default=p},35701:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function u(g,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,v,y){return v&&u(g.prototype,v),y&&u(g,y),g}}(),a=function l(u){return u&&u.__esModule?u:{default:u}}(i(16106)),t=i(89068),p=function(u){function g(v,y){return function h(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),function s(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?u:g}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,t.C_START_CHAR+v,y))}return function d(u,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}(g,u),e(g,[{key:"valid",value:function(){return new RegExp("^"+t.C_CHARS+"+$").test(this.data)}}]),g}(a.default);x.default=p},25626:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var n=l(i(16106)),t=l(i(84779));function l(u){return u&&u.__esModule?u:{default:u}}function s(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?u:g}var p=function(u){function g(v,y){if(function h(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),/^[\x00-\x7F\xC8-\xD3]+$/.test(v))var b=s(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,(0,t.default)(v),y));else b=s(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,v,y));return s(b)}return function d(u,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}(g,u),g}(n.default);x.default=p},84779:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=i(89068),n=function(d){return d.match(new RegExp("^"+e.A_CHARS+"*"))[0].length},a=function(d){return d.match(new RegExp("^"+e.B_CHARS+"*"))[0].length},t=function(d){return d.match(new RegExp("^"+e.C_CHARS+"*"))[0]};function l(s,d){var p=d?e.A_CHARS:e.B_CHARS,u=s.match(new RegExp("^("+p+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(u)return u[1]+String.fromCharCode(204)+h(s.substring(u[1].length));var g=s.match(new RegExp("^"+p+"+"))[0];return g.length===s.length?s:g+String.fromCharCode(d?205:206)+l(s.substring(g.length),!d)}function h(s){var d=t(s),p=d.length;if(p===s.length)return s;s=s.substring(p);var u=n(s)>=a(s);return d+String.fromCharCode(u?206:205)+l(s,u)}x.default=function(s){var d=void 0;if(t(s).length>=2)d=e.C_START_CHAR+h(s);else{var u=n(s)>a(s);d=(u?e.A_START_CHAR:e.B_START_CHAR)+l(s,u)}return d.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(g,v){return String.fromCharCode(203)+v})}},89068:(oe,x)=>{"use strict";var i;function e(V,X,re){return X in V?Object.defineProperty(V,X,{value:re,enumerable:!0,configurable:!0,writable:!0}):V[X]=re,V}Object.defineProperty(x,"__esModule",{value:!0});var n=x.SET_A=0,a=x.SET_B=1,t=x.SET_C=2,h=(x.SHIFT=98,x.START_A=103),s=x.START_B=104,d=x.START_C=105;x.MODULO=103,x.STOP=106,x.FNC1=207,x.SET_BY_CODE=(e(i={},h,n),e(i,s,a),e(i,d,t),i),x.SWAP={101:n,100:a,99:t},x.A_START_CHAR=String.fromCharCode(208),x.B_START_CHAR=String.fromCharCode(209),x.C_START_CHAR=String.fromCharCode(210),x.A_CHARS="[\0-_\xc8-\xcf]",x.B_CHARS="[ -\x7f\xc8-\xcf]",x.C_CHARS="(\xcf*[0-9]{2}\xcf*)",x.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},56038:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CODE128C=x.CODE128B=x.CODE128A=x.CODE128=void 0;var n=p(i(25626)),t=p(i(8964)),h=p(i(73254)),d=p(i(35701));function p(u){return u&&u.__esModule?u:{default:u}}x.CODE128=n.default,x.CODE128A=t.default,x.CODE128B=h.default,x.CODE128C=d.default},80528:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CODE39=void 0;var e=function(){function E(D,A){for(var P=0;P<A.length;P++){var B=A[P];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,B.key,B)}}return function(D,A,P){return A&&E(D.prototype,A),P&&E(D,P),D}}(),d=function(E){function D(A,P){return function l(E,D){if(!(E instanceof D))throw new TypeError("Cannot call a class as a function")}(this,D),A=A.toUpperCase(),P.mod43&&(A+=function y(E){return p[E]}(function S(E){for(var D=0,A=0;A<E.length;A++)D+=b(E[A]);return D%=43}(A))),function h(E,D){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!D||"object"!=typeof D&&"function"!=typeof D?E:D}(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,A,P))}return function s(E,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function, not "+typeof D);E.prototype=Object.create(D&&D.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(E,D):E.__proto__=D)}(D,E),e(D,[{key:"encode",value:function(){for(var P=g("*"),B=0;B<this.data.length;B++)P+=g(this.data[B])+"0";return{data:P+=g("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),D}(function t(E){return E&&E.__esModule?E:{default:E}}(i(74648)).default),p=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],u=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function g(E){return function v(E){return u[E].toString(2)}(b(E))}function b(E){return p.indexOf(E)}x.CODE39=d},67417:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function v(y,b){for(var S=0;S<b.length;S++){var E=b[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}return function(y,b,S){return b&&v(y.prototype,b),S&&v(y,S),y}}(),n=i(53819),t=s(i(29259));function s(v){return v&&v.__esModule?v:{default:v}}var g=function(v){function y(b,S){!function d(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}(this,y);var E=function p(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!=typeof y&&"function"!=typeof y?v:y}(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b,S));return E.fontSize=!S.flat&&S.fontSize>10*S.width?10*S.width:S.fontSize,E.guardHeight=S.height+E.fontSize/2+S.textMargin,E}return function u(v,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}(y,v),e(y,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(S,E){return this.text.substr(S,E)}},{key:"leftEncode",value:function(S,E){return(0,t.default)(S,E)}},{key:"rightText",value:function(S,E){return this.text.substr(S,E)}},{key:"rightEncode",value:function(S,E){return(0,t.default)(S,E)}},{key:"encodeGuarded",value:function(){var S={fontSize:this.fontSize},E={height:this.guardHeight};return[{data:n.SIDE_BIN,options:E},{data:this.leftEncode(),text:this.leftText(),options:S},{data:n.MIDDLE_BIN,options:E},{data:this.rightEncode(),text:this.rightText(),options:S},{data:n.SIDE_BIN,options:E}]}},{key:"encodeFlat",value:function(){return{data:[n.SIDE_BIN,this.leftEncode(),n.MIDDLE_BIN,this.rightEncode(),n.SIDE_BIN].join(""),text:this.text}}}]),y}(s(i(74648)).default);x.default=g},16195:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function v(y,b){for(var S=0;S<b.length;S++){var E=b[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}return function(y,b,S){return b&&v(y.prototype,b),S&&v(y,S),y}}(),n=function v(y,b,S){null===y&&(y=Function.prototype);var E=Object.getOwnPropertyDescriptor(y,b);if(void 0===E){var D=Object.getPrototypeOf(y);return null===D?void 0:v(D,b,S)}if("value"in E)return E.value;var A=E.get;return void 0===A?void 0:A.call(S)},a=i(53819),l=function h(v){return v&&v.__esModule?v:{default:v}}(i(67417)),u=function(y){return(10-y.substr(0,12).split("").map(function(S){return+S}).reduce(function(S,E,D){return D%2?S+3*E:S+E},0)%10)%10},g=function(v){function y(b,S){(function s(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")})(this,y),-1!==b.search(/^[0-9]{12}$/)&&(b+=u(b));var E=function d(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!=typeof y&&"function"!=typeof y?v:y}(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b,S));return E.lastChar=S.lastChar,E}return function p(v,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}(y,v),e(y,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===u(this.data)}},{key:"leftText",value:function(){return n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var S=this.data.substr(1,6),E=a.EAN13_STRUCTURE[this.data[0]];return n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"leftEncode",this).call(this,S,E)}},{key:"rightText",value:function(){return n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var S=this.data.substr(7,6);return n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"rightEncode",this).call(this,S,"RRRRRR")}},{key:"encodeGuarded",value:function(){var S=n(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(S.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(S.push({data:"00"}),S.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),S}}]),y}(l.default);x.default=g},54500:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function v(y,b){for(var S=0;S<b.length;S++){var E=b[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}return function(y,b,S){return b&&v(y.prototype,b),S&&v(y,S),y}}(),n=i(53819),t=s(i(29259));function s(v){return v&&v.__esModule?v:{default:v}}var g=function(v){function y(b,S){return function d(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}(this,y),function p(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!=typeof y&&"function"!=typeof y?v:y}(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b,S))}return function u(v,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}(y,v),e(y,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var S=n.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,t.default)(this.data,S,"01"),text:this.text}}}]),y}(s(i(74648)).default);x.default=g},55174:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function y(b,S){for(var E=0;E<S.length;E++){var D=S[E];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(b,D.key,D)}}return function(b,S,E){return S&&y(b.prototype,S),E&&y(b,E),b}}(),n=i(53819),t=s(i(29259));function s(y){return y&&y.__esModule?y:{default:y}}var v=function(y){function b(S,E){return function d(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}(this,b),function p(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?y:b}(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,S,E))}return function u(y,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}(b,y),e(b,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var E=n.EAN5_STRUCTURE[function(b){return b.split("").map(function(E){return+E}).reduce(function(E,D,A){return A%2?E+9*D:E+3*D},0)%10}(this.data)];return{data:"1011"+(0,t.default)(this.data,E,"01"),text:this.text}}}]),b}(s(i(74648)).default);x.default=v},42523:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function g(v,y){for(var b=0;b<y.length;b++){var S=y[b];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,y,b){return y&&g(v.prototype,y),b&&g(v,b),v}}(),n=function g(v,y,b){null===v&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,y);if(void 0===S){var E=Object.getPrototypeOf(v);return null===E?void 0:g(E,y,b)}if("value"in S)return S.value;var D=S.get;return void 0===D?void 0:D.call(b)},t=function l(g){return g&&g.__esModule?g:{default:g}}(i(67417)),p=function(v){return(10-v.substr(0,7).split("").map(function(b){return+b}).reduce(function(b,S,E){return E%2?b+S:b+3*S},0)%10)%10},u=function(g){function v(y,b){return function h(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}(this,v),-1!==y.search(/^[0-9]{7}$/)&&(y+=p(y)),function s(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||"object"!=typeof v&&"function"!=typeof v?g:v}(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,y,b))}return function d(g,v){if("function"!=typeof v&&null!==v)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}(v,g),e(v,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===p(this.data)}},{key:"leftText",value:function(){return n(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var b=this.data.substr(0,4);return n(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"leftEncode",this).call(this,b,"LLLL")}},{key:"rightText",value:function(){return n(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var b=this.data.substr(4,4);return n(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"rightEncode",this).call(this,b,"RRRR")}}]),v}(t.default);x.default=u},54102:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function v(y,b){for(var S=0;S<b.length;S++){var E=b[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(y,E.key,E)}}return function(y,b,S){return b&&v(y.prototype,b),S&&v(y,S),y}}();x.checksum=g;var a=h(i(29259));function h(v){return v&&v.__esModule?v:{default:v}}var u=function(v){function y(b,S){(function s(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")})(this,y),-1!==b.search(/^[0-9]{11}$/)&&(b+=g(b));var E=function d(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!=typeof y&&"function"!=typeof y?v:y}(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b,S));return E.displayValue=S.displayValue,E.fontSize=S.fontSize>10*S.width?10*S.width:S.fontSize,E.guardHeight=S.height+E.fontSize/2+S.textMargin,E}return function p(v,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}(y,v),e(y,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==g(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var S="";return S+="101",S+=(0,a.default)(this.data.substr(0,6),"LLLLLL"),S+="01010",S+=(0,a.default)(this.data.substr(6,6),"RRRRRR"),{data:S+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var S=[];return this.displayValue&&S.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),S.push({data:"101"+(0,a.default)(this.data[0],"L"),options:{height:this.guardHeight}}),S.push({data:(0,a.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),S.push({data:"01010",options:{height:this.guardHeight}}),S.push({data:(0,a.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),S.push({data:(0,a.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&S.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),S}}]),y}(h(i(74648)).default);function g(v){var b,y=0;for(b=1;b<11;b+=2)y+=parseInt(v[b]);for(b=0;b<11;b+=2)y+=3*parseInt(v[b]);return(10-y%10)%10}x.default=u},91285:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function S(E,D){for(var A=0;A<D.length;A++){var P=D[A];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(E,P.key,P)}}return function(E,D,A){return D&&S(E.prototype,D),A&&S(E,A),E}}(),a=s(i(29259)),l=s(i(74648)),h=i(54102);function s(S){return S&&S.__esModule?S:{default:S}}function p(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||"object"!=typeof E&&"function"!=typeof E?S:E}var g=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],v=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],y=function(S){function E(D,A){!function d(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}(this,E);var P=p(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,D,A));if(P.isValid=!1,-1!==D.search(/^[0-9]{6}$/))P.middleDigits=D,P.upcA=b(D,"0"),P.text=A.text||""+P.upcA[0]+D+P.upcA[P.upcA.length-1],P.isValid=!0;else{if(-1===D.search(/^[01][0-9]{7}$/))return p(P);if(P.middleDigits=D.substring(1,D.length-1),P.upcA=b(P.middleDigits,D[0]),P.upcA[P.upcA.length-1]!==D[D.length-1])return p(P);P.isValid=!0}return P.displayValue=A.displayValue,P.fontSize=A.fontSize>10*A.width?10*A.width:A.fontSize,P.guardHeight=A.height+P.fontSize/2+A.textMargin,P}return function u(S,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}(E,S),e(E,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var A="";return A+="101",A+=this.encodeMiddleDigits(),{data:A+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var A=[];return this.displayValue&&A.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),A.push({data:"101",options:{height:this.guardHeight}}),A.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),A.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&A.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),A}},{key:"encodeMiddleDigits",value:function(){var A=this.upcA[0],B=v[parseInt(this.upcA[this.upcA.length-1])][parseInt(A)];return(0,a.default)(this.middleDigits,B)}}]),E}(l.default);function b(S,E){for(var D=parseInt(S[S.length-1]),A=g[D],P="",B=0,V=0;V<A.length;V++){var X=A[V];P+="X"===X?S[B++]:X}return(P=""+E+P)+(0,h.checksum)(P)}x.default=y},53819:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.SIDE_BIN="101",x.MIDDLE_BIN="01010",x.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},x.EAN2_STRUCTURE=["LL","LG","GL","GG"],x.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],x.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},29259:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=i(53819);x.default=function(t,l,h){var s=t.split("").map(function(p,u){return e.BINARIES[l[u]]}).map(function(p,u){return p?p[t[u]]:""});if(h){var d=t.length-1;s=s.map(function(p,u){return u<d?p+h:p})}return s.join("")}},17422:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.UPCE=x.UPC=x.EAN2=x.EAN5=x.EAN8=x.EAN13=void 0;var n=y(i(16195)),t=y(i(42523)),h=y(i(55174)),d=y(i(54500)),u=y(i(54102)),v=y(i(91285));function y(b){return b&&b.__esModule?b:{default:b}}x.EAN13=n.default,x.EAN8=t.default,x.EAN5=h.default,x.EAN2=d.default,x.UPC=u.default,x.UPCE=v.default},791:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.GenericBarcode=void 0;var e=function(){function p(u,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,g,v){return g&&p(u.prototype,g),v&&p(u,v),u}}(),d=function(p){function u(g,v){return function l(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function h(p,u){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?p:u}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,g,v))}return function s(p,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}(u,p),e(u,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),u}(function t(p){return p&&p.__esModule?p:{default:p}}(i(74648)).default);x.GenericBarcode=d},13435:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function u(g,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,v,y){return v&&u(g.prototype,v),y&&u(g,y),g}}(),n=i(5306),p=function(u){function g(){return function h(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),function s(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?u:g}(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return function d(u,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}(g,u),e(g,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var y=this,b=this.data.match(/.{2}/g).map(function(S){return y.encodePair(S)}).join("");return{data:n.START_BIN+b+n.END_BIN,text:this.text}}},{key:"encodePair",value:function(y){var b=n.BINARIES[y[1]];return n.BINARIES[y[0]].split("").map(function(S,E){return("1"===S?"111":"1")+("1"===b[E]?"000":"0")}).join("")}}]),g}(function l(u){return u&&u.__esModule?u:{default:u}}(i(74648)).default);x.default=p},20580:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function u(g,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,v,y){return v&&u(g.prototype,v),y&&u(g,y),g}}(),a=function t(u){return u&&u.__esModule?u:{default:u}}(i(13435)),d=function(g){var v=g.substr(0,13).split("").map(function(y){return parseInt(y,10)}).reduce(function(y,b,S){return y+b*(3-S%2*2)},0);return 10*Math.ceil(v/10)-v},p=function(u){function g(v,y){return function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),-1!==v.search(/^[0-9]{13}$/)&&(v+=d(v)),function h(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?u:g}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,v,y))}return function s(u,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}(g,u),e(g,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===d(this.data)}}]),g}(a.default);x.default=p},5306:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.START_BIN="1010",x.END_BIN="11101",x.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},27191:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ITF14=x.ITF=void 0;var n=l(i(13435)),t=l(i(20580));function l(h){return h&&h.__esModule?h:{default:h}}x.ITF=n.default,x.ITF14=t.default},66431:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function u(g,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}return function(g,v,y){return v&&u(g.prototype,v),y&&u(g,y),g}}(),d=function(u){function g(v,y){return function l(u,g){if(!(u instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g),function h(u,g){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?u:g}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,v,y))}return function s(u,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);u.prototype=Object.create(g&&g.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(u,g):u.__proto__=g)}(g,u),e(g,[{key:"encode",value:function(){for(var y="110",b=0;b<this.data.length;b++){var E=parseInt(this.data[b]).toString(2);E=p(E,4-E.length);for(var D=0;D<E.length;D++)y+="0"==E[D]?"100":"110"}return{data:y+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),g}(function t(u){return u&&u.__esModule?u:{default:u}}(i(74648)).default);function p(u,g){for(var v=0;v<g;v++)u="0"+u;return u}x.default=d},7218:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var n=function t(p){return p&&p.__esModule?p:{default:p}}(i(66431)),a=i(96855),d=function(p){function u(g,v){return function l(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function h(p,u){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?p:u}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,g+(0,a.mod10)(g),v))}return function s(p,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}(u,p),u}(n.default);x.default=d},49762:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var n=function t(p){return p&&p.__esModule?p:{default:p}}(i(66431)),a=i(96855),d=function(p){function u(g,v){return function l(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),g+=(0,a.mod10)(g),g+=(0,a.mod10)(g),function h(p,u){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?p:u}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,g,v))}return function s(p,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}(u,p),u}(n.default);x.default=d},23117:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var n=function t(p){return p&&p.__esModule?p:{default:p}}(i(66431)),a=i(96855),d=function(p){function u(g,v){return function l(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function h(p,u){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?p:u}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,g+(0,a.mod11)(g),v))}return function s(p,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}(u,p),u}(n.default);x.default=d},71878:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var n=function t(p){return p&&p.__esModule?p:{default:p}}(i(66431)),a=i(96855),d=function(p){function u(g,v){return function l(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),g+=(0,a.mod11)(g),g+=(0,a.mod10)(g),function h(p,u){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?p:u}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,g,v))}return function s(p,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}(u,p),u}(n.default);x.default=d},96855:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.mod10=function i(n){for(var a=0,t=0;t<n.length;t++){var l=parseInt(n[t]);a+=(t+n.length)%2==0?l:2*l%10+Math.floor(2*l/10)}return(10-a%10)%10},x.mod11=function e(n){for(var a=0,t=[2,3,4,5,6,7],l=0;l<n.length;l++){var h=parseInt(n[n.length-1-l]);a+=t[l%t.length]*h}return(11-a%11)%11}},11247:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.MSI1110=x.MSI1010=x.MSI11=x.MSI10=x.MSI=void 0;var n=g(i(66431)),t=g(i(7218)),h=g(i(23117)),d=g(i(49762)),u=g(i(71878));function g(v){return v&&v.__esModule?v:{default:v}}x.MSI=n.default,x.MSI10=t.default,x.MSI11=h.default,x.MSI1010=d.default,x.MSI1110=u.default},22250:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.codabar=void 0;var e=function(){function p(u,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,g,v){return g&&p(u.prototype,g),v&&p(u,v),u}}(),d=function(p){function u(g,v){(function l(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")})(this,u),0===g.search(/^[0-9\-\$\:\.\+\/]+$/)&&(g="A"+g+"A");var y=function h(p,u){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?p:u}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,g.toUpperCase(),v));return y.text=y.options.text||y.text.replace(/[A-D]/g,""),y}return function s(p,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}(u,p),e(u,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var v=[],y=this.getEncodings(),b=0;b<this.data.length;b++)v.push(y[this.data.charAt(b)]),b!==this.data.length-1&&v.push("0");return{text:this.text,data:v.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),u}(function t(p){return p&&p.__esModule?p:{default:p}}(i(74648)).default);x.codabar=d},49721:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=i(80528),n=i(56038),a=i(17422),t=i(27191),l=i(11247),h=i(87624),s=i(22250),d=i(791);x.default={CODE39:e.CODE39,CODE128:n.CODE128,CODE128A:n.CODE128A,CODE128B:n.CODE128B,CODE128C:n.CODE128C,EAN13:a.EAN13,EAN8:a.EAN8,EAN5:a.EAN5,EAN2:a.EAN2,UPC:a.UPC,UPCE:a.UPCE,ITF14:t.ITF14,ITF:t.ITF,MSI:l.MSI,MSI10:l.MSI10,MSI11:l.MSI11,MSI1010:l.MSI1010,MSI1110:l.MSI1110,pharmacode:h.pharmacode,codabar:s.codabar,GenericBarcode:d.GenericBarcode}},87624:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.pharmacode=void 0;var e=function(){function p(u,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,g,v){return g&&p(u.prototype,g),v&&p(u,v),u}}(),d=function(p){function u(g,v){!function l(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u);var y=function h(p,u){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?p:u}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,g,v));return y.number=parseInt(g,10),y}return function s(p,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}(u,p),e(u,[{key:"encode",value:function(){for(var v=this.number,y="";!isNaN(v)&&0!=v;)v%2==0?(y="11100"+y,v=(v-2)/2):(y="100"+y,v=(v-1)/2);return{data:y=y.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),u}(function t(p){return p&&p.__esModule?p:{default:p}}(i(74648)).default);x.pharmacode=d},3930:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var i=function(){function a(t,l){for(var h=0;h<l.length;h++){var s=l[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,l,h){return l&&a(t.prototype,l),h&&a(t,h),t}}(),n=function(){function a(t){(function e(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")})(this,a),this.api=t}return i(a,[{key:"handleCatch",value:function(l){if("InvalidInputException"!==l.name)throw l;if(this.api._options.valid===this.api._defaults.valid)throw l.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(l){try{var h=l.apply(void 0,arguments);return this.api._options.valid(!0),h}catch(s){return this.handleCatch(s),this.api}}}]),a}();x.default=n},87497:(oe,x)=>{"use strict";function i(h,s){if(!(h instanceof s))throw new TypeError("Cannot call a class as a function")}function e(h,s){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?h:s}function n(h,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);h.prototype=Object.create(s&&s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(h,s):h.__proto__=s)}Object.defineProperty(x,"__esModule",{value:!0});var a=function(h){function s(d,p){i(this,s);var u=e(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return u.name="InvalidInputException",u.symbology=d,u.input=p,u.message='"'+u.input+'" is not a valid input for '+u.symbology,u}return n(s,Error),s}(),t=function(h){function s(){i(this,s);var d=e(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return d.name="InvalidElementException",d.message="Not supported type to render on",d}return n(s,Error),s}(),l=function(h){function s(){i(this,s);var d=e(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return d.name="NoElementException",d.message="No element to render on.",d}return n(s,Error),s}();x.InvalidInputException=a,x.InvalidElementException=t,x.NoElementException=l},13800:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.default=function i(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}},96428:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var n=l(i(40070)),t=l(i(97850));function l(s){return s&&s.__esModule?s:{default:s}}x.default=function h(s){var d={};for(var p in t.default)t.default.hasOwnProperty(p)&&(s.hasAttribute("jsbarcode-"+p.toLowerCase())&&(d[p]=s.getAttribute("jsbarcode-"+p.toLowerCase())),s.hasAttribute("data-"+p.toLowerCase())&&(d[p]=s.getAttribute("data-"+p.toLowerCase())));return d.value=s.getAttribute("jsbarcode-value")||s.getAttribute("data-value"),(0,n.default)(d)}},41731:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},a=s(i(96428)),l=s(i(82216)),h=i(87497);function s(g){return g&&g.__esModule?g:{default:g}}x.default=function d(g){if("string"==typeof g)return function p(g){var v=document.querySelectorAll(g);if(0!==v.length){for(var y=[],b=0;b<v.length;b++)y.push(d(v[b]));return y}}(g);if(Array.isArray(g)){for(var v=[],y=0;y<g.length;y++)v.push(d(g[y]));return v}if(typeof HTMLCanvasElement<"u"&&g instanceof HTMLImageElement)return function u(g){var v=document.createElement("canvas");return{element:v,options:(0,a.default)(g),renderer:l.default.CanvasRenderer,afterRender:function(){g.setAttribute("src",v.toDataURL())}}}(g);if(g&&g.nodeName&&"svg"===g.nodeName.toLowerCase()||typeof SVGElement<"u"&&g instanceof SVGElement)return{element:g,options:(0,a.default)(g),renderer:l.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&g instanceof HTMLCanvasElement)return{element:g,options:(0,a.default)(g),renderer:l.default.CanvasRenderer};if(g&&g.getContext)return{element:g,renderer:l.default.CanvasRenderer};if(g&&"object"===(typeof g>"u"?"undefined":e(g))&&!g.nodeName)return{element:g,renderer:l.default.ObjectRenderer};throw new h.InvalidElementException}},76162:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.default=function i(e){var n=[];return function a(t){if(Array.isArray(t))for(var l=0;l<t.length;l++)a(t[l]);else t.text=t.text||"",t.data=t.data||"",n.push(t)}(e),n}},44070:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e};x.default=function(e,n){return i({},e,n)}},40070:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.default=function i(e){var n=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var a in n)n.hasOwnProperty(a)&&"string"==typeof e[a=n[a]]&&(e[a]=parseInt(e[a],10));return"string"==typeof e.displayValue&&(e.displayValue="false"!=e.displayValue),e}},97850:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.default={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}}},70726:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function d(p,u){for(var g=0;g<u.length;g++){var v=u[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,u,g){return u&&d(p.prototype,u),g&&d(p,g),p}}(),a=function l(d){return d&&d.__esModule?d:{default:d}}(i(44070)),t=i(83737),s=function(){function d(p,u,g){(function h(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")})(this,d),this.canvas=p,this.encodings=u,this.options=g}return e(d,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var u=0;u<this.encodings.length;u++){var g=(0,a.default)(this.options,this.encodings[u].options);this.drawCanvasBarcode(g,this.encodings[u]),this.drawCanvasText(g,this.encodings[u]),this.moveCanvasDrawing(this.encodings[u])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var u=this.canvas.getContext("2d");u.save(),(0,t.calculateEncodingAttributes)(this.encodings,this.options,u);var g=(0,t.getTotalWidthOfEncodings)(this.encodings),v=(0,t.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=g+this.options.marginLeft+this.options.marginRight,this.canvas.height=v,u.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(u.fillStyle=this.options.background,u.fillRect(0,0,this.canvas.width,this.canvas.height)),u.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(u,g){var b,v=this.canvas.getContext("2d"),y=g.data;b="top"==u.textPosition?u.marginTop+u.fontSize+u.textMargin:u.marginTop,v.fillStyle=u.lineColor;for(var S=0;S<y.length;S++){var E=S*u.width+g.barcodePadding;"1"===y[S]?v.fillRect(E,b,u.width,u.height):y[S]&&v.fillRect(E,b,u.width,u.height*y[S])}}},{key:"drawCanvasText",value:function(u,g){var b,S,v=this.canvas.getContext("2d");u.displayValue&&(S="top"==u.textPosition?u.marginTop+u.fontSize-u.textMargin:u.height+u.textMargin+u.marginTop+u.fontSize,v.font=u.fontOptions+" "+u.fontSize+"px "+u.font,"left"==u.textAlign||g.barcodePadding>0?(b=0,v.textAlign="left"):"right"==u.textAlign?(b=g.width-1,v.textAlign="right"):(b=g.width/2,v.textAlign="center"),v.fillText(g.text,b,S))}},{key:"moveCanvasDrawing",value:function(u){this.canvas.getContext("2d").translate(u.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),d}();x.default=s},82216:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var n=s(i(70726)),t=s(i(37902)),h=s(i(8138));function s(d){return d&&d.__esModule?d:{default:d}}x.default={CanvasRenderer:n.default,SVGRenderer:t.default,ObjectRenderer:h.default}},8138:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var i=function(){function a(t,l){for(var h=0;h<l.length;h++){var s=l[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,l,h){return l&&a(t.prototype,l),h&&a(t,h),t}}(),n=function(){function a(t,l,h){(function e(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")})(this,a),this.object=t,this.encodings=l,this.options=h}return i(a,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),a}();x.default=n},83737:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.getTotalWidthOfEncodings=x.calculateEncodingAttributes=x.getBarcodePadding=x.getEncodingHeight=x.getMaximumHeightOfEncodings=void 0;var n=function a(u){return u&&u.__esModule?u:{default:u}}(i(44070));function t(u,g){return g.height+(g.displayValue&&u.text.length>0?g.fontSize+g.textMargin:0)+g.marginTop+g.marginBottom}function l(u,g,v){if(v.displayValue&&g<u){if("center"==v.textAlign)return Math.floor((u-g)/2);if("left"==v.textAlign)return 0;if("right"==v.textAlign)return Math.floor(u-g)}return 0}function p(u,g,v){var y;if(v)y=v;else{if(!(typeof document<"u"))return 0;y=document.createElement("canvas").getContext("2d")}y.font=g.fontOptions+" "+g.fontSize+"px "+g.font;var b=y.measureText(u);return b?b.width:0}x.getMaximumHeightOfEncodings=function d(u){for(var g=0,v=0;v<u.length;v++)u[v].height>g&&(g=u[v].height);return g},x.getEncodingHeight=t,x.getBarcodePadding=l,x.calculateEncodingAttributes=function h(u,g,v){for(var y=0;y<u.length;y++){var E,b=u[y],S=(0,n.default)(g,b.options);E=S.displayValue?p(b.text,S,v):0;var D=b.data.length*S.width;b.width=Math.ceil(Math.max(E,D)),b.height=t(b,S),b.barcodePadding=l(E,D,S)}},x.getTotalWidthOfEncodings=function s(u){for(var g=0,v=0;v<u.length;v++)g+=u[v].width;return g}},37902:(oe,x,i)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});var e=function(){function p(u,g){for(var v=0;v<g.length;v++){var y=g[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,g,v){return g&&p(u.prototype,g),v&&p(u,v),u}}(),a=function l(p){return p&&p.__esModule?p:{default:p}}(i(44070)),t=i(83737),s="http://www.w3.org/2000/svg",d=function(){function p(u,g,v){(function h(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")})(this,p),this.svg=u,this.encodings=g,this.options=v,this.document=v.xmlDocument||document}return e(p,[{key:"render",value:function(){var g=this.options.marginLeft;this.prepareSVG();for(var v=0;v<this.encodings.length;v++){var y=this.encodings[v],b=(0,a.default)(this.options,y.options),S=this.createGroup(g,b.marginTop,this.svg);this.setGroupOptions(S,b),this.drawSvgBarcode(S,b,y),this.drawSVGText(S,b,y),g+=y.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,t.calculateEncodingAttributes)(this.encodings,this.options);var g=(0,t.getTotalWidthOfEncodings)(this.encodings),v=(0,t.getMaximumHeightOfEncodings)(this.encodings),y=g+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(y,v),this.options.background&&this.drawRect(0,0,y,v,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(g,v,y){var S,b=y.data;S="top"==v.textPosition?v.fontSize+v.textMargin:0;for(var E=0,D=0,A=0;A<b.length;A++)D=A*v.width+y.barcodePadding,"1"===b[A]?E++:E>0&&(this.drawRect(D-v.width*E,S,v.width*E,v.height,g),E=0);E>0&&this.drawRect(D-v.width*(E-1),S,v.width*E,v.height,g)}},{key:"drawSVGText",value:function(g,v,y){var S,E,b=this.document.createElementNS(s,"text");v.displayValue&&(b.setAttribute("style","font:"+v.fontOptions+" "+v.fontSize+"px "+v.font),E="top"==v.textPosition?v.fontSize-v.textMargin:v.height+v.textMargin+v.fontSize,"left"==v.textAlign||y.barcodePadding>0?(S=0,b.setAttribute("text-anchor","start")):"right"==v.textAlign?(S=y.width-1,b.setAttribute("text-anchor","end")):(S=y.width/2,b.setAttribute("text-anchor","middle")),b.setAttribute("x",S),b.setAttribute("y",E),b.appendChild(this.document.createTextNode(y.text)),g.appendChild(b))}},{key:"setSvgAttributes",value:function(g,v){var y=this.svg;y.setAttribute("width",g+"px"),y.setAttribute("height",v+"px"),y.setAttribute("x","0px"),y.setAttribute("y","0px"),y.setAttribute("viewBox","0 0 "+g+" "+v),y.setAttribute("xmlns",s),y.setAttribute("version","1.1"),y.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(g,v,y){var b=this.document.createElementNS(s,"g");return b.setAttribute("transform","translate("+g+", "+v+")"),y.appendChild(b),b}},{key:"setGroupOptions",value:function(g,v){g.setAttribute("style","fill:"+v.lineColor+";")}},{key:"drawRect",value:function(g,v,y,b,S){var E=this.document.createElementNS(s,"rect");return E.setAttribute("x",g),E.setAttribute("y",v),E.setAttribute("width",y),E.setAttribute("height",b),S.appendChild(E),E}}]),p}();x.default=d},27088:function(oe,x,i){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(a){return/^nm$/i.test(a)},meridiem:function(a,t,l){return a<12?l?"vm":"VM":l?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(a){return a+(1===a||8===a||a>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(15439))},52502:function(oe,x,i){!function(e){"use strict";var n=function(s){return 0===s?0:1===s?1:2===s?2:s%100>=3&&s%100<=10?3:s%100>=11?4:5},a={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},t=function(s){return function(d,p,u,g){var v=n(d),y=a[s][n(d)];return 2===v&&(y=y[p?0:1]),y.replace(/%d/i,d)}},l=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:l,monthsShort:l,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(s){return"\u0645"===s},meridiem:function(s,d,p){return s<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:t("s"),ss:t("s"),m:t("m"),mm:t("m"),h:t("h"),hh:t("h"),d:t("d"),dd:t("d"),M:t("M"),MM:t("M"),y:t("y"),yy:t("y")},postformat:function(s){return s.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(i(15439))},30128:function(oe,x,i){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(i(15439))},84519:function(oe,x,i){!function(e){"use strict";var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},a=function(d){return 0===d?0:1===d?1:2===d?2:d%100>=3&&d%100<=10?3:d%100>=11?4:5},t={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},l=function(d){return function(p,u,g,v){var y=a(p),b=t[d][a(p)];return 2===y&&(b=b[u?0:1]),b.replace(/%d/i,p)}},h=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:h,monthsShort:h,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(d){return"\u0645"===d},meridiem:function(d,p,u){return d<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:l("s"),ss:l("s"),m:l("m"),mm:l("m"),h:l("h"),hh:l("h"),d:l("d"),dd:l("d"),M:l("M"),MM:l("M"),y:l("y"),yy:l("y")},preparse:function(d){return d.replace(/\u060c/g,",")},postformat:function(d){return d.replace(/\d/g,function(p){return n[p]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(15439))},65443:function(oe,x,i){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(i(15439))},14523:function(oe,x,i){!function(e){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},a={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(l){return"\u0645"===l},meridiem:function(l,h,s){return l<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(l){return l.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(h){return a[h]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(h){return a[h]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(15439))},17642:function(oe,x,i){!function(e){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},a={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(l){return"\u0645"===l},meridiem:function(l,h,s){return l<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(l){return l.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(h){return a[h]}).replace(/\u060c/g,",")},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(i(15439))},68592:function(oe,x,i){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(i(15439))},17038:function(oe,x,i){!function(e){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},a={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},t=function(p){return 0===p?0:1===p?1:2===p?2:p%100>=3&&p%100<=10?3:p%100>=11?4:5},l={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},h=function(p){return function(u,g,v,y){var b=t(u),S=l[p][t(u)];return 2===b&&(S=S[g?0:1]),S.replace(/%d/i,u)}},s=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(p){return"\u0645"===p},meridiem:function(p,u,g){return p<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:h("s"),ss:h("s"),m:h("m"),mm:h("m"),h:h("h"),hh:h("h"),d:h("d"),dd:h("d"),M:h("M"),MM:h("M"),y:h("y"),yy:h("y")},preparse:function(p){return p.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(u){return a[u]}).replace(/\u060c/g,",")},postformat:function(p){return p.replace(/\d/g,function(u){return n[u]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(15439))},51213:function(oe,x,i){!function(e){"use strict";var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,l,h){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var l=t%10;return t+(n[l]||n[t%100-l]||n[t>=100?100:null])},week:{dow:1,doy:7}})}(i(15439))},69191:function(oe,x,i){!function(e){"use strict";function a(l,h,s){return"m"===s?h?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===s?h?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":l+" "+function n(l,h){var s=l.split("_");return h%10==1&&h%100!=11?s[0]:h%10>=2&&h%10<=4&&(h%100<10||h%100>=20)?s[1]:s[2]}({ss:h?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:h?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:h?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[s],+l)}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:a,mm:a,h:a,hh:a,d:"\u0434\u0437\u0435\u043d\u044c",dd:a,M:"\u043c\u0435\u0441\u044f\u0446",MM:a,y:"\u0433\u043e\u0434",yy:a},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(l){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(l)},meridiem:function(l,h,s){return l<4?"\u043d\u043e\u0447\u044b":l<12?"\u0440\u0430\u043d\u0456\u0446\u044b":l<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(l,h){switch(h){case"M":case"d":case"DDD":case"w":case"W":return l%10!=2&&l%10!=3||l%100==12||l%100==13?l+"-\u044b":l+"-\u0456";case"D":return l+"-\u0433\u0430";default:return l}},week:{dow:1,doy:7}})}(i(15439))},90322:function(oe,x,i){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(a){var t=a%10,l=a%100;return 0===a?a+"-\u0435\u0432":0===l?a+"-\u0435\u043d":l>10&&l<20?a+"-\u0442\u0438":1===t?a+"-\u0432\u0438":2===t?a+"-\u0440\u0438":7===t||8===t?a+"-\u043c\u0438":a+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(15439))},28042:function(oe,x,i){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(i(15439))},65903:function(oe,x,i){!function(e){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},a={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(l){return l.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u09b0\u09be\u09a4"===h?l<4?l:l+12:"\u09ad\u09cb\u09b0"===h||"\u09b8\u0995\u09be\u09b2"===h?l:"\u09a6\u09c1\u09aa\u09c1\u09b0"===h?l>=3?l:l+12:"\u09ac\u09bf\u0995\u09be\u09b2"===h||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===h?l+12:void 0},meridiem:function(l,h,s){return l<4?"\u09b0\u09be\u09a4":l<6?"\u09ad\u09cb\u09b0":l<12?"\u09b8\u0995\u09be\u09b2":l<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":l<18?"\u09ac\u09bf\u0995\u09be\u09b2":l<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(15439))},59620:function(oe,x,i){!function(e){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},a={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(l){return l.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u09b0\u09be\u09a4"===h&&l>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===h&&l<5||"\u09ac\u09bf\u0995\u09be\u09b2"===h?l+12:l},meridiem:function(l,h,s){return l<4?"\u09b0\u09be\u09a4":l<10?"\u09b8\u0995\u09be\u09b2":l<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":l<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(i(15439))},69645:function(oe,x,i){!function(e){"use strict";var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},a={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(l){return l.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===h&&l>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===h&&l<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===h?l+12:l},meridiem:function(l,h,s){return l<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":l<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":l<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":l<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(i(15439))},45020:function(oe,x,i){!function(e){"use strict";function n(S,E,D){return S+" "+function l(S,E){return 2===E?function h(S){var E={m:"v",b:"v",d:"z"};return void 0===E[S.charAt(0)]?S:E[S.charAt(0)]+S.substring(1)}(S):S}({mm:"munutenn",MM:"miz",dd:"devezh"}[D],S)}function t(S){return S>9?t(S%10):S}var s=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],d=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,y=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:y,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:y,monthsRegex:d,monthsShortRegex:d,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function a(S){switch(t(S)){case 1:case 3:case 4:case 5:case 9:return S+" bloaz";default:return S+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(S){return S+(1===S?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(S){return"g.m."===S},meridiem:function(S,E,D){return S<12?"a.m.":"g.m."}})}(i(15439))},64792:function(oe,x,i){!function(e){"use strict";function a(l,h,s){var d=l+" ";switch(s){case"ss":return d+(1===l?"sekunda":2===l||3===l||4===l?"sekunde":"sekundi");case"mm":return d+(1===l?"minuta":2===l||3===l||4===l?"minute":"minuta");case"h":return"jedan sat";case"hh":return d+(1===l?"sat":2===l||3===l||4===l?"sata":"sati");case"dd":return d+(1===l?"dan":"dana");case"MM":return d+(1===l?"mjesec":2===l||3===l||4===l?"mjeseca":"mjeseci");case"yy":return d+(1===l?"godina":2===l||3===l||4===l?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:function n(l,h,s,d){if("m"===s)return h?"jedna minuta":d?"jednu minutu":"jedne minute"},mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(15439))},47980:function(oe,x,i){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(a,t){var l=1===a?"r":2===a?"n":3===a?"r":4===a?"t":"\xe8";return("w"===t||"W"===t)&&(l="a"),a+l},week:{dow:1,doy:4}})}(i(15439))},47322:function(oe,x,i){!function(e){"use strict";var n={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},a="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),t=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],l=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function h(p){return p>1&&p<5&&1!=~~(p/10)}function s(p,u,g,v){var y=p+" ";switch(g){case"s":return u||v?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return u||v?y+(h(p)?"sekundy":"sekund"):y+"sekundami";case"m":return u?"minuta":v?"minutu":"minutou";case"mm":return u||v?y+(h(p)?"minuty":"minut"):y+"minutami";case"h":return u?"hodina":v?"hodinu":"hodinou";case"hh":return u||v?y+(h(p)?"hodiny":"hodin"):y+"hodinami";case"d":return u||v?"den":"dnem";case"dd":return u||v?y+(h(p)?"dny":"dn\xed"):y+"dny";case"M":return u||v?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return u||v?y+(h(p)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):y+"m\u011bs\xedci";case"y":return u||v?"rok":"rokem";case"yy":return u||v?y+(h(p)?"roky":"let"):y+"lety"}}e.defineLocale("cs",{months:n,monthsShort:a,monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},90365:function(oe,x,i){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(a){return a+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(a)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(a)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(i(15439))},32092:function(oe,x,i){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(a){var l="";return a>20?l=40===a||50===a||60===a||80===a||100===a?"fed":"ain":a>0&&(l=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][a]),a+l},week:{dow:1,doy:4}})}(i(15439))},77387:function(oe,x,i){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},29459:function(oe,x,i){!function(e){"use strict";function n(t,l,h,s){var d={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return l?d[h][0]:d[h][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},73694:function(oe,x,i){!function(e){"use strict";function n(t,l,h,s){var d={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return l?d[h][0]:d[h][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},54307:function(oe,x,i){!function(e){"use strict";function n(t,l,h,s){var d={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return l?d[h][0]:d[h][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,w:n,ww:"%d Wochen",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},39659:function(oe,x,i){!function(e){"use strict";var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],a=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:n,monthsShort:n,weekdays:a,weekdaysShort:a,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(l){return"\u0789\u078a"===l},meridiem:function(l,h,s){return l<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(l){return l.replace(/\u060c/g,",")},postformat:function(l){return l.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(i(15439))},3460:function(oe,x,i){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(t,l){return t?"string"==typeof l&&/D/.test(l.substring(0,l.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(t,l,h){return t>11?h?"\u03bc\u03bc":"\u039c\u039c":h?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(t,l){var h=this._calendarEl[t],s=l&&l.hours();return function n(t){return typeof Function<"u"&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}(h)&&(h=h.apply(l)),h.replace("{}",s%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(i(15439))},94369:function(oe,x,i){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(i(15439))},60530:function(oe,x,i){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(i(15439))},9998:function(oe,x,i){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(15439))},13391:function(oe,x,i){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(15439))},75414:function(oe,x,i){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(i(15439))},19615:function(oe,x,i){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(i(15439))},21248:function(oe,x,i){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(15439))},13767:function(oe,x,i){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(15439))},84530:function(oe,x,i){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(a){return"p"===a.charAt(0).toLowerCase()},meridiem:function(a,t,l){return a>11?l?"p.t.m.":"P.T.M.":l?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(15439))},18944:function(oe,x,i){!function(e){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(s,d){return s?/-MMM-/.test(d)?a[s.month()]:n[s.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(15439))},29116:function(oe,x,i){!function(e){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(s,d){return s?/-MMM-/.test(d)?a[s.month()]:n[s.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(i(15439))},83609:function(oe,x,i){!function(e){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(s,d){return s?/-MMM-/.test(d)?a[s.month()]:n[s.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(i(15439))},86866:function(oe,x,i){!function(e){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(s,d){return s?/-MMM-/.test(d)?a[s.month()]:n[s.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(i(15439))},96725:function(oe,x,i){!function(e){"use strict";function n(t,l,h,s){var d={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return l?d[h][2]?d[h][2]:d[h][1]:s?d[h][0]:d[h][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},67931:function(oe,x,i){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(15439))},56417:function(oe,x,i){!function(e){"use strict";var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},a={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(l){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(l)},meridiem:function(l,h,s){return l<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(l){return l.replace(/[\u06f0-\u06f9]/g,function(h){return a[h]}).replace(/\u060c/g,",")},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(i(15439))},20944:function(oe,x,i){!function(e){"use strict";var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),a=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function t(s,d,p,u){var g="";switch(p){case"s":return u?"muutaman sekunnin":"muutama sekunti";case"ss":g=u?"sekunnin":"sekuntia";break;case"m":return u?"minuutin":"minuutti";case"mm":g=u?"minuutin":"minuuttia";break;case"h":return u?"tunnin":"tunti";case"hh":g=u?"tunnin":"tuntia";break;case"d":return u?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":g=u?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return u?"kuukauden":"kuukausi";case"MM":g=u?"kuukauden":"kuukautta";break;case"y":return u?"vuoden":"vuosi";case"yy":g=u?"vuoden":"vuotta"}return function l(s,d){return s<10?d?a[s]:n[s]:s}(s,u)+" "+g}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},61766:function(oe,x,i){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(a){return a},week:{dow:1,doy:4}})}(i(15439))},95867:function(oe,x,i){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},16848:function(oe,x,i){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(a,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return a+(1===a?"er":"e");case"w":case"W":return a+(1===a?"re":"e")}}})}(i(15439))},77773:function(oe,x,i){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(a,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return a+(1===a?"er":"e");case"w":case"W":return a+(1===a?"re":"e")}},week:{dow:1,doy:4}})}(i(15439))},1636:function(oe,x,i){!function(e){"use strict";var t=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,l=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:l,longMonthsParse:l,shortMonthsParse:l,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(s,d){switch(d){case"D":return s+(1===s?"er":"");default:case"M":case"Q":case"DDD":case"d":return s+(1===s?"er":"e");case"w":case"W":return s+(1===s?"re":"e")}},week:{dow:1,doy:4}})}(i(15439))},14940:function(oe,x,i){!function(e){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),a="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(l,h){return l?/-MMM-/.test(h)?a[l.month()]:n[l.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(l){return l+(1===l||8===l||l>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(15439))},91402:function(oe,x,i){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(d){return d+(1===d?"d":d%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(15439))},46924:function(oe,x,i){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(d){return d+(1===d?"d":d%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(15439))},16398:function(oe,x,i){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(a){return 0===a.indexOf("un")?"n"+a:"en "+a},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(15439))},72457:function(oe,x,i){!function(e){"use strict";function n(t,l,h,s){var d={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[t+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",t+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[t+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",t+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[t+" \u0935\u0930\u093e\u0902\u0928\u0940",t+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[t+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",t+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[t+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",t+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[t+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",t+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return s?d[h][0]:d[h][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(t,l){return"D"===l?t+"\u0935\u0947\u0930":t},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(t,l){return 12===t&&(t=0),"\u0930\u093e\u0924\u0940"===l?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===l?t:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===l?t>12?t:t+12:"\u0938\u093e\u0902\u091c\u0947"===l?t+12:void 0},meridiem:function(t,l,h){return t<4?"\u0930\u093e\u0924\u0940":t<12?"\u0938\u0915\u093e\u0933\u0940\u0902":t<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":t<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(i(15439))},52545:function(oe,x,i){!function(e){"use strict";function n(t,l,h,s){var d={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return s?d[h][0]:d[h][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,l){return"D"===l?t+"er":t},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,l){return 12===t&&(t=0),"rati"===l?t<4?t:t+12:"sokallim"===l?t:"donparam"===l?t>12?t:t+12:"sanje"===l?t+12:void 0},meridiem:function(t,l,h){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}})}(i(15439))},42641:function(oe,x,i){!function(e){"use strict";var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},a={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(l){return l.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u0ab0\u0abe\u0aa4"===h?l<4?l:l+12:"\u0ab8\u0ab5\u0abe\u0ab0"===h?l:"\u0aac\u0aaa\u0acb\u0ab0"===h?l>=10?l:l+12:"\u0ab8\u0abe\u0a82\u0a9c"===h?l+12:void 0},meridiem:function(l,h,s){return l<4?"\u0ab0\u0abe\u0aa4":l<10?"\u0ab8\u0ab5\u0abe\u0ab0":l<17?"\u0aac\u0aaa\u0acb\u0ab0":l<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(i(15439))},7536:function(oe,x,i){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(a){return 2===a?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":a+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(a){return 2===a?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":a+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(a){return 2===a?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":a+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(a){return 2===a?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":a%10==0&&10!==a?a+" \u05e9\u05e0\u05d4":a+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(a){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(a)},meridiem:function(a,t,l){return a<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":a<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":a<12?l?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":a<18?l?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(i(15439))},96335:function(oe,x,i){!function(e){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},a={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},t=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:t,longMonthsParse:t,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(s){return s.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(d){return a[d]})},postformat:function(s){return s.replace(/\d/g,function(d){return n[d]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(s,d){return 12===s&&(s=0),"\u0930\u093e\u0924"===d?s<4?s:s+12:"\u0938\u0941\u092c\u0939"===d?s:"\u0926\u094b\u092a\u0939\u0930"===d?s>=10?s:s+12:"\u0936\u093e\u092e"===d?s+12:void 0},meridiem:function(s,d,p){return s<4?"\u0930\u093e\u0924":s<10?"\u0938\u0941\u092c\u0939":s<17?"\u0926\u094b\u092a\u0939\u0930":s<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(i(15439))},7458:function(oe,x,i){!function(e){"use strict";function n(t,l,h){var s=t+" ";switch(h){case"ss":return s+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return l?"jedna minuta":"jedne minute";case"mm":return s+(1===t?"minuta":2===t||3===t||4===t?"minute":"minuta");case"h":return l?"jedan sat":"jednog sata";case"hh":return s+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return s+(1===t?"dan":"dana");case"MM":return s+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return s+(1===t?"godina":2===t||3===t||4===t?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(15439))},56540:function(oe,x,i){!function(e){"use strict";var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function a(h,s,d,p){var u=h;switch(d){case"s":return p||s?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return u+(p||s)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(p||s?" perc":" perce");case"mm":return u+(p||s?" perc":" perce");case"h":return"egy"+(p||s?" \xf3ra":" \xf3r\xe1ja");case"hh":return u+(p||s?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(p||s?" nap":" napja");case"dd":return u+(p||s?" nap":" napja");case"M":return"egy"+(p||s?" h\xf3nap":" h\xf3napja");case"MM":return u+(p||s?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(p||s?" \xe9v":" \xe9ve");case"yy":return u+(p||s?" \xe9v":" \xe9ve")}return""}function t(h){return(h?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(h){return"u"===h.charAt(1).toLowerCase()},meridiem:function(h,s,d){return h<12?!0===d?"de":"DE":!0===d?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return t.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return t.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},65283:function(oe,x,i){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(a){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(a)},meridiem:function(a){return a<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":a<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":a<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(a,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===a?a+"-\u056b\u0576":a+"-\u0580\u0564";default:return a}},week:{dow:1,doy:7}})}(i(15439))},98780:function(oe,x,i){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(a,t){return 12===a&&(a=0),"pagi"===t?a:"siang"===t?a>=11?a:a+12:"sore"===t||"malam"===t?a+12:void 0},meridiem:function(a,t,l){return a<11?"pagi":a<15?"siang":a<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(i(15439))},14205:function(oe,x,i){!function(e){"use strict";function n(l){return l%100==11||l%10!=1}function a(l,h,s,d){var p=l+" ";switch(s){case"s":return h||d?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(l)?p+(h||d?"sek\xfandur":"sek\xfandum"):p+"sek\xfanda";case"m":return h?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(l)?p+(h||d?"m\xedn\xfatur":"m\xedn\xfatum"):h?p+"m\xedn\xfata":p+"m\xedn\xfatu";case"hh":return n(l)?p+(h||d?"klukkustundir":"klukkustundum"):p+"klukkustund";case"d":return h?"dagur":d?"dag":"degi";case"dd":return n(l)?h?p+"dagar":p+(d?"daga":"d\xf6gum"):h?p+"dagur":p+(d?"dag":"degi");case"M":return h?"m\xe1nu\xf0ur":d?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(l)?h?p+"m\xe1nu\xf0ir":p+(d?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):h?p+"m\xe1nu\xf0ur":p+(d?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return h||d?"\xe1r":"\xe1ri";case"yy":return n(l)?p+(h||d?"\xe1r":"\xe1rum"):p+(h||d?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:a,ss:a,m:a,mm:a,h:"klukkustund",hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},29985:function(oe,x,i){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(a){return(/^[0-9].+$/.test(a)?"tra":"in")+" "+a},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(15439))},34211:function(oe,x,i){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(15439))},31003:function(oe,x,i){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(a,t){return"\u5143"===t[1]?1:parseInt(t[1]||a,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(a){return"\u5348\u5f8c"===a},meridiem:function(a,t,l){return a<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(a){return a.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(a){return this.week()!==a.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(a,t){switch(t){case"y":return 1===a?"\u5143\u5e74":a+"\u5e74";case"d":case"D":case"DDD":return a+"\u65e5";default:return a}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(i(15439))},60420:function(oe,x,i){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(a,t){return 12===a&&(a=0),"enjing"===t?a:"siyang"===t?a>=11?a:a+12:"sonten"===t||"ndalu"===t?a+12:void 0},meridiem:function(a,t,l){return a<11?"enjing":a<15?"siyang":a<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(i(15439))},40851:function(oe,x,i){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(a){return a.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(t,l,h){return"\u10d8"===h?l+"\u10e8\u10d8":l+h+"\u10e8\u10d8"})},past:function(a){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(a)?a.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(a)?a.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):a},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(a){return 0===a?a:1===a?a+"-\u10da\u10d8":a<20||a<=100&&a%20==0||a%100==0?"\u10db\u10d4-"+a:a+"-\u10d4"},week:{dow:1,doy:7}})}(i(15439))},16074:function(oe,x,i){!function(e){"use strict";var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(t){return t+(n[t]||n[t%10]||n[t>=100?100:null])},week:{dow:1,doy:7}})}(i(15439))},53343:function(oe,x,i){!function(e){"use strict";var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},a={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(l){return"\u179b\u17d2\u1784\u17b6\u1785"===l},meridiem:function(l,h,s){return l<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(l){return l.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},week:{dow:1,doy:4}})}(i(15439))},44799:function(oe,x,i){!function(e){"use strict";var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},a={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(l){return l.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===h?l<4?l:l+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===h?l:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===h?l>=10?l:l+12:"\u0cb8\u0c82\u0c9c\u0cc6"===h?l+12:void 0},meridiem:function(l,h,s){return l<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":l<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":l<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":l<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(l){return l+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(i(15439))},13549:function(oe,x,i){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(a,t){switch(t){case"d":case"D":case"DDD":return a+"\uc77c";case"M":return a+"\uc6d4";case"w":case"W":return a+"\uc8fc";default:return a}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(a){return"\uc624\ud6c4"===a},meridiem:function(a,t,l){return a<12?"\uc624\uc804":"\uc624\ud6c4"}})}(i(15439))},63775:function(oe,x,i){!function(e){"use strict";function n(l,h,s,d){var p={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[l+" san\xeeye",l+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[l+" deq\xeeqe",l+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[l+" saet",l+" saetan"],d:["rojek","rojek\xea"],dd:[l+" roj",l+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[l+" hefte",l+" hefteyan"],M:["mehek","mehek\xea"],MM:[l+" meh",l+" mehan"],y:["salek","salek\xea"],yy:[l+" sal",l+" salan"]};return h?p[s][0]:p[s][1]}e.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(l,h,s){return l<12?s?"bn":"BN":s?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,w:n,ww:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(l,h){var s=h.toLowerCase();return s.includes("w")||s.includes("m")?l+".":l+function a(l){var h=(l=""+l).substring(l.length-1),s=l.length>1?l.substring(l.length-2):"";return 12==s||13==s||"2"!=h&&"3"!=h&&"50"!=s&&"70"!=h&&"80"!=h?"\xea":"y\xea"}(l)},week:{dow:1,doy:4}})}(i(15439))},91037:function(oe,x,i){!function(e){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},a={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},t=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:t,monthsShort:t,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(h){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(h)},meridiem:function(h,s,d){return h<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(h){return h.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(s){return a[s]}).replace(/\u060c/g,",")},postformat:function(h){return h.replace(/\d/g,function(s){return n[s]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(i(15439))},93125:function(oe,x,i){!function(e){"use strict";var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(t){return t+(n[t]||n[t%10]||n[t>=100?100:null])},week:{dow:1,doy:7}})}(i(15439))},69586:function(oe,x,i){!function(e){"use strict";function n(s,d,p,u){var g={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return d?g[p][0]:g[p][1]}function l(s){if(s=parseInt(s,10),isNaN(s))return!1;if(s<0)return!0;if(s<10)return 4<=s&&s<=7;if(s<100){var d=s%10;return l(0===d?s/10:d)}if(s<1e4){for(;s>=10;)s/=10;return l(s)}return l(s/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function a(s){return l(s.substr(0,s.indexOf(" ")))?"a "+s:"an "+s},past:function t(s){return l(s.substr(0,s.indexOf(" ")))?"viru "+s:"virun "+s},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},32349:function(oe,x,i){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(a){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===a},meridiem:function(a,t,l){return a<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(a){return"\u0e97\u0eb5\u0ec8"+a}})}(i(15439))},92400:function(oe,x,i){!function(e){"use strict";var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function t(p,u,g,v){return u?h(g)[0]:v?h(g)[1]:h(g)[2]}function l(p){return p%10==0||p>10&&p<20}function h(p){return n[p].split("_")}function s(p,u,g,v){var y=p+" ";return 1===p?y+t(0,u,g[0],v):u?y+(l(p)?h(g)[1]:h(g)[0]):v?y+h(g)[1]:y+(l(p)?h(g)[1]:h(g)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function a(p,u,g,v){return u?"kelios sekund\u0117s":v?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:s,m:t,mm:s,h:t,hh:s,d:t,dd:s,M:t,MM:s,y:t,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(p){return p+"-oji"},week:{dow:1,doy:4}})}(i(15439))},39991:function(oe,x,i){!function(e){"use strict";var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function a(d,p,u){return u?p%10==1&&p%100!=11?d[2]:d[3]:p%10==1&&p%100!=11?d[0]:d[1]}function t(d,p,u){return d+" "+a(n[u],d,p)}function l(d,p,u){return a(n[u],d,p)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function h(d,p){return p?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:t,m:l,mm:t,h:l,hh:t,d:l,dd:t,M:l,MM:t,y:l,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},28477:function(oe,x,i){!function(e){"use strict";var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,l){return 1===t?l[0]:t>=2&&t<=4?l[1]:l[2]},translate:function(t,l,h){var s=n.words[h];return 1===h.length?l?s[0]:s[1]:t+" "+n.correctGrammaticalCase(t,s)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(15439))},55118:function(oe,x,i){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(15439))},15943:function(oe,x,i){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(a){var t=a%10,l=a%100;return 0===a?a+"-\u0435\u0432":0===l?a+"-\u0435\u043d":l>10&&l<20?a+"-\u0442\u0438":1===t?a+"-\u0432\u0438":2===t?a+"-\u0440\u0438":7===t||8===t?a+"-\u043c\u0438":a+"-\u0442\u0438"},week:{dow:1,doy:7}})}(i(15439))},13849:function(oe,x,i){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(a,t){return 12===a&&(a=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&a>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?a+12:a},meridiem:function(a,t,l){return a<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":a<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":a<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":a<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(i(15439))},31977:function(oe,x,i){!function(e){"use strict";function n(t,l,h,s){switch(h){case"s":return l?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return t+(l?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(l?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(l?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(l?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(l?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(l?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(t){return"\u04ae\u0425"===t},meridiem:function(t,l,h){return t<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,l){switch(l){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})}(i(15439))},66184:function(oe,x,i){!function(e){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},a={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function t(h,s,d,p){var u="";if(s)switch(d){case"s":u="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":u="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":u="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":u="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":u="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":u="%d \u0924\u093e\u0938";break;case"d":u="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":u="%d \u0926\u093f\u0935\u0938";break;case"M":u="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":u="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":u="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":u="%d \u0935\u0930\u094d\u0937\u0947"}else switch(d){case"s":u="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":u="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":u="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":u="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":u="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":u="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":u="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":u="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":u="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":u="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":u="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":u="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return u.replace(/%d/i,h)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},preparse:function(h){return h.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(s){return a[s]})},postformat:function(h){return h.replace(/\d/g,function(s){return n[s]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(h,s){return 12===h&&(h=0),"\u092a\u0939\u093e\u091f\u0947"===s||"\u0938\u0915\u093e\u0933\u0940"===s?h:"\u0926\u0941\u092a\u093e\u0930\u0940"===s||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===s||"\u0930\u093e\u0924\u094d\u0930\u0940"===s?h>=12?h:h+12:void 0},meridiem:function(h,s,d){return h>=0&&h<6?"\u092a\u0939\u093e\u091f\u0947":h<12?"\u0938\u0915\u093e\u0933\u0940":h<17?"\u0926\u0941\u092a\u093e\u0930\u0940":h<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(i(15439))},64524:function(oe,x,i){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(a,t){return 12===a&&(a=0),"pagi"===t?a:"tengahari"===t?a>=11?a:a+12:"petang"===t||"malam"===t?a+12:void 0},meridiem:function(a,t,l){return a<11?"pagi":a<15?"tengahari":a<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(i(15439))},70485:function(oe,x,i){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(a,t){return 12===a&&(a=0),"pagi"===t?a:"tengahari"===t?a>=11?a:a+12:"petang"===t||"malam"===t?a+12:void 0},meridiem:function(a,t,l){return a<11?"pagi":a<15?"tengahari":a<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(i(15439))},36681:function(oe,x,i){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(15439))},52024:function(oe,x,i){!function(e){"use strict";var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},a={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(l){return l.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},week:{dow:1,doy:4}})}(i(15439))},42688:function(oe,x,i){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},68914:function(oe,x,i){!function(e){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},a={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(l){return l.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u0930\u093e\u0924\u093f"===h?l<4?l:l+12:"\u092c\u093f\u0939\u093e\u0928"===h?l:"\u0926\u093f\u0909\u0901\u0938\u094b"===h?l>=10?l:l+12:"\u0938\u093e\u0901\u091d"===h?l+12:void 0},meridiem:function(l,h,s){return l<3?"\u0930\u093e\u0924\u093f":l<12?"\u092c\u093f\u0939\u093e\u0928":l<16?"\u0926\u093f\u0909\u0901\u0938\u094b":l<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(i(15439))},52272:function(oe,x,i){!function(e){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],l=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(s,d){return s?/-MMM-/.test(d)?a[s.month()]:n[s.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(s){return s+(1===s||8===s||s>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(15439))},11758:function(oe,x,i){!function(e){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],l=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(s,d){return s?/-MMM-/.test(d)?a[s.month()]:n[s.month()]:n},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(s){return s+(1===s||8===s||s>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(15439))},41510:function(oe,x,i){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},52797:function(oe,x,i){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(a,t){var l=1===a?"r":2===a?"n":3===a?"r":4===a?"t":"\xe8";return("w"===t||"W"===t)&&(l="a"),a+l},week:{dow:1,doy:4}})}(i(15439))},37944:function(oe,x,i){!function(e){"use strict";var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},a={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(l){return l.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(l,h){return 12===l&&(l=0),"\u0a30\u0a3e\u0a24"===h?l<4?l:l+12:"\u0a38\u0a35\u0a47\u0a30"===h?l:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===h?l>=10?l:l+12:"\u0a38\u0a3c\u0a3e\u0a2e"===h?l+12:void 0},meridiem:function(l,h,s){return l<4?"\u0a30\u0a3e\u0a24":l<10?"\u0a38\u0a35\u0a47\u0a30":l<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":l<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(i(15439))},1605:function(oe,x,i){!function(e){"use strict";var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),a="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),t=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function l(d){return d%10<5&&d%10>1&&~~(d/10)%10!=1}function h(d,p,u){var g=d+" ";switch(u){case"ss":return g+(l(d)?"sekundy":"sekund");case"m":return p?"minuta":"minut\u0119";case"mm":return g+(l(d)?"minuty":"minut");case"h":return p?"godzina":"godzin\u0119";case"hh":return g+(l(d)?"godziny":"godzin");case"ww":return g+(l(d)?"tygodnie":"tygodni");case"MM":return g+(l(d)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return g+(l(d)?"lata":"lat")}}e.defineLocale("pl",{months:function(d,p){return d?/D MMMM/.test(p)?a[d.month()]:n[d.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:h,m:h,mm:h,h,hh:h,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:h,M:"miesi\u0105c",MM:h,y:"rok",yy:h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},73840:function(oe,x,i){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(i(15439))},54225:function(oe,x,i){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(i(15439))},45128:function(oe,x,i){!function(e){"use strict";function n(t,l,h){var d=" ";return(t%100>=20||t>=100&&t%100==0)&&(d=" de "),t+d+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[h]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(i(15439))},35127:function(oe,x,i){!function(e){"use strict";function a(h,s,d){return"m"===d?s?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":h+" "+function n(h,s){var d=h.split("_");return s%10==1&&s%100!=11?d[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?d[1]:d[2]}({ss:s?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:s?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[d],+h)}var t=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:t,longMonthsParse:t,shortMonthsParse:t,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(h){if(h.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(h){if(h.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:a,m:a,mm:a,h:"\u0447\u0430\u0441",hh:a,d:"\u0434\u0435\u043d\u044c",dd:a,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:a,M:"\u043c\u0435\u0441\u044f\u0446",MM:a,y:"\u0433\u043e\u0434",yy:a},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(h){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(h)},meridiem:function(h,s,d){return h<4?"\u043d\u043e\u0447\u0438":h<12?"\u0443\u0442\u0440\u0430":h<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(h,s){switch(s){case"M":case"d":case"DDD":return h+"-\u0439";case"D":return h+"-\u0433\u043e";case"w":case"W":return h+"-\u044f";default:return h}},week:{dow:1,doy:4}})}(i(15439))},32525:function(oe,x,i){!function(e){"use strict";var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],a=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:n,monthsShort:n,weekdays:a,weekdaysShort:a,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(l){return"\u0634\u0627\u0645"===l},meridiem:function(l,h,s){return l<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(l){return l.replace(/\u060c/g,",")},postformat:function(l){return l.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(15439))},59893:function(oe,x,i){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},33123:function(oe,x,i){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(a){return a+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(a){return"\u0db4.\u0dc0."===a||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===a},meridiem:function(a,t,l){return a>11?l?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":l?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(i(15439))},59635:function(oe,x,i){!function(e){"use strict";var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),a="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function t(s){return s>1&&s<5}function l(s,d,p,u){var g=s+" ";switch(p){case"s":return d||u?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return d||u?g+(t(s)?"sekundy":"sek\xfand"):g+"sekundami";case"m":return d?"min\xfata":u?"min\xfatu":"min\xfatou";case"mm":return d||u?g+(t(s)?"min\xfaty":"min\xfat"):g+"min\xfatami";case"h":return d?"hodina":u?"hodinu":"hodinou";case"hh":return d||u?g+(t(s)?"hodiny":"hod\xedn"):g+"hodinami";case"d":return d||u?"de\u0148":"d\u0148om";case"dd":return d||u?g+(t(s)?"dni":"dn\xed"):g+"d\u0148ami";case"M":return d||u?"mesiac":"mesiacom";case"MM":return d||u?g+(t(s)?"mesiace":"mesiacov"):g+"mesiacmi";case"y":return d||u?"rok":"rokom";case"yy":return d||u?g+(t(s)?"roky":"rokov"):g+"rokmi"}}e.defineLocale("sk",{months:n,monthsShort:a,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},78106:function(oe,x,i){!function(e){"use strict";function n(t,l,h,s){var d=t+" ";switch(h){case"s":return l||s?"nekaj sekund":"nekaj sekundami";case"ss":return d+(1===t?l?"sekundo":"sekundi":2===t?l||s?"sekundi":"sekundah":t<5?l||s?"sekunde":"sekundah":"sekund");case"m":return l?"ena minuta":"eno minuto";case"mm":return d+(1===t?l?"minuta":"minuto":2===t?l||s?"minuti":"minutama":t<5?l||s?"minute":"minutami":l||s?"minut":"minutami");case"h":return l?"ena ura":"eno uro";case"hh":return d+(1===t?l?"ura":"uro":2===t?l||s?"uri":"urama":t<5?l||s?"ure":"urami":l||s?"ur":"urami");case"d":return l||s?"en dan":"enim dnem";case"dd":return d+(1===t?l||s?"dan":"dnem":2===t?l||s?"dni":"dnevoma":l||s?"dni":"dnevi");case"M":return l||s?"en mesec":"enim mesecem";case"MM":return d+(1===t?l||s?"mesec":"mesecem":2===t?l||s?"meseca":"mesecema":t<5?l||s?"mesece":"meseci":l||s?"mesecev":"meseci");case"y":return l||s?"eno leto":"enim letom";case"yy":return d+(1===t?l||s?"leto":"letom":2===t?l||s?"leti":"letoma":t<5?l||s?"leta":"leti":l||s?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(15439))},88799:function(oe,x,i){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(a){return"M"===a.charAt(0)},meridiem:function(a,t,l){return a<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},52872:function(oe,x,i){!function(e){"use strict";var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,l){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?l[0]:l[1]:l[2]},translate:function(t,l,h,s){var p,d=n.words[h];return 1===h.length?"y"===h&&l?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":s||l?d[0]:d[1]:(p=n.correctGrammaticalCase(t,d),"yy"===h&&l&&"\u0433\u043e\u0434\u0438\u043d\u0443"===p?t+" \u0433\u043e\u0434\u0438\u043d\u0430":t+" "+p)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(15439))},97949:function(oe,x,i){!function(e){"use strict";var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(t,l){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?l[0]:l[1]:l[2]},translate:function(t,l,h,s){var p,d=n.words[h];return 1===h.length?"y"===h&&l?"jedna godina":s||l?d[0]:d[1]:(p=n.correctGrammaticalCase(t,d),"yy"===h&&l&&"godinu"===p?t+" godina":t+" "+p)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:n.translate,dd:n.translate,M:n.translate,MM:n.translate,y:n.translate,yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(15439))},86167:function(oe,x,i){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(a,t,l){return a<11?"ekuseni":a<15?"emini":a<19?"entsambama":"ebusuku"},meridiemHour:function(a,t){return 12===a&&(a=0),"ekuseni"===t?a:"emini"===t?a>=11?a:a+12:"entsambama"===t||"ebusuku"===t?0===a?0:a+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(15439))},39713:function(oe,x,i){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(i(15439))},41982:function(oe,x,i){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(15439))},22732:function(oe,x,i){!function(e){"use strict";var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},a={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(l){return l+"\u0bb5\u0ba4\u0bc1"},preparse:function(l){return l.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(h){return a[h]})},postformat:function(l){return l.replace(/\d/g,function(h){return n[h]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(l,h,s){return l<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":l<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":l<10?" \u0b95\u0bbe\u0bb2\u0bc8":l<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":l<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":l<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(l,h){return 12===l&&(l=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===h?l<2?l:l+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===h||"\u0b95\u0bbe\u0bb2\u0bc8"===h||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===h&&l>=10?l:l+12},week:{dow:0,doy:6}})}(i(15439))},43636:function(oe,x,i){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(a,t){return 12===a&&(a=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?a<4?a:a+12:"\u0c09\u0c26\u0c2f\u0c02"===t?a:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?a>=10?a:a+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?a+12:void 0},meridiem:function(a,t,l){return a<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":a<10?"\u0c09\u0c26\u0c2f\u0c02":a<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":a<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(i(15439))},2115:function(oe,x,i){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(15439))},69801:function(oe,x,i){!function(e){"use strict";var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(t,l){return 12===t&&(t=0),"\u0448\u0430\u0431"===l?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===l?t:"\u0440\u04ef\u0437"===l?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===l?t+12:void 0},meridiem:function(t,l,h){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(n[t]||n[t%10]||n[t>=100?100:null])},week:{dow:1,doy:7}})}(i(15439))},2868:function(oe,x,i){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(a){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===a},meridiem:function(a,t,l){return a<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(i(15439))},31310:function(oe,x,i){!function(e){"use strict";var n={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(t,l){switch(l){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'unjy";var h=t%10;return t+(n[h]||n[t%100-h]||n[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(15439))},22360:function(oe,x,i){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(a){return a},week:{dow:1,doy:4}})}(i(15439))},66645:function(oe,x,i){!function(e){"use strict";var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function l(d,p,u,g){var v=function h(d){var p=Math.floor(d%1e3/100),u=Math.floor(d%100/10),g=d%10,v="";return p>0&&(v+=n[p]+"vatlh"),u>0&&(v+=(""!==v?" ":"")+n[u]+"maH"),g>0&&(v+=(""!==v?" ":"")+n[g]),""===v?"pagh":v}(d);switch(u){case"ss":return v+" lup";case"mm":return v+" tup";case"hh":return v+" rep";case"dd":return v+" jaj";case"MM":return v+" jar";case"yy":return v+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function a(d){var p=d;return-1!==d.indexOf("jaj")?p.slice(0,-3)+"leS":-1!==d.indexOf("jar")?p.slice(0,-3)+"waQ":-1!==d.indexOf("DIS")?p.slice(0,-3)+"nem":p+" pIq"},past:function t(d){var p=d;return-1!==d.indexOf("jaj")?p.slice(0,-3)+"Hu\u2019":-1!==d.indexOf("jar")?p.slice(0,-3)+"wen":-1!==d.indexOf("DIS")?p.slice(0,-3)+"ben":p+" ret"},s:"puS lup",ss:l,m:"wa\u2019 tup",mm:l,h:"wa\u2019 rep",hh:l,d:"wa\u2019 jaj",dd:l,M:"wa\u2019 jar",MM:l,y:"wa\u2019 DIS",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},98374:function(oe,x,i){!function(e){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(t,l,h){return t<12?h?"\xf6\xf6":"\xd6\xd6":h?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(t){return"\xf6s"===t||"\xd6S"===t},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,l){switch(l){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var h=t%10;return t+(n[h]||n[t%100-h]||n[t>=100?100:null])}},week:{dow:1,doy:7}})}(i(15439))},256:function(oe,x,i){!function(e){"use strict";function a(t,l,h,s){var d={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return s||l?d[h][0]:d[h][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,l,h){return t>11?h?"d'o":"D'O":h?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(15439))},61631:function(oe,x,i){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(i(15439))},61595:function(oe,x,i){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(i(15439))},6050:function(oe,x,i){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(a,t){return 12===a&&(a=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?a:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?a+12:a>=11?a:a+12},meridiem:function(a,t,l){var h=100*a+t;return h<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":h<900?"\u0633\u06d5\u06be\u06d5\u0631":h<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":h<1230?"\u0686\u06c8\u0634":h<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(a,t){switch(t){case"d":case"D":case"DDD":return a+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return a+"-\u06be\u06d5\u067e\u062a\u06d5";default:return a}},preparse:function(a){return a.replace(/\u060c/g,",")},postformat:function(a){return a.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(i(15439))},65610:function(oe,x,i){!function(e){"use strict";function a(s,d,p){return"m"===p?d?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===p?d?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":s+" "+function n(s,d){var p=s.split("_");return d%10==1&&d%100!=11?p[0]:d%10>=2&&d%10<=4&&(d%100<10||d%100>=20)?p[1]:p[2]}({ss:d?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:d?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:d?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[p],+s)}function l(s){return function(){return s+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function t(s,d){var p={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===s?p.nominative.slice(1,7).concat(p.nominative.slice(0,1)):s?p[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(d)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(d)?"genitive":"nominative"][s.day()]:p.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:l("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:l("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:l("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:l("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return l("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return l("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:a,m:a,mm:a,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:a,d:"\u0434\u0435\u043d\u044c",dd:a,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:a,y:"\u0440\u0456\u043a",yy:a},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(s){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(s)},meridiem:function(s,d,p){return s<4?"\u043d\u043e\u0447\u0456":s<12?"\u0440\u0430\u043d\u043a\u0443":s<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(s,d){switch(d){case"M":case"d":case"DDD":case"w":case"W":return s+"-\u0439";case"D":return s+"-\u0433\u043e";default:return s}},week:{dow:1,doy:7}})}(i(15439))},86077:function(oe,x,i){!function(e){"use strict";var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],a=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:n,monthsShort:n,weekdays:a,weekdaysShort:a,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(l){return"\u0634\u0627\u0645"===l},meridiem:function(l,h,s){return l<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(l){return l.replace(/\u060c/g,",")},postformat:function(l){return l.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(i(15439))},12207:function(oe,x,i){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(i(15439))},22862:function(oe,x,i){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(i(15439))},48093:function(oe,x,i){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(a){return/^ch$/i.test(a)},meridiem:function(a,t,l){return a<12?l?"sa":"SA":l?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(a){return a},week:{dow:1,doy:4}})}(i(15439))},25590:function(oe,x,i){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var t=a%10;return a+(1==~~(a%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(15439))},9058:function(oe,x,i){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(i(15439))},77908:function(oe,x,i){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(a,t){return 12===a&&(a=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?a:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?a+12:a>=11?a:a+12},meridiem:function(a,t,l){var h=100*a+t;return h<600?"\u51cc\u6668":h<900?"\u65e9\u4e0a":h<1130?"\u4e0a\u5348":h<1230?"\u4e2d\u5348":h<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(a){return a.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(a){return this.week()!==a.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(a,t){switch(t){case"d":case"D":case"DDD":return a+"\u65e5";case"M":return a+"\u6708";case"w":case"W":return a+"\u5468";default:return a}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(i(15439))},8867:function(oe,x,i){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(a,t){return 12===a&&(a=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?a:"\u4e2d\u5348"===t?a>=11?a:a+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?a+12:void 0},meridiem:function(a,t,l){var h=100*a+t;return h<600?"\u51cc\u6668":h<900?"\u65e9\u4e0a":h<1200?"\u4e0a\u5348":1200===h?"\u4e2d\u5348":h<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(a,t){switch(t){case"d":case"D":case"DDD":return a+"\u65e5";case"M":return a+"\u6708";case"w":case"W":return a+"\u9031";default:return a}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(i(15439))},31133:function(oe,x,i){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(a,t){return 12===a&&(a=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?a:"\u4e2d\u5348"===t?a>=11?a:a+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?a+12:void 0},meridiem:function(a,t,l){var h=100*a+t;return h<600?"\u51cc\u6668":h<900?"\u65e9\u4e0a":h<1130?"\u4e0a\u5348":h<1230?"\u4e2d\u5348":h<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(a,t){switch(t){case"d":case"D":case"DDD":return a+"\u65e5";case"M":return a+"\u6708";case"w":case"W":return a+"\u9031";default:return a}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(i(15439))},83291:function(oe,x,i){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(a,t){return 12===a&&(a=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?a:"\u4e2d\u5348"===t?a>=11?a:a+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?a+12:void 0},meridiem:function(a,t,l){var h=100*a+t;return h<600?"\u51cc\u6668":h<900?"\u65e9\u4e0a":h<1130?"\u4e0a\u5348":h<1230?"\u4e2d\u5348":h<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(a,t){switch(t){case"d":case"D":case"DDD":return a+"\u65e5";case"M":return a+"\u6708";case"w":case"W":return a+"\u9031";default:return a}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(i(15439))},15439:function(oe,x,i){(oe=i.nmd(oe)).exports=function(){"use strict";var e,E;function n(){return e.apply(null,arguments)}function t(te){return te instanceof Array||"[object Array]"===Object.prototype.toString.call(te)}function l(te){return null!=te&&"[object Object]"===Object.prototype.toString.call(te)}function h(te,Oe){return Object.prototype.hasOwnProperty.call(te,Oe)}function s(te){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(te).length;var Oe;for(Oe in te)if(h(te,Oe))return!1;return!0}function d(te){return void 0===te}function p(te){return"number"==typeof te||"[object Number]"===Object.prototype.toString.call(te)}function u(te){return te instanceof Date||"[object Date]"===Object.prototype.toString.call(te)}function g(te,Oe){var Bt,ht=[],Cn=te.length;for(Bt=0;Bt<Cn;++Bt)ht.push(Oe(te[Bt],Bt));return ht}function v(te,Oe){for(var ht in Oe)h(Oe,ht)&&(te[ht]=Oe[ht]);return h(Oe,"toString")&&(te.toString=Oe.toString),h(Oe,"valueOf")&&(te.valueOf=Oe.valueOf),te}function y(te,Oe,ht,Bt){return xr(te,Oe,ht,Bt,!0).utc()}function S(te){return null==te._pf&&(te._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),te._pf}function D(te){var Oe=null,ht=!1,Bt=te._d&&!isNaN(te._d.getTime());return Bt&&(Oe=S(te),ht=E.call(Oe.parsedDateParts,function(Cn){return null!=Cn}),Bt=Oe.overflow<0&&!Oe.empty&&!Oe.invalidEra&&!Oe.invalidMonth&&!Oe.invalidWeekday&&!Oe.weekdayMismatch&&!Oe.nullInput&&!Oe.invalidFormat&&!Oe.userInvalidated&&(!Oe.meridiem||Oe.meridiem&&ht),te._strict&&(Bt=Bt&&0===Oe.charsLeftOver&&0===Oe.unusedTokens.length&&void 0===Oe.bigHour)),null!=Object.isFrozen&&Object.isFrozen(te)?Bt:(te._isValid=Bt,te._isValid)}function A(te){var Oe=y(NaN);return null!=te?v(S(Oe),te):S(Oe).userInvalidated=!0,Oe}E=Array.prototype.some?Array.prototype.some:function(te){var Bt,Oe=Object(this),ht=Oe.length>>>0;for(Bt=0;Bt<ht;Bt++)if(Bt in Oe&&te.call(this,Oe[Bt],Bt,Oe))return!0;return!1};var P=n.momentProperties=[],B=!1;function V(te,Oe){var ht,Bt,Cn,ni=P.length;if(d(Oe._isAMomentObject)||(te._isAMomentObject=Oe._isAMomentObject),d(Oe._i)||(te._i=Oe._i),d(Oe._f)||(te._f=Oe._f),d(Oe._l)||(te._l=Oe._l),d(Oe._strict)||(te._strict=Oe._strict),d(Oe._tzm)||(te._tzm=Oe._tzm),d(Oe._isUTC)||(te._isUTC=Oe._isUTC),d(Oe._offset)||(te._offset=Oe._offset),d(Oe._pf)||(te._pf=S(Oe)),d(Oe._locale)||(te._locale=Oe._locale),ni>0)for(ht=0;ht<ni;ht++)d(Cn=Oe[Bt=P[ht]])||(te[Bt]=Cn);return te}function X(te){V(this,te),this._d=new Date(null!=te._d?te._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===B&&(B=!0,n.updateOffset(this),B=!1)}function re(te){return te instanceof X||null!=te&&null!=te._isAMomentObject}function Q(te){!1===n.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+te)}function ae(te,Oe){var ht=!0;return v(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,te),ht){var Cn,ni,Li,Bt=[],hr=arguments.length;for(ni=0;ni<hr;ni++){if(Cn="","object"==typeof arguments[ni]){for(Li in Cn+="\n["+ni+"] ",arguments[0])h(arguments[0],Li)&&(Cn+=Li+": "+arguments[0][Li]+", ");Cn=Cn.slice(0,-2)}else Cn=arguments[ni];Bt.push(Cn)}Q(te+"\nArguments: "+Array.prototype.slice.call(Bt).join("")+"\n"+(new Error).stack),ht=!1}return Oe.apply(this,arguments)},Oe)}var le,K={};function k(te,Oe){null!=n.deprecationHandler&&n.deprecationHandler(te,Oe),K[te]||(Q(Oe),K[te]=!0)}function $(te){return typeof Function<"u"&&te instanceof Function||"[object Function]"===Object.prototype.toString.call(te)}function R(te,Oe){var Bt,ht=v({},te);for(Bt in Oe)h(Oe,Bt)&&(l(te[Bt])&&l(Oe[Bt])?(ht[Bt]={},v(ht[Bt],te[Bt]),v(ht[Bt],Oe[Bt])):null!=Oe[Bt]?ht[Bt]=Oe[Bt]:delete ht[Bt]);for(Bt in te)h(te,Bt)&&!h(Oe,Bt)&&l(te[Bt])&&(ht[Bt]=v({},ht[Bt]));return ht}function U(te){null!=te&&this.set(te)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,le=Object.keys?Object.keys:function(te){var Oe,ht=[];for(Oe in te)h(te,Oe)&&ht.push(Oe);return ht};function N(te,Oe,ht){var Bt=""+Math.abs(te);return(te>=0?ht?"+":"":"-")+Math.pow(10,Math.max(0,Oe-Bt.length)).toString().substr(1)+Bt}var pe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,de=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,me={},q={};function se(te,Oe,ht,Bt){var Cn=Bt;"string"==typeof Bt&&(Cn=function(){return this[Bt]()}),te&&(q[te]=Cn),Oe&&(q[Oe[0]]=function(){return N(Cn.apply(this,arguments),Oe[1],Oe[2])}),ht&&(q[ht]=function(){return this.localeData().ordinal(Cn.apply(this,arguments),te)})}function ve(te){return te.match(/\[[\s\S]/)?te.replace(/^\[|\]$/g,""):te.replace(/\\/g,"")}function Ye(te,Oe){return te.isValid()?(Oe=wt(Oe,te.localeData()),me[Oe]=me[Oe]||function Ee(te){var ht,Bt,Oe=te.match(pe);for(ht=0,Bt=Oe.length;ht<Bt;ht++)Oe[ht]=q[Oe[ht]]?q[Oe[ht]]:ve(Oe[ht]);return function(Cn){var Li,ni="";for(Li=0;Li<Bt;Li++)ni+=$(Oe[Li])?Oe[Li].call(Cn,te):Oe[Li];return ni}}(Oe),me[Oe](te)):te.localeData().invalidDate()}function wt(te,Oe){var ht=5;function Bt(Cn){return Oe.longDateFormat(Cn)||Cn}for(de.lastIndex=0;ht>=0&&de.test(te);)te=te.replace(de,Bt),de.lastIndex=0,ht-=1;return te}var Mt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Xt(te){return"string"==typeof te?Mt[te]||Mt[te.toLowerCase()]:void 0}function en(te){var ht,Bt,Oe={};for(Bt in te)h(te,Bt)&&(ht=Xt(Bt))&&(Oe[ht]=te[Bt]);return Oe}var vt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var z,zt=/\d/,bt=/\d\d/,At=/\d{3}/,$e=/\d{4}/,Xe=/[+-]?\d{6}/,Pe=/\d\d?/,Ve=/\d\d\d\d?/,mt=/\d\d\d\d\d\d?/,It=/\d{1,3}/,xn=/\d{1,4}/,_n=/[+-]?\d{1,6}/,Jt=/\d+/,ke=/[+-]?\d+/,Ae=/Z|[+-]\d\d:?\d\d/gi,ze=/Z|[+-]\d\d(?::?\d\d)?/gi,tn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ot=/^[1-9]\d?/,Et=/^([1-9]\d|\d)/;function Z(te,Oe,ht){z[te]=$(Oe)?Oe:function(Bt,Cn){return Bt&&ht?ht:Oe}}function ge(te,Oe){return h(z,te)?z[te](Oe._strict,Oe._locale):new RegExp(function Qe(te){return qe(te.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(Oe,ht,Bt,Cn,ni){return ht||Bt||Cn||ni}))}(te))}function qe(te){return te.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ct(te){return te<0?Math.ceil(te)||0:Math.floor(te)}function Yt(te){var Oe=+te,ht=0;return 0!==Oe&&isFinite(Oe)&&(ht=ct(Oe)),ht}z={};var it={};function Be(te,Oe){var ht,Cn,Bt=Oe;for("string"==typeof te&&(te=[te]),p(Oe)&&(Bt=function(ni,Li){Li[Oe]=Yt(ni)}),Cn=te.length,ht=0;ht<Cn;ht++)it[te[ht]]=Bt}function gt(te,Oe){Be(te,function(ht,Bt,Cn,ni){Cn._w=Cn._w||{},Oe(ht,Cn._w,Cn,ni)})}function ue(te,Oe,ht){null!=Oe&&h(it,te)&&it[te](Oe,ht._a,ht,te)}function Ge(te){return te%4==0&&te%100!=0||te%400==0}var ee=0,De=1,Ot=2,cn=3,Gn=4,_i=5,Ni=6,Nn=7,Mn=8;function On(te){return Ge(te)?366:365}se("Y",0,0,function(){var te=this.year();return te<=9999?N(te,4):"+"+te}),se(0,["YY",2],0,function(){return this.year()%100}),se(0,["YYYY",4],0,"year"),se(0,["YYYYY",5],0,"year"),se(0,["YYYYYY",6,!0],0,"year"),Z("Y",ke),Z("YY",Pe,bt),Z("YYYY",xn,$e),Z("YYYYY",_n,Xe),Z("YYYYYY",_n,Xe),Be(["YYYYY","YYYYYY"],ee),Be("YYYY",function(te,Oe){Oe[ee]=2===te.length?n.parseTwoDigitYear(te):Yt(te)}),Be("YY",function(te,Oe){Oe[ee]=n.parseTwoDigitYear(te)}),Be("Y",function(te,Oe){Oe[ee]=parseInt(te,10)}),n.parseTwoDigitYear=function(te){return Yt(te)+(Yt(te)>68?1900:2e3)};var Wn,Qn=Si("FullYear",!0);function Si(te,Oe){return function(ht){return null!=ht?(rn(this,te,ht),n.updateOffset(this,Oe),this):un(this,te)}}function un(te,Oe){if(!te.isValid())return NaN;var ht=te._d,Bt=te._isUTC;switch(Oe){case"Milliseconds":return Bt?ht.getUTCMilliseconds():ht.getMilliseconds();case"Seconds":return Bt?ht.getUTCSeconds():ht.getSeconds();case"Minutes":return Bt?ht.getUTCMinutes():ht.getMinutes();case"Hours":return Bt?ht.getUTCHours():ht.getHours();case"Date":return Bt?ht.getUTCDate():ht.getDate();case"Day":return Bt?ht.getUTCDay():ht.getDay();case"Month":return Bt?ht.getUTCMonth():ht.getMonth();case"FullYear":return Bt?ht.getUTCFullYear():ht.getFullYear();default:return NaN}}function rn(te,Oe,ht){var Bt,Cn,ni,Li,hr;if(te.isValid()&&!isNaN(ht)){switch(Bt=te._d,Cn=te._isUTC,Oe){case"Milliseconds":return void(Cn?Bt.setUTCMilliseconds(ht):Bt.setMilliseconds(ht));case"Seconds":return void(Cn?Bt.setUTCSeconds(ht):Bt.setSeconds(ht));case"Minutes":return void(Cn?Bt.setUTCMinutes(ht):Bt.setMinutes(ht));case"Hours":return void(Cn?Bt.setUTCHours(ht):Bt.setHours(ht));case"Date":return void(Cn?Bt.setUTCDate(ht):Bt.setDate(ht));case"FullYear":break;default:return}ni=ht,Li=te.month(),hr=29!==(hr=te.date())||1!==Li||Ge(ni)?hr:28,Cn?Bt.setUTCFullYear(ni,Li,hr):Bt.setFullYear(ni,Li,hr)}}function ji(te,Oe){if(isNaN(te)||isNaN(Oe))return NaN;var ht=function Rn(te,Oe){return(te%Oe+Oe)%Oe}(Oe,12);return te+=(Oe-ht)/12,1===ht?Ge(te)?29:28:31-ht%7%2}Wn=Array.prototype.indexOf?Array.prototype.indexOf:function(te){var Oe;for(Oe=0;Oe<this.length;++Oe)if(this[Oe]===te)return Oe;return-1},se("M",["MM",2],"Mo",function(){return this.month()+1}),se("MMM",0,0,function(te){return this.localeData().monthsShort(this,te)}),se("MMMM",0,0,function(te){return this.localeData().months(this,te)}),Z("M",Pe,ot),Z("MM",Pe,bt),Z("MMM",function(te,Oe){return Oe.monthsShortRegex(te)}),Z("MMMM",function(te,Oe){return Oe.monthsRegex(te)}),Be(["M","MM"],function(te,Oe){Oe[De]=Yt(te)-1}),Be(["MMM","MMMM"],function(te,Oe,ht,Bt){var Cn=ht._locale.monthsParse(te,Bt,ht._strict);null!=Cn?Oe[De]=Cn:S(ht).invalidMonth=te});var ir="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),dr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ln=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Vn=tn,Le=tn;function En(te,Oe,ht){var Bt,Cn,ni,Li=te.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Bt=0;Bt<12;++Bt)ni=y([2e3,Bt]),this._shortMonthsParse[Bt]=this.monthsShort(ni,"").toLocaleLowerCase(),this._longMonthsParse[Bt]=this.months(ni,"").toLocaleLowerCase();return ht?"MMM"===Oe?-1!==(Cn=Wn.call(this._shortMonthsParse,Li))?Cn:null:-1!==(Cn=Wn.call(this._longMonthsParse,Li))?Cn:null:"MMM"===Oe?-1!==(Cn=Wn.call(this._shortMonthsParse,Li))||-1!==(Cn=Wn.call(this._longMonthsParse,Li))?Cn:null:-1!==(Cn=Wn.call(this._longMonthsParse,Li))||-1!==(Cn=Wn.call(this._shortMonthsParse,Li))?Cn:null}function $i(te,Oe){if(!te.isValid())return te;if("string"==typeof Oe)if(/^\d+$/.test(Oe))Oe=Yt(Oe);else if(!p(Oe=te.localeData().monthsParse(Oe)))return te;var ht=Oe,Bt=te.date();return Bt=Bt<29?Bt:Math.min(Bt,ji(te.year(),ht)),te._isUTC?te._d.setUTCMonth(ht,Bt):te._d.setMonth(ht,Bt),te}function fr(te){return null!=te?($i(this,te),n.updateOffset(this,!0),this):un(this,"Month")}function on(){function te(Hr,lo){return lo.length-Hr.length}var Cn,ni,Li,hr,Oe=[],ht=[],Bt=[];for(Cn=0;Cn<12;Cn++)ni=y([2e3,Cn]),Li=qe(this.monthsShort(ni,"")),hr=qe(this.months(ni,"")),Oe.push(Li),ht.push(hr),Bt.push(hr),Bt.push(Li);Oe.sort(te),ht.sort(te),Bt.sort(te),this._monthsRegex=new RegExp("^("+Bt.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+ht.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+Oe.join("|")+")","i")}function he(te,Oe,ht,Bt,Cn,ni,Li){var hr;return te<100&&te>=0?(hr=new Date(te+400,Oe,ht,Bt,Cn,ni,Li),isFinite(hr.getFullYear())&&hr.setFullYear(te)):hr=new Date(te,Oe,ht,Bt,Cn,ni,Li),hr}function et(te){var Oe,ht;return te<100&&te>=0?((ht=Array.prototype.slice.call(arguments))[0]=te+400,Oe=new Date(Date.UTC.apply(null,ht)),isFinite(Oe.getUTCFullYear())&&Oe.setUTCFullYear(te)):Oe=new Date(Date.UTC.apply(null,arguments)),Oe}function tt(te,Oe,ht){var Bt=7+Oe-ht;return-(7+et(te,0,Bt).getUTCDay()-Oe)%7+Bt-1}function nn(te,Oe,ht,Bt,Cn){var Hr,lo,hr=1+7*(Oe-1)+(7+ht-Bt)%7+tt(te,Bt,Cn);return hr<=0?lo=On(Hr=te-1)+hr:hr>On(te)?(Hr=te+1,lo=hr-On(te)):(Hr=te,lo=hr),{year:Hr,dayOfYear:lo}}function zn(te,Oe,ht){var ni,Li,Bt=tt(te.year(),Oe,ht),Cn=Math.floor((te.dayOfYear()-Bt-1)/7)+1;return Cn<1?ni=Cn+jt(Li=te.year()-1,Oe,ht):Cn>jt(te.year(),Oe,ht)?(ni=Cn-jt(te.year(),Oe,ht),Li=te.year()+1):(Li=te.year(),ni=Cn),{week:ni,year:Li}}function jt(te,Oe,ht){var Bt=tt(te,Oe,ht),Cn=tt(te+1,Oe,ht);return(On(te)-Bt+Cn)/7}se("w",["ww",2],"wo","week"),se("W",["WW",2],"Wo","isoWeek"),Z("w",Pe,ot),Z("ww",Pe,bt),Z("W",Pe,ot),Z("WW",Pe,bt),gt(["w","ww","W","WW"],function(te,Oe,ht,Bt){Oe[Bt.substr(0,1)]=Yt(te)});function kr(te,Oe){return te.slice(Oe,7).concat(te.slice(0,Oe))}se("d",0,"do","day"),se("dd",0,0,function(te){return this.localeData().weekdaysMin(this,te)}),se("ddd",0,0,function(te){return this.localeData().weekdaysShort(this,te)}),se("dddd",0,0,function(te){return this.localeData().weekdays(this,te)}),se("e",0,0,"weekday"),se("E",0,0,"isoWeekday"),Z("d",Pe),Z("e",Pe),Z("E",Pe),Z("dd",function(te,Oe){return Oe.weekdaysMinRegex(te)}),Z("ddd",function(te,Oe){return Oe.weekdaysShortRegex(te)}),Z("dddd",function(te,Oe){return Oe.weekdaysRegex(te)}),gt(["dd","ddd","dddd"],function(te,Oe,ht,Bt){var Cn=ht._locale.weekdaysParse(te,Bt,ht._strict);null!=Cn?Oe.d=Cn:S(ht).invalidWeekday=te}),gt(["d","e","E"],function(te,Oe,ht,Bt){Oe[Bt]=Yt(te)});var Er="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),fo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Tr=tn,Br=tn,_o=tn;function Jn(te,Oe,ht){var Bt,Cn,ni,Li=te.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Bt=0;Bt<7;++Bt)ni=y([2e3,1]).day(Bt),this._minWeekdaysParse[Bt]=this.weekdaysMin(ni,"").toLocaleLowerCase(),this._shortWeekdaysParse[Bt]=this.weekdaysShort(ni,"").toLocaleLowerCase(),this._weekdaysParse[Bt]=this.weekdays(ni,"").toLocaleLowerCase();return ht?"dddd"===Oe?-1!==(Cn=Wn.call(this._weekdaysParse,Li))?Cn:null:"ddd"===Oe?-1!==(Cn=Wn.call(this._shortWeekdaysParse,Li))?Cn:null:-1!==(Cn=Wn.call(this._minWeekdaysParse,Li))?Cn:null:"dddd"===Oe?-1!==(Cn=Wn.call(this._weekdaysParse,Li))||-1!==(Cn=Wn.call(this._shortWeekdaysParse,Li))||-1!==(Cn=Wn.call(this._minWeekdaysParse,Li))?Cn:null:"ddd"===Oe?-1!==(Cn=Wn.call(this._shortWeekdaysParse,Li))||-1!==(Cn=Wn.call(this._weekdaysParse,Li))||-1!==(Cn=Wn.call(this._minWeekdaysParse,Li))?Cn:null:-1!==(Cn=Wn.call(this._minWeekdaysParse,Li))||-1!==(Cn=Wn.call(this._weekdaysParse,Li))||-1!==(Cn=Wn.call(this._shortWeekdaysParse,Li))?Cn:null}function w(){function te(Ya,Ys){return Ys.length-Ya.length}var ni,Li,hr,Hr,lo,Oe=[],ht=[],Bt=[],Cn=[];for(ni=0;ni<7;ni++)Li=y([2e3,1]).day(ni),hr=qe(this.weekdaysMin(Li,"")),Hr=qe(this.weekdaysShort(Li,"")),lo=qe(this.weekdays(Li,"")),Oe.push(hr),ht.push(Hr),Bt.push(lo),Cn.push(hr),Cn.push(Hr),Cn.push(lo);Oe.sort(te),ht.sort(te),Bt.sort(te),Cn.sort(te),this._weekdaysRegex=new RegExp("^("+Cn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Bt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+ht.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Oe.join("|")+")","i")}function ne(){return this.hours()%12||12}function Ue(te,Oe){se(te,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),Oe)})}function at(te,Oe){return Oe._meridiemParse}se("H",["HH",2],0,"hour"),se("h",["hh",2],0,ne),se("k",["kk",2],0,function be(){return this.hours()||24}),se("hmm",0,0,function(){return""+ne.apply(this)+N(this.minutes(),2)}),se("hmmss",0,0,function(){return""+ne.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),se("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),se("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),Ue("a",!0),Ue("A",!1),Z("a",at),Z("A",at),Z("H",Pe,Et),Z("h",Pe,ot),Z("k",Pe,ot),Z("HH",Pe,bt),Z("hh",Pe,bt),Z("kk",Pe,bt),Z("hmm",Ve),Z("hmmss",mt),Z("Hmm",Ve),Z("Hmmss",mt),Be(["H","HH"],cn),Be(["k","kk"],function(te,Oe,ht){var Bt=Yt(te);Oe[cn]=24===Bt?0:Bt}),Be(["a","A"],function(te,Oe,ht){ht._isPm=ht._locale.isPM(te),ht._meridiem=te}),Be(["h","hh"],function(te,Oe,ht){Oe[cn]=Yt(te),S(ht).bigHour=!0}),Be("hmm",function(te,Oe,ht){var Bt=te.length-2;Oe[cn]=Yt(te.substr(0,Bt)),Oe[Gn]=Yt(te.substr(Bt)),S(ht).bigHour=!0}),Be("hmmss",function(te,Oe,ht){var Bt=te.length-4,Cn=te.length-2;Oe[cn]=Yt(te.substr(0,Bt)),Oe[Gn]=Yt(te.substr(Bt,2)),Oe[_i]=Yt(te.substr(Cn)),S(ht).bigHour=!0}),Be("Hmm",function(te,Oe,ht){var Bt=te.length-2;Oe[cn]=Yt(te.substr(0,Bt)),Oe[Gn]=Yt(te.substr(Bt))}),Be("Hmmss",function(te,Oe,ht){var Bt=te.length-4,Cn=te.length-2;Oe[cn]=Yt(te.substr(0,Bt)),Oe[Gn]=Yt(te.substr(Bt,2)),Oe[_i]=Yt(te.substr(Cn))});var Tn=Si("Hours",!0);var an,Zn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ir,monthsShort:dr,week:{dow:0,doy:6},weekdays:Er,weekdaysMin:fo,weekdaysShort:pr,meridiemParse:/[ap]\.?m?\.?/i},ui={},wi={};function bn(te,Oe){var ht,Bt=Math.min(te.length,Oe.length);for(ht=0;ht<Bt;ht+=1)if(te[ht]!==Oe[ht])return ht;return Bt}function Dn(te){return te&&te.toLowerCase().replace("_","-")}function ft(te){var Oe=null;if(void 0===ui[te]&&oe&&oe.exports&&function li(te){return!(!te||!te.match("^[^/\\\\]*$"))}(te))try{Oe=an._abbr,i(46700)("./"+te),ce(Oe)}catch{ui[te]=null}return ui[te]}function ce(te,Oe){var ht;return te&&((ht=d(Oe)?Kt(te):Se(te,Oe))?an=ht:typeof console<"u"&&console.warn&&console.warn("Locale "+te+" not found. Did you forget to load it?")),an._abbr}function Se(te,Oe){if(null!==Oe){var ht,Bt=Zn;if(Oe.abbr=te,null!=ui[te])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Bt=ui[te]._config;else if(null!=Oe.parentLocale)if(null!=ui[Oe.parentLocale])Bt=ui[Oe.parentLocale]._config;else{if(null==(ht=ft(Oe.parentLocale)))return wi[Oe.parentLocale]||(wi[Oe.parentLocale]=[]),wi[Oe.parentLocale].push({name:te,config:Oe}),null;Bt=ht._config}return ui[te]=new U(R(Bt,Oe)),wi[te]&&wi[te].forEach(function(Cn){Se(Cn.name,Cn.config)}),ce(te),ui[te]}return delete ui[te],null}function Kt(te){var Oe;if(te&&te._locale&&te._locale._abbr&&(te=te._locale._abbr),!te)return an;if(!t(te)){if(Oe=ft(te))return Oe;te=[te]}return function ii(te){for(var ht,Bt,Cn,ni,Oe=0;Oe<te.length;){for(ht=(ni=Dn(te[Oe]).split("-")).length,Bt=(Bt=Dn(te[Oe+1]))?Bt.split("-"):null;ht>0;){if(Cn=ft(ni.slice(0,ht).join("-")))return Cn;if(Bt&&Bt.length>=ht&&bn(ni,Bt)>=ht-1)break;ht--}Oe++}return an}(te)}function Un(te){var Oe,ht=te._a;return ht&&-2===S(te).overflow&&(Oe=ht[De]<0||ht[De]>11?De:ht[Ot]<1||ht[Ot]>ji(ht[ee],ht[De])?Ot:ht[cn]<0||ht[cn]>24||24===ht[cn]&&(0!==ht[Gn]||0!==ht[_i]||0!==ht[Ni])?cn:ht[Gn]<0||ht[Gn]>59?Gn:ht[_i]<0||ht[_i]>59?_i:ht[Ni]<0||ht[Ni]>999?Ni:-1,S(te)._overflowDayOfYear&&(Oe<ee||Oe>Ot)&&(Oe=Ot),S(te)._overflowWeeks&&-1===Oe&&(Oe=Nn),S(te)._overflowWeekday&&-1===Oe&&(Oe=Mn),S(te).overflow=Oe),te}var qn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ci=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hi=/Z|[+-]\d\d(?::?\d\d)?/,Ai=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yi=/^\/?Date\((-?\d+)/i,tr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Lr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Gr(te){var Oe,ht,ni,Li,hr,Hr,Bt=te._i,Cn=qn.exec(Bt)||ci.exec(Bt),lo=Ai.length,Ya=zi.length;if(Cn){for(S(te).iso=!0,Oe=0,ht=lo;Oe<ht;Oe++)if(Ai[Oe][1].exec(Cn[1])){Li=Ai[Oe][0],ni=!1!==Ai[Oe][2];break}if(null==Li)return void(te._isValid=!1);if(Cn[3]){for(Oe=0,ht=Ya;Oe<ht;Oe++)if(zi[Oe][1].exec(Cn[3])){hr=(Cn[2]||" ")+zi[Oe][0];break}if(null==hr)return void(te._isValid=!1)}if(!ni&&null!=hr)return void(te._isValid=!1);if(Cn[4]){if(!hi.exec(Cn[4]))return void(te._isValid=!1);Hr="Z"}te._f=Li+(hr||"")+(Hr||""),Ct(te)}else te._isValid=!1}function wo(te){var Oe=parseInt(te,10);return Oe<=49?2e3+Oe:Oe<=999?1900+Oe:Oe}function Uo(te){var ht,Oe=tr.exec(function aa(te){return te.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(te._i));if(Oe){if(ht=function Io(te,Oe,ht,Bt,Cn,ni){var Li=[wo(te),dr.indexOf(Oe),parseInt(ht,10),parseInt(Bt,10),parseInt(Cn,10)];return ni&&Li.push(parseInt(ni,10)),Li}(Oe[4],Oe[3],Oe[2],Oe[5],Oe[6],Oe[7]),!function yo(te,Oe,ht){return!te||pr.indexOf(te)===new Date(Oe[0],Oe[1],Oe[2]).getDay()||(S(ht).weekdayMismatch=!0,ht._isValid=!1,!1)}(Oe[1],ht,te))return;te._a=ht,te._tzm=function Pa(te,Oe,ht){if(te)return Lr[te];if(Oe)return 0;var Bt=parseInt(ht,10),Cn=Bt%100;return(Bt-Cn)/100*60+Cn}(Oe[8],Oe[9],Oe[10]),te._d=et.apply(null,te._a),te._d.setUTCMinutes(te._d.getUTCMinutes()-te._tzm),S(te).rfc2822=!0}else te._isValid=!1}function $o(te,Oe,ht){return te??Oe??ht}function va(te){var Oe,ht,Cn,ni,Li,Bt=[];if(!te._d){for(Cn=function yr(te){var Oe=new Date(n.now());return te._useUTC?[Oe.getUTCFullYear(),Oe.getUTCMonth(),Oe.getUTCDate()]:[Oe.getFullYear(),Oe.getMonth(),Oe.getDate()]}(te),te._w&&null==te._a[Ot]&&null==te._a[De]&&function Tt(te){var Oe,ht,Bt,Cn,ni,Li,hr,Hr,lo;null!=(Oe=te._w).GG||null!=Oe.W||null!=Oe.E?(ni=1,Li=4,ht=$o(Oe.GG,te._a[ee],zn(zr(),1,4).year),Bt=$o(Oe.W,1),((Cn=$o(Oe.E,1))<1||Cn>7)&&(Hr=!0)):(ni=te._locale._week.dow,Li=te._locale._week.doy,lo=zn(zr(),ni,Li),ht=$o(Oe.gg,te._a[ee],lo.year),Bt=$o(Oe.w,lo.week),null!=Oe.d?((Cn=Oe.d)<0||Cn>6)&&(Hr=!0):null!=Oe.e?(Cn=Oe.e+ni,(Oe.e<0||Oe.e>6)&&(Hr=!0)):Cn=ni),Bt<1||Bt>jt(ht,ni,Li)?S(te)._overflowWeeks=!0:null!=Hr?S(te)._overflowWeekday=!0:(hr=nn(ht,Bt,Cn,ni,Li),te._a[ee]=hr.year,te._dayOfYear=hr.dayOfYear)}(te),null!=te._dayOfYear&&(Li=$o(te._a[ee],Cn[ee]),(te._dayOfYear>On(Li)||0===te._dayOfYear)&&(S(te)._overflowDayOfYear=!0),ht=et(Li,0,te._dayOfYear),te._a[De]=ht.getUTCMonth(),te._a[Ot]=ht.getUTCDate()),Oe=0;Oe<3&&null==te._a[Oe];++Oe)te._a[Oe]=Bt[Oe]=Cn[Oe];for(;Oe<7;Oe++)te._a[Oe]=Bt[Oe]=null==te._a[Oe]?2===Oe?1:0:te._a[Oe];24===te._a[cn]&&0===te._a[Gn]&&0===te._a[_i]&&0===te._a[Ni]&&(te._nextDay=!0,te._a[cn]=0),te._d=(te._useUTC?et:he).apply(null,Bt),ni=te._useUTC?te._d.getUTCDay():te._d.getDay(),null!=te._tzm&&te._d.setUTCMinutes(te._d.getUTCMinutes()-te._tzm),te._nextDay&&(te._a[cn]=24),te._w&&typeof te._w.d<"u"&&te._w.d!==ni&&(S(te).weekdayMismatch=!0)}}function Ct(te){if(te._f!==n.ISO_8601)if(te._f!==n.RFC_2822){te._a=[],S(te).empty=!0;var ht,Bt,Cn,ni,Li,lo,Ya,Oe=""+te._i,hr=Oe.length,Hr=0;for(Ya=(Cn=wt(te._f,te._locale).match(pe)||[]).length,ht=0;ht<Ya;ht++)(Bt=(Oe.match(ge(ni=Cn[ht],te))||[])[0])&&((Li=Oe.substr(0,Oe.indexOf(Bt))).length>0&&S(te).unusedInput.push(Li),Oe=Oe.slice(Oe.indexOf(Bt)+Bt.length),Hr+=Bt.length),q[ni]?(Bt?S(te).empty=!1:S(te).unusedTokens.push(ni),ue(ni,Bt,te)):te._strict&&!Bt&&S(te).unusedTokens.push(ni);S(te).charsLeftOver=hr-Hr,Oe.length>0&&S(te).unusedInput.push(Oe),te._a[cn]<=12&&!0===S(te).bigHour&&te._a[cn]>0&&(S(te).bigHour=void 0),S(te).parsedDateParts=te._a.slice(0),S(te).meridiem=te._meridiem,te._a[cn]=function Ze(te,Oe,ht){var Bt;return null==ht?Oe:null!=te.meridiemHour?te.meridiemHour(Oe,ht):(null!=te.isPM&&((Bt=te.isPM(ht))&&Oe<12&&(Oe+=12),!Bt&&12===Oe&&(Oe=0)),Oe)}(te._locale,te._a[cn],te._meridiem),null!==(lo=S(te).era)&&(te._a[ee]=te._locale.erasConvertYear(lo,te._a[ee])),va(te),Un(te)}else Uo(te);else Gr(te)}function oo(te){var Oe=te._i,ht=te._f;return te._locale=te._locale||Kt(te._l),null===Oe||void 0===ht&&""===Oe?A({nullInput:!0}):("string"==typeof Oe&&(te._i=Oe=te._locale.preparse(Oe)),re(Oe)?new X(Un(Oe)):(u(Oe)?te._d=Oe:t(ht)?function vn(te){var Oe,ht,Bt,Cn,ni,Li,hr=!1,Hr=te._f.length;if(0===Hr)return S(te).invalidFormat=!0,void(te._d=new Date(NaN));for(Cn=0;Cn<Hr;Cn++)ni=0,Li=!1,Oe=V({},te),null!=te._useUTC&&(Oe._useUTC=te._useUTC),Oe._f=te._f[Cn],Ct(Oe),D(Oe)&&(Li=!0),ni+=S(Oe).charsLeftOver,ni+=10*S(Oe).unusedTokens.length,S(Oe).score=ni,hr?ni<Bt&&(Bt=ni,ht=Oe):(null==Bt||ni<Bt||Li)&&(Bt=ni,ht=Oe,Li&&(hr=!0));v(te,ht||Oe)}(te):ht?Ct(te):function Oi(te){var Oe=te._i;d(Oe)?te._d=new Date(n.now()):u(Oe)?te._d=new Date(Oe.valueOf()):"string"==typeof Oe?function _a(te){var Oe=Yi.exec(te._i);null===Oe?(Gr(te),!1===te._isValid&&(delete te._isValid,Uo(te),!1===te._isValid&&(delete te._isValid,te._strict?te._isValid=!1:n.createFromInputFallback(te)))):te._d=new Date(+Oe[1])}(te):t(Oe)?(te._a=g(Oe.slice(0),function(ht){return parseInt(ht,10)}),va(te)):l(Oe)?function Ci(te){if(!te._d){var Oe=en(te._i);te._a=g([Oe.year,Oe.month,void 0===Oe.day?Oe.date:Oe.day,Oe.hour,Oe.minute,Oe.second,Oe.millisecond],function(Bt){return Bt&&parseInt(Bt,10)}),va(te)}}(te):p(Oe)?te._d=new Date(Oe):n.createFromInputFallback(te)}(te),D(te)||(te._d=null),te))}function xr(te,Oe,ht,Bt,Cn){var ni={};return(!0===Oe||!1===Oe)&&(Bt=Oe,Oe=void 0),(!0===ht||!1===ht)&&(Bt=ht,ht=void 0),(l(te)&&s(te)||t(te)&&0===te.length)&&(te=void 0),ni._isAMomentObject=!0,ni._useUTC=ni._isUTC=Cn,ni._l=ht,ni._i=te,ni._f=Oe,ni._strict=Bt,function rr(te){var Oe=new X(Un(oo(te)));return Oe._nextDay&&(Oe.add(1,"d"),Oe._nextDay=void 0),Oe}(ni)}function zr(te,Oe,ht,Bt){return xr(te,Oe,ht,Bt,!1)}n.createFromInputFallback=ae("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(te){te._d=new Date(te._i+(te._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var Aa=ae("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var te=zr.apply(null,arguments);return this.isValid()&&te.isValid()?te<this?this:te:A()}),Mo=ae("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var te=zr.apply(null,arguments);return this.isValid()&&te.isValid()?te>this?this:te:A()});function ka(te,Oe){var ht,Bt;if(1===Oe.length&&t(Oe[0])&&(Oe=Oe[0]),!Oe.length)return zr();for(ht=Oe[0],Bt=1;Bt<Oe.length;++Bt)(!Oe[Bt].isValid()||Oe[Bt][te](ht))&&(ht=Oe[Bt]);return ht}var ca=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Po(te){var Oe=en(te),ht=Oe.year||0,Bt=Oe.quarter||0,Cn=Oe.month||0,ni=Oe.week||Oe.isoWeek||0,Li=Oe.day||0,hr=Oe.hour||0,Hr=Oe.minute||0,lo=Oe.second||0,Ya=Oe.millisecond||0;this._isValid=function Qs(te){var Oe,Bt,ht=!1,Cn=ca.length;for(Oe in te)if(h(te,Oe)&&(-1===Wn.call(ca,Oe)||null!=te[Oe]&&isNaN(te[Oe])))return!1;for(Bt=0;Bt<Cn;++Bt)if(te[ca[Bt]]){if(ht)return!1;parseFloat(te[ca[Bt]])!==Yt(te[ca[Bt]])&&(ht=!0)}return!0}(Oe),this._milliseconds=+Ya+1e3*lo+6e4*Hr+1e3*hr*60*60,this._days=+Li+7*ni,this._months=+Cn+3*Bt+12*ht,this._data={},this._locale=Kt(),this._bubble()}function Ko(te){return te instanceof Po}function Ji(te){return te<0?-1*Math.round(-1*te):Math.round(te)}function Ma(te,Oe){se(te,0,0,function(){var ht=this.utcOffset(),Bt="+";return ht<0&&(ht=-ht,Bt="-"),Bt+N(~~(ht/60),2)+Oe+N(~~ht%60,2)})}Ma("Z",":"),Ma("ZZ",""),Z("Z",ze),Z("ZZ",ze),Be(["Z","ZZ"],function(te,Oe,ht){ht._useUTC=!0,ht._tzm=Fr(ze,te)});var Fa=/([\+\-]|\d\d)/gi;function Fr(te,Oe){var Cn,ni,ht=(Oe||"").match(te);return null===ht?null:0===(ni=60*(Cn=((ht[ht.length-1]||[])+"").match(Fa)||["-",0,0])[1]+Yt(Cn[2]))?0:"+"===Cn[0]?ni:-ni}function Ao(te,Oe){var ht,Bt;return Oe._isUTC?(ht=Oe.clone(),Bt=(re(te)||u(te)?te.valueOf():zr(te).valueOf())-ht.valueOf(),ht._d.setTime(ht._d.valueOf()+Bt),n.updateOffset(ht,!1),ht):zr(te).local()}function $r(te){return-Math.round(te._d.getTimezoneOffset())}function oi(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var si=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ri(te,Oe){var Cn,ni,Li,ht=te,Bt=null;return Ko(te)?ht={ms:te._milliseconds,d:te._days,M:te._months}:p(te)||!isNaN(+te)?(ht={},Oe?ht[Oe]=+te:ht.milliseconds=+te):(Bt=si.exec(te))?(Cn="-"===Bt[1]?-1:1,ht={y:0,d:Yt(Bt[Ot])*Cn,h:Yt(Bt[cn])*Cn,m:Yt(Bt[Gn])*Cn,s:Yt(Bt[_i])*Cn,ms:Yt(Ji(1e3*Bt[Ni]))*Cn}):(Bt=qt.exec(te))?ht={y:Fi(Bt[2],Cn="-"===Bt[1]?-1:1),M:Fi(Bt[3],Cn),w:Fi(Bt[4],Cn),d:Fi(Bt[5],Cn),h:Fi(Bt[6],Cn),m:Fi(Bt[7],Cn),s:Fi(Bt[8],Cn)}:null==ht?ht={}:"object"==typeof ht&&("from"in ht||"to"in ht)&&(Li=function Xi(te,Oe){var ht;return te.isValid()&&Oe.isValid()?(Oe=Ao(Oe,te),te.isBefore(Oe)?ht=sr(te,Oe):((ht=sr(Oe,te)).milliseconds=-ht.milliseconds,ht.months=-ht.months),ht):{milliseconds:0,months:0}}(zr(ht.from),zr(ht.to)),(ht={}).ms=Li.milliseconds,ht.M=Li.months),ni=new Po(ht),Ko(te)&&h(te,"_locale")&&(ni._locale=te._locale),Ko(te)&&h(te,"_isValid")&&(ni._isValid=te._isValid),ni}function Fi(te,Oe){var ht=te&&parseFloat(te.replace(",","."));return(isNaN(ht)?0:ht)*Oe}function sr(te,Oe){var ht={};return ht.months=Oe.month()-te.month()+12*(Oe.year()-te.year()),te.clone().add(ht.months,"M").isAfter(Oe)&&--ht.months,ht.milliseconds=+Oe-+te.clone().add(ht.months,"M"),ht}function wr(te,Oe){return function(ht,Bt){var ni;return null!==Bt&&!isNaN(+Bt)&&(k(Oe,"moment()."+Oe+"(period, number) is deprecated. Please use moment()."+Oe+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),ni=ht,ht=Bt,Bt=ni),mo(this,Ri(ht,Bt),te),this}}function mo(te,Oe,ht,Bt){var Cn=Oe._milliseconds,ni=Ji(Oe._days),Li=Ji(Oe._months);te.isValid()&&(Bt=Bt??!0,Li&&$i(te,un(te,"Month")+Li*ht),ni&&rn(te,"Date",un(te,"Date")+ni*ht),Cn&&te._d.setTime(te._d.valueOf()+Cn*ht),Bt&&n.updateOffset(te,ni||Li))}Ri.fn=Po.prototype,Ri.invalid=function rs(){return Ri(NaN)};var Jr=wr(1,"add"),na=wr(-1,"subtract");function Qo(te){return"string"==typeof te||te instanceof String}function Va(te){return re(te)||u(te)||Qo(te)||p(te)||function Ra(te){var Oe=t(te),ht=!1;return Oe&&(ht=0===te.filter(function(Bt){return!p(Bt)&&Qo(te)}).length),Oe&&ht}(te)||function Vo(te){var Cn,Oe=l(te)&&!s(te),ht=!1,Bt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Li=Bt.length;for(Cn=0;Cn<Li;Cn+=1)ht=ht||h(te,Bt[Cn]);return Oe&&ht}(te)||null==te}function Rr(te,Oe){if(te.date()<Oe.date())return-Rr(Oe,te);var ht=12*(Oe.year()-te.year())+(Oe.month()-te.month()),Bt=te.clone().add(ht,"months");return-(ht+(Oe-Bt<0?(Oe-Bt)/(Bt-te.clone().add(ht-1,"months")):(Oe-Bt)/(te.clone().add(ht+1,"months")-Bt)))||0}function mr(te){var Oe;return void 0===te?this._locale._abbr:(null!=(Oe=Kt(te))&&(this._locale=Oe),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ur=ae("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(te){return void 0===te?this.localeData():this.locale(te)});function so(){return this._locale}var sa=1e3,Wa=60*sa,ml=60*Wa,kl=3506328*ml;function Ja(te,Oe){return(te%Oe+Oe)%Oe}function ws(te,Oe,ht){return te<100&&te>=0?new Date(te+400,Oe,ht)-kl:new Date(te,Oe,ht).valueOf()}function Ca(te,Oe,ht){return te<100&&te>=0?Date.UTC(te+400,Oe,ht)-kl:Date.UTC(te,Oe,ht)}function el(te,Oe){return Oe.erasAbbrRegex(te)}function Ts(){var Cn,ni,Li,hr,Hr,te=[],Oe=[],ht=[],Bt=[],lo=this.eras();for(Cn=0,ni=lo.length;Cn<ni;++Cn)Li=qe(lo[Cn].name),hr=qe(lo[Cn].abbr),Hr=qe(lo[Cn].narrow),Oe.push(Li),te.push(hr),ht.push(Hr),Bt.push(Li),Bt.push(hr),Bt.push(Hr);this._erasRegex=new RegExp("^("+Bt.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+Oe.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+te.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+ht.join("|")+")","i")}function Ds(te,Oe){se(0,[te,te.length],0,Oe)}function Bo(te,Oe,ht,Bt,Cn){var ni;return null==te?zn(this,Bt,Cn).year:(Oe>(ni=jt(te,Bt,Cn))&&(Oe=ni),$a.call(this,te,Oe,ht,Bt,Cn))}function $a(te,Oe,ht,Bt,Cn){var ni=nn(te,Oe,ht,Bt,Cn),Li=et(ni.year,0,ni.dayOfYear);return this.year(Li.getUTCFullYear()),this.month(Li.getUTCMonth()),this.date(Li.getUTCDate()),this}se("N",0,0,"eraAbbr"),se("NN",0,0,"eraAbbr"),se("NNN",0,0,"eraAbbr"),se("NNNN",0,0,"eraName"),se("NNNNN",0,0,"eraNarrow"),se("y",["y",1],"yo","eraYear"),se("y",["yy",2],0,"eraYear"),se("y",["yyy",3],0,"eraYear"),se("y",["yyyy",4],0,"eraYear"),Z("N",el),Z("NN",el),Z("NNN",el),Z("NNNN",function tl(te,Oe){return Oe.erasNameRegex(te)}),Z("NNNNN",function Os(te,Oe){return Oe.erasNarrowRegex(te)}),Be(["N","NN","NNN","NNNN","NNNNN"],function(te,Oe,ht,Bt){var Cn=ht._locale.erasParse(te,Bt,ht._strict);Cn?S(ht).era=Cn:S(ht).invalidEra=te}),Z("y",Jt),Z("yy",Jt),Z("yyy",Jt),Z("yyyy",Jt),Z("yo",function vs(te,Oe){return Oe._eraYearOrdinalRegex||Jt}),Be(["y","yy","yyy","yyyy"],ee),Be(["yo"],function(te,Oe,ht,Bt){var Cn;ht._locale._eraYearOrdinalRegex&&(Cn=te.match(ht._locale._eraYearOrdinalRegex)),Oe[ee]=ht._locale.eraYearOrdinalParse?ht._locale.eraYearOrdinalParse(te,Cn):parseInt(te,10)}),se(0,["gg",2],0,function(){return this.weekYear()%100}),se(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ds("gggg","weekYear"),Ds("ggggg","weekYear"),Ds("GGGG","isoWeekYear"),Ds("GGGGG","isoWeekYear"),Z("G",ke),Z("g",ke),Z("GG",Pe,bt),Z("gg",Pe,bt),Z("GGGG",xn,$e),Z("gggg",xn,$e),Z("GGGGG",_n,Xe),Z("ggggg",_n,Xe),gt(["gggg","ggggg","GGGG","GGGGG"],function(te,Oe,ht,Bt){Oe[Bt.substr(0,2)]=Yt(te)}),gt(["gg","GG"],function(te,Oe,ht,Bt){Oe[Bt]=n.parseTwoDigitYear(te)}),se("Q",0,"Qo","quarter"),Z("Q",zt),Be("Q",function(te,Oe){Oe[De]=3*(Yt(te)-1)}),se("D",["DD",2],"Do","date"),Z("D",Pe,ot),Z("DD",Pe,bt),Z("Do",function(te,Oe){return te?Oe._dayOfMonthOrdinalParse||Oe._ordinalParse:Oe._dayOfMonthOrdinalParseLenient}),Be(["D","DD"],Ot),Be("Do",function(te,Oe){Oe[Ot]=Yt(te.match(Pe)[0])});var Lo=Si("Date",!0);se("DDD",["DDDD",3],"DDDo","dayOfYear"),Z("DDD",It),Z("DDDD",At),Be(["DDD","DDDD"],function(te,Oe,ht){ht._dayOfYear=Yt(te)}),se("m",["mm",2],0,"minute"),Z("m",Pe,Et),Z("mm",Pe,bt),Be(["m","mm"],Gn);var yl=Si("Minutes",!1);se("s",["ss",2],0,"second"),Z("s",Pe,Et),Z("ss",Pe,bt),Be(["s","ss"],_i);var Sa,we,jo=Si("Seconds",!1);for(se("S",0,0,function(){return~~(this.millisecond()/100)}),se(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),se(0,["SSS",3],0,"millisecond"),se(0,["SSSS",4],0,function(){return 10*this.millisecond()}),se(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),se(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),se(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),se(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),se(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Z("S",It,zt),Z("SS",It,bt),Z("SSS",It,At),Sa="SSSS";Sa.length<=9;Sa+="S")Z(Sa,Jt);function nr(te,Oe){Oe[Ni]=Yt(1e3*("0."+te))}for(Sa="S";Sa.length<=9;Sa+="S")Be(Sa,nr);we=Si("Milliseconds",!1),se("z",0,0,"zoneAbbr"),se("zz",0,0,"zoneName");var mi=X.prototype;function He(te){return te}mi.add=Jr,mi.calendar=function Vt(te,Oe){1===arguments.length&&(arguments[0]?Va(arguments[0])?(te=arguments[0],Oe=void 0):function Xo(te){var Cn,Oe=l(te)&&!s(te),ht=!1,Bt=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(Cn=0;Cn<Bt.length;Cn+=1)ht=ht||h(te,Bt[Cn]);return Oe&&ht}(arguments[0])&&(Oe=arguments[0],te=void 0):(te=void 0,Oe=void 0));var ht=te||zr(),Bt=Ao(ht,this).startOf("day"),Cn=n.calendarFormat(this,Bt)||"sameElse",ni=Oe&&($(Oe[Cn])?Oe[Cn].call(this,ht):Oe[Cn]);return this.format(ni||this.localeData().calendar(Cn,this,zr(ht)))},mi.clone=function st(){return new X(this)},mi.diff=function po(te,Oe,ht){var Bt,Cn,ni;if(!this.isValid())return NaN;if(!(Bt=Ao(te,this)).isValid())return NaN;switch(Cn=6e4*(Bt.utcOffset()-this.utcOffset()),Oe=Xt(Oe)){case"year":ni=Rr(this,Bt)/12;break;case"month":ni=Rr(this,Bt);break;case"quarter":ni=Rr(this,Bt)/3;break;case"second":ni=(this-Bt)/1e3;break;case"minute":ni=(this-Bt)/6e4;break;case"hour":ni=(this-Bt)/36e5;break;case"day":ni=(this-Bt-Cn)/864e5;break;case"week":ni=(this-Bt-Cn)/6048e5;break;default:ni=this-Bt}return ht?ni:ct(ni)},mi.endOf=function Us(te){var Oe,ht;if(void 0===(te=Xt(te))||"millisecond"===te||!this.isValid())return this;switch(ht=this._isUTC?Ca:ws,te){case"year":Oe=ht(this.year()+1,0,1)-1;break;case"quarter":Oe=ht(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Oe=ht(this.year(),this.month()+1,1)-1;break;case"week":Oe=ht(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Oe=ht(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Oe=ht(this.year(),this.month(),this.date()+1)-1;break;case"hour":Oe=this._d.valueOf(),Oe+=ml-Ja(Oe+(this._isUTC?0:this.utcOffset()*Wa),ml)-1;break;case"minute":Oe=this._d.valueOf(),Oe+=Wa-Ja(Oe,Wa)-1;break;case"second":Oe=this._d.valueOf(),Oe+=sa-Ja(Oe,sa)-1}return this._d.setTime(Oe),n.updateOffset(this,!0),this},mi.format=function vo(te){te||(te=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var Oe=Ye(this,te);return this.localeData().postformat(Oe)},mi.from=function Zo(te,Oe){return this.isValid()&&(re(te)&&te.isValid()||zr(te).isValid())?Ri({to:this,from:te}).locale(this.locale()).humanize(!Oe):this.localeData().invalidDate()},mi.fromNow=function ia(te){return this.from(zr(),te)},mi.to=function Ga(te,Oe){return this.isValid()&&(re(te)&&te.isValid()||zr(te).isValid())?Ri({from:this,to:te}).locale(this.locale()).humanize(!Oe):this.localeData().invalidDate()},mi.toNow=function ra(te){return this.to(zr(),te)},mi.get=function $t(te){return $(this[te=Xt(te)])?this[te]():this},mi.invalidAt=function Fl(){return S(this).overflow},mi.isAfter=function ln(te,Oe){var ht=re(te)?te:zr(te);return!(!this.isValid()||!ht.isValid())&&("millisecond"===(Oe=Xt(Oe)||"millisecond")?this.valueOf()>ht.valueOf():ht.valueOf()<this.clone().startOf(Oe).valueOf())},mi.isBefore=function An(te,Oe){var ht=re(te)?te:zr(te);return!(!this.isValid()||!ht.isValid())&&("millisecond"===(Oe=Xt(Oe)||"millisecond")?this.valueOf()<ht.valueOf():this.clone().endOf(Oe).valueOf()<ht.valueOf())},mi.isBetween=function yi(te,Oe,ht,Bt){var Cn=re(te)?te:zr(te),ni=re(Oe)?Oe:zr(Oe);return!!(this.isValid()&&Cn.isValid()&&ni.isValid())&&("("===(Bt=Bt||"()")[0]?this.isAfter(Cn,ht):!this.isBefore(Cn,ht))&&(")"===Bt[1]?this.isBefore(ni,ht):!this.isAfter(ni,ht))},mi.isSame=function Pi(te,Oe){var Bt,ht=re(te)?te:zr(te);return!(!this.isValid()||!ht.isValid())&&("millisecond"===(Oe=Xt(Oe)||"millisecond")?this.valueOf()===ht.valueOf():(Bt=ht.valueOf(),this.clone().startOf(Oe).valueOf()<=Bt&&Bt<=this.clone().endOf(Oe).valueOf()))},mi.isSameOrAfter=function or(te,Oe){return this.isSame(te,Oe)||this.isAfter(te,Oe)},mi.isSameOrBefore=function Nr(te,Oe){return this.isSame(te,Oe)||this.isBefore(te,Oe)},mi.isValid=function Nl(){return D(this)},mi.lang=Ur,mi.locale=mr,mi.localeData=so,mi.max=Mo,mi.min=Aa,mi.parsingFlags=function _l(){return v({},S(this))},mi.set=function Nt(te,Oe){if("object"==typeof te){var Bt,ht=function xt(te){var ht,Oe=[];for(ht in te)h(te,ht)&&Oe.push({unit:ht,priority:vt[ht]});return Oe.sort(function(Bt,Cn){return Bt.priority-Cn.priority}),Oe}(te=en(te)),Cn=ht.length;for(Bt=0;Bt<Cn;Bt++)this[ht[Bt].unit](te[ht[Bt].unit])}else if($(this[te=Xt(te)]))return this[te](Oe);return this},mi.startOf=function ms(te){var Oe,ht;if(void 0===(te=Xt(te))||"millisecond"===te||!this.isValid())return this;switch(ht=this._isUTC?Ca:ws,te){case"year":Oe=ht(this.year(),0,1);break;case"quarter":Oe=ht(this.year(),this.month()-this.month()%3,1);break;case"month":Oe=ht(this.year(),this.month(),1);break;case"week":Oe=ht(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":Oe=ht(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":Oe=ht(this.year(),this.month(),this.date());break;case"hour":Oe=this._d.valueOf(),Oe-=Ja(Oe+(this._isUTC?0:this.utcOffset()*Wa),ml);break;case"minute":Oe=this._d.valueOf(),Oe-=Ja(Oe,Wa);break;case"second":Oe=this._d.valueOf(),Oe-=Ja(Oe,sa)}return this._d.setTime(Oe),n.updateOffset(this,!0),this},mi.subtract=na,mi.toArray=function Oo(){var te=this;return[te.year(),te.month(),te.date(),te.hour(),te.minute(),te.second(),te.millisecond()]},mi.toObject=function gl(){var te=this;return{years:te.year(),months:te.month(),date:te.date(),hours:te.hours(),minutes:te.minutes(),seconds:te.seconds(),milliseconds:te.milliseconds()}},mi.toDate=function as(){return new Date(this.valueOf())},mi.toISOString=function Co(te){if(!this.isValid())return null;var Oe=!0!==te,ht=Oe?this.clone().utc():this;return ht.year()<0||ht.year()>9999?Ye(ht,Oe?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):$(Date.prototype.toISOString)?Oe?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ye(ht,"Z")):Ye(ht,Oe?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},mi.inspect=function Xr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var ht,Bt,te="moment",Oe="";return this.isLocal()||(te=0===this.utcOffset()?"moment.utc":"moment.parseZone",Oe="Z"),ht="["+te+'("]',Bt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(ht+Bt+"-MM-DD[T]HH:mm:ss.SSS"+Oe+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(mi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),mi.toJSON=function Zs(){return this.isValid()?this.toISOString():null},mi.toString=function Vr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},mi.unix=function Xs(){return Math.floor(this.valueOf()/1e3)},mi.valueOf=function Ea(){return this._d.valueOf()-6e4*(this._offset||0)},mi.creationData=function vl(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},mi.eraName=function gs(){var te,Oe,ht,Bt=this.localeData().eras();for(te=0,Oe=Bt.length;te<Oe;++te)if(ht=this.clone().startOf("day").valueOf(),Bt[te].since<=ht&&ht<=Bt[te].until||Bt[te].until<=ht&&ht<=Bt[te].since)return Bt[te].name;return""},mi.eraNarrow=function Hs(){var te,Oe,ht,Bt=this.localeData().eras();for(te=0,Oe=Bt.length;te<Oe;++te)if(ht=this.clone().startOf("day").valueOf(),Bt[te].since<=ht&&ht<=Bt[te].until||Bt[te].until<=ht&&ht<=Bt[te].since)return Bt[te].narrow;return""},mi.eraAbbr=function ss(){var te,Oe,ht,Bt=this.localeData().eras();for(te=0,Oe=Bt.length;te<Oe;++te)if(ht=this.clone().startOf("day").valueOf(),Bt[te].since<=ht&&ht<=Bt[te].until||Bt[te].until<=ht&&ht<=Bt[te].since)return Bt[te].abbr;return""},mi.eraYear=function _s(){var te,Oe,ht,Bt,Cn=this.localeData().eras();for(te=0,Oe=Cn.length;te<Oe;++te)if(ht=Cn[te].since<=Cn[te].until?1:-1,Bt=this.clone().startOf("day").valueOf(),Cn[te].since<=Bt&&Bt<=Cn[te].until||Cn[te].until<=Bt&&Bt<=Cn[te].since)return(this.year()-n(Cn[te].since).year())*ht+Cn[te].offset;return this.year()},mi.year=Qn,mi.isLeapYear=function Ti(){return Ge(this.year())},mi.weekYear=function Is(te){return Bo.call(this,te,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},mi.isoWeekYear=function Ps(te){return Bo.call(this,te,this.isoWeek(),this.isoWeekday(),1,4)},mi.quarter=mi.quarters=function da(te){return null==te?Math.ceil((this.month()+1)/3):this.month(3*(te-1)+this.month()%3)},mi.month=fr,mi.daysInMonth=function Mr(){return ji(this.year(),this.month())},mi.week=mi.weeks=function Ii(te){var Oe=this.localeData().week(this);return null==te?Oe:this.add(7*(te-Oe),"d")},mi.isoWeek=mi.isoWeeks=function cr(te){var Oe=zn(this,1,4).week;return null==te?Oe:this.add(7*(te-Oe),"d")},mi.weeksInYear=function Fo(){var te=this.localeData()._week;return jt(this.year(),te.dow,te.doy)},mi.weeksInWeekYear=function cl(){var te=this.localeData()._week;return jt(this.weekYear(),te.dow,te.doy)},mi.isoWeeksInYear=function bs(){return jt(this.year(),1,4)},mi.isoWeeksInISOWeekYear=function ql(){return jt(this.isoWeekYear(),1,4)},mi.date=Lo,mi.day=mi.days=function Wi(te){if(!this.isValid())return null!=te?this:NaN;var Oe=un(this,"Day");return null!=te?(te=function Hi(te,Oe){return"string"!=typeof te?te:isNaN(te)?"number"==typeof(te=Oe.weekdaysParse(te))?te:null:parseInt(te,10)}(te,this.localeData()),this.add(te-Oe,"d")):Oe},mi.weekday=function Ar(te){if(!this.isValid())return null!=te?this:NaN;var Oe=(this.day()+7-this.localeData()._week.dow)%7;return null==te?Oe:this.add(te-Oe,"d")},mi.isoWeekday=function br(te){if(!this.isValid())return null!=te?this:NaN;if(null!=te){var Oe=function Vi(te,Oe){return"string"==typeof te?Oe.weekdaysParse(te)%7||7:isNaN(te)?null:te}(te,this.localeData());return this.day(this.day()%7?Oe:Oe-7)}return this.day()||7},mi.dayOfYear=function As(te){var Oe=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==te?Oe:this.add(te-Oe,"d")},mi.hour=mi.hours=Tn,mi.minute=mi.minutes=yl,mi.second=mi.seconds=jo,mi.millisecond=mi.milliseconds=we,mi.utcOffset=function fs(te,Oe,ht){var Cn,Bt=this._offset||0;if(!this.isValid())return null!=te?this:NaN;if(null!=te){if("string"==typeof te){if(null===(te=Fr(ze,te)))return this}else Math.abs(te)<16&&!ht&&(te*=60);return!this._isUTC&&Oe&&(Cn=$r(this)),this._offset=te,this._isUTC=!0,null!=Cn&&this.add(Cn,"m"),Bt!==te&&(!Oe||this._changeInProgress?mo(this,Ri(te-Bt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?Bt:$r(this)},mi.utc=function os(te){return this.utcOffset(0,te)},mi.local=function ya(te){return this._isUTC&&(this.utcOffset(0,te),this._isUTC=!1,te&&this.subtract($r(this),"m")),this},mi.parseZone=function Ha(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var te=Fr(Ae,this._i);null!=te?this.utcOffset(te):this.utcOffset(0,!0)}return this},mi.hasAlignedHourOffset=function La(te){return!!this.isValid()&&(te=te?zr(te).utcOffset():0,(this.utcOffset()-te)%60==0)},mi.isDST=function No(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mi.isLocal=function In(){return!!this.isValid()&&!this._isUTC},mi.isUtcOffset=function $n(){return!!this.isValid()&&this._isUTC},mi.isUtc=oi,mi.isUTC=oi,mi.zoneAbbr=function pn(){return this._isUTC?"UTC":""},mi.zoneName=function Mi(){return this._isUTC?"Coordinated Universal Time":""},mi.dates=ae("dates accessor is deprecated. Use date instead.",Lo),mi.months=ae("months accessor is deprecated. Use month instead",fr),mi.years=ae("years accessor is deprecated. Use year instead",Qn),mi.zone=ae("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Sr(te,Oe){return null!=te?("string"!=typeof te&&(te=-te),this.utcOffset(te,Oe),this):-this.utcOffset()}),mi.isDSTShifted=ae("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function sn(){if(!d(this._isDSTShifted))return this._isDSTShifted;var Oe,te={};return V(te,this),(te=oo(te))._a?(Oe=te._isUTC?y(te._a):zr(te._a),this._isDSTShifted=this.isValid()&&function Na(te,Oe,ht){var Li,Bt=Math.min(te.length,Oe.length),Cn=Math.abs(te.length-Oe.length),ni=0;for(Li=0;Li<Bt;Li++)(ht&&te[Li]!==Oe[Li]||!ht&&Yt(te[Li])!==Yt(Oe[Li]))&&ni++;return ni+Cn}(te._a,Oe.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var fe=U.prototype;function rt(te,Oe,ht,Bt){var Cn=Kt(),ni=y().set(Bt,Oe);return Cn[ht](ni,te)}function Pt(te,Oe,ht){if(p(te)&&(Oe=te,te=void 0),te=te||"",null!=Oe)return rt(te,Oe,ht,"month");var Bt,Cn=[];for(Bt=0;Bt<12;Bt++)Cn[Bt]=rt(te,Bt,ht,"month");return Cn}function hn(te,Oe,ht,Bt){"boolean"==typeof te?(p(Oe)&&(ht=Oe,Oe=void 0),Oe=Oe||""):(ht=Oe=te,te=!1,p(Oe)&&(ht=Oe,Oe=void 0),Oe=Oe||"");var Li,Cn=Kt(),ni=te?Cn._week.dow:0,hr=[];if(null!=ht)return rt(Oe,(ht+ni)%7,Bt,"day");for(Li=0;Li<7;Li++)hr[Li]=rt(Oe,(Li+ni)%7,Bt,"day");return hr}fe.calendar=function H(te,Oe,ht){var Bt=this._calendar[te]||this._calendar.sameElse;return $(Bt)?Bt.call(Oe,ht):Bt},fe.longDateFormat=function Ut(te){var Oe=this._longDateFormat[te],ht=this._longDateFormat[te.toUpperCase()];return Oe||!ht?Oe:(this._longDateFormat[te]=ht.match(pe).map(function(Bt){return"MMMM"===Bt||"MM"===Bt||"DD"===Bt||"dddd"===Bt?Bt.slice(1):Bt}).join(""),this._longDateFormat[te])},fe.invalidDate=function Zt(){return this._invalidDate},fe.ordinal=function ie(te){return this._ordinal.replace("%d",te)},fe.preparse=He,fe.postformat=He,fe.relativeTime=function Ie(te,Oe,ht,Bt){var Cn=this._relativeTime[ht];return $(Cn)?Cn(te,Oe,ht,Bt):Cn.replace(/%d/i,te)},fe.pastFuture=function dt(te,Oe){var ht=this._relativeTime[te>0?"future":"past"];return $(ht)?ht(Oe):ht.replace(/%s/i,Oe)},fe.set=function j(te){var Oe,ht;for(ht in te)h(te,ht)&&($(Oe=te[ht])?this[ht]=Oe:this["_"+ht]=Oe);this._config=te,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},fe.eras=function js(te,Oe){var ht,Bt,Cn,ni=this._eras||Kt("en")._eras;for(ht=0,Bt=ni.length;ht<Bt;++ht)switch("string"==typeof ni[ht].since&&(Cn=n(ni[ht].since).startOf("day"),ni[ht].since=Cn.valueOf()),typeof ni[ht].until){case"undefined":ni[ht].until=1/0;break;case"string":Cn=n(ni[ht].until).startOf("day").valueOf(),ni[ht].until=Cn.valueOf()}return ni},fe.erasParse=function Jo(te,Oe,ht){var Bt,Cn,Li,hr,Hr,ni=this.eras();for(te=te.toUpperCase(),Bt=0,Cn=ni.length;Bt<Cn;++Bt)if(Li=ni[Bt].name.toUpperCase(),hr=ni[Bt].abbr.toUpperCase(),Hr=ni[Bt].narrow.toUpperCase(),ht)switch(Oe){case"N":case"NN":case"NNN":if(hr===te)return ni[Bt];break;case"NNNN":if(Li===te)return ni[Bt];break;case"NNNNN":if(Hr===te)return ni[Bt]}else if([Li,hr,Hr].indexOf(te)>=0)return ni[Bt]},fe.erasConvertYear=function ll(te,Oe){var ht=te.since<=te.until?1:-1;return void 0===Oe?n(te.since).year():n(te.since).year()+(Oe-te.offset)*ht},fe.erasAbbrRegex=function qs(te){return h(this,"_erasAbbrRegex")||Ts.call(this),te?this._erasAbbrRegex:this._erasRegex},fe.erasNameRegex=function Js(te){return h(this,"_erasNameRegex")||Ts.call(this),te?this._erasNameRegex:this._erasRegex},fe.erasNarrowRegex=function bl(te){return h(this,"_erasNarrowRegex")||Ts.call(this),te?this._erasNarrowRegex:this._erasRegex},fe.months=function Ft(te,Oe){return te?t(this._months)?this._months[te.month()]:this._months[(this._months.isFormat||Ln).test(Oe)?"format":"standalone"][te.month()]:t(this._months)?this._months:this._months.standalone},fe.monthsShort=function dn(te,Oe){return te?t(this._monthsShort)?this._monthsShort[te.month()]:this._monthsShort[Ln.test(Oe)?"format":"standalone"][te.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fe.monthsParse=function gi(te,Oe,ht){var Bt,Cn,ni;if(this._monthsParseExact)return En.call(this,te,Oe,ht);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Bt=0;Bt<12;Bt++){if(Cn=y([2e3,Bt]),ht&&!this._longMonthsParse[Bt]&&(this._longMonthsParse[Bt]=new RegExp("^"+this.months(Cn,"").replace(".","")+"$","i"),this._shortMonthsParse[Bt]=new RegExp("^"+this.monthsShort(Cn,"").replace(".","")+"$","i")),!ht&&!this._monthsParse[Bt]&&(ni="^"+this.months(Cn,"")+"|^"+this.monthsShort(Cn,""),this._monthsParse[Bt]=new RegExp(ni.replace(".",""),"i")),ht&&"MMMM"===Oe&&this._longMonthsParse[Bt].test(te))return Bt;if(ht&&"MMM"===Oe&&this._shortMonthsParse[Bt].test(te))return Bt;if(!ht&&this._monthsParse[Bt].test(te))return Bt}},fe.monthsRegex=function Kn(te){return this._monthsParseExact?(h(this,"_monthsRegex")||on.call(this),te?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&te?this._monthsStrictRegex:this._monthsRegex)},fe.monthsShortRegex=function ti(te){return this._monthsParseExact?(h(this,"_monthsRegex")||on.call(this),te?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Vn),this._monthsShortStrictRegex&&te?this._monthsShortStrictRegex:this._monthsShortRegex)},fe.week=function Fn(te){return zn(te,this._week.dow,this._week.doy).week},fe.firstDayOfYear=function vi(){return this._week.doy},fe.firstDayOfWeek=function ri(){return this._week.dow},fe.weekdays=function Bn(te,Oe){var ht=t(this._weekdays)?this._weekdays:this._weekdays[te&&!0!==te&&this._weekdays.isFormat.test(Oe)?"format":"standalone"];return!0===te?kr(ht,this._week.dow):te?ht[te.day()]:ht},fe.weekdaysMin=function Lt(te){return!0===te?kr(this._weekdaysMin,this._week.dow):te?this._weekdaysMin[te.day()]:this._weekdaysMin},fe.weekdaysShort=function Sn(te){return!0===te?kr(this._weekdaysShort,this._week.dow):te?this._weekdaysShort[te.day()]:this._weekdaysShort},fe.weekdaysParse=function Di(te,Oe,ht){var Bt,Cn,ni;if(this._weekdaysParseExact)return Jn.call(this,te,Oe,ht);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Bt=0;Bt<7;Bt++){if(Cn=y([2e3,1]).day(Bt),ht&&!this._fullWeekdaysParse[Bt]&&(this._fullWeekdaysParse[Bt]=new RegExp("^"+this.weekdays(Cn,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Bt]=new RegExp("^"+this.weekdaysShort(Cn,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Bt]=new RegExp("^"+this.weekdaysMin(Cn,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Bt]||(ni="^"+this.weekdays(Cn,"")+"|^"+this.weekdaysShort(Cn,"")+"|^"+this.weekdaysMin(Cn,""),this._weekdaysParse[Bt]=new RegExp(ni.replace(".",""),"i")),ht&&"dddd"===Oe&&this._fullWeekdaysParse[Bt].test(te))return Bt;if(ht&&"ddd"===Oe&&this._shortWeekdaysParse[Bt].test(te))return Bt;if(ht&&"dd"===Oe&&this._minWeekdaysParse[Bt].test(te))return Bt;if(!ht&&this._weekdaysParse[Bt].test(te))return Bt}},fe.weekdaysRegex=function bo(te){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||w.call(this),te?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Tr),this._weekdaysStrictRegex&&te?this._weekdaysStrictRegex:this._weekdaysRegex)},fe.weekdaysShortRegex=function xo(te){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||w.call(this),te?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Br),this._weekdaysShortStrictRegex&&te?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fe.weekdaysMinRegex=function Re(te){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||w.call(this),te?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_o),this._weekdaysMinStrictRegex&&te?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fe.isPM=function Rt(te){return"p"===(te+"").toLowerCase().charAt(0)},fe.meridiem=function Yn(te,Oe,ht){return te>11?ht?"pm":"PM":ht?"am":"AM"},ce("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(te){var Oe=te%10;return te+(1===Yt(te%100/10)?"th":1===Oe?"st":2===Oe?"nd":3===Oe?"rd":"th")}}),n.lang=ae("moment.lang is deprecated. Use moment.locale instead.",ce),n.langData=ae("moment.langData is deprecated. Use moment.localeData instead.",Kt);var Yr=Math.abs;function ls(te,Oe,ht,Bt){var Cn=Ri(Oe,ht);return te._milliseconds+=Bt*Cn._milliseconds,te._days+=Bt*Cn._days,te._months+=Bt*Cn._months,te._bubble()}function Ka(te){return te<0?Math.floor(te):Math.ceil(te)}function Vs(te){return 4800*te/146097}function ys(te){return 146097*te/4800}function jr(te){return function(){return this.as(te)}}var Ir=jr("ms"),Zr=jr("s"),qa=jr("m"),Ro=jr("h"),Ws=jr("d"),dc=jr("w"),Ls=jr("M"),Wc=jr("Q"),zo=jr("y"),no=Ir;function dl(te){return function(){return this.isValid()?this._data[te]:NaN}}var cs=dl("milliseconds"),zc=dl("seconds"),Yc=dl("minutes"),Tu=dl("hours"),ud=dl("days"),pa=dl("months"),wa=dl("years");var Qa=Math.round,Ul={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gc(te,Oe,ht,Bt,Cn){return Cn.relativeTime(Oe||1,!!ht,te,Bt)}var qr=Math.abs;function Rs(te){return(te>0)-(te<0)||+te}function ul(){if(!this.isValid())return this.localeData().invalidDate();var Bt,Cn,ni,Li,Hr,lo,Ya,Ys,te=qr(this._milliseconds)/1e3,Oe=qr(this._days),ht=qr(this._months),hr=this.asSeconds();return hr?(Bt=ct(te/60),Cn=ct(Bt/60),te%=60,Bt%=60,ni=ct(ht/12),ht%=12,Li=te?te.toFixed(3).replace(/\.?0+$/,""):"",Hr=hr<0?"-":"",lo=Rs(this._months)!==Rs(hr)?"-":"",Ya=Rs(this._days)!==Rs(hr)?"-":"",Ys=Rs(this._milliseconds)!==Rs(hr)?"-":"",Hr+"P"+(ni?lo+ni+"Y":"")+(ht?lo+ht+"M":"")+(Oe?Ya+Oe+"D":"")+(Cn||Bt||te?"T":"")+(Cn?Ys+Cn+"H":"")+(Bt?Ys+Bt+"M":"")+(te?Ys+Li+"S":"")):"P0D"}var go=Po.prototype;return go.isValid=function ja(){return this._isValid},go.abs=function Ho(){var te=this._data;return this._milliseconds=Yr(this._milliseconds),this._days=Yr(this._days),this._months=Yr(this._months),te.milliseconds=Yr(te.milliseconds),te.seconds=Yr(te.seconds),te.minutes=Yr(te.minutes),te.hours=Yr(te.hours),te.months=Yr(te.months),te.years=Yr(te.years),this},go.add=function Wo(te,Oe){return ls(this,te,Oe,1)},go.subtract=function za(te,Oe){return ls(this,te,Oe,-1)},go.as=function cc(te){if(!this.isValid())return NaN;var Oe,ht,Bt=this._milliseconds;if("month"===(te=Xt(te))||"quarter"===te||"year"===te)switch(Oe=this._days+Bt/864e5,ht=this._months+Vs(Oe),te){case"month":return ht;case"quarter":return ht/3;case"year":return ht/12}else switch(Oe=this._days+Math.round(ys(this._months)),te){case"week":return Oe/7+Bt/6048e5;case"day":return Oe+Bt/864e5;case"hour":return 24*Oe+Bt/36e5;case"minute":return 1440*Oe+Bt/6e4;case"second":return 86400*Oe+Bt/1e3;case"millisecond":return Math.floor(864e5*Oe)+Bt;default:throw new Error("Unknown unit "+te)}},go.asMilliseconds=Ir,go.asSeconds=Zr,go.asMinutes=qa,go.asHours=Ro,go.asDays=Ws,go.asWeeks=dc,go.asMonths=Ls,go.asQuarters=Wc,go.asYears=zo,go.valueOf=no,go._bubble=function lc(){var Cn,ni,Li,hr,Hr,te=this._milliseconds,Oe=this._days,ht=this._months,Bt=this._data;return te>=0&&Oe>=0&&ht>=0||te<=0&&Oe<=0&&ht<=0||(te+=864e5*Ka(ys(ht)+Oe),Oe=0,ht=0),Bt.milliseconds=te%1e3,Cn=ct(te/1e3),Bt.seconds=Cn%60,ni=ct(Cn/60),Bt.minutes=ni%60,Li=ct(ni/60),Bt.hours=Li%24,Oe+=ct(Li/24),ht+=Hr=ct(Vs(Oe)),Oe-=Ka(ys(Hr)),hr=ct(ht/12),ht%=12,Bt.days=Oe,Bt.months=ht,Bt.years=hr,this},go.clone=function ua(){return Ri(this)},go.get=function Bl(te){return te=Xt(te),this.isValid()?this[te+"s"]():NaN},go.milliseconds=cs,go.seconds=zc,go.minutes=Yc,go.hours=Tu,go.days=ud,go.weeks=function Cl(){return ct(this.days()/7)},go.months=pa,go.years=wa,go.humanize=function zs(te,Oe){if(!this.isValid())return this.localeData().invalidDate();var Cn,ni,ht=!1,Bt=Ul;return"object"==typeof te&&(Oe=te,te=!1),"boolean"==typeof te&&(ht=te),"object"==typeof Oe&&(Bt=Object.assign({},Ul,Oe),null!=Oe.s&&null==Oe.ss&&(Bt.ss=Oe.s-1)),ni=function pd(te,Oe,ht,Bt){var Cn=Ri(te).abs(),ni=Qa(Cn.as("s")),Li=Qa(Cn.as("m")),hr=Qa(Cn.as("h")),Hr=Qa(Cn.as("d")),lo=Qa(Cn.as("M")),Ya=Qa(Cn.as("w")),Ys=Qa(Cn.as("y")),Eo=ni<=ht.ss&&["s",ni]||ni<ht.s&&["ss",ni]||Li<=1&&["m"]||Li<ht.m&&["mm",Li]||hr<=1&&["h"]||hr<ht.h&&["hh",hr]||Hr<=1&&["d"]||Hr<ht.d&&["dd",Hr];return null!=ht.w&&(Eo=Eo||Ya<=1&&["w"]||Ya<ht.w&&["ww",Ya]),(Eo=Eo||lo<=1&&["M"]||lo<ht.M&&["MM",lo]||Ys<=1&&["y"]||["yy",Ys])[2]=Oe,Eo[3]=+te>0,Eo[4]=Bt,Gc.apply(null,Eo)}(this,!ht,Bt,Cn=this.localeData()),ht&&(ni=Cn.pastFuture(+this,ni)),Cn.postformat(ni)},go.toISOString=ul,go.toString=ul,go.toJSON=ul,go.locale=mr,go.localeData=so,go.toIsoString=ae("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ul),go.lang=Ur,se("X",0,0,"unix"),se("x",0,0,"valueOf"),Z("x",ke),Z("X",/[+-]?\d+(\.\d{1,3})?/),Be("X",function(te,Oe,ht){ht._d=new Date(1e3*parseFloat(te))}),Be("x",function(te,Oe,ht){ht._d=new Date(Yt(te))}),n.version="2.30.1",function a(te){e=te}(zr),n.fn=mi,n.min=function Ss(){return ka("isBefore",[].slice.call(arguments,0))},n.max=function ba(){return ka("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=y,n.unix=function gr(te){return zr(1e3*te)},n.months=function wn(te,Oe){return Pt(te,Oe,"months")},n.isDate=u,n.locale=ce,n.invalid=A,n.duration=Ri,n.isMoment=re,n.weekdays=function ki(te,Oe,ht){return hn(te,Oe,ht,"weekdays")},n.parseZone=function xe(){return zr.apply(null,arguments).parseZone()},n.localeData=Kt,n.isDuration=Ko,n.monthsShort=function pi(te,Oe){return Pt(te,Oe,"monthsShort")},n.weekdaysMin=function lr(te,Oe,ht){return hn(te,Oe,ht,"weekdaysMin")},n.defineLocale=Se,n.updateLocale=function ut(te,Oe){if(null!=Oe){var ht,Bt,Cn=Zn;null!=ui[te]&&null!=ui[te].parentLocale?ui[te].set(R(ui[te]._config,Oe)):(null!=(Bt=ft(te))&&(Cn=Bt._config),Oe=R(Cn,Oe),null==Bt&&(Oe.abbr=te),(ht=new U(Oe)).parentLocale=ui[te],ui[te]=ht),ce(te)}else null!=ui[te]&&(null!=ui[te].parentLocale?(ui[te]=ui[te].parentLocale,te===ce()&&ce(te)):null!=ui[te]&&delete ui[te]);return ui[te]},n.locales=function mn(){return le(ui)},n.weekdaysShort=function ur(te,Oe,ht){return hn(te,Oe,ht,"weekdaysShort")},n.normalizeUnits=Xt,n.relativeTimeRounding=function hd(te){return void 0===te?Qa:"function"==typeof te&&(Qa=te,!0)},n.relativeTimeThreshold=function wc(te,Oe){return void 0!==Ul[te]&&(void 0===Oe?Ul[te]:(Ul[te]=Oe,"s"===te&&(Ul.ss=Oe-1),!0))},n.calendarFormat=function Je(te,Oe){var ht=te.diff(Oe,"days",!0);return ht<-6?"sameElse":ht<-1?"lastWeek":ht<0?"lastDay":ht<1?"sameDay":ht<2?"nextDay":ht<7?"nextWeek":"sameElse"},n.prototype=mi,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},18815:(oe,x,i)=>{"use strict";i.d(x,{bt:()=>Zt,w5:()=>Ut});var e=i(64154),n=i(94650),a=i(81723),t=i(18089),l=i(24006),h=i(36895);const s=["tooltipTemplate"],d=["leftOuterSelectionBar"],p=["rightOuterSelectionBar"],u=["fullBar"],g=["selectionBar"],v=["minHandle"],y=["maxHandle"],b=["floorLabel"],S=["ceilLabel"],E=["minHandleLabel"],D=["maxHandleLabel"],A=["combinedLabel"],P=["ticksElement"];function B(Fe,yt){if(1&Fe&&n.\u0275\u0275element(0,"ng5-slider-tooltip-wrapper",31),2&Fe){const ie=n.\u0275\u0275nextContext().$implicit,Ce=n.\u0275\u0275nextContext();n.\u0275\u0275property("template",Ce.tooltipTemplate)("tooltip",ie.valueTooltip)("placement",ie.valueTooltipPlacement)("content",ie.value)}}function V(Fe,yt){if(1&Fe&&n.\u0275\u0275element(0,"span",32),2&Fe){const ie=n.\u0275\u0275nextContext().$implicit;n.\u0275\u0275property("innerHTML",ie.legend,n.\u0275\u0275sanitizeHtml)}}const X=function(Fe){return{"ng5-slider-selected":Fe}};function re(Fe,yt){if(1&Fe&&(n.\u0275\u0275elementStart(0,"span",27),n.\u0275\u0275element(1,"ng5-slider-tooltip-wrapper",28),n.\u0275\u0275template(2,B,1,4,"ng5-slider-tooltip-wrapper",29),n.\u0275\u0275template(3,V,1,1,"span",30),n.\u0275\u0275elementEnd()),2&Fe){const ie=yt.$implicit,Ce=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(7,X,ie.selected))("ngStyle",ie.style),n.\u0275\u0275advance(1),n.\u0275\u0275property("template",Ce.tooltipTemplate)("tooltip",ie.tooltip)("placement",ie.tooltipPlacement),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",null!=ie.value),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",null!=ie.legend)}}function Q(Fe,yt){}function ae(Fe,yt){1&Fe&&n.\u0275\u0275template(0,Q,0,0,"ng-template")}const K=function(Fe,yt,ie){return{tooltip:Fe,placement:yt,content:ie}};function k(Fe,yt){if(1&Fe&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275template(1,ae,1,0,null,1),n.\u0275\u0275elementContainerEnd()),2&Fe){const ie=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngTemplateOutlet",ie.template)("ngTemplateOutletContext",n.\u0275\u0275pureFunction3(2,K,ie.tooltip,ie.placement,ie.content))}}function $(Fe,yt){if(1&Fe&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275elementStart(1,"div",2),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementContainerEnd()),2&Fe){const ie=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275attribute("title",ie.tooltip)("data-tooltip-placement",ie.placement),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",ie.content," ")}}const j={Min:0,Max:1};j[j.Min]="Min",j[j.Max]="Max";const R={Low:0,High:1,Floor:2,Ceil:3,TickValue:4};R[R.Low]="Low",R[R.High]="High",R[R.Floor]="Floor",R[R.Ceil]="Ceil",R[R.TickValue]="TickValue";class U{constructor(){this.floor=0,this.ceil=null,this.step=1,this.minRange=null,this.maxRange=null,this.pushRange=!1,this.minLimit=null,this.maxLimit=null,this.translate=null,this.combineLabels=null,this.getLegend=null,this.stepsArray=null,this.bindIndexForStepsArray=!1,this.draggableRange=!1,this.draggableRangeOnly=!1,this.showSelectionBar=!1,this.showSelectionBarEnd=!1,this.showSelectionBarFromValue=null,this.showOuterSelectionBars=!1,this.hidePointerLabels=!1,this.hideLimitLabels=!1,this.autoHideLimitLabels=!0,this.readOnly=!1,this.disabled=!1,this.mouseEventsInterval=50,this.touchEventsInterval=50,this.inputEventsInterval=100,this.outputEventsInterval=100,this.showTicks=!1,this.showTicksValues=!1,this.tickStep=null,this.tickValueStep=1,this.ticksArray=null,this.ticksTooltip=null,this.ticksValuesTooltip=null,this.vertical=!1,this.getSelectionBarColor=null,this.getTickColor=null,this.getPointerColor=null,this.keyboardSupport=!0,this.scale=1,this.enforceStep=!0,this.enforceRange=!0,this.noSwitching=!1,this.onlyBindHandles=!1,this.rightToLeft=!1,this.reversedControls=!1,this.boundPointerLabels=!0,this.logScale=!1,this.customValueToPosition=null,this.customPositionToValue=null,this.precisionLimit=12,this.selectionBarGradient=null,this.ariaLabel=null,this.ariaLabelledBy=null,this.ariaLabelHigh=null,this.ariaLabelledByHigh=null,this.handleDimension=null,this.barDimension=null,this.animate=!0}}class le{}class T{static isNullOrUndefined(yt){return null==yt}static linearValueToPosition(yt,ie,Ce){return(yt-ie)/(Ce-ie)}static logValueToPosition(yt,ie,Ce){return((yt=Math.log(yt))-(ie=Math.log(ie)))/((Ce=Math.log(Ce))-ie)}static linearPositionToValue(yt,ie,Ce){return yt*(Ce-ie)+ie}static logPositionToValue(yt,ie,Ce){return ie=Math.log(ie),Ce=Math.log(Ce),Math.exp(yt*(Ce-ie)+ie)}static findStepIndex(yt,ie){const Ce=ie.map(dt=>Math.abs(yt-dt.value));let Ie=0;for(let dt=0;dt<ie.length;dt++)Ce[dt]!==Ce[Ie]&&Ce[dt]<Ce[Ie]&&(Ie=dt);return Ie}}class H{static isTouchEvent(yt){return void 0!==window.TouchEvent?yt instanceof TouchEvent:void 0!==yt.touches}static isResizeObserverAvailable(){return void 0!==window.ResizeObserver}}class N{static roundToPrecisionLimit(yt,ie){return+yt.toPrecision(ie)}static clampToRange(yt,ie,Ce){return Math.min(Math.max(yt,ie),Ce)}}class pe{constructor(){this.eventName=null,this.events=null,this.eventsSubscription=null,this.teardownCallback=null}}class de{constructor(yt){this.renderer=yt}attachPassiveEventListener(yt,ie,Ce,Ie){if(!0!==t.Z.hasSupport)return this.attachEventListener(yt,ie,Ce,Ie);const dt=new pe;dt.eventName=ie,dt.events=new e.xQ;const Mt=Xt=>{dt.events.next(Xt)};return yt.addEventListener(ie,Mt,{passive:!0,capture:!1}),dt.teardownCallback=()=>{yt.removeEventListener(ie,Mt,{passive:!0,capture:!1})},dt.eventsSubscription=dt.events.pipe(T.isNullOrUndefined(Ie)?(0,a.tap)(()=>{}):(0,a.throttleTime)(Ie,void 0,{leading:!0,trailing:!0})).subscribe(Xt=>{Ce(Xt)}),dt}detachEventListener(yt){T.isNullOrUndefined(yt.eventsSubscription)||(yt.eventsSubscription.unsubscribe(),yt.eventsSubscription=null),T.isNullOrUndefined(yt.events)||(yt.events.complete(),yt.events=null),T.isNullOrUndefined(yt.teardownCallback)||(yt.teardownCallback(),yt.teardownCallback=null)}attachEventListener(yt,ie,Ce,Ie){const dt=new pe;return dt.eventName=ie,dt.events=new e.xQ,dt.teardownCallback=this.renderer.listen(yt,ie,Xt=>{dt.events.next(Xt)}),dt.eventsSubscription=dt.events.pipe(T.isNullOrUndefined(Ie)?(0,a.tap)(()=>{}):(0,a.throttleTime)(Ie,void 0,{leading:!0,trailing:!0})).subscribe(Xt=>{Ce(Xt)}),dt}}let me=(()=>{class Fe{constructor(ie,Ce,Ie){this.elemRef=ie,this.renderer=Ce,this.changeDetectionRef=Ie,this._position=0,this._dimension=0,this._alwaysHide=!1,this._vertical=!1,this._scale=1,this.opacity=1,this.visibility="visible",this.left="",this.bottom="",this.height="",this.width="",this.eventListeners=[],this.eventListenerHelper=new de(this.renderer)}get position(){return this._position}get dimension(){return this._dimension}get alwaysHide(){return this._alwaysHide}get vertical(){return this._vertical}get scale(){return this._scale}setAlwaysHide(ie){this._alwaysHide=ie,this.visibility=ie?"hidden":"visible"}hide(){this.opacity=0}show(){this.alwaysHide||(this.opacity=1)}isVisible(){return!this.alwaysHide&&0!==this.opacity}setVertical(ie){this._vertical=ie,this._vertical?(this.left="",this.width=""):(this.bottom="",this.height="")}setScale(ie){this._scale=ie}setPosition(ie){this._position!==ie&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._position=ie,this._vertical?this.bottom=Math.round(ie)+"px":this.left=Math.round(ie)+"px"}calculateDimension(){const ie=this.getBoundingClientRect();this._dimension=this.vertical?(ie.bottom-ie.top)*this.scale:(ie.right-ie.left)*this.scale}setDimension(ie){this._dimension!==ie&&!this.isRefDestroyed()&&this.changeDetectionRef.markForCheck(),this._dimension=ie,this._vertical?this.height=Math.round(ie)+"px":this.width=Math.round(ie)+"px"}getBoundingClientRect(){return this.elemRef.nativeElement.getBoundingClientRect()}on(ie,Ce,Ie){const dt=this.eventListenerHelper.attachEventListener(this.elemRef.nativeElement,ie,Ce,Ie);this.eventListeners.push(dt)}onPassive(ie,Ce,Ie){const dt=this.eventListenerHelper.attachPassiveEventListener(this.elemRef.nativeElement,ie,Ce,Ie);this.eventListeners.push(dt)}off(ie){let Ce,Ie;T.isNullOrUndefined(ie)?(Ce=[],Ie=this.eventListeners):(Ce=this.eventListeners.filter(dt=>dt.eventName!==ie),Ie=this.eventListeners.filter(dt=>dt.eventName===ie));for(const dt of Ie)this.eventListenerHelper.detachEventListener(dt);this.eventListeners=Ce}isRefDestroyed(){return T.isNullOrUndefined(this.changeDetectionRef)||this.changeDetectionRef.destroyed}}return Fe.\u0275fac=function(ie){return new(ie||Fe)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},Fe.\u0275dir=n.\u0275\u0275defineDirective({type:Fe,selectors:[["","ng5SliderElement",""]],hostVars:12,hostBindings:function(ie,Ce){2&ie&&n.\u0275\u0275styleProp("opacity",Ce.opacity)("visibility",Ce.visibility)("left",Ce.left)("bottom",Ce.bottom)("height",Ce.height)("width",Ce.width)}}),Fe})(),q=(()=>{class Fe extends me{constructor(ie,Ce,Ie){super(ie,Ce,Ie),this.active=!1,this.role="",this.tabindex="",this.ariaOrientation="",this.ariaLabel="",this.ariaLabelledBy="",this.ariaValueNow="",this.ariaValueText="",this.ariaValueMin="",this.ariaValueMax=""}focus(){this.elemRef.nativeElement.focus()}}return Fe.\u0275fac=function(ie){return new(ie||Fe)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},Fe.\u0275dir=n.\u0275\u0275defineDirective({type:Fe,selectors:[["","ng5SliderHandle",""]],hostVars:11,hostBindings:function(ie,Ce){2&ie&&(n.\u0275\u0275attribute("role",Ce.role)("tabindex",Ce.tabindex)("aria-orientation",Ce.ariaOrientation)("aria-label",Ce.ariaLabel)("aria-labelledby",Ce.ariaLabelledBy)("aria-valuenow",Ce.ariaValueNow)("aria-valuetext",Ce.ariaValueText)("aria-valuemin",Ce.ariaValueMin)("aria-valuemax",Ce.ariaValueMax),n.\u0275\u0275classProp("ng5-slider-active",Ce.active))},features:[n.\u0275\u0275InheritDefinitionFeature]}),Fe})(),se=(()=>{class Fe extends me{constructor(ie,Ce,Ie){super(ie,Ce,Ie),this._value=null}get value(){return this._value}setValue(ie){let Ce=!1;!this.alwaysHide&&(T.isNullOrUndefined(this.value)||this.value.length!==ie.length||this.value.length>0&&0===this.dimension)&&(Ce=!0),this._value=ie,this.elemRef.nativeElement.innerHTML=ie,Ce&&this.calculateDimension()}}return Fe.\u0275fac=function(ie){return new(ie||Fe)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},Fe.\u0275dir=n.\u0275\u0275defineDirective({type:Fe,selectors:[["","ng5SliderLabel",""]],features:[n.\u0275\u0275InheritDefinitionFeature]}),Fe})();class ve{constructor(){this.selected=!1,this.style={},this.tooltip=null,this.tooltipPlacement=null,this.value=null,this.valueTooltip=null,this.valueTooltipPlacement=null,this.legend=null}}class Ee{constructor(){this.active=!1,this.value=0,this.difference=0,this.position=0,this.lowLimit=0,this.highLimit=0}}class Ye{static compare(yt,ie){return!(T.isNullOrUndefined(yt)&&T.isNullOrUndefined(ie)||T.isNullOrUndefined(yt)!==T.isNullOrUndefined(ie))&&yt.value===ie.value&&yt.highValue===ie.highValue}}class wt extends Ye{static compare(yt,ie){return!(T.isNullOrUndefined(yt)&&T.isNullOrUndefined(ie)||T.isNullOrUndefined(yt)!==T.isNullOrUndefined(ie))&&yt.value===ie.value&&yt.highValue===ie.highValue&&yt.forceChange===ie.forceChange}}const Wt={provide:l.JU,useExisting:(0,n.forwardRef)(()=>Ut),multi:!0};let Ut=(()=>{class Fe{constructor(ie,Ce,Ie,dt){this.renderer=ie,this.elementRef=Ce,this.changeDetectionRef=Ie,this.zone=dt,this.value=null,this.valueChange=new n.EventEmitter,this.highValue=null,this.highValueChange=new n.EventEmitter,this.options=new U,this.userChangeStart=new n.EventEmitter,this.userChange=new n.EventEmitter,this.userChangeEnd=new n.EventEmitter,this.initHasRun=!1,this.inputModelChangeSubject=new e.xQ,this.inputModelChangeSubscription=null,this.outputModelChangeSubject=new e.xQ,this.outputModelChangeSubscription=null,this.viewLowValue=null,this.viewHighValue=null,this.viewOptions=new U,this.handleHalfDimension=0,this.maxHandlePosition=0,this.currentTrackingPointer=null,this.currentFocusPointer=null,this.firstKeyDown=!1,this.touchId=null,this.dragging=new Ee,this.sliderElementVerticalClass=!1,this.sliderElementAnimateClass=!1,this.sliderElementDisabledAttr=null,this.barStyle={},this.minPointerStyle={},this.maxPointerStyle={},this.fullBarTransparentClass=!1,this.selectionBarDraggableClass=!1,this.ticksUnderValuesClass=!1,this.intermediateTicks=!1,this.ticks=[],this.eventListenerHelper=null,this.onMoveEventListener=null,this.onEndEventListener=null,this.resizeObserver=null,this.onTouchedCallback=null,this.onChangeCallback=null,this.eventListenerHelper=new de(this.renderer)}set manualRefresh(ie){this.unsubscribeManualRefresh(),this.manualRefreshSubscription=ie.subscribe(()=>{setTimeout(()=>this.calculateViewDimensionsAndDetectChanges())})}set triggerFocus(ie){this.unsubscribeTriggerFocus(),this.triggerFocusSubscription=ie.subscribe(Ce=>{this.focusPointer(Ce)})}get range(){return!T.isNullOrUndefined(this.value)&&!T.isNullOrUndefined(this.highValue)}get showTicks(){return this.viewOptions.showTicks}ngOnInit(){this.viewOptions=new U,Object.assign(this.viewOptions,this.options),this.updateDisabledState(),this.updateVerticalState()}ngAfterViewInit(){this.applyOptions(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval),this.subscribeOutputModelChangeSubject(this.viewOptions.outputEventsInterval),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.updateVerticalState(),this.manageElementsStyle(),this.updateDisabledState(),this.calculateViewDimensions(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.initHandles(),this.manageEventsBindings(),this.subscribeResizeObserver(),this.initHasRun=!0,this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}ngOnChanges(ie){T.isNullOrUndefined(ie.options)||this.onChangeOptions(),(!T.isNullOrUndefined(ie.value)||!T.isNullOrUndefined(ie.highValue))&&this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}ngOnDestroy(){this.unbindEvents(),this.unsubscribeResizeObserver(),this.unsubscribeInputModelChangeSubject(),this.unsubscribeOutputModelChangeSubject(),this.unsubscribeManualRefresh(),this.unsubscribeTriggerFocus()}writeValue(ie){ie instanceof Array?(this.value=ie[0],this.highValue=ie[1]):this.value=ie,this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})}registerOnChange(ie){this.onChangeCallback=ie}registerOnTouched(ie){this.onTouchedCallback=ie}setDisabledState(ie){this.viewOptions.disabled=ie,this.updateDisabledState()}onResize(ie){this.calculateViewDimensionsAndDetectChanges()}subscribeInputModelChangeSubject(ie){this.inputModelChangeSubscription=this.inputModelChangeSubject.pipe((0,a.distinctUntilChanged)(wt.compare),(0,a.filter)(Ce=>!Ce.forceChange&&!Ce.internalChange),T.isNullOrUndefined(ie)?(0,a.tap)(()=>{}):(0,a.throttleTime)(ie,void 0,{leading:!0,trailing:!0})).subscribe(Ce=>this.applyInputModelChange(Ce))}subscribeOutputModelChangeSubject(ie){this.outputModelChangeSubscription=this.outputModelChangeSubject.pipe((0,a.distinctUntilChanged)(wt.compare),T.isNullOrUndefined(ie)?(0,a.tap)(()=>{}):(0,a.throttleTime)(ie,void 0,{leading:!0,trailing:!0})).subscribe(Ce=>this.publishOutputModelChange(Ce))}subscribeResizeObserver(){H.isResizeObserverAvailable()&&(this.resizeObserver=new ResizeObserver(()=>this.calculateViewDimensionsAndDetectChanges()),this.resizeObserver.observe(this.elementRef.nativeElement))}unsubscribeResizeObserver(){H.isResizeObserverAvailable()&&null!==this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}unsubscribeOnMove(){T.isNullOrUndefined(this.onMoveEventListener)||(this.eventListenerHelper.detachEventListener(this.onMoveEventListener),this.onMoveEventListener=null)}unsubscribeOnEnd(){T.isNullOrUndefined(this.onEndEventListener)||(this.eventListenerHelper.detachEventListener(this.onEndEventListener),this.onEndEventListener=null)}unsubscribeInputModelChangeSubject(){T.isNullOrUndefined(this.inputModelChangeSubscription)||(this.inputModelChangeSubscription.unsubscribe(),this.inputModelChangeSubscription=null)}unsubscribeOutputModelChangeSubject(){T.isNullOrUndefined(this.outputModelChangeSubscription)||(this.outputModelChangeSubscription.unsubscribe(),this.outputModelChangeSubscription=null)}unsubscribeManualRefresh(){T.isNullOrUndefined(this.manualRefreshSubscription)||(this.manualRefreshSubscription.unsubscribe(),this.manualRefreshSubscription=null)}unsubscribeTriggerFocus(){T.isNullOrUndefined(this.triggerFocusSubscription)||(this.triggerFocusSubscription.unsubscribe(),this.triggerFocusSubscription=null)}getPointerElement(ie){return ie===j.Min?this.minHandleElement:ie===j.Max?this.maxHandleElement:null}getCurrentTrackingValue(){return this.currentTrackingPointer===j.Min?this.viewLowValue:this.currentTrackingPointer===j.Max?this.viewHighValue:null}modelValueToViewValue(ie){return T.isNullOrUndefined(ie)?NaN:T.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?+ie:T.findStepIndex(+ie,this.viewOptions.stepsArray)}viewValueToModelValue(ie){return T.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?ie:this.getStepValue(ie)}getStepValue(ie){const Ce=this.viewOptions.stepsArray[ie];return T.isNullOrUndefined(Ce)?NaN:Ce.value}applyViewChange(){this.value=this.viewValueToModelValue(this.viewLowValue),this.range&&(this.highValue=this.viewValueToModelValue(this.viewHighValue)),this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,userEventInitiated:!0,forceChange:!1}),this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!0})}applyInputModelChange(ie){const Ce=this.normaliseModelValues(ie),Ie=!Ye.compare(ie,Ce);Ie&&(this.value=Ce.value,this.highValue=Ce.highValue),this.viewLowValue=this.modelValueToViewValue(Ce.value),this.viewHighValue=this.range?this.modelValueToViewValue(Ce.highValue):null,this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCombinedLabel(),this.outputModelChangeSubject.next({value:Ce.value,highValue:Ce.highValue,forceChange:Ie,userEventInitiated:!1})}publishOutputModelChange(ie){const Ce=()=>{this.valueChange.emit(ie.value),this.range&&this.highValueChange.emit(ie.highValue),T.isNullOrUndefined(this.onChangeCallback)||this.onChangeCallback(this.range?[ie.value,ie.highValue]:ie.value),T.isNullOrUndefined(this.onTouchedCallback)||this.onTouchedCallback(this.range?[ie.value,ie.highValue]:ie.value)};ie.userEventInitiated?(Ce(),this.userChange.emit(this.getChangeContext())):setTimeout(()=>{Ce()})}normaliseModelValues(ie){const Ce=new Ye;if(Ce.value=ie.value,Ce.highValue=ie.highValue,this.viewOptions.enforceStep&&(Ce.value=this.roundStep(Ce.value),this.range&&(Ce.highValue=this.roundStep(Ce.highValue))),!T.isNullOrUndefined(this.viewOptions.stepsArray)||!this.viewOptions.enforceRange)return Ce;if(Ce.value=N.clampToRange(Ce.value,this.viewOptions.floor,this.viewOptions.ceil),this.range&&(Ce.highValue=N.clampToRange(Ce.highValue,this.viewOptions.floor,this.viewOptions.ceil)),this.range&&ie.value>ie.highValue)if(this.viewOptions.noSwitching)Ce.value=Ce.highValue;else{const Ie=ie.value;Ce.value=ie.highValue,Ce.highValue=Ie}return Ce}renormaliseModelValues(){const ie={value:this.value,highValue:this.highValue},Ce=this.normaliseModelValues(ie);Ye.compare(Ce,ie)||(this.value=Ce.value,this.highValue=Ce.highValue,this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!0,userEventInitiated:!1}))}onChangeOptions(){if(!this.initHasRun)return;const ie=this.viewOptions.inputEventsInterval,Ce=this.viewOptions.outputEventsInterval;this.applyOptions(),ie!==this.viewOptions.inputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval)),Ce!==this.viewOptions.outputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.outputEventsInterval)),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.viewHighValue=this.range?this.modelValueToViewValue(this.highValue):null,this.resetSlider()}applyOptions(){if(this.viewOptions=new U,Object.assign(this.viewOptions,this.options),this.viewOptions.draggableRange=this.range&&this.viewOptions.draggableRange,this.viewOptions.draggableRangeOnly=this.range&&this.viewOptions.draggableRangeOnly,this.viewOptions.draggableRangeOnly&&(this.viewOptions.draggableRange=!0),this.viewOptions.showTicks=this.viewOptions.showTicks||this.viewOptions.showTicksValues||!T.isNullOrUndefined(this.viewOptions.ticksArray),this.viewOptions.showTicks&&(!T.isNullOrUndefined(this.viewOptions.tickStep)||!T.isNullOrUndefined(this.viewOptions.ticksArray))&&(this.intermediateTicks=!0),this.viewOptions.showSelectionBar=this.viewOptions.showSelectionBar||this.viewOptions.showSelectionBarEnd||!T.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue),T.isNullOrUndefined(this.viewOptions.stepsArray)?this.applyFloorCeilOptions():this.applyStepsArrayOptions(),T.isNullOrUndefined(this.viewOptions.combineLabels)&&(this.viewOptions.combineLabels=(ie,Ce)=>ie+" - "+Ce),this.viewOptions.logScale&&0===this.viewOptions.floor)throw Error("Can't use floor=0 with logarithmic scale")}applyStepsArrayOptions(){this.viewOptions.floor=0,this.viewOptions.ceil=this.viewOptions.stepsArray.length-1,this.viewOptions.step=1,T.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=ie=>String(this.viewOptions.bindIndexForStepsArray?this.getStepValue(ie):ie)),this.viewOptions.getLegend=ie=>this.viewOptions.stepsArray[ie].legend}applyFloorCeilOptions(){if(T.isNullOrUndefined(this.viewOptions.step)?this.viewOptions.step=1:(this.viewOptions.step=+this.viewOptions.step,this.viewOptions.step<=0&&(this.viewOptions.step=1)),T.isNullOrUndefined(this.viewOptions.ceil)||T.isNullOrUndefined(this.viewOptions.floor))throw Error("floor and ceil options must be supplied");this.viewOptions.ceil=+this.viewOptions.ceil,this.viewOptions.floor=+this.viewOptions.floor,T.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=ie=>String(ie))}resetSlider(){this.manageElementsStyle(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.unbindEvents(),this.manageEventsBindings(),this.updateDisabledState(),this.calculateViewDimensions(),this.refocusPointerIfNeeded()}focusPointer(ie){ie!==j.Min&&ie!==j.Max&&(ie=j.Min),ie===j.Min?this.minHandleElement.focus():this.range&&ie===j.Max&&this.maxHandleElement.focus()}refocusPointerIfNeeded(){T.isNullOrUndefined(this.currentFocusPointer)||(this.onPointerFocus(this.currentFocusPointer),this.getPointerElement(this.currentFocusPointer).focus())}manageElementsStyle(){this.updateScale(),this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels),this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels);const ie=this.viewOptions.showTicksValues&&!this.intermediateTicks;this.minHandleLabelElement.setAlwaysHide(ie||this.viewOptions.hidePointerLabels),this.maxHandleLabelElement.setAlwaysHide(ie||!this.range||this.viewOptions.hidePointerLabels),this.combinedLabelElement.setAlwaysHide(ie||!this.range||this.viewOptions.hidePointerLabels),this.selectionBarElement.setAlwaysHide(!this.range&&!this.viewOptions.showSelectionBar),this.leftOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.rightOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.fullBarTransparentClass=this.range&&this.viewOptions.showOuterSelectionBars,this.selectionBarDraggableClass=this.viewOptions.draggableRange&&!this.viewOptions.onlyBindHandles,this.ticksUnderValuesClass=this.intermediateTicks&&this.options.showTicksValues,this.sliderElementVerticalClass!==this.viewOptions.vertical&&(this.updateVerticalState(),setTimeout(()=>{this.resetSlider()})),this.sliderElementAnimateClass!==this.viewOptions.animate&&setTimeout(()=>{this.sliderElementAnimateClass=this.viewOptions.animate})}manageEventsBindings(){this.viewOptions.disabled||this.viewOptions.readOnly?this.unbindEvents():this.bindEvents()}updateDisabledState(){this.sliderElementDisabledAttr=this.viewOptions.disabled?"disabled":null}updateVerticalState(){this.sliderElementVerticalClass=this.viewOptions.vertical;for(const ie of this.getAllSliderElements())T.isNullOrUndefined(ie)||ie.setVertical(this.viewOptions.vertical)}updateScale(){for(const ie of this.getAllSliderElements())ie.setScale(this.viewOptions.scale)}getAllSliderElements(){return[this.leftOuterSelectionBarElement,this.rightOuterSelectionBarElement,this.fullBarElement,this.selectionBarElement,this.minHandleElement,this.maxHandleElement,this.floorLabelElement,this.ceilLabelElement,this.minHandleLabelElement,this.maxHandleLabelElement,this.combinedLabelElement,this.ticksElement]}initHandles(){this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.range&&this.updateCombinedLabel(),this.updateTicksScale()}addAccessibility(){this.updateAriaAttributes(),this.minHandleElement.role="slider",this.minHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.viewOptions.vertical&&(this.minHandleElement.ariaOrientation="vertical"),T.isNullOrUndefined(this.viewOptions.ariaLabel)?T.isNullOrUndefined(this.viewOptions.ariaLabelledBy)||(this.minHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledBy):this.minHandleElement.ariaLabel=this.viewOptions.ariaLabel,this.range&&(this.maxHandleElement.role="slider",this.maxHandleElement.tabindex=!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?"":"0",this.maxHandleElement.ariaOrientation=this.viewOptions.vertical?"vertical":"horizontal",T.isNullOrUndefined(this.viewOptions.ariaLabelHigh)?T.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)||(this.maxHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledByHigh):this.maxHandleElement.ariaLabel=this.viewOptions.ariaLabelHigh)}updateAriaAttributes(){this.minHandleElement.ariaValueNow=(+this.value).toString(),this.minHandleElement.ariaValueText=this.viewOptions.translate(+this.value,R.Low),this.minHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.minHandleElement.ariaValueMax=this.viewOptions.ceil.toString(),this.range&&(this.maxHandleElement.ariaValueNow=(+this.highValue).toString(),this.maxHandleElement.ariaValueText=this.viewOptions.translate(+this.highValue,R.High),this.maxHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.maxHandleElement.ariaValueMax=this.viewOptions.ceil.toString())}calculateViewDimensions(){T.isNullOrUndefined(this.viewOptions.handleDimension)?this.minHandleElement.calculateDimension():this.minHandleElement.setDimension(this.viewOptions.handleDimension);const ie=this.minHandleElement.dimension;this.handleHalfDimension=ie/2,T.isNullOrUndefined(this.viewOptions.barDimension)?this.fullBarElement.calculateDimension():this.fullBarElement.setDimension(this.viewOptions.barDimension),this.maxHandlePosition=this.fullBarElement.dimension-ie,this.initHasRun&&(this.updateFloorLabel(),this.updateCeilLabel(),this.initHandles())}calculateViewDimensionsAndDetectChanges(){this.calculateViewDimensions(),this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}isRefDestroyed(){return this.changeDetectionRef.destroyed}updateTicksScale(){if(!this.viewOptions.showTicks)return;const ie=T.isNullOrUndefined(this.viewOptions.ticksArray)?this.getTicksArray():this.viewOptions.ticksArray,Ce=this.viewOptions.vertical?"translateY":"translateX";this.viewOptions.rightToLeft&&ie.reverse();const Ie=ie.map(dt=>{let Mt=this.valueToPosition(dt);this.viewOptions.vertical&&(Mt=this.maxHandlePosition-Mt);const Xt=Ce+"("+Math.round(Mt)+"px)",en=new ve;if(en.selected=this.isTickSelected(dt),en.style={"-webkit-transform":Xt,"-moz-transform":Xt,"-o-transform":Xt,"-ms-transform":Xt,transform:Xt},en.selected&&!T.isNullOrUndefined(this.viewOptions.getSelectionBarColor)&&(en.style["background-color"]=this.getSelectionBarColor()),!en.selected&&!T.isNullOrUndefined(this.viewOptions.getTickColor)&&(en.style["background-color"]=this.getTickColor(dt)),T.isNullOrUndefined(this.viewOptions.ticksTooltip)||(en.tooltip=this.viewOptions.ticksTooltip(dt),en.tooltipPlacement=this.viewOptions.vertical?"right":"top"),this.viewOptions.showTicksValues&&dt%this.viewOptions.tickValueStep==0&&(en.value=this.getDisplayValue(dt,R.TickValue),T.isNullOrUndefined(this.viewOptions.ticksValuesTooltip)||(en.valueTooltip=this.viewOptions.ticksValuesTooltip(dt),en.valueTooltipPlacement=this.viewOptions.vertical?"right":"top")),!T.isNullOrUndefined(this.viewOptions.getLegend)){const vt=this.viewOptions.getLegend(dt);T.isNullOrUndefined(vt)||(en.legend=vt)}return en});if(T.isNullOrUndefined(this.ticks)||this.ticks.length!==Ie.length)this.ticks=Ie;else for(let dt=0;dt<Ie.length;++dt)Object.assign(this.ticks[dt],Ie[dt]);this.isRefDestroyed()||this.changeDetectionRef.detectChanges()}getTicksArray(){const ie=T.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep,Ce=[];for(let Ie=this.viewOptions.floor;Ie<=this.viewOptions.ceil;Ie+=ie)Ce.push(Ie);return Ce}isTickSelected(ie){if(!this.range)if(T.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)){if(this.viewOptions.showSelectionBarEnd){if(ie>=this.viewLowValue)return!0}else if(this.viewOptions.showSelectionBar&&ie<=this.viewLowValue)return!0}else{const Ce=this.viewOptions.showSelectionBarFromValue;if(this.viewLowValue>Ce&&ie>=Ce&&ie<=this.viewLowValue)return!0;if(this.viewLowValue<Ce&&ie<=Ce&&ie>=this.viewLowValue)return!0}return!!(this.range&&ie>=this.viewLowValue&&ie<=this.viewHighValue)}updateFloorLabel(){this.floorLabelElement.alwaysHide||(this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor,R.Floor)),this.floorLabelElement.calculateDimension(),this.floorLabelElement.setPosition(this.viewOptions.rightToLeft?this.fullBarElement.dimension-this.floorLabelElement.dimension:0))}updateCeilLabel(){this.ceilLabelElement.alwaysHide||(this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil,R.Ceil)),this.ceilLabelElement.calculateDimension(),this.ceilLabelElement.setPosition(this.viewOptions.rightToLeft?0:this.fullBarElement.dimension-this.ceilLabelElement.dimension))}updateHandles(ie,Ce){ie===j.Min?this.updateLowHandle(Ce):ie===j.Max&&this.updateHighHandle(Ce),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCombinedLabel()}getHandleLabelPos(ie,Ce){const Ie=ie===j.Min?this.minHandleLabelElement.dimension:this.maxHandleLabelElement.dimension,dt=Ce-Ie/2+this.handleHalfDimension,Mt=this.fullBarElement.dimension-Ie;return this.viewOptions.boundPointerLabels?this.viewOptions.rightToLeft&&ie===j.Min||!this.viewOptions.rightToLeft&&ie===j.Max?Math.min(dt,Mt):Math.min(Math.max(dt,0),Mt):dt}updateLowHandle(ie){this.minHandleElement.setPosition(ie),this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue,R.Low)),this.minHandleLabelElement.setPosition(this.getHandleLabelPos(j.Min,ie)),T.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.minPointerStyle={backgroundColor:this.getPointerColor(j.Min)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateHighHandle(ie){this.maxHandleElement.setPosition(ie),this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue,R.High)),this.maxHandleLabelElement.setPosition(this.getHandleLabelPos(j.Max,ie)),T.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.maxPointerStyle={backgroundColor:this.getPointerColor(j.Max)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}updateFloorAndCeilLabelsVisibility(){if(this.viewOptions.hidePointerLabels)return;let ie=!1,Ce=!1;const Ie=this.isLabelBelowFloorLabel(this.minHandleLabelElement),dt=this.isLabelAboveCeilLabel(this.minHandleLabelElement),Mt=this.isLabelAboveCeilLabel(this.maxHandleLabelElement),Xt=this.isLabelBelowFloorLabel(this.combinedLabelElement),en=this.isLabelAboveCeilLabel(this.combinedLabelElement);if(Ie?(ie=!0,this.floorLabelElement.hide()):(ie=!1,this.floorLabelElement.show()),dt?(Ce=!0,this.ceilLabelElement.hide()):(Ce=!1,this.ceilLabelElement.show()),this.range){const vt=this.combinedLabelElement.isVisible()?en:Mt,xt=this.combinedLabelElement.isVisible()?Xt:Ie;vt?this.ceilLabelElement.hide():Ce||this.ceilLabelElement.show(),xt?this.floorLabelElement.hide():ie||this.floorLabelElement.show()}}isLabelBelowFloorLabel(ie){const Ce=ie.position,dt=this.floorLabelElement.position;return this.viewOptions.rightToLeft?Ce+ie.dimension>=dt-2:Ce<=dt+this.floorLabelElement.dimension+2}isLabelAboveCeilLabel(ie){const Ce=ie.position,dt=this.ceilLabelElement.position;return this.viewOptions.rightToLeft?Ce<=dt+this.ceilLabelElement.dimension+2:Ce+ie.dimension>=dt-2}updateSelectionBar(){let ie=0,Ce=0;const Ie=this.viewOptions.rightToLeft?!this.viewOptions.showSelectionBarEnd:this.viewOptions.showSelectionBarEnd,dt=this.viewOptions.rightToLeft?this.maxHandleElement.position+this.handleHalfDimension:this.minHandleElement.position+this.handleHalfDimension;if(this.range)Ce=Math.abs(this.maxHandleElement.position-this.minHandleElement.position),ie=dt;else if(T.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))Ie?(Ce=Math.ceil(Math.abs(this.maxHandlePosition-this.minHandleElement.position)+this.handleHalfDimension),ie=Math.floor(this.minHandleElement.position+this.handleHalfDimension)):(Ce=this.minHandleElement.position+this.handleHalfDimension,ie=0);else{const Mt=this.viewOptions.showSelectionBarFromValue,Xt=this.valueToPosition(Mt);(this.viewOptions.rightToLeft?this.viewLowValue<=Mt:this.viewLowValue>Mt)?(Ce=this.minHandleElement.position-Xt,ie=Xt+this.handleHalfDimension):(Ce=Xt-this.minHandleElement.position,ie=this.minHandleElement.position+this.handleHalfDimension)}if(this.selectionBarElement.setDimension(Ce),this.selectionBarElement.setPosition(ie),this.range&&this.viewOptions.showOuterSelectionBars&&(this.viewOptions.rightToLeft?(this.rightOuterSelectionBarElement.setDimension(ie),this.rightOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(ie+Ce)),this.leftOuterSelectionBarElement.setPosition(ie+Ce)):(this.leftOuterSelectionBarElement.setDimension(ie),this.leftOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(ie+Ce)),this.rightOuterSelectionBarElement.setPosition(ie+Ce))),T.isNullOrUndefined(this.viewOptions.getSelectionBarColor)){if(!T.isNullOrUndefined(this.viewOptions.selectionBarGradient)){const Mt=T.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)?0:this.valueToPosition(this.viewOptions.showSelectionBarFromValue),Xt=Mt-ie>0&&!Ie||Mt-ie<=0&&Ie;this.barStyle={backgroundImage:"linear-gradient(to "+(this.viewOptions.vertical?Xt?"bottom":"top":Xt?"left":"right")+", "+this.viewOptions.selectionBarGradient.from+" 0%,"+this.viewOptions.selectionBarGradient.to+" 100%)"},this.viewOptions.vertical?(this.barStyle.backgroundPosition="center "+(Mt+Ce+ie+(Xt?-this.handleHalfDimension:0))+"px",this.barStyle.backgroundSize="100% "+(this.fullBarElement.dimension-this.handleHalfDimension)+"px"):(this.barStyle.backgroundPosition=Mt-ie+(Xt?this.handleHalfDimension:0)+"px center",this.barStyle.backgroundSize=this.fullBarElement.dimension-this.handleHalfDimension+"px 100%")}}else{const Mt=this.getSelectionBarColor();this.barStyle={backgroundColor:Mt}}}getSelectionBarColor(){return this.range?this.viewOptions.getSelectionBarColor(this.value,this.highValue):this.viewOptions.getSelectionBarColor(this.value)}getPointerColor(ie){return this.viewOptions.getPointerColor(ie===j.Max?this.highValue:this.value,ie)}getTickColor(ie){return this.viewOptions.getTickColor(ie)}updateCombinedLabel(){let ie=null;if(ie=this.viewOptions.rightToLeft?this.minHandleLabelElement.position-this.minHandleLabelElement.dimension-10<=this.maxHandleLabelElement.position:this.minHandleLabelElement.position+this.minHandleLabelElement.dimension+10>=this.maxHandleLabelElement.position,ie){const Ce=this.getDisplayValue(this.viewLowValue,R.Low),Ie=this.getDisplayValue(this.viewHighValue,R.High),dt=this.viewOptions.rightToLeft?this.viewOptions.combineLabels(Ie,Ce):this.viewOptions.combineLabels(Ce,Ie);this.combinedLabelElement.setValue(dt);const Mt=this.viewOptions.boundPointerLabels?Math.min(Math.max(this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2,0),this.fullBarElement.dimension-this.combinedLabelElement.dimension):this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2;this.combinedLabelElement.setPosition(Mt),this.minHandleLabelElement.hide(),this.maxHandleLabelElement.hide(),this.combinedLabelElement.show()}else this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.maxHandleLabelElement.show(),this.minHandleLabelElement.show(),this.combinedLabelElement.hide();this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()}getDisplayValue(ie,Ce){return!T.isNullOrUndefined(this.viewOptions.stepsArray)&&!this.viewOptions.bindIndexForStepsArray&&(ie=this.getStepValue(ie)),this.viewOptions.translate(ie,Ce)}roundStep(ie,Ce){const Ie=T.isNullOrUndefined(Ce)?this.viewOptions.step:Ce;let dt=N.roundToPrecisionLimit((ie-this.viewOptions.floor)/Ie,this.viewOptions.precisionLimit);return dt=Math.round(dt)*Ie,N.roundToPrecisionLimit(this.viewOptions.floor+dt,this.viewOptions.precisionLimit)}valueToPosition(ie){let Ce=T.linearValueToPosition;T.isNullOrUndefined(this.viewOptions.customValueToPosition)?this.viewOptions.logScale&&(Ce=T.logValueToPosition):Ce=this.viewOptions.customValueToPosition;let Ie=Ce(ie=N.clampToRange(ie,this.viewOptions.floor,this.viewOptions.ceil),this.viewOptions.floor,this.viewOptions.ceil);return T.isNullOrUndefined(Ie)&&(Ie=0),this.viewOptions.rightToLeft&&(Ie=1-Ie),Ie*this.maxHandlePosition}positionToValue(ie){let Ce=ie/this.maxHandlePosition;this.viewOptions.rightToLeft&&(Ce=1-Ce);let Ie=T.linearPositionToValue;T.isNullOrUndefined(this.viewOptions.customPositionToValue)?this.viewOptions.logScale&&(Ie=T.logPositionToValue):Ie=this.viewOptions.customPositionToValue;const dt=Ie(Ce,this.viewOptions.floor,this.viewOptions.ceil);return T.isNullOrUndefined(dt)?0:dt}getEventXY(ie,Ce){if(ie instanceof MouseEvent)return this.viewOptions.vertical?ie.clientY:ie.clientX;let Ie=0;const dt=ie.touches;if(!T.isNullOrUndefined(Ce))for(let Mt=0;Mt<dt.length;Mt++)if(dt[Mt].identifier===Ce){Ie=Mt;break}return this.viewOptions.vertical?dt[Ie].clientY:dt[Ie].clientX}getEventPosition(ie,Ce){const Ie=this.elementRef.nativeElement.getBoundingClientRect(),dt=this.viewOptions.vertical?Ie.bottom:Ie.left;let Mt=0;return Mt=this.viewOptions.vertical?-this.getEventXY(ie,Ce)+dt:this.getEventXY(ie,Ce)-dt,Mt*this.viewOptions.scale-this.handleHalfDimension}getNearestHandle(ie){if(!this.range)return j.Min;const Ce=this.getEventPosition(ie),Ie=Math.abs(Ce-this.minHandleElement.position),dt=Math.abs(Ce-this.maxHandleElement.position);return Ie<dt?j.Min:Ie>dt?j.Max:this.viewOptions.rightToLeft?Ce>this.minHandleElement.position?j.Min:j.Max:Ce<this.minHandleElement.position?j.Min:j.Max}bindEvents(){const ie=this.viewOptions.draggableRange;this.viewOptions.onlyBindHandles||this.selectionBarElement.on("mousedown",Ce=>this.onBarStart(null,ie,Ce,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.on("mousedown",Ce=>this.onBarStart(j.Min,ie,Ce,!0,!0)),this.maxHandleElement.on("mousedown",Ce=>this.onBarStart(j.Max,ie,Ce,!0,!0))):(this.minHandleElement.on("mousedown",Ce=>this.onStart(j.Min,Ce,!0,!0)),this.range&&this.maxHandleElement.on("mousedown",Ce=>this.onStart(j.Max,Ce,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.on("mousedown",Ce=>this.onStart(null,Ce,!0,!0,!0)),this.ticksElement.on("mousedown",Ce=>this.onStart(null,Ce,!0,!0,!0,!0)))),this.viewOptions.onlyBindHandles||this.selectionBarElement.onPassive("touchstart",Ce=>this.onBarStart(null,ie,Ce,!0,!0,!0)),this.viewOptions.draggableRangeOnly?(this.minHandleElement.onPassive("touchstart",Ce=>this.onBarStart(j.Min,ie,Ce,!0,!0)),this.maxHandleElement.onPassive("touchstart",Ce=>this.onBarStart(j.Max,ie,Ce,!0,!0))):(this.minHandleElement.onPassive("touchstart",Ce=>this.onStart(j.Min,Ce,!0,!0)),this.range&&this.maxHandleElement.onPassive("touchstart",Ce=>this.onStart(j.Max,Ce,!0,!0)),this.viewOptions.onlyBindHandles||(this.fullBarElement.onPassive("touchstart",Ce=>this.onStart(null,Ce,!0,!0,!0)),this.ticksElement.onPassive("touchstart",Ce=>this.onStart(null,Ce,!1,!1,!0,!0)))),this.viewOptions.keyboardSupport&&(this.minHandleElement.on("focus",()=>this.onPointerFocus(j.Min)),this.range&&this.maxHandleElement.on("focus",()=>this.onPointerFocus(j.Max)))}unbindEvents(){this.unsubscribeOnMove(),this.unsubscribeOnEnd();for(const ie of this.getAllSliderElements())T.isNullOrUndefined(ie)||ie.off()}onBarStart(ie,Ce,Ie,dt,Mt,Xt,en){Ce?this.onDragStart(ie,Ie,dt,Mt):this.onStart(ie,Ie,dt,Mt,Xt,en)}onStart(ie,Ce,Ie,dt,Mt,Xt){Ce.stopPropagation(),(!H.isTouchEvent(Ce)||!t.Z.hasSupport)&&Ce.preventDefault(),this.calculateViewDimensions(),T.isNullOrUndefined(ie)&&(ie=this.getNearestHandle(Ce)),this.currentTrackingPointer=ie;const en=this.getPointerElement(ie);if(en.active=!0,this.viewOptions.keyboardSupport&&en.focus(),Ie){this.unsubscribeOnMove();const vt=xt=>this.dragging.active?this.onDragMove(xt):this.onMove(xt);this.onMoveEventListener=H.isTouchEvent(Ce)?this.eventListenerHelper.attachPassiveEventListener(document,"touchmove",vt,this.viewOptions.touchEventsInterval):this.eventListenerHelper.attachEventListener(document,"mousemove",vt,this.viewOptions.mouseEventsInterval)}if(dt){this.unsubscribeOnEnd();const vt=xt=>this.onEnd(xt);this.onEndEventListener=H.isTouchEvent(Ce)?this.eventListenerHelper.attachPassiveEventListener(document,"touchend",vt):this.eventListenerHelper.attachEventListener(document,"mouseup",vt)}this.userChangeStart.emit(this.getChangeContext()),H.isTouchEvent(Ce)&&!T.isNullOrUndefined(Ce.changedTouches)&&T.isNullOrUndefined(this.touchId)&&(this.touchId=Ce.changedTouches[0].identifier),Mt&&this.onMove(Ce,!0),Xt&&this.onEnd(Ce)}onMove(ie,Ce){let Ie=null;if(H.isTouchEvent(ie)){const vt=ie.changedTouches;for(let xt=0;xt<vt.length;xt++)if(vt[xt].identifier===this.touchId){Ie=vt[xt];break}if(T.isNullOrUndefined(Ie))return}const dt=T.isNullOrUndefined(Ie)?this.getEventPosition(ie):this.getEventPosition(ie,Ie.identifier);let Mt;dt<=0?Mt=this.viewOptions.rightToLeft?this.viewOptions.ceil:this.viewOptions.floor:dt>=this.maxHandlePosition?Mt=this.viewOptions.rightToLeft?this.viewOptions.floor:this.viewOptions.ceil:(Mt=this.positionToValue(dt),Mt=Ce&&!T.isNullOrUndefined(this.viewOptions.tickStep)?this.roundStep(Mt,this.viewOptions.tickStep):this.roundStep(Mt)),this.positionTrackingHandle(Mt)}onEnd(ie){H.isTouchEvent(ie)&&ie.changedTouches[0].identifier!==this.touchId||(this.touchId=null,this.viewOptions.keyboardSupport||(this.minHandleElement.active=!1,this.maxHandleElement.active=!1,this.currentTrackingPointer=null),this.dragging.active=!1,this.unsubscribeOnMove(),this.unsubscribeOnEnd(),this.userChangeEnd.emit(this.getChangeContext()))}onPointerFocus(ie){const Ce=this.getPointerElement(ie);Ce.on("blur",()=>this.onPointerBlur(Ce)),Ce.on("keydown",Ie=>this.onKeyboardEvent(Ie)),Ce.on("keyup",()=>this.onKeyUp()),Ce.active=!0,this.currentTrackingPointer=ie,this.currentFocusPointer=ie,this.firstKeyDown=!0}onKeyUp(){this.firstKeyDown=!0,this.userChangeEnd.emit(this.getChangeContext())}onPointerBlur(ie){ie.off("blur"),ie.off("keydown"),ie.off("keyup"),ie.active=!1,T.isNullOrUndefined(this.touchId)&&(this.currentTrackingPointer=null,this.currentFocusPointer=null)}getKeyActions(ie){const Ce=this.viewOptions.ceil-this.viewOptions.floor;let Ie=ie+this.viewOptions.step,dt=ie-this.viewOptions.step,Mt=ie+Ce/10,Xt=ie-Ce/10;this.viewOptions.reversedControls&&(Ie=ie-this.viewOptions.step,dt=ie+this.viewOptions.step,Mt=ie-Ce/10,Xt=ie+Ce/10);const en={UP:Ie,DOWN:dt,LEFT:dt,RIGHT:Ie,PAGEUP:Mt,PAGEDOWN:Xt,HOME:this.viewOptions.reversedControls?this.viewOptions.ceil:this.viewOptions.floor,END:this.viewOptions.reversedControls?this.viewOptions.floor:this.viewOptions.ceil};return this.viewOptions.rightToLeft&&(en.LEFT=Ie,en.RIGHT=dt,this.viewOptions.vertical&&(en.UP=dt,en.DOWN=Ie)),en}onKeyboardEvent(ie){const Ce=this.getCurrentTrackingValue(),Ie=T.isNullOrUndefined(ie.keyCode)?ie.which:ie.keyCode,en=this.getKeyActions(Ce)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[Ie]];if(T.isNullOrUndefined(en)||T.isNullOrUndefined(this.currentTrackingPointer))return;ie.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.userChangeStart.emit(this.getChangeContext()));const vt=N.clampToRange(en,this.viewOptions.floor,this.viewOptions.ceil),xt=this.roundStep(vt);if(this.viewOptions.draggableRangeOnly){const zt=this.viewHighValue-this.viewLowValue;let bt,At;this.currentTrackingPointer===j.Min?(bt=xt,At=xt+zt,At>this.viewOptions.ceil&&(At=this.viewOptions.ceil,bt=At-zt)):this.currentTrackingPointer===j.Max&&(At=xt,bt=xt-zt,bt<this.viewOptions.floor&&(bt=this.viewOptions.floor,At=bt+zt)),this.positionTrackingBar(bt,At)}else this.positionTrackingHandle(xt)}onDragStart(ie,Ce,Ie,dt){const Mt=this.getEventPosition(Ce);this.dragging=new Ee,this.dragging.active=!0,this.dragging.value=this.positionToValue(Mt),this.dragging.difference=this.viewHighValue-this.viewLowValue,this.dragging.lowLimit=this.viewOptions.rightToLeft?this.minHandleElement.position-Mt:Mt-this.minHandleElement.position,this.dragging.highLimit=this.viewOptions.rightToLeft?Mt-this.maxHandleElement.position:this.maxHandleElement.position-Mt,this.onStart(ie,Ce,Ie,dt)}getMinValue(ie,Ce,Ie){const dt=this.viewOptions.rightToLeft;let Mt=null;return Mt=Ce?Ie?dt?this.viewOptions.floor:this.viewOptions.ceil-this.dragging.difference:dt?this.viewOptions.ceil-this.dragging.difference:this.viewOptions.floor:this.positionToValue(dt?ie+this.dragging.lowLimit:ie-this.dragging.lowLimit),this.roundStep(Mt)}getMaxValue(ie,Ce,Ie){const dt=this.viewOptions.rightToLeft;let Mt=null;return Mt=Ce?Ie?dt?this.viewOptions.floor+this.dragging.difference:this.viewOptions.ceil:dt?this.viewOptions.ceil:this.viewOptions.floor+this.dragging.difference:dt?this.positionToValue(ie+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(ie-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(Mt)}onDragMove(ie){const Ce=this.getEventPosition(ie);let Ie,dt,Mt,Xt;this.viewOptions.rightToLeft?(Ie=this.dragging.lowLimit,dt=this.dragging.highLimit,Mt=this.maxHandleElement,Xt=this.minHandleElement):(Ie=this.dragging.highLimit,dt=this.dragging.lowLimit,Mt=this.minHandleElement,Xt=this.maxHandleElement);const vt=Ce>=this.maxHandlePosition-Ie;let xt,zt;if(Ce<=dt){if(0===Mt.position)return;xt=this.getMinValue(Ce,!0,!1),zt=this.getMaxValue(Ce,!0,!1)}else if(vt){if(Xt.position===this.maxHandlePosition)return;zt=this.getMaxValue(Ce,!0,!0),xt=this.getMinValue(Ce,!0,!0)}else xt=this.getMinValue(Ce,!1,!1),zt=this.getMaxValue(Ce,!1,!1);this.positionTrackingBar(xt,zt)}positionTrackingBar(ie,Ce){!T.isNullOrUndefined(this.viewOptions.minLimit)&&ie<this.viewOptions.minLimit&&(Ce=N.roundToPrecisionLimit((ie=this.viewOptions.minLimit)+this.dragging.difference,this.viewOptions.precisionLimit)),!T.isNullOrUndefined(this.viewOptions.maxLimit)&&Ce>this.viewOptions.maxLimit&&(ie=N.roundToPrecisionLimit((Ce=this.viewOptions.maxLimit)-this.dragging.difference,this.viewOptions.precisionLimit)),this.viewLowValue=ie,this.viewHighValue=Ce,this.applyViewChange(),this.updateHandles(j.Min,this.valueToPosition(ie)),this.updateHandles(j.Max,this.valueToPosition(Ce))}positionTrackingHandle(ie){ie=this.applyMinMaxLimit(ie),this.range&&(this.viewOptions.pushRange?ie=this.applyPushRange(ie):(this.viewOptions.noSwitching&&(this.currentTrackingPointer===j.Min&&ie>this.viewHighValue?ie=this.applyMinMaxRange(this.viewHighValue):this.currentTrackingPointer===j.Max&&ie<this.viewLowValue&&(ie=this.applyMinMaxRange(this.viewLowValue))),ie=this.applyMinMaxRange(ie),this.currentTrackingPointer===j.Min&&ie>this.viewHighValue?(this.viewLowValue=this.viewHighValue,this.applyViewChange(),this.updateHandles(j.Min,this.maxHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=j.Max,this.minHandleElement.active=!1,this.maxHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.maxHandleElement.focus()):this.currentTrackingPointer===j.Max&&ie<this.viewLowValue&&(this.viewHighValue=this.viewLowValue,this.applyViewChange(),this.updateHandles(j.Max,this.minHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=j.Min,this.maxHandleElement.active=!1,this.minHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.minHandleElement.focus()))),this.getCurrentTrackingValue()!==ie&&(this.currentTrackingPointer===j.Min?(this.viewLowValue=ie,this.applyViewChange()):this.currentTrackingPointer===j.Max&&(this.viewHighValue=ie,this.applyViewChange()),this.updateHandles(this.currentTrackingPointer,this.valueToPosition(ie)),this.updateAriaAttributes())}applyMinMaxLimit(ie){return!T.isNullOrUndefined(this.viewOptions.minLimit)&&ie<this.viewOptions.minLimit?this.viewOptions.minLimit:!T.isNullOrUndefined(this.viewOptions.maxLimit)&&ie>this.viewOptions.maxLimit?this.viewOptions.maxLimit:ie}applyMinMaxRange(ie){const Ie=Math.abs(ie-(this.currentTrackingPointer===j.Min?this.viewHighValue:this.viewLowValue));if(!T.isNullOrUndefined(this.viewOptions.minRange)&&Ie<this.viewOptions.minRange){if(this.currentTrackingPointer===j.Min)return N.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.minRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===j.Max)return N.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.minRange,this.viewOptions.precisionLimit)}if(!T.isNullOrUndefined(this.viewOptions.maxRange)&&Ie>this.viewOptions.maxRange){if(this.currentTrackingPointer===j.Min)return N.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.maxRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===j.Max)return N.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.maxRange,this.viewOptions.precisionLimit)}return ie}applyPushRange(ie){const Ce=this.currentTrackingPointer===j.Min?this.viewHighValue-ie:ie-this.viewLowValue,Ie=T.isNullOrUndefined(this.viewOptions.minRange)?this.viewOptions.step:this.viewOptions.minRange,dt=this.viewOptions.maxRange;return Ce<Ie?(this.currentTrackingPointer===j.Min?(this.viewHighValue=N.roundToPrecisionLimit(Math.min(ie+Ie,this.viewOptions.ceil),this.viewOptions.precisionLimit),ie=N.roundToPrecisionLimit(this.viewHighValue-Ie,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(j.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===j.Max&&(this.viewLowValue=N.roundToPrecisionLimit(Math.max(ie-Ie,this.viewOptions.floor),this.viewOptions.precisionLimit),ie=N.roundToPrecisionLimit(this.viewLowValue+Ie,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(j.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()):!T.isNullOrUndefined(dt)&&Ce>dt&&(this.currentTrackingPointer===j.Min?(this.viewHighValue=N.roundToPrecisionLimit(ie+dt,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(j.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===j.Max&&(this.viewLowValue=N.roundToPrecisionLimit(ie-dt,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(j.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()),ie}getChangeContext(){const ie=new le;return ie.pointerType=this.currentTrackingPointer,ie.value=+this.value,this.range&&(ie.highValue=+this.highValue),ie}}return Fe.\u0275fac=function(ie){return new(ie||Fe)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.NgZone))},Fe.\u0275cmp=n.\u0275\u0275defineComponent({type:Fe,selectors:[["ng5-slider"]],contentQueries:function(ie,Ce,Ie){if(1&ie&&n.\u0275\u0275contentQuery(Ie,s,5),2&ie){let dt;n.\u0275\u0275queryRefresh(dt=n.\u0275\u0275loadQuery())&&(Ce.tooltipTemplate=dt.first)}},viewQuery:function(ie,Ce){if(1&ie&&(n.\u0275\u0275viewQuery(d,5,me),n.\u0275\u0275viewQuery(p,5,me),n.\u0275\u0275viewQuery(u,5,me),n.\u0275\u0275viewQuery(g,5,me),n.\u0275\u0275viewQuery(v,5,q),n.\u0275\u0275viewQuery(y,5,q),n.\u0275\u0275viewQuery(b,5,se),n.\u0275\u0275viewQuery(S,5,se),n.\u0275\u0275viewQuery(E,5,se),n.\u0275\u0275viewQuery(D,5,se),n.\u0275\u0275viewQuery(A,5,se),n.\u0275\u0275viewQuery(P,5,me)),2&ie){let Ie;n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.leftOuterSelectionBarElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.rightOuterSelectionBarElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.fullBarElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.selectionBarElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.minHandleElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.maxHandleElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.floorLabelElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.ceilLabelElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.minHandleLabelElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.maxHandleLabelElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.combinedLabelElement=Ie.first),n.\u0275\u0275queryRefresh(Ie=n.\u0275\u0275loadQuery())&&(Ce.ticksElement=Ie.first)}},hostAttrs:[1,"ng5-slider"],hostVars:5,hostBindings:function(ie,Ce){1&ie&&n.\u0275\u0275listener("resize",function(dt){return Ce.onResize(dt)},!1,n.\u0275\u0275resolveWindow),2&ie&&(n.\u0275\u0275attribute("disabled",Ce.sliderElementDisabledAttr),n.\u0275\u0275classProp("vertical",Ce.sliderElementVerticalClass)("animate",Ce.sliderElementAnimateClass))},inputs:{value:"value",highValue:"highValue",options:"options",manualRefresh:"manualRefresh",triggerFocus:"triggerFocus"},outputs:{valueChange:"valueChange",highValueChange:"highValueChange",userChangeStart:"userChangeStart",userChange:"userChange",userChangeEnd:"userChangeEnd"},features:[n.\u0275\u0275ProvidersFeature([Wt]),n.\u0275\u0275NgOnChangesFeature],decls:29,vars:13,consts:[["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-left-out-selection"],["leftOuterSelectionBar",""],[1,"ng5-slider-span","ng5-slider-bar"],["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-right-out-selection"],["rightOuterSelectionBar",""],["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-full-bar"],["fullBar",""],["ng5SliderElement","",1,"ng5-slider-span","ng5-slider-bar-wrapper","ng5-slider-selection-bar"],["selectionBar",""],[1,"ng5-slider-span","ng5-slider-bar","ng5-slider-selection",3,"ngStyle"],["ng5SliderHandle","",1,"ng5-slider-span","ng5-slider-pointer","ng5-slider-pointer-min",3,"ngStyle"],["minHandle",""],["ng5SliderHandle","",1,"ng5-slider-span","ng5-slider-pointer","ng5-slider-pointer-max",3,"ngStyle"],["maxHandle",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-limit","ng5-slider-floor"],["floorLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-limit","ng5-slider-ceil"],["ceilLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-model-value"],["minHandleLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-model-high"],["maxHandleLabel",""],["ng5SliderLabel","",1,"ng5-slider-span","ng5-slider-bubble","ng5-slider-combined"],["combinedLabel",""],["ng5SliderElement","",1,"ng5-slider-ticks",3,"hidden"],["ticksElement",""],["class","ng5-slider-tick",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"ng5-slider-tick",3,"ngClass","ngStyle"],[3,"template","tooltip","placement"],["class","ng5-slider-span ng5-slider-tick-value",3,"template","tooltip","placement","content",4,"ngIf"],["class","ng5-slider-span ng5-slider-tick-legend",3,"innerHTML",4,"ngIf"],[1,"ng5-slider-span","ng5-slider-tick-value",3,"template","tooltip","placement","content"],[1,"ng5-slider-span","ng5-slider-tick-legend",3,"innerHTML"]],template:function(ie,Ce){1&ie&&(n.\u0275\u0275elementStart(0,"span",0,1),n.\u0275\u0275element(2,"span",2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"span",3,4),n.\u0275\u0275element(5,"span",2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"span",5,6),n.\u0275\u0275element(8,"span",2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"span",7,8),n.\u0275\u0275element(11,"span",9),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(12,"span",10,11)(14,"span",12,13)(16,"span",14,15)(18,"span",16,17)(20,"span",18,19)(22,"span",20,21)(24,"span",22,23),n.\u0275\u0275elementStart(26,"span",24,25),n.\u0275\u0275template(28,re,4,9,"span",26),n.\u0275\u0275elementEnd()),2&ie&&(n.\u0275\u0275advance(6),n.\u0275\u0275classProp("ng5-slider-transparent",Ce.fullBarTransparentClass),n.\u0275\u0275advance(3),n.\u0275\u0275classProp("ng5-slider-draggable",Ce.selectionBarDraggableClass),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngStyle",Ce.barStyle),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngStyle",Ce.minPointerStyle),n.\u0275\u0275advance(2),n.\u0275\u0275styleProp("display",Ce.range?"inherit":"none"),n.\u0275\u0275property("ngStyle",Ce.maxPointerStyle),n.\u0275\u0275advance(12),n.\u0275\u0275classProp("ng5-slider-ticks-values-under",Ce.ticksUnderValuesClass),n.\u0275\u0275property("hidden",!Ce.showTicks),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngForOf",Ce.ticks))},dependencies:function(){return[h.NgClass,h.NgForOf,h.NgIf,h.NgStyle,me,q,se,nt]},styles:[".ng5-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:pan-y;touch-action:pan-y}  .ng5-slider.with-legend{margin-bottom:40px}  .ng5-slider[disabled]{cursor:not-allowed}  .ng5-slider[disabled] .ng5-slider-pointer{cursor:not-allowed;background-color:#d8e0f3}  .ng5-slider[disabled] .ng5-slider-draggable{cursor:not-allowed}  .ng5-slider[disabled] .ng5-slider-selection{background:#8b91a2}  .ng5-slider[disabled] .ng5-slider-tick{cursor:not-allowed}  .ng5-slider[disabled] .ng5-slider-tick.ng5-slider-selected{background:#8b91a2}  .ng5-slider .ng5-slider-span{white-space:nowrap;position:absolute;display:inline-block}  .ng5-slider .ng5-slider-base{width:100%;height:100%;padding:0}  .ng5-slider .ng5-slider-bar-wrapper{left:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1}  .ng5-slider .ng5-slider-draggable{cursor:move}  .ng5-slider .ng5-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;border-radius:2px}  .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-transparent .ng5-slider-bar{background:0 0}  .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-left-out-selection .ng5-slider-bar{background:#df002d}  .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-right-out-selection .ng5-slider-bar{background:#03a688}  .ng5-slider .ng5-slider-selection{z-index:2;background:#0db9f0;border-radius:2px}  .ng5-slider .ng5-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;border-radius:16px}  .ng5-slider .ng5-slider-pointer:after{content:'';width:8px;height:8px;position:absolute;top:12px;left:12px;border-radius:4px;background:#fff}  .ng5-slider .ng5-slider-pointer:hover:after{background-color:#fff}  .ng5-slider .ng5-slider-pointer.ng5-slider-active{z-index:4}  .ng5-slider .ng5-slider-pointer.ng5-slider-active:after{background-color:#451aff}  .ng5-slider .ng5-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px}  .ng5-slider .ng5-slider-bubble.ng5-slider-limit{color:#55637d}  .ng5-slider .ng5-slider-ticks{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none}  .ng5-slider .ng5-slider-ticks-values-under .ng5-slider-tick-value{top:auto;bottom:-36px}  .ng5-slider .ng5-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px}  .ng5-slider .ng5-slider-tick.ng5-slider-selected{background:#0db9f0}  .ng5-slider .ng5-slider-tick-value{position:absolute;top:-34px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)}  .ng5-slider .ng5-slider-tick-legend{position:absolute;top:24px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);max-width:50px;white-space:normal}  .ng5-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;-ms-touch-action:pan-x;touch-action:pan-x}  .ng5-slider.vertical .ng5-slider-base{width:100%;height:100%;padding:0}  .ng5-slider.vertical .ng5-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px}  .ng5-slider.vertical .ng5-slider-bar{bottom:0;left:auto;width:4px;height:100%}  .ng5-slider.vertical .ng5-slider-pointer{left:-14px!important;top:auto;bottom:0}  .ng5-slider.vertical .ng5-slider-bubble{left:16px!important;bottom:0}  .ng5-slider.vertical .ng5-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1}  .ng5-slider.vertical .ng5-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px}  .ng5-slider.vertical .ng5-slider-tick-value{left:24px;top:auto;-webkit-transform:translate(0,-28%);transform:translate(0,-28%)}  .ng5-slider.vertical .ng5-slider-tick-legend{top:auto;right:24px;-webkit-transform:translate(0,-28%);transform:translate(0,-28%);max-width:none;white-space:nowrap}  .ng5-slider.vertical .ng5-slider-ticks-values-under .ng5-slider-tick-value{bottom:auto;left:auto;right:24px}  .ng5-slider *{-webkit-transition:none;transition:none}  .ng5-slider.animate .ng5-slider-bar-wrapper{-webkit-transition:all linear .3s;transition:all linear .3s}  .ng5-slider.animate .ng5-slider-selection{-webkit-transition:background-color linear .3s;transition:background-color linear .3s}  .ng5-slider.animate .ng5-slider-pointer{-webkit-transition:all linear .3s;transition:all linear .3s}  .ng5-slider.animate .ng5-slider-bubble{-webkit-transition:all linear .3s;transition:all linear .3s}  .ng5-slider.animate .ng5-slider-bubble.ng5-slider-limit{-webkit-transition:opacity linear .3s;transition:opacity linear .3s}  .ng5-slider.animate .ng5-slider-bubble.ng5-slider-combined{-webkit-transition:opacity linear .3s;transition:opacity linear .3s}  .ng5-slider.animate .ng5-slider-tick{-webkit-transition:background-color linear .3s;transition:background-color linear .3s}"]}),Fe})(),nt=(()=>{class Fe{}return Fe.\u0275fac=function(ie){return new(ie||Fe)},Fe.\u0275cmp=n.\u0275\u0275defineComponent({type:Fe,selectors:[["ng5-slider-tooltip-wrapper"]],inputs:{template:"template",tooltip:"tooltip",placement:"placement",content:"content"},decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng5-slider-inner-tooltip"]],template:function(ie,Ce){1&ie&&(n.\u0275\u0275template(0,k,2,6,"ng-container",0),n.\u0275\u0275template(1,$,3,3,"ng-container",0)),2&ie&&(n.\u0275\u0275property("ngIf",Ce.template),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!Ce.template))},dependencies:[h.NgIf,h.NgTemplateOutlet],styles:[".ng5-slider-inner-tooltip[_ngcontent-%COMP%]{height:100%}"]}),Fe})(),Zt=(()=>{class Fe{}return Fe.\u0275fac=function(ie){return new(ie||Fe)},Fe.\u0275mod=n.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=n.\u0275\u0275defineInjector({imports:[h.CommonModule]}),Fe})()},57993:function(oe,x,i){"use strict";var e=this&&this.__extends||function(l,h){for(var s in h)h.hasOwnProperty(s)&&(l[s]=h[s]);function d(){this.constructor=l}l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)},n=i(87632),a=i(57217),t=function(l){function h(){l.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return e(h,l),h.prototype._subscribe=function(s){return this.hasError?(s.error(this.thrownError),a.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(s.next(this.value),s.complete(),a.Subscription.EMPTY):l.prototype._subscribe.call(this,s)},h.prototype.next=function(s){this.hasCompleted||(this.value=s,this.hasNext=!0)},h.prototype.error=function(s){this.hasCompleted||l.prototype.error.call(this,s)},h.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&l.prototype.next.call(this,this.value),l.prototype.complete.call(this)},h}(n.Subject);x.AsyncSubject=t},1343:function(oe,x,i){"use strict";var e=this&&this.__extends||function(l,h){for(var s in h)h.hasOwnProperty(s)&&(l[s]=h[s]);function d(){this.constructor=l}l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)},n=i(87632),a=i(69075),t=function(l){function h(s){l.call(this),this._value=s}return e(h,l),Object.defineProperty(h.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),h.prototype._subscribe=function(s){var d=l.prototype._subscribe.call(this,s);return d&&!d.closed&&s.next(this._value),d},h.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new a.ObjectUnsubscribedError;return this._value},h.prototype.next=function(s){l.prototype.next.call(this,this._value=s)},h}(n.Subject);x.BehaviorSubject=t},55648:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(h,s,d){t.call(this),this.parent=h,this.outerValue=s,this.outerIndex=d,this.index=0}return e(l,t),l.prototype._next=function(h){this.parent.notifyNext(this.outerValue,h,this.outerIndex,this.index++,this)},l.prototype._error=function(h){this.parent.notifyError(h,this),this.unsubscribe()},l.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},l}(i(62682).Subscriber);x.InnerSubscriber=a},81133:(oe,x,i)=>{"use strict";var e=i(50289),n=function(){function a(t,l,h){this.kind=t,this.value=l,this.error=h,this.hasValue="N"===t}return a.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},a.prototype.do=function(t,l,h){switch(this.kind){case"N":return t&&t(this.value);case"E":return l&&l(this.error);case"C":return h&&h()}},a.prototype.accept=function(t,l,h){return t&&"function"==typeof t.next?this.observe(t):this.do(t,l,h)},a.prototype.toObservable=function(){switch(this.kind){case"N":return e.Observable.of(this.value);case"E":return e.Observable.throw(this.error);case"C":return e.Observable.empty()}throw new Error("unexpected notification kind value")},a.createNext=function(t){return typeof t<"u"?new a("N",t):a.undefinedValueNotification},a.createError=function(t){return new a("E",void 0,t)},a.createComplete=function(){return a.completeNotification},a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0),a}();x.Notification=n},50289:(oe,x,i)=>{"use strict";var e=i(79892),n=i(28628),a=i(22168),t=i(12809),l=function(){function h(s){this._isScalar=!1,s&&(this._subscribe=s)}return h.prototype.lift=function(s){var d=new h;return d.source=this,d.operator=s,d},h.prototype.subscribe=function(s,d,p){var u=this.operator,g=n.toSubscriber(s,d,p);if(u?u.call(g,this.source):g.add(this.source||!g.syncErrorThrowable?this._subscribe(g):this._trySubscribe(g)),g.syncErrorThrowable&&(g.syncErrorThrowable=!1,g.syncErrorThrown))throw g.syncErrorValue;return g},h.prototype._trySubscribe=function(s){try{return this._subscribe(s)}catch(d){s.syncErrorThrown=!0,s.syncErrorValue=d,s.error(d)}},h.prototype.forEach=function(s,d){var p=this;if(d||(e.root.Rx&&e.root.Rx.config&&e.root.Rx.config.Promise?d=e.root.Rx.config.Promise:e.root.Promise&&(d=e.root.Promise)),!d)throw new Error("no Promise impl found");return new d(function(u,g){var v;v=p.subscribe(function(y){if(v)try{s(y)}catch(b){g(b),v.unsubscribe()}else s(y)},g,u)})},h.prototype._subscribe=function(s){return this.source.subscribe(s)},h.prototype[a.observable]=function(){return this},h.prototype.pipe=function(){for(var s=[],d=0;d<arguments.length;d++)s[d-0]=arguments[d];return 0===s.length?this:t.pipeFromArray(s)(this)},h.prototype.toPromise=function(s){var d=this;if(s||(e.root.Rx&&e.root.Rx.config&&e.root.Rx.config.Promise?s=e.root.Rx.config.Promise:e.root.Promise&&(s=e.root.Promise)),!s)throw new Error("no Promise impl found");return new s(function(p,u){var g;d.subscribe(function(v){return g=v},function(v){return u(v)},function(){return p(g)})})},h.create=function(s){return new h(s)},h}();x.Observable=l},43364:(oe,x)=>{"use strict";x.empty={closed:!0,next:function(i){},error:function(i){throw i},complete:function(){}}},79229:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(){t.apply(this,arguments)}return e(l,t),l.prototype.notifyNext=function(h,s,d,p,u){this.destination.next(s)},l.prototype.notifyError=function(h,s){this.destination.error(h)},l.prototype.notifyComplete=function(h){this.destination.complete()},l}(i(62682).Subscriber);x.OuterSubscriber=a},69467:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(87632),a=i(34392),t=i(57217),l=i(64579),h=i(69075),s=i(95683),d=function(u){function g(v,y,b){void 0===v&&(v=Number.POSITIVE_INFINITY),void 0===y&&(y=Number.POSITIVE_INFINITY),u.call(this),this.scheduler=b,this._events=[],this._bufferSize=v<1?1:v,this._windowTime=y<1?1:y}return e(g,u),g.prototype.next=function(v){var y=this._getNow();this._events.push(new p(y,v)),this._trimBufferThenGetEvents(),u.prototype.next.call(this,v)},g.prototype._subscribe=function(v){var S,y=this._trimBufferThenGetEvents(),b=this.scheduler;if(this.closed)throw new h.ObjectUnsubscribedError;this.hasError||this.isStopped?S=t.Subscription.EMPTY:(this.observers.push(v),S=new s.SubjectSubscription(this,v)),b&&v.add(v=new l.ObserveOnSubscriber(v,b));for(var E=y.length,D=0;D<E&&!v.closed;D++)v.next(y[D].value);return this.hasError?v.error(this.thrownError):this.isStopped&&v.complete(),S},g.prototype._getNow=function(){return(this.scheduler||a.queue).now()},g.prototype._trimBufferThenGetEvents=function(){for(var v=this._getNow(),y=this._bufferSize,b=this._windowTime,S=this._events,E=S.length,D=0;D<E&&!(v-S[D].time<b);)D++;return E>y&&(D=Math.max(D,E-y)),D>0&&S.splice(0,D),S},g}(n.Subject);x.ReplaySubject=d;var p=function u(g,v){this.time=g,this.value=v}},64154:(oe,x,i)=>{"use strict";var n=i(87632);x.xQ=n.Subject,i(50289),i(22563),i(94768),i(70468),i(97484),i(37081),i(85468),i(63230),i(77062),i(91154),i(14429),i(8959),i(92176),i(51977),i(86976),i(96022),i(97444),i(85798),i(55234),i(46377),i(16088),i(63550),i(62439),i(76499),i(76366),i(8438),i(18257),i(60574),i(59913),i(67180),i(98238),i(5169),i(24638),i(3672),i(30073),i(78399),i(26800),i(75591),i(32123),i(31998),i(40443),i(30984),i(1165),i(22773),i(65197),i(63755),i(12564),i(27795),i(40808),i(74057),i(49122),i(50059),i(93389),i(42426),i(70661),i(99621),i(66665),i(69771),i(4812),i(37600),i(85531),i(97336),i(21916),i(51785),i(28008),i(11497),i(77569),i(99730),i(48837),i(50669),i(64006),i(90676),i(69158),i(80891),i(21734),i(37664),i(98972),i(69347),i(55377),i(34061),i(12459),i(38732),i(45220),i(71225),i(6268),i(37255),i(20757),i(66814),i(73720),i(38870),i(43959),i(28036),i(60572),i(25307),i(81271),i(52009),i(4646),i(54262),i(20645),i(98599),i(71550),i(67902),i(91414),i(12686),i(55969),i(37722),i(6932),i(9283),i(10701),i(50682),i(35448),i(99334),i(35170),i(65175),i(56590),i(65701),i(17565),i(8498),i(27612),i(50959),i(47967),i(18159),i(33923),i(9242),i(93034),i(91567),i(23956),i(22766),i(68379),i(82055),i(57217),i(62682),i(57993),i(69467),i(1343),i(71954),i(81133),i(8638),i(67038),i(69075),i(13312),i(25120),i(73745),i(71983),i(76622),i(83398);i(23513);i(12809);i(66909),i(54039),i(34392),i(88929),i(97031),i(82967),i(22168);i(81723)},68353:(oe,x)=>{"use strict";var i=function(){function e(n,a){void 0===a&&(a=e.now),this.SchedulerAction=n,this.now=a}return e.prototype.schedule=function(n,a,t){return void 0===a&&(a=0),new this.SchedulerAction(this,n).schedule(t,a)},e.now=Date.now?Date.now:function(){return+new Date},e}();x.Scheduler=i},87632:function(oe,x,i){"use strict";var e=this&&this.__extends||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y]);function b(){this.constructor=g}g.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)},n=i(50289),a=i(62682),t=i(57217),l=i(69075),h=i(95683),s=i(97031),d=function(g){function v(y){g.call(this,y),this.destination=y}return e(v,g),v}(a.Subscriber);x.SubjectSubscriber=d;var p=function(g){function v(){g.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return e(v,g),v.prototype[s.rxSubscriber]=function(){return new d(this)},v.prototype.lift=function(y){var b=new u(this,this);return b.operator=y,b},v.prototype.next=function(y){if(this.closed)throw new l.ObjectUnsubscribedError;if(!this.isStopped)for(var b=this.observers,S=b.length,E=b.slice(),D=0;D<S;D++)E[D].next(y)},v.prototype.error=function(y){if(this.closed)throw new l.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=y,this.isStopped=!0;for(var b=this.observers,S=b.length,E=b.slice(),D=0;D<S;D++)E[D].error(y);this.observers.length=0},v.prototype.complete=function(){if(this.closed)throw new l.ObjectUnsubscribedError;this.isStopped=!0;for(var y=this.observers,b=y.length,S=y.slice(),E=0;E<b;E++)S[E].complete();this.observers.length=0},v.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},v.prototype._trySubscribe=function(y){if(this.closed)throw new l.ObjectUnsubscribedError;return g.prototype._trySubscribe.call(this,y)},v.prototype._subscribe=function(y){if(this.closed)throw new l.ObjectUnsubscribedError;return this.hasError?(y.error(this.thrownError),t.Subscription.EMPTY):this.isStopped?(y.complete(),t.Subscription.EMPTY):(this.observers.push(y),new h.SubjectSubscription(this,y))},v.prototype.asObservable=function(){var y=new n.Observable;return y.source=this,y},v.create=function(y,b){return new u(y,b)},v}(n.Observable);x.Subject=p;var u=function(g){function v(y,b){g.call(this),this.destination=y,this.source=b}return e(v,g),v.prototype.next=function(y){var b=this.destination;b&&b.next&&b.next(y)},v.prototype.error=function(y){var b=this.destination;b&&b.error&&this.destination.error(y)},v.prototype.complete=function(){var y=this.destination;y&&y.complete&&this.destination.complete()},v.prototype._subscribe=function(y){return this.source?this.source.subscribe(y):t.Subscription.EMPTY},v}(p);x.AnonymousSubject=u},95683:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(h,s){t.call(this),this.subject=h,this.subscriber=s,this.closed=!1}return e(l,t),l.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var h=this.subject,s=h.observers;if(this.subject=null,s&&0!==s.length&&!h.isStopped&&!h.closed){var d=s.indexOf(this.subscriber);-1!==d&&s.splice(d,1)}}},l}(i(57217).Subscription);x.SubjectSubscription=a},62682:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(63439),a=i(57217),t=i(43364),l=i(97031),h=function(p){function u(g,v,y){switch(p.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=t.empty;break;case 1:if(!g){this.destination=t.empty;break}if("object"==typeof g){if(function d(p){return p instanceof h||"syncErrorThrowable"in p&&p[l.rxSubscriber]}(g)){var b=g[l.rxSubscriber]();this.syncErrorThrowable=b.syncErrorThrowable,this.destination=b,b.add(this)}else this.syncErrorThrowable=!0,this.destination=new s(this,g);break}default:this.syncErrorThrowable=!0,this.destination=new s(this,g,v,y)}}return e(u,p),u.prototype[l.rxSubscriber]=function(){return this},u.create=function(g,v,y){var b=new u(g,v,y);return b.syncErrorThrowable=!1,b},u.prototype.next=function(g){this.isStopped||this._next(g)},u.prototype.error=function(g){this.isStopped||(this.isStopped=!0,this._error(g))},u.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},u.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,p.prototype.unsubscribe.call(this))},u.prototype._next=function(g){this.destination.next(g)},u.prototype._error=function(g){this.destination.error(g),this.unsubscribe()},u.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},u.prototype._unsubscribeAndRecycle=function(){var v=this._parent,y=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=v,this._parents=y,this},u}(a.Subscription);x.Subscriber=h;var s=function(p){function u(g,v,y,b){p.call(this),this._parentSubscriber=g;var S,E=this;n.isFunction(v)?S=v:v&&(S=v.next,y=v.error,b=v.complete,v!==t.empty&&(E=Object.create(v),n.isFunction(E.unsubscribe)&&this.add(E.unsubscribe.bind(E)),E.unsubscribe=this.unsubscribe.bind(this))),this._context=E,this._next=S,this._error=y,this._complete=b}return e(u,p),u.prototype.next=function(g){if(!this.isStopped&&this._next){var v=this._parentSubscriber;v.syncErrorThrowable?this.__tryOrSetError(v,this._next,g)&&this.unsubscribe():this.__tryOrUnsub(this._next,g)}},u.prototype.error=function(g){if(!this.isStopped){var v=this._parentSubscriber;if(this._error)v.syncErrorThrowable?(this.__tryOrSetError(v,this._error,g),this.unsubscribe()):(this.__tryOrUnsub(this._error,g),this.unsubscribe());else{if(!v.syncErrorThrowable)throw this.unsubscribe(),g;v.syncErrorValue=g,v.syncErrorThrown=!0,this.unsubscribe()}}},u.prototype.complete=function(){var g=this;if(!this.isStopped){var v=this._parentSubscriber;if(this._complete){var y=function(){return g._complete.call(g._context)};v.syncErrorThrowable?(this.__tryOrSetError(v,y),this.unsubscribe()):(this.__tryOrUnsub(y),this.unsubscribe())}else this.unsubscribe()}},u.prototype.__tryOrUnsub=function(g,v){try{g.call(this._context,v)}catch(y){throw this.unsubscribe(),y}},u.prototype.__tryOrSetError=function(g,v,y){try{v.call(this._context,y)}catch(b){return g.syncErrorValue=b,g.syncErrorThrown=!0,!0}return!1},u.prototype._unsubscribe=function(){var g=this._parentSubscriber;this._context=null,this._parentSubscriber=null,g.unsubscribe()},u}(h)},57217:(oe,x,i)=>{"use strict";var e=i(72001),n=i(5276),a=i(63439),t=i(66530),l=i(78027),h=i(25120),s=function(){function p(u){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,u&&(this._unsubscribe=u)}return p.prototype.unsubscribe=function(){var g,u=!1;if(!this.closed){var v=this,y=v._parent,b=v._parents,S=v._unsubscribe,E=v._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var D=-1,A=b?b.length:0;y;)y.remove(this),y=++D<A&&b[D]||null;if(a.isFunction(S)&&t.tryCatch(S).call(this)===l.errorObject&&(u=!0,g=g||(l.errorObject.e instanceof h.UnsubscriptionError?d(l.errorObject.e.errors):[l.errorObject.e])),e.isArray(E))for(D=-1,A=E.length;++D<A;){var B=E[D];if(n.isObject(B)&&t.tryCatch(B.unsubscribe).call(B)===l.errorObject){u=!0,g=g||[];var V=l.errorObject.e;V instanceof h.UnsubscriptionError?g=g.concat(d(V.errors)):g.push(V)}}if(u)throw new h.UnsubscriptionError(g)}},p.prototype.add=function(u){if(!u||u===p.EMPTY)return p.EMPTY;if(u===this)return this;var g=u;switch(typeof u){case"function":g=new p(u);case"object":if(g.closed||"function"!=typeof g.unsubscribe)return g;if(this.closed)return g.unsubscribe(),g;if("function"!=typeof g._addParent){var v=g;(g=new p)._subscriptions=[v]}break;default:throw new Error("unrecognized teardown "+u+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(g),g._addParent(this),g},p.prototype.remove=function(u){var g=this._subscriptions;if(g){var v=g.indexOf(u);-1!==v&&g.splice(v,1)}},p.prototype._addParent=function(u){var v=this._parent,y=this._parents;v&&v!==u?y?-1===y.indexOf(u)&&y.push(u):this._parents=[u]:this._parent=u},p.EMPTY=((u=new p).closed=!0,u),p;var u}();function d(p){return p.reduce(function(u,g){return u.concat(g instanceof h.UnsubscriptionError?g.errors:g)},[])}x.Subscription=s},22563:(oe,x,i)=>{"use strict";var e=i(50289),n=i(98145);e.Observable.bindCallback=n.bindCallback},94768:(oe,x,i)=>{"use strict";var e=i(50289),n=i(46657);e.Observable.bindNodeCallback=n.bindNodeCallback},70468:(oe,x,i)=>{"use strict";var e=i(50289),n=i(65005);e.Observable.combineLatest=n.combineLatest},97484:(oe,x,i)=>{"use strict";var e=i(50289),n=i(15956);e.Observable.concat=n.concat},37081:(oe,x,i)=>{"use strict";var e=i(50289),n=i(48921);e.Observable.defer=n.defer},18257:(oe,x,i)=>{"use strict";var e=i(50289),n=i(15e3);e.Observable.ajax=n.ajax},60574:(oe,x,i)=>{"use strict";var e=i(50289),n=i(35875);e.Observable.webSocket=n.webSocket},85468:(oe,x,i)=>{"use strict";var e=i(50289),n=i(9374);e.Observable.empty=n.empty},63230:(oe,x,i)=>{"use strict";var e=i(50289),n=i(89790);e.Observable.forkJoin=n.forkJoin},77062:(oe,x,i)=>{"use strict";var e=i(50289),n=i(57057);e.Observable.from=n.from},91154:(oe,x,i)=>{"use strict";var e=i(50289),n=i(33848);e.Observable.fromEvent=n.fromEvent},14429:(oe,x,i)=>{"use strict";var e=i(50289),n=i(36988);e.Observable.fromEventPattern=n.fromEventPattern},8959:(oe,x,i)=>{"use strict";var e=i(50289),n=i(7364);e.Observable.fromPromise=n.fromPromise},92176:(oe,x,i)=>{"use strict";var e=i(50289),n=i(13461);e.Observable.generate=n.generate},51977:(oe,x,i)=>{"use strict";var e=i(50289),n=i(25170);e.Observable.if=n._if},86976:(oe,x,i)=>{"use strict";var e=i(50289),n=i(5071);e.Observable.interval=n.interval},96022:(oe,x,i)=>{"use strict";var e=i(50289),n=i(66924);e.Observable.merge=n.merge},85798:(oe,x,i)=>{"use strict";var e=i(50289),n=i(49303);e.Observable.never=n.never},55234:(oe,x,i)=>{"use strict";var e=i(50289),n=i(27400);e.Observable.of=n.of},46377:(oe,x,i)=>{"use strict";var e=i(50289),n=i(47145);e.Observable.onErrorResumeNext=n.onErrorResumeNext},16088:(oe,x,i)=>{"use strict";var e=i(50289),n=i(47871);e.Observable.pairs=n.pairs},97444:(oe,x,i)=>{"use strict";var e=i(50289),n=i(55107);e.Observable.race=n.race},63550:(oe,x,i)=>{"use strict";var e=i(50289),n=i(15718);e.Observable.range=n.range},76499:(oe,x,i)=>{"use strict";var e=i(50289),n=i(2022);e.Observable.throw=n._throw},76366:(oe,x,i)=>{"use strict";var e=i(50289),n=i(93692);e.Observable.timer=n.timer},62439:(oe,x,i)=>{"use strict";var e=i(50289),n=i(14398);e.Observable.using=n.using},8438:(oe,x,i)=>{"use strict";var e=i(50289),n=i(98369);e.Observable.zip=n.zip},51785:(oe,x,i)=>{"use strict";var e=i(50289),n=i(84641);e.Observable.prototype.audit=n.audit},28008:(oe,x,i)=>{"use strict";var e=i(50289),n=i(30893);e.Observable.prototype.auditTime=n.auditTime},59913:(oe,x,i)=>{"use strict";var e=i(50289),n=i(1214);e.Observable.prototype.buffer=n.buffer},67180:(oe,x,i)=>{"use strict";var e=i(50289),n=i(24214);e.Observable.prototype.bufferCount=n.bufferCount},98238:(oe,x,i)=>{"use strict";var e=i(50289),n=i(29807);e.Observable.prototype.bufferTime=n.bufferTime},5169:(oe,x,i)=>{"use strict";var e=i(50289),n=i(1894);e.Observable.prototype.bufferToggle=n.bufferToggle},24638:(oe,x,i)=>{"use strict";var e=i(50289),n=i(33479);e.Observable.prototype.bufferWhen=n.bufferWhen},3672:(oe,x,i)=>{"use strict";var e=i(50289),n=i(29302);e.Observable.prototype.catch=n._catch,e.Observable.prototype._catch=n._catch},30073:(oe,x,i)=>{"use strict";var e=i(50289),n=i(73028);e.Observable.prototype.combineAll=n.combineAll},78399:(oe,x,i)=>{"use strict";var e=i(50289),n=i(51290);e.Observable.prototype.combineLatest=n.combineLatest},26800:(oe,x,i)=>{"use strict";var e=i(50289),n=i(93120);e.Observable.prototype.concat=n.concat},75591:(oe,x,i)=>{"use strict";var e=i(50289),n=i(44010);e.Observable.prototype.concatAll=n.concatAll},32123:(oe,x,i)=>{"use strict";var e=i(50289),n=i(91457);e.Observable.prototype.concatMap=n.concatMap},31998:(oe,x,i)=>{"use strict";var e=i(50289),n=i(78366);e.Observable.prototype.concatMapTo=n.concatMapTo},40443:(oe,x,i)=>{"use strict";var e=i(50289),n=i(79972);e.Observable.prototype.count=n.count},1165:(oe,x,i)=>{"use strict";var e=i(50289),n=i(68295);e.Observable.prototype.debounce=n.debounce},22773:(oe,x,i)=>{"use strict";var e=i(50289),n=i(56839);e.Observable.prototype.debounceTime=n.debounceTime},65197:(oe,x,i)=>{"use strict";var e=i(50289),n=i(22081);e.Observable.prototype.defaultIfEmpty=n.defaultIfEmpty},63755:(oe,x,i)=>{"use strict";var e=i(50289),n=i(90064);e.Observable.prototype.delay=n.delay},12564:(oe,x,i)=>{"use strict";var e=i(50289),n=i(99104);e.Observable.prototype.delayWhen=n.delayWhen},30984:(oe,x,i)=>{"use strict";var e=i(50289),n=i(66022);e.Observable.prototype.dematerialize=n.dematerialize},27795:(oe,x,i)=>{"use strict";var e=i(50289),n=i(62399);e.Observable.prototype.distinct=n.distinct},40808:(oe,x,i)=>{"use strict";var e=i(50289),n=i(71309);e.Observable.prototype.distinctUntilChanged=n.distinctUntilChanged},74057:(oe,x,i)=>{"use strict";var e=i(50289),n=i(7400);e.Observable.prototype.distinctUntilKeyChanged=n.distinctUntilKeyChanged},49122:(oe,x,i)=>{"use strict";var e=i(50289),n=i(4240);e.Observable.prototype.do=n._do,e.Observable.prototype._do=n._do},70661:(oe,x,i)=>{"use strict";var e=i(50289),n=i(51739);e.Observable.prototype.elementAt=n.elementAt},99730:(oe,x,i)=>{"use strict";var e=i(50289),n=i(51135);e.Observable.prototype.every=n.every},50059:(oe,x,i)=>{"use strict";var e=i(50289),n=i(45859);e.Observable.prototype.exhaust=n.exhaust},93389:(oe,x,i)=>{"use strict";var e=i(50289),n=i(11809);e.Observable.prototype.exhaustMap=n.exhaustMap},42426:(oe,x,i)=>{"use strict";var e=i(50289),n=i(69948);e.Observable.prototype.expand=n.expand},99621:(oe,x,i)=>{"use strict";var e=i(50289),n=i(53294);e.Observable.prototype.filter=n.filter},66665:(oe,x,i)=>{"use strict";var e=i(50289),n=i(17987);e.Observable.prototype.finally=n._finally,e.Observable.prototype._finally=n._finally},69771:(oe,x,i)=>{"use strict";var e=i(50289),n=i(76073);e.Observable.prototype.find=n.find},4812:(oe,x,i)=>{"use strict";var e=i(50289),n=i(35214);e.Observable.prototype.findIndex=n.findIndex},37600:(oe,x,i)=>{"use strict";var e=i(50289),n=i(65812);e.Observable.prototype.first=n.first},85531:(oe,x,i)=>{"use strict";var e=i(50289),n=i(46520);e.Observable.prototype.groupBy=n.groupBy},97336:(oe,x,i)=>{"use strict";var e=i(50289),n=i(18883);e.Observable.prototype.ignoreElements=n.ignoreElements},21916:(oe,x,i)=>{"use strict";var e=i(50289),n=i(92288);e.Observable.prototype.isEmpty=n.isEmpty},11497:(oe,x,i)=>{"use strict";var e=i(50289),n=i(56966);e.Observable.prototype.last=n.last},77569:(oe,x,i)=>{"use strict";var e=i(50289),n=i(40197);e.Observable.prototype.let=n.letProto,e.Observable.prototype.letBind=n.letProto},48837:(oe,x,i)=>{"use strict";var e=i(50289),n=i(82030);e.Observable.prototype.map=n.map},50669:(oe,x,i)=>{"use strict";var e=i(50289),n=i(57463);e.Observable.prototype.mapTo=n.mapTo},64006:(oe,x,i)=>{"use strict";var e=i(50289),n=i(6410);e.Observable.prototype.materialize=n.materialize},90676:(oe,x,i)=>{"use strict";var e=i(50289),n=i(74215);e.Observable.prototype.max=n.max},69158:(oe,x,i)=>{"use strict";var e=i(50289),n=i(5269);e.Observable.prototype.merge=n.merge},80891:(oe,x,i)=>{"use strict";var e=i(50289),n=i(26633);e.Observable.prototype.mergeAll=n.mergeAll},21734:(oe,x,i)=>{"use strict";var e=i(50289),n=i(38971);e.Observable.prototype.mergeMap=n.mergeMap,e.Observable.prototype.flatMap=n.mergeMap},37664:(oe,x,i)=>{"use strict";var e=i(50289),n=i(28969);e.Observable.prototype.flatMapTo=n.mergeMapTo,e.Observable.prototype.mergeMapTo=n.mergeMapTo},98972:(oe,x,i)=>{"use strict";var e=i(50289),n=i(41903);e.Observable.prototype.mergeScan=n.mergeScan},69347:(oe,x,i)=>{"use strict";var e=i(50289),n=i(70658);e.Observable.prototype.min=n.min},55377:(oe,x,i)=>{"use strict";var e=i(50289),n=i(18867);e.Observable.prototype.multicast=n.multicast},34061:(oe,x,i)=>{"use strict";var e=i(50289),n=i(57165);e.Observable.prototype.observeOn=n.observeOn},12459:(oe,x,i)=>{"use strict";var e=i(50289),n=i(32317);e.Observable.prototype.onErrorResumeNext=n.onErrorResumeNext},38732:(oe,x,i)=>{"use strict";var e=i(50289),n=i(59266);e.Observable.prototype.pairwise=n.pairwise},45220:(oe,x,i)=>{"use strict";var e=i(50289),n=i(83560);e.Observable.prototype.partition=n.partition},71225:(oe,x,i)=>{"use strict";var e=i(50289),n=i(67452);e.Observable.prototype.pluck=n.pluck},6268:(oe,x,i)=>{"use strict";var e=i(50289),n=i(66109);e.Observable.prototype.publish=n.publish},37255:(oe,x,i)=>{"use strict";var e=i(50289),n=i(96579);e.Observable.prototype.publishBehavior=n.publishBehavior},66814:(oe,x,i)=>{"use strict";var e=i(50289),n=i(86386);e.Observable.prototype.publishLast=n.publishLast},20757:(oe,x,i)=>{"use strict";var e=i(50289),n=i(353);e.Observable.prototype.publishReplay=n.publishReplay},73720:(oe,x,i)=>{"use strict";var e=i(50289),n=i(67128);e.Observable.prototype.race=n.race},38870:(oe,x,i)=>{"use strict";var e=i(50289),n=i(39289);e.Observable.prototype.reduce=n.reduce},43959:(oe,x,i)=>{"use strict";var e=i(50289),n=i(30593);e.Observable.prototype.repeat=n.repeat},28036:(oe,x,i)=>{"use strict";var e=i(50289),n=i(3669);e.Observable.prototype.repeatWhen=n.repeatWhen},60572:(oe,x,i)=>{"use strict";var e=i(50289),n=i(52642);e.Observable.prototype.retry=n.retry},25307:(oe,x,i)=>{"use strict";var e=i(50289),n=i(57398);e.Observable.prototype.retryWhen=n.retryWhen},81271:(oe,x,i)=>{"use strict";var e=i(50289),n=i(18578);e.Observable.prototype.sample=n.sample},52009:(oe,x,i)=>{"use strict";var e=i(50289),n=i(26082);e.Observable.prototype.sampleTime=n.sampleTime},4646:(oe,x,i)=>{"use strict";var e=i(50289),n=i(20198);e.Observable.prototype.scan=n.scan},54262:(oe,x,i)=>{"use strict";var e=i(50289),n=i(6316);e.Observable.prototype.sequenceEqual=n.sequenceEqual},20645:(oe,x,i)=>{"use strict";var e=i(50289),n=i(91338);e.Observable.prototype.share=n.share},98599:(oe,x,i)=>{"use strict";var e=i(50289),n=i(65593);e.Observable.prototype.shareReplay=n.shareReplay},71550:(oe,x,i)=>{"use strict";var e=i(50289),n=i(75159);e.Observable.prototype.single=n.single},67902:(oe,x,i)=>{"use strict";var e=i(50289),n=i(1036);e.Observable.prototype.skip=n.skip},91414:(oe,x,i)=>{"use strict";var e=i(50289),n=i(12606);e.Observable.prototype.skipLast=n.skipLast},12686:(oe,x,i)=>{"use strict";var e=i(50289),n=i(5467);e.Observable.prototype.skipUntil=n.skipUntil},55969:(oe,x,i)=>{"use strict";var e=i(50289),n=i(78495);e.Observable.prototype.skipWhile=n.skipWhile},37722:(oe,x,i)=>{"use strict";var e=i(50289),n=i(87071);e.Observable.prototype.startWith=n.startWith},6932:(oe,x,i)=>{"use strict";var e=i(50289),n=i(1384);e.Observable.prototype.subscribeOn=n.subscribeOn},9283:(oe,x,i)=>{"use strict";var e=i(50289),n=i(28030);e.Observable.prototype.switch=n._switch,e.Observable.prototype._switch=n._switch},10701:(oe,x,i)=>{"use strict";var e=i(50289),n=i(21087);e.Observable.prototype.switchMap=n.switchMap},50682:(oe,x,i)=>{"use strict";var e=i(50289),n=i(86739);e.Observable.prototype.switchMapTo=n.switchMapTo},35448:(oe,x,i)=>{"use strict";var e=i(50289),n=i(74218);e.Observable.prototype.take=n.take},99334:(oe,x,i)=>{"use strict";var e=i(50289),n=i(3076);e.Observable.prototype.takeLast=n.takeLast},35170:(oe,x,i)=>{"use strict";var e=i(50289),n=i(73942);e.Observable.prototype.takeUntil=n.takeUntil},65175:(oe,x,i)=>{"use strict";var e=i(50289),n=i(33858);e.Observable.prototype.takeWhile=n.takeWhile},56590:(oe,x,i)=>{"use strict";var e=i(50289),n=i(88446);e.Observable.prototype.throttle=n.throttle},65701:(oe,x,i)=>{"use strict";var e=i(50289),n=i(76970);e.Observable.prototype.throttleTime=n.throttleTime},17565:(oe,x,i)=>{"use strict";var e=i(50289),n=i(73745);e.Observable.prototype.timeInterval=n.timeInterval},8498:(oe,x,i)=>{"use strict";var e=i(50289),n=i(27100);e.Observable.prototype.timeout=n.timeout},27612:(oe,x,i)=>{"use strict";var e=i(50289),n=i(88560);e.Observable.prototype.timeoutWith=n.timeoutWith},50959:(oe,x,i)=>{"use strict";var e=i(50289),n=i(2395);e.Observable.prototype.timestamp=n.timestamp},47967:(oe,x,i)=>{"use strict";var e=i(50289),n=i(60368);e.Observable.prototype.toArray=n.toArray},18159:()=>{},33923:(oe,x,i)=>{"use strict";var e=i(50289),n=i(60828);e.Observable.prototype.window=n.window},9242:(oe,x,i)=>{"use strict";var e=i(50289),n=i(36072);e.Observable.prototype.windowCount=n.windowCount},93034:(oe,x,i)=>{"use strict";var e=i(50289),n=i(65576);e.Observable.prototype.windowTime=n.windowTime},91567:(oe,x,i)=>{"use strict";var e=i(50289),n=i(54464);e.Observable.prototype.windowToggle=n.windowToggle},23956:(oe,x,i)=>{"use strict";var e=i(50289),n=i(26844);e.Observable.prototype.windowWhen=n.windowWhen},22766:(oe,x,i)=>{"use strict";var e=i(50289),n=i(72283);e.Observable.prototype.withLatestFrom=n.withLatestFrom},68379:(oe,x,i)=>{"use strict";var e=i(50289),n=i(76711);e.Observable.prototype.zip=n.zipProto},82055:(oe,x,i)=>{"use strict";var e=i(50289),n=i(49756);e.Observable.prototype.zipAll=n.zipAll},75150:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(50289),a=i(18641),t=i(9992),l=function(h){function s(d,p){h.call(this),this.arrayLike=d,this.scheduler=p,!p&&1===d.length&&(this._isScalar=!0,this.value=d[0])}return e(s,h),s.create=function(d,p){var u=d.length;return 0===u?new t.EmptyObservable:1===u?new a.ScalarObservable(d[0],p):new s(d,p)},s.dispatch=function(d){var p=d.arrayLike,u=d.index,v=d.subscriber;if(!v.closed){if(u>=d.length)return void v.complete();v.next(p[u]),d.index=u+1,this.schedule(d)}},s.prototype._subscribe=function(d){var g=this.arrayLike,v=this.scheduler,y=g.length;if(v)return v.schedule(s.dispatch,0,{arrayLike:g,index:0,length:y,subscriber:d});for(var b=0;b<y&&!d.closed;b++)d.next(g[b]);d.complete()},s}(n.Observable);x.ArrayLikeObservable=l},96821:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(50289),a=i(18641),t=i(9992),l=i(72276),h=function(s){function d(p,u){s.call(this),this.array=p,this.scheduler=u,!u&&1===p.length&&(this._isScalar=!0,this.value=p[0])}return e(d,s),d.create=function(p,u){return new d(p,u)},d.of=function(){for(var p=[],u=0;u<arguments.length;u++)p[u-0]=arguments[u];var g=p[p.length-1];l.isScheduler(g)?p.pop():g=null;var v=p.length;return v>1?new d(p,g):1===v?new a.ScalarObservable(p[0],g):new t.EmptyObservable(g)},d.dispatch=function(p){var u=p.array,g=p.index,y=p.subscriber;g>=p.count?y.complete():(y.next(u[g]),!y.closed&&(p.index=g+1,this.schedule(p)))},d.prototype._subscribe=function(p){var g=this.array,v=g.length,y=this.scheduler;if(y)return y.schedule(d.dispatch,0,{array:g,index:0,count:v,subscriber:p});for(var b=0;b<v&&!p.closed;b++)p.next(g[b]);p.complete()},d}(n.Observable);x.ArrayObservable=h},43240:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(50289),a=i(66530),t=i(78027),l=i(57993),h=function(p){function u(g,v,y,b,S){p.call(this),this.callbackFunc=g,this.selector=v,this.args=y,this.context=b,this.scheduler=S}return e(u,p),u.create=function(g,v,y){return void 0===v&&(v=void 0),function(){for(var b=[],S=0;S<arguments.length;S++)b[S-0]=arguments[S];return new u(g,v,b,this,y)}},u.prototype._subscribe=function(g){var v=this.callbackFunc,y=this.args,b=this.scheduler,S=this.subject;if(b)return b.schedule(u.dispatch,0,{source:this,subscriber:g,context:this.context});if(!S){S=this.subject=new l.AsyncSubject;var E=function A(){for(var P=[],B=0;B<arguments.length;B++)P[B-0]=arguments[B];var V=A.source,X=V.selector,re=V.subject;if(X){var Q=a.tryCatch(X).apply(this,P);Q===t.errorObject?re.error(t.errorObject.e):(re.next(Q),re.complete())}else re.next(P.length<=1?P[0]:P),re.complete()};E.source=this,a.tryCatch(v).apply(this.context,y.concat(E))===t.errorObject&&S.error(t.errorObject.e)}return S.subscribe(g)},u.dispatch=function(g){var v=this,y=g.source,b=g.subscriber,S=g.context,E=y.callbackFunc,D=y.args,A=y.scheduler,P=y.subject;if(!P){P=y.subject=new l.AsyncSubject;var B=function X(){for(var re=[],Q=0;Q<arguments.length;Q++)re[Q-0]=arguments[Q];var ae=X.source,K=ae.selector,k=ae.subject;if(K){var $=a.tryCatch(K).apply(this,re);v.add($===t.errorObject?A.schedule(d,0,{err:t.errorObject.e,subject:k}):A.schedule(s,0,{value:$,subject:k}))}else v.add(A.schedule(s,0,{value:re.length<=1?re[0]:re,subject:k}))};B.source=y,a.tryCatch(E).apply(S,D.concat(B))===t.errorObject&&P.error(t.errorObject.e)}v.add(P.subscribe(b))},u}(n.Observable);function s(p){var g=p.subject;g.next(p.value),g.complete()}function d(p){p.subject.error(p.err)}x.BoundCallbackObservable=h},87770:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(50289),a=i(66530),t=i(78027),l=i(57993),h=function(u){function g(v,y,b,S,E){u.call(this),this.callbackFunc=v,this.selector=y,this.args=b,this.context=S,this.scheduler=E}return e(g,u),g.create=function(v,y,b){return void 0===y&&(y=void 0),function(){for(var S=[],E=0;E<arguments.length;E++)S[E-0]=arguments[E];return new g(v,y,S,this,b)}},g.prototype._subscribe=function(v){var y=this.callbackFunc,b=this.args,S=this.scheduler,E=this.subject;if(S)return S.schedule(s,0,{source:this,subscriber:v,context:this.context});if(!E){E=this.subject=new l.AsyncSubject;var D=function P(){for(var B=[],V=0;V<arguments.length;V++)B[V-0]=arguments[V];var X=P.source,re=X.selector,Q=X.subject,ae=B.shift();if(ae)Q.error(ae);else if(re){var K=a.tryCatch(re).apply(this,B);K===t.errorObject?Q.error(t.errorObject.e):(Q.next(K),Q.complete())}else Q.next(B.length<=1?B[0]:B),Q.complete()};D.source=this,a.tryCatch(y).apply(this.context,b.concat(D))===t.errorObject&&E.error(t.errorObject.e)}return E.subscribe(v)},g}(n.Observable);function s(u){var g=this,v=u.source,y=u.subscriber,b=u.context,E=v.callbackFunc,D=v.args,A=v.scheduler,P=v.subject;if(!P){P=v.subject=new l.AsyncSubject;var B=function X(){for(var re=[],Q=0;Q<arguments.length;Q++)re[Q-0]=arguments[Q];var ae=X.source,K=ae.selector,k=ae.subject,$=re.shift();if($)g.add(A.schedule(p,0,{err:$,subject:k}));else if(K){var j=a.tryCatch(K).apply(this,re);g.add(j===t.errorObject?A.schedule(p,0,{err:t.errorObject.e,subject:k}):A.schedule(d,0,{value:j,subject:k}))}else g.add(A.schedule(d,0,{value:re.length<=1?re[0]:re,subject:k}))};B.source=v,a.tryCatch(E).apply(b,D.concat(B))===t.errorObject&&g.add(A.schedule(p,0,{err:t.errorObject.e,subject:P}))}g.add(P.subscribe(y))}function d(u){var v=u.subject;v.next(u.value),v.complete()}function p(u){u.subject.error(u.err)}x.BoundNodeCallbackObservable=h},71954:function(oe,x,i){"use strict";var e=this&&this.__extends||function(v,y){for(var b in y)y.hasOwnProperty(b)&&(v[b]=y[b]);function S(){this.constructor=v}v.prototype=null===y?Object.create(y):(S.prototype=y.prototype,new S)},n=i(87632),a=i(50289),t=i(62682),l=i(57217),h=i(67486),s=function(v){function y(b,S){v.call(this),this.source=b,this.subjectFactory=S,this._refCount=0,this._isComplete=!1}return e(y,v),y.prototype._subscribe=function(b){return this.getSubject().subscribe(b)},y.prototype.getSubject=function(){var b=this._subject;return(!b||b.isStopped)&&(this._subject=this.subjectFactory()),this._subject},y.prototype.connect=function(){var b=this._connection;return b||(this._isComplete=!1,(b=this._connection=new l.Subscription).add(this.source.subscribe(new p(this.getSubject(),this))),b.closed?(this._connection=null,b=l.Subscription.EMPTY):this._connection=b),b},y.prototype.refCount=function(){return h.refCount()(this)},y}(a.Observable);x.ConnectableObservable=s;var d=s.prototype;x.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:d._subscribe},_isComplete:{value:d._isComplete,writable:!0},getSubject:{value:d.getSubject},connect:{value:d.connect},refCount:{value:d.refCount}};var p=function(v){function y(b,S){v.call(this,b),this.connectable=S}return e(y,v),y.prototype._error=function(b){this._unsubscribe(),v.prototype._error.call(this,b)},y.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),v.prototype._complete.call(this)},y.prototype._unsubscribe=function(){var b=this.connectable;if(b){this.connectable=null;var S=b._connection;b._refCount=0,b._subject=null,b._connection=null,S&&S.unsubscribe()}},y}(n.SubjectSubscriber);!function(v){function y(b,S){v.call(this,b),this.connectable=S}e(y,v),y.prototype._unsubscribe=function(){var b=this.connectable;if(b){this.connectable=null;var S=b._refCount;if(S<=0)this.connection=null;else if(b._refCount=S-1,S>1)this.connection=null;else{var E=this.connection,D=b._connection;this.connection=null,D&&(!E||D===E)&&D.unsubscribe()}}else this.connection=null}}(t.Subscriber)},82091:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(50289),a=i(27450),t=i(79229),l=function(s){function d(p){s.call(this),this.observableFactory=p}return e(d,s),d.create=function(p){return new d(p)},d.prototype._subscribe=function(p){return new h(p,this.observableFactory)},d}(n.Observable);x.DeferObservable=l;var h=function(s){function d(p,u){s.call(this,p),this.factory=u,this.tryDefer()}return e(d,s),d.prototype.tryDefer=function(){try{this._callFactory()}catch(p){this._error(p)}},d.prototype._callFactory=function(){var p=this.factory();p&&this.add(a.subscribeToResult(this,p))},d}(t.OuterSubscriber)},9992:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(h){t.call(this),this.scheduler=h}return e(l,t),l.create=function(h){return new l(h)},l.dispatch=function(h){h.subscriber.complete()},l.prototype._subscribe=function(h){var s=this.scheduler;if(s)return s.schedule(l.dispatch,0,{subscriber:h});h.complete()},l}(i(50289).Observable);x.EmptyObservable=a},9167:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(h,s){t.call(this),this.error=h,this.scheduler=s}return e(l,t),l.create=function(h,s){return new l(h,s)},l.dispatch=function(h){h.subscriber.error(h.error)},l.prototype._subscribe=function(h){var s=this.error,d=this.scheduler;if(h.syncErrorThrowable=!0,d)return d.schedule(l.dispatch,0,{error:s,subscriber:h});h.error(s)},l}(i(50289).Observable);x.ErrorObservable=a},21184:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(50289),a=i(9992),t=i(72001),l=i(27450),h=i(79229),s=function(p){function u(g,v){p.call(this),this.sources=g,this.resultSelector=v}return e(u,p),u.create=function(){for(var g=[],v=0;v<arguments.length;v++)g[v-0]=arguments[v];if(null===g||0===arguments.length)return new a.EmptyObservable;var y=null;return"function"==typeof g[g.length-1]&&(y=g.pop()),1===g.length&&t.isArray(g[0])&&(g=g[0]),0===g.length?new a.EmptyObservable:new u(g,y)},u.prototype._subscribe=function(g){return new d(g,this.sources,this.resultSelector)},u}(n.Observable);x.ForkJoinObservable=s;var d=function(p){function u(g,v,y){p.call(this,g),this.sources=v,this.resultSelector=y,this.completed=0,this.haveValues=0;var b=v.length;this.total=b,this.values=new Array(b);for(var S=0;S<b;S++){var D=l.subscribeToResult(this,v[S],null,S);D&&(D.outerIndex=S,this.add(D))}}return e(u,p),u.prototype.notifyNext=function(g,v,y,b,S){this.values[y]=v,S._hasValue||(S._hasValue=!0,this.haveValues++)},u.prototype.notifyComplete=function(g){var v=this.destination,y=this,b=y.haveValues,S=y.resultSelector,E=y.values,D=E.length;if(g._hasValue){if(this.completed++,this.completed===D){if(b===D){var A=S?S.apply(this,E):E;v.next(A)}v.complete()}}else v.complete()},u}(h.OuterSubscriber)},11607:function(oe,x,i){"use strict";var e=this&&this.__extends||function(b,S){for(var E in S)S.hasOwnProperty(E)&&(b[E]=S[E]);function D(){this.constructor=b}b.prototype=null===S?Object.create(S):(D.prototype=S.prototype,new D)},n=i(50289),a=i(66530),t=i(63439),l=i(78027),h=i(57217),s=Object.prototype.toString,y=function(b){function S(E,D,A,P){b.call(this),this.sourceObj=E,this.eventName=D,this.selector=A,this.options=P}return e(S,b),S.create=function(E,D,A,P){return t.isFunction(A)&&(P=A,A=void 0),new S(E,D,P,A)},S.setupSubscription=function(E,D,A,P,B){var V;if(function u(b){return!!b&&"[object NodeList]"===s.call(b)}(E)||function g(b){return!!b&&"[object HTMLCollection]"===s.call(b)}(E))for(var X=0,re=E.length;X<re;X++)S.setupSubscription(E[X],D,A,P,B);else if(function v(b){return!!b&&"function"==typeof b.addEventListener&&"function"==typeof b.removeEventListener}(E)){var Q=E;E.addEventListener(D,A,B),V=function(){return Q.removeEventListener(D,A,B)}}else if(function p(b){return!!b&&"function"==typeof b.on&&"function"==typeof b.off}(E)){var ae=E;E.on(D,A),V=function(){return ae.off(D,A)}}else{if(!function d(b){return!!b&&"function"==typeof b.addListener&&"function"==typeof b.removeListener}(E))throw new TypeError("Invalid event target");var K=E;E.addListener(D,A),V=function(){return K.removeListener(D,A)}}P.add(new h.Subscription(V))},S.prototype._subscribe=function(E){var B=this.selector,V=B?function(){for(var X=[],re=0;re<arguments.length;re++)X[re-0]=arguments[re];var Q=a.tryCatch(B).apply(void 0,X);Q===l.errorObject?E.error(l.errorObject.e):E.next(Q)}:function(X){return E.next(X)};S.setupSubscription(this.sourceObj,this.eventName,V,E,this.options)},S}(n.Observable);x.FromEventObservable=y},34015:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(63439),a=i(50289),t=i(57217),l=function(h){function s(d,p,u){h.call(this),this.addHandler=d,this.removeHandler=p,this.selector=u}return e(s,h),s.create=function(d,p,u){return new s(d,p,u)},s.prototype._subscribe=function(d){var p=this,u=this.removeHandler,g=this.selector?function(){for(var y=[],b=0;b<arguments.length;b++)y[b-0]=arguments[b];p._callSelector(d,y)}:function(y){d.next(y)},v=this._callAddHandler(g,d);n.isFunction(u)&&d.add(new t.Subscription(function(){u(g,v)}))},s.prototype._callSelector=function(d,p){try{var u=this.selector.apply(this,p);d.next(u)}catch(g){d.error(g)}},s.prototype._callAddHandler=function(d,p){try{return this.addHandler(d)||null}catch(u){p.error(u)}},s}(a.Observable);x.FromEventPatternObservable=l},22373:function(oe,x,i){"use strict";var e=this&&this.__extends||function(b,S){for(var E in S)S.hasOwnProperty(E)&&(b[E]=S[E]);function D(){this.constructor=b}b.prototype=null===S?Object.create(S):(D.prototype=S.prototype,new D)},n=i(72001),a=i(44338),t=i(51330),l=i(73797),h=i(16931),s=i(96821),d=i(75150),p=i(82967),u=i(50289),g=i(64579),v=i(22168),y=function(b){function S(E,D){b.call(this,null),this.ish=E,this.scheduler=D}return e(S,b),S.create=function(E,D){if(null!=E){if("function"==typeof E[v.observable])return E instanceof u.Observable&&!D?E:new S(E,D);if(n.isArray(E))return new s.ArrayObservable(E,D);if(t.isPromise(E))return new l.PromiseObservable(E,D);if("function"==typeof E[p.iterator]||"string"==typeof E)return new h.IteratorObservable(E,D);if(a.isArrayLike(E))return new d.ArrayLikeObservable(E,D)}throw new TypeError((null!==E&&typeof E||E)+" is not observable")},S.prototype._subscribe=function(E){var D=this.ish,A=this.scheduler;return null==A?D[v.observable]().subscribe(E):D[v.observable]().subscribe(new g.ObserveOnSubscriber(E,A,0))},S}(u.Observable);x.FromObservable=y},73468:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(50289),a=i(72276),t=function(h){return h},l=function(h){function s(d,p,u,g,v){h.call(this),this.initialState=d,this.condition=p,this.iterate=u,this.resultSelector=g,this.scheduler=v}return e(s,h),s.create=function(d,p,u,g,v){return 1==arguments.length?new s(d.initialState,d.condition,d.iterate,d.resultSelector||t,d.scheduler):void 0===g||a.isScheduler(g)?new s(d,p,u,t,g):new s(d,p,u,g,v)},s.prototype._subscribe=function(d){var p=this.initialState;if(this.scheduler)return this.scheduler.schedule(s.dispatch,0,{subscriber:d,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:p});for(var u=this,g=u.condition,v=u.resultSelector,y=u.iterate;;){if(g){var b=void 0;try{b=g(p)}catch(E){return void d.error(E)}if(!b){d.complete();break}}var S=void 0;try{S=v(p)}catch(E){return void d.error(E)}if(d.next(S),d.closed)break;try{p=y(p)}catch(E){return void d.error(E)}}},s.dispatch=function(d){var p=d.subscriber,u=d.condition;if(!p.closed){if(d.needIterate)try{d.state=d.iterate(d.state)}catch(y){return void p.error(y)}else d.needIterate=!0;if(u){var g=void 0;try{g=u(d.state)}catch(y){return void p.error(y)}if(!g)return void p.complete();if(p.closed)return}var v;try{v=d.resultSelector(d.state)}catch(y){return void p.error(y)}if(!p.closed&&(p.next(v),!p.closed))return this.schedule(d)}},s}(n.Observable);x.GenerateObservable=l},95534:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(50289),a=i(27450),t=i(79229),l=function(s){function d(p,u,g){s.call(this),this.condition=p,this.thenSource=u,this.elseSource=g}return e(d,s),d.create=function(p,u,g){return new d(p,u,g)},d.prototype._subscribe=function(p){var u=this;return new h(p,u.condition,u.thenSource,u.elseSource)},d}(n.Observable);x.IfObservable=l;var h=function(s){function d(p,u,g,v){s.call(this,p),this.condition=u,this.thenSource=g,this.elseSource=v,this.tryIf()}return e(d,s),d.prototype.tryIf=function(){var p=this,u=p.condition,g=p.thenSource,v=p.elseSource;try{var b=u()?g:v;b?this.add(a.subscribeToResult(this,b)):this._complete()}catch(S){this._error(S)}},d}(t.OuterSubscriber)},80272:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(54314),a=i(50289),t=i(54039),l=function(h){function s(d,p){void 0===d&&(d=0),void 0===p&&(p=t.async),h.call(this),this.period=d,this.scheduler=p,(!n.isNumeric(d)||d<0)&&(this.period=0),(!p||"function"!=typeof p.schedule)&&(this.scheduler=t.async)}return e(s,h),s.create=function(d,p){return void 0===d&&(d=0),void 0===p&&(p=t.async),new s(d,p)},s.dispatch=function(d){var u=d.subscriber,g=d.period;u.next(d.index),!u.closed&&(d.index+=1,this.schedule(d,g))},s.prototype._subscribe=function(d){var u=this.period;d.add(this.scheduler.schedule(s.dispatch,u,{index:0,subscriber:d,period:u}))},s}(a.Observable);x.IntervalObservable=l},16931:function(oe,x,i){"use strict";var e=this&&this.__extends||function(y,b){for(var S in b)b.hasOwnProperty(S)&&(y[S]=b[S]);function E(){this.constructor=y}y.prototype=null===b?Object.create(b):(E.prototype=b.prototype,new E)},n=i(79892),a=i(50289),t=i(82967),l=function(y){function b(S,E){if(y.call(this),this.scheduler=E,null==S)throw new Error("iterator cannot be null.");this.iterator=function d(y){var b=y[t.iterator];if(!b&&"string"==typeof y)return new h(y);if(!b&&void 0!==y.length)return new s(y);if(!b)throw new TypeError("object is not iterable");return y[t.iterator]()}(S)}return e(b,y),b.create=function(S,E){return new b(S,E)},b.dispatch=function(S){var E=S.index,A=S.iterator,P=S.subscriber;if(S.hasError)P.error(S.error);else{var B=A.next();B.done?P.complete():(P.next(B.value),S.index=E+1,P.closed?"function"==typeof A.return&&A.return():this.schedule(S))}},b.prototype._subscribe=function(S){var A=this.iterator,P=this.scheduler;if(P)return P.schedule(b.dispatch,0,{index:0,iterator:A,subscriber:S});for(;;){var B=A.next();if(B.done){S.complete();break}if(S.next(B.value),S.closed){"function"==typeof A.return&&A.return();break}}},b}(a.Observable);x.IteratorObservable=l;var h=function(){function y(b,S,E){void 0===S&&(S=0),void 0===E&&(E=b.length),this.str=b,this.idx=S,this.len=E}return y.prototype[t.iterator]=function(){return this},y.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},y}(),s=function(){function y(b,S,E){void 0===S&&(S=0),void 0===E&&(E=function u(y){var b=+y.length;return isNaN(b)?0:0!==b&&function g(y){return"number"==typeof y&&n.root.isFinite(y)}(b)?(b=function v(y){var b=+y;return 0===b||isNaN(b)?b:b<0?-1:1}(b)*Math.floor(Math.abs(b)),b<=0?0:b>p?p:b):b}(b)),this.arr=b,this.idx=S,this.len=E}return y.prototype[t.iterator]=function(){return this},y.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},y}(),p=Math.pow(2,53)-1},49189:function(oe,x,i){"use strict";var e=this&&this.__extends||function(l,h){for(var s in h)h.hasOwnProperty(s)&&(l[s]=h[s]);function d(){this.constructor=l}l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)},n=i(50289),a=i(30007),t=function(l){function h(){l.call(this)}return e(h,l),h.create=function(){return new h},h.prototype._subscribe=function(s){a.noop()},h}(n.Observable);x.NeverObservable=t},95082:function(oe,x,i){"use strict";var e=this&&this.__extends||function(l,h){for(var s in h)h.hasOwnProperty(s)&&(l[s]=h[s]);function d(){this.constructor=l}l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)};function a(l){var p=l.index,u=l.subscriber;if(p!==l.length){var g=l.keys[p];u.next([g,l.obj[g]]),l.index=p+1,this.schedule(l)}else u.complete()}var t=function(l){function h(s,d){l.call(this),this.obj=s,this.scheduler=d,this.keys=Object.keys(s)}return e(h,l),h.create=function(s,d){return new h(s,d)},h.prototype._subscribe=function(s){var p=this.keys,u=this.scheduler,g=p.length;if(u)return u.schedule(a,0,{obj:this.obj,keys:p,length:g,index:0,subscriber:s});for(var v=0;v<g;v++){var y=p[v];s.next([y,this.obj[y]])}s.complete()},h}(i(50289).Observable);x.PairsObservable=t},73797:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79892),t=function(s){function d(p,u){s.call(this),this.promise=p,this.scheduler=u}return e(d,s),d.create=function(p,u){return new d(p,u)},d.prototype._subscribe=function(p){var u=this,g=this.promise,v=this.scheduler;if(null==v)this._isScalar?p.closed||(p.next(this.value),p.complete()):g.then(function(y){u.value=y,u._isScalar=!0,p.closed||(p.next(y),p.complete())},function(y){p.closed||p.error(y)}).then(null,function(y){n.root.setTimeout(function(){throw y})});else if(this._isScalar){if(!p.closed)return v.schedule(l,0,{value:this.value,subscriber:p})}else g.then(function(y){u.value=y,u._isScalar=!0,p.closed||p.add(v.schedule(l,0,{value:y,subscriber:p}))},function(y){p.closed||p.add(v.schedule(h,0,{err:y,subscriber:p}))}).then(null,function(y){n.root.setTimeout(function(){throw y})})},d}(i(50289).Observable);function l(s){var p=s.subscriber;p.closed||(p.next(s.value),p.complete())}function h(s){var p=s.subscriber;p.closed||p.error(s.err)}x.PromiseObservable=t},91641:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(h,s,d){t.call(this),this.start=h,this._count=s,this.scheduler=d}return e(l,t),l.create=function(h,s,d){return void 0===h&&(h=0),void 0===s&&(s=0),new l(h,s,d)},l.dispatch=function(h){var s=h.start,d=h.index,u=h.subscriber;d>=h.count?u.complete():(u.next(s),!u.closed&&(h.index=d+1,h.start=s+1,this.schedule(h)))},l.prototype._subscribe=function(h){var s=0,d=this.start,p=this._count,u=this.scheduler;if(u)return u.schedule(l.dispatch,0,{index:s,count:p,start:d,subscriber:h});for(;;){if(s++>=p){h.complete();break}if(h.next(d++),h.closed)break}},l}(i(50289).Observable);x.RangeObservable=a},18641:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(h,s){t.call(this),this.value=h,this.scheduler=s,this._isScalar=!0,s&&(this._isScalar=!1)}return e(l,t),l.create=function(h,s){return new l(h,s)},l.dispatch=function(h){var d=h.value,p=h.subscriber;h.done?p.complete():(p.next(d),!p.closed&&(h.done=!0,this.schedule(h)))},l.prototype._subscribe=function(h){var s=this.value,d=this.scheduler;if(d)return d.schedule(l.dispatch,0,{done:!1,value:s,subscriber:h});h.next(s),h.closed||h.complete()},l}(i(50289).Observable);x.ScalarObservable=a},30134:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(50289),a=i(66909),t=i(54314),l=function(h){function s(d,p,u){void 0===p&&(p=0),void 0===u&&(u=a.asap),h.call(this),this.source=d,this.delayTime=p,this.scheduler=u,(!t.isNumeric(p)||p<0)&&(this.delayTime=0),(!u||"function"!=typeof u.schedule)&&(this.scheduler=a.asap)}return e(s,h),s.create=function(d,p,u){return void 0===p&&(p=0),void 0===u&&(u=a.asap),new s(d,p,u)},s.dispatch=function(d){return this.add(d.source.subscribe(d.subscriber))},s.prototype._subscribe=function(d){return this.scheduler.schedule(s.dispatch,this.delayTime,{source:this.source,subscriber:d})},s}(n.Observable);x.SubscribeOnObservable=l},81890:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(54314),a=i(50289),t=i(54039),l=i(72276),h=i(19952),s=function(d){function p(u,g,v){void 0===u&&(u=0),d.call(this),this.period=-1,this.dueTime=0,n.isNumeric(g)?this.period=Number(g)<1?1:Number(g):l.isScheduler(g)&&(v=g),l.isScheduler(v)||(v=t.async),this.scheduler=v,this.dueTime=h.isDate(u)?+u-this.scheduler.now():u}return e(p,d),p.create=function(u,g,v){return void 0===u&&(u=0),new p(u,g,v)},p.dispatch=function(u){var g=u.index,v=u.period,y=u.subscriber;if(y.next(g),!y.closed){if(-1===v)return y.complete();u.index=g+1,this.schedule(u,v)}},p.prototype._subscribe=function(u){var v=this;return v.scheduler.schedule(p.dispatch,v.dueTime,{index:0,period:v.period,subscriber:u})},p}(a.Observable);x.TimerObservable=s},26126:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(50289),a=i(27450),t=i(79229),l=function(s){function d(p,u){s.call(this),this.resourceFactory=p,this.observableFactory=u}return e(d,s),d.create=function(p,u){return new d(p,u)},d.prototype._subscribe=function(p){var y,g=this.resourceFactory,v=this.observableFactory;try{return y=g(),new h(p,y,v)}catch(b){p.error(b)}},d}(n.Observable);x.UsingObservable=l;var h=function(s){function d(p,u,g){s.call(this,p),this.resource=u,this.observableFactory=g,p.add(u),this.tryUse()}return e(d,s),d.prototype.tryUse=function(){try{var p=this.observableFactory.call(this,this.resource);p&&this.add(a.subscribeToResult(this,p))}catch(u){this._error(u)}},d}(t.OuterSubscriber)},98145:(oe,x,i)=>{"use strict";var e=i(43240);x.bindCallback=e.BoundCallbackObservable.create},46657:(oe,x,i)=>{"use strict";var e=i(87770);x.bindNodeCallback=e.BoundNodeCallbackObservable.create},65005:(oe,x,i)=>{"use strict";var e=i(72276),n=i(72001),a=i(96821),t=i(35090);x.combineLatest=function l(){for(var h=[],s=0;s<arguments.length;s++)h[s-0]=arguments[s];var d=null,p=null;return e.isScheduler(h[h.length-1])&&(p=h.pop()),"function"==typeof h[h.length-1]&&(d=h.pop()),1===h.length&&n.isArray(h[0])&&(h=h[0]),new a.ArrayObservable(h,p).lift(new t.CombineLatestOperator(d))}},15956:(oe,x,i)=>{"use strict";var e=i(72276),n=i(27400),a=i(57057),t=i(21671);x.concat=function l(){for(var h=[],s=0;s<arguments.length;s++)h[s-0]=arguments[s];return 1===h.length||2===h.length&&e.isScheduler(h[1])?a.from(h[0]):t.concatAll()(n.of.apply(void 0,h))}},48921:(oe,x,i)=>{"use strict";var e=i(82091);x.defer=e.DeferObservable.create},23513:function(oe,x,i){"use strict";var e=this&&this.__extends||function(re,Q){for(var ae in Q)Q.hasOwnProperty(ae)&&(re[ae]=Q[ae]);function K(){this.constructor=re}re.prototype=null===Q?Object.create(Q):(K.prototype=Q.prototype,new K)},n=i(79892),a=i(66530),t=i(78027),l=i(50289),h=i(62682),s=i(61894);function d(){if(n.root.XMLHttpRequest)return new n.root.XMLHttpRequest;if(n.root.XDomainRequest)return new n.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function u(re,Q){return void 0===Q&&(Q=null),new D({method:"GET",url:re,headers:Q})}function g(re,Q,ae){return new D({method:"POST",url:re,body:Q,headers:ae})}function v(re,Q){return new D({method:"DELETE",url:re,headers:Q})}function y(re,Q,ae){return new D({method:"PUT",url:re,body:Q,headers:ae})}function b(re,Q,ae){return new D({method:"PATCH",url:re,body:Q,headers:ae})}x.ajaxGet=u,x.ajaxPost=g,x.ajaxDelete=v,x.ajaxPut=y,x.ajaxPatch=b;var S=s.map(function(re,Q){return re.response});function E(re,Q){return S(new D({method:"GET",url:re,responseType:"json",headers:Q}))}x.ajaxGetJSON=E;var D=function(re){function Q(ae){re.call(this);var K={async:!0,createXHR:function(){return this.crossDomain?d.call(this):function p(){if(n.root.XMLHttpRequest)return new n.root.XMLHttpRequest;var re=void 0;try{for(var Q=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],ae=0;ae<3;ae++)try{if(new n.root.ActiveXObject(re=Q[ae]))break}catch{}return new n.root.ActiveXObject(re)}catch{throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof ae)K.url=ae;else for(var k in ae)ae.hasOwnProperty(k)&&(K[k]=ae[k]);this.request=K}return e(Q,re),Q.prototype._subscribe=function(ae){return new A(ae,this.request)},Q.create=((ae=function(K){return new Q(K)}).get=u,ae.post=g,ae.delete=v,ae.put=y,ae.patch=b,ae.getJSON=E,ae),Q;var ae}(l.Observable);x.AjaxObservable=D;var A=function(re){function Q(ae,K){re.call(this,ae),this.request=K,this.done=!1;var k=K.headers=K.headers||{};!K.crossDomain&&!k["X-Requested-With"]&&(k["X-Requested-With"]="XMLHttpRequest"),!("Content-Type"in k)&&!(n.root.FormData&&K.body instanceof n.root.FormData)&&typeof K.body<"u"&&(k["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),K.body=this.serializeBody(K.body,K.headers["Content-Type"]),this.send()}return e(Q,re),Q.prototype.next=function(ae){this.done=!0;var K=this,j=K.destination,R=new P(ae,K.xhr,K.request);j.next(R)},Q.prototype.send=function(){var K=this.request,k=this.request,$=k.user,j=k.method,R=k.url,U=k.async,le=k.password,T=k.headers,H=k.body,pe=a.tryCatch(K.createXHR).call(K);if(pe===t.errorObject)this.error(t.errorObject.e);else{if(this.xhr=pe,this.setupEvents(pe,K),($?a.tryCatch(pe.open).call(pe,j,R,U,$,le):a.tryCatch(pe.open).call(pe,j,R,U))===t.errorObject)return this.error(t.errorObject.e),null;if(U&&(pe.timeout=K.timeout,pe.responseType=K.responseType),"withCredentials"in pe&&(pe.withCredentials=!!K.withCredentials),this.setHeaders(pe,T),(H?a.tryCatch(pe.send).call(pe,H):a.tryCatch(pe.send).call(pe))===t.errorObject)return this.error(t.errorObject.e),null}return pe},Q.prototype.serializeBody=function(ae,K){if(!ae||"string"==typeof ae)return ae;if(n.root.FormData&&ae instanceof n.root.FormData)return ae;if(K){var k=K.indexOf(";");-1!==k&&(K=K.substring(0,k))}switch(K){case"application/x-www-form-urlencoded":return Object.keys(ae).map(function($){return encodeURIComponent($)+"="+encodeURIComponent(ae[$])}).join("&");case"application/json":return JSON.stringify(ae);default:return ae}},Q.prototype.setHeaders=function(ae,K){for(var k in K)K.hasOwnProperty(k)&&ae.setRequestHeader(k,K[k])},Q.prototype.setupEvents=function(ae,K){var j,R,k=K.progressSubscriber;function $(le){var H=$.subscriber,N=$.progressSubscriber,pe=$.request;N&&N.error(le),H.error(new X(this,pe))}(ae.ontimeout=$,$.request=K,$.subscriber=this,$.progressSubscriber=k,ae.upload&&"withCredentials"in ae)&&(k&&(j=function(le){j.progressSubscriber.next(le)},n.root.XDomainRequest?ae.onprogress=j:ae.upload.onprogress=j,j.progressSubscriber=k),ae.onerror=R=function(le){var H=R.progressSubscriber,N=R.subscriber,pe=R.request;H&&H.error(le),N.error(new B("ajax error",this,pe))},R.request=K,R.subscriber=this,R.progressSubscriber=k);function U(le){var H=U.subscriber,N=U.progressSubscriber,pe=U.request;if(4===this.readyState){var de=1223===this.status?204:this.status;0===de&&(de=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),200<=de&&de<300?(N&&N.complete(),H.next(le),H.complete()):(N&&N.error(le),H.error(new B("ajax error "+de,this,pe)))}}ae.onreadystatechange=U,U.subscriber=this,U.progressSubscriber=k,U.request=K},Q.prototype.unsubscribe=function(){var k=this.xhr;!this.done&&k&&4!==k.readyState&&"function"==typeof k.abort&&k.abort(),re.prototype.unsubscribe.call(this)},Q}(h.Subscriber);x.AjaxSubscriber=A;var P=function re(Q,ae,K){this.originalEvent=Q,this.xhr=ae,this.request=K,this.status=ae.status,this.responseType=ae.responseType||K.responseType,this.response=V(this.responseType,ae)};x.AjaxResponse=P;var B=function(re){function Q(ae,K,k){re.call(this,ae),this.message=ae,this.xhr=K,this.request=k,this.status=K.status,this.responseType=K.responseType||k.responseType,this.response=V(this.responseType,K)}return e(Q,re),Q}(Error);function V(re,Q){switch(re){case"json":return"response"in Q?Q.responseType?Q.response:JSON.parse(Q.response||Q.responseText||"null"):JSON.parse(Q.responseText||"null");case"xml":return Q.responseXML;default:return"response"in Q?Q.response:Q.responseText}}x.AjaxError=B;var X=function(re){function Q(ae,K){re.call(this,"ajax timeout",ae,K)}return e(Q,re),Q}(B);x.AjaxTimeoutError=X},53725:function(oe,x,i){"use strict";var e=this&&this.__extends||function(v,y){for(var b in y)y.hasOwnProperty(b)&&(v[b]=y[b]);function S(){this.constructor=v}v.prototype=null===y?Object.create(y):(S.prototype=y.prototype,new S)},n=i(87632),a=i(62682),t=i(50289),l=i(57217),h=i(79892),s=i(69467),d=i(66530),p=i(78027),u=i(76967),g=function(v){function y(b,S){if(b instanceof t.Observable)v.call(this,S,b);else{if(v.call(this),this.WebSocketCtor=h.root.WebSocket,this._output=new n.Subject,"string"==typeof b?this.url=b:u.assign(this,b),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new s.ReplaySubject}}return e(y,v),y.prototype.resultSelector=function(b){return JSON.parse(b.data)},y.create=function(b){return new y(b)},y.prototype.lift=function(b){var S=new y(this,this.destination);return S.operator=b,S},y.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new s.ReplaySubject),this._output=new n.Subject},y.prototype.multiplex=function(b,S,E){var D=this;return new t.Observable(function(A){var P=d.tryCatch(b)();P===p.errorObject?A.error(p.errorObject.e):D.next(P);var B=D.subscribe(function(V){var X=d.tryCatch(E)(V);X===p.errorObject?A.error(p.errorObject.e):X&&A.next(V)},function(V){return A.error(V)},function(){return A.complete()});return function(){var V=d.tryCatch(S)();V===p.errorObject?A.error(p.errorObject.e):D.next(V),B.unsubscribe()}})},y.prototype._connectSocket=function(){var b=this,S=this.WebSocketCtor,E=this._output,D=null;try{D=this.protocol?new S(this.url,this.protocol):new S(this.url),this.socket=D,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(P){return void E.error(P)}var A=new l.Subscription(function(){b.socket=null,D&&1===D.readyState&&D.close()});D.onopen=function(P){var B=b.openObserver;B&&B.next(P);var V=b.destination;b.destination=a.Subscriber.create(function(X){return 1===D.readyState&&D.send(X)},function(X){var re=b.closingObserver;re&&re.next(void 0),X&&X.code?D.close(X.code,X.reason):E.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),b._resetState()},function(){var X=b.closingObserver;X&&X.next(void 0),D.close(),b._resetState()}),V&&V instanceof s.ReplaySubject&&A.add(V.subscribe(b.destination))},D.onerror=function(P){b._resetState(),E.error(P)},D.onclose=function(P){b._resetState();var B=b.closeObserver;B&&B.next(P),P.wasClean?E.complete():E.error(P)},D.onmessage=function(P){var B=d.tryCatch(b.resultSelector)(P);B===p.errorObject?E.error(p.errorObject.e):E.next(B)}},y.prototype._subscribe=function(b){var S=this,E=this.source;if(E)return E.subscribe(b);this.socket||this._connectSocket();var D=new l.Subscription;return D.add(this._output.subscribe(b)),D.add(function(){var A=S.socket;0===S._output.observers.length&&(A&&1===A.readyState&&A.close(),S._resetState())}),D},y.prototype.unsubscribe=function(){var S=this.source,E=this.socket;E&&1===E.readyState&&(E.close(),this._resetState()),v.prototype.unsubscribe.call(this),S||(this.destination=new s.ReplaySubject)},y}(n.AnonymousSubject);x.WebSocketSubject=g},15e3:(oe,x,i)=>{"use strict";var e=i(23513);x.ajax=e.AjaxObservable.create},35875:(oe,x,i)=>{"use strict";var e=i(53725);x.webSocket=e.WebSocketSubject.create},9374:(oe,x,i)=>{"use strict";var e=i(9992);x.empty=e.EmptyObservable.create},89790:(oe,x,i)=>{"use strict";var e=i(21184);x.forkJoin=e.ForkJoinObservable.create},57057:(oe,x,i)=>{"use strict";var e=i(22373);x.from=e.FromObservable.create},33848:(oe,x,i)=>{"use strict";var e=i(11607);x.fromEvent=e.FromEventObservable.create},36988:(oe,x,i)=>{"use strict";var e=i(34015);x.fromEventPattern=e.FromEventPatternObservable.create},7364:(oe,x,i)=>{"use strict";var e=i(73797);x.fromPromise=e.PromiseObservable.create},13461:(oe,x,i)=>{"use strict";var e=i(73468);x.generate=e.GenerateObservable.create},25170:(oe,x,i)=>{"use strict";var e=i(95534);x._if=e.IfObservable.create},5071:(oe,x,i)=>{"use strict";var e=i(80272);x.interval=e.IntervalObservable.create},66924:(oe,x,i)=>{"use strict";var e=i(50289),n=i(96821),a=i(72276),t=i(33937);x.merge=function l(){for(var h=[],s=0;s<arguments.length;s++)h[s-0]=arguments[s];var d=Number.POSITIVE_INFINITY,p=null,u=h[h.length-1];return a.isScheduler(u)?(p=h.pop(),h.length>1&&"number"==typeof h[h.length-1]&&(d=h.pop())):"number"==typeof u&&(d=h.pop()),null===p&&1===h.length&&h[0]instanceof e.Observable?h[0]:t.mergeAll(d)(new n.ArrayObservable(h,p))}},49303:(oe,x,i)=>{"use strict";var e=i(49189);x.never=e.NeverObservable.create},27400:(oe,x,i)=>{"use strict";var e=i(96821);x.of=e.ArrayObservable.of},47145:(oe,x,i)=>{"use strict";var e=i(90902);x.onErrorResumeNext=e.onErrorResumeNextStatic},47871:(oe,x,i)=>{"use strict";var e=i(95082);x.pairs=e.PairsObservable.create},55107:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(72001),a=i(96821),t=i(79229),l=i(27450);x.race=function h(){for(var p=[],u=0;u<arguments.length;u++)p[u-0]=arguments[u];if(1===p.length){if(!n.isArray(p[0]))return p[0];p=p[0]}return new a.ArrayObservable(p).lift(new s)};var s=function(){function p(){}return p.prototype.call=function(u,g){return g.subscribe(new d(u))},p}();x.RaceOperator=s;var d=function(p){function u(g){p.call(this,g),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return e(u,p),u.prototype._next=function(g){this.observables.push(g)},u.prototype._complete=function(){var g=this.observables,v=g.length;if(0===v)this.destination.complete();else{for(var y=0;y<v&&!this.hasFirst;y++){var b=g[y],S=l.subscribeToResult(this,b,b,y);this.subscriptions&&this.subscriptions.push(S),this.add(S)}this.observables=null}},u.prototype.notifyNext=function(g,v,y,b,S){if(!this.hasFirst){this.hasFirst=!0;for(var E=0;E<this.subscriptions.length;E++)if(E!==y){var D=this.subscriptions[E];D.unsubscribe(),this.remove(D)}this.subscriptions=null}this.destination.next(v)},u}(t.OuterSubscriber);x.RaceSubscriber=d},15718:(oe,x,i)=>{"use strict";var e=i(91641);x.range=e.RangeObservable.create},2022:(oe,x,i)=>{"use strict";var e=i(9167);x._throw=e.ErrorObservable.create},93692:(oe,x,i)=>{"use strict";var e=i(81890);x.timer=e.TimerObservable.create},14398:(oe,x,i)=>{"use strict";var e=i(26126);x.using=e.UsingObservable.create},98369:(oe,x,i)=>{"use strict";var e=i(26827);x.zip=e.zipStatic},84641:(oe,x,i)=>{"use strict";var e=i(12355);x.audit=function n(a){return e.audit(a)(this)}},30893:(oe,x,i)=>{"use strict";var e=i(54039),n=i(77202);x.auditTime=function a(t,l){return void 0===l&&(l=e.async),n.auditTime(t,l)(this)}},1214:(oe,x,i)=>{"use strict";var e=i(6675);x.buffer=function n(a){return e.buffer(a)(this)}},24214:(oe,x,i)=>{"use strict";var e=i(45373);x.bufferCount=function n(a,t){return void 0===t&&(t=null),e.bufferCount(a,t)(this)}},29807:(oe,x,i)=>{"use strict";var e=i(54039),n=i(72276),a=i(88567);x.bufferTime=function t(l){var h=arguments.length,s=e.async;n.isScheduler(arguments[arguments.length-1])&&(s=arguments[arguments.length-1],h--);var d=null;h>=2&&(d=arguments[1]);var p=Number.POSITIVE_INFINITY;return h>=3&&(p=arguments[2]),a.bufferTime(l,d,p,s)(this)}},1894:(oe,x,i)=>{"use strict";var e=i(18197);x.bufferToggle=function n(a,t){return e.bufferToggle(a,t)(this)}},33479:(oe,x,i)=>{"use strict";var e=i(45831);x.bufferWhen=function n(a){return e.bufferWhen(a)(this)}},29302:(oe,x,i)=>{"use strict";var e=i(64596);x._catch=function n(a){return e.catchError(a)(this)}},73028:(oe,x,i)=>{"use strict";var e=i(69225);x.combineAll=function n(a){return e.combineAll(a)(this)}},51290:(oe,x,i)=>{"use strict";var e=i(35090);x.combineLatest=function n(){for(var a=[],t=0;t<arguments.length;t++)a[t-0]=arguments[t];return e.combineLatest.apply(void 0,a)(this)}},93120:(oe,x,i)=>{"use strict";var e=i(48987),n=i(15956);x.concatStatic=n.concat,x.concat=function a(){for(var t=[],l=0;l<arguments.length;l++)t[l-0]=arguments[l];return e.concat.apply(void 0,t)(this)}},44010:(oe,x,i)=>{"use strict";var e=i(21671);x.concatAll=function n(){return e.concatAll()(this)}},91457:(oe,x,i)=>{"use strict";var e=i(99250);x.concatMap=function n(a,t){return e.concatMap(a,t)(this)}},78366:(oe,x,i)=>{"use strict";var e=i(98748);x.concatMapTo=function n(a,t){return e.concatMapTo(a,t)(this)}},79972:(oe,x,i)=>{"use strict";var e=i(96401);x.count=function n(a){return e.count(a)(this)}},68295:(oe,x,i)=>{"use strict";var e=i(99438);x.debounce=function n(a){return e.debounce(a)(this)}},56839:(oe,x,i)=>{"use strict";var e=i(54039),n=i(3099);x.debounceTime=function a(t,l){return void 0===l&&(l=e.async),n.debounceTime(t,l)(this)}},22081:(oe,x,i)=>{"use strict";var e=i(74980);x.defaultIfEmpty=function n(a){return void 0===a&&(a=null),e.defaultIfEmpty(a)(this)}},90064:(oe,x,i)=>{"use strict";var e=i(54039),n=i(92660);x.delay=function a(t,l){return void 0===l&&(l=e.async),n.delay(t,l)(this)}},99104:(oe,x,i)=>{"use strict";var e=i(90134);x.delayWhen=function n(a,t){return e.delayWhen(a,t)(this)}},66022:(oe,x,i)=>{"use strict";var e=i(28901);x.dematerialize=function n(){return e.dematerialize()(this)}},62399:(oe,x,i)=>{"use strict";var e=i(10543);x.distinct=function n(a,t){return e.distinct(a,t)(this)}},71309:(oe,x,i)=>{"use strict";var e=i(17159);x.distinctUntilChanged=function n(a,t){return e.distinctUntilChanged(a,t)(this)}},7400:(oe,x,i)=>{"use strict";var e=i(61006);x.distinctUntilKeyChanged=function n(a,t){return e.distinctUntilKeyChanged(a,t)(this)}},4240:(oe,x,i)=>{"use strict";var e=i(38048);x._do=function n(a,t,l){return e.tap(a,t,l)(this)}},51739:(oe,x,i)=>{"use strict";var e=i(88256);x.elementAt=function n(a,t){return e.elementAt(a,t)(this)}},51135:(oe,x,i)=>{"use strict";var e=i(25258);x.every=function n(a,t){return e.every(a,t)(this)}},45859:(oe,x,i)=>{"use strict";var e=i(59845);x.exhaust=function n(){return e.exhaust()(this)}},11809:(oe,x,i)=>{"use strict";var e=i(13815);x.exhaustMap=function n(a,t){return e.exhaustMap(a,t)(this)}},69948:(oe,x,i)=>{"use strict";var e=i(80230);x.expand=function n(a,t,l){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===l&&(l=void 0),e.expand(a,t=(t||0)<1?Number.POSITIVE_INFINITY:t,l)(this)}},53294:(oe,x,i)=>{"use strict";var e=i(68541);x.filter=function n(a,t){return e.filter(a,t)(this)}},17987:(oe,x,i)=>{"use strict";var e=i(94406);x._finally=function n(a){return e.finalize(a)(this)}},76073:(oe,x,i)=>{"use strict";var e=i(26930);x.find=function n(a,t){return e.find(a,t)(this)}},35214:(oe,x,i)=>{"use strict";var e=i(58200);x.findIndex=function n(a,t){return e.findIndex(a,t)(this)}},65812:(oe,x,i)=>{"use strict";var e=i(11452);x.first=function n(a,t,l){return e.first(a,t,l)(this)}},46520:(oe,x,i)=>{"use strict";var e=i(84759);x.GroupedObservable=e.GroupedObservable,x.groupBy=function n(a,t,l,h){return e.groupBy(a,t,l,h)(this)}},18883:(oe,x,i)=>{"use strict";var e=i(15575);x.ignoreElements=function n(){return e.ignoreElements()(this)}},92288:(oe,x,i)=>{"use strict";var e=i(65729);x.isEmpty=function n(){return e.isEmpty()(this)}},56966:(oe,x,i)=>{"use strict";var e=i(76654);x.last=function n(a,t,l){return e.last(a,t,l)(this)}},40197:(oe,x)=>{"use strict";x.letProto=function i(e){return e(this)}},82030:(oe,x,i)=>{"use strict";var e=i(61894);x.map=function n(a,t){return e.map(a,t)(this)}},57463:(oe,x,i)=>{"use strict";var e=i(96561);x.mapTo=function n(a){return e.mapTo(a)(this)}},6410:(oe,x,i)=>{"use strict";var e=i(34834);x.materialize=function n(){return e.materialize()(this)}},74215:(oe,x,i)=>{"use strict";var e=i(17995);x.max=function n(a){return e.max(a)(this)}},5269:(oe,x,i)=>{"use strict";var e=i(12068),n=i(66924);x.mergeStatic=n.merge,x.merge=function a(){for(var t=[],l=0;l<arguments.length;l++)t[l-0]=arguments[l];return e.merge.apply(void 0,t)(this)}},26633:(oe,x,i)=>{"use strict";var e=i(33937);x.mergeAll=function n(a){return void 0===a&&(a=Number.POSITIVE_INFINITY),e.mergeAll(a)(this)}},38971:(oe,x,i)=>{"use strict";var e=i(81549);x.mergeMap=function n(a,t,l){return void 0===l&&(l=Number.POSITIVE_INFINITY),e.mergeMap(a,t,l)(this)}},28969:(oe,x,i)=>{"use strict";var e=i(56623);x.mergeMapTo=function n(a,t,l){return void 0===l&&(l=Number.POSITIVE_INFINITY),e.mergeMapTo(a,t,l)(this)}},41903:(oe,x,i)=>{"use strict";var e=i(32843);x.mergeScan=function n(a,t,l){return void 0===l&&(l=Number.POSITIVE_INFINITY),e.mergeScan(a,t,l)(this)}},70658:(oe,x,i)=>{"use strict";var e=i(66844);x.min=function n(a){return e.min(a)(this)}},18867:(oe,x,i)=>{"use strict";var e=i(8122);x.multicast=function n(a,t){return e.multicast(a,t)(this)}},57165:(oe,x,i)=>{"use strict";var e=i(64579);x.observeOn=function n(a,t){return void 0===t&&(t=0),e.observeOn(a,t)(this)}},32317:(oe,x,i)=>{"use strict";var e=i(90902);x.onErrorResumeNext=function n(){for(var a=[],t=0;t<arguments.length;t++)a[t-0]=arguments[t];return e.onErrorResumeNext.apply(void 0,a)(this)}},59266:(oe,x,i)=>{"use strict";var e=i(38790);x.pairwise=function n(){return e.pairwise()(this)}},83560:(oe,x,i)=>{"use strict";var e=i(86572);x.partition=function n(a,t){return e.partition(a,t)(this)}},67452:(oe,x,i)=>{"use strict";var e=i(39681);x.pluck=function n(){for(var a=[],t=0;t<arguments.length;t++)a[t-0]=arguments[t];return e.pluck.apply(void 0,a)(this)}},66109:(oe,x,i)=>{"use strict";var e=i(16668);x.publish=function n(a){return e.publish(a)(this)}},96579:(oe,x,i)=>{"use strict";var e=i(21435);x.publishBehavior=function n(a){return e.publishBehavior(a)(this)}},86386:(oe,x,i)=>{"use strict";var e=i(87749);x.publishLast=function n(){return e.publishLast()(this)}},353:(oe,x,i)=>{"use strict";var e=i(96558);x.publishReplay=function n(a,t,l,h){return e.publishReplay(a,t,l,h)(this)}},67128:(oe,x,i)=>{"use strict";var e=i(14597),n=i(55107);x.raceStatic=n.race,x.race=function a(){for(var t=[],l=0;l<arguments.length;l++)t[l-0]=arguments[l];return e.race.apply(void 0,t)(this)}},39289:(oe,x,i)=>{"use strict";var e=i(66426);x.reduce=function n(a,t){return arguments.length>=2?e.reduce(a,t)(this):e.reduce(a)(this)}},30593:(oe,x,i)=>{"use strict";var e=i(58622);x.repeat=function n(a){return void 0===a&&(a=-1),e.repeat(a)(this)}},3669:(oe,x,i)=>{"use strict";var e=i(84839);x.repeatWhen=function n(a){return e.repeatWhen(a)(this)}},52642:(oe,x,i)=>{"use strict";var e=i(44191);x.retry=function n(a){return void 0===a&&(a=-1),e.retry(a)(this)}},57398:(oe,x,i)=>{"use strict";var e=i(41559);x.retryWhen=function n(a){return e.retryWhen(a)(this)}},18578:(oe,x,i)=>{"use strict";var e=i(13753);x.sample=function n(a){return e.sample(a)(this)}},26082:(oe,x,i)=>{"use strict";var e=i(54039),n=i(29140);x.sampleTime=function a(t,l){return void 0===l&&(l=e.async),n.sampleTime(t,l)(this)}},20198:(oe,x,i)=>{"use strict";var e=i(68935);x.scan=function n(a,t){return arguments.length>=2?e.scan(a,t)(this):e.scan(a)(this)}},6316:(oe,x,i)=>{"use strict";var e=i(38817);x.sequenceEqual=function n(a,t){return e.sequenceEqual(a,t)(this)}},91338:(oe,x,i)=>{"use strict";var e=i(56789);x.share=function n(){return e.share()(this)}},65593:(oe,x,i)=>{"use strict";var e=i(37087);x.shareReplay=function n(a,t,l){return e.shareReplay(a,t,l)(this)}},75159:(oe,x,i)=>{"use strict";var e=i(83165);x.single=function n(a){return e.single(a)(this)}},1036:(oe,x,i)=>{"use strict";var e=i(1933);x.skip=function n(a){return e.skip(a)(this)}},12606:(oe,x,i)=>{"use strict";var e=i(94198);x.skipLast=function n(a){return e.skipLast(a)(this)}},5467:(oe,x,i)=>{"use strict";var e=i(81667);x.skipUntil=function n(a){return e.skipUntil(a)(this)}},78495:(oe,x,i)=>{"use strict";var e=i(13983);x.skipWhile=function n(a){return e.skipWhile(a)(this)}},87071:(oe,x,i)=>{"use strict";var e=i(17023);x.startWith=function n(){for(var a=[],t=0;t<arguments.length;t++)a[t-0]=arguments[t];return e.startWith.apply(void 0,a)(this)}},1384:(oe,x,i)=>{"use strict";var e=i(75302);x.subscribeOn=function n(a,t){return void 0===t&&(t=0),e.subscribeOn(a,t)(this)}},28030:(oe,x,i)=>{"use strict";var e=i(53180);x._switch=function n(){return e.switchAll()(this)}},21087:(oe,x,i)=>{"use strict";var e=i(72317);x.switchMap=function n(a,t){return e.switchMap(a,t)(this)}},86739:(oe,x,i)=>{"use strict";var e=i(37822);x.switchMapTo=function n(a,t){return e.switchMapTo(a,t)(this)}},74218:(oe,x,i)=>{"use strict";var e=i(61330);x.take=function n(a){return e.take(a)(this)}},3076:(oe,x,i)=>{"use strict";var e=i(57509);x.takeLast=function n(a){return e.takeLast(a)(this)}},73942:(oe,x,i)=>{"use strict";var e=i(81609);x.takeUntil=function n(a){return e.takeUntil(a)(this)}},33858:(oe,x,i)=>{"use strict";var e=i(82598);x.takeWhile=function n(a){return e.takeWhile(a)(this)}},88446:(oe,x,i)=>{"use strict";var e=i(41170);x.throttle=function n(a,t){return void 0===t&&(t=e.defaultThrottleConfig),e.throttle(a,t)(this)}},76970:(oe,x,i)=>{"use strict";var e=i(54039),n=i(41170),a=i(64932);x.throttleTime=function t(l,h,s){return void 0===h&&(h=e.async),void 0===s&&(s=n.defaultThrottleConfig),a.throttleTime(l,h,s)(this)}},73745:(oe,x,i)=>{"use strict";var e=i(54039),n=i(38067);x.TimeInterval=n.TimeInterval,x.timeInterval=function a(t){return void 0===t&&(t=e.async),n.timeInterval(t)(this)}},27100:(oe,x,i)=>{"use strict";var e=i(54039),n=i(96696);x.timeout=function a(t,l){return void 0===l&&(l=e.async),n.timeout(t,l)(this)}},88560:(oe,x,i)=>{"use strict";var e=i(54039),n=i(216);x.timeoutWith=function a(t,l,h){return void 0===h&&(h=e.async),n.timeoutWith(t,l,h)(this)}},2395:(oe,x,i)=>{"use strict";var e=i(54039),n=i(71983);x.timestamp=function a(t){return void 0===t&&(t=e.async),n.timestamp(t)(this)}},60368:(oe,x,i)=>{"use strict";var e=i(52672);x.toArray=function n(){return e.toArray()(this)}},60828:(oe,x,i)=>{"use strict";var e=i(20771);x.window=function n(a){return e.window(a)(this)}},36072:(oe,x,i)=>{"use strict";var e=i(20657);x.windowCount=function n(a,t){return void 0===t&&(t=0),e.windowCount(a,t)(this)}},65576:(oe,x,i)=>{"use strict";var e=i(54039),n=i(54314),a=i(72276),t=i(1290);x.windowTime=function l(h){var s=e.async,d=null,p=Number.POSITIVE_INFINITY;return a.isScheduler(arguments[3])&&(s=arguments[3]),a.isScheduler(arguments[2])?s=arguments[2]:n.isNumeric(arguments[2])&&(p=arguments[2]),a.isScheduler(arguments[1])?s=arguments[1]:n.isNumeric(arguments[1])&&(d=arguments[1]),t.windowTime(h,d,p,s)(this)}},54464:(oe,x,i)=>{"use strict";var e=i(65408);x.windowToggle=function n(a,t){return e.windowToggle(a,t)(this)}},26844:(oe,x,i)=>{"use strict";var e=i(94439);x.windowWhen=function n(a){return e.windowWhen(a)(this)}},72283:(oe,x,i)=>{"use strict";var e=i(33896);x.withLatestFrom=function n(){for(var a=[],t=0;t<arguments.length;t++)a[t-0]=arguments[t];return e.withLatestFrom.apply(void 0,a)(this)}},76711:(oe,x,i)=>{"use strict";var e=i(26827);x.zipProto=function n(){for(var a=[],t=0;t<arguments.length;t++)a[t-0]=arguments[t];return e.zip.apply(void 0,a)(this)}},49756:(oe,x,i)=>{"use strict";var e=i(46673);x.zipAll=function n(a){return e.zipAll(a)(this)}},81723:(oe,x,i)=>{"use strict";var e=i(12355);x.audit=e.audit;var n=i(77202);x.auditTime=n.auditTime;var a=i(6675);x.buffer=a.buffer;var t=i(45373);x.bufferCount=t.bufferCount;var l=i(88567);x.bufferTime=l.bufferTime;var h=i(18197);x.bufferToggle=h.bufferToggle;var s=i(45831);x.bufferWhen=s.bufferWhen;var d=i(64596);x.catchError=d.catchError;var p=i(69225);x.combineAll=p.combineAll;var u=i(35090);x.combineLatest=u.combineLatest;var g=i(48987);x.concat=g.concat;var v=i(21671);x.concatAll=v.concatAll;var y=i(99250);x.concatMap=y.concatMap;var b=i(98748);x.concatMapTo=b.concatMapTo;var S=i(96401);x.count=S.count;var E=i(99438);x.debounce=E.debounce;var D=i(3099);x.debounceTime=D.debounceTime;var A=i(74980);x.defaultIfEmpty=A.defaultIfEmpty;var P=i(92660);x.delay=P.delay;var B=i(90134);x.delayWhen=B.delayWhen;var V=i(28901);x.dematerialize=V.dematerialize;var X=i(10543);x.distinct=X.distinct;var re=i(17159);x.distinctUntilChanged=re.distinctUntilChanged;var Q=i(61006);x.distinctUntilKeyChanged=Q.distinctUntilKeyChanged;var ae=i(88256);x.elementAt=ae.elementAt;var K=i(25258);x.every=K.every;var k=i(59845);x.exhaust=k.exhaust;var $=i(13815);x.exhaustMap=$.exhaustMap;var j=i(80230);x.expand=j.expand;var R=i(68541);x.filter=R.filter;var U=i(94406);x.finalize=U.finalize;var le=i(26930);x.find=le.find;var T=i(58200);x.findIndex=T.findIndex;var H=i(11452);x.first=H.first;var N=i(84759);x.groupBy=N.groupBy;var pe=i(15575);x.ignoreElements=pe.ignoreElements;var de=i(65729);x.isEmpty=de.isEmpty;var me=i(76654);x.last=me.last;var q=i(61894);x.map=q.map;var se=i(96561);x.mapTo=se.mapTo;var ve=i(34834);x.materialize=ve.materialize;var Ee=i(17995);x.max=Ee.max;var Ye=i(12068);x.merge=Ye.merge;var wt=i(33937);x.mergeAll=wt.mergeAll;var Wt=i(81549);x.mergeMap=Wt.mergeMap;var Ut=i(81549);x.flatMap=Ut.mergeMap;var nt=i(56623);x.mergeMapTo=nt.mergeMapTo;var Zt=i(32843);x.mergeScan=Zt.mergeScan;var Fe=i(66844);x.min=Fe.min;var yt=i(8122);x.multicast=yt.multicast;var ie=i(64579);x.observeOn=ie.observeOn;var Ce=i(90902);x.onErrorResumeNext=Ce.onErrorResumeNext;var Ie=i(38790);x.pairwise=Ie.pairwise;var dt=i(86572);x.partition=dt.partition;var Mt=i(39681);x.pluck=Mt.pluck;var Xt=i(16668);x.publish=Xt.publish;var en=i(21435);x.publishBehavior=en.publishBehavior;var vt=i(87749);x.publishLast=vt.publishLast;var xt=i(96558);x.publishReplay=xt.publishReplay;var zt=i(14597);x.race=zt.race;var bt=i(66426);x.reduce=bt.reduce;var At=i(58622);x.repeat=At.repeat;var $e=i(84839);x.repeatWhen=$e.repeatWhen;var Xe=i(44191);x.retry=Xe.retry;var Pe=i(41559);x.retryWhen=Pe.retryWhen;var Ve=i(67486);x.refCount=Ve.refCount;var mt=i(13753);x.sample=mt.sample;var It=i(29140);x.sampleTime=It.sampleTime;var xn=i(68935);x.scan=xn.scan;var _n=i(38817);x.sequenceEqual=_n.sequenceEqual;var Jt=i(56789);x.share=Jt.share;var ke=i(37087);x.shareReplay=ke.shareReplay;var Ae=i(83165);x.single=Ae.single;var ze=i(1933);x.skip=ze.skip;var pt=i(94198);x.skipLast=pt.skipLast;var tn=i(81667);x.skipUntil=tn.skipUntil;var ot=i(13983);x.skipWhile=ot.skipWhile;var Et=i(17023);x.startWith=Et.startWith;var z=i(53180);x.switchAll=z.switchAll;var Z=i(72317);x.switchMap=Z.switchMap;var ge=i(37822);x.switchMapTo=ge.switchMapTo;var Qe=i(61330);x.take=Qe.take;var qe=i(57509);x.takeLast=qe.takeLast;var ct=i(81609);x.takeUntil=ct.takeUntil;var Yt=i(82598);x.takeWhile=Yt.takeWhile;var it=i(38048);x.tap=it.tap;var Be=i(41170);x.throttle=Be.throttle;var gt=i(64932);x.throttleTime=gt.throttleTime;var ue=i(38067);x.timeInterval=ue.timeInterval;var Ge=i(96696);x.timeout=Ge.timeout;var ee=i(216);x.timeoutWith=ee.timeoutWith;var De=i(71983);x.timestamp=De.timestamp;var Ot=i(52672);x.toArray=Ot.toArray;var cn=i(20771);x.window=cn.window;var Gn=i(20657);x.windowCount=Gn.windowCount;var _i=i(1290);x.windowTime=_i.windowTime;var Ni=i(65408);x.windowToggle=Ni.windowToggle;var Nn=i(94439);x.windowWhen=Nn.windowWhen;var Mn=i(33896);x.withLatestFrom=Mn.withLatestFrom;var On=i(26827);x.zip=On.zip;var Qn=i(46673);x.zipAll=Qn.zipAll},12355:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(66530),a=i(78027),t=i(79229),l=i(27450);x.audit=function h(p){return function(g){return g.lift(new s(p))}};var s=function(){function p(u){this.durationSelector=u}return p.prototype.call=function(u,g){return g.subscribe(new d(u,this.durationSelector))},p}(),d=function(p){function u(g,v){p.call(this,g),this.durationSelector=v,this.hasValue=!1}return e(u,p),u.prototype._next=function(g){if(this.value=g,this.hasValue=!0,!this.throttled){var v=n.tryCatch(this.durationSelector)(g);if(v===a.errorObject)this.destination.error(a.errorObject.e);else{var y=l.subscribeToResult(this,v);y.closed?this.clearThrottle():this.add(this.throttled=y)}}},u.prototype.clearThrottle=function(){var g=this,v=g.value,y=g.hasValue,b=g.throttled;b&&(this.remove(b),this.throttled=null,b.unsubscribe()),y&&(this.value=null,this.hasValue=!1,this.destination.next(v))},u.prototype.notifyNext=function(g,v,y,b){this.clearThrottle()},u.prototype.notifyComplete=function(){this.clearThrottle()},u}(t.OuterSubscriber)},77202:(oe,x,i)=>{"use strict";var e=i(54039),n=i(12355),a=i(93692);x.auditTime=function t(l,h){return void 0===h&&(h=e.async),n.audit(function(){return a.timer(l,h)})}},6675:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.buffer=function t(s){return function(p){return p.lift(new l(s))}};var l=function(){function s(d){this.closingNotifier=d}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.closingNotifier))},s}(),h=function(s){function d(p,u){s.call(this,p),this.buffer=[],this.add(a.subscribeToResult(this,u))}return e(d,s),d.prototype._next=function(p){this.buffer.push(p)},d.prototype.notifyNext=function(p,u,g,v,y){var b=this.buffer;this.buffer=[],this.destination.next(b)},d}(n.OuterSubscriber)},45373:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682);x.bufferCount=function a(s,d){return void 0===d&&(d=null),function(u){return u.lift(new t(s,d))}};var t=function(){function s(d,p){this.bufferSize=d,this.startBufferEvery=p,this.subscriberClass=p&&d!==p?h:l}return s.prototype.call=function(d,p){return p.subscribe(new this.subscriberClass(d,this.bufferSize,this.startBufferEvery))},s}(),l=function(s){function d(p,u){s.call(this,p),this.bufferSize=u,this.buffer=[]}return e(d,s),d.prototype._next=function(p){var u=this.buffer;u.push(p),u.length==this.bufferSize&&(this.destination.next(u),this.buffer=[])},d.prototype._complete=function(){var p=this.buffer;p.length>0&&this.destination.next(p),s.prototype._complete.call(this)},d}(n.Subscriber),h=function(s){function d(p,u,g){s.call(this,p),this.bufferSize=u,this.startBufferEvery=g,this.buffers=[],this.count=0}return e(d,s),d.prototype._next=function(p){var u=this,g=u.bufferSize,v=u.startBufferEvery,y=u.buffers,b=u.count;this.count++,b%v==0&&y.push([]);for(var S=y.length;S--;){var E=y[S];E.push(p),E.length===g&&(y.splice(S,1),this.destination.next(E))}},d.prototype._complete=function(){for(var u=this.buffers,g=this.destination;u.length>0;){var v=u.shift();v.length>0&&g.next(v)}s.prototype._complete.call(this)},d}(n.Subscriber)},88567:function(oe,x,i){"use strict";var e=this&&this.__extends||function(v,y){for(var b in y)y.hasOwnProperty(b)&&(v[b]=y[b]);function S(){this.constructor=v}v.prototype=null===y?Object.create(y):(S.prototype=y.prototype,new S)},n=i(54039),a=i(62682),t=i(72276);x.bufferTime=function l(v){var y=arguments.length,b=n.async;t.isScheduler(arguments[arguments.length-1])&&(b=arguments[arguments.length-1],y--);var S=null;y>=2&&(S=arguments[1]);var E=Number.POSITIVE_INFINITY;return y>=3&&(E=arguments[2]),function(A){return A.lift(new h(v,S,E,b))}};var h=function(){function v(y,b,S,E){this.bufferTimeSpan=y,this.bufferCreationInterval=b,this.maxBufferSize=S,this.scheduler=E}return v.prototype.call=function(y,b){return b.subscribe(new d(y,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},v}(),s=function v(){this.buffer=[]},d=function(v){function y(b,S,E,D,A){v.call(this,b),this.bufferTimeSpan=S,this.bufferCreationInterval=E,this.maxBufferSize=D,this.scheduler=A,this.contexts=[];var P=this.openContext();if(this.timespanOnly=null==E||E<0,this.timespanOnly)this.add(P.closeAction=A.schedule(p,S,{subscriber:this,context:P,bufferTimeSpan:S}));else{var X={bufferTimeSpan:S,bufferCreationInterval:E,subscriber:this,scheduler:A};this.add(P.closeAction=A.schedule(g,S,{subscriber:this,context:P})),this.add(A.schedule(u,E,X))}}return e(y,v),y.prototype._next=function(b){for(var D,S=this.contexts,E=S.length,A=0;A<E;A++){var P=S[A],B=P.buffer;B.push(b),B.length==this.maxBufferSize&&(D=P)}D&&this.onBufferFull(D)},y.prototype._error=function(b){this.contexts.length=0,v.prototype._error.call(this,b)},y.prototype._complete=function(){for(var S=this.contexts,E=this.destination;S.length>0;){var D=S.shift();E.next(D.buffer)}v.prototype._complete.call(this)},y.prototype._unsubscribe=function(){this.contexts=null},y.prototype.onBufferFull=function(b){this.closeContext(b);var S=b.closeAction;if(S.unsubscribe(),this.remove(S),!this.closed&&this.timespanOnly){b=this.openContext();var E=this.bufferTimeSpan;this.add(b.closeAction=this.scheduler.schedule(p,E,{subscriber:this,context:b,bufferTimeSpan:E}))}},y.prototype.openContext=function(){var b=new s;return this.contexts.push(b),b},y.prototype.closeContext=function(b){this.destination.next(b.buffer);var S=this.contexts;(S?S.indexOf(b):-1)>=0&&S.splice(S.indexOf(b),1)},y}(a.Subscriber);function p(v){var y=v.subscriber,b=v.context;b&&y.closeContext(b),y.closed||(v.context=y.openContext(),v.context.closeAction=this.schedule(v,v.bufferTimeSpan))}function u(v){var y=v.bufferCreationInterval,b=v.bufferTimeSpan,S=v.subscriber,E=v.scheduler,D=S.openContext();S.closed||(S.add(D.closeAction=E.schedule(g,b,{subscriber:S,context:D})),this.schedule(v,y))}function g(v){v.subscriber.closeContext(v.context)}},18197:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(57217),a=i(27450),t=i(79229);x.bufferToggle=function l(d,p){return function(g){return g.lift(new h(d,p))}};var h=function(){function d(p,u){this.openings=p,this.closingSelector=u}return d.prototype.call=function(p,u){return u.subscribe(new s(p,this.openings,this.closingSelector))},d}(),s=function(d){function p(u,g,v){d.call(this,u),this.openings=g,this.closingSelector=v,this.contexts=[],this.add(a.subscribeToResult(this,g))}return e(p,d),p.prototype._next=function(u){for(var g=this.contexts,v=g.length,y=0;y<v;y++)g[y].buffer.push(u)},p.prototype._error=function(u){for(var g=this.contexts;g.length>0;){var v=g.shift();v.subscription.unsubscribe(),v.buffer=null,v.subscription=null}this.contexts=null,d.prototype._error.call(this,u)},p.prototype._complete=function(){for(var u=this.contexts;u.length>0;){var g=u.shift();this.destination.next(g.buffer),g.subscription.unsubscribe(),g.buffer=null,g.subscription=null}this.contexts=null,d.prototype._complete.call(this)},p.prototype.notifyNext=function(u,g,v,y,b){u?this.closeBuffer(u):this.openBuffer(g)},p.prototype.notifyComplete=function(u){this.closeBuffer(u.context)},p.prototype.openBuffer=function(u){try{var v=this.closingSelector.call(this,u);v&&this.trySubscribe(v)}catch(y){this._error(y)}},p.prototype.closeBuffer=function(u){var g=this.contexts;if(g&&u){var y=u.subscription;this.destination.next(u.buffer),g.splice(g.indexOf(u),1),this.remove(y),y.unsubscribe()}},p.prototype.trySubscribe=function(u){var g=this.contexts,y=new n.Subscription,b={buffer:[],subscription:y};g.push(b);var S=a.subscribeToResult(this,u,b);!S||S.closed?this.closeBuffer(b):(S.context=b,this.add(S),y.add(S))},p}(t.OuterSubscriber)},45831:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(57217),a=i(66530),t=i(78027),l=i(79229),h=i(27450);x.bufferWhen=function s(u){return function(g){return g.lift(new d(u))}};var d=function(){function u(g){this.closingSelector=g}return u.prototype.call=function(g,v){return v.subscribe(new p(g,this.closingSelector))},u}(),p=function(u){function g(v,y){u.call(this,v),this.closingSelector=y,this.subscribing=!1,this.openBuffer()}return e(g,u),g.prototype._next=function(v){this.buffer.push(v)},g.prototype._complete=function(){var v=this.buffer;v&&this.destination.next(v),u.prototype._complete.call(this)},g.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},g.prototype.notifyNext=function(v,y,b,S,E){this.openBuffer()},g.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},g.prototype.openBuffer=function(){var v=this.closingSubscription;v&&(this.remove(v),v.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];var b=a.tryCatch(this.closingSelector)();b===t.errorObject?this.error(t.errorObject.e):(v=new n.Subscription,this.closingSubscription=v,this.add(v),this.subscribing=!0,v.add(h.subscribeToResult(this,b)),this.subscribing=!1)},g}(l.OuterSubscriber)},64596:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.catchError=function t(s){return function(p){var u=new l(s),g=p.lift(u);return u.caught=g}};var l=function(){function s(d){this.selector=d}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.selector,this.caught))},s}(),h=function(s){function d(p,u,g){s.call(this,p),this.selector=u,this.caught=g}return e(d,s),d.prototype.error=function(p){if(!this.isStopped){var u=void 0;try{u=this.selector(p,this.caught)}catch(g){return void s.prototype.error.call(this,g)}this._unsubscribeAndRecycle(),this.add(a.subscribeToResult(this,u))}},d}(n.OuterSubscriber)},69225:(oe,x,i)=>{"use strict";var e=i(35090);x.combineAll=function n(a){return function(t){return t.lift(new e.CombineLatestOperator(a))}}},35090:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(96821),a=i(72001),t=i(79229),l=i(27450),h={};x.combineLatest=function s(){for(var u=[],g=0;g<arguments.length;g++)u[g-0]=arguments[g];var v=null;return"function"==typeof u[u.length-1]&&(v=u.pop()),1===u.length&&a.isArray(u[0])&&(u=u[0].slice()),function(y){return y.lift.call(new n.ArrayObservable([y].concat(u)),new d(v))}};var d=function(){function u(g){this.project=g}return u.prototype.call=function(g,v){return v.subscribe(new p(g,this.project))},u}();x.CombineLatestOperator=d;var p=function(u){function g(v,y){u.call(this,v),this.project=y,this.active=0,this.values=[],this.observables=[]}return e(g,u),g.prototype._next=function(v){this.values.push(h),this.observables.push(v)},g.prototype._complete=function(){var v=this.observables,y=v.length;if(0===y)this.destination.complete();else{this.active=y,this.toRespond=y;for(var b=0;b<y;b++){var S=v[b];this.add(l.subscribeToResult(this,S,S,b))}}},g.prototype.notifyComplete=function(v){0==(this.active-=1)&&this.destination.complete()},g.prototype.notifyNext=function(v,y,b,S,E){var D=this.values,P=this.toRespond?D[b]===h?--this.toRespond:this.toRespond:0;D[b]=y,0===P&&(this.project?this._tryProject(D):this.destination.next(D.slice()))},g.prototype._tryProject=function(v){var y;try{y=this.project.apply(this,v)}catch(b){return void this.destination.error(b)}this.destination.next(y)},g}(t.OuterSubscriber);x.CombineLatestSubscriber=p},48987:(oe,x,i)=>{"use strict";var e=i(15956),n=i(15956);x.concatStatic=n.concat,x.concat=function a(){for(var t=[],l=0;l<arguments.length;l++)t[l-0]=arguments[l];return function(h){return h.lift.call(e.concat.apply(void 0,[h].concat(t)))}}},21671:(oe,x,i)=>{"use strict";var e=i(33937);x.concatAll=function n(){return e.mergeAll(1)}},99250:(oe,x,i)=>{"use strict";var e=i(81549);x.concatMap=function n(a,t){return e.mergeMap(a,t,1)}},98748:(oe,x,i)=>{"use strict";var e=i(99250);x.concatMapTo=function n(a,t){return e.concatMap(function(){return a},t)}},96401:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.count=function a(h){return function(s){return s.lift(new t(h,s))}};var t=function(){function h(s,d){this.predicate=s,this.source=d}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.predicate,this.source))},h}(),l=function(h){function s(d,p,u){h.call(this,d),this.predicate=p,this.source=u,this.count=0,this.index=0}return e(s,h),s.prototype._next=function(d){this.predicate?this._tryPredicate(d):this.count++},s.prototype._tryPredicate=function(d){var p;try{p=this.predicate(d,this.index++,this.source)}catch(u){return void this.destination.error(u)}p&&this.count++},s.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},s}(n.Subscriber)},99438:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.debounce=function t(s){return function(d){return d.lift(new l(s))}};var l=function(){function s(d){this.durationSelector=d}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.durationSelector))},s}(),h=function(s){function d(p,u){s.call(this,p),this.durationSelector=u,this.hasValue=!1,this.durationSubscription=null}return e(d,s),d.prototype._next=function(p){try{var u=this.durationSelector.call(this,p);u&&this._tryNext(p,u)}catch(g){this.destination.error(g)}},d.prototype._complete=function(){this.emitValue(),this.destination.complete()},d.prototype._tryNext=function(p,u){var g=this.durationSubscription;this.value=p,this.hasValue=!0,g&&(g.unsubscribe(),this.remove(g)),(g=a.subscribeToResult(this,u)).closed||this.add(this.durationSubscription=g)},d.prototype.notifyNext=function(p,u,g,v,y){this.emitValue()},d.prototype.notifyComplete=function(){this.emitValue()},d.prototype.emitValue=function(){if(this.hasValue){var p=this.value,u=this.durationSubscription;u&&(this.durationSubscription=null,u.unsubscribe(),this.remove(u)),this.value=null,this.hasValue=!1,s.prototype._next.call(this,p)}},d}(n.OuterSubscriber)},3099:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(62682),a=i(54039);x.debounceTime=function t(d,p){return void 0===p&&(p=a.async),function(u){return u.lift(new l(d,p))}};var l=function(){function d(p,u){this.dueTime=p,this.scheduler=u}return d.prototype.call=function(p,u){return u.subscribe(new h(p,this.dueTime,this.scheduler))},d}(),h=function(d){function p(u,g,v){d.call(this,u),this.dueTime=g,this.scheduler=v,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return e(p,d),p.prototype._next=function(u){this.clearDebounce(),this.lastValue=u,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(s,this.dueTime,this))},p.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},p.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},p.prototype.clearDebounce=function(){var u=this.debouncedSubscription;null!==u&&(this.remove(u),u.unsubscribe(),this.debouncedSubscription=null)},p}(n.Subscriber);function s(d){d.debouncedNext()}},74980:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.defaultIfEmpty=function a(h){return void 0===h&&(h=null),function(s){return s.lift(new t(h))}};var t=function(){function h(s){this.defaultValue=s}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.defaultValue))},h}(),l=function(h){function s(d,p){h.call(this,d),this.defaultValue=p,this.isEmpty=!0}return e(s,h),s.prototype._next=function(d){this.isEmpty=!1,this.destination.next(d)},s.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},s}(n.Subscriber)},92660:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(54039),a=i(19952),t=i(62682),l=i(81133);x.delay=function h(u,g){void 0===g&&(g=n.async);var y=a.isDate(u)?+u-g.now():Math.abs(u);return function(b){return b.lift(new s(y,g))}};var s=function(){function u(g,v){this.delay=g,this.scheduler=v}return u.prototype.call=function(g,v){return v.subscribe(new d(g,this.delay,this.scheduler))},u}(),d=function(u){function g(v,y,b){u.call(this,v),this.delay=y,this.scheduler=b,this.queue=[],this.active=!1,this.errored=!1}return e(g,u),g.dispatch=function(v){for(var y=v.source,b=y.queue,S=v.scheduler,E=v.destination;b.length>0&&b[0].time-S.now()<=0;)b.shift().notification.observe(E);if(b.length>0){var D=Math.max(0,b[0].time-S.now());this.schedule(v,D)}else this.unsubscribe(),y.active=!1},g.prototype._schedule=function(v){this.active=!0,this.add(v.schedule(g.dispatch,this.delay,{source:this,destination:this.destination,scheduler:v}))},g.prototype.scheduleNotification=function(v){if(!0!==this.errored){var y=this.scheduler,b=new p(y.now()+this.delay,v);this.queue.push(b),!1===this.active&&this._schedule(y)}},g.prototype._next=function(v){this.scheduleNotification(l.Notification.createNext(v))},g.prototype._error=function(v){this.errored=!0,this.queue=[],this.destination.error(v)},g.prototype._complete=function(){this.scheduleNotification(l.Notification.createComplete())},g}(t.Subscriber),p=function u(g,v){this.time=g,this.notification=v}},90134:function(oe,x,i){"use strict";var e=this&&this.__extends||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y]);function b(){this.constructor=g}g.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)},n=i(62682),a=i(50289),t=i(79229),l=i(27450);x.delayWhen=function h(g,v){return v?function(y){return new p(y,v).lift(new s(g))}:function(y){return y.lift(new s(g))}};var s=function(){function g(v){this.delayDurationSelector=v}return g.prototype.call=function(v,y){return y.subscribe(new d(v,this.delayDurationSelector))},g}(),d=function(g){function v(y,b){g.call(this,y),this.delayDurationSelector=b,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return e(v,g),v.prototype.notifyNext=function(y,b,S,E,D){this.destination.next(y),this.removeSubscription(D),this.tryComplete()},v.prototype.notifyError=function(y,b){this._error(y)},v.prototype.notifyComplete=function(y){var b=this.removeSubscription(y);b&&this.destination.next(b),this.tryComplete()},v.prototype._next=function(y){try{var b=this.delayDurationSelector(y);b&&this.tryDelay(b,y)}catch(S){this.destination.error(S)}},v.prototype._complete=function(){this.completed=!0,this.tryComplete()},v.prototype.removeSubscription=function(y){y.unsubscribe();var b=this.delayNotifierSubscriptions.indexOf(y),S=null;return-1!==b&&(S=this.values[b],this.delayNotifierSubscriptions.splice(b,1),this.values.splice(b,1)),S},v.prototype.tryDelay=function(y,b){var S=l.subscribeToResult(this,y,b);S&&!S.closed&&(this.add(S),this.delayNotifierSubscriptions.push(S)),this.values.push(b)},v.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},v}(t.OuterSubscriber),p=function(g){function v(y,b){g.call(this),this.source=y,this.subscriptionDelay=b}return e(v,g),v.prototype._subscribe=function(y){this.subscriptionDelay.subscribe(new u(y,this.source))},v}(a.Observable),u=function(g){function v(y,b){g.call(this),this.parent=y,this.source=b,this.sourceSubscribed=!1}return e(v,g),v.prototype._next=function(y){this.subscribeToSource()},v.prototype._error=function(y){this.unsubscribe(),this.parent.error(y)},v.prototype._complete=function(){this.subscribeToSource()},v.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},v}(n.Subscriber)},28901:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.dematerialize=function a(){return function(s){return s.lift(new t)}};var t=function(){function h(){}return h.prototype.call=function(s,d){return d.subscribe(new l(s))},h}(),l=function(h){function s(d){h.call(this,d)}return e(s,h),s.prototype._next=function(d){d.observe(this.destination)},s}(n.Subscriber)},10543:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(79229),a=i(27450),t=i(95803);x.distinct=function l(d,p){return function(u){return u.lift(new h(d,p))}};var h=function(){function d(p,u){this.keySelector=p,this.flushes=u}return d.prototype.call=function(p,u){return u.subscribe(new s(p,this.keySelector,this.flushes))},d}(),s=function(d){function p(u,g,v){d.call(this,u),this.keySelector=g,this.values=new t.Set,v&&this.add(a.subscribeToResult(this,v))}return e(p,d),p.prototype.notifyNext=function(u,g,v,y,b){this.values.clear()},p.prototype.notifyError=function(u,g){this._error(u)},p.prototype._next=function(u){this.keySelector?this._useKeySelector(u):this._finalizeNext(u,u)},p.prototype._useKeySelector=function(u){var g,v=this.destination;try{g=this.keySelector(u)}catch(y){return void v.error(y)}this._finalizeNext(g,u)},p.prototype._finalizeNext=function(u,g){var v=this.values;v.has(u)||(v.add(u),this.destination.next(g))},p}(n.OuterSubscriber);x.DistinctSubscriber=s},17159:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(62682),a=i(66530),t=i(78027);x.distinctUntilChanged=function l(d,p){return function(u){return u.lift(new h(d,p))}};var h=function(){function d(p,u){this.compare=p,this.keySelector=u}return d.prototype.call=function(p,u){return u.subscribe(new s(p,this.compare,this.keySelector))},d}(),s=function(d){function p(u,g,v){d.call(this,u),this.keySelector=v,this.hasKey=!1,"function"==typeof g&&(this.compare=g)}return e(p,d),p.prototype.compare=function(u,g){return u===g},p.prototype._next=function(u){var v=u;if(this.keySelector&&(v=a.tryCatch(this.keySelector)(u))===t.errorObject)return this.destination.error(t.errorObject.e);var y=!1;if(this.hasKey){if((y=a.tryCatch(this.compare)(this.key,v))===t.errorObject)return this.destination.error(t.errorObject.e)}else this.hasKey=!0;!1===Boolean(y)&&(this.key=v,this.destination.next(u))},p}(n.Subscriber)},61006:(oe,x,i)=>{"use strict";var e=i(17159);x.distinctUntilKeyChanged=function n(a,t){return e.distinctUntilChanged(function(l,h){return t?t(l[a],h[a]):l[a]===h[a]})}},88256:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(67038);x.elementAt=function t(s,d){return function(p){return p.lift(new l(s,d))}};var l=function(){function s(d,p){if(this.index=d,this.defaultValue=p,d<0)throw new a.ArgumentOutOfRangeError}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.index,this.defaultValue))},s}(),h=function(s){function d(p,u,g){s.call(this,p),this.index=u,this.defaultValue=g}return e(d,s),d.prototype._next=function(p){0==this.index--&&(this.destination.next(p),this.destination.complete())},d.prototype._complete=function(){var p=this.destination;this.index>=0&&(typeof this.defaultValue<"u"?p.next(this.defaultValue):p.error(new a.ArgumentOutOfRangeError)),p.complete()},d}(n.Subscriber)},25258:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.every=function a(h,s){return function(d){return d.lift(new t(h,s,d))}};var t=function(){function h(s,d,p){this.predicate=s,this.thisArg=d,this.source=p}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.predicate,this.thisArg,this.source))},h}(),l=function(h){function s(d,p,u,g){h.call(this,d),this.predicate=p,this.thisArg=u,this.source=g,this.index=0,this.thisArg=u||this}return e(s,h),s.prototype.notifyComplete=function(d){this.destination.next(d),this.destination.complete()},s.prototype._next=function(d){var p=!1;try{p=this.predicate.call(this.thisArg,d,this.index++,this.source)}catch(u){return void this.destination.error(u)}p||this.notifyComplete(!1)},s.prototype._complete=function(){this.notifyComplete(!0)},s}(n.Subscriber)},59845:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.exhaust=function t(){return function(s){return s.lift(new l)}};var l=function(){function s(){}return s.prototype.call=function(d,p){return p.subscribe(new h(d))},s}(),h=function(s){function d(p){s.call(this,p),this.hasCompleted=!1,this.hasSubscription=!1}return e(d,s),d.prototype._next=function(p){this.hasSubscription||(this.hasSubscription=!0,this.add(a.subscribeToResult(this,p)))},d.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},d.prototype.notifyComplete=function(p){this.remove(p),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},d}(n.OuterSubscriber)},13815:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.exhaustMap=function t(s,d){return function(p){return p.lift(new l(s,d))}};var l=function(){function s(d,p){this.project=d,this.resultSelector=p}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.project,this.resultSelector))},s}(),h=function(s){function d(p,u,g){s.call(this,p),this.project=u,this.resultSelector=g,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return e(d,s),d.prototype._next=function(p){this.hasSubscription||this.tryNext(p)},d.prototype.tryNext=function(p){var u=this.index++,g=this.destination;try{var v=this.project(p,u);this.hasSubscription=!0,this.add(a.subscribeToResult(this,v,p,u))}catch(y){g.error(y)}},d.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},d.prototype.notifyNext=function(p,u,g,v,y){var E=this.destination;this.resultSelector?this.trySelectResult(p,u,g,v):E.next(u)},d.prototype.trySelectResult=function(p,u,g,v){var b=this.resultSelector,S=this.destination;try{var E=b(p,u,g,v);S.next(E)}catch(D){S.error(D)}},d.prototype.notifyError=function(p){this.destination.error(p)},d.prototype.notifyComplete=function(p){this.remove(p),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},d}(n.OuterSubscriber)},80230:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(66530),a=i(78027),t=i(79229),l=i(27450);x.expand=function h(p,u,g){return void 0===u&&(u=Number.POSITIVE_INFINITY),void 0===g&&(g=void 0),u=(u||0)<1?Number.POSITIVE_INFINITY:u,function(v){return v.lift(new s(p,u,g))}};var s=function(){function p(u,g,v){this.project=u,this.concurrent=g,this.scheduler=v}return p.prototype.call=function(u,g){return g.subscribe(new d(u,this.project,this.concurrent,this.scheduler))},p}();x.ExpandOperator=s;var d=function(p){function u(g,v,y,b){p.call(this,g),this.project=v,this.concurrent=y,this.scheduler=b,this.index=0,this.active=0,this.hasCompleted=!1,y<Number.POSITIVE_INFINITY&&(this.buffer=[])}return e(u,p),u.dispatch=function(g){g.subscriber.subscribeToProjection(g.result,g.value,g.index)},u.prototype._next=function(g){var v=this.destination;if(v.closed)this._complete();else{var y=this.index++;if(this.active<this.concurrent){v.next(g);var b=n.tryCatch(this.project)(g,y);b===a.errorObject?v.error(a.errorObject.e):this.scheduler?this.add(this.scheduler.schedule(u.dispatch,0,{subscriber:this,result:b,value:g,index:y})):this.subscribeToProjection(b,g,y)}else this.buffer.push(g)}},u.prototype.subscribeToProjection=function(g,v,y){this.active++,this.add(l.subscribeToResult(this,g,v,y))},u.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},u.prototype.notifyNext=function(g,v,y,b,S){this._next(v)},u.prototype.notifyComplete=function(g){var v=this.buffer;this.remove(g),this.active--,v&&v.length>0&&this._next(v.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},u}(t.OuterSubscriber);x.ExpandSubscriber=d},68541:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.filter=function a(h,s){return function(p){return p.lift(new t(h,s))}};var t=function(){function h(s,d){this.predicate=s,this.thisArg=d}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.predicate,this.thisArg))},h}(),l=function(h){function s(d,p,u){h.call(this,d),this.predicate=p,this.thisArg=u,this.count=0}return e(s,h),s.prototype._next=function(d){var p;try{p=this.predicate.call(this.thisArg,d,this.count++)}catch(u){return void this.destination.error(u)}p&&this.destination.next(d)},s}(n.Subscriber)},94406:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(57217);x.finalize=function t(s){return function(d){return d.lift(new l(s))}};var l=function(){function s(d){this.callback=d}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.callback))},s}(),h=function(s){function d(p,u){s.call(this,p),this.add(new a.Subscription(u))}return e(d,s),d}(n.Subscriber)},26930:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.find=function a(h,s){if("function"!=typeof h)throw new TypeError("predicate is not a function");return function(d){return d.lift(new t(h,d,!1,s))}};var t=function(){function h(s,d,p,u){this.predicate=s,this.source=d,this.yieldIndex=p,this.thisArg=u}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.predicate,this.source,this.yieldIndex,this.thisArg))},h}();x.FindValueOperator=t;var l=function(h){function s(d,p,u,g,v){h.call(this,d),this.predicate=p,this.source=u,this.yieldIndex=g,this.thisArg=v,this.index=0}return e(s,h),s.prototype.notifyComplete=function(d){var p=this.destination;p.next(d),p.complete()},s.prototype._next=function(d){var u=this.predicate,g=this.thisArg,v=this.index++;try{u.call(g||this,d,v,this.source)&&this.notifyComplete(this.yieldIndex?v:d)}catch(b){this.destination.error(b)}},s.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},s}(n.Subscriber);x.FindValueSubscriber=l},58200:(oe,x,i)=>{"use strict";var e=i(26930);x.findIndex=function n(a,t){return function(l){return l.lift(new e.FindValueOperator(a,l,!0,t))}}},11452:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(8638);x.first=function t(s,d,p){return function(u){return u.lift(new l(s,d,p,u))}};var l=function(){function s(d,p,u,g){this.predicate=d,this.resultSelector=p,this.defaultValue=u,this.source=g}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.predicate,this.resultSelector,this.defaultValue,this.source))},s}(),h=function(s){function d(p,u,g,v,y){s.call(this,p),this.predicate=u,this.resultSelector=g,this.defaultValue=v,this.source=y,this.index=0,this.hasCompleted=!1,this._emitted=!1}return e(d,s),d.prototype._next=function(p){var u=this.index++;this.predicate?this._tryPredicate(p,u):this._emit(p,u)},d.prototype._tryPredicate=function(p,u){var g;try{g=this.predicate(p,u,this.source)}catch(v){return void this.destination.error(v)}g&&this._emit(p,u)},d.prototype._emit=function(p,u){this.resultSelector?this._tryResultSelector(p,u):this._emitFinal(p)},d.prototype._tryResultSelector=function(p,u){var g;try{g=this.resultSelector(p,u)}catch(v){return void this.destination.error(v)}this._emitFinal(g)},d.prototype._emitFinal=function(p){var u=this.destination;this._emitted||(this._emitted=!0,u.next(p),u.complete(),this.hasCompleted=!0)},d.prototype._complete=function(){var p=this.destination;!this.hasCompleted&&typeof this.defaultValue<"u"?(p.next(this.defaultValue),p.complete()):this.hasCompleted||p.error(new a.EmptyError)},d}(n.Subscriber)},84759:function(oe,x,i){"use strict";var e=this&&this.__extends||function(b,S){for(var E in S)S.hasOwnProperty(E)&&(b[E]=S[E]);function D(){this.constructor=b}b.prototype=null===S?Object.create(S):(D.prototype=S.prototype,new D)},n=i(62682),a=i(57217),t=i(50289),l=i(87632),h=i(44549),s=i(77362);x.groupBy=function d(b,S,E,D){return function(A){return A.lift(new p(b,S,E,D))}};var p=function(){function b(S,E,D,A){this.keySelector=S,this.elementSelector=E,this.durationSelector=D,this.subjectSelector=A}return b.prototype.call=function(S,E){return E.subscribe(new u(S,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},b}(),u=function(b){function S(E,D,A,P,B){b.call(this,E),this.keySelector=D,this.elementSelector=A,this.durationSelector=P,this.subjectSelector=B,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return e(S,b),S.prototype._next=function(E){var D;try{D=this.keySelector(E)}catch(A){return void this.error(A)}this._group(E,D)},S.prototype._group=function(E,D){var A=this.groups;A||(A=this.groups="string"==typeof D?new s.FastMap:new h.Map);var B,P=A.get(D);if(this.elementSelector)try{B=this.elementSelector(E)}catch(re){this.error(re)}else B=E;if(!P){P=this.subjectSelector?this.subjectSelector():new l.Subject,A.set(D,P);var V=new v(D,P,this);if(this.destination.next(V),this.durationSelector){var X=void 0;try{X=this.durationSelector(new v(D,P))}catch(re){return void this.error(re)}this.add(X.subscribe(new g(D,P,this)))}}P.closed||P.next(B)},S.prototype._error=function(E){var D=this.groups;D&&(D.forEach(function(A,P){A.error(E)}),D.clear()),this.destination.error(E)},S.prototype._complete=function(){var E=this.groups;E&&(E.forEach(function(D,A){D.complete()}),E.clear()),this.destination.complete()},S.prototype.removeGroup=function(E){this.groups.delete(E)},S.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&b.prototype.unsubscribe.call(this))},S}(n.Subscriber),g=function(b){function S(E,D,A){b.call(this,D),this.key=E,this.group=D,this.parent=A}return e(S,b),S.prototype._next=function(E){this.complete()},S.prototype._unsubscribe=function(){var D=this.parent,A=this.key;this.key=this.parent=null,D&&D.removeGroup(A)},S}(n.Subscriber),v=function(b){function S(E,D,A){b.call(this),this.key=E,this.groupSubject=D,this.refCountSubscription=A}return e(S,b),S.prototype._subscribe=function(E){var D=new a.Subscription,P=this.refCountSubscription,B=this.groupSubject;return P&&!P.closed&&D.add(new y(P)),D.add(B.subscribe(E)),D},S}(t.Observable);x.GroupedObservable=v;var y=function(b){function S(E){b.call(this),this.parent=E,E.count++}return e(S,b),S.prototype.unsubscribe=function(){var E=this.parent;!E.closed&&!this.closed&&(b.prototype.unsubscribe.call(this),E.count-=1,0===E.count&&E.attemptedToUnsubscribe&&E.unsubscribe())},S}(a.Subscription)},15575:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(30007);x.ignoreElements=function t(){return function(d){return d.lift(new l)}};var l=function(){function s(){}return s.prototype.call=function(d,p){return p.subscribe(new h(d))},s}(),h=function(s){function d(){s.apply(this,arguments)}return e(d,s),d.prototype._next=function(p){a.noop()},d}(n.Subscriber)},65729:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.isEmpty=function a(){return function(h){return h.lift(new t)}};var t=function(){function h(){}return h.prototype.call=function(s,d){return d.subscribe(new l(s))},h}(),l=function(h){function s(d){h.call(this,d)}return e(s,h),s.prototype.notifyComplete=function(d){var p=this.destination;p.next(d),p.complete()},s.prototype._next=function(d){this.notifyComplete(!1)},s.prototype._complete=function(){this.notifyComplete(!0)},s}(n.Subscriber)},76654:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(8638);x.last=function t(s,d,p){return function(u){return u.lift(new l(s,d,p,u))}};var l=function(){function s(d,p,u,g){this.predicate=d,this.resultSelector=p,this.defaultValue=u,this.source=g}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.predicate,this.resultSelector,this.defaultValue,this.source))},s}(),h=function(s){function d(p,u,g,v,y){s.call(this,p),this.predicate=u,this.resultSelector=g,this.defaultValue=v,this.source=y,this.hasValue=!1,this.index=0,typeof v<"u"&&(this.lastValue=v,this.hasValue=!0)}return e(d,s),d.prototype._next=function(p){var u=this.index++;if(this.predicate)this._tryPredicate(p,u);else{if(this.resultSelector)return void this._tryResultSelector(p,u);this.lastValue=p,this.hasValue=!0}},d.prototype._tryPredicate=function(p,u){var g;try{g=this.predicate(p,u,this.source)}catch(v){return void this.destination.error(v)}if(g){if(this.resultSelector)return void this._tryResultSelector(p,u);this.lastValue=p,this.hasValue=!0}},d.prototype._tryResultSelector=function(p,u){var g;try{g=this.resultSelector(p,u)}catch(v){return void this.destination.error(v)}this.lastValue=g,this.hasValue=!0},d.prototype._complete=function(){var p=this.destination;this.hasValue?(p.next(this.lastValue),p.complete()):p.error(new a.EmptyError)},d}(n.Subscriber)},61894:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.map=function a(h,s){return function(p){if("function"!=typeof h)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return p.lift(new t(h,s))}};var t=function(){function h(s,d){this.project=s,this.thisArg=d}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.project,this.thisArg))},h}();x.MapOperator=t;var l=function(h){function s(d,p,u){h.call(this,d),this.project=p,this.count=0,this.thisArg=u||this}return e(s,h),s.prototype._next=function(d){var p;try{p=this.project.call(this.thisArg,d,this.count++)}catch(u){return void this.destination.error(u)}this.destination.next(p)},s}(n.Subscriber)},96561:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.mapTo=function a(h){return function(s){return s.lift(new t(h))}};var t=function(){function h(s){this.value=s}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.value))},h}(),l=function(h){function s(d,p){h.call(this,d),this.value=p}return e(s,h),s.prototype._next=function(d){this.destination.next(this.value)},s}(n.Subscriber)},34834:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(81133);x.materialize=function t(){return function(d){return d.lift(new l)}};var l=function(){function s(){}return s.prototype.call=function(d,p){return p.subscribe(new h(d))},s}(),h=function(s){function d(p){s.call(this,p)}return e(d,s),d.prototype._next=function(p){this.destination.next(a.Notification.createNext(p))},d.prototype._error=function(p){var u=this.destination;u.next(a.Notification.createError(p)),u.complete()},d.prototype._complete=function(){var p=this.destination;p.next(a.Notification.createComplete()),p.complete()},d}(n.Subscriber)},17995:(oe,x,i)=>{"use strict";var e=i(66426);x.max=function n(a){return e.reduce("function"==typeof a?function(l,h){return a(l,h)>0?l:h}:function(l,h){return l>h?l:h})}},12068:(oe,x,i)=>{"use strict";var e=i(66924),n=i(66924);x.mergeStatic=n.merge,x.merge=function a(){for(var t=[],l=0;l<arguments.length;l++)t[l-0]=arguments[l];return function(h){return h.lift.call(e.merge.apply(void 0,[h].concat(t)))}}},33937:(oe,x,i)=>{"use strict";var e=i(81549),n=i(81107);x.mergeAll=function a(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),e.mergeMap(n.identity,null,t)}},81549:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(27450),a=i(79229);x.mergeMap=function t(s,d,p){return void 0===p&&(p=Number.POSITIVE_INFINITY),function(g){return"number"==typeof d&&(p=d,d=null),g.lift(new l(s,d,p))}};var l=function(){function s(d,p,u){void 0===u&&(u=Number.POSITIVE_INFINITY),this.project=d,this.resultSelector=p,this.concurrent=u}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.project,this.resultSelector,this.concurrent))},s}();x.MergeMapOperator=l;var h=function(s){function d(p,u,g,v){void 0===v&&(v=Number.POSITIVE_INFINITY),s.call(this,p),this.project=u,this.resultSelector=g,this.concurrent=v,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return e(d,s),d.prototype._next=function(p){this.active<this.concurrent?this._tryNext(p):this.buffer.push(p)},d.prototype._tryNext=function(p){var u,g=this.index++;try{u=this.project(p,g)}catch(v){return void this.destination.error(v)}this.active++,this._innerSub(u,p,g)},d.prototype._innerSub=function(p,u,g){this.add(n.subscribeToResult(this,p,u,g))},d.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},d.prototype.notifyNext=function(p,u,g,v,y){this.resultSelector?this._notifyResultSelector(p,u,g,v):this.destination.next(u)},d.prototype._notifyResultSelector=function(p,u,g,v){var y;try{y=this.resultSelector(p,u,g,v)}catch(b){return void this.destination.error(b)}this.destination.next(y)},d.prototype.notifyComplete=function(p){var u=this.buffer;this.remove(p),this.active--,u.length>0?this._next(u.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},d}(a.OuterSubscriber);x.MergeMapSubscriber=h},56623:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.mergeMapTo=function t(s,d,p){return void 0===p&&(p=Number.POSITIVE_INFINITY),"number"==typeof d&&(p=d,d=null),function(u){return u.lift(new l(s,d,p))}};var l=function(){function s(d,p,u){void 0===u&&(u=Number.POSITIVE_INFINITY),this.ish=d,this.resultSelector=p,this.concurrent=u}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.ish,this.resultSelector,this.concurrent))},s}();x.MergeMapToOperator=l;var h=function(s){function d(p,u,g,v){void 0===v&&(v=Number.POSITIVE_INFINITY),s.call(this,p),this.ish=u,this.resultSelector=g,this.concurrent=v,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return e(d,s),d.prototype._next=function(p){if(this.active<this.concurrent){var u=this.resultSelector,g=this.index++,v=this.ish,y=this.destination;this.active++,this._innerSub(v,y,u,p,g)}else this.buffer.push(p)},d.prototype._innerSub=function(p,u,g,v,y){this.add(a.subscribeToResult(this,p,v,y))},d.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},d.prototype.notifyNext=function(p,u,g,v,y){var E=this.destination;this.resultSelector?this.trySelectResult(p,u,g,v):E.next(u)},d.prototype.trySelectResult=function(p,u,g,v){var E,b=this.resultSelector,S=this.destination;try{E=b(p,u,g,v)}catch(D){return void S.error(D)}S.next(E)},d.prototype.notifyError=function(p){this.destination.error(p)},d.prototype.notifyComplete=function(p){var u=this.buffer;this.remove(p),this.active--,u.length>0?this._next(u.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},d}(n.OuterSubscriber);x.MergeMapToSubscriber=h},32843:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(66530),a=i(78027),t=i(27450),l=i(79229);x.mergeScan=function h(p,u,g){return void 0===g&&(g=Number.POSITIVE_INFINITY),function(v){return v.lift(new s(p,u,g))}};var s=function(){function p(u,g,v){this.accumulator=u,this.seed=g,this.concurrent=v}return p.prototype.call=function(u,g){return g.subscribe(new d(u,this.accumulator,this.seed,this.concurrent))},p}();x.MergeScanOperator=s;var d=function(p){function u(g,v,y,b){p.call(this,g),this.accumulator=v,this.acc=y,this.concurrent=b,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return e(u,p),u.prototype._next=function(g){if(this.active<this.concurrent){var v=this.index++,y=n.tryCatch(this.accumulator)(this.acc,g);y===a.errorObject?this.destination.error(a.errorObject.e):(this.active++,this._innerSub(y,g,v))}else this.buffer.push(g)},u.prototype._innerSub=function(g,v,y){this.add(t.subscribeToResult(this,g,v,y))},u.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},u.prototype.notifyNext=function(g,v,y,b,S){var E=this.destination;this.acc=v,this.hasValue=!0,E.next(v)},u.prototype.notifyComplete=function(g){var v=this.buffer;this.remove(g),this.active--,v.length>0?this._next(v.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},u}(l.OuterSubscriber);x.MergeScanSubscriber=d},66844:(oe,x,i)=>{"use strict";var e=i(66426);x.min=function n(a){return e.reduce("function"==typeof a?function(l,h){return a(l,h)<0?l:h}:function(l,h){return l<h?l:h})}},8122:(oe,x,i)=>{"use strict";var e=i(71954);x.multicast=function n(t,l){return function(s){var d;if(d="function"==typeof t?t:function(){return t},"function"==typeof l)return s.lift(new a(d,l));var p=Object.create(s,e.connectableObservableDescriptor);return p.source=s,p.subjectFactory=d,p}};var a=function(){function t(l,h){this.subjectFactory=l,this.selector=h}return t.prototype.call=function(l,h){var s=this.selector,d=this.subjectFactory(),p=s(d).subscribe(l);return p.add(h.subscribe(d)),p},t}();x.MulticastOperator=a},64579:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(62682),a=i(81133);x.observeOn=function t(d,p){return void 0===p&&(p=0),function(g){return g.lift(new l(d,p))}};var l=function(){function d(p,u){void 0===u&&(u=0),this.scheduler=p,this.delay=u}return d.prototype.call=function(p,u){return u.subscribe(new h(p,this.scheduler,this.delay))},d}();x.ObserveOnOperator=l;var h=function(d){function p(u,g,v){void 0===v&&(v=0),d.call(this,u),this.scheduler=g,this.delay=v}return e(p,d),p.dispatch=function(u){u.notification.observe(u.destination),this.unsubscribe()},p.prototype.scheduleMessage=function(u){this.add(this.scheduler.schedule(p.dispatch,this.delay,new s(u,this.destination)))},p.prototype._next=function(u){this.scheduleMessage(a.Notification.createNext(u))},p.prototype._error=function(u){this.scheduleMessage(a.Notification.createError(u))},p.prototype._complete=function(){this.scheduleMessage(a.Notification.createComplete())},p}(n.Subscriber);x.ObserveOnSubscriber=h;var s=function d(p,u){this.notification=p,this.destination=u};x.ObserveOnMessage=s},90902:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(22373),a=i(72001),t=i(79229),l=i(27450);x.onErrorResumeNext=function h(){for(var u=[],g=0;g<arguments.length;g++)u[g-0]=arguments[g];return 1===u.length&&a.isArray(u[0])&&(u=u[0]),function(v){return v.lift(new d(u))}},x.onErrorResumeNextStatic=function s(){for(var u=[],g=0;g<arguments.length;g++)u[g-0]=arguments[g];var v;return 1===u.length&&a.isArray(u[0])&&(u=u[0]),v=u.shift(),new n.FromObservable(v,null).lift(new d(u))};var d=function(){function u(g){this.nextSources=g}return u.prototype.call=function(g,v){return v.subscribe(new p(g,this.nextSources))},u}(),p=function(u){function g(v,y){u.call(this,v),this.destination=v,this.nextSources=y}return e(g,u),g.prototype.notifyError=function(v,y){this.subscribeToNextSource()},g.prototype.notifyComplete=function(v){this.subscribeToNextSource()},g.prototype._error=function(v){this.subscribeToNextSource()},g.prototype._complete=function(){this.subscribeToNextSource()},g.prototype.subscribeToNextSource=function(){var v=this.nextSources.shift();v?this.add(l.subscribeToResult(this,v)):this.destination.complete()},g}(t.OuterSubscriber)},38790:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.pairwise=function a(){return function(h){return h.lift(new t)}};var t=function(){function h(){}return h.prototype.call=function(s,d){return d.subscribe(new l(s))},h}(),l=function(h){function s(d){h.call(this,d),this.hasPrev=!1}return e(s,h),s.prototype._next=function(d){this.hasPrev?this.destination.next([this.prev,d]):this.hasPrev=!0,this.prev=d},s}(n.Subscriber)},86572:(oe,x,i)=>{"use strict";var e=i(90712),n=i(68541);x.partition=function a(t,l){return function(h){return[n.filter(t,l)(h),n.filter(e.not(t,l))(h)]}}},39681:(oe,x,i)=>{"use strict";var e=i(61894);x.pluck=function n(){for(var t=[],l=0;l<arguments.length;l++)t[l-0]=arguments[l];var h=t.length;if(0===h)throw new Error("list of properties cannot be empty.");return function(s){return e.map(function a(t,l){return function(s){for(var d=s,p=0;p<l;p++){var u=d[t[p]];if(!(typeof u<"u"))return;d=u}return d}}(t,h))(s)}}},16668:(oe,x,i)=>{"use strict";var e=i(87632),n=i(8122);x.publish=function a(t){return t?n.multicast(function(){return new e.Subject},t):n.multicast(new e.Subject)}},21435:(oe,x,i)=>{"use strict";var e=i(1343),n=i(8122);x.publishBehavior=function a(t){return function(l){return n.multicast(new e.BehaviorSubject(t))(l)}}},87749:(oe,x,i)=>{"use strict";var e=i(57993),n=i(8122);x.publishLast=function a(){return function(t){return n.multicast(new e.AsyncSubject)(t)}}},96558:(oe,x,i)=>{"use strict";var e=i(69467),n=i(8122);x.publishReplay=function a(t,l,h,s){h&&"function"!=typeof h&&(s=h);var d="function"==typeof h?h:void 0,p=new e.ReplaySubject(t,l,s);return function(u){return n.multicast(function(){return p},d)(u)}}},14597:(oe,x,i)=>{"use strict";var e=i(72001),n=i(55107);x.race=function a(){for(var t=[],l=0;l<arguments.length;l++)t[l-0]=arguments[l];return function(s){return 1===t.length&&e.isArray(t[0])&&(t=t[0]),s.lift.call(n.race.apply(void 0,[s].concat(t)))}}},66426:(oe,x,i)=>{"use strict";var e=i(68935),n=i(57509),a=i(74980),t=i(12809);x.reduce=function l(h,s){return arguments.length>=2?function(p){return t.pipe(e.scan(h,s),n.takeLast(1),a.defaultIfEmpty(s))(p)}:function(p){return t.pipe(e.scan(function(u,g,v){return h(u,g,v+1)}),n.takeLast(1))(p)}}},67486:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.refCount=function a(){return function(s){return s.lift(new t(s))}};var t=function(){function h(s){this.connectable=s}return h.prototype.call=function(s,d){var p=this.connectable;p._refCount++;var u=new l(s,p),g=d.subscribe(u);return u.closed||(u.connection=p.connect()),g},h}(),l=function(h){function s(d,p){h.call(this,d),this.connectable=p}return e(s,h),s.prototype._unsubscribe=function(){var d=this.connectable;if(d){this.connectable=null;var p=d._refCount;if(p<=0)this.connection=null;else if(d._refCount=p-1,p>1)this.connection=null;else{var u=this.connection,g=d._connection;this.connection=null,g&&(!u||g===u)&&g.unsubscribe()}}else this.connection=null},s}(n.Subscriber)},58622:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(9992);x.repeat=function t(s){return void 0===s&&(s=-1),function(d){return 0===s?new a.EmptyObservable:d.lift(new l(s<0?-1:s-1,d))}};var l=function(){function s(d,p){this.count=d,this.source=p}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.count,this.source))},s}(),h=function(s){function d(p,u,g){s.call(this,p),this.count=u,this.source=g}return e(d,s),d.prototype.complete=function(){if(!this.isStopped){var u=this.source,g=this.count;if(0===g)return s.prototype.complete.call(this);g>-1&&(this.count=g-1),u.subscribe(this._unsubscribeAndRecycle())}},d}(n.Subscriber)},84839:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(87632),a=i(66530),t=i(78027),l=i(79229),h=i(27450);x.repeatWhen=function s(u){return function(g){return g.lift(new d(u))}};var d=function(){function u(g){this.notifier=g}return u.prototype.call=function(g,v){return v.subscribe(new p(g,this.notifier,v))},u}(),p=function(u){function g(v,y,b){u.call(this,v),this.notifier=y,this.source=b,this.sourceIsBeingSubscribedTo=!0}return e(g,u),g.prototype.notifyNext=function(v,y,b,S,E){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},g.prototype.notifyComplete=function(v){if(!1===this.sourceIsBeingSubscribedTo)return u.prototype.complete.call(this)},g.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return u.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},g.prototype._unsubscribe=function(){var y=this.notifications,b=this.retriesSubscription;y&&(y.unsubscribe(),this.notifications=null),b&&(b.unsubscribe(),this.retriesSubscription=null),this.retries=null},g.prototype._unsubscribeAndRecycle=function(){var v=this,y=v.notifications,b=v.retries,S=v.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,u.prototype._unsubscribeAndRecycle.call(this),this.notifications=y,this.retries=b,this.retriesSubscription=S,this},g.prototype.subscribeToRetries=function(){this.notifications=new n.Subject;var v=a.tryCatch(this.notifier)(this.notifications);if(v===t.errorObject)return u.prototype.complete.call(this);this.retries=v,this.retriesSubscription=h.subscribeToResult(this,v)},g}(l.OuterSubscriber)},44191:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.retry=function a(h){return void 0===h&&(h=-1),function(s){return s.lift(new t(h,s))}};var t=function(){function h(s,d){this.count=s,this.source=d}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.count,this.source))},h}(),l=function(h){function s(d,p,u){h.call(this,d),this.count=p,this.source=u}return e(s,h),s.prototype.error=function(d){if(!this.isStopped){var u=this.source,g=this.count;if(0===g)return h.prototype.error.call(this,d);g>-1&&(this.count=g-1),u.subscribe(this._unsubscribeAndRecycle())}},s}(n.Subscriber)},41559:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(87632),a=i(66530),t=i(78027),l=i(79229),h=i(27450);x.retryWhen=function s(u){return function(g){return g.lift(new d(u,g))}};var d=function(){function u(g,v){this.notifier=g,this.source=v}return u.prototype.call=function(g,v){return v.subscribe(new p(g,this.notifier,this.source))},u}(),p=function(u){function g(v,y,b){u.call(this,v),this.notifier=y,this.source=b}return e(g,u),g.prototype.error=function(v){if(!this.isStopped){var y=this.errors,b=this.retries,S=this.retriesSubscription;if(b)this.errors=null,this.retriesSubscription=null;else{if(y=new n.Subject,(b=a.tryCatch(this.notifier)(y))===t.errorObject)return u.prototype.error.call(this,t.errorObject.e);S=h.subscribeToResult(this,b)}this._unsubscribeAndRecycle(),this.errors=y,this.retries=b,this.retriesSubscription=S,y.next(v)}},g.prototype._unsubscribe=function(){var y=this.errors,b=this.retriesSubscription;y&&(y.unsubscribe(),this.errors=null),b&&(b.unsubscribe(),this.retriesSubscription=null),this.retries=null},g.prototype.notifyNext=function(v,y,b,S,E){var D=this,A=D.errors,P=D.retries,B=D.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=A,this.retries=P,this.retriesSubscription=B,this.source.subscribe(this)},g}(l.OuterSubscriber)},13753:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.sample=function t(s){return function(d){return d.lift(new l(s))}};var l=function(){function s(d){this.notifier=d}return s.prototype.call=function(d,p){var u=new h(d),g=p.subscribe(u);return g.add(a.subscribeToResult(u,this.notifier)),g},s}(),h=function(s){function d(){s.apply(this,arguments),this.hasValue=!1}return e(d,s),d.prototype._next=function(p){this.value=p,this.hasValue=!0},d.prototype.notifyNext=function(p,u,g,v,y){this.emitValue()},d.prototype.notifyComplete=function(){this.emitValue()},d.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},d}(n.OuterSubscriber)},29140:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(62682),a=i(54039);x.sampleTime=function t(d,p){return void 0===p&&(p=a.async),function(u){return u.lift(new l(d,p))}};var l=function(){function d(p,u){this.period=p,this.scheduler=u}return d.prototype.call=function(p,u){return u.subscribe(new h(p,this.period,this.scheduler))},d}(),h=function(d){function p(u,g,v){d.call(this,u),this.period=g,this.scheduler=v,this.hasValue=!1,this.add(v.schedule(s,g,{subscriber:this,period:g}))}return e(p,d),p.prototype._next=function(u){this.lastValue=u,this.hasValue=!0},p.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},p}(n.Subscriber);function s(d){var u=d.period;d.subscriber.notifyNext(),this.schedule(d,u)}},68935:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.scan=function a(h,s){var d=!1;return arguments.length>=2&&(d=!0),function(u){return u.lift(new t(h,s,d))}};var t=function(){function h(s,d,p){void 0===p&&(p=!1),this.accumulator=s,this.seed=d,this.hasSeed=p}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.accumulator,this.seed,this.hasSeed))},h}(),l=function(h){function s(d,p,u,g){h.call(this,d),this.accumulator=p,this._seed=u,this.hasSeed=g,this.index=0}return e(s,h),Object.defineProperty(s.prototype,"seed",{get:function(){return this._seed},set:function(d){this.hasSeed=!0,this._seed=d},enumerable:!0,configurable:!0}),s.prototype._next=function(d){if(this.hasSeed)return this._tryNext(d);this.seed=d,this.destination.next(d)},s.prototype._tryNext=function(d){var u,p=this.index++;try{u=this.accumulator(this.seed,d,p)}catch(g){this.destination.error(g)}this.seed=u,this.destination.next(u)},s}(n.Subscriber)},38817:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(62682),a=i(66530),t=i(78027);x.sequenceEqual=function l(p,u){return function(g){return g.lift(new h(p,u))}};var h=function(){function p(u,g){this.compareTo=u,this.comparor=g}return p.prototype.call=function(u,g){return g.subscribe(new s(u,this.compareTo,this.comparor))},p}();x.SequenceEqualOperator=h;var s=function(p){function u(g,v,y){p.call(this,g),this.compareTo=v,this.comparor=y,this._a=[],this._b=[],this._oneComplete=!1,this.add(v.subscribe(new d(g,this)))}return e(u,p),u.prototype._next=function(g){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(g),this.checkValues())},u.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},u.prototype.checkValues=function(){for(var g=this,v=g._a,y=g._b,b=g.comparor;v.length>0&&y.length>0;){var S=v.shift(),E=y.shift(),D=!1;b?(D=a.tryCatch(b)(S,E))===t.errorObject&&this.destination.error(t.errorObject.e):D=S===E,D||this.emit(!1)}},u.prototype.emit=function(g){var v=this.destination;v.next(g),v.complete()},u.prototype.nextB=function(g){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(g),this.checkValues())},u}(n.Subscriber);x.SequenceEqualSubscriber=s;var d=function(p){function u(g,v){p.call(this,g),this.parent=v}return e(u,p),u.prototype._next=function(g){this.parent.nextB(g)},u.prototype._error=function(g){this.parent.error(g)},u.prototype._complete=function(){this.parent._complete()},u}(n.Subscriber)},56789:(oe,x,i)=>{"use strict";var e=i(8122),n=i(67486),a=i(87632);function t(){return new a.Subject}x.share=function l(){return function(h){return n.refCount()(e.multicast(t)(h))}}},37087:(oe,x,i)=>{"use strict";var e=i(69467);x.shareReplay=function n(t,l,h){return function(s){return s.lift(function a(t,l,h){var s,p,d=0,u=!1,g=!1;return function(y){d++,(!s||u)&&(u=!1,s=new e.ReplaySubject(t,l,h),p=y.subscribe({next:function(S){s.next(S)},error:function(S){u=!0,s.error(S)},complete:function(){g=!0,s.complete()}}));var b=s.subscribe(this);return function(){d--,b.unsubscribe(),p&&0===d&&g&&p.unsubscribe()}}}(t,l,h))}}},83165:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(8638);x.single=function t(s){return function(d){return d.lift(new l(s,d))}};var l=function(){function s(d,p){this.predicate=d,this.source=p}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.predicate,this.source))},s}(),h=function(s){function d(p,u,g){s.call(this,p),this.predicate=u,this.source=g,this.seenValue=!1,this.index=0}return e(d,s),d.prototype.applySingleValue=function(p){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=p)},d.prototype._next=function(p){var u=this.index++;this.predicate?this.tryNext(p,u):this.applySingleValue(p)},d.prototype.tryNext=function(p,u){try{this.predicate(p,u,this.source)&&this.applySingleValue(p)}catch(g){this.destination.error(g)}},d.prototype._complete=function(){var p=this.destination;this.index>0?(p.next(this.seenValue?this.singleValue:void 0),p.complete()):p.error(new a.EmptyError)},d}(n.Subscriber)},1933:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.skip=function a(h){return function(s){return s.lift(new t(h))}};var t=function(){function h(s){this.total=s}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.total))},h}(),l=function(h){function s(d,p){h.call(this,d),this.total=p,this.count=0}return e(s,h),s.prototype._next=function(d){++this.count>this.total&&this.destination.next(d)},s}(n.Subscriber)},94198:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(67038);x.skipLast=function t(s){return function(d){return d.lift(new l(s))}};var l=function(){function s(d){if(this._skipCount=d,this._skipCount<0)throw new a.ArgumentOutOfRangeError}return s.prototype.call=function(d,p){return p.subscribe(0===this._skipCount?new n.Subscriber(d):new h(d,this._skipCount))},s}(),h=function(s){function d(p,u){s.call(this,p),this._skipCount=u,this._count=0,this._ring=new Array(u)}return e(d,s),d.prototype._next=function(p){var u=this._skipCount,g=this._count++;if(g<u)this._ring[g]=p;else{var v=g%u,y=this._ring,b=y[v];y[v]=p,this.destination.next(b)}},d}(n.Subscriber)},81667:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.skipUntil=function t(s){return function(d){return d.lift(new l(s))}};var l=function(){function s(d){this.notifier=d}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.notifier))},s}(),h=function(s){function d(p,u){s.call(this,p),this.hasValue=!1,this.isInnerStopped=!1,this.add(a.subscribeToResult(this,u))}return e(d,s),d.prototype._next=function(p){this.hasValue&&s.prototype._next.call(this,p)},d.prototype._complete=function(){this.isInnerStopped?s.prototype._complete.call(this):this.unsubscribe()},d.prototype.notifyNext=function(p,u,g,v,y){this.hasValue=!0},d.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&s.prototype._complete.call(this)},d}(n.OuterSubscriber)},13983:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.skipWhile=function a(h){return function(s){return s.lift(new t(h))}};var t=function(){function h(s){this.predicate=s}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.predicate))},h}(),l=function(h){function s(d,p){h.call(this,d),this.predicate=p,this.skipping=!0,this.index=0}return e(s,h),s.prototype._next=function(d){var p=this.destination;this.skipping&&this.tryCallPredicate(d),this.skipping||p.next(d)},s.prototype.tryCallPredicate=function(d){try{var p=this.predicate(d,this.index++);this.skipping=Boolean(p)}catch(u){this.destination.error(u)}},s}(n.Subscriber)},17023:(oe,x,i)=>{"use strict";var e=i(96821),n=i(18641),a=i(9992),t=i(15956),l=i(72276);x.startWith=function h(){for(var s=[],d=0;d<arguments.length;d++)s[d-0]=arguments[d];return function(p){var u=s[s.length-1];l.isScheduler(u)?s.pop():u=null;var g=s.length;return t.concat(1===g?new n.ScalarObservable(s[0],u):g>1?new e.ArrayObservable(s,u):new a.EmptyObservable(u),p)}}},75302:(oe,x,i)=>{"use strict";var e=i(30134);x.subscribeOn=function n(t,l){return void 0===l&&(l=0),function(s){return s.lift(new a(t,l))}};var a=function(){function t(l,h){this.scheduler=l,this.delay=h}return t.prototype.call=function(l,h){return new e.SubscribeOnObservable(h,this.delay,this.scheduler).subscribe(l)},t}()},53180:(oe,x,i)=>{"use strict";var e=i(72317),n=i(81107);x.switchAll=function a(){return e.switchMap(n.identity)}},72317:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.switchMap=function t(s,d){return function(u){return u.lift(new l(s,d))}};var l=function(){function s(d,p){this.project=d,this.resultSelector=p}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.project,this.resultSelector))},s}(),h=function(s){function d(p,u,g){s.call(this,p),this.project=u,this.resultSelector=g,this.index=0}return e(d,s),d.prototype._next=function(p){var u,g=this.index++;try{u=this.project(p,g)}catch(v){return void this.destination.error(v)}this._innerSub(u,p,g)},d.prototype._innerSub=function(p,u,g){var v=this.innerSubscription;v&&v.unsubscribe(),this.add(this.innerSubscription=a.subscribeToResult(this,p,u,g))},d.prototype._complete=function(){var p=this.innerSubscription;(!p||p.closed)&&s.prototype._complete.call(this)},d.prototype._unsubscribe=function(){this.innerSubscription=null},d.prototype.notifyComplete=function(p){this.remove(p),this.innerSubscription=null,this.isStopped&&s.prototype._complete.call(this)},d.prototype.notifyNext=function(p,u,g,v,y){this.resultSelector?this._tryNotifyNext(p,u,g,v):this.destination.next(u)},d.prototype._tryNotifyNext=function(p,u,g,v){var y;try{y=this.resultSelector(p,u,g,v)}catch(b){return void this.destination.error(b)}this.destination.next(y)},d}(n.OuterSubscriber)},37822:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.switchMapTo=function t(s,d){return function(p){return p.lift(new l(s,d))}};var l=function(){function s(d,p){this.observable=d,this.resultSelector=p}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.observable,this.resultSelector))},s}(),h=function(s){function d(p,u,g){s.call(this,p),this.inner=u,this.resultSelector=g,this.index=0}return e(d,s),d.prototype._next=function(p){var u=this.innerSubscription;u&&u.unsubscribe(),this.add(this.innerSubscription=a.subscribeToResult(this,this.inner,p,this.index++))},d.prototype._complete=function(){var p=this.innerSubscription;(!p||p.closed)&&s.prototype._complete.call(this)},d.prototype._unsubscribe=function(){this.innerSubscription=null},d.prototype.notifyComplete=function(p){this.remove(p),this.innerSubscription=null,this.isStopped&&s.prototype._complete.call(this)},d.prototype.notifyNext=function(p,u,g,v,y){var E=this.destination;this.resultSelector?this.tryResultSelector(p,u,g,v):E.next(u)},d.prototype.tryResultSelector=function(p,u,g,v){var E,b=this.resultSelector,S=this.destination;try{E=b(p,u,g,v)}catch(D){return void S.error(D)}S.next(E)},d}(n.OuterSubscriber)},61330:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(62682),a=i(67038),t=i(9992);x.take=function l(d){return function(p){return 0===d?new t.EmptyObservable:p.lift(new h(d))}};var h=function(){function d(p){if(this.total=p,this.total<0)throw new a.ArgumentOutOfRangeError}return d.prototype.call=function(p,u){return u.subscribe(new s(p,this.total))},d}(),s=function(d){function p(u,g){d.call(this,u),this.total=g,this.count=0}return e(p,d),p.prototype._next=function(u){var g=this.total,v=++this.count;v<=g&&(this.destination.next(u),v===g&&(this.destination.complete(),this.unsubscribe()))},p}(n.Subscriber)},57509:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(62682),a=i(67038),t=i(9992);x.takeLast=function l(d){return function(u){return 0===d?new t.EmptyObservable:u.lift(new h(d))}};var h=function(){function d(p){if(this.total=p,this.total<0)throw new a.ArgumentOutOfRangeError}return d.prototype.call=function(p,u){return u.subscribe(new s(p,this.total))},d}(),s=function(d){function p(u,g){d.call(this,u),this.total=g,this.ring=new Array,this.count=0}return e(p,d),p.prototype._next=function(u){var g=this.ring,v=this.total,y=this.count++;g.length<v?g.push(u):g[y%v]=u},p.prototype._complete=function(){var u=this.destination,g=this.count;if(g>0)for(var v=this.count>=this.total?this.total:this.count,y=this.ring,b=0;b<v;b++){var S=g++%v;u.next(y[S])}u.complete()},p}(n.Subscriber)},81609:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.takeUntil=function t(s){return function(d){return d.lift(new l(s))}};var l=function(){function s(d){this.notifier=d}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.notifier))},s}(),h=function(s){function d(p,u){s.call(this,p),this.notifier=u,this.add(a.subscribeToResult(this,u))}return e(d,s),d.prototype.notifyNext=function(p,u,g,v,y){this.complete()},d.prototype.notifyComplete=function(){},d}(n.OuterSubscriber)},82598:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.takeWhile=function a(h){return function(s){return s.lift(new t(h))}};var t=function(){function h(s){this.predicate=s}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.predicate))},h}(),l=function(h){function s(d,p){h.call(this,d),this.predicate=p,this.index=0}return e(s,h),s.prototype._next=function(d){var u,p=this.destination;try{u=this.predicate(d,this.index++)}catch(g){return void p.error(g)}this.nextOrComplete(d,u)},s.prototype.nextOrComplete=function(d,p){var u=this.destination;Boolean(p)?u.next(d):u.complete()},s}(n.Subscriber)},38048:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(62682);x.tap=function a(h,s,d){return function(u){return u.lift(new t(h,s,d))}};var t=function(){function h(s,d,p){this.nextOrObserver=s,this.error=d,this.complete=p}return h.prototype.call=function(s,d){return d.subscribe(new l(s,this.nextOrObserver,this.error,this.complete))},h}(),l=function(h){function s(d,p,u,g){h.call(this,d);var v=new n.Subscriber(p,u,g);v.syncErrorThrowable=!0,this.add(v),this.safeSubscriber=v}return e(s,h),s.prototype._next=function(d){var p=this.safeSubscriber;p.next(d),p.syncErrorThrown?this.destination.error(p.syncErrorValue):this.destination.next(d)},s.prototype._error=function(d){var p=this.safeSubscriber;p.error(d),this.destination.error(p.syncErrorThrown?p.syncErrorValue:d)},s.prototype._complete=function(){var d=this.safeSubscriber;d.complete(),d.syncErrorThrown?this.destination.error(d.syncErrorValue):this.destination.complete()},s}(n.Subscriber)},41170:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.defaultThrottleConfig={leading:!0,trailing:!1},x.throttle=function t(s,d){return void 0===d&&(d=x.defaultThrottleConfig),function(p){return p.lift(new l(s,d.leading,d.trailing))}};var l=function(){function s(d,p,u){this.durationSelector=d,this.leading=p,this.trailing=u}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.durationSelector,this.leading,this.trailing))},s}(),h=function(s){function d(p,u,g,v){s.call(this,p),this.destination=p,this.durationSelector=u,this._leading=g,this._trailing=v,this._hasTrailingValue=!1}return e(d,s),d.prototype._next=function(p){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=p);else{var u=this.tryDurationSelector(p);u&&this.add(this.throttled=a.subscribeToResult(this,u)),this._leading&&(this.destination.next(p),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=p))}},d.prototype.tryDurationSelector=function(p){try{return this.durationSelector(p)}catch(u){return this.destination.error(u),null}},d.prototype._unsubscribe=function(){var u=this.throttled;this._trailingValue=null,this._hasTrailingValue=!1,u&&(this.remove(u),this.throttled=null,u.unsubscribe())},d.prototype._sendTrailing=function(){var p=this;p.throttled&&p._trailing&&p._hasTrailingValue&&(p.destination.next(p._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1)},d.prototype.notifyNext=function(p,u,g,v,y){this._sendTrailing(),this._unsubscribe()},d.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},d}(n.OuterSubscriber)},64932:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(62682),a=i(54039),t=i(41170);x.throttleTime=function l(p,u,g){return void 0===u&&(u=a.async),void 0===g&&(g=t.defaultThrottleConfig),function(v){return v.lift(new h(p,u,g.leading,g.trailing))}};var h=function(){function p(u,g,v,y){this.duration=u,this.scheduler=g,this.leading=v,this.trailing=y}return p.prototype.call=function(u,g){return g.subscribe(new s(u,this.duration,this.scheduler,this.leading,this.trailing))},p}(),s=function(p){function u(g,v,y,b,S){p.call(this,g),this.duration=v,this.scheduler=y,this.leading=b,this.trailing=S,this._hasTrailingValue=!1,this._trailingValue=null}return e(u,p),u.prototype._next=function(g){this.throttled?this.trailing&&(this._trailingValue=g,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(d,this.duration,{subscriber:this})),this.leading&&this.destination.next(g))},u.prototype.clearThrottle=function(){var g=this.throttled;g&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),g.unsubscribe(),this.remove(g),this.throttled=null)},u}(n.Subscriber);function d(p){p.subscriber.clearThrottle()}},38067:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(62682),a=i(54039);x.timeInterval=function t(d){return void 0===d&&(d=a.async),function(p){return p.lift(new h(d))}};var l=function d(p,u){this.value=p,this.interval=u};x.TimeInterval=l;var h=function(){function d(p){this.scheduler=p}return d.prototype.call=function(p,u){return u.subscribe(new s(p,this.scheduler))},d}(),s=function(d){function p(u,g){d.call(this,u),this.scheduler=g,this.lastTime=0,this.lastTime=g.now()}return e(p,d),p.prototype._next=function(u){var g=this.scheduler.now(),v=g-this.lastTime;this.lastTime=g,this.destination.next(new l(u,v))},p}(n.Subscriber)},96696:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(54039),a=i(19952),t=i(62682),l=i(13312);x.timeout=function h(p,u){void 0===u&&(u=n.async);var g=a.isDate(p),v=g?+p-u.now():Math.abs(p);return function(y){return y.lift(new s(v,g,u,new l.TimeoutError))}};var s=function(){function p(u,g,v,y){this.waitFor=u,this.absoluteTimeout=g,this.scheduler=v,this.errorInstance=y}return p.prototype.call=function(u,g){return g.subscribe(new d(u,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},p}(),d=function(p){function u(g,v,y,b,S){p.call(this,g),this.absoluteTimeout=v,this.waitFor=y,this.scheduler=b,this.errorInstance=S,this.action=null,this.scheduleTimeout()}return e(u,p),u.dispatchTimeout=function(g){g.error(g.errorInstance)},u.prototype.scheduleTimeout=function(){var g=this.action;g?this.action=g.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(u.dispatchTimeout,this.waitFor,this))},u.prototype._next=function(g){this.absoluteTimeout||this.scheduleTimeout(),p.prototype._next.call(this,g)},u.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},u}(t.Subscriber)},216:function(oe,x,i){"use strict";var e=this&&this.__extends||function(p,u){for(var g in u)u.hasOwnProperty(g)&&(p[g]=u[g]);function v(){this.constructor=p}p.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)},n=i(54039),a=i(19952),t=i(79229),l=i(27450);x.timeoutWith=function h(p,u,g){return void 0===g&&(g=n.async),function(v){var y=a.isDate(p),b=y?+p-g.now():Math.abs(p);return v.lift(new s(b,y,u,g))}};var s=function(){function p(u,g,v,y){this.waitFor=u,this.absoluteTimeout=g,this.withObservable=v,this.scheduler=y}return p.prototype.call=function(u,g){return g.subscribe(new d(u,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},p}(),d=function(p){function u(g,v,y,b,S){p.call(this,g),this.absoluteTimeout=v,this.waitFor=y,this.withObservable=b,this.scheduler=S,this.action=null,this.scheduleTimeout()}return e(u,p),u.dispatchTimeout=function(g){var v=g.withObservable;g._unsubscribeAndRecycle(),g.add(l.subscribeToResult(g,v))},u.prototype.scheduleTimeout=function(){var g=this.action;g?this.action=g.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(u.dispatchTimeout,this.waitFor,this))},u.prototype._next=function(g){this.absoluteTimeout||this.scheduleTimeout(),p.prototype._next.call(this,g)},u.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},u}(t.OuterSubscriber)},71983:(oe,x,i)=>{"use strict";var e=i(54039),n=i(61894);x.timestamp=function a(l){return void 0===l&&(l=e.async),n.map(function(h){return new t(h,l.now())})};var t=function l(h,s){this.value=h,this.timestamp=s};x.Timestamp=t},52672:(oe,x,i)=>{"use strict";var e=i(66426);function n(t,l,h){return 0===h?[l]:(t.push(l),t)}x.toArray=function a(){return e.reduce(n,[])}},20771:function(oe,x,i){"use strict";var e=this&&this.__extends||function(d,p){for(var u in p)p.hasOwnProperty(u)&&(d[u]=p[u]);function g(){this.constructor=d}d.prototype=null===p?Object.create(p):(g.prototype=p.prototype,new g)},n=i(87632),a=i(79229),t=i(27450);x.window=function l(d){return function(u){return u.lift(new h(d))}};var h=function(){function d(p){this.windowBoundaries=p}return d.prototype.call=function(p,u){var g=new s(p),v=u.subscribe(g);return v.closed||g.add(t.subscribeToResult(g,this.windowBoundaries)),v},d}(),s=function(d){function p(u){d.call(this,u),this.window=new n.Subject,u.next(this.window)}return e(p,d),p.prototype.notifyNext=function(u,g,v,y,b){this.openWindow()},p.prototype.notifyError=function(u,g){this._error(u)},p.prototype.notifyComplete=function(u){this._complete()},p.prototype._next=function(u){this.window.next(u)},p.prototype._error=function(u){this.window.error(u),this.destination.error(u)},p.prototype._complete=function(){this.window.complete(),this.destination.complete()},p.prototype._unsubscribe=function(){this.window=null},p.prototype.openWindow=function(){var u=this.window;u&&u.complete();var g=this.destination,v=this.window=new n.Subject;g.next(v)},p}(a.OuterSubscriber)},20657:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(62682),a=i(87632);x.windowCount=function t(s,d){return void 0===d&&(d=0),function(u){return u.lift(new l(s,d))}};var l=function(){function s(d,p){this.windowSize=d,this.startWindowEvery=p}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.windowSize,this.startWindowEvery))},s}(),h=function(s){function d(p,u,g){s.call(this,p),this.destination=p,this.windowSize=u,this.startWindowEvery=g,this.windows=[new a.Subject],this.count=0,p.next(this.windows[0])}return e(d,s),d.prototype._next=function(p){for(var u=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,g=this.destination,v=this.windowSize,y=this.windows,b=y.length,S=0;S<b&&!this.closed;S++)y[S].next(p);var E=this.count-v+1;if(E>=0&&E%u==0&&!this.closed&&y.shift().complete(),++this.count%u==0&&!this.closed){var D=new a.Subject;y.push(D),g.next(D)}},d.prototype._error=function(p){var u=this.windows;if(u)for(;u.length>0&&!this.closed;)u.shift().error(p);this.destination.error(p)},d.prototype._complete=function(){var p=this.windows;if(p)for(;p.length>0&&!this.closed;)p.shift().complete();this.destination.complete()},d.prototype._unsubscribe=function(){this.count=0,this.windows=null},d}(n.Subscriber)},1290:function(oe,x,i){"use strict";var e=this&&this.__extends||function(b,S){for(var E in S)S.hasOwnProperty(E)&&(b[E]=S[E]);function D(){this.constructor=b}b.prototype=null===S?Object.create(S):(D.prototype=S.prototype,new D)},n=i(87632),a=i(54039),t=i(62682),l=i(54314),h=i(72276);x.windowTime=function s(b){var S=a.async,E=null,D=Number.POSITIVE_INFINITY;return h.isScheduler(arguments[3])&&(S=arguments[3]),h.isScheduler(arguments[2])?S=arguments[2]:l.isNumeric(arguments[2])&&(D=arguments[2]),h.isScheduler(arguments[1])?S=arguments[1]:l.isNumeric(arguments[1])&&(E=arguments[1]),function(P){return P.lift(new d(b,E,D,S))}};var d=function(){function b(S,E,D,A){this.windowTimeSpan=S,this.windowCreationInterval=E,this.maxWindowSize=D,this.scheduler=A}return b.prototype.call=function(S,E){return E.subscribe(new u(S,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},b}(),p=function(b){function S(){b.apply(this,arguments),this._numberOfNextedValues=0}return e(S,b),S.prototype.next=function(E){this._numberOfNextedValues++,b.prototype.next.call(this,E)},Object.defineProperty(S.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),S}(n.Subject),u=function(b){function S(E,D,A,P,B){b.call(this,E),this.destination=E,this.windowTimeSpan=D,this.windowCreationInterval=A,this.maxWindowSize=P,this.scheduler=B,this.windows=[];var V=this.openWindow();if(null!==A&&A>=0){var re={windowTimeSpan:D,windowCreationInterval:A,subscriber:this,scheduler:B};this.add(B.schedule(y,D,{subscriber:this,window:V,context:null})),this.add(B.schedule(v,A,re))}else this.add(B.schedule(g,D,{subscriber:this,window:V,windowTimeSpan:D}))}return e(S,b),S.prototype._next=function(E){for(var D=this.windows,A=D.length,P=0;P<A;P++){var B=D[P];B.closed||(B.next(E),B.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(B))}},S.prototype._error=function(E){for(var D=this.windows;D.length>0;)D.shift().error(E);this.destination.error(E)},S.prototype._complete=function(){for(var E=this.windows;E.length>0;){var D=E.shift();D.closed||D.complete()}this.destination.complete()},S.prototype.openWindow=function(){var E=new p;return this.windows.push(E),this.destination.next(E),E},S.prototype.closeWindow=function(E){E.complete();var D=this.windows;D.splice(D.indexOf(E),1)},S}(t.Subscriber);function g(b){var S=b.subscriber,E=b.windowTimeSpan,D=b.window;D&&S.closeWindow(D),b.window=S.openWindow(),this.schedule(b,E)}function v(b){var S=b.windowTimeSpan,E=b.subscriber,D=b.scheduler,A=b.windowCreationInterval,P=E.openWindow(),B=this,V={action:B,subscription:null};V.subscription=D.schedule(y,S,{subscriber:E,window:P,context:V}),B.add(V.subscription),B.schedule(b,A)}function y(b){var S=b.subscriber,E=b.window,D=b.context;D&&D.action&&D.subscription&&D.action.remove(D.subscription),S.closeWindow(E)}},65408:function(oe,x,i){"use strict";var e=this&&this.__extends||function(g,v){for(var y in v)v.hasOwnProperty(y)&&(g[y]=v[y]);function b(){this.constructor=g}g.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)},n=i(87632),a=i(57217),t=i(66530),l=i(78027),h=i(79229),s=i(27450);x.windowToggle=function d(g,v){return function(y){return y.lift(new p(g,v))}};var p=function(){function g(v,y){this.openings=v,this.closingSelector=y}return g.prototype.call=function(v,y){return y.subscribe(new u(v,this.openings,this.closingSelector))},g}(),u=function(g){function v(y,b,S){g.call(this,y),this.openings=b,this.closingSelector=S,this.contexts=[],this.add(this.openSubscription=s.subscribeToResult(this,b,b))}return e(v,g),v.prototype._next=function(y){var b=this.contexts;if(b)for(var S=b.length,E=0;E<S;E++)b[E].window.next(y)},v.prototype._error=function(y){var b=this.contexts;if(this.contexts=null,b)for(var S=b.length,E=-1;++E<S;){var D=b[E];D.window.error(y),D.subscription.unsubscribe()}g.prototype._error.call(this,y)},v.prototype._complete=function(){var y=this.contexts;if(this.contexts=null,y)for(var b=y.length,S=-1;++S<b;){var E=y[S];E.window.complete(),E.subscription.unsubscribe()}g.prototype._complete.call(this)},v.prototype._unsubscribe=function(){var y=this.contexts;if(this.contexts=null,y)for(var b=y.length,S=-1;++S<b;){var E=y[S];E.window.unsubscribe(),E.subscription.unsubscribe()}},v.prototype.notifyNext=function(y,b,S,E,D){if(y===this.openings){var P=t.tryCatch(this.closingSelector)(b);if(P===l.errorObject)return this.error(l.errorObject.e);var B=new n.Subject,V=new a.Subscription,X={window:B,subscription:V};this.contexts.push(X);var re=s.subscribeToResult(this,P,X);re.closed?this.closeWindow(this.contexts.length-1):(re.context=X,V.add(re)),this.destination.next(B)}else this.closeWindow(this.contexts.indexOf(y))},v.prototype.notifyError=function(y){this.error(y)},v.prototype.notifyComplete=function(y){y!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(y.context))},v.prototype.closeWindow=function(y){if(-1!==y){var b=this.contexts,S=b[y],E=S.window,D=S.subscription;b.splice(y,1),E.complete(),D.unsubscribe()}},v}(h.OuterSubscriber)},94439:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(87632),a=i(66530),t=i(78027),l=i(79229),h=i(27450);x.windowWhen=function s(u){return function(v){return v.lift(new d(u))}};var d=function(){function u(g){this.closingSelector=g}return u.prototype.call=function(g,v){return v.subscribe(new p(g,this.closingSelector))},u}(),p=function(u){function g(v,y){u.call(this,v),this.destination=v,this.closingSelector=y,this.openWindow()}return e(g,u),g.prototype.notifyNext=function(v,y,b,S,E){this.openWindow(E)},g.prototype.notifyError=function(v,y){this._error(v)},g.prototype.notifyComplete=function(v){this.openWindow(v)},g.prototype._next=function(v){this.window.next(v)},g.prototype._error=function(v){this.window.error(v),this.destination.error(v),this.unsubscribeClosingNotification()},g.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},g.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},g.prototype.openWindow=function(v){void 0===v&&(v=null),v&&(this.remove(v),v.unsubscribe());var y=this.window;y&&y.complete();var b=this.window=new n.Subject;this.destination.next(b);var S=a.tryCatch(this.closingSelector)();if(S===t.errorObject){var E=t.errorObject.e;this.destination.error(E),this.window.error(E)}else this.add(this.closingNotification=h.subscribeToResult(this,S))},g}(l.OuterSubscriber)},33896:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(79229),a=i(27450);x.withLatestFrom=function t(){for(var s=[],d=0;d<arguments.length;d++)s[d-0]=arguments[d];return function(p){var u;return"function"==typeof s[s.length-1]&&(u=s.pop()),p.lift(new l(s,u))}};var l=function(){function s(d,p){this.observables=d,this.project=p}return s.prototype.call=function(d,p){return p.subscribe(new h(d,this.observables,this.project))},s}(),h=function(s){function d(p,u,g){s.call(this,p),this.observables=u,this.project=g,this.toRespond=[];var v=u.length;this.values=new Array(v);for(var y=0;y<v;y++)this.toRespond.push(y);for(y=0;y<v;y++){var b=u[y];this.add(a.subscribeToResult(this,b,b,y))}}return e(d,s),d.prototype.notifyNext=function(p,u,g,v,y){this.values[g]=u;var b=this.toRespond;if(b.length>0){var S=b.indexOf(g);-1!==S&&b.splice(S,1)}},d.prototype.notifyComplete=function(){},d.prototype._next=function(p){if(0===this.toRespond.length){var u=[p].concat(this.values);this.project?this._tryProject(u):this.destination.next(u)}},d.prototype._tryProject=function(p){var u;try{u=this.project.apply(this,p)}catch(g){return void this.destination.error(g)}this.destination.next(u)},d}(n.OuterSubscriber)},26827:function(oe,x,i){"use strict";var e=this&&this.__extends||function(S,E){for(var D in E)E.hasOwnProperty(D)&&(S[D]=E[D]);function A(){this.constructor=S}S.prototype=null===E?Object.create(E):(A.prototype=E.prototype,new A)},n=i(96821),a=i(72001),t=i(62682),l=i(79229),h=i(27450),s=i(82967);function p(){for(var S=[],E=0;E<arguments.length;E++)S[E-0]=arguments[E];var D=S[S.length-1];return"function"==typeof D&&S.pop(),new n.ArrayObservable(S).lift(new u(D))}x.zip=function d(){for(var S=[],E=0;E<arguments.length;E++)S[E-0]=arguments[E];return function(A){return A.lift.call(p.apply(void 0,[A].concat(S)))}},x.zipStatic=p;var u=function(){function S(E){this.project=E}return S.prototype.call=function(E,D){return D.subscribe(new g(E,this.project))},S}();x.ZipOperator=u;var g=function(S){function E(D,A,P){void 0===P&&(P=Object.create(null)),S.call(this,D),this.iterators=[],this.active=0,this.project="function"==typeof A?A:null,this.values=P}return e(E,S),E.prototype._next=function(D){var A=this.iterators;a.isArray(D)?A.push(new y(D)):A.push("function"==typeof D[s.iterator]?new v(D[s.iterator]()):new b(this.destination,this,D))},E.prototype._complete=function(){var D=this.iterators,A=D.length;if(0!==A){this.active=A;for(var P=0;P<A;P++){var B=D[P];B.stillUnsubscribed?this.add(B.subscribe(B,P)):this.active--}}else this.destination.complete()},E.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},E.prototype.checkIterators=function(){for(var D=this.iterators,A=D.length,P=this.destination,B=0;B<A;B++)if("function"==typeof(V=D[B]).hasValue&&!V.hasValue())return;var X=!1,re=[];for(B=0;B<A;B++){var V,Q=(V=D[B]).next();if(V.hasCompleted()&&(X=!0),Q.done)return void P.complete();re.push(Q.value)}this.project?this._tryProject(re):P.next(re),X&&P.complete()},E.prototype._tryProject=function(D){var A;try{A=this.project.apply(this,D)}catch(P){return void this.destination.error(P)}this.destination.next(A)},E}(t.Subscriber);x.ZipSubscriber=g;var v=function(){function S(E){this.iterator=E,this.nextResult=E.next()}return S.prototype.hasValue=function(){return!0},S.prototype.next=function(){var E=this.nextResult;return this.nextResult=this.iterator.next(),E},S.prototype.hasCompleted=function(){var E=this.nextResult;return E&&E.done},S}(),y=function(){function S(E){this.array=E,this.index=0,this.length=0,this.length=E.length}return S.prototype[s.iterator]=function(){return this},S.prototype.next=function(E){var D=this.index++;return D<this.length?{value:this.array[D],done:!1}:{value:null,done:!0}},S.prototype.hasValue=function(){return this.array.length>this.index},S.prototype.hasCompleted=function(){return this.array.length===this.index},S}(),b=function(S){function E(D,A,P){S.call(this,D),this.parent=A,this.observable=P,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return e(E,S),E.prototype[s.iterator]=function(){return this},E.prototype.next=function(){var D=this.buffer;return 0===D.length&&this.isComplete?{value:null,done:!0}:{value:D.shift(),done:!1}},E.prototype.hasValue=function(){return this.buffer.length>0},E.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},E.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},E.prototype.notifyNext=function(D,A,P,B,V){this.buffer.push(A),this.parent.checkIterators()},E.prototype.subscribe=function(D,A){return h.subscribeToResult(this,this.observable,this,A)},E}(l.OuterSubscriber)},46673:(oe,x,i)=>{"use strict";var e=i(26827);x.zipAll=function n(a){return function(t){return t.lift(new e.ZipOperator(a))}}},39334:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(h,s){t.call(this)}return e(l,t),l.prototype.schedule=function(h,s){return void 0===s&&(s=0),this},l}(i(57217).Subscription);x.Action=a},99911:function(oe,x,i){"use strict";var e=this&&this.__extends||function(l,h){for(var s in h)h.hasOwnProperty(s)&&(l[s]=h[s]);function d(){this.constructor=l}l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)},n=i(13094),a=i(25245),t=function(l){function h(s,d){l.call(this,s,d),this.scheduler=s,this.work=d}return e(h,l),h.prototype.requestAsyncId=function(s,d,p){return void 0===p&&(p=0),null!==p&&p>0?l.prototype.requestAsyncId.call(this,s,d,p):(s.actions.push(this),s.scheduled||(s.scheduled=a.AnimationFrame.requestAnimationFrame(s.flush.bind(s,null))))},h.prototype.recycleAsyncId=function(s,d,p){if(void 0===p&&(p=0),null!==p&&p>0||null===p&&this.delay>0)return l.prototype.recycleAsyncId.call(this,s,d,p);0===s.actions.length&&(a.AnimationFrame.cancelAnimationFrame(d),s.scheduled=void 0)},h}(n.AsyncAction);x.AnimationFrameAction=t},6453:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(){t.apply(this,arguments)}return e(l,t),l.prototype.flush=function(h){this.active=!0,this.scheduled=void 0;var d,s=this.actions,p=-1,u=s.length;h=h||s.shift();do{if(d=h.execute(h.state,h.delay))break}while(++p<u&&(h=s.shift()));if(this.active=!1,d){for(;++p<u&&(h=s.shift());)h.unsubscribe();throw d}},l}(i(37963).AsyncScheduler);x.AnimationFrameScheduler=a},22713:function(oe,x,i){"use strict";var e=this&&this.__extends||function(l,h){for(var s in h)h.hasOwnProperty(s)&&(l[s]=h[s]);function d(){this.constructor=l}l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)},n=i(99634),t=function(l){function h(s,d){l.call(this,s,d),this.scheduler=s,this.work=d}return e(h,l),h.prototype.requestAsyncId=function(s,d,p){return void 0===p&&(p=0),null!==p&&p>0?l.prototype.requestAsyncId.call(this,s,d,p):(s.actions.push(this),s.scheduled||(s.scheduled=n.Immediate.setImmediate(s.flush.bind(s,null))))},h.prototype.recycleAsyncId=function(s,d,p){if(void 0===p&&(p=0),null!==p&&p>0||null===p&&this.delay>0)return l.prototype.recycleAsyncId.call(this,s,d,p);0===s.actions.length&&(n.Immediate.clearImmediate(d),s.scheduled=void 0)},h}(i(13094).AsyncAction);x.AsapAction=t},76852:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(){t.apply(this,arguments)}return e(l,t),l.prototype.flush=function(h){this.active=!0,this.scheduled=void 0;var d,s=this.actions,p=-1,u=s.length;h=h||s.shift();do{if(d=h.execute(h.state,h.delay))break}while(++p<u&&(h=s.shift()));if(this.active=!1,d){for(;++p<u&&(h=s.shift());)h.unsubscribe();throw d}},l}(i(37963).AsyncScheduler);x.AsapScheduler=a},13094:function(oe,x,i){"use strict";var e=this&&this.__extends||function(l,h){for(var s in h)h.hasOwnProperty(s)&&(l[s]=h[s]);function d(){this.constructor=l}l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)},n=i(79892),t=function(l){function h(s,d){l.call(this,s,d),this.scheduler=s,this.pending=!1,this.work=d}return e(h,l),h.prototype.schedule=function(s,d){if(void 0===d&&(d=0),this.closed)return this;this.state=s,this.pending=!0;var p=this.id,u=this.scheduler;return null!=p&&(this.id=this.recycleAsyncId(u,p,d)),this.delay=d,this.id=this.id||this.requestAsyncId(u,this.id,d),this},h.prototype.requestAsyncId=function(s,d,p){return void 0===p&&(p=0),n.root.setInterval(s.flush.bind(s,this),p)},h.prototype.recycleAsyncId=function(s,d,p){return void 0===p&&(p=0),null!==p&&this.delay===p&&!1===this.pending?d:void n.root.clearInterval(d)},h.prototype.execute=function(s,d){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var p=this._execute(s,d);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},h.prototype._execute=function(s,d){var p=!1,u=void 0;try{this.work(s)}catch(g){p=!0,u=!!g&&g||new Error(g)}if(p)return this.unsubscribe(),u},h.prototype._unsubscribe=function(){var s=this.id,d=this.scheduler,p=d.actions,u=p.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==u&&p.splice(u,1),null!=s&&(this.id=this.recycleAsyncId(d,s,null)),this.delay=null},h}(i(39334).Action);x.AsyncAction=t},37963:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return e(l,t),l.prototype.flush=function(h){var s=this.actions;if(this.active)s.push(h);else{var d;this.active=!0;do{if(d=h.execute(h.state,h.delay))break}while(h=s.shift());if(this.active=!1,d){for(;h=s.shift();)h.unsubscribe();throw d}}},l}(i(68353).Scheduler);x.AsyncScheduler=a},22673:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(h,s){t.call(this,h,s),this.scheduler=h,this.work=s}return e(l,t),l.prototype.schedule=function(h,s){return void 0===s&&(s=0),s>0?t.prototype.schedule.call(this,h,s):(this.delay=s,this.state=h,this.scheduler.flush(this),this)},l.prototype.execute=function(h,s){return s>0||this.closed?t.prototype.execute.call(this,h,s):this._execute(h,s)},l.prototype.requestAsyncId=function(h,s,d){return void 0===d&&(d=0),null!==d&&d>0||null===d&&this.delay>0?t.prototype.requestAsyncId.call(this,h,s,d):h.flush(this)},l}(i(13094).AsyncAction);x.QueueAction=a},35798:function(oe,x,i){"use strict";var e=this&&this.__extends||function(t,l){for(var h in l)l.hasOwnProperty(h)&&(t[h]=l[h]);function s(){this.constructor=t}t.prototype=null===l?Object.create(l):(s.prototype=l.prototype,new s)},a=function(t){function l(){t.apply(this,arguments)}return e(l,t),l}(i(37963).AsyncScheduler);x.QueueScheduler=a},83398:function(oe,x,i){"use strict";var e=this&&this.__extends||function(h,s){for(var d in s)s.hasOwnProperty(d)&&(h[d]=s[d]);function p(){this.constructor=h}h.prototype=null===s?Object.create(s):(p.prototype=s.prototype,new p)},n=i(13094),t=function(h){function s(d,p){var u=this;void 0===d&&(d=l),void 0===p&&(p=Number.POSITIVE_INFINITY),h.call(this,d,function(){return u.frame}),this.maxFrames=p,this.frame=0,this.index=-1}return e(s,h),s.prototype.flush=function(){for(var g,v,p=this.actions,u=this.maxFrames;(v=p.shift())&&(this.frame=v.delay)<=u&&!(g=v.execute(v.state,v.delay)););if(g){for(;v=p.shift();)v.unsubscribe();throw g}},s.frameTimeFactor=10,s}(i(37963).AsyncScheduler);x.VirtualTimeScheduler=t;var l=function(h){function s(d,p,u){void 0===u&&(u=d.index+=1),h.call(this,d,p),this.scheduler=d,this.work=p,this.index=u,this.active=!0,this.index=d.index=u}return e(s,h),s.prototype.schedule=function(d,p){if(void 0===p&&(p=0),!this.id)return h.prototype.schedule.call(this,d,p);this.active=!1;var u=new s(this.scheduler,this.work);return this.add(u),u.schedule(d,p)},s.prototype.requestAsyncId=function(d,p,u){void 0===u&&(u=0),this.delay=d.frame+u;var g=d.actions;return g.push(this),g.sort(s.sortActions),!0},s.prototype.recycleAsyncId=function(d,p,u){void 0===u&&(u=0)},s.prototype._execute=function(d,p){if(!0===this.active)return h.prototype._execute.call(this,d,p)},s.sortActions=function(d,p){return d.delay===p.delay?d.index===p.index?0:d.index>p.index?1:-1:d.delay>p.delay?1:-1},s}(n.AsyncAction);x.VirtualAction=l},88929:(oe,x,i)=>{"use strict";var e=i(99911),n=i(6453);x.animationFrame=new n.AnimationFrameScheduler(e.AnimationFrameAction)},66909:(oe,x,i)=>{"use strict";var e=i(22713),n=i(76852);x.asap=new n.AsapScheduler(e.AsapAction)},54039:(oe,x,i)=>{"use strict";var e=i(13094),n=i(37963);x.async=new n.AsyncScheduler(e.AsyncAction)},34392:(oe,x,i)=>{"use strict";var e=i(22673),n=i(35798);x.queue=new n.QueueScheduler(e.QueueAction)},82967:(oe,x,i)=>{"use strict";var e=i(79892);function n(a){var t=a.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var l=a.Set;if(l&&"function"==typeof(new l)["@@iterator"])return"@@iterator";var h=a.Map;if(h)for(var s=Object.getOwnPropertyNames(h.prototype),d=0;d<s.length;++d){var p=s[d];if("entries"!==p&&"size"!==p&&h.prototype[p]===h.prototype.entries)return p}return"@@iterator"}x.symbolIteratorPonyfill=n,x.iterator=n(e.root),x.$$iterator=x.iterator},22168:(oe,x,i)=>{"use strict";var e=i(79892);function n(a){var t,l=a.Symbol;return"function"==typeof l?l.observable?t=l.observable:(t=l("observable"),l.observable=t):t="@@observable",t}x.getSymbolObservable=n,x.observable=n(e.root),x.$$observable=x.observable},97031:(oe,x,i)=>{"use strict";var n=i(79892).root.Symbol;x.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",x.$$rxSubscriber=x.rxSubscriber},48548:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(50289),a=i(57217),t=i(1915),l=i(22738),h=function(s){function d(p,u){s.call(this,function(g){var v=this,y=v.logSubscribedFrame();return g.add(new a.Subscription(function(){v.logUnsubscribedFrame(y)})),v.scheduleMessages(g),g}),this.messages=p,this.subscriptions=[],this.scheduler=u}return e(d,s),d.prototype.scheduleMessages=function(p){for(var u=this.messages.length,g=0;g<u;g++){var v=this.messages[g];p.add(this.scheduler.schedule(function(y){y.message.notification.observe(y.subscriber)},v.frame,{message:v,subscriber:p}))}},d}(n.Observable);x.ColdObservable=h,l.applyMixins(h,[t.SubscriptionLoggable])},26697:function(oe,x,i){"use strict";var e=this&&this.__extends||function(s,d){for(var p in d)d.hasOwnProperty(p)&&(s[p]=d[p]);function u(){this.constructor=s}s.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)},n=i(87632),a=i(57217),t=i(1915),l=i(22738),h=function(s){function d(p,u){s.call(this),this.messages=p,this.subscriptions=[],this.scheduler=u}return e(d,s),d.prototype._subscribe=function(p){var u=this,g=u.logSubscribedFrame();return p.add(new a.Subscription(function(){u.logUnsubscribedFrame(g)})),s.prototype._subscribe.call(this,p)},d.prototype.setup=function(){for(var p=this,u=p.messages.length,g=0;g<u;g++)!function(){var v=p.messages[g];p.scheduler.schedule(function(){v.notification.observe(p)},v.frame)}()},d}(n.Subject);x.HotObservable=h,l.applyMixins(h,[t.SubscriptionLoggable])},8833:(oe,x)=>{"use strict";x.SubscriptionLog=function e(n,a){void 0===a&&(a=Number.POSITIVE_INFINITY),this.subscribedFrame=n,this.unsubscribedFrame=a}},1915:(oe,x,i)=>{"use strict";var e=i(8833),n=function(){function a(){this.subscriptions=[]}return a.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new e.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},a.prototype.logUnsubscribedFrame=function(t){var l=this.subscriptions;l[t]=new e.SubscriptionLog(l[t].subscribedFrame,this.scheduler.now())},a}();x.SubscriptionLoggable=n},76622:function(oe,x,i){"use strict";var e=this&&this.__extends||function(u,g){for(var v in g)g.hasOwnProperty(v)&&(u[v]=g[v]);function y(){this.constructor=u}u.prototype=null===g?Object.create(g):(y.prototype=g.prototype,new y)},n=i(50289),a=i(81133),t=i(48548),l=i(26697),h=i(8833),s=i(83398),d=750,p=function(u){function g(v){u.call(this,s.VirtualAction,d),this.assertDeepEqual=v,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return e(g,u),g.prototype.createTime=function(v){var y=v.indexOf("|");if(-1===y)throw new Error('marble diagram for time should have a completion marker "|"');return y*g.frameTimeFactor},g.prototype.createColdObservable=function(v,y,b){if(-1!==v.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==v.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var S=g.parseMarbles(v,y,b),E=new t.ColdObservable(S,this);return this.coldObservables.push(E),E},g.prototype.createHotObservable=function(v,y,b){if(-1!==v.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var S=g.parseMarbles(v,y,b),E=new l.HotObservable(S,this);return this.hotObservables.push(E),E},g.prototype.materializeInnerObservable=function(v,y){var b=this,S=[];return v.subscribe(function(E){S.push({frame:b.frame-y,notification:a.Notification.createNext(E)})},function(E){S.push({frame:b.frame-y,notification:a.Notification.createError(E)})},function(){S.push({frame:b.frame-y,notification:a.Notification.createComplete()})}),S},g.prototype.expectObservable=function(v,y){var b=this;void 0===y&&(y=null);var A,S=[],E={actual:S,ready:!1},D=g.parseMarblesAsSubscriptions(y).unsubscribedFrame;return this.schedule(function(){A=v.subscribe(function(P){var B=P;P instanceof n.Observable&&(B=b.materializeInnerObservable(B,b.frame)),S.push({frame:b.frame,notification:a.Notification.createNext(B)})},function(P){S.push({frame:b.frame,notification:a.Notification.createError(P)})},function(){S.push({frame:b.frame,notification:a.Notification.createComplete()})})},0),D!==Number.POSITIVE_INFINITY&&this.schedule(function(){return A.unsubscribe()},D),this.flushTests.push(E),{toBe:function(P,B,V){E.ready=!0,E.expected=g.parseMarbles(P,B,V,!0)}}},g.prototype.expectSubscriptions=function(v){var y={actual:v,ready:!1};return this.flushTests.push(y),{toBe:function(b){var S="string"==typeof b?[b]:b;y.ready=!0,y.expected=S.map(function(E){return g.parseMarblesAsSubscriptions(E)})}}},g.prototype.flush=function(){for(var v=this.hotObservables;v.length>0;)v.shift().setup();u.prototype.flush.call(this);for(var y=this.flushTests.filter(function(S){return S.ready});y.length>0;){var b=y.shift();this.assertDeepEqual(b.actual,b.expected)}},g.parseMarblesAsSubscriptions=function(v){if("string"!=typeof v)return new h.SubscriptionLog(Number.POSITIVE_INFINITY);for(var y=v.length,b=-1,S=Number.POSITIVE_INFINITY,E=Number.POSITIVE_INFINITY,D=0;D<y;D++){var A=D*this.frameTimeFactor,P=v[D];switch(P){case"-":case" ":break;case"(":b=A;break;case")":b=-1;break;case"^":if(S!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");S=b>-1?b:A;break;case"!":if(E!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");E=b>-1?b:A;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+P+"'.")}}return E<0?new h.SubscriptionLog(S):new h.SubscriptionLog(S,E)},g.parseMarbles=function(v,y,b,S){if(void 0===S&&(S=!1),-1!==v.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var E=v.length,D=[],A=v.indexOf("^"),P=-1===A?0:A*-this.frameTimeFactor,B="object"!=typeof y?function(K){return K}:function(K){return S&&y[K]instanceof t.ColdObservable?y[K].messages:y[K]},V=-1,X=0;X<E;X++){var re=X*this.frameTimeFactor+P,Q=void 0,ae=v[X];switch(ae){case"-":case" ":case"^":break;case"(":V=re;break;case")":V=-1;break;case"|":Q=a.Notification.createComplete();break;case"#":Q=a.Notification.createError(b||"error");break;default:Q=a.Notification.createNext(B(ae))}Q&&D.push({frame:V>-1?V:re,notification:Q})}return D},g}(s.VirtualTimeScheduler);x.TestScheduler=p},25245:(oe,x,i)=>{"use strict";var e=i(79892),n=function a(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(l){return t.setTimeout(l,1e3/60)})};x.RequestAnimationFrameDefinition=n,x.AnimationFrame=new n(e.root)},67038:function(oe,x){"use strict";var i=this&&this.__extends||function(n,a){for(var t in a)a.hasOwnProperty(t)&&(n[t]=a[t]);function l(){this.constructor=n}n.prototype=null===a?Object.create(a):(l.prototype=a.prototype,new l)},e=function(n){function a(){var t=n.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return i(a,n),a}(Error);x.ArgumentOutOfRangeError=e},8638:function(oe,x){"use strict";var i=this&&this.__extends||function(n,a){for(var t in a)a.hasOwnProperty(t)&&(n[t]=a[t]);function l(){this.constructor=n}n.prototype=null===a?Object.create(a):(l.prototype=a.prototype,new l)},e=function(n){function a(){var t=n.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return i(a,n),a}(Error);x.EmptyError=e},77362:(oe,x)=>{"use strict";var i=function(){function e(){this.values={}}return e.prototype.delete=function(n){return this.values[n]=null,!0},e.prototype.set=function(n,a){return this.values[n]=a,this},e.prototype.get=function(n){return this.values[n]},e.prototype.forEach=function(n,a){var t=this.values;for(var l in t)t.hasOwnProperty(l)&&null!==t[l]&&n.call(a,t[l],l)},e.prototype.clear=function(){this.values={}},e}();x.FastMap=i},99634:(oe,x,i)=>{"use strict";var e=i(79892),n=function(){function a(t){if(this.root=t,t.setImmediate&&"function"==typeof t.setImmediate)this.setImmediate=t.setImmediate.bind(t),this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.setImmediate=this.canUseProcessNextTick()?this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.createReadyStateChangeSetImmediate():this.createSetTimeoutSetImmediate();var l=function h(s){delete h.instance.tasksByHandle[s]};l.instance=this,this.clearImmediate=l}}return a.prototype.identify=function(t){return this.root.Object.prototype.toString.call(t)},a.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},a.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},a.prototype.canUseReadyStateChange=function(){var t=this.root.document;return Boolean(t&&"onreadystatechange"in t.createElement("script"))},a.prototype.canUsePostMessage=function(){var t=this.root;if(t.postMessage&&!t.importScripts){var l=!0,h=t.onmessage;return t.onmessage=function(){l=!1},t.postMessage("","*"),t.onmessage=h,l}return!1},a.prototype.partiallyApplied=function(t){for(var l=[],h=1;h<arguments.length;h++)l[h-1]=arguments[h];var s=function d(){var u=d.handler;"function"==typeof u?u.apply(void 0,d.args):new Function(""+u)()};return s.handler=t,s.args=l,s},a.prototype.addFromSetImmediateArguments=function(t){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,t),this.nextHandle++},a.prototype.createProcessNextTickSetImmediate=function(){var t=function l(){var h=l.instance,s=h.addFromSetImmediateArguments(arguments);return h.root.process.nextTick(h.partiallyApplied(h.runIfPresent,s)),s};return t.instance=this,t},a.prototype.createPostMessageSetImmediate=function(){var t=this.root,l="setImmediate$"+t.Math.random()+"$",h=function d(p){var u=d.instance;p.source===t&&"string"==typeof p.data&&0===p.data.indexOf(l)&&u.runIfPresent(+p.data.slice(l.length))};h.instance=this,t.addEventListener("message",h,!1);var s=function d(){var u=d.messagePrefix,g=d.instance,v=g.addFromSetImmediateArguments(arguments);return g.root.postMessage(u+v,"*"),v};return s.instance=this,s.messagePrefix=l,s},a.prototype.runIfPresent=function(t){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,t),0);else{var l=this.tasksByHandle[t];if(l){this.currentlyRunningATask=!0;try{l()}finally{this.clearImmediate(t),this.currentlyRunningATask=!1}}}},a.prototype.createMessageChannelSetImmediate=function(){var t=this,l=new this.root.MessageChannel;l.port1.onmessage=function(s){t.runIfPresent(s.data)};var h=function s(){var p=s.channel,g=s.instance.addFromSetImmediateArguments(arguments);return p.port2.postMessage(g),g};return h.channel=l,h.instance=this,h},a.prototype.createReadyStateChangeSetImmediate=function(){var t=function l(){var h=l.instance,d=h.root.document,p=d.documentElement,u=h.addFromSetImmediateArguments(arguments),g=d.createElement("script");return g.onreadystatechange=function(){h.runIfPresent(u),g.onreadystatechange=null,p.removeChild(g),g=null},p.appendChild(g),u};return t.instance=this,t},a.prototype.createSetTimeoutSetImmediate=function(){var t=function l(){var h=l.instance,s=h.addFromSetImmediateArguments(arguments);return h.root.setTimeout(h.partiallyApplied(h.runIfPresent,s),0),s};return t.instance=this,t},a}();x.ImmediateDefinition=n,x.Immediate=new n(e.root)},44549:(oe,x,i)=>{"use strict";var e=i(79892),n=i(14862);x.Map=e.root.Map||n.MapPolyfill},14862:(oe,x)=>{"use strict";var i=function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype.get=function(n){var a=this._keys.indexOf(n);return-1===a?void 0:this._values[a]},e.prototype.set=function(n,a){var t=this._keys.indexOf(n);return-1===t?(this._keys.push(n),this._values.push(a),this.size++):this._values[t]=a,this},e.prototype.delete=function(n){var a=this._keys.indexOf(n);return-1!==a&&(this._values.splice(a,1),this._keys.splice(a,1),this.size--,!0)},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},e.prototype.forEach=function(n,a){for(var t=0;t<this.size;t++)n.call(a,this._values[t],this._keys[t])},e}();x.MapPolyfill=i},69075:function(oe,x){"use strict";var i=this&&this.__extends||function(n,a){for(var t in a)a.hasOwnProperty(t)&&(n[t]=a[t]);function l(){this.constructor=n}n.prototype=null===a?Object.create(a):(l.prototype=a.prototype,new l)},e=function(n){function a(){var t=n.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return i(a,n),a}(Error);x.ObjectUnsubscribedError=e},95803:(oe,x,i)=>{"use strict";var e=i(79892);function n(){return function(){function a(){this._values=[]}return a.prototype.add=function(t){this.has(t)||this._values.push(t)},a.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(a.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),a.prototype.clear=function(){this._values.length=0},a}()}x.minimalSetImpl=n,x.Set=e.root.Set||n()},13312:function(oe,x){"use strict";var i=this&&this.__extends||function(n,a){for(var t in a)a.hasOwnProperty(t)&&(n[t]=a[t]);function l(){this.constructor=n}n.prototype=null===a?Object.create(a):(l.prototype=a.prototype,new l)},e=function(n){function a(){var t=n.call(this,"Timeout has occurred");this.name=t.name="TimeoutError",this.stack=t.stack,this.message=t.message}return i(a,n),a}(Error);x.TimeoutError=e},25120:function(oe,x){"use strict";var i=this&&this.__extends||function(n,a){for(var t in a)a.hasOwnProperty(t)&&(n[t]=a[t]);function l(){this.constructor=n}n.prototype=null===a?Object.create(a):(l.prototype=a.prototype,new l)},e=function(n){function a(t){n.call(this),this.errors=t;var l=Error.call(this,t?t.length+" errors occurred during unsubscription:\n  "+t.map(function(h,s){return s+1+") "+h.toString()}).join("\n  "):"");this.name=l.name="UnsubscriptionError",this.stack=l.stack,this.message=l.message}return i(a,n),a}(Error);x.UnsubscriptionError=e},22738:(oe,x)=>{"use strict";x.applyMixins=function i(e,n){for(var a=0,t=n.length;a<t;a++)for(var l=n[a],h=Object.getOwnPropertyNames(l.prototype),s=0,d=h.length;s<d;s++){var p=h[s];e.prototype[p]=l.prototype[p]}}},76967:(oe,x,i)=>{"use strict";var e=i(79892);function n(t){for(var l=[],h=1;h<arguments.length;h++)l[h-1]=arguments[h];for(var s=l.length,d=0;d<s;d++){var p=l[d];for(var u in p)p.hasOwnProperty(u)&&(t[u]=p[u])}return t}function a(t){return t.Object.assign||n}x.assignImpl=n,x.getAssign=a,x.assign=a(e.root)},78027:(oe,x)=>{"use strict";x.errorObject={e:{}}},81107:(oe,x)=>{"use strict";x.identity=function i(e){return e}},72001:(oe,x)=>{"use strict";x.isArray=Array.isArray||function(i){return i&&"number"==typeof i.length}},44338:(oe,x)=>{"use strict";x.isArrayLike=function(i){return i&&"number"==typeof i.length}},19952:(oe,x)=>{"use strict";x.isDate=function i(e){return e instanceof Date&&!isNaN(+e)}},63439:(oe,x)=>{"use strict";x.isFunction=function i(e){return"function"==typeof e}},54314:(oe,x,i)=>{"use strict";var e=i(72001);x.isNumeric=function n(a){return!e.isArray(a)&&a-parseFloat(a)+1>=0}},5276:(oe,x)=>{"use strict";x.isObject=function i(e){return null!=e&&"object"==typeof e}},51330:(oe,x)=>{"use strict";x.isPromise=function i(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},72276:(oe,x)=>{"use strict";x.isScheduler=function i(e){return e&&"function"==typeof e.schedule}},30007:(oe,x)=>{"use strict";x.noop=function i(){}},90712:(oe,x)=>{"use strict";x.not=function i(e,n){function a(){return!a.pred.apply(a.thisArg,arguments)}return a.pred=e,a.thisArg=n,a}},12809:(oe,x,i)=>{"use strict";var e=i(30007);function a(t){return t?1===t.length?t[0]:function(h){return t.reduce(function(s,d){return d(s)},h)}:e.noop}x.pipe=function n(){for(var t=[],l=0;l<arguments.length;l++)t[l-0]=arguments[l];return a(t)},x.pipeFromArray=a},79892:(oe,x)=>{"use strict";var i=typeof window<"u"&&window,e=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,n=typeof global<"u"&&global,a=i||n||e;x.root=a,function(){if(!a)throw new Error("RxJS could not find any global context (window, self, global)")}()},27450:(oe,x,i)=>{"use strict";var e=i(79892),n=i(44338),a=i(51330),t=i(5276),l=i(50289),h=i(82967),s=i(55648),d=i(22168);x.subscribeToResult=function p(u,g,v,y){var b=new s.InnerSubscriber(u,v,y);if(b.closed)return null;if(g instanceof l.Observable)return g._isScalar?(b.next(g.value),b.complete(),null):(b.syncErrorThrowable=!0,g.subscribe(b));if(n.isArrayLike(g)){for(var S=0,E=g.length;S<E&&!b.closed;S++)b.next(g[S]);b.closed||b.complete()}else{if(a.isPromise(g))return g.then(function(X){b.closed||(b.next(X),b.complete())},function(X){return b.error(X)}).then(null,function(X){e.root.setTimeout(function(){throw X})}),b;if(g&&"function"==typeof g[h.iterator])for(var D=g[h.iterator]();;){var A=D.next();if(A.done){b.complete();break}if(b.next(A.value),b.closed)break}else if(g&&"function"==typeof g[d.observable]){var P=g[d.observable]();if("function"==typeof P.subscribe)return P.subscribe(new s.InnerSubscriber(u,v,y));b.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var B=t.isObject(g)?"an invalid object":"'"+g+"'";b.error(new TypeError("You provided "+B+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}}return null}},28628:(oe,x,i)=>{"use strict";var e=i(62682),n=i(97031),a=i(43364);x.toSubscriber=function t(l,h,s){if(l){if(l instanceof e.Subscriber)return l;if(l[n.rxSubscriber])return l[n.rxSubscriber]()}return l||h||s?new e.Subscriber(l,h,s):new e.Subscriber(a.empty)}},66530:(oe,x,i)=>{"use strict";var n,e=i(78027);function a(){try{return n.apply(this,arguments)}catch(l){return e.errorObject.e=l,e.errorObject}}x.tryCatch=function t(l){return n=l,a}},70918:function(oe,x,i){!function(e,n,a){"use strict";var t=function s(d){d&&Object.assign(this,d)},l=function(){function s(d,p){this.el=d,this.ngZone=p,this.onAddressChange=new a.EventEmitter}return s.prototype.ngAfterViewInit=function(){this.options||(this.options=new t),this.initialize()},s.prototype.isGoogleLibExists=function(){return!(!google||!google.maps||!google.maps.places)},s.prototype.initialize=function(){var d=this;if(!this.isGoogleLibExists())throw new Error("Google maps library can not be found");if(this.autocomplete=new google.maps.places.Autocomplete(this.el.nativeElement,this.options),!this.autocomplete)throw new Error("Autocomplete is not initialized");null!=!this.autocomplete.addListener&&(this.eventListener=this.autocomplete.addListener("place_changed",function(){d.handleChangeEvent()})),this.el.nativeElement.addEventListener("keydown",function(p){p.key&&"enter"==p.key.toLowerCase()&&p.target===d.el.nativeElement&&(p.preventDefault(),p.stopPropagation())}),window&&window.navigator&&window.navigator.userAgent&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&setTimeout(function(){var p=document.getElementsByClassName("pac-container");if(p){var u=Array.from(p);if(u)for(var g=0,v=u;g<v.length;g++){var y=v[g];y&&y.addEventListener("touchend",function(b){b.stopImmediatePropagation()})}}},500)},s.prototype.reset=function(){this.autocomplete.setComponentRestrictions(this.options.componentRestrictions),this.autocomplete.setTypes(this.options.types)},s.prototype.handleChangeEvent=function(){var d=this;this.ngZone.run(function(){d.place=d.autocomplete.getPlace(),d.place&&d.onAddressChange.emit(d.place)})},s.ctorParameters=function(){return[{type:a.ElementRef},{type:a.NgZone}]},s.propDecorators={options:[{type:a.Input,args:["options"]}],onAddressChange:[{type:a.Output}]},s.\u0275fac=function(p){return new(p||s)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone))},s.\u0275dir=e.\u0275\u0275defineDirective({type:s,selectors:[["","ngx-google-places-autocomplete",""]],inputs:{options:"options"},outputs:{onAddressChange:"onAddressChange"},exportAs:["ngx-places"]}),s}(),h=function(){function s(){}return s.ctorParameters=function(){return[]},s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({}),s}();n.GooglePlaceModule=h,n.GooglePlaceDirective=l,Object.defineProperty(n,"__esModule",{value:!0})}(i(94650),x,i(94650))},44841:(oe,x,i)=>{"use strict";i.d(x,{op:()=>ot,Vv:()=>qe,$V:()=>Qe,Xd:()=>Yt});var e=i(77579),n=i(54968),a=i(56451),t=i(23601),l=i(82722),h=i(71884),s=i(69718),d=i(94650),p=i(36895);function u(it){return getComputedStyle(it)}function g(it,Be){for(var gt in Be){var ue=Be[gt];"number"==typeof ue&&(ue+="px"),it.style[gt]=ue}return it}function v(it){var Be=document.createElement("div");return Be.className=it,Be}var y=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function b(it,Be){if(!y)throw new Error("No element matching method supported");return y.call(it,Be)}function S(it){it.remove?it.remove():it.parentNode&&it.parentNode.removeChild(it)}function E(it,Be){return Array.prototype.filter.call(it.children,function(gt){return b(gt,Be)})}var D={main:"ps",rtl:"ps__rtl",element:{thumb:function(it){return"ps__thumb-"+it},rail:function(it){return"ps__rail-"+it},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(it){return"ps--active-"+it},scrolling:function(it){return"ps--scrolling-"+it}}},A={x:null,y:null};function P(it,Be){var gt=it.element.classList,ue=D.state.scrolling(Be);gt.contains(ue)?clearTimeout(A[Be]):gt.add(ue)}function B(it,Be){A[Be]=setTimeout(function(){return it.isAlive&&it.element.classList.remove(D.state.scrolling(Be))},it.settings.scrollingThreshold)}var X=function(Be){this.element=Be,this.handlers={}},re={isEmpty:{configurable:!0}};X.prototype.bind=function(Be,gt){typeof this.handlers[Be]>"u"&&(this.handlers[Be]=[]),this.handlers[Be].push(gt),this.element.addEventListener(Be,gt,!1)},X.prototype.unbind=function(Be,gt){var ue=this;this.handlers[Be]=this.handlers[Be].filter(function(Ge){return!(!gt||Ge===gt)||(ue.element.removeEventListener(Be,Ge,!1),!1)})},X.prototype.unbindAll=function(){for(var Be in this.handlers)this.unbind(Be)},re.isEmpty.get=function(){var it=this;return Object.keys(this.handlers).every(function(Be){return 0===it.handlers[Be].length})},Object.defineProperties(X.prototype,re);var Q=function(){this.eventElements=[]};function ae(it){if("function"==typeof window.CustomEvent)return new CustomEvent(it);var Be=document.createEvent("CustomEvent");return Be.initCustomEvent(it,!1,!1,void 0),Be}function K(it,Be,gt,ue,Ge){var ee;if(void 0===ue&&(ue=!0),void 0===Ge&&(Ge=!1),"top"===Be)ee=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Be)throw new Error("A proper axis should be provided");ee=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function k(it,Be,gt,ue,Ge){var ee=gt[0],De=gt[1],Ot=gt[2],cn=gt[3],Gn=gt[4],_i=gt[5];void 0===ue&&(ue=!0),void 0===Ge&&(Ge=!1);var Ni=it.element;it.reach[cn]=null,Ni[Ot]<1&&(it.reach[cn]="start"),Ni[Ot]>it[ee]-it[De]-1&&(it.reach[cn]="end"),Be&&(Ni.dispatchEvent(ae("ps-scroll-"+cn)),Be<0?Ni.dispatchEvent(ae("ps-scroll-"+Gn)):Be>0&&Ni.dispatchEvent(ae("ps-scroll-"+_i)),ue&&function V(it,Be){P(it,Be),B(it,Be)}(it,cn)),it.reach[cn]&&(Be||Ge)&&Ni.dispatchEvent(ae("ps-"+cn+"-reach-"+it.reach[cn]))}(it,gt,ee,ue,Ge)}function $(it){return parseInt(it,10)||0}Q.prototype.eventElement=function(Be){var gt=this.eventElements.filter(function(ue){return ue.element===Be})[0];return gt||(gt=new X(Be),this.eventElements.push(gt)),gt},Q.prototype.bind=function(Be,gt,ue){this.eventElement(Be).bind(gt,ue)},Q.prototype.unbind=function(Be,gt,ue){var Ge=this.eventElement(Be);Ge.unbind(gt,ue),Ge.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Ge),1)},Q.prototype.unbindAll=function(){this.eventElements.forEach(function(Be){return Be.unbindAll()}),this.eventElements=[]},Q.prototype.once=function(Be,gt,ue){var Ge=this.eventElement(Be),ee=function(De){Ge.unbind(gt,ee),ue(De)};Ge.bind(gt,ee)};var U={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function le(it){var Be=it.element,gt=Math.floor(Be.scrollTop),ue=Be.getBoundingClientRect();it.containerWidth=Math.ceil(ue.width),it.containerHeight=Math.ceil(ue.height),it.contentWidth=Be.scrollWidth,it.contentHeight=Be.scrollHeight,Be.contains(it.scrollbarXRail)||(E(Be,D.element.rail("x")).forEach(function(Ge){return S(Ge)}),Be.appendChild(it.scrollbarXRail)),Be.contains(it.scrollbarYRail)||(E(Be,D.element.rail("y")).forEach(function(Ge){return S(Ge)}),Be.appendChild(it.scrollbarYRail)),!it.settings.suppressScrollX&&it.containerWidth+it.settings.scrollXMarginOffset<it.contentWidth?(it.scrollbarXActive=!0,it.railXWidth=it.containerWidth-it.railXMarginWidth,it.railXRatio=it.containerWidth/it.railXWidth,it.scrollbarXWidth=T(it,$(it.railXWidth*it.containerWidth/it.contentWidth)),it.scrollbarXLeft=$((it.negativeScrollAdjustment+Be.scrollLeft)*(it.railXWidth-it.scrollbarXWidth)/(it.contentWidth-it.containerWidth))):it.scrollbarXActive=!1,!it.settings.suppressScrollY&&it.containerHeight+it.settings.scrollYMarginOffset<it.contentHeight?(it.scrollbarYActive=!0,it.railYHeight=it.containerHeight-it.railYMarginHeight,it.railYRatio=it.containerHeight/it.railYHeight,it.scrollbarYHeight=T(it,$(it.railYHeight*it.containerHeight/it.contentHeight)),it.scrollbarYTop=$(gt*(it.railYHeight-it.scrollbarYHeight)/(it.contentHeight-it.containerHeight))):it.scrollbarYActive=!1,it.scrollbarXLeft>=it.railXWidth-it.scrollbarXWidth&&(it.scrollbarXLeft=it.railXWidth-it.scrollbarXWidth),it.scrollbarYTop>=it.railYHeight-it.scrollbarYHeight&&(it.scrollbarYTop=it.railYHeight-it.scrollbarYHeight),function H(it,Be){var gt={width:Be.railXWidth},ue=Math.floor(it.scrollTop);gt.left=Be.isRtl?Be.negativeScrollAdjustment+it.scrollLeft+Be.containerWidth-Be.contentWidth:it.scrollLeft,Be.isScrollbarXUsingBottom?gt.bottom=Be.scrollbarXBottom-ue:gt.top=Be.scrollbarXTop+ue,g(Be.scrollbarXRail,gt);var Ge={top:ue,height:Be.railYHeight};Be.isScrollbarYUsingRight?Ge.right=Be.isRtl?Be.contentWidth-(Be.negativeScrollAdjustment+it.scrollLeft)-Be.scrollbarYRight-Be.scrollbarYOuterWidth-9:Be.scrollbarYRight-it.scrollLeft:Ge.left=Be.isRtl?Be.negativeScrollAdjustment+it.scrollLeft+2*Be.containerWidth-Be.contentWidth-Be.scrollbarYLeft-Be.scrollbarYOuterWidth:Be.scrollbarYLeft+it.scrollLeft,g(Be.scrollbarYRail,Ge),g(Be.scrollbarX,{left:Be.scrollbarXLeft,width:Be.scrollbarXWidth-Be.railBorderXWidth}),g(Be.scrollbarY,{top:Be.scrollbarYTop,height:Be.scrollbarYHeight-Be.railBorderYWidth})}(Be,it),it.scrollbarXActive?Be.classList.add(D.state.active("x")):(Be.classList.remove(D.state.active("x")),it.scrollbarXWidth=0,it.scrollbarXLeft=0,Be.scrollLeft=!0===it.isRtl?it.contentWidth:0),it.scrollbarYActive?Be.classList.add(D.state.active("y")):(Be.classList.remove(D.state.active("y")),it.scrollbarYHeight=0,it.scrollbarYTop=0,Be.scrollTop=0)}function T(it,Be){return it.settings.minScrollbarLength&&(Be=Math.max(Be,it.settings.minScrollbarLength)),it.settings.maxScrollbarLength&&(Be=Math.min(Be,it.settings.maxScrollbarLength)),Be}function de(it,Be){var gt=Be[0],ue=Be[1],Ge=Be[2],ee=Be[3],De=Be[4],Ot=Be[5],cn=Be[6],Gn=Be[7],_i=Be[8],Ni=it.element,Nn=null,Mn=null,On=null;function Qn(un){un.touches&&un.touches[0]&&(un[Ge]=un.touches[0].pageY),Ni[cn]=Nn+On*(un[Ge]-Mn),P(it,Gn),le(it),un.stopPropagation(),un.preventDefault()}function Ti(){B(it,Gn),it[_i].classList.remove(D.state.clicking),it.event.unbind(it.ownerDocument,"mousemove",Qn)}function Si(un,rn){Nn=Ni[cn],rn&&un.touches&&(un[Ge]=un.touches[0].pageY),Mn=un[Ge],On=(it[ue]-it[gt])/(it[ee]-it[Ot]),rn?it.event.bind(it.ownerDocument,"touchmove",Qn):(it.event.bind(it.ownerDocument,"mousemove",Qn),it.event.once(it.ownerDocument,"mouseup",Ti),un.preventDefault()),it[_i].classList.add(D.state.clicking),un.stopPropagation()}it.event.bind(it[De],"mousedown",function(un){Si(un)}),it.event.bind(it[De],"touchstart",function(un){Si(un,!0)})}var Ee={"click-rail":function N(it){it.event.bind(it.scrollbarY,"mousedown",function(gt){return gt.stopPropagation()}),it.event.bind(it.scrollbarYRail,"mousedown",function(gt){var ue=gt.pageY-window.pageYOffset-it.scrollbarYRail.getBoundingClientRect().top;it.element.scrollTop+=(ue>it.scrollbarYTop?1:-1)*it.containerHeight,le(it),gt.stopPropagation()}),it.event.bind(it.scrollbarX,"mousedown",function(gt){return gt.stopPropagation()}),it.event.bind(it.scrollbarXRail,"mousedown",function(gt){var ue=gt.pageX-window.pageXOffset-it.scrollbarXRail.getBoundingClientRect().left;it.element.scrollLeft+=(ue>it.scrollbarXLeft?1:-1)*it.containerWidth,le(it),gt.stopPropagation()})},"drag-thumb":function pe(it){de(it,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),de(it,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function me(it){var Be=it.element;it.event.bind(it.ownerDocument,"keydown",function(ee){if(!(ee.isDefaultPrevented&&ee.isDefaultPrevented()||ee.defaultPrevented)&&(b(Be,":hover")||b(it.scrollbarX,":focus")||b(it.scrollbarY,":focus"))){var De=document.activeElement?document.activeElement:it.ownerDocument.activeElement;if(De){if("IFRAME"===De.tagName)De=De.contentDocument.activeElement;else for(;De.shadowRoot;)De=De.shadowRoot.activeElement;if(function j(it){return b(it,"input,[contenteditable]")||b(it,"select,[contenteditable]")||b(it,"textarea,[contenteditable]")||b(it,"button,[contenteditable]")}(De))return}var Ot=0,cn=0;switch(ee.which){case 37:Ot=ee.metaKey?-it.contentWidth:ee.altKey?-it.containerWidth:-30;break;case 38:cn=ee.metaKey?it.contentHeight:ee.altKey?it.containerHeight:30;break;case 39:Ot=ee.metaKey?it.contentWidth:ee.altKey?it.containerWidth:30;break;case 40:cn=ee.metaKey?-it.contentHeight:ee.altKey?-it.containerHeight:-30;break;case 32:cn=ee.shiftKey?it.containerHeight:-it.containerHeight;break;case 33:cn=it.containerHeight;break;case 34:cn=-it.containerHeight;break;case 36:cn=it.contentHeight;break;case 35:cn=-it.contentHeight;break;default:return}it.settings.suppressScrollX&&0!==Ot||it.settings.suppressScrollY&&0!==cn||(Be.scrollTop-=cn,Be.scrollLeft+=Ot,le(it),function Ge(ee,De){var Ot=Math.floor(Be.scrollTop);if(0===ee){if(!it.scrollbarYActive)return!1;if(0===Ot&&De>0||Ot>=it.contentHeight-it.containerHeight&&De<0)return!it.settings.wheelPropagation}var cn=Be.scrollLeft;if(0===De){if(!it.scrollbarXActive)return!1;if(0===cn&&ee<0||cn>=it.contentWidth-it.containerWidth&&ee>0)return!it.settings.wheelPropagation}return!0}(Ot,cn)&&ee.preventDefault())}})},wheel:function q(it){var Be=it.element;function ee(De){var Ot=function ue(De){var Ot=De.deltaX,cn=-1*De.deltaY;return(typeof Ot>"u"||typeof cn>"u")&&(Ot=-1*De.wheelDeltaX/6,cn=De.wheelDeltaY/6),De.deltaMode&&1===De.deltaMode&&(Ot*=10,cn*=10),Ot!=Ot&&cn!=cn&&(Ot=0,cn=De.wheelDelta),De.shiftKey?[-cn,-Ot]:[Ot,cn]}(De),cn=Ot[0],Gn=Ot[1];if(!function Ge(De,Ot,cn){if(!U.isWebKit&&Be.querySelector("select:focus"))return!0;if(!Be.contains(De))return!1;for(var Gn=De;Gn&&Gn!==Be;){if(Gn.classList.contains(D.element.consuming))return!0;var _i=u(Gn);if(cn&&_i.overflowY.match(/(scroll|auto)/)){var Ni=Gn.scrollHeight-Gn.clientHeight;if(Ni>0&&(Gn.scrollTop>0&&cn<0||Gn.scrollTop<Ni&&cn>0))return!0}if(Ot&&_i.overflowX.match(/(scroll|auto)/)){var Nn=Gn.scrollWidth-Gn.clientWidth;if(Nn>0&&(Gn.scrollLeft>0&&Ot<0||Gn.scrollLeft<Nn&&Ot>0))return!0}Gn=Gn.parentNode}return!1}(De.target,cn,Gn)){var _i=!1;it.settings.useBothWheelAxes?it.scrollbarYActive&&!it.scrollbarXActive?(Gn?Be.scrollTop-=Gn*it.settings.wheelSpeed:Be.scrollTop+=cn*it.settings.wheelSpeed,_i=!0):it.scrollbarXActive&&!it.scrollbarYActive&&(cn?Be.scrollLeft+=cn*it.settings.wheelSpeed:Be.scrollLeft-=Gn*it.settings.wheelSpeed,_i=!0):(Be.scrollTop-=Gn*it.settings.wheelSpeed,Be.scrollLeft+=cn*it.settings.wheelSpeed),le(it),_i=_i||function gt(De,Ot){var cn=Math.floor(Be.scrollTop),Gn=0===Be.scrollTop,_i=cn+Be.offsetHeight===Be.scrollHeight,Ni=0===Be.scrollLeft,Nn=Be.scrollLeft+Be.offsetWidth===Be.scrollWidth;return!(Math.abs(Ot)>Math.abs(De)?Gn||_i:Ni||Nn)||!it.settings.wheelPropagation}(cn,Gn),_i&&!De.ctrlKey&&(De.stopPropagation(),De.preventDefault())}}typeof window.onwheel<"u"?it.event.bind(Be,"wheel",ee):typeof window.onmousewheel<"u"&&it.event.bind(Be,"mousewheel",ee)},touch:function se(it){if(U.supportsTouch||U.supportsIePointer){var Be=it.element,Ge={},ee=0,De={},Ot=null;U.supportsTouch?(it.event.bind(Be,"touchstart",_i),it.event.bind(Be,"touchmove",Nn),it.event.bind(Be,"touchend",Mn)):U.supportsIePointer&&(window.PointerEvent?(it.event.bind(Be,"pointerdown",_i),it.event.bind(Be,"pointermove",Nn),it.event.bind(Be,"pointerup",Mn)):window.MSPointerEvent&&(it.event.bind(Be,"MSPointerDown",_i),it.event.bind(Be,"MSPointerMove",Nn),it.event.bind(Be,"MSPointerUp",Mn)))}function ue(On,Qn){Be.scrollTop-=Qn,Be.scrollLeft-=On,le(it)}function cn(On){return On.targetTouches?On.targetTouches[0]:On}function Gn(On){return!(On.pointerType&&"pen"===On.pointerType&&0===On.buttons||!(On.targetTouches&&1===On.targetTouches.length||On.pointerType&&"mouse"!==On.pointerType&&On.pointerType!==On.MSPOINTER_TYPE_MOUSE))}function _i(On){if(Gn(On)){var Qn=cn(On);Ge.pageX=Qn.pageX,Ge.pageY=Qn.pageY,ee=(new Date).getTime(),null!==Ot&&clearInterval(Ot)}}function Nn(On){if(Gn(On)){var Qn=cn(On),Ti={pageX:Qn.pageX,pageY:Qn.pageY},Si=Ti.pageX-Ge.pageX,un=Ti.pageY-Ge.pageY;if(function Ni(On,Qn,Ti){if(!Be.contains(On))return!1;for(var Si=On;Si&&Si!==Be;){if(Si.classList.contains(D.element.consuming))return!0;var un=u(Si);if(Ti&&un.overflowY.match(/(scroll|auto)/)){var rn=Si.scrollHeight-Si.clientHeight;if(rn>0&&(Si.scrollTop>0&&Ti<0||Si.scrollTop<rn&&Ti>0))return!0}if(Qn&&un.overflowX.match(/(scroll|auto)/)){var $t=Si.scrollWidth-Si.clientWidth;if($t>0&&(Si.scrollLeft>0&&Qn<0||Si.scrollLeft<$t&&Qn>0))return!0}Si=Si.parentNode}return!1}(On.target,Si,un))return;ue(Si,un),Ge=Ti;var rn=(new Date).getTime(),$t=rn-ee;$t>0&&(De.x=Si/$t,De.y=un/$t,ee=rn),function gt(On,Qn){var Ti=Math.floor(Be.scrollTop),Si=Be.scrollLeft,un=Math.abs(On),rn=Math.abs(Qn);if(rn>un){if(Qn<0&&Ti===it.contentHeight-it.containerHeight||Qn>0&&0===Ti)return 0===window.scrollY&&Qn>0&&U.isChrome}else if(un>rn&&(On<0&&Si===it.contentWidth-it.containerWidth||On>0&&0===Si))return!0;return!0}(Si,un)&&On.preventDefault()}}function Mn(){it.settings.swipeEasing&&(clearInterval(Ot),Ot=setInterval(function(){it.isInitialized?clearInterval(Ot):De.x||De.y?Math.abs(De.x)<.01&&Math.abs(De.y)<.01?clearInterval(Ot):(ue(30*De.x,30*De.y),De.x*=.8,De.y*=.8):clearInterval(Ot)},10))}}},Ye=function(Be,gt){var ue=this;if(void 0===gt&&(gt={}),"string"==typeof Be&&(Be=document.querySelector(Be)),!Be||!Be.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Ge in this.element=Be,Be.classList.add(D.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},gt)this.settings[Ge]=gt[Ge];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var _i,Gn,ee=function(){return Be.classList.add(D.state.focus)},De=function(){return Be.classList.remove(D.state.focus)};this.isRtl="rtl"===u(Be).direction,!0===this.isRtl&&Be.classList.add(D.rtl),this.isNegativeScroll=(Gn=Be.scrollLeft,Be.scrollLeft=-1,_i=Be.scrollLeft<0,Be.scrollLeft=Gn,_i),this.negativeScrollAdjustment=this.isNegativeScroll?Be.scrollWidth-Be.clientWidth:0,this.event=new Q,this.ownerDocument=Be.ownerDocument||document,this.scrollbarXRail=v(D.element.rail("x")),Be.appendChild(this.scrollbarXRail),this.scrollbarX=v(D.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",ee),this.event.bind(this.scrollbarX,"blur",De),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Ot=u(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Ot.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=$(Ot.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=$(Ot.borderLeftWidth)+$(Ot.borderRightWidth),g(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=$(Ot.marginLeft)+$(Ot.marginRight),g(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=v(D.element.rail("y")),Be.appendChild(this.scrollbarYRail),this.scrollbarY=v(D.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",ee),this.event.bind(this.scrollbarY,"blur",De),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var cn=u(this.scrollbarYRail);this.scrollbarYRight=parseInt(cn.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=$(cn.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function R(it){var Be=u(it);return $(Be.width)+$(Be.paddingLeft)+$(Be.paddingRight)+$(Be.borderLeftWidth)+$(Be.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=$(cn.borderTopWidth)+$(cn.borderBottomWidth),g(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=$(cn.marginTop)+$(cn.marginBottom),g(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Be.scrollLeft<=0?"start":Be.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Be.scrollTop<=0?"start":Be.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Gn){return Ee[Gn](ue)}),this.lastScrollTop=Math.floor(Be.scrollTop),this.lastScrollLeft=Be.scrollLeft,this.event.bind(this.element,"scroll",function(Gn){return ue.onScroll(Gn)}),le(this)};Ye.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,g(this.scrollbarXRail,{display:"block"}),g(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=$(u(this.scrollbarXRail).marginLeft)+$(u(this.scrollbarXRail).marginRight),this.railYMarginHeight=$(u(this.scrollbarYRail).marginTop)+$(u(this.scrollbarYRail).marginBottom),g(this.scrollbarXRail,{display:"none"}),g(this.scrollbarYRail,{display:"none"}),le(this),K(this,"top",0,!1,!0),K(this,"left",0,!1,!0),g(this.scrollbarXRail,{display:""}),g(this.scrollbarYRail,{display:""}))},Ye.prototype.onScroll=function(Be){this.isAlive&&(le(this),K(this,"top",this.element.scrollTop-this.lastScrollTop),K(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ye.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),S(this.scrollbarX),S(this.scrollbarY),S(this.scrollbarXRail),S(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ye.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Be){return!Be.match(/^ps([-_].+|)$/)}).join(" ")};const wt=Ye;var Wt=function(){if(typeof Map<"u")return Map;function it(Be,gt){var ue=-1;return Be.some(function(Ge,ee){return Ge[0]===gt&&(ue=ee,!0)}),ue}return function(){function Be(){this.__entries__=[]}return Object.defineProperty(Be.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Be.prototype.get=function(gt){var ue=it(this.__entries__,gt),Ge=this.__entries__[ue];return Ge&&Ge[1]},Be.prototype.set=function(gt,ue){var Ge=it(this.__entries__,gt);~Ge?this.__entries__[Ge][1]=ue:this.__entries__.push([gt,ue])},Be.prototype.delete=function(gt){var ue=this.__entries__,Ge=it(ue,gt);~Ge&&ue.splice(Ge,1)},Be.prototype.has=function(gt){return!!~it(this.__entries__,gt)},Be.prototype.clear=function(){this.__entries__.splice(0)},Be.prototype.forEach=function(gt,ue){void 0===ue&&(ue=null);for(var Ge=0,ee=this.__entries__;Ge<ee.length;Ge++){var De=ee[Ge];gt.call(ue,De[1],De[0])}},Be}()}(),Ut=typeof window<"u"&&typeof document<"u"&&window.document===document,nt=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Zt="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(nt):function(it){return setTimeout(function(){return it(Date.now())},1e3/60)},Fe=2,ie=20,Ce=["top","right","bottom","left","width","height","size","weight"],Ie=typeof MutationObserver<"u",dt=function(){function it(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function yt(it,Be){var gt=!1,ue=!1,Ge=0;function ee(){gt&&(gt=!1,it()),ue&&Ot()}function De(){Zt(ee)}function Ot(){var cn=Date.now();if(gt){if(cn-Ge<Fe)return;ue=!0}else gt=!0,ue=!1,setTimeout(De,Be);Ge=cn}return Ot}(this.refresh.bind(this),ie)}return it.prototype.addObserver=function(Be){~this.observers_.indexOf(Be)||this.observers_.push(Be),this.connected_||this.connect_()},it.prototype.removeObserver=function(Be){var gt=this.observers_,ue=gt.indexOf(Be);~ue&&gt.splice(ue,1),!gt.length&&this.connected_&&this.disconnect_()},it.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},it.prototype.updateObservers_=function(){var Be=this.observers_.filter(function(gt){return gt.gatherActive(),gt.hasActive()});return Be.forEach(function(gt){return gt.broadcastActive()}),Be.length>0},it.prototype.connect_=function(){!Ut||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ie?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},it.prototype.disconnect_=function(){!Ut||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},it.prototype.onTransitionEnd_=function(Be){var gt=Be.propertyName,ue=void 0===gt?"":gt;Ce.some(function(ee){return!!~ue.indexOf(ee)})&&this.refresh()},it.getInstance=function(){return this.instance_||(this.instance_=new it),this.instance_},it.instance_=null,it}(),Mt=function(it,Be){for(var gt=0,ue=Object.keys(Be);gt<ue.length;gt++){var Ge=ue[gt];Object.defineProperty(it,Ge,{value:Be[Ge],enumerable:!1,writable:!1,configurable:!0})}return it},Xt=function(it){return it&&it.ownerDocument&&it.ownerDocument.defaultView||nt},en=mt(0,0,0,0);function vt(it){return parseFloat(it)||0}function xt(it){for(var Be=[],gt=1;gt<arguments.length;gt++)Be[gt-1]=arguments[gt];return Be.reduce(function(ue,Ge){return ue+vt(it["border-"+Ge+"-width"])},0)}var $e=typeof SVGGraphicsElement<"u"?function(it){return it instanceof Xt(it).SVGGraphicsElement}:function(it){return it instanceof Xt(it).SVGElement&&"function"==typeof it.getBBox};function Pe(it){return Ut?$e(it)?function bt(it){var Be=it.getBBox();return mt(0,0,Be.width,Be.height)}(it):function At(it){var Be=it.clientWidth,gt=it.clientHeight;if(!Be&&!gt)return en;var ue=Xt(it).getComputedStyle(it),Ge=function zt(it){for(var gt={},ue=0,Ge=["top","right","bottom","left"];ue<Ge.length;ue++){var ee=Ge[ue];gt[ee]=vt(it["padding-"+ee])}return gt}(ue),ee=Ge.left+Ge.right,De=Ge.top+Ge.bottom,Ot=vt(ue.width),cn=vt(ue.height);if("border-box"===ue.boxSizing&&(Math.round(Ot+ee)!==Be&&(Ot-=xt(ue,"left","right")+ee),Math.round(cn+De)!==gt&&(cn-=xt(ue,"top","bottom")+De)),!function Xe(it){return it===Xt(it).document.documentElement}(it)){var Gn=Math.round(Ot+ee)-Be,_i=Math.round(cn+De)-gt;1!==Math.abs(Gn)&&(Ot-=Gn),1!==Math.abs(_i)&&(cn-=_i)}return mt(Ge.left,Ge.top,Ot,cn)}(it):en}function mt(it,Be,gt,ue){return{x:it,y:Be,width:gt,height:ue}}var It=function(){function it(Be){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=mt(0,0,0,0),this.target=Be}return it.prototype.isActive=function(){var Be=Pe(this.target);return this.contentRect_=Be,Be.width!==this.broadcastWidth||Be.height!==this.broadcastHeight},it.prototype.broadcastRect=function(){var Be=this.contentRect_;return this.broadcastWidth=Be.width,this.broadcastHeight=Be.height,Be},it}(),xn=function it(Be,gt){var ue=function Ve(it){var Be=it.x,gt=it.y,ue=it.width,Ge=it.height,ee=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,De=Object.create(ee.prototype);return Mt(De,{x:Be,y:gt,width:ue,height:Ge,top:gt,right:Be+ue,bottom:Ge+gt,left:Be}),De}(gt);Mt(this,{target:Be,contentRect:ue})},_n=function(){function it(Be,gt,ue){if(this.activeObservations_=[],this.observations_=new Wt,"function"!=typeof Be)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Be,this.controller_=gt,this.callbackCtx_=ue}return it.prototype.observe=function(Be){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(Be instanceof Xt(Be).Element))throw new TypeError('parameter 1 is not of type "Element".');var gt=this.observations_;gt.has(Be)||(gt.set(Be,new It(Be)),this.controller_.addObserver(this),this.controller_.refresh())}},it.prototype.unobserve=function(Be){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(Be instanceof Xt(Be).Element))throw new TypeError('parameter 1 is not of type "Element".');var gt=this.observations_;gt.has(Be)&&(gt.delete(Be),gt.size||this.controller_.removeObserver(this))}},it.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},it.prototype.gatherActive=function(){var Be=this;this.clearActive(),this.observations_.forEach(function(gt){gt.isActive()&&Be.activeObservations_.push(gt)})},it.prototype.broadcastActive=function(){if(this.hasActive()){var Be=this.callbackCtx_,gt=this.activeObservations_.map(function(ue){return new xn(ue.target,ue.broadcastRect())});this.callback_.call(Be,gt,Be),this.clearActive()}},it.prototype.clearActive=function(){this.activeObservations_.splice(0)},it.prototype.hasActive=function(){return this.activeObservations_.length>0},it}(),Jt=typeof WeakMap<"u"?new WeakMap:new Wt,ke=function it(Be){if(!(this instanceof it))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var gt=dt.getInstance(),ue=new _n(Be,gt,this);Jt.set(this,ue)};["observe","unobserve","disconnect"].forEach(function(it){ke.prototype[it]=function(){var Be;return(Be=Jt.get(this))[it].apply(Be,arguments)}});const ze=typeof nt.ResizeObserver<"u"?nt.ResizeObserver:ke;function pt(it,Be){if(1&it&&(d.\u0275\u0275elementStart(0,"div",3),d.\u0275\u0275element(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),d.\u0275\u0275elementEnd()),2&it){const gt=d.\u0275\u0275nextContext();d.\u0275\u0275classProp("ps-at-top",gt.states.top)("ps-at-left",gt.states.left)("ps-at-right",gt.states.right)("ps-at-bottom",gt.states.bottom),d.\u0275\u0275advance(1),d.\u0275\u0275classProp("ps-indicator-show",gt.indicatorY&&gt.interaction),d.\u0275\u0275advance(1),d.\u0275\u0275classProp("ps-indicator-show",gt.indicatorX&&gt.interaction),d.\u0275\u0275advance(1),d.\u0275\u0275classProp("ps-indicator-show",gt.indicatorX&&gt.interaction),d.\u0275\u0275advance(1),d.\u0275\u0275classProp("ps-indicator-show",gt.indicatorY&&gt.interaction)}}const tn=["*"],ot=new d.InjectionToken("PERFECT_SCROLLBAR_CONFIG");class Et{constructor(Be,gt,ue,Ge){this.x=Be,this.y=gt,this.w=ue,this.h=Ge}}class z{constructor(Be,gt){this.x=Be,this.y=gt}}const Z=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class ge{constructor(Be={}){this.assign(Be)}assign(Be={}){for(const gt in Be)this[gt]=Be[gt]}}let Qe=(()=>{class it{constructor(gt,ue,Ge,ee,De){this.zone=gt,this.differs=ue,this.elementRef=Ge,this.platformId=ee,this.defaults=De,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new e.x,this.disabled=!1,this.psScrollY=new d.EventEmitter,this.psScrollX=new d.EventEmitter,this.psScrollUp=new d.EventEmitter,this.psScrollDown=new d.EventEmitter,this.psScrollLeft=new d.EventEmitter,this.psScrollRight=new d.EventEmitter,this.psYReachEnd=new d.EventEmitter,this.psYReachStart=new d.EventEmitter,this.psXReachEnd=new d.EventEmitter,this.psXReachStart=new d.EventEmitter}ngOnInit(){if(!this.disabled&&(0,p.isPlatformBrowser)(this.platformId)){const gt=new ge(this.defaults);gt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new wt(this.elementRef.nativeElement,gt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new ze(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{Z.forEach(ue=>{const Ge=ue.replace(/([A-Z])/g,ee=>`-${ee.toLowerCase()}`);(0,n.R)(this.elementRef.nativeElement,Ge).pipe((0,t.e)(20),(0,l.R)(this.ngDestroy)).subscribe(ee=>{this[ue].emit(ee)})})})}}ngOnDestroy(){(0,p.isPlatformBrowser)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,p.isPlatformBrowser)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(gt){gt.disabled&&!gt.disabled.isFirstChange()&&(0,p.isPlatformBrowser)(this.platformId)&&gt.disabled.currentValue!==gt.disabled.previousValue&&(!0===gt.disabled.currentValue?this.ngOnDestroy():!1===gt.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch{}},0))}geometry(gt="scroll"){return new Et(this.elementRef.nativeElement[gt+"Left"],this.elementRef.nativeElement[gt+"Top"],this.elementRef.nativeElement[gt+"Width"],this.elementRef.nativeElement[gt+"Height"])}position(gt=!1){return!gt&&this.instance?new z(this.instance.reach.x||0,this.instance.reach.y||0):new z(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(gt="any"){const ue=this.elementRef.nativeElement;return"any"===gt?ue.classList.contains("ps--active-x")||ue.classList.contains("ps--active-y"):"both"===gt?ue.classList.contains("ps--active-x")&&ue.classList.contains("ps--active-y"):ue.classList.contains("ps--active-"+gt)}scrollTo(gt,ue,Ge){this.disabled||(null==ue&&null==Ge?this.animateScrolling("scrollTop",gt,Ge):(null!=gt&&this.animateScrolling("scrollLeft",gt,Ge),null!=ue&&this.animateScrolling("scrollTop",ue,Ge)))}scrollToX(gt,ue){this.animateScrolling("scrollLeft",gt,ue)}scrollToY(gt,ue){this.animateScrolling("scrollTop",gt,ue)}scrollToTop(gt,ue){this.animateScrolling("scrollTop",gt||0,ue)}scrollToLeft(gt,ue){this.animateScrolling("scrollLeft",gt||0,ue)}scrollToRight(gt,ue){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(gt||0),ue)}scrollToBottom(gt,ue){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(gt||0),ue)}scrollToElement(gt,ue,Ge){if("string"==typeof gt&&(gt=this.elementRef.nativeElement.querySelector(gt)),gt){const ee=gt.getBoundingClientRect(),De=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",ee.left-De.left+this.elementRef.nativeElement.scrollLeft+(ue||0),Ge),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",ee.top-De.top+this.elementRef.nativeElement.scrollTop+(ue||0),Ge)}}animateScrolling(gt,ue,Ge){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!Ge||typeof window>"u")this.elementRef.nativeElement[gt]=ue;else if(ue!==this.elementRef.nativeElement[gt]){let ee=0,De=0,Ot=performance.now(),cn=this.elementRef.nativeElement[gt];const Gn=(cn-ue)/2,_i=Ni=>{De+=Math.PI/(Ge/(Ni-Ot)),ee=Math.round(ue+Gn+Gn*Math.cos(De)),this.elementRef.nativeElement[gt]===cn&&(De>=Math.PI?this.animateScrolling(gt,ue,0):(this.elementRef.nativeElement[gt]=ee,cn=this.elementRef.nativeElement[gt],Ot=Ni,this.animation=window.requestAnimationFrame(_i)))};window.requestAnimationFrame(_i)}}}return it.\u0275fac=function(gt){return new(gt||it)(d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(d.KeyValueDiffers),d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.PLATFORM_ID),d.\u0275\u0275directiveInject(ot,8))},it.\u0275dir=d.\u0275\u0275defineDirective({type:it,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[d.\u0275\u0275NgOnChangesFeature]}),it})(),qe=(()=>{class it{constructor(gt,ue,Ge){this.zone=gt,this.cdRef=ue,this.platformId=Ge,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new e.x,this.stateUpdate=new e.x,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new d.EventEmitter,this.psScrollX=new d.EventEmitter,this.psScrollUp=new d.EventEmitter,this.psScrollDown=new d.EventEmitter,this.psScrollLeft=new d.EventEmitter,this.psScrollRight=new d.EventEmitter,this.psYReachEnd=new d.EventEmitter,this.psYReachStart=new d.EventEmitter,this.psXReachEnd=new d.EventEmitter,this.psXReachStart=new d.EventEmitter}ngOnInit(){(0,p.isPlatformBrowser)(this.platformId)&&(this.stateUpdate.pipe((0,l.R)(this.ngDestroy),(0,h.x)((gt,ue)=>gt===ue&&!this.stateTimeout)).subscribe(gt=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===gt||"y"===gt?(this.interaction=!1,"x"===gt?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===gt&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===gt||"right"===gt?(this.states.left=!1,this.states.right=!1,this.states[gt]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===gt||"bottom"===gt)&&(this.states.top=!1,this.states.bottom=!1,this.states[gt]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const gt=this.directiveRef.elementRef.nativeElement;(0,n.R)(gt,"wheel").pipe((0,l.R)(this.ngDestroy)).subscribe(ue=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(ue,ue.deltaX,ue.deltaY)}),(0,n.R)(gt,"touchmove").pipe((0,l.R)(this.ngDestroy)).subscribe(ue=>{if(!this.disabled&&this.autoPropagation){const Ge=ue.touches[0].clientX,ee=ue.touches[0].clientY;this.checkPropagation(ue,Ge-this.scrollPositionX,ee-this.scrollPositionY),this.scrollPositionX=Ge,this.scrollPositionY=ee}}),(0,a.T)((0,n.R)(gt,"ps-scroll-x").pipe((0,s.h)("x")),(0,n.R)(gt,"ps-scroll-y").pipe((0,s.h)("y")),(0,n.R)(gt,"ps-x-reach-end").pipe((0,s.h)("right")),(0,n.R)(gt,"ps-y-reach-end").pipe((0,s.h)("bottom")),(0,n.R)(gt,"ps-x-reach-start").pipe((0,s.h)("left")),(0,n.R)(gt,"ps-y-reach-start").pipe((0,s.h)("top"))).pipe((0,l.R)(this.ngDestroy)).subscribe(ue=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(ue)})}}),window.setTimeout(()=>{Z.forEach(gt=>{this.directiveRef&&(this.directiveRef[gt]=this[gt])})},0))}ngOnDestroy(){(0,p.isPlatformBrowser)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,p.isPlatformBrowser)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const gt=this.directiveRef.elementRef.nativeElement;this.usePropagationX=gt.classList.contains("ps--active-x"),this.usePropagationY=gt.classList.contains("ps--active-y")}}checkPropagation(gt,ue,Ge){this.interaction=!0;const ee=ue<0?-1:1,De=Ge<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==ee)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==De))&&(gt.preventDefault(),gt.stopPropagation()),ue&&(this.scrollDirectionX=ee),Ge&&(this.scrollDirectionY=De),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return it.\u0275fac=function(gt){return new(gt||it)(d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(d.PLATFORM_ID))},it.\u0275cmp=d.\u0275\u0275defineComponent({type:it,selectors:[["perfect-scrollbar"]],viewQuery:function(gt,ue){if(1&gt&&d.\u0275\u0275viewQuery(Qe,7),2&gt){let Ge;d.\u0275\u0275queryRefresh(Ge=d.\u0275\u0275loadQuery())&&(ue.directiveRef=Ge.first)}},hostVars:4,hostBindings:function(gt,ue){2&gt&&d.\u0275\u0275classProp("ps-show-limits",ue.autoPropagation)("ps-show-active",ue.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:tn,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(gt,ue){1&gt&&(d.\u0275\u0275projectionDef(),d.\u0275\u0275elementStart(0,"div",0)(1,"div",1),d.\u0275\u0275projection(2),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(3,pt,5,16,"div",2),d.\u0275\u0275elementEnd()),2&gt&&(d.\u0275\u0275classProp("ps",ue.usePSClass),d.\u0275\u0275property("perfectScrollbar",ue.config)("disabled",ue.disabled),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngIf",ue.scrollIndicators))},dependencies:[p.NgIf,Qe],styles:["perfect-scrollbar{display:block;height:100%;max-height:100%;max-width:100%;overflow:hidden;position:relative;width:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-height:0;min-width:0}perfect-scrollbar[fxflex]>.ps{-webkit-box-flex:1;flex:1 1 auto;height:auto;min-height:0;min-width:0;width:auto}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit;align-content:inherit;align-items:inherit;display:flex;flex:1 1 auto;flex-direction:inherit;height:100%;justify-content:inherit;width:100%},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{display:block;height:100%;max-height:100%;max-width:100%;position:static;width:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{bottom:0;display:block;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{opacity:0;position:absolute;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-height:24px;min-width:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{min-height:100%;min-width:24px;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{cursor:default;left:auto!important;right:0!important;top:0!important;transition:width .2s linear,opacity .2s linear,background-color .2s linear;width:10px}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{bottom:0!important;cursor:default;height:10px;left:0!important;top:auto!important;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{background-color:#eee;opacity:.9}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{-ms-overflow-style:none;-ms-touch-action:auto;overflow:hidden!important;overflow-anchor:none;touch-action:auto}.ps__rail-x{bottom:0;height:15px}.ps__rail-x,.ps__rail-y{-webkit-transition:background-color .2s linear,opacity .2s linear;display:none;opacity:0;position:absolute;transition:background-color .2s linear,opacity .2s linear}.ps__rail-y{right:0;width:15px}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{background-color:transparent;display:block}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{-webkit-transition:background-color .2s linear,height .2s ease-in-out;bottom:2px;height:6px;transition:background-color .2s linear,height .2s ease-in-out}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{-webkit-transition:background-color .2s linear,width .2s ease-in-out;right:2px;transition:background-color .2s linear,width .2s ease-in-out;width:6px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}"],encapsulation:2}),it})(),Yt=(()=>{class it{}return it.\u0275fac=function(gt){return new(gt||it)},it.\u0275mod=d.\u0275\u0275defineNgModule({type:it}),it.\u0275inj=d.\u0275\u0275defineInjector({imports:[p.CommonModule,p.CommonModule]}),it})()},84855:(oe,x,i)=>{"use strict";i.d(x,{Tl:()=>u,kz:()=>v,nF:()=>g});var e=i(94650),n=i(36895),a=i(44298),l=["swiperSlides"],h=["*"],s=new e.InjectionToken("SWIPER_CONFIG"),d=["init","beforeDestroy","scroll","progress","keyPress","resize","breakpoint","zoomChange","beforeResize","afterResize","sliderMove","slideChange","setTranslate","setTransition","fromEdge","reachEnd","reachBeginning","autoplay","autoplayStop","autoplayStart","imagesReady","lazyImageLoad","lazyImageReady","scrollDragEnd","scrollDragMove","scrollDragStart","navigationHide","navigationShow","paginationRender","paginationUpdate","paginationHide","paginationShow","swiperTap","swiperClick","swiperDoubleTap","swiperTouchEnd","swiperTouchMove","swiperTouchStart","swiperTouchMoveOpposite","swiperTransitionEnd","swiperTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideChangeTransitionEnd","slideChangeTransitionStart"],p=function(){function y(b){void 0===b&&(b={}),this.assign(b)}return y.prototype.assign=function(b,S){for(var E in void 0===b&&(b={}),S=S||this,b)null==b[E]||Array.isArray(b[E])||"object"!=typeof b[E]||!(typeof HTMLElement>"u")&&b[E]instanceof HTMLElement?S[E]=b[E]:(S[E]={},this.assign(b[E],S[E]))},y}(),u=function(){function y(b,S,E,D,A){this.platformId=b,this.zone=S,this.elementRef=E,this.differs=D,this.defaults=A,this.initialIndex=null,this.configDiff=null,this.disabled=!1,this.performance=!1,this.indexChange=new e.EventEmitter,this.S_INIT=new e.EventEmitter,this.S_BEFOREDESTROY=new e.EventEmitter,this.S_SCROLL=new e.EventEmitter,this.S_PROGRESS=new e.EventEmitter,this.S_KEYPRESS=new e.EventEmitter,this.S_RESIZE=new e.EventEmitter,this.S_BREAKPOINT=new e.EventEmitter,this.S_ZOOMCHANGE=new e.EventEmitter,this.S_AFTERRESIZE=new e.EventEmitter,this.S_BEFORERESIZE=new e.EventEmitter,this.S_SLIDERMOVE=new e.EventEmitter,this.S_SLIDECHANGE=new e.EventEmitter,this.S_SETTRANSLATE=new e.EventEmitter,this.S_SETTRANSITION=new e.EventEmitter,this.S_FROMEDGE=new e.EventEmitter,this.S_REACHEND=new e.EventEmitter,this.S_REACHBEGINNING=new e.EventEmitter,this.S_AUTOPLAY=new e.EventEmitter,this.S_AUTOPLAYSTART=new e.EventEmitter,this.S_AUTOPLAYSTOP=new e.EventEmitter,this.S_IMAGESREADY=new e.EventEmitter,this.S_LAZYIMAGELOAD=new e.EventEmitter,this.S_LAZYIMAGEREADY=new e.EventEmitter,this.S_SCROLLDRAGEND=new e.EventEmitter,this.S_SCROLLDRAGMOVE=new e.EventEmitter,this.S_SCROLLDRAGSTART=new e.EventEmitter,this.S_NAVIGATIONHIDE=new e.EventEmitter,this.S_NAVIGATIONSHOW=new e.EventEmitter,this.S_PAGINATIONRENDER=new e.EventEmitter,this.S_PAGINATIONUPDATE=new e.EventEmitter,this.S_PAGINATIONHIDE=new e.EventEmitter,this.S_PAGINATIONSHOW=new e.EventEmitter,this.S_TAP=new e.EventEmitter,this.S_CLICK=new e.EventEmitter,this.S_DOUBLETAP=new e.EventEmitter,this.S_TOUCHEND=new e.EventEmitter,this.S_TOUCHMOVE=new e.EventEmitter,this.S_TOUCHSTART=new e.EventEmitter,this.S_TOUCHMOVEOPPOSITE=new e.EventEmitter,this.S_TRANSITIONEND=new e.EventEmitter,this.S_TRANSITIONSTART=new e.EventEmitter,this.S_SLIDEPREVTRANSITIONEND=new e.EventEmitter,this.S_SLIDEPREVTRANSITIONSTART=new e.EventEmitter,this.S_SLIDENEXTTRANSITIONEND=new e.EventEmitter,this.S_SLIDENEXTTRANSITIONSTART=new e.EventEmitter,this.S_SLIDECHANGETRANSITIONEND=new e.EventEmitter,this.S_SLIDECHANGETRANSITIONSTART=new e.EventEmitter}return Object.defineProperty(y.prototype,"index",{set:function(b){null!=b&&this.setIndex(b)},enumerable:!0,configurable:!0}),y.prototype.ngAfterViewInit=function(){var b=this;if((0,n.isPlatformBrowser)(this.platformId)){var S=new p(this.defaults);S.assign(this.config),!0===S.scrollbar&&(S.scrollbar={el:".swiper-scrollbar"}),!0===S.pagination&&(S.pagination={el:".swiper-pagination"}),!0===S.navigation&&(S.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}),this.disabled&&(S.allowSlidePrev=!1,S.allowSlideNext=!1),null!=this.initialIndex&&(S.initialSlide=this.initialIndex,this.initialIndex=null),S.on={slideChange:function(){b.instance&&b.indexChange.observers.length&&b.emit(b.indexChange,b.instance.realIndex)}},this.zone.runOutsideAngular(function(){b.instance=new a(b.elementRef.nativeElement,S)}),!1!==S.init&&this.S_INIT.observers.length&&this.emit(this.S_INIT,this.instance),d.forEach(function(E){var D=E.replace("swiper","");D=D.charAt(0).toLowerCase()+D.slice(1),b.instance.on(D,function(){for(var A=[],P=0;P<arguments.length;P++)A[P]=arguments[P];1===A.length&&(A=A[0]);var B="S_"+D.toUpperCase(),V=b[B];V.observers.length&&b.emit(V,A)})}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{}))}},y.prototype.ngOnDestroy=function(){var b=this;this.instance&&(this.zone.runOutsideAngular(function(){b.instance.destroy(!0,b.instance.initialized||!1)}),this.instance=null)},y.prototype.ngDoCheck=function(){this.configDiff&&this.configDiff.diff(this.config||{})&&(this.initialIndex=this.getIndex(!0),this.ngOnDestroy(),this.ngAfterViewInit(),this.update())},y.prototype.ngOnChanges=function(b){var S=this;this.instance&&b.disabled&&b.disabled.currentValue!==b.disabled.previousValue&&(!0===b.disabled.currentValue||!1===b.disabled.currentValue)&&this.zone.runOutsideAngular(function(){S.ngOnDestroy(),S.ngAfterViewInit()})},y.prototype.emit=function(b,S){this.performance?b.emit(S):this.zone.run(function(){return b.emit(S)})},y.prototype.swiper=function(){return this.instance},y.prototype.init=function(){var b=this;this.instance&&this.zone.runOutsideAngular(function(){b.instance.init()})},y.prototype.update=function(){var b=this;setTimeout(function(){b.instance&&b.zone.runOutsideAngular(function(){b.instance.update()})},0)},y.prototype.getIndex=function(b){return this.instance?b?this.instance.realIndex:this.instance.activeIndex:this.initialIndex||0},y.prototype.setIndex=function(b,S,E){var D=this;if(this.instance){var A=b*this.instance.params.slidesPerGroup;this.instance.params.loop&&(A+=this.instance.loopedSlides),this.zone.runOutsideAngular(function(){D.instance.slideTo(A,S,!E)})}else this.initialIndex=b},y.prototype.prevSlide=function(b,S){var E=this;this.instance&&this.zone.runOutsideAngular(function(){E.instance.slidePrev(b,!S)})},y.prototype.nextSlide=function(b,S){var E=this;this.instance&&this.zone.runOutsideAngular(function(){E.instance.slideNext(b,!S)})},y.prototype.stopAutoplay=function(b){var S=this;b&&this.setIndex(0),this.instance&&this.instance.autoplay&&this.zone.runOutsideAngular(function(){S.instance.autoplay.stop()})},y.prototype.startAutoplay=function(b){var S=this;b&&this.setIndex(0),this.instance&&this.instance.autoplay&&this.zone.runOutsideAngular(function(){S.instance.autoplay.start()})},y.ctorParameters=function(){return[{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:e.NgZone},{type:e.ElementRef},{type:e.KeyValueDiffers},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[s]}]}]},y.propDecorators={index:[{type:e.Input}],disabled:[{type:e.Input}],performance:[{type:e.Input}],config:[{type:e.Input,args:["swiper"]}],indexChange:[{type:e.Output}],S_INIT:[{type:e.Output,args:["init"]}],S_BEFOREDESTROY:[{type:e.Output,args:["beforeDestroy"]}],S_SCROLL:[{type:e.Output,args:["scroll"]}],S_PROGRESS:[{type:e.Output,args:["progress"]}],S_KEYPRESS:[{type:e.Output,args:["keyPress"]}],S_RESIZE:[{type:e.Output,args:["resize"]}],S_BREAKPOINT:[{type:e.Output,args:["breakpoint"]}],S_ZOOMCHANGE:[{type:e.Output,args:["zoomChange"]}],S_AFTERRESIZE:[{type:e.Output,args:["afterResize"]}],S_BEFORERESIZE:[{type:e.Output,args:["beforeResize"]}],S_SLIDERMOVE:[{type:e.Output,args:["sliderMove"]}],S_SLIDECHANGE:[{type:e.Output,args:["slideChange"]}],S_SETTRANSLATE:[{type:e.Output,args:["setTranslate"]}],S_SETTRANSITION:[{type:e.Output,args:["setTransition"]}],S_FROMEDGE:[{type:e.Output,args:["fromEdge"]}],S_REACHEND:[{type:e.Output,args:["reachEnd"]}],S_REACHBEGINNING:[{type:e.Output,args:["reachBeginning"]}],S_AUTOPLAY:[{type:e.Output,args:["autoplay"]}],S_AUTOPLAYSTART:[{type:e.Output,args:["autoplayStart"]}],S_AUTOPLAYSTOP:[{type:e.Output,args:["autoplayStop"]}],S_IMAGESREADY:[{type:e.Output,args:["imagesReady"]}],S_LAZYIMAGELOAD:[{type:e.Output,args:["lazyImageLoad"]}],S_LAZYIMAGEREADY:[{type:e.Output,args:["lazyImageReady"]}],S_SCROLLDRAGEND:[{type:e.Output,args:["scrollDragEnd"]}],S_SCROLLDRAGMOVE:[{type:e.Output,args:["scrollDragMove"]}],S_SCROLLDRAGSTART:[{type:e.Output,args:["scrollDragStart"]}],S_NAVIGATIONHIDE:[{type:e.Output,args:["navigationHide"]}],S_NAVIGATIONSHOW:[{type:e.Output,args:["navigationShow"]}],S_PAGINATIONRENDER:[{type:e.Output,args:["paginationRender"]}],S_PAGINATIONUPDATE:[{type:e.Output,args:["paginationUpdate"]}],S_PAGINATIONHIDE:[{type:e.Output,args:["paginationHide"]}],S_PAGINATIONSHOW:[{type:e.Output,args:["paginationShow"]}],S_TAP:[{type:e.Output,args:["swiperTap"]}],S_CLICK:[{type:e.Output,args:["swiperClick"]}],S_DOUBLETAP:[{type:e.Output,args:["swiperDoubleTap"]}],S_TOUCHEND:[{type:e.Output,args:["swiperTouchEnd"]}],S_TOUCHMOVE:[{type:e.Output,args:["swiperTouchMove"]}],S_TOUCHSTART:[{type:e.Output,args:["swiperTouchStart"]}],S_TOUCHMOVEOPPOSITE:[{type:e.Output,args:["swiperTouchMoveOpposite"]}],S_TRANSITIONEND:[{type:e.Output,args:["swiperTransitionEnd"]}],S_TRANSITIONSTART:[{type:e.Output,args:["swiperTransitionStart"]}],S_SLIDEPREVTRANSITIONEND:[{type:e.Output,args:["slidePrevTransitionEnd"]}],S_SLIDEPREVTRANSITIONSTART:[{type:e.Output,args:["slidePrevTransitionStart"]}],S_SLIDENEXTTRANSITIONEND:[{type:e.Output,args:["slideNextTransitionEnd"]}],S_SLIDENEXTTRANSITIONSTART:[{type:e.Output,args:["slideNextTransitionStart"]}],S_SLIDECHANGETRANSITIONEND:[{type:e.Output,args:["slideChangeTransitionEnd"]}],S_SLIDECHANGETRANSITIONSTART:[{type:e.Output,args:["slideChangeTransitionStart"]}]},y.\u0275fac=function(S){return new(S||y)(e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.KeyValueDiffers),e.\u0275\u0275directiveInject(s,8))},y.\u0275dir=e.\u0275\u0275defineDirective({type:y,selectors:[["","swiper",""]],inputs:{disabled:"disabled",performance:"performance",index:"index",config:["swiper","config"]},outputs:{indexChange:"indexChange",S_INIT:"init",S_BEFOREDESTROY:"beforeDestroy",S_SCROLL:"scroll",S_PROGRESS:"progress",S_KEYPRESS:"keyPress",S_RESIZE:"resize",S_BREAKPOINT:"breakpoint",S_ZOOMCHANGE:"zoomChange",S_AFTERRESIZE:"afterResize",S_BEFORERESIZE:"beforeResize",S_SLIDERMOVE:"sliderMove",S_SLIDECHANGE:"slideChange",S_SETTRANSLATE:"setTranslate",S_SETTRANSITION:"setTransition",S_FROMEDGE:"fromEdge",S_REACHEND:"reachEnd",S_REACHBEGINNING:"reachBeginning",S_AUTOPLAY:"autoplay",S_AUTOPLAYSTART:"autoplayStart",S_AUTOPLAYSTOP:"autoplayStop",S_IMAGESREADY:"imagesReady",S_LAZYIMAGELOAD:"lazyImageLoad",S_LAZYIMAGEREADY:"lazyImageReady",S_SCROLLDRAGEND:"scrollDragEnd",S_SCROLLDRAGMOVE:"scrollDragMove",S_SCROLLDRAGSTART:"scrollDragStart",S_NAVIGATIONHIDE:"navigationHide",S_NAVIGATIONSHOW:"navigationShow",S_PAGINATIONRENDER:"paginationRender",S_PAGINATIONUPDATE:"paginationUpdate",S_PAGINATIONHIDE:"paginationHide",S_PAGINATIONSHOW:"paginationShow",S_TAP:"swiperTap",S_CLICK:"swiperClick",S_DOUBLETAP:"swiperDoubleTap",S_TOUCHEND:"swiperTouchEnd",S_TOUCHMOVE:"swiperTouchMove",S_TOUCHSTART:"swiperTouchStart",S_TOUCHMOVEOPPOSITE:"swiperTouchMoveOpposite",S_TRANSITIONEND:"swiperTransitionEnd",S_TRANSITIONSTART:"swiperTransitionStart",S_SLIDEPREVTRANSITIONEND:"slidePrevTransitionEnd",S_SLIDEPREVTRANSITIONSTART:"slidePrevTransitionStart",S_SLIDENEXTTRANSITIONEND:"slideNextTransitionEnd",S_SLIDENEXTTRANSITIONSTART:"slideNextTransitionStart",S_SLIDECHANGETRANSITIONEND:"slideChangeTransitionEnd",S_SLIDECHANGETRANSITIONSTART:"slideChangeTransitionStart"},exportAs:["ngxSwiper"],features:[e.\u0275\u0275NgOnChangesFeature]}),y}(),g=function(){function y(b,S,E,D){this.zone=b,this.cdRef=S,this.platformId=E,this.defaults=D,this.mo=null,this.swiperConfig=null,this.paginationBackup=null,this.paginationConfig=null,this.index=null,this.disabled=!1,this.performance=!1,this.useSwiperClass=!0,this.indexChange=new e.EventEmitter,this.S_INIT=new e.EventEmitter,this.S_BEFOREDESTROY=new e.EventEmitter,this.S_SCROLL=new e.EventEmitter,this.S_PROGRESS=new e.EventEmitter,this.S_KEYPRESS=new e.EventEmitter,this.S_RESIZE=new e.EventEmitter,this.S_BREAKPOINT=new e.EventEmitter,this.S_ZOOMCHANGE=new e.EventEmitter,this.S_AFTERRESIZE=new e.EventEmitter,this.S_BEFORERESIZE=new e.EventEmitter,this.S_SLIDERMOVE=new e.EventEmitter,this.S_SLIDECHANGE=new e.EventEmitter,this.S_SETTRANSLATE=new e.EventEmitter,this.S_SETTRANSITION=new e.EventEmitter,this.S_FROMEDGE=new e.EventEmitter,this.S_REACHEND=new e.EventEmitter,this.S_REACHBEGINNING=new e.EventEmitter,this.S_AUTOPLAY=new e.EventEmitter,this.S_AUTOPLAYSTART=new e.EventEmitter,this.S_AUTOPLAYSTOP=new e.EventEmitter,this.S_IMAGESREADY=new e.EventEmitter,this.S_LAZYIMAGELOAD=new e.EventEmitter,this.S_LAZYIMAGEREADY=new e.EventEmitter,this.S_SCROLLDRAGEND=new e.EventEmitter,this.S_SCROLLDRAGMOVE=new e.EventEmitter,this.S_SCROLLDRAGSTART=new e.EventEmitter,this.S_NAVIGATIONHIDE=new e.EventEmitter,this.S_NAVIGATIONSHOW=new e.EventEmitter,this.S_PAGINATIONRENDER=new e.EventEmitter,this.S_PAGINATIONUPDATE=new e.EventEmitter,this.S_PAGINATIONHIDE=new e.EventEmitter,this.S_PAGINATIONSHOW=new e.EventEmitter,this.S_TAP=new e.EventEmitter,this.S_CLICK=new e.EventEmitter,this.S_DOUBLETAP=new e.EventEmitter,this.S_TOUCHEND=new e.EventEmitter,this.S_TOUCHMOVE=new e.EventEmitter,this.S_TOUCHSTART=new e.EventEmitter,this.S_TOUCHMOVEOPPOSITE=new e.EventEmitter,this.S_TRANSITIONEND=new e.EventEmitter,this.S_TRANSITIONSTART=new e.EventEmitter,this.S_SLIDEPREVTRANSITIONEND=new e.EventEmitter,this.S_SLIDEPREVTRANSITIONSTART=new e.EventEmitter,this.S_SLIDENEXTTRANSITIONEND=new e.EventEmitter,this.S_SLIDENEXTTRANSITIONSTART=new e.EventEmitter,this.S_SLIDECHANGETRANSITIONEND=new e.EventEmitter,this.S_SLIDECHANGETRANSITIONSTART=new e.EventEmitter}return Object.defineProperty(y.prototype,"isAtLast",{get:function(){return!(!this.directiveRef||!this.directiveRef.swiper())&&this.directiveRef.swiper().isEnd},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isAtFirst",{get:function(){return!(!this.directiveRef||!this.directiveRef.swiper())&&this.directiveRef.swiper().isBeginning},enumerable:!0,configurable:!0}),y.prototype.ngAfterViewInit=function(){var b=this;(0,n.isPlatformBrowser)(this.platformId)&&(this.zone.runOutsideAngular(function(){b.updateClasses(),b.swiperSlides&&typeof MutationObserver<"u"&&(b.mo=new MutationObserver(function(){b.updateClasses()}),b.mo.observe(b.swiperSlides.nativeElement,{childList:!0}))}),window.setTimeout(function(){b.directiveRef&&(b.S_INIT.emit(),b.directiveRef.indexChange=b.indexChange,d.forEach(function(S){if(b.directiveRef){var E="S_"+S.replace("swiper","").toUpperCase();b.directiveRef[E]=b[E]}}))},0))},y.prototype.ngOnDestroy=function(){this.mo&&this.mo.disconnect(),this.config&&this.paginationBackup&&(this.config.pagination=this.paginationBackup)},y.prototype.getConfig=function(){var b=this;return this.swiperConfig=new p(this.defaults),this.swiperConfig.assign(this.config),this.swiperSlides&&(!0===this.swiperConfig.pagination||this.swiperConfig.pagination&&"object"==typeof this.swiperConfig.pagination&&(!this.swiperConfig.pagination.type||"bullets"===this.swiperConfig.pagination.type)&&!this.swiperConfig.pagination.renderBullet&&".swiper-pagination"===this.swiperConfig.pagination.el)&&(this.config=this.config||{},this.paginationConfig||(this.paginationBackup=this.config.pagination,this.paginationConfig={el:".swiper-pagination",renderBullet:function(S,E){var D=b.swiperSlides?Array.from(b.swiperSlides.nativeElement.children):[];D=D.filter(function(P){return P.classList.contains("swiper-slide")});var A='<span class="'+E+" "+E+'-middle" index="'+S+'"></span>';return 0===S?A='<span class="'+E+" "+E+'-first" index="'+S+'"></span>':S===D.length-1&&(A='<span class="'+E+" "+E+'-last" index="'+S+'"></span>'),'<span class="swiper-pagination-handle" index="'+S+'">'+A+"</span>"}}),this.config.pagination=!0===this.swiperConfig.pagination?this.paginationConfig:Object.assign({},this.config.pagination,this.paginationConfig)),this.config},y.prototype.updateClasses=function(){if(this.swiperSlides){for(var b=!1,S=this.swiperSlides.nativeElement.children,E=0;E<S.length;E++)!1===/swiper-.*/.test(S[E].className)&&(b=!0,S[E].classList.add("swiper-slide"));b&&this.directiveRef&&this.directiveRef.update()}this.cdRef.detectChanges()},y.prototype.onPaginationClick=function(b){this.config&&this.directiveRef&&(!0===this.config.pagination||this.config.pagination&&"object"==typeof this.config.pagination&&(!this.config.pagination.type||"bullets"===this.config.pagination.type)&&this.config.pagination.clickable&&".swiper-pagination"===this.config.pagination.el)&&this.directiveRef.setIndex(b)},y.ctorParameters=function(){return[{type:e.NgZone},{type:e.ChangeDetectorRef},{type:Object,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[s]}]}]},y.propDecorators={index:[{type:e.Input}],disabled:[{type:e.Input}],performance:[{type:e.Input}],config:[{type:e.Input}],useSwiperClass:[{type:e.Input}],indexChange:[{type:e.Output}],swiperSlides:[{type:e.ViewChild,args:["swiperSlides",{static:!1}]}],directiveRef:[{type:e.ViewChild,args:[u,{static:!1}]}],S_INIT:[{type:e.Output,args:["init"]}],S_BEFOREDESTROY:[{type:e.Output,args:["beforeDestroy"]}],S_SCROLL:[{type:e.Output,args:["scroll"]}],S_PROGRESS:[{type:e.Output,args:["progress"]}],S_KEYPRESS:[{type:e.Output,args:["keyPress"]}],S_RESIZE:[{type:e.Output,args:["resize"]}],S_BREAKPOINT:[{type:e.Output,args:["breakpoint"]}],S_ZOOMCHANGE:[{type:e.Output,args:["zoomChange"]}],S_AFTERRESIZE:[{type:e.Output,args:["afterResize"]}],S_BEFORERESIZE:[{type:e.Output,args:["beforeResize"]}],S_SLIDERMOVE:[{type:e.Output,args:["sliderMove"]}],S_SLIDECHANGE:[{type:e.Output,args:["slideChange"]}],S_SETTRANSLATE:[{type:e.Output,args:["setTranslate"]}],S_SETTRANSITION:[{type:e.Output,args:["setTransition"]}],S_FROMEDGE:[{type:e.Output,args:["fromEdge"]}],S_REACHEND:[{type:e.Output,args:["reachEnd"]}],S_REACHBEGINNING:[{type:e.Output,args:["reachBeginning"]}],S_AUTOPLAY:[{type:e.Output,args:["autoplay"]}],S_AUTOPLAYSTART:[{type:e.Output,args:["autoplayStart"]}],S_AUTOPLAYSTOP:[{type:e.Output,args:["autoplayStop"]}],S_IMAGESREADY:[{type:e.Output,args:["imagesReady"]}],S_LAZYIMAGELOAD:[{type:e.Output,args:["lazyImageLoad"]}],S_LAZYIMAGEREADY:[{type:e.Output,args:["lazyImageReady"]}],S_SCROLLDRAGEND:[{type:e.Output,args:["scrollDragEnd"]}],S_SCROLLDRAGMOVE:[{type:e.Output,args:["scrollDragMove"]}],S_SCROLLDRAGSTART:[{type:e.Output,args:["scrollDragStart"]}],S_NAVIGATIONHIDE:[{type:e.Output,args:["navigationHide"]}],S_NAVIGATIONSHOW:[{type:e.Output,args:["navigationShow"]}],S_PAGINATIONRENDER:[{type:e.Output,args:["paginationRender"]}],S_PAGINATIONUPDATE:[{type:e.Output,args:["paginationUpdate"]}],S_PAGINATIONHIDE:[{type:e.Output,args:["paginationHide"]}],S_PAGINATIONSHOW:[{type:e.Output,args:["paginationShow"]}],S_TAP:[{type:e.Output,args:["swiperTap"]}],S_CLICK:[{type:e.Output,args:["swiperClick"]}],S_DOUBLETAP:[{type:e.Output,args:["swiperDoubleTap"]}],S_TOUCHEND:[{type:e.Output,args:["swiperTouchEnd"]}],S_TOUCHMOVE:[{type:e.Output,args:["swiperTouchMove"]}],S_TOUCHSTART:[{type:e.Output,args:["swiperTouchStart"]}],S_TOUCHMOVEOPPOSITE:[{type:e.Output,args:["swiperTouchMoveOpposite"]}],S_TRANSITIONEND:[{type:e.Output,args:["swiperTransitionEnd"]}],S_TRANSITIONSTART:[{type:e.Output,args:["swiperTransitionStart"]}],S_SLIDEPREVTRANSITIONEND:[{type:e.Output,args:["slidePrevTransitionEnd"]}],S_SLIDEPREVTRANSITIONSTART:[{type:e.Output,args:["slidePrevTransitionStart"]}],S_SLIDENEXTTRANSITIONEND:[{type:e.Output,args:["slideNextTransitionEnd"]}],S_SLIDENEXTTRANSITIONSTART:[{type:e.Output,args:["slideNextTransitionStart"]}],S_SLIDECHANGETRANSITIONEND:[{type:e.Output,args:["slideChangeTransitionEnd"]}],S_SLIDECHANGETRANSITIONSTART:[{type:e.Output,args:["slideChangeTransitionStart"]}]},y.\u0275fac=function(S){return new(S||y)(e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(s,8))},y.\u0275cmp=e.\u0275\u0275defineComponent({type:y,selectors:[["swiper"]],viewQuery:function(S,E){var D;1&S&&(e.\u0275\u0275viewQuery(l,5),e.\u0275\u0275viewQuery(u,5)),2&S&&(e.\u0275\u0275queryRefresh(D=e.\u0275\u0275loadQuery())&&(E.swiperSlides=D.first),e.\u0275\u0275queryRefresh(D=e.\u0275\u0275loadQuery())&&(E.directiveRef=D.first))},inputs:{index:"index",disabled:"disabled",performance:"performance",useSwiperClass:"useSwiperClass",config:"config"},outputs:{indexChange:"indexChange",S_INIT:"init",S_BEFOREDESTROY:"beforeDestroy",S_SCROLL:"scroll",S_PROGRESS:"progress",S_KEYPRESS:"keyPress",S_RESIZE:"resize",S_BREAKPOINT:"breakpoint",S_ZOOMCHANGE:"zoomChange",S_AFTERRESIZE:"afterResize",S_BEFORERESIZE:"beforeResize",S_SLIDERMOVE:"sliderMove",S_SLIDECHANGE:"slideChange",S_SETTRANSLATE:"setTranslate",S_SETTRANSITION:"setTransition",S_FROMEDGE:"fromEdge",S_REACHEND:"reachEnd",S_REACHBEGINNING:"reachBeginning",S_AUTOPLAY:"autoplay",S_AUTOPLAYSTART:"autoplayStart",S_AUTOPLAYSTOP:"autoplayStop",S_IMAGESREADY:"imagesReady",S_LAZYIMAGELOAD:"lazyImageLoad",S_LAZYIMAGEREADY:"lazyImageReady",S_SCROLLDRAGEND:"scrollDragEnd",S_SCROLLDRAGMOVE:"scrollDragMove",S_SCROLLDRAGSTART:"scrollDragStart",S_NAVIGATIONHIDE:"navigationHide",S_NAVIGATIONSHOW:"navigationShow",S_PAGINATIONRENDER:"paginationRender",S_PAGINATIONUPDATE:"paginationUpdate",S_PAGINATIONHIDE:"paginationHide",S_PAGINATIONSHOW:"paginationShow",S_TAP:"swiperTap",S_CLICK:"swiperClick",S_DOUBLETAP:"swiperDoubleTap",S_TOUCHEND:"swiperTouchEnd",S_TOUCHMOVE:"swiperTouchMove",S_TOUCHSTART:"swiperTouchStart",S_TOUCHMOVEOPPOSITE:"swiperTouchMoveOpposite",S_TRANSITIONEND:"swiperTransitionEnd",S_TRANSITIONSTART:"swiperTransitionStart",S_SLIDEPREVTRANSITIONEND:"slidePrevTransitionEnd",S_SLIDEPREVTRANSITIONSTART:"slidePrevTransitionStart",S_SLIDENEXTTRANSITIONEND:"slideNextTransitionEnd",S_SLIDENEXTTRANSITIONSTART:"slideNextTransitionStart",S_SLIDECHANGETRANSITIONEND:"slideChangeTransitionEnd",S_SLIDECHANGETRANSITIONSTART:"slideChangeTransitionStart"},exportAs:["ngxSwiper"],ngContentSelectors:h,decls:9,vars:14,consts:[[1,"s-wrapper",3,"swiper","index","disabled","performance"],["swiper",""],[1,"swiper-wrapper"],["swiperSlides",""],[1,"swiper-scrollbar",3,"hidden"],[1,"swiper-button-prev",3,"hidden"],[1,"swiper-button-next",3,"hidden"],[1,"swiper-pagination",3,"hidden","click","keyup.enter"]],template:function(S,E){1&S&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0,1)(2,"div",2,3),e.\u0275\u0275projection(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"div",4)(6,"div",5)(7,"div",6),e.\u0275\u0275elementStart(8,"div",7),e.\u0275\u0275listener("click",function(A){return E.onPaginationClick(A.target.getAttribute("index"))})("keyup.enter",function(A){return E.onPaginationClick(A.target.getAttribute("index"))}),e.\u0275\u0275elementEnd()()),2&S&&(e.\u0275\u0275classProp("swiper",E.useSwiperClass)("swiper-container",E.useSwiperClass),e.\u0275\u0275property("swiper",E.getConfig())("index",E.index)("disabled",E.disabled)("performance",E.performance),e.\u0275\u0275advance(5),e.\u0275\u0275property("hidden",!(null!=E.swiperConfig&&E.swiperConfig.scrollbar)||!0!==(null==E.swiperConfig?null:E.swiperConfig.scrollbar)&&!(null==E.swiperConfig||null==E.swiperConfig.scrollbar||!E.swiperConfig.scrollbar.el)&&".swiper-scrollbar"!==(null==E.swiperConfig||null==E.swiperConfig.scrollbar?null:E.swiperConfig.scrollbar.el)),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!(null!=E.swiperConfig&&E.swiperConfig.navigation)||!0!==(null==E.swiperConfig?null:E.swiperConfig.navigation)&&!(null==E.swiperConfig||null==E.swiperConfig.navigation||!E.swiperConfig.navigation.prevEl)&&".swiper-button-prev"!==(null==E.swiperConfig||null==E.swiperConfig.navigation?null:E.swiperConfig.navigation.prevEl)),e.\u0275\u0275attribute("disabled",E.isAtFirst||null),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!(null!=E.swiperConfig&&E.swiperConfig.navigation)||!0!==(null==E.swiperConfig?null:E.swiperConfig.navigation)&&!(null==E.swiperConfig||null==E.swiperConfig.navigation||!E.swiperConfig.navigation.nextEl)&&".swiper-button-next"!==(null==E.swiperConfig||null==E.swiperConfig.navigation?null:E.swiperConfig.navigation.nextEl)),e.\u0275\u0275attribute("disabled",E.isAtLast||null),e.\u0275\u0275advance(1),e.\u0275\u0275property("hidden",!(null!=E.swiperConfig&&E.swiperConfig.pagination)||!0!==(null==E.swiperConfig?null:E.swiperConfig.pagination)&&!(null==E.swiperConfig||null==E.swiperConfig.pagination||!E.swiperConfig.pagination.el)&&".swiper-pagination"!==(null==E.swiperConfig||null==E.swiperConfig.pagination?null:E.swiperConfig.pagination.el)))},dependencies:[u],styles:["swiper[fxflex] {\n  display: flex;\n  flex-direction: inherit;\n  min-width: 0;\n  min-height: 0;\n\n  -webkit-box-direction: inherit;\n  -webkit-box-orient: inherit;\n}\n\nswiper[fxflex] > .swiper.s-wrapper {\n  -ms-flex: 1 1 auto;\n\n  flex: 1 1 auto;\n  min-width: 0;\n  min-height: 0;\n\n  -webkit-box-flex: 1;\n}\n\nswiper > .swiper.s-wrapper {\n  width: 100%;\n  height: 100%;\n}\n\nswiper > .swiper.s-wrapper .swiper-wrapper .swiper-slide {\n  overflow: auto;\n  width: 100%;\n  height: 100%;\n  max-width: 100%;\n  max-height: 100%;\n}\n\nswiper > .swiper.s-wrapper .swiper-pagination {\n  pointer-events: none;\n}\n\nswiper > .swiper.s-wrapper .swiper-pagination .swiper-pagination-handle {\n  position: relative;\n\n  display: inline-block;\n  padding: 4px;\n  margin: 2px;\n\n  cursor: pointer;\n  pointer-events: all;\n}\n\nswiper > .swiper.s-wrapper .swiper-pagination .swiper-pagination-handle .swiper-pagination-bullet {\n  display: inline-block;\n\n  margin: 0;\n\n  pointer-events: none;\n}\n\nswiper > .swiper.s-wrapper .swiper-pagination .swiper-pagination-handle .swiper-pagination-bullet.swiper-pagination-bullet-last,\nswiper > .swiper.s-wrapper .swiper-pagination .swiper-pagination-handle .swiper-pagination-bullet.swiper-pagination-bullet-first {\n  border: 1px solid rgba(0, 0, 0, 0.5);\n}\n\nswiper > .swiper.s-wrapper.swiper-container-vertical > .swiper-button-prev {\n  top: 10px;\n  left: 50%;\n\n  margin-top: 0;\n  margin-left: -13px;\n\n  transform: rotate(90deg);\n}\n\nswiper > .swiper.s-wrapper.swiper-container-vertical > .swiper-button-next {\n  top: auto;\n  bottom: 10px;\n  left: 50%;\n\n  margin-top: 0;\n  margin-left: -13px;\n\n  transform: rotate(90deg);\n}\n\nswiper > .swiper.s-wrapper.swiper-container-vertical > .swiper-scrollbar {\n  width: 8px;\n\n  transition: width 250ms ease-in-out;\n}\n\nswiper > .swiper.s-wrapper.swiper-container-vertical > .swiper-scrollbar:hover {\n  width: 16px;\n}\n\nswiper > .swiper.s-wrapper.swiper-container-vertical > .swiper-pagination .swiper-pagination-handle {\n  display: block;\n}\n\nswiper > .swiper.s-wrapper.swiper-container-vertical > .swiper-pagination .swiper-pagination-handle .swiper-pagination-bullet {\n  display: inline-block;\n}\n\nswiper > .swiper.s-wrapper.swiper-container-vertical > .swiper-pagination .swiper-pagination-handle .swiper-pagination-bullet.swiper-pagination-bullet-last,\nswiper > .swiper.s-wrapper.swiper-container-vertical > .swiper-pagination .swiper-pagination-handle .swiper-pagination-bullet.swiper-pagination-bullet-first {\n  margin: 0 -1px;\n}\n\nswiper > .swiper.s-wrapper.swiper-container-horizontal > .swiper-scrollbar {\n  height: 8px;\n\n  transition: height 250ms ease-in-out;\n}\n\nswiper > .swiper.s-wrapper.swiper-container-horizontal > .swiper-scrollbar:hover {\n  height: 16px;\n}\n\nswiper > .swiper.s-wrapper.swiper-container-horizontal > .swiper-pagination .swiper-pagination-handle .swiper-pagination-bullet.swiper-pagination-bullet-last,\nswiper > .swiper.s-wrapper.swiper-container-horizontal > .swiper-pagination .swiper-pagination-handle .swiper-pagination-bullet.swiper-pagination-bullet-first {\n  margin: -1px 0;\n}\n","/**\n * Swiper 4.5.0\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * http://www.idangero.us/swiper/\n *\n * Copyright 2014-2019 Vladimir Kharlampidi\n *\n * Released under the MIT License\n *\n * Released on: February 22, 2019\n */\n.swiper-container{margin:0 auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.swiper-container-multirow>.swiper-wrapper{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height,-webkit-transform;transition-property:height,-webkit-transform;-o-transition-property:transform,height;transition-property:transform,height;transition-property:transform,height,-webkit-transform}.swiper-container-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(right,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(bottom,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:-webkit-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:-o-linear-gradient(top,rgba(0,0,0,.5),rgba(0,0,0,0));background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-container-wp8-horizontal,.swiper-container-wp8-horizontal>.swiper-wrapper{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-container-wp8-vertical,.swiper-container-wp8-vertical>.swiper-wrapper{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:center;background-repeat:no-repeat}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");left:10px;right:auto}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E\");right:10px;left:auto}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E\")}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s opacity;-o-transition:.3s opacity;transition:.3s opacity;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(.66);-ms-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(.66);-ms-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:.2s top,.2s -webkit-transform;transition:.2s top,.2s -webkit-transform;-o-transition:.2s transform,.2s top;transition:.2s transform,.2s top;transition:.2s transform,.2s top,.2s -webkit-transform}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s left,.2s -webkit-transform;transition:.2s left,.2s -webkit-transform;-o-transition:.2s transform,.2s left;transition:.2s transform,.2s left;transition:.2s transform,.2s left,.2s -webkit-transform}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s right,.2s -webkit-transform;transition:.2s right,.2s -webkit-transform;-o-transition:.2s transform,.2s right;transition:.2s transform,.2s right;transition:.2s transform,.2s right,.2s -webkit-transform}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-progressbar.swiper-pagination-white{background:rgba(255,255,255,.25)}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill{background:#fff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000}.swiper-pagination-progressbar.swiper-pagination-black{background:rgba(0,0,0,.25)}.swiper-pagination-progressbar.swiper-pagination-black .swiper-pagination-progressbar-fill{background:#000}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;-ms-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s steps(12,end) infinite;animation:swiper-preloader-spin 1s steps(12,end) infinite}.swiper-lazy-preloader:after{display:block;content:'';width:100%;height:100%;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\");background-position:50%;background-size:100%;background-repeat:no-repeat}.swiper-lazy-preloader-white:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E\")}@-webkit-keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-coverflow .swiper-wrapper{-ms-perspective:1200px}"],encapsulation:2}),y}(),v=function(){function y(){}return y.\u0275fac=function(S){return new(S||y)},y.\u0275mod=e.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.CommonModule,n.CommonModule]}),y}()},51520:oe=>{oe.exports=function n(a,t,l){function h(p,u){if(!t[p]){if(!a[p]){if(s)return s(p,!0);var v=new Error("Cannot find module '"+p+"'");throw v.code="MODULE_NOT_FOUND",v}var y=t[p]={exports:{}};a[p][0].call(y.exports,function(b){return h(a[p][1][b]||b)},y,y.exports,n,a,t,l)}return t[p].exports}for(var s=void 0,d=0;d<l.length;d++)h(l[d]);return h}({1:[function(n,a,t){"use strict";var l=n("inherits"),h=n("multimath"),s=n("multimath/lib/unsharp_mask"),d=n("./mm_resize");function p(u){var g=u||[],v={js:g.indexOf("js")>=0,wasm:g.indexOf("wasm")>=0};h.call(this,v),this.features={js:v.js,wasm:v.wasm&&this.has_wasm()},this.use(s),this.use(d)}l(p,h),p.prototype.resizeAndUnsharp=function(g,v){var y=this.resize(g,v);return g.unsharpAmount&&this.unsharp_mask(y,g.toWidth,g.toHeight,g.unsharpAmount,g.unsharpRadius,g.unsharpThreshold),y},a.exports=p},{"./mm_resize":4,inherits:15,multimath:16,"multimath/lib/unsharp_mask":19}],2:[function(n,a,t){"use strict";function l(d){return d<0?0:d>255?255:d}a.exports={convolveHorizontally:function h(d,p,u,g,v,y){var b,S,E,D,A,P,B,V,X,re,Q,ae=0,K=0;for(X=0;X<g;X++){for(A=0,re=0;re<v;re++){for(P=y[A++],B=y[A++],V=ae+4*P|0,b=S=E=D=0;B>0;B--)D=D+(Q=y[A++])*d[V+3]|0,E=E+Q*d[V+2]|0,S=S+Q*d[V+1]|0,b=b+Q*d[V]|0,V=V+4|0;p[K+3]=l(D+8192>>14),p[K+2]=l(E+8192>>14),p[K+1]=l(S+8192>>14),p[K]=l(b+8192>>14),K=K+4*g|0}K=4*(X+1)|0,ae=(X+1)*u*4|0}},convolveVertically:function s(d,p,u,g,v,y){var b,S,E,D,A,P,B,V,X,re,Q,ae=0,K=0;for(X=0;X<g;X++){for(A=0,re=0;re<v;re++){for(P=y[A++],B=y[A++],V=ae+4*P|0,b=S=E=D=0;B>0;B--)D=D+(Q=y[A++])*d[V+3]|0,E=E+Q*d[V+2]|0,S=S+Q*d[V+1]|0,b=b+Q*d[V]|0,V=V+4|0;p[K+3]=l(D+8192>>14),p[K+2]=l(E+8192>>14),p[K+1]=l(S+8192>>14),p[K]=l(b+8192>>14),K=K+4*g|0}K=4*(X+1)|0,ae=(X+1)*u*4|0}}}},{}],3:[function(n,a,t){"use strict";a.exports="AGFzbQEAAAABFAJgBn9/f39/fwBgB39/f39/f38AAg8BA2VudgZtZW1vcnkCAAEDAwIAAQQEAXAAAAcZAghjb252b2x2ZQAACmNvbnZvbHZlSFYAAQkBAArmAwLBAwEQfwJAIANFDQAgBEUNACAFQQRqIRVBACEMQQAhDQNAIA0hDkEAIRFBACEHA0AgB0ECaiESAn8gBSAHQQF0IgdqIgZBAmouAQAiEwRAQQAhCEEAIBNrIRQgFSAHaiEPIAAgDCAGLgEAakECdGohEEEAIQlBACEKQQAhCwNAIBAoAgAiB0EYdiAPLgEAIgZsIAtqIQsgB0H/AXEgBmwgCGohCCAHQRB2Qf8BcSAGbCAKaiEKIAdBCHZB/wFxIAZsIAlqIQkgD0ECaiEPIBBBBGohECAUQQFqIhQNAAsgEiATagwBC0EAIQtBACEKQQAhCUEAIQggEgshByABIA5BAnRqIApBgMAAakEOdSIGQf8BIAZB/wFIG0EQdEGAgPwHcUEAIAZBAEobIAtBgMAAakEOdSIGQf8BIAZB/wFIG0EYdEEAIAZBAEobciAJQYDAAGpBDnUiBkH/ASAGQf8BSBtBCHRBgP4DcUEAIAZBAEobciAIQYDAAGpBDnUiBkH/ASAGQf8BSBtB/wFxQQAgBkEAShtyNgIAIA4gA2ohDiARQQFqIhEgBEcNAAsgDCACaiEMIA1BAWoiDSADRw0ACwsLIQACQEEAIAIgAyAEIAUgABAAIAJBACAEIAUgBiABEAALCw=="},{}],4:[function(n,a,t){"use strict";a.exports={name:"resize",fn:n("./resize"),wasm_fn:n("./resize_wasm"),wasm_src:n("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(n,a,t){"use strict";var l=n("./resize_filter_gen"),h=n("./convolve").convolveHorizontally,s=n("./convolve").convolveVertically;a.exports=function(u){var g=u.src,v=u.width,y=u.height,b=u.toWidth,S=u.toHeight,E=u.scaleX||u.toWidth/u.width,D=u.scaleY||u.toHeight/u.height,A=u.offsetX||0,P=u.offsetY||0,B=u.dest||new Uint8Array(b*S*4),V=typeof u.quality>"u"?3:u.quality,X=u.alpha||!1,re=l(V,v,b,E,A),Q=l(V,y,S,D,P),ae=new Uint8Array(b*y*4);return h(g,ae,v,y,b,re),s(ae,B,y,b,S,Q),X||function d(p,u,g){for(var v=3,y=u*g*4|0;v<y;)p[v]=255,v=v+4|0}(B,b,S),B}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(n,a,t){"use strict";var l=n("./resize_filter_info"),h=14;function s(d){return Math.round(d*((1<<h)-1))}a.exports=function(p,u,g,v,y){var A,P,B,V,X,re,Q,ae,K,k,$,j,R,U,le,H,b=l[p].filter,S=1/v,E=Math.min(1,v),D=l[p].win/E,N=Math.floor(2*(D+1)),pe=new Int16Array((N+2)*g),de=0,me=!pe.subarray||!pe.set;for(A=0;A<g;A++){for(P=(A+.5)*S+y,B=Math.max(0,Math.floor(P-D)),X=(V=Math.min(u-1,Math.ceil(P+D)))-B+1,re=new Float32Array(X),Q=new Int16Array(X),ae=0,K=B,k=0;K<=V;K++,k++)ae+=$=b((K+.5-P)*E),re[k]=$;for(j=0,k=0;k<re.length;k++)j+=R=re[k]/ae,Q[k]=s(R);for(Q[g>>1]+=s(1-j),U=0;U<Q.length&&0===Q[U];)U++;if(U<Q.length){for(le=Q.length-1;le>0&&0===Q[le];)le--;if(H=le-U+1,pe[de++]=B+U,pe[de++]=H,me)for(k=U;k<=le;k++)pe[de++]=Q[k];else pe.set(Q.subarray(U,le+1),de),de+=H}else pe[de++]=0,pe[de++]=0}return pe}},{"./resize_filter_info":7}],7:[function(n,a,t){"use strict";a.exports=[{win:.5,filter:function(h){return h>=-.5&&h<.5?1:0}},{win:1,filter:function(h){if(h<=-1||h>=1)return 0;if(h>-1.1920929e-7&&h<1.1920929e-7)return 1;var s=h*Math.PI;return Math.sin(s)/s*(.54+.46*Math.cos(s/1))}},{win:2,filter:function(h){if(h<=-2||h>=2)return 0;if(h>-1.1920929e-7&&h<1.1920929e-7)return 1;var s=h*Math.PI;return Math.sin(s)/s*Math.sin(s/2)/(s/2)}},{win:3,filter:function(h){if(h<=-3||h>=3)return 0;if(h>-1.1920929e-7&&h<1.1920929e-7)return 1;var s=h*Math.PI;return Math.sin(s)/s*Math.sin(s/3)/(s/3)}}]},{}],8:[function(n,a,t){"use strict";var l=n("./resize_filter_gen");var d=!0;try{d=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]}catch{}function p(u,g,v){if(d)g.set(function s(u){return new Uint8Array(u.buffer,0,u.byteLength)}(u),v);else for(var y=v,b=0;b<u.length;b++){var S=u[b];g[y++]=255&S,g[y++]=S>>8&255}}a.exports=function(g){var v=g.src,y=g.width,b=g.height,S=g.toWidth,E=g.toHeight,D=g.scaleX||g.toWidth/g.width,A=g.scaleY||g.toHeight/g.height,P=g.offsetX||0,B=g.offsetY||0,V=g.dest||new Uint8Array(S*E*4),X=typeof g.quality>"u"?3:g.quality,re=g.alpha||!1,Q=l(X,y,S,D,P),ae=l(X,b,E,A,B),k=this.__align(0+Math.max(v.byteLength,V.byteLength)),$=this.__align(k+b*S*4),j=this.__align($+Q.byteLength),U=this.__instance("resize",j+ae.byteLength),le=new Uint8Array(this.__memory.buffer),T=new Uint32Array(this.__memory.buffer),H=new Uint32Array(v.buffer);return T.set(H),p(Q,le,$),p(ae,le,j),(U.exports.convolveHV||U.exports._convolveHV)($,j,k,y,b,S,E),new Uint32Array(V.buffer).set(new Uint32Array(this.__memory.buffer,0,E*S)),re||function h(u,g,v){for(var y=3,b=g*v*4|0;y<b;)u[y]=255,y=y+4|0}(V,S,E),V}},{"./resize_filter_gen":6}],9:[function(n,a,t){"use strict";function h(s,d){this.create=s,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=d||2e3}h.prototype.acquire=function(){var d,s=this;return 0!==this.available.length?d=this.available.pop():((d=this.create()).id=this.lastId++,d.release=function(){return s.release(d)}),this.acquired[d.id]=d,d},h.prototype.release=function(s){var d=this;delete this.acquired[s.id],s.lastUsed=Date.now(),this.available.push(s),0===this.timeoutId&&(this.timeoutId=setTimeout(function(){return d.gc()},100))},h.prototype.gc=function(){var s=this,d=Date.now();this.available=this.available.filter(function(p){return!(d-p.lastUsed>s.idle&&(p.destroy(),1))}),this.timeoutId=0!==this.available.length?setTimeout(function(){return s.gc()},100):0},a.exports=h},{}],10:[function(n,a,t){"use strict";a.exports=function(s,d,p,u,g,v){var S=(2*v+2+1)/g;if(S>.5)return[[p,u]];var E=Math.ceil(Math.log(Math.min(p/s,u/d))/Math.log(S));if(E<=1)return[[p,u]];for(var D=[],A=0;A<E;A++){var P=Math.round(Math.pow(Math.pow(s,E-A-1)*Math.pow(p,A+1),1/E)),B=Math.round(Math.pow(Math.pow(d,E-A-1)*Math.pow(u,A+1),1/E));D.push([P,B])}return D}},{}],11:[function(n,a,t){"use strict";var l=1e-5;function h(d){var p=Math.round(d);return Math.abs(d-p)<l?p:Math.floor(d)}function s(d){var p=Math.round(d);return Math.abs(d-p)<l?p:Math.ceil(d)}a.exports=function(p){var u=p.toWidth/p.width,g=p.toHeight/p.height,v=h(p.srcTileSize*u)-2*p.destTileBorder,y=h(p.srcTileSize*g)-2*p.destTileBorder;if(v<1||y<1)throw new Error("Internal error in pica: target tile width/height is too small.");var b,S,E,D,A,P,V,B=[];for(D=0;D<p.toHeight;D+=y)for(E=0;E<p.toWidth;E+=v)(b=E-p.destTileBorder)<0&&(b=0),b+(A=E+v+p.destTileBorder-b)>=p.toWidth&&(A=p.toWidth-b),(S=D-p.destTileBorder)<0&&(S=0),S+(P=D+y+p.destTileBorder-S)>=p.toHeight&&(P=p.toHeight-S),V={toX:b,toY:S,toWidth:A,toHeight:P,toInnerX:E,toInnerY:D,toInnerWidth:v,toInnerHeight:y,offsetX:b/u-h(b/u),offsetY:S/g-h(S/g),scaleX:u,scaleY:g,x:h(b/u),y:h(S/g),width:s(A/u),height:s(P/g)},B.push(V);return B}},{}],12:[function(n,a,t){"use strict";function l(h){return Object.prototype.toString.call(h)}a.exports.isCanvas=function(s){var d=l(s);return"[object HTMLCanvasElement]"===d||"[object OffscreenCanvas]"===d||"[object Canvas]"===d},a.exports.isImage=function(s){return"[object HTMLImageElement]"===l(s)},a.exports.isImageBitmap=function(s){return"[object ImageBitmap]"===l(s)},a.exports.limiter=function(s){var d=0,p=[];function u(){d<s&&p.length&&(d++,p.shift()())}return function(v){return new Promise(function(y,b){p.push(function(){v().then(function(S){y(S),d--,u()},function(S){b(S),d--,u()})}),u()})}},a.exports.cib_quality_name=function(s){switch(s){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},a.exports.cib_support=function(s){return Promise.resolve().then(function(){if(typeof createImageBitmap>"u")return!1;var d=s(100,100);return createImageBitmap(d,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(p){var u=10===p.width;return p.close(),d=null,u})}).catch(function(){return!1})}},{}],13:[function(n,a,t){"use strict";a.exports=function(){var h,l=n("./mathlib");onmessage=function(d){var p=d.data.opts;h||(h=new l(d.data.features));var u=h.resizeAndUnsharp(p);postMessage({result:u},[u.buffer])}}},{"./mathlib":1}],14:[function(n,a,t){var l,h,s,d,p,u;function b(E,D,A,P,B,V){var X,re,Q,ae,K,k,$,j,R,U,le,T,H,N;for(R=0;R<V;R++){for($=R,j=0,ae=K=(X=E[k=R*B])*P[6],le=P[0],T=P[1],H=P[4],N=P[5],U=0;U<B;U++)Q=(re=E[k])*le+X*T+ae*H+K*N,K=ae,X=re,A[j]=ae=Q,j++,k++;for(j--,$+=V*(B-1),ae=K=(X=E[--k])*P[7],re=X,le=P[2],T=P[3],U=B-1;U>=0;U--)Q=re*le+X*T+ae*H+K*N,K=ae,X=re,re=E[k],D[$]=A[j]+(ae=Q),k--,j--,$-=V}}a.exports=function S(E,D,A,P){if(P){var B=new Uint16Array(E.length),V=new Float32Array(Math.max(D,A)),X=function y(E){E<.5&&(E=.5);var D=Math.exp(.527076)/E,A=Math.exp(-D),P=Math.exp(-2*D),B=(1-A)*(1-A)/(1+2*D*A-P);return l=B,h=B*(D-1)*A,s=B*(D+1)*A,d=-B*P,p=2*A,u=-P,new Float32Array([l,h,s,d,p,u,(l+h)/(1-p-u),(s+d)/(1-p-u)])}(P);b(E,B,V,X,D,A),b(B,E,V,X,A,D)}}},{}],15:[function(n,a,t){a.exports="function"==typeof Object.create?function(h,s){s&&(h.super_=s,h.prototype=Object.create(s.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}))}:function(h,s){if(s){h.super_=s;var d=function(){};d.prototype=s.prototype,h.prototype=new d,h.prototype.constructor=h}}},{}],16:[function(n,a,t){"use strict";var l=n("object-assign"),h=n("./lib/base64decode"),s=n("./lib/wa_detect"),d={js:!0,wasm:!0};function p(u){if(!(this instanceof p))return new p(u);var g=l({},d,u||{});if(this.options=g,this.__cache={},this.__init_promise=null,this.__modules=g.modules||{},this.__memory=null,this.__wasm={},this.__isLE=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0],!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}p.prototype.has_wasm=s,p.prototype.use=function(u){return this.__modules[u.name]=u,this[u.name]=this.options.wasm&&this.has_wasm()&&u.wasm_fn?u.wasm_fn:u.fn,this},p.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error('mathlib: only "wasm" was enabled, but it\'s not supported'));var u=this;return this.__init_promise=Promise.all(Object.keys(u.__modules).map(function(g){var v=u.__modules[g];return u.options.wasm&&u.has_wasm()&&v.wasm_fn&&!u.__wasm[g]?WebAssembly.compile(u.__base64decode(v.wasm_src)).then(function(y){u.__wasm[g]=y}):null})).then(function(){return u}),this.__init_promise},p.prototype.__base64decode=h,p.prototype.__reallocate=function(g){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(g/65536)}),this.__memory;var v=this.__memory.buffer.byteLength;return v<g&&this.__memory.grow(Math.ceil((g-v)/65536)),this.__memory},p.prototype.__instance=function(g,v,y){if(v&&this.__reallocate(v),this.__wasm[g]||(this.__wasm[g]=new WebAssembly.Module(this.__base64decode(this.__modules[g].wasm_src))),!this.__cache[g]){var S={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[g]=new WebAssembly.Instance(this.__wasm[g],{env:l(S,y||{})})}return this.__cache[g]},p.prototype.__align=function(g,v){var y=g%(v=v||8);return g+(y?v-y:0)},a.exports=p},{"./lib/base64decode":17,"./lib/wa_detect":23,"object-assign":24}],17:[function(n,a,t){"use strict";a.exports=function(s){for(var d=s.replace(/[\r\n=]/g,""),p=d.length,u=new Uint8Array(3*p>>2),g=0,v=0,y=0;y<p;y++)y%4==0&&y&&(u[v++]=g>>16&255,u[v++]=g>>8&255,u[v++]=255&g),g=g<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(d.charAt(y));var b=p%4*6;return 0===b?(u[v++]=g>>16&255,u[v++]=g>>8&255,u[v++]=255&g):18===b?(u[v++]=g>>10&255,u[v++]=g>>2&255):12===b&&(u[v++]=g>>4&255),u}},{}],18:[function(n,a,t){"use strict";a.exports=function(h,s,d){for(var g,v,y,p=s*d,u=new Uint16Array(p),E=0;E<p;E++)y=h[4*E+2],u[E]=257*(((g=h[4*E])>=(v=h[4*E+1])&&g>=y?g:v>=y&&v>=g?v:y)+(g<=v&&g<=y?g:v<=y&&v<=g?v:y))>>1;return u}},{}],19:[function(n,a,t){"use strict";a.exports={name:"unsharp_mask",fn:n("./unsharp_mask"),wasm_fn:n("./unsharp_mask_wasm"),wasm_src:n("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":20,"./unsharp_mask_wasm":21,"./unsharp_mask_wasm_base64":22}],20:[function(n,a,t){"use strict";var l=n("glur/mono16"),h=n("./hsl_l16");a.exports=function(d,p,u,g,v,y){var b,S,E,D,A,P,B,V,X,re,Q,ae,K;if(!(0===g||v<.5)){v>2&&(v=2);var k=h(d,p,u),$=new Uint16Array(k);l($,p,u,v);for(var j=g/100*4096+.5|0,R=257*y|0,U=p*u,le=0;le<U;le++)ae=2*(k[le]-$[le]),Math.abs(ae)>=R&&(E=d[2+(K=4*le)],P=257*((V=(b=d[K])>=(S=d[K+1])&&b>=E?b:S>=b&&S>=E?S:E)+(B=b<=S&&b<=E?b:S<=b&&S<=E?S:E))>>1,B===V?D=A=0:(A=P<=32767?4095*(V-B)/(V+B)|0:4095*(V-B)/(510-V-B)|0,D=b===V?65535*(S-E)/(6*(V-B))|0:S===V?21845+(65535*(E-b)/(6*(V-B))|0):43690+(65535*(b-S)/(6*(V-B))|0)),(P+=j*ae+2048>>12)>65535?P=65535:P<0&&(P=0),0===A?b=S=E=P>>8:(X=2*P-(re=P<=32767?P*(4096+A)+2048>>12:P+((65535-P)*A+2048>>12))>>8,re>>=8,b=(Q=D+21845&65535)>=43690?X:Q>=32767?X+(6*(re-X)*(43690-Q)+32768>>16):Q>=10922?re:X+(6*(re-X)*Q+32768>>16),S=(Q=65535&D)>=43690?X:Q>=32767?X+(6*(re-X)*(43690-Q)+32768>>16):Q>=10922?re:X+(6*(re-X)*Q+32768>>16),E=(Q=D-21845&65535)>=43690?X:Q>=32767?X+(6*(re-X)*(43690-Q)+32768>>16):Q>=10922?re:X+(6*(re-X)*Q+32768>>16)),d[K]=b,d[K+1]=S,d[K+2]=E)}}},{"./hsl_l16":18,"glur/mono16":14}],21:[function(n,a,t){"use strict";a.exports=function(h,s,d,p,u,g){if(!(0===p||u<.5)){u>2&&(u=2);var v=s*d,y=4*v,b=2*v,S=2*v,E=4*Math.max(s,d),P=y,B=P+b,V=B+S,X=V+S,re=X+E,Q=this.__instance("unsharp_mask",y+b+2*S+E+32,{exp:Math.exp}),ae=new Uint32Array(h.buffer);new Uint32Array(this.__memory.buffer).set(ae);var k=Q.exports.hsl_l16||Q.exports._hsl_l16;k(0,P,s,d),(k=Q.exports.blurMono16||Q.exports._blurMono16)(P,B,V,X,re,s,d,u),(k=Q.exports.unsharp||Q.exports._unsharp)(0,0,P,B,s,d,p,g),ae.set(new Uint32Array(this.__memory.buffer,0,v))}}},{}],22:[function(n,a,t){"use strict";a.exports="AGFzbQEAAAABMQZgAXwBfGACfX8AYAZ/f39/f38AYAh/f39/f39/fQBgBH9/f38AYAh/f39/f39/fwACGQIDZW52A2V4cAAAA2VudgZtZW1vcnkCAAEDBgUBAgMEBQQEAXAAAAdMBRZfX2J1aWxkX2dhdXNzaWFuX2NvZWZzAAEOX19nYXVzczE2X2xpbmUAAgpibHVyTW9ubzE2AAMHaHNsX2wxNgAEB3Vuc2hhcnAABQkBAAqJEAXZAQEGfAJAIAFE24a6Q4Ia+z8gALujIgOaEAAiBCAEoCIGtjgCECABIANEAAAAAAAAAMCiEAAiBbaMOAIUIAFEAAAAAAAA8D8gBKEiAiACoiAEIAMgA6CiRAAAAAAAAPA/oCAFoaMiArY4AgAgASAEIANEAAAAAAAA8L+gIAKioiIHtjgCBCABIAQgA0QAAAAAAADwP6AgAqKiIgO2OAIIIAEgBSACoiIEtow4AgwgASACIAegIAVEAAAAAAAA8D8gBqGgIgKjtjgCGCABIAMgBKEgAqO2OAIcCwu3AwMDfwR9CHwCQCADKgIUIQkgAyoCECEKIAMqAgwhCyADKgIIIQwCQCAEQX9qIgdBAEgiCA0AIAIgAC8BALgiDSADKgIYu6IiDiAJuyIQoiAOIAq7IhGiIA0gAyoCBLsiEqIgAyoCALsiEyANoqCgoCIPtjgCACACQQRqIQIgAEECaiEAIAdFDQAgBCEGA0AgAiAOIBCiIA8iDiARoiANIBKiIBMgAC8BALgiDaKgoKAiD7Y4AgAgAkEEaiECIABBAmohACAGQX9qIgZBAUoNAAsLAkAgCA0AIAEgByAFbEEBdGogAEF+ai8BACIIuCINIAu7IhGiIA0gDLsiEqKgIA0gAyoCHLuiIg4gCrsiE6KgIA4gCbsiFKKgIg8gAkF8aioCALugqzsBACAHRQ0AIAJBeGohAiAAQXxqIQBBACAFQQF0ayEHIAEgBSAEQQF0QXxqbGohBgNAIAghAyAALwEAIQggBiANIBGiIAO4Ig0gEqKgIA8iECAToqAgDiAUoqAiDyACKgIAu6CrOwEAIAYgB2ohBiAAQX5qIQAgAkF8aiECIBAhDiAEQX9qIgRBAUoNAAsLCwvfAgIDfwZ8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIgyaEAAiDSANoCIPtjgCECAEIAxEAAAAAAAAAMCiEAAiDraMOAIUIAREAAAAAAAA8D8gDaEiCyALoiANIAwgDKCiRAAAAAAAAPA/oCAOoaMiC7Y4AgAgBCANIAxEAAAAAAAA8L+gIAuioiIQtjgCBCAEIA0gDEQAAAAAAADwP6AgC6KiIgy2OAIIIAQgDiALoiINtow4AgwgBCALIBCgIA5EAAAAAAAA8D8gD6GgIgujtjgCGCAEIAwgDaEgC6O2OAIcIAYEQCAFQQF0IQogBiEJIAIhCANAIAAgCCADIAQgBSAGEAIgACAKaiEAIAhBAmohCCAJQX9qIgkNAAsLIAVFDQAgBkEBdCEIIAUhAANAIAIgASADIAQgBiAFEAIgAiAIaiECIAFBAmohASAAQX9qIgANAAsLC7wBAQV/IAMgAmwiAwRAQQAgA2shBgNAIAAoAgAiBEEIdiIHQf8BcSECAn8gBEH/AXEiAyAEQRB2IgRB/wFxIgVPBEAgAyIIIAMgAk8NARoLIAQgBCAHIAIgA0kbIAIgBUkbQf8BcQshCAJAIAMgAk0EQCADIAVNDQELIAQgByAEIAMgAk8bIAIgBUsbQf8BcSEDCyAAQQRqIQAgASADIAhqQYECbEEBdjsBACABQQJqIQEgBkEBaiIGDQALCwvTBgEKfwJAIAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6CqIQ0gBSAEbCILBEAgB0GBAmwhDgNAQQAgAi8BACADLwEAayIGQQF0IgdrIAcgBkEASBsgDk8EQCAAQQJqLQAAIQUCfyAALQAAIgYgAEEBai0AACIESSIJRQRAIAYiCCAGIAVPDQEaCyAFIAUgBCAEIAVJGyAGIARLGwshCAJ/IAYgBE0EQCAGIgogBiAFTQ0BGgsgBSAFIAQgBCAFSxsgCRsLIgogCGoiD0GBAmwiEEEBdiERQQAhDAJ/QQAiCSAIIApGDQAaIAggCmsiCUH/H2wgD0H+AyAIayAKayAQQYCABEkbbSEMIAYgCEYEQCAEIAVrQf//A2wgCUEGbG0MAQsgBSAGayAGIARrIAQgCEYiBhtB//8DbCAJQQZsbUHVqgFBqtUCIAYbagshCSARIAcgDWxBgBBqQQx1aiIGQQAgBkEAShsiBkH//wMgBkH//wNIGyEGAkACfwJAIAxB//8DcSIFBEAgBkH//wFKDQEgBUGAIGogBmxBgBBqQQx2DAILIAZBCHYiBiEFIAYhBAwCCyAFIAZB//8Dc2xBgBBqQQx2IAZqCyIFQQh2IQcgBkEBdCAFa0EIdiIGIQQCQCAJQdWqAWpB//8DcSIFQanVAksNACAFQf//AU8EQEGq1QIgBWsgByAGa2xBBmxBgIACakEQdiAGaiEEDAELIAchBCAFQanVAEsNACAFIAcgBmtsQQZsQYCAAmpBEHYgBmohBAsCfyAGIgUgCUH//wNxIghBqdUCSw0AGkGq1QIgCGsgByAGa2xBBmxBgIACakEQdiAGaiAIQf//AU8NABogByIFIAhBqdUASw0AGiAIIAcgBmtsQQZsQYCAAmpBEHYgBmoLIQUgCUGr1QJqQf//A3EiCEGp1QJLDQAgCEH//wFPBEBBqtUCIAhrIAcgBmtsQQZsQYCAAmpBEHYgBmohBgwBCyAIQanVAEsEQCAHIQYMAQsgCCAHIAZrbEEGbEGAgAJqQRB2IAZqIQYLIAEgBDoAACABQQFqIAU6AAAgAUECaiAGOgAACyADQQJqIQMgAkECaiECIABBBGohACABQQRqIQEgC0F/aiILDQALCwsL"},{}],23:[function(n,a,t){"use strict";var l;a.exports=function(){if(typeof l<"u"||(l=!1,typeof WebAssembly>"u"))return l;try{var s=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),d=new WebAssembly.Module(s);return 0!==new WebAssembly.Instance(d,{}).exports.test(4)&&(l=!0),l}catch{}return l}},{}],24:[function(n,a,t){"use strict";var l=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;a.exports=function p(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de","5"===Object.getOwnPropertyNames(u)[0])return!1;for(var g={},v=0;v<10;v++)g["_"+String.fromCharCode(v)]=v;if("0123456789"!==Object.getOwnPropertyNames(g).map(function(S){return g[S]}).join(""))return!1;var b={};return"abcdefghijklmnopqrst".split("").forEach(function(S){b[S]=S}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},b)).join("")}catch{return!1}}()?Object.assign:function(u,g){for(var v,b,y=function d(u){if(null==u)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}(u),S=1;S<arguments.length;S++){for(var E in v=Object(arguments[S]))h.call(v,E)&&(y[E]=v[E]);if(l){b=l(v);for(var D=0;D<b.length;D++)s.call(v,b[D])&&(y[b[D]]=v[b[D]])}}return y}},{}],25:[function(n,a,t){var l=arguments[3],h=arguments[4],s=arguments[5],d=JSON.stringify;a.exports=function(p,u){for(var g,v=Object.keys(s),y=0,b=v.length;y<b;y++){var E=s[S=v[y]].exports;if(E===p||E&&E.default===p){g=S;break}}if(!g){g=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var D={};for(y=0,b=v.length;y<b;y++){var S;D[S=v[y]]=S}h[g]=["function(require,module,exports){"+p+"(self); }",D]}var A=Math.floor(Math.pow(16,8)*Math.random()).toString(16),P={};P[g]=g,h[A]=["function(require,module,exports){var f = require("+d(g)+");(f.default ? f.default : f)(self);}",P];var B={};!function V(k){for(var $ in B[k]=!0,h[k][1]){var j=h[k][1][$];B[j]||V(j)}}(A);var X="("+l+")({"+Object.keys(B).map(function(k){return d(k)+":["+h[k][0]+","+d(h[k][1])+"]"}).join(",")+"},{},["+d(A)+"])",re=window.URL||window.webkitURL||window.mozURL||window.msURL,Q=new Blob([X],{type:"text/javascript"});if(u&&u.bare)return Q;var ae=re.createObjectURL(Q),K=new Worker(ae);return K.objectURL=ae,K}},{}],"/index.js":[function(n,a,t){"use strict";function l($,j){return function u($){if(Array.isArray($))return $}($)||function p($,j){if(!(typeof Symbol>"u")&&Symbol.iterator in Object($)){var R=[],U=!0,le=!1,T=void 0;try{for(var N,H=$[Symbol.iterator]();!(U=(N=H.next()).done)&&(R.push(N.value),!j||R.length!==j);U=!0);}catch(pe){le=!0,T=pe}finally{try{!U&&null!=H.return&&H.return()}finally{if(le)throw T}}return R}}($,j)||function s($,j){if($){if("string"==typeof $)return d($,j);var R=Object.prototype.toString.call($).slice(8,-1);if("Object"===R&&$.constructor&&(R=$.constructor.name),"Map"===R||"Set"===R)return Array.from($);if("Arguments"===R||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return d($,j)}}($,j)||function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d($,j){(null==j||j>$.length)&&(j=$.length);for(var R=0,U=new Array(j);R<j;R++)U[R]=$[R];return U}var g=n("object-assign"),v=n("webworkify"),y=n("./lib/mathlib"),b=n("./lib/pool"),S=n("./lib/utils"),E=n("./lib/worker"),D=n("./lib/stepper"),A=n("./lib/tiler"),P={},B=!1;try{typeof navigator<"u"&&navigator.userAgent&&(B=navigator.userAgent.indexOf("Safari")>=0)}catch{}var V=1;typeof navigator<"u"&&(V=Math.min(navigator.hardwareConcurrency||1,4));var Q,ae,X={tile:1024,concurrency:V,features:["js","wasm","ww"],idle:2e3,createCanvas:function(j,R){var U=document.createElement("canvas");return U.width=j,U.height=R,U}},re={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0};function K(){return{value:v(E),destroy:function(){if(this.value.terminate(),typeof window<"u"){var j=window.URL||window.webkitURL||window.mozURL||window.msURL;j&&j.revokeObjectURL&&this.value.objectURL&&j.revokeObjectURL(this.value.objectURL)}}}}function k($){if(!(this instanceof k))return new k($);this.options=g({},X,$||{});var j="lk_".concat(this.options.concurrency);this.__limit=P[j]||S.limiter(this.options.concurrency),P[j]||(P[j]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}k.prototype.init=function(){var $=this;if(this.__initPromise)return this.__initPromise;if(!1!==Q&&!0!==Q&&(Q=!1,typeof ImageData<"u"&&typeof Uint8ClampedArray<"u"))try{new ImageData(new Uint8ClampedArray(400),10,10),Q=!0}catch{}!1!==ae&&!0!==ae&&(ae=!1,typeof ImageBitmap<"u"&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?ae=!0:this.debug("ImageBitmap does not support .close(), disabled")));var j=this.options.features.slice();if(j.indexOf("all")>=0&&(j=["cib","wasm","js","ww"]),this.__requested_features=j,this.__mathlib=new y(j),j.indexOf("ww")>=0&&typeof window<"u"&&"Worker"in window)try{n("webworkify")(function(){}).terminate(),this.features.ww=!0;var U="wp_".concat(JSON.stringify(this.options));P[U]?this.__workersPool=P[U]:(this.__workersPool=new b(K,this.options.idle),P[U]=this.__workersPool)}catch{}var T,le=this.__mathlib.init().then(function(H){g($.features,H.features)});return T=ae?S.cib_support(this.options.createCanvas).then(function(H){$.features.cib&&j.indexOf("cib")<0?$.debug("createImageBitmap() resize supported, but disabled by config"):j.indexOf("cib")>=0&&($.features.cib=H)}):Promise.resolve(!1),this.__initPromise=Promise.all([le,T]).then(function(){return $}),this.__initPromise},k.prototype.resize=function($,j,R){var U=this;this.debug("Start resize...");var le=g({},re);if(isNaN(R)?R&&(le=g(le,R)):le=g(le,{quality:R}),le.toWidth=j.width,le.toHeight=j.height,le.width=$.naturalWidth||$.width,le.height=$.naturalHeight||$.height,0===j.width||0===j.height)return Promise.reject(new Error("Invalid output size: ".concat(j.width,"x").concat(j.height)));le.unsharpRadius>2&&(le.unsharpRadius=2);var T=!1,H=null;le.cancelToken&&(H=le.cancelToken.then(function(de){throw T=!0,de},function(de){throw T=!0,de}));var pe=Math.ceil(Math.max(3,2.5*le.unsharpRadius|0));return this.init().then(function(){if(T)return H;if(U.features.cib){var de=j.getContext("2d",{alpha:Boolean(le.alpha)});return U.debug("Resize via createImageBitmap()"),createImageBitmap($,{resizeWidth:le.toWidth,resizeHeight:le.toHeight,resizeQuality:S.cib_quality_name(le.quality)}).then(function(Ye){if(T)return H;if(!le.unsharpAmount)return de.drawImage(Ye,0,0),Ye.close(),de=null,U.debug("Finished!"),j;U.debug("Unsharp result");var wt=U.options.createCanvas(le.toWidth,le.toHeight),Wt=wt.getContext("2d",{alpha:Boolean(le.alpha)});Wt.drawImage(Ye,0,0),Ye.close();var Ut=Wt.getImageData(0,0,le.toWidth,le.toHeight);return U.__mathlib.unsharp_mask(Ut.data,le.toWidth,le.toHeight,le.unsharpAmount,le.unsharpRadius,le.unsharpThreshold),de.putImageData(Ut,0,0),wt.width=wt.height=0,Ut=Wt=wt=de=null,U.debug("Finished!"),j})}var me={},se=function(wt,Wt,Ut){var nt,Zt,yt,Fe=!1,ie=function(Ie){return U.__limit(function(){if(T)return H;var dt;if(S.isCanvas(wt))U.debug("Get tile pixel data"),dt=nt.getImageData(Ie.x,Ie.y,Ie.width,Ie.height);else{U.debug("Draw tile imageBitmap/image to temporary canvas");var Mt=U.options.createCanvas(Ie.width,Ie.height),Xt=Mt.getContext("2d",{alpha:Boolean(Ut.alpha)});Xt.globalCompositeOperation="copy",Xt.drawImage(Zt||wt,Ie.x,Ie.y,Ie.width,Ie.height,0,0,Ie.width,Ie.height),U.debug("Get tile pixel data"),dt=Xt.getImageData(0,0,Ie.width,Ie.height),Mt.width=Mt.height=0,Xt=Mt=null}var en={src:dt.data,width:Ie.width,height:Ie.height,toWidth:Ie.toWidth,toHeight:Ie.toHeight,scaleX:Ie.scaleX,scaleY:Ie.scaleY,offsetX:Ie.offsetX,offsetY:Ie.offsetY,quality:Ut.quality,alpha:Ut.alpha,unsharpAmount:Ut.unsharpAmount,unsharpRadius:Ut.unsharpRadius,unsharpThreshold:Ut.unsharpThreshold};return U.debug("Invoke resize math"),Promise.resolve().then(function(){return function(wt){return Promise.resolve().then(function(){return U.features.ww?new Promise(function(Wt,Ut){var nt=U.__workersPool.acquire();H&&H.catch(function(Zt){return Ut(Zt)}),nt.value.onmessage=function(Zt){nt.release(),Zt.data.err?Ut(Zt.data.err):Wt(Zt.data.result)},nt.value.postMessage({opts:wt,features:U.__requested_features,preload:{wasm_nodule:U.__mathlib.__}},[wt.src.buffer])}):U.__mathlib.resizeAndUnsharp(wt,me)})}(en)}).then(function(vt){if(T)return H;var xt;if(dt=null,U.debug("Convert raw rgba tile result to ImageData"),Q)xt=new ImageData(new Uint8ClampedArray(vt),Ie.toWidth,Ie.toHeight);else if((xt=yt.createImageData(Ie.toWidth,Ie.toHeight)).data.set)xt.data.set(vt);else for(var zt=xt.data.length-1;zt>=0;zt--)xt.data[zt]=vt[zt];return U.debug("Draw tile"),B?yt.putImageData(xt,Ie.toX,Ie.toY,Ie.toInnerX-Ie.toX,Ie.toInnerY-Ie.toY,Ie.toInnerWidth+1e-5,Ie.toInnerHeight+1e-5):yt.putImageData(xt,Ie.toX,Ie.toY,Ie.toInnerX-Ie.toX,Ie.toInnerY-Ie.toY,Ie.toInnerWidth,Ie.toInnerHeight),null})})};return Promise.resolve().then(function(){if(yt=Wt.getContext("2d",{alpha:Boolean(Ut.alpha)}),S.isCanvas(wt))return nt=wt.getContext("2d",{alpha:Boolean(Ut.alpha)}),null;if(S.isImageBitmap(wt))return Zt=wt,Fe=!0,null;if(S.isImage(wt))return ae?(U.debug("Decode image via createImageBitmap"),createImageBitmap(wt).then(function(Ce){Zt=Ce}).catch(function(Ce){return null})):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(T)return H;U.debug("Calculate tiles");var Ie=A({width:Ut.width,height:Ut.height,srcTileSize:U.options.tile,toWidth:Ut.toWidth,toHeight:Ut.toHeight,destTileBorder:pe}).map(function(Mt){return ie(Mt)});function dt(){Zt&&(Fe||Zt.close(),Zt=null)}return U.debug("Process tiles"),Promise.all(Ie).then(function(){return U.debug("Finished!"),dt(),Wt},function(Mt){throw dt(),Mt})})};return function Ye(wt,Wt,Ut,nt){if(T)return H;var Ie,Fe=l(wt.shift(),2),yt=Fe[0],ie=Fe[1],Ce=0===wt.length;return nt=g({},nt,{toWidth:yt,toHeight:ie,quality:Ce?nt.quality:Math.min(1,nt.quality)}),Ce||(Ie=U.options.createCanvas(yt,ie)),se(Wt,Ce?Ut:Ie,nt).then(function(){return Ce?Ut:(nt.width=yt,nt.height=ie,Ye(wt,Ie,Ut,nt))}).then(function(dt){return Ie&&(Ie.width=Ie.height=0),dt})}(D(le.width,le.height,le.toWidth,le.toHeight,U.options.tile,pe),$,j,le)})},k.prototype.resizeBuffer=function($){var j=this,R=g({},re,$);return this.init().then(function(){return j.__mathlib.resizeAndUnsharp(R)})},k.prototype.toBlob=function($,j,R){return j=j||"image/png",new Promise(function(U){if($.toBlob)$.toBlob(function(pe){return U(pe)},j,R);else if($.convertToBlob)U($.convertToBlob({type:j,quality:R}));else{for(var le=atob($.toDataURL(j,R).split(",")[1]),T=le.length,H=new Uint8Array(T),N=0;N<T;N++)H[N]=le.charCodeAt(N);U(new Blob([H],{type:j}))}})},k.prototype.debug=function(){},a.exports=k},{"./lib/mathlib":1,"./lib/pool":9,"./lib/stepper":10,"./lib/tiler":11,"./lib/utils":12,"./lib/worker":13,"object-assign":24,webworkify:25}]},{},[])("/index.js")},61135:(oe,x,i)=>{"use strict";i.d(x,{X:()=>n});var e=i(77579);class n extends e.x{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const l=super._subscribe(t);return!l.closed&&t.next(this._value),l}getValue(){const{hasError:t,thrownError:l,_value:h}=this;if(t)throw l;return this._throwIfClosed(),h}next(t){super.next(this._value=t)}}},69751:(oe,x,i)=>{"use strict";i.d(x,{y:()=>d});var e=i(70930),n=i(50727),a=i(48822),t=i(89635),l=i(42416),h=i(30576),s=i(72806);let d=(()=>{class v{constructor(b){b&&(this._subscribe=b)}lift(b){const S=new v;return S.source=this,S.operator=b,S}subscribe(b,S,E){const D=function g(v){return v&&v instanceof e.Lv||function u(v){return v&&(0,h.m)(v.next)&&(0,h.m)(v.error)&&(0,h.m)(v.complete)}(v)&&(0,n.Nn)(v)}(b)?b:new e.Hp(b,S,E);return(0,s.x)(()=>{const{operator:A,source:P}=this;D.add(A?A.call(D,P):P?this._subscribe(D):this._trySubscribe(D))}),D}_trySubscribe(b){try{return this._subscribe(b)}catch(S){b.error(S)}}forEach(b,S){return new(S=p(S))((E,D)=>{const A=new e.Hp({next:P=>{try{b(P)}catch(B){D(B),A.unsubscribe()}},error:D,complete:E});this.subscribe(A)})}_subscribe(b){var S;return null===(S=this.source)||void 0===S?void 0:S.subscribe(b)}[a.L](){return this}pipe(...b){return(0,t.U)(b)(this)}toPromise(b){return new(b=p(b))((S,E)=>{let D;this.subscribe(A=>D=A,A=>E(A),()=>S(D))})}}return v.create=y=>new v(y),v})();function p(v){var y;return null!==(y=v??l.v.Promise)&&void 0!==y?y:Promise}},4707:(oe,x,i)=>{"use strict";i.d(x,{t:()=>a});var e=i(77579),n=i(26063);class a extends e.x{constructor(l=1/0,h=1/0,s=n.l){super(),this._bufferSize=l,this._windowTime=h,this._timestampProvider=s,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=h===1/0,this._bufferSize=Math.max(1,l),this._windowTime=Math.max(1,h)}next(l){const{isStopped:h,_buffer:s,_infiniteTimeWindow:d,_timestampProvider:p,_windowTime:u}=this;h||(s.push(l),!d&&s.push(p.now()+u)),this._trimBuffer(),super.next(l)}_subscribe(l){this._throwIfClosed(),this._trimBuffer();const h=this._innerSubscribe(l),{_infiniteTimeWindow:s,_buffer:d}=this,p=d.slice();for(let u=0;u<p.length&&!l.closed;u+=s?1:2)l.next(p[u]);return this._checkFinalizedStatuses(l),h}_trimBuffer(){const{_bufferSize:l,_timestampProvider:h,_buffer:s,_infiniteTimeWindow:d}=this,p=(d?1:2)*l;if(l<1/0&&p<s.length&&s.splice(0,s.length-p),!d){const u=h.now();let g=0;for(let v=1;v<s.length&&s[v]<=u;v+=2)g=v;g&&s.splice(0,g+1)}}}},77579:(oe,x,i)=>{"use strict";i.d(x,{x:()=>s});var e=i(69751),n=i(50727);const t=(0,i(83888).d)(p=>function(){p(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var l=i(38737),h=i(72806);let s=(()=>{class p extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(g){const v=new d(this,this);return v.operator=g,v}_throwIfClosed(){if(this.closed)throw new t}next(g){(0,h.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const v of this.currentObservers)v.next(g)}})}error(g){(0,h.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=g;const{observers:v}=this;for(;v.length;)v.shift().error(g)}})}complete(){(0,h.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:g}=this;for(;g.length;)g.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var g;return(null===(g=this.observers)||void 0===g?void 0:g.length)>0}_trySubscribe(g){return this._throwIfClosed(),super._trySubscribe(g)}_subscribe(g){return this._throwIfClosed(),this._checkFinalizedStatuses(g),this._innerSubscribe(g)}_innerSubscribe(g){const{hasError:v,isStopped:y,observers:b}=this;return v||y?n.Lc:(this.currentObservers=null,b.push(g),new n.w0(()=>{this.currentObservers=null,(0,l.P)(b,g)}))}_checkFinalizedStatuses(g){const{hasError:v,thrownError:y,isStopped:b}=this;v?g.error(y):b&&g.complete()}asObservable(){const g=new e.y;return g.source=this,g}}return p.create=(u,g)=>new d(u,g),p})();class d extends s{constructor(u,g){super(),this.destination=u,this.source=g}next(u){var g,v;null===(v=null===(g=this.destination)||void 0===g?void 0:g.next)||void 0===v||v.call(g,u)}error(u){var g,v;null===(v=null===(g=this.destination)||void 0===g?void 0:g.error)||void 0===v||v.call(g,u)}complete(){var u,g;null===(g=null===(u=this.destination)||void 0===u?void 0:u.complete)||void 0===g||g.call(u)}_subscribe(u){var g,v;return null!==(v=null===(g=this.source)||void 0===g?void 0:g.subscribe(u))&&void 0!==v?v:n.Lc}}},70930:(oe,x,i)=>{"use strict";i.d(x,{Hp:()=>E,Lv:()=>v});var e=i(30576),n=i(50727),a=i(42416),t=i(87849),l=i(25032);const h=p("C",void 0,void 0);function p(V,X,re){return{kind:V,value:X,error:re}}var u=i(43410),g=i(72806);class v extends n.w0{constructor(X){super(),this.isStopped=!1,X?(this.destination=X,(0,n.Nn)(X)&&X.add(this)):this.destination=B}static create(X,re,Q){return new E(X,re,Q)}next(X){this.isStopped?P(function d(V){return p("N",V,void 0)}(X),this):this._next(X)}error(X){this.isStopped?P(function s(V){return p("E",void 0,V)}(X),this):(this.isStopped=!0,this._error(X))}complete(){this.isStopped?P(h,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(X){this.destination.next(X)}_error(X){try{this.destination.error(X)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const y=Function.prototype.bind;function b(V,X){return y.call(V,X)}class S{constructor(X){this.partialObserver=X}next(X){const{partialObserver:re}=this;if(re.next)try{re.next(X)}catch(Q){D(Q)}}error(X){const{partialObserver:re}=this;if(re.error)try{re.error(X)}catch(Q){D(Q)}else D(X)}complete(){const{partialObserver:X}=this;if(X.complete)try{X.complete()}catch(re){D(re)}}}class E extends v{constructor(X,re,Q){let ae;if(super(),(0,e.m)(X)||!X)ae={next:X??void 0,error:re??void 0,complete:Q??void 0};else{let K;this&&a.v.useDeprecatedNextContext?(K=Object.create(X),K.unsubscribe=()=>this.unsubscribe(),ae={next:X.next&&b(X.next,K),error:X.error&&b(X.error,K),complete:X.complete&&b(X.complete,K)}):ae=X}this.destination=new S(ae)}}function D(V){a.v.useDeprecatedSynchronousErrorHandling?(0,g.O)(V):(0,t.h)(V)}function P(V,X){const{onStoppedNotification:re}=a.v;re&&u.z.setTimeout(()=>re(V,X))}const B={closed:!0,next:l.Z,error:function A(V){throw V},complete:l.Z}},50727:(oe,x,i)=>{"use strict";i.d(x,{Lc:()=>h,w0:()=>l,Nn:()=>s});var e=i(30576);const a=(0,i(83888).d)(p=>function(g){p(this),this.message=g?`${g.length} errors occurred during unsubscription:\n${g.map((v,y)=>`${y+1}) ${v.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=g});var t=i(38737);class l{constructor(u){this.initialTeardown=u,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let u;if(!this.closed){this.closed=!0;const{_parentage:g}=this;if(g)if(this._parentage=null,Array.isArray(g))for(const b of g)b.remove(this);else g.remove(this);const{initialTeardown:v}=this;if((0,e.m)(v))try{v()}catch(b){u=b instanceof a?b.errors:[b]}const{_finalizers:y}=this;if(y){this._finalizers=null;for(const b of y)try{d(b)}catch(S){u=u??[],S instanceof a?u=[...u,...S.errors]:u.push(S)}}if(u)throw new a(u)}}add(u){var g;if(u&&u!==this)if(this.closed)d(u);else{if(u instanceof l){if(u.closed||u._hasParent(this))return;u._addParent(this)}(this._finalizers=null!==(g=this._finalizers)&&void 0!==g?g:[]).push(u)}}_hasParent(u){const{_parentage:g}=this;return g===u||Array.isArray(g)&&g.includes(u)}_addParent(u){const{_parentage:g}=this;this._parentage=Array.isArray(g)?(g.push(u),g):g?[g,u]:u}_removeParent(u){const{_parentage:g}=this;g===u?this._parentage=null:Array.isArray(g)&&(0,t.P)(g,u)}remove(u){const{_finalizers:g}=this;g&&(0,t.P)(g,u),u instanceof l&&u._removeParent(this)}}l.EMPTY=(()=>{const p=new l;return p.closed=!0,p})();const h=l.EMPTY;function s(p){return p instanceof l||p&&"closed"in p&&(0,e.m)(p.remove)&&(0,e.m)(p.add)&&(0,e.m)(p.unsubscribe)}function d(p){(0,e.m)(p)?p():p.unsubscribe()}},42416:(oe,x,i)=>{"use strict";i.d(x,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},94033:(oe,x,i)=>{"use strict";i.d(x,{c:()=>h});var e=i(69751),n=i(50727),a=i(38343),t=i(25403),l=i(54482);class h extends e.y{constructor(d,p){super(),this.source=d,this.subjectFactory=p,this._subject=null,this._refCount=0,this._connection=null,(0,l.A)(d)&&(this.lift=d.lift)}_subscribe(d){return this.getSubject().subscribe(d)}getSubject(){const d=this._subject;return(!d||d.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:d}=this;this._subject=this._connection=null,d?.unsubscribe()}connect(){let d=this._connection;if(!d){d=this._connection=new n.w0;const p=this.getSubject();d.add(this.source.subscribe((0,t.x)(p,void 0,()=>{this._teardown(),p.complete()},u=>{this._teardown(),p.error(u)},()=>this._teardown()))),d.closed&&(this._connection=null,d=n.w0.EMPTY)}return d}refCount(){return(0,a.x)()(this)}}},39841:(oe,x,i)=>{"use strict";i.d(x,{a:()=>u,l:()=>g});var e=i(69751),n=i(54742),a=i(88996),t=i(44671),l=i(83268),h=i(63269),s=i(31810),d=i(25403),p=i(39672);function u(...y){const b=(0,h.yG)(y),S=(0,h.jO)(y),{args:E,keys:D}=(0,n.D)(y);if(0===E.length)return(0,a.D)([],b);const A=new e.y(g(E,b,D?P=>(0,s.n)(D,P):t.y));return S?A.pipe((0,l.Z)(S)):A}function g(y,b,S=t.y){return E=>{v(b,()=>{const{length:D}=y,A=new Array(D);let P=D,B=D;for(let V=0;V<D;V++)v(b,()=>{const X=(0,a.D)(y[V],b);let re=!1;X.subscribe((0,d.x)(E,Q=>{A[V]=Q,re||(re=!0,B--),B||E.next(S(A.slice()))},()=>{--P||E.complete()}))},E)},E)}}function v(y,b,S){y?(0,p.f)(S,y,b):b()}},97272:(oe,x,i)=>{"use strict";i.d(x,{z:()=>l});var e=i(8189),a=i(63269),t=i(88996);function l(...h){return function n(){return(0,e.J)(1)}()((0,t.D)(h,(0,a.yG)(h)))}},49770:(oe,x,i)=>{"use strict";i.d(x,{P:()=>a});var e=i(69751),n=i(38421);function a(t){return new e.y(l=>{(0,n.Xf)(t()).subscribe(l)})}},60515:(oe,x,i)=>{"use strict";i.d(x,{E:()=>n});const n=new(i(69751).y)(l=>l.complete())},4128:(oe,x,i)=>{"use strict";i.d(x,{D:()=>d});var e=i(69751),n=i(54742),a=i(38421),t=i(63269),l=i(25403),h=i(83268),s=i(31810);function d(...p){const u=(0,t.jO)(p),{args:g,keys:v}=(0,n.D)(p),y=new e.y(b=>{const{length:S}=g;if(!S)return void b.complete();const E=new Array(S);let D=S,A=S;for(let P=0;P<S;P++){let B=!1;(0,a.Xf)(g[P]).subscribe((0,l.x)(b,V=>{B||(B=!0,A--),E[P]=V},()=>D--,void 0,()=>{(!D||!B)&&(A||b.next(v?(0,s.n)(v,E):E),b.complete())}))}});return u?y.pipe((0,h.Z)(u)):y}},88996:(oe,x,i)=>{"use strict";i.d(x,{D:()=>X});var e=i(38421),n=i(85363),a=i(49468),h=i(69751),d=i(2202),p=i(30576),u=i(39672);function v(re,Q){if(!re)throw new Error("Iterable cannot be null");return new h.y(ae=>{(0,u.f)(ae,Q,()=>{const K=re[Symbol.asyncIterator]();(0,u.f)(ae,Q,()=>{K.next().then(k=>{k.done?ae.complete():ae.next(k.value)})},0,!0)})})}var y=i(93670),b=i(28239),S=i(81144),E=i(26495),D=i(12206),A=i(44532),P=i(53260);function X(re,Q){return Q?function V(re,Q){if(null!=re){if((0,y.c)(re))return function t(re,Q){return(0,e.Xf)(re).pipe((0,a.R)(Q),(0,n.Q)(Q))}(re,Q);if((0,S.z)(re))return function s(re,Q){return new h.y(ae=>{let K=0;return Q.schedule(function(){K===re.length?ae.complete():(ae.next(re[K++]),ae.closed||this.schedule())})})}(re,Q);if((0,b.t)(re))return function l(re,Q){return(0,e.Xf)(re).pipe((0,a.R)(Q),(0,n.Q)(Q))}(re,Q);if((0,D.D)(re))return v(re,Q);if((0,E.T)(re))return function g(re,Q){return new h.y(ae=>{let K;return(0,u.f)(ae,Q,()=>{K=re[d.h](),(0,u.f)(ae,Q,()=>{let k,$;try{({value:k,done:$}=K.next())}catch(j){return void ae.error(j)}$?ae.complete():ae.next(k)},0,!0)}),()=>(0,p.m)(K?.return)&&K.return()})}(re,Q);if((0,P.L)(re))return function B(re,Q){return v((0,P.Q)(re),Q)}(re,Q)}throw(0,A.z)(re)}(re,Q):(0,e.Xf)(re)}},54968:(oe,x,i)=>{"use strict";i.d(x,{R:()=>u});var e=i(38421),n=i(69751),a=i(86099),t=i(81144),l=i(30576),h=i(83268);const s=["addListener","removeListener"],d=["addEventListener","removeEventListener"],p=["on","off"];function u(S,E,D,A){if((0,l.m)(D)&&(A=D,D=void 0),A)return u(S,E,D).pipe((0,h.Z)(A));const[P,B]=function b(S){return(0,l.m)(S.addEventListener)&&(0,l.m)(S.removeEventListener)}(S)?d.map(V=>X=>S[V](E,X,D)):function v(S){return(0,l.m)(S.addListener)&&(0,l.m)(S.removeListener)}(S)?s.map(g(S,E)):function y(S){return(0,l.m)(S.on)&&(0,l.m)(S.off)}(S)?p.map(g(S,E)):[];if(!P&&(0,t.z)(S))return(0,a.z)(V=>u(V,E,D))((0,e.Xf)(S));if(!P)throw new TypeError("Invalid event target");return new n.y(V=>{const X=(...re)=>V.next(1<re.length?re:re[0]);return P(X),()=>B(X)})}function g(S,E){return D=>A=>S[D](E,A)}},69210:(oe,x,i)=>{"use strict";i.d(x,{R:()=>t});var e=i(69751),n=i(30576),a=i(83268);function t(l,h,s){return s?t(l,h).pipe((0,a.Z)(s)):new e.y(d=>{const p=(...g)=>d.next(1===g.length?g[0]:g),u=l(p);return(0,n.m)(h)?()=>h(p,u):void 0})}},48382:(oe,x,i)=>{"use strict";i.d(x,{s:()=>n});var e=i(49770);function n(a,t,l){return(0,e.P)(()=>a()?t:l)}},38421:(oe,x,i)=>{"use strict";i.d(x,{Xf:()=>y});var e=i(97582),n=i(81144),a=i(28239),t=i(69751),l=i(93670),h=i(12206),s=i(44532),d=i(26495),p=i(53260),u=i(30576),g=i(87849),v=i(48822);function y(V){if(V instanceof t.y)return V;if(null!=V){if((0,l.c)(V))return function b(V){return new t.y(X=>{const re=V[v.L]();if((0,u.m)(re.subscribe))return re.subscribe(X);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(V);if((0,n.z)(V))return function S(V){return new t.y(X=>{for(let re=0;re<V.length&&!X.closed;re++)X.next(V[re]);X.complete()})}(V);if((0,a.t)(V))return function E(V){return new t.y(X=>{V.then(re=>{X.closed||(X.next(re),X.complete())},re=>X.error(re)).then(null,g.h)})}(V);if((0,h.D)(V))return A(V);if((0,d.T)(V))return function D(V){return new t.y(X=>{for(const re of V)if(X.next(re),X.closed)return;X.complete()})}(V);if((0,p.L)(V))return function P(V){return A((0,p.Q)(V))}(V)}throw(0,s.z)(V)}function A(V){return new t.y(X=>{(function B(V,X){var re,Q,ae,K;return(0,e.mG)(this,void 0,void 0,function*(){try{for(re=(0,e.KL)(V);!(Q=yield re.next()).done;)if(X.next(Q.value),X.closed)return}catch(k){ae={error:k}}finally{try{Q&&!Q.done&&(K=re.return)&&(yield K.call(re))}finally{if(ae)throw ae.error}}X.complete()})})(V,X).catch(re=>X.error(re))})}},17445:(oe,x,i)=>{"use strict";i.d(x,{F:()=>a});var e=i(34986),n=i(82805);function a(t=0,l=e.z){return t<0&&(t=0),(0,n.H)(t,t,l)}},56451:(oe,x,i)=>{"use strict";i.d(x,{T:()=>h});var e=i(8189),n=i(38421),a=i(60515),t=i(63269),l=i(88996);function h(...s){const d=(0,t.yG)(s),p=(0,t._6)(s,1/0),u=s;return u.length?1===u.length?(0,n.Xf)(u[0]):(0,e.J)(p)((0,l.D)(u,d)):a.E}},39646:(oe,x,i)=>{"use strict";i.d(x,{of:()=>a});var e=i(63269),n=i(88996);function a(...t){const l=(0,e.yG)(t);return(0,n.D)(t,l)}},62843:(oe,x,i)=>{"use strict";i.d(x,{_:()=>a});var e=i(69751),n=i(30576);function a(t,l){const h=(0,n.m)(t)?t:()=>t,s=d=>d.error(h());return new e.y(l?d=>l.schedule(s,0,d):s)}},82805:(oe,x,i)=>{"use strict";i.d(x,{H:()=>l});var e=i(69751),n=i(34986),a=i(93532),t=i(51165);function l(h=0,s,d=n.P){let p=-1;return null!=s&&((0,a.K)(s)?d=s:p=s),new e.y(u=>{let g=(0,t.q)(h)?+h-d.now():h;g<0&&(g=0);let v=0;return d.schedule(function(){u.closed||(u.next(v++),0<=p?this.schedule(void 0,p):u.complete())},g)})}},25403:(oe,x,i)=>{"use strict";i.d(x,{Q:()=>a,x:()=>n});var e=i(70930);function n(t,l,h,s,d){return new a(t,l,h,s,d)}class a extends e.Lv{constructor(l,h,s,d,p,u){super(l),this.onFinalize=p,this.shouldUnsubscribe=u,this._next=h?function(g){try{h(g)}catch(v){l.error(v)}}:super._next,this._error=d?function(g){try{d(g)}catch(v){l.error(v)}finally{this.unsubscribe()}}:super._error,this._complete=s?function(){try{s()}catch(g){l.error(g)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var l;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:h}=this;super.unsubscribe(),!h&&(null===(l=this.onFinalize)||void 0===l||l.call(this))}}}},23601:(oe,x,i)=>{"use strict";i.d(x,{e:()=>s});var e=i(34986),n=i(54482),a=i(38421),t=i(25403),h=i(82805);function s(d,p=e.z){return function l(d){return(0,n.e)((p,u)=>{let g=!1,v=null,y=null,b=!1;const S=()=>{if(y?.unsubscribe(),y=null,g){g=!1;const D=v;v=null,u.next(D)}b&&u.complete()},E=()=>{y=null,b&&u.complete()};p.subscribe((0,t.x)(u,D=>{g=!0,v=D,y||(0,a.Xf)(d(D)).subscribe(y=(0,t.x)(u,S,E))},()=>{b=!0,(!g||!y||y.closed)&&u.complete()}))})}(()=>(0,h.H)(d,p))}},70262:(oe,x,i)=>{"use strict";i.d(x,{K:()=>t});var e=i(38421),n=i(25403),a=i(54482);function t(l){return(0,a.e)((h,s)=>{let u,d=null,p=!1;d=h.subscribe((0,n.x)(s,void 0,void 0,g=>{u=(0,e.Xf)(l(g,t(l)(h))),d?(d.unsubscribe(),d=null,u.subscribe(s)):p=!0})),p&&(d.unsubscribe(),d=null,u.subscribe(s))})}},24351:(oe,x,i)=>{"use strict";i.d(x,{b:()=>a});var e=i(86099),n=i(30576);function a(t,l){return(0,n.m)(l)?(0,e.z)(t,l,1):(0,e.z)(t,1)}},86638:(oe,x,i)=>{"use strict";i.d(x,{$:()=>s});var e=i(77579),n=i(38421),a=i(54482),t=i(69751);const h={connector:()=>new e.x};function s(d,p=h){const{connector:u}=p;return(0,a.e)((g,v)=>{const y=u();(0,n.Xf)(d(function l(d){return new t.y(p=>d.subscribe(p))}(y))).subscribe(v),v.add(g.subscribe(y))})}},78372:(oe,x,i)=>{"use strict";i.d(x,{b:()=>t});var e=i(34986),n=i(54482),a=i(25403);function t(l,h=e.z){return(0,n.e)((s,d)=>{let p=null,u=null,g=null;const v=()=>{if(p){p.unsubscribe(),p=null;const b=u;u=null,d.next(b)}};function y(){const b=g+l,S=h.now();if(S<b)return p=this.schedule(void 0,b-S),void d.add(p);v()}s.subscribe((0,a.x)(d,b=>{u=b,g=h.now(),p||(p=h.schedule(y,l),d.add(p))},()=>{v(),d.complete()},void 0,()=>{u=p=null}))})}},46590:(oe,x,i)=>{"use strict";i.d(x,{d:()=>a});var e=i(54482),n=i(25403);function a(t){return(0,e.e)((l,h)=>{let s=!1;l.subscribe((0,n.x)(h,d=>{s=!0,h.next(d)},()=>{s||h.next(t),h.complete()}))})}},94086:(oe,x,i)=>{"use strict";i.d(x,{g:()=>u});var e=i(34986),n=i(97272),a=i(95698),t=i(38502),l=i(69718),h=i(86099),s=i(38421);function d(g,v){return v?y=>(0,n.z)(v.pipe((0,a.q)(1),(0,t.l)()),y.pipe(d(g))):(0,h.z)((y,b)=>(0,s.Xf)(g(y,b)).pipe((0,a.q)(1),(0,l.h)(y)))}var p=i(82805);function u(g,v=e.z){const y=(0,p.H)(g,v);return d(()=>y)}},71884:(oe,x,i)=>{"use strict";i.d(x,{x:()=>t});var e=i(44671),n=i(54482),a=i(25403);function t(h,s=e.y){return h=h??l,(0,n.e)((d,p)=>{let u,g=!0;d.subscribe((0,a.x)(p,v=>{const y=s(v);(g||!h(u,y))&&(g=!1,u=y,p.next(v))}))})}function l(h,s){return h===s}},36129:(oe,x,i)=>{"use strict";i.d(x,{z:()=>l});var e=i(54004),n=i(38421),a=i(54482),t=i(25403);function l(h,s){return s?d=>d.pipe(l((p,u)=>(0,n.Xf)(h(p,u)).pipe((0,e.U)((g,v)=>s(p,g,u,v))))):(0,a.e)((d,p)=>{let u=0,g=null,v=!1;d.subscribe((0,t.x)(p,y=>{g||(g=(0,t.x)(p,void 0,()=>{g=null,v&&p.complete()}),(0,n.Xf)(h(y,u++)).subscribe(g))},()=>{v=!0,!g&&p.complete()}))})}},39300:(oe,x,i)=>{"use strict";i.d(x,{h:()=>a});var e=i(54482),n=i(25403);function a(t,l){return(0,e.e)((h,s)=>{let d=0;h.subscribe((0,n.x)(s,p=>t.call(l,p,d++)&&s.next(p)))})}},28746:(oe,x,i)=>{"use strict";i.d(x,{x:()=>n});var e=i(54482);function n(a){return(0,e.e)((t,l)=>{try{t.subscribe(l)}finally{l.add(a)}})}},50590:(oe,x,i)=>{"use strict";i.d(x,{P:()=>s});var e=i(86805),n=i(39300),a=i(95698),t=i(46590),l=i(18068),h=i(44671);function s(d,p){const u=arguments.length>=2;return g=>g.pipe(d?(0,n.h)((v,y)=>d(v,y,g)):h.y,(0,a.q)(1),u?(0,t.d)(p):(0,l.T)(()=>new e.K))}},38502:(oe,x,i)=>{"use strict";i.d(x,{l:()=>t});var e=i(54482),n=i(25403),a=i(25032);function t(){return(0,e.e)((l,h)=>{l.subscribe((0,n.x)(h,a.Z))})}},54004:(oe,x,i)=>{"use strict";i.d(x,{U:()=>a});var e=i(54482),n=i(25403);function a(t,l){return(0,e.e)((h,s)=>{let d=0;h.subscribe((0,n.x)(s,p=>{s.next(t.call(l,p,d++))}))})}},69718:(oe,x,i)=>{"use strict";i.d(x,{h:()=>n});var e=i(54004);function n(a){return(0,e.U)(()=>a)}},8189:(oe,x,i)=>{"use strict";i.d(x,{J:()=>a});var e=i(86099),n=i(44671);function a(t=1/0){return(0,e.z)(n.y,t)}},72733:(oe,x,i)=>{"use strict";i.d(x,{p:()=>t});var e=i(38421),n=i(39672),a=i(25403);function t(l,h,s,d,p,u,g,v){const y=[];let b=0,S=0,E=!1;const D=()=>{E&&!y.length&&!b&&h.complete()},A=B=>b<d?P(B):y.push(B),P=B=>{u&&h.next(B),b++;let V=!1;(0,e.Xf)(s(B,S++)).subscribe((0,a.x)(h,X=>{p?.(X),u?A(X):h.next(X)},()=>{V=!0},void 0,()=>{if(V)try{for(b--;y.length&&b<d;){const X=y.shift();g?(0,n.f)(h,g,()=>P(X)):P(X)}D()}catch(X){h.error(X)}}))};return l.subscribe((0,a.x)(h,A,()=>{E=!0,D()})),()=>{v?.()}}},86099:(oe,x,i)=>{"use strict";i.d(x,{z:()=>h});var e=i(54004),n=i(38421),a=i(54482),t=i(72733),l=i(30576);function h(s,d,p=1/0){return(0,l.m)(d)?h((u,g)=>(0,e.U)((v,y)=>d(u,v,g,y))((0,n.Xf)(s(u,g))),p):("number"==typeof d&&(p=d),(0,a.e)((u,g)=>(0,t.p)(u,g,s,p)))}},249:(oe,x,i)=>{"use strict";i.d(x,{O:()=>t});var e=i(94033),n=i(30576),a=i(86638);function t(l,h){const s=(0,n.m)(l)?l:()=>l;return(0,n.m)(h)?(0,a.$)(h,{connector:s}):d=>new e.c(d,s)}},85363:(oe,x,i)=>{"use strict";i.d(x,{Q:()=>t});var e=i(39672),n=i(54482),a=i(25403);function t(l,h=0){return(0,n.e)((s,d)=>{s.subscribe((0,a.x)(d,p=>(0,e.f)(d,l,()=>d.next(p),h),()=>(0,e.f)(d,l,()=>d.complete(),h),p=>(0,e.f)(d,l,()=>d.error(p),h)))})}},94813:(oe,x,i)=>{"use strict";i.d(x,{j:()=>n});var e=i(54004);function n(...a){const t=a.length;if(0===t)throw new Error("list of properties cannot be empty.");return(0,e.U)(l=>{let h=l;for(let s=0;s<t;s++){const d=h?.[a[s]];if(!(typeof d<"u"))return;h=d}return h})}},13446:(oe,x,i)=>{"use strict";i.d(x,{n:()=>t});var e=i(77579),n=i(249),a=i(86638);function t(l){return l?h=>(0,a.$)(l)(h):h=>(0,n.O)(new e.x)(h)}},38343:(oe,x,i)=>{"use strict";i.d(x,{x:()=>a});var e=i(54482),n=i(25403);function a(){return(0,e.e)((t,l)=>{let h=null;t._refCount++;const s=(0,n.x)(l,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(h=null);const d=t._connection,p=h;h=null,d&&(!p||d===p)&&d.unsubscribe(),l.unsubscribe()});t.subscribe(s),s.closed||(h=t.connect())})}},22940:(oe,x,i)=>{"use strict";i.d(x,{R:()=>a});var e=i(54482),n=i(57359);function a(t,l){return(0,e.e)((0,n.U)(t,l,arguments.length>=2,!0))}},57359:(oe,x,i)=>{"use strict";i.d(x,{U:()=>n});var e=i(25403);function n(a,t,l,h,s){return(d,p)=>{let u=l,g=t,v=0;d.subscribe((0,e.x)(p,y=>{const b=v++;g=u?a(g,y,b):(u=!0,y),h&&p.next(g)},s&&(()=>{u&&p.next(g),p.complete()})))}}},13099:(oe,x,i)=>{"use strict";i.d(x,{B:()=>l});var e=i(38421),n=i(77579),a=i(70930),t=i(54482);function l(s={}){const{connector:d=(()=>new n.x),resetOnError:p=!0,resetOnComplete:u=!0,resetOnRefCountZero:g=!0}=s;return v=>{let y,b,S,E=0,D=!1,A=!1;const P=()=>{b?.unsubscribe(),b=void 0},B=()=>{P(),y=S=void 0,D=A=!1},V=()=>{const X=y;B(),X?.unsubscribe()};return(0,t.e)((X,re)=>{E++,!A&&!D&&P();const Q=S=S??d();re.add(()=>{E--,0===E&&!A&&!D&&(b=h(V,g))}),Q.subscribe(re),!y&&E>0&&(y=new a.Hp({next:ae=>Q.next(ae),error:ae=>{A=!0,P(),b=h(B,p,ae),Q.error(ae)},complete:()=>{D=!0,P(),b=h(B,u),Q.complete()}}),(0,e.Xf)(X).subscribe(y))})(v)}}function h(s,d,...p){if(!0===d)return void s();if(!1===d)return;const u=new a.Hp({next:()=>{u.unsubscribe(),s()}});return(0,e.Xf)(d(...p)).subscribe(u)}},34782:(oe,x,i)=>{"use strict";i.d(x,{d:()=>a});var e=i(4707),n=i(13099);function a(t,l,h){let s,d=!1;return t&&"object"==typeof t?({bufferSize:s=1/0,windowTime:l=1/0,refCount:d=!1,scheduler:h}=t):s=t??1/0,(0,n.B)({connector:()=>new e.t(s,l,h),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:d})}},35684:(oe,x,i)=>{"use strict";i.d(x,{T:()=>n});var e=i(39300);function n(a){return(0,e.h)((t,l)=>a<=l)}},54244:(oe,x,i)=>{"use strict";i.d(x,{n:()=>a});var e=i(54482),n=i(25403);function a(t){return(0,e.e)((l,h)=>{let s=!1,d=0;l.subscribe((0,n.x)(h,p=>(s||(s=!t(p,d++)))&&h.next(p)))})}},68675:(oe,x,i)=>{"use strict";i.d(x,{O:()=>t});var e=i(97272),n=i(63269),a=i(54482);function t(...l){const h=(0,n.yG)(l);return(0,a.e)((s,d)=>{(h?(0,e.z)(l,s,h):(0,e.z)(l,s)).subscribe(d)})}},49468:(oe,x,i)=>{"use strict";i.d(x,{R:()=>n});var e=i(54482);function n(a,t=0){return(0,e.e)((l,h)=>{h.add(a.schedule(()=>l.subscribe(h),t))})}},63900:(oe,x,i)=>{"use strict";i.d(x,{w:()=>t});var e=i(38421),n=i(54482),a=i(25403);function t(l,h){return(0,n.e)((s,d)=>{let p=null,u=0,g=!1;const v=()=>g&&!p&&d.complete();s.subscribe((0,a.x)(d,y=>{p?.unsubscribe();let b=0;const S=u++;(0,e.Xf)(l(y,S)).subscribe(p=(0,a.x)(d,E=>d.next(h?h(y,E,S,b++):E),()=>{p=null,v()}))},()=>{g=!0,v()}))})}},95698:(oe,x,i)=>{"use strict";i.d(x,{q:()=>t});var e=i(60515),n=i(54482),a=i(25403);function t(l){return l<=0?()=>e.E:(0,n.e)((h,s)=>{let d=0;h.subscribe((0,a.x)(s,p=>{++d<=l&&(s.next(p),l<=d&&s.complete())}))})}},82722:(oe,x,i)=>{"use strict";i.d(x,{R:()=>l});var e=i(54482),n=i(25403),a=i(38421),t=i(25032);function l(h){return(0,e.e)((s,d)=>{(0,a.Xf)(h).subscribe((0,n.x)(d,()=>d.complete(),t.Z)),!d.closed&&s.subscribe(d)})}},22529:(oe,x,i)=>{"use strict";i.d(x,{o:()=>a});var e=i(54482),n=i(25403);function a(t,l=!1){return(0,e.e)((h,s)=>{let d=0;h.subscribe((0,n.x)(s,p=>{const u=t(p,d++);(u||l)&&s.next(p),!u&&s.complete()}))})}},18505:(oe,x,i)=>{"use strict";i.d(x,{b:()=>l});var e=i(30576),n=i(54482),a=i(25403),t=i(44671);function l(h,s,d){const p=(0,e.m)(h)||s||d?{next:h,error:s,complete:d}:h;return p?(0,n.e)((u,g)=>{var v;null===(v=p.subscribe)||void 0===v||v.call(p);let y=!0;u.subscribe((0,a.x)(g,b=>{var S;null===(S=p.next)||void 0===S||S.call(p,b),g.next(b)},()=>{var b;y=!1,null===(b=p.complete)||void 0===b||b.call(p),g.complete()},b=>{var S;y=!1,null===(S=p.error)||void 0===S||S.call(p,b),g.error(b)},()=>{var b,S;y&&(null===(b=p.unsubscribe)||void 0===b||b.call(p)),null===(S=p.finalize)||void 0===S||S.call(p)}))}):t.y}},18068:(oe,x,i)=>{"use strict";i.d(x,{T:()=>t});var e=i(86805),n=i(54482),a=i(25403);function t(h=l){return(0,n.e)((s,d)=>{let p=!1;s.subscribe((0,a.x)(d,u=>{p=!0,d.next(u)},()=>p?d.complete():d.error(h())))})}function l(){return new e.K}},17414:(oe,x,i)=>{"use strict";i.d(x,{V:()=>p});var e=i(34986),n=i(51165),a=i(54482),t=i(38421),l=i(83888),h=i(25403),s=i(39672);const d=(0,l.d)(g=>function(y=null){g(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=y});function p(g,v){const{first:y,each:b,with:S=u,scheduler:E=v??e.z,meta:D=null}=(0,n.q)(g)?{first:g}:"number"==typeof g?{each:g}:g;if(null==y&&null==b)throw new TypeError("No timeout provided.");return(0,a.e)((A,P)=>{let B,V,X=null,re=0;const Q=ae=>{V=(0,s.f)(P,E,()=>{try{B.unsubscribe(),(0,t.Xf)(S({meta:D,lastValue:X,seen:re})).subscribe(P)}catch(K){P.error(K)}},ae)};B=A.subscribe((0,h.x)(P,ae=>{V?.unsubscribe(),re++,P.next(X=ae),b>0&&Q(b)},void 0,void 0,()=>{V?.closed||V?.unsubscribe(),X=null})),!re&&Q(null!=y?"number"==typeof y?y:+y-E.now():b)})}function u(g){throw new d(g)}},11365:(oe,x,i)=>{"use strict";i.d(x,{M:()=>s});var e=i(54482),n=i(25403),a=i(38421),t=i(44671),l=i(25032),h=i(63269);function s(...d){const p=(0,h.jO)(d);return(0,e.e)((u,g)=>{const v=d.length,y=new Array(v);let b=d.map(()=>!1),S=!1;for(let E=0;E<v;E++)(0,a.Xf)(d[E]).subscribe((0,n.x)(g,D=>{y[E]=D,!S&&!b[E]&&(b[E]=!0,(S=b.every(t.y))&&(b=null))},l.Z));u.subscribe((0,n.x)(g,E=>{if(S){const D=[E,...y];g.next(p?p(...D):D)}}))})}},84408:(oe,x,i)=>{"use strict";i.d(x,{o:()=>l});var e=i(50727);class n extends e.w0{constructor(s,d){super()}schedule(s,d=0){return this}}const a={setInterval(h,s,...d){const{delegate:p}=a;return p?.setInterval?p.setInterval(h,s,...d):setInterval(h,s,...d)},clearInterval(h){const{delegate:s}=a;return(s?.clearInterval||clearInterval)(h)},delegate:void 0};var t=i(38737);class l extends n{constructor(s,d){super(s,d),this.scheduler=s,this.work=d,this.pending=!1}schedule(s,d=0){var p;if(this.closed)return this;this.state=s;const u=this.id,g=this.scheduler;return null!=u&&(this.id=this.recycleAsyncId(g,u,d)),this.pending=!0,this.delay=d,this.id=null!==(p=this.id)&&void 0!==p?p:this.requestAsyncId(g,this.id,d),this}requestAsyncId(s,d,p=0){return a.setInterval(s.flush.bind(s,this),p)}recycleAsyncId(s,d,p=0){if(null!=p&&this.delay===p&&!1===this.pending)return d;null!=d&&a.clearInterval(d)}execute(s,d){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const p=this._execute(s,d);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(s,d){let u,p=!1;try{this.work(s)}catch(g){p=!0,u=g||new Error("Scheduled action threw falsy error")}if(p)return this.unsubscribe(),u}unsubscribe(){if(!this.closed){const{id:s,scheduler:d}=this,{actions:p}=d;this.work=this.state=this.scheduler=null,this.pending=!1,(0,t.P)(p,this),null!=s&&(this.id=this.recycleAsyncId(d,s,null)),this.delay=null,super.unsubscribe()}}}},97565:(oe,x,i)=>{"use strict";i.d(x,{v:()=>a});var e=i(26063);class n{constructor(l,h=n.now){this.schedulerActionCtor=l,this.now=h}schedule(l,h=0,s){return new this.schedulerActionCtor(this,l).schedule(s,h)}}n.now=e.l.now;class a extends n{constructor(l,h=n.now){super(l,h),this.actions=[],this._active=!1}flush(l){const{actions:h}=this;if(this._active)return void h.push(l);let s;this._active=!0;do{if(s=l.execute(l.state,l.delay))break}while(l=h.shift());if(this._active=!1,s){for(;l=h.shift();)l.unsubscribe();throw s}}}},66406:(oe,x,i)=>{"use strict";i.d(x,{Z:()=>s});var e=i(84408),n=i(50727);const a={schedule(p){let u=requestAnimationFrame,g=cancelAnimationFrame;const{delegate:v}=a;v&&(u=v.requestAnimationFrame,g=v.cancelAnimationFrame);const y=u(b=>{g=void 0,p(b)});return new n.w0(()=>g?.(y))},requestAnimationFrame(...p){const{delegate:u}=a;return(u?.requestAnimationFrame||requestAnimationFrame)(...p)},cancelAnimationFrame(...p){const{delegate:u}=a;return(u?.cancelAnimationFrame||cancelAnimationFrame)(...p)},delegate:void 0};var l=i(97565);const s=new class h extends l.v{flush(u){this._active=!0;const g=this._scheduled;this._scheduled=void 0;const{actions:v}=this;let y;u=u||v.shift();do{if(y=u.execute(u.state,u.delay))break}while((u=v[0])&&u.id===g&&v.shift());if(this._active=!1,y){for(;(u=v[0])&&u.id===g&&v.shift();)u.unsubscribe();throw y}}}(class t extends e.o{constructor(u,g){super(u,g),this.scheduler=u,this.work=g}requestAsyncId(u,g,v=0){return null!==v&&v>0?super.requestAsyncId(u,g,v):(u.actions.push(this),u._scheduled||(u._scheduled=a.requestAnimationFrame(()=>u.flush(void 0))))}recycleAsyncId(u,g,v=0){var y;if(null!=v?v>0:this.delay>0)return super.recycleAsyncId(u,g,v);const{actions:b}=u;null!=g&&(null===(y=b[b.length-1])||void 0===y?void 0:y.id)!==g&&(a.cancelAnimationFrame(g),u._scheduled=void 0)}})},53101:(oe,x,i)=>{"use strict";i.d(x,{E:()=>b});var e=i(84408);let a,n=1;const t={};function l(E){return E in t&&(delete t[E],!0)}const h={setImmediate(E){const D=n++;return t[D]=!0,a||(a=Promise.resolve()),a.then(()=>l(D)&&E()),D},clearImmediate(E){l(E)}},{setImmediate:d,clearImmediate:p}=h,u={setImmediate(...E){const{delegate:D}=u;return(D?.setImmediate||d)(...E)},clearImmediate(E){const{delegate:D}=u;return(D?.clearImmediate||p)(E)},delegate:void 0};var v=i(97565);const b=new class y extends v.v{flush(D){this._active=!0;const A=this._scheduled;this._scheduled=void 0;const{actions:P}=this;let B;D=D||P.shift();do{if(B=D.execute(D.state,D.delay))break}while((D=P[0])&&D.id===A&&P.shift());if(this._active=!1,B){for(;(D=P[0])&&D.id===A&&P.shift();)D.unsubscribe();throw B}}}(class g extends e.o{constructor(D,A){super(D,A),this.scheduler=D,this.work=A}requestAsyncId(D,A,P=0){return null!==P&&P>0?super.requestAsyncId(D,A,P):(D.actions.push(this),D._scheduled||(D._scheduled=u.setImmediate(D.flush.bind(D,void 0))))}recycleAsyncId(D,A,P=0){var B;if(null!=P?P>0:this.delay>0)return super.recycleAsyncId(D,A,P);const{actions:V}=D;null!=A&&(null===(B=V[V.length-1])||void 0===B?void 0:B.id)!==A&&(u.clearImmediate(A),D._scheduled===A&&(D._scheduled=void 0))}})},34986:(oe,x,i)=>{"use strict";i.d(x,{P:()=>t,z:()=>a});var e=i(84408);const a=new(i(97565).v)(e.o),t=a},26063:(oe,x,i)=>{"use strict";i.d(x,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(oe,x,i)=>{"use strict";i.d(x,{N:()=>l});var e=i(84408),a=i(97565);const l=new class t extends a.v{}(class n extends e.o{constructor(d,p){super(d,p),this.scheduler=d,this.work=p}schedule(d,p=0){return p>0?super.schedule(d,p):(this.delay=p,this.state=d,this.scheduler.flush(this),this)}execute(d,p){return p>0||this.closed?super.execute(d,p):this._execute(d,p)}requestAsyncId(d,p,u=0){return null!=u&&u>0||null==u&&this.delay>0?super.requestAsyncId(d,p,u):(d.flush(this),0)}})},43410:(oe,x,i)=>{"use strict";i.d(x,{z:()=>e});const e={setTimeout(n,a,...t){const{delegate:l}=e;return l?.setTimeout?l.setTimeout(n,a,...t):setTimeout(n,a,...t)},clearTimeout(n){const{delegate:a}=e;return(a?.clearTimeout||clearTimeout)(n)},delegate:void 0}},2202:(oe,x,i)=>{"use strict";i.d(x,{h:()=>n});const n=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(oe,x,i)=>{"use strict";i.d(x,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(oe,x,i)=>{"use strict";i.d(x,{K:()=>n});const n=(0,i(83888).d)(a=>function(){a(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(oe,x,i)=>{"use strict";i.d(x,{_6:()=>h,jO:()=>t,yG:()=>l});var e=i(30576),n=i(93532);function a(s){return s[s.length-1]}function t(s){return(0,e.m)(a(s))?s.pop():void 0}function l(s){return(0,n.K)(a(s))?s.pop():void 0}function h(s,d){return"number"==typeof a(s)?s.pop():d}},54742:(oe,x,i)=>{"use strict";i.d(x,{D:()=>l});const{isArray:e}=Array,{getPrototypeOf:n,prototype:a,keys:t}=Object;function l(s){if(1===s.length){const d=s[0];if(e(d))return{args:d,keys:null};if(function h(s){return s&&"object"==typeof s&&n(s)===a}(d)){const p=t(d);return{args:p.map(u=>d[u]),keys:p}}}return{args:s,keys:null}}},38737:(oe,x,i)=>{"use strict";function e(n,a){if(n){const t=n.indexOf(a);0<=t&&n.splice(t,1)}}i.d(x,{P:()=>e})},83888:(oe,x,i)=>{"use strict";function e(n){const t=n(l=>{Error.call(l),l.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}i.d(x,{d:()=>e})},31810:(oe,x,i)=>{"use strict";function e(n,a){return n.reduce((t,l,h)=>(t[l]=a[h],t),{})}i.d(x,{n:()=>e})},72806:(oe,x,i)=>{"use strict";i.d(x,{O:()=>t,x:()=>a});var e=i(42416);let n=null;function a(l){if(e.v.useDeprecatedSynchronousErrorHandling){const h=!n;if(h&&(n={errorThrown:!1,error:null}),l(),h){const{errorThrown:s,error:d}=n;if(n=null,s)throw d}}else l()}function t(l){e.v.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=l)}},39672:(oe,x,i)=>{"use strict";function e(n,a,t,l=0,h=!1){const s=a.schedule(function(){t(),h?n.add(this.schedule(null,l)):this.unsubscribe()},l);if(n.add(s),!h)return s}i.d(x,{f:()=>e})},44671:(oe,x,i)=>{"use strict";function e(n){return n}i.d(x,{y:()=>e})},81144:(oe,x,i)=>{"use strict";i.d(x,{z:()=>e});const e=n=>n&&"number"==typeof n.length&&"function"!=typeof n},12206:(oe,x,i)=>{"use strict";i.d(x,{D:()=>n});var e=i(30576);function n(a){return Symbol.asyncIterator&&(0,e.m)(a?.[Symbol.asyncIterator])}},51165:(oe,x,i)=>{"use strict";function e(n){return n instanceof Date&&!isNaN(n)}i.d(x,{q:()=>e})},30576:(oe,x,i)=>{"use strict";function e(n){return"function"==typeof n}i.d(x,{m:()=>e})},93670:(oe,x,i)=>{"use strict";i.d(x,{c:()=>a});var e=i(48822),n=i(30576);function a(t){return(0,n.m)(t[e.L])}},26495:(oe,x,i)=>{"use strict";i.d(x,{T:()=>a});var e=i(2202),n=i(30576);function a(t){return(0,n.m)(t?.[e.h])}},45191:(oe,x,i)=>{"use strict";i.d(x,{b:()=>a});var e=i(69751),n=i(30576);function a(t){return!!t&&(t instanceof e.y||(0,n.m)(t.lift)&&(0,n.m)(t.subscribe))}},28239:(oe,x,i)=>{"use strict";i.d(x,{t:()=>n});var e=i(30576);function n(a){return(0,e.m)(a?.then)}},53260:(oe,x,i)=>{"use strict";i.d(x,{L:()=>t,Q:()=>a});var e=i(97582),n=i(30576);function a(l){return(0,e.FC)(this,arguments,function*(){const s=l.getReader();try{for(;;){const{value:d,done:p}=yield(0,e.qq)(s.read());if(p)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(d)}}finally{s.releaseLock()}})}function t(l){return(0,n.m)(l?.getReader)}},93532:(oe,x,i)=>{"use strict";i.d(x,{K:()=>n});var e=i(30576);function n(a){return a&&(0,e.m)(a.schedule)}},54482:(oe,x,i)=>{"use strict";i.d(x,{A:()=>n,e:()=>a});var e=i(30576);function n(t){return(0,e.m)(t?.lift)}function a(t){return l=>{if(n(l))return l.lift(function(h){try{return t(h,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(oe,x,i)=>{"use strict";i.d(x,{Z:()=>t});var e=i(54004);const{isArray:n}=Array;function t(l){return(0,e.U)(h=>function a(l,h){return n(h)?l(...h):l(h)}(l,h))}},25032:(oe,x,i)=>{"use strict";function e(){}i.d(x,{Z:()=>e})},89635:(oe,x,i)=>{"use strict";i.d(x,{U:()=>a,z:()=>n});var e=i(44671);function n(...t){return a(t)}function a(t){return 0===t.length?e.y:1===t.length?t[0]:function(h){return t.reduce((s,d)=>d(s),h)}}},87849:(oe,x,i)=>{"use strict";i.d(x,{h:()=>a});var e=i(42416),n=i(43410);function a(t){n.z.setTimeout(()=>{const{onUnhandledError:l}=e.v;if(!l)throw t;l(t)})}},44532:(oe,x,i)=>{"use strict";function e(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}i.d(x,{z:()=>e})},44298:function(oe){oe.exports=function(){"use strict";var x=typeof document>"u"?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,i=typeof window>"u"?{document:x,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,e=function(w){for(var be=0;be<w.length;be+=1)this[be]=w[be];return this.length=w.length,this};function n(Re,w){var ne=[],be=0;if(Re&&!w&&Re instanceof e)return Re;if(Re)if("string"==typeof Re){var Ue,at,Rt=Re.trim();if(Rt.indexOf("<")>=0&&Rt.indexOf(">")>=0){var yn="div";for(0===Rt.indexOf("<li")&&(yn="ul"),0===Rt.indexOf("<tr")&&(yn="tbody"),(0===Rt.indexOf("<td")||0===Rt.indexOf("<th"))&&(yn="tr"),0===Rt.indexOf("<tbody")&&(yn="table"),0===Rt.indexOf("<option")&&(yn="select"),(at=x.createElement(yn)).innerHTML=Rt,be=0;be<at.childNodes.length;be+=1)ne.push(at.childNodes[be])}else for(Ue=w||"#"!==Re[0]||Re.match(/[ .<>:~]/)?(w||x).querySelectorAll(Re.trim()):[x.getElementById(Re.trim().split("#")[1])],be=0;be<Ue.length;be+=1)Ue[be]&&ne.push(Ue[be])}else if(Re.nodeType||Re===i||Re===x)ne.push(Re);else if(Re.length>0&&Re[0].nodeType)for(be=0;be<Re.length;be+=1)ne.push(Re[be]);return new e(ne)}function a(Re){for(var w=[],ne=0;ne<Re.length;ne+=1)-1===w.indexOf(Re[ne])&&w.push(Re[ne]);return w}n.fn=e.prototype,n.Class=e,n.Dom7=e;var ve={addClass:function t(Re){if(typeof Re>"u")return this;for(var w=Re.split(" "),ne=0;ne<w.length;ne+=1)for(var be=0;be<this.length;be+=1)typeof this[be]<"u"&&typeof this[be].classList<"u"&&this[be].classList.add(w[ne]);return this},removeClass:function l(Re){for(var w=Re.split(" "),ne=0;ne<w.length;ne+=1)for(var be=0;be<this.length;be+=1)typeof this[be]<"u"&&typeof this[be].classList<"u"&&this[be].classList.remove(w[ne]);return this},hasClass:function h(Re){return!!this[0]&&this[0].classList.contains(Re)},toggleClass:function s(Re){for(var w=Re.split(" "),ne=0;ne<w.length;ne+=1)for(var be=0;be<this.length;be+=1)typeof this[be]<"u"&&typeof this[be].classList<"u"&&this[be].classList.toggle(w[ne]);return this},attr:function d(Re,w){var ne=arguments;if(1===arguments.length&&"string"==typeof Re)return this[0]?this[0].getAttribute(Re):void 0;for(var be=0;be<this.length;be+=1)if(2===ne.length)this[be].setAttribute(Re,w);else for(var Ue in Re)this[be][Ue]=Re[Ue],this[be].setAttribute(Ue,Re[Ue]);return this},removeAttr:function p(Re){for(var w=0;w<this.length;w+=1)this[w].removeAttribute(Re);return this},data:function u(Re,w){var ne;if(typeof w>"u")return(ne=this[0])?ne.dom7ElementDataStorage&&Re in ne.dom7ElementDataStorage?ne.dom7ElementDataStorage[Re]:ne.getAttribute("data-"+Re)||void 0:void 0;for(var Ue=0;Ue<this.length;Ue+=1)(ne=this[Ue]).dom7ElementDataStorage||(ne.dom7ElementDataStorage={}),ne.dom7ElementDataStorage[Re]=w;return this},transform:function g(Re){for(var w=0;w<this.length;w+=1){var ne=this[w].style;ne.webkitTransform=Re,ne.transform=Re}return this},transition:function v(Re){"string"!=typeof Re&&(Re+="ms");for(var w=0;w<this.length;w+=1){var ne=this[w].style;ne.webkitTransitionDuration=Re,ne.transitionDuration=Re}return this},on:function y(){for(var Re,w=[],ne=arguments.length;ne--;)w[ne]=arguments[ne];var be=w[0],Ue=w[1],at=w[2],Rt=w[3];function yn(Dn){var ii=Dn.target;if(ii){var li=Dn.target.dom7EventData||[];if(li.indexOf(Dn)<0&&li.unshift(Dn),n(ii).is(Ue))at.apply(ii,li);else for(var ft=n(ii).parents(),ce=0;ce<ft.length;ce+=1)n(ft[ce]).is(Ue)&&at.apply(ft[ce],li)}}function Tn(Dn){var ii=Dn&&Dn.target&&Dn.target.dom7EventData||[];ii.indexOf(Dn)<0&&ii.unshift(Dn),at.apply(this,ii)}"function"==typeof w[1]&&(be=(Re=w)[0],at=Re[1],Rt=Re[2],Ue=void 0),Rt||(Rt=!1);for(var Zn,Yn=be.split(" "),ui=0;ui<this.length;ui+=1){var wi=this[ui];if(Ue)for(Zn=0;Zn<Yn.length;Zn+=1){var bn=Yn[Zn];wi.dom7LiveListeners||(wi.dom7LiveListeners={}),wi.dom7LiveListeners[bn]||(wi.dom7LiveListeners[bn]=[]),wi.dom7LiveListeners[bn].push({listener:at,proxyListener:yn}),wi.addEventListener(bn,yn,Rt)}else for(Zn=0;Zn<Yn.length;Zn+=1){var an=Yn[Zn];wi.dom7Listeners||(wi.dom7Listeners={}),wi.dom7Listeners[an]||(wi.dom7Listeners[an]=[]),wi.dom7Listeners[an].push({listener:at,proxyListener:Tn}),wi.addEventListener(an,Tn,Rt)}}return this},off:function b(){for(var Re,w=[],ne=arguments.length;ne--;)w[ne]=arguments[ne];var be=w[0],Ue=w[1],at=w[2],Rt=w[3];"function"==typeof w[1]&&(be=(Re=w)[0],at=Re[1],Rt=Re[2],Ue=void 0),Rt||(Rt=!1);for(var yn=be.split(" "),Tn=0;Tn<yn.length;Tn+=1)for(var Yn=yn[Tn],Zn=0;Zn<this.length;Zn+=1){var ui=this[Zn],wi=void 0;if(!Ue&&ui.dom7Listeners?wi=ui.dom7Listeners[Yn]:Ue&&ui.dom7LiveListeners&&(wi=ui.dom7LiveListeners[Yn]),wi&&wi.length)for(var an=wi.length-1;an>=0;an-=1){var bn=wi[an];at&&bn.listener===at||at&&bn.listener&&bn.listener.dom7proxy&&bn.listener.dom7proxy===at?(ui.removeEventListener(Yn,bn.proxyListener,Rt),wi.splice(an,1)):at||(ui.removeEventListener(Yn,bn.proxyListener,Rt),wi.splice(an,1))}}return this},trigger:function S(){for(var Re=[],w=arguments.length;w--;)Re[w]=arguments[w];for(var ne=Re[0].split(" "),be=Re[1],Ue=0;Ue<ne.length;Ue+=1)for(var at=ne[Ue],Rt=0;Rt<this.length;Rt+=1){var yn=this[Rt],Tn=void 0;try{Tn=new i.CustomEvent(at,{detail:be,bubbles:!0,cancelable:!0})}catch{(Tn=x.createEvent("Event")).initEvent(at,!0,!0),Tn.detail=be}yn.dom7EventData=Re.filter(function(Yn,Zn){return Zn>0}),yn.dispatchEvent(Tn),yn.dom7EventData=[],delete yn.dom7EventData}return this},transitionEnd:function E(Re){var be,w=["webkitTransitionEnd","transitionend"],ne=this;function Ue(at){if(at.target===this)for(Re.call(this,at),be=0;be<w.length;be+=1)ne.off(w[be],Ue)}if(Re)for(be=0;be<w.length;be+=1)ne.on(w[be],Ue);return this},outerWidth:function D(Re){if(this.length>0){if(Re){var w=this.styles();return this[0].offsetWidth+parseFloat(w.getPropertyValue("margin-right"))+parseFloat(w.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function A(Re){if(this.length>0){if(Re){var w=this.styles();return this[0].offsetHeight+parseFloat(w.getPropertyValue("margin-top"))+parseFloat(w.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function P(){if(this.length>0){var Re=this[0],w=Re.getBoundingClientRect(),ne=x.body;return{top:w.top+(Re===i?i.scrollY:Re.scrollTop)-(Re.clientTop||ne.clientTop||0),left:w.left+(Re===i?i.scrollX:Re.scrollLeft)-(Re.clientLeft||ne.clientLeft||0)}}return null},css:function V(Re,w){var ne;if(1===arguments.length){if("string"!=typeof Re){for(ne=0;ne<this.length;ne+=1)for(var be in Re)this[ne].style[be]=Re[be];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(Re)}if(2===arguments.length&&"string"==typeof Re){for(ne=0;ne<this.length;ne+=1)this[ne].style[Re]=w;return this}return this},each:function X(Re){if(!Re)return this;for(var w=0;w<this.length;w+=1)if(!1===Re.call(this[w],w,this[w]))return this;return this},html:function re(Re){if(typeof Re>"u")return this[0]?this[0].innerHTML:void 0;for(var w=0;w<this.length;w+=1)this[w].innerHTML=Re;return this},text:function Q(Re){if(typeof Re>"u")return this[0]?this[0].textContent.trim():null;for(var w=0;w<this.length;w+=1)this[w].textContent=Re;return this},is:function ae(Re){var ne,be,w=this[0];if(!w||typeof Re>"u")return!1;if("string"==typeof Re){if(w.matches)return w.matches(Re);if(w.webkitMatchesSelector)return w.webkitMatchesSelector(Re);if(w.msMatchesSelector)return w.msMatchesSelector(Re);for(ne=n(Re),be=0;be<ne.length;be+=1)if(ne[be]===w)return!0;return!1}if(Re===x)return w===x;if(Re===i)return w===i;if(Re.nodeType||Re instanceof e){for(ne=Re.nodeType?[Re]:Re,be=0;be<ne.length;be+=1)if(ne[be]===w)return!0;return!1}return!1},index:function K(){var w,Re=this[0];if(Re){for(w=0;null!==(Re=Re.previousSibling);)1===Re.nodeType&&(w+=1);return w}},eq:function k(Re){if(typeof Re>"u")return this;var ne,w=this.length;return new e(Re>w-1?[]:Re<0?(ne=w+Re)<0?[]:[this[ne]]:[this[Re]])},append:function $(){for(var Re=[],w=arguments.length;w--;)Re[w]=arguments[w];for(var ne,be=0;be<Re.length;be+=1){ne=Re[be];for(var Ue=0;Ue<this.length;Ue+=1)if("string"==typeof ne){var at=x.createElement("div");for(at.innerHTML=ne;at.firstChild;)this[Ue].appendChild(at.firstChild)}else if(ne instanceof e)for(var Rt=0;Rt<ne.length;Rt+=1)this[Ue].appendChild(ne[Rt]);else this[Ue].appendChild(ne)}return this},prepend:function j(Re){var w,ne;for(w=0;w<this.length;w+=1)if("string"==typeof Re){var be=x.createElement("div");for(be.innerHTML=Re,ne=be.childNodes.length-1;ne>=0;ne-=1)this[w].insertBefore(be.childNodes[ne],this[w].childNodes[0])}else if(Re instanceof e)for(ne=0;ne<Re.length;ne+=1)this[w].insertBefore(Re[ne],this[w].childNodes[0]);else this[w].insertBefore(Re,this[w].childNodes[0]);return this},next:function R(Re){return this.length>0?Re?this[0].nextElementSibling&&n(this[0].nextElementSibling).is(Re)?new e([this[0].nextElementSibling]):new e([]):new e(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):new e([])},nextAll:function U(Re){var w=[],ne=this[0];if(!ne)return new e([]);for(;ne.nextElementSibling;){var be=ne.nextElementSibling;Re?n(be).is(Re)&&w.push(be):w.push(be),ne=be}return new e(w)},prev:function le(Re){if(this.length>0){var w=this[0];return Re?w.previousElementSibling&&n(w.previousElementSibling).is(Re)?new e([w.previousElementSibling]):new e([]):new e(w.previousElementSibling?[w.previousElementSibling]:[])}return new e([])},prevAll:function T(Re){var w=[],ne=this[0];if(!ne)return new e([]);for(;ne.previousElementSibling;){var be=ne.previousElementSibling;Re?n(be).is(Re)&&w.push(be):w.push(be),ne=be}return new e(w)},parent:function H(Re){for(var w=[],ne=0;ne<this.length;ne+=1)null!==this[ne].parentNode&&(Re?n(this[ne].parentNode).is(Re)&&w.push(this[ne].parentNode):w.push(this[ne].parentNode));return n(a(w))},parents:function N(Re){for(var w=[],ne=0;ne<this.length;ne+=1)for(var be=this[ne].parentNode;be;)Re?n(be).is(Re)&&w.push(be):w.push(be),be=be.parentNode;return n(a(w))},closest:function pe(Re){var w=this;return typeof Re>"u"?new e([]):(w.is(Re)||(w=w.parents(Re).eq(0)),w)},find:function de(Re){for(var w=[],ne=0;ne<this.length;ne+=1)for(var be=this[ne].querySelectorAll(Re),Ue=0;Ue<be.length;Ue+=1)w.push(be[Ue]);return new e(w)},children:function me(Re){for(var w=[],ne=0;ne<this.length;ne+=1)for(var be=this[ne].childNodes,Ue=0;Ue<be.length;Ue+=1)Re?1===be[Ue].nodeType&&n(be[Ue]).is(Re)&&w.push(be[Ue]):1===be[Ue].nodeType&&w.push(be[Ue]);return new e(a(w))},remove:function q(){for(var Re=0;Re<this.length;Re+=1)this[Re].parentNode&&this[Re].parentNode.removeChild(this[Re]);return this},add:function se(){for(var Re=[],w=arguments.length;w--;)Re[w]=arguments[w];var be,Ue;for(be=0;be<Re.length;be+=1){var at=n(Re[be]);for(Ue=0;Ue<at.length;Ue+=1)this[this.length]=at[Ue],this.length+=1}return this},styles:function B(){return this[0]?i.getComputedStyle(this[0],null):{}}};Object.keys(ve).forEach(function(Re){n.fn[Re]=n.fn[Re]||ve[Re]});var be,w,Ee={deleteProps:function(w){var ne=w;Object.keys(ne).forEach(function(be){try{ne[be]=null}catch{}try{delete ne[be]}catch{}})},nextTick:function(w,ne){return void 0===ne&&(ne=0),setTimeout(w,ne)},now:function(){return Date.now()},getTranslate:function(w,ne){void 0===ne&&(ne="x");var be,Ue,at,Rt=i.getComputedStyle(w,null);return i.WebKitCSSMatrix?((Ue=Rt.transform||Rt.webkitTransform).split(",").length>6&&(Ue=Ue.split(", ").map(function(yn){return yn.replace(",",".")}).join(", ")),at=new i.WebKitCSSMatrix("none"===Ue?"":Ue)):be=(at=Rt.MozTransform||Rt.OTransform||Rt.MsTransform||Rt.msTransform||Rt.transform||Rt.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===ne&&(Ue=i.WebKitCSSMatrix?at.m41:16===be.length?parseFloat(be[12]):parseFloat(be[4])),"y"===ne&&(Ue=i.WebKitCSSMatrix?at.m42:16===be.length?parseFloat(be[13]):parseFloat(be[5])),Ue||0},parseUrlQuery:function(w){var Ue,at,Rt,yn,ne={},be=w||i.location.href;if("string"==typeof be&&be.length)for(yn=(at=(be=be.indexOf("?")>-1?be.replace(/\S*\?/,""):"").split("&").filter(function(Tn){return""!==Tn})).length,Ue=0;Ue<yn;Ue+=1)Rt=at[Ue].replace(/#\S+/g,"").split("="),ne[decodeURIComponent(Rt[0])]=typeof Rt[1]>"u"?void 0:decodeURIComponent(Rt[1])||"";return ne},isObject:function(w){return"object"==typeof w&&null!==w&&w.constructor&&w.constructor===Object},extend:function(){for(var w=[],ne=arguments.length;ne--;)w[ne]=arguments[ne];for(var be=Object(w[0]),Ue=1;Ue<w.length;Ue+=1){var at=w[Ue];if(null!=at)for(var Rt=Object.keys(Object(at)),yn=0,Tn=Rt.length;yn<Tn;yn+=1){var Yn=Rt[yn],Zn=Object.getOwnPropertyDescriptor(at,Yn);void 0!==Zn&&Zn.enumerable&&(Ee.isObject(be[Yn])&&Ee.isObject(at[Yn])?Ee.extend(be[Yn],at[Yn]):!Ee.isObject(be[Yn])&&Ee.isObject(at[Yn])?(be[Yn]={},Ee.extend(be[Yn],at[Yn])):be[Yn]=at[Yn])}}return be}},Ye=(w=x.createElement("div"),{touch:i.Modernizr&&!0===i.Modernizr.touch||!!(i.navigator.maxTouchPoints>0||"ontouchstart"in i||i.DocumentTouch&&x instanceof i.DocumentTouch),pointerEvents:!!(i.navigator.pointerEnabled||i.PointerEvent||"maxTouchPoints"in i.navigator&&i.navigator.maxTouchPoints>0),prefixedPointerEvents:!!i.navigator.msPointerEnabled,transition:(be=w.style,"transition"in be||"webkitTransition"in be||"MozTransition"in be),transforms3d:i.Modernizr&&!0===i.Modernizr.csstransforms3d||function(){var be=w.style;return"webkitPerspective"in be||"MozPerspective"in be||"OPerspective"in be||"MsPerspective"in be||"perspective"in be}(),flexbox:function(){for(var be=w.style,Ue="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),at=0;at<Ue.length;at+=1)if(Ue[at]in be)return!0;return!1}(),observer:"MutationObserver"in i||"WebkitMutationObserver"in i,passiveListener:function(){var be=!1;try{var Ue=Object.defineProperty({},"passive",{get:function(){be=!0}});i.addEventListener("testPassiveListener",null,Ue)}catch{}return be}(),gestures:"ongesturestart"in i}),wt={isIE:!!i.navigator.userAgent.match(/Trident/g)||!!i.navigator.userAgent.match(/MSIE/g),isEdge:!!i.navigator.userAgent.match(/Edge/g),isSafari:function w(){var ne=i.navigator.userAgent.toLowerCase();return ne.indexOf("safari")>=0&&ne.indexOf("chrome")<0&&ne.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)},Wt=function(w){void 0===w&&(w={});var ne=this;ne.params=w,ne.eventsListeners={},ne.params&&ne.params.on&&Object.keys(ne.params.on).forEach(function(be){ne.on(be,ne.params.on[be])})},Ut={components:{configurable:!0}};Wt.prototype.on=function(w,ne,be){var Ue=this;if("function"!=typeof ne)return Ue;var at=be?"unshift":"push";return w.split(" ").forEach(function(Rt){Ue.eventsListeners[Rt]||(Ue.eventsListeners[Rt]=[]),Ue.eventsListeners[Rt][at](ne)}),Ue},Wt.prototype.once=function(w,ne,be){var Ue=this;if("function"!=typeof ne)return Ue;function at(){for(var Rt=[],yn=arguments.length;yn--;)Rt[yn]=arguments[yn];ne.apply(Ue,Rt),Ue.off(w,at),at.f7proxy&&delete at.f7proxy}return at.f7proxy=ne,Ue.on(w,at,be)},Wt.prototype.off=function(w,ne){var be=this;return be.eventsListeners&&w.split(" ").forEach(function(Ue){typeof ne>"u"?be.eventsListeners[Ue]=[]:be.eventsListeners[Ue]&&be.eventsListeners[Ue].length&&be.eventsListeners[Ue].forEach(function(at,Rt){(at===ne||at.f7proxy&&at.f7proxy===ne)&&be.eventsListeners[Ue].splice(Rt,1)})}),be},Wt.prototype.emit=function(){for(var w=[],ne=arguments.length;ne--;)w[ne]=arguments[ne];var Ue,at,Rt,be=this;return be.eventsListeners?("string"==typeof w[0]||Array.isArray(w[0])?(Ue=w[0],at=w.slice(1,w.length),Rt=be):(Ue=w[0].events,at=w[0].data,Rt=w[0].context||be),(Array.isArray(Ue)?Ue:Ue.split(" ")).forEach(function(Tn){if(be.eventsListeners&&be.eventsListeners[Tn]){var Yn=[];be.eventsListeners[Tn].forEach(function(Zn){Yn.push(Zn)}),Yn.forEach(function(Zn){Zn.apply(Rt,at)})}}),be):be},Wt.prototype.useModulesParams=function(w){var ne=this;ne.modules&&Object.keys(ne.modules).forEach(function(be){var Ue=ne.modules[be];Ue.params&&Ee.extend(w,Ue.params)})},Wt.prototype.useModules=function(w){void 0===w&&(w={});var ne=this;ne.modules&&Object.keys(ne.modules).forEach(function(be){var Ue=ne.modules[be],at=w[be]||{};Ue.instance&&Object.keys(Ue.instance).forEach(function(Rt){var yn=Ue.instance[Rt];ne[Rt]="function"==typeof yn?yn.bind(ne):yn}),Ue.on&&ne.on&&Object.keys(Ue.on).forEach(function(Rt){ne.on(Rt,Ue.on[Rt])}),Ue.create&&Ue.create.bind(ne)(at)})},Ut.components.set=function(Re){this.use&&this.use(Re)},Wt.installModule=function(w){for(var ne=[],be=arguments.length-1;be-- >0;)ne[be]=arguments[be+1];var Ue=this;Ue.prototype.modules||(Ue.prototype.modules={});var at=w.name||Object.keys(Ue.prototype.modules).length+"_"+Ee.now();return Ue.prototype.modules[at]=w,w.proto&&Object.keys(w.proto).forEach(function(Rt){Ue.prototype[Rt]=w.proto[Rt]}),w.static&&Object.keys(w.static).forEach(function(Rt){Ue[Rt]=w.static[Rt]}),w.install&&w.install.apply(Ue,ne),Ue},Wt.use=function(w){for(var ne=[],be=arguments.length-1;be-- >0;)ne[be]=arguments[be+1];var Ue=this;return Array.isArray(w)?(w.forEach(function(at){return Ue.installModule(at)}),Ue):Ue.installModule.apply(Ue,[w].concat(ne))},Object.defineProperties(Wt,Ut);var Xt={updateSize:function nt(){var w,ne,Re=this,be=Re.$el;ne=typeof Re.params.height<"u"?Re.params.height:be[0].clientHeight,!(0===(w=typeof Re.params.width<"u"?Re.params.width:be[0].clientWidth)&&Re.isHorizontal()||0===ne&&Re.isVertical())&&(w=w-parseInt(be.css("padding-left"),10)-parseInt(be.css("padding-right"),10),ne=ne-parseInt(be.css("padding-top"),10)-parseInt(be.css("padding-bottom"),10),Ee.extend(Re,{width:w,height:ne,size:Re.isHorizontal()?w:ne}))},updateSlides:function Zt(){var Re=this,w=Re.params,ne=Re.$wrapperEl,be=Re.size,Ue=Re.rtlTranslate,at=Re.wrongRTL,Rt=Re.virtual&&w.virtual.enabled,yn=Rt?Re.virtual.slides.length:Re.slides.length,Tn=ne.children("."+Re.params.slideClass),Yn=Rt?Re.virtual.slides.length:Tn.length,Zn=[],ui=[],wi=[],an=w.slidesOffsetBefore;"function"==typeof an&&(an=w.slidesOffsetBefore.call(Re));var bn=w.slidesOffsetAfter;"function"==typeof bn&&(bn=w.slidesOffsetAfter.call(Re));var Dn=Re.snapGrid.length,ii=Re.snapGrid.length,li=w.spaceBetween,ft=-an,ce=0,Se=0;if(!(typeof be>"u")){var ut,vn;"string"==typeof li&&li.indexOf("%")>=0&&(li=parseFloat(li.replace("%",""))/100*be),Re.virtualSize=-li,Tn.css(Ue?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""}),w.slidesPerColumn>1&&(ut=Math.floor(Yn/w.slidesPerColumn)===Yn/Re.params.slidesPerColumn?Yn:Math.ceil(Yn/w.slidesPerColumn)*w.slidesPerColumn,"auto"!==w.slidesPerView&&"row"===w.slidesPerColumnFill&&(ut=Math.max(ut,w.slidesPerView*w.slidesPerColumn)));for(var Kt,mn=w.slidesPerColumn,Un=ut/mn,qn=Math.floor(Yn/w.slidesPerColumn),ci=0;ci<Yn;ci+=1){Kt=0;var hi=Tn.eq(ci);if(w.slidesPerColumn>1){var Ai=void 0,zi=void 0,Yi=void 0;if("column"===w.slidesPerColumnFill||"row"===w.slidesPerColumnFill&&w.slidesPerGroup>1){if("column"===w.slidesPerColumnFill)Yi=ci-(zi=Math.floor(ci/mn))*mn,(zi>qn||zi===qn&&Yi===mn-1)&&(Yi+=1)>=mn&&(Yi=0,zi+=1);else{var tr=Math.floor(ci/w.slidesPerGroup);zi=ci-(Yi=Math.floor(ci/w.slidesPerView)-tr*w.slidesPerColumn)*w.slidesPerView-tr*w.slidesPerView}hi.css({"-webkit-box-ordinal-group":Ai=zi+Yi*ut/mn,"-moz-box-ordinal-group":Ai,"-ms-flex-order":Ai,"-webkit-order":Ai,order:Ai})}else zi=ci-(Yi=Math.floor(ci/Un))*Un;hi.css("margin-"+(Re.isHorizontal()?"top":"left"),0!==Yi&&w.spaceBetween&&w.spaceBetween+"px").attr("data-swiper-column",zi).attr("data-swiper-row",Yi)}if("none"!==hi.css("display")){if("auto"===w.slidesPerView){var Lr=i.getComputedStyle(hi[0],null),Gr=hi[0].style.transform,Io=hi[0].style.webkitTransform;if(Gr&&(hi[0].style.transform="none"),Io&&(hi[0].style.webkitTransform="none"),w.roundLengths)Kt=Re.isHorizontal()?hi.outerWidth(!0):hi.outerHeight(!0);else if(Re.isHorizontal()){var wo=parseFloat(Lr.getPropertyValue("width")),aa=parseFloat(Lr.getPropertyValue("padding-left")),yo=parseFloat(Lr.getPropertyValue("padding-right")),Pa=parseFloat(Lr.getPropertyValue("margin-left")),Uo=parseFloat(Lr.getPropertyValue("margin-right")),_a=Lr.getPropertyValue("box-sizing");Kt=_a&&"border-box"===_a&&!wt.isIE?wo+Pa+Uo:wo+aa+yo+Pa+Uo}else{var $o=parseFloat(Lr.getPropertyValue("height")),yr=parseFloat(Lr.getPropertyValue("padding-top")),va=parseFloat(Lr.getPropertyValue("padding-bottom")),Tt=parseFloat(Lr.getPropertyValue("margin-top")),Ct=parseFloat(Lr.getPropertyValue("margin-bottom")),Ze=Lr.getPropertyValue("box-sizing");Kt=Ze&&"border-box"===Ze&&!wt.isIE?$o+Tt+Ct:$o+yr+va+Tt+Ct}Gr&&(hi[0].style.transform=Gr),Io&&(hi[0].style.webkitTransform=Io),w.roundLengths&&(Kt=Math.floor(Kt))}else Kt=(be-(w.slidesPerView-1)*li)/w.slidesPerView,w.roundLengths&&(Kt=Math.floor(Kt)),Tn[ci]&&(Re.isHorizontal()?Tn[ci].style.width=Kt+"px":Tn[ci].style.height=Kt+"px");Tn[ci]&&(Tn[ci].swiperSlideSize=Kt),wi.push(Kt),w.centeredSlides?(ft=ft+Kt/2+ce/2+li,0===ce&&0!==ci&&(ft=ft-be/2-li),0===ci&&(ft=ft-be/2-li),Math.abs(ft)<.001&&(ft=0),w.roundLengths&&(ft=Math.floor(ft)),Se%w.slidesPerGroup==0&&Zn.push(ft),ui.push(ft)):(w.roundLengths&&(ft=Math.floor(ft)),Se%w.slidesPerGroup==0&&Zn.push(ft),ui.push(ft),ft=ft+Kt+li),Re.virtualSize+=Kt+li,ce=Kt,Se+=1}}if(Re.virtualSize=Math.max(Re.virtualSize,be)+bn,Ue&&at&&("slide"===w.effect||"coverflow"===w.effect)&&ne.css({width:Re.virtualSize+w.spaceBetween+"px"}),(!Ye.flexbox||w.setWrapperSize)&&(Re.isHorizontal()?ne.css({width:Re.virtualSize+w.spaceBetween+"px"}):ne.css({height:Re.virtualSize+w.spaceBetween+"px"})),w.slidesPerColumn>1&&(Re.virtualSize=(Kt+w.spaceBetween)*ut,Re.virtualSize=Math.ceil(Re.virtualSize/w.slidesPerColumn)-w.spaceBetween,Re.isHorizontal()?ne.css({width:Re.virtualSize+w.spaceBetween+"px"}):ne.css({height:Re.virtualSize+w.spaceBetween+"px"}),w.centeredSlides)){vn=[];for(var Ci=0;Ci<Zn.length;Ci+=1){var rr=Zn[Ci];w.roundLengths&&(rr=Math.floor(rr)),Zn[Ci]<Re.virtualSize+Zn[0]&&vn.push(rr)}Zn=vn}if(!w.centeredSlides){vn=[];for(var oo=0;oo<Zn.length;oo+=1){var Oi=Zn[oo];w.roundLengths&&(Oi=Math.floor(Oi)),Zn[oo]<=Re.virtualSize-be&&vn.push(Oi)}Zn=vn,Math.floor(Re.virtualSize-be)-Math.floor(Zn[Zn.length-1])>1&&Zn.push(Re.virtualSize-be)}if(0===Zn.length&&(Zn=[0]),0!==w.spaceBetween&&(Re.isHorizontal()?Tn.css(Ue?{marginLeft:li+"px"}:{marginRight:li+"px"}):Tn.css({marginBottom:li+"px"})),w.centerInsufficientSlides){var xr=0;if(wi.forEach(function(Aa){xr+=Aa+(w.spaceBetween?w.spaceBetween:0)}),(xr-=w.spaceBetween)<be){var zr=(be-xr)/2;Zn.forEach(function(Aa,Mo){Zn[Mo]=Aa-zr}),ui.forEach(function(Aa,Mo){ui[Mo]=Aa+zr})}}Ee.extend(Re,{slides:Tn,snapGrid:Zn,slidesGrid:ui,slidesSizesGrid:wi}),Yn!==yn&&Re.emit("slidesLengthChange"),Zn.length!==Dn&&(Re.params.watchOverflow&&Re.checkOverflow(),Re.emit("snapGridLengthChange")),ui.length!==ii&&Re.emit("slidesGridLengthChange"),(w.watchSlidesProgress||w.watchSlidesVisibility)&&Re.updateSlidesOffset()}},updateAutoHeight:function Fe(Re){var Ue,w=this,ne=[],be=0;if("number"==typeof Re?w.setTransition(Re):!0===Re&&w.setTransition(w.params.speed),"auto"!==w.params.slidesPerView&&w.params.slidesPerView>1)for(Ue=0;Ue<Math.ceil(w.params.slidesPerView);Ue+=1){var at=w.activeIndex+Ue;if(at>w.slides.length)break;ne.push(w.slides.eq(at)[0])}else ne.push(w.slides.eq(w.activeIndex)[0]);for(Ue=0;Ue<ne.length;Ue+=1)if(typeof ne[Ue]<"u"){var Rt=ne[Ue].offsetHeight;be=Rt>be?Rt:be}be&&w.$wrapperEl.css("height",be+"px")},updateSlidesOffset:function yt(){for(var w=this.slides,ne=0;ne<w.length;ne+=1)w[ne].swiperSlideOffset=this.isHorizontal()?w[ne].offsetLeft:w[ne].offsetTop},updateSlidesProgress:function ie(Re){void 0===Re&&(Re=this&&this.translate||0);var w=this,ne=w.params,be=w.slides,Ue=w.rtlTranslate;if(0!==be.length){typeof be[0].swiperSlideOffset>"u"&&w.updateSlidesOffset();var at=-Re;Ue&&(at=Re),be.removeClass(ne.slideVisibleClass),w.visibleSlidesIndexes=[],w.visibleSlides=[];for(var Rt=0;Rt<be.length;Rt+=1){var yn=be[Rt],Tn=(at+(ne.centeredSlides?w.minTranslate():0)-yn.swiperSlideOffset)/(yn.swiperSlideSize+ne.spaceBetween);if(ne.watchSlidesVisibility){var Yn=-(at-yn.swiperSlideOffset),Zn=Yn+w.slidesSizesGrid[Rt];(Yn>=0&&Yn<w.size-1||Zn>1&&Zn<=w.size||Yn<=0&&Zn>=w.size)&&(w.visibleSlides.push(yn),w.visibleSlidesIndexes.push(Rt),be.eq(Rt).addClass(ne.slideVisibleClass))}yn.progress=Ue?-Tn:Tn}w.visibleSlides=n(w.visibleSlides)}},updateProgress:function Ce(Re){void 0===Re&&(Re=this&&this.translate||0);var w=this,ne=w.params,be=w.maxTranslate()-w.minTranslate(),Ue=w.progress,at=w.isBeginning,Rt=w.isEnd,yn=at,Tn=Rt;0===be?(Ue=0,at=!0,Rt=!0):(at=(Ue=(Re-w.minTranslate())/be)<=0,Rt=Ue>=1),Ee.extend(w,{progress:Ue,isBeginning:at,isEnd:Rt}),(ne.watchSlidesProgress||ne.watchSlidesVisibility)&&w.updateSlidesProgress(Re),at&&!yn&&w.emit("reachBeginning toEdge"),Rt&&!Tn&&w.emit("reachEnd toEdge"),(yn&&!at||Tn&&!Rt)&&w.emit("fromEdge"),w.emit("progress",Ue)},updateSlidesClasses:function Ie(){var yn,Re=this,w=Re.slides,ne=Re.params,be=Re.$wrapperEl,Ue=Re.activeIndex,at=Re.realIndex,Rt=Re.virtual&&ne.virtual.enabled;w.removeClass(ne.slideActiveClass+" "+ne.slideNextClass+" "+ne.slidePrevClass+" "+ne.slideDuplicateActiveClass+" "+ne.slideDuplicateNextClass+" "+ne.slideDuplicatePrevClass),(yn=Rt?Re.$wrapperEl.find("."+ne.slideClass+'[data-swiper-slide-index="'+Ue+'"]'):w.eq(Ue)).addClass(ne.slideActiveClass),ne.loop&&(yn.hasClass(ne.slideDuplicateClass)?be.children("."+ne.slideClass+":not(."+ne.slideDuplicateClass+')[data-swiper-slide-index="'+at+'"]').addClass(ne.slideDuplicateActiveClass):be.children("."+ne.slideClass+"."+ne.slideDuplicateClass+'[data-swiper-slide-index="'+at+'"]').addClass(ne.slideDuplicateActiveClass));var Tn=yn.nextAll("."+ne.slideClass).eq(0).addClass(ne.slideNextClass);ne.loop&&0===Tn.length&&(Tn=w.eq(0)).addClass(ne.slideNextClass);var Yn=yn.prevAll("."+ne.slideClass).eq(0).addClass(ne.slidePrevClass);ne.loop&&0===Yn.length&&(Yn=w.eq(-1)).addClass(ne.slidePrevClass),ne.loop&&(Tn.hasClass(ne.slideDuplicateClass)?be.children("."+ne.slideClass+":not(."+ne.slideDuplicateClass+')[data-swiper-slide-index="'+Tn.attr("data-swiper-slide-index")+'"]').addClass(ne.slideDuplicateNextClass):be.children("."+ne.slideClass+"."+ne.slideDuplicateClass+'[data-swiper-slide-index="'+Tn.attr("data-swiper-slide-index")+'"]').addClass(ne.slideDuplicateNextClass),Yn.hasClass(ne.slideDuplicateClass)?be.children("."+ne.slideClass+":not(."+ne.slideDuplicateClass+')[data-swiper-slide-index="'+Yn.attr("data-swiper-slide-index")+'"]').addClass(ne.slideDuplicatePrevClass):be.children("."+ne.slideClass+"."+ne.slideDuplicateClass+'[data-swiper-slide-index="'+Yn.attr("data-swiper-slide-index")+'"]').addClass(ne.slideDuplicatePrevClass))},updateActiveIndex:function dt(Re){var Zn,w=this,ne=w.rtlTranslate?w.translate:-w.translate,be=w.slidesGrid,Ue=w.snapGrid,at=w.params,Rt=w.activeIndex,yn=w.realIndex,Tn=w.snapIndex,Yn=Re;if(typeof Yn>"u"){for(var ui=0;ui<be.length;ui+=1)typeof be[ui+1]<"u"?ne>=be[ui]&&ne<be[ui+1]-(be[ui+1]-be[ui])/2?Yn=ui:ne>=be[ui]&&ne<be[ui+1]&&(Yn=ui+1):ne>=be[ui]&&(Yn=ui);at.normalizeSlideIndex&&(Yn<0||typeof Yn>"u")&&(Yn=0)}if((Zn=Ue.indexOf(ne)>=0?Ue.indexOf(ne):Math.floor(Yn/at.slidesPerGroup))>=Ue.length&&(Zn=Ue.length-1),Yn!==Rt){var wi=parseInt(w.slides.eq(Yn).attr("data-swiper-slide-index")||Yn,10);Ee.extend(w,{snapIndex:Zn,realIndex:wi,previousIndex:Rt,activeIndex:Yn}),w.emit("activeIndexChange"),w.emit("snapIndexChange"),yn!==wi&&w.emit("realIndexChange"),(w.initialized||w.runCallbacksOnInit)&&w.emit("slideChange")}else Zn!==Tn&&(w.snapIndex=Zn,w.emit("snapIndexChange"))},updateClickedSlide:function Mt(Re){var w=this,ne=w.params,be=n(Re.target).closest("."+ne.slideClass)[0],Ue=!1;if(be)for(var at=0;at<w.slides.length;at+=1)w.slides[at]===be&&(Ue=!0);if(!be||!Ue)return w.clickedSlide=void 0,void(w.clickedIndex=void 0);w.clickedSlide=be,w.clickedIndex=w.virtual&&w.params.virtual.enabled?parseInt(n(be).attr("data-swiper-slide-index"),10):n(be).index(),ne.slideToClickedSlide&&void 0!==w.clickedIndex&&w.clickedIndex!==w.activeIndex&&w.slideToClickedSlide()}};var bt={getTranslate:function en(Re){void 0===Re&&(Re=this.isHorizontal()?"x":"y");var w=this,be=w.rtlTranslate,Ue=w.translate;if(w.params.virtualTranslate)return be?-Ue:Ue;var Rt=Ee.getTranslate(w.$wrapperEl[0],Re);return be&&(Rt=-Rt),Rt||0},setTranslate:function vt(Re,w){var ne=this,be=ne.rtlTranslate,Ue=ne.params,at=ne.$wrapperEl,Rt=ne.progress,yn=0,Tn=0;ne.isHorizontal()?yn=be?-Re:Re:Tn=Re,Ue.roundLengths&&(yn=Math.floor(yn),Tn=Math.floor(Tn)),Ue.virtualTranslate||at.transform(Ye.transforms3d?"translate3d("+yn+"px, "+Tn+"px, 0px)":"translate("+yn+"px, "+Tn+"px)"),ne.previousTranslate=ne.translate,ne.translate=ne.isHorizontal()?yn:Tn;var ui=ne.maxTranslate()-ne.minTranslate();(0===ui?0:(Re-ne.minTranslate())/ui)!==Rt&&ne.updateProgress(Re),ne.emit("setTranslate",ne.translate,w)},minTranslate:function xt(){return-this.snapGrid[0]},maxTranslate:function zt(){return-this.snapGrid[this.snapGrid.length-1]}};var Pe={setTransition:function At(Re,w){this.$wrapperEl.transition(Re),this.emit("setTransition",Re,w)},transitionStart:function $e(Re,w){void 0===Re&&(Re=!0);var ne=this,be=ne.activeIndex,at=ne.previousIndex;ne.params.autoHeight&&ne.updateAutoHeight();var Rt=w;if(Rt||(Rt=be>at?"next":be<at?"prev":"reset"),ne.emit("transitionStart"),Re&&be!==at){if("reset"===Rt)return void ne.emit("slideResetTransitionStart");ne.emit("slideChangeTransitionStart"),ne.emit("next"===Rt?"slideNextTransitionStart":"slidePrevTransitionStart")}},transitionEnd:function Xe(Re,w){void 0===Re&&(Re=!0);var ne=this,be=ne.activeIndex,Ue=ne.previousIndex;ne.animating=!1,ne.setTransition(0);var at=w;if(at||(at=be>Ue?"next":be<Ue?"prev":"reset"),ne.emit("transitionEnd"),Re&&be!==Ue){if("reset"===at)return void ne.emit("slideResetTransitionEnd");ne.emit("slideChangeTransitionEnd"),ne.emit("next"===at?"slideNextTransitionEnd":"slidePrevTransitionEnd")}}};var Ae={slideTo:function Ve(Re,w,ne,be){void 0===Re&&(Re=0),void 0===w&&(w=this.params.speed),void 0===ne&&(ne=!0);var Ue=this,at=Re;at<0&&(at=0);var Rt=Ue.params,yn=Ue.snapGrid,Tn=Ue.slidesGrid,Yn=Ue.previousIndex,Zn=Ue.activeIndex,ui=Ue.rtlTranslate;if(Ue.animating&&Rt.preventInteractionOnTransition)return!1;var wi=Math.floor(at/Rt.slidesPerGroup);wi>=yn.length&&(wi=yn.length-1),(Zn||Rt.initialSlide||0)===(Yn||0)&&ne&&Ue.emit("beforeSlideChangeStart");var Dn,an=-yn[wi];if(Ue.updateProgress(an),Rt.normalizeSlideIndex)for(var bn=0;bn<Tn.length;bn+=1)-Math.floor(100*an)>=Math.floor(100*Tn[bn])&&(at=bn);return!(Ue.initialized&&at!==Zn&&(!Ue.allowSlideNext&&an<Ue.translate&&an<Ue.minTranslate()||!Ue.allowSlidePrev&&an>Ue.translate&&an>Ue.maxTranslate()&&(Zn||0)!==at)||(Dn=at>Zn?"next":at<Zn?"prev":"reset",ui&&-an===Ue.translate||!ui&&an===Ue.translate?(Ue.updateActiveIndex(at),Rt.autoHeight&&Ue.updateAutoHeight(),Ue.updateSlidesClasses(),"slide"!==Rt.effect&&Ue.setTranslate(an),"reset"!==Dn&&(Ue.transitionStart(ne,Dn),Ue.transitionEnd(ne,Dn)),1):(0!==w&&Ye.transition?(Ue.setTransition(w),Ue.setTranslate(an),Ue.updateActiveIndex(at),Ue.updateSlidesClasses(),Ue.emit("beforeTransitionStart",w,be),Ue.transitionStart(ne,Dn),Ue.animating||(Ue.animating=!0,Ue.onSlideToWrapperTransitionEnd||(Ue.onSlideToWrapperTransitionEnd=function(li){!Ue||Ue.destroyed||li.target===this&&(Ue.$wrapperEl[0].removeEventListener("transitionend",Ue.onSlideToWrapperTransitionEnd),Ue.$wrapperEl[0].removeEventListener("webkitTransitionEnd",Ue.onSlideToWrapperTransitionEnd),Ue.onSlideToWrapperTransitionEnd=null,delete Ue.onSlideToWrapperTransitionEnd,Ue.transitionEnd(ne,Dn))}),Ue.$wrapperEl[0].addEventListener("transitionend",Ue.onSlideToWrapperTransitionEnd),Ue.$wrapperEl[0].addEventListener("webkitTransitionEnd",Ue.onSlideToWrapperTransitionEnd))):(Ue.setTransition(0),Ue.setTranslate(an),Ue.updateActiveIndex(at),Ue.updateSlidesClasses(),Ue.emit("beforeTransitionStart",w,be),Ue.transitionStart(ne,Dn),Ue.transitionEnd(ne,Dn)),0)))},slideToLoop:function mt(Re,w,ne,be){void 0===Re&&(Re=0),void 0===w&&(w=this.params.speed),void 0===ne&&(ne=!0);var at=Re;return this.params.loop&&(at+=this.loopedSlides),this.slideTo(at,w,ne,be)},slideNext:function It(Re,w,ne){void 0===Re&&(Re=this.params.speed),void 0===w&&(w=!0);var be=this,Ue=be.params;return Ue.loop?!be.animating&&(be.loopFix(),be._clientLeft=be.$wrapperEl[0].clientLeft,be.slideTo(be.activeIndex+Ue.slidesPerGroup,Re,w,ne)):be.slideTo(be.activeIndex+Ue.slidesPerGroup,Re,w,ne)},slidePrev:function xn(Re,w,ne){void 0===Re&&(Re=this.params.speed),void 0===w&&(w=!0);var be=this,Rt=be.snapGrid,yn=be.slidesGrid,Tn=be.rtlTranslate;if(be.params.loop){if(be.animating)return!1;be.loopFix(),be._clientLeft=be.$wrapperEl[0].clientLeft}function Zn(li){return li<0?-Math.floor(Math.abs(li)):Math.floor(li)}var ii,ui=Zn(Tn?be.translate:-be.translate),wi=Rt.map(function(li){return Zn(li)}),Dn=(yn.map(function(li){return Zn(li)}),wi.indexOf(ui),Rt[wi.indexOf(ui)-1]);return typeof Dn<"u"&&(ii=yn.indexOf(Dn))<0&&(ii=be.activeIndex-1),be.slideTo(ii,Re,w,ne)},slideReset:function _n(Re,w,ne){return void 0===Re&&(Re=this.params.speed),void 0===w&&(w=!0),this.slideTo(this.activeIndex,Re,w,ne)},slideToClosest:function Jt(Re,w,ne){void 0===Re&&(Re=this.params.speed),void 0===w&&(w=!0);var be=this,Ue=be.activeIndex,at=Math.floor(Ue/be.params.slidesPerGroup);if(at<be.snapGrid.length-1){var yn=be.snapGrid[at];(be.rtlTranslate?be.translate:-be.translate)-yn>(be.snapGrid[at+1]-yn)/2&&(Ue=be.params.slidesPerGroup)}return be.slideTo(Ue,Re,w,ne)},slideToClickedSlide:function ke(){var at,Re=this,w=Re.params,ne=Re.$wrapperEl,be="auto"===w.slidesPerView?Re.slidesPerViewDynamic():w.slidesPerView,Ue=Re.clickedIndex;if(w.loop){if(Re.animating)return;at=parseInt(n(Re.clickedSlide).attr("data-swiper-slide-index"),10),w.centeredSlides?Ue<Re.loopedSlides-be/2||Ue>Re.slides.length-Re.loopedSlides+be/2?(Re.loopFix(),Ue=ne.children("."+w.slideClass+'[data-swiper-slide-index="'+at+'"]:not(.'+w.slideDuplicateClass+")").eq(0).index(),Ee.nextTick(function(){Re.slideTo(Ue)})):Re.slideTo(Ue):Ue>Re.slides.length-be?(Re.loopFix(),Ue=ne.children("."+w.slideClass+'[data-swiper-slide-index="'+at+'"]:not(.'+w.slideDuplicateClass+")").eq(0).index(),Ee.nextTick(function(){Re.slideTo(Ue)})):Re.slideTo(Ue)}else Re.slideTo(Ue)}};var ot={loopCreate:function ze(){var Re=this,w=Re.params,ne=Re.$wrapperEl;ne.children("."+w.slideClass+"."+w.slideDuplicateClass).remove();var be=ne.children("."+w.slideClass);if(w.loopFillGroupWithBlank){var Ue=w.slidesPerGroup-be.length%w.slidesPerGroup;if(Ue!==w.slidesPerGroup){for(var at=0;at<Ue;at+=1){var Rt=n(x.createElement("div")).addClass(w.slideClass+" "+w.slideBlankClass);ne.append(Rt)}be=ne.children("."+w.slideClass)}}"auto"===w.slidesPerView&&!w.loopedSlides&&(w.loopedSlides=be.length),Re.loopedSlides=parseInt(w.loopedSlides||w.slidesPerView,10),Re.loopedSlides+=w.loopAdditionalSlides,Re.loopedSlides>be.length&&(Re.loopedSlides=be.length);var yn=[],Tn=[];be.each(function(ui,wi){var an=n(wi);ui<Re.loopedSlides&&Tn.push(wi),ui<be.length&&ui>=be.length-Re.loopedSlides&&yn.push(wi),an.attr("data-swiper-slide-index",ui)});for(var Yn=0;Yn<Tn.length;Yn+=1)ne.append(n(Tn[Yn].cloneNode(!0)).addClass(w.slideDuplicateClass));for(var Zn=yn.length-1;Zn>=0;Zn-=1)ne.prepend(n(yn[Zn].cloneNode(!0)).addClass(w.slideDuplicateClass))},loopFix:function pt(){var Yn,Re=this,w=Re.params,ne=Re.activeIndex,be=Re.slides,Ue=Re.loopedSlides,at=Re.allowSlidePrev,Rt=Re.allowSlideNext,yn=Re.snapGrid,Tn=Re.rtlTranslate;Re.allowSlidePrev=!0,Re.allowSlideNext=!0;var ui=-yn[ne]-Re.getTranslate();ne<Ue?(Yn=be.length-3*Ue+ne,Re.slideTo(Yn+=Ue,0,!1,!0)&&0!==ui&&Re.setTranslate((Tn?-Re.translate:Re.translate)-ui)):("auto"===w.slidesPerView&&ne>=2*Ue||ne>=be.length-Ue)&&(Yn=-be.length+ne+Ue,Re.slideTo(Yn+=Ue,0,!1,!0)&&0!==ui&&Re.setTranslate((Tn?-Re.translate:Re.translate)-ui)),Re.allowSlidePrev=at,Re.allowSlideNext=Rt},loopDestroy:function tn(){var ne=this.params,be=this.slides;this.$wrapperEl.children("."+ne.slideClass+"."+ne.slideDuplicateClass+",."+ne.slideClass+"."+ne.slideBlankClass).remove(),be.removeAttr("data-swiper-slide-index")}};var Z={setGrabCursor:function Et(Re){var w=this;if(!(Ye.touch||!w.params.simulateTouch||w.params.watchOverflow&&w.isLocked)){var ne=w.el;ne.style.cursor="move",ne.style.cursor=Re?"-webkit-grabbing":"-webkit-grab",ne.style.cursor=Re?"-moz-grabbin":"-moz-grab",ne.style.cursor=Re?"grabbing":"grab"}},unsetGrabCursor:function z(){Ye.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var it={appendSlide:function ge(Re){var w=this,ne=w.$wrapperEl,be=w.params;if(be.loop&&w.loopDestroy(),"object"==typeof Re&&"length"in Re)for(var Ue=0;Ue<Re.length;Ue+=1)Re[Ue]&&ne.append(Re[Ue]);else ne.append(Re);be.loop&&w.loopCreate(),be.observer&&Ye.observer||w.update()},prependSlide:function Qe(Re){var w=this,ne=w.params,be=w.$wrapperEl,Ue=w.activeIndex;ne.loop&&w.loopDestroy();var at=Ue+1;if("object"==typeof Re&&"length"in Re){for(var Rt=0;Rt<Re.length;Rt+=1)Re[Rt]&&be.prepend(Re[Rt]);at=Ue+Re.length}else be.prepend(Re);ne.loop&&w.loopCreate(),ne.observer&&Ye.observer||w.update(),w.slideTo(at,0,!1)},addSlide:function qe(Re,w){var ne=this,be=ne.$wrapperEl,Ue=ne.params,Rt=ne.activeIndex;Ue.loop&&(Rt-=ne.loopedSlides,ne.loopDestroy(),ne.slides=be.children("."+Ue.slideClass));var yn=ne.slides.length;if(Re<=0)ne.prependSlide(w);else if(Re>=yn)ne.appendSlide(w);else{for(var Tn=Rt>Re?Rt+1:Rt,Yn=[],Zn=yn-1;Zn>=Re;Zn-=1){var ui=ne.slides.eq(Zn);ui.remove(),Yn.unshift(ui)}if("object"==typeof w&&"length"in w){for(var wi=0;wi<w.length;wi+=1)w[wi]&&be.append(w[wi]);Tn=Rt>Re?Rt+w.length:Rt}else be.append(w);for(var an=0;an<Yn.length;an+=1)be.append(Yn[an]);Ue.loop&&ne.loopCreate(),Ue.observer&&Ye.observer||ne.update(),ne.slideTo(Ue.loop?Tn+ne.loopedSlides:Tn,0,!1)}},removeSlide:function ct(Re){var w=this,ne=w.params,be=w.$wrapperEl,at=w.activeIndex;ne.loop&&(at-=w.loopedSlides,w.loopDestroy(),w.slides=be.children("."+ne.slideClass));var yn,Rt=at;if("object"==typeof Re&&"length"in Re){for(var Tn=0;Tn<Re.length;Tn+=1)w.slides[yn=Re[Tn]]&&w.slides.eq(yn).remove(),yn<Rt&&(Rt-=1);Rt=Math.max(Rt,0)}else w.slides[yn=Re]&&w.slides.eq(yn).remove(),yn<Rt&&(Rt-=1),Rt=Math.max(Rt,0);ne.loop&&w.loopCreate(),ne.observer&&Ye.observer||w.update(),w.slideTo(ne.loop?Rt+w.loopedSlides:Rt,0,!1)},removeAllSlides:function Yt(){for(var w=[],ne=0;ne<this.slides.length;ne+=1)w.push(ne);this.removeSlide(w)}},Be=function(){var w=i.navigator.userAgent,ne={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:i.cordova||i.phonegap,phonegap:i.cordova||i.phonegap},be=w.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),Ue=w.match(/(Android);?[\s\/]+([\d.]+)?/),at=w.match(/(iPad).*OS\s([\d_]+)/),Rt=w.match(/(iPod)(.*OS\s([\d_]+))?/),yn=!at&&w.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(be&&(ne.os="windows",ne.osVersion=be[2],ne.windows=!0),Ue&&!be&&(ne.os="android",ne.osVersion=Ue[2],ne.android=!0,ne.androidChrome=w.toLowerCase().indexOf("chrome")>=0),(at||yn||Rt)&&(ne.os="ios",ne.ios=!0),yn&&!Rt&&(ne.osVersion=yn[2].replace(/_/g,"."),ne.iphone=!0),at&&(ne.osVersion=at[2].replace(/_/g,"."),ne.ipad=!0),Rt&&(ne.osVersion=Rt[3]?Rt[3].replace(/_/g,"."):null,ne.iphone=!0),ne.ios&&ne.osVersion&&w.indexOf("Version/")>=0&&"10"===ne.osVersion.split(".")[0]&&(ne.osVersion=w.toLowerCase().split("version/")[1].split(" ")[0]),ne.desktop=!(ne.os||ne.android||ne.webView),ne.webView=(yn||at||Rt)&&w.match(/.*AppleWebKit(?!.*Safari)/i),ne.os&&"ios"===ne.os){var Tn=ne.osVersion.split("."),Yn=x.querySelector('meta[name="viewport"]');ne.minimalUi=!ne.webView&&(Rt||yn)&&(1*Tn[0]==7?1*Tn[1]>=1:1*Tn[0]>7)&&Yn&&Yn.getAttribute("content").indexOf("minimal-ui")>=0}return ne.pixelRatio=i.devicePixelRatio||1,ne}();function gt(Re){var w=this,ne=w.touchEventsData,be=w.params,Ue=w.touches;if(!w.animating||!be.preventInteractionOnTransition){var at=Re;if(at.originalEvent&&(at=at.originalEvent),ne.isTouchEvent="touchstart"===at.type,(ne.isTouchEvent||!("which"in at)||3!==at.which)&&!(!ne.isTouchEvent&&"button"in at&&at.button>0)&&(!ne.isTouched||!ne.isMoved)){if(be.noSwiping&&n(at.target).closest(be.noSwipingSelector?be.noSwipingSelector:"."+be.noSwipingClass)[0])return void(w.allowClick=!0);if(!be.swipeHandler||n(at).closest(be.swipeHandler)[0]){Ue.currentX="touchstart"===at.type?at.targetTouches[0].pageX:at.pageX,Ue.currentY="touchstart"===at.type?at.targetTouches[0].pageY:at.pageY;var Rt=Ue.currentX,yn=Ue.currentY,Yn=be.edgeSwipeThreshold||be.iOSEdgeSwipeThreshold;if(!be.edgeSwipeDetection&&!be.iOSEdgeSwipeDetection||!(Rt<=Yn||Rt>=i.screen.width-Yn)){if(Ee.extend(ne,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),Ue.startX=Rt,Ue.startY=yn,ne.touchStartTime=Ee.now(),w.allowClick=!0,w.updateSize(),w.swipeDirection=void 0,be.threshold>0&&(ne.allowThresholdMove=!1),"touchstart"!==at.type){var Zn=!0;n(at.target).is(ne.formElements)&&(Zn=!1),x.activeElement&&n(x.activeElement).is(ne.formElements)&&x.activeElement!==at.target&&x.activeElement.blur(),(be.touchStartForcePreventDefault||Zn&&w.allowTouchMove&&be.touchStartPreventDefault)&&at.preventDefault()}w.emit("touchStart",at)}}}}}function ue(Re){var w=this,ne=w.touchEventsData,be=w.params,Ue=w.touches,at=w.rtlTranslate,Rt=Re;if(Rt.originalEvent&&(Rt=Rt.originalEvent),ne.isTouched){if(!ne.isTouchEvent||"mousemove"!==Rt.type){var yn="touchmove"===Rt.type?Rt.targetTouches[0].pageX:Rt.pageX,Tn="touchmove"===Rt.type?Rt.targetTouches[0].pageY:Rt.pageY;if(Rt.preventedByNestedSwiper)return Ue.startX=yn,void(Ue.startY=Tn);if(!w.allowTouchMove)return w.allowClick=!1,void(ne.isTouched&&(Ee.extend(Ue,{startX:yn,startY:Tn,currentX:yn,currentY:Tn}),ne.touchStartTime=Ee.now()));if(ne.isTouchEvent&&be.touchReleaseOnEdges&&!be.loop)if(w.isVertical()){if(Tn<Ue.startY&&w.translate<=w.maxTranslate()||Tn>Ue.startY&&w.translate>=w.minTranslate())return ne.isTouched=!1,void(ne.isMoved=!1)}else if(yn<Ue.startX&&w.translate<=w.maxTranslate()||yn>Ue.startX&&w.translate>=w.minTranslate())return;if(ne.isTouchEvent&&x.activeElement&&Rt.target===x.activeElement&&n(Rt.target).is(ne.formElements))return ne.isMoved=!0,void(w.allowClick=!1);if(ne.allowTouchCallbacks&&w.emit("touchMove",Rt),!(Rt.targetTouches&&Rt.targetTouches.length>1)){Ue.currentX=yn,Ue.currentY=Tn;var Yn=Ue.currentX-Ue.startX,Zn=Ue.currentY-Ue.startY;if(!(w.params.threshold&&Math.sqrt(Math.pow(Yn,2)+Math.pow(Zn,2))<w.params.threshold)){var ui;if(typeof ne.isScrolling>"u"&&(w.isHorizontal()&&Ue.currentY===Ue.startY||w.isVertical()&&Ue.currentX===Ue.startX?ne.isScrolling=!1:Yn*Yn+Zn*Zn>=25&&(ui=180*Math.atan2(Math.abs(Zn),Math.abs(Yn))/Math.PI,ne.isScrolling=w.isHorizontal()?ui>be.touchAngle:90-ui>be.touchAngle)),ne.isScrolling&&w.emit("touchMoveOpposite",Rt),typeof ne.startMoving>"u"&&(Ue.currentX!==Ue.startX||Ue.currentY!==Ue.startY)&&(ne.startMoving=!0),ne.isScrolling)return void(ne.isTouched=!1);if(ne.startMoving){w.allowClick=!1,Rt.preventDefault(),be.touchMoveStopPropagation&&!be.nested&&Rt.stopPropagation(),ne.isMoved||(be.loop&&w.loopFix(),ne.startTranslate=w.getTranslate(),w.setTransition(0),w.animating&&w.$wrapperEl.trigger("webkitTransitionEnd transitionend"),ne.allowMomentumBounce=!1,be.grabCursor&&(!0===w.allowSlideNext||!0===w.allowSlidePrev)&&w.setGrabCursor(!0),w.emit("sliderFirstMove",Rt)),w.emit("sliderMove",Rt),ne.isMoved=!0;var wi=w.isHorizontal()?Yn:Zn;Ue.diff=wi,wi*=be.touchRatio,at&&(wi=-wi),w.swipeDirection=wi>0?"prev":"next",ne.currentTranslate=wi+ne.startTranslate;var an=!0,bn=be.resistanceRatio;if(be.touchReleaseOnEdges&&(bn=0),wi>0&&ne.currentTranslate>w.minTranslate()?(an=!1,be.resistance&&(ne.currentTranslate=w.minTranslate()-1+Math.pow(-w.minTranslate()+ne.startTranslate+wi,bn))):wi<0&&ne.currentTranslate<w.maxTranslate()&&(an=!1,be.resistance&&(ne.currentTranslate=w.maxTranslate()+1-Math.pow(w.maxTranslate()-ne.startTranslate-wi,bn))),an&&(Rt.preventedByNestedSwiper=!0),!w.allowSlideNext&&"next"===w.swipeDirection&&ne.currentTranslate<ne.startTranslate&&(ne.currentTranslate=ne.startTranslate),!w.allowSlidePrev&&"prev"===w.swipeDirection&&ne.currentTranslate>ne.startTranslate&&(ne.currentTranslate=ne.startTranslate),be.threshold>0){if(!(Math.abs(wi)>be.threshold||ne.allowThresholdMove))return void(ne.currentTranslate=ne.startTranslate);if(!ne.allowThresholdMove)return ne.allowThresholdMove=!0,Ue.startX=Ue.currentX,Ue.startY=Ue.currentY,ne.currentTranslate=ne.startTranslate,void(Ue.diff=w.isHorizontal()?Ue.currentX-Ue.startX:Ue.currentY-Ue.startY)}be.followFinger&&((be.freeMode||be.watchSlidesProgress||be.watchSlidesVisibility)&&(w.updateActiveIndex(),w.updateSlidesClasses()),be.freeMode&&(0===ne.velocities.length&&ne.velocities.push({position:Ue[w.isHorizontal()?"startX":"startY"],time:ne.touchStartTime}),ne.velocities.push({position:Ue[w.isHorizontal()?"currentX":"currentY"],time:Ee.now()})),w.updateProgress(ne.currentTranslate),w.setTranslate(ne.currentTranslate))}}}}}else ne.startMoving&&ne.isScrolling&&w.emit("touchMoveOpposite",Rt)}function Ge(Re){var w=this,ne=w.touchEventsData,be=w.params,Ue=w.touches,at=w.rtlTranslate,Rt=w.$wrapperEl,yn=w.slidesGrid,Tn=w.snapGrid,Yn=Re;if(Yn.originalEvent&&(Yn=Yn.originalEvent),ne.allowTouchCallbacks&&w.emit("touchEnd",Yn),ne.allowTouchCallbacks=!1,!ne.isTouched)return ne.isMoved&&be.grabCursor&&w.setGrabCursor(!1),ne.isMoved=!1,void(ne.startMoving=!1);be.grabCursor&&ne.isMoved&&ne.isTouched&&(!0===w.allowSlideNext||!0===w.allowSlidePrev)&&w.setGrabCursor(!1);var wi,Zn=Ee.now(),ui=Zn-ne.touchStartTime;if(w.allowClick&&(w.updateClickedSlide(Yn),w.emit("tap",Yn),ui<300&&Zn-ne.lastClickTime>300&&(ne.clickTimeout&&clearTimeout(ne.clickTimeout),ne.clickTimeout=Ee.nextTick(function(){!w||w.destroyed||w.emit("click",Yn)},300)),ui<300&&Zn-ne.lastClickTime<300&&(ne.clickTimeout&&clearTimeout(ne.clickTimeout),w.emit("doubleTap",Yn))),ne.lastClickTime=Ee.now(),Ee.nextTick(function(){w.destroyed||(w.allowClick=!0)}),!ne.isTouched||!ne.isMoved||!w.swipeDirection||0===Ue.diff||ne.currentTranslate===ne.startTranslate)return ne.isTouched=!1,ne.isMoved=!1,void(ne.startMoving=!1);if(ne.isTouched=!1,ne.isMoved=!1,ne.startMoving=!1,wi=be.followFinger?at?w.translate:-w.translate:-ne.currentTranslate,be.freeMode){if(wi<-w.minTranslate())return void w.slideTo(w.activeIndex);if(wi>-w.maxTranslate())return void w.slideTo(w.slides.length<Tn.length?Tn.length-1:w.slides.length-1);if(be.freeModeMomentum){if(ne.velocities.length>1){var an=ne.velocities.pop(),bn=ne.velocities.pop(),ii=an.time-bn.time;w.velocity=(an.position-bn.position)/ii,w.velocity/=2,Math.abs(w.velocity)<be.freeModeMinimumVelocity&&(w.velocity=0),(ii>150||Ee.now()-an.time>300)&&(w.velocity=0)}else w.velocity=0;w.velocity*=be.freeModeMomentumVelocityRatio,ne.velocities.length=0;var li=1e3*be.freeModeMomentumRatio,ce=w.translate+w.velocity*li;at&&(ce=-ce);var ut,mn,Se=!1,Kt=20*Math.abs(w.velocity)*be.freeModeMomentumBounceRatio;if(ce<w.maxTranslate())be.freeModeMomentumBounce?(ce+w.maxTranslate()<-Kt&&(ce=w.maxTranslate()-Kt),ut=w.maxTranslate(),Se=!0,ne.allowMomentumBounce=!0):ce=w.maxTranslate(),be.loop&&be.centeredSlides&&(mn=!0);else if(ce>w.minTranslate())be.freeModeMomentumBounce?(ce-w.minTranslate()>Kt&&(ce=w.minTranslate()+Kt),ut=w.minTranslate(),Se=!0,ne.allowMomentumBounce=!0):ce=w.minTranslate(),be.loop&&be.centeredSlides&&(mn=!0);else if(be.freeModeSticky){for(var Un,qn=0;qn<Tn.length;qn+=1)if(Tn[qn]>-ce){Un=qn;break}ce=-(ce=Math.abs(Tn[Un]-ce)<Math.abs(Tn[Un-1]-ce)||"next"===w.swipeDirection?Tn[Un]:Tn[Un-1])}if(mn&&w.once("transitionEnd",function(){w.loopFix()}),0!==w.velocity)li=at?Math.abs((-ce-w.translate)/w.velocity):Math.abs((ce-w.translate)/w.velocity);else if(be.freeModeSticky)return void w.slideToClosest();be.freeModeMomentumBounce&&Se?(w.updateProgress(ut),w.setTransition(li),w.setTranslate(ce),w.transitionStart(!0,w.swipeDirection),w.animating=!0,Rt.transitionEnd(function(){!w||w.destroyed||!ne.allowMomentumBounce||(w.emit("momentumBounce"),w.setTransition(be.speed),w.setTranslate(ut),Rt.transitionEnd(function(){!w||w.destroyed||w.transitionEnd()}))})):w.velocity?(w.updateProgress(ce),w.setTransition(li),w.setTranslate(ce),w.transitionStart(!0,w.swipeDirection),w.animating||(w.animating=!0,Rt.transitionEnd(function(){!w||w.destroyed||w.transitionEnd()}))):w.updateProgress(ce),w.updateActiveIndex(),w.updateSlidesClasses()}else if(be.freeModeSticky)return void w.slideToClosest();(!be.freeModeMomentum||ui>=be.longSwipesMs)&&(w.updateProgress(),w.updateActiveIndex(),w.updateSlidesClasses())}else{for(var ci=0,hi=w.slidesSizesGrid[0],Ai=0;Ai<yn.length;Ai+=be.slidesPerGroup)typeof yn[Ai+be.slidesPerGroup]<"u"?wi>=yn[Ai]&&wi<yn[Ai+be.slidesPerGroup]&&(ci=Ai,hi=yn[Ai+be.slidesPerGroup]-yn[Ai]):wi>=yn[Ai]&&(ci=Ai,hi=yn[yn.length-1]-yn[yn.length-2]);var zi=(wi-yn[ci])/hi;if(ui>be.longSwipesMs){if(!be.longSwipes)return void w.slideTo(w.activeIndex);"next"===w.swipeDirection&&w.slideTo(zi>=be.longSwipesRatio?ci+be.slidesPerGroup:ci),"prev"===w.swipeDirection&&w.slideTo(zi>1-be.longSwipesRatio?ci+be.slidesPerGroup:ci)}else{if(!be.shortSwipes)return void w.slideTo(w.activeIndex);"next"===w.swipeDirection&&w.slideTo(ci+be.slidesPerGroup),"prev"===w.swipeDirection&&w.slideTo(ci)}}}function ee(){var Re=this,w=Re.params,ne=Re.el;if(!ne||0!==ne.offsetWidth){w.breakpoints&&Re.setBreakpoint();var be=Re.allowSlideNext,Ue=Re.allowSlidePrev,at=Re.snapGrid;if(Re.allowSlideNext=!0,Re.allowSlidePrev=!0,Re.updateSize(),Re.updateSlides(),w.freeMode){var Rt=Math.min(Math.max(Re.translate,Re.maxTranslate()),Re.minTranslate());Re.setTranslate(Rt),Re.updateActiveIndex(),Re.updateSlidesClasses(),w.autoHeight&&Re.updateAutoHeight()}else Re.updateSlidesClasses(),Re.slideTo(("auto"===w.slidesPerView||w.slidesPerView>1)&&Re.isEnd&&!Re.params.centeredSlides?Re.slides.length-1:Re.activeIndex,0,!1,!0);Re.autoplay&&Re.autoplay.running&&Re.autoplay.paused&&Re.autoplay.run(),Re.allowSlidePrev=Ue,Re.allowSlideNext=be,Re.params.watchOverflow&&at!==Re.snapGrid&&Re.checkOverflow()}}function De(Re){var w=this;w.allowClick||(w.params.preventClicks&&Re.preventDefault(),w.params.preventClicksPropagation&&w.animating&&(Re.stopPropagation(),Re.stopImmediatePropagation()))}var Nt={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},Rn={update:Xt,translate:bt,transition:Pe,slide:Ae,loop:ot,grabCursor:Z,manipulation:it,events:{attachEvents:function Ot(){var Re=this,w=Re.params,ne=Re.touchEvents,be=Re.el,Ue=Re.wrapperEl;Re.onTouchStart=gt.bind(Re),Re.onTouchMove=ue.bind(Re),Re.onTouchEnd=Ge.bind(Re),Re.onClick=De.bind(Re);var at="container"===w.touchEventsTarget?be:Ue,Rt=!!w.nested;if(Ye.touch||!Ye.pointerEvents&&!Ye.prefixedPointerEvents){if(Ye.touch){var yn=!("touchstart"!==ne.start||!Ye.passiveListener||!w.passiveListeners)&&{passive:!0,capture:!1};at.addEventListener(ne.start,Re.onTouchStart,yn),at.addEventListener(ne.move,Re.onTouchMove,Ye.passiveListener?{passive:!1,capture:Rt}:Rt),at.addEventListener(ne.end,Re.onTouchEnd,yn)}(w.simulateTouch&&!Be.ios&&!Be.android||w.simulateTouch&&!Ye.touch&&Be.ios)&&(at.addEventListener("mousedown",Re.onTouchStart,!1),x.addEventListener("mousemove",Re.onTouchMove,Rt),x.addEventListener("mouseup",Re.onTouchEnd,!1))}else at.addEventListener(ne.start,Re.onTouchStart,!1),x.addEventListener(ne.move,Re.onTouchMove,Rt),x.addEventListener(ne.end,Re.onTouchEnd,!1);(w.preventClicks||w.preventClicksPropagation)&&at.addEventListener("click",Re.onClick,!0),Re.on(Be.ios||Be.android?"resize orientationchange observerUpdate":"resize observerUpdate",ee,!0)},detachEvents:function cn(){var Re=this,w=Re.params,ne=Re.touchEvents,at="container"===w.touchEventsTarget?Re.el:Re.wrapperEl,Rt=!!w.nested;if(Ye.touch||!Ye.pointerEvents&&!Ye.prefixedPointerEvents){if(Ye.touch){var yn=!("onTouchStart"!==ne.start||!Ye.passiveListener||!w.passiveListeners)&&{passive:!0,capture:!1};at.removeEventListener(ne.start,Re.onTouchStart,yn),at.removeEventListener(ne.move,Re.onTouchMove,Rt),at.removeEventListener(ne.end,Re.onTouchEnd,yn)}(w.simulateTouch&&!Be.ios&&!Be.android||w.simulateTouch&&!Ye.touch&&Be.ios)&&(at.removeEventListener("mousedown",Re.onTouchStart,!1),x.removeEventListener("mousemove",Re.onTouchMove,Rt),x.removeEventListener("mouseup",Re.onTouchEnd,!1))}else at.removeEventListener(ne.start,Re.onTouchStart,!1),x.removeEventListener(ne.move,Re.onTouchMove,Rt),x.removeEventListener(ne.end,Re.onTouchEnd,!1);(w.preventClicks||w.preventClicksPropagation)&&at.removeEventListener("click",Re.onClick,!0),Re.off(Be.ios||Be.android?"resize orientationchange observerUpdate":"resize observerUpdate",ee)}},breakpoints:{setBreakpoint:function _i(){var Re=this,w=Re.activeIndex,ne=Re.initialized,be=Re.loopedSlides;void 0===be&&(be=0);var Ue=Re.params,at=Ue.breakpoints;if(at&&(!at||0!==Object.keys(at).length)){var Rt=Re.getBreakpoint(at);if(Rt&&Re.currentBreakpoint!==Rt){var yn=Rt in at?at[Rt]:void 0;yn&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(ui){var wi=yn[ui];typeof wi>"u"||(yn[ui]="slidesPerView"!==ui||"AUTO"!==wi&&"auto"!==wi?"slidesPerView"===ui?parseFloat(wi):parseInt(wi,10):"auto")});var Tn=yn||Re.originalParams,Yn=Tn.direction&&Tn.direction!==Ue.direction,Zn=Ue.loop&&(Tn.slidesPerView!==Ue.slidesPerView||Yn);Yn&&ne&&Re.changeDirection(),Ee.extend(Re.params,Tn),Ee.extend(Re,{allowTouchMove:Re.params.allowTouchMove,allowSlideNext:Re.params.allowSlideNext,allowSlidePrev:Re.params.allowSlidePrev}),Re.currentBreakpoint=Rt,Zn&&ne&&(Re.loopDestroy(),Re.loopCreate(),Re.updateSlides(),Re.slideTo(w-be+Re.loopedSlides,0,!1)),Re.emit("breakpoint",Tn)}}},getBreakpoint:function Ni(Re){if(Re){var ne=!1,be=[];Object.keys(Re).forEach(function(Rt){be.push(Rt)}),be.sort(function(Rt,yn){return parseInt(Rt,10)-parseInt(yn,10)});for(var Ue=0;Ue<be.length;Ue+=1){var at=be[Ue];this.params.breakpointsInverse?at<=i.innerWidth&&(ne=at):at>=i.innerWidth&&!ne&&(ne=at)}return ne||"max"}}},checkOverflow:{checkOverflow:function rn(){var Re=this,w=Re.isLocked;Re.isLocked=1===Re.snapGrid.length,Re.allowSlideNext=!Re.isLocked,Re.allowSlidePrev=!Re.isLocked,w!==Re.isLocked&&Re.emit(Re.isLocked?"lock":"unlock"),w&&w!==Re.isLocked&&(Re.isEnd=!1,Re.navigation.update())}},classes:{addClasses:function Mn(){var w=this.classNames,ne=this.params,be=this.rtl,Ue=this.$el,at=[];at.push("initialized"),at.push(ne.direction),ne.freeMode&&at.push("free-mode"),Ye.flexbox||at.push("no-flexbox"),ne.autoHeight&&at.push("autoheight"),be&&at.push("rtl"),ne.slidesPerColumn>1&&at.push("multirow"),Be.android&&at.push("android"),Be.ios&&at.push("ios"),(wt.isIE||wt.isEdge)&&(Ye.pointerEvents||Ye.prefixedPointerEvents)&&at.push("wp8-"+ne.direction),at.forEach(function(Rt){w.push(ne.containerModifierClass+Rt)}),Ue.addClass(w.join(" "))},removeClasses:function On(){this.$el.removeClass(this.classNames.join(" "))}},images:{loadImage:function Ti(Re,w,ne,be,Ue,at){var Rt;function yn(){at&&at()}Re.complete&&Ue||!w?yn():((Rt=new i.Image).onload=yn,Rt.onerror=yn,be&&(Rt.sizes=be),ne&&(Rt.srcset=ne),w&&(Rt.src=w))},preloadImages:function Si(){var Re=this;function w(){typeof Re>"u"||null===Re||!Re||Re.destroyed||(void 0!==Re.imagesLoaded&&(Re.imagesLoaded+=1),Re.imagesLoaded===Re.imagesToLoad.length&&(Re.params.updateOnImagesReady&&Re.update(),Re.emit("imagesReady")))}Re.imagesToLoad=Re.$el.find("img");for(var ne=0;ne<Re.imagesToLoad.length;ne+=1){var be=Re.imagesToLoad[ne];Re.loadImage(be,be.currentSrc||be.getAttribute("src"),be.srcset||be.getAttribute("srcset"),be.sizes||be.getAttribute("sizes"),!0,w)}}}},Wn={},ji=function(Re){function w(){for(var be,Ue=[],at=arguments.length;at--;)Ue[at]=arguments[at];var Rt,yn;1===Ue.length&&Ue[0].constructor&&Ue[0].constructor===Object?yn=Ue[0]:(Rt=(be=Ue)[0],yn=be[1]),yn||(yn={}),yn=Ee.extend({},yn),Rt&&!yn.el&&(yn.el=Rt),Re.call(this,yn),Object.keys(Rn).forEach(function(an){Object.keys(Rn[an]).forEach(function(bn){w.prototype[bn]||(w.prototype[bn]=Rn[an][bn])})});var Tn=this;typeof Tn.modules>"u"&&(Tn.modules={}),Object.keys(Tn.modules).forEach(function(an){var bn=Tn.modules[an];if(bn.params){var Dn=Object.keys(bn.params)[0],ii=bn.params[Dn];if("object"!=typeof ii||null===ii||!(Dn in yn)||!("enabled"in ii))return;!0===yn[Dn]&&(yn[Dn]={enabled:!0}),"object"==typeof yn[Dn]&&!("enabled"in yn[Dn])&&(yn[Dn].enabled=!0),yn[Dn]||(yn[Dn]={enabled:!1})}});var Yn=Ee.extend({},Nt);Tn.useModulesParams(Yn),Tn.params=Ee.extend({},Yn,Wn,yn),Tn.originalParams=Ee.extend({},Tn.params),Tn.passedParams=Ee.extend({},yn),Tn.$=n;var bn,Dn,Zn=n(Tn.params.el);if(Rt=Zn[0]){if(Zn.length>1){var ui=[];return Zn.each(function(an,bn){var Dn=Ee.extend({},yn,{el:bn});ui.push(new w(Dn))}),ui}Rt.swiper=Tn,Zn.data("swiper",Tn);var wi=Zn.children("."+Tn.params.wrapperClass);return Ee.extend(Tn,{$el:Zn,el:Rt,$wrapperEl:wi,wrapperEl:wi[0],classNames:[],slides:n(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===Tn.params.direction},isVertical:function(){return"vertical"===Tn.params.direction},rtl:"rtl"===Rt.dir.toLowerCase()||"rtl"===Zn.css("direction"),rtlTranslate:"horizontal"===Tn.params.direction&&("rtl"===Rt.dir.toLowerCase()||"rtl"===Zn.css("direction")),wrongRTL:"-webkit-box"===wi.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:Tn.params.allowSlideNext,allowSlidePrev:Tn.params.allowSlidePrev,touchEvents:(bn=["touchstart","touchmove","touchend"],Dn=["mousedown","mousemove","mouseup"],Ye.pointerEvents?Dn=["pointerdown","pointermove","pointerup"]:Ye.prefixedPointerEvents&&(Dn=["MSPointerDown","MSPointerMove","MSPointerUp"]),Tn.touchEventsTouch={start:bn[0],move:bn[1],end:bn[2]},Tn.touchEventsDesktop={start:Dn[0],move:Dn[1],end:Dn[2]},Ye.touch||!Tn.params.simulateTouch?Tn.touchEventsTouch:Tn.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:Ee.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:Tn.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),Tn.useModules(),Tn.params.init&&Tn.init(),Tn}}Re&&(w.__proto__=Re),(w.prototype=Object.create(Re&&Re.prototype)).constructor=w;var ne={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return w.prototype.slidesPerViewDynamic=function(){var Ue=this,Rt=Ue.slides,yn=Ue.slidesGrid,Tn=Ue.size,Yn=Ue.activeIndex,Zn=1;if(Ue.params.centeredSlides){for(var wi,ui=Rt[Yn].swiperSlideSize,an=Yn+1;an<Rt.length;an+=1)Rt[an]&&!wi&&(Zn+=1,(ui+=Rt[an].swiperSlideSize)>Tn&&(wi=!0));for(var bn=Yn-1;bn>=0;bn-=1)Rt[bn]&&!wi&&(Zn+=1,(ui+=Rt[bn].swiperSlideSize)>Tn&&(wi=!0))}else for(var Dn=Yn+1;Dn<Rt.length;Dn+=1)yn[Dn]-yn[Yn]<Tn&&(Zn+=1);return Zn},w.prototype.update=function(){var Ue=this;if(Ue&&!Ue.destroyed){var at=Ue.snapGrid,Rt=Ue.params;Rt.breakpoints&&Ue.setBreakpoint(),Ue.updateSize(),Ue.updateSlides(),Ue.updateProgress(),Ue.updateSlidesClasses(),Ue.params.freeMode?(yn(),Ue.params.autoHeight&&Ue.updateAutoHeight()):Ue.slideTo(("auto"===Ue.params.slidesPerView||Ue.params.slidesPerView>1)&&Ue.isEnd&&!Ue.params.centeredSlides?Ue.slides.length-1:Ue.activeIndex,0,!1,!0)||yn(),Rt.watchOverflow&&at!==Ue.snapGrid&&Ue.checkOverflow(),Ue.emit("update")}function yn(){var Zn=Math.min(Math.max(Ue.rtlTranslate?-1*Ue.translate:Ue.translate,Ue.maxTranslate()),Ue.minTranslate());Ue.setTranslate(Zn),Ue.updateActiveIndex(),Ue.updateSlidesClasses()}},w.prototype.changeDirection=function(Ue,at){void 0===at&&(at=!0);var Rt=this,yn=Rt.params.direction;return Ue||(Ue="horizontal"===yn?"vertical":"horizontal"),Ue===yn||"horizontal"!==Ue&&"vertical"!==Ue||(Rt.$el.removeClass(""+Rt.params.containerModifierClass+yn+" wp8-"+yn).addClass(""+Rt.params.containerModifierClass+Ue),(wt.isIE||wt.isEdge)&&(Ye.pointerEvents||Ye.prefixedPointerEvents)&&Rt.$el.addClass(Rt.params.containerModifierClass+"wp8-"+Ue),Rt.params.direction=Ue,Rt.slides.each(function(Tn,Yn){"vertical"===Ue?Yn.style.width="":Yn.style.height=""}),Rt.emit("changeDirection"),at&&Rt.update()),Rt},w.prototype.init=function(){var Ue=this;Ue.initialized||(Ue.emit("beforeInit"),Ue.params.breakpoints&&Ue.setBreakpoint(),Ue.addClasses(),Ue.params.loop&&Ue.loopCreate(),Ue.updateSize(),Ue.updateSlides(),Ue.params.watchOverflow&&Ue.checkOverflow(),Ue.params.grabCursor&&Ue.setGrabCursor(),Ue.params.preloadImages&&Ue.preloadImages(),Ue.slideTo(Ue.params.loop?Ue.params.initialSlide+Ue.loopedSlides:Ue.params.initialSlide,0,Ue.params.runCallbacksOnInit),Ue.attachEvents(),Ue.initialized=!0,Ue.emit("init"))},w.prototype.destroy=function(Ue,at){void 0===Ue&&(Ue=!0),void 0===at&&(at=!0);var Rt=this,yn=Rt.params,Tn=Rt.$el,Yn=Rt.$wrapperEl,Zn=Rt.slides;return typeof Rt.params>"u"||Rt.destroyed||(Rt.emit("beforeDestroy"),Rt.initialized=!1,Rt.detachEvents(),yn.loop&&Rt.loopDestroy(),at&&(Rt.removeClasses(),Tn.removeAttr("style"),Yn.removeAttr("style"),Zn&&Zn.length&&Zn.removeClass([yn.slideVisibleClass,yn.slideActiveClass,yn.slideNextClass,yn.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),Rt.emit("destroy"),Object.keys(Rt.eventsListeners).forEach(function(ui){Rt.off(ui)}),!1!==Ue&&(Rt.$el[0].swiper=null,Rt.$el.data("swiper",null),Ee.deleteProps(Rt)),Rt.destroyed=!0),null},w.extendDefaults=function(Ue){Ee.extend(Wn,Ue)},ne.extendedDefaults.get=function(){return Wn},ne.defaults.get=function(){return Nt},ne.Class.get=function(){return Re},ne.$.get=function(){return n},Object.defineProperties(w,ne),w}(Wt),ir={name:"device",proto:{device:Be},static:{device:Be}},dr={name:"support",proto:{support:Ye},static:{support:Ye}},Ln={name:"browser",proto:{browser:wt},static:{browser:wt}},Vn={name:"resize",create:function(){var w=this;Ee.extend(w,{resize:{resizeHandler:function(){!w||w.destroyed||!w.initialized||(w.emit("beforeResize"),w.emit("resize"))},orientationChangeHandler:function(){!w||w.destroyed||!w.initialized||w.emit("orientationchange")}}})},on:{init:function(){i.addEventListener("resize",this.resize.resizeHandler),i.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){i.removeEventListener("resize",this.resize.resizeHandler),i.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},Le={func:i.MutationObserver||i.WebkitMutationObserver,attach:function(w,ne){void 0===ne&&(ne={});var be=this,at=new(0,Le.func)(function(Rt){if(1!==Rt.length){var yn=function(){be.emit("observerUpdate",Rt[0])};i.requestAnimationFrame?i.requestAnimationFrame(yn):i.setTimeout(yn,0)}else be.emit("observerUpdate",Rt[0])});at.observe(w,{attributes:typeof ne.attributes>"u"||ne.attributes,childList:typeof ne.childList>"u"||ne.childList,characterData:typeof ne.characterData>"u"||ne.characterData}),be.observer.observers.push(at)},init:function(){var w=this;if(Ye.observer&&w.params.observer){if(w.params.observeParents)for(var ne=w.$el.parents(),be=0;be<ne.length;be+=1)w.observer.attach(ne[be]);w.observer.attach(w.$el[0],{childList:w.params.observeSlideChildren}),w.observer.attach(w.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(ne){ne.disconnect()}),this.observer.observers=[]}},Ft={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var w=this;Ee.extend(w,{observer:{init:Le.init.bind(w),attach:Le.attach.bind(w),destroy:Le.destroy.bind(w),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},dn={update:function(w){var ne=this,be=ne.params,Ue=be.slidesPerView,at=be.slidesPerGroup,Rt=be.centeredSlides,yn=ne.params.virtual,Tn=yn.addSlidesBefore,Yn=yn.addSlidesAfter,Zn=ne.virtual,ui=Zn.from,wi=Zn.to,an=Zn.slides,bn=Zn.slidesGrid,Dn=Zn.renderSlide,ii=Zn.offset;ne.updateActiveIndex();var ft,ce,Se,li=ne.activeIndex||0;ft=ne.rtlTranslate?"right":ne.isHorizontal()?"left":"top",Rt?(ce=Math.floor(Ue/2)+at+Tn,Se=Math.floor(Ue/2)+at+Yn):(ce=Ue+(at-1)+Tn,Se=at+Yn);var ut=Math.max((li||0)-Se,0),Kt=Math.min((li||0)+ce,an.length-1),mn=(ne.slidesGrid[ut]||0)-(ne.slidesGrid[0]||0);function Un(){ne.updateSlides(),ne.updateProgress(),ne.updateSlidesClasses(),ne.lazy&&ne.params.lazy.enabled&&ne.lazy.load()}if(Ee.extend(ne.virtual,{from:ut,to:Kt,offset:mn,slidesGrid:ne.slidesGrid}),ui===ut&&wi===Kt&&!w)return ne.slidesGrid!==bn&&mn!==ii&&ne.slides.css(ft,mn+"px"),void ne.updateProgress();if(ne.params.virtual.renderExternal)return ne.params.virtual.renderExternal.call(ne,{offset:mn,from:ut,to:Kt,slides:function(){for(var Yi=[],tr=ut;tr<=Kt;tr+=1)Yi.push(an[tr]);return Yi}()}),void Un();var qn=[],ci=[];if(w)ne.$wrapperEl.find("."+ne.params.slideClass).remove();else for(var hi=ui;hi<=wi;hi+=1)(hi<ut||hi>Kt)&&ne.$wrapperEl.find("."+ne.params.slideClass+'[data-swiper-slide-index="'+hi+'"]').remove();for(var Ai=0;Ai<an.length;Ai+=1)Ai>=ut&&Ai<=Kt&&(typeof wi>"u"||w?ci.push(Ai):(Ai>wi&&ci.push(Ai),Ai<ui&&qn.push(Ai)));ci.forEach(function(zi){ne.$wrapperEl.append(Dn(an[zi],zi))}),qn.sort(function(zi,Yi){return Yi-zi}).forEach(function(zi){ne.$wrapperEl.prepend(Dn(an[zi],zi))}),ne.$wrapperEl.children(".swiper-slide").css(ft,mn+"px"),Un()},renderSlide:function(w,ne){var be=this,Ue=be.params.virtual;if(Ue.cache&&be.virtual.cache[ne])return be.virtual.cache[ne];var at=n(Ue.renderSlide?Ue.renderSlide.call(be,w,ne):'<div class="'+be.params.slideClass+'" data-swiper-slide-index="'+ne+'">'+w+"</div>");return at.attr("data-swiper-slide-index")||at.attr("data-swiper-slide-index",ne),Ue.cache&&(be.virtual.cache[ne]=at),at},appendSlide:function(w){if("object"==typeof w&&"length"in w)for(var be=0;be<w.length;be+=1)w[be]&&this.virtual.slides.push(w[be]);else this.virtual.slides.push(w);this.virtual.update(!0)},prependSlide:function(w){var ne=this,be=ne.activeIndex,Ue=be+1,at=1;if(Array.isArray(w)){for(var Rt=0;Rt<w.length;Rt+=1)w[Rt]&&ne.virtual.slides.unshift(w[Rt]);Ue=be+w.length,at=w.length}else ne.virtual.slides.unshift(w);if(ne.params.virtual.cache){var yn=ne.virtual.cache,Tn={};Object.keys(yn).forEach(function(Yn){Tn[parseInt(Yn,10)+at]=yn[Yn]}),ne.virtual.cache=Tn}ne.virtual.update(!0),ne.slideTo(Ue,0)},removeSlide:function(w){var ne=this;if(!(typeof w>"u"||null===w)){var be=ne.activeIndex;if(Array.isArray(w))for(var Ue=w.length-1;Ue>=0;Ue-=1)ne.virtual.slides.splice(w[Ue],1),ne.params.virtual.cache&&delete ne.virtual.cache[w[Ue]],w[Ue]<be&&(be-=1),be=Math.max(be,0);else ne.virtual.slides.splice(w,1),ne.params.virtual.cache&&delete ne.virtual.cache[w],w<be&&(be-=1),be=Math.max(be,0);ne.virtual.update(!0),ne.slideTo(be,0)}},removeAllSlides:function(){var w=this;w.virtual.slides=[],w.params.virtual.cache&&(w.virtual.cache={}),w.virtual.update(!0),w.slideTo(0,0)}},En={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var w=this;Ee.extend(w,{virtual:{update:dn.update.bind(w),appendSlide:dn.appendSlide.bind(w),prependSlide:dn.prependSlide.bind(w),removeSlide:dn.removeSlide.bind(w),removeAllSlides:dn.removeAllSlides.bind(w),renderSlide:dn.renderSlide.bind(w),slides:w.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var w=this;if(w.params.virtual.enabled){w.classNames.push(w.params.containerModifierClass+"virtual");var ne={watchSlidesProgress:!0};Ee.extend(w.params,ne),Ee.extend(w.originalParams,ne),w.params.initialSlide||w.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},gi={handle:function(w){var ne=this,be=ne.rtlTranslate,Ue=w;Ue.originalEvent&&(Ue=Ue.originalEvent);var at=Ue.keyCode||Ue.charCode;if(!ne.allowSlideNext&&(ne.isHorizontal()&&39===at||ne.isVertical()&&40===at||34===at)||!ne.allowSlidePrev&&(ne.isHorizontal()&&37===at||ne.isVertical()&&38===at||33===at))return!1;if(!(Ue.shiftKey||Ue.altKey||Ue.ctrlKey||Ue.metaKey||x.activeElement&&x.activeElement.nodeName&&("input"===x.activeElement.nodeName.toLowerCase()||"textarea"===x.activeElement.nodeName.toLowerCase()))){if(ne.params.keyboard.onlyInViewport&&(33===at||34===at||37===at||39===at||38===at||40===at)){var Rt=!1;if(ne.$el.parents("."+ne.params.slideClass).length>0&&0===ne.$el.parents("."+ne.params.slideActiveClass).length)return;var yn=i.innerWidth,Tn=i.innerHeight,Yn=ne.$el.offset();be&&(Yn.left-=ne.$el[0].scrollLeft);for(var Zn=[[Yn.left,Yn.top],[Yn.left+ne.width,Yn.top],[Yn.left,Yn.top+ne.height],[Yn.left+ne.width,Yn.top+ne.height]],ui=0;ui<Zn.length;ui+=1){var wi=Zn[ui];wi[0]>=0&&wi[0]<=yn&&wi[1]>=0&&wi[1]<=Tn&&(Rt=!0)}if(!Rt)return}ne.isHorizontal()?((33===at||34===at||37===at||39===at)&&(Ue.preventDefault?Ue.preventDefault():Ue.returnValue=!1),((34===at||39===at)&&!be||(33===at||37===at)&&be)&&ne.slideNext(),((33===at||37===at)&&!be||(34===at||39===at)&&be)&&ne.slidePrev()):((33===at||34===at||38===at||40===at)&&(Ue.preventDefault?Ue.preventDefault():Ue.returnValue=!1),(34===at||40===at)&&ne.slideNext(),(33===at||38===at)&&ne.slidePrev()),ne.emit("keyPress",at)}},enable:function(){var w=this;w.keyboard.enabled||(n(x).on("keydown",w.keyboard.handle),w.keyboard.enabled=!0)},disable:function(){var w=this;w.keyboard.enabled&&(n(x).off("keydown",w.keyboard.handle),w.keyboard.enabled=!1)}},$i={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var w=this;Ee.extend(w,{keyboard:{enabled:!1,enable:gi.enable.bind(w),disable:gi.disable.bind(w),handle:gi.handle.bind(w)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var Mr={lastScrollTime:Ee.now(),event:i.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function fr(){var Re="onwheel",w=Re in x;if(!w){var ne=x.createElement("div");ne.setAttribute(Re,"return;"),w="function"==typeof ne[Re]}return!w&&x.implementation&&x.implementation.hasFeature&&!0!==x.implementation.hasFeature("","")&&(w=x.implementation.hasFeature("Events.wheel","3.0")),w}()?"wheel":"mousewheel",normalize:function(w){var at=0,Rt=0,yn=0,Tn=0;return"detail"in w&&(Rt=w.detail),"wheelDelta"in w&&(Rt=-w.wheelDelta/120),"wheelDeltaY"in w&&(Rt=-w.wheelDeltaY/120),"wheelDeltaX"in w&&(at=-w.wheelDeltaX/120),"axis"in w&&w.axis===w.HORIZONTAL_AXIS&&(at=Rt,Rt=0),yn=10*at,Tn=10*Rt,"deltaY"in w&&(Tn=w.deltaY),"deltaX"in w&&(yn=w.deltaX),(yn||Tn)&&w.deltaMode&&(1===w.deltaMode?(yn*=40,Tn*=40):(yn*=800,Tn*=800)),yn&&!at&&(at=yn<1?-1:1),Tn&&!Rt&&(Rt=Tn<1?-1:1),{spinX:at,spinY:Rt,pixelX:yn,pixelY:Tn}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(w){var ne=w,be=this,Ue=be.params.mousewheel;if(!be.mouseEntered&&!Ue.releaseOnEdges)return!0;ne.originalEvent&&(ne=ne.originalEvent);var at=0,Rt=be.rtlTranslate?-1:1,yn=Mr.normalize(ne);if(Ue.forceToAxis)if(be.isHorizontal()){if(!(Math.abs(yn.pixelX)>Math.abs(yn.pixelY)))return!0;at=yn.pixelX*Rt}else{if(!(Math.abs(yn.pixelY)>Math.abs(yn.pixelX)))return!0;at=yn.pixelY}else at=Math.abs(yn.pixelX)>Math.abs(yn.pixelY)?-yn.pixelX*Rt:-yn.pixelY;if(0===at)return!0;if(Ue.invert&&(at=-at),be.params.freeMode){be.params.loop&&be.loopFix();var Tn=be.getTranslate()+at*Ue.sensitivity,Yn=be.isBeginning,Zn=be.isEnd;if(Tn>=be.minTranslate()&&(Tn=be.minTranslate()),Tn<=be.maxTranslate()&&(Tn=be.maxTranslate()),be.setTransition(0),be.setTranslate(Tn),be.updateProgress(),be.updateActiveIndex(),be.updateSlidesClasses(),(!Yn&&be.isBeginning||!Zn&&be.isEnd)&&be.updateSlidesClasses(),be.params.freeModeSticky&&(clearTimeout(be.mousewheel.timeout),be.mousewheel.timeout=Ee.nextTick(function(){be.slideToClosest()},300)),be.emit("scroll",ne),be.params.autoplay&&be.params.autoplayDisableOnInteraction&&be.autoplay.stop(),Tn===be.minTranslate()||Tn===be.maxTranslate())return!0}else{if(Ee.now()-be.mousewheel.lastScrollTime>60)if(at<0)if(be.isEnd&&!be.params.loop||be.animating){if(Ue.releaseOnEdges)return!0}else be.slideNext(),be.emit("scroll",ne);else if(be.isBeginning&&!be.params.loop||be.animating){if(Ue.releaseOnEdges)return!0}else be.slidePrev(),be.emit("scroll",ne);be.mousewheel.lastScrollTime=(new i.Date).getTime()}return ne.preventDefault?ne.preventDefault():ne.returnValue=!1,!1},enable:function(){var w=this;if(!Mr.event||w.mousewheel.enabled)return!1;var ne=w.$el;return"container"!==w.params.mousewheel.eventsTarged&&(ne=n(w.params.mousewheel.eventsTarged)),ne.on("mouseenter",w.mousewheel.handleMouseEnter),ne.on("mouseleave",w.mousewheel.handleMouseLeave),ne.on(Mr.event,w.mousewheel.handle),w.mousewheel.enabled=!0,!0},disable:function(){var w=this;if(!Mr.event||!w.mousewheel.enabled)return!1;var ne=w.$el;return"container"!==w.params.mousewheel.eventsTarged&&(ne=n(w.params.mousewheel.eventsTarged)),ne.off(Mr.event,w.mousewheel.handle),w.mousewheel.enabled=!1,!0}},Kn={update:function(){var w=this,ne=w.params.navigation;if(!w.params.loop){var be=w.navigation,Ue=be.$nextEl,at=be.$prevEl;at&&at.length>0&&(w.isBeginning?at.addClass(ne.disabledClass):at.removeClass(ne.disabledClass),at[w.params.watchOverflow&&w.isLocked?"addClass":"removeClass"](ne.lockClass)),Ue&&Ue.length>0&&(w.isEnd?Ue.addClass(ne.disabledClass):Ue.removeClass(ne.disabledClass),Ue[w.params.watchOverflow&&w.isLocked?"addClass":"removeClass"](ne.lockClass))}},onPrevClick:function(w){w.preventDefault(),(!this.isBeginning||this.params.loop)&&this.slidePrev()},onNextClick:function(w){w.preventDefault(),(!this.isEnd||this.params.loop)&&this.slideNext()},init:function(){var be,Ue,w=this,ne=w.params.navigation;(ne.nextEl||ne.prevEl)&&(ne.nextEl&&(be=n(ne.nextEl),w.params.uniqueNavElements&&"string"==typeof ne.nextEl&&be.length>1&&1===w.$el.find(ne.nextEl).length&&(be=w.$el.find(ne.nextEl))),ne.prevEl&&(Ue=n(ne.prevEl),w.params.uniqueNavElements&&"string"==typeof ne.prevEl&&Ue.length>1&&1===w.$el.find(ne.prevEl).length&&(Ue=w.$el.find(ne.prevEl))),be&&be.length>0&&be.on("click",w.navigation.onNextClick),Ue&&Ue.length>0&&Ue.on("click",w.navigation.onPrevClick),Ee.extend(w.navigation,{$nextEl:be,nextEl:be&&be[0],$prevEl:Ue,prevEl:Ue&&Ue[0]}))},destroy:function(){var w=this,ne=w.navigation,be=ne.$nextEl,Ue=ne.$prevEl;be&&be.length&&(be.off("click",w.navigation.onNextClick),be.removeClass(w.params.navigation.disabledClass)),Ue&&Ue.length&&(Ue.off("click",w.navigation.onPrevClick),Ue.removeClass(w.params.navigation.disabledClass))}},he={update:function(){var w=this,ne=w.rtl,be=w.params.pagination;if(be.el&&w.pagination.el&&w.pagination.$el&&0!==w.pagination.$el.length){var Rt,Ue=w.virtual&&w.params.virtual.enabled?w.virtual.slides.length:w.slides.length,at=w.pagination.$el,yn=w.params.loop?Math.ceil((Ue-2*w.loopedSlides)/w.params.slidesPerGroup):w.snapGrid.length;if(w.params.loop?((Rt=Math.ceil((w.activeIndex-w.loopedSlides)/w.params.slidesPerGroup))>Ue-1-2*w.loopedSlides&&(Rt-=Ue-2*w.loopedSlides),Rt>yn-1&&(Rt-=yn),Rt<0&&"bullets"!==w.params.paginationType&&(Rt=yn+Rt)):Rt=typeof w.snapIndex<"u"?w.snapIndex:w.activeIndex||0,"bullets"===be.type&&w.pagination.bullets&&w.pagination.bullets.length>0){var Yn,Zn,ui,Tn=w.pagination.bullets;if(be.dynamicBullets&&(w.pagination.bulletSize=Tn.eq(0)[w.isHorizontal()?"outerWidth":"outerHeight"](!0),at.css(w.isHorizontal()?"width":"height",w.pagination.bulletSize*(be.dynamicMainBullets+4)+"px"),be.dynamicMainBullets>1&&void 0!==w.previousIndex&&(w.pagination.dynamicBulletIndex+=Rt-w.previousIndex,w.pagination.dynamicBulletIndex>be.dynamicMainBullets-1?w.pagination.dynamicBulletIndex=be.dynamicMainBullets-1:w.pagination.dynamicBulletIndex<0&&(w.pagination.dynamicBulletIndex=0)),ui=((Zn=(Yn=Rt-w.pagination.dynamicBulletIndex)+(Math.min(Tn.length,be.dynamicMainBullets)-1))+Yn)/2),Tn.removeClass(be.bulletActiveClass+" "+be.bulletActiveClass+"-next "+be.bulletActiveClass+"-next-next "+be.bulletActiveClass+"-prev "+be.bulletActiveClass+"-prev-prev "+be.bulletActiveClass+"-main"),at.length>1)Tn.each(function(mn,Un){var qn=n(Un),ci=qn.index();ci===Rt&&qn.addClass(be.bulletActiveClass),be.dynamicBullets&&(ci>=Yn&&ci<=Zn&&qn.addClass(be.bulletActiveClass+"-main"),ci===Yn&&qn.prev().addClass(be.bulletActiveClass+"-prev").prev().addClass(be.bulletActiveClass+"-prev-prev"),ci===Zn&&qn.next().addClass(be.bulletActiveClass+"-next").next().addClass(be.bulletActiveClass+"-next-next"))});else if(Tn.eq(Rt).addClass(be.bulletActiveClass),be.dynamicBullets){for(var an=Tn.eq(Yn),bn=Tn.eq(Zn),Dn=Yn;Dn<=Zn;Dn+=1)Tn.eq(Dn).addClass(be.bulletActiveClass+"-main");an.prev().addClass(be.bulletActiveClass+"-prev").prev().addClass(be.bulletActiveClass+"-prev-prev"),bn.next().addClass(be.bulletActiveClass+"-next").next().addClass(be.bulletActiveClass+"-next-next")}if(be.dynamicBullets){var ii=Math.min(Tn.length,be.dynamicMainBullets+4),li=(w.pagination.bulletSize*ii-w.pagination.bulletSize)/2-ui*w.pagination.bulletSize,ft=ne?"right":"left";Tn.css(w.isHorizontal()?ft:"top",li+"px")}}if("fraction"===be.type&&(at.find("."+be.currentClass).text(be.formatFractionCurrent(Rt+1)),at.find("."+be.totalClass).text(be.formatFractionTotal(yn))),"progressbar"===be.type){var ce;ce=be.progressbarOpposite?w.isHorizontal()?"vertical":"horizontal":w.isHorizontal()?"horizontal":"vertical";var Se=(Rt+1)/yn,ut=1,Kt=1;"horizontal"===ce?ut=Se:Kt=Se,at.find("."+be.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+ut+") scaleY("+Kt+")").transition(w.params.speed)}"custom"===be.type&&be.renderCustom?(at.html(be.renderCustom(w,Rt+1,yn)),w.emit("paginationRender",w,at[0])):w.emit("paginationUpdate",w,at[0]),at[w.params.watchOverflow&&w.isLocked?"addClass":"removeClass"](be.lockClass)}},render:function(){var w=this,ne=w.params.pagination;if(ne.el&&w.pagination.el&&w.pagination.$el&&0!==w.pagination.$el.length){var Ue=w.pagination.$el,at="";if("bullets"===ne.type){for(var Rt=w.params.loop?Math.ceil(((w.virtual&&w.params.virtual.enabled?w.virtual.slides.length:w.slides.length)-2*w.loopedSlides)/w.params.slidesPerGroup):w.snapGrid.length,yn=0;yn<Rt;yn+=1)at+=ne.renderBullet?ne.renderBullet.call(w,yn,ne.bulletClass):"<"+ne.bulletElement+' class="'+ne.bulletClass+'"></'+ne.bulletElement+">";Ue.html(at),w.pagination.bullets=Ue.find("."+ne.bulletClass)}"fraction"===ne.type&&(at=ne.renderFraction?ne.renderFraction.call(w,ne.currentClass,ne.totalClass):'<span class="'+ne.currentClass+'"></span> / <span class="'+ne.totalClass+'"></span>',Ue.html(at)),"progressbar"===ne.type&&(at=ne.renderProgressbar?ne.renderProgressbar.call(w,ne.progressbarFillClass):'<span class="'+ne.progressbarFillClass+'"></span>',Ue.html(at)),"custom"!==ne.type&&w.emit("paginationRender",w.pagination.$el[0])}},init:function(){var w=this,ne=w.params.pagination;if(ne.el){var be=n(ne.el);0!==be.length&&(w.params.uniqueNavElements&&"string"==typeof ne.el&&be.length>1&&1===w.$el.find(ne.el).length&&(be=w.$el.find(ne.el)),"bullets"===ne.type&&ne.clickable&&be.addClass(ne.clickableClass),be.addClass(ne.modifierClass+ne.type),"bullets"===ne.type&&ne.dynamicBullets&&(be.addClass(""+ne.modifierClass+ne.type+"-dynamic"),w.pagination.dynamicBulletIndex=0,ne.dynamicMainBullets<1&&(ne.dynamicMainBullets=1)),"progressbar"===ne.type&&ne.progressbarOpposite&&be.addClass(ne.progressbarOppositeClass),ne.clickable&&be.on("click","."+ne.bulletClass,function(at){at.preventDefault();var Rt=n(this).index()*w.params.slidesPerGroup;w.params.loop&&(Rt+=w.loopedSlides),w.slideTo(Rt)}),Ee.extend(w.pagination,{$el:be,el:be[0]}))}},destroy:function(){var w=this,ne=w.params.pagination;if(ne.el&&w.pagination.el&&w.pagination.$el&&0!==w.pagination.$el.length){var be=w.pagination.$el;be.removeClass(ne.hiddenClass),be.removeClass(ne.modifierClass+ne.type),w.pagination.bullets&&w.pagination.bullets.removeClass(ne.bulletActiveClass),ne.clickable&&be.off("click","."+ne.bulletClass)}}},tt={setTranslate:function(){var w=this;if(w.params.scrollbar.el&&w.scrollbar.el){var ne=w.scrollbar,at=ne.dragSize,Rt=ne.trackSize,yn=ne.$dragEl,Tn=ne.$el,Yn=w.params.scrollbar,Zn=at,ui=(Rt-at)*w.progress;w.rtlTranslate?(ui=-ui)>0?(Zn=at-ui,ui=0):-ui+at>Rt&&(Zn=Rt+ui):ui<0?(Zn=at+ui,ui=0):ui+at>Rt&&(Zn=Rt-ui),w.isHorizontal()?(yn.transform(Ye.transforms3d?"translate3d("+ui+"px, 0, 0)":"translateX("+ui+"px)"),yn[0].style.width=Zn+"px"):(yn.transform(Ye.transforms3d?"translate3d(0px, "+ui+"px, 0)":"translateY("+ui+"px)"),yn[0].style.height=Zn+"px"),Yn.hide&&(clearTimeout(w.scrollbar.timeout),Tn[0].style.opacity=1,w.scrollbar.timeout=setTimeout(function(){Tn[0].style.opacity=0,Tn.transition(400)},1e3))}},setTransition:function(w){!this.params.scrollbar.el||!this.scrollbar.el||this.scrollbar.$dragEl.transition(w)},updateSize:function(){var w=this;if(w.params.scrollbar.el&&w.scrollbar.el){var ne=w.scrollbar,be=ne.$dragEl,Ue=ne.$el;be[0].style.width="",be[0].style.height="";var Tn,at=w.isHorizontal()?Ue[0].offsetWidth:Ue[0].offsetHeight,Rt=w.size/w.virtualSize,yn=Rt*(at/w.size);Tn="auto"===w.params.scrollbar.dragSize?at*Rt:parseInt(w.params.scrollbar.dragSize,10),w.isHorizontal()?be[0].style.width=Tn+"px":be[0].style.height=Tn+"px",Ue[0].style.display=Rt>=1?"none":"",w.params.scrollbar.hide&&(Ue[0].style.opacity=0),Ee.extend(ne,{trackSize:at,divider:Rt,moveDivider:yn,dragSize:Tn}),ne.$el[w.params.watchOverflow&&w.isLocked?"addClass":"removeClass"](w.params.scrollbar.lockClass)}},getPointerPosition:function(w){return this.isHorizontal()?"touchstart"===w.type||"touchmove"===w.type?w.targetTouches[0].pageX:w.pageX||w.clientX:"touchstart"===w.type||"touchmove"===w.type?w.targetTouches[0].pageY:w.pageY||w.clientY},setDragPosition:function(w){var Yn,ne=this,be=ne.scrollbar,Ue=ne.rtlTranslate,at=be.$el,Rt=be.dragSize,yn=be.trackSize,Tn=be.dragStartPos;Yn=(be.getPointerPosition(w)-at.offset()[ne.isHorizontal()?"left":"top"]-(null!==Tn?Tn:Rt/2))/(yn-Rt),Yn=Math.max(Math.min(Yn,1),0),Ue&&(Yn=1-Yn);var Zn=ne.minTranslate()+(ne.maxTranslate()-ne.minTranslate())*Yn;ne.updateProgress(Zn),ne.setTranslate(Zn),ne.updateActiveIndex(),ne.updateSlidesClasses()},onDragStart:function(w){var ne=this,be=ne.params.scrollbar,Ue=ne.scrollbar,at=ne.$wrapperEl,Rt=Ue.$el,yn=Ue.$dragEl;ne.scrollbar.isTouched=!0,ne.scrollbar.dragStartPos=w.target===yn[0]||w.target===yn?Ue.getPointerPosition(w)-w.target.getBoundingClientRect()[ne.isHorizontal()?"left":"top"]:null,w.preventDefault(),w.stopPropagation(),at.transition(100),yn.transition(100),Ue.setDragPosition(w),clearTimeout(ne.scrollbar.dragTimeout),Rt.transition(0),be.hide&&Rt.css("opacity",1),ne.emit("scrollbarDragStart",w)},onDragMove:function(w){var be=this.scrollbar,Ue=this.$wrapperEl,at=be.$el,Rt=be.$dragEl;this.scrollbar.isTouched&&(w.preventDefault?w.preventDefault():w.returnValue=!1,be.setDragPosition(w),Ue.transition(0),at.transition(0),Rt.transition(0),this.emit("scrollbarDragMove",w))},onDragEnd:function(w){var ne=this,be=ne.params.scrollbar,at=ne.scrollbar.$el;ne.scrollbar.isTouched&&(ne.scrollbar.isTouched=!1,be.hide&&(clearTimeout(ne.scrollbar.dragTimeout),ne.scrollbar.dragTimeout=Ee.nextTick(function(){at.css("opacity",0),at.transition(400)},1e3)),ne.emit("scrollbarDragEnd",w),be.snapOnRelease&&ne.slideToClosest())},enableDraggable:function(){var w=this;if(w.params.scrollbar.el){var be=w.touchEventsTouch,Ue=w.touchEventsDesktop,at=w.params,yn=w.scrollbar.$el[0],Tn=!(!Ye.passiveListener||!at.passiveListeners)&&{passive:!1,capture:!1},Yn=!(!Ye.passiveListener||!at.passiveListeners)&&{passive:!0,capture:!1};Ye.touch?(yn.addEventListener(be.start,w.scrollbar.onDragStart,Tn),yn.addEventListener(be.move,w.scrollbar.onDragMove,Tn),yn.addEventListener(be.end,w.scrollbar.onDragEnd,Yn)):(yn.addEventListener(Ue.start,w.scrollbar.onDragStart,Tn),x.addEventListener(Ue.move,w.scrollbar.onDragMove,Tn),x.addEventListener(Ue.end,w.scrollbar.onDragEnd,Yn))}},disableDraggable:function(){var w=this;if(w.params.scrollbar.el){var be=w.touchEventsTouch,Ue=w.touchEventsDesktop,at=w.params,yn=w.scrollbar.$el[0],Tn=!(!Ye.passiveListener||!at.passiveListeners)&&{passive:!1,capture:!1},Yn=!(!Ye.passiveListener||!at.passiveListeners)&&{passive:!0,capture:!1};Ye.touch?(yn.removeEventListener(be.start,w.scrollbar.onDragStart,Tn),yn.removeEventListener(be.move,w.scrollbar.onDragMove,Tn),yn.removeEventListener(be.end,w.scrollbar.onDragEnd,Yn)):(yn.removeEventListener(Ue.start,w.scrollbar.onDragStart,Tn),x.removeEventListener(Ue.move,w.scrollbar.onDragMove,Tn),x.removeEventListener(Ue.end,w.scrollbar.onDragEnd,Yn))}},init:function(){var w=this;if(w.params.scrollbar.el){var ne=w.scrollbar,be=w.$el,Ue=w.params.scrollbar,at=n(Ue.el);w.params.uniqueNavElements&&"string"==typeof Ue.el&&at.length>1&&1===be.find(Ue.el).length&&(at=be.find(Ue.el));var Rt=at.find("."+w.params.scrollbar.dragClass);0===Rt.length&&(Rt=n('<div class="'+w.params.scrollbar.dragClass+'"></div>'),at.append(Rt)),Ee.extend(ne,{$el:at,el:at[0],$dragEl:Rt,dragEl:Rt[0]}),Ue.draggable&&ne.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},zn={setTransform:function(w,ne){var Ue=this.rtl,at=n(w),Rt=Ue?-1:1,yn=at.attr("data-swiper-parallax")||"0",Tn=at.attr("data-swiper-parallax-x"),Yn=at.attr("data-swiper-parallax-y"),Zn=at.attr("data-swiper-parallax-scale"),ui=at.attr("data-swiper-parallax-opacity");if(Tn||Yn?(Tn=Tn||"0",Yn=Yn||"0"):this.isHorizontal()?(Tn=yn,Yn="0"):(Yn=yn,Tn="0"),Tn=Tn.indexOf("%")>=0?parseInt(Tn,10)*ne*Rt+"%":Tn*ne*Rt+"px",Yn=Yn.indexOf("%")>=0?parseInt(Yn,10)*ne+"%":Yn*ne+"px",typeof ui<"u"&&null!==ui){var wi=ui-(ui-1)*(1-Math.abs(ne));at[0].style.opacity=wi}if(typeof Zn>"u"||null===Zn)at.transform("translate3d("+Tn+", "+Yn+", 0px)");else{var an=Zn-(Zn-1)*(1-Math.abs(ne));at.transform("translate3d("+Tn+", "+Yn+", 0px) scale("+an+")")}},setTranslate:function(){var w=this,be=w.slides,Ue=w.progress,at=w.snapGrid;w.$el.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(Rt,yn){w.parallax.setTransform(yn,Ue)}),be.each(function(Rt,yn){var Tn=yn.progress;w.params.slidesPerGroup>1&&"auto"!==w.params.slidesPerView&&(Tn+=Math.ceil(Rt/2)-Ue*(at.length-1)),Tn=Math.min(Math.max(Tn,-1),1),n(yn).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(Yn,Zn){w.parallax.setTransform(Zn,Tn)})})},setTransition:function(w){void 0===w&&(w=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(Ue,at){var Rt=n(at),yn=parseInt(Rt.attr("data-swiper-parallax-duration"),10)||w;0===w&&(yn=0),Rt.transition(yn)})}},Fn={getDistanceBetweenTouches:function(w){if(w.targetTouches.length<2)return 1;var be=w.targetTouches[0].pageY,at=w.targetTouches[1].pageY;return Math.sqrt(Math.pow(w.targetTouches[1].pageX-w.targetTouches[0].pageX,2)+Math.pow(at-be,2))},onGestureStart:function(w){var ne=this,be=ne.params.zoom,Ue=ne.zoom,at=Ue.gesture;if(Ue.fakeGestureTouched=!1,Ue.fakeGestureMoved=!1,!Ye.gestures){if("touchstart"!==w.type||"touchstart"===w.type&&w.targetTouches.length<2)return;Ue.fakeGestureTouched=!0,at.scaleStart=Fn.getDistanceBetweenTouches(w)}at.$slideEl&&at.$slideEl.length||(at.$slideEl=n(w.target).closest(".swiper-slide"),0===at.$slideEl.length&&(at.$slideEl=ne.slides.eq(ne.activeIndex)),at.$imageEl=at.$slideEl.find("img, svg, canvas"),at.$imageWrapEl=at.$imageEl.parent("."+be.containerClass),at.maxRatio=at.$imageWrapEl.attr("data-swiper-zoom")||be.maxRatio,0!==at.$imageWrapEl.length)?(at.$imageEl.transition(0),ne.zoom.isScaling=!0):at.$imageEl=void 0},onGestureChange:function(w){var be=this.params.zoom,Ue=this.zoom,at=Ue.gesture;if(!Ye.gestures){if("touchmove"!==w.type||"touchmove"===w.type&&w.targetTouches.length<2)return;Ue.fakeGestureMoved=!0,at.scaleMove=Fn.getDistanceBetweenTouches(w)}!at.$imageEl||0===at.$imageEl.length||(Ue.scale=Ye.gestures?w.scale*Ue.currentScale:at.scaleMove/at.scaleStart*Ue.currentScale,Ue.scale>at.maxRatio&&(Ue.scale=at.maxRatio-1+Math.pow(Ue.scale-at.maxRatio+1,.5)),Ue.scale<be.minRatio&&(Ue.scale=be.minRatio+1-Math.pow(be.minRatio-Ue.scale+1,.5)),at.$imageEl.transform("translate3d(0,0,0) scale("+Ue.scale+")"))},onGestureEnd:function(w){var be=this.params.zoom,Ue=this.zoom,at=Ue.gesture;if(!Ye.gestures){if(!Ue.fakeGestureTouched||!Ue.fakeGestureMoved||"touchend"!==w.type||"touchend"===w.type&&w.changedTouches.length<2&&!Be.android)return;Ue.fakeGestureTouched=!1,Ue.fakeGestureMoved=!1}!at.$imageEl||0===at.$imageEl.length||(Ue.scale=Math.max(Math.min(Ue.scale,at.maxRatio),be.minRatio),at.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+Ue.scale+")"),Ue.currentScale=Ue.scale,Ue.isScaling=!1,1===Ue.scale&&(at.$slideEl=void 0))},onTouchStart:function(w){var be=this.zoom,Ue=be.gesture,at=be.image;!Ue.$imageEl||0===Ue.$imageEl.length||at.isTouched||(Be.android&&w.preventDefault(),at.isTouched=!0,at.touchesStart.x="touchstart"===w.type?w.targetTouches[0].pageX:w.pageX,at.touchesStart.y="touchstart"===w.type?w.targetTouches[0].pageY:w.pageY)},onTouchMove:function(w){var ne=this,be=ne.zoom,Ue=be.gesture,at=be.image,Rt=be.velocity;if(Ue.$imageEl&&0!==Ue.$imageEl.length&&(ne.allowClick=!1,at.isTouched&&Ue.$slideEl)){at.isMoved||(at.width=Ue.$imageEl[0].offsetWidth,at.height=Ue.$imageEl[0].offsetHeight,at.startX=Ee.getTranslate(Ue.$imageWrapEl[0],"x")||0,at.startY=Ee.getTranslate(Ue.$imageWrapEl[0],"y")||0,Ue.slideWidth=Ue.$slideEl[0].offsetWidth,Ue.slideHeight=Ue.$slideEl[0].offsetHeight,Ue.$imageWrapEl.transition(0),ne.rtl&&(at.startX=-at.startX,at.startY=-at.startY));var yn=at.width*be.scale,Tn=at.height*be.scale;if(!(yn<Ue.slideWidth&&Tn<Ue.slideHeight)){if(at.minX=Math.min(Ue.slideWidth/2-yn/2,0),at.maxX=-at.minX,at.minY=Math.min(Ue.slideHeight/2-Tn/2,0),at.maxY=-at.minY,at.touchesCurrent.x="touchmove"===w.type?w.targetTouches[0].pageX:w.pageX,at.touchesCurrent.y="touchmove"===w.type?w.targetTouches[0].pageY:w.pageY,!at.isMoved&&!be.isScaling){if(ne.isHorizontal()&&(Math.floor(at.minX)===Math.floor(at.startX)&&at.touchesCurrent.x<at.touchesStart.x||Math.floor(at.maxX)===Math.floor(at.startX)&&at.touchesCurrent.x>at.touchesStart.x))return void(at.isTouched=!1);if(!ne.isHorizontal()&&(Math.floor(at.minY)===Math.floor(at.startY)&&at.touchesCurrent.y<at.touchesStart.y||Math.floor(at.maxY)===Math.floor(at.startY)&&at.touchesCurrent.y>at.touchesStart.y))return void(at.isTouched=!1)}w.preventDefault(),w.stopPropagation(),at.isMoved=!0,at.currentX=at.touchesCurrent.x-at.touchesStart.x+at.startX,at.currentY=at.touchesCurrent.y-at.touchesStart.y+at.startY,at.currentX<at.minX&&(at.currentX=at.minX+1-Math.pow(at.minX-at.currentX+1,.8)),at.currentX>at.maxX&&(at.currentX=at.maxX-1+Math.pow(at.currentX-at.maxX+1,.8)),at.currentY<at.minY&&(at.currentY=at.minY+1-Math.pow(at.minY-at.currentY+1,.8)),at.currentY>at.maxY&&(at.currentY=at.maxY-1+Math.pow(at.currentY-at.maxY+1,.8)),Rt.prevPositionX||(Rt.prevPositionX=at.touchesCurrent.x),Rt.prevPositionY||(Rt.prevPositionY=at.touchesCurrent.y),Rt.prevTime||(Rt.prevTime=Date.now()),Rt.x=(at.touchesCurrent.x-Rt.prevPositionX)/(Date.now()-Rt.prevTime)/2,Rt.y=(at.touchesCurrent.y-Rt.prevPositionY)/(Date.now()-Rt.prevTime)/2,Math.abs(at.touchesCurrent.x-Rt.prevPositionX)<2&&(Rt.x=0),Math.abs(at.touchesCurrent.y-Rt.prevPositionY)<2&&(Rt.y=0),Rt.prevPositionX=at.touchesCurrent.x,Rt.prevPositionY=at.touchesCurrent.y,Rt.prevTime=Date.now(),Ue.$imageWrapEl.transform("translate3d("+at.currentX+"px, "+at.currentY+"px,0)")}}},onTouchEnd:function(){var ne=this.zoom,be=ne.gesture,Ue=ne.image,at=ne.velocity;if(be.$imageEl&&0!==be.$imageEl.length){if(!Ue.isTouched||!Ue.isMoved)return Ue.isTouched=!1,void(Ue.isMoved=!1);Ue.isTouched=!1,Ue.isMoved=!1;var Rt=300,yn=300,Yn=Ue.currentX+at.x*Rt,ui=Ue.currentY+at.y*yn;0!==at.x&&(Rt=Math.abs((Yn-Ue.currentX)/at.x)),0!==at.y&&(yn=Math.abs((ui-Ue.currentY)/at.y));var wi=Math.max(Rt,yn);Ue.currentX=Yn,Ue.currentY=ui;var bn=Ue.height*ne.scale;Ue.minX=Math.min(be.slideWidth/2-Ue.width*ne.scale/2,0),Ue.maxX=-Ue.minX,Ue.minY=Math.min(be.slideHeight/2-bn/2,0),Ue.maxY=-Ue.minY,Ue.currentX=Math.max(Math.min(Ue.currentX,Ue.maxX),Ue.minX),Ue.currentY=Math.max(Math.min(Ue.currentY,Ue.maxY),Ue.minY),be.$imageWrapEl.transition(wi).transform("translate3d("+Ue.currentX+"px, "+Ue.currentY+"px,0)")}},onTransitionEnd:function(){var w=this,ne=w.zoom,be=ne.gesture;be.$slideEl&&w.previousIndex!==w.activeIndex&&(be.$imageEl.transform("translate3d(0,0,0) scale(1)"),be.$imageWrapEl.transform("translate3d(0,0,0)"),ne.scale=1,ne.currentScale=1,be.$slideEl=void 0,be.$imageEl=void 0,be.$imageWrapEl=void 0)},toggle:function(w){var be=this.zoom;be.scale&&1!==be.scale?be.out():be.in(w)},in:function(w){var yn,Tn,ui,wi,an,bn,ft,ce,Se,ut,Kt,mn,Un,ne=this,be=ne.zoom,Ue=ne.params.zoom,at=be.gesture,Rt=be.image;at.$slideEl||(at.$slideEl=ne.clickedSlide?n(ne.clickedSlide):ne.slides.eq(ne.activeIndex),at.$imageEl=at.$slideEl.find("img, svg, canvas"),at.$imageWrapEl=at.$imageEl.parent("."+Ue.containerClass)),at.$imageEl&&0!==at.$imageEl.length&&(at.$slideEl.addClass(""+Ue.zoomedSlideClass),typeof Rt.touchesStart.x>"u"&&w?(yn="touchend"===w.type?w.changedTouches[0].pageX:w.pageX,Tn="touchend"===w.type?w.changedTouches[0].pageY:w.pageY):(yn=Rt.touchesStart.x,Tn=Rt.touchesStart.y),be.scale=at.$imageWrapEl.attr("data-swiper-zoom")||Ue.maxRatio,be.currentScale=at.$imageWrapEl.attr("data-swiper-zoom")||Ue.maxRatio,w?(mn=at.$slideEl[0].offsetWidth,Un=at.$slideEl[0].offsetHeight,ui=at.$slideEl.offset().left+mn/2-yn,wi=at.$slideEl.offset().top+Un/2-Tn,ft=at.$imageEl[0].offsetHeight*be.scale,ce=Math.min(mn/2-at.$imageEl[0].offsetWidth*be.scale/2,0),Se=Math.min(Un/2-ft/2,0),(an=ui*be.scale)<ce&&(an=ce),an>(ut=-ce)&&(an=ut),(bn=wi*be.scale)<Se&&(bn=Se),bn>(Kt=-Se)&&(bn=Kt)):(an=0,bn=0),at.$imageWrapEl.transition(300).transform("translate3d("+an+"px, "+bn+"px,0)"),at.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+be.scale+")"))},out:function(){var w=this,ne=w.zoom,be=w.params.zoom,Ue=ne.gesture;Ue.$slideEl||(Ue.$slideEl=w.clickedSlide?n(w.clickedSlide):w.slides.eq(w.activeIndex),Ue.$imageEl=Ue.$slideEl.find("img, svg, canvas"),Ue.$imageWrapEl=Ue.$imageEl.parent("."+be.containerClass)),Ue.$imageEl&&0!==Ue.$imageEl.length&&(ne.scale=1,ne.currentScale=1,Ue.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),Ue.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),Ue.$slideEl.removeClass(""+be.zoomedSlideClass),Ue.$slideEl=void 0)},enable:function(){var w=this,ne=w.zoom;if(!ne.enabled){ne.enabled=!0;var be=!("touchstart"!==w.touchEvents.start||!Ye.passiveListener||!w.params.passiveListeners)&&{passive:!0,capture:!1};Ye.gestures?(w.$wrapperEl.on("gesturestart",".swiper-slide",ne.onGestureStart,be),w.$wrapperEl.on("gesturechange",".swiper-slide",ne.onGestureChange,be),w.$wrapperEl.on("gestureend",".swiper-slide",ne.onGestureEnd,be)):"touchstart"===w.touchEvents.start&&(w.$wrapperEl.on(w.touchEvents.start,".swiper-slide",ne.onGestureStart,be),w.$wrapperEl.on(w.touchEvents.move,".swiper-slide",ne.onGestureChange,be),w.$wrapperEl.on(w.touchEvents.end,".swiper-slide",ne.onGestureEnd,be)),w.$wrapperEl.on(w.touchEvents.move,"."+w.params.zoom.containerClass,ne.onTouchMove)}},disable:function(){var w=this,ne=w.zoom;if(ne.enabled){w.zoom.enabled=!1;var be=!("touchstart"!==w.touchEvents.start||!Ye.passiveListener||!w.params.passiveListeners)&&{passive:!0,capture:!1};Ye.gestures?(w.$wrapperEl.off("gesturestart",".swiper-slide",ne.onGestureStart,be),w.$wrapperEl.off("gesturechange",".swiper-slide",ne.onGestureChange,be),w.$wrapperEl.off("gestureend",".swiper-slide",ne.onGestureEnd,be)):"touchstart"===w.touchEvents.start&&(w.$wrapperEl.off(w.touchEvents.start,".swiper-slide",ne.onGestureStart,be),w.$wrapperEl.off(w.touchEvents.move,".swiper-slide",ne.onGestureChange,be),w.$wrapperEl.off(w.touchEvents.end,".swiper-slide",ne.onGestureEnd,be)),w.$wrapperEl.off(w.touchEvents.move,"."+w.params.zoom.containerClass,ne.onTouchMove)}}},ri={loadInSlide:function(w,ne){void 0===ne&&(ne=!0);var be=this,Ue=be.params.lazy;if(!(typeof w>"u")&&0!==be.slides.length){var Rt=be.virtual&&be.params.virtual.enabled?be.$wrapperEl.children("."+be.params.slideClass+'[data-swiper-slide-index="'+w+'"]'):be.slides.eq(w),yn=Rt.find("."+Ue.elementClass+":not(."+Ue.loadedClass+"):not(."+Ue.loadingClass+")");Rt.hasClass(Ue.elementClass)&&!Rt.hasClass(Ue.loadedClass)&&!Rt.hasClass(Ue.loadingClass)&&(yn=yn.add(Rt[0])),0!==yn.length&&yn.each(function(Tn,Yn){var Zn=n(Yn);Zn.addClass(Ue.loadingClass);var ui=Zn.attr("data-background"),wi=Zn.attr("data-src"),an=Zn.attr("data-srcset"),bn=Zn.attr("data-sizes");be.loadImage(Zn[0],wi||ui,an,bn,!1,function(){if(!(typeof be>"u"||null===be||!be||be&&!be.params||be.destroyed)){if(ui?(Zn.css("background-image",'url("'+ui+'")'),Zn.removeAttr("data-background")):(an&&(Zn.attr("srcset",an),Zn.removeAttr("data-srcset")),bn&&(Zn.attr("sizes",bn),Zn.removeAttr("data-sizes")),wi&&(Zn.attr("src",wi),Zn.removeAttr("data-src"))),Zn.addClass(Ue.loadedClass).removeClass(Ue.loadingClass),Rt.find("."+Ue.preloaderClass).remove(),be.params.loop&&ne){var Dn=Rt.attr("data-swiper-slide-index");if(Rt.hasClass(be.params.slideDuplicateClass)){var ii=be.$wrapperEl.children('[data-swiper-slide-index="'+Dn+'"]:not(.'+be.params.slideDuplicateClass+")");be.lazy.loadInSlide(ii.index(),!1)}else{var li=be.$wrapperEl.children("."+be.params.slideDuplicateClass+'[data-swiper-slide-index="'+Dn+'"]');be.lazy.loadInSlide(li.index(),!1)}}be.emit("lazyImageReady",Rt[0],Zn[0])}}),be.emit("lazyImageLoad",Rt[0],Zn[0])})}},load:function(){var w=this,ne=w.$wrapperEl,be=w.params,Ue=w.slides,at=w.activeIndex,Rt=w.virtual&&be.virtual.enabled,yn=be.lazy,Tn=be.slidesPerView;function Yn(Se){if(Rt){if(ne.children("."+be.slideClass+'[data-swiper-slide-index="'+Se+'"]').length)return!0}else if(Ue[Se])return!0;return!1}function Zn(Se){return Rt?n(Se).attr("data-swiper-slide-index"):n(Se).index()}if("auto"===Tn&&(Tn=0),w.lazy.initialImageLoaded||(w.lazy.initialImageLoaded=!0),w.params.watchSlidesVisibility)ne.children("."+be.slideVisibleClass).each(function(Se,ut){var Kt=Rt?n(ut).attr("data-swiper-slide-index"):n(ut).index();w.lazy.loadInSlide(Kt)});else if(Tn>1)for(var ui=at;ui<at+Tn;ui+=1)Yn(ui)&&w.lazy.loadInSlide(ui);else w.lazy.loadInSlide(at);if(yn.loadPrevNext)if(Tn>1||yn.loadPrevNextAmount&&yn.loadPrevNextAmount>1){for(var wi=yn.loadPrevNextAmount,an=Tn,bn=Math.min(at+an+Math.max(wi,an),Ue.length),Dn=Math.max(at-Math.max(an,wi),0),ii=at+Tn;ii<bn;ii+=1)Yn(ii)&&w.lazy.loadInSlide(ii);for(var li=Dn;li<at;li+=1)Yn(li)&&w.lazy.loadInSlide(li)}else{var ft=ne.children("."+be.slideNextClass);ft.length>0&&w.lazy.loadInSlide(Zn(ft));var ce=ne.children("."+be.slidePrevClass);ce.length>0&&w.lazy.loadInSlide(Zn(ce))}}},Ii={LinearSpline:function(w,ne){var yn,Tn,Yn,Ue,at,be=function(Zn,ui){for(Tn=-1,yn=Zn.length;yn-Tn>1;)Zn[Yn=yn+Tn>>1]<=ui?Tn=Yn:yn=Yn;return yn};return this.x=w,this.y=ne,this.lastIndex=w.length-1,this.interpolate=function(yn){return yn?(at=be(this.x,yn),(yn-this.x[Ue=at-1])*(this.y[at]-this.y[Ue])/(this.x[at]-this.x[Ue])+this.y[Ue]):0},this},getInterpolateFunction:function(w){var ne=this;ne.controller.spline||(ne.controller.spline=ne.params.loop?new Ii.LinearSpline(ne.slidesGrid,w.slidesGrid):new Ii.LinearSpline(ne.snapGrid,w.snapGrid))},setTranslate:function(w,ne){var at,Rt,be=this,Ue=be.controller.control;function yn(Yn){var Zn=be.rtlTranslate?-be.translate:be.translate;"slide"===be.params.controller.by&&(be.controller.getInterpolateFunction(Yn),Rt=-be.controller.spline.interpolate(-Zn)),(!Rt||"container"===be.params.controller.by)&&(at=(Yn.maxTranslate()-Yn.minTranslate())/(be.maxTranslate()-be.minTranslate()),Rt=(Zn-be.minTranslate())*at+Yn.minTranslate()),be.params.controller.inverse&&(Rt=Yn.maxTranslate()-Rt),Yn.updateProgress(Rt),Yn.setTranslate(Rt,be),Yn.updateActiveIndex(),Yn.updateSlidesClasses()}if(Array.isArray(Ue))for(var Tn=0;Tn<Ue.length;Tn+=1)Ue[Tn]!==ne&&Ue[Tn]instanceof ji&&yn(Ue[Tn]);else Ue instanceof ji&&ne!==Ue&&yn(Ue)},setTransition:function(w,ne){var at,be=this,Ue=be.controller.control;function Rt(yn){yn.setTransition(w,be),0!==w&&(yn.transitionStart(),yn.params.autoHeight&&Ee.nextTick(function(){yn.updateAutoHeight()}),yn.$wrapperEl.transitionEnd(function(){Ue&&(yn.params.loop&&"slide"===be.params.controller.by&&yn.loopFix(),yn.transitionEnd())}))}if(Array.isArray(Ue))for(at=0;at<Ue.length;at+=1)Ue[at]!==ne&&Ue[at]instanceof ji&&Rt(Ue[at]);else Ue instanceof ji&&ne!==Ue&&Rt(Ue)}},Hi={makeElFocusable:function(w){return w.attr("tabIndex","0"),w},addElRole:function(w,ne){return w.attr("role",ne),w},addElLabel:function(w,ne){return w.attr("aria-label",ne),w},disableEl:function(w){return w.attr("aria-disabled",!0),w},enableEl:function(w){return w.attr("aria-disabled",!1),w},onEnterKey:function(w){var ne=this,be=ne.params.a11y;if(13===w.keyCode){var Ue=n(w.target);ne.navigation&&ne.navigation.$nextEl&&Ue.is(ne.navigation.$nextEl)&&(ne.isEnd&&!ne.params.loop||ne.slideNext(),ne.a11y.notify(ne.isEnd?be.lastSlideMessage:be.nextSlideMessage)),ne.navigation&&ne.navigation.$prevEl&&Ue.is(ne.navigation.$prevEl)&&(ne.isBeginning&&!ne.params.loop||ne.slidePrev(),ne.a11y.notify(ne.isBeginning?be.firstSlideMessage:be.prevSlideMessage)),ne.pagination&&Ue.is("."+ne.params.pagination.bulletClass)&&Ue[0].click()}},notify:function(w){var be=this.a11y.liveRegion;0!==be.length&&(be.html(""),be.html(w))},updateNavigation:function(){var w=this;if(!w.params.loop){var ne=w.navigation,be=ne.$nextEl,Ue=ne.$prevEl;Ue&&Ue.length>0&&(w.isBeginning?w.a11y.disableEl(Ue):w.a11y.enableEl(Ue)),be&&be.length>0&&(w.isEnd?w.a11y.disableEl(be):w.a11y.enableEl(be))}},updatePagination:function(){var w=this,ne=w.params.a11y;w.pagination&&w.params.pagination.clickable&&w.pagination.bullets&&w.pagination.bullets.length&&w.pagination.bullets.each(function(be,Ue){var at=n(Ue);w.a11y.makeElFocusable(at),w.a11y.addElRole(at,"button"),w.a11y.addElLabel(at,ne.paginationBulletMessage.replace(/{{index}}/,at.index()+1))})},init:function(){var w=this;w.$el.append(w.a11y.liveRegion);var be,Ue,ne=w.params.a11y;w.navigation&&w.navigation.$nextEl&&(be=w.navigation.$nextEl),w.navigation&&w.navigation.$prevEl&&(Ue=w.navigation.$prevEl),be&&(w.a11y.makeElFocusable(be),w.a11y.addElRole(be,"button"),w.a11y.addElLabel(be,ne.nextSlideMessage),be.on("keydown",w.a11y.onEnterKey)),Ue&&(w.a11y.makeElFocusable(Ue),w.a11y.addElRole(Ue,"button"),w.a11y.addElLabel(Ue,ne.prevSlideMessage),Ue.on("keydown",w.a11y.onEnterKey)),w.pagination&&w.params.pagination.clickable&&w.pagination.bullets&&w.pagination.bullets.length&&w.pagination.$el.on("keydown","."+w.params.pagination.bulletClass,w.a11y.onEnterKey)},destroy:function(){var ne,be,w=this;w.a11y.liveRegion&&w.a11y.liveRegion.length>0&&w.a11y.liveRegion.remove(),w.navigation&&w.navigation.$nextEl&&(ne=w.navigation.$nextEl),w.navigation&&w.navigation.$prevEl&&(be=w.navigation.$prevEl),ne&&ne.off("keydown",w.a11y.onEnterKey),be&&be.off("keydown",w.a11y.onEnterKey),w.pagination&&w.params.pagination.clickable&&w.pagination.bullets&&w.pagination.bullets.length&&w.pagination.$el.off("keydown","."+w.params.pagination.bulletClass,w.a11y.onEnterKey)}},kr={init:function(){var w=this;if(w.params.history){if(!i.history||!i.history.pushState)return w.params.history.enabled=!1,void(w.params.hashNavigation.enabled=!0);var ne=w.history;ne.initialized=!0,ne.paths=kr.getPathValues(),(ne.paths.key||ne.paths.value)&&(ne.scrollToSlide(0,ne.paths.value,w.params.runCallbacksOnInit),w.params.history.replaceState||i.addEventListener("popstate",w.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||i.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){var w=this;w.history.paths=kr.getPathValues(),w.history.scrollToSlide(w.params.speed,w.history.paths.value,!1)},getPathValues:function(){var w=i.location.pathname.slice(1).split("/").filter(function(at){return""!==at}),ne=w.length;return{key:w[ne-2],value:w[ne-1]}},setHistory:function(w,ne){if(this.history.initialized&&this.params.history.enabled){var Ue=this.slides.eq(ne),at=kr.slugify(Ue.attr("data-history"));i.location.pathname.includes(w)||(at=w+"/"+at);var Rt=i.history.state;Rt&&Rt.value===at||(this.params.history.replaceState?i.history.replaceState({value:at},null,at):i.history.pushState({value:at},null,at))}},slugify:function(w){return w.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(w,ne,be){var Ue=this;if(ne)for(var at=0,Rt=Ue.slides.length;at<Rt;at+=1){var yn=Ue.slides.eq(at);if(kr.slugify(yn.attr("data-history"))===ne&&!yn.hasClass(Ue.params.slideDuplicateClass)){var Yn=yn.index();Ue.slideTo(Yn,w,be)}}else Ue.slideTo(0,w,be)}},pr={onHashCange:function(){var w=this,ne=x.location.hash.replace("#","");if(ne!==w.slides.eq(w.activeIndex).attr("data-hash")){var Ue=w.$wrapperEl.children("."+w.params.slideClass+'[data-hash="'+ne+'"]').index();if(typeof Ue>"u")return;w.slideTo(Ue)}},setHash:function(){var w=this;if(w.hashNavigation.initialized&&w.params.hashNavigation.enabled)if(w.params.hashNavigation.replaceState&&i.history&&i.history.replaceState)i.history.replaceState(null,null,"#"+w.slides.eq(w.activeIndex).attr("data-hash")||0);else{var ne=w.slides.eq(w.activeIndex),be=ne.attr("data-hash")||ne.attr("data-history");x.location.hash=be||""}},init:function(){var w=this;if(!(!w.params.hashNavigation.enabled||w.params.history&&w.params.history.enabled)){w.hashNavigation.initialized=!0;var ne=x.location.hash.replace("#","");if(ne)for(var Ue=0,at=w.slides.length;Ue<at;Ue+=1){var Rt=w.slides.eq(Ue);if((Rt.attr("data-hash")||Rt.attr("data-history"))===ne&&!Rt.hasClass(w.params.slideDuplicateClass)){var Tn=Rt.index();w.slideTo(Tn,0,w.params.runCallbacksOnInit,!0)}}w.params.hashNavigation.watchState&&n(i).on("hashchange",w.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&n(i).off("hashchange",this.hashNavigation.onHashCange)}},Tr={run:function(){var w=this,ne=w.slides.eq(w.activeIndex),be=w.params.autoplay.delay;ne.attr("data-swiper-autoplay")&&(be=ne.attr("data-swiper-autoplay")||w.params.autoplay.delay),clearTimeout(w.autoplay.timeout),w.autoplay.timeout=Ee.nextTick(function(){w.params.autoplay.reverseDirection?w.params.loop?(w.loopFix(),w.slidePrev(w.params.speed,!0,!0),w.emit("autoplay")):w.isBeginning?w.params.autoplay.stopOnLastSlide?w.autoplay.stop():(w.slideTo(w.slides.length-1,w.params.speed,!0,!0),w.emit("autoplay")):(w.slidePrev(w.params.speed,!0,!0),w.emit("autoplay")):w.params.loop?(w.loopFix(),w.slideNext(w.params.speed,!0,!0),w.emit("autoplay")):w.isEnd?w.params.autoplay.stopOnLastSlide?w.autoplay.stop():(w.slideTo(0,w.params.speed,!0,!0),w.emit("autoplay")):(w.slideNext(w.params.speed,!0,!0),w.emit("autoplay"))},be)},start:function(){var w=this;return!(typeof w.autoplay.timeout<"u"||w.autoplay.running||(w.autoplay.running=!0,w.emit("autoplayStart"),w.autoplay.run(),0))},stop:function(){var w=this;return!(!w.autoplay.running||typeof w.autoplay.timeout>"u"||(w.autoplay.timeout&&(clearTimeout(w.autoplay.timeout),w.autoplay.timeout=void 0),w.autoplay.running=!1,w.emit("autoplayStop"),0))},pause:function(w){var ne=this;ne.autoplay.running&&(ne.autoplay.paused||(ne.autoplay.timeout&&clearTimeout(ne.autoplay.timeout),ne.autoplay.paused=!0,0!==w&&ne.params.autoplay.waitForTransition?(ne.$wrapperEl[0].addEventListener("transitionend",ne.autoplay.onTransitionEnd),ne.$wrapperEl[0].addEventListener("webkitTransitionEnd",ne.autoplay.onTransitionEnd)):(ne.autoplay.paused=!1,ne.autoplay.run())))}},_o={setTranslate:function(){for(var w=this,ne=w.slides,be=0;be<ne.length;be+=1){var Ue=w.slides.eq(be),Rt=-Ue[0].swiperSlideOffset;w.params.virtualTranslate||(Rt-=w.translate);var yn=0;w.isHorizontal()||(yn=Rt,Rt=0);var Tn=w.params.fadeEffect.crossFade?Math.max(1-Math.abs(Ue[0].progress),0):1+Math.min(Math.max(Ue[0].progress,-1),0);Ue.css({opacity:Tn}).transform("translate3d("+Rt+"px, "+yn+"px, 0px)")}},setTransition:function(w){var ne=this,be=ne.slides,Ue=ne.$wrapperEl;if(be.transition(w),ne.params.virtualTranslate&&0!==w){var at=!1;be.transitionEnd(function(){if(!at&&ne&&!ne.destroyed){at=!0,ne.animating=!1;for(var Rt=["webkitTransitionEnd","transitionend"],yn=0;yn<Rt.length;yn+=1)Ue.trigger(Rt[yn])}})}}},Sn={setTranslate:function(){var an,w=this,ne=w.$el,be=w.$wrapperEl,Ue=w.slides,at=w.width,Rt=w.height,yn=w.rtlTranslate,Tn=w.size,Yn=w.params.cubeEffect,Zn=w.isHorizontal(),ui=w.virtual&&w.params.virtual.enabled,wi=0;Yn.shadow&&(Zn?(0===(an=be.find(".swiper-cube-shadow")).length&&(an=n('<div class="swiper-cube-shadow"></div>'),be.append(an)),an.css({height:at+"px"})):0===(an=ne.find(".swiper-cube-shadow")).length&&(an=n('<div class="swiper-cube-shadow"></div>'),ne.append(an)));for(var bn=0;bn<Ue.length;bn+=1){var Dn=Ue.eq(bn),ii=bn;ui&&(ii=parseInt(Dn.attr("data-swiper-slide-index"),10));var li=90*ii,ft=Math.floor(li/360);yn&&(li=-li,ft=Math.floor(-li/360));var ce=Math.max(Math.min(Dn[0].progress,1),-1),Se=0,ut=0,Kt=0;if(ii%4==0?(Se=4*-ft*Tn,Kt=0):(ii-1)%4==0?(Se=0,Kt=4*-ft*Tn):(ii-2)%4==0?(Se=Tn+4*ft*Tn,Kt=Tn):(ii-3)%4==0&&(Se=-Tn,Kt=3*Tn+4*Tn*ft),yn&&(Se=-Se),Zn||(ut=Se,Se=0),ce<=1&&ce>-1&&(wi=90*ii+90*ce,yn&&(wi=90*-ii-90*ce)),Dn.transform("rotateX("+(Zn?0:-li)+"deg) rotateY("+(Zn?li:0)+"deg) translate3d("+Se+"px, "+ut+"px, "+Kt+"px)"),Yn.slideShadows){var Un=Dn.find(Zn?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),qn=Dn.find(Zn?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===Un.length&&(Un=n('<div class="swiper-slide-shadow-'+(Zn?"left":"top")+'"></div>'),Dn.append(Un)),0===qn.length&&(qn=n('<div class="swiper-slide-shadow-'+(Zn?"right":"bottom")+'"></div>'),Dn.append(qn)),Un.length&&(Un[0].style.opacity=Math.max(-ce,0)),qn.length&&(qn[0].style.opacity=Math.max(ce,0))}}if(be.css({"-webkit-transform-origin":"50% 50% -"+Tn/2+"px","-moz-transform-origin":"50% 50% -"+Tn/2+"px","-ms-transform-origin":"50% 50% -"+Tn/2+"px","transform-origin":"50% 50% -"+Tn/2+"px"}),Yn.shadow)if(Zn)an.transform("translate3d(0px, "+(at/2+Yn.shadowOffset)+"px, "+-at/2+"px) rotateX(90deg) rotateZ(0deg) scale("+Yn.shadowScale+")");else{var ci=Math.abs(wi)-90*Math.floor(Math.abs(wi)/90),hi=1.5-(Math.sin(2*ci*Math.PI/360)/2+Math.cos(2*ci*Math.PI/360)/2),zi=Yn.shadowScale/hi;an.transform("scale3d("+Yn.shadowScale+", 1, "+zi+") translate3d(0px, "+(Rt/2+Yn.shadowOffset)+"px, "+-Rt/2/zi+"px) rotateX(-90deg)")}be.transform("translate3d(0px,0,"+(wt.isSafari||wt.isUiWebView?-Tn/2:0)+"px) rotateX("+(w.isHorizontal()?0:wi)+"deg) rotateY("+(w.isHorizontal()?-wi:0)+"deg)")},setTransition:function(w){var be=this.$el;this.slides.transition(w).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(w),this.params.cubeEffect.shadow&&!this.isHorizontal()&&be.find(".swiper-cube-shadow").transition(w)}},Jn={setTranslate:function(){for(var w=this,ne=w.slides,be=w.rtlTranslate,Ue=0;Ue<ne.length;Ue+=1){var at=ne.eq(Ue),Rt=at[0].progress;w.params.flipEffect.limitRotation&&(Rt=Math.max(Math.min(at[0].progress,1),-1));var Yn=-180*Rt,Zn=0,ui=-at[0].swiperSlideOffset,wi=0;if(w.isHorizontal()?be&&(Yn=-Yn):(wi=ui,ui=0,Zn=-Yn,Yn=0),at[0].style.zIndex=-Math.abs(Math.round(Rt))+ne.length,w.params.flipEffect.slideShadows){var an=w.isHorizontal()?at.find(".swiper-slide-shadow-left"):at.find(".swiper-slide-shadow-top"),bn=w.isHorizontal()?at.find(".swiper-slide-shadow-right"):at.find(".swiper-slide-shadow-bottom");0===an.length&&(an=n('<div class="swiper-slide-shadow-'+(w.isHorizontal()?"left":"top")+'"></div>'),at.append(an)),0===bn.length&&(bn=n('<div class="swiper-slide-shadow-'+(w.isHorizontal()?"right":"bottom")+'"></div>'),at.append(bn)),an.length&&(an[0].style.opacity=Math.max(-Rt,0)),bn.length&&(bn[0].style.opacity=Math.max(Rt,0))}at.transform("translate3d("+ui+"px, "+wi+"px, 0px) rotateX("+Zn+"deg) rotateY("+Yn+"deg)")}},setTransition:function(w){var ne=this,be=ne.slides,Ue=ne.activeIndex,at=ne.$wrapperEl;if(be.transition(w).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(w),ne.params.virtualTranslate&&0!==w){var Rt=!1;be.eq(Ue).transitionEnd(function(){if(!Rt&&ne&&!ne.destroyed){Rt=!0,ne.animating=!1;for(var Tn=["webkitTransitionEnd","transitionend"],Yn=0;Yn<Tn.length;Yn+=1)at.trigger(Tn[Yn])}})}}},Wi={setTranslate:function(){for(var w=this,ne=w.width,be=w.height,Ue=w.slides,at=w.$wrapperEl,Rt=w.slidesSizesGrid,yn=w.params.coverflowEffect,Tn=w.isHorizontal(),Yn=w.translate,Zn=Tn?ne/2-Yn:be/2-Yn,ui=Tn?yn.rotate:-yn.rotate,wi=yn.depth,an=0,bn=Ue.length;an<bn;an+=1){var Dn=Ue.eq(an),ii=Rt[an],ft=(Zn-Dn[0].swiperSlideOffset-ii/2)/ii*yn.modifier,ce=Tn?ui*ft:0,Se=Tn?0:ui*ft,ut=-wi*Math.abs(ft),Kt=Tn?0:yn.stretch*ft,mn=Tn?yn.stretch*ft:0;if(Math.abs(mn)<.001&&(mn=0),Math.abs(Kt)<.001&&(Kt=0),Math.abs(ut)<.001&&(ut=0),Math.abs(ce)<.001&&(ce=0),Math.abs(Se)<.001&&(Se=0),Dn.transform("translate3d("+mn+"px,"+Kt+"px,"+ut+"px)  rotateX("+Se+"deg) rotateY("+ce+"deg)"),Dn[0].style.zIndex=1-Math.abs(Math.round(ft)),yn.slideShadows){var qn=Dn.find(Tn?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),ci=Dn.find(Tn?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===qn.length&&(qn=n('<div class="swiper-slide-shadow-'+(Tn?"left":"top")+'"></div>'),Dn.append(qn)),0===ci.length&&(ci=n('<div class="swiper-slide-shadow-'+(Tn?"right":"bottom")+'"></div>'),Dn.append(ci)),qn.length&&(qn[0].style.opacity=ft>0?ft:0),ci.length&&(ci[0].style.opacity=-ft>0?-ft:0)}}(Ye.pointerEvents||Ye.prefixedPointerEvents)&&(at[0].style.perspectiveOrigin=Zn+"px 50%")},setTransition:function(w){this.slides.transition(w).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(w)}},br={init:function(){var w=this,be=w.params.thumbs,Ue=w.constructor;be.swiper instanceof Ue?(w.thumbs.swiper=be.swiper,Ee.extend(w.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Ee.extend(w.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):Ee.isObject(be.swiper)&&(w.thumbs.swiper=new Ue(Ee.extend({},be.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),w.thumbs.swiperCreated=!0),w.thumbs.swiper.$el.addClass(w.params.thumbs.thumbsContainerClass),w.thumbs.swiper.on("tap",w.thumbs.onThumbClick)},onThumbClick:function(){var w=this,ne=w.thumbs.swiper;if(ne){var be=ne.clickedIndex,Ue=ne.clickedSlide;if(!(Ue&&n(Ue).hasClass(w.params.thumbs.slideThumbActiveClass)||typeof be>"u"||null===be)){var at;if(at=ne.params.loop?parseInt(n(ne.clickedSlide).attr("data-swiper-slide-index"),10):be,w.params.loop){var Rt=w.activeIndex;w.slides.eq(Rt).hasClass(w.params.slideDuplicateClass)&&(w.loopFix(),w._clientLeft=w.$wrapperEl[0].clientLeft,Rt=w.activeIndex);var yn=w.slides.eq(Rt).prevAll('[data-swiper-slide-index="'+at+'"]').eq(0).index(),Tn=w.slides.eq(Rt).nextAll('[data-swiper-slide-index="'+at+'"]').eq(0).index();at=typeof yn>"u"?Tn:typeof Tn>"u"?yn:Tn-Rt<Rt-yn?Tn:yn}w.slideTo(at)}}},update:function(w){var ne=this,be=ne.thumbs.swiper;if(be){var Ue="auto"===be.params.slidesPerView?be.slidesPerViewDynamic():be.params.slidesPerView;if(ne.realIndex!==be.realIndex){var Rt,at=be.activeIndex;if(be.params.loop){be.slides.eq(at).hasClass(be.params.slideDuplicateClass)&&(be.loopFix(),be._clientLeft=be.$wrapperEl[0].clientLeft,at=be.activeIndex);var yn=be.slides.eq(at).prevAll('[data-swiper-slide-index="'+ne.realIndex+'"]').eq(0).index(),Tn=be.slides.eq(at).nextAll('[data-swiper-slide-index="'+ne.realIndex+'"]').eq(0).index();Rt=typeof yn>"u"?Tn:typeof Tn>"u"?yn:Tn-at==at-yn?at:Tn-at<at-yn?Tn:yn}else Rt=ne.realIndex;be.visibleSlidesIndexes&&be.visibleSlidesIndexes.indexOf(Rt)<0&&(be.params.centeredSlides?Rt=Rt>at?Rt-Math.floor(Ue/2)+1:Rt+Math.floor(Ue/2)-1:Rt>at&&(Rt=Rt-Ue+1),be.slideTo(Rt,w?0:void 0))}var Yn=1,Zn=ne.params.thumbs.slideThumbActiveClass;if(ne.params.slidesPerView>1&&!ne.params.centeredSlides&&(Yn=ne.params.slidesPerView),be.slides.removeClass(Zn),be.params.loop||be.params.virtual)for(var ui=0;ui<Yn;ui+=1)be.$wrapperEl.children('[data-swiper-slide-index="'+(ne.realIndex+ui)+'"]').addClass(Zn);else for(var wi=0;wi<Yn;wi+=1)be.slides.eq(ne.realIndex+wi).addClass(Zn)}}},xo=[ir,dr,Ln,Vn,Ft,En,$i,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var w=this;Ee.extend(w,{mousewheel:{enabled:!1,enable:Mr.enable.bind(w),disable:Mr.disable.bind(w),handle:Mr.handle.bind(w),handleMouseEnter:Mr.handleMouseEnter.bind(w),handleMouseLeave:Mr.handleMouseLeave.bind(w),lastScrollTime:Ee.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var w=this;Ee.extend(w,{navigation:{init:Kn.init.bind(w),update:Kn.update.bind(w),destroy:Kn.destroy.bind(w),onNextClick:Kn.onNextClick.bind(w),onPrevClick:Kn.onPrevClick.bind(w)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(w){var Rt,ne=this,be=ne.navigation,Ue=be.$nextEl,at=be.$prevEl;!ne.params.navigation.hideOnClick||n(w.target).is(at)||n(w.target).is(Ue)||(Ue?Rt=Ue.hasClass(ne.params.navigation.hiddenClass):at&&(Rt=at.hasClass(ne.params.navigation.hiddenClass)),ne.emit(!0===Rt?"navigationShow":"navigationHide",ne),Ue&&Ue.toggleClass(ne.params.navigation.hiddenClass),at&&at.toggleClass(ne.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(Re){return Re},formatFractionTotal:function(Re){return Re},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var w=this;Ee.extend(w,{pagination:{init:he.init.bind(w),render:he.render.bind(w),update:he.update.bind(w),destroy:he.destroy.bind(w),dynamicBulletIndex:0}})},on:{init:function(){var w=this;w.pagination.init(),w.pagination.render(),w.pagination.update()},activeIndexChange:function(){var w=this;(w.params.loop||typeof w.snapIndex>"u")&&w.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){var w=this;w.params.loop&&(w.pagination.render(),w.pagination.update())},snapGridLengthChange:function(){var w=this;w.params.loop||(w.pagination.render(),w.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(w){var ne=this;if(ne.params.pagination.el&&ne.params.pagination.hideOnClick&&ne.pagination.$el.length>0&&!n(w.target).hasClass(ne.params.pagination.bulletClass)){var be=ne.pagination.$el.hasClass(ne.params.pagination.hiddenClass);ne.emit(!0===be?"paginationShow":"paginationHide",ne),ne.pagination.$el.toggleClass(ne.params.pagination.hiddenClass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var w=this;Ee.extend(w,{scrollbar:{init:tt.init.bind(w),destroy:tt.destroy.bind(w),updateSize:tt.updateSize.bind(w),setTranslate:tt.setTranslate.bind(w),setTransition:tt.setTransition.bind(w),enableDraggable:tt.enableDraggable.bind(w),disableDraggable:tt.disableDraggable.bind(w),setDragPosition:tt.setDragPosition.bind(w),getPointerPosition:tt.getPointerPosition.bind(w),onDragStart:tt.onDragStart.bind(w),onDragMove:tt.onDragMove.bind(w),onDragEnd:tt.onDragEnd.bind(w),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var w=this;w.scrollbar.init(),w.scrollbar.updateSize(),w.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(w){this.scrollbar.setTransition(w)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){var w=this;Ee.extend(w,{parallax:{setTransform:zn.setTransform.bind(w),setTranslate:zn.setTranslate.bind(w),setTransition:zn.setTransition.bind(w)}})},on:{beforeInit:function(){var w=this;w.params.parallax.enabled&&(w.params.watchSlidesProgress=!0,w.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(w){this.params.parallax.enabled&&this.parallax.setTransition(w)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var w=this,ne={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(Ue){ne[Ue]=Fn[Ue].bind(w)}),Ee.extend(w,{zoom:ne});var be=1;Object.defineProperty(w.zoom,"scale",{get:function(){return be},set:function(at){be!==at&&w.emit("zoomChange",at,w.zoom.gesture.$imageEl?w.zoom.gesture.$imageEl[0]:void 0,w.zoom.gesture.$slideEl?w.zoom.gesture.$slideEl[0]:void 0),be=at}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(w){this.zoom.enabled&&this.zoom.onTouchStart(w)},touchEnd:function(w){this.zoom.enabled&&this.zoom.onTouchEnd(w)},doubleTap:function(w){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(w)},transitionEnd:function(){var w=this;w.zoom.enabled&&w.params.zoom.enabled&&w.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var w=this;Ee.extend(w,{lazy:{initialImageLoaded:!1,load:ri.load.bind(w),loadInSlide:ri.loadInSlide.bind(w)}})},on:{beforeInit:function(){var w=this;w.params.lazy.enabled&&w.params.preloadImages&&(w.params.preloadImages=!1)},init:function(){var w=this;w.params.lazy.enabled&&!w.params.loop&&0===w.params.initialSlide&&w.lazy.load()},scroll:function(){var w=this;w.params.freeMode&&!w.params.freeModeSticky&&w.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){var w=this;w.params.lazy.enabled&&(w.params.lazy.loadOnTransitionStart||!w.params.lazy.loadOnTransitionStart&&!w.lazy.initialImageLoaded)&&w.lazy.load()},transitionEnd:function(){var w=this;w.params.lazy.enabled&&!w.params.lazy.loadOnTransitionStart&&w.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var w=this;Ee.extend(w,{controller:{control:w.params.controller.control,getInterpolateFunction:Ii.getInterpolateFunction.bind(w),setTranslate:Ii.setTranslate.bind(w),setTransition:Ii.setTransition.bind(w)}})},on:{update:function(){var w=this;w.controller.control&&w.controller.spline&&(w.controller.spline=void 0,delete w.controller.spline)},resize:function(){var w=this;w.controller.control&&w.controller.spline&&(w.controller.spline=void 0,delete w.controller.spline)},observerUpdate:function(){var w=this;w.controller.control&&w.controller.spline&&(w.controller.spline=void 0,delete w.controller.spline)},setTranslate:function(w,ne){this.controller.control&&this.controller.setTranslate(w,ne)},setTransition:function(w,ne){this.controller.control&&this.controller.setTransition(w,ne)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var w=this;Ee.extend(w,{a11y:{liveRegion:n('<span class="'+w.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(Hi).forEach(function(ne){w.a11y[ne]=Hi[ne].bind(w)})},on:{init:function(){var w=this;w.params.a11y.enabled&&(w.a11y.init(),w.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var w=this;Ee.extend(w,{history:{init:kr.init.bind(w),setHistory:kr.setHistory.bind(w),setHistoryPopState:kr.setHistoryPopState.bind(w),scrollToSlide:kr.scrollToSlide.bind(w),destroy:kr.destroy.bind(w)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){var w=this;w.history.initialized&&w.history.setHistory(w.params.history.key,w.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var w=this;Ee.extend(w,{hashNavigation:{initialized:!1,init:pr.init.bind(w),destroy:pr.destroy.bind(w),setHash:pr.setHash.bind(w),onHashCange:pr.onHashCange.bind(w)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var w=this;Ee.extend(w,{autoplay:{running:!1,paused:!1,run:Tr.run.bind(w),start:Tr.start.bind(w),stop:Tr.stop.bind(w),pause:Tr.pause.bind(w),onTransitionEnd:function(be){!w||w.destroyed||!w.$wrapperEl||be.target===this&&(w.$wrapperEl[0].removeEventListener("transitionend",w.autoplay.onTransitionEnd),w.$wrapperEl[0].removeEventListener("webkitTransitionEnd",w.autoplay.onTransitionEnd),w.autoplay.paused=!1,w.autoplay.running?w.autoplay.run():w.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(w,ne){this.autoplay.running&&(ne||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(w):this.autoplay.stop())},sliderFirstMove:function(){var w=this;w.autoplay.running&&(w.params.autoplay.disableOnInteraction?w.autoplay.stop():w.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var w=this;Ee.extend(w,{fadeEffect:{setTranslate:_o.setTranslate.bind(w),setTransition:_o.setTransition.bind(w)}})},on:{beforeInit:function(){var w=this;if("fade"===w.params.effect){w.classNames.push(w.params.containerModifierClass+"fade");var ne={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Ee.extend(w.params,ne),Ee.extend(w.originalParams,ne)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(w){"fade"===this.params.effect&&this.fadeEffect.setTransition(w)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var w=this;Ee.extend(w,{cubeEffect:{setTranslate:Sn.setTranslate.bind(w),setTransition:Sn.setTransition.bind(w)}})},on:{beforeInit:function(){var w=this;if("cube"===w.params.effect){w.classNames.push(w.params.containerModifierClass+"cube"),w.classNames.push(w.params.containerModifierClass+"3d");var ne={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};Ee.extend(w.params,ne),Ee.extend(w.originalParams,ne)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(w){"cube"===this.params.effect&&this.cubeEffect.setTransition(w)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var w=this;Ee.extend(w,{flipEffect:{setTranslate:Jn.setTranslate.bind(w),setTransition:Jn.setTransition.bind(w)}})},on:{beforeInit:function(){var w=this;if("flip"===w.params.effect){w.classNames.push(w.params.containerModifierClass+"flip"),w.classNames.push(w.params.containerModifierClass+"3d");var ne={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Ee.extend(w.params,ne),Ee.extend(w.originalParams,ne)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(w){"flip"===this.params.effect&&this.flipEffect.setTransition(w)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var w=this;Ee.extend(w,{coverflowEffect:{setTranslate:Wi.setTranslate.bind(w),setTransition:Wi.setTransition.bind(w)}})},on:{beforeInit:function(){var w=this;"coverflow"===w.params.effect&&(w.classNames.push(w.params.containerModifierClass+"coverflow"),w.classNames.push(w.params.containerModifierClass+"3d"),w.params.watchSlidesProgress=!0,w.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(w){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(w)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var w=this;Ee.extend(w,{thumbs:{swiper:null,init:br.init.bind(w),update:br.update.bind(w),onThumbClick:br.onThumbClick.bind(w)}})},on:{beforeInit:function(){var w=this,be=w.params.thumbs;!be||!be.swiper||(w.thumbs.init(),w.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(w){var be=this.thumbs.swiper;be&&be.setTransition(w)},beforeDestroy:function(){var ne=this.thumbs.swiper;ne&&this.thumbs.swiperCreated&&ne&&ne.destroy()}}}];return typeof ji.use>"u"&&(ji.use=ji.Class.use,ji.installModule=ji.Class.installModule),ji.use(xo),ji}()},56958:oe=>{function x(){}x.prototype={on:function(i,e,n){var a=this.e||(this.e={});return(a[i]||(a[i]=[])).push({fn:e,ctx:n}),this},once:function(i,e,n){var a=this;function t(){a.off(i,t),e.apply(n,arguments)}return t._=e,this.on(i,t,n)},emit:function(i){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[i]||[]).slice(),a=0,t=n.length;a<t;a++)n[a].fn.apply(n[a].ctx,e);return this},off:function(i,e){var n=this.e||(this.e={}),a=n[i],t=[];if(a&&e)for(var l=0,h=a.length;l<h;l++)a[l].fn!==e&&a[l].fn._!==e&&t.push(a[l]);return t.length?n[i]=t:delete n[i],this}},oe.exports=x,oe.exports.TinyEmitter=x},6204:(oe,x,i)=>{"use strict";i.d(x,{V8:()=>e});class e{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,l=!1){return this.onePassHasher.start().appendStr(t).end(l)}static hashAsciiStr(t,l=!1){return this.onePassHasher.start().appendAsciiStr(t).end(l)}static _hex(t){const l=e.hexChars,h=e.hexOut;let s,d,p,u;for(u=0;u<4;u+=1)for(d=8*u,s=t[u],p=0;p<8;p+=2)h[d+1+p]=l.charAt(15&s),s>>>=4,h[d+0+p]=l.charAt(15&s),s>>>=4;return h.join("")}static _md5cycle(t,l){let h=t[0],s=t[1],d=t[2],p=t[3];h+=(s&d|~s&p)+l[0]-680876936|0,h=(h<<7|h>>>25)+s|0,p+=(h&s|~h&d)+l[1]-389564586|0,p=(p<<12|p>>>20)+h|0,d+=(p&h|~p&s)+l[2]+606105819|0,d=(d<<17|d>>>15)+p|0,s+=(d&p|~d&h)+l[3]-1044525330|0,s=(s<<22|s>>>10)+d|0,h+=(s&d|~s&p)+l[4]-176418897|0,h=(h<<7|h>>>25)+s|0,p+=(h&s|~h&d)+l[5]+1200080426|0,p=(p<<12|p>>>20)+h|0,d+=(p&h|~p&s)+l[6]-1473231341|0,d=(d<<17|d>>>15)+p|0,s+=(d&p|~d&h)+l[7]-45705983|0,s=(s<<22|s>>>10)+d|0,h+=(s&d|~s&p)+l[8]+1770035416|0,h=(h<<7|h>>>25)+s|0,p+=(h&s|~h&d)+l[9]-1958414417|0,p=(p<<12|p>>>20)+h|0,d+=(p&h|~p&s)+l[10]-42063|0,d=(d<<17|d>>>15)+p|0,s+=(d&p|~d&h)+l[11]-1990404162|0,s=(s<<22|s>>>10)+d|0,h+=(s&d|~s&p)+l[12]+1804603682|0,h=(h<<7|h>>>25)+s|0,p+=(h&s|~h&d)+l[13]-40341101|0,p=(p<<12|p>>>20)+h|0,d+=(p&h|~p&s)+l[14]-1502002290|0,d=(d<<17|d>>>15)+p|0,s+=(d&p|~d&h)+l[15]+1236535329|0,s=(s<<22|s>>>10)+d|0,h+=(s&p|d&~p)+l[1]-165796510|0,h=(h<<5|h>>>27)+s|0,p+=(h&d|s&~d)+l[6]-1069501632|0,p=(p<<9|p>>>23)+h|0,d+=(p&s|h&~s)+l[11]+643717713|0,d=(d<<14|d>>>18)+p|0,s+=(d&h|p&~h)+l[0]-373897302|0,s=(s<<20|s>>>12)+d|0,h+=(s&p|d&~p)+l[5]-701558691|0,h=(h<<5|h>>>27)+s|0,p+=(h&d|s&~d)+l[10]+38016083|0,p=(p<<9|p>>>23)+h|0,d+=(p&s|h&~s)+l[15]-660478335|0,d=(d<<14|d>>>18)+p|0,s+=(d&h|p&~h)+l[4]-405537848|0,s=(s<<20|s>>>12)+d|0,h+=(s&p|d&~p)+l[9]+568446438|0,h=(h<<5|h>>>27)+s|0,p+=(h&d|s&~d)+l[14]-1019803690|0,p=(p<<9|p>>>23)+h|0,d+=(p&s|h&~s)+l[3]-187363961|0,d=(d<<14|d>>>18)+p|0,s+=(d&h|p&~h)+l[8]+1163531501|0,s=(s<<20|s>>>12)+d|0,h+=(s&p|d&~p)+l[13]-1444681467|0,h=(h<<5|h>>>27)+s|0,p+=(h&d|s&~d)+l[2]-51403784|0,p=(p<<9|p>>>23)+h|0,d+=(p&s|h&~s)+l[7]+1735328473|0,d=(d<<14|d>>>18)+p|0,s+=(d&h|p&~h)+l[12]-1926607734|0,s=(s<<20|s>>>12)+d|0,h+=(s^d^p)+l[5]-378558|0,h=(h<<4|h>>>28)+s|0,p+=(h^s^d)+l[8]-2022574463|0,p=(p<<11|p>>>21)+h|0,d+=(p^h^s)+l[11]+1839030562|0,d=(d<<16|d>>>16)+p|0,s+=(d^p^h)+l[14]-35309556|0,s=(s<<23|s>>>9)+d|0,h+=(s^d^p)+l[1]-1530992060|0,h=(h<<4|h>>>28)+s|0,p+=(h^s^d)+l[4]+1272893353|0,p=(p<<11|p>>>21)+h|0,d+=(p^h^s)+l[7]-155497632|0,d=(d<<16|d>>>16)+p|0,s+=(d^p^h)+l[10]-1094730640|0,s=(s<<23|s>>>9)+d|0,h+=(s^d^p)+l[13]+681279174|0,h=(h<<4|h>>>28)+s|0,p+=(h^s^d)+l[0]-358537222|0,p=(p<<11|p>>>21)+h|0,d+=(p^h^s)+l[3]-722521979|0,d=(d<<16|d>>>16)+p|0,s+=(d^p^h)+l[6]+76029189|0,s=(s<<23|s>>>9)+d|0,h+=(s^d^p)+l[9]-640364487|0,h=(h<<4|h>>>28)+s|0,p+=(h^s^d)+l[12]-421815835|0,p=(p<<11|p>>>21)+h|0,d+=(p^h^s)+l[15]+530742520|0,d=(d<<16|d>>>16)+p|0,s+=(d^p^h)+l[2]-995338651|0,s=(s<<23|s>>>9)+d|0,h+=(d^(s|~p))+l[0]-198630844|0,h=(h<<6|h>>>26)+s|0,p+=(s^(h|~d))+l[7]+1126891415|0,p=(p<<10|p>>>22)+h|0,d+=(h^(p|~s))+l[14]-1416354905|0,d=(d<<15|d>>>17)+p|0,s+=(p^(d|~h))+l[5]-57434055|0,s=(s<<21|s>>>11)+d|0,h+=(d^(s|~p))+l[12]+1700485571|0,h=(h<<6|h>>>26)+s|0,p+=(s^(h|~d))+l[3]-1894986606|0,p=(p<<10|p>>>22)+h|0,d+=(h^(p|~s))+l[10]-1051523|0,d=(d<<15|d>>>17)+p|0,s+=(p^(d|~h))+l[1]-2054922799|0,s=(s<<21|s>>>11)+d|0,h+=(d^(s|~p))+l[8]+1873313359|0,h=(h<<6|h>>>26)+s|0,p+=(s^(h|~d))+l[15]-30611744|0,p=(p<<10|p>>>22)+h|0,d+=(h^(p|~s))+l[6]-1560198380|0,d=(d<<15|d>>>17)+p|0,s+=(p^(d|~h))+l[13]+1309151649|0,s=(s<<21|s>>>11)+d|0,h+=(d^(s|~p))+l[4]-145523070|0,h=(h<<6|h>>>26)+s|0,p+=(s^(h|~d))+l[11]-1120210379|0,p=(p<<10|p>>>22)+h|0,d+=(h^(p|~s))+l[2]+718787259|0,d=(d<<15|d>>>17)+p|0,s+=(p^(d|~h))+l[9]-343485551|0,s=(s<<21|s>>>11)+d|0,t[0]=h+t[0]|0,t[1]=s+t[1]|0,t[2]=d+t[2]|0,t[3]=p+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(e.stateIdentity),this}appendStr(t){const l=this._buffer8,h=this._buffer32;let d,p,s=this._bufferLength;for(p=0;p<t.length;p+=1){if(d=t.charCodeAt(p),d<128)l[s++]=d;else if(d<2048)l[s++]=192+(d>>>6),l[s++]=63&d|128;else if(d<55296||d>56319)l[s++]=224+(d>>>12),l[s++]=d>>>6&63|128,l[s++]=63&d|128;else{if(d=1024*(d-55296)+(t.charCodeAt(++p)-56320)+65536,d>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");l[s++]=240+(d>>>18),l[s++]=d>>>12&63|128,l[s++]=d>>>6&63|128,l[s++]=63&d|128}s>=64&&(this._dataLength+=64,e._md5cycle(this._state,h),s-=64,h[0]=h[16])}return this._bufferLength=s,this}appendAsciiStr(t){const l=this._buffer8,h=this._buffer32;let d,s=this._bufferLength,p=0;for(;;){for(d=Math.min(t.length-p,64-s);d--;)l[s++]=t.charCodeAt(p++);if(s<64)break;this._dataLength+=64,e._md5cycle(this._state,h),s=0}return this._bufferLength=s,this}appendByteArray(t){const l=this._buffer8,h=this._buffer32;let d,s=this._bufferLength,p=0;for(;;){for(d=Math.min(t.length-p,64-s);d--;)l[s++]=t[p++];if(s<64)break;this._dataLength+=64,e._md5cycle(this._state,h),s=0}return this._bufferLength=s,this}getState(){const t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const l=t.buffer,h=t.state,s=this._state;let d;for(this._dataLength=t.length,this._bufferLength=t.buflen,s[0]=h[0],s[1]=h[1],s[2]=h[2],s[3]=h[3],d=0;d<l.length;d+=1)this._buffer8[d]=l.charCodeAt(d)}end(t=!1){const l=this._bufferLength,h=this._buffer8,s=this._buffer32,d=1+(l>>2);this._dataLength+=l;const p=8*this._dataLength;if(h[l]=128,h[l+1]=h[l+2]=h[l+3]=0,s.set(e.buffer32Identity.subarray(d),d),l>55&&(e._md5cycle(this._state,s),s.set(e.buffer32Identity)),p<=4294967295)s[14]=p;else{const u=p.toString(16).match(/(.*?)(.{0,8})$/);if(null===u)return;const g=parseInt(u[2],16),v=parseInt(u[1],16)||0;s[14]=g,s[15]=v}return e._md5cycle(this._state,s),t?this._state:e._hex(this._state)}}if(e.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),e.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e.hexChars="0123456789abcdef",e.hexOut=[],e.onePassHasher=new e,"5d41402abc4b2a76b9719d911017c592"!==e.hashStr("hello"))throw new Error("Md5 self test failed.")},5799:function(oe,x,i){"use strict";var e=this&&this.__assign||function(){return e=Object.assign||function(t){for(var l,h=1,s=arguments.length;h<s;h++)for(var d in l=arguments[h])Object.prototype.hasOwnProperty.call(l,d)&&(t[d]=l[d]);return t},e.apply(this,arguments)};Object.defineProperty(x,"__esModule",{value:!0});var n=i(24758),a=function(){function t(){}return t.prototype.generateEventId=function(){return(0,n.v4)()},t.prototype.createImpressionEvent=function(l,h,s,d,p,u){var g=this.createBaseEvent(l,h,s,d,p);return u?e(e({},g),{variant:u}):g},t.prototype.createBaseEvent=function(l,h,s,d,p){return{eventType:d,eventId:this.generateEventId(),context:l,enabled:h,featureName:s,impressionData:p}},t}();x.default=a},85313:function(oe,x,i){"use strict";var A,e=this&&this.__extends||(A=function(P,B){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,X){V.__proto__=X}||function(V,X){for(var re in X)Object.prototype.hasOwnProperty.call(X,re)&&(V[re]=X[re])})(P,B)},function(P,B){if("function"!=typeof B&&null!==B)throw new TypeError("Class extends value "+String(B)+" is not a constructor or null");function V(){this.constructor=P}A(P,B),P.prototype=null===B?Object.create(B):(V.prototype=B.prototype,new V)}),n=this&&this.__assign||function(){return n=Object.assign||function(A){for(var P,B=1,V=arguments.length;B<V;B++)for(var X in P=arguments[B])Object.prototype.hasOwnProperty.call(P,X)&&(A[X]=P[X]);return A},n.apply(this,arguments)},a=this&&this.__awaiter||function(A,P,B,V){return new(B||(B=Promise))(function(re,Q){function ae($){try{k(V.next($))}catch(j){Q(j)}}function K($){try{k(V.throw($))}catch(j){Q(j)}}function k($){$.done?re($.value):function X(re){return re instanceof B?re:new B(function(Q){Q(re)})}($.value).then(ae,K)}k((V=V.apply(A,P||[])).next())})},t=this&&this.__generator||function(A,P){var V,X,re,Q,B={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return Q={next:ae(0),throw:ae(1),return:ae(2)},"function"==typeof Symbol&&(Q[Symbol.iterator]=function(){return this}),Q;function ae(k){return function($){return function K(k){if(V)throw new TypeError("Generator is already executing.");for(;B;)try{if(V=1,X&&(re=2&k[0]?X.return:k[0]?X.throw||((re=X.return)&&re.call(X),0):X.next)&&!(re=re.call(X,k[1])).done)return re;switch(X=0,re&&(k=[2&k[0],re.value]),k[0]){case 0:case 1:re=k;break;case 4:return B.label++,{value:k[1],done:!1};case 5:B.label++,X=k[1],k=[0];continue;case 7:k=B.ops.pop(),B.trys.pop();continue;default:if(!(re=(re=B.trys).length>0&&re[re.length-1])&&(6===k[0]||2===k[0])){B=0;continue}if(3===k[0]&&(!re||k[1]>re[0]&&k[1]<re[3])){B.label=k[1];break}if(6===k[0]&&B.label<re[1]){B.label=re[1],re=k;break}if(re&&B.label<re[2]){B.label=re[2],B.ops.push(k);break}re[2]&&B.ops.pop(),B.trys.pop();continue}k=P.call(A,B)}catch($){k=[6,$],X=0}finally{V=re=0}if(5&k[0])throw k[1];return{value:k[0]?k[1]:void 0,done:!0}}([k,$])}}},l=this&&this.__spreadArray||function(A,P,B){if(B||2===arguments.length)for(var re,V=0,X=P.length;V<X;V++)(re||!(V in P))&&(re||(re=Array.prototype.slice.call(P,0,V)),re[V]=P[V]);return A.concat(re||Array.prototype.slice.call(P))};Object.defineProperty(x,"__esModule",{value:!0}),x.InMemoryStorageProvider=x.LocalStorageProvider=x.UnleashClient=x.resolveFetch=x.EVENTS=void 0;var h=i(56958),s=i(43622),d=i(8879);x.InMemoryStorageProvider=d.default;var p=i(53939);x.LocalStorageProvider=p.default;var u=i(5799),g=i(76731),v=["userId","sessionId","remoteAddress"];x.EVENTS={INIT:"initialized",ERROR:"error",READY:"ready",UPDATE:"update",IMPRESSION:"impression",SENT:"sent"};var b={name:"disabled",enabled:!1},S="repo";x.resolveFetch=function(){try{if(typeof window<"u"&&"fetch"in window)return fetch.bind(window);if("fetch"in globalThis)return fetch.bind(globalThis)}catch(A){console.error('Unleash failed to resolve "fetch"',A)}};var D=function(A){function P(B){var V=B.storageProvider,X=B.url,re=B.clientKey,Q=B.disableRefresh,ae=void 0!==Q&&Q,K=B.refreshInterval,k=void 0===K?30:K,$=B.metricsInterval,j=void 0===$?30:$,R=B.disableMetrics,U=void 0!==R&&R,le=B.appName,T=B.environment,H=void 0===T?"default":T,N=B.context,pe=B.fetch,de=void 0===pe?(0,x.resolveFetch)():pe,me=B.bootstrap,q=B.bootstrapOverride,se=void 0===q||q,ve=B.headerName,Ee=void 0===ve?"Authorization":ve,Ye=B.customHeaders,wt=void 0===Ye?{}:Ye,Wt=B.impressionDataAll,Ut=void 0!==Wt&&Wt,nt=B.usePOSTrequests,Zt=void 0!==nt&&nt,Fe=A.call(this)||this;if(Fe.toggles=[],Fe.etag="",Fe.readyEventEmitted=!1,Fe.usePOSTrequests=!1,Fe.started=!1,!X)throw new Error("url is required");if(!re)throw new Error("clientKey is required");if(!le)throw new Error("appName is required.");return Fe.eventsHandler=new u.default,Fe.impressionDataAll=Ut,Fe.toggles=me&&me.length>0?me:[],Fe.url=X instanceof URL?X:new URL(X),Fe.clientKey=re,Fe.headerName=Ee,Fe.customHeaders=wt,Fe.storage=V||(typeof window<"u"?new p.default:new d.default),Fe.refreshInterval=ae?0:1e3*k,Fe.context=n({appName:le,environment:H},N),Fe.usePOSTrequests=Zt,Fe.ready=new Promise(function(yt){Fe.init().then(yt).catch(function(ie){console.error(ie),Fe.emit(x.EVENTS.ERROR,ie),yt()})}),de||console.error('Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.'),Fe.fetch=de,Fe.bootstrap=me&&me.length>0?me:void 0,Fe.bootstrapOverride=se,Fe.metrics=new s.default({onError:Fe.emit.bind(Fe,x.EVENTS.ERROR),onSent:Fe.emit.bind(Fe,x.EVENTS.SENT),appName:le,metricsInterval:j,disableMetrics:U,url:Fe.url,clientKey:re,fetch:de,headerName:Ee,customHeaders:wt}),Fe}return e(P,A),P.prototype.getAllToggles=function(){return l([],this.toggles,!0)},P.prototype.isEnabled=function(B){var V,X=this.toggles.find(function(ae){return ae.name===B}),re=!!X&&X.enabled;if(this.metrics.count(B,re),X?.impressionData||this.impressionDataAll){var Q=this.eventsHandler.createImpressionEvent(this.context,re,B,"isEnabled",null!==(V=X?.impressionData)&&void 0!==V?V:void 0);this.emit(x.EVENTS.IMPRESSION,Q)}return re},P.prototype.getVariant=function(B){var V,X=this.toggles.find(function(K){return K.name===B}),re=X?.enabled||!1,Q=X?X.variant:b;if(Q.name&&this.metrics.countVariant(B,Q.name),this.metrics.count(B,re),X?.impressionData||this.impressionDataAll){var ae=this.eventsHandler.createImpressionEvent(this.context,re,B,"getVariant",null!==(V=X?.impressionData)&&void 0!==V?V:void 0,Q.name);this.emit(x.EVENTS.IMPRESSION,ae)}return Q},P.prototype.updateContext=function(B){return a(this,void 0,void 0,function(){var X=this;return t(this,function(re){switch(re.label){case 0:return(B.appName||B.environment)&&console.warn("appName and environment are static. They can't be updated with updateContext."),this.context=n(n({},{environment:this.context.environment,appName:this.context.appName,sessionId:this.context.sessionId}),B),this.timerRef||this.readyEventEmitted?[4,this.fetchToggles()]:[3,2];case 1:return re.sent(),[3,4];case 2:return this.started?[4,new Promise(function(Q){var ae=function(){X.fetchToggles().then(function(){X.off(x.EVENTS.READY,ae),Q()})};X.once(x.EVENTS.READY,ae)})]:[3,4];case 3:re.sent(),re.label=4;case 4:return[2]}})})},P.prototype.getContext=function(){return n({},this.context)},P.prototype.setContextField=function(B,V){var X,re;if(v.includes(B))this.context=n(n({},this.context),((X={})[B]=V,X));else{var Q=n(n({},this.context.properties),((re={})[B]=V,re));this.context=n(n({},this.context),{properties:Q})}this.timerRef&&this.fetchToggles()},P.prototype.init=function(){return a(this,void 0,void 0,function(){var B,V;return t(this,function(X){switch(X.label){case 0:return[4,this.resolveSessionId()];case 1:return B=X.sent(),this.context=n({sessionId:B},this.context),V=this,[4,this.storage.get(S)];case 2:return V.toggles=X.sent()||[],this.bootstrap&&(this.bootstrapOverride||0===this.toggles.length)?[4,this.storage.save(S,this.bootstrap)]:[3,4];case 3:X.sent(),this.toggles=this.bootstrap,this.emit(x.EVENTS.READY),X.label=4;case 4:return this.emit(x.EVENTS.INIT),[2]}})})},P.prototype.start=function(){return a(this,void 0,void 0,function(){var B,V=this;return t(this,function(X){switch(X.label){case 0:return this.started=!0,this.timerRef?(console.error("Unleash SDK has already started, if you want to restart the SDK you should call client.stop() before starting again."),[2]):[4,this.ready];case 1:return X.sent(),this.metrics.start(),B=this.refreshInterval,[4,this.fetchToggles()];case 2:return X.sent(),B>0&&(this.timerRef=setInterval(function(){return V.fetchToggles()},B)),[2]}})})},P.prototype.stop=function(){this.timerRef&&(clearInterval(this.timerRef),this.timerRef=void 0),this.metrics.stop()},P.prototype.resolveSessionId=function(){return a(this,void 0,void 0,function(){var B;return t(this,function(V){switch(V.label){case 0:return this.context.sessionId?[2,this.context.sessionId]:[3,1];case 1:return[4,this.storage.get("sessionId")];case 2:return(B=V.sent())?[3,4]:(B=Math.floor(1e9*Math.random()),[4,this.storage.save("sessionId",B)]);case 3:V.sent(),V.label=4;case 4:return[2,B]}})})},P.prototype.getHeaders=function(){var B,V=((B={})[this.headerName]=this.clientKey,B.Accept="application/json",B["Content-Type"]="application/json",B["If-None-Match"]=this.etag,B);return Object.entries(this.customHeaders).filter(g.notNullOrUndefined).forEach(function(X){return V[X[0]]=X[1]}),V},P.prototype.storeToggles=function(B){return a(this,void 0,void 0,function(){return t(this,function(V){switch(V.label){case 0:return this.toggles=B,this.emit(x.EVENTS.UPDATE),[4,this.storage.save(S,B)];case 1:return V.sent(),[2]}})})},P.prototype.fetchToggles=function(){return a(this,void 0,void 0,function(){var B,V,X,re,Q,ae,K;return t(this,function(k){switch(k.label){case 0:if(!this.fetch)return[3,8];k.label=1;case 1:return k.trys.push([1,7,,8]),V=(B=this.usePOSTrequests)?this.url:(0,g.urlWithContextAsQuery)(this.url,this.context),X=B?"POST":"GET",re=B?JSON.stringify({context:this.context}):void 0,[4,this.fetch(V.toString(),{method:X,cache:"no-cache",headers:this.getHeaders(),body:re})];case 2:return(Q=k.sent()).ok&&304!==Q.status?(this.etag=Q.headers.get("ETag")||"",[4,Q.json()]):[3,5];case 3:return ae=k.sent(),[4,this.storeToggles(ae.toggles)];case 4:return k.sent(),!this.bootstrap&&!this.readyEventEmitted&&(this.emit(x.EVENTS.READY),this.readyEventEmitted=!0),[3,6];case 5:!Q.ok&&304!==Q.status&&(console.error("Unleash: Fetching feature toggles did not have an ok response"),this.emit(x.EVENTS.ERROR,{type:"HttpError",code:Q.status})),k.label=6;case 6:return[3,8];case 7:return K=k.sent(),console.error("Unleash: unable to fetch feature toggles",K),this.emit(x.EVENTS.ERROR,K),[3,8];case 8:return[2]}})})},P}(h.TinyEmitter);x.UnleashClient=D},43622:function(oe,x,i){"use strict";var e=this&&this.__assign||function(){return e=Object.assign||function(s){for(var d,p=1,u=arguments.length;p<u;p++)for(var g in d=arguments[p])Object.prototype.hasOwnProperty.call(d,g)&&(s[g]=d[g]);return s},e.apply(this,arguments)},n=this&&this.__awaiter||function(s,d,p,u){return new(p||(p=Promise))(function(v,y){function b(D){try{E(u.next(D))}catch(A){y(A)}}function S(D){try{E(u.throw(D))}catch(A){y(A)}}function E(D){D.done?v(D.value):function g(v){return v instanceof p?v:new p(function(y){y(v)})}(D.value).then(b,S)}E((u=u.apply(s,d||[])).next())})},a=this&&this.__generator||function(s,d){var u,g,v,y,p={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return y={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(y[Symbol.iterator]=function(){return this}),y;function b(E){return function(D){return function S(E){if(u)throw new TypeError("Generator is already executing.");for(;p;)try{if(u=1,g&&(v=2&E[0]?g.return:E[0]?g.throw||((v=g.return)&&v.call(g),0):g.next)&&!(v=v.call(g,E[1])).done)return v;switch(g=0,v&&(E=[2&E[0],v.value]),E[0]){case 0:case 1:v=E;break;case 4:return p.label++,{value:E[1],done:!1};case 5:p.label++,g=E[1],E=[0];continue;case 7:E=p.ops.pop(),p.trys.pop();continue;default:if(!(v=(v=p.trys).length>0&&v[v.length-1])&&(6===E[0]||2===E[0])){p=0;continue}if(3===E[0]&&(!v||E[1]>v[0]&&E[1]<v[3])){p.label=E[1];break}if(6===E[0]&&p.label<v[1]){p.label=v[1],v=E;break}if(v&&p.label<v[2]){p.label=v[2],p.ops.push(E);break}v[2]&&p.ops.pop(),p.trys.pop();continue}E=d.call(s,p)}catch(D){E=[6,D],g=0}finally{u=v=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,D])}}};Object.defineProperty(x,"__esModule",{value:!0});var t=i(76731),l=function(){},h=function(){function s(d){var u=d.onSent,g=d.appName,v=d.metricsInterval,y=d.disableMetrics,b=void 0!==y&&y,S=d.url,E=d.clientKey,D=d.fetch,A=d.headerName,P=d.customHeaders,B=void 0===P?{}:P;this.onError=d.onError,this.onSent=u||l,this.disabled=b,this.metricsInterval=1e3*v,this.appName=g,this.url=S instanceof URL?S:new URL(S),this.clientKey=E,this.bucket=this.createEmptyBucket(),this.fetch=D,this.headerName=A,this.customHeaders=B}return s.prototype.start=function(){var d=this;if(this.disabled)return!1;"number"==typeof this.metricsInterval&&this.metricsInterval>0&&setTimeout(function(){d.startTimer(),d.sendMetrics()},2e3)},s.prototype.stop=function(){this.timer&&(clearTimeout(this.timer),delete this.timer)},s.prototype.createEmptyBucket=function(){return{start:new Date,stop:null,toggles:{}}},s.prototype.getHeaders=function(){var d,p=((d={})[this.headerName]=this.clientKey,d.Accept="application/json",d["Content-Type"]="application/json",d);return Object.entries(this.customHeaders).filter(t.notNullOrUndefined).forEach(function(u){return p[u[0]]=u[1]}),p},s.prototype.sendMetrics=function(){return n(this,void 0,void 0,function(){var d,p,u;return a(this,function(g){switch(g.label){case 0:if(d="".concat(this.url,"/client/metrics"),p=this.getPayload(),this.bucketIsEmpty(p))return[2];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this.fetch(d,{cache:"no-cache",method:"POST",headers:this.getHeaders(),body:JSON.stringify(p)})];case 2:return g.sent(),this.onSent(p),[3,4];case 3:return u=g.sent(),console.error("Unleash: unable to send feature metrics",u),this.onError(u),[3,4];case 4:return[2]}})})},s.prototype.count=function(d,p){return!(this.disabled||!this.bucket||(this.assertBucket(d),this.bucket.toggles[d][p?"yes":"no"]++,0))},s.prototype.countVariant=function(d,p){return!(this.disabled||!this.bucket||(this.assertBucket(d),this.bucket.toggles[d].variants[p]?this.bucket.toggles[d].variants[p]+=1:this.bucket.toggles[d].variants[p]=1,0))},s.prototype.assertBucket=function(d){if(this.disabled||!this.bucket)return!1;this.bucket.toggles[d]||(this.bucket.toggles[d]={yes:0,no:0,variants:{}})},s.prototype.startTimer=function(){var d=this;this.timer=setInterval(function(){d.sendMetrics()},this.metricsInterval)},s.prototype.bucketIsEmpty=function(d){return 0===Object.keys(d.bucket.toggles).length},s.prototype.getPayload=function(){var d=e(e({},this.bucket),{stop:new Date});return this.bucket=this.createEmptyBucket(),{bucket:d,appName:this.appName,instanceId:"browser"}},s}();x.default=h},8879:function(oe,x){"use strict";var i=this&&this.__awaiter||function(a,t,l,h){return new(l||(l=Promise))(function(d,p){function u(y){try{v(h.next(y))}catch(b){p(b)}}function g(y){try{v(h.throw(y))}catch(b){p(b)}}function v(y){y.done?d(y.value):function s(d){return d instanceof l?d:new l(function(p){p(d)})}(y.value).then(u,g)}v((h=h.apply(a,t||[])).next())})},e=this&&this.__generator||function(a,t){var h,s,d,p,l={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return p={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function u(v){return function(y){return function g(v){if(h)throw new TypeError("Generator is already executing.");for(;l;)try{if(h=1,s&&(d=2&v[0]?s.return:v[0]?s.throw||((d=s.return)&&d.call(s),0):s.next)&&!(d=d.call(s,v[1])).done)return d;switch(s=0,d&&(v=[2&v[0],d.value]),v[0]){case 0:case 1:d=v;break;case 4:return l.label++,{value:v[1],done:!1};case 5:l.label++,s=v[1],v=[0];continue;case 7:v=l.ops.pop(),l.trys.pop();continue;default:if(!(d=(d=l.trys).length>0&&d[d.length-1])&&(6===v[0]||2===v[0])){l=0;continue}if(3===v[0]&&(!d||v[1]>d[0]&&v[1]<d[3])){l.label=v[1];break}if(6===v[0]&&l.label<d[1]){l.label=d[1],d=v;break}if(d&&l.label<d[2]){l.label=d[2],l.ops.push(v);break}d[2]&&l.ops.pop(),l.trys.pop();continue}v=t.call(a,l)}catch(y){v=[6,y],s=0}finally{h=d=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,y])}}};Object.defineProperty(x,"__esModule",{value:!0});var n=function(){function a(){this.store=new Map}return a.prototype.save=function(t,l){return i(this,void 0,void 0,function(){return e(this,function(h){return this.store.set(t,l),[2]})})},a.prototype.get=function(t){return i(this,void 0,void 0,function(){return e(this,function(l){return[2,this.store.get(t)]})})},a}();x.default=n},53939:function(oe,x){"use strict";var i=this&&this.__awaiter||function(a,t,l,h){return new(l||(l=Promise))(function(d,p){function u(y){try{v(h.next(y))}catch(b){p(b)}}function g(y){try{v(h.throw(y))}catch(b){p(b)}}function v(y){y.done?d(y.value):function s(d){return d instanceof l?d:new l(function(p){p(d)})}(y.value).then(u,g)}v((h=h.apply(a,t||[])).next())})},e=this&&this.__generator||function(a,t){var h,s,d,p,l={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return p={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function u(v){return function(y){return function g(v){if(h)throw new TypeError("Generator is already executing.");for(;l;)try{if(h=1,s&&(d=2&v[0]?s.return:v[0]?s.throw||((d=s.return)&&d.call(s),0):s.next)&&!(d=d.call(s,v[1])).done)return d;switch(s=0,d&&(v=[2&v[0],d.value]),v[0]){case 0:case 1:d=v;break;case 4:return l.label++,{value:v[1],done:!1};case 5:l.label++,s=v[1],v=[0];continue;case 7:v=l.ops.pop(),l.trys.pop();continue;default:if(!(d=(d=l.trys).length>0&&d[d.length-1])&&(6===v[0]||2===v[0])){l=0;continue}if(3===v[0]&&(!d||v[1]>d[0]&&v[1]<d[3])){l.label=v[1];break}if(6===v[0]&&l.label<d[1]){l.label=d[1],d=v;break}if(d&&l.label<d[2]){l.label=d[2],l.ops.push(v);break}d[2]&&l.ops.pop(),l.trys.pop();continue}v=t.call(a,l)}catch(y){v=[6,y],s=0}finally{h=d=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,y])}}};Object.defineProperty(x,"__esModule",{value:!0});var n=function(){function a(){this.prefix="unleash:repository"}return a.prototype.save=function(t,l){return i(this,void 0,void 0,function(){var h,s;return e(this,function(d){h=JSON.stringify(l),s="".concat(this.prefix,":").concat(t);try{window.localStorage.setItem(s,h)}catch(p){console.error(p)}return[2]})})},a.prototype.get=function(t){try{var l="".concat(this.prefix,":").concat(t),h=window.localStorage.getItem(l);return h?JSON.parse(h):void 0}catch(s){console.error(s)}},a}();x.default=n},76731:(oe,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.urlWithContextAsQuery=x.notNullOrUndefined=void 0,x.notNullOrUndefined=function(n){return null!=n[1]},x.urlWithContextAsQuery=function(n,a){var t=new URL(n.toString());return Object.entries(a).filter(x.notNullOrUndefined).forEach(function(l){var h=l[0],s=l[1];"properties"===h&&s?Object.entries(s).filter(x.notNullOrUndefined).forEach(function(d){var u=d[1];return t.searchParams.append("properties[".concat(d[0],"]"),u)}):t.searchParams.append(h,s)}),t}},24758:(oe,x,i)=>{"use strict";i.r(x),i.d(x,{NIL:()=>Ut,parse:()=>A,stringify:()=>u,v1:()=>E,v3:()=>de,v4:()=>q,v5:()=>Wt,validate:()=>h,version:()=>Zt});var e,n=new Uint8Array(16);function a(){if(!e&&!(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(n)}const t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,h=function l(Fe){return"string"==typeof Fe&&t.test(Fe)};for(var s=[],d=0;d<256;++d)s.push((d+256).toString(16).substr(1));const u=function p(Fe){var yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ie=(s[Fe[yt+0]]+s[Fe[yt+1]]+s[Fe[yt+2]]+s[Fe[yt+3]]+"-"+s[Fe[yt+4]]+s[Fe[yt+5]]+"-"+s[Fe[yt+6]]+s[Fe[yt+7]]+"-"+s[Fe[yt+8]]+s[Fe[yt+9]]+"-"+s[Fe[yt+10]]+s[Fe[yt+11]]+s[Fe[yt+12]]+s[Fe[yt+13]]+s[Fe[yt+14]]+s[Fe[yt+15]]).toLowerCase();if(!h(ie))throw TypeError("Stringified UUID is invalid");return ie};var g,v,y=0,b=0;const E=function S(Fe,yt,ie){var Ce=yt&&ie||0,Ie=yt||new Array(16),dt=(Fe=Fe||{}).node||g,Mt=void 0!==Fe.clockseq?Fe.clockseq:v;if(null==dt||null==Mt){var Xt=Fe.random||(Fe.rng||a)();null==dt&&(dt=g=[1|Xt[0],Xt[1],Xt[2],Xt[3],Xt[4],Xt[5]]),null==Mt&&(Mt=v=16383&(Xt[6]<<8|Xt[7]))}var en=void 0!==Fe.msecs?Fe.msecs:Date.now(),vt=void 0!==Fe.nsecs?Fe.nsecs:b+1,xt=en-y+(vt-b)/1e4;if(xt<0&&void 0===Fe.clockseq&&(Mt=Mt+1&16383),(xt<0||en>y)&&void 0===Fe.nsecs&&(vt=0),vt>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");y=en,b=vt,v=Mt;var zt=(1e4*(268435455&(en+=122192928e5))+vt)%4294967296;Ie[Ce++]=zt>>>24&255,Ie[Ce++]=zt>>>16&255,Ie[Ce++]=zt>>>8&255,Ie[Ce++]=255&zt;var bt=en/4294967296*1e4&268435455;Ie[Ce++]=bt>>>8&255,Ie[Ce++]=255&bt,Ie[Ce++]=bt>>>24&15|16,Ie[Ce++]=bt>>>16&255,Ie[Ce++]=Mt>>>8|128,Ie[Ce++]=255&Mt;for(var At=0;At<6;++At)Ie[Ce+At]=dt[At];return yt||u(Ie)},A=function D(Fe){if(!h(Fe))throw TypeError("Invalid UUID");var yt,ie=new Uint8Array(16);return ie[0]=(yt=parseInt(Fe.slice(0,8),16))>>>24,ie[1]=yt>>>16&255,ie[2]=yt>>>8&255,ie[3]=255&yt,ie[4]=(yt=parseInt(Fe.slice(9,13),16))>>>8,ie[5]=255&yt,ie[6]=(yt=parseInt(Fe.slice(14,18),16))>>>8,ie[7]=255&yt,ie[8]=(yt=parseInt(Fe.slice(19,23),16))>>>8,ie[9]=255&yt,ie[10]=(yt=parseInt(Fe.slice(24,36),16))/1099511627776&255,ie[11]=yt/4294967296&255,ie[12]=yt>>>24&255,ie[13]=yt>>>16&255,ie[14]=yt>>>8&255,ie[15]=255&yt,ie};var B="6ba7b810-9dad-11d1-80b4-00c04fd430c8",V="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function X(Fe,yt,ie){function Ce(Ie,dt,Mt,Xt){if("string"==typeof Ie&&(Ie=function P(Fe){Fe=unescape(encodeURIComponent(Fe));for(var yt=[],ie=0;ie<Fe.length;++ie)yt.push(Fe.charCodeAt(ie));return yt}(Ie)),"string"==typeof dt&&(dt=A(dt)),16!==dt.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var en=new Uint8Array(16+Ie.length);if(en.set(dt),en.set(Ie,dt.length),(en=ie(en))[6]=15&en[6]|yt,en[8]=63&en[8]|128,Mt){Xt=Xt||0;for(var vt=0;vt<16;++vt)Mt[Xt+vt]=en[vt];return Mt}return u(en)}try{Ce.name=Fe}catch{}return Ce.DNS=B,Ce.URL=V,Ce}function ae(Fe){return 14+(Fe+64>>>9<<4)+1}function $(Fe,yt){var ie=(65535&Fe)+(65535&yt);return(Fe>>16)+(yt>>16)+(ie>>16)<<16|65535&ie}function R(Fe,yt,ie,Ce,Ie,dt){return $(function j(Fe,yt){return Fe<<yt|Fe>>>32-yt}($($(yt,Fe),$(Ce,dt)),Ie),ie)}function U(Fe,yt,ie,Ce,Ie,dt,Mt){return R(yt&ie|~yt&Ce,Fe,yt,Ie,dt,Mt)}function le(Fe,yt,ie,Ce,Ie,dt,Mt){return R(yt&Ce|ie&~Ce,Fe,yt,Ie,dt,Mt)}function T(Fe,yt,ie,Ce,Ie,dt,Mt){return R(yt^ie^Ce,Fe,yt,Ie,dt,Mt)}function H(Fe,yt,ie,Ce,Ie,dt,Mt){return R(ie^(yt|~Ce),Fe,yt,Ie,dt,Mt)}const de=X("v3",48,function re(Fe){if("string"==typeof Fe){var yt=unescape(encodeURIComponent(Fe));Fe=new Uint8Array(yt.length);for(var ie=0;ie<yt.length;++ie)Fe[ie]=yt.charCodeAt(ie)}return function Q(Fe){for(var yt=[],ie=32*Fe.length,Ce="0123456789abcdef",Ie=0;Ie<ie;Ie+=8){var dt=Fe[Ie>>5]>>>Ie%32&255,Mt=parseInt(Ce.charAt(dt>>>4&15)+Ce.charAt(15&dt),16);yt.push(Mt)}return yt}(function K(Fe,yt){Fe[yt>>5]|=128<<yt%32,Fe[ae(yt)-1]=yt;for(var ie=1732584193,Ce=-271733879,Ie=-1732584194,dt=271733878,Mt=0;Mt<Fe.length;Mt+=16){var Xt=ie,en=Ce,vt=Ie,xt=dt;ie=U(ie,Ce,Ie,dt,Fe[Mt],7,-680876936),dt=U(dt,ie,Ce,Ie,Fe[Mt+1],12,-389564586),Ie=U(Ie,dt,ie,Ce,Fe[Mt+2],17,606105819),Ce=U(Ce,Ie,dt,ie,Fe[Mt+3],22,-1044525330),ie=U(ie,Ce,Ie,dt,Fe[Mt+4],7,-176418897),dt=U(dt,ie,Ce,Ie,Fe[Mt+5],12,1200080426),Ie=U(Ie,dt,ie,Ce,Fe[Mt+6],17,-1473231341),Ce=U(Ce,Ie,dt,ie,Fe[Mt+7],22,-45705983),ie=U(ie,Ce,Ie,dt,Fe[Mt+8],7,1770035416),dt=U(dt,ie,Ce,Ie,Fe[Mt+9],12,-1958414417),Ie=U(Ie,dt,ie,Ce,Fe[Mt+10],17,-42063),Ce=U(Ce,Ie,dt,ie,Fe[Mt+11],22,-1990404162),ie=U(ie,Ce,Ie,dt,Fe[Mt+12],7,1804603682),dt=U(dt,ie,Ce,Ie,Fe[Mt+13],12,-40341101),Ie=U(Ie,dt,ie,Ce,Fe[Mt+14],17,-1502002290),ie=le(ie,Ce=U(Ce,Ie,dt,ie,Fe[Mt+15],22,1236535329),Ie,dt,Fe[Mt+1],5,-165796510),dt=le(dt,ie,Ce,Ie,Fe[Mt+6],9,-1069501632),Ie=le(Ie,dt,ie,Ce,Fe[Mt+11],14,643717713),Ce=le(Ce,Ie,dt,ie,Fe[Mt],20,-373897302),ie=le(ie,Ce,Ie,dt,Fe[Mt+5],5,-701558691),dt=le(dt,ie,Ce,Ie,Fe[Mt+10],9,38016083),Ie=le(Ie,dt,ie,Ce,Fe[Mt+15],14,-660478335),Ce=le(Ce,Ie,dt,ie,Fe[Mt+4],20,-405537848),ie=le(ie,Ce,Ie,dt,Fe[Mt+9],5,568446438),dt=le(dt,ie,Ce,Ie,Fe[Mt+14],9,-1019803690),Ie=le(Ie,dt,ie,Ce,Fe[Mt+3],14,-187363961),Ce=le(Ce,Ie,dt,ie,Fe[Mt+8],20,1163531501),ie=le(ie,Ce,Ie,dt,Fe[Mt+13],5,-1444681467),dt=le(dt,ie,Ce,Ie,Fe[Mt+2],9,-51403784),Ie=le(Ie,dt,ie,Ce,Fe[Mt+7],14,1735328473),ie=T(ie,Ce=le(Ce,Ie,dt,ie,Fe[Mt+12],20,-1926607734),Ie,dt,Fe[Mt+5],4,-378558),dt=T(dt,ie,Ce,Ie,Fe[Mt+8],11,-2022574463),Ie=T(Ie,dt,ie,Ce,Fe[Mt+11],16,1839030562),Ce=T(Ce,Ie,dt,ie,Fe[Mt+14],23,-35309556),ie=T(ie,Ce,Ie,dt,Fe[Mt+1],4,-1530992060),dt=T(dt,ie,Ce,Ie,Fe[Mt+4],11,1272893353),Ie=T(Ie,dt,ie,Ce,Fe[Mt+7],16,-155497632),Ce=T(Ce,Ie,dt,ie,Fe[Mt+10],23,-1094730640),ie=T(ie,Ce,Ie,dt,Fe[Mt+13],4,681279174),dt=T(dt,ie,Ce,Ie,Fe[Mt],11,-358537222),Ie=T(Ie,dt,ie,Ce,Fe[Mt+3],16,-722521979),Ce=T(Ce,Ie,dt,ie,Fe[Mt+6],23,76029189),ie=T(ie,Ce,Ie,dt,Fe[Mt+9],4,-640364487),dt=T(dt,ie,Ce,Ie,Fe[Mt+12],11,-421815835),Ie=T(Ie,dt,ie,Ce,Fe[Mt+15],16,530742520),ie=H(ie,Ce=T(Ce,Ie,dt,ie,Fe[Mt+2],23,-995338651),Ie,dt,Fe[Mt],6,-198630844),dt=H(dt,ie,Ce,Ie,Fe[Mt+7],10,1126891415),Ie=H(Ie,dt,ie,Ce,Fe[Mt+14],15,-1416354905),Ce=H(Ce,Ie,dt,ie,Fe[Mt+5],21,-57434055),ie=H(ie,Ce,Ie,dt,Fe[Mt+12],6,1700485571),dt=H(dt,ie,Ce,Ie,Fe[Mt+3],10,-1894986606),Ie=H(Ie,dt,ie,Ce,Fe[Mt+10],15,-1051523),Ce=H(Ce,Ie,dt,ie,Fe[Mt+1],21,-2054922799),ie=H(ie,Ce,Ie,dt,Fe[Mt+8],6,1873313359),dt=H(dt,ie,Ce,Ie,Fe[Mt+15],10,-30611744),Ie=H(Ie,dt,ie,Ce,Fe[Mt+6],15,-1560198380),Ce=H(Ce,Ie,dt,ie,Fe[Mt+13],21,1309151649),ie=H(ie,Ce,Ie,dt,Fe[Mt+4],6,-145523070),dt=H(dt,ie,Ce,Ie,Fe[Mt+11],10,-1120210379),Ie=H(Ie,dt,ie,Ce,Fe[Mt+2],15,718787259),Ce=H(Ce,Ie,dt,ie,Fe[Mt+9],21,-343485551),ie=$(ie,Xt),Ce=$(Ce,en),Ie=$(Ie,vt),dt=$(dt,xt)}return[ie,Ce,Ie,dt]}(function k(Fe){if(0===Fe.length)return[];for(var yt=8*Fe.length,ie=new Uint32Array(ae(yt)),Ce=0;Ce<yt;Ce+=8)ie[Ce>>5]|=(255&Fe[Ce/8])<<Ce%32;return ie}(Fe),8*Fe.length))}),q=function me(Fe,yt,ie){var Ce=(Fe=Fe||{}).random||(Fe.rng||a)();if(Ce[6]=15&Ce[6]|64,Ce[8]=63&Ce[8]|128,yt){ie=ie||0;for(var Ie=0;Ie<16;++Ie)yt[ie+Ie]=Ce[Ie];return yt}return u(Ce)};function se(Fe,yt,ie,Ce){switch(Fe){case 0:return yt&ie^~yt&Ce;case 1:case 3:return yt^ie^Ce;case 2:return yt&ie^yt&Ce^ie&Ce}}function ve(Fe,yt){return Fe<<yt|Fe>>>32-yt}const Wt=X("v5",80,function Ee(Fe){var yt=[1518500249,1859775393,2400959708,3395469782],ie=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof Fe){var Ce=unescape(encodeURIComponent(Fe));Fe=[];for(var Ie=0;Ie<Ce.length;++Ie)Fe.push(Ce.charCodeAt(Ie))}else Array.isArray(Fe)||(Fe=Array.prototype.slice.call(Fe));Fe.push(128);for(var Mt=Math.ceil((Fe.length/4+2)/16),Xt=new Array(Mt),en=0;en<Mt;++en){for(var vt=new Uint32Array(16),xt=0;xt<16;++xt)vt[xt]=Fe[64*en+4*xt]<<24|Fe[64*en+4*xt+1]<<16|Fe[64*en+4*xt+2]<<8|Fe[64*en+4*xt+3];Xt[en]=vt}Xt[Mt-1][14]=8*(Fe.length-1)/Math.pow(2,32),Xt[Mt-1][14]=Math.floor(Xt[Mt-1][14]),Xt[Mt-1][15]=8*(Fe.length-1)&4294967295;for(var zt=0;zt<Mt;++zt){for(var bt=new Uint32Array(80),At=0;At<16;++At)bt[At]=Xt[zt][At];for(var $e=16;$e<80;++$e)bt[$e]=ve(bt[$e-3]^bt[$e-8]^bt[$e-14]^bt[$e-16],1);for(var Xe=ie[0],Pe=ie[1],Ve=ie[2],mt=ie[3],It=ie[4],xn=0;xn<80;++xn){var _n=Math.floor(xn/20),Jt=ve(Xe,5)+se(_n,Pe,Ve,mt)+It+yt[_n]+bt[xn]>>>0;It=mt,mt=Ve,Ve=ve(Pe,30)>>>0,Pe=Xe,Xe=Jt}ie[0]=ie[0]+Xe>>>0,ie[1]=ie[1]+Pe>>>0,ie[2]=ie[2]+Ve>>>0,ie[3]=ie[3]+mt>>>0,ie[4]=ie[4]+It>>>0}return[ie[0]>>24&255,ie[0]>>16&255,ie[0]>>8&255,255&ie[0],ie[1]>>24&255,ie[1]>>16&255,ie[1]>>8&255,255&ie[1],ie[2]>>24&255,ie[2]>>16&255,ie[2]>>8&255,255&ie[2],ie[3]>>24&255,ie[3]>>16&255,ie[3]>>8&255,255&ie[3],ie[4]>>24&255,ie[4]>>16&255,ie[4]>>8&255,255&ie[4]]}),Ut="00000000-0000-0000-0000-000000000000",Zt=function nt(Fe){if(!h(Fe))throw TypeError("Invalid UUID");return parseInt(Fe.substr(14,1),16)}},51588:(oe,x,i)=>{"use strict";i.d(x,{Z:()=>g});const n={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let a;const t=new Uint8Array(16);function l(){if(!a&&(a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(t)}const h=[];for(let v=0;v<256;++v)h.push((v+256).toString(16).slice(1));const g=function u(v,y,b){if(n.randomUUID&&!y&&!v)return n.randomUUID();const S=(v=v||{}).random||(v.rng||l)();if(S[6]=15&S[6]|64,S[8]=63&S[8]|128,y){b=b||0;for(let E=0;E<16;++E)y[b+E]=S[E];return y}return function s(v,y=0){return h[v[y+0]]+h[v[y+1]]+h[v[y+2]]+h[v[y+3]]+"-"+h[v[y+4]]+h[v[y+5]]+"-"+h[v[y+6]]+h[v[y+7]]+"-"+h[v[y+8]]+h[v[y+9]]+"-"+h[v[y+10]]+h[v[y+11]]+h[v[y+12]]+h[v[y+13]]+h[v[y+14]]+h[v[y+15]]}(S)}},46700:(oe,x,i)=>{var e={"./af":27088,"./af.js":27088,"./ar":17038,"./ar-dz":52502,"./ar-dz.js":52502,"./ar-kw":30128,"./ar-kw.js":30128,"./ar-ly":84519,"./ar-ly.js":84519,"./ar-ma":65443,"./ar-ma.js":65443,"./ar-ps":14523,"./ar-ps.js":14523,"./ar-sa":17642,"./ar-sa.js":17642,"./ar-tn":68592,"./ar-tn.js":68592,"./ar.js":17038,"./az":51213,"./az.js":51213,"./be":69191,"./be.js":69191,"./bg":90322,"./bg.js":90322,"./bm":28042,"./bm.js":28042,"./bn":59620,"./bn-bd":65903,"./bn-bd.js":65903,"./bn.js":59620,"./bo":69645,"./bo.js":69645,"./br":45020,"./br.js":45020,"./bs":64792,"./bs.js":64792,"./ca":47980,"./ca.js":47980,"./cs":47322,"./cs.js":47322,"./cv":90365,"./cv.js":90365,"./cy":32092,"./cy.js":32092,"./da":77387,"./da.js":77387,"./de":54307,"./de-at":29459,"./de-at.js":29459,"./de-ch":73694,"./de-ch.js":73694,"./de.js":54307,"./dv":39659,"./dv.js":39659,"./el":3460,"./el.js":3460,"./en-au":94369,"./en-au.js":94369,"./en-ca":60530,"./en-ca.js":60530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":13391,"./en-ie.js":13391,"./en-il":75414,"./en-il.js":75414,"./en-in":19615,"./en-in.js":19615,"./en-nz":21248,"./en-nz.js":21248,"./en-sg":13767,"./en-sg.js":13767,"./eo":84530,"./eo.js":84530,"./es":86866,"./es-do":18944,"./es-do.js":18944,"./es-mx":29116,"./es-mx.js":29116,"./es-us":83609,"./es-us.js":83609,"./es.js":86866,"./et":96725,"./et.js":96725,"./eu":67931,"./eu.js":67931,"./fa":56417,"./fa.js":56417,"./fi":20944,"./fi.js":20944,"./fil":61766,"./fil.js":61766,"./fo":95867,"./fo.js":95867,"./fr":1636,"./fr-ca":16848,"./fr-ca.js":16848,"./fr-ch":77773,"./fr-ch.js":77773,"./fr.js":1636,"./fy":14940,"./fy.js":14940,"./ga":91402,"./ga.js":91402,"./gd":46924,"./gd.js":46924,"./gl":16398,"./gl.js":16398,"./gom-deva":72457,"./gom-deva.js":72457,"./gom-latn":52545,"./gom-latn.js":52545,"./gu":42641,"./gu.js":42641,"./he":7536,"./he.js":7536,"./hi":96335,"./hi.js":96335,"./hr":7458,"./hr.js":7458,"./hu":56540,"./hu.js":56540,"./hy-am":65283,"./hy-am.js":65283,"./id":98780,"./id.js":98780,"./is":14205,"./is.js":14205,"./it":34211,"./it-ch":29985,"./it-ch.js":29985,"./it.js":34211,"./ja":31003,"./ja.js":31003,"./jv":60420,"./jv.js":60420,"./ka":40851,"./ka.js":40851,"./kk":16074,"./kk.js":16074,"./km":53343,"./km.js":53343,"./kn":44799,"./kn.js":44799,"./ko":13549,"./ko.js":13549,"./ku":91037,"./ku-kmr":63775,"./ku-kmr.js":63775,"./ku.js":91037,"./ky":93125,"./ky.js":93125,"./lb":69586,"./lb.js":69586,"./lo":32349,"./lo.js":32349,"./lt":92400,"./lt.js":92400,"./lv":39991,"./lv.js":39991,"./me":28477,"./me.js":28477,"./mi":55118,"./mi.js":55118,"./mk":15943,"./mk.js":15943,"./ml":13849,"./ml.js":13849,"./mn":31977,"./mn.js":31977,"./mr":66184,"./mr.js":66184,"./ms":70485,"./ms-my":64524,"./ms-my.js":64524,"./ms.js":70485,"./mt":36681,"./mt.js":36681,"./my":52024,"./my.js":52024,"./nb":42688,"./nb.js":42688,"./ne":68914,"./ne.js":68914,"./nl":11758,"./nl-be":52272,"./nl-be.js":52272,"./nl.js":11758,"./nn":41510,"./nn.js":41510,"./oc-lnc":52797,"./oc-lnc.js":52797,"./pa-in":37944,"./pa-in.js":37944,"./pl":1605,"./pl.js":1605,"./pt":54225,"./pt-br":73840,"./pt-br.js":73840,"./pt.js":54225,"./ro":45128,"./ro.js":45128,"./ru":35127,"./ru.js":35127,"./sd":32525,"./sd.js":32525,"./se":59893,"./se.js":59893,"./si":33123,"./si.js":33123,"./sk":59635,"./sk.js":59635,"./sl":78106,"./sl.js":78106,"./sq":88799,"./sq.js":88799,"./sr":97949,"./sr-cyrl":52872,"./sr-cyrl.js":52872,"./sr.js":97949,"./ss":86167,"./ss.js":86167,"./sv":39713,"./sv.js":39713,"./sw":41982,"./sw.js":41982,"./ta":22732,"./ta.js":22732,"./te":43636,"./te.js":43636,"./tet":2115,"./tet.js":2115,"./tg":69801,"./tg.js":69801,"./th":2868,"./th.js":2868,"./tk":31310,"./tk.js":31310,"./tl-ph":22360,"./tl-ph.js":22360,"./tlh":66645,"./tlh.js":66645,"./tr":98374,"./tr.js":98374,"./tzl":256,"./tzl.js":256,"./tzm":61595,"./tzm-latn":61631,"./tzm-latn.js":61631,"./tzm.js":61595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":65610,"./uk.js":65610,"./ur":86077,"./ur.js":86077,"./uz":22862,"./uz-latn":12207,"./uz-latn.js":12207,"./uz.js":22862,"./vi":48093,"./vi.js":48093,"./x-pseudo":25590,"./x-pseudo.js":25590,"./yo":9058,"./yo.js":9058,"./zh-cn":77908,"./zh-cn.js":77908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":31133,"./zh-mo.js":31133,"./zh-tw":83291,"./zh-tw.js":83291};function n(t){var l=a(t);return i(l)}function a(t){if(!i.o(e,t)){var l=new Error("Cannot find module '"+t+"'");throw l.code="MODULE_NOT_FOUND",l}return e[t]}n.keys=function(){return Object.keys(e)},n.resolve=a,oe.exports=n,n.id=46700},41341:(oe,x,i)=>{"use strict";i.d(x,{uU:()=>zt,su:()=>gt,lJ:()=>ve,d:()=>Pe,SA:()=>tn,zF:()=>_n,Hh:()=>pe,W7:()=>N,xU:()=>Zt});var e=i(15861),n=i(94650),a=i(69751),t=i(61135),l=i(88996),h=i(82805),s=i(4707),d=i(93532),p=i(49468),u=i(83268),g=i(85363),v=i(77579);class y extends v.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(Ge){const{hasError:ee,_hasValue:De,_value:Ot,thrownError:cn,isStopped:Gn,_isComplete:_i}=this;ee?Ge.error(cn):(Gn||_i)&&(De&&Ge.next(Ot),Ge.complete())}next(Ge){this.isStopped||(this._value=Ge,this._hasValue=!0)}complete(){const{_hasValue:Ge,_value:ee,_isComplete:De}=this;De||(this._isComplete=!0,Ge&&super.next(ee),super.complete())}}function b(ue,Ge,ee,De){if(ee){if(!(0,d.K)(ee))return function(...Ot){return b(ue,Ge,De).apply(this,Ot).pipe((0,u.Z)(ee))};De=ee}return De?function(...Ot){return b(ue,Ge).apply(this,Ot).pipe((0,p.R)(De),(0,g.Q)(De))}:function(...Ot){const cn=new y;let Gn=!0;return new a.y(_i=>{const Ni=cn.subscribe(_i);if(Gn){Gn=!1;let Nn=!1,Mn=!1;Ge.apply(this,[...Ot,(...On)=>{if(ue){const Qn=On.shift();if(null!=Qn)return void cn.error(Qn)}cn.next(1<On.length?On:On[0]),Mn=!0,Nn&&cn.complete()}]),Mn&&cn.complete(),Nn=!0}return Ni})}}function S(ue,Ge,ee){return b(!1,ue,Ge,ee)}var E=i(39646),D=i(62843),A=i(69210),P=i(56451);const V=i(86099).z;var X=i(38421),re=i(54482),Q=i(25032),ae=i(25403),k=i(63900),$=i(54004),j=i(34782),R=i(249),U=i(68675),le=i(35684),T=i(36895);const H=["*"];let N=(()=>{class ue{}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),pe=(()=>{class ue{constructor(ee,De){this._loader=ee,this._zone=De,this._map=new Promise(Ot=>{this._mapResolver=Ot})}createMap(ee,De){return this._zone.runOutsideAngular(()=>this._loader.load().then(()=>{const Ot=new google.maps.Map(ee,De);this._mapResolver(Ot)}))}setMapOptions(ee){return this._zone.runOutsideAngular(()=>{this._map.then(De=>{De.setOptions(ee)})})}createMarker(ee={},De=!0){return this._zone.runOutsideAngular(()=>this._map.then(Ot=>(De&&(ee.map=Ot),new google.maps.Marker(ee))))}createInfoWindow(ee){return this._zone.runOutsideAngular(()=>this._map.then(()=>new google.maps.InfoWindow(ee)))}createCircle(ee){return this._zone.runOutsideAngular(()=>this._map.then(De=>(ee.map=De,new google.maps.Circle(ee))))}createRectangle(ee){return this._zone.runOutsideAngular(()=>this._map.then(De=>(ee.map=De,new google.maps.Rectangle(ee))))}createPolyline(ee){return this._zone.runOutsideAngular(()=>this.getNativeMap().then(De=>{const Ot=new google.maps.Polyline(ee);return Ot.setMap(De),Ot}))}createPolygon(ee){return this._zone.runOutsideAngular(()=>this.getNativeMap().then(De=>{const Ot=new google.maps.Polygon(ee);return Ot.setMap(De),Ot}))}createDataLayer(ee){return this._zone.runOutsideAngular(()=>this._map.then(De=>{const Ot=new google.maps.Data(ee);return Ot.setMap(De),Ot}))}createTransitLayer(){return this._zone.runOutsideAngular(()=>this._map.then(ee=>{const De=new google.maps.TransitLayer;return De.setMap(ee),De}))}createBicyclingLayer(){return this._zone.runOutsideAngular(()=>this._map.then(ee=>{const De=new google.maps.BicyclingLayer;return De.setMap(ee),De}))}containsLocation(ee,De){return this._map.then(()=>google.maps.geometry.poly.containsLocation(ee,De))}subscribeToMapEvent(ee){return new a.y(De=>{this._map.then(Ot=>Ot.addListener(ee,(...cn)=>this._zone.run(()=>De.next(cn))))})}clearInstanceListeners(){return this._zone.runOutsideAngular(()=>{this._map.then(ee=>{google.maps.event.clearInstanceListeners(ee)})})}setCenter(ee){return this._zone.runOutsideAngular(()=>this._map.then(De=>De.setCenter(ee)))}getZoom(){return this._zone.runOutsideAngular(()=>this._map.then(ee=>ee.getZoom()))}getBounds(){return this._zone.runOutsideAngular(()=>this._map.then(ee=>ee.getBounds()))}getMapTypeId(){return this._zone.runOutsideAngular(()=>this._map.then(ee=>ee.getMapTypeId()))}setZoom(ee){return this._zone.runOutsideAngular(()=>this._map.then(De=>De.setZoom(ee)))}getCenter(){return this._zone.runOutsideAngular(()=>this._map.then(ee=>ee.getCenter()))}panTo(ee){return this._zone.runOutsideAngular(()=>this._map.then(De=>De.panTo(ee)))}panBy(ee,De){return this._zone.runOutsideAngular(()=>this._map.then(Ot=>Ot.panBy(ee,De)))}fitBounds(ee,De){return this._zone.runOutsideAngular(()=>this._map.then(Ot=>Ot.fitBounds(ee,De)))}panToBounds(ee,De){return this._zone.runOutsideAngular(()=>this._map.then(Ot=>Ot.panToBounds(ee,De)))}getNativeMap(){return this._map}triggerMapEvent(ee){return this._map.then(De=>google.maps.event.trigger(De,ee))}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(N),n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),de=(()=>{class ue{constructor(ee,De){this._apiWrapper=ee,this._zone=De,this._circles=new Map}addCircle(ee){this._circles.set(ee,this._apiWrapper.getNativeMap().then(()=>this._apiWrapper.createCircle({center:{lat:ee.latitude,lng:ee.longitude},clickable:ee.clickable,draggable:ee.draggable,editable:ee.editable,fillColor:ee.fillColor,fillOpacity:ee.fillOpacity,radius:ee.radius,strokeColor:ee.strokeColor,strokeOpacity:ee.strokeOpacity,strokePosition:google.maps.StrokePosition[ee.strokePosition],strokeWeight:ee.strokeWeight,visible:ee.visible,zIndex:ee.zIndex})))}removeCircle(ee){return this._circles.get(ee).then(De=>{De.setMap(null),this._circles.delete(ee)})}setOptions(ee,De){var Ot=this;return(0,e.Z)(function*(){return Ot._circles.get(ee).then(cn=>{De.strokePosition=google.maps.StrokePosition[De.strokePosition],cn.setOptions(De)})})()}getBounds(ee){return this._circles.get(ee).then(De=>De.getBounds())}getCenter(ee){return this._circles.get(ee).then(De=>De.getCenter())}getRadius(ee){return this._circles.get(ee).then(De=>De.getRadius())}setCenter(ee){return this._circles.get(ee).then(De=>De.setCenter({lat:ee.latitude,lng:ee.longitude}))}setEditable(ee){return this._circles.get(ee).then(De=>De.setEditable(ee.editable))}setDraggable(ee){return this._circles.get(ee).then(De=>De.setDraggable(ee.draggable))}setVisible(ee){return this._circles.get(ee).then(De=>De.setVisible(ee.visible))}setRadius(ee){return this._circles.get(ee).then(De=>De.setRadius(ee.radius))}getNativeCircle(ee){return this._circles.get(ee)}createEventObservable(ee,De){return new a.y(Ot=>{let cn=null;return this._circles.get(De).then(Gn=>{cn=Gn.addListener(ee,_i=>this._zone.run(()=>Ot.next(_i)))}),()=>{null!==cn&&cn.remove()}})}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(pe),n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),me=(()=>{class ue{constructor(ee,De){this._wrapper=ee,this._zone=De,this._layers=new Map}addDataLayer(ee){const De=this._wrapper.createDataLayer({style:ee.style}).then(Ot=>(ee.geoJson&&this.getDataFeatures(Ot,ee.geoJson).then(cn=>Ot.features=cn),Ot));this._layers.set(ee,De)}deleteDataLayer(ee){this._layers.get(ee).then(De=>{De.setMap(null),this._layers.delete(ee)})}updateGeoJson(ee,De){this._layers.get(ee).then(Ot=>{Ot.forEach(cn=>{Ot.remove(cn);const Gn=Ot.features.indexOf(cn,0);Gn>-1&&Ot.features.splice(Gn,1)}),this.getDataFeatures(Ot,De).then(cn=>Ot.features=cn)})}setDataOptions(ee,De){this._layers.get(ee).then(Ot=>{Ot.setControlPosition(De.controlPosition),Ot.setControls(De.controls),Ot.setDrawingMode(De.drawingMode),Ot.setStyle(De.style)})}createEventObservable(ee,De){return new a.y(Ot=>{this._layers.get(De).then(cn=>{cn.addListener(ee,Gn=>this._zone.run(()=>Ot.next(Gn)))})})}getDataFeatures(ee,De){return new Promise((Ot,cn)=>{if("object"==typeof De)try{Ot(ee.addGeoJson(De))}catch(Gn){cn(Gn)}else"string"==typeof De?ee.loadGeoJson(De,null,Ot):cn("Impossible to extract features from geoJson: wrong argument type")})}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(pe),n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),se=(()=>{class ue{constructor(ee){this._boundsChangeSampleTime$=new t.X(200),this._includeInBounds$=new t.X(new Map),this.bounds$=(0,l.D)(ee.load()).pipe(V(()=>this._includeInBounds$),function K(ue){return(0,re.e)((Ge,ee)=>{let De=!1,Ot=null;Ge.subscribe((0,ae.x)(ee,cn=>{De=!0,Ot=cn})),(0,X.Xf)(ue).subscribe((0,ae.x)(ee,()=>{if(De){De=!1;const cn=Ot;Ot=null,ee.next(cn)}},Q.Z))})}(this._boundsChangeSampleTime$.pipe((0,k.w)(De=>(0,h.H)(0,De)))),(0,$.U)(De=>this._generateBounds(De)),(0,j.d)(1))}_generateBounds(ee){const De=new google.maps.LatLngBounds;return ee.forEach(Ot=>De.extend(Ot)),De}addToBounds(ee){const De=this._createIdentifier(ee);if(this._includeInBounds$.value.has(De))return;const Ot=this._includeInBounds$.value;Ot.set(De,ee),this._includeInBounds$.next(Ot)}removeFromBounds(ee){const De=this._includeInBounds$.value;De.delete(this._createIdentifier(ee)),this._includeInBounds$.next(De)}changeFitBoundsChangeSampleTime(ee){this._boundsChangeSampleTime$.next(ee)}getBounds$(){return this.bounds$}_createIdentifier(ee){return`${ee.lat}+${ee.lng}`}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(N))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),ve=(()=>{class ue{constructor(ee){const De=new a.y(Ot=>{ee.load().then(()=>Ot.next())}).pipe((0,$.U)(()=>this._createGeocoder()),(0,R.O)(new s.t(1)));De.connect(),this.geocoder$=De}geocode(ee){return this.geocoder$.pipe((0,k.w)(De=>this._getGoogleResults(De,ee)))}_getGoogleResults(ee,De){return S(ee.geocode)(De).pipe((0,k.w)(([cn,Gn])=>Gn===google.maps.GeocoderStatus.OK?(0,E.of)(cn):(0,D._)(Gn)))}_createGeocoder(){return new google.maps.Geocoder}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(N))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();class Ee{getNativeWindow(){return window}}class Ye{getNativeDocument(){return document}}const wt=[Ee,Ye];var Wt=(()=>{return(ue=Wt||(Wt={}))[ue.HTTP=1]="HTTP",ue[ue.HTTPS=2]="HTTPS",ue[ue.AUTO=3]="AUTO",Wt;var ue})();const Ut=new n.InjectionToken("angular-google-maps LAZY_MAPS_API_CONFIG");let nt=(()=>{class ue extends N{constructor(ee=null,De,Ot,cn){super(),this.localeId=cn,this._SCRIPT_ID="agmGoogleMapsApiScript",this.callbackName="agmLazyMapsAPILoader",this._config=ee||{},this._windowRef=De,this._documentRef=Ot}load(){const ee=this._windowRef.getNativeWindow();if(ee.google&&ee.google.maps)return Promise.resolve();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;const De=this._documentRef.getNativeDocument().getElementById(this._SCRIPT_ID);if(De)return this._assignScriptLoadingPromise(De),this._scriptLoadingPromise;const Ot=this._documentRef.getNativeDocument().createElement("script");return Ot.type="text/javascript",Ot.async=!0,Ot.defer=!0,Ot.id=this._SCRIPT_ID,Ot.src=this._getScriptSrc(this.callbackName),this._assignScriptLoadingPromise(Ot),this._documentRef.getNativeDocument().body.appendChild(Ot),this._scriptLoadingPromise}_assignScriptLoadingPromise(ee){this._scriptLoadingPromise=new Promise((De,Ot)=>{this._windowRef.getNativeWindow()[this.callbackName]=()=>{De()},ee.onerror=cn=>{Ot(cn)}})}_getScriptSrc(ee){let Ot;switch(this._config&&this._config.protocol||Wt.HTTPS){case Wt.AUTO:Ot="";break;case Wt.HTTP:Ot="http:";break;case Wt.HTTPS:Ot="https:"}const Gn={v:this._config.apiVersion||"quarterly",callback:ee,key:this._config.apiKey,client:this._config.clientId,channel:this._config.channel,libraries:this._config.libraries,region:this._config.region,language:this._config.language||("en-US"!==this.localeId?this.localeId:null)};return`${Ot}//${this._config.hostAndPath||"maps.googleapis.com/maps/api/js"}?${Object.keys(Gn).filter(Ni=>null!=Gn[Ni]).filter(Ni=>!Array.isArray(Gn[Ni])||Array.isArray(Gn[Ni])&&Gn[Ni].length>0).map(Ni=>{const Nn=Gn[Ni];return Array.isArray(Nn)?{key:Ni,value:Nn.join(",")}:{key:Ni,value:Gn[Ni]}}).map(Ni=>`${Ni.key}=${Ni.value}`).join("&")}`}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(Ut,8),n.\u0275\u0275inject(Ee),n.\u0275\u0275inject(Ye),n.\u0275\u0275inject(n.LOCALE_ID))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Zt=(()=>{class ue{constructor(ee,De){this._mapsWrapper=ee,this._zone=De,this._markers=new Map}convertAnimation(ee){var De=this;return(0,e.Z)(function*(){return null===ee?null:De._mapsWrapper.getNativeMap().then(()=>google.maps.Animation[ee])})()}deleteMarker(ee){const De=this._markers.get(ee);return null==De?Promise.resolve():De.then(Ot=>this._zone.run(()=>{Ot.setMap(null),this._markers.delete(ee)}))}updateMarkerPosition(ee){return this._markers.get(ee).then(De=>De.setPosition({lat:ee.latitude,lng:ee.longitude}))}updateTitle(ee){return this._markers.get(ee).then(De=>De.setTitle(ee.title))}updateLabel(ee){return this._markers.get(ee).then(De=>{De.setLabel(ee.label)})}updateDraggable(ee){return this._markers.get(ee).then(De=>De.setDraggable(ee.draggable))}updateIcon(ee){return this._markers.get(ee).then(De=>De.setIcon(ee.iconUrl))}updateOpacity(ee){return this._markers.get(ee).then(De=>De.setOpacity(ee.opacity))}updateVisible(ee){return this._markers.get(ee).then(De=>De.setVisible(ee.visible))}updateZIndex(ee){return this._markers.get(ee).then(De=>De.setZIndex(ee.zIndex))}updateClickable(ee){return this._markers.get(ee).then(De=>De.setClickable(ee.clickable))}updateAnimation(ee){var De=this;return(0,e.Z)(function*(){(yield De._markers.get(ee)).setAnimation(yield De.convertAnimation(ee.animation))})()}addMarker(ee){var De=this;const Ot=new Promise(function(){var cn=(0,e.Z)(function*(Gn){return De._mapsWrapper.createMarker({position:{lat:ee.latitude,lng:ee.longitude},label:ee.label,draggable:ee.draggable,icon:ee.iconUrl,opacity:ee.opacity,visible:ee.visible,zIndex:ee.zIndex,title:ee.title,clickable:ee.clickable,animation:yield De.convertAnimation(ee.animation)}).then(Gn)});return function(Gn){return cn.apply(this,arguments)}}());this._markers.set(ee,Ot)}getNativeMarker(ee){return this._markers.get(ee)}createEventObservable(ee,De){return new a.y(Ot=>{this._markers.get(De).then(cn=>cn.addListener(ee,Gn=>this._zone.run(()=>Ot.next(Gn))))})}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(pe),n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Fe=(()=>{class ue{constructor(ee,De,Ot){this._mapsWrapper=ee,this._zone=De,this._markerManager=Ot,this._infoWindows=new Map}deleteInfoWindow(ee){const De=this._infoWindows.get(ee);return null==De?Promise.resolve():De.then(Ot=>this._zone.run(()=>{Ot.close(),this._infoWindows.delete(ee)}))}setPosition(ee){return this._infoWindows.get(ee).then(De=>De.setPosition({lat:ee.latitude,lng:ee.longitude}))}setZIndex(ee){return this._infoWindows.get(ee).then(De=>De.setZIndex(ee.zIndex))}open(ee){return this._infoWindows.get(ee).then(De=>null!=ee.hostMarker?this._markerManager.getNativeMarker(ee.hostMarker).then(Ot=>this._mapsWrapper.getNativeMap().then(cn=>De.open(cn,Ot))):this._mapsWrapper.getNativeMap().then(Ot=>De.open(Ot)))}close(ee){return this._infoWindows.get(ee).then(De=>De.close())}setOptions(ee,De){return this._infoWindows.get(ee).then(Ot=>Ot.setOptions(De))}addInfoWindow(ee){const De={content:ee.content,maxWidth:ee.maxWidth,zIndex:ee.zIndex,disableAutoPan:ee.disableAutoPan};"number"==typeof ee.latitude&&"number"==typeof ee.longitude&&(De.position={lat:ee.latitude,lng:ee.longitude});const Ot=this._mapsWrapper.createInfoWindow(De);this._infoWindows.set(ee,Ot)}createEventObservable(ee,De){return new a.y(Ot=>{this._infoWindows.get(De).then(cn=>{cn.addListener(ee,Gn=>this._zone.run(()=>Ot.next(Gn)))})})}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(pe),n.\u0275\u0275inject(n.NgZone),n.\u0275\u0275inject(Zt))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),yt=(()=>{class ue{constructor(ee,De){this._wrapper=ee,this._zone=De,this._layers=new Map}addKmlLayer(ee){const De=this._wrapper.getNativeMap().then(Ot=>new google.maps.KmlLayer({clickable:ee.clickable,map:Ot,preserveViewport:ee.preserveViewport,screenOverlays:ee.screenOverlays,suppressInfoWindows:ee.suppressInfoWindows,url:ee.url,zIndex:ee.zIndex}));this._layers.set(ee,De)}setOptions(ee,De){this._layers.get(ee).then(Ot=>Ot.setOptions(De))}deleteKmlLayer(ee){this._layers.get(ee).then(De=>{De.setMap(null),this._layers.delete(ee)})}createEventObservable(ee,De){return new a.y(Ot=>{this._layers.get(De).then(cn=>{cn.addListener(ee,Gn=>this._zone.run(()=>Ot.next(Gn)))})})}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(pe),n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),ie=(()=>{class ue{constructor(ee){this._wrapper=ee,this._layers=new Map}addTransitLayer(ee){const De=this._wrapper.createTransitLayer();this._layers.set(ee,De)}addBicyclingLayer(ee){const De=this._wrapper.createBicyclingLayer();this._layers.set(ee,De)}deleteLayer(ee){return this._layers.get(ee).then(De=>{De.setMap(null),this._layers.delete(ee)})}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(pe))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();function Ie(ue){const Ge=["insert_at","remove_at","set_at"];return(0,A.R)(ee=>Ge.map(De=>ue.addListener(De,(Ot,cn)=>ee.apply(ue,[{newArr:ue.getArray(),eventName:De,index:Ot,previous:cn}]))),(ee,De)=>De.forEach(Ot=>Ot.remove()))}let Mt=(()=>{class ue{constructor(ee,De){this._mapsWrapper=ee,this._zone=De,this._polygons=new Map}addPolygon(ee){const De=this._mapsWrapper.createPolygon({clickable:ee.clickable,draggable:ee.draggable,editable:ee.editable,fillColor:ee.fillColor,fillOpacity:ee.fillOpacity,geodesic:ee.geodesic,paths:ee.paths,strokeColor:ee.strokeColor,strokeOpacity:ee.strokeOpacity,strokeWeight:ee.strokeWeight,visible:ee.visible,zIndex:ee.zIndex});this._polygons.set(ee,De)}updatePolygon(ee){const De=this._polygons.get(ee);return null==De?Promise.resolve():De.then(Ot=>this._zone.run(()=>{Ot.setPaths(ee.paths)}))}setPolygonOptions(ee,De){return this._polygons.get(ee).then(Ot=>{Ot.setOptions(De)})}deletePolygon(ee){const De=this._polygons.get(ee);return null==De?Promise.resolve():De.then(Ot=>this._zone.run(()=>{Ot.setMap(null),this._polygons.delete(ee)}))}getPath(ee){return this._polygons.get(ee).then(De=>De.getPath().getArray())}getPaths(ee){return this._polygons.get(ee).then(De=>De.getPaths().getArray().map(Ot=>Ot.getArray()))}createEventObservable(ee,De){return new a.y(Ot=>{this._polygons.get(De).then(cn=>{cn.addListener(ee,Gn=>this._zone.run(()=>Ot.next(Gn)))})})}createPathEventObservable(ee){var De=this;return(0,e.Z)(function*(){const cn=(yield De._polygons.get(ee)).getPaths();return Ie(cn).pipe((0,U.O)({newArr:cn.getArray()}),(0,k.w)(_i=>(0,P.T)(..._i.newArr.map((Ni,Nn)=>Ie(Ni).pipe((0,$.U)(Mn=>({parentMVEvent:_i,chMVCEvent:Mn,pathIndex:Nn}))))).pipe((0,U.O)({parentMVEvent:_i,chMVCEvent:null,pathIndex:null}))),(0,le.T)(1),(0,$.U)(({parentMVEvent:_i,chMVCEvent:Ni,pathIndex:Nn})=>{let Mn;return Ni?(Mn={newArr:_i.newArr.map(On=>On.getArray().map(Qn=>Qn.toJSON())),pathIndex:Nn,eventName:Ni.eventName,index:Ni.index},Ni.previous&&(Mn.previous=Ni.previous)):(Mn={newArr:_i.newArr.map(On=>On.getArray().map(Qn=>Qn.toJSON())),eventName:_i.eventName,index:_i.index},_i.previous&&(Mn.previous=_i.previous.getArray())),Mn}))})()}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(pe),n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Xt=(()=>{class ue{constructor(ee,De){this._mapsWrapper=ee,this._zone=De,this._polylines=new Map}static _convertPoints(ee){return ee._getPoints().map(Ot=>({lat:Ot.latitude,lng:Ot.longitude}))}static _convertPath(ee){const De=google.maps.SymbolPath[ee];return"number"==typeof De?De:ee}static _convertIcons(ee){const De=ee._getIcons().map(Ot=>({fixedRotation:Ot.fixedRotation,offset:Ot.offset,repeat:Ot.repeat,icon:{anchor:new google.maps.Point(Ot.anchorX,Ot.anchorY),fillColor:Ot.fillColor,fillOpacity:Ot.fillOpacity,path:ue._convertPath(Ot.path),rotation:Ot.rotation,scale:Ot.scale,strokeColor:Ot.strokeColor,strokeOpacity:Ot.strokeOpacity,strokeWeight:Ot.strokeWeight}}));return De.forEach(Ot=>{Object.entries(Ot).forEach(([cn,Gn])=>{typeof Gn>"u"&&delete Ot[cn]}),(typeof Ot.icon.anchor.x>"u"||typeof Ot.icon.anchor.y>"u")&&delete Ot.icon.anchor}),De}addPolyline(ee){const De=this._mapsWrapper.getNativeMap().then(()=>[ue._convertPoints(ee),ue._convertIcons(ee)]).then(([Ot,cn])=>this._mapsWrapper.createPolyline({clickable:ee.clickable,draggable:ee.draggable,editable:ee.editable,geodesic:ee.geodesic,strokeColor:ee.strokeColor,strokeOpacity:ee.strokeOpacity,strokeWeight:ee.strokeWeight,visible:ee.visible,zIndex:ee.zIndex,path:Ot,icons:cn}));this._polylines.set(ee,De)}updatePolylinePoints(ee){const De=ue._convertPoints(ee),Ot=this._polylines.get(ee);return null==Ot?Promise.resolve():Ot.then(cn=>this._zone.run(()=>cn.setPath(De)))}updateIconSequences(ee){var De=this;return(0,e.Z)(function*(){yield De._mapsWrapper.getNativeMap();const Ot=ue._convertIcons(ee),cn=De._polylines.get(ee);if(null!=cn)return cn.then(Gn=>De._zone.run(()=>Gn.setOptions({icons:Ot})))})()}setPolylineOptions(ee,De){return this._polylines.get(ee).then(Ot=>{Ot.setOptions(De)})}deletePolyline(ee){const De=this._polylines.get(ee);return null==De?Promise.resolve():De.then(Ot=>this._zone.run(()=>{Ot.setMap(null),this._polylines.delete(ee)}))}getMVCPath(ee){var De=this;return(0,e.Z)(function*(){return(yield De._polylines.get(ee)).getPath()})()}getPath(ee){var De=this;return(0,e.Z)(function*(){return(yield De.getMVCPath(ee)).getArray()})()}createEventObservable(ee,De){return new a.y(Ot=>{this._polylines.get(De).then(cn=>{cn.addListener(ee,Gn=>this._zone.run(()=>Ot.next(Gn)))})})}createPathEventObservable(ee){var De=this;return(0,e.Z)(function*(){return Ie(yield De.getMVCPath(ee))})()}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(pe),n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),en=(()=>{class ue{constructor(ee,De){this._apiWrapper=ee,this._zone=De,this._rectangles=new Map}addRectangle(ee){this._rectangles.set(ee,this._apiWrapper.getNativeMap().then(()=>this._apiWrapper.createRectangle({bounds:{north:ee.north,east:ee.east,south:ee.south,west:ee.west},clickable:ee.clickable,draggable:ee.draggable,editable:ee.editable,fillColor:ee.fillColor,fillOpacity:ee.fillOpacity,strokeColor:ee.strokeColor,strokeOpacity:ee.strokeOpacity,strokePosition:google.maps.StrokePosition[ee.strokePosition],strokeWeight:ee.strokeWeight,visible:ee.visible,zIndex:ee.zIndex})))}removeRectangle(ee){return this._rectangles.get(ee).then(De=>{De.setMap(null),this._rectangles.delete(ee)})}setOptions(ee,De){return this._rectangles.get(ee).then(Ot=>{De.strokePosition=google.maps.StrokePosition[De.strokePosition],Ot.setOptions(De)})}getBounds(ee){return this._rectangles.get(ee).then(De=>De.getBounds())}setBounds(ee){return this._rectangles.get(ee).then(De=>De.setBounds({north:ee.north,east:ee.east,south:ee.south,west:ee.west}))}setEditable(ee){return this._rectangles.get(ee).then(De=>De.setEditable(ee.editable))}setDraggable(ee){return this._rectangles.get(ee).then(De=>De.setDraggable(ee.draggable))}setVisible(ee){return this._rectangles.get(ee).then(De=>De.setVisible(ee.visible))}createEventObservable(ee,De){return new a.y(Ot=>{let cn=null;return this._rectangles.get(De).then(Gn=>{cn=Gn.addListener(ee,_i=>this._zone.run(()=>Ot.next(_i)))}),()=>{null!==cn&&cn.remove()}})}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(pe),n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),zt=(()=>{class ue{constructor(ee){this._manager=ee,this.clickable=!0,this.draggable=!1,this.editable=!1,this.radius=0,this.strokePosition="CENTER",this.strokeWeight=0,this.visible=!0,this.centerChange=new n.EventEmitter,this.circleClick=new n.EventEmitter,this.circleDblClick=new n.EventEmitter,this.drag=new n.EventEmitter,this.dragEnd=new n.EventEmitter,this.dragStart=new n.EventEmitter,this.mouseDown=new n.EventEmitter,this.mouseMove=new n.EventEmitter,this.mouseOut=new n.EventEmitter,this.mouseOver=new n.EventEmitter,this.mouseUp=new n.EventEmitter,this.radiusChange=new n.EventEmitter,this.rightClick=new n.EventEmitter,this._circleAddedToManager=!1,this._eventSubscriptions=[]}ngOnInit(){this._manager.addCircle(this),this._circleAddedToManager=!0,this._registerEventListeners()}ngOnChanges(ee){this._circleAddedToManager&&((ee.latitude||ee.longitude)&&this._manager.setCenter(this),ee.editable&&this._manager.setEditable(this),ee.draggable&&this._manager.setDraggable(this),ee.visible&&this._manager.setVisible(this),ee.radius&&this._manager.setRadius(this),this._updateCircleOptionsChanges(ee))}_updateCircleOptionsChanges(ee){const De={},Ot=Object.keys(ee).filter(cn=>-1!==ue._mapOptions.indexOf(cn));Ot.forEach(cn=>{De[cn]=ee[cn].currentValue}),Ot.length>0&&this._manager.setOptions(this,De)}_registerEventListeners(){const ee=new Map;ee.set("center_changed",this.centerChange),ee.set("click",this.circleClick),ee.set("dblclick",this.circleDblClick),ee.set("drag",this.drag),ee.set("dragend",this.dragEnd),ee.set("dragstart",this.dragStart),ee.set("mousedown",this.mouseDown),ee.set("mousemove",this.mouseMove),ee.set("mouseout",this.mouseOut),ee.set("mouseover",this.mouseOver),ee.set("mouseup",this.mouseUp),ee.set("radius_changed",this.radiusChange),ee.set("rightclick",this.rightClick),ee.forEach((De,Ot)=>{this._eventSubscriptions.push(this._manager.createEventObservable(Ot,this).subscribe(cn=>{switch(Ot){case"radius_changed":this._manager.getRadius(this).then(Gn=>De.emit(Gn));break;case"center_changed":this._manager.getCenter(this).then(Gn=>De.emit({lat:Gn.lat(),lng:Gn.lng()}));break;default:De.emit(cn)}}))})}ngOnDestroy(){this._eventSubscriptions.forEach(ee=>ee.unsubscribe()),this._eventSubscriptions=null,this._manager.removeCircle(this)}getBounds(){return this._manager.getBounds(this)}getCenter(){return this._manager.getCenter(this)}}return ue._mapOptions=["fillColor","fillOpacity","strokeColor","strokeOpacity","strokePosition","strokeWeight","visible","zIndex","clickable"],ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275directiveInject(de))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["agm-circle"]],inputs:{latitude:"latitude",longitude:"longitude",clickable:"clickable",draggable:["circleDraggable","draggable"],editable:"editable",fillColor:"fillColor",fillOpacity:"fillOpacity",radius:"radius",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",strokePosition:"strokePosition",strokeWeight:"strokeWeight",visible:"visible",zIndex:"zIndex"},outputs:{centerChange:"centerChange",circleClick:"circleClick",circleDblClick:"circleDblClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",mouseDown:"mouseDown",mouseMove:"mouseMove",mouseOut:"mouseOut",mouseOver:"mouseOver",mouseUp:"mouseUp",radiusChange:"radiusChange",rightClick:"rightClick"},features:[n.\u0275\u0275NgOnChangesFeature]}),ue})(),Xe=0,Pe=(()=>{class ue{constructor(ee,De){this._infoWindowManager=ee,this._el=De,this.isOpen=!1,this.infoWindowClose=new n.EventEmitter,this._infoWindowAddedToManager=!1,this._id=(Xe++).toString()}ngOnInit(){this.content=this._el.nativeElement.querySelector(".agm-info-window-content"),this._infoWindowManager.addInfoWindow(this),this._infoWindowAddedToManager=!0,this._updateOpenState(),this._registerEventListeners()}ngOnChanges(ee){this._infoWindowAddedToManager&&((ee.latitude||ee.longitude)&&"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._infoWindowManager.setPosition(this),ee.zIndex&&this._infoWindowManager.setZIndex(this),ee.isOpen&&this._updateOpenState(),this._setInfoWindowOptions(ee))}_registerEventListeners(){this._infoWindowManager.createEventObservable("closeclick",this).subscribe(()=>{this.isOpen=!1,this.infoWindowClose.emit()})}_updateOpenState(){this.isOpen?this.open():this.close()}_setInfoWindowOptions(ee){const De={};Object.keys(ee).filter(cn=>-1!==ue._infoWindowOptionsInputs.indexOf(cn)).forEach(cn=>{De[cn]=ee[cn].currentValue}),this._infoWindowManager.setOptions(this,De)}open(){return this._infoWindowManager.open(this)}close(){return this._infoWindowManager.close(this).then(()=>{this.infoWindowClose.emit()})}id(){return this._id}toString(){return"AgmInfoWindow-"+this._id.toString()}ngOnDestroy(){this._infoWindowManager.deleteInfoWindow(this)}}return ue._infoWindowOptionsInputs=["disableAutoPan","maxWidth"],ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275directiveInject(Fe),n.\u0275\u0275directiveInject(n.ElementRef))},ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["agm-info-window"]],inputs:{latitude:"latitude",longitude:"longitude",disableAutoPan:"disableAutoPan",zIndex:"zIndex",maxWidth:"maxWidth",isOpen:"isOpen"},outputs:{infoWindowClose:"infoWindowClose"},features:[n.\u0275\u0275NgOnChangesFeature],ngContentSelectors:H,decls:2,vars:0,consts:[[1,"agm-info-window-content"]],template:function(ee,De){1&ee&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd())},encapsulation:2}),ue})(),It=(()=>{class ue{}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,inputs:{position:"position"}}),ue})(),_n=(()=>{class ue extends It{getOptions(){return{mapTypeControl:!0,mapTypeControlOptions:{position:this.position&&google.maps.ControlPosition[this.position],style:this.style&&google.maps.MapTypeControlStyle[this.style],mapTypeIds:this.mapTypeIds&&this.mapTypeIds.map(ee=>google.maps.MapTypeId[ee])}}}}return ue.\u0275fac=function(){let Ge;return function(De){return(Ge||(Ge=n.\u0275\u0275getInheritedFactory(ue)))(De||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["agm-map-type-control"]],inputs:{mapTypeIds:"mapTypeIds",style:"style"},features:[n.\u0275\u0275ProvidersFeature([{provide:It,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})(),tn=(()=>{class ue{constructor(ee,De,Ot,cn,Gn){this._elem=ee,this._mapsWrapper=De,this._platformId=Ot,this._fitBoundsService=cn,this._zone=Gn,this.longitude=0,this.latitude=0,this.zoom=8,this.draggable=!0,this.disableDoubleClickZoom=!1,this.disableDefaultUI=!1,this.scrollwheel=!0,this.keyboardShortcuts=!0,this.styles=[],this.usePanning=!1,this.fitBounds=!1,this.mapTypeId="ROADMAP",this.clickableIcons=!0,this.showDefaultInfoWindow=!0,this.gestureHandling="auto",this.tilt=0,this._observableSubscriptions=[],this.mapClick=new n.EventEmitter,this.mapRightClick=new n.EventEmitter,this.mapDblClick=new n.EventEmitter,this.centerChange=new n.EventEmitter,this.boundsChange=new n.EventEmitter,this.mapTypeIdChange=new n.EventEmitter,this.idle=new n.EventEmitter,this.zoomChange=new n.EventEmitter,this.mapReady=new n.EventEmitter,this.tilesLoaded=new n.EventEmitter}ngAfterContentInit(){if((0,T.isPlatformServer)(this._platformId))return;const ee=this._elem.nativeElement.querySelector(".agm-map-container-inner");this._initMapInstance(ee)}_initMapInstance(ee){this._mapsWrapper.createMap(ee,{center:{lat:this.latitude||0,lng:this.longitude||0},zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom,controlSize:this.controlSize,disableDefaultUI:this.disableDefaultUI,disableDoubleClickZoom:this.disableDoubleClickZoom,scrollwheel:this.scrollwheel,backgroundColor:this.backgroundColor,draggable:this.draggable,draggableCursor:this.draggableCursor,draggingCursor:this.draggingCursor,keyboardShortcuts:this.keyboardShortcuts,styles:this.styles,mapTypeId:this.mapTypeId.toLocaleLowerCase(),clickableIcons:this.clickableIcons,gestureHandling:this.gestureHandling,tilt:this.tilt,restriction:this.restriction}).then(()=>this._mapsWrapper.getNativeMap()).then(De=>this.mapReady.emit(De)),this._handleMapCenterChange(),this._handleMapZoomChange(),this._handleMapMouseEvents(),this._handleBoundsChange(),this._handleMapTypeIdChange(),this._handleTilesLoadedEvent(),this._handleIdleEvent(),this._handleControlChange()}ngOnDestroy(){this._observableSubscriptions.forEach(ee=>ee.unsubscribe()),this._mapsWrapper.clearInstanceListeners(),this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe()}ngOnChanges(ee){this._updateMapOptionsChanges(ee),this._updatePosition(ee)}_updateMapOptionsChanges(ee){const De={};Object.keys(ee).filter(cn=>-1!==ue._mapOptionsAttributes.indexOf(cn)).forEach(cn=>{De[cn]=ee[cn].currentValue}),this._mapsWrapper.setMapOptions(De)}triggerResize(ee=!0){return new Promise(De=>{setTimeout(()=>this._mapsWrapper.triggerMapEvent("resize").then(()=>{ee&&(null!=this.fitBounds?this._fitBounds():this._setCenter()),De()}))})}_updatePosition(ee){if(null!=ee.latitude||null!=ee.longitude||ee.fitBounds){if("fitBounds"in ee)return void this._fitBounds();"number"!=typeof this.latitude||"number"!=typeof this.longitude||this._setCenter()}}_setCenter(){const ee={lat:this.latitude,lng:this.longitude};this.usePanning?this._mapsWrapper.panTo(ee):this._mapsWrapper.setCenter(ee)}_fitBounds(){switch(this.fitBounds){case!0:this._subscribeToFitBoundsUpdates();break;case!1:this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe();break;default:this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe(),this._updateBounds(this.fitBounds,this.fitBoundsPadding)}}_subscribeToFitBoundsUpdates(){this._zone.runOutsideAngular(()=>{this._fitBoundsSubscription=this._fitBoundsService.getBounds$().subscribe(ee=>{this._zone.run(()=>this._updateBounds(ee,this.fitBoundsPadding))})})}_updateBounds(ee,De){if(ee){if(this._isLatLngBoundsLiteral(ee)&&typeof google<"u"&&google&&google.maps&&google.maps.LatLngBounds){const Ot=new google.maps.LatLngBounds;Ot.union(ee),ee=Ot}if(this.usePanning)return void this._mapsWrapper.panToBounds(ee,De);this._mapsWrapper.fitBounds(ee,De)}}_isLatLngBoundsLiteral(ee){return null!=ee&&void 0===ee.extend}_handleMapCenterChange(){const ee=this._mapsWrapper.subscribeToMapEvent("center_changed").subscribe(()=>{this._mapsWrapper.getCenter().then(De=>{this.latitude=De.lat(),this.longitude=De.lng(),this.centerChange.emit({lat:this.latitude,lng:this.longitude})})});this._observableSubscriptions.push(ee)}_handleBoundsChange(){const ee=this._mapsWrapper.subscribeToMapEvent("bounds_changed").subscribe(()=>{this._mapsWrapper.getBounds().then(De=>{this.boundsChange.emit(De)})});this._observableSubscriptions.push(ee)}_handleMapTypeIdChange(){const ee=this._mapsWrapper.subscribeToMapEvent("maptypeid_changed").subscribe(()=>{this._mapsWrapper.getMapTypeId().then(De=>{this.mapTypeIdChange.emit(De)})});this._observableSubscriptions.push(ee)}_handleMapZoomChange(){const ee=this._mapsWrapper.subscribeToMapEvent("zoom_changed").subscribe(()=>{this._mapsWrapper.getZoom().then(De=>{this.zoom=De,this.zoomChange.emit(De)})});this._observableSubscriptions.push(ee)}_handleIdleEvent(){const ee=this._mapsWrapper.subscribeToMapEvent("idle").subscribe(()=>{this.idle.emit(void 0)});this._observableSubscriptions.push(ee)}_handleTilesLoadedEvent(){const ee=this._mapsWrapper.subscribeToMapEvent("tilesloaded").subscribe(()=>this.tilesLoaded.emit(void 0));this._observableSubscriptions.push(ee)}_handleMapMouseEvents(){[{name:"click",emitter:this.mapClick},{name:"rightclick",emitter:this.mapRightClick},{name:"dblclick",emitter:this.mapDblClick}].forEach(De=>{const Ot=this._mapsWrapper.subscribeToMapEvent(De.name).subscribe(([cn])=>{cn.placeId&&!this.showDefaultInfoWindow&&cn.stop(),De.emitter.emit(cn)});this._observableSubscriptions.push(Ot)})}_handleControlChange(){this._setControls(),this.mapControls.changes.subscribe(()=>this._setControls())}_setControls(){const ee={fullscreenControl:!this.disableDefaultUI,mapTypeControl:!1,panControl:!1,rotateControl:!1,scaleControl:!1,streetViewControl:!this.disableDefaultUI,zoomControl:!this.disableDefaultUI};this.mapControls.forEach(De=>Object.assign(ee,De.getOptions())),this._mapsWrapper.setMapOptions(ee)}}return ue._mapOptionsAttributes=["disableDoubleClickZoom","scrollwheel","draggable","draggableCursor","draggingCursor","keyboardShortcuts","styles","zoom","minZoom","maxZoom","mapTypeId","clickableIcons","gestureHandling","tilt","restriction"],ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(pe),n.\u0275\u0275directiveInject(n.PLATFORM_ID),n.\u0275\u0275directiveInject(se),n.\u0275\u0275directiveInject(n.NgZone))},ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["agm-map"]],contentQueries:function(ee,De,Ot){if(1&ee&&n.\u0275\u0275contentQuery(Ot,It,4),2&ee){let cn;n.\u0275\u0275queryRefresh(cn=n.\u0275\u0275loadQuery())&&(De.mapControls=cn)}},inputs:{longitude:"longitude",latitude:"latitude",zoom:"zoom",minZoom:"minZoom",maxZoom:"maxZoom",controlSize:"controlSize",draggable:["mapDraggable","draggable"],disableDoubleClickZoom:"disableDoubleClickZoom",disableDefaultUI:"disableDefaultUI",scrollwheel:"scrollwheel",backgroundColor:"backgroundColor",draggableCursor:"draggableCursor",draggingCursor:"draggingCursor",keyboardShortcuts:"keyboardShortcuts",styles:"styles",usePanning:"usePanning",fitBounds:"fitBounds",fitBoundsPadding:"fitBoundsPadding",mapTypeId:"mapTypeId",clickableIcons:"clickableIcons",showDefaultInfoWindow:"showDefaultInfoWindow",gestureHandling:"gestureHandling",tilt:"tilt",restriction:"restriction"},outputs:{mapClick:"mapClick",mapRightClick:"mapRightClick",mapDblClick:"mapDblClick",centerChange:"centerChange",boundsChange:"boundsChange",mapTypeIdChange:"mapTypeIdChange",idle:"idle",zoomChange:"zoomChange",mapReady:"mapReady",tilesLoaded:"tilesLoaded"},features:[n.\u0275\u0275ProvidersFeature([de,me,me,se,pe,Fe,yt,ie,Zt,Mt,Xt,en]),n.\u0275\u0275NgOnChangesFeature],ngContentSelectors:H,decls:3,vars:0,consts:[[1,"agm-map-container-inner","sebm-google-map-container-inner"],[1,"agm-map-content"]],template:function(ee,De){1&ee&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275element(0,"div",0),n.\u0275\u0275elementStart(1,"div",1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd())},styles:[".agm-map-container-inner[_ngcontent-%COMP%]{width:inherit;height:inherit}.agm-map-content[_ngcontent-%COMP%]{display:none}"]}),ue})(),gt=(()=>{class ue{static forRoot(ee){return{ngModule:ue,providers:[...wt,{provide:N,useClass:nt},{provide:Ut,useValue:ee}]}}}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275mod=n.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=n.\u0275\u0275defineInjector({}),ue})()},37340:(oe,x,i)=>{"use strict";i.d(x,{F4:()=>u,IO:()=>S,LC:()=>n,SB:()=>p,X$:()=>t,ZE:()=>P,ZN:()=>A,_j:()=>e,eR:()=>g,jt:()=>l,k1:()=>B,l3:()=>a,oB:()=>d,pV:()=>y,ru:()=>h,vP:()=>s});class e{}class n{}const a="*";function t(V,X){return{type:7,name:V,definitions:X,options:{}}}function l(V,X=null){return{type:4,styles:X,timings:V}}function h(V,X=null){return{type:3,steps:V,options:X}}function s(V,X=null){return{type:2,steps:V,options:X}}function d(V){return{type:6,styles:V,offset:null}}function p(V,X,re){return{type:0,name:V,styles:X,options:re}}function u(V){return{type:5,steps:V}}function g(V,X,re=null){return{type:1,expr:V,animation:X,options:re}}function y(V=null){return{type:9,options:V}}function S(V,X,re=null){return{type:11,selector:V,animation:X,options:re}}function D(V){Promise.resolve().then(V)}class A{constructor(X=0,re=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+re}_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(){D(()=>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 re="start"==X?this._onStartFns:this._onDoneFns;re.forEach(Q=>Q()),re.length=0}}class P{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 re=0,Q=0,ae=0;const K=this.players.length;0==K?D(()=>this._onFinish()):this.players.forEach(k=>{k.onDone(()=>{++re==K&&this._onFinish()}),k.onDestroy(()=>{++Q==K&&this._onDestroy()}),k.onStart(()=>{++ae==K&&this._onStart()})}),this.totalTime=this.players.reduce((k,$)=>Math.max(k,$.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 re=X*this.totalTime;this.players.forEach(Q=>{const ae=Q.totalTime?Math.min(1,re/Q.totalTime):1;Q.setPosition(ae)})}getPosition(){const X=this.players.reduce((re,Q)=>null===re||Q.totalTime>re.totalTime?Q:re,null);return null!=X?X.getPosition():0}beforeDestroy(){this.players.forEach(X=>{X.beforeDestroy&&X.beforeDestroy()})}triggerCallback(X){const re="start"==X?this._onStartFns:this._onDoneFns;re.forEach(Q=>Q()),re.length=0}}const B="!"},12687:(oe,x,i)=>{"use strict";i.d(x,{$s:()=>$,Em:()=>T,Kd:()=>mt,X6:()=>Xt,ic:()=>N,kH:()=>ke,mK:()=>yt,qV:()=>Fe,qm:()=>tn,rt:()=>ot,s1:()=>le,tE:()=>Jt,yG:()=>en});var e=i(36895),n=i(94650),a=i(83353),t=i(77579),l=i(50727),h=i(61135),s=i(39646),d=i(29521),p=i(18505),u=i(78372),g=i(39300),v=i(54004),y=i(95698),b=i(35684),S=i(71884),E=i(82722),D=i(21281),A=i(49643),P=i(62289);function re(Et,z){return(Et.getAttribute(z)||"").match(/\S+/g)||[]}const ae="cdk-describedby-message",K="cdk-describedby-host";let k=0,$=(()=>{class Et{constructor(Z,ge){this._platform=ge,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+k++,this._document=Z,this._id=(0,n.inject)(n.APP_ID)+"-"+k++}describe(Z,ge,Qe){if(!this._canBeDescribed(Z,ge))return;const qe=j(ge,Qe);"string"!=typeof ge?(R(ge,this._id),this._messageRegistry.set(qe,{messageElement:ge,referenceCount:0})):this._messageRegistry.has(qe)||this._createMessageElement(ge,Qe),this._isElementDescribedByMessage(Z,qe)||this._addMessageReference(Z,qe)}removeDescription(Z,ge,Qe){if(!ge||!this._isElementNode(Z))return;const qe=j(ge,Qe);if(this._isElementDescribedByMessage(Z,qe)&&this._removeMessageReference(Z,qe),"string"==typeof ge){const ct=this._messageRegistry.get(qe);ct&&0===ct.referenceCount&&this._deleteMessageElement(qe)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Z=this._document.querySelectorAll(`[${K}="${this._id}"]`);for(let ge=0;ge<Z.length;ge++)this._removeCdkDescribedByReferenceIds(Z[ge]),Z[ge].removeAttribute(K);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(Z,ge){const Qe=this._document.createElement("div");R(Qe,this._id),Qe.textContent=Z,ge&&Qe.setAttribute("role",ge),this._createMessagesContainer(),this._messagesContainer.appendChild(Qe),this._messageRegistry.set(j(Z,ge),{messageElement:Qe,referenceCount:0})}_deleteMessageElement(Z){this._messageRegistry.get(Z)?.messageElement?.remove(),this._messageRegistry.delete(Z)}_createMessagesContainer(){if(this._messagesContainer)return;const Z="cdk-describedby-message-container",ge=this._document.querySelectorAll(`.${Z}[platform="server"]`);for(let qe=0;qe<ge.length;qe++)ge[qe].remove();const Qe=this._document.createElement("div");Qe.style.visibility="hidden",Qe.classList.add(Z),Qe.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&Qe.setAttribute("platform","server"),this._document.body.appendChild(Qe),this._messagesContainer=Qe}_removeCdkDescribedByReferenceIds(Z){const ge=re(Z,"aria-describedby").filter(Qe=>0!=Qe.indexOf(ae));Z.setAttribute("aria-describedby",ge.join(" "))}_addMessageReference(Z,ge){const Qe=this._messageRegistry.get(ge);(function V(Et,z,Z){const ge=re(Et,z);ge.some(Qe=>Qe.trim()==Z.trim())||(ge.push(Z.trim()),Et.setAttribute(z,ge.join(" ")))})(Z,"aria-describedby",Qe.messageElement.id),Z.setAttribute(K,this._id),Qe.referenceCount++}_removeMessageReference(Z,ge){const Qe=this._messageRegistry.get(ge);Qe.referenceCount--,function X(Et,z,Z){const Qe=re(Et,z).filter(qe=>qe!=Z.trim());Qe.length?Et.setAttribute(z,Qe.join(" ")):Et.removeAttribute(z)}(Z,"aria-describedby",Qe.messageElement.id),Z.removeAttribute(K)}_isElementDescribedByMessage(Z,ge){const Qe=re(Z,"aria-describedby"),qe=this._messageRegistry.get(ge),ct=qe&&qe.messageElement.id;return!!ct&&-1!=Qe.indexOf(ct)}_canBeDescribed(Z,ge){if(!this._isElementNode(Z))return!1;if(ge&&"object"==typeof ge)return!0;const Qe=null==ge?"":`${ge}`.trim(),qe=Z.getAttribute("aria-label");return!(!Qe||qe&&qe.trim()===Qe)}_isElementNode(Z){return Z.nodeType===this._document.ELEMENT_NODE}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(e.DOCUMENT),n.\u0275\u0275inject(a.t4))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})();function j(Et,z){return"string"==typeof Et?`${z||""}/${Et}`:Et}function R(Et,z){Et.id||(Et.id=`${ae}-${z}-${k++}`)}class U{constructor(z){this._items=z,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new t.x,this._typeaheadSubscription=l.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=Z=>Z.disabled,this._pressedLetters=[],this.tabOut=new t.x,this.change=new t.x,z instanceof n.QueryList&&(this._itemChangesSubscription=z.changes.subscribe(Z=>{if(this._activeItem){const Qe=Z.toArray().indexOf(this._activeItem);Qe>-1&&Qe!==this._activeItemIndex&&(this._activeItemIndex=Qe)}}))}skipPredicate(z){return this._skipPredicateFn=z,this}withWrap(z=!0){return this._wrap=z,this}withVerticalOrientation(z=!0){return this._vertical=z,this}withHorizontalOrientation(z){return this._horizontal=z,this}withAllowedModifierKeys(z){return this._allowedModifierKeys=z,this}withTypeAhead(z=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,p.b)(Z=>this._pressedLetters.push(Z)),(0,u.b)(z),(0,g.h)(()=>this._pressedLetters.length>0),(0,v.U)(()=>this._pressedLetters.join(""))).subscribe(Z=>{const ge=this._getItemsArray();for(let Qe=1;Qe<ge.length+1;Qe++){const qe=(this._activeItemIndex+Qe)%ge.length,ct=ge[qe];if(!this._skipPredicateFn(ct)&&0===ct.getLabel().toUpperCase().trim().indexOf(Z)){this.setActiveItem(qe);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(z=!0){return this._homeAndEnd=z,this}withPageUpDown(z=!0,Z=10){return this._pageUpAndDown={enabled:z,delta:Z},this}setActiveItem(z){const Z=this._activeItem;this.updateActiveItem(z),this._activeItem!==Z&&this.change.next(this._activeItemIndex)}onKeydown(z){const Z=z.keyCode,Qe=["altKey","ctrlKey","metaKey","shiftKey"].every(qe=>!z[qe]||this._allowedModifierKeys.indexOf(qe)>-1);switch(Z){case d.Mf:return void this.tabOut.next();case d.JH:if(this._vertical&&Qe){this.setNextItemActive();break}return;case d.LH:if(this._vertical&&Qe){this.setPreviousItemActive();break}return;case d.SV:if(this._horizontal&&Qe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case d.oh:if(this._horizontal&&Qe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case d.Sd:if(this._homeAndEnd&&Qe){this.setFirstItemActive();break}return;case d.uR:if(this._homeAndEnd&&Qe){this.setLastItemActive();break}return;case d.Ku:if(this._pageUpAndDown.enabled&&Qe){const qe=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(qe>0?qe:0,1);break}return;case d.VM:if(this._pageUpAndDown.enabled&&Qe){const qe=this._activeItemIndex+this._pageUpAndDown.delta,ct=this._getItemsArray().length;this._setActiveItemByIndex(qe<ct?qe:ct-1,-1);break}return;default:return void((Qe||(0,d.Vb)(z,"shiftKey"))&&(z.key&&1===z.key.length?this._letterKeyStream.next(z.key.toLocaleUpperCase()):(Z>=d.A&&Z<=d.Z||Z>=d.xE&&Z<=d.aO)&&this._letterKeyStream.next(String.fromCharCode(Z))))}this._pressedLetters=[],z.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(z){const Z=this._getItemsArray(),ge="number"==typeof z?z:Z.indexOf(z);this._activeItem=Z[ge]??null,this._activeItemIndex=ge}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(z){this._wrap?this._setActiveInWrapMode(z):this._setActiveInDefaultMode(z)}_setActiveInWrapMode(z){const Z=this._getItemsArray();for(let ge=1;ge<=Z.length;ge++){const Qe=(this._activeItemIndex+z*ge+Z.length)%Z.length;if(!this._skipPredicateFn(Z[Qe]))return void this.setActiveItem(Qe)}}_setActiveInDefaultMode(z){this._setActiveItemByIndex(this._activeItemIndex+z,z)}_setActiveItemByIndex(z,Z){const ge=this._getItemsArray();if(ge[z]){for(;this._skipPredicateFn(ge[z]);)if(!ge[z+=Z])return;this.setActiveItem(z)}}_getItemsArray(){return this._items instanceof n.QueryList?this._items.toArray():this._items}}class le extends U{setActiveItem(z){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(z),this.activeItem&&this.activeItem.setActiveStyles()}}class T extends U{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(z){return this._origin=z,this}setActiveItem(z){super.setActiveItem(z),this.activeItem&&this.activeItem.focus(this._origin)}}let N=(()=>{class Et{constructor(Z){this._platform=Z}isDisabled(Z){return Z.hasAttribute("disabled")}isVisible(Z){return function de(Et){return!!(Et.offsetWidth||Et.offsetHeight||"function"==typeof Et.getClientRects&&Et.getClientRects().length)}(Z)&&"visible"===getComputedStyle(Z).visibility}isTabbable(Z){if(!this._platform.isBrowser)return!1;const ge=function pe(Et){try{return Et.frameElement}catch{return null}}(function nt(Et){return Et.ownerDocument&&Et.ownerDocument.defaultView||window}(Z));if(ge&&(-1===wt(ge)||!this.isVisible(ge)))return!1;let Qe=Z.nodeName.toLowerCase(),qe=wt(Z);return Z.hasAttribute("contenteditable")?-1!==qe:!("iframe"===Qe||"object"===Qe||this._platform.WEBKIT&&this._platform.IOS&&!function Wt(Et){let z=Et.nodeName.toLowerCase(),Z="input"===z&&Et.type;return"text"===Z||"password"===Z||"select"===z||"textarea"===z}(Z))&&("audio"===Qe?!!Z.hasAttribute("controls")&&-1!==qe:"video"===Qe?-1!==qe&&(null!==qe||this._platform.FIREFOX||Z.hasAttribute("controls")):Z.tabIndex>=0)}isFocusable(Z,ge){return function Ut(Et){return!function q(Et){return function ve(Et){return"input"==Et.nodeName.toLowerCase()}(Et)&&"hidden"==Et.type}(Et)&&(function me(Et){let z=Et.nodeName.toLowerCase();return"input"===z||"select"===z||"button"===z||"textarea"===z}(Et)||function se(Et){return function Ee(Et){return"a"==Et.nodeName.toLowerCase()}(Et)&&Et.hasAttribute("href")}(Et)||Et.hasAttribute("contenteditable")||Ye(Et))}(Z)&&!this.isDisabled(Z)&&(ge?.ignoreVisibility||this.isVisible(Z))}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(a.t4))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})();function Ye(Et){if(!Et.hasAttribute("tabindex")||void 0===Et.tabIndex)return!1;let z=Et.getAttribute("tabindex");return!(!z||isNaN(parseInt(z,10)))}function wt(Et){if(!Ye(Et))return null;const z=parseInt(Et.getAttribute("tabindex")||"",10);return isNaN(z)?-1:z}class Zt{get enabled(){return this._enabled}set enabled(z){this._enabled=z,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(z,this._startAnchor),this._toggleAnchorTabIndex(z,this._endAnchor))}constructor(z,Z,ge,Qe,qe=!1){this._element=z,this._checker=Z,this._ngZone=ge,this._document=Qe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,qe||this.attachAnchors()}destroy(){const z=this._startAnchor,Z=this._endAnchor;z&&(z.removeEventListener("focus",this.startAnchorListener),z.remove()),Z&&(Z.removeEventListener("focus",this.endAnchorListener),Z.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(z){return new Promise(Z=>{this._executeOnStable(()=>Z(this.focusInitialElement(z)))})}focusFirstTabbableElementWhenReady(z){return new Promise(Z=>{this._executeOnStable(()=>Z(this.focusFirstTabbableElement(z)))})}focusLastTabbableElementWhenReady(z){return new Promise(Z=>{this._executeOnStable(()=>Z(this.focusLastTabbableElement(z)))})}_getRegionBoundary(z){const Z=this._element.querySelectorAll(`[cdk-focus-region-${z}], [cdkFocusRegion${z}], [cdk-focus-${z}]`);return"start"==z?Z.length?Z[0]:this._getFirstTabbableElement(this._element):Z.length?Z[Z.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(z){const Z=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Z){if(!this._checker.isFocusable(Z)){const ge=this._getFirstTabbableElement(Z);return ge?.focus(z),!!ge}return Z.focus(z),!0}return this.focusFirstTabbableElement(z)}focusFirstTabbableElement(z){const Z=this._getRegionBoundary("start");return Z&&Z.focus(z),!!Z}focusLastTabbableElement(z){const Z=this._getRegionBoundary("end");return Z&&Z.focus(z),!!Z}hasAttached(){return this._hasAttached}_getFirstTabbableElement(z){if(this._checker.isFocusable(z)&&this._checker.isTabbable(z))return z;const Z=z.children;for(let ge=0;ge<Z.length;ge++){const Qe=Z[ge].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Z[ge]):null;if(Qe)return Qe}return null}_getLastTabbableElement(z){if(this._checker.isFocusable(z)&&this._checker.isTabbable(z))return z;const Z=z.children;for(let ge=Z.length-1;ge>=0;ge--){const Qe=Z[ge].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Z[ge]):null;if(Qe)return Qe}return null}_createAnchor(){const z=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,z),z.classList.add("cdk-visually-hidden"),z.classList.add("cdk-focus-trap-anchor"),z.setAttribute("aria-hidden","true"),z}_toggleAnchorTabIndex(z,Z){z?Z.setAttribute("tabindex","0"):Z.removeAttribute("tabindex")}toggleAnchors(z){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(z,this._startAnchor),this._toggleAnchorTabIndex(z,this._endAnchor))}_executeOnStable(z){this._ngZone.isStable?z():this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(z)}}let Fe=(()=>{class Et{constructor(Z,ge,Qe){this._checker=Z,this._ngZone=ge,this._document=Qe}create(Z,ge=!1){return new Zt(Z,this._checker,this._ngZone,this._document,ge)}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(N),n.\u0275\u0275inject(n.NgZone),n.\u0275\u0275inject(e.DOCUMENT))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})(),yt=(()=>{class Et{get enabled(){return this.focusTrap.enabled}set enabled(Z){this.focusTrap.enabled=(0,D.Ig)(Z)}get autoCapture(){return this._autoCapture}set autoCapture(Z){this._autoCapture=(0,D.Ig)(Z)}constructor(Z,ge,Qe){this._elementRef=Z,this._focusTrapFactory=ge,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(Z){const ge=Z.autoCapture;ge&&!ge.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,a.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Fe),n.\u0275\u0275directiveInject(e.DOCUMENT))},Et.\u0275dir=n.\u0275\u0275defineDirective({type:Et,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[n.\u0275\u0275NgOnChangesFeature]}),Et})();function Xt(Et){return 0===Et.buttons||0===Et.offsetX&&0===Et.offsetY}function en(Et){const z=Et.touches&&Et.touches[0]||Et.changedTouches&&Et.changedTouches[0];return!(!z||-1!==z.identifier||null!=z.radiusX&&1!==z.radiusX||null!=z.radiusY&&1!==z.radiusY)}const vt=new n.InjectionToken("cdk-input-modality-detector-options"),xt={ignoreKeys:[d.zL,d.jx,d.b2,d.MW,d.JU]},bt=(0,a.i$)({passive:!0,capture:!0});let At=(()=>{class Et{get mostRecentModality(){return this._modality.value}constructor(Z,ge,Qe,qe){this._platform=Z,this._mostRecentTarget=null,this._modality=new h.X(null),this._lastTouchMs=0,this._onKeydown=ct=>{this._options?.ignoreKeys?.some(Yt=>Yt===ct.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,a.sA)(ct))},this._onMousedown=ct=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Xt(ct)?"keyboard":"mouse"),this._mostRecentTarget=(0,a.sA)(ct))},this._onTouchstart=ct=>{en(ct)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,a.sA)(ct))},this._options={...xt,...qe},this.modalityDetected=this._modality.pipe((0,b.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,S.x)()),Z.isBrowser&&ge.runOutsideAngular(()=>{Qe.addEventListener("keydown",this._onKeydown,bt),Qe.addEventListener("mousedown",this._onMousedown,bt),Qe.addEventListener("touchstart",this._onTouchstart,bt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,bt),document.removeEventListener("mousedown",this._onMousedown,bt),document.removeEventListener("touchstart",this._onTouchstart,bt))}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(a.t4),n.\u0275\u0275inject(n.NgZone),n.\u0275\u0275inject(e.DOCUMENT),n.\u0275\u0275inject(vt,8))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})();const $e=new n.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function Xe(){return null}}),Pe=new n.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ve=0,mt=(()=>{class Et{constructor(Z,ge,Qe,qe){this._ngZone=ge,this._defaultOptions=qe,this._document=Qe,this._liveElement=Z||this._createLiveElement()}announce(Z,...ge){const Qe=this._defaultOptions;let qe,ct;return 1===ge.length&&"number"==typeof ge[0]?ct=ge[0]:[qe,ct]=ge,this.clear(),clearTimeout(this._previousTimeout),qe||(qe=Qe&&Qe.politeness?Qe.politeness:"polite"),null==ct&&Qe&&(ct=Qe.duration),this._liveElement.setAttribute("aria-live",qe),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Yt=>this._currentResolve=Yt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Z,"number"==typeof ct&&(this._previousTimeout=setTimeout(()=>this.clear(),ct)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Z="cdk-live-announcer-element",ge=this._document.getElementsByClassName(Z),Qe=this._document.createElement("div");for(let qe=0;qe<ge.length;qe++)ge[qe].remove();return Qe.classList.add(Z),Qe.classList.add("cdk-visually-hidden"),Qe.setAttribute("aria-atomic","true"),Qe.setAttribute("aria-live","polite"),Qe.id="cdk-live-announcer-"+Ve++,this._document.body.appendChild(Qe),Qe}_exposeAnnouncerToModals(Z){const ge=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Qe=0;Qe<ge.length;Qe++){const qe=ge[Qe],ct=qe.getAttribute("aria-owns");ct?-1===ct.indexOf(Z)&&qe.setAttribute("aria-owns",ct+" "+Z):qe.setAttribute("aria-owns",Z)}}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject($e,8),n.\u0275\u0275inject(n.NgZone),n.\u0275\u0275inject(e.DOCUMENT),n.\u0275\u0275inject(Pe,8))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})();const xn=new n.InjectionToken("cdk-focus-monitor-default-options"),_n=(0,a.i$)({passive:!0,capture:!0});let Jt=(()=>{class Et{constructor(Z,ge,Qe,qe,ct){this._ngZone=Z,this._platform=ge,this._inputModalityDetector=Qe,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 t.x,this._rootNodeFocusAndBlurListener=Yt=>{for(let Be=(0,a.sA)(Yt);Be;Be=Be.parentElement)"focus"===Yt.type?this._onFocus(Yt,Be):this._onBlur(Yt,Be)},this._document=qe,this._detectionMode=ct?.detectionMode||0}monitor(Z,ge=!1){const Qe=(0,D.fI)(Z);if(!this._platform.isBrowser||1!==Qe.nodeType)return(0,s.of)(null);const qe=(0,a.kV)(Qe)||this._getDocument(),ct=this._elementInfo.get(Qe);if(ct)return ge&&(ct.checkChildren=!0),ct.subject;const Yt={checkChildren:ge,subject:new t.x,rootNode:qe};return this._elementInfo.set(Qe,Yt),this._registerGlobalListeners(Yt),Yt.subject}stopMonitoring(Z){const ge=(0,D.fI)(Z),Qe=this._elementInfo.get(ge);Qe&&(Qe.subject.complete(),this._setClasses(ge),this._elementInfo.delete(ge),this._removeGlobalListeners(Qe))}focusVia(Z,ge,Qe){const qe=(0,D.fI)(Z);qe===this._getDocument().activeElement?this._getClosestElementsInfo(qe).forEach(([Yt,it])=>this._originChanged(Yt,ge,it)):(this._setOrigin(ge),"function"==typeof qe.focus&&qe.focus(Qe))}ngOnDestroy(){this._elementInfo.forEach((Z,ge)=>this.stopMonitoring(ge))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Z){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Z)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Z&&this._isLastInteractionFromInputLabel(Z)?"mouse":"program"}_shouldBeAttributedToTouch(Z){return 1===this._detectionMode||!!Z?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Z,ge){Z.classList.toggle("cdk-focused",!!ge),Z.classList.toggle("cdk-touch-focused","touch"===ge),Z.classList.toggle("cdk-keyboard-focused","keyboard"===ge),Z.classList.toggle("cdk-mouse-focused","mouse"===ge),Z.classList.toggle("cdk-program-focused","program"===ge)}_setOrigin(Z,ge=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Z,this._originFromTouchInteraction="touch"===Z&&ge,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Z,ge){const Qe=this._elementInfo.get(ge),qe=(0,a.sA)(Z);!Qe||!Qe.checkChildren&&ge!==qe||this._originChanged(ge,this._getFocusOrigin(qe),Qe)}_onBlur(Z,ge){const Qe=this._elementInfo.get(ge);!Qe||Qe.checkChildren&&Z.relatedTarget instanceof Node&&ge.contains(Z.relatedTarget)||(this._setClasses(ge),this._emitOrigin(Qe,null))}_emitOrigin(Z,ge){Z.subject.observers.length&&this._ngZone.run(()=>Z.subject.next(ge))}_registerGlobalListeners(Z){if(!this._platform.isBrowser)return;const ge=Z.rootNode,Qe=this._rootNodeFocusListenerCount.get(ge)||0;Qe||this._ngZone.runOutsideAngular(()=>{ge.addEventListener("focus",this._rootNodeFocusAndBlurListener,_n),ge.addEventListener("blur",this._rootNodeFocusAndBlurListener,_n)}),this._rootNodeFocusListenerCount.set(ge,Qe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,E.R)(this._stopInputModalityDetector)).subscribe(qe=>{this._setOrigin(qe,!0)}))}_removeGlobalListeners(Z){const ge=Z.rootNode;if(this._rootNodeFocusListenerCount.has(ge)){const Qe=this._rootNodeFocusListenerCount.get(ge);Qe>1?this._rootNodeFocusListenerCount.set(ge,Qe-1):(ge.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_n),ge.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_n),this._rootNodeFocusListenerCount.delete(ge))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Z,ge,Qe){this._setClasses(Z,ge),this._emitOrigin(Qe,ge),this._lastFocusOrigin=ge}_getClosestElementsInfo(Z){const ge=[];return this._elementInfo.forEach((Qe,qe)=>{(qe===Z||Qe.checkChildren&&qe.contains(Z))&&ge.push([qe,Qe])}),ge}_isLastInteractionFromInputLabel(Z){const{_mostRecentTarget:ge,mostRecentModality:Qe}=this._inputModalityDetector;if("mouse"!==Qe||!ge||ge===Z||"INPUT"!==Z.nodeName&&"TEXTAREA"!==Z.nodeName||Z.disabled)return!1;const qe=Z.labels;if(qe)for(let ct=0;ct<qe.length;ct++)if(qe[ct].contains(ge))return!0;return!1}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(n.NgZone),n.\u0275\u0275inject(a.t4),n.\u0275\u0275inject(At),n.\u0275\u0275inject(e.DOCUMENT,8),n.\u0275\u0275inject(xn,8))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})(),ke=(()=>{class Et{constructor(Z,ge){this._elementRef=Z,this._focusMonitor=ge,this._focusOrigin=null,this.cdkFocusChange=new n.EventEmitter}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Z=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Z,1===Z.nodeType&&Z.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ge=>{this._focusOrigin=ge,this.cdkFocusChange.emit(ge)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Jt))},Et.\u0275dir=n.\u0275\u0275defineDirective({type:Et,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),Et})();const Ae="cdk-high-contrast-black-on-white",ze="cdk-high-contrast-white-on-black",pt="cdk-high-contrast-active";let tn=(()=>{class Et{constructor(Z,ge){this._platform=Z,this._document=ge,this._breakpointSubscription=(0,n.inject)(P.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Z=this._document.createElement("div");Z.style.backgroundColor="rgb(1,2,3)",Z.style.position="absolute",this._document.body.appendChild(Z);const ge=this._document.defaultView||window,Qe=ge&&ge.getComputedStyle?ge.getComputedStyle(Z):null,qe=(Qe&&Qe.backgroundColor||"").replace(/ /g,"");switch(Z.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 Z=this._document.body.classList;Z.remove(pt,Ae,ze),this._hasCheckedHighContrastMode=!0;const ge=this.getHighContrastMode();1===ge?Z.add(pt,Ae):2===ge&&Z.add(pt,ze)}}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(a.t4),n.\u0275\u0275inject(e.DOCUMENT))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac,providedIn:"root"}),Et})(),ot=(()=>{class Et{constructor(Z){Z._applyBodyHighContrastModeCssClasses()}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(tn))},Et.\u0275mod=n.\u0275\u0275defineNgModule({type:Et}),Et.\u0275inj=n.\u0275\u0275defineInjector({imports:[A.Q8]}),Et})()},40445:(oe,x,i)=>{"use strict";i.d(x,{Is:()=>s,vT:()=>p});var e=i(94650),n=i(36895);const a=new e.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function t(){return(0,e.inject)(n.DOCUMENT)}}),l=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let s=(()=>{class u{constructor(v){this.value="ltr",this.change=new e.EventEmitter,v&&(this.value=function h(u){const g=u?.toLowerCase()||"";return"auto"===g&&typeof navigator<"u"&&navigator?.language?l.test(navigator.language)?"rtl":"ltr":"rtl"===g?"rtl":"ltr"}((v.body?v.body.dir:null)||(v.documentElement?v.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return u.\u0275fac=function(v){return new(v||u)(e.\u0275\u0275inject(a,8))},u.\u0275prov=e.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),p=(()=>{class u{}return u.\u0275fac=function(v){return new(v||u)},u.\u0275mod=e.\u0275\u0275defineNgModule({type:u}),u.\u0275inj=e.\u0275\u0275defineInjector({}),u})()},21281:(oe,x,i)=>{"use strict";i.d(x,{Eq:()=>l,HM:()=>h,Ig:()=>n,du:()=>d,fI:()=>s,su:()=>a,t6:()=>t});var e=i(94650);function n(p){return null!=p&&"false"!=`${p}`}function a(p,u=0){return t(p)?Number(p):u}function t(p){return!isNaN(parseFloat(p))&&!isNaN(Number(p))}function l(p){return Array.isArray(p)?p:[p]}function h(p){return null==p?"":"string"==typeof p?p:`${p}px`}function s(p){return p instanceof e.ElementRef?p.nativeElement:p}function d(p,u=/\s+/){const g=[];if(null!=p){const v=Array.isArray(p)?p:`${p}`.split(u);for(const y of v){const b=`${y}`.trim();b&&g.push(b)}}return g}},95017:(oe,x,i)=>{"use strict";i.d(x,{A8:()=>g,Ov:()=>p,Z9:()=>l,eX:()=>d,k:()=>v,o2:()=>t,yy:()=>s});var e=i(94033),n=i(77579),a=i(94650);class t{}function l(y){return y&&"function"==typeof y.connect&&!(y instanceof e.c)}class s{applyChanges(b,S,E,D,A){b.forEachOperation((P,B,V)=>{let X,re;if(null==P.previousIndex){const Q=E(P,B,V);X=S.createEmbeddedView(Q.templateRef,Q.context,Q.index),re=1}else null==V?(S.remove(B),re=3):(X=S.get(B),S.move(X,V),re=2);A&&A({context:X?.context,operation:re,record:P})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(b,S,E,D,A){b.forEachOperation((P,B,V)=>{let X,re;null==P.previousIndex?(X=this._insertView(()=>E(P,B,V),V,S,D(P)),re=X?1:0):null==V?(this._detachAndCacheView(B,S),re=3):(X=this._moveView(B,V,S,D(P)),re=2),A&&A({context:X?.context,operation:re,record:P})})}detach(){for(const b of this._viewCache)b.destroy();this._viewCache=[]}_insertView(b,S,E,D){const A=this._insertViewFromCache(S,E);if(A)return void(A.context.$implicit=D);const P=b();return E.createEmbeddedView(P.templateRef,P.context,P.index)}_detachAndCacheView(b,S){const E=S.detach(b);this._maybeCacheView(E,S)}_moveView(b,S,E,D){const A=E.get(b);return E.move(A,S),A.context.$implicit=D,A}_maybeCacheView(b,S){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(b);else{const E=S.indexOf(b);-1===E?b.destroy():S.remove(E)}}_insertViewFromCache(b,S){const E=this._viewCache.pop();return E&&S.insert(E,b),E||null}}class p{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(b=!1,S,E=!0,D){this._multiple=b,this._emitChanges=E,this.compareWith=D,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new n.x,S&&S.length&&(b?S.forEach(A=>this._markSelected(A)):this._markSelected(S[0]),this._selectedToEmit.length=0)}select(...b){this._verifyValueAssignment(b),b.forEach(E=>this._markSelected(E));const S=this._hasQueuedChanges();return this._emitChangeEvent(),S}deselect(...b){this._verifyValueAssignment(b),b.forEach(E=>this._unmarkSelected(E));const S=this._hasQueuedChanges();return this._emitChangeEvent(),S}setSelection(...b){this._verifyValueAssignment(b);const S=this.selected,E=new Set(b);b.forEach(A=>this._markSelected(A)),S.filter(A=>!E.has(A)).forEach(A=>this._unmarkSelected(A));const D=this._hasQueuedChanges();return this._emitChangeEvent(),D}toggle(b){return this.isSelected(b)?this.deselect(b):this.select(b)}clear(b=!0){this._unmarkAll();const S=this._hasQueuedChanges();return b&&this._emitChangeEvent(),S}isSelected(b){return this._selection.has(this._getConcreteValue(b))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(b){this._multiple&&this.selected&&this._selected.sort(b)}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(b){b=this._getConcreteValue(b),this.isSelected(b)||(this._multiple||this._unmarkAll(),this.isSelected(b)||this._selection.add(b),this._emitChanges&&this._selectedToEmit.push(b))}_unmarkSelected(b){b=this._getConcreteValue(b),this.isSelected(b)&&(this._selection.delete(b),this._emitChanges&&this._deselectedToEmit.push(b))}_unmarkAll(){this.isEmpty()||this._selection.forEach(b=>this._unmarkSelected(b))}_verifyValueAssignment(b){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(b){if(this.compareWith){for(let S of this._selection)if(this.compareWith(b,S))return S;return b}return b}}let g=(()=>{class y{constructor(){this._listeners=[]}notify(S,E){for(let D of this._listeners)D(S,E)}listen(S){return this._listeners.push(S),()=>{this._listeners=this._listeners.filter(E=>S!==E)}}ngOnDestroy(){this._listeners=[]}}return y.\u0275fac=function(S){return new(S||y)},y.\u0275prov=a.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();const v=new a.InjectionToken("_ViewRepeater")},97855:(oe,x,i)=>{"use strict";i.d(x,{LL:()=>E,Su:()=>K,Vq:()=>Q,ib:()=>b});var e=i(12687),n=i(98184),a=i(83353),t=i(84080),l=i(36895),h=i(94650),s=i(29521),d=i(77579),p=i(49770),u=i(39646),g=i(40445),v=i(68675);function y(k,$){}class b{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let E=(()=>{class k extends t.en{constructor(j,R,U,le,T,H,N,pe){super(),this._elementRef=j,this._focusTrapFactory=R,this._config=le,this._interactivityChecker=T,this._ngZone=H,this._overlayRef=N,this._focusMonitor=pe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=de=>{this._portalOutlet.hasAttached();const me=this._portalOutlet.attachDomPortal(de);return this._contentAttached(),me},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=U}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(j){this._portalOutlet.hasAttached();const R=this._portalOutlet.attachComponentPortal(j);return this._contentAttached(),R}attachTemplatePortal(j){this._portalOutlet.hasAttached();const R=this._portalOutlet.attachTemplatePortal(j);return this._contentAttached(),R}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(j,R){this._interactivityChecker.isFocusable(j)||(j.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const U=()=>{j.removeEventListener("blur",U),j.removeEventListener("mousedown",U),j.removeAttribute("tabindex")};j.addEventListener("blur",U),j.addEventListener("mousedown",U)})),j.focus(R)}_focusByCssSelector(j,R){let U=this._elementRef.nativeElement.querySelector(j);U&&this._forceFocus(U,R)}_trapFocus(){const j=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||j.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(R=>{R||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const j=this._config.restoreFocus;let R=null;if("string"==typeof j?R=this._document.querySelector(j):"boolean"==typeof j?R=j?this._elementFocusedBeforeDialogWasOpened:null:j&&(R=j),this._config.restoreFocus&&R&&"function"==typeof R.focus){const U=(0,a.ht)(),le=this._elementRef.nativeElement;(!U||U===this._document.body||U===le||le.contains(U))&&(this._focusMonitor?(this._focusMonitor.focusVia(R,this._closeInteractionType),this._closeInteractionType=null):R.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const j=this._elementRef.nativeElement,R=(0,a.ht)();return j===R||j.contains(R)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,a.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return k.\u0275fac=function(j){return new(j||k)(h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(e.qV),h.\u0275\u0275directiveInject(l.DOCUMENT,8),h.\u0275\u0275directiveInject(b),h.\u0275\u0275directiveInject(e.ic),h.\u0275\u0275directiveInject(h.NgZone),h.\u0275\u0275directiveInject(n.Iu),h.\u0275\u0275directiveInject(e.tE))},k.\u0275cmp=h.\u0275\u0275defineComponent({type:k,selectors:[["cdk-dialog-container"]],viewQuery:function(j,R){if(1&j&&h.\u0275\u0275viewQuery(t.Pl,7),2&j){let U;h.\u0275\u0275queryRefresh(U=h.\u0275\u0275loadQuery())&&(R._portalOutlet=U.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(j,R){2&j&&h.\u0275\u0275attribute("id",R._config.id||null)("role",R._config.role)("aria-modal",R._config.ariaModal)("aria-labelledby",R._config.ariaLabel?null:R._ariaLabelledBy)("aria-label",R._config.ariaLabel)("aria-describedby",R._config.ariaDescribedBy||null)},features:[h.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(j,R){1&j&&h.\u0275\u0275template(0,y,0,0,"ng-template",0)},dependencies:[t.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),k})();class D{constructor($,j){this.overlayRef=$,this.config=j,this.closed=new d.x,this.disableClose=j.disableClose,this.backdropClick=$.backdropClick(),this.keydownEvents=$.keydownEvents(),this.outsidePointerEvents=$.outsidePointerEvents(),this.id=j.id,this.keydownEvents.subscribe(R=>{R.keyCode===s.hY&&!this.disableClose&&!(0,s.Vb)(R)&&(R.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=$.detachments().subscribe(()=>{!1!==j.closeOnOverlayDetachments&&this.close()})}close($,j){if(this.containerInstance){const R=this.closed;this.containerInstance._closeInteractionType=j?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),R.next($),R.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize($="",j=""){return this.overlayRef.updateSize({width:$,height:j}),this}addPanelClass($){return this.overlayRef.addPanelClass($),this}removePanelClass($){return this.overlayRef.removePanelClass($),this}}const A=new h.InjectionToken("DialogScrollStrategy"),P=new h.InjectionToken("DialogData"),B=new h.InjectionToken("DefaultDialogConfig"),X={provide:A,deps:[n.aV],useFactory:function V(k){return()=>k.scrollStrategies.block()}};let re=0,Q=(()=>{class k{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(j,R,U,le,T,H){this._overlay=j,this._injector=R,this._defaultOptions=U,this._parentDialog=le,this._overlayContainer=T,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new d.x,this._afterOpenedAtThisLevel=new d.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,p.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,v.O)(void 0))),this._scrollStrategy=H}open(j,R){(R={...this._defaultOptions||new b,...R}).id=R.id||"cdk-dialog-"+re++,R.id&&this.getDialogById(R.id);const le=this._getOverlayConfig(R),T=this._overlay.create(le),H=new D(T,R),N=this._attachContainer(T,H,R);return H.containerInstance=N,this._attachDialogContent(j,H,N,R),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(H),H.closed.subscribe(()=>this._removeOpenDialog(H,!0)),this.afterOpened.next(H),H}closeAll(){ae(this.openDialogs,j=>j.close())}getDialogById(j){return this.openDialogs.find(R=>R.id===j)}ngOnDestroy(){ae(this._openDialogsAtThisLevel,j=>{!1===j.config.closeOnDestroy&&this._removeOpenDialog(j,!1)}),ae(this._openDialogsAtThisLevel,j=>j.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(j){const R=new n.X_({positionStrategy:j.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:j.scrollStrategy||this._scrollStrategy(),panelClass:j.panelClass,hasBackdrop:j.hasBackdrop,direction:j.direction,minWidth:j.minWidth,minHeight:j.minHeight,maxWidth:j.maxWidth,maxHeight:j.maxHeight,width:j.width,height:j.height,disposeOnNavigation:j.closeOnNavigation});return j.backdropClass&&(R.backdropClass=j.backdropClass),R}_attachContainer(j,R,U){const le=U.injector||U.viewContainerRef?.injector,T=[{provide:b,useValue:U},{provide:D,useValue:R},{provide:n.Iu,useValue:j}];let H;U.container?"function"==typeof U.container?H=U.container:(H=U.container.type,T.push(...U.container.providers(U))):H=E;const N=new t.C5(H,U.viewContainerRef,h.Injector.create({parent:le||this._injector,providers:T}),U.componentFactoryResolver);return j.attach(N).instance}_attachDialogContent(j,R,U,le){if(j instanceof h.TemplateRef){const T=this._createInjector(le,R,U,void 0);let H={$implicit:le.data,dialogRef:R};le.templateContext&&(H={...H,..."function"==typeof le.templateContext?le.templateContext():le.templateContext}),U.attachTemplatePortal(new t.UE(j,null,H,T))}else{const T=this._createInjector(le,R,U,this._injector),H=U.attachComponentPortal(new t.C5(j,le.viewContainerRef,T,le.componentFactoryResolver));R.componentInstance=H.instance}}_createInjector(j,R,U,le){const T=j.injector||j.viewContainerRef?.injector,H=[{provide:P,useValue:j.data},{provide:D,useValue:R}];return j.providers&&("function"==typeof j.providers?H.push(...j.providers(R,j,U)):H.push(...j.providers)),j.direction&&(!T||!T.get(g.Is,null,{optional:!0}))&&H.push({provide:g.Is,useValue:{value:j.direction,change:(0,u.of)()}}),h.Injector.create({parent:T||le,providers:H})}_removeOpenDialog(j,R){const U=this.openDialogs.indexOf(j);U>-1&&(this.openDialogs.splice(U,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((le,T)=>{le?T.setAttribute("aria-hidden",le):T.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),R&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const j=this._overlayContainer.getContainerElement();if(j.parentElement){const R=j.parentElement.children;for(let U=R.length-1;U>-1;U--){const le=R[U];le!==j&&"SCRIPT"!==le.nodeName&&"STYLE"!==le.nodeName&&!le.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(le,le.getAttribute("aria-hidden")),le.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const j=this._parentDialog;return j?j._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return k.\u0275fac=function(j){return new(j||k)(h.\u0275\u0275inject(n.aV),h.\u0275\u0275inject(h.Injector),h.\u0275\u0275inject(B,8),h.\u0275\u0275inject(k,12),h.\u0275\u0275inject(n.Xj),h.\u0275\u0275inject(A))},k.\u0275prov=h.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac}),k})();function ae(k,$){let j=k.length;for(;j--;)$(k[j])}let K=(()=>{class k{}return k.\u0275fac=function(j){return new(j||k)},k.\u0275mod=h.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=h.\u0275\u0275defineInjector({providers:[Q,X],imports:[n.U8,t.eL,e.rt,t.eL]}),k})()},29521:(oe,x,i)=>{"use strict";i.d(x,{A:()=>q,JH:()=>B,JU:()=>h,K5:()=>l,Ku:()=>y,LH:()=>A,L_:()=>v,MW:()=>Pe,Mf:()=>a,SV:()=>P,Sd:()=>E,VM:()=>b,Vb:()=>$i,Z:()=>Xe,ZH:()=>n,aO:()=>H,b2:()=>gi,hY:()=>g,jx:()=>s,oh:()=>D,uR:()=>S,xE:()=>ae,yY:()=>Q,zL:()=>d});const n=8,a=9,l=13,h=16,s=17,d=18,g=27,v=32,y=33,b=34,S=35,E=36,D=37,A=38,P=39,B=40,Q=46,ae=48,H=57,q=65,Xe=90,Pe=91,gi=224;function $i(fr,...Mr){return Mr.length?Mr.some(ti=>fr[ti]):fr.altKey||fr.shiftKey||fr.ctrlKey||fr.metaKey}},62289:(oe,x,i)=>{"use strict";i.d(x,{Yg:()=>B,u3:()=>X});var e=i(94650),n=i(21281),a=i(77579),t=i(39841),l=i(97272),h=i(69751),s=i(95698),d=i(35684),p=i(78372),u=i(54004),g=i(68675),v=i(82722),y=i(83353);const S=new Set;let E,D=(()=>{class re{constructor(ae){this._platform=ae,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):P}matchMedia(ae){return(this._platform.WEBKIT||this._platform.BLINK)&&function A(re){if(!S.has(re))try{E||(E=document.createElement("style"),E.setAttribute("type","text/css"),document.head.appendChild(E)),E.sheet&&(E.sheet.insertRule(`@media ${re} {body{ }}`,0),S.add(re))}catch(Q){console.error(Q)}}(ae),this._matchMedia(ae)}}return re.\u0275fac=function(ae){return new(ae||re)(e.\u0275\u0275inject(y.t4))},re.\u0275prov=e.\u0275\u0275defineInjectable({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function P(re){return{matches:"all"===re||""===re,media:re,addListener:()=>{},removeListener:()=>{}}}let B=(()=>{class re{constructor(ae,K){this._mediaMatcher=ae,this._zone=K,this._queries=new Map,this._destroySubject=new a.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ae){return V((0,n.Eq)(ae)).some(k=>this._registerQuery(k).mql.matches)}observe(ae){const k=V((0,n.Eq)(ae)).map(j=>this._registerQuery(j).observable);let $=(0,t.a)(k);return $=(0,l.z)($.pipe((0,s.q)(1)),$.pipe((0,d.T)(1),(0,p.b)(0))),$.pipe((0,u.U)(j=>{const R={matches:!1,breakpoints:{}};return j.forEach(({matches:U,query:le})=>{R.matches=R.matches||U,R.breakpoints[le]=U}),R}))}_registerQuery(ae){if(this._queries.has(ae))return this._queries.get(ae);const K=this._mediaMatcher.matchMedia(ae),$={observable:new h.y(j=>{const R=U=>this._zone.run(()=>j.next(U));return K.addListener(R),()=>{K.removeListener(R)}}).pipe((0,g.O)(K),(0,u.U)(({matches:j})=>({query:ae,matches:j})),(0,v.R)(this._destroySubject)),mql:K};return this._queries.set(ae,$),$}}return re.\u0275fac=function(ae){return new(ae||re)(e.\u0275\u0275inject(D),e.\u0275\u0275inject(e.NgZone))},re.\u0275prov=e.\u0275\u0275defineInjectable({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function V(re){return re.map(Q=>Q.split(",")).reduce((Q,ae)=>Q.concat(ae)).map(Q=>Q.trim())}const X={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},49643:(oe,x,i)=>{"use strict";i.d(x,{Q8:()=>p,wD:()=>d});var e=i(21281),n=i(94650),a=i(69751),t=i(77579),l=i(78372);let h=(()=>{class u{create(v){return typeof MutationObserver>"u"?null:new MutationObserver(v)}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=n.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),s=(()=>{class u{constructor(v){this._mutationObserverFactory=v,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((v,y)=>this._cleanupObserver(y))}observe(v){const y=(0,e.fI)(v);return new a.y(b=>{const E=this._observeElement(y).subscribe(b);return()=>{E.unsubscribe(),this._unobserveElement(y)}})}_observeElement(v){if(this._observedElements.has(v))this._observedElements.get(v).count++;else{const y=new t.x,b=this._mutationObserverFactory.create(S=>y.next(S));b&&b.observe(v,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(v,{observer:b,stream:y,count:1})}return this._observedElements.get(v).stream}_unobserveElement(v){this._observedElements.has(v)&&(this._observedElements.get(v).count--,this._observedElements.get(v).count||this._cleanupObserver(v))}_cleanupObserver(v){if(this._observedElements.has(v)){const{observer:y,stream:b}=this._observedElements.get(v);y&&y.disconnect(),b.complete(),this._observedElements.delete(v)}}}return u.\u0275fac=function(v){return new(v||u)(n.\u0275\u0275inject(h))},u.\u0275prov=n.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),d=(()=>{class u{get disabled(){return this._disabled}set disabled(v){this._disabled=(0,e.Ig)(v),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(v){this._debounce=(0,e.su)(v),this._subscribe()}constructor(v,y,b){this._contentObserver=v,this._elementRef=y,this._ngZone=b,this.event=new n.EventEmitter,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const v=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?v.pipe((0,l.b)(this.debounce)):v).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return u.\u0275fac=function(v){return new(v||u)(n.\u0275\u0275directiveInject(s),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone))},u.\u0275dir=n.\u0275\u0275defineDirective({type:u,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),u})(),p=(()=>{class u{}return u.\u0275fac=function(v){return new(v||u)},u.\u0275mod=n.\u0275\u0275defineNgModule({type:u}),u.\u0275inj=n.\u0275\u0275defineInjector({providers:[h]}),u})()},98184:(oe,x,i)=>{"use strict";i.d(x,{Iu:()=>N,U8:()=>Mt,X_:()=>ae,Xj:()=>H,_G:()=>me,aV:()=>Zt,pI:()=>Ce,xu:()=>ie});var e=i(67376),n=i(36895),a=i(94650),t=i(21281),l=i(83353),h=i(39300),s=i(95698),d=i(82722),p=i(22529),u=i(40445),g=i(84080),v=i(77579),y=i(50727),b=i(56451),S=i(29521);const E=(0,l.Mq)();class D{constructor(vt,xt){this._viewportRuler=vt,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=xt}attach(){}enable(){if(this._canBeEnabled()){const vt=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=vt.style.left||"",this._previousHTMLStyles.top=vt.style.top||"",vt.style.left=(0,t.HM)(-this._previousScrollPosition.left),vt.style.top=(0,t.HM)(-this._previousScrollPosition.top),vt.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const vt=this._document.documentElement,zt=vt.style,bt=this._document.body.style,At=zt.scrollBehavior||"",$e=bt.scrollBehavior||"";this._isEnabled=!1,zt.left=this._previousHTMLStyles.left,zt.top=this._previousHTMLStyles.top,vt.classList.remove("cdk-global-scrollblock"),E&&(zt.scrollBehavior=bt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),E&&(zt.scrollBehavior=At,bt.scrollBehavior=$e)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const xt=this._document.body,zt=this._viewportRuler.getViewportSize();return xt.scrollHeight>zt.height||xt.scrollWidth>zt.width}}class P{constructor(vt,xt,zt,bt){this._scrollDispatcher=vt,this._ngZone=xt,this._viewportRuler=zt,this._config=bt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(vt){this._overlayRef=vt}enable(){if(this._scrollSubscription)return;const vt=this._scrollDispatcher.scrolled(0).pipe((0,h.h)(xt=>!xt||!this._overlayRef.overlayElement.contains(xt.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=vt.subscribe(()=>{const xt=this._viewportRuler.getViewportScrollPosition().top;Math.abs(xt-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=vt.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class B{enable(){}disable(){}attach(){}}function V(en,vt){return vt.some(xt=>en.bottom<xt.top||en.top>xt.bottom||en.right<xt.left||en.left>xt.right)}function X(en,vt){return vt.some(xt=>en.top<xt.top||en.bottom>xt.bottom||en.left<xt.left||en.right>xt.right)}class re{constructor(vt,xt,zt,bt){this._scrollDispatcher=vt,this._viewportRuler=xt,this._ngZone=zt,this._config=bt,this._scrollSubscription=null}attach(vt){this._overlayRef=vt}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 xt=this._overlayRef.overlayElement.getBoundingClientRect(),{width:zt,height:bt}=this._viewportRuler.getViewportSize();V(xt,[{width:zt,height:bt,bottom:bt,right:zt,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 Q=(()=>{class en{constructor(xt,zt,bt,At){this._scrollDispatcher=xt,this._viewportRuler=zt,this._ngZone=bt,this.noop=()=>new B,this.close=$e=>new P(this._scrollDispatcher,this._ngZone,this._viewportRuler,$e),this.block=()=>new D(this._viewportRuler,this._document),this.reposition=$e=>new re(this._scrollDispatcher,this._viewportRuler,this._ngZone,$e),this._document=At}}return en.\u0275fac=function(xt){return new(xt||en)(a.\u0275\u0275inject(e.mF),a.\u0275\u0275inject(e.rL),a.\u0275\u0275inject(a.NgZone),a.\u0275\u0275inject(n.DOCUMENT))},en.\u0275prov=a.\u0275\u0275defineInjectable({token:en,factory:en.\u0275fac,providedIn:"root"}),en})();class ae{constructor(vt){if(this.scrollStrategy=new B,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,vt){const xt=Object.keys(vt);for(const zt of xt)void 0!==vt[zt]&&(this[zt]=vt[zt])}}}class ${constructor(vt,xt){this.connectionPair=vt,this.scrollableViewProperties=xt}}let U=(()=>{class en{constructor(xt){this._attachedOverlays=[],this._document=xt}ngOnDestroy(){this.detach()}add(xt){this.remove(xt),this._attachedOverlays.push(xt)}remove(xt){const zt=this._attachedOverlays.indexOf(xt);zt>-1&&this._attachedOverlays.splice(zt,1),0===this._attachedOverlays.length&&this.detach()}}return en.\u0275fac=function(xt){return new(xt||en)(a.\u0275\u0275inject(n.DOCUMENT))},en.\u0275prov=a.\u0275\u0275defineInjectable({token:en,factory:en.\u0275fac,providedIn:"root"}),en})(),le=(()=>{class en extends U{constructor(xt,zt){super(xt),this._ngZone=zt,this._keydownListener=bt=>{const At=this._attachedOverlays;for(let $e=At.length-1;$e>-1;$e--)if(At[$e]._keydownEvents.observers.length>0){const Xe=At[$e]._keydownEvents;this._ngZone?this._ngZone.run(()=>Xe.next(bt)):Xe.next(bt);break}}}add(xt){super.add(xt),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 en.\u0275fac=function(xt){return new(xt||en)(a.\u0275\u0275inject(n.DOCUMENT),a.\u0275\u0275inject(a.NgZone,8))},en.\u0275prov=a.\u0275\u0275defineInjectable({token:en,factory:en.\u0275fac,providedIn:"root"}),en})(),T=(()=>{class en extends U{constructor(xt,zt,bt){super(xt),this._platform=zt,this._ngZone=bt,this._cursorStyleIsSet=!1,this._pointerDownListener=At=>{this._pointerDownEventTarget=(0,l.sA)(At)},this._clickListener=At=>{const $e=(0,l.sA)(At),Xe="click"===At.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:$e;this._pointerDownEventTarget=null;const Pe=this._attachedOverlays.slice();for(let Ve=Pe.length-1;Ve>-1;Ve--){const mt=Pe[Ve];if(mt._outsidePointerEvents.observers.length<1||!mt.hasAttached())continue;if(mt.overlayElement.contains($e)||mt.overlayElement.contains(Xe))break;const It=mt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>It.next(At)):It.next(At)}}}add(xt){if(super.add(xt),!this._isAttached){const zt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(zt)):this._addEventListeners(zt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=zt.style.cursor,zt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const xt=this._document.body;xt.removeEventListener("pointerdown",this._pointerDownListener,!0),xt.removeEventListener("click",this._clickListener,!0),xt.removeEventListener("auxclick",this._clickListener,!0),xt.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(xt.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(xt){xt.addEventListener("pointerdown",this._pointerDownListener,!0),xt.addEventListener("click",this._clickListener,!0),xt.addEventListener("auxclick",this._clickListener,!0),xt.addEventListener("contextmenu",this._clickListener,!0)}}return en.\u0275fac=function(xt){return new(xt||en)(a.\u0275\u0275inject(n.DOCUMENT),a.\u0275\u0275inject(l.t4),a.\u0275\u0275inject(a.NgZone,8))},en.\u0275prov=a.\u0275\u0275defineInjectable({token:en,factory:en.\u0275fac,providedIn:"root"}),en})(),H=(()=>{class en{constructor(xt,zt){this._platform=zt,this._document=xt}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const xt="cdk-overlay-container";if(this._platform.isBrowser||(0,l.Oy)()){const bt=this._document.querySelectorAll(`.${xt}[platform="server"], .${xt}[platform="test"]`);for(let At=0;At<bt.length;At++)bt[At].remove()}const zt=this._document.createElement("div");zt.classList.add(xt),(0,l.Oy)()?zt.setAttribute("platform","test"):this._platform.isBrowser||zt.setAttribute("platform","server"),this._document.body.appendChild(zt),this._containerElement=zt}}return en.\u0275fac=function(xt){return new(xt||en)(a.\u0275\u0275inject(n.DOCUMENT),a.\u0275\u0275inject(l.t4))},en.\u0275prov=a.\u0275\u0275defineInjectable({token:en,factory:en.\u0275fac,providedIn:"root"}),en})();class N{constructor(vt,xt,zt,bt,At,$e,Xe,Pe,Ve,mt=!1){this._portalOutlet=vt,this._host=xt,this._pane=zt,this._config=bt,this._ngZone=At,this._keyboardDispatcher=$e,this._document=Xe,this._location=Pe,this._outsideClickDispatcher=Ve,this._animationsDisabled=mt,this._backdropElement=null,this._backdropClick=new v.x,this._attachments=new v.x,this._detachments=new v.x,this._locationChanges=y.w0.EMPTY,this._backdropClickHandler=It=>this._backdropClick.next(It),this._backdropTransitionendHandler=It=>{this._disposeBackdrop(It.target)},this._keydownEvents=new v.x,this._outsidePointerEvents=new v.x,bt.scrollStrategy&&(this._scrollStrategy=bt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=bt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(vt){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const xt=this._portalOutlet.attach(vt);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,s.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 xt?.onDestroy&&xt.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),xt}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const vt=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),vt}dispose(){const vt=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,vt&&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(vt){vt!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=vt,this.hasAttached()&&(vt.attach(this),this.updatePosition()))}updateSize(vt){this._config={...this._config,...vt},this._updateElementSize()}setDirection(vt){this._config={...this._config,direction:vt},this._updateElementDirection()}addPanelClass(vt){this._pane&&this._toggleClasses(this._pane,vt,!0)}removePanelClass(vt){this._pane&&this._toggleClasses(this._pane,vt,!1)}getDirection(){const vt=this._config.direction;return vt?"string"==typeof vt?vt:vt.value:"ltr"}updateScrollStrategy(vt){vt!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=vt,this.hasAttached()&&(vt.attach(this),vt.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const vt=this._pane.style;vt.width=(0,t.HM)(this._config.width),vt.height=(0,t.HM)(this._config.height),vt.minWidth=(0,t.HM)(this._config.minWidth),vt.minHeight=(0,t.HM)(this._config.minHeight),vt.maxWidth=(0,t.HM)(this._config.maxWidth),vt.maxHeight=(0,t.HM)(this._config.maxHeight)}_togglePointerEvents(vt){this._pane.style.pointerEvents=vt?"":"none"}_attachBackdrop(){const vt="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(vt)})}):this._backdropElement.classList.add(vt)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const vt=this._backdropElement;if(vt){if(this._animationsDisabled)return void this._disposeBackdrop(vt);vt.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{vt.addEventListener("transitionend",this._backdropTransitionendHandler)}),vt.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(vt)},500))}}_toggleClasses(vt,xt,zt){const bt=(0,t.Eq)(xt||[]).filter(At=>!!At);bt.length&&(zt?vt.classList.add(...bt):vt.classList.remove(...bt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const vt=this._ngZone.onStable.pipe((0,d.R)((0,b.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()),vt.unsubscribe())})})}_disposeScrollStrategy(){const vt=this._scrollStrategy;vt&&(vt.disable(),vt.detach&&vt.detach())}_disposeBackdrop(vt){vt&&(vt.removeEventListener("click",this._backdropClickHandler),vt.removeEventListener("transitionend",this._backdropTransitionendHandler),vt.remove(),this._backdropElement===vt&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const pe="cdk-overlay-connected-position-bounding-box",de=/([A-Za-z%]+)$/;class me{get positions(){return this._preferredPositions}constructor(vt,xt,zt,bt,At){this._viewportRuler=xt,this._document=zt,this._platform=bt,this._overlayContainer=At,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 v.x,this._resizeSubscription=y.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(vt)}attach(vt){this._validatePositions(),vt.hostElement.classList.add(pe),this._overlayRef=vt,this._boundingBox=vt.hostElement,this._pane=vt.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 vt=this._originRect,xt=this._overlayRect,zt=this._viewportRect,bt=this._containerRect,At=[];let $e;for(let Xe of this._preferredPositions){let Pe=this._getOriginPoint(vt,bt,Xe),Ve=this._getOverlayPoint(Pe,xt,Xe),mt=this._getOverlayFit(Ve,xt,zt,Xe);if(mt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Xe,Pe);this._canFitWithFlexibleDimensions(mt,Ve,zt)?At.push({position:Xe,origin:Pe,overlayRect:xt,boundingBoxRect:this._calculateBoundingBoxRect(Pe,Xe)}):(!$e||$e.overlayFit.visibleArea<mt.visibleArea)&&($e={overlayFit:mt,overlayPoint:Ve,originPoint:Pe,position:Xe,overlayRect:xt})}if(At.length){let Xe=null,Pe=-1;for(const Ve of At){const mt=Ve.boundingBoxRect.width*Ve.boundingBoxRect.height*(Ve.position.weight||1);mt>Pe&&(Pe=mt,Xe=Ve)}return this._isPushed=!1,void this._applyPosition(Xe.position,Xe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition($e.position,$e.originPoint);this._applyPosition($e.position,$e.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&q(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(pe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const vt=this._lastPosition;if(vt){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const xt=this._getOriginPoint(this._originRect,this._containerRect,vt);this._applyPosition(vt,xt)}else this.apply()}withScrollableContainers(vt){return this._scrollables=vt,this}withPositions(vt){return this._preferredPositions=vt,-1===vt.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(vt){return this._viewportMargin=vt,this}withFlexibleDimensions(vt=!0){return this._hasFlexibleDimensions=vt,this}withGrowAfterOpen(vt=!0){return this._growAfterOpen=vt,this}withPush(vt=!0){return this._canPush=vt,this}withLockedPosition(vt=!0){return this._positionLocked=vt,this}setOrigin(vt){return this._origin=vt,this}withDefaultOffsetX(vt){return this._offsetX=vt,this}withDefaultOffsetY(vt){return this._offsetY=vt,this}withTransformOriginOn(vt){return this._transformOriginSelector=vt,this}_getOriginPoint(vt,xt,zt){let bt,At;if("center"==zt.originX)bt=vt.left+vt.width/2;else{const $e=this._isRtl()?vt.right:vt.left,Xe=this._isRtl()?vt.left:vt.right;bt="start"==zt.originX?$e:Xe}return xt.left<0&&(bt-=xt.left),At="center"==zt.originY?vt.top+vt.height/2:"top"==zt.originY?vt.top:vt.bottom,xt.top<0&&(At-=xt.top),{x:bt,y:At}}_getOverlayPoint(vt,xt,zt){let bt,At;return bt="center"==zt.overlayX?-xt.width/2:"start"===zt.overlayX?this._isRtl()?-xt.width:0:this._isRtl()?0:-xt.width,At="center"==zt.overlayY?-xt.height/2:"top"==zt.overlayY?0:-xt.height,{x:vt.x+bt,y:vt.y+At}}_getOverlayFit(vt,xt,zt,bt){const At=ve(xt);let{x:$e,y:Xe}=vt,Pe=this._getOffset(bt,"x"),Ve=this._getOffset(bt,"y");Pe&&($e+=Pe),Ve&&(Xe+=Ve);let xn=0-Xe,_n=Xe+At.height-zt.height,Jt=this._subtractOverflows(At.width,0-$e,$e+At.width-zt.width),ke=this._subtractOverflows(At.height,xn,_n),Ae=Jt*ke;return{visibleArea:Ae,isCompletelyWithinViewport:At.width*At.height===Ae,fitsInViewportVertically:ke===At.height,fitsInViewportHorizontally:Jt==At.width}}_canFitWithFlexibleDimensions(vt,xt,zt){if(this._hasFlexibleDimensions){const bt=zt.bottom-xt.y,At=zt.right-xt.x,$e=se(this._overlayRef.getConfig().minHeight),Xe=se(this._overlayRef.getConfig().minWidth);return(vt.fitsInViewportVertically||null!=$e&&$e<=bt)&&(vt.fitsInViewportHorizontally||null!=Xe&&Xe<=At)}return!1}_pushOverlayOnScreen(vt,xt,zt){if(this._previousPushAmount&&this._positionLocked)return{x:vt.x+this._previousPushAmount.x,y:vt.y+this._previousPushAmount.y};const bt=ve(xt),At=this._viewportRect,$e=Math.max(vt.x+bt.width-At.width,0),Xe=Math.max(vt.y+bt.height-At.height,0),Pe=Math.max(At.top-zt.top-vt.y,0),Ve=Math.max(At.left-zt.left-vt.x,0);let mt=0,It=0;return mt=bt.width<=At.width?Ve||-$e:vt.x<this._viewportMargin?At.left-zt.left-vt.x:0,It=bt.height<=At.height?Pe||-Xe:vt.y<this._viewportMargin?At.top-zt.top-vt.y:0,this._previousPushAmount={x:mt,y:It},{x:vt.x+mt,y:vt.y+It}}_applyPosition(vt,xt){if(this._setTransformOrigin(vt),this._setOverlayElementStyles(xt,vt),this._setBoundingBoxStyles(xt,vt),vt.panelClass&&this._addPanelClasses(vt.panelClass),this._lastPosition=vt,this._positionChanges.observers.length){const zt=this._getScrollVisibility(),bt=new $(vt,zt);this._positionChanges.next(bt)}this._isInitialRender=!1}_setTransformOrigin(vt){if(!this._transformOriginSelector)return;const xt=this._boundingBox.querySelectorAll(this._transformOriginSelector);let zt,bt=vt.overlayY;zt="center"===vt.overlayX?"center":this._isRtl()?"start"===vt.overlayX?"right":"left":"start"===vt.overlayX?"left":"right";for(let At=0;At<xt.length;At++)xt[At].style.transformOrigin=`${zt} ${bt}`}_calculateBoundingBoxRect(vt,xt){const zt=this._viewportRect,bt=this._isRtl();let At,$e,Xe,mt,It,xn;if("top"===xt.overlayY)$e=vt.y,At=zt.height-$e+this._viewportMargin;else if("bottom"===xt.overlayY)Xe=zt.height-vt.y+2*this._viewportMargin,At=zt.height-Xe+this._viewportMargin;else{const _n=Math.min(zt.bottom-vt.y+zt.top,vt.y),Jt=this._lastBoundingBoxSize.height;At=2*_n,$e=vt.y-_n,At>Jt&&!this._isInitialRender&&!this._growAfterOpen&&($e=vt.y-Jt/2)}if("end"===xt.overlayX&&!bt||"start"===xt.overlayX&&bt)xn=zt.width-vt.x+this._viewportMargin,mt=vt.x-this._viewportMargin;else if("start"===xt.overlayX&&!bt||"end"===xt.overlayX&&bt)It=vt.x,mt=zt.right-vt.x;else{const _n=Math.min(zt.right-vt.x+zt.left,vt.x),Jt=this._lastBoundingBoxSize.width;mt=2*_n,It=vt.x-_n,mt>Jt&&!this._isInitialRender&&!this._growAfterOpen&&(It=vt.x-Jt/2)}return{top:$e,left:It,bottom:Xe,right:xn,width:mt,height:At}}_setBoundingBoxStyles(vt,xt){const zt=this._calculateBoundingBoxRect(vt,xt);!this._isInitialRender&&!this._growAfterOpen&&(zt.height=Math.min(zt.height,this._lastBoundingBoxSize.height),zt.width=Math.min(zt.width,this._lastBoundingBoxSize.width));const bt={};if(this._hasExactPosition())bt.top=bt.left="0",bt.bottom=bt.right=bt.maxHeight=bt.maxWidth="",bt.width=bt.height="100%";else{const At=this._overlayRef.getConfig().maxHeight,$e=this._overlayRef.getConfig().maxWidth;bt.height=(0,t.HM)(zt.height),bt.top=(0,t.HM)(zt.top),bt.bottom=(0,t.HM)(zt.bottom),bt.width=(0,t.HM)(zt.width),bt.left=(0,t.HM)(zt.left),bt.right=(0,t.HM)(zt.right),bt.alignItems="center"===xt.overlayX?"center":"end"===xt.overlayX?"flex-end":"flex-start",bt.justifyContent="center"===xt.overlayY?"center":"bottom"===xt.overlayY?"flex-end":"flex-start",At&&(bt.maxHeight=(0,t.HM)(At)),$e&&(bt.maxWidth=(0,t.HM)($e))}this._lastBoundingBoxSize=zt,q(this._boundingBox.style,bt)}_resetBoundingBoxStyles(){q(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){q(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(vt,xt){const zt={},bt=this._hasExactPosition(),At=this._hasFlexibleDimensions,$e=this._overlayRef.getConfig();if(bt){const mt=this._viewportRuler.getViewportScrollPosition();q(zt,this._getExactOverlayY(xt,vt,mt)),q(zt,this._getExactOverlayX(xt,vt,mt))}else zt.position="static";let Xe="",Pe=this._getOffset(xt,"x"),Ve=this._getOffset(xt,"y");Pe&&(Xe+=`translateX(${Pe}px) `),Ve&&(Xe+=`translateY(${Ve}px)`),zt.transform=Xe.trim(),$e.maxHeight&&(bt?zt.maxHeight=(0,t.HM)($e.maxHeight):At&&(zt.maxHeight="")),$e.maxWidth&&(bt?zt.maxWidth=(0,t.HM)($e.maxWidth):At&&(zt.maxWidth="")),q(this._pane.style,zt)}_getExactOverlayY(vt,xt,zt){let bt={top:"",bottom:""},At=this._getOverlayPoint(xt,this._overlayRect,vt);return this._isPushed&&(At=this._pushOverlayOnScreen(At,this._overlayRect,zt)),"bottom"===vt.overlayY?bt.bottom=this._document.documentElement.clientHeight-(At.y+this._overlayRect.height)+"px":bt.top=(0,t.HM)(At.y),bt}_getExactOverlayX(vt,xt,zt){let $e,bt={left:"",right:""},At=this._getOverlayPoint(xt,this._overlayRect,vt);return this._isPushed&&(At=this._pushOverlayOnScreen(At,this._overlayRect,zt)),$e=this._isRtl()?"end"===vt.overlayX?"left":"right":"end"===vt.overlayX?"right":"left","right"===$e?bt.right=this._document.documentElement.clientWidth-(At.x+this._overlayRect.width)+"px":bt.left=(0,t.HM)(At.x),bt}_getScrollVisibility(){const vt=this._getOriginRect(),xt=this._pane.getBoundingClientRect(),zt=this._scrollables.map(bt=>bt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:X(vt,zt),isOriginOutsideView:V(vt,zt),isOverlayClipped:X(xt,zt),isOverlayOutsideView:V(xt,zt)}}_subtractOverflows(vt,...xt){return xt.reduce((zt,bt)=>zt-Math.max(bt,0),vt)}_getNarrowedViewportRect(){const vt=this._document.documentElement.clientWidth,xt=this._document.documentElement.clientHeight,zt=this._viewportRuler.getViewportScrollPosition();return{top:zt.top+this._viewportMargin,left:zt.left+this._viewportMargin,right:zt.left+vt-this._viewportMargin,bottom:zt.top+xt-this._viewportMargin,width:vt-2*this._viewportMargin,height:xt-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(vt,xt){return"x"===xt?null==vt.offsetX?this._offsetX:vt.offsetX:null==vt.offsetY?this._offsetY:vt.offsetY}_validatePositions(){}_addPanelClasses(vt){this._pane&&(0,t.Eq)(vt).forEach(xt=>{""!==xt&&-1===this._appliedPanelClasses.indexOf(xt)&&(this._appliedPanelClasses.push(xt),this._pane.classList.add(xt))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(vt=>{this._pane.classList.remove(vt)}),this._appliedPanelClasses=[])}_getOriginRect(){const vt=this._origin;if(vt instanceof a.ElementRef)return vt.nativeElement.getBoundingClientRect();if(vt instanceof Element)return vt.getBoundingClientRect();const xt=vt.width||0,zt=vt.height||0;return{top:vt.y,bottom:vt.y+zt,left:vt.x,right:vt.x+xt,height:zt,width:xt}}}function q(en,vt){for(let xt in vt)vt.hasOwnProperty(xt)&&(en[xt]=vt[xt]);return en}function se(en){if("number"!=typeof en&&null!=en){const[vt,xt]=en.split(de);return xt&&"px"!==xt?null:parseFloat(vt)}return en||null}function ve(en){return{top:Math.floor(en.top),right:Math.floor(en.right),bottom:Math.floor(en.bottom),left:Math.floor(en.left),width:Math.floor(en.width),height:Math.floor(en.height)}}const wt="cdk-global-overlay-wrapper";class Wt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(vt){const xt=vt.getConfig();this._overlayRef=vt,this._width&&!xt.width&&vt.updateSize({width:this._width}),this._height&&!xt.height&&vt.updateSize({height:this._height}),vt.hostElement.classList.add(wt),this._isDisposed=!1}top(vt=""){return this._bottomOffset="",this._topOffset=vt,this._alignItems="flex-start",this}left(vt=""){return this._xOffset=vt,this._xPosition="left",this}bottom(vt=""){return this._topOffset="",this._bottomOffset=vt,this._alignItems="flex-end",this}right(vt=""){return this._xOffset=vt,this._xPosition="right",this}start(vt=""){return this._xOffset=vt,this._xPosition="start",this}end(vt=""){return this._xOffset=vt,this._xPosition="end",this}width(vt=""){return this._overlayRef?this._overlayRef.updateSize({width:vt}):this._width=vt,this}height(vt=""){return this._overlayRef?this._overlayRef.updateSize({height:vt}):this._height=vt,this}centerHorizontally(vt=""){return this.left(vt),this._xPosition="center",this}centerVertically(vt=""){return this.top(vt),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const vt=this._overlayRef.overlayElement.style,xt=this._overlayRef.hostElement.style,zt=this._overlayRef.getConfig(),{width:bt,height:At,maxWidth:$e,maxHeight:Xe}=zt,Pe=!("100%"!==bt&&"100vw"!==bt||$e&&"100%"!==$e&&"100vw"!==$e),Ve=!("100%"!==At&&"100vh"!==At||Xe&&"100%"!==Xe&&"100vh"!==Xe),mt=this._xPosition,It=this._xOffset,xn="rtl"===this._overlayRef.getConfig().direction;let _n="",Jt="",ke="";Pe?ke="flex-start":"center"===mt?(ke="center",xn?Jt=It:_n=It):xn?"left"===mt||"end"===mt?(ke="flex-end",_n=It):("right"===mt||"start"===mt)&&(ke="flex-start",Jt=It):"left"===mt||"start"===mt?(ke="flex-start",_n=It):("right"===mt||"end"===mt)&&(ke="flex-end",Jt=It),vt.position=this._cssPosition,vt.marginLeft=Pe?"0":_n,vt.marginTop=Ve?"0":this._topOffset,vt.marginBottom=this._bottomOffset,vt.marginRight=Pe?"0":Jt,xt.justifyContent=ke,xt.alignItems=Ve?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const vt=this._overlayRef.overlayElement.style,xt=this._overlayRef.hostElement,zt=xt.style;xt.classList.remove(wt),zt.justifyContent=zt.alignItems=vt.marginTop=vt.marginBottom=vt.marginLeft=vt.marginRight=vt.position="",this._overlayRef=null,this._isDisposed=!0}}let Ut=(()=>{class en{constructor(xt,zt,bt,At){this._viewportRuler=xt,this._document=zt,this._platform=bt,this._overlayContainer=At}global(){return new Wt}flexibleConnectedTo(xt){return new me(xt,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return en.\u0275fac=function(xt){return new(xt||en)(a.\u0275\u0275inject(e.rL),a.\u0275\u0275inject(n.DOCUMENT),a.\u0275\u0275inject(l.t4),a.\u0275\u0275inject(H))},en.\u0275prov=a.\u0275\u0275defineInjectable({token:en,factory:en.\u0275fac,providedIn:"root"}),en})(),nt=0,Zt=(()=>{class en{constructor(xt,zt,bt,At,$e,Xe,Pe,Ve,mt,It,xn,_n){this.scrollStrategies=xt,this._overlayContainer=zt,this._componentFactoryResolver=bt,this._positionBuilder=At,this._keyboardDispatcher=$e,this._injector=Xe,this._ngZone=Pe,this._document=Ve,this._directionality=mt,this._location=It,this._outsideClickDispatcher=xn,this._animationsModuleType=_n}create(xt){const zt=this._createHostElement(),bt=this._createPaneElement(zt),At=this._createPortalOutlet(bt),$e=new ae(xt);return $e.direction=$e.direction||this._directionality.value,new N(At,zt,bt,$e,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(xt){const zt=this._document.createElement("div");return zt.id="cdk-overlay-"+nt++,zt.classList.add("cdk-overlay-pane"),xt.appendChild(zt),zt}_createHostElement(){const xt=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(xt),xt}_createPortalOutlet(xt){return this._appRef||(this._appRef=this._injector.get(a.ApplicationRef)),new g.u0(xt,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return en.\u0275fac=function(xt){return new(xt||en)(a.\u0275\u0275inject(Q),a.\u0275\u0275inject(H),a.\u0275\u0275inject(a.ComponentFactoryResolver),a.\u0275\u0275inject(Ut),a.\u0275\u0275inject(le),a.\u0275\u0275inject(a.Injector),a.\u0275\u0275inject(a.NgZone),a.\u0275\u0275inject(n.DOCUMENT),a.\u0275\u0275inject(u.Is),a.\u0275\u0275inject(n.Location),a.\u0275\u0275inject(T),a.\u0275\u0275inject(a.ANIMATION_MODULE_TYPE,8))},en.\u0275prov=a.\u0275\u0275defineInjectable({token:en,factory:en.\u0275fac,providedIn:"root"}),en})();const Fe=[{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"}],yt=new a.InjectionToken("cdk-connected-overlay-scroll-strategy");let ie=(()=>{class en{constructor(xt){this.elementRef=xt}}return en.\u0275fac=function(xt){return new(xt||en)(a.\u0275\u0275directiveInject(a.ElementRef))},en.\u0275dir=a.\u0275\u0275defineDirective({type:en,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),en})(),Ce=(()=>{class en{get offsetX(){return this._offsetX}set offsetX(xt){this._offsetX=xt,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(xt){this._offsetY=xt,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(xt){this._hasBackdrop=(0,t.Ig)(xt)}get lockPosition(){return this._lockPosition}set lockPosition(xt){this._lockPosition=(0,t.Ig)(xt)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(xt){this._flexibleDimensions=(0,t.Ig)(xt)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(xt){this._growAfterOpen=(0,t.Ig)(xt)}get push(){return this._push}set push(xt){this._push=(0,t.Ig)(xt)}constructor(xt,zt,bt,At,$e){this._overlay=xt,this._dir=$e,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=y.w0.EMPTY,this._attachSubscription=y.w0.EMPTY,this._detachSubscription=y.w0.EMPTY,this._positionSubscription=y.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new a.EventEmitter,this.positionChange=new a.EventEmitter,this.attach=new a.EventEmitter,this.detach=new a.EventEmitter,this.overlayKeydown=new a.EventEmitter,this.overlayOutsideClick=new a.EventEmitter,this._templatePortal=new g.UE(zt,bt),this._scrollStrategyFactory=At,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(xt){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),xt.origin&&this.open&&this._position.apply()),xt.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Fe);const xt=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=xt.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=xt.detachments().subscribe(()=>this.detach.emit()),xt.keydownEvents().subscribe(zt=>{this.overlayKeydown.next(zt),zt.keyCode===S.hY&&!this.disableClose&&!(0,S.Vb)(zt)&&(zt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(zt=>{this.overlayOutsideClick.next(zt)})}_buildConfig(){const xt=this._position=this.positionStrategy||this._createPositionStrategy(),zt=new ae({direction:this._dir,positionStrategy:xt,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(zt.width=this.width),(this.height||0===this.height)&&(zt.height=this.height),(this.minWidth||0===this.minWidth)&&(zt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(zt.minHeight=this.minHeight),this.backdropClass&&(zt.backdropClass=this.backdropClass),this.panelClass&&(zt.panelClass=this.panelClass),zt}_updatePositionStrategy(xt){const zt=this.positions.map(bt=>({originX:bt.originX,originY:bt.originY,overlayX:bt.overlayX,overlayY:bt.overlayY,offsetX:bt.offsetX||this.offsetX,offsetY:bt.offsetY||this.offsetY,panelClass:bt.panelClass||void 0}));return xt.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(zt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const xt=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(xt),xt}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ie?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(xt=>{this.backdropClick.emit(xt)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,p.o)(()=>this.positionChange.observers.length>0)).subscribe(xt=>{this.positionChange.emit(xt),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return en.\u0275fac=function(xt){return new(xt||en)(a.\u0275\u0275directiveInject(Zt),a.\u0275\u0275directiveInject(a.TemplateRef),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(yt),a.\u0275\u0275directiveInject(u.Is,8))},en.\u0275dir=a.\u0275\u0275defineDirective({type:en,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:[a.\u0275\u0275NgOnChangesFeature]}),en})();const dt={provide:yt,deps:[Zt],useFactory:function Ie(en){return()=>en.scrollStrategies.reposition()}};let Mt=(()=>{class en{}return en.\u0275fac=function(xt){return new(xt||en)},en.\u0275mod=a.\u0275\u0275defineNgModule({type:en}),en.\u0275inj=a.\u0275\u0275defineInjector({providers:[Zt,dt],imports:[u.vT,g.eL,e.Cl,e.Cl]}),en})()},83353:(oe,x,i)=>{"use strict";i.d(x,{Mq:()=>b,Oy:()=>V,_i:()=>S,ht:()=>P,i$:()=>g,kV:()=>A,qK:()=>d,sA:()=>B,t4:()=>t,ud:()=>l});var e=i(94650),n=i(36895);let a;try{a=typeof Intl<"u"&&Intl.v8BreakIterator}catch{a=!1}let h,t=(()=>{class X{constructor(Q){this._platformId=Q,this.isBrowser=this._platformId?(0,n.isPlatformBrowser)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!a)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return X.\u0275fac=function(Q){return new(Q||X)(e.\u0275\u0275inject(e.PLATFORM_ID))},X.\u0275prov=e.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),l=(()=>{class X{}return X.\u0275fac=function(Q){return new(Q||X)},X.\u0275mod=e.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=e.\u0275\u0275defineInjector({}),X})();const s=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function d(){if(h)return h;if("object"!=typeof document||!document)return h=new Set(s),h;let X=document.createElement("input");return h=new Set(s.filter(re=>(X.setAttribute("type",re),X.type===re))),h}let p,v,y,E;function g(X){return function u(){if(null==p&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>p=!0}))}finally{p=p||!1}return p}()?X:!!X.capture}function b(){if(null==y){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return y=!1,y;if("scrollBehavior"in document.documentElement.style)y=!0;else{const X=Element.prototype.scrollTo;y=!!X&&!/\{\s*\[native code\]\s*\}/.test(X.toString())}}return y}function S(){if("object"!=typeof document||!document)return 0;if(null==v){const X=document.createElement("div"),re=X.style;X.dir="rtl",re.width="1px",re.overflow="auto",re.visibility="hidden",re.pointerEvents="none",re.position="absolute";const Q=document.createElement("div"),ae=Q.style;ae.width="2px",ae.height="1px",X.appendChild(Q),document.body.appendChild(X),v=0,0===X.scrollLeft&&(X.scrollLeft=1,v=0===X.scrollLeft?1:2),X.remove()}return v}function A(X){if(function D(){if(null==E){const X=typeof document<"u"?document.head:null;E=!(!X||!X.createShadowRoot&&!X.attachShadow)}return E}()){const re=X.getRootNode?X.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&re instanceof ShadowRoot)return re}return null}function P(){let X=typeof document<"u"&&document?document.activeElement:null;for(;X&&X.shadowRoot;){const re=X.shadowRoot.activeElement;if(re===X)break;X=re}return X}function B(X){return X.composedPath?X.composedPath()[0]:X.target}function V(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(oe,x,i)=>{"use strict";i.d(x,{C5:()=>u,Pl:()=>P,UE:()=>g,eL:()=>V,en:()=>y,ig:()=>D,u0:()=>S});var e=i(94650),n=i(36895);class p{attach(Q){return this._attachedHost=Q,Q.attach(this)}detach(){let Q=this._attachedHost;null!=Q&&(this._attachedHost=null,Q.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Q){this._attachedHost=Q}}class u extends p{constructor(Q,ae,K,k,$){super(),this.component=Q,this.viewContainerRef=ae,this.injector=K,this.componentFactoryResolver=k,this.projectableNodes=$}}class g extends p{constructor(Q,ae,K,k){super(),this.templateRef=Q,this.viewContainerRef=ae,this.context=K,this.injector=k}get origin(){return this.templateRef.elementRef}attach(Q,ae=this.context){return this.context=ae,super.attach(Q)}detach(){return this.context=void 0,super.detach()}}class v extends p{constructor(Q){super(),this.element=Q instanceof e.ElementRef?Q.nativeElement:Q}}class y{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Q){return Q instanceof u?(this._attachedPortal=Q,this.attachComponentPortal(Q)):Q instanceof g?(this._attachedPortal=Q,this.attachTemplatePortal(Q)):this.attachDomPortal&&Q instanceof v?(this._attachedPortal=Q,this.attachDomPortal(Q)):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(Q){this._disposeFn=Q}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class S extends y{constructor(Q,ae,K,k,$){super(),this.outletElement=Q,this._componentFactoryResolver=ae,this._appRef=K,this._defaultInjector=k,this.attachDomPortal=j=>{const R=j.element,U=this._document.createComment("dom-portal");R.parentNode.insertBefore(U,R),this.outletElement.appendChild(R),this._attachedPortal=j,super.setDisposeFn(()=>{U.parentNode&&U.parentNode.replaceChild(R,U)})},this._document=$}attachComponentPortal(Q){const K=(Q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Q.component);let k;return Q.viewContainerRef?(k=Q.viewContainerRef.createComponent(K,Q.viewContainerRef.length,Q.injector||Q.viewContainerRef.injector,Q.projectableNodes||void 0),this.setDisposeFn(()=>k.destroy())):(k=K.create(Q.injector||this._defaultInjector||e.Injector.NULL),this._appRef.attachView(k.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(k.hostView),k.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(k)),this._attachedPortal=Q,k}attachTemplatePortal(Q){let ae=Q.viewContainerRef,K=ae.createEmbeddedView(Q.templateRef,Q.context,{injector:Q.injector});return K.rootNodes.forEach(k=>this.outletElement.appendChild(k)),K.detectChanges(),this.setDisposeFn(()=>{let k=ae.indexOf(K);-1!==k&&ae.remove(k)}),this._attachedPortal=Q,K}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Q){return Q.hostView.rootNodes[0]}}let D=(()=>{class re extends g{constructor(ae,K){super(ae,K)}}return re.\u0275fac=function(ae){return new(ae||re)(e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(e.ViewContainerRef))},re.\u0275dir=e.\u0275\u0275defineDirective({type:re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.\u0275\u0275InheritDefinitionFeature]}),re})(),P=(()=>{class re extends y{constructor(ae,K,k){super(),this._componentFactoryResolver=ae,this._viewContainerRef=K,this._isInitialized=!1,this.attached=new e.EventEmitter,this.attachDomPortal=$=>{const j=$.element,R=this._document.createComment("dom-portal");$.setAttachedHost(this),j.parentNode.insertBefore(R,j),this._getRootNode().appendChild(j),this._attachedPortal=$,super.setDisposeFn(()=>{R.parentNode&&R.parentNode.replaceChild(j,R)})},this._document=k}get portal(){return this._attachedPortal}set portal(ae){this.hasAttached()&&!ae&&!this._isInitialized||(this.hasAttached()&&super.detach(),ae&&super.attach(ae),this._attachedPortal=ae||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ae){ae.setAttachedHost(this);const K=null!=ae.viewContainerRef?ae.viewContainerRef:this._viewContainerRef,$=(ae.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ae.component),j=K.createComponent($,K.length,ae.injector||K.injector,ae.projectableNodes||void 0);return K!==this._viewContainerRef&&this._getRootNode().appendChild(j.hostView.rootNodes[0]),super.setDisposeFn(()=>j.destroy()),this._attachedPortal=ae,this._attachedRef=j,this.attached.emit(j),j}attachTemplatePortal(ae){ae.setAttachedHost(this);const K=this._viewContainerRef.createEmbeddedView(ae.templateRef,ae.context,{injector:ae.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ae,this._attachedRef=K,this.attached.emit(K),K}_getRootNode(){const ae=this._viewContainerRef.element.nativeElement;return ae.nodeType===ae.ELEMENT_NODE?ae:ae.parentNode}}return re.\u0275fac=function(ae){return new(ae||re)(e.\u0275\u0275directiveInject(e.ComponentFactoryResolver),e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(n.DOCUMENT))},re.\u0275dir=e.\u0275\u0275defineDirective({type:re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.\u0275\u0275InheritDefinitionFeature]}),re})(),V=(()=>{class re{}return re.\u0275fac=function(ae){return new(ae||re)},re.\u0275mod=e.\u0275\u0275defineNgModule({type:re}),re.\u0275inj=e.\u0275\u0275defineInjector({}),re})()},67376:(oe,x,i)=>{"use strict";i.d(x,{Cl:()=>me,PQ:()=>ae,ZD:()=>de,mF:()=>Q,rL:()=>k});var e=i(21281),n=i(94650),a=i(77579),t=i(39646),l=i(69751),h=i(54968),s=i(66406),d=i(53101),p=i(50727),u=i(23601),g=i(39300),v=i(82722),y=i(68675),b=i(83353),S=i(36895),E=i(40445);const D=["contentWrapper"],A=["*"],P=new n.InjectionToken("VIRTUAL_SCROLL_STRATEGY");let Q=(()=>{class q{constructor(ve,Ee,Ye){this._ngZone=ve,this._platform=Ee,this._scrolled=new a.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ye}register(ve){this.scrollContainers.has(ve)||this.scrollContainers.set(ve,ve.elementScrolled().subscribe(()=>this._scrolled.next(ve)))}deregister(ve){const Ee=this.scrollContainers.get(ve);Ee&&(Ee.unsubscribe(),this.scrollContainers.delete(ve))}scrolled(ve=20){return this._platform.isBrowser?new l.y(Ee=>{this._globalSubscription||this._addGlobalListener();const Ye=ve>0?this._scrolled.pipe((0,u.e)(ve)).subscribe(Ee):this._scrolled.subscribe(Ee);return this._scrolledCount++,()=>{Ye.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,t.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ve,Ee)=>this.deregister(Ee)),this._scrolled.complete()}ancestorScrolled(ve,Ee){const Ye=this.getAncestorScrollContainers(ve);return this.scrolled(Ee).pipe((0,g.h)(wt=>!wt||Ye.indexOf(wt)>-1))}getAncestorScrollContainers(ve){const Ee=[];return this.scrollContainers.forEach((Ye,wt)=>{this._scrollableContainsElement(wt,ve)&&Ee.push(wt)}),Ee}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ve,Ee){let Ye=(0,e.fI)(Ee),wt=ve.getElementRef().nativeElement;do{if(Ye==wt)return!0}while(Ye=Ye.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ve=this._getWindow();return(0,h.R)(ve.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return q.\u0275fac=function(ve){return new(ve||q)(n.\u0275\u0275inject(n.NgZone),n.\u0275\u0275inject(b.t4),n.\u0275\u0275inject(S.DOCUMENT,8))},q.\u0275prov=n.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"}),q})(),ae=(()=>{class q{constructor(ve,Ee,Ye,wt){this.elementRef=ve,this.scrollDispatcher=Ee,this.ngZone=Ye,this.dir=wt,this._destroyed=new a.x,this._elementScrolled=new l.y(Wt=>this.ngZone.runOutsideAngular(()=>(0,h.R)(this.elementRef.nativeElement,"scroll").pipe((0,v.R)(this._destroyed)).subscribe(Wt)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ve){const Ee=this.elementRef.nativeElement,Ye=this.dir&&"rtl"==this.dir.value;null==ve.left&&(ve.left=Ye?ve.end:ve.start),null==ve.right&&(ve.right=Ye?ve.start:ve.end),null!=ve.bottom&&(ve.top=Ee.scrollHeight-Ee.clientHeight-ve.bottom),Ye&&0!=(0,b._i)()?(null!=ve.left&&(ve.right=Ee.scrollWidth-Ee.clientWidth-ve.left),2==(0,b._i)()?ve.left=ve.right:1==(0,b._i)()&&(ve.left=ve.right?-ve.right:ve.right)):null!=ve.right&&(ve.left=Ee.scrollWidth-Ee.clientWidth-ve.right),this._applyScrollToOptions(ve)}_applyScrollToOptions(ve){const Ee=this.elementRef.nativeElement;(0,b.Mq)()?Ee.scrollTo(ve):(null!=ve.top&&(Ee.scrollTop=ve.top),null!=ve.left&&(Ee.scrollLeft=ve.left))}measureScrollOffset(ve){const Ee="left",wt=this.elementRef.nativeElement;if("top"==ve)return wt.scrollTop;if("bottom"==ve)return wt.scrollHeight-wt.clientHeight-wt.scrollTop;const Wt=this.dir&&"rtl"==this.dir.value;return"start"==ve?ve=Wt?"right":Ee:"end"==ve&&(ve=Wt?Ee:"right"),Wt&&2==(0,b._i)()?ve==Ee?wt.scrollWidth-wt.clientWidth-wt.scrollLeft:wt.scrollLeft:Wt&&1==(0,b._i)()?ve==Ee?wt.scrollLeft+wt.scrollWidth-wt.clientWidth:-wt.scrollLeft:ve==Ee?wt.scrollLeft:wt.scrollWidth-wt.clientWidth-wt.scrollLeft}}return q.\u0275fac=function(ve){return new(ve||q)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Q),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(E.Is,8))},q.\u0275dir=n.\u0275\u0275defineDirective({type:q,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),q})(),k=(()=>{class q{constructor(ve,Ee,Ye){this._platform=ve,this._change=new a.x,this._changeListener=wt=>{this._change.next(wt)},this._document=Ye,Ee.runOutsideAngular(()=>{if(ve.isBrowser){const wt=this._getWindow();wt.addEventListener("resize",this._changeListener),wt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ve=this._getWindow();ve.removeEventListener("resize",this._changeListener),ve.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ve={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ve}getViewportRect(){const ve=this.getViewportScrollPosition(),{width:Ee,height:Ye}=this.getViewportSize();return{top:ve.top,left:ve.left,bottom:ve.top+Ye,right:ve.left+Ee,height:Ye,width:Ee}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ve=this._document,Ee=this._getWindow(),Ye=ve.documentElement,wt=Ye.getBoundingClientRect();return{top:-wt.top||ve.body.scrollTop||Ee.scrollY||Ye.scrollTop||0,left:-wt.left||ve.body.scrollLeft||Ee.scrollX||Ye.scrollLeft||0}}change(ve=20){return ve>0?this._change.pipe((0,u.e)(ve)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ve=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ve.innerWidth,height:ve.innerHeight}:{width:0,height:0}}}return q.\u0275fac=function(ve){return new(ve||q)(n.\u0275\u0275inject(b.t4),n.\u0275\u0275inject(n.NgZone),n.\u0275\u0275inject(S.DOCUMENT,8))},q.\u0275prov=n.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const $=new n.InjectionToken("VIRTUAL_SCROLLABLE");let j=(()=>{class q extends ae{constructor(ve,Ee,Ye,wt){super(ve,Ee,Ye,wt)}measureViewportSize(ve){const Ee=this.elementRef.nativeElement;return"horizontal"===ve?Ee.clientWidth:Ee.clientHeight}}return q.\u0275fac=function(ve){return new(ve||q)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Q),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(E.Is,8))},q.\u0275dir=n.\u0275\u0275defineDirective({type:q,features:[n.\u0275\u0275InheritDefinitionFeature]}),q})();const U=typeof requestAnimationFrame<"u"?s.Z:d.E;let le=(()=>{class q extends j{get orientation(){return this._orientation}set orientation(ve){this._orientation!==ve&&(this._orientation=ve,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(ve){this._appendOnly=(0,e.Ig)(ve)}constructor(ve,Ee,Ye,wt,Wt,Ut,nt,Zt){super(ve,Ut,Ye,Wt),this.elementRef=ve,this._changeDetectorRef=Ee,this._scrollStrategy=wt,this.scrollable=Zt,this._platform=(0,n.inject)(b.t4),this._detachedSubject=new a.x,this._renderedRangeSubject=new a.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new l.y(Fe=>this._scrollStrategy.scrolledIndexChange.subscribe(yt=>Promise.resolve().then(()=>this.ngZone.run(()=>Fe.next(yt))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=p.w0.EMPTY,this._viewportChanges=nt.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,y.O)(null),(0,u.e)(0,U)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(ve){this.ngZone.runOutsideAngular(()=>{this._forOf=ve,this._forOf.dataStream.pipe((0,v.R)(this._detachedSubject)).subscribe(Ee=>{const Ye=Ee.length;Ye!==this._dataLength&&(this._dataLength=Ye,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(ve){return this.getElementRef().nativeElement.getBoundingClientRect()[ve]}setTotalContentSize(ve){this._totalContentSize!==ve&&(this._totalContentSize=ve,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ve){(function R(q,se){return q.start==se.start&&q.end==se.end})(this._renderedRange,ve)||(this.appendOnly&&(ve={start:0,end:Math.max(this._renderedRange.end,ve.end)}),this._renderedRangeSubject.next(this._renderedRange=ve),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ve,Ee="to-start"){ve=this.appendOnly&&"to-start"===Ee?0:ve;const wt="horizontal"==this.orientation,Wt=wt?"X":"Y";let nt=`translate${Wt}(${Number((wt&&this.dir&&"rtl"==this.dir.value?-1:1)*ve)}px)`;this._renderedContentOffset=ve,"to-end"===Ee&&(nt+=` translate${Wt}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=nt&&(this._renderedContentTransform=nt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ve,Ee="auto"){const Ye={behavior:Ee};"horizontal"===this.orientation?Ye.start=ve:Ye.top=ve,this.scrollable.scrollTo(Ye)}scrollToIndex(ve,Ee="auto"){this._scrollStrategy.scrollToIndex(ve,Ee)}measureScrollOffset(ve){let Ee;return Ee=this.scrollable==this?Ye=>super.measureScrollOffset(Ye):Ye=>this.scrollable.measureScrollOffset(Ye),Math.max(0,Ee(ve??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(ve){let Ee;const Wt="rtl"==this.dir?.value;Ee="start"==ve?Wt?"right":"left":"end"==ve?Wt?"left":"right":ve||("horizontal"===this.orientation?"left":"top");const Ut=this.scrollable.measureBoundingClientRectWithScrollOffset(Ee);return this.elementRef.nativeElement.getBoundingClientRect()[Ee]-Ut}measureRenderedContentSize(){const ve=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ve.offsetWidth:ve.offsetHeight}measureRangeSize(ve){return this._forOf?this._forOf.measureRangeSize(ve,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(ve){ve&&this._runAfterChangeDetection.push(ve),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const ve=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Ee of ve)Ee()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return q.\u0275fac=function(ve){return new(ve||q)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(P,8),n.\u0275\u0275directiveInject(E.Is,8),n.\u0275\u0275directiveInject(Q),n.\u0275\u0275directiveInject(k),n.\u0275\u0275directiveInject($,8))},q.\u0275cmp=n.\u0275\u0275defineComponent({type:q,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ve,Ee){if(1&ve&&n.\u0275\u0275viewQuery(D,7),2&ve){let Ye;n.\u0275\u0275queryRefresh(Ye=n.\u0275\u0275loadQuery())&&(Ee._contentWrapper=Ye.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ve,Ee){2&ve&&n.\u0275\u0275classProp("cdk-virtual-scroll-orientation-horizontal","horizontal"===Ee.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Ee.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[n.\u0275\u0275ProvidersFeature([{provide:ae,useFactory:(se,ve)=>se||ve,deps:[[new n.Optional,new n.Inject($)],q]}]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275StandaloneFeature],ngContentSelectors:A,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ve,Ee){1&ve&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0,1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(3,"div",2)),2&ve&&(n.\u0275\u0275advance(3),n.\u0275\u0275styleProp("width",Ee._totalContentWidth)("height",Ee._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),q})(),de=(()=>{class q{}return q.\u0275fac=function(ve){return new(ve||q)},q.\u0275mod=n.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=n.\u0275\u0275defineInjector({}),q})(),me=(()=>{class q{}return q.\u0275fac=function(ve){return new(ve||q)},q.\u0275mod=n.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=n.\u0275\u0275defineInjector({imports:[E.vT,de,le,E.vT,de]}),q})()},39349:(oe,x,i)=>{"use strict";i.d(x,{Ky:()=>u,Lq:()=>s});var e=i(83353),n=i(94650),a=i(21281),t=i(60515),l=i(77579);const h=(0,e.i$)({passive:!0});let s=(()=>{class g{constructor(y,b){this._platform=y,this._ngZone=b,this._monitoredElements=new Map}monitor(y){if(!this._platform.isBrowser)return t.E;const b=(0,a.fI)(y),S=this._monitoredElements.get(b);if(S)return S.subject;const E=new l.x,D="cdk-text-field-autofilled",A=P=>{"cdk-text-field-autofill-start"!==P.animationName||b.classList.contains(D)?"cdk-text-field-autofill-end"===P.animationName&&b.classList.contains(D)&&(b.classList.remove(D),this._ngZone.run(()=>E.next({target:P.target,isAutofilled:!1}))):(b.classList.add(D),this._ngZone.run(()=>E.next({target:P.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{b.addEventListener("animationstart",A,h),b.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(b,{subject:E,unlisten:()=>{b.removeEventListener("animationstart",A,h)}}),E}stopMonitoring(y){const b=(0,a.fI)(y),S=this._monitoredElements.get(b);S&&(S.unlisten(),S.subject.complete(),b.classList.remove("cdk-text-field-autofill-monitored"),b.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(b))}ngOnDestroy(){this._monitoredElements.forEach((y,b)=>this.stopMonitoring(b))}}return g.\u0275fac=function(y){return new(y||g)(n.\u0275\u0275inject(e.t4),n.\u0275\u0275inject(n.NgZone))},g.\u0275prov=n.\u0275\u0275defineInjectable({token:g,factory:g.\u0275fac,providedIn:"root"}),g})(),u=(()=>{class g{}return g.\u0275fac=function(y){return new(y||g)},g.\u0275mod=n.\u0275\u0275defineNgModule({type:g}),g.\u0275inj=n.\u0275\u0275defineInjector({}),g})()},36895:(oe,x,i)=>{"use strict";i.r(x),i.d(x,{APP_BASE_HREF:()=>D,AsyncPipe:()=>Er,BrowserPlatformLocation:()=>u,CommonModule:()=>yn,CurrencyPipe:()=>ne,DATE_PIPE_DEFAULT_OPTIONS:()=>Sn,DATE_PIPE_DEFAULT_TIMEZONE:()=>Bn,DOCUMENT:()=>h,DatePipe:()=>Lt,DecimalPipe:()=>Re,FormStyle:()=>$,FormatWidth:()=>R,HashLocationStrategy:()=>P,I18nPluralPipe:()=>Di,I18nSelectPipe:()=>Wi,IMAGE_CONFIG:()=>os,IMAGE_LOADER:()=>Yi,JsonPipe:()=>Ar,KeyValuePipe:()=>bo,LOCATION_INITIALIZED:()=>p,Location:()=>B,LocationStrategy:()=>E,LowerCasePipe:()=>pr,NgClass:()=>Le,NgComponentOutlet:()=>Ft,NgFor:()=>$i,NgForOf:()=>$i,NgForOfContext:()=>gi,NgIf:()=>ti,NgIfContext:()=>Kn,NgLocaleLocalization:()=>ji,NgLocalization:()=>Rn,NgOptimizedImage:()=>ya,NgPlural:()=>jt,NgPluralCase:()=>Fn,NgStyle:()=>jn,NgSwitch:()=>et,NgSwitchCase:()=>tt,NgSwitchDefault:()=>nn,NgTemplateOutlet:()=>ri,NumberFormatStyle:()=>K,NumberSymbol:()=>U,PRECONNECT_CHECK_BLOCKLIST:()=>ka,PathLocationStrategy:()=>A,PercentPipe:()=>w,PlatformLocation:()=>s,Plural:()=>k,SlicePipe:()=>at,TitleCasePipe:()=>Tr,TranslationWidth:()=>j,UpperCasePipe:()=>Br,VERSION:()=>ii,ViewportScroller:()=>li,WeekDay:()=>le,XhrFactory:()=>Kt,formatCurrency:()=>On,formatDate:()=>Pe,formatNumber:()=>Ti,formatPercent:()=>Qn,getCurrencySymbol:()=>Xt,getLocaleCurrencyCode:()=>nt,getLocaleCurrencyName:()=>Ut,getLocaleCurrencySymbol:()=>Wt,getLocaleDateFormat:()=>se,getLocaleDateTimeFormat:()=>Ee,getLocaleDayNames:()=>N,getLocaleDayPeriods:()=>H,getLocaleDirection:()=>Ie,getLocaleEraNames:()=>de,getLocaleExtraDayPeriodRules:()=>ie,getLocaleExtraDayPeriods:()=>Ce,getLocaleFirstDayOfWeek:()=>me,getLocaleId:()=>T,getLocaleMonthNames:()=>pe,getLocaleNumberFormat:()=>wt,getLocaleNumberSymbol:()=>Ye,getLocalePluralCase:()=>Fe,getLocaleTimeFormat:()=>ve,getLocaleWeekEndRange:()=>q,getNumberOfCurrencyDigits:()=>vt,isPlatformBrowser:()=>wi,isPlatformServer:()=>an,isPlatformWorkerApp:()=>bn,isPlatformWorkerUi:()=>Dn,provideCloudflareLoader:()=>Io,provideCloudinaryLoader:()=>Uo,provideImageKitLoader:()=>Tt,provideImgixLoader:()=>rr,registerLocaleData:()=>ir,\u0275DomAdapter:()=>l,\u0275NullViewportScroller:()=>ut,\u0275PLATFORM_BROWSER_ID:()=>Tn,\u0275PLATFORM_SERVER_ID:()=>Yn,\u0275PLATFORM_WORKER_APP_ID:()=>Zn,\u0275PLATFORM_WORKER_UI_ID:()=>ui,\u0275getDOM:()=>a,\u0275parseCookieValue:()=>dr,\u0275setRootDomAdapter:()=>t});var e=i(94650);let n=null;function a(){return n}function t(Je){n||(n=Je)}class l{}const h=new e.InjectionToken("DocumentToken");let s=(()=>{class Je{historyGo(st){throw new Error("Not implemented")}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275prov=e.\u0275\u0275defineInjectable({token:Je,factory:function(){return function d(){return(0,e.\u0275\u0275inject)(u)}()},providedIn:"platform"}),Je})();const p=new e.InjectionToken("Location Initialized");let u=(()=>{class Je extends s{constructor(st){super(),this._doc=st,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return a().getBaseHref(this._doc)}onPopState(st){const ln=a().getGlobalEventTarget(this._doc,"window");return ln.addEventListener("popstate",st,!1),()=>ln.removeEventListener("popstate",st)}onHashChange(st){const ln=a().getGlobalEventTarget(this._doc,"window");return ln.addEventListener("hashchange",st,!1),()=>ln.removeEventListener("hashchange",st)}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(st){this._location.pathname=st}pushState(st,ln,An){g()?this._history.pushState(st,ln,An):this._location.hash=An}replaceState(st,ln,An){g()?this._history.replaceState(st,ln,An):this._location.hash=An}forward(){this._history.forward()}back(){this._history.back()}historyGo(st=0){this._history.go(st)}getState(){return this._history.state}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275inject(h))},Je.\u0275prov=e.\u0275\u0275defineInjectable({token:Je,factory:function(){return function v(){return new u((0,e.\u0275\u0275inject)(h))}()},providedIn:"platform"}),Je})();function g(){return!!window.history.pushState}function y(Je,Vt){if(0==Je.length)return Vt;if(0==Vt.length)return Je;let st=0;return Je.endsWith("/")&&st++,Vt.startsWith("/")&&st++,2==st?Je+Vt.substring(1):1==st?Je+Vt:Je+"/"+Vt}function b(Je){const Vt=Je.match(/#|\?|$/),st=Vt&&Vt.index||Je.length;return Je.slice(0,st-("/"===Je[st-1]?1:0))+Je.slice(st)}function S(Je){return Je&&"?"!==Je[0]?"?"+Je:Je}let E=(()=>{class Je{historyGo(st){throw new Error("Not implemented")}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275prov=e.\u0275\u0275defineInjectable({token:Je,factory:function(){return(0,e.inject)(A)},providedIn:"root"}),Je})();const D=new e.InjectionToken("appBaseHref");let A=(()=>{class Je extends E{constructor(st,ln){super(),this._platformLocation=st,this._removeListenerFns=[],this._baseHref=ln??this._platformLocation.getBaseHrefFromDOM()??(0,e.inject)(h).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(st){this._removeListenerFns.push(this._platformLocation.onPopState(st),this._platformLocation.onHashChange(st))}getBaseHref(){return this._baseHref}prepareExternalUrl(st){return y(this._baseHref,st)}path(st=!1){const ln=this._platformLocation.pathname+S(this._platformLocation.search),An=this._platformLocation.hash;return An&&st?`${ln}${An}`:ln}pushState(st,ln,An,yi){const Pi=this.prepareExternalUrl(An+S(yi));this._platformLocation.pushState(st,ln,Pi)}replaceState(st,ln,An,yi){const Pi=this.prepareExternalUrl(An+S(yi));this._platformLocation.replaceState(st,ln,Pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(st=0){this._platformLocation.historyGo?.(st)}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275inject(s),e.\u0275\u0275inject(D,8))},Je.\u0275prov=e.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})(),P=(()=>{class Je extends E{constructor(st,ln){super(),this._platformLocation=st,this._baseHref="",this._removeListenerFns=[],null!=ln&&(this._baseHref=ln)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(st){this._removeListenerFns.push(this._platformLocation.onPopState(st),this._platformLocation.onHashChange(st))}getBaseHref(){return this._baseHref}path(st=!1){let ln=this._platformLocation.hash;return null==ln&&(ln="#"),ln.length>0?ln.substring(1):ln}prepareExternalUrl(st){const ln=y(this._baseHref,st);return ln.length>0?"#"+ln:ln}pushState(st,ln,An,yi){let Pi=this.prepareExternalUrl(An+S(yi));0==Pi.length&&(Pi=this._platformLocation.pathname),this._platformLocation.pushState(st,ln,Pi)}replaceState(st,ln,An,yi){let Pi=this.prepareExternalUrl(An+S(yi));0==Pi.length&&(Pi=this._platformLocation.pathname),this._platformLocation.replaceState(st,ln,Pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(st=0){this._platformLocation.historyGo?.(st)}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275inject(s),e.\u0275\u0275inject(D,8))},Je.\u0275prov=e.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac}),Je})(),B=(()=>{class Je{constructor(st){this._subject=new e.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=st;const ln=this._locationStrategy.getBaseHref();this._basePath=function Q(Je){if(new RegExp("^(https?:)?//").test(Je)){const[,st]=Je.split(/\/\/[^\/]+/);return st}return Je}(b(re(ln))),this._locationStrategy.onPopState(An=>{this._subject.emit({url:this.path(!0),pop:!0,state:An.state,type:An.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(st=!1){return this.normalize(this._locationStrategy.path(st))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(st,ln=""){return this.path()==this.normalize(st+S(ln))}normalize(st){return Je.stripTrailingSlash(function X(Je,Vt){if(!Je||!Vt.startsWith(Je))return Vt;const st=Vt.substring(Je.length);return""===st||["/",";","?","#"].includes(st[0])?st:Vt}(this._basePath,re(st)))}prepareExternalUrl(st){return st&&"/"!==st[0]&&(st="/"+st),this._locationStrategy.prepareExternalUrl(st)}go(st,ln="",An=null){this._locationStrategy.pushState(An,"",st,ln),this._notifyUrlChangeListeners(this.prepareExternalUrl(st+S(ln)),An)}replaceState(st,ln="",An=null){this._locationStrategy.replaceState(An,"",st,ln),this._notifyUrlChangeListeners(this.prepareExternalUrl(st+S(ln)),An)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(st=0){this._locationStrategy.historyGo?.(st)}onUrlChange(st){return this._urlChangeListeners.push(st),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ln=>{this._notifyUrlChangeListeners(ln.url,ln.state)})),()=>{const ln=this._urlChangeListeners.indexOf(st);this._urlChangeListeners.splice(ln,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(st="",ln){this._urlChangeListeners.forEach(An=>An(st,ln))}subscribe(st,ln,An){return this._subject.subscribe({next:st,error:ln,complete:An})}}return Je.normalizeQueryParams=S,Je.joinWithSlash=y,Je.stripTrailingSlash=b,Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275inject(E))},Je.\u0275prov=e.\u0275\u0275defineInjectable({token:Je,factory:function(){return function V(){return new B((0,e.\u0275\u0275inject)(E))}()},providedIn:"root"}),Je})();function re(Je){return Je.replace(/\/index.html$/,"")}const ae={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var K=(()=>((K=K||{})[K.Decimal=0]="Decimal",K[K.Percent=1]="Percent",K[K.Currency=2]="Currency",K[K.Scientific=3]="Scientific",K))(),k=(()=>((k=k||{})[k.Zero=0]="Zero",k[k.One=1]="One",k[k.Two=2]="Two",k[k.Few=3]="Few",k[k.Many=4]="Many",k[k.Other=5]="Other",k))(),$=(()=>(($=$||{})[$.Format=0]="Format",$[$.Standalone=1]="Standalone",$))(),j=(()=>((j=j||{})[j.Narrow=0]="Narrow",j[j.Abbreviated=1]="Abbreviated",j[j.Wide=2]="Wide",j[j.Short=3]="Short",j))(),R=(()=>((R=R||{})[R.Short=0]="Short",R[R.Medium=1]="Medium",R[R.Long=2]="Long",R[R.Full=3]="Full",R))(),U=(()=>((U=U||{})[U.Decimal=0]="Decimal",U[U.Group=1]="Group",U[U.List=2]="List",U[U.PercentSign=3]="PercentSign",U[U.PlusSign=4]="PlusSign",U[U.MinusSign=5]="MinusSign",U[U.Exponential=6]="Exponential",U[U.SuperscriptingExponent=7]="SuperscriptingExponent",U[U.PerMille=8]="PerMille",U[U.Infinity=9]="Infinity",U[U.NaN=10]="NaN",U[U.TimeSeparator=11]="TimeSeparator",U[U.CurrencyDecimal=12]="CurrencyDecimal",U[U.CurrencyGroup=13]="CurrencyGroup",U))(),le=(()=>((le=le||{})[le.Sunday=0]="Sunday",le[le.Monday=1]="Monday",le[le.Tuesday=2]="Tuesday",le[le.Wednesday=3]="Wednesday",le[le.Thursday=4]="Thursday",le[le.Friday=5]="Friday",le[le.Saturday=6]="Saturday",le))();function T(Je){return(0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.LocaleId]}function H(Je,Vt,st){const ln=(0,e.\u0275findLocaleData)(Je),yi=dt([ln[e.\u0275LocaleDataIndex.DayPeriodsFormat],ln[e.\u0275LocaleDataIndex.DayPeriodsStandalone]],Vt);return dt(yi,st)}function N(Je,Vt,st){const ln=(0,e.\u0275findLocaleData)(Je),yi=dt([ln[e.\u0275LocaleDataIndex.DaysFormat],ln[e.\u0275LocaleDataIndex.DaysStandalone]],Vt);return dt(yi,st)}function pe(Je,Vt,st){const ln=(0,e.\u0275findLocaleData)(Je),yi=dt([ln[e.\u0275LocaleDataIndex.MonthsFormat],ln[e.\u0275LocaleDataIndex.MonthsStandalone]],Vt);return dt(yi,st)}function de(Je,Vt){return dt((0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.Eras],Vt)}function me(Je){return(0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.FirstDayOfWeek]}function q(Je){return(0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.WeekendRange]}function se(Je,Vt){return dt((0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.DateFormat],Vt)}function ve(Je,Vt){return dt((0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.TimeFormat],Vt)}function Ee(Je,Vt){return dt((0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.DateTimeFormat],Vt)}function Ye(Je,Vt){const st=(0,e.\u0275findLocaleData)(Je),ln=st[e.\u0275LocaleDataIndex.NumberSymbols][Vt];if(typeof ln>"u"){if(Vt===U.CurrencyDecimal)return st[e.\u0275LocaleDataIndex.NumberSymbols][U.Decimal];if(Vt===U.CurrencyGroup)return st[e.\u0275LocaleDataIndex.NumberSymbols][U.Group]}return ln}function wt(Je,Vt){return(0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.NumberFormats][Vt]}function Wt(Je){return(0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.CurrencySymbol]||null}function Ut(Je){return(0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.CurrencyName]||null}function nt(Je){return(0,e.\u0275getLocaleCurrencyCode)(Je)}const Fe=e.\u0275getLocalePluralCase;function yt(Je){if(!Je[e.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${Je[e.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ie(Je){const Vt=(0,e.\u0275findLocaleData)(Je);return yt(Vt),(Vt[e.\u0275LocaleDataIndex.ExtraData][2]||[]).map(ln=>"string"==typeof ln?Mt(ln):[Mt(ln[0]),Mt(ln[1])])}function Ce(Je,Vt,st){const ln=(0,e.\u0275findLocaleData)(Je);yt(ln);const yi=dt([ln[e.\u0275LocaleDataIndex.ExtraData][0],ln[e.\u0275LocaleDataIndex.ExtraData][1]],Vt)||[];return dt(yi,st)||[]}function Ie(Je){return(0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.Directionality]}function dt(Je,Vt){for(let st=Vt;st>-1;st--)if(typeof Je[st]<"u")return Je[st];throw new Error("Locale data API: locale data undefined")}function Mt(Je){const[Vt,st]=Je.split(":");return{hours:+Vt,minutes:+st}}function Xt(Je,Vt,st="en"){const ln=function Zt(Je){return(0,e.\u0275findLocaleData)(Je)[e.\u0275LocaleDataIndex.Currencies]}(st)[Je]||ae[Je]||[],An=ln[1];return"narrow"===Vt&&"string"==typeof An?An:ln[0]||Je}const en=2;function vt(Je){let Vt;const st=ae[Je];return st&&(Vt=st[2]),"number"==typeof Vt?Vt:en}const xt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zt={},bt=/((?:[^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 At=(()=>((At=At||{})[At.Short=0]="Short",At[At.ShortGMT=1]="ShortGMT",At[At.Long=2]="Long",At[At.Extended=3]="Extended",At))(),$e=(()=>(($e=$e||{})[$e.FullYear=0]="FullYear",$e[$e.Month=1]="Month",$e[$e.Date=2]="Date",$e[$e.Hours=3]="Hours",$e[$e.Minutes=4]="Minutes",$e[$e.Seconds=5]="Seconds",$e[$e.FractionalSeconds=6]="FractionalSeconds",$e[$e.Day=7]="Day",$e))(),Xe=(()=>((Xe=Xe||{})[Xe.DayPeriods=0]="DayPeriods",Xe[Xe.Days=1]="Days",Xe[Xe.Months=2]="Months",Xe[Xe.Eras=3]="Eras",Xe))();function Pe(Je,Vt,st,ln){let An=function Be(Je){if(ue(Je))return Je;if("number"==typeof Je&&!isNaN(Je))return new Date(Je);if("string"==typeof Je){if(Je=Je.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Je)){const[An,yi=1,Pi=1]=Je.split("-").map(or=>+or);return Ve(An,yi-1,Pi)}const st=parseFloat(Je);if(!isNaN(Je-st))return new Date(st);let ln;if(ln=Je.match(xt))return function gt(Je){const Vt=new Date(0);let st=0,ln=0;const An=Je[8]?Vt.setUTCFullYear:Vt.setFullYear,yi=Je[8]?Vt.setUTCHours:Vt.setHours;Je[9]&&(st=Number(Je[9]+Je[10]),ln=Number(Je[9]+Je[11])),An.call(Vt,Number(Je[1]),Number(Je[2])-1,Number(Je[3]));const Pi=Number(Je[4]||0)-st,or=Number(Je[5]||0)-ln,Nr=Number(Je[6]||0),po=Math.floor(1e3*parseFloat("0."+(Je[7]||0)));return yi.call(Vt,Pi,or,Nr,po),Vt}(ln)}const Vt=new Date(Je);if(!ue(Vt))throw new Error(`Unable to convert "${Je}" into a date`);return Vt}(Je);Vt=mt(st,Vt)||Vt;let or,Pi=[];for(;Vt;){if(or=bt.exec(Vt),!or){Pi.push(Vt);break}{Pi=Pi.concat(or.slice(1));const Rr=Pi.pop();if(!Rr)break;Vt=Rr}}let Nr=An.getTimezoneOffset();ln&&(Nr=ct(ln,Nr),An=function it(Je,Vt,st){const ln=st?-1:1,An=Je.getTimezoneOffset();return function Yt(Je,Vt){return(Je=new Date(Je.getTime())).setMinutes(Je.getMinutes()+Vt),Je}(Je,ln*(ct(Vt,An)-An))}(An,ln,!0));let po="";return Pi.forEach(Rr=>{const Vr=function qe(Je){if(Qe[Je])return Qe[Je];let Vt;switch(Je){case"G":case"GG":case"GGG":Vt=Ae(Xe.Eras,j.Abbreviated);break;case"GGGG":Vt=Ae(Xe.Eras,j.Wide);break;case"GGGGG":Vt=Ae(Xe.Eras,j.Narrow);break;case"y":Vt=Jt($e.FullYear,1,0,!1,!0);break;case"yy":Vt=Jt($e.FullYear,2,0,!0,!0);break;case"yyy":Vt=Jt($e.FullYear,3,0,!1,!0);break;case"yyyy":Vt=Jt($e.FullYear,4,0,!1,!0);break;case"Y":Vt=ge(1);break;case"YY":Vt=ge(2,!0);break;case"YYY":Vt=ge(3);break;case"YYYY":Vt=ge(4);break;case"M":case"L":Vt=Jt($e.Month,1,1);break;case"MM":case"LL":Vt=Jt($e.Month,2,1);break;case"MMM":Vt=Ae(Xe.Months,j.Abbreviated);break;case"MMMM":Vt=Ae(Xe.Months,j.Wide);break;case"MMMMM":Vt=Ae(Xe.Months,j.Narrow);break;case"LLL":Vt=Ae(Xe.Months,j.Abbreviated,$.Standalone);break;case"LLLL":Vt=Ae(Xe.Months,j.Wide,$.Standalone);break;case"LLLLL":Vt=Ae(Xe.Months,j.Narrow,$.Standalone);break;case"w":Vt=Z(1);break;case"ww":Vt=Z(2);break;case"W":Vt=Z(1,!0);break;case"d":Vt=Jt($e.Date,1);break;case"dd":Vt=Jt($e.Date,2);break;case"c":case"cc":Vt=Jt($e.Day,1);break;case"ccc":Vt=Ae(Xe.Days,j.Abbreviated,$.Standalone);break;case"cccc":Vt=Ae(Xe.Days,j.Wide,$.Standalone);break;case"ccccc":Vt=Ae(Xe.Days,j.Narrow,$.Standalone);break;case"cccccc":Vt=Ae(Xe.Days,j.Short,$.Standalone);break;case"E":case"EE":case"EEE":Vt=Ae(Xe.Days,j.Abbreviated);break;case"EEEE":Vt=Ae(Xe.Days,j.Wide);break;case"EEEEE":Vt=Ae(Xe.Days,j.Narrow);break;case"EEEEEE":Vt=Ae(Xe.Days,j.Short);break;case"a":case"aa":case"aaa":Vt=Ae(Xe.DayPeriods,j.Abbreviated);break;case"aaaa":Vt=Ae(Xe.DayPeriods,j.Wide);break;case"aaaaa":Vt=Ae(Xe.DayPeriods,j.Narrow);break;case"b":case"bb":case"bbb":Vt=Ae(Xe.DayPeriods,j.Abbreviated,$.Standalone,!0);break;case"bbbb":Vt=Ae(Xe.DayPeriods,j.Wide,$.Standalone,!0);break;case"bbbbb":Vt=Ae(Xe.DayPeriods,j.Narrow,$.Standalone,!0);break;case"B":case"BB":case"BBB":Vt=Ae(Xe.DayPeriods,j.Abbreviated,$.Format,!0);break;case"BBBB":Vt=Ae(Xe.DayPeriods,j.Wide,$.Format,!0);break;case"BBBBB":Vt=Ae(Xe.DayPeriods,j.Narrow,$.Format,!0);break;case"h":Vt=Jt($e.Hours,1,-12);break;case"hh":Vt=Jt($e.Hours,2,-12);break;case"H":Vt=Jt($e.Hours,1);break;case"HH":Vt=Jt($e.Hours,2);break;case"m":Vt=Jt($e.Minutes,1);break;case"mm":Vt=Jt($e.Minutes,2);break;case"s":Vt=Jt($e.Seconds,1);break;case"ss":Vt=Jt($e.Seconds,2);break;case"S":Vt=Jt($e.FractionalSeconds,1);break;case"SS":Vt=Jt($e.FractionalSeconds,2);break;case"SSS":Vt=Jt($e.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Vt=pt(At.Short);break;case"ZZZZZ":Vt=pt(At.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Vt=pt(At.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Vt=pt(At.Long);break;default:return null}return Qe[Je]=Vt,Vt}(Rr);po+=Vr?Vr(An,st,Nr):"''"===Rr?"'":Rr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),po}function Ve(Je,Vt,st){const ln=new Date(0);return ln.setFullYear(Je,Vt,st),ln.setHours(0,0,0),ln}function mt(Je,Vt){const st=T(Je);if(zt[st]=zt[st]||{},zt[st][Vt])return zt[st][Vt];let ln="";switch(Vt){case"shortDate":ln=se(Je,R.Short);break;case"mediumDate":ln=se(Je,R.Medium);break;case"longDate":ln=se(Je,R.Long);break;case"fullDate":ln=se(Je,R.Full);break;case"shortTime":ln=ve(Je,R.Short);break;case"mediumTime":ln=ve(Je,R.Medium);break;case"longTime":ln=ve(Je,R.Long);break;case"fullTime":ln=ve(Je,R.Full);break;case"short":const An=mt(Je,"shortTime"),yi=mt(Je,"shortDate");ln=It(Ee(Je,R.Short),[An,yi]);break;case"medium":const Pi=mt(Je,"mediumTime"),or=mt(Je,"mediumDate");ln=It(Ee(Je,R.Medium),[Pi,or]);break;case"long":const Nr=mt(Je,"longTime"),po=mt(Je,"longDate");ln=It(Ee(Je,R.Long),[Nr,po]);break;case"full":const Rr=mt(Je,"fullTime"),Vr=mt(Je,"fullDate");ln=It(Ee(Je,R.Full),[Rr,Vr])}return ln&&(zt[st][Vt]=ln),ln}function It(Je,Vt){return Vt&&(Je=Je.replace(/\{([^}]+)}/g,function(st,ln){return null!=Vt&&ln in Vt?Vt[ln]:st})),Je}function xn(Je,Vt,st="-",ln,An){let yi="";(Je<0||An&&Je<=0)&&(An?Je=1-Je:(Je=-Je,yi=st));let Pi=String(Je);for(;Pi.length<Vt;)Pi="0"+Pi;return ln&&(Pi=Pi.slice(Pi.length-Vt)),yi+Pi}function Jt(Je,Vt,st=0,ln=!1,An=!1){return function(yi,Pi){let or=function ke(Je,Vt){switch(Je){case $e.FullYear:return Vt.getFullYear();case $e.Month:return Vt.getMonth();case $e.Date:return Vt.getDate();case $e.Hours:return Vt.getHours();case $e.Minutes:return Vt.getMinutes();case $e.Seconds:return Vt.getSeconds();case $e.FractionalSeconds:return Vt.getMilliseconds();case $e.Day:return Vt.getDay();default:throw new Error(`Unknown DateType value "${Je}".`)}}(Je,yi);if((st>0||or>-st)&&(or+=st),Je===$e.Hours)0===or&&-12===st&&(or=12);else if(Je===$e.FractionalSeconds)return function _n(Je,Vt){return xn(Je,3).substring(0,Vt)}(or,Vt);const Nr=Ye(Pi,U.MinusSign);return xn(or,Vt,Nr,ln,An)}}function Ae(Je,Vt,st=$.Format,ln=!1){return function(An,yi){return function ze(Je,Vt,st,ln,An,yi){switch(st){case Xe.Months:return pe(Vt,An,ln)[Je.getMonth()];case Xe.Days:return N(Vt,An,ln)[Je.getDay()];case Xe.DayPeriods:const Pi=Je.getHours(),or=Je.getMinutes();if(yi){const po=ie(Vt),Rr=Ce(Vt,An,ln),Vr=po.findIndex(Co=>{if(Array.isArray(Co)){const[Xr,vo]=Co,Zo=Pi>=Xr.hours&&or>=Xr.minutes,ia=Pi<vo.hours||Pi===vo.hours&&or<vo.minutes;if(Xr.hours<vo.hours){if(Zo&&ia)return!0}else if(Zo||ia)return!0}else if(Co.hours===Pi&&Co.minutes===or)return!0;return!1});if(-1!==Vr)return Rr[Vr]}return H(Vt,An,ln)[Pi<12?0:1];case Xe.Eras:return de(Vt,ln)[Je.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${st}`)}}(An,yi,Je,Vt,st,ln)}}function pt(Je){return function(Vt,st,ln){const An=-1*ln,yi=Ye(st,U.MinusSign),Pi=An>0?Math.floor(An/60):Math.ceil(An/60);switch(Je){case At.Short:return(An>=0?"+":"")+xn(Pi,2,yi)+xn(Math.abs(An%60),2,yi);case At.ShortGMT:return"GMT"+(An>=0?"+":"")+xn(Pi,1,yi);case At.Long:return"GMT"+(An>=0?"+":"")+xn(Pi,2,yi)+":"+xn(Math.abs(An%60),2,yi);case At.Extended:return 0===ln?"Z":(An>=0?"+":"")+xn(Pi,2,yi)+":"+xn(Math.abs(An%60),2,yi);default:throw new Error(`Unknown zone width "${Je}"`)}}}const tn=0,ot=4;function z(Je){return Ve(Je.getFullYear(),Je.getMonth(),Je.getDate()+(ot-Je.getDay()))}function Z(Je,Vt=!1){return function(st,ln){let An;if(Vt){const yi=new Date(st.getFullYear(),st.getMonth(),1).getDay()-1,Pi=st.getDate();An=1+Math.floor((Pi+yi)/7)}else{const yi=z(st),Pi=function Et(Je){const Vt=Ve(Je,tn,1).getDay();return Ve(Je,0,1+(Vt<=ot?ot:ot+7)-Vt)}(yi.getFullYear()),or=yi.getTime()-Pi.getTime();An=1+Math.round(or/6048e5)}return xn(An,Je,Ye(ln,U.MinusSign))}}function ge(Je,Vt=!1){return function(st,ln){return xn(z(st).getFullYear(),Je,Ye(ln,U.MinusSign),Vt)}}const Qe={};function ct(Je,Vt){Je=Je.replace(/:/g,"");const st=Date.parse("Jan 01, 1970 00:00:00 "+Je)/6e4;return isNaN(st)?Vt:st}function ue(Je){return Je instanceof Date&&!isNaN(Je.valueOf())}const Ge=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ee=22,De=".",Ot="0",cn=";",Gn=",",_i="#",Ni="\xa4",Nn="%";function Mn(Je,Vt,st,ln,An,yi,Pi=!1){let or="",Nr=!1;if(isFinite(Je)){let po=function rn(Je){let ln,An,yi,Pi,or,Vt=Math.abs(Je)+"",st=0;for((An=Vt.indexOf(De))>-1&&(Vt=Vt.replace(De,"")),(yi=Vt.search(/e/i))>0?(An<0&&(An=yi),An+=+Vt.slice(yi+1),Vt=Vt.substring(0,yi)):An<0&&(An=Vt.length),yi=0;Vt.charAt(yi)===Ot;yi++);if(yi===(or=Vt.length))ln=[0],An=1;else{for(or--;Vt.charAt(or)===Ot;)or--;for(An-=yi,ln=[],Pi=0;yi<=or;yi++,Pi++)ln[Pi]=Number(Vt.charAt(yi))}return An>ee&&(ln=ln.splice(0,ee-1),st=An-1,An=1),{digits:ln,exponent:st,integerLen:An}}(Je);Pi&&(po=function un(Je){if(0===Je.digits[0])return Je;const Vt=Je.digits.length-Je.integerLen;return Je.exponent?Je.exponent+=2:(0===Vt?Je.digits.push(0,0):1===Vt&&Je.digits.push(0),Je.integerLen+=2),Je}(po));let Rr=Vt.minInt,Vr=Vt.minFrac,Co=Vt.maxFrac;if(yi){const ra=yi.match(Ge);if(null===ra)throw new Error(`${yi} is not a valid digit info`);const mr=ra[1],Ur=ra[3],so=ra[5];null!=mr&&(Rr=Nt(mr)),null!=Ur&&(Vr=Nt(Ur)),null!=so?Co=Nt(so):null!=Ur&&Vr>Co&&(Co=Vr)}!function $t(Je,Vt,st){if(Vt>st)throw new Error(`The minimum number of digits after fraction (${Vt}) is higher than the maximum (${st}).`);let ln=Je.digits,An=ln.length-Je.integerLen;const yi=Math.min(Math.max(Vt,An),st);let Pi=yi+Je.integerLen,or=ln[Pi];if(Pi>0){ln.splice(Math.max(Je.integerLen,Pi));for(let Vr=Pi;Vr<ln.length;Vr++)ln[Vr]=0}else{An=Math.max(0,An),Je.integerLen=1,ln.length=Math.max(1,Pi=yi+1),ln[0]=0;for(let Vr=1;Vr<Pi;Vr++)ln[Vr]=0}if(or>=5)if(Pi-1<0){for(let Vr=0;Vr>Pi;Vr--)ln.unshift(0),Je.integerLen++;ln.unshift(1),Je.integerLen++}else ln[Pi-1]++;for(;An<Math.max(0,yi);An++)ln.push(0);let Nr=0!==yi;const po=Vt+Je.integerLen,Rr=ln.reduceRight(function(Vr,Co,Xr,vo){return vo[Xr]=(Co+=Vr)<10?Co:Co-10,Nr&&(0===vo[Xr]&&Xr>=po?vo.pop():Nr=!1),Co>=10?1:0},0);Rr&&(ln.unshift(Rr),Je.integerLen++)}(po,Vr,Co);let Xr=po.digits,vo=po.integerLen;const Zo=po.exponent;let ia=[];for(Nr=Xr.every(ra=>!ra);vo<Rr;vo++)Xr.unshift(0);for(;vo<0;vo++)Xr.unshift(0);vo>0?ia=Xr.splice(vo,Xr.length):(ia=Xr,Xr=[0]);const Ga=[];for(Xr.length>=Vt.lgSize&&Ga.unshift(Xr.splice(-Vt.lgSize,Xr.length).join(""));Xr.length>Vt.gSize;)Ga.unshift(Xr.splice(-Vt.gSize,Xr.length).join(""));Xr.length&&Ga.unshift(Xr.join("")),or=Ga.join(Ye(st,ln)),ia.length&&(or+=Ye(st,An)+ia.join("")),Zo&&(or+=Ye(st,U.Exponential)+"+"+Zo)}else or=Ye(st,U.Infinity);return or=Je<0&&!Nr?Vt.negPre+or+Vt.negSuf:Vt.posPre+or+Vt.posSuf,or}function On(Je,Vt,st,ln,An){const Pi=Si(wt(Vt,K.Currency),Ye(Vt,U.MinusSign));return Pi.minFrac=vt(ln),Pi.maxFrac=Pi.minFrac,Mn(Je,Pi,Vt,U.CurrencyGroup,U.CurrencyDecimal,An).replace(Ni,st).replace(Ni,"").trim()}function Qn(Je,Vt,st){return Mn(Je,Si(wt(Vt,K.Percent),Ye(Vt,U.MinusSign)),Vt,U.Group,U.Decimal,st,!0).replace(new RegExp(Nn,"g"),Ye(Vt,U.PercentSign))}function Ti(Je,Vt,st){return Mn(Je,Si(wt(Vt,K.Decimal),Ye(Vt,U.MinusSign)),Vt,U.Group,U.Decimal,st)}function Si(Je,Vt="-"){const st={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ln=Je.split(cn),An=ln[0],yi=ln[1],Pi=-1!==An.indexOf(De)?An.split(De):[An.substring(0,An.lastIndexOf(Ot)+1),An.substring(An.lastIndexOf(Ot)+1)],or=Pi[0],Nr=Pi[1]||"";st.posPre=or.substring(0,or.indexOf(_i));for(let Rr=0;Rr<Nr.length;Rr++){const Vr=Nr.charAt(Rr);Vr===Ot?st.minFrac=st.maxFrac=Rr+1:Vr===_i?st.maxFrac=Rr+1:st.posSuf+=Vr}const po=or.split(Gn);if(st.gSize=po[1]?po[1].length:0,st.lgSize=po[2]||po[1]?(po[2]||po[1]).length:0,yi){const Rr=An.length-st.posPre.length-st.posSuf.length,Vr=yi.indexOf(_i);st.negPre=yi.substring(0,Vr).replace(/'/g,""),st.negSuf=yi.slice(Vr+Rr).replace(/'/g,"")}else st.negPre=Vt+st.posPre,st.negSuf=st.posSuf;return st}function Nt(Je){const Vt=parseInt(Je);if(isNaN(Vt))throw new Error("Invalid integer literal when parsing "+Je);return Vt}let Rn=(()=>{class Je{}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275prov=e.\u0275\u0275defineInjectable({token:Je,factory:function(st){let ln=null;return st?ln=new st:(An=e.\u0275\u0275inject(e.LOCALE_ID),ln=new ji(An)),ln;var An},providedIn:"root"}),Je})();function Wn(Je,Vt,st,ln){let An=`=${Je}`;if(Vt.indexOf(An)>-1||(An=st.getPluralCategory(Je,ln),Vt.indexOf(An)>-1))return An;if(Vt.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${Je}"`)}let ji=(()=>{class Je extends Rn{constructor(st){super(),this.locale=st}getPluralCategory(st,ln){switch(Fe(ln||this.locale)(st)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275inject(e.LOCALE_ID))},Je.\u0275prov=e.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac}),Je})();function ir(Je,Vt,st){return(0,e.\u0275registerLocaleData)(Je,Vt,st)}function dr(Je,Vt){Vt=encodeURIComponent(Vt);for(const st of Je.split(";")){const ln=st.indexOf("="),[An,yi]=-1==ln?[st,""]:[st.slice(0,ln),st.slice(ln+1)];if(An.trim()===Vt)return decodeURIComponent(yi)}return null}const Ln=/\s+/,Vn=[];let Le=(()=>{class Je{constructor(st,ln,An,yi){this._iterableDiffers=st,this._keyValueDiffers=ln,this._ngEl=An,this._renderer=yi,this.initialClasses=Vn,this.stateMap=new Map}set klass(st){this.initialClasses=null!=st?st.trim().split(Ln):Vn}set ngClass(st){this.rawClass="string"==typeof st?st.trim().split(Ln):st}ngDoCheck(){for(const ln of this.initialClasses)this._updateState(ln,!0);const st=this.rawClass;if(Array.isArray(st)||st instanceof Set)for(const ln of st)this._updateState(ln,!0);else if(null!=st)for(const ln of Object.keys(st))this._updateState(ln,Boolean(st[ln]));this._applyStateDiff()}_updateState(st,ln){const An=this.stateMap.get(st);void 0!==An?(An.enabled!==ln&&(An.changed=!0,An.enabled=ln),An.touched=!0):this.stateMap.set(st,{enabled:ln,changed:!0,touched:!0})}_applyStateDiff(){for(const st of this.stateMap){const ln=st[0],An=st[1];An.changed?(this._toggleClass(ln,An.enabled),An.changed=!1):An.touched||(An.enabled&&this._toggleClass(ln,!1),this.stateMap.delete(ln)),An.touched=!1}}_toggleClass(st,ln){(st=st.trim()).length>0&&st.split(Ln).forEach(An=>{ln?this._renderer.addClass(this._ngEl.nativeElement,An):this._renderer.removeClass(this._ngEl.nativeElement,An)})}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.IterableDiffers),e.\u0275\u0275directiveInject(e.KeyValueDiffers),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.Renderer2))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Je})(),Ft=(()=>{class Je{constructor(st){this._viewContainerRef=st,this.ngComponentOutlet=null}ngOnChanges(st){const{_viewContainerRef:ln,ngComponentOutletNgModule:An,ngComponentOutletNgModuleFactory:yi}=this;if(ln.clear(),this._componentRef=void 0,this.ngComponentOutlet){const Pi=this.ngComponentOutletInjector||ln.parentInjector;(st.ngComponentOutletNgModule||st.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=An?(0,e.createNgModule)(An,dn(Pi)):yi?yi.create(dn(Pi)):void 0),this._componentRef=ln.createComponent(this.ngComponentOutlet,{index:ln.length,injector:Pi,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.ViewContainerRef))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[e.\u0275\u0275NgOnChangesFeature]}),Je})();function dn(Je){return Je.get(e.NgModuleRef).injector}class gi{constructor(Vt,st,ln,An){this.$implicit=Vt,this.ngForOf=st,this.index=ln,this.count=An}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 $i=(()=>{class Je{set ngForOf(st){this._ngForOf=st,this._ngForOfDirty=!0}set ngForTrackBy(st){this._trackByFn=st}get ngForTrackBy(){return this._trackByFn}constructor(st,ln,An){this._viewContainer=st,this._template=ln,this._differs=An,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(st){st&&(this._template=st)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const st=this._ngForOf;!this._differ&&st&&(this._differ=this._differs.find(st).create(this.ngForTrackBy))}if(this._differ){const st=this._differ.diff(this._ngForOf);st&&this._applyChanges(st)}}_applyChanges(st){const ln=this._viewContainer;st.forEachOperation((An,yi,Pi)=>{if(null==An.previousIndex)ln.createEmbeddedView(this._template,new gi(An.item,this._ngForOf,-1,-1),null===Pi?void 0:Pi);else if(null==Pi)ln.remove(null===yi?void 0:yi);else if(null!==yi){const or=ln.get(yi);ln.move(or,Pi),fr(or,An)}});for(let An=0,yi=ln.length;An<yi;An++){const or=ln.get(An).context;or.index=An,or.count=yi,or.ngForOf=this._ngForOf}st.forEachIdentityChange(An=>{fr(ln.get(An.currentIndex),An)})}static ngTemplateContextGuard(st,ln){return!0}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(e.IterableDiffers))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Je})();function fr(Je,Vt){Je.context.$implicit=Vt.item}let ti=(()=>{class Je{constructor(st,ln){this._viewContainer=st,this._context=new Kn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ln}set ngIf(st){this._context.$implicit=this._context.ngIf=st,this._updateView()}set ngIfThen(st){on("ngIfThen",st),this._thenTemplateRef=st,this._thenViewRef=null,this._updateView()}set ngIfElse(st){on("ngIfElse",st),this._elseTemplateRef=st,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(st,ln){return!0}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.TemplateRef))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Je})();class Kn{constructor(){this.$implicit=null,this.ngIf=null}}function on(Je,Vt){if(Vt&&!Vt.createEmbeddedView)throw new Error(`${Je} must be a TemplateRef, but received '${(0,e.\u0275stringify)(Vt)}'.`)}class he{constructor(Vt,st){this._viewContainerRef=Vt,this._templateRef=st,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Vt){Vt&&!this._created?this.create():!Vt&&this._created&&this.destroy()}}let et=(()=>{class Je{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(st){this._ngSwitch=st,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(st){this._defaultViews.push(st)}_matchCase(st){const ln=st==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ln,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ln}_updateDefaultCases(st){if(this._defaultViews.length>0&&st!==this._defaultUsed){this._defaultUsed=st;for(const ln of this._defaultViews)ln.enforceState(st)}}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),Je})(),tt=(()=>{class Je{constructor(st,ln,An){this.ngSwitch=An,An._addCase(),this._view=new he(st,ln)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(et,9))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Je})(),nn=(()=>{class Je{constructor(st,ln,An){An._addDefault(new he(st,ln))}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(et,9))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Je})(),jt=(()=>{class Je{constructor(st){this._localization=st,this._caseViews={}}set ngPlural(st){this._updateView(st)}addCase(st,ln){this._caseViews[st]=ln}_updateView(st){this._clearViews();const An=Wn(st,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[An])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(st){st&&(this._activeView=st,this._activeView.create())}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(Rn))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0}),Je})(),Fn=(()=>{class Je{constructor(st,ln,An,yi){this.value=st;const Pi=!isNaN(Number(st));yi.addCase(Pi?`=${st}`:st,new he(An,ln))}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275injectAttribute("ngPluralCase"),e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(jt,1))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngPluralCase",""]],standalone:!0}),Je})(),jn=(()=>{class Je{constructor(st,ln,An){this._ngEl=st,this._differs=ln,this._renderer=An,this._ngStyle=null,this._differ=null}set ngStyle(st){this._ngStyle=st,!this._differ&&st&&(this._differ=this._differs.find(st).create())}ngDoCheck(){if(this._differ){const st=this._differ.diff(this._ngStyle);st&&this._applyChanges(st)}}_setStyle(st,ln){const[An,yi]=st.split("."),Pi=-1===An.indexOf("-")?void 0:e.RendererStyleFlags2.DashCase;null!=ln?this._renderer.setStyle(this._ngEl.nativeElement,An,yi?`${ln}${yi}`:ln,Pi):this._renderer.removeStyle(this._ngEl.nativeElement,An,Pi)}_applyChanges(st){st.forEachRemovedItem(ln=>this._setStyle(ln.key,null)),st.forEachAddedItem(ln=>this._setStyle(ln.key,ln.currentValue)),st.forEachChangedItem(ln=>this._setStyle(ln.key,ln.currentValue))}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.KeyValueDiffers),e.\u0275\u0275directiveInject(e.Renderer2))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Je})(),ri=(()=>{class Je{constructor(st){this._viewContainerRef=st,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(st){if(st.ngTemplateOutlet||st.ngTemplateOutletInjector){const ln=this._viewContainerRef;if(this._viewRef&&ln.remove(ln.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:An,ngTemplateOutletContext:yi,ngTemplateOutletInjector:Pi}=this;this._viewRef=ln.createEmbeddedView(An,yi,Pi?{injector:Pi}:void 0)}else this._viewRef=null}else this._viewRef&&st.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.ViewContainerRef))},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.\u0275\u0275NgOnChangesFeature]}),Je})();function Ii(Je,Vt){return new e.\u0275RuntimeError(2100,!1)}class cr{createSubscription(Vt,st){return Vt.subscribe({next:st,error:ln=>{throw ln}})}dispose(Vt){Vt.unsubscribe()}}class Hi{createSubscription(Vt,st){return Vt.then(st,ln=>{throw ln})}dispose(Vt){}}const Vi=new Hi,kr=new cr;let Er=(()=>{class Je{constructor(st){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=st}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(st){return this._obj?st!==this._obj?(this._dispose(),this.transform(st)):this._latestValue:(st&&this._subscribe(st),this._latestValue)}_subscribe(st){this._obj=st,this._strategy=this._selectStrategy(st),this._subscription=this._strategy.createSubscription(st,ln=>this._updateLatestValue(st,ln))}_selectStrategy(st){if((0,e.\u0275isPromise)(st))return Vi;if((0,e.\u0275isSubscribable)(st))return kr;throw Ii()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(st,ln){st===this._obj&&(this._latestValue=ln,this._ref.markForCheck())}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.ChangeDetectorRef,16))},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"async",type:Je,pure:!1,standalone:!0}),Je})(),pr=(()=>{class Je{transform(st){if(null==st)return null;if("string"!=typeof st)throw Ii();return st.toLowerCase()}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"lowercase",type:Je,pure:!0,standalone:!0}),Je})();const fo=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Tr=(()=>{class Je{transform(st){if(null==st)return null;if("string"!=typeof st)throw Ii();return st.replace(fo,ln=>ln[0].toUpperCase()+ln.slice(1).toLowerCase())}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"titlecase",type:Je,pure:!0,standalone:!0}),Je})(),Br=(()=>{class Je{transform(st){if(null==st)return null;if("string"!=typeof st)throw Ii();return st.toUpperCase()}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"uppercase",type:Je,pure:!0,standalone:!0}),Je})();const Bn=new e.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"),Sn=new e.InjectionToken("DATE_PIPE_DEFAULT_OPTIONS");let Lt=(()=>{class Je{constructor(st,ln,An){this.locale=st,this.defaultTimezone=ln,this.defaultOptions=An}transform(st,ln,An,yi){if(null==st||""===st||st!=st)return null;try{return Pe(st,ln??this.defaultOptions?.dateFormat??"mediumDate",yi||this.locale,An??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Pi){throw Ii()}}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.LOCALE_ID,16),e.\u0275\u0275directiveInject(Bn,24),e.\u0275\u0275directiveInject(Sn,24))},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"date",type:Je,pure:!0,standalone:!0}),Je})();const Jn=/#/g;let Di=(()=>{class Je{constructor(st){this._localization=st}transform(st,ln,An){if(null==st)return"";if("object"!=typeof ln||null===ln)throw Ii();return ln[Wn(st,Object.keys(ln),this._localization,An)].replace(Jn,st.toString())}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(Rn,16))},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"i18nPlural",type:Je,pure:!0,standalone:!0}),Je})(),Wi=(()=>{class Je{transform(st,ln){if(null==st)return"";if("object"!=typeof ln||"string"!=typeof st)throw Ii();return ln.hasOwnProperty(st)?ln[st]:ln.hasOwnProperty("other")?ln.other:""}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"i18nSelect",type:Je,pure:!0,standalone:!0}),Je})(),Ar=(()=>{class Je{transform(st){return JSON.stringify(st,null,2)}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"json",type:Je,pure:!1,standalone:!0}),Je})(),bo=(()=>{class Je{constructor(st){this.differs=st,this.keyValues=[],this.compareFn=xo}transform(st,ln=xo){if(!st||!(st instanceof Map)&&"object"!=typeof st)return null;this.differ||(this.differ=this.differs.find(st).create());const An=this.differ.diff(st),yi=ln!==this.compareFn;return An&&(this.keyValues=[],An.forEachItem(Pi=>{this.keyValues.push(function br(Je,Vt){return{key:Je,value:Vt}}(Pi.key,Pi.currentValue))})),(An||yi)&&(this.keyValues.sort(ln),this.compareFn=ln),this.keyValues}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.KeyValueDiffers,16))},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"keyvalue",type:Je,pure:!1,standalone:!0}),Je})();function xo(Je,Vt){const st=Je.key,ln=Vt.key;if(st===ln)return 0;if(void 0===st)return 1;if(void 0===ln)return-1;if(null===st)return 1;if(null===ln)return-1;if("string"==typeof st&&"string"==typeof ln)return st<ln?-1:1;if("number"==typeof st&&"number"==typeof ln)return st-ln;if("boolean"==typeof st&&"boolean"==typeof ln)return st<ln?-1:1;const An=String(st),yi=String(ln);return An==yi?0:An<yi?-1:1}let Re=(()=>{class Je{constructor(st){this._locale=st}transform(st,ln,An){if(!be(st))return null;An=An||this._locale;try{return Ti(Ue(st),An,ln)}catch(yi){throw Ii()}}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.LOCALE_ID,16))},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"number",type:Je,pure:!0,standalone:!0}),Je})(),w=(()=>{class Je{constructor(st){this._locale=st}transform(st,ln,An){if(!be(st))return null;An=An||this._locale;try{return Qn(Ue(st),An,ln)}catch(yi){throw Ii()}}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.LOCALE_ID,16))},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"percent",type:Je,pure:!0,standalone:!0}),Je})(),ne=(()=>{class Je{constructor(st,ln="USD"){this._locale=st,this._defaultCurrencyCode=ln}transform(st,ln=this._defaultCurrencyCode,An="symbol",yi,Pi){if(!be(st))return null;Pi=Pi||this._locale,"boolean"==typeof An&&(An=An?"symbol":"code");let or=ln||this._defaultCurrencyCode;"code"!==An&&(or="symbol"===An||"symbol-narrow"===An?Xt(or,"symbol"===An?"wide":"narrow",Pi):An);try{return On(Ue(st),Pi,or,ln,yi)}catch(Nr){throw Ii()}}}return Je.\u0275fac=function(st){return new(st||Je)(e.\u0275\u0275directiveInject(e.LOCALE_ID,16),e.\u0275\u0275directiveInject(e.DEFAULT_CURRENCY_CODE,16))},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"currency",type:Je,pure:!0,standalone:!0}),Je})();function be(Je){return!(null==Je||""===Je||Je!=Je)}function Ue(Je){if("string"==typeof Je&&!isNaN(Number(Je)-parseFloat(Je)))return Number(Je);if("number"!=typeof Je)throw new Error(`${Je} is not a number`);return Je}let at=(()=>{class Je{transform(st,ln,An){if(null==st)return null;if(!this.supports(st))throw Ii();return st.slice(ln,An)}supports(st){return"string"==typeof st||Array.isArray(st)}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275pipe=e.\u0275\u0275definePipe({name:"slice",type:Je,pure:!1,standalone:!0}),Je})(),yn=(()=>{class Je{}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275mod=e.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=e.\u0275\u0275defineInjector({}),Je})();const Tn="browser",Yn="server",Zn="browserWorkerApp",ui="browserWorkerUi";function wi(Je){return Je===Tn}function an(Je){return Je===Yn}function bn(Je){return Je===Zn}function Dn(Je){return Je===ui}const ii=new e.Version("15.2.10");let li=(()=>{class Je{}return Je.\u0275prov=(0,e.\u0275\u0275defineInjectable)({token:Je,providedIn:"root",factory:()=>new ft((0,e.\u0275\u0275inject)(h),window)}),Je})();class ft{constructor(Vt,st){this.document=Vt,this.window=st,this.offset=()=>[0,0]}setOffset(Vt){this.offset=Array.isArray(Vt)?()=>Vt:Vt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Vt){this.supportsScrolling()&&this.window.scrollTo(Vt[0],Vt[1])}scrollToAnchor(Vt){if(!this.supportsScrolling())return;const st=function Se(Je,Vt){const st=Je.getElementById(Vt)||Je.getElementsByName(Vt)[0];if(st)return st;if("function"==typeof Je.createTreeWalker&&Je.body&&(Je.body.createShadowRoot||Je.body.attachShadow)){const ln=Je.createTreeWalker(Je.body,NodeFilter.SHOW_ELEMENT);let An=ln.currentNode;for(;An;){const yi=An.shadowRoot;if(yi){const Pi=yi.getElementById(Vt)||yi.querySelector(`[name="${Vt}"]`);if(Pi)return Pi}An=ln.nextNode()}}return null}(this.document,Vt);st&&(this.scrollToElement(st),st.focus())}setHistoryScrollRestoration(Vt){if(this.supportScrollRestoration()){const st=this.window.history;st&&st.scrollRestoration&&(st.scrollRestoration=Vt)}}scrollToElement(Vt){const st=Vt.getBoundingClientRect(),ln=st.left+this.window.pageXOffset,An=st.top+this.window.pageYOffset,yi=this.offset();this.window.scrollTo(ln-yi[0],An-yi[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Vt=ce(this.window.history)||ce(Object.getPrototypeOf(this.window.history));return!(!Vt||!Vt.writable&&!Vt.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ce(Je){return Object.getOwnPropertyDescriptor(Je,"scrollRestoration")}class ut{setOffset(Vt){}getScrollPosition(){return[0,0]}scrollToPosition(Vt){}scrollToAnchor(Vt){}setHistoryScrollRestoration(Vt){}}class Kt{}function Ai(Je){return Je.startsWith("/")?Je.slice(1):Je}const zi=Je=>Je.src,Yi=new e.InjectionToken("ImageLoader",{providedIn:"root",factory:()=>zi});function tr(Je,Vt){return function(ln){return function ci(Je){if("string"!=typeof Je||""===Je.trim())return!1;try{return new URL(Je),!0}catch{return!1}}(ln)||function Lr(Je,Vt){throw new e.\u0275RuntimeError(2959,!1)}(),ln=function hi(Je){return Je.endsWith("/")?Je.slice(0,-1):Je}(ln),[{provide:Yi,useValue:Pi=>(function Un(Je){return/^https?:\/\//.test(Je)}(Pi.src)&&function Gr(Je,Vt){throw new e.\u0275RuntimeError(2959,!1)}(),Je(ln,{...Pi,src:Ai(Pi.src)}))}]}}const Io=tr(wo);function wo(Je,Vt){let st="format=auto";return Vt.width&&(st+=`,width=${Vt.width}`),`${Je}/cdn-cgi/image/${st}/${Vt.src}`}const Uo=tr(_a);function _a(Je,Vt){let st="f_auto,q_auto";return Vt.width&&(st+=`,w_${Vt.width}`),`${Je}/image/upload/${st}/${Vt.src}`}const Tt=tr(Ct);function Ct(Je,Vt){const{src:st,width:ln}=Vt;let An;return An=ln?[Je,`tr:w-${ln}`,st]:[Je,st],An.join("/")}const rr=tr(oo);function oo(Je,Vt){const st=new URL(`${Je}/${Vt.src}`);return st.searchParams.set("auto","format"),Vt.width&&st.searchParams.set("w",Vt.width.toString()),st.href}const ka=new e.InjectionToken("PRECONNECT_CHECK_BLOCKLIST"),ca=new e.InjectionToken("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});let Qs=(()=>{class Je{constructor(){this.preloadedImages=(0,e.inject)(ca),this.document=(0,e.inject)(h)}createPreloadLinkTag(st,ln,An,yi){if(this.preloadedImages.has(ln))return;this.preloadedImages.add(ln);const Pi=st.createElement("link");st.setAttribute(Pi,"as","image"),st.setAttribute(Pi,"href",ln),st.setAttribute(Pi,"rel","preload"),st.setAttribute(Pi,"fetchpriority","high"),yi&&st.setAttribute(Pi,"imageSizes",yi),An&&st.setAttribute(Pi,"imageSrcset",An),st.appendChild(this.document.head,Pi)}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275prov=e.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();const rs=/^((\s*\d+w\s*(,|$)){1,})$/,Na=[1,2],Sr={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},os=new e.InjectionToken("ImageConfig",{providedIn:"root",factory:()=>Sr});let ya=(()=>{class Je{constructor(){this.imageLoader=(0,e.inject)(Yi),this.config=function No(Je){let Vt={};return Je.breakpoints&&(Vt.breakpoints=Je.breakpoints.sort((st,ln)=>st-ln)),Object.assign({},Sr,Je,Vt)}((0,e.inject)(os)),this.renderer=(0,e.inject)(e.Renderer2),this.imgElement=(0,e.inject)(e.ElementRef).nativeElement,this.injector=(0,e.inject)(e.Injector),this.isServer=an((0,e.inject)(e.PLATFORM_ID)),this.preloadLinkChecker=(0,e.inject)(Qs),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}set width(st){this._width=Ha(st)}get width(){return this._width}set height(st){this._height=Ha(st)}get height(){return this._height}set priority(st){this._priority=La(st)}get priority(){return this._priority}set disableOptimizedSrcset(st){this._disableOptimizedSrcset=La(st)}get disableOptimizedSrcset(){return this._disableOptimizedSrcset}set fill(st){this._fill=La(st)}get fill(){return this._fill}ngOnInit(){this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const st=this.getRewrittenSrc();let ln;this.setHostAttribute("src",st),this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?ln=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(ln=this.getAutomaticSrcset()),ln&&this.setHostAttribute("srcset",ln),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,st,ln,this.sizes)}ngOnChanges(st){}callImageLoader(st){let ln=st;return this.loaderParams&&(ln.loaderParams=this.loaderParams),this.imageLoader(ln)}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){return this._renderedSrc||(this._renderedSrc=this.callImageLoader({src:this.ngSrc})),this._renderedSrc}getRewrittenSrcset(){const st=rs.test(this.ngSrcset);return this.ngSrcset.split(",").filter(An=>""!==An).map(An=>{An=An.trim();const yi=st?parseFloat(An):parseFloat(An)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:yi})} ${An}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:st}=this.config;let ln=st;return"100vw"===this.sizes?.trim()&&(ln=st.filter(yi=>yi>=640)),ln.map(yi=>`${this.callImageLoader({src:this.ngSrc,width:yi})} ${yi}w`).join(", ")}getFixedSrcset(){return Na.map(ln=>`${this.callImageLoader({src:this.ngSrc,width:this.width*ln})} ${ln}x`).join(", ")}shouldGenerateAutomaticSrcset(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==zi&&!(this.width>1920||this.height>1080)}ngOnDestroy(){}setHostAttribute(st,ln){this.renderer.setAttribute(this.imgElement,st,ln)}}return Je.\u0275fac=function(st){return new(st||Je)},Je.\u0275dir=e.\u0275\u0275defineDirective({type:Je,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(st,ln){2&st&&e.\u0275\u0275styleProp("position",ln.fill?"absolute":null)("width",ln.fill?"100%":null)("height",ln.fill?"100%":null)("inset",ln.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",loaderParams:"loaderParams",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[e.\u0275\u0275NgOnChangesFeature]}),Je})();function Ha(Je){return"string"==typeof Je?parseInt(Je,10):Je}function La(Je){return null!=Je&&"false"!=`${Je}`}},80529:(oe,x,i)=>{"use strict";i.d(x,{JF:()=>pt,TP:()=>de,UA:()=>U,WM:()=>u,Zn:()=>R,eN:()=>T});var e=i(36895),n=i(94650),a=i(39646),t=i(69751),l=i(24351),h=i(39300),s=i(54004);class d{}class p{}class u{constructor(z){this.normalizedNames=new Map,this.lazyUpdate=null,z?this.lazyInit="string"==typeof z?()=>{this.headers=new Map,z.split("\n").forEach(Z=>{const ge=Z.indexOf(":");if(ge>0){const Qe=Z.slice(0,ge),qe=Qe.toLowerCase(),ct=Z.slice(ge+1).trim();this.maybeSetNormalizedName(Qe,qe),this.headers.has(qe)?this.headers.get(qe).push(ct):this.headers.set(qe,[ct])}})}:()=>{this.headers=new Map,Object.entries(z).forEach(([Z,ge])=>{let Qe;if(Qe="string"==typeof ge?[ge]:"number"==typeof ge?[ge.toString()]:ge.map(qe=>qe.toString()),Qe.length>0){const qe=Z.toLowerCase();this.headers.set(qe,Qe),this.maybeSetNormalizedName(Z,qe)}})}:this.headers=new Map}has(z){return this.init(),this.headers.has(z.toLowerCase())}get(z){this.init();const Z=this.headers.get(z.toLowerCase());return Z&&Z.length>0?Z[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(z){return this.init(),this.headers.get(z.toLowerCase())||null}append(z,Z){return this.clone({name:z,value:Z,op:"a"})}set(z,Z){return this.clone({name:z,value:Z,op:"s"})}delete(z,Z){return this.clone({name:z,value:Z,op:"d"})}maybeSetNormalizedName(z,Z){this.normalizedNames.has(Z)||this.normalizedNames.set(Z,z)}init(){this.lazyInit&&(this.lazyInit instanceof u?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(z=>this.applyUpdate(z)),this.lazyUpdate=null))}copyFrom(z){z.init(),Array.from(z.headers.keys()).forEach(Z=>{this.headers.set(Z,z.headers.get(Z)),this.normalizedNames.set(Z,z.normalizedNames.get(Z))})}clone(z){const Z=new u;return Z.lazyInit=this.lazyInit&&this.lazyInit instanceof u?this.lazyInit:this,Z.lazyUpdate=(this.lazyUpdate||[]).concat([z]),Z}applyUpdate(z){const Z=z.name.toLowerCase();switch(z.op){case"a":case"s":let ge=z.value;if("string"==typeof ge&&(ge=[ge]),0===ge.length)return;this.maybeSetNormalizedName(z.name,Z);const Qe=("a"===z.op?this.headers.get(Z):void 0)||[];Qe.push(...ge),this.headers.set(Z,Qe);break;case"d":const qe=z.value;if(qe){let ct=this.headers.get(Z);if(!ct)return;ct=ct.filter(Yt=>-1===qe.indexOf(Yt)),0===ct.length?(this.headers.delete(Z),this.normalizedNames.delete(Z)):this.headers.set(Z,ct)}else this.headers.delete(Z),this.normalizedNames.delete(Z)}}forEach(z){this.init(),Array.from(this.normalizedNames.keys()).forEach(Z=>z(this.normalizedNames.get(Z),this.headers.get(Z)))}}class v{encodeKey(z){return E(z)}encodeValue(z){return E(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}const b=/%(\d[a-f0-9])/gi,S={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E(Et){return encodeURIComponent(Et).replace(b,(z,Z)=>S[Z]??z)}function D(Et){return`${Et}`}class A{constructor(z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=z.encoder||new v,z.fromString){if(z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function y(Et,z){const Z=new Map;return Et.length>0&&Et.replace(/^\?/,"").split("&").forEach(Qe=>{const qe=Qe.indexOf("="),[ct,Yt]=-1==qe?[z.decodeKey(Qe),""]:[z.decodeKey(Qe.slice(0,qe)),z.decodeValue(Qe.slice(qe+1))],it=Z.get(ct)||[];it.push(Yt),Z.set(ct,it)}),Z}(z.fromString,this.encoder)}else z.fromObject?(this.map=new Map,Object.keys(z.fromObject).forEach(Z=>{const ge=z.fromObject[Z],Qe=Array.isArray(ge)?ge.map(D):[D(ge)];this.map.set(Z,Qe)})):this.map=null}has(z){return this.init(),this.map.has(z)}get(z){this.init();const Z=this.map.get(z);return Z?Z[0]:null}getAll(z){return this.init(),this.map.get(z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(z,Z){return this.clone({param:z,value:Z,op:"a"})}appendAll(z){const Z=[];return Object.keys(z).forEach(ge=>{const Qe=z[ge];Array.isArray(Qe)?Qe.forEach(qe=>{Z.push({param:ge,value:qe,op:"a"})}):Z.push({param:ge,value:Qe,op:"a"})}),this.clone(Z)}set(z,Z){return this.clone({param:z,value:Z,op:"s"})}delete(z,Z){return this.clone({param:z,value:Z,op:"d"})}toString(){return this.init(),this.keys().map(z=>{const Z=this.encoder.encodeKey(z);return this.map.get(z).map(ge=>Z+"="+this.encoder.encodeValue(ge)).join("&")}).filter(z=>""!==z).join("&")}clone(z){const Z=new A({encoder:this.encoder});return Z.cloneFrom=this.cloneFrom||this,Z.updates=(this.updates||[]).concat(z),Z}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(z=>this.map.set(z,this.cloneFrom.map.get(z))),this.updates.forEach(z=>{switch(z.op){case"a":case"s":const Z=("a"===z.op?this.map.get(z.param):void 0)||[];Z.push(D(z.value)),this.map.set(z.param,Z);break;case"d":if(void 0===z.value){this.map.delete(z.param);break}{let ge=this.map.get(z.param)||[];const Qe=ge.indexOf(D(z.value));-1!==Qe&&ge.splice(Qe,1),ge.length>0?this.map.set(z.param,ge):this.map.delete(z.param)}}}),this.cloneFrom=this.updates=null)}}class B{constructor(){this.map=new Map}set(z,Z){return this.map.set(z,Z),this}get(z){return this.map.has(z)||this.map.set(z,z.defaultValue()),this.map.get(z)}delete(z){return this.map.delete(z),this}has(z){return this.map.has(z)}keys(){return this.map.keys()}}function X(Et){return typeof ArrayBuffer<"u"&&Et instanceof ArrayBuffer}function re(Et){return typeof Blob<"u"&&Et instanceof Blob}function Q(Et){return typeof FormData<"u"&&Et instanceof FormData}class K{constructor(z,Z,ge,Qe){let qe;if(this.url=Z,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=z.toUpperCase(),function V(Et){switch(Et){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Qe?(this.body=void 0!==ge?ge:null,qe=Qe):qe=ge,qe&&(this.reportProgress=!!qe.reportProgress,this.withCredentials=!!qe.withCredentials,qe.responseType&&(this.responseType=qe.responseType),qe.headers&&(this.headers=qe.headers),qe.context&&(this.context=qe.context),qe.params&&(this.params=qe.params)),this.headers||(this.headers=new u),this.context||(this.context=new B),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=Z;else{const Yt=Z.indexOf("?");this.urlWithParams=Z+(-1===Yt?"?":Yt<Z.length-1?"&":"")+ct}}else this.params=new A,this.urlWithParams=Z}serializeBody(){return null===this.body?null:X(this.body)||re(this.body)||Q(this.body)||function ae(Et){return typeof URLSearchParams<"u"&&Et instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof A?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Q(this.body)?null:re(this.body)?this.body.type||null:X(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof A?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(z={}){const Z=z.method||this.method,ge=z.url||this.url,Qe=z.responseType||this.responseType,qe=void 0!==z.body?z.body:this.body,ct=void 0!==z.withCredentials?z.withCredentials:this.withCredentials,Yt=void 0!==z.reportProgress?z.reportProgress:this.reportProgress;let it=z.headers||this.headers,Be=z.params||this.params;const gt=z.context??this.context;return void 0!==z.setHeaders&&(it=Object.keys(z.setHeaders).reduce((ue,Ge)=>ue.set(Ge,z.setHeaders[Ge]),it)),z.setParams&&(Be=Object.keys(z.setParams).reduce((ue,Ge)=>ue.set(Ge,z.setParams[Ge]),Be)),new K(Z,ge,qe,{params:Be,headers:it,context:gt,reportProgress:Yt,responseType:Qe,withCredentials:ct})}}var k=(()=>((k=k||{})[k.Sent=0]="Sent",k[k.UploadProgress=1]="UploadProgress",k[k.ResponseHeader=2]="ResponseHeader",k[k.DownloadProgress=3]="DownloadProgress",k[k.Response=4]="Response",k[k.User=5]="User",k))();class ${constructor(z,Z=200,ge="OK"){this.headers=z.headers||new u,this.status=void 0!==z.status?z.status:Z,this.statusText=z.statusText||ge,this.url=z.url||null,this.ok=this.status>=200&&this.status<300}}class j extends ${constructor(z={}){super(z),this.type=k.ResponseHeader}clone(z={}){return new j({headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class R extends ${constructor(z={}){super(z),this.type=k.Response,this.body=void 0!==z.body?z.body:null}clone(z={}){return new R({body:void 0!==z.body?z.body:this.body,headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class U extends ${constructor(z){super(z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${z.url||"(unknown url)"}`:`Http failure response for ${z.url||"(unknown url)"}: ${z.status} ${z.statusText}`,this.error=z.error||null}}function le(Et,z){return{body:z,headers:Et.headers,context:Et.context,observe:Et.observe,params:Et.params,reportProgress:Et.reportProgress,responseType:Et.responseType,withCredentials:Et.withCredentials}}let T=(()=>{class Et{constructor(Z){this.handler=Z}request(Z,ge,Qe={}){let qe;if(Z instanceof K)qe=Z;else{let it,Be;it=Qe.headers instanceof u?Qe.headers:new u(Qe.headers),Qe.params&&(Be=Qe.params instanceof A?Qe.params:new A({fromObject:Qe.params})),qe=new K(Z,ge,void 0!==Qe.body?Qe.body:null,{headers:it,context:Qe.context,params:Be,reportProgress:Qe.reportProgress,responseType:Qe.responseType||"json",withCredentials:Qe.withCredentials})}const ct=(0,a.of)(qe).pipe((0,l.b)(it=>this.handler.handle(it)));if(Z instanceof K||"events"===Qe.observe)return ct;const Yt=ct.pipe((0,h.h)(it=>it instanceof R));switch(Qe.observe||"body"){case"body":switch(qe.responseType){case"arraybuffer":return Yt.pipe((0,s.U)(it=>{if(null!==it.body&&!(it.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return it.body}));case"blob":return Yt.pipe((0,s.U)(it=>{if(null!==it.body&&!(it.body instanceof Blob))throw new Error("Response is not a Blob.");return it.body}));case"text":return Yt.pipe((0,s.U)(it=>{if(null!==it.body&&"string"!=typeof it.body)throw new Error("Response is not a string.");return it.body}));default:return Yt.pipe((0,s.U)(it=>it.body))}case"response":return Yt;default:throw new Error(`Unreachable: unhandled observe type ${Qe.observe}}`)}}delete(Z,ge={}){return this.request("DELETE",Z,ge)}get(Z,ge={}){return this.request("GET",Z,ge)}head(Z,ge={}){return this.request("HEAD",Z,ge)}jsonp(Z,ge){return this.request("JSONP",Z,{params:(new A).append(ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Z,ge={}){return this.request("OPTIONS",Z,ge)}patch(Z,ge,Qe={}){return this.request("PATCH",Z,le(Qe,ge))}post(Z,ge,Qe={}){return this.request("POST",Z,le(Qe,ge))}put(Z,ge,Qe={}){return this.request("PUT",Z,le(Qe,ge))}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(d))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac}),Et})();function H(Et,z){return z(Et)}function N(Et,z){return(Z,ge)=>z.intercept(Z,{handle:Qe=>Et(Qe,ge)})}const de=new n.InjectionToken("HTTP_INTERCEPTORS"),me=new n.InjectionToken("HTTP_INTERCEPTOR_FNS");function q(){let Et=null;return(z,Z)=>(null===Et&&(Et=((0,n.inject)(de,{optional:!0})??[]).reduceRight(N,H)),Et(z,Z))}let se=(()=>{class Et extends d{constructor(Z,ge){super(),this.backend=Z,this.injector=ge,this.chain=null}handle(Z){if(null===this.chain){const ge=Array.from(new Set(this.injector.get(me)));this.chain=ge.reduceRight((Qe,qe)=>function pe(Et,z,Z){return(ge,Qe)=>Z.runInContext(()=>z(ge,qe=>Et(qe,Qe)))}(Qe,qe,this.injector),H)}return this.chain(Z,ge=>this.backend.handle(ge))}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(p),n.\u0275\u0275inject(n.EnvironmentInjector))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac}),Et})();const Ce=/^\)\]\}',?\n/;let dt=(()=>{class Et{constructor(Z){this.xhrFactory=Z}handle(Z){if("JSONP"===Z.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new t.y(ge=>{const Qe=this.xhrFactory.build();if(Qe.open(Z.method,Z.urlWithParams),Z.withCredentials&&(Qe.withCredentials=!0),Z.headers.forEach((ee,De)=>Qe.setRequestHeader(ee,De.join(","))),Z.headers.has("Accept")||Qe.setRequestHeader("Accept","application/json, text/plain, */*"),!Z.headers.has("Content-Type")){const ee=Z.detectContentTypeHeader();null!==ee&&Qe.setRequestHeader("Content-Type",ee)}if(Z.responseType){const ee=Z.responseType.toLowerCase();Qe.responseType="json"!==ee?ee:"text"}const qe=Z.serializeBody();let ct=null;const Yt=()=>{if(null!==ct)return ct;const ee=Qe.statusText||"OK",De=new u(Qe.getAllResponseHeaders()),Ot=function Ie(Et){return"responseURL"in Et&&Et.responseURL?Et.responseURL:/^X-Request-URL:/m.test(Et.getAllResponseHeaders())?Et.getResponseHeader("X-Request-URL"):null}(Qe)||Z.url;return ct=new j({headers:De,status:Qe.status,statusText:ee,url:Ot}),ct},it=()=>{let{headers:ee,status:De,statusText:Ot,url:cn}=Yt(),Gn=null;204!==De&&(Gn=typeof Qe.response>"u"?Qe.responseText:Qe.response),0===De&&(De=Gn?200:0);let _i=De>=200&&De<300;if("json"===Z.responseType&&"string"==typeof Gn){const Ni=Gn;Gn=Gn.replace(Ce,"");try{Gn=""!==Gn?JSON.parse(Gn):null}catch(Nn){Gn=Ni,_i&&(_i=!1,Gn={error:Nn,text:Gn})}}_i?(ge.next(new R({body:Gn,headers:ee,status:De,statusText:Ot,url:cn||void 0})),ge.complete()):ge.error(new U({error:Gn,headers:ee,status:De,statusText:Ot,url:cn||void 0}))},Be=ee=>{const{url:De}=Yt(),Ot=new U({error:ee,status:Qe.status||0,statusText:Qe.statusText||"Unknown Error",url:De||void 0});ge.error(Ot)};let gt=!1;const ue=ee=>{gt||(ge.next(Yt()),gt=!0);let De={type:k.DownloadProgress,loaded:ee.loaded};ee.lengthComputable&&(De.total=ee.total),"text"===Z.responseType&&Qe.responseText&&(De.partialText=Qe.responseText),ge.next(De)},Ge=ee=>{let De={type:k.UploadProgress,loaded:ee.loaded};ee.lengthComputable&&(De.total=ee.total),ge.next(De)};return Qe.addEventListener("load",it),Qe.addEventListener("error",Be),Qe.addEventListener("timeout",Be),Qe.addEventListener("abort",Be),Z.reportProgress&&(Qe.addEventListener("progress",ue),null!==qe&&Qe.upload&&Qe.upload.addEventListener("progress",Ge)),Qe.send(qe),ge.next({type:k.Sent}),()=>{Qe.removeEventListener("error",Be),Qe.removeEventListener("abort",Be),Qe.removeEventListener("load",it),Qe.removeEventListener("timeout",Be),Z.reportProgress&&(Qe.removeEventListener("progress",ue),null!==qe&&Qe.upload&&Qe.upload.removeEventListener("progress",Ge)),Qe.readyState!==Qe.DONE&&Qe.abort()}})}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(e.XhrFactory))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac}),Et})();const Mt=new n.InjectionToken("XSRF_ENABLED"),en=new n.InjectionToken("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),xt=new n.InjectionToken("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class zt{}let bt=(()=>{class Et{constructor(Z,ge,Qe){this.doc=Z,this.platform=ge,this.cookieName=Qe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Z=this.doc.cookie||"";return Z!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.\u0275parseCookieValue)(Z,this.cookieName),this.lastCookieString=Z),this.lastToken}}return Et.\u0275fac=function(Z){return new(Z||Et)(n.\u0275\u0275inject(e.DOCUMENT),n.\u0275\u0275inject(n.PLATFORM_ID),n.\u0275\u0275inject(en))},Et.\u0275prov=n.\u0275\u0275defineInjectable({token:Et,factory:Et.\u0275fac}),Et})();function At(Et,z){const Z=Et.url.toLowerCase();if(!(0,n.inject)(Mt)||"GET"===Et.method||"HEAD"===Et.method||Z.startsWith("http://")||Z.startsWith("https://"))return z(Et);const ge=(0,n.inject)(zt).getToken(),Qe=(0,n.inject)(xt);return null!=ge&&!Et.headers.has(Qe)&&(Et=Et.clone({headers:Et.headers.set(Qe,ge)})),z(Et)}var Xe=(()=>((Xe=Xe||{})[Xe.Interceptors=0]="Interceptors",Xe[Xe.LegacyInterceptors=1]="LegacyInterceptors",Xe[Xe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Xe[Xe.NoXsrfProtection=3]="NoXsrfProtection",Xe[Xe.JsonpSupport=4]="JsonpSupport",Xe[Xe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Xe))();function Pe(Et,z){return{\u0275kind:Et,\u0275providers:z}}function Ve(...Et){const z=[T,dt,se,{provide:d,useExisting:se},{provide:p,useExisting:dt},{provide:me,useValue:At,multi:!0},{provide:Mt,useValue:!0},{provide:zt,useClass:bt}];for(const Z of Et)z.push(...Z.\u0275providers);return(0,n.makeEnvironmentProviders)(z)}const It=new n.InjectionToken("LEGACY_INTERCEPTOR_FN");let pt=(()=>{class Et{}return Et.\u0275fac=function(Z){return new(Z||Et)},Et.\u0275mod=n.\u0275\u0275defineNgModule({type:Et}),Et.\u0275inj=n.\u0275\u0275defineInjector({providers:[Ve(Pe(Xe.LegacyInterceptors,[{provide:It,useFactory:q},{provide:me,useExisting:It,multi:!0}]))]}),Et})()},94650:(oe,x,i)=>{"use strict";i.r(x),i.d(x,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>cl,ANIMATION_MODULE_TYPE:()=>lM,APP_BOOTSTRAP_LISTENER:()=>q0,APP_ID:()=>A0,APP_INITIALIZER:()=>P0,ApplicationInitStatus:()=>km,ApplicationModule:()=>dx,ApplicationRef:()=>Hd,Attribute:()=>ql,COMPILER_OPTIONS:()=>gv,CUSTOM_ELEMENTS_SCHEMA:()=>zs,ChangeDetectionStrategy:()=>Yt,ChangeDetectorRef:()=>lC,Compiler:()=>U1,CompilerFactory:()=>cM,Component:()=>L1,ComponentFactory:()=>Qu,ComponentFactoryResolver:()=>Xu,ComponentRef:()=>_f,ContentChild:()=>Lo,ContentChildren:()=>da,DEFAULT_CURRENCY_CODE:()=>mv,DebugElement:()=>Um,DebugEventListener:()=>cC,DebugNode:()=>Sv,DefaultIterableDiffer:()=>pC,Directive:()=>Yh,ENVIRONMENT_INITIALIZER:()=>Vu,ElementRef:()=>su,EmbeddedViewRef:()=>tx,EnvironmentInjector:()=>Md,ErrorHandler:()=>mh,EventEmitter:()=>jc,Host:()=>Ro,HostBinding:()=>N1,HostListener:()=>I0,INJECTOR:()=>Wu,Inject:()=>jr,InjectFlags:()=>Mt,Injectable:()=>ib,InjectionToken:()=>Fo,Injector:()=>pl,Input:()=>Rm,IterableDiffers:()=>Kh,KeyValueDiffers:()=>Iv,LOCALE_ID:()=>$h,MissingTranslationStrategy:()=>Hc,ModuleWithComponentFactories:()=>U0,NO_ERRORS_SCHEMA:()=>qr,NgModule:()=>aM,NgModuleFactory:()=>xm,NgModuleRef:()=>Fh,NgProbeToken:()=>z1,NgZone:()=>sc,Optional:()=>Ir,Output:()=>k1,PACKAGE_ROOT_URL:()=>k0,PLATFORM_ID:()=>R0,PLATFORM_INITIALIZER:()=>fv,Pipe:()=>R1,PlatformRef:()=>Ev,Query:()=>$a,QueryList:()=>Tm,ReflectiveInjector:()=>du,ReflectiveKey:()=>bc,Renderer2:()=>Cg,RendererFactory2:()=>wd,RendererStyleFlags2:()=>Eo,ResolvedReflectiveFactory:()=>sb,Sanitizer:()=>Wv,SecurityContext:()=>Ta,Self:()=>Zr,SimpleChange:()=>Dn,SkipSelf:()=>qa,TRANSLATIONS:()=>F0,TRANSLATIONS_FORMAT:()=>B0,TemplateRef:()=>Dp,Testability:()=>uM,TestabilityRegistry:()=>X0,Type:()=>pn,VERSION:()=>Eg,Version:()=>fh,ViewChild:()=>yl,ViewChildren:()=>As,ViewContainerRef:()=>Z_,ViewEncapsulation:()=>it,ViewRef:()=>ex,asNativeElements:()=>dC,assertPlatform:()=>nC,createComponent:()=>vx,createEnvironmentInjector:()=>W_,createNgModule:()=>Mm,createNgModuleRef:()=>l1,createPlatform:()=>Y1,createPlatformFactory:()=>Cv,defineInjectable:()=>wt,destroyPlatform:()=>$1,enableProdMode:()=>X1,forwardRef:()=>g,getDebugNode:()=>Rp,getModuleFactory:()=>Z1,getNgModuleById:()=>J1,getPlatform:()=>Fm,importProvidersFrom:()=>ug,inject:()=>ot,isDevMode:()=>Q1,isStandalone:()=>Rn,makeEnvironmentProviders:()=>OC,platformCore:()=>cx,reflectComponentType:()=>bx,resolveForwardRef:()=>v,setTestabilityGetter:()=>Z0,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>yv,\u0275APP_ID_RANDOM_PROVIDER:()=>F1,\u0275ComponentFactory:()=>Qu,\u0275Console:()=>N0,\u0275DEFAULT_LOCALE_ID:()=>bu,\u0275INJECTOR_SCOPE:()=>zu,\u0275LContext:()=>jl,\u0275LifecycleHooksFeature:()=>Kl,\u0275LocaleDataIndex:()=>Wr,\u0275NG_COMP_DEF:()=>ue,\u0275NG_DIR_DEF:()=>Ge,\u0275NG_ELEMENT_ID:()=>cn,\u0275NG_INJ_DEF:()=>Ce,\u0275NG_MOD_DEF:()=>De,\u0275NG_PIPE_DEF:()=>ee,\u0275NG_PROV_DEF:()=>ie,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>bf,\u0275NO_CHANGE:()=>io,\u0275NgModuleFactory:()=>V_,\u0275NoopNgZone:()=>Lp,\u0275ReflectionCapabilities:()=>Vs,\u0275Render3ComponentFactory:()=>Xa,\u0275Render3ComponentRef:()=>Il,\u0275Render3NgModuleRef:()=>Ny,\u0275RuntimeError:()=>D,\u0275TESTABILITY:()=>K0,\u0275TESTABILITY_GETTER:()=>Q0,\u0275ViewRef:()=>fu,\u0275XSS_SECURITY_URL:()=>E,\u0275_sanitizeHtml:()=>Tl,\u0275_sanitizeUrl:()=>nu,\u0275allowSanitizationBypassAndThrow:()=>Lc,\u0275bypassSanitizationTrustHtml:()=>cg,\u0275bypassSanitizationTrustResourceUrl:()=>ah,\u0275bypassSanitizationTrustScript:()=>oh,\u0275bypassSanitizationTrustStyle:()=>rh,\u0275bypassSanitizationTrustUrl:()=>$s,\u0275clearResolutionOfComponentResourcesQueue:()=>Yc,\u0275coerceToBoolean:()=>ux,\u0275compileComponent:()=>zh,\u0275compileDirective:()=>uv,\u0275compileNgModule:()=>u0,\u0275compileNgModuleDefs:()=>p0,\u0275compileNgModuleFactory:()=>eC,\u0275compilePipe:()=>pv,\u0275convertToBitFlags:()=>Et,\u0275createInjector:()=>Lg,\u0275defaultIterableDiffers:()=>hs,\u0275defaultKeyValueDiffers:()=>rl,\u0275detectChanges:()=>Lb,\u0275devModeEqual:()=>xE,\u0275findLocaleData:()=>oa,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>d0,\u0275formatRuntimeError:()=>A,\u0275getDebugNode:()=>Rp,\u0275getDebugNodeR2:()=>ox,\u0275getDirectives:()=>Y_,\u0275getHostElement:()=>Pl,\u0275getInjectableDef:()=>Ut,\u0275getLContext:()=>xa,\u0275getLocaleCurrencyCode:()=>BE,\u0275getLocalePluralCase:()=>sy,\u0275getSanitizationBypassType:()=>eu,\u0275getUnknownElementStrictMode:()=>go,\u0275getUnknownPropertyStrictMode:()=>ht,\u0275global:()=>bt,\u0275injectChangeDetectorRef:()=>q1,\u0275internalCreateApplication:()=>G1,\u0275isBoundToModule:()=>W1,\u0275isEnvironmentProviders:()=>b,\u0275isInjectable:()=>nt,\u0275isNgModule:()=>av,\u0275isObservable:()=>Bb,\u0275isPromise:()=>Qf,\u0275isSubscribable:()=>gp,\u0275makeDecorator:()=>Ds,\u0275noSideEffects:()=>ct,\u0275patchComponentDefWithScope:()=>Lm,\u0275publishDefaultGlobalUtils:()=>W0,\u0275publishGlobalUtil:()=>Mc,\u0275registerLocaleData:()=>ay,\u0275resetCompiledComponents:()=>dv,\u0275resetJitOptions:()=>ov,\u0275resolveComponentResources:()=>no,\u0275setAllowDuplicateNgModuleIdsForTest:()=>wc,\u0275setClassMetadata:()=>Fy,\u0275setCurrentInjector:()=>Ae,\u0275setDocument:()=>af,\u0275setLocaleId:()=>T_,\u0275setUnknownElementStrictMode:()=>ul,\u0275setUnknownPropertyStrictMode:()=>Oe,\u0275store:()=>Nb,\u0275stringify:()=>d,\u0275transitiveScopesFor:()=>ld,\u0275unregisterLocaleData:()=>O_,\u0275unwrapSafeValue:()=>us,\u0275\u0275CopyDefinitionFeature:()=>CE,\u0275\u0275FactoryTarget:()=>jo,\u0275\u0275HostDirectivesFeature:()=>Ib,\u0275\u0275InheritDefinitionFeature:()=>Gg,\u0275\u0275NgOnChangesFeature:()=>ii,\u0275\u0275ProvidersFeature:()=>s1,\u0275\u0275StandaloneFeature:()=>z_,\u0275\u0275advance:()=>eb,\u0275\u0275attribute:()=>Kg,\u0275\u0275attributeInterpolate1:()=>Qg,\u0275\u0275attributeInterpolate2:()=>Cs,\u0275\u0275attributeInterpolate3:()=>dp,\u0275\u0275attributeInterpolate4:()=>yh,\u0275\u0275attributeInterpolate5:()=>Ch,\u0275\u0275attributeInterpolate6:()=>up,\u0275\u0275attributeInterpolate7:()=>pp,\u0275\u0275attributeInterpolate8:()=>Eh,\u0275\u0275attributeInterpolateV:()=>Xg,\u0275\u0275classMap:()=>am,\u0275\u0275classMapInterpolate1:()=>h_,\u0275\u0275classMapInterpolate2:()=>Cp,\u0275\u0275classMapInterpolate3:()=>Xb,\u0275\u0275classMapInterpolate4:()=>f_,\u0275\u0275classMapInterpolate5:()=>Zb,\u0275\u0275classMapInterpolate6:()=>Jb,\u0275\u0275classMapInterpolate7:()=>m_,\u0275\u0275classMapInterpolate8:()=>g_,\u0275\u0275classMapInterpolateV:()=>__,\u0275\u0275classProp:()=>o_,\u0275\u0275contentQuery:()=>iv,\u0275\u0275defineComponent:()=>_i,\u0275\u0275defineDirective:()=>Si,\u0275\u0275defineInjectable:()=>Ye,\u0275\u0275defineInjector:()=>Wt,\u0275\u0275defineNgModule:()=>On,\u0275\u0275definePipe:()=>un,\u0275\u0275directiveInject:()=>bh,\u0275\u0275disableBindings:()=>oo,\u0275\u0275element:()=>Zg,\u0275\u0275elementContainer:()=>$f,\u0275\u0275elementContainerEnd:()=>mp,\u0275\u0275elementContainerStart:()=>xh,\u0275\u0275elementEnd:()=>Gf,\u0275\u0275elementStart:()=>Yf,\u0275\u0275enableBindings:()=>rr,\u0275\u0275getCurrentView:()=>Kf,\u0275\u0275getInheritedFactory:()=>Js,\u0275\u0275hostProperty:()=>x_,\u0275\u0275i18n:()=>Ay,\u0275\u0275i18nApply:()=>B_,\u0275\u0275i18nAttributes:()=>N_,\u0275\u0275i18nEnd:()=>Nd,\u0275\u0275i18nExp:()=>F_,\u0275\u0275i18nPostprocess:()=>Ly,\u0275\u0275i18nStart:()=>k_,\u0275\u0275inject:()=>pt,\u0275\u0275injectAttribute:()=>tl,\u0275\u0275invalidFactory:()=>pb,\u0275\u0275invalidFactoryDep:()=>tn,\u0275\u0275listener:()=>Mh,\u0275\u0275loadQuery:()=>t0,\u0275\u0275namespaceHTML:()=>Jr,\u0275\u0275namespaceMathML:()=>mo,\u0275\u0275namespaceSVG:()=>wr,\u0275\u0275nextContext:()=>qf,\u0275\u0275ngDeclareClassMetadata:()=>hx,\u0275\u0275ngDeclareComponent:()=>Bp,\u0275\u0275ngDeclareDirective:()=>px,\u0275\u0275ngDeclareFactory:()=>Pv,\u0275\u0275ngDeclareInjectable:()=>mC,\u0275\u0275ngDeclareInjector:()=>mx,\u0275\u0275ngDeclareNgModule:()=>gx,\u0275\u0275ngDeclarePipe:()=>_x,\u0275\u0275pipe:()=>Yy,\u0275\u0275pipeBind1:()=>Gy,\u0275\u0275pipeBind2:()=>b1,\u0275\u0275pipeBind3:()=>$y,\u0275\u0275pipeBind4:()=>Ky,\u0275\u0275pipeBindV:()=>X_,\u0275\u0275projection:()=>jb,\u0275\u0275projectionDef:()=>Ub,\u0275\u0275property:()=>zf,\u0275\u0275propertyInterpolate:()=>_p,\u0275\u0275propertyInterpolate1:()=>vp,\u0275\u0275propertyInterpolate2:()=>em,\u0275\u0275propertyInterpolate3:()=>wh,\u0275\u0275propertyInterpolate4:()=>Oh,\u0275\u0275propertyInterpolate5:()=>Th,\u0275\u0275propertyInterpolate6:()=>tm,\u0275\u0275propertyInterpolate7:()=>Jg,\u0275\u0275propertyInterpolate8:()=>nm,\u0275\u0275propertyInterpolateV:()=>Ad,\u0275\u0275pureFunction0:()=>By,\u0275\u0275pureFunction1:()=>h1,\u0275\u0275pureFunction2:()=>Uy,\u0275\u0275pureFunction3:()=>jy,\u0275\u0275pureFunction4:()=>K_,\u0275\u0275pureFunction5:()=>Q_,\u0275\u0275pureFunction6:()=>Hy,\u0275\u0275pureFunction7:()=>xc,\u0275\u0275pureFunction8:()=>Vy,\u0275\u0275pureFunctionV:()=>Wy,\u0275\u0275queryRefresh:()=>To,\u0275\u0275reference:()=>hp,\u0275\u0275registerNgModuleType:()=>Gc,\u0275\u0275resetView:()=>Aa,\u0275\u0275resolveBody:()=>gc,\u0275\u0275resolveDocument:()=>Zu,\u0275\u0275resolveWindow:()=>Yv,\u0275\u0275restoreView:()=>zr,\u0275\u0275sanitizeHtml:()=>lh,\u0275\u0275sanitizeResourceUrl:()=>xd,\u0275\u0275sanitizeScript:()=>ju,\u0275\u0275sanitizeStyle:()=>ch,\u0275\u0275sanitizeUrl:()=>ou,\u0275\u0275sanitizeUrlOrResourceUrl:()=>zl,\u0275\u0275setComponentScope:()=>Ni,\u0275\u0275setNgModuleScope:()=>Qn,\u0275\u0275styleMap:()=>rc,\u0275\u0275styleMapInterpolate1:()=>qb,\u0275\u0275styleMapInterpolate2:()=>ey,\u0275\u0275styleMapInterpolate3:()=>ty,\u0275\u0275styleMapInterpolate4:()=>v_,\u0275\u0275styleMapInterpolate5:()=>ny,\u0275\u0275styleMapInterpolate6:()=>iy,\u0275\u0275styleMapInterpolate7:()=>b_,\u0275\u0275styleMapInterpolate8:()=>ry,\u0275\u0275styleMapInterpolateV:()=>oy,\u0275\u0275styleProp:()=>om,\u0275\u0275stylePropInterpolate1:()=>y_,\u0275\u0275stylePropInterpolate2:()=>fm,\u0275\u0275stylePropInterpolate3:()=>C_,\u0275\u0275stylePropInterpolate4:()=>mm,\u0275\u0275stylePropInterpolate5:()=>Ep,\u0275\u0275stylePropInterpolate6:()=>gm,\u0275\u0275stylePropInterpolate7:()=>_u,\u0275\u0275stylePropInterpolate8:()=>Ah,\u0275\u0275stylePropInterpolateV:()=>E_,\u0275\u0275syntheticHostListener:()=>Sh,\u0275\u0275syntheticHostProperty:()=>M_,\u0275\u0275template:()=>kb,\u0275\u0275templateRefExtractor:()=>a0,\u0275\u0275text:()=>c_,\u0275\u0275textInterpolate:()=>cm,\u0275\u0275textInterpolate1:()=>Ph,\u0275\u0275textInterpolate2:()=>dm,\u0275\u0275textInterpolate3:()=>yp,\u0275\u0275textInterpolate4:()=>d_,\u0275\u0275textInterpolate5:()=>u_,\u0275\u0275textInterpolate6:()=>p_,\u0275\u0275textInterpolate7:()=>um,\u0275\u0275textInterpolate8:()=>pm,\u0275\u0275textInterpolateV:()=>hm,\u0275\u0275trustConstantHtml:()=>Hu,\u0275\u0275trustConstantResourceUrl:()=>dh,\u0275\u0275validateIframeAttribute:()=>Nu,\u0275\u0275viewQuery:()=>Pm});var e=i(77579),n=i(50727),a=i(69751),t=i(56451),l=i(13099);function h(f){for(let _ in f)if(f[_]===h)return _;throw Error("Could not find renamed property on target object.")}function s(f,_){for(const C in _)_.hasOwnProperty(C)&&!f.hasOwnProperty(C)&&(f[C]=_[C])}function d(f){if("string"==typeof f)return f;if(Array.isArray(f))return"["+f.map(d).join(", ")+"]";if(null==f)return""+f;if(f.overriddenName)return`${f.overriddenName}`;if(f.name)return`${f.name}`;const _=f.toString();if(null==_)return""+_;const C=_.indexOf("\n");return-1===C?_:_.substring(0,C)}function p(f,_){return null==f||""===f?null===_?"":_:null==_||""===_?f:f+" "+_}const u=h({__forward_ref__:h});function g(f){return f.__forward_ref__=g,f.toString=function(){return d(this())},f}function v(f){return y(f)?f():f}function y(f){return"function"==typeof f&&f.hasOwnProperty(u)&&f.__forward_ref__===g}function b(f){return f&&!!f.\u0275providers}const E="https://g.co/ng/security#xss";class D extends Error{constructor(_,C){super(A(_,C)),this.code=_}}function A(f,_){return`NG0${Math.abs(f)}${_?": "+_.trim():""}`}function P(f){return"string"==typeof f?f:null==f?"":String(f)}function B(f){return"function"==typeof f?f.name||f.toString():"object"==typeof f&&null!=f&&"function"==typeof f.type?f.type.name||f.type.toString():P(f)}function Q(f,_){throw new D(-201,!1)}function q(f,_,C,O){throw new Error(`ASSERTION ERROR: ${f}`+(null==O?"":` [Expected=> ${C} ${O} ${_} <=Actual]`))}function Ye(f){return{token:f.token,providedIn:f.providedIn||null,factory:f.factory,value:void 0}}const wt=Ye;function Wt(f){return{providers:f.providers||[],imports:f.imports||[]}}function Ut(f){return Zt(f,ie)||Zt(f,Ie)}function nt(f){return null!==Ut(f)}function Zt(f,_){return f.hasOwnProperty(_)?f[_]:null}function yt(f){return f&&(f.hasOwnProperty(Ce)||f.hasOwnProperty(dt))?f[Ce]:null}const ie=h({\u0275prov:h}),Ce=h({\u0275inj:h}),Ie=h({ngInjectableDef:h}),dt=h({ngInjectorDef:h});var Mt=(()=>((Mt=Mt||{})[Mt.Default=0]="Default",Mt[Mt.Host=1]="Host",Mt[Mt.Self=2]="Self",Mt[Mt.SkipSelf=4]="SkipSelf",Mt[Mt.Optional=8]="Optional",Mt))();let Xt;function vt(f){const _=Xt;return Xt=f,_}function xt(f,_,C){const O=Ut(f);return O&&"root"==O.providedIn?void 0===O.value?O.value=O.factory():O.value:C&Mt.Optional?null:void 0!==_?_:void Q(d(f))}const bt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Pe={},Ve="__NG_DI_FLAG__",mt="ngTempTokenPath",It="ngTokenPath",xn=/\n/gm,_n="\u0275",Jt="__source";let ke;function Ae(f){const _=ke;return ke=f,_}function ze(f,_=Mt.Default){if(void 0===ke)throw new D(-203,!1);return null===ke?xt(f,void 0,_):ke.get(f,_&Mt.Optional?null:void 0,_)}function pt(f,_=Mt.Default){return(function en(){return Xt}()||ze)(v(f),_)}function tn(f){throw new D(202,!1)}function ot(f,_=Mt.Default){return pt(f,Et(_))}function Et(f){return typeof f>"u"||"number"==typeof f?f:0|(f.optional&&8)|(f.host&&1)|(f.self&&2)|(f.skipSelf&&4)}function z(f){const _=[];for(let C=0;C<f.length;C++){const O=v(f[C]);if(Array.isArray(O)){if(0===O.length)throw new D(900,!1);let L,J=Mt.Default;for(let ye=0;ye<O.length;ye++){const je=O[ye],lt=ge(je);"number"==typeof lt?-1===lt?L=je.token:J|=lt:L=je}_.push(pt(L,J))}else _.push(pt(O))}return _}function Z(f,_){return f[Ve]=_,f.prototype[Ve]=_,f}function ge(f){return f[Ve]}function ct(f){return{toString:f}.toString()}var Yt=(()=>((Yt=Yt||{})[Yt.OnPush=0]="OnPush",Yt[Yt.Default=1]="Default",Yt))(),it=(()=>{return(f=it||(it={}))[f.Emulated=0]="Emulated",f[f.None=2]="None",f[f.ShadowDom=3]="ShadowDom",it;var f})();const Be={},gt=[],ue=h({\u0275cmp:h}),Ge=h({\u0275dir:h}),ee=h({\u0275pipe:h}),De=h({\u0275mod:h}),Ot=h({\u0275fac:h}),cn=h({__NG_ELEMENT_ID__:h});let Gn=0;function _i(f){return ct(()=>{const _=ji(f),C={..._,decls:f.decls,vars:f.vars,template:f.template,consts:f.consts||null,ngContentSelectors:f.ngContentSelectors,onPush:f.changeDetection===Yt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:_.standalone&&f.dependencies||null,getStandaloneInjector:null,data:f.data||{},encapsulation:f.encapsulation||it.Emulated,id:"c"+Gn++,styles:f.styles||gt,_:null,schemas:f.schemas||null,tView:null};ir(C);const O=f.dependencies;return C.directiveDefs=dr(O,!1),C.pipeDefs=dr(O,!0),C})}function Ni(f,_,C){const O=f.\u0275cmp;O.directiveDefs=dr(_,!1),O.pipeDefs=dr(C,!0)}function Nn(f){return rn(f)||$t(f)}function Mn(f){return null!==f}function On(f){return ct(()=>({type:f.type,bootstrap:f.bootstrap||gt,declarations:f.declarations||gt,imports:f.imports||gt,exports:f.exports||gt,transitiveCompileScopes:null,schemas:f.schemas||null,id:f.id||null}))}function Qn(f,_){return ct(()=>{const C=Wn(f,!0);C.declarations=_.declarations||gt,C.imports=_.imports||gt,C.exports=_.exports||gt})}function Ti(f,_){if(null==f)return Be;const C={};for(const O in f)if(f.hasOwnProperty(O)){let L=f[O],J=L;Array.isArray(L)&&(J=L[1],L=L[0]),C[L]=O,_&&(_[L]=J)}return C}function Si(f){return ct(()=>{const _=ji(f);return ir(_),_})}function un(f){return{type:f.type,name:f.name,factory:null,pure:!1!==f.pure,standalone:!0===f.standalone,onDestroy:f.type.prototype.ngOnDestroy||null}}function rn(f){return f[ue]||null}function $t(f){return f[Ge]||null}function Nt(f){return f[ee]||null}function Rn(f){const _=rn(f)||$t(f)||Nt(f);return null!==_&&_.standalone}function Wn(f,_){const C=f[De]||null;if(!C&&!0===_)throw new Error(`Type ${d(f)} does not have '\u0275mod' property.`);return C}function ji(f){const _={};return{type:f.type,providersResolver:null,factory:null,hostBindings:f.hostBindings||null,hostVars:f.hostVars||0,hostAttrs:f.hostAttrs||null,contentQueries:f.contentQueries||null,declaredInputs:_,exportAs:f.exportAs||null,standalone:!0===f.standalone,selectors:f.selectors||gt,viewQuery:f.viewQuery||null,features:f.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ti(f.inputs,_),outputs:Ti(f.outputs)}}function ir(f){f.features?.forEach(_=>_(f))}function dr(f,_){if(!f)return null;const C=_?Nt:Nn;return()=>("function"==typeof f?f():f).map(O=>C(O)).filter(Mn)}const Ln=0,Vn=1,Le=2,Ft=3,dn=4,En=5,gi=6,$i=7,fr=8,Mr=9,ti=10,Kn=11,on=12,he=13,et=14,tt=15,nn=16,zn=17,jt=18,Fn=19,jn=20,ri=21,vi=22,cr=1,Hi=2,Vi=7,kr=8,Er=9,pr=10;function Tr(f){return Array.isArray(f)&&"object"==typeof f[cr]}function Br(f){return Array.isArray(f)&&!0===f[cr]}function _o(f){return 0!=(4&f.flags)}function Bn(f){return f.componentOffset>-1}function Sn(f){return 1==(1&f.flags)}function Lt(f){return!!f.template}function Jn(f){return 0!=(256&f[Le])}function bn(f,_){return f.hasOwnProperty(Ot)?f[Ot]:null}class Dn{constructor(_,C,O){this.previousValue=_,this.currentValue=C,this.firstChange=O}isFirstChange(){return this.firstChange}}function ii(){return li}function li(f){return f.type.prototype.ngOnChanges&&(f.setInput=ce),ft}function ft(){const f=ut(this),_=f?.current;if(_){const C=f.previous;if(C===Be)f.previous=_;else for(let O in _)C[O]=_[O];f.current=null,this.ngOnChanges(_)}}function ce(f,_,C,O){const L=this.declaredInputs[C],J=ut(f)||function Kt(f,_){return f[Se]=_}(f,{previous:Be,current:null}),ye=J.current||(J.current={}),je=J.previous,lt=je[L];ye[L]=new Dn(lt&&lt.currentValue,_,je===Be),f[O]=_}ii.ngInherit=!0;const Se="__ngSimpleChanges__";function ut(f){return f[Se]||null}let mn=null;const Un=f=>{mn=f},qn=function(f,_,C){mn?.(f,_,C)},ci="svg",hi="math";function Ai(f){for(;Array.isArray(f);)f=f[Ln];return f}function Yi(f,_){return Ai(_[f])}function tr(f,_){return Ai(_[f.index])}function Gr(f,_){return f.data[_]}function Io(f,_){return f[_]}function wo(f,_){const C=_[f];return Tr(C)?C:C[Ln]}function yo(f){return 64==(64&f[Le])}function Uo(f,_){return null==_?null:f[_]}function _a(f){f[jt]=0}function $o(f,_){f[En]+=_;let C=f,O=f[Ft];for(;null!==O&&(1===_&&1===C[En]||-1===_&&0===C[En]);)O[En]+=_,C=O,O=O[Ft]}const yr={lFrame:In(null),bindingsEnabled:!0};function Ci(){return yr.bindingsEnabled}function rr(){yr.bindingsEnabled=!0}function oo(){yr.bindingsEnabled=!1}function Oi(){return yr.lFrame.lView}function xr(){return yr.lFrame.tView}function zr(f){return yr.lFrame.contextLView=f,f[fr]}function Aa(f){return yr.lFrame.contextLView=null,f}function Mo(){let f=ka();for(;null!==f&&64===f.type;)f=f.parent;return f}function ka(){return yr.lFrame.currentTNode}function Ss(){const f=yr.lFrame,_=f.currentTNode;return f.isParent?_:_.parent}function ba(f,_){const C=yr.lFrame;C.currentTNode=f,C.isParent=_}function sl(){return yr.lFrame.isParent}function ca(){yr.lFrame.isParent=!1}function Po(){const f=yr.lFrame;let _=f.bindingRootIndex;return-1===_&&(_=f.bindingRootIndex=f.tView.bindingStartIndex),_}function Ko(){return yr.lFrame.bindingIndex}function Ji(f){return yr.lFrame.bindingIndex=f}function Na(){return yr.lFrame.bindingIndex++}function Ma(f){const _=yr.lFrame,C=_.bindingIndex;return _.bindingIndex=_.bindingIndex+f,C}function Fr(f){yr.lFrame.inI18n=f}function Ao(f,_){const C=yr.lFrame;C.bindingIndex=C.bindingRootIndex=f,fs(_)}function fs(f){yr.lFrame.currentDirectiveIndex=f}function Sr(f){const _=yr.lFrame.currentDirectiveIndex;return-1===_?null:f[_]}function os(){return yr.lFrame.currentQueryIndex}function ya(f){yr.lFrame.currentQueryIndex=f}function Ha(f){const _=f[Vn];return 2===_.type?_.declTNode:1===_.type?f[gi]:null}function La(f,_,C){if(C&Mt.SkipSelf){let L=_,J=f;for(;!(L=L.parent,null!==L||C&Mt.Host||(L=Ha(J),null===L||(J=J[tt],10&L.type))););if(null===L)return!1;_=L,f=J}const O=yr.lFrame=sn();return O.currentTNode=_,O.lView=f,!0}function No(f){const _=sn(),C=f[Vn];yr.lFrame=_,_.currentTNode=C.firstChild,_.lView=f,_.tView=C,_.contextLView=f,_.bindingIndex=C.bindingStartIndex,_.inI18n=!1}function sn(){const f=yr.lFrame,_=null===f?null:f.child;return null===_?In(f):_}function In(f){const _={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:f,child:null,inI18n:!1};return null!==f&&(f.child=_),_}function $n(){const f=yr.lFrame;return yr.lFrame=f.parent,f.currentTNode=null,f.lView=null,f}const oi=$n;function si(){const f=$n();f.isParent=!0,f.tView=null,f.selectedIndex=-1,f.contextLView=null,f.elementDepthCount=0,f.currentDirectiveIndex=-1,f.currentNamespace=null,f.bindingRootIndex=-1,f.bindingIndex=-1,f.currentQueryIndex=0}function Fi(){return yr.lFrame.selectedIndex}function sr(f){yr.lFrame.selectedIndex=f}function Xi(){const f=yr.lFrame;return Gr(f.tView,f.selectedIndex)}function wr(){yr.lFrame.currentNamespace=ci}function mo(){yr.lFrame.currentNamespace=hi}function Jr(){!function na(){yr.lFrame.currentNamespace=null}()}function Vo(f,_){for(let C=_.directiveStart,O=_.directiveEnd;C<O;C++){const J=f.data[C].type.prototype,{ngAfterContentInit:ye,ngAfterContentChecked:je,ngAfterViewInit:lt,ngAfterViewChecked:Ht,ngOnDestroy:fn}=J;ye&&(f.contentHooks??(f.contentHooks=[])).push(-C,ye),je&&((f.contentHooks??(f.contentHooks=[])).push(C,je),(f.contentCheckHooks??(f.contentCheckHooks=[])).push(C,je)),lt&&(f.viewHooks??(f.viewHooks=[])).push(-C,lt),Ht&&((f.viewHooks??(f.viewHooks=[])).push(C,Ht),(f.viewCheckHooks??(f.viewCheckHooks=[])).push(C,Ht)),null!=fn&&(f.destroyHooks??(f.destroyHooks=[])).push(C,fn)}}function Ra(f,_,C){Vt(f,_,3,C)}function Xo(f,_,C,O){(3&f[Le])===C&&Vt(f,_,C,O)}function Je(f,_){let C=f[Le];(3&C)===_&&(C&=2047,C+=1,f[Le]=C)}function Vt(f,_,C,O){const J=O??-1,ye=_.length-1;let je=0;for(let lt=void 0!==O?65535&f[jt]:0;lt<ye;lt++)if("number"==typeof _[lt+1]){if(je=_[lt],null!=O&&je>=O)break}else _[lt]<0&&(f[jt]+=65536),(je<J||-1==J)&&(st(f,C,_,lt),f[jt]=(4294901760&f[jt])+lt+2),lt++}function st(f,_,C,O){const L=C[O]<0,J=C[O+1],je=f[L?-C[O]:C[O]];if(L){if(f[Le]>>11<f[jt]>>16&&(3&f[Le])===_){f[Le]+=2048,qn(4,je,J);try{J.call(je)}finally{qn(5,je,J)}}}else{qn(4,je,J);try{J.call(je)}finally{qn(5,je,J)}}}const ln=-1;class An{constructor(_,C,O){this.factory=_,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=O}}function Xr(f,_,C){let O=0;for(;O<C.length;){const L=C[O];if("number"==typeof L){if(0!==L)break;O++;const J=C[O++],ye=C[O++],je=C[O++];f.setAttribute(_,ye,je,J)}else{const J=L,ye=C[++O];Zo(J)?f.setProperty(_,J,ye):f.setAttribute(_,J,ye),O++}}return O}function vo(f){return 3===f||4===f||6===f}function Zo(f){return 64===f.charCodeAt(0)}function ia(f,_){if(null!==_&&0!==_.length)if(null===f||0===f.length)f=_.slice();else{let C=-1;for(let O=0;O<_.length;O++){const L=_[O];"number"==typeof L?C=L:0===C||Ga(f,C,L,null,-1===C||2===C?_[++O]:null)}}return f}function Ga(f,_,C,O,L){let J=0,ye=f.length;if(-1===_)ye=-1;else for(;J<f.length;){const je=f[J++];if("number"==typeof je){if(je===_){ye=-1;break}if(je>_){ye=J-1;break}}}for(;J<f.length;){const je=f[J];if("number"==typeof je)break;if(je===C){if(null===O)return void(null!==L&&(f[J+1]=L));if(O===f[J+1])return void(f[J+2]=L)}J++,null!==O&&J++,null!==L&&J++}-1!==ye&&(f.splice(ye,0,_),J=ye+1),f.splice(J++,0,C),null!==O&&f.splice(J++,0,O),null!==L&&f.splice(J++,0,L)}function ra(f){return f!==ln}function mr(f){return 32767&f}function so(f,_){let C=function Ur(f){return f>>16}(f),O=_;for(;C>0;)O=O[tt],C--;return O}let sa=!0;function Wa(f){const _=sa;return sa=f,_}const kl=255,Ja=5;let ws=0;const Ca={};function Us(f,_){const C=Xs(f,_);if(-1!==C)return C;const O=_[Vn];O.firstCreatePass&&(f.injectorIndex=_.length,Ea(O.data,f),Ea(_,null),Ea(O.blueprint,null));const L=as(f,_),J=f.injectorIndex;if(ra(L)){const ye=mr(L),je=so(L,_),lt=je[Vn].data;for(let Ht=0;Ht<8;Ht++)_[J+Ht]=je[ye+Ht]|lt[ye+Ht]}return _[J+8]=L,J}function Ea(f,_){f.push(0,0,0,0,0,0,0,0,_)}function Xs(f,_){return-1===f.injectorIndex||f.parent&&f.parent.injectorIndex===f.injectorIndex||null===_[f.injectorIndex+8]?-1:f.injectorIndex}function as(f,_){if(f.parent&&-1!==f.parent.injectorIndex)return f.parent.injectorIndex;let C=0,O=null,L=_;for(;null!==L;){if(O=el(L),null===O)return ln;if(C++,L=L[tt],-1!==O.injectorIndex)return O.injectorIndex|C<<16}return ln}function Oo(f,_,C){!function ms(f,_,C){let O;"string"==typeof C?O=C.charCodeAt(0)||0:C.hasOwnProperty(cn)&&(O=C[cn]),null==O&&(O=C[cn]=ws++);const L=O&kl;_.data[f+(L>>Ja)]|=1<<L}(f,_,C)}function Zs(f,_,C){if(C&Mt.Optional||void 0!==f)return f;Q()}function Nl(f,_,C,O){if(C&Mt.Optional&&void 0===O&&(O=null),!(C&(Mt.Self|Mt.Host))){const L=f[Mr],J=vt(void 0);try{return L?L.get(_,O,C&Mt.Optional):xt(_,O,C&Mt.Optional)}finally{vt(J)}}return Zs(O,0,C)}function _l(f,_,C,O=Mt.Default,L){if(null!==f){if(1024&_[Le]){const ye=function bl(f,_,C,O,L){let J=f,ye=_;for(;null!==J&&null!==ye&&1024&ye[Le]&&!(256&ye[Le]);){const je=Fl(J,ye,C,O|Mt.Self,Ca);if(je!==Ca)return je;let lt=J.parent;if(!lt){const Ht=ye[ri];if(Ht){const fn=Ht.get(C,Ca,O);if(fn!==Ca)return fn}lt=el(ye),ye=ye[tt]}J=lt}return L}(f,_,C,O,Ca);if(ye!==Ca)return ye}const J=Fl(f,_,C,O,Ca);if(J!==Ca)return J}return Nl(_,C,O,L)}function Fl(f,_,C,O,L){const J=function ll(f){if("string"==typeof f)return f.charCodeAt(0)||0;const _=f.hasOwnProperty(cn)?f[cn]:void 0;return"number"==typeof _?_>=0?_&kl:_s:_}(C);if("function"==typeof J){if(!La(_,f,O))return O&Mt.Host?Zs(L,0,O):Nl(_,C,O,L);try{const ye=J(O);if(null!=ye||O&Mt.Optional)return ye;Q()}finally{oi()}}else if("number"==typeof J){let ye=null,je=Xs(f,_),lt=ln,Ht=O&Mt.Host?_[nn][gi]:null;for((-1===je||O&Mt.SkipSelf)&&(lt=-1===je?as(f,_):_[je+8],lt!==ln&&Hs(O,!1)?(ye=_[Vn],je=mr(lt),_=so(lt,_)):je=-1);-1!==je;){const fn=_[Vn];if(gs(J,je,fn.data)){const Hn=vl(je,_,C,ye,O,Ht);if(Hn!==Ca)return Hn}lt=_[je+8],lt!==ln&&Hs(O,_[Vn].data[je+8]===Ht)&&gs(J,je,_)?(ye=fn,je=mr(lt),_=so(lt,_)):je=-1}}return L}function vl(f,_,C,O,L,J){const ye=_[Vn],je=ye.data[f+8],fn=js(je,ye,C,null==O?Bn(je)&&sa:O!=ye&&0!=(3&je.type),L&Mt.Host&&J===je);return null!==fn?Jo(_,ye,fn,je):Ca}function js(f,_,C,O,L){const J=f.providerIndexes,ye=_.data,je=1048575&J,lt=f.directiveStart,fn=J>>20,di=L?je+fn:f.directiveEnd;for(let Ei=O?je:je+fn;Ei<di;Ei++){const Bi=ye[Ei];if(Ei<lt&&C===Bi||Ei>=lt&&Bi.type===C)return Ei}if(L){const Ei=ye[lt];if(Ei&&Lt(Ei)&&Ei.type===C)return lt}return null}function Jo(f,_,C,O){let L=f[C];const J=_.data;if(function yi(f){return f instanceof An}(L)){const ye=L;ye.resolving&&function V(f,_){const C=_?`. Dependency path: ${_.join(" > ")} > ${f}`:"";throw new D(-200,`Circular dependency in DI detected for ${f}${C}`)}(B(J[C]));const je=Wa(ye.canSeeViewProviders);ye.resolving=!0;const lt=ye.injectImpl?vt(ye.injectImpl):null;La(f,O,Mt.Default);try{L=f[C]=ye.factory(void 0,J,f,O),_.firstCreatePass&&C>=O.directiveStart&&function Va(f,_,C){const{ngOnChanges:O,ngOnInit:L,ngDoCheck:J}=_.type.prototype;if(O){const ye=li(_);(C.preOrderHooks??(C.preOrderHooks=[])).push(f,ye),(C.preOrderCheckHooks??(C.preOrderCheckHooks=[])).push(f,ye)}L&&(C.preOrderHooks??(C.preOrderHooks=[])).push(0-f,L),J&&((C.preOrderHooks??(C.preOrderHooks=[])).push(f,J),(C.preOrderCheckHooks??(C.preOrderCheckHooks=[])).push(f,J))}(C,J[C],_)}finally{null!==lt&&vt(lt),Wa(je),ye.resolving=!1,oi()}}return L}function gs(f,_,C){return!!(C[_+(f>>Ja)]&1<<f)}function Hs(f,_){return!(f&Mt.Self||f&Mt.Host&&_)}class ss{constructor(_,C){this._tNode=_,this._lView=C}get(_,C,O){return _l(this._tNode,this._lView,_,Et(O),C)}}function _s(){return new ss(Mo(),Oi())}function Js(f){return ct(()=>{const _=f.prototype.constructor,C=_[Ot]||qs(_),O=Object.prototype;let L=Object.getPrototypeOf(f.prototype).constructor;for(;L&&L!==O;){const J=L[Ot]||qs(L);if(J&&J!==C)return J;L=Object.getPrototypeOf(L)}return J=>new J})}function qs(f){return y(f)?()=>{const _=qs(v(f));return _&&_()}:bn(f)}function el(f){const _=f[Vn],C=_.type;return 2===C?_.declTNode:1===C?f[gi]:null}function tl(f){return function gl(f,_){if("class"===_)return f.classes;if("style"===_)return f.styles;const C=f.attrs;if(C){const O=C.length;let L=0;for(;L<O;){const J=C[L];if(vo(J))break;if(0===J)L+=2;else if("number"==typeof J)for(L++;L<O&&"string"==typeof C[L];)L++;else{if(J===_)return C[L+1];L+=2}}}return null}(Mo(),f)}const Os="__annotations__",vs="__parameters__",Ts="__prop__metadata__";function Ds(f,_,C,O,L){return ct(()=>{const J=Is(_);function ye(...je){if(this instanceof ye)return J.call(this,...je),this;const lt=new ye(...je);return function(fn){return L&&L(fn,...je),(fn.hasOwnProperty(Os)?fn[Os]:Object.defineProperty(fn,Os,{value:[]})[Os]).push(lt),O&&O(fn),fn}}return C&&(ye.prototype=Object.create(C.prototype)),ye.prototype.ngMetadataName=f,ye.annotationCls=ye,ye})}function Is(f){return function(...C){if(f){const O=f(...C);for(const L in O)this[L]=O[L]}}}function Ps(f,_,C){return ct(()=>{const O=Is(_);function L(...J){if(this instanceof L)return O.apply(this,J),this;const ye=new L(...J);return je.annotation=ye,je;function je(lt,Ht,fn){const Hn=lt.hasOwnProperty(vs)?lt[vs]:Object.defineProperty(lt,vs,{value:[]})[vs];for(;Hn.length<=fn;)Hn.push(null);return(Hn[fn]=Hn[fn]||[]).push(ye),lt}}return C&&(L.prototype=Object.create(C.prototype)),L.prototype.ngMetadataName=f,L.annotationCls=L,L})}function bs(f,_,C,O){return ct(()=>{const L=Is(_);function J(...ye){if(this instanceof J)return L.apply(this,ye),this;const je=new J(...ye);return function lt(Ht,fn){const Hn=Ht.constructor,di=Hn.hasOwnProperty(Ts)?Hn[Ts]:Object.defineProperty(Hn,Ts,{value:{}})[Ts];di[fn]=di.hasOwnProperty(fn)&&di[fn]||[],di[fn].unshift(je),O&&O(Ht,fn,...ye)}}return C&&(J.prototype=Object.create(C.prototype)),J.prototype.ngMetadataName=f,J.annotationCls=J,J})}const ql=Ps("Attribute",f=>({attributeName:f,__NG_ELEMENT_ID__:()=>tl(f)}));class Fo{constructor(_,C){this._desc=_,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=Ye({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const cl=new Fo("AnalyzeForEntryComponents");class $a{}const da=bs("ContentChildren",(f,_={})=>({selector:f,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,..._}),$a),Lo=bs("ContentChild",(f,_={})=>({selector:f,first:!0,isViewQuery:!1,descendants:!0,..._}),$a),As=bs("ViewChildren",(f,_={})=>({selector:f,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,..._}),$a),yl=bs("ViewChild",(f,_)=>({selector:f,first:!0,isViewQuery:!0,descendants:!0,..._}),$a);var jo=(()=>((jo=jo||{})[jo.Directive=0]="Directive",jo[jo.Component=1]="Component",jo[jo.Injectable=2]="Injectable",jo[jo.Pipe=3]="Pipe",jo[jo.NgModule=4]="NgModule",jo))();function nr(f){const _=bt.ng;if(_&&_.\u0275compilerFacade)return _.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const pn=Function;function Mi(f){return"function"==typeof f}function gr(f){return f.flat(Number.POSITIVE_INFINITY)}function xe(f,_){f.forEach(C=>Array.isArray(C)?xe(C,_):_(C))}function He(f,_,C){_>=f.length?f.push(C):f.splice(_,0,C)}function fe(f,_){return _>=f.length-1?f.pop():f.splice(_,1)[0]}function rt(f,_){const C=[];for(let O=0;O<f;O++)C.push(_);return C}function ki(f,_,C){let O=lr(f,_);return O>=0?f[1|O]=C:(O=~O,function wn(f,_,C,O){let L=f.length;if(L==_)f.push(C,O);else if(1===L)f.push(O,f[0]),f[0]=C;else{for(L--,f.push(f[L-1],f[L]);L>_;)f[L]=f[L-2],L--;f[_]=C,f[_+1]=O}}(f,O,_,C)),O}function ur(f,_){const C=lr(f,_);if(C>=0)return f[1|C]}function lr(f,_){return function Ho(f,_,C){let O=0,L=f.length>>C;for(;L!==O;){const J=O+(L-O>>1),ye=f[J<<C];if(_===ye)return J<<C;ye>_?L=J:O=J+1}return~(L<<C)}(f,_,1)}const ls=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,Wo=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,za=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Ka=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Vs{constructor(_){this._reflect=_||bt.Reflect}factory(_){return(...C)=>new _(...C)}_zipTypesAndAnnotations(_,C){let O;O=rt(typeof _>"u"?C.length:_.length);for(let L=0;L<O.length;L++)O[L]=typeof _>"u"?[]:_[L]&&_[L]!=Object?[_[L]]:[],C&&null!=C[L]&&(O[L]=O[L].concat(C[L]));return O}_ownParameters(_,C){if(function lc(f){return ls.test(f)||Ka.test(f)||Wo.test(f)&&!za.test(f)}(_.toString()))return null;if(_.parameters&&_.parameters!==C.parameters)return _.parameters;const L=_.ctorParameters;if(L&&L!==C.ctorParameters){const je="function"==typeof L?L():L,lt=je.map(fn=>fn&&fn.type),Ht=je.map(fn=>fn&&ys(fn.decorators));return this._zipTypesAndAnnotations(lt,Ht)}const J=_.hasOwnProperty(vs)&&_[vs],ye=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",_);return ye||J?this._zipTypesAndAnnotations(ye,J):rt(_.length)}parameters(_){if(!Mi(_))return[];const C=cc(_);let O=this._ownParameters(_,C);return!O&&C!==Object&&(O=this.parameters(C)),O||[]}_ownAnnotations(_,C){if(_.annotations&&_.annotations!==C.annotations){let O=_.annotations;return"function"==typeof O&&O.annotations&&(O=O.annotations),O}return _.decorators&&_.decorators!==C.decorators?ys(_.decorators):_.hasOwnProperty(Os)?_[Os]:null}annotations(_){if(!Mi(_))return[];const C=cc(_),O=this._ownAnnotations(_,C)||[];return(C!==Object?this.annotations(C):[]).concat(O)}_ownPropMetadata(_,C){if(_.propMetadata&&_.propMetadata!==C.propMetadata){let O=_.propMetadata;return"function"==typeof O&&O.propMetadata&&(O=O.propMetadata),O}if(_.propDecorators&&_.propDecorators!==C.propDecorators){const O=_.propDecorators,L={};return Object.keys(O).forEach(J=>{L[J]=ys(O[J])}),L}return _.hasOwnProperty(Ts)?_[Ts]:null}propMetadata(_){if(!Mi(_))return{};const C=cc(_),O={};if(C!==Object){const J=this.propMetadata(C);Object.keys(J).forEach(ye=>{O[ye]=J[ye]})}const L=this._ownPropMetadata(_,C);return L&&Object.keys(L).forEach(J=>{const ye=[];O.hasOwnProperty(J)&&ye.push(...O[J]),ye.push(...L[J]),O[J]=ye}),O}ownPropMetadata(_){return Mi(_)&&this._ownPropMetadata(_,cc(_))||{}}hasLifecycleHook(_,C){return _ instanceof pn&&C in _.prototype}}function ys(f){return f?f.map(_=>new(0,_.type.annotationCls)(..._.args?_.args:[])):[]}function cc(f){const _=f.prototype?Object.getPrototypeOf(f.prototype):null;return(_?_.constructor:null)||Object}const jr=Z(Ps("Inject",f=>({token:f})),-1),Ir=Z(Ps("Optional"),8),Zr=Z(Ps("Self"),2),qa=Z(Ps("SkipSelf"),4),Ro=Z(Ps("Host"),1);let Ws=null;function dc(){return Ws=Ws||new Vs}function Ls(f){return Wc(dc().parameters(f))}function Wc(f){return f.map(_=>function zo(f){const _={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(f)&&f.length>0)for(let C=0;C<f.length;C++){const O=f[C];if(void 0===O)continue;const L=Object.getPrototypeOf(O);if(O instanceof Ir||"Optional"===L.ngMetadataName)_.optional=!0;else if(O instanceof qa||"SkipSelf"===L.ngMetadataName)_.skipSelf=!0;else if(O instanceof Zr||"Self"===L.ngMetadataName)_.self=!0;else if(O instanceof Ro||"Host"===L.ngMetadataName)_.host=!0;else if(O instanceof jr)_.token=O.token;else if(O instanceof ql){if(void 0===O.attributeName)throw new D(204,!1);_.attribute=O.attributeName}else _.token=O}else _.token=void 0===f||Array.isArray(f)&&0===f.length?null:f;return _}(_))}function no(f){const _=[],C=new Map;function O(L){let J=C.get(L);if(!J){const ye=f(L);C.set(L,J=ye.then(pa))}return J}return ua.forEach((L,J)=>{const ye=[];L.templateUrl&&ye.push(O(L.templateUrl).then(Hn=>{L.template=Hn}));const je=L.styleUrls,lt=L.styles||(L.styles=[]),Ht=L.styles.length;je&&je.forEach((Hn,di)=>{lt.push(""),ye.push(O(Hn).then(Ei=>{lt[Ht+di]=Ei,je.splice(je.indexOf(Hn),1),0==je.length&&(L.styleUrls=void 0)}))});const fn=Promise.all(ye).then(()=>function wa(f){Bl.delete(f)}(J));_.push(fn)}),Yc(),Promise.all(_).then(()=>{})}let ua=new Map;const Bl=new Set;function zc(f){return!!(f.templateUrl&&!f.hasOwnProperty("template")||f.styleUrls&&f.styleUrls.length)}function Yc(){const f=ua;return ua=new Map,f}function pa(f){return"string"==typeof f?f:f.text()}const Cl=new Map;let Qa=!0;function Gc(f,_){(function Ul(f,_,C){if(_&&_!==C&&Qa)throw new Error(`Duplicate module registered for ${f} - ${d(_)} vs ${d(_.name)}`)})(_,Cl.get(_)||null,f),Cl.set(_,f)}function hd(f){return Cl.get(f)}function wc(f){Qa=!f}const zs={name:"custom-elements"},qr={name:"no-errors-schema"};let Rs=!1;function ul(f){Rs=f}function go(){return Rs}let te=!1;function Oe(f){te=f}function ht(){return te}var Eo=(()=>((Eo=Eo||{})[Eo.Important=1]="Important",Eo[Eo.DashCase=2]="DashCase",Eo))();const Du=/^>|^->|<!--|-->|--!>|<!-$/g,Oc=/(<|>)/,Yp="\u200b$1\u200b";const zd=new Map;let qo=0;function $c(f){return zd.get(f)||null}class jl{get lView(){return $c(this.lViewId)}constructor(_,C,O){this.lViewId=_,this.nodeIndex=C,this.native=O}}function xa(f){let _=Tc(f);if(_){if(Tr(_)){const C=_;let O,L,J;if(gd(f)){if(O=El(C,f),-1==O)throw new Error("The provided component was not found in the application");L=f}else if(function $p(f){return f&&f.constructor&&f.constructor.\u0275dir}(f)){if(O=function uc(f,_){let C=f[Vn].firstChild;for(;C;){const L=C.directiveEnd;for(let J=C.directiveStart;J<L;J++)if(f[J]===_)return C.index;C=Au(C)}return-1}(C,f),-1==O)throw new Error("The provided directive was not found in the application");J=Dc(O,C)}else if(O=_d(C,f),-1==O)return null;const ye=Ai(C[O]),je=Tc(ye),lt=je&&!Array.isArray(je)?je:ec(C,O,ye);if(L&&void 0===lt.component&&(lt.component=L,Ba(lt.component,lt)),J&&void 0===lt.directives){lt.directives=J;for(let Ht=0;Ht<J.length;Ht++)Ba(J[Ht],lt)}Ba(lt.native,lt),_=lt}}else{const C=f;let O=C;for(;O=O.parentNode;){const L=Tc(O);if(L){const J=Array.isArray(L)?L:L.lView;if(!J)return null;const ye=_d(J,C);if(ye>=0){const je=Ai(J[ye]),lt=ec(J,ye,je);Ba(je,lt),_=lt;break}}}}return _||null}function ec(f,_,C){return new jl(f[jn],_,C)}function eo(f){let C,_=Tc(f);if(Tr(_)){const O=_,L=El(O,f);C=wo(L,O);const J=ec(O,L,C[Ln]);J.component=f,Ba(f,J),Ba(J.native,J)}else C=wo(_.nodeIndex,_.lView);return C}const md="__ngContext__";function Ba(f,_){Tr(_)?(f[md]=_[jn],function Gp(f){zd.set(f[jn],f)}(_)):f[md]=_}function Tc(f){const _=f[md];return"number"==typeof _?$c(_):_||null}function ha(f){const _=Tc(f);return _?Tr(_)?_:_.lView:null}function gd(f){return f&&f.constructor&&f.constructor.\u0275cmp}function _d(f,_){const C=f[Vn];for(let O=vi;O<C.bindingStartIndex;O++)if(Ai(f[O])===_)return O;return-1}function Au(f){if(f.child)return f.child;if(f.next)return f.next;for(;f.parent&&!f.parent.next;)f=f.parent;return f.parent&&f.parent.next}function El(f,_){const C=f[Vn].components;if(C)for(let O=0;O<C.length;O++){const L=C[O];if(wo(L,f)[fr]===_)return L}else if(wo(vi,f)[fr]===_)return vi;return-1}function Dc(f,_){const C=_[Vn].data[f];if(0===C.directiveStart)return gt;const O=[];for(let L=C.directiveStart;L<C.directiveEnd;L++){const J=_[L];gd(J)||O.push(J)}return O}let pc;function $d(f,_){return pc(f,_)}function Ke(f){const _=f[Ft];return Br(_)?_[Ft]:_}function W(f){return function Ne(f){let _=Tr(f)?f:ha(f);for(;_&&!(256&_[Le]);)_=Ke(_);return _}(f)[fr]}function We(f){return Qt(f[he])}function Dt(f){return Qt(f[dn])}function Qt(f){for(;null!==f&&!Br(f);)f=f[dn];return f}function Xn(f,_,C,O,L){if(null!=O){let J,ye=!1;Br(O)?J=O:Tr(O)&&(ye=!0,O=O[Ln]);const je=Ai(O);0===f&&null!==C?null==L?Kc(_,C,je):fc(_,C,je,L||null,!0):1===f&&null!==C?fc(_,C,je,L||null,!0):2===f?Zd(_,je,ye):3===f&&_.destroyNode(je),null!=J&&function Zp(f,_,C,O,L){const J=C[Vi];J!==Ai(C)&&Xn(_,f,O,J,L);for(let je=pr;je<C.length;je++){const lt=C[je];Go(lt[Vn],lt,f,_,O,J)}}(_,f,J,C,L)}}function ai(f,_){return f.createText(_)}function Ki(f,_,C){f.setValue(_,C)}function Cr(f,_){return f.createComment(function Iu(f){return f.replace(Du,_=>_.replace(Oc,Yp))}(_))}function ho(f,_,C){return f.createElement(_,C)}function Lu(f,_){const C=f[Er],O=C.indexOf(_),L=_[Ft];512&_[Le]&&(_[Le]&=-513,$o(L,-1)),C.splice(O,1)}function hc(f,_){if(f.length<=pr)return;const C=pr+_,O=f[C];if(O){const L=O[zn];null!==L&&L!==f&&Lu(L,O),_>0&&(f[C-1][dn]=O[dn]);const J=fe(f,pr+_);!function Oa(f,_){Go(f,_,_[Kn],2,null,null),_[Ln]=null,_[gi]=null}(O[Vn],O);const ye=J[Fn];null!==ye&&ye.detachView(J[Vn]),O[Ft]=null,O[dn]=null,O[Le]&=-65}return O}function vd(f,_){if(!(128&_[Le])){const C=_[Kn];C.destroyNode&&Go(f,_,C,3,null,null),function tc(f){let _=f[he];if(!_)return Pc(f[Vn],f);for(;_;){let C=null;if(Tr(_))C=_[he];else{const O=_[pr];O&&(C=O)}if(!C){for(;_&&!_[dn]&&_!==f;)Tr(_)&&Pc(_[Vn],_),_=_[Ft];null===_&&(_=f),Tr(_)&&Pc(_[Vn],_),C=_&&_[dn]}_=C}}(_)}}function Pc(f,_){if(!(128&_[Le])){_[Le]&=-65,_[Le]|=128,function xl(f,_){let C;if(null!=f&&null!=(C=f.destroyHooks))for(let O=0;O<C.length;O+=2){const L=_[C[O]];if(!(L instanceof An)){const J=C[O+1];if(Array.isArray(J))for(let ye=0;ye<J.length;ye+=2){const je=L[J[ye]],lt=J[ye+1];qn(4,je,lt);try{lt.call(je)}finally{qn(5,je,lt)}}else{qn(4,L,J);try{J.call(L)}finally{qn(5,L,J)}}}}}(f,_),function og(f,_){const C=f.cleanup,O=_[$i];let L=-1;if(null!==C)for(let J=0;J<C.length-1;J+=2)if("string"==typeof C[J]){const ye=C[J+3];ye>=0?O[L=ye]():O[L=-ye].unsubscribe(),J+=2}else{const ye=O[L=C[J+1]];C[J].call(ye)}if(null!==O){for(let J=L+1;J<O.length;J++)(0,O[J])();_[$i]=null}}(f,_),1===_[Vn].type&&_[Kn].destroy();const C=_[zn];if(null!==C&&Br(_[Ft])){C!==_[Ft]&&Lu(C,_);const O=_[Fn];null!==O&&O.detachView(f)}!function fd(f){zd.delete(f[jn])}(_)}}function bd(f,_,C){return Ru(f,_.parent,C)}function Ru(f,_,C){let O=_;for(;null!==O&&40&O.type;)O=(_=O).parent;if(null===O)return C[Ln];{const{componentOffset:L}=O;if(L>-1){const{encapsulation:J}=f.data[O.directiveStart+L];if(J===it.None||J===it.Emulated)return null}return tr(O,C)}}function fc(f,_,C,O,L){f.insertBefore(_,C,O,L)}function Kc(f,_,C){f.appendChild(_,C)}function yd(f,_,C,O,L){null!==O?fc(f,_,C,O,L):Kc(f,_,C)}function Hl(f,_){return f.parentNode(_)}function Kp(f,_,C){return tf(f,_,C)}function Ac(f,_,C){return 40&f.type?tr(f,C):null}let Qp,Ol,qd,Ed,tf=Ac;function Xc(f,_){tf=f,Qp=_}function nc(f,_,C,O){const L=bd(f,O,_),J=_[Kn],je=Kp(O.parent||_[gi],O,_);if(null!=L)if(Array.isArray(C))for(let lt=0;lt<C.length;lt++)yd(J,L,C[lt],je,!1);else yd(J,L,C,je,!1);void 0!==Qp&&Qp(J,O,_,C,L)}function Qd(f,_){if(null!==_){const C=_.type;if(3&C)return tr(_,f);if(4&C)return Ml(-1,f[_.index]);if(8&C){const O=_.child;if(null!==O)return Qd(f,O);{const L=f[_.index];return Br(L)?Ml(-1,L):Ai(L)}}if(32&C)return $d(_,f)()||Ai(f[_.index]);{const O=Xd(f,_);return null!==O?Array.isArray(O)?O[0]:Qd(Ke(f[nn]),O):Qd(f,_.next)}}return null}function Xd(f,_){return null!==_?f[nn][gi].projection[_.projection]:null}function Ml(f,_){const C=pr+f+1;if(C<_.length){const O=_[C],L=O[Vn].firstChild;if(null!==L)return Qd(O,L)}return _[Vi]}function Zd(f,_,C){const O=Hl(f,_);O&&function Qc(f,_,C,O){f.removeChild(_,C,O)}(f,O,_,C)}function Xp(f,_,C,O,L,J,ye){for(;null!=C;){const je=O[C.index],lt=C.type;if(ye&&0===_&&(je&&Ba(Ai(je),O),C.flags|=2),32!=(32&C.flags))if(8&lt)Xp(f,_,C.child,O,L,J,!1),Xn(_,f,L,je,J);else if(32&lt){const Ht=$d(C,O);let fn;for(;fn=Ht();)Xn(_,f,L,fn,J);Xn(_,f,L,je,J)}else 16&lt?Cd(f,_,O,C,L,J):Xn(_,f,L,je,J);C=ye?C.projectionNext:C.next}}function Go(f,_,C,O,L,J){Xp(C,O,f.firstChild,_,L,J,!1)}function Cd(f,_,C,O,L,J){const ye=C[nn],lt=ye[gi].projection[O.projection];if(Array.isArray(lt))for(let Ht=0;Ht<lt.length;Ht++)Xn(_,f,L,lt[Ht],J);else Xp(f,_,lt,ye[Ft],L,J,!0)}function wl(f,_,C){""===C?f.removeAttribute(_,"class"):f.setAttribute(_,"class",C)}function qp(f,_,C){const{mergedAttrs:O,classes:L,styles:J}=C;null!==O&&Xr(f,_,O),null!==L&&wl(f,_,L),null!==J&&function Jp(f,_,C){f.setAttribute(_,"style",C)}(f,_,J)}function Jd(){if(void 0===Ol&&(Ol=null,bt.trustedTypes))try{Ol=bt.trustedTypes.createPolicy("angular",{createHTML:f=>f,createScript:f=>f,createScriptURL:f=>f})}catch{}return Ol}function Vl(f){return Jd()?.createHTML(f)||f}function Nu(f,_,C){const O=Oi(),L=Xi(),J=tr(L,O);if(2===L.type&&"iframe"===_.toLowerCase()){const ye=J;throw ye.src="",ye.srcdoc=Vl(""),Zd(O[Kn],ye),new D(-910,!1)}return f}function af(f){qd=f}function sf(){return void 0!==qd?qd:typeof document<"u"?document:void 0}function eh(){if(void 0===Ed&&(Ed=null,bt.trustedTypes))try{Ed=bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:f=>f,createScript:f=>f,createScriptURL:f=>f})}catch{}return Ed}function Gs(f){return eh()?.createHTML(f)||f}function Zc(f){return eh()?.createScript(f)||f}function th(f){return eh()?.createScriptURL(f)||f}class Jc{constructor(_){this.changingThisBreaksApplicationSecurity=_}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${E})`}}class nh extends Jc{getTypeName(){return"HTML"}}class ih extends Jc{getTypeName(){return"Style"}}class lg extends Jc{getTypeName(){return"Script"}}class lf extends Jc{getTypeName(){return"URL"}}class Fu extends Jc{getTypeName(){return"ResourceURL"}}function us(f){return f instanceof Jc?f.changingThisBreaksApplicationSecurity:f}function Lc(f,_){const C=eu(f);if(null!=C&&C!==_){if("ResourceURL"===C&&"URL"===_)return!0;throw new Error(`Required a safe ${_}, got a ${C} (see ${E})`)}return C===_}function eu(f){return f instanceof Jc&&f.getTypeName()||null}function cg(f){return new nh(f)}function rh(f){return new ih(f)}function oh(f){return new lg(f)}function $s(f){return new lf(f)}function ah(f){return new Fu(f)}function Bu(f){const _=new Wl(f);return function tu(){try{return!!(new window.DOMParser).parseFromString(Vl(""),"text/html")}catch{return!1}}()?new cf(_):_}class cf{constructor(_){this.inertDocumentHelper=_}getInertBodyElement(_){_="<body><remove></remove>"+_;try{const C=(new window.DOMParser).parseFromString(Vl(_),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(_):(C.removeChild(C.firstChild),C)}catch{return null}}}class Wl{constructor(_){this.defaultDoc=_,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(_){const C=this.inertDocument.createElement("template");return C.innerHTML=Vl(_),C}}const df=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function nu(f){return(f=String(f)).match(df)?f:"unsafe:"+f}function mc(f){const _={};for(const C of f.split(","))_[C]=!0;return _}function Rc(...f){const _={};for(const C of f)for(const O in C)C.hasOwnProperty(O)&&(_[O]=!0);return _}const iu=mc("area,br,col,hr,img,wbr"),Uu=mc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),sh=mc("rp,rt"),Y=Rc(iu,Rc(Uu,mc("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")),Rc(sh,mc("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")),Rc(sh,Uu)),Te=mc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ei=Rc(Te,mc("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"),mc("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")),bi=mc("script,style,template");class Gi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(_){let C=_.firstChild,O=!0;for(;C;)if(C.nodeType===Node.ELEMENT_NODE?O=this.startElement(C):C.nodeType===Node.TEXT_NODE?this.chars(C.nodeValue):this.sanitizedSomething=!0,O&&C.firstChild)C=C.firstChild;else for(;C;){C.nodeType===Node.ELEMENT_NODE&&this.endElement(C);let L=this.checkClobberedElement(C,C.nextSibling);if(L){C=L;break}C=this.checkClobberedElement(C,C.parentNode)}return this.buf.join("")}startElement(_){const C=_.nodeName.toLowerCase();if(!Y.hasOwnProperty(C))return this.sanitizedSomething=!0,!bi.hasOwnProperty(C);this.buf.push("<"),this.buf.push(C);const O=_.attributes;for(let L=0;L<O.length;L++){const J=O.item(L),ye=J.name,je=ye.toLowerCase();if(!ei.hasOwnProperty(je)){this.sanitizedSomething=!0;continue}let lt=J.value;Te[je]&&(lt=nu(lt)),this.buf.push(" ",ye,'="',vr(lt),'"')}return this.buf.push(">"),!0}endElement(_){const C=_.nodeName.toLowerCase();Y.hasOwnProperty(C)&&!iu.hasOwnProperty(C)&&(this.buf.push("</"),this.buf.push(C),this.buf.push(">"))}chars(_){this.buf.push(vr(_))}checkClobberedElement(_,C){if(C&&(_.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${_.outerHTML}`);return C}}const er=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_r=/([^\#-~ |!])/g;function vr(f){return f.replace(/&/g,"&amp;").replace(er,function(_){return"&#"+(1024*(_.charCodeAt(0)-55296)+(_.charCodeAt(1)-56320)+65536)+";"}).replace(_r,function(_){return"&#"+_.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let la;function Tl(f,_){let C=null;try{la=la||Bu(f);let O=_?String(_):"";C=la.getInertBodyElement(O);let L=5,J=O;do{if(0===L)throw new Error("Failed to sanitize html because the input is unstable");L--,O=J,J=C.innerHTML,C=la.getInertBodyElement(O)}while(O!==J);return Vl((new Gi).sanitizeChildren(qc(C)||C))}finally{if(C){const O=qc(C)||C;for(;O.firstChild;)O.removeChild(O.firstChild)}}}function qc(f){return"content"in f&&function ru(f){return f.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===f.nodeName}(f)?f.content:null}var Ta=(()=>((Ta=Ta||{})[Ta.NONE=0]="NONE",Ta[Ta.HTML=1]="HTML",Ta[Ta.STYLE=2]="STYLE",Ta[Ta.SCRIPT=3]="SCRIPT",Ta[Ta.URL=4]="URL",Ta[Ta.RESOURCE_URL=5]="RESOURCE_URL",Ta))();function lh(f){const _=ic();return _?Gs(_.sanitize(Ta.HTML,f)||""):Lc(f,"HTML")?Gs(us(f)):Tl(sf(),P(f))}function ch(f){const _=ic();return _?_.sanitize(Ta.STYLE,f)||"":Lc(f,"Style")?us(f):P(f)}function ou(f){const _=ic();return _?_.sanitize(Ta.URL,f)||"":Lc(f,"URL")?us(f):nu(P(f))}function xd(f){const _=ic();if(_)return th(_.sanitize(Ta.RESOURCE_URL,f)||"");if(Lc(f,"ResourceURL"))return th(us(f));throw new D(904,!1)}function ju(f){const _=ic();if(_)return Zc(_.sanitize(Ta.SCRIPT,f)||"");if(Lc(f,"Script"))return Zc(us(f));throw new D(905,!1)}function Hu(f){return Vl(f[0])}function dh(f){return function ku(f){return Jd()?.createScriptURL(f)||f}(f[0])}function zl(f,_,C){return function uf(f,_){return"src"===_&&("embed"===f||"frame"===f||"iframe"===f||"media"===f||"script"===f)||"href"===_&&("base"===f||"link"===f)?xd:ou}(_,C)(f)}function ic(){const f=Oi();return f&&f[on]}const Vu=new Fo("ENVIRONMENT_INITIALIZER"),Wu=new Fo("INJECTOR",-1),Uv=new Fo("INJECTOR_DEF_TYPES");class jv{get(_,C=Pe){if(C===Pe){const O=new Error(`NullInjectorError: No provider for ${d(_)}!`);throw O.name="NullInjectorError",O}return C}}function OC(f){return{\u0275providers:f}}function ug(...f){return{\u0275providers:pf(0,f),\u0275fromNgModule:!0}}function pf(f,..._){const C=[],O=new Set;let L;return xe(_,J=>{const ye=J;kc(ye,C,[],O)&&(L||(L=[]),L.push(ye))}),void 0!==L&&Hv(L,C),C}function Hv(f,_){for(let C=0;C<f.length;C++){const{providers:L}=f[C];pg(L,J=>{_.push(J)})}}function kc(f,_,C,O){if(!(f=v(f)))return!1;let L=null,J=yt(f);const ye=!J&&rn(f);if(J||ye){if(ye&&!ye.standalone)return!1;L=f}else{const lt=f.ngModule;if(J=yt(lt),!J)return!1;L=lt}const je=O.has(L);if(ye){if(je)return!1;if(O.add(L),ye.dependencies){const lt="function"==typeof ye.dependencies?ye.dependencies():ye.dependencies;for(const Ht of lt)kc(Ht,_,C,O)}}else{if(!J)return!1;{if(null!=J.imports&&!je){let Ht;O.add(L);try{xe(J.imports,fn=>{kc(fn,_,C,O)&&(Ht||(Ht=[]),Ht.push(fn))})}finally{}void 0!==Ht&&Hv(Ht,_)}if(!je){const Ht=bn(L)||(()=>new L);_.push({provide:L,useFactory:Ht,deps:gt},{provide:Uv,useValue:L,multi:!0},{provide:Vu,useValue:()=>pt(L),multi:!0})}const lt=J.providers;null==lt||je||pg(lt,fn=>{_.push(fn)})}}return L!==f&&void 0!==f.providers}function pg(f,_){for(let C of f)b(C)&&(C=C.\u0275providers),Array.isArray(C)?pg(C,_):_(C)}const TC=h({provide:String,useValue:h});function hg(f){return null!==f&&"object"==typeof f&&TC in f}function au(f){return"function"==typeof f}const zu=new Fo("Set Injector scope."),ff={},Yu={};let mf;function ph(){return void 0===mf&&(mf=new jv),mf}class Md{}class Gu extends Md{get destroyed(){return this._destroyed}constructor(_,C,O,L){super(),this.parent=C,this.source=O,this.scopes=L,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,vg(_,ye=>this.processProvider(ye)),this.records.set(Wu,Ku(void 0,this)),L.has("environment")&&this.records.set(Md,Ku(void 0,this));const J=this.records.get(zu);null!=J&&"string"==typeof J.value&&this.scopes.add(J.value),this.injectorDefTypes=new Set(this.get(Uv.multi,gt,Mt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const _ of this._ngOnDestroyHooks)_.ngOnDestroy();for(const _ of this._onDestroyHooks)_()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(_){this._onDestroyHooks.push(_)}runInContext(_){this.assertNotDestroyed();const C=Ae(this),O=vt(void 0);try{return _()}finally{Ae(C),vt(O)}}get(_,C=Pe,O=Mt.Default){this.assertNotDestroyed(),O=Et(O);const L=Ae(this),J=vt(void 0);try{if(!(O&Mt.SkipSelf)){let je=this.records.get(_);if(void 0===je){const lt=function IC(f){return"function"==typeof f||"object"==typeof f&&f instanceof Fo}(_)&&Ut(_);je=lt&&this.injectableDefInScope(lt)?Ku($u(_),ff):null,this.records.set(_,je)}if(null!=je)return this.hydrate(_,je)}return(O&Mt.Self?ph():this.parent).get(_,C=O&Mt.Optional&&C===Pe?null:C)}catch(ye){if("NullInjectorError"===ye.name){if((ye[mt]=ye[mt]||[]).unshift(d(_)),L)throw ye;return function Qe(f,_,C,O){const L=f[mt];throw _[Jt]&&L.unshift(_[Jt]),f.message=function qe(f,_,C,O=null){f=f&&"\n"===f.charAt(0)&&f.charAt(1)==_n?f.slice(2):f;let L=d(_);if(Array.isArray(_))L=_.map(d).join(" -> ");else if("object"==typeof _){let J=[];for(let ye in _)if(_.hasOwnProperty(ye)){let je=_[ye];J.push(ye+":"+("string"==typeof je?JSON.stringify(je):d(je)))}L=`{${J.join(", ")}}`}return`${C}${O?"("+O+")":""}[${L}]: ${f.replace(xn,"\n  ")}`}("\n"+f.message,L,C,O),f[It]=L,f[mt]=null,f}(ye,_,"R3InjectorError",this.source)}throw ye}finally{vt(J),Ae(L)}}resolveInjectorInitializers(){const _=Ae(this),C=vt(void 0);try{const O=this.get(Vu.multi,gt,Mt.Self);for(const L of O)L()}finally{Ae(_),vt(C)}}toString(){const _=[],C=this.records;for(const O of C.keys())_.push(d(O));return`R3Injector[${_.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(_){let C=au(_=v(_))?_:v(_&&_.provide);const O=function _g(f){return hg(f)?Ku(void 0,f.useValue):Ku(gf(f),ff)}(_);if(au(_)||!0!==_.multi)this.records.get(C);else{let L=this.records.get(C);L||(L=Ku(void 0,ff,!0),L.factory=()=>z(L.multi),this.records.set(C,L)),C=_,L.multi.push(_)}this.records.set(C,O)}hydrate(_,C){return C.value===ff&&(C.value=Yu,C.value=C.factory()),"object"==typeof C.value&&C.value&&function DC(f){return null!==f&&"object"==typeof f&&"function"==typeof f.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(_){if(!_.providedIn)return!1;const C=v(_.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function $u(f){const _=Ut(f),C=null!==_?_.factory:bn(f);if(null!==C)return C;if(f instanceof Fo)throw new D(204,!1);if(f instanceof Function)return function gg(f){const _=f.length;if(_>0)throw rt(_,"?"),new D(204,!1);const C=function Fe(f){return f&&(f[ie]||f[Ie])||null}(f);return null!==C?()=>C.factory(f):()=>new f}(f);throw new D(204,!1)}function gf(f,_,C){let O;if(au(f)){const L=v(f);return bn(L)||$u(L)}if(hg(f))O=()=>v(f.useValue);else if(function fg(f){return!(!f||!f.useFactory)}(f))O=()=>f.useFactory(...z(f.deps||[]));else if(function uh(f){return!(!f||!f.useExisting)}(f))O=()=>pt(v(f.useExisting));else{const L=v(f&&(f.useClass||f.provide));if(!function hh(f){return!!f.deps}(f))return bn(L)||$u(L);O=()=>new L(...z(f.deps))}return O}function Ku(f,_,C=!1){return{factory:f,value:_,multi:C?[]:void 0}}function vg(f,_){for(const C of f)Array.isArray(C)?vg(C,_):C&&b(C)?vg(C.\u0275providers,_):_(C)}class _f{}class Qu{}class AC{resolveComponentFactory(_){throw function PC(f){const _=Error(`No component factory found for ${d(f)}. Did you add it to @NgModule.entryComponents?`);return _.ngComponent=f,_}(_)}}let Xu=(()=>{class f{}return f.NULL=new AC,f})();function yg(){return Sd(Mo(),Oi())}function Sd(f,_){return new su(tr(f,_))}let su=(()=>{class f{constructor(C){this.nativeElement=C}}return f.__NG_ELEMENT_ID__=yg,f})();function vf(f){return f instanceof su?f.nativeElement:f}class wd{}let Cg=(()=>{class f{}return f.__NG_ELEMENT_ID__=()=>function Vv(){const f=Oi(),C=wo(Mo().index,f);return(Tr(C)?C:f)[Kn]}(),f})(),Wv=(()=>{class f{}return f.\u0275prov=Ye({token:f,providedIn:"root",factory:()=>null}),f})();class fh{constructor(_){this.full=_,this.major=_.split(".")[0],this.minor=_.split(".")[1],this.patch=_.split(".").slice(2).join(".")}}const Eg=new fh("15.2.10"),bf={},lu="ngOriginalError";function Mg(f){return f[lu]}class mh{constructor(){this._console=console}handleError(_){const C=this._findOriginalError(_);this._console.error("ERROR",_),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(_){let C=_&&Mg(_);for(;C&&Mg(C);)C=Mg(C);return C||null}}function Yv(f){return f.ownerDocument.defaultView}function Zu(f){return f.ownerDocument}function gc(f){return f.ownerDocument.body}function ed(f){return f instanceof Function?f():f}function Og(f,_,C){let O=f.length;for(;;){const L=f.indexOf(_,C);if(-1===L)return L;if(0===L||f.charCodeAt(L-1)<=32){const J=_.length;if(L+J===O||f.charCodeAt(L+J)<=32)return L}C=L+1}}const Kv="ng-template";function xf(f,_,C){let O=0,L=!0;for(;O<f.length;){let J=f[O++];if("string"==typeof J&&L){const ye=f[O++];if(C&&"class"===J&&-1!==Og(ye.toLowerCase(),_,0))return!0}else{if(1===J){for(;O<f.length&&"string"==typeof(J=f[O++]);)if(J.toLowerCase()===_)return!0;return!1}"number"==typeof J&&(L=!1)}}return!1}function Tg(f){return 4===f.type&&f.value!==Kv}function Yl(f,_,C){return _===(4!==f.type||C?f.value:Kv)}function Qv(f,_,C){let O=4;const L=f.attrs||[],J=function kC(f){for(let _=0;_<f.length;_++)if(vo(f[_]))return _;return f.length}(L);let ye=!1;for(let je=0;je<_.length;je++){const lt=_[je];if("number"!=typeof lt){if(!ye)if(4&O){if(O=2|1&O,""!==lt&&!Yl(f,lt,C)||""===lt&&1===_.length){if(vc(O))return!1;ye=!0}}else{const Ht=8&O?lt:_[++je];if(8&O&&null!==f.attrs){if(!xf(f.attrs,Ht,C)){if(vc(O))return!1;ye=!0}continue}const Hn=Xv(8&O?"class":lt,L,Tg(f),C);if(-1===Hn){if(vc(O))return!1;ye=!0;continue}if(""!==Ht){let di;di=Hn>J?"":L[Hn+1].toLowerCase();const Ei=8&O?di:null;if(Ei&&-1!==Og(Ei,Ht,0)||2&O&&Ht!==di){if(vc(O))return!1;ye=!0}}}}else{if(!ye&&!vc(O)&&!vc(lt))return!1;if(ye&&vc(lt))continue;ye=!1,O=lt|1&O}}return vc(O)||ye}function vc(f){return 0==(1&f)}function Xv(f,_,C,O){if(null===_)return-1;let L=0;if(O||!C){let J=!1;for(;L<_.length;){const ye=_[L];if(ye===f)return L;if(3===ye||6===ye)J=!0;else{if(1===ye||2===ye){let je=_[++L];for(;"string"==typeof je;)je=_[++L];continue}if(4===ye)break;if(0===ye){L+=4;continue}}L+=J?1:2}return-1}return function Jv(f,_){let C=f.indexOf(4);if(C>-1)for(C++;C<f.length;){const O=f[C];if("number"==typeof O)return-1;if(O===_)return C;C++}return-1}(_,f)}function Zv(f,_,C=!1){for(let O=0;O<_.length;O++)if(Qv(f,_[O],C))return!0;return!1}function gh(f,_){e:for(let C=0;C<_.length;C++){const O=_[C];if(f.length===O.length){for(let L=0;L<f.length;L++)if(f[L]!==O[L])continue e;return!0}}return!1}function Dg(f,_){return f?":not("+_.trim()+")":_}function qv(f){let _=f[0],C=1,O=2,L="",J=!1;for(;C<f.length;){let ye=f[C];if("string"==typeof ye)if(2&O){const je=f[++C];L+="["+ye+(je.length>0?'="'+je+'"':"")+"]"}else 8&O?L+="."+ye:4&O&&(L+=" "+ye);else""!==L&&!vc(ye)&&(_+=Dg(J,L),L=""),O=ye,J=J||!vc(O);C++}return""!==L&&(_+=Dg(J,L)),_}const io={};function eb(f){Mf(xr(),Oi(),Fi()+f,!1)}function Mf(f,_,C,O){if(!O)if(3==(3&_[Le])){const J=f.preOrderCheckHooks;null!==J&&Ra(_,J,C)}else{const J=f.preOrderHooks;null!==J&&Xo(_,J,0,C)}sr(C)}const tb={\u0275\u0275defineInjectable:Ye,\u0275\u0275defineInjector:Wt,\u0275\u0275inject:pt,\u0275\u0275invalidFactoryDep:tn,resolveForwardRef:v};const BC=h({provide:String,useValue:h});function Pg(f){return void 0!==f.useClass}function nb(f){return void 0!==f.useFactory}const ib=Ds("Injectable",void 0,void 0,void 0,(f,_)=>function FC(f,_){let C=null,O=null;f.hasOwnProperty(ie)||Object.defineProperty(f,ie,{get:()=>(null===C&&(C=nr().compileInjectable(tb,`ng:///${f.name}/\u0275prov.js`,function Ag(f,_){const C=_||{providedIn:null},O={name:f.name,type:f,typeArgumentCount:0,providedIn:C.providedIn};return(Pg(C)||nb(C))&&void 0!==C.deps&&(O.deps=Wc(C.deps)),Pg(C)?O.useClass=C.useClass:function UC(f){return BC in f}(C)?O.useValue=C.useValue:nb(C)?O.useFactory=C.useFactory:function jC(f){return void 0!==f.useExisting}(C)&&(O.useExisting=C.useExisting),O}(f,_))),C)}),f.hasOwnProperty(Ot)||Object.defineProperty(f,Ot,{get:()=>{if(null===O){const L=nr();O=L.compileFactory(tb,`ng:///${f.name}/\u0275fac.js`,{name:f.name,type:f,typeArgumentCount:0,deps:Ls(f),target:L.FactoryTarget.Injectable})}return O},configurable:!0})}(f,_));function Lg(f,_=null,C=null,O){const L=cu(f,_,C,O);return L.resolveInjectorInitializers(),L}function cu(f,_=null,C=null,O,L=new Set){const J=[C||gt,ug(f)];return O=O||("object"==typeof f?void 0:d(f)),new Gu(J,_||ph(),O||null,L)}let pl=(()=>{class f{static create(C,O){if(Array.isArray(C))return Lg({name:""},O,C,"");{const L=C.name??"";return Lg({name:L},C.parent,C.providers,L)}}}return f.THROW_IF_NOT_FOUND=Pe,f.NULL=new jv,f.\u0275prov=Ye({token:f,providedIn:"any",factory:()=>pt(Wu)}),f.__NG_ELEMENT_ID__=-1,f})();function _h(f){return f.length>1?" ("+function HC(f){const _=[];for(let C=0;C<f.length;++C){if(_.indexOf(f[C])>-1)return _.push(f[C]),_;_.push(f[C])}return _}(f.slice().reverse()).map(O=>d(O.token)).join(" -> ")+")":""}function Ju(f,_,C,O){const L=[_],J=C(L),ye=O?function xg(f,_){const C=`${f} caused by: ${_ instanceof Error?_.message:_}`,O=Error(C);return O[lu]=_,O}(J,O):Error(J);return ye.addKey=VC,ye.keys=L,ye.injectors=[f],ye.constructResolvingMessage=C,ye[lu]=O,ye}function VC(f,_){this.injectors.push(f),this.keys.push(_),this.message=this.constructResolvingMessage(this.keys)}function Rg(f,_){const C=[];for(let O=0,L=_.length;O<L;O++){const J=_[O];C.push(J&&0!=J.length?J.map(d).join(" "):"?")}return Error("Cannot resolve all parameters for '"+d(f)+"'("+C.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+d(f)+"' is decorated with Injectable.")}function kg(f,_){return Error(`Cannot mix multi providers and regular providers, got: ${f} ${_}`)}class bc{constructor(_,C){if(this.token=_,this.id=C,!_)throw new D(208,!1);this.displayName=d(this.token)}static get(_){return ab.get(v(_))}static get numberOfKeys(){return ab.numberOfKeys}}class zC{constructor(){this._allKeys=new Map}get(_){if(_ instanceof bc)return _;if(this._allKeys.has(_))return this._allKeys.get(_);const C=new bc(_,bc.numberOfKeys);return this._allKeys.set(_,C),C}get numberOfKeys(){return this._allKeys.size}}const ab=new zC;class ep{constructor(_,C,O){this.key=_,this.optional=C,this.visibility=O}static fromKey(_){return new ep(_,!1,null)}}const YC=[];class Ng{constructor(_,C,O){this.key=_,this.resolvedFactories=C,this.multiProvider=O,this.resolvedFactory=this.resolvedFactories[0]}}class sb{constructor(_,C){this.factory=_,this.dependencies=C}}function lb(f){let _,C;if(f.useClass){const O=v(f.useClass);_=dc().factory(O),C=td(O)}else f.useExisting?(_=O=>O,C=[ep.fromKey(bc.get(f.useExisting))]):f.useFactory?(_=f.useFactory,C=function wf(f,_){if(_){const C=_.map(O=>[O]);return _.map(O=>vh(f,O,C))}return td(f)}(f.useFactory,f.deps)):(_=()=>f.useValue,C=YC);return new sb(_,C)}function cb(f){return new Ng(bc.get(f.provide),[lb(f)],f.multi||!1)}function Fg(f){const O=function db(f,_){for(let C=0;C<f.length;C++){const O=f[C],L=_.get(O.key.id);if(L){if(O.multiProvider!==L.multiProvider)throw kg(L,O);if(O.multiProvider)for(let J=0;J<O.resolvedFactories.length;J++)L.resolvedFactories.push(O.resolvedFactories[J]);else _.set(O.key.id,O)}else{let J;J=O.multiProvider?new Ng(O.key,O.resolvedFactories.slice(),O.multiProvider):O,_.set(O.key.id,J)}}return _}(hl(f,[]).map(cb),new Map);return Array.from(O.values())}function hl(f,_){return f.forEach(C=>{if(C instanceof pn)_.push({provide:C,useClass:C});else if(C&&"object"==typeof C&&void 0!==C.provide)_.push(C);else{if(!Array.isArray(C))throw function ob(f){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${f}`)}(C);hl(C,_)}}),_}function td(f){const _=dc().parameters(f);if(!_)return[];if(_.some(C=>null==C))throw Rg(f,_);return _.map(C=>vh(f,C,_))}function vh(f,_,C){let O=null,L=!1;if(!Array.isArray(_))return Dl(_ instanceof jr?_.token:_,L,null);let J=null;for(let ye=0;ye<_.length;++ye){const je=_[ye];je instanceof pn?O=je:je instanceof jr?O=je.token:je instanceof Ir?L=!0:je instanceof Zr||je instanceof qa?J=je:je instanceof Fo&&(O=je)}if(O=v(O),null!=O)return Dl(O,L,J);throw Rg(f,C)}function Dl(f,_,C){return new ep(bc.get(f),_,C)}const yc={};class du{static resolve(_){return Fg(_)}static resolveAndCreate(_,C){const O=du.resolve(_);return du.fromResolvedProviders(O,C)}static fromResolvedProviders(_,C){return new ub(_,C)}}let ub=(()=>{class f{constructor(C,O){this._constructionCounter=0,this._providers=C,this.parent=O||null;const L=C.length;this.keyIds=[],this.objs=[];for(let J=0;J<L;J++)this.keyIds[J]=C[J].key.id,this.objs[J]=yc}get(C,O=Pe){return this._getByKey(bc.get(C),null,O)}resolveAndCreateChild(C){const O=du.resolve(C);return this.createChildFromResolved(O)}createChildFromResolved(C){const O=new f(C);return O.parent=this,O}resolveAndInstantiate(C){return this.instantiateResolved(du.resolve([C])[0])}instantiateResolved(C){return this._instantiateProvider(C)}getProviderAtIndex(C){if(C<0||C>=this._providers.length)throw function Sf(f){return Error(`Index ${f} is out-of-bounds.`)}(C);return this._providers[C]}_new(C){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function WC(f,_){return Ju(f,_,function(C){return`Cannot instantiate cyclic dependency!${_h(C)}`})}(this,C.key);return this._instantiateProvider(C)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(C){if(C.multiProvider){const O=[];for(let L=0;L<C.resolvedFactories.length;++L)O[L]=this._instantiate(C,C.resolvedFactories[L]);return O}return this._instantiate(C,C.resolvedFactories[0])}_instantiate(C,O){const L=O.factory;let J,ye;try{J=O.dependencies.map(je=>this._getByReflectiveDependency(je))}catch(je){throw je.addKey&&je.addKey(this,C.key),je}try{ye=L(...J)}catch(je){throw function rb(f,_,C,O){return Ju(f,O,function(L){const J=d(L[0].token);return`${_.message}: Error during instantiation of ${J}!${_h(L)}.`},_)}(this,je,0,C.key)}return ye}_getByReflectiveDependency(C){return this._getByKey(C.key,C.visibility,C.optional?null:Pe)}_getByKey(C,O,L){return C===f.INJECTOR_KEY?this:O instanceof Zr?this._getByKeySelf(C,L):this._getByKeyDefault(C,L,O)}_getObjByKeyId(C){for(let O=0;O<this.keyIds.length;O++)if(this.keyIds[O]===C)return this.objs[O]===yc&&(this.objs[O]=this._new(this._providers[O])),this.objs[O];return yc}_throwOrNull(C,O){if(O!==Pe)return O;throw function qu(f,_){return Ju(f,_,function(C){return`No provider for ${d(C[0].token)}!${_h(C)}`})}(this,C)}_getByKeySelf(C,O){const L=this._getObjByKeyId(C.id);return L!==yc?L:this._throwOrNull(C,O)}_getByKeyDefault(C,O,L){let J;for(J=L instanceof qa?this.parent:this;J instanceof f;){const ye=J,je=ye._getObjByKeyId(C.id);if(je!==yc)return je;J=ye.parent}return null!==J?J.get(C.token,O):this._throwOrNull(C,O)}get displayName(){return`ReflectiveInjector(providers: [${function uu(f,_){const C=[];for(let O=0;O<f._providers.length;++O)C[O]=_(f.getProviderAtIndex(O));return C}(this,O=>' "'+O.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return f.INJECTOR_KEY=bc.get(pl),f})();function bh(f,_=Mt.Default){const C=Oi();return null===C?pt(f,_):_l(Mo(),C,v(f),_)}function pb(){throw new Error("invalid")}function Of(f,_){const C=f.contentQueries;if(null!==C)for(let O=0;O<C.length;O+=2){const J=C[O+1];if(-1!==J){const ye=f.data[J];ya(C[O]),ye.contentQueries(2,_[J],J)}}}function Tf(f,_,C,O,L,J,ye,je,lt,Ht,fn){const Hn=_.blueprint.slice();return Hn[Ln]=L,Hn[Le]=76|O,(null!==fn||f&&1024&f[Le])&&(Hn[Le]|=1024),_a(Hn),Hn[Ft]=Hn[tt]=f,Hn[fr]=C,Hn[ti]=ye||f&&f[ti],Hn[Kn]=je||f&&f[Kn],Hn[on]=lt||f&&f[on]||null,Hn[Mr]=Ht||f&&f[Mr]||null,Hn[gi]=J,Hn[jn]=function Pu(){return qo++}(),Hn[ri]=fn,Hn[nn]=2==_.type?f[nn]:Hn,Hn}function tp(f,_,C,O,L){let J=f.data[_];if(null===J)J=pu(f,_,C,O,L),function Fa(){return yr.lFrame.inI18n}()&&(J.flags|=32);else if(64&J.type){J.type=C,J.value=O,J.attrs=L;const ye=Ss();J.injectorIndex=null===ye?-1:ye.injectorIndex}return ba(J,!0),J}function pu(f,_,C,O,L){const J=ka(),ye=sl(),lt=f.data[_]=function XC(f,_,C,O,L,J){return{type:C,index:O,insertBeforeIndex:null,injectorIndex:_?_.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:L,attrs:J,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:_,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,ye?J:J&&J.parent,C,_,O,L);return null===f.firstChild&&(f.firstChild=lt),null!==J&&(ye?null==J.child&&null!==lt.parent&&(J.child=lt):null===J.next&&(J.next=lt,lt.prev=J)),lt}function Od(f,_,C,O){if(0===C)return-1;const L=_.length;for(let J=0;J<C;J++)_.push(O),f.blueprint.push(O),f.data.push(null);return L}function hu(f,_,C){No(_);try{const O=f.viewQuery;null!==O&&Yg(1,O,C);const L=f.template;null!==L&&Bg(f,_,L,1,C),f.firstCreatePass&&(f.firstCreatePass=!1),f.staticContentQueries&&Of(f,_),f.staticViewQueries&&Yg(2,f.viewQuery,C);const J=f.components;null!==J&&function KC(f,_){for(let C=0;C<_.length;C++)Ax(f,_[C])}(_,J)}catch(O){throw f.firstCreatePass&&(f.incompleteFirstPass=!0,f.firstCreatePass=!1),O}finally{_[Le]&=-5,si()}}function np(f,_,C,O){const L=_[Le];if(128!=(128&L)){No(_);try{_a(_),Ji(f.bindingStartIndex),null!==C&&Bg(f,_,C,2,O);const ye=3==(3&L);if(ye){const Ht=f.preOrderCheckHooks;null!==Ht&&Ra(_,Ht,null)}else{const Ht=f.preOrderHooks;null!==Ht&&Xo(_,Ht,0,null),Je(_,0)}if(function yb(f){for(let _=We(f);null!==_;_=Dt(_)){if(!_[Hi])continue;const C=_[Er];for(let O=0;O<C.length;O++){const L=C[O];512&L[Le]||$o(L[Ft],1),L[Le]|=512}}}(_),function dE(f){for(let _=We(f);null!==_;_=Dt(_))for(let C=pr;C<_.length;C++){const O=_[C],L=O[Vn];yo(O)&&np(L,O,L.template,O[fr])}}(_),null!==f.contentQueries&&Of(f,_),ye){const Ht=f.contentCheckHooks;null!==Ht&&Ra(_,Ht)}else{const Ht=f.contentHooks;null!==Ht&&Xo(_,Ht,1),Je(_,1)}!function GC(f,_){const C=f.hostBindingOpCodes;if(null!==C)try{for(let O=0;O<C.length;O++){const L=C[O];if(L<0)sr(~L);else{const J=L,ye=C[++O],je=C[++O];Ao(ye,J),je(2,_[J])}}}finally{sr(-1)}}(f,_);const je=f.components;null!==je&&function $C(f,_){for(let C=0;C<_.length;C++)uE(f,_[C])}(_,je);const lt=f.viewQuery;if(null!==lt&&Yg(2,lt,O),ye){const Ht=f.viewCheckHooks;null!==Ht&&Ra(_,Ht)}else{const Ht=f.viewHooks;null!==Ht&&Xo(_,Ht,2),Je(_,2)}!0===f.firstUpdatePass&&(f.firstUpdatePass=!1),_[Le]&=-41,512&_[Le]&&(_[Le]&=-513,$o(_[Ft],-1))}finally{si()}}}function Bg(f,_,C,O,L){const J=Fi(),ye=2&O;try{sr(-1),ye&&_.length>vi&&Mf(f,_,vi,!1),qn(ye?2:0,L),C(O,L)}finally{sr(J),qn(ye?3:1,L)}}function Df(f,_,C){if(_o(_)){const L=_.directiveEnd;for(let J=_.directiveStart;J<L;J++){const ye=f.data[J];ye.contentQueries&&ye.contentQueries(1,C[J],J)}}}function If(f,_,C){Ci()&&(function iE(f,_,C,O){const L=C.directiveStart,J=C.directiveEnd;Bn(C)&&function vb(f,_,C){const O=tr(_,f),L=Ug(C),J=f[ti],ye=Lf(f,Tf(f,L,null,C.onPush?32:16,O,_,J,J.createRenderer(O,C),null,null,null));f[_.index]=ye}(_,C,f.data[L+C.componentOffset]),f.firstCreatePass||Us(C,_),Ba(O,_);const ye=C.initialInputs;for(let je=L;je<J;je++){const lt=f.data[je],Ht=Jo(_,f,je,C);Ba(Ht,_),null!==ye&&lE(0,je-L,Ht,lt,0,ye),Lt(lt)&&(wo(C.index,_)[fr]=Jo(_,f,je,C))}}(f,_,C,tr(C,_)),64==(64&C.flags)&&_b(f,_,C))}function Pf(f,_,C=tr){const O=_.localNames;if(null!==O){let L=_.index+1;for(let J=0;J<O.length;J+=2){const ye=O[J+1],je=-1===ye?C(_,f):f[ye];f[L++]=je}}}function Ug(f){const _=f.tView;return null===_||_.incompleteFirstPass?f.tView=Gl(1,null,f.template,f.decls,f.vars,f.directiveDefs,f.pipeDefs,f.viewQuery,f.schemas,f.consts):_}function Gl(f,_,C,O,L,J,ye,je,lt,Ht){const fn=vi+O,Hn=fn+L,di=function hb(f,_){const C=[];for(let O=0;O<_;O++)C.push(O<f?null:io);return C}(fn,Hn),Ei="function"==typeof Ht?Ht():Ht;return di[Vn]={type:f,blueprint:di,template:C,queries:null,viewQuery:je,declTNode:_,data:di.slice().fill(null,fn),bindingStartIndex:fn,expandoStartIndex:Hn,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof J?J():J,pipeRegistry:"function"==typeof ye?ye():ye,firstChild:null,schemas:lt,consts:Ei,incompleteFirstPass:!1}}function fb(f,_,C,O){const L=Eb(_);null===C?L.push(O):(L.push(C),f.firstCreatePass&&xb(f).push(O,L.length-1))}function jg(f,_,C,O){for(let L in f)if(f.hasOwnProperty(L)){C=null===C?{}:C;const J=f[L];null===O?mb(C,_,L,J):O.hasOwnProperty(L)&&mb(C,_,O[L],J)}return C}function mb(f,_,C,O){f.hasOwnProperty(C)?f[C].push(_,O):f[C]=[_,O]}function $l(f,_,C,O,L,J,ye,je){const lt=tr(_,C);let fn,Ht=_.inputs;!je&&null!=Ht&&(fn=Ht[O])?(Sb(f,C,fn,O,L),Bn(_)&&function qC(f,_){const C=wo(_,f);16&C[Le]||(C[Le]|=32)}(C,_.index)):3&_.type&&(O=function JC(f){return"class"===f?"className":"for"===f?"htmlFor":"formaction"===f?"formAction":"innerHtml"===f?"innerHTML":"readonly"===f?"readOnly":"tabindex"===f?"tabIndex":f}(O),L=null!=ye?ye(L,_.value||"",O):L,J.setProperty(lt,O,L))}function Hg(f,_,C,O){if(Ci()){const L=null===O?null:{"":-1},J=function oE(f,_){const C=f.directiveRegistry;let O=null,L=null;if(C)for(let J=0;J<C.length;J++){const ye=C[J];if(Zv(_,ye.selectors,!1))if(O||(O=[]),Lt(ye))if(null!==ye.findHostDirectiveDefs){const je=[];L=L||new Map,ye.findHostDirectiveDefs(ye,je,L),O.unshift(...je,ye),Vg(f,_,je.length)}else O.unshift(ye),Vg(f,_,0);else L=L||new Map,ye.findHostDirectiveDefs?.(ye,O,L),O.push(ye)}return null===O?null:[O,L]}(f,C);let ye,je;null===J?ye=je=null:[ye,je]=J,null!==ye&&gb(f,_,C,ye,L,je),L&&function aE(f,_,C){if(_){const O=f.localNames=[];for(let L=0;L<_.length;L+=2){const J=C[_[L+1]];if(null==J)throw new D(-301,!1);O.push(_[L],J)}}}(C,O,L)}C.mergedAttrs=ia(C.mergedAttrs,C.attrs)}function gb(f,_,C,O,L,J){for(let Ht=0;Ht<O.length;Ht++)Oo(Us(C,_),f,O[Ht].type);!function sE(f,_,C){f.flags|=1,f.directiveStart=_,f.directiveEnd=_+C,f.providerIndexes=_}(C,f.data.length,O.length);for(let Ht=0;Ht<O.length;Ht++){const fn=O[Ht];fn.providersResolver&&fn.providersResolver(fn)}let ye=!1,je=!1,lt=Od(f,_,O.length,null);for(let Ht=0;Ht<O.length;Ht++){const fn=O[Ht];C.mergedAttrs=ia(C.mergedAttrs,fn.hostAttrs),Wg(f,C,_,lt,fn),Cc(lt,fn,L),null!==fn.contentQueries&&(C.flags|=4),(null!==fn.hostBindings||null!==fn.hostAttrs||0!==fn.hostVars)&&(C.flags|=64);const Hn=fn.type.prototype;!ye&&(Hn.ngOnChanges||Hn.ngOnInit||Hn.ngDoCheck)&&((f.preOrderHooks??(f.preOrderHooks=[])).push(C.index),ye=!0),!je&&(Hn.ngOnChanges||Hn.ngDoCheck)&&((f.preOrderCheckHooks??(f.preOrderCheckHooks=[])).push(C.index),je=!0),lt++}!function ZC(f,_,C){const L=_.directiveEnd,J=f.data,ye=_.attrs,je=[];let lt=null,Ht=null;for(let fn=_.directiveStart;fn<L;fn++){const Hn=J[fn],di=C?C.get(Hn):null,Bi=di?di.outputs:null;lt=jg(Hn.inputs,fn,lt,di?di.inputs:null),Ht=jg(Hn.outputs,fn,Ht,Bi);const Zi=null===lt||null===ye||Tg(_)?null:cE(lt,fn,ye);je.push(Zi)}null!==lt&&(lt.hasOwnProperty("class")&&(_.flags|=8),lt.hasOwnProperty("style")&&(_.flags|=16)),_.initialInputs=je,_.inputs=lt,_.outputs=Ht}(f,C,J)}function _b(f,_,C){const O=C.directiveStart,L=C.directiveEnd,J=C.index,ye=function $r(){return yr.lFrame.currentDirectiveIndex}();try{sr(J);for(let je=O;je<L;je++){const lt=f.data[je],Ht=_[je];fs(je),(null!==lt.hostBindings||0!==lt.hostVars||null!==lt.hostAttrs)&&rE(lt,Ht)}}finally{sr(-1),fs(ye)}}function rE(f,_){null!==f.hostBindings&&f.hostBindings(1,_)}function Vg(f,_,C){_.componentOffset=C,(f.components??(f.components=[])).push(_.index)}function Cc(f,_,C){if(C){if(_.exportAs)for(let O=0;O<_.exportAs.length;O++)C[_.exportAs[O]]=f;Lt(_)&&(C[""]=f)}}function Wg(f,_,C,O,L){f.data[O]=L;const J=L.factory||(L.factory=bn(L.type)),ye=new An(J,Lt(L),bh);f.blueprint[O]=ye,C[O]=ye,function tE(f,_,C,O,L){const J=L.hostBindings;if(J){let ye=f.hostBindingOpCodes;null===ye&&(ye=f.hostBindingOpCodes=[]);const je=~_.index;(function nE(f){let _=f.length;for(;_>0;){const C=f[--_];if("number"==typeof C&&C<0)return C}return 0})(ye)!=je&&ye.push(je),ye.push(C,O,J)}}(f,_,O,Od(f,C,L.hostVars,io),L)}function Fc(f,_,C,O,L,J){const ye=tr(f,_);Af(_[Kn],ye,J,f.value,C,O,L)}function Af(f,_,C,O,L,J,ye){if(null==J)f.removeAttribute(_,L,C);else{const je=null==ye?P(J):ye(J,O||"",L);f.setAttribute(_,L,je,C)}}function lE(f,_,C,O,L,J){const ye=J[_];if(null!==ye){const je=O.setInput;for(let lt=0;lt<ye.length;){const Ht=ye[lt++],fn=ye[lt++],Hn=ye[lt++];null!==je?O.setInput(C,Hn,Ht,fn):C[fn]=Hn}}}function cE(f,_,C){let O=null,L=0;for(;L<C.length;){const J=C[L];if(0!==J)if(5!==J){if("number"==typeof J)break;if(f.hasOwnProperty(J)){null===O&&(O=[]);const ye=f[J];for(let je=0;je<ye.length;je+=2)if(ye[je]===_){O.push(J,ye[je+1],C[L+1]);break}}L+=2}else L+=2;else L+=4}return O}function bb(f,_,C,O){return[f,!0,!1,_,null,0,O,C,null,null]}function uE(f,_){const C=wo(_,f);if(yo(C)){const O=C[Vn];48&C[Le]?np(O,C,O.template,C[fr]):C[En]>0&&zg(C)}}function zg(f){for(let O=We(f);null!==O;O=Dt(O))for(let L=pr;L<O.length;L++){const J=O[L];if(yo(J))if(512&J[Le]){const ye=J[Vn];np(ye,J,ye.template,J[fr])}else J[En]>0&&zg(J)}const C=f[Vn].components;if(null!==C)for(let O=0;O<C.length;O++){const L=wo(C[O],f);yo(L)&&L[En]>0&&zg(L)}}function Ax(f,_){const C=wo(_,f),O=C[Vn];(function Cb(f,_){for(let C=_.length;C<f.blueprint.length;C++)_.push(f.blueprint[C])})(O,C),hu(O,C,C[fr])}function Lf(f,_){return f[he]?f[et][dn]=_:f[he]=_,f[et]=_,_}function Rf(f){for(;f;){f[Le]|=32;const _=Ke(f);if(Jn(f)&&!_)return f;f=_}return null}function kf(f,_,C,O=!0){const L=_[ti];L.begin&&L.begin();try{np(f,_,f.template,C)}catch(ye){throw O&&pE(_,ye),ye}finally{L.end&&L.end()}}function Yg(f,_,C){ya(0),_(f,C)}function Eb(f){return f[$i]||(f[$i]=[])}function xb(f){return f.cleanup||(f.cleanup=[])}function Mb(f,_,C){return(null===f||Lt(f))&&(C=function zi(f){for(;Array.isArray(f);){if("object"==typeof f[cr])return f;f=f[Ln]}return null}(C[_.index])),C[Kn]}function pE(f,_){const C=f[Mr],O=C?C.get(mh,null):null;O&&O.handleError(_)}function Sb(f,_,C,O,L){for(let J=0;J<C.length;){const ye=C[J++],je=C[J++],lt=_[ye],Ht=f.data[ye];null!==Ht.setInput?Ht.setInput(lt,L,O,je):lt[je]=L}}function nd(f,_,C){const O=Yi(_,f);Ki(f[Kn],O,C)}function Nf(f,_,C){let O=C?f.styles:null,L=C?f.classes:null,J=0;if(null!==_)for(let ye=0;ye<_.length;ye++){const je=_[ye];"number"==typeof je?J=je:1==J?L=p(L,je):2==J&&(O=p(O,je+": "+_[++ye]+";"))}C?f.styles=O:f.stylesWithoutHost=O,C?f.classes=L:f.classesWithoutHost=L}function Ff(f,_,C,O,L=!1){for(;null!==C;){const J=_[C.index];if(null!==J&&O.push(Ai(J)),Br(J))for(let je=pr;je<J.length;je++){const lt=J[je],Ht=lt[Vn].firstChild;null!==Ht&&Ff(lt[Vn],lt,Ht,O)}const ye=C.type;if(8&ye)Ff(f,_,C.child,O);else if(32&ye){const je=$d(C,_);let lt;for(;lt=je();)O.push(lt)}else if(16&ye){const je=Xd(_,C);if(Array.isArray(je))O.push(...je);else{const lt=Ke(_[nn]);Ff(lt[Vn],lt,je,O,!0)}}C=L?C.projectionNext:C.next}return O}class fu{get rootNodes(){const _=this._lView,C=_[Vn];return Ff(C,_,C.firstChild,[])}constructor(_,C){this._lView=_,this._cdRefInjectingView=C,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[fr]}set context(_){this._lView[fr]=_}get destroyed(){return 128==(128&this._lView[Le])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const _=this._lView[Ft];if(Br(_)){const C=_[kr],O=C?C.indexOf(this):-1;O>-1&&(hc(_,O),fe(C,O))}this._attachedToViewContainer=!1}vd(this._lView[Vn],this._lView)}onDestroy(_){fb(this._lView[Vn],this._lView,null,_)}markForCheck(){Rf(this._cdRefInjectingView||this._lView)}detach(){this._lView[Le]&=-65}reattach(){this._lView[Le]|=64}detectChanges(){kf(this._lView[Vn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function nl(f,_){Go(f,_,_[Kn],2,null,null)}(this._lView[Vn],this._lView)}attachToAppRef(_){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=_}}class hE extends fu{constructor(_){super(_),this._view=_}detectChanges(){const _=this._view;kf(_[Vn],_,_[fr],!1)}checkNoChanges(){}get context(){return null}}class wb extends Xu{constructor(_){super(),this.ngModule=_}resolveComponentFactory(_){const C=rn(_);return new Xa(C,this.ngModule)}}function Ob(f){const _=[];for(let C in f)f.hasOwnProperty(C)&&_.push({propName:f[C],templateName:C});return _}class Td{constructor(_,C){this.injector=_,this.parentInjector=C}get(_,C,O){O=Et(O);const L=this.injector.get(_,bf,O);return L!==bf||C===bf?L:this.parentInjector.get(_,C,O)}}class Xa extends Qu{get inputs(){return Ob(this.componentDef.inputs)}get outputs(){return Ob(this.componentDef.outputs)}constructor(_,C){super(),this.componentDef=_,this.ngModule=C,this.componentType=_.type,this.selector=function NC(f){return f.map(qv).join(",")}(_.selectors),this.ngContentSelectors=_.ngContentSelectors?_.ngContentSelectors:[],this.isBoundToModule=!!C}create(_,C,O,L){let J=(L=L||this.ngModule)instanceof Md?L:L?.injector;J&&null!==this.componentDef.getStandaloneInjector&&(J=this.componentDef.getStandaloneInjector(J)||J);const ye=J?new Td(_,J):_,je=ye.get(wd,null);if(null===je)throw new D(407,!1);const lt=ye.get(Wv,null),Ht=je.createRenderer(null,this.componentDef),fn=this.componentDef.selectors[0][0]||"div",Hn=O?function QC(f,_,C){return f.selectRootElement(_,C===it.ShadowDom)}(Ht,O,this.componentDef.encapsulation):ho(Ht,fn,function fE(f){const _=f.toLowerCase();return"svg"===_?ci:"math"===_?hi:null}(fn)),di=this.componentDef.onPush?288:272,Ei=Gl(0,null,null,1,0,null,null,null,null,null),Bi=Tf(null,Ei,null,di,null,null,je,Ht,lt,ye,null);let Zi,ar;No(Bi);try{const Or=this.componentDef;let Kr,Qi=null;Or.findHostDirectiveDefs?(Kr=[],Qi=new Map,Or.findHostDirectiveDefs(Or,Kr,Qi),Kr.push(Or)):Kr=[Or];const uo=function mE(f,_){const C=f[Vn],O=vi;return f[O]=_,tp(C,O,2,"#host",null)}(Bi,Hn),Ua=function gE(f,_,C,O,L,J,ye,je){const lt=L[Vn];!function _E(f,_,C,O){for(const L of f)_.mergedAttrs=ia(_.mergedAttrs,L.hostAttrs);null!==_.mergedAttrs&&(Nf(_,_.mergedAttrs,!0),null!==C&&qp(O,C,_))}(O,f,_,ye);const Ht=J.createRenderer(_,C),fn=Tf(L,Ug(C),null,C.onPush?32:16,L[f.index],f,J,Ht,je||null,null,null);return lt.firstCreatePass&&Vg(lt,f,O.length-1),Lf(L,fn),L[f.index]=fn}(uo,Hn,Or,Kr,Bi,je,Ht);ar=Gr(Ei,vi),Hn&&function Ks(f,_,C,O){if(O)Xr(f,C,["ng-version",Eg.full]);else{const{attrs:L,classes:J}=function Ig(f){const _=[],C=[];let O=1,L=2;for(;O<f.length;){let J=f[O];if("string"==typeof J)2===L?""!==J&&_.push(J,f[++O]):8===L&&C.push(J);else{if(!vc(L))break;L=J}O++}return{attrs:_,classes:C}}(_.selectors[0]);L&&Xr(f,C,L),J&&J.length>0&&wl(f,C,J.join(" "))}}(Ht,Or,Hn,O),void 0!==C&&function Tb(f,_,C){const O=f.projection=[];for(let L=0;L<_.length;L++){const J=C[L];O.push(null!=J?Array.from(J):null)}}(ar,this.ngContentSelectors,C),Zi=function vE(f,_,C,O,L,J){const ye=Mo(),je=L[Vn],lt=tr(ye,L);gb(je,L,ye,C,null,O);for(let fn=0;fn<C.length;fn++)Ba(Jo(L,je,ye.directiveStart+fn,ye),L);_b(je,L,ye),lt&&Ba(lt,L);const Ht=Jo(L,je,ye.directiveStart+ye.componentOffset,ye);if(f[fr]=L[fr]=Ht,null!==J)for(const fn of J)fn(Ht,_);return Df(je,ye,f),Ht}(Ua,Or,Kr,Qi,Bi,[Kl]),hu(Ei,Bi,null)}finally{si()}return new Il(this.componentType,Zi,Sd(ar,Bi),Bi,ar)}}class Il extends _f{constructor(_,C,O,L,J){super(),this.location=O,this._rootLView=L,this._tNode=J,this.instance=C,this.hostView=this.changeDetectorRef=new hE(L),this.componentType=_}setInput(_,C){const O=this._tNode.inputs;let L;if(null!==O&&(L=O[_])){const J=this._rootLView;Sb(J[Vn],J,L,_,C),Rf(wo(this._tNode.index,J))}}get injector(){return new ss(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(_){this.hostView.onDestroy(_)}}function Kl(){const f=Mo();Vo(Oi()[Vn],f)}function Uf(f){return Object.getPrototypeOf(f.prototype).constructor}function Gg(f){let _=Uf(f.type),C=!0;const O=[f];for(;_;){let L;if(Lt(f))L=_.\u0275cmp||_.\u0275dir;else{if(_.\u0275cmp)throw new D(903,!1);L=_.\u0275dir}if(L){if(C){O.push(L);const ye=f;ye.inputs=ip(f.inputs),ye.declaredInputs=ip(f.declaredInputs),ye.outputs=ip(f.outputs);const je=L.hostBindings;je&&Db(f,je);const lt=L.viewQuery,Ht=L.contentQueries;if(lt&&Ec(f,lt),Ht&&Dd(f,Ht),s(f.inputs,L.inputs),s(f.declaredInputs,L.declaredInputs),s(f.outputs,L.outputs),Lt(L)&&L.data.animation){const fn=f.data;fn.animation=(fn.animation||[]).concat(L.data.animation)}}const J=L.features;if(J)for(let ye=0;ye<J.length;ye++){const je=J[ye];je&&je.ngInherit&&je(f),je===Gg&&(C=!1)}}_=Object.getPrototypeOf(_)}!function bE(f){let _=0,C=null;for(let O=f.length-1;O>=0;O--){const L=f[O];L.hostVars=_+=L.hostVars,L.hostAttrs=ia(L.hostAttrs,C=ia(C,L.hostAttrs))}}(O)}function ip(f){return f===Be?{}:f===gt?[]:f}function Ec(f,_){const C=f.viewQuery;f.viewQuery=C?(O,L)=>{_(O,L),C(O,L)}:_}function Dd(f,_){const C=f.contentQueries;f.contentQueries=C?(O,L,J)=>{_(O,L,J),C(O,L,J)}:_}function Db(f,_){const C=f.hostBindings;f.hostBindings=C?(O,L)=>{_(O,L),C(O,L)}:_}const jf=["providersResolver"],yE=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function CE(f){let C,_=Uf(f.type);C=Lt(f)?_.\u0275cmp:_.\u0275dir;const O=f;for(const L of jf)O[L]=C[L];if(Lt(C))for(const L of yE)O[L]=C[L]}function Ib(f){return _=>{_.findHostDirectiveDefs=Hf,_.hostDirectives=(Array.isArray(f)?f:f()).map(C=>"function"==typeof C?{directive:v(C),inputs:Be,outputs:Be}:{directive:v(C.directive),inputs:EE(C.inputs),outputs:EE(C.outputs)})}}function Hf(f,_,C){if(null!==f.hostDirectives)for(const O of f.hostDirectives){const L=$t(O.directive);kx(L.declaredInputs,O.inputs),Hf(L,_,C),C.set(L,O),_.push(L)}}function EE(f){if(void 0===f||0===f.length)return Be;const _={};for(let C=0;C<f.length;C+=2)_[f[C]]=f[C+1];return _}function kx(f,_){for(const C in _)_.hasOwnProperty(C)&&(f[_[C]]=f[C])}function $g(f){return!!Ab(f)&&(Array.isArray(f)||!(f instanceof Map)&&Symbol.iterator in f)}function Ab(f){return null!==f&&("function"==typeof f||"object"==typeof f)}function xE(f,_){const C=$g(f),O=$g(_);return C&&O?function Fx(f,_,C){const O=f[Symbol.iterator](),L=_[Symbol.iterator]();for(;;){const J=O.next(),ye=L.next();if(J.done&&ye.done)return!0;if(J.done||ye.done||!C(J.value,ye.value))return!1}}(f,_,xE):!(C||!f||"object"!=typeof f&&"function"!=typeof f||O||!_||"object"!=typeof _&&"function"!=typeof _)||Object.is(f,_)}function id(f,_,C){return f[_]=C}function Vf(f,_){return f[_]}function Ns(f,_,C){return!Object.is(f[_],C)&&(f[_]=C,!0)}function Id(f,_,C,O){const L=Ns(f,_,C);return Ns(f,_+1,O)||L}function Wf(f,_,C,O,L){const J=Id(f,_,C,O);return Ns(f,_+2,L)||J}function Yo(f,_,C,O,L,J){const ye=Id(f,_,C,O);return Id(f,_+2,L,J)||ye}function Kg(f,_,C,O){const L=Oi();return Ns(L,Na(),_)&&(xr(),Fc(Xi(),L,f,_,C,O)),Kg}function rd(f,_){let C=!1,O=Ko();for(let J=1;J<_.length;J+=2)C=Ns(f,O++,_[J])||C;if(Ji(O),!C)return io;let L=_[0];for(let J=1;J<_.length;J+=2)L+=P(_[J])+_[J+1];return L}function Pd(f,_,C,O){return Ns(f,Na(),C)?_+P(C)+O:io}function rp(f,_,C,O,L,J){const je=Id(f,Ko(),C,L);return Ma(2),je?_+P(C)+O+P(L)+J:io}function op(f,_,C,O,L,J,ye,je){const Ht=Wf(f,Ko(),C,L,ye);return Ma(3),Ht?_+P(C)+O+P(L)+J+P(ye)+je:io}function ap(f,_,C,O,L,J,ye,je,lt,Ht){const Hn=Yo(f,Ko(),C,L,ye,lt);return Ma(4),Hn?_+P(C)+O+P(L)+J+P(ye)+je+P(lt)+Ht:io}function mu(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn){const di=Ko();let Ei=Yo(f,di,C,L,ye,lt);return Ei=Ns(f,di+4,fn)||Ei,Ma(5),Ei?_+P(C)+O+P(L)+J+P(ye)+je+P(lt)+Ht+P(fn)+Hn:io}function sp(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei){const Bi=Ko();let Zi=Yo(f,Bi,C,L,ye,lt);return Zi=Id(f,Bi+4,fn,di)||Zi,Ma(6),Zi?_+P(C)+O+P(L)+J+P(ye)+je+P(lt)+Ht+P(fn)+Hn+P(di)+Ei:io}function lp(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi){const ar=Ko();let Or=Yo(f,ar,C,L,ye,lt);return Or=Wf(f,ar+4,fn,di,Bi)||Or,Ma(7),Or?_+P(C)+O+P(L)+J+P(ye)+je+P(lt)+Ht+P(fn)+Hn+P(di)+Ei+P(Bi)+Zi:io}function cp(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar,Or){const Kr=Ko();let Qi=Yo(f,Kr,C,L,ye,lt);return Qi=Yo(f,Kr+4,fn,di,Bi,ar)||Qi,Ma(8),Qi?_+P(C)+O+P(L)+J+P(ye)+je+P(lt)+Ht+P(fn)+Hn+P(di)+Ei+P(Bi)+Zi+P(ar)+Or:io}function Qg(f,_,C,O,L,J){const ye=Oi(),je=Pd(ye,_,C,O);return je!==io&&Fc(Xi(),ye,f,je,L,J),Qg}function Cs(f,_,C,O,L,J,ye,je){const lt=Oi(),Ht=rp(lt,_,C,O,L,J);return Ht!==io&&Fc(Xi(),lt,f,Ht,ye,je),Cs}function dp(f,_,C,O,L,J,ye,je,lt,Ht){const fn=Oi(),Hn=op(fn,_,C,O,L,J,ye,je);return Hn!==io&&Fc(Xi(),fn,f,Hn,lt,Ht),dp}function yh(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn){const di=Oi(),Ei=ap(di,_,C,O,L,J,ye,je,lt,Ht);return Ei!==io&&Fc(Xi(),di,f,Ei,fn,Hn),yh}function Ch(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei){const Bi=Oi(),Zi=mu(Bi,_,C,O,L,J,ye,je,lt,Ht,fn,Hn);return Zi!==io&&Fc(Xi(),Bi,f,Zi,di,Ei),Ch}function up(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi){const ar=Oi(),Or=sp(ar,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei);return Or!==io&&Fc(Xi(),ar,f,Or,Bi,Zi),up}function pp(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar,Or){const Kr=Oi(),Qi=lp(Kr,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi);return Qi!==io&&Fc(Xi(),Kr,f,Qi,ar,Or),pp}function Eh(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar,Or,Kr,Qi){const uo=Oi(),Ua=cp(uo,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar,Or);return Ua!==io&&Fc(Xi(),uo,f,Ua,Kr,Qi),Eh}function Xg(f,_,C,O){const L=Oi(),J=rd(L,_);return J!==io&&Fc(Xi(),L,f,J,C,O),Xg}function Lb(f){const _=eo(f);kf(_[Vn],_,f)}function kb(f,_,C,O,L,J,ye,je){const lt=Oi(),Ht=xr(),fn=f+vi,Hn=Ht.firstCreatePass?function Rb(f,_,C,O,L,J,ye,je,lt){const Ht=_.consts,fn=tp(_,f,4,ye||null,Uo(Ht,je));Hg(_,C,fn,Uo(Ht,lt)),Vo(_,fn);const Hn=fn.tView=Gl(2,fn,O,L,J,_.directiveRegistry,_.pipeRegistry,null,_.schemas,Ht);return null!==_.queries&&(_.queries.template(_,fn),Hn.queries=_.queries.embeddedTView(fn)),fn}(fn,Ht,lt,_,C,O,L,J,ye):Ht.data[fn];ba(Hn,!1);const di=lt[Kn].createComment("");nc(Ht,lt,di,Hn),Ba(di,lt),Lf(lt,lt[fn]=bb(di,lt,di,Hn)),Sn(Hn)&&If(Ht,lt,Hn),null!=ye&&Pf(lt,Hn,je)}function Nb(f,_,C,O){C>=f.data.length&&(f.data[C]=null,f.blueprint[C]=null),_[C]=O}function hp(f){return Io(function Qs(){return yr.lFrame.contextLView}(),vi+f)}function zf(f,_,C){const O=Oi();return Ns(O,Na(),_)&&$l(xr(),Xi(),O,f,_,O[Kn],C,!1),zf}function fp(f,_,C,O,L){const ye=L?"class":"style";Sb(f,C,_.inputs[ye],ye,O)}function Yf(f,_,C,O){const L=Oi(),J=xr(),ye=vi+f,je=L[Kn],lt=J.firstCreatePass?function Fb(f,_,C,O,L,J){const ye=_.consts,lt=tp(_,f,2,O,Uo(ye,L));return Hg(_,C,lt,Uo(ye,J)),null!==lt.attrs&&Nf(lt,lt.attrs,!1),null!==lt.mergedAttrs&&Nf(lt,lt.mergedAttrs,!0),null!==_.queries&&_.queries.elementStart(_,lt),lt}(ye,J,L,_,C,O):J.data[ye],Ht=L[ye]=ho(je,_,function Qo(){return yr.lFrame.currentNamespace}()),fn=Sn(lt);return ba(lt,!0),qp(je,Ht,lt),32!=(32&lt.flags)&&nc(J,L,Ht,lt),0===function Ct(){return yr.lFrame.elementDepthCount}()&&Ba(Ht,L),function Ze(){yr.lFrame.elementDepthCount++}(),fn&&(If(J,L,lt),Df(J,lt,L)),null!==O&&Pf(L,lt),Yf}function Gf(){let f=Mo();sl()?ca():(f=f.parent,ba(f,!1));const _=f;!function vn(){yr.lFrame.elementDepthCount--}();const C=xr();return C.firstCreatePass&&(Vo(C,f),_o(f)&&C.queries.elementEnd(f)),null!=_.classesWithoutHost&&function po(f){return 0!=(8&f.flags)}(_)&&fp(C,_,Oi(),_.classesWithoutHost,!0),null!=_.stylesWithoutHost&&function Rr(f){return 0!=(16&f.flags)}(_)&&fp(C,_,Oi(),_.stylesWithoutHost,!1),Gf}function Zg(f,_,C,O){return Yf(f,_,C,O),Gf(),Zg}function xh(f,_,C){const O=Oi(),L=xr(),J=f+vi,ye=L.firstCreatePass?function ME(f,_,C,O,L){const J=_.consts,ye=Uo(J,O),je=tp(_,f,8,"ng-container",ye);return null!==ye&&Nf(je,ye,!0),Hg(_,C,je,Uo(J,L)),null!==_.queries&&_.queries.elementStart(_,je),je}(J,L,O,_,C):L.data[J];ba(ye,!0);const je=O[J]=O[Kn].createComment("");return nc(L,O,je,ye),Ba(je,O),Sn(ye)&&(If(L,O,ye),Df(L,ye,O)),null!=C&&Pf(O,ye),xh}function mp(){let f=Mo();const _=xr();return sl()?ca():(f=f.parent,ba(f,!1)),_.firstCreatePass&&(Vo(_,f),_o(f)&&_.queries.elementEnd(f)),mp}function $f(f,_,C){return xh(f,_,C),mp(),$f}function Kf(){return Oi()}function Qf(f){return!!f&&"function"==typeof f.then}function gp(f){return!!f&&"function"==typeof f.subscribe}const Bb=gp;function Mh(f,_,C,O){const L=Oi(),J=xr(),ye=Mo();return Xf(J,L,L[Kn],ye,f,_,O),Mh}function Sh(f,_){const C=Mo(),O=Oi(),L=xr();return Xf(L,O,Mb(Sr(L.data),C,O),C,f,_),Sh}function Xf(f,_,C,O,L,J,ye){const je=Sn(O),Ht=f.firstCreatePass&&xb(f),fn=_[fr],Hn=Eb(_);let di=!0;if(3&O.type||ye){const Zi=tr(O,_),ar=ye?ye(Zi):Zi,Or=Hn.length,Kr=ye?uo=>ye(Ai(uo[O.index])):O.index;let Qi=null;if(!ye&&je&&(Qi=function SE(f,_,C,O){const L=f.cleanup;if(null!=L)for(let J=0;J<L.length-1;J+=2){const ye=L[J];if(ye===C&&L[J+1]===O){const je=_[$i],lt=L[J+2];return je.length>lt?je[lt]:null}"string"==typeof ye&&(J+=2)}return null}(f,_,L,O.index)),null!==Qi)(Qi.__ngLastListenerFn__||Qi).__ngNextListenerFn__=J,Qi.__ngLastListenerFn__=J,di=!1;else{J=Jf(O,_,fn,J,!1);const uo=C.listen(ar,L,J);Hn.push(J,uo),Ht&&Ht.push(L,Kr,Or,Or+1)}}else J=Jf(O,_,fn,J,!1);const Ei=O.outputs;let Bi;if(di&&null!==Ei&&(Bi=Ei[L])){const Zi=Bi.length;if(Zi)for(let ar=0;ar<Zi;ar+=2){const Ua=_[Bi[ar]][Bi[ar+1]].subscribe(J),ns=Hn.length;Hn.push(J,Ua),Ht&&Ht.push(L,O.index,ns,-(ns+1))}}}function Zf(f,_,C,O){try{return qn(6,_,C),!1!==C(O)}catch(L){return pE(f,L),!1}finally{qn(7,_,C)}}function Jf(f,_,C,O,L){return function J(ye){if(ye===Function)return O;Rf(f.componentOffset>-1?wo(f.index,_):_);let lt=Zf(_,C,O,ye),Ht=J.__ngNextListenerFn__;for(;Ht;)lt=Zf(_,C,Ht,ye)&&lt,Ht=Ht.__ngNextListenerFn__;return L&&!1===lt&&(ye.preventDefault(),ye.returnValue=!1),lt}}function qf(f=1){return function qt(f){return(yr.lFrame.contextLView=function Ri(f,_){for(;f>0;)_=_[tt],f--;return _}(f,yr.lFrame.contextLView))[fr]}(f)}function wE(f,_){let C=null;const O=function RC(f){const _=f.attrs;if(null!=_){const C=_.indexOf(5);if(!(1&C))return _[C+1]}return null}(f);for(let L=0;L<_.length;L++){const J=_[L];if("*"!==J){if(null===O?Zv(f,J,!0):gh(O,J))return L}else C=L}return C}function Ub(f){const _=Oi()[nn][gi];if(!_.projection){const O=_.projection=rt(f?f.length:1,null),L=O.slice();let J=_.child;for(;null!==J;){const ye=f?wE(J,f):0;null!==ye&&(L[ye]?L[ye].projectionNext=J:O[ye]=J,L[ye]=J),J=J.next}}}function jb(f,_=0,C){const O=Oi(),L=xr(),J=tp(L,vi+f,16,null,C||null);null===J.projection&&(J.projection=_),ca(),32!=(32&J.flags)&&function Sl(f,_,C){Cd(_[Kn],0,_,C,bd(f,C,_),Kp(C.parent||_[gi],C,_))}(L,O,J)}function _p(f,_,C){return vp(f,"",_,"",C),_p}function vp(f,_,C,O,L){const J=Oi(),ye=Pd(J,_,C,O);return ye!==io&&$l(xr(),Xi(),J,f,ye,J[Kn],L,!1),vp}function em(f,_,C,O,L,J,ye){const je=Oi(),lt=rp(je,_,C,O,L,J);return lt!==io&&$l(xr(),Xi(),je,f,lt,je[Kn],ye,!1),em}function wh(f,_,C,O,L,J,ye,je,lt){const Ht=Oi(),fn=op(Ht,_,C,O,L,J,ye,je);return fn!==io&&$l(xr(),Xi(),Ht,f,fn,Ht[Kn],lt,!1),wh}function Oh(f,_,C,O,L,J,ye,je,lt,Ht,fn){const Hn=Oi(),di=ap(Hn,_,C,O,L,J,ye,je,lt,Ht);return di!==io&&$l(xr(),Xi(),Hn,f,di,Hn[Kn],fn,!1),Oh}function Th(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di){const Ei=Oi(),Bi=mu(Ei,_,C,O,L,J,ye,je,lt,Ht,fn,Hn);return Bi!==io&&$l(xr(),Xi(),Ei,f,Bi,Ei[Kn],di,!1),Th}function tm(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi){const Zi=Oi(),ar=sp(Zi,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei);return ar!==io&&$l(xr(),Xi(),Zi,f,ar,Zi[Kn],Bi,!1),tm}function Jg(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar){const Or=Oi(),Kr=lp(Or,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi);return Kr!==io&&$l(xr(),Xi(),Or,f,Kr,Or[Kn],ar,!1),Jg}function nm(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar,Or,Kr){const Qi=Oi(),uo=cp(Qi,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar,Or);return uo!==io&&$l(xr(),Xi(),Qi,f,uo,Qi[Kn],Kr,!1),nm}function Ad(f,_,C){const O=Oi(),L=rd(O,_);return L!==io&&$l(xr(),Xi(),O,f,L,O[Kn],C,!1),Ad}function Dh(f,_){return f<<17|_<<2}function Ld(f){return f>>17&32767}function qg(f){return 2|f}function gu(f){return(131068&f)>>2}function e_(f,_){return-131069&f|_<<2}function t_(f){return 1|f}function im(f,_,C,O,L){const J=f[C+1],ye=null===_;let je=O?Ld(J):gu(J),lt=!1;for(;0!==je&&(!1===lt||ye);){const fn=f[je+1];IE(f[je],_)&&(lt=!0,f[je+1]=O?t_(fn):qg(fn)),je=O?Ld(fn):gu(fn)}lt&&(f[C+1]=O?qg(J):t_(J))}function IE(f,_){return null===f||null==_||(Array.isArray(f)?f[1]:f)===_||!(!Array.isArray(f)||"string"!=typeof _)&&lr(f,_)>=0}const Es={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Wb(f){return f.substring(Es.key,Es.keyEnd)}function zb(f){return f.substring(Es.value,Es.valueEnd)}function i_(f,_){const C=Es.textEnd;return C===_?-1:(_=Es.keyEnd=function jx(f,_,C){for(;_<C&&f.charCodeAt(_)>32;)_++;return _}(f,Es.key=_,C),bp(f,_,C))}function r_(f,_){const C=Es.textEnd;let O=Es.key=bp(f,_,C);return C===O?-1:(O=Es.keyEnd=function Hx(f,_,C){let O;for(;_<C&&(45===(O=f.charCodeAt(_))||95===O||(-33&O)>=65&&(-33&O)<=90||O>=48&&O<=57);)_++;return _}(f,O,C),O=rm(f,O,C),O=Es.value=bp(f,O,C),O=Es.valueEnd=function Vx(f,_,C){let O=-1,L=-1,J=-1,ye=_,je=ye;for(;ye<C;){const lt=f.charCodeAt(ye++);if(59===lt)return je;34===lt||39===lt?je=ye=AE(f,lt,ye,C):_===ye-4&&85===J&&82===L&&76===O&&40===lt?je=ye=AE(f,41,ye,C):lt>32&&(je=ye),J=L,L=O,O=-33&lt}return je}(f,O,C),rm(f,O,C))}function PE(f){Es.key=0,Es.keyEnd=0,Es.value=0,Es.valueEnd=0,Es.textEnd=f.length}function bp(f,_,C){for(;_<C&&f.charCodeAt(_)<=32;)_++;return _}function rm(f,_,C,O){return(_=bp(f,_,C))<C&&_++,_}function AE(f,_,C,O){let L=-1,J=C;for(;J<O;){const ye=f.charCodeAt(J++);if(ye==_&&92!==L)return J;L=92==ye&&92===L?0:ye}throw new Error}function om(f,_,C){return Ql(f,_,C,!1),om}function o_(f,_){return Ql(f,_,null,!0),o_}function rc(f){Bc(NE,a_,f,!1)}function a_(f,_){for(let C=function Gb(f){return PE(f),r_(f,bp(f,0,Es.textEnd))}(_);C>=0;C=r_(_,C))NE(f,Wb(_),zb(_))}function am(f){Bc($x,od,f,!0)}function od(f,_){for(let C=function Yb(f){return PE(f),i_(f,bp(f,0,Es.textEnd))}(_);C>=0;C=i_(_,C))ki(f,Wb(_),!0)}function Ql(f,_,C,O){const L=Oi(),J=xr(),ye=Ma(2);J.firstUpdatePass&&LE(J,f,ye,O),_!==io&&Ns(L,ye,_)&&lm(J,J.data[Fi()],L,L[Kn],f,L[ye+1]=function Qb(f,_){return null==f||""===f||("string"==typeof _?f+=_:"object"==typeof f&&(f=d(us(f)))),f}(_,C),O,ye)}function Bc(f,_,C,O){const L=xr(),J=Ma(2);L.firstUpdatePass&&LE(L,null,J,O);const ye=Oi();if(C!==io&&Ns(ye,J,C)){const je=L.data[Fi()];if(l_(je,O)&&!$b(L,J)){let lt=O?je.classesWithoutHost:je.stylesWithoutHost;null!==lt&&(C=p(lt,C||"")),fp(L,je,ye,C,O)}else!function Kx(f,_,C,O,L,J,ye,je){L===io&&(L=gt);let lt=0,Ht=0,fn=0<L.length?L[0]:null,Hn=0<J.length?J[0]:null;for(;null!==fn||null!==Hn;){const di=lt<L.length?L[lt+1]:void 0,Ei=Ht<J.length?J[Ht+1]:void 0;let Zi,Bi=null;fn===Hn?(lt+=2,Ht+=2,di!==Ei&&(Bi=Hn,Zi=Ei)):null===Hn||null!==fn&&fn<Hn?(lt+=2,Bi=fn):(Ht+=2,Bi=Hn,Zi=Ei),null!==Bi&&lm(f,_,C,O,Bi,Zi,ye,je),fn=lt<L.length?L[lt]:null,Hn=Ht<J.length?J[Ht]:null}}(L,je,ye,ye[Kn],ye[J+1],ye[J+1]=function Gx(f,_,C){if(null==C||""===C)return gt;const O=[],L=us(C);if(Array.isArray(L))for(let J=0;J<L.length;J++)f(O,L[J],!0);else if("object"==typeof L)for(const J in L)L.hasOwnProperty(J)&&f(O,J,L[J]);else"string"==typeof L&&_(O,L);return O}(f,_,C),O,J)}}function $b(f,_){return _>=f.expandoStartIndex}function LE(f,_,C,O){const L=f.data;if(null===L[C+1]){const J=L[Fi()],ye=$b(f,C);l_(J,O)&&null===_&&!ye&&(_=!1),_=function RE(f,_,C,O){const L=Sr(f);let J=O?_.residualClasses:_.residualStyles;if(null===L)0===(O?_.classBindings:_.styleBindings)&&(C=sm(C=s_(null,f,_,C,O),_.attrs,O),J=null);else{const ye=_.directiveStylingLast;if(-1===ye||f[ye]!==L)if(C=s_(L,f,_,C,O),null===J){let lt=function kE(f,_,C){const O=C?_.classBindings:_.styleBindings;if(0!==gu(O))return f[Ld(O)]}(f,_,O);void 0!==lt&&Array.isArray(lt)&&(lt=s_(null,f,_,lt[1],O),lt=sm(lt,_.attrs,O),function zx(f,_,C,O){f[Ld(C?_.classBindings:_.styleBindings)]=O}(f,_,O,lt))}else J=function Yx(f,_,C){let O;const L=_.directiveEnd;for(let J=1+_.directiveStylingLast;J<L;J++)O=sm(O,f[J].hostAttrs,C);return sm(O,_.attrs,C)}(f,_,O)}return void 0!==J&&(O?_.residualClasses=J:_.residualStyles=J),C}(L,J,_,O),function Hb(f,_,C,O,L,J){let ye=J?_.classBindings:_.styleBindings,je=Ld(ye),lt=gu(ye);f[O]=C;let fn,Ht=!1;if(Array.isArray(C)?(fn=C[1],(null===fn||lr(C,fn)>0)&&(Ht=!0)):fn=C,L)if(0!==lt){const di=Ld(f[je+1]);f[O+1]=Dh(di,je),0!==di&&(f[di+1]=e_(f[di+1],O)),f[je+1]=function TE(f,_){return 131071&f|_<<17}(f[je+1],O)}else f[O+1]=Dh(je,0),0!==je&&(f[je+1]=e_(f[je+1],O)),je=O;else f[O+1]=Dh(lt,0),0===je?je=O:f[lt+1]=e_(f[lt+1],O),lt=O;Ht&&(f[O+1]=qg(f[O+1])),im(f,fn,O,!0),im(f,fn,O,!1),function Vb(f,_,C,O,L){const J=L?f.residualClasses:f.residualStyles;null!=J&&"string"==typeof _&&lr(J,_)>=0&&(C[O+1]=t_(C[O+1]))}(_,fn,f,O,J),ye=Dh(je,lt),J?_.classBindings=ye:_.styleBindings=ye}(L,J,_,C,ye,O)}}function s_(f,_,C,O,L){let J=null;const ye=C.directiveEnd;let je=C.directiveStylingLast;for(-1===je?je=C.directiveStart:je++;je<ye&&(J=_[je],O=sm(O,J.hostAttrs,L),J!==f);)je++;return null!==f&&(C.directiveStylingLast=je),O}function sm(f,_,C){const O=C?1:2;let L=-1;if(null!==_)for(let J=0;J<_.length;J++){const ye=_[J];"number"==typeof ye?L=ye:L===O&&(Array.isArray(f)||(f=void 0===f?[]:["",f]),ki(f,ye,!!C||_[++J]))}return void 0===f?null:f}function NE(f,_,C){ki(f,_,us(C))}function $x(f,_,C){const O=String(_);""!==O&&!O.includes(" ")&&ki(f,O,C)}function lm(f,_,C,O,L,J,ye,je){if(!(3&_.type))return;const lt=f.data,Ht=lt[je+1],fn=function DE(f){return 1==(1&f)}(Ht)?Kb(lt,_,C,L,gu(Ht),ye):void 0;Ih(fn)||(Ih(J)||function OE(f){return 2==(2&f)}(Ht)&&(J=Kb(lt,null,C,L,je,ye)),function nf(f,_,C,O,L){if(_)L?f.addClass(C,O):f.removeClass(C,O);else{let J=-1===O.indexOf("-")?void 0:Eo.DashCase;null==L?f.removeStyle(C,O,J):("string"==typeof L&&L.endsWith("!important")&&(L=L.slice(0,-10),J|=Eo.Important),f.setStyle(C,O,L,J))}}(O,ye,Yi(Fi(),C),L,J))}function Kb(f,_,C,O,L,J){const ye=null===_;let je;for(;L>0;){const lt=f[L],Ht=Array.isArray(lt),fn=Ht?lt[1]:lt,Hn=null===fn;let di=C[L+1];di===io&&(di=Hn?gt:void 0);let Ei=Hn?ur(di,O):fn===O?di:void 0;if(Ht&&!Ih(Ei)&&(Ei=ur(lt,O)),Ih(Ei)&&(je=Ei,ye))return je;const Bi=f[L+1];L=ye?Ld(Bi):gu(Bi)}if(null!==_){let lt=J?_.residualClasses:_.residualStyles;null!=lt&&(je=ur(lt,O))}return je}function Ih(f){return void 0!==f}function l_(f,_){return 0!=(f.flags&(_?8:16))}function c_(f,_=""){const C=Oi(),O=xr(),L=f+vi,J=O.firstCreatePass?tp(O,L,1,_,null):O.data[L],ye=C[L]=ai(C[Kn],_);nc(O,C,ye,J),ba(J,!1)}function cm(f){return Ph("",f,""),cm}function Ph(f,_,C){const O=Oi(),L=Pd(O,f,_,C);return L!==io&&nd(O,Fi(),L),Ph}function dm(f,_,C,O,L){const J=Oi(),ye=rp(J,f,_,C,O,L);return ye!==io&&nd(J,Fi(),ye),dm}function yp(f,_,C,O,L,J,ye){const je=Oi(),lt=op(je,f,_,C,O,L,J,ye);return lt!==io&&nd(je,Fi(),lt),yp}function d_(f,_,C,O,L,J,ye,je,lt){const Ht=Oi(),fn=ap(Ht,f,_,C,O,L,J,ye,je,lt);return fn!==io&&nd(Ht,Fi(),fn),d_}function u_(f,_,C,O,L,J,ye,je,lt,Ht,fn){const Hn=Oi(),di=mu(Hn,f,_,C,O,L,J,ye,je,lt,Ht,fn);return di!==io&&nd(Hn,Fi(),di),u_}function p_(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di){const Ei=Oi(),Bi=sp(Ei,f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di);return Bi!==io&&nd(Ei,Fi(),Bi),p_}function um(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi){const Zi=Oi(),ar=lp(Zi,f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi);return ar!==io&&nd(Zi,Fi(),ar),um}function pm(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar){const Or=Oi(),Kr=cp(Or,f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar);return Kr!==io&&nd(Or,Fi(),Kr),pm}function hm(f){const _=Oi(),C=rd(_,f);return C!==io&&nd(_,Fi(),C),hm}function h_(f,_,C){Bc(ki,od,Pd(Oi(),f,_,C),!0)}function Cp(f,_,C,O,L){Bc(ki,od,rp(Oi(),f,_,C,O,L),!0)}function Xb(f,_,C,O,L,J,ye){Bc(ki,od,op(Oi(),f,_,C,O,L,J,ye),!0)}function f_(f,_,C,O,L,J,ye,je,lt){Bc(ki,od,ap(Oi(),f,_,C,O,L,J,ye,je,lt),!0)}function Zb(f,_,C,O,L,J,ye,je,lt,Ht,fn){Bc(ki,od,mu(Oi(),f,_,C,O,L,J,ye,je,lt,Ht,fn),!0)}function Jb(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di){Bc(ki,od,sp(Oi(),f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di),!0)}function m_(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi){Bc(ki,od,lp(Oi(),f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi),!0)}function g_(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar){Bc(ki,od,cp(Oi(),f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar),!0)}function __(f){Bc(ki,od,rd(Oi(),f),!0)}function qb(f,_,C){rc(Pd(Oi(),f,_,C))}function ey(f,_,C,O,L){rc(rp(Oi(),f,_,C,O,L))}function ty(f,_,C,O,L,J,ye){rc(op(Oi(),f,_,C,O,L,J,ye))}function v_(f,_,C,O,L,J,ye,je,lt){rc(ap(Oi(),f,_,C,O,L,J,ye,je,lt))}function ny(f,_,C,O,L,J,ye,je,lt,Ht,fn){rc(mu(Oi(),f,_,C,O,L,J,ye,je,lt,Ht,fn))}function iy(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di){rc(sp(Oi(),f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di))}function b_(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi){rc(lp(Oi(),f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi))}function ry(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar){rc(cp(Oi(),f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar))}function oy(f){rc(rd(Oi(),f))}function y_(f,_,C,O,L){return Ql(f,Pd(Oi(),_,C,O),L,!1),y_}function fm(f,_,C,O,L,J,ye){return Ql(f,rp(Oi(),_,C,O,L,J),ye,!1),fm}function C_(f,_,C,O,L,J,ye,je,lt){return Ql(f,op(Oi(),_,C,O,L,J,ye,je),lt,!1),C_}function mm(f,_,C,O,L,J,ye,je,lt,Ht,fn){return Ql(f,ap(Oi(),_,C,O,L,J,ye,je,lt,Ht),fn,!1),mm}function Ep(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di){return Ql(f,mu(Oi(),_,C,O,L,J,ye,je,lt,Ht,fn,Hn),di,!1),Ep}function gm(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi){return Ql(f,sp(Oi(),_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei),Bi,!1),gm}function _u(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar){return Ql(f,lp(Oi(),_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi),ar,!1),_u}function Ah(f,_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar,Or,Kr){return Ql(f,cp(Oi(),_,C,O,L,J,ye,je,lt,Ht,fn,Hn,di,Ei,Bi,Zi,ar,Or),Kr,!1),Ah}function E_(f,_,C){return Ql(f,rd(Oi(),_),C,!1),E_}function x_(f,_,C){const O=Oi();return Ns(O,Na(),_)&&$l(xr(),Xi(),O,f,_,O[Kn],C,!0),x_}function M_(f,_,C){const O=Oi();if(Ns(O,Na(),_)){const J=xr(),ye=Xi();$l(J,ye,O,f,_,Mb(Sr(J.data),ye,O),C,!0)}return M_}const vu=void 0;var S_=["en",[["a","p"],["AM","PM"],vu],[["AM","PM"],vu,vu],[["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"]],vu,[["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"]],vu,[["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}",vu,"{1} 'at' {0}",vu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function FE(f){const C=Math.floor(Math.abs(f)),O=f.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===O?1:5}];let xp={};function ay(f,_,C){"string"!=typeof _&&(C=_,_=f[Wr.LocaleId]),_=_.toLowerCase().replace(/_/g,"-"),xp[_]=f,C&&(xp[_][Wr.ExtraData]=C)}function oa(f){const _=function UE(f){return f.toLowerCase().replace(/_/g,"-")}(f);let C=w_(_);if(C)return C;const O=_.split("-")[0];if(C=w_(O),C)return C;if("en"===O)return S_;throw new D(701,!1)}function BE(f){return oa(f)[Wr.CurrencyCode]||null}function sy(f){return oa(f)[Wr.PluralCase]}function w_(f){return f in xp||(xp[f]=bt.ng&&bt.ng.common&&bt.ng.common.locales&&bt.ng.common.locales[f]),xp[f]}function O_(){xp={}}var Wr=(()=>((Wr=Wr||{})[Wr.LocaleId=0]="LocaleId",Wr[Wr.DayPeriodsFormat=1]="DayPeriodsFormat",Wr[Wr.DayPeriodsStandalone=2]="DayPeriodsStandalone",Wr[Wr.DaysFormat=3]="DaysFormat",Wr[Wr.DaysStandalone=4]="DaysStandalone",Wr[Wr.MonthsFormat=5]="MonthsFormat",Wr[Wr.MonthsStandalone=6]="MonthsStandalone",Wr[Wr.Eras=7]="Eras",Wr[Wr.FirstDayOfWeek=8]="FirstDayOfWeek",Wr[Wr.WeekendRange=9]="WeekendRange",Wr[Wr.DateFormat=10]="DateFormat",Wr[Wr.TimeFormat=11]="TimeFormat",Wr[Wr.DateTimeFormat=12]="DateTimeFormat",Wr[Wr.NumberSymbols=13]="NumberSymbols",Wr[Wr.NumberFormats=14]="NumberFormats",Wr[Wr.CurrencyCode=15]="CurrencyCode",Wr[Wr.CurrencySymbol=16]="CurrencySymbol",Wr[Wr.CurrencyName=17]="CurrencyName",Wr[Wr.Currencies=18]="Currencies",Wr[Wr.Directionality=19]="Directionality",Wr[Wr.PluralCase=20]="PluralCase",Wr[Wr.ExtraData=21]="ExtraData",Wr))();const Rd=["zero","one","two","few","many"],bu="en-US",oc={marker:"element"},_m={marker:"ICU"};var Da=(()=>((Da=Da||{})[Da.SHIFT=2]="SHIFT",Da[Da.APPEND_EAGERLY=1]="APPEND_EAGERLY",Da[Da.COMMENT=2]="COMMENT",Da))();let Lh=bu;function T_(f){(function me(f,_){null==f&&q(_,f,null,"!=")})(f,"Expected localeId to be defined"),"string"==typeof f&&(Lh=f.toLowerCase().replace(/_/g,"-"))}function vm(f,_,C){const O=_.insertBeforeIndex,L=Array.isArray(O)?O[0]:O;return null===L?Ac(f,0,C):Ai(C[L])}function D_(f,_,C,O,L){const J=_.insertBeforeIndex;if(Array.isArray(J)){let ye=O,je=null;if(3&_.type||(je=ye,ye=L),null!==ye&&-1===_.componentOffset)for(let lt=1;lt<J.length;lt++)fc(f,ye,C[J[lt]],je,!1)}}function cy(f,_){if(f.push(_),f.length>1)for(let C=f.length-2;C>=0;C--){const O=f[C];I_(O)||dy(O,_)&&null===jE(O)&&HE(O,_.index)}}function I_(f){return!(64&f.type)}function dy(f,_){return I_(_)||f.index>_.index}function jE(f){const _=f.insertBeforeIndex;return Array.isArray(_)?_[0]:_}function HE(f,_){const C=f.insertBeforeIndex;Array.isArray(C)?C[0]=_:(Xc(vm,D_),f.insertBeforeIndex=_)}function Uc(f,_){const C=f.data[_];return null===C||"string"==typeof C?null:C.hasOwnProperty("currentCaseLViewIndex")?C:C.value}function WE(f,_,C){const O=pu(f,C,64,null,null);return cy(_,O),O}function Mp(f,_){const C=_[f.currentCaseLViewIndex];return null===C?C:C<0?~C:C}function uy(f){return f>>>17}function py(f){return(131070&f)>>>1}let Rh=0,kh=0;function my(f,_,C,O){const L=C[Kn];let ye,J=null;for(let je=0;je<_.length;je++){const lt=_[je];if("string"==typeof lt){const Ht=_[++je];null===C[Ht]&&(C[Ht]=ai(L,lt))}else if("number"==typeof lt)switch(1&lt){case 0:const Ht=uy(lt);let fn,Hn;if(null===J&&(J=Ht,ye=Hl(L,O)),Ht===J?(fn=O,Hn=ye):(fn=null,Hn=Ai(C[Ht])),null!==Hn){const Zi=py(lt);fc(L,Hn,C[Zi],fn,!1);const Or=Uc(f,Zi);if(null!==Or&&"object"==typeof Or){const Kr=Mp(Or,C);null!==Kr&&my(f,Or.create[Kr],C,C[Or.anchorIdx])}}break;case 1:const Ei=_[++je],Bi=_[++je];Af(L,Yi(lt>>>1,C),null,null,Ei,Bi,null)}else switch(lt){case _m:const Ht=_[++je],fn=_[++je];null===C[fn]&&Ba(C[fn]=Cr(L,Ht),C);break;case oc:const Hn=_[++je],di=_[++je];null===C[di]&&Ba(C[di]=ho(L,Hn,null),C)}}}function gy(f,_,C,O,L){for(let J=0;J<C.length;J++){const ye=C[J],je=C[++J];if(ye&L){let lt="";for(let Ht=J+1;Ht<=J+je;Ht++){const fn=C[Ht];if("string"==typeof fn)lt+=fn;else if("number"==typeof fn)if(fn<0)lt+=P(_[O-fn]);else{const Hn=fn>>>2;switch(3&fn){case 1:const di=C[++Ht],Ei=C[++Ht],Bi=f.data[Hn];"string"==typeof Bi?Af(_[Kn],_[Hn],null,Bi,di,lt,Ei):$l(f,Bi,_,di,lt,_[Kn],Ei,!1);break;case 0:const Zi=_[Hn];null!==Zi&&Ki(_[Kn],Zi,lt);break;case 2:yu(f,Uc(f,Hn),_,lt);break;case 3:P_(f,Uc(f,Hn),O,_)}}}}else{const lt=C[J+1];if(lt>0&&3==(3&lt)){const fn=Uc(f,lt>>>2);_[fn.currentCaseLViewIndex]<0&&P_(f,fn,O,_)}}J+=je}}function P_(f,_,C,O){let L=O[_.currentCaseLViewIndex];if(null!==L){let J=Rh;L<0&&(L=O[_.currentCaseLViewIndex]=~L,J=-1),gy(f,O,_.update[L],C,J)}}function yu(f,_,C,O){const L=function ea(f,_){let C=f.cases.indexOf(_);if(-1===C)switch(f.type){case 1:{const O=function Qx(f,_){const C=sy(_)(parseInt(f,10)),O=Rd[C];return void 0!==O?O:"other"}(_,function ly(){return Lh}());C=f.cases.indexOf(O),-1===C&&"other"!==O&&(C=f.cases.indexOf("other"));break}case 0:C=f.cases.indexOf("other")}return-1===C?null:C}(_,O);if(Mp(_,C)!==L&&(bm(f,_,C),C[_.currentCaseLViewIndex]=null===L?null:~L,null!==L)){const ye=C[_.anchorIdx];ye&&my(f,_.create[L],C,ye)}}function bm(f,_,C){let O=Mp(_,C);if(null!==O){const L=_.remove[O];for(let J=0;J<L.length;J++){const ye=L[J];if(ye>0){const je=Yi(ye,C);null!==je&&Zd(C[Kn],je)}else bm(f,Uc(f,~ye),C)}}}function $E(){const f=[];let C,O,_=-1;function J(je,lt){_=0;const Ht=Mp(je,lt);O=null!==Ht?je.remove[Ht]:gt}function ye(){if(_<O.length){const je=O[_++];return je>0?C[je]:(f.push(_,O),J(C[Vn].data[~je],C),ye())}return 0===f.length?null:(O=f.pop(),_=f.pop(),ye())}return function L(je,lt){for(C=lt;f.length;)f.pop();return J(je.value,lt),ye}}const Cu=/\ufffd(\d+):?\d*\ufffd/gi,vy=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,KE=/\ufffd(\d+)\ufffd/,by=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Nh="\ufffd",yy=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Cy=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Zx=/\uE500/g;function Ey(f,_,C,O,L,J,ye){const je=Od(f,O,1,null);let lt=je<<Da.SHIFT,Ht=Ss();_===Ht&&(Ht=null),null===Ht&&(lt|=Da.APPEND_EAGERLY),ye&&(lt|=Da.COMMENT,function Ic(f){void 0===pc&&(pc=f())}($E)),L.push(lt,null===J?"":J);const fn=pu(f,je,ye?32:1,null===J?"":J,null);cy(C,fn);const Hn=fn.index;return ba(fn,!1),null!==Ht&&_!==Ht&&function xs(f,_){let C=f.insertBeforeIndex;null===C?(Xc(vm,D_),C=f.insertBeforeIndex=[null,_]):(function j(f,_,C){f!=_&&q(C,f,_,"==")}(Array.isArray(C),!0,"Expecting array here"),C.push(_))}(Ht,Hn),fn}function XE(f,_,C,O,L,J,ye){const je=ye.match(Cu),lt=Ey(f,_,C,J,O,je?null:ye,!1);je&&ym(L,ye,lt.index,null,0,null)}function ym(f,_,C,O,L,J){const ye=f.length,je=ye+1;f.push(null,null);const lt=ye+2,Ht=_.split(Cu);let fn=0;for(let Hn=0;Hn<Ht.length;Hn++){const di=Ht[Hn];if(1&Hn){const Ei=L+parseInt(di,10);f.push(-1-Ei),fn|=Sy(Ei)}else""!==di&&f.push(di)}return f.push(C<<2|(O?1:0)),O&&f.push(O,J),f[ye]=fn,f[je]=f.length-lt,fn}function My(f){let _=0;for(let C=0;C<f.length;C++){const O=f[C];"number"==typeof O&&O<0&&_++}return _}function Sy(f){return 1<<Math.min(f,31)}function wy(f){let _,J,C="",O=0,L=!1;for(;null!==(_=yy.exec(f));)L?_[0]===`${Nh}/*${J}${Nh}`&&(O=_.index,L=!1):(C+=f.substring(O,_.index+_[0].length),J=_[1],L=!0);return C+=f.slice(O),C}function Oy(f,_,C,O,L,J){let ye=0;const je={type:L.type,currentCaseLViewIndex:Od(f,_,1,null),anchorIdx:J,cases:[],create:[],remove:[],update:[]};(function fa(f,_,C){f.push(Sy(_.mainBinding),2,-1-_.mainBinding,C<<2|2)})(C,L,J),function VE(f,_,C){const O=f.data[_];null===O?f.data[_]=C:O.value=C}(f,J,je);const lt=L.values;for(let Ht=0;Ht<lt.length;Ht++){const fn=lt[Ht],Hn=[];for(let di=0;di<fn.length;di++){const Ei=fn[di];if("string"!=typeof Ei){const Bi=Hn.push(Ei)-1;fn[di]=`\x3c!--\ufffd${Bi}\ufffd--\x3e`}}ye=e1(f,je,_,C,O,L.cases[Ht],fn.join(""),Hn)|ye}ye&&function ma(f,_,C){f.push(_,1,C<<2|3)}(C,ye,J)}function qE(f){const _=[],C=[];let O=1,L=0;const J=A_(f=f.replace(by,function(ye,je,lt){return O="select"===lt?0:1,L=parseInt(je.slice(1),10),""}));for(let ye=0;ye<J.length;){let je=J[ye++].trim();1===O&&(je=je.replace(/\s*(?:=)?(\w+)\s*/,"$1")),je.length&&_.push(je);const lt=A_(J[ye++]);_.length>C.length&&C.push(lt)}return{type:O,mainBinding:L,cases:_,values:C}}function A_(f){if(!f)return[];let _=0;const C=[],O=[],L=/[{}]/g;let J;for(L.lastIndex=0;J=L.exec(f);){const je=J.index;if("}"==J[0]){if(C.pop(),0==C.length){const lt=f.substring(_,je);by.test(lt)?O.push(qE(lt)):O.push(lt),_=je+1}}else{if(0==C.length){const lt=f.substring(_,je);O.push(lt),_=je+1}C.push("{")}}const ye=f.substring(_);return O.push(ye),O}function e1(f,_,C,O,L,J,ye,je){const lt=[],Ht=[],fn=[];_.cases.push(J),_.create.push(lt),_.remove.push(Ht),_.update.push(fn);const di=Bu(sf()).getInertBodyElement(ye),Ei=qc(di)||di;return Ei?Ty(f,_,C,O,lt,Ht,fn,Ei,L,je,0):0}function Ty(f,_,C,O,L,J,ye,je,lt,Ht,fn){let Hn=0,di=je.firstChild;for(;di;){const Ei=Od(f,C,1,null);switch(di.nodeType){case Node.ELEMENT_NODE:const Bi=di,Zi=Bi.tagName.toLowerCase();if(Y.hasOwnProperty(Zi)){Em(L,oc,Zi,lt,Ei),f.data[Ei]=Zi;const Qi=Bi.attributes;for(let uo=0;uo<Qi.length;uo++){const Ua=Qi.item(uo),ns=Ua.name.toLowerCase();Ua.value.match(Cu)?ei.hasOwnProperty(ns)&&ym(ye,Ua.value,Ei,Ua.name,0,Te[ns]?nu:null):Iy(L,Ei,Ua)}Hn=Ty(f,_,C,O,L,J,ye,di,Ei,Ht,fn+1)|Hn,Dy(J,Ei,fn)}break;case Node.TEXT_NODE:const ar=di.textContent||"",Or=ar.match(Cu);Em(L,null,Or?"":ar,lt,Ei),Dy(J,Ei,fn),Or&&(Hn=ym(ye,ar,Ei,null,0,null)|Hn);break;case Node.COMMENT_NODE:const Kr=KE.exec(di.textContent||"");if(Kr){const uo=Ht[parseInt(Kr[1],10)];Em(L,_m,"",lt,Ei),Oy(f,C,O,lt,uo,Ei),Cm(J,Ei,fn)}}di=di.nextSibling}return Hn}function Dy(f,_,C){0===C&&f.push(_)}function Cm(f,_,C){0===C&&(f.push(~_),f.push(_))}function Em(f,_,C,O,L){null!==_&&f.push(_),f.push(C,L,function zE(f,_,C){return f|_<<17|C<<1}(0,O,L))}function Iy(f,_,C){f.push(_<<1|1,C.name,C.value)}const L_=0,qx=/\[(\ufffd.+?\ufffd?)\]/,Py=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,t1=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,n1=/{([A-Z0-9_]+)}/g,r1=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,o1=/\/\*/,R_=/\d+\:(\d+)/;function k_(f,_,C=-1){const O=xr(),L=Oi(),J=vi+f,ye=Uo(O.consts,_),je=Ss();O.firstCreatePass&&function Jx(f,_,C,O,L,J){const ye=Ss(),je=[],lt=[],Ht=[[]];L=function JE(f,_){if(function ZE(f){return-1===f}(_))return wy(f);{const C=f.indexOf(`:${_}${Nh}`)+2+_.toString().length,O=f.search(new RegExp(`${Nh}\\/\\*\\d+:${_}${Nh}`));return wy(f.substring(C,O))}}(L,J);const fn=function QE(f){return f.replace(Zx," ")}(L).split(Cy);for(let Hn=0;Hn<fn.length;Hn++){let di=fn[Hn];if(1&Hn){const Ei=47===di.charCodeAt(0),Zi=(di.charCodeAt(Ei?1:0),vi+Number.parseInt(di.substring(Ei?2:1)));if(Ei)Ht.shift(),ba(Ss(),!1);else{const ar=WE(f,Ht[0],Zi);Ht.unshift([]),ba(ar,!0)}}else{const Ei=A_(di);for(let Bi=0;Bi<Ei.length;Bi++){let Zi=Ei[Bi];if(1&Bi){const ar=Zi;if("object"!=typeof ar)throw new Error(`Unable to parse ICU expression in "${L}" message.`);Oy(f,C,lt,_,ar,Ey(f,ye,Ht[0],C,je,"",!0).index)}else""!==Zi&&XE(f,ye,Ht[0],je,lt,C,Zi)}}}f.data[O]={create:je,update:lt}}(O,null===je?0:je.index,L,J,ye,C);const lt=O.data[J],fn=Ru(O,je===L[gi]?null:je,L);(function GE(f,_,C,O){const L=f[Kn];for(let J=0;J<_.length;J++){const ye=_[J++],je=_[J],Ht=(ye&Da.APPEND_EAGERLY)===Da.APPEND_EAGERLY,fn=ye>>>Da.SHIFT;let Hn=f[fn];null===Hn&&(Hn=f[fn]=(ye&Da.COMMENT)===Da.COMMENT?L.createComment(je):ai(L,je)),Ht&&null!==C&&fc(L,C,Hn,O,!1)}})(L,lt.create,fn,je&&8&je.type?L[je.index]:null),Fr(!0)}function Nd(){Fr(!1)}function Ay(f,_,C){k_(f,_,C),Nd()}function N_(f,_){const C=xr(),O=Uo(C.consts,_);!function xy(f,_,C){const L=Mo().index,J=[];if(f.firstCreatePass&&null===f.data[_]){for(let ye=0;ye<C.length;ye+=2){const je=C[ye],lt=C[ye+1];if(""!==lt){if(vy.test(lt))throw new Error(`ICU expressions are not supported in attributes. Message: "${lt}".`);ym(J,lt,L,je,My(J),null)}}f.data[_]=J}}(C,f+vi,O)}function F_(f){return function YE(f){f&&(Rh|=1<<Math.min(kh,31)),kh++}(Ns(Oi(),Na(),f)),F_}function B_(f){!function fy(f,_,C){if(kh>0){const O=f.data[C];gy(f,_,Array.isArray(O)?O:O.update,Ko()-kh-1,Rh)}Rh=0,kh=0}(xr(),Oi(),f+vi)}function Ly(f,_={}){return function a1(f,_={}){let C=f;if(qx.test(f)){const O={},L=[L_];C=C.replace(Py,(J,ye,je)=>{const lt=ye||je,Ht=O[lt]||[];if(Ht.length||(lt.split("|").forEach(Zi=>{const ar=Zi.match(R_),Or=ar?parseInt(ar[1],10):L_,Kr=o1.test(Zi);Ht.push([Or,Kr,Zi])}),O[lt]=Ht),!Ht.length)throw new Error(`i18n postprocess: unmatched placeholder - ${lt}`);const fn=L[L.length-1];let Hn=0;for(let Zi=0;Zi<Ht.length;Zi++)if(Ht[Zi][0]===fn){Hn=Zi;break}const[di,Ei,Bi]=Ht[Hn];return Ei?L.pop():fn!==di&&L.push(di),Ht.splice(Hn,1),Bi})}return Object.keys(_).length&&(C=C.replace(t1,(O,L,J,ye,je,lt)=>_.hasOwnProperty(J)?`${L}${_[J]}${lt}`:O),C=C.replace(n1,(O,L)=>_.hasOwnProperty(L)?_[L]:O),C=C.replace(r1,(O,L)=>{if(_.hasOwnProperty(L)){const J=_[L];if(!J.length)throw new Error(`i18n postprocess: unmatched ICU - ${O} with key: ${L}`);return J.shift()}return O})),C}(f,_)}function U_(f,_,C,O,L){if(f=v(f),Array.isArray(f))for(let J=0;J<f.length;J++)U_(f[J],_,C,O,L);else{const J=xr(),ye=Oi();let je=au(f)?f:v(f.provide),lt=gf(f);const Ht=Mo(),fn=1048575&Ht.providerIndexes,Hn=Ht.directiveStart,di=Ht.providerIndexes>>20;if(au(f)||!f.multi){const Ei=new An(lt,L,bh),Bi=H_(je,_,L?fn:fn+di,Hn);-1===Bi?(Oo(Us(Ht,ye),J,je),j_(J,f,_.length),_.push(je),Ht.directiveStart++,Ht.directiveEnd++,L&&(Ht.providerIndexes+=1048576),C.push(Ei),ye.push(Ei)):(C[Bi]=Ei,ye[Bi]=Ei)}else{const Ei=H_(je,_,fn+di,Hn),Bi=H_(je,_,fn,fn+di),ar=Bi>=0&&C[Bi];if(L&&!ar||!L&&!(Ei>=0&&C[Ei])){Oo(Us(Ht,ye),J,je);const Or=function eM(f,_,C,O,L){const J=new An(f,C,bh);return J.multi=[],J.index=_,J.componentProviders=0,ky(J,L,O&&!C),J}(L?Bs:ad,C.length,L,O,lt);!L&&ar&&(C[Bi].providerFactory=Or),j_(J,f,_.length,0),_.push(je),Ht.directiveStart++,Ht.directiveEnd++,L&&(Ht.providerIndexes+=1048576),C.push(Or),ye.push(Or)}else j_(J,f,Ei>-1?Ei:Bi,ky(C[L?Bi:Ei],lt,!L&&O));!L&&O&&ar&&C[Bi].componentProviders++}}}function j_(f,_,C,O){const L=au(_),J=function mg(f){return!!f.useClass}(_);if(L||J){const lt=(J?v(_.useClass):_).prototype.ngOnDestroy;if(lt){const Ht=f.destroyHooks||(f.destroyHooks=[]);if(!L&&_.multi){const fn=Ht.indexOf(C);-1===fn?Ht.push(C,[O,lt]):Ht[fn+1].push(O,lt)}else Ht.push(C,lt)}}}function ky(f,_,C){return C&&f.componentProviders++,f.multi.push(_)-1}function H_(f,_,C,O){for(let L=C;L<O;L++)if(_[L]===f)return L;return-1}function ad(f,_,C,O){return wp(this.multi,[])}function Bs(f,_,C,O){const L=this.multi;let J;if(this.providerFactory){const ye=this.providerFactory.componentProviders,je=Jo(C,C[Vn],this.providerFactory.index,O);J=je.slice(0,ye),wp(L,J);for(let lt=ye;lt<je.length;lt++)J.push(je[lt])}else J=[],wp(L,J);return J}function wp(f,_){for(let C=0;C<f.length;C++)_.push((0,f[C])());return _}function s1(f,_=[]){return C=>{C.providersResolver=(O,L)=>function Ry(f,_,C){const O=xr();if(O.firstCreatePass){const L=Lt(f);U_(C,O.data,O.blueprint,L,!0),U_(_,O.data,O.blueprint,L,!1)}}(O,L?L(f):f,_)}}class Fh{}class xm{}function Mm(f,_){return new Ny(f,_??null)}const l1=Mm;class Ny extends Fh{constructor(_,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new wb(this);const O=Wn(_);this._bootstrapComponents=ed(O.bootstrap),this._r3Injector=cu(_,C,[{provide:Fh,useValue:this},{provide:Xu,useValue:this.componentFactoryResolver}],d(_),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(_)}get injector(){return this._r3Injector}destroy(){const _=this._r3Injector;!_.destroyed&&_.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(_){this.destroyCbs.push(_)}}class V_ extends xm{constructor(_){super(),this.moduleType=_}create(_){return new Ny(this.moduleType,_)}}class Sm extends Fh{constructor(_,C,O){super(),this.componentFactoryResolver=new wb(this),this.instance=null;const L=new Gu([..._,{provide:Fh,useValue:this},{provide:Xu,useValue:this.componentFactoryResolver}],C||ph(),O,new Set(["environment"]));this.injector=L,L.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(_){this.injector.onDestroy(_)}}function W_(f,_,C=null){return new Sm(f,_,C).injector}let Op=(()=>{class f{constructor(C){this._injector=C,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(C){if(!C.standalone)return null;if(!this.cachedInjectors.has(C.id)){const O=pf(0,C.type),L=O.length>0?W_([O],this._injector,`Standalone[${C.type.name}]`):null;this.cachedInjectors.set(C.id,L)}return this.cachedInjectors.get(C.id)}ngOnDestroy(){try{for(const C of this.cachedInjectors.values())null!==C&&C.destroy()}finally{this.cachedInjectors.clear()}}}return f.\u0275prov=Ye({token:f,providedIn:"environment",factory:()=>new f(pt(Md))}),f})();function z_(f){f.getStandaloneInjector=_=>_.get(Op).getOrCreateStandaloneInjector(f)}function sd(f){const _=xa(f);if(null===_)return null;if(void 0===_.component){const C=_.lView;if(null===C)return null;_.component=function Yd(f,_){const C=_[Vn].data[f],{directiveStart:O,componentOffset:L}=C;return L>-1?_[O+L]:null}(_.nodeIndex,C)}return _.component}function c1(f){!function $_(f){if(typeof Element<"u"&&!(f instanceof Element))throw new Error("Expecting instance of DOM Element")}(f);const _=xa(f),C=_?_.lView:null;return null===C?null:C[fr]}function Fd(f){const _=xa(f);let O,C=_?_.lView:null;if(null===C)return null;for(;2===C[Vn].type&&(O=Ke(C));)C=O;return 256&C[Le]?null:C[fr]}function ac(f){const _=ha(f);return null!==_?[W(_)]:[]}function Tp(f){const _=xa(f),C=_?_.lView:null;return null===C?pl.NULL:new ss(C[Vn].data[_.nodeIndex],C)}function Y_(f){if(f instanceof Text)return[];const _=xa(f),C=_?_.lView:null;if(null===C)return[];const L=_.nodeIndex;return C[Vn]?.data[L]?(void 0===_.directives&&(_.directives=Dc(L,C)),null===_.directives?[]:[..._.directives]):[]}function d1(f){const{constructor:_}=f;if(!_)throw new Error("Unable to find the instance constructor");const C=rn(_);if(C)return{inputs:C.inputs,outputs:C.outputs,encapsulation:C.encapsulation,changeDetection:C.onPush?Yt.OnPush:Yt.Default};const O=$t(_);return O?{inputs:O.inputs,outputs:O.outputs}:null}function Pl(f){return xa(f).native}function Eu(f){const _=xa(f),C=null===_?null:_.lView;if(null===C)return[];const L=C[$i],J=C[Vn].cleanup,ye=[];if(J&&L)for(let je=0;je<J.length;){const lt=J[je++],Ht=J[je++];if("string"==typeof lt){const fn=lt,Hn=Ai(C[Ht]),di=L[J[je++]],Ei=J[je++];f==Hn&&ye.push({element:f,name:fn,callback:di,useCapture:"boolean"==typeof Ei&&Ei,type:"boolean"==typeof Ei||Ei>=0?"dom":"output"})}}return ye.sort(p1),ye}function p1(f,_){return f.name==_.name?0:f.name<_.name?-1:1}function G_(f){return void 0!==f.type&&void 0!==f.declaredInputs&&void 0!==f.findHostDirectiveDefs}function Fy(f,_,C,O){return ct(()=>{const L=f;null!==_&&(L.hasOwnProperty("decorators")&&void 0!==L.decorators?L.decorators.push(..._):L.decorators=_),null!==C&&(L.ctorParameters=C),null!==O&&(L.propDecorators=L.hasOwnProperty("propDecorators")&&void 0!==L.propDecorators?{...L.propDecorators,...O}:O)})}function By(f,_,C){const O=Po()+f,L=Oi();return L[O]===io?id(L,O,C?_.call(C):_()):Vf(L,O)}function h1(f,_,C,O){return f1(Oi(),Po(),f,_,C,O)}function Uy(f,_,C,O,L){return m1(Oi(),Po(),f,_,C,O,L)}function jy(f,_,C,O,L,J){return zy(Oi(),Po(),f,_,C,O,L,J)}function K_(f,_,C,O,L,J,ye){return g1(Oi(),Po(),f,_,C,O,L,J,ye)}function Q_(f,_,C,O,L,J,ye,je){const lt=Po()+f,Ht=Oi(),fn=Yo(Ht,lt,C,O,L,J);return Ns(Ht,lt+4,ye)||fn?id(Ht,lt+5,je?_.call(je,C,O,L,J,ye):_(C,O,L,J,ye)):Vf(Ht,lt+5)}function Hy(f,_,C,O,L,J,ye,je,lt){const Ht=Po()+f,fn=Oi(),Hn=Yo(fn,Ht,C,O,L,J);return Id(fn,Ht+4,ye,je)||Hn?id(fn,Ht+6,lt?_.call(lt,C,O,L,J,ye,je):_(C,O,L,J,ye,je)):Vf(fn,Ht+6)}function xc(f,_,C,O,L,J,ye,je,lt,Ht){const fn=Po()+f,Hn=Oi();let di=Yo(Hn,fn,C,O,L,J);return Wf(Hn,fn+4,ye,je,lt)||di?id(Hn,fn+7,Ht?_.call(Ht,C,O,L,J,ye,je,lt):_(C,O,L,J,ye,je,lt)):Vf(Hn,fn+7)}function Vy(f,_,C,O,L,J,ye,je,lt,Ht,fn){const Hn=Po()+f,di=Oi(),Ei=Yo(di,Hn,C,O,L,J);return Yo(di,Hn+4,ye,je,lt,Ht)||Ei?id(di,Hn+8,fn?_.call(fn,C,O,L,J,ye,je,lt,Ht):_(C,O,L,J,ye,je,lt,Ht)):Vf(di,Hn+8)}function Wy(f,_,C,O){return _1(Oi(),Po(),f,_,C,O)}function Bh(f,_){const C=f[_];return C===io?void 0:C}function f1(f,_,C,O,L,J){const ye=_+C;return Ns(f,ye,L)?id(f,ye+1,J?O.call(J,L):O(L)):Bh(f,ye+1)}function m1(f,_,C,O,L,J,ye){const je=_+C;return Id(f,je,L,J)?id(f,je+2,ye?O.call(ye,L,J):O(L,J)):Bh(f,je+2)}function zy(f,_,C,O,L,J,ye,je){const lt=_+C;return Wf(f,lt,L,J,ye)?id(f,lt+3,je?O.call(je,L,J,ye):O(L,J,ye)):Bh(f,lt+3)}function g1(f,_,C,O,L,J,ye,je,lt){const Ht=_+C;return Yo(f,Ht,L,J,ye,je)?id(f,Ht+4,lt?O.call(lt,L,J,ye,je):O(L,J,ye,je)):Bh(f,Ht+4)}function _1(f,_,C,O,L,J){let ye=_+C,je=!1;for(let lt=0;lt<L.length;lt++)Ns(f,ye++,L[lt])&&(je=!0);return je?id(f,ye,O.apply(J,L)):Bh(f,ye)}function Yy(f,_){const C=xr();let O;const L=f+vi;C.firstCreatePass?(O=function v1(f,_){if(_)for(let C=_.length-1;C>=0;C--){const O=_[C];if(f===O.name)return O}}(_,C.pipeRegistry),C.data[L]=O,O.onDestroy&&(C.destroyHooks??(C.destroyHooks=[])).push(L,O.onDestroy)):O=C.data[L];const J=O.factory||(O.factory=bn(O.type)),ye=vt(bh);try{const je=Wa(!1),lt=J();return Wa(je),Nb(C,Oi(),L,lt),lt}finally{vt(ye)}}function Gy(f,_,C){const O=f+vi,L=Oi(),J=Io(L,O);return Uh(L,O)?f1(L,Po(),_,J.transform,C,J):J.transform(C)}function b1(f,_,C,O){const L=f+vi,J=Oi(),ye=Io(J,L);return Uh(J,L)?m1(J,Po(),_,ye.transform,C,O,ye):ye.transform(C,O)}function $y(f,_,C,O,L){const J=f+vi,ye=Oi(),je=Io(ye,J);return Uh(ye,J)?zy(ye,Po(),_,je.transform,C,O,L,je):je.transform(C,O,L)}function Ky(f,_,C,O,L,J){const ye=f+vi,je=Oi(),lt=Io(je,ye);return Uh(je,ye)?g1(je,Po(),_,lt.transform,C,O,L,J,lt):lt.transform(C,O,L,J)}function X_(f,_,C){const O=f+vi,L=Oi(),J=Io(L,O);return Uh(L,O)?_1(L,Po(),_,J.transform,C,J):J.transform.apply(J,C)}function Uh(f,_){return f[Vn].data[_].pure}function Om(f){return _=>{setTimeout(f,void 0,_)}}const jc=class y1 extends e.x{constructor(_=!1){super(),this.__isAsync=_}emit(_){super.next(_)}subscribe(_,C,O){let L=_,J=C||(()=>null),ye=O;if(_&&"object"==typeof _){const lt=_;L=lt.next?.bind(lt),J=lt.error?.bind(lt),ye=lt.complete?.bind(lt)}this.__isAsync&&(J=Om(J),L&&(L=Om(L)),ye&&(ye=Om(ye)));const je=super.subscribe({next:L,error:J,complete:ye});return _ instanceof n.w0&&_.add(je),je}};function C1(){return this._results[Symbol.iterator]()}class Tm{get changes(){return this._changes||(this._changes=new jc)}constructor(_=!1){this._emitDistinctChangesOnly=_,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=Tm.prototype;C[Symbol.iterator]||(C[Symbol.iterator]=C1)}get(_){return this._results[_]}map(_){return this._results.map(_)}filter(_){return this._results.filter(_)}find(_){return this._results.find(_)}reduce(_,C){return this._results.reduce(_,C)}forEach(_){this._results.forEach(_)}some(_){return this._results.some(_)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(_,C){const O=this;O.dirty=!1;const L=gr(_);(this._changesDetected=!function mi(f,_,C){if(f.length!==_.length)return!1;for(let O=0;O<f.length;O++){let L=f[O],J=_[O];if(C&&(L=C(L),J=C(J)),J!==L)return!1}return!0}(O._results,L,C))&&(O._results=L,O.length=L.length,O.last=L[this.length-1],O.first=L[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Dp=(()=>{class f{}return f.__NG_ELEMENT_ID__=Xy,f})();const Qy=Dp,nM=class extends Qy{constructor(_,C,O){super(),this._declarationLView=_,this._declarationTContainer=C,this.elementRef=O}createEmbeddedView(_,C){const O=this._declarationTContainer.tView,L=Tf(this._declarationLView,O,_,16,null,O.declTNode,null,null,null,null,C||null);L[zn]=this._declarationLView[this._declarationTContainer.index];const ye=this._declarationLView[Fn];return null!==ye&&(L[Fn]=ye.createEmbeddedView(O)),hu(O,L,_),new fu(L)}};function Xy(){return Dm(Mo(),Oi())}function Dm(f,_){return 4&f.type?new nM(_,f,Sd(f,_)):null}let Z_=(()=>{class f{}return f.__NG_ELEMENT_ID__=E1,f})();function E1(){return Jy(Mo(),Oi())}const x1=Z_,Zy=class extends x1{constructor(_,C,O){super(),this._lContainer=_,this._hostTNode=C,this._hostLView=O}get element(){return Sd(this._hostTNode,this._hostLView)}get injector(){return new ss(this._hostTNode,this._hostLView)}get parentInjector(){const _=as(this._hostTNode,this._hostLView);if(ra(_)){const C=so(_,this._hostLView),O=mr(_);return new ss(C[Vn].data[O+8],C)}return new ss(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(_){const C=Xl(this._lContainer);return null!==C&&C[_]||null}get length(){return this._lContainer.length-pr}createEmbeddedView(_,C,O){let L,J;"number"==typeof O?L=O:null!=O&&(L=O.index,J=O.injector);const ye=_.createEmbeddedView(C||{},J);return this.insert(ye,L),ye}createComponent(_,C,O,L,J){const ye=_&&!Mi(_);let je;if(ye)je=C;else{const Hn=C||{};je=Hn.index,O=Hn.injector,L=Hn.projectableNodes,J=Hn.environmentInjector||Hn.ngModuleRef}const lt=ye?_:new Xa(rn(_)),Ht=O||this.parentInjector;if(!J&&null==lt.ngModule){const di=(ye?Ht:this.parentInjector).get(Md,null);di&&(J=di)}const fn=lt.create(Ht,L,void 0,J);return this.insert(fn.hostView,je),fn}insert(_,C){const O=_._lView,L=O[Vn];if(function Pa(f){return Br(f[Ft])}(O)){const fn=this.indexOf(_);if(-1!==fn)this.detach(fn);else{const Hn=O[Ft],di=new Zy(Hn,Hn[gi],Hn[Ft]);di.detach(di.indexOf(_))}}const J=this._adjustIndex(C),ye=this._lContainer;!function ks(f,_,C,O){const L=pr+O,J=C.length;O>0&&(C[L-1][dn]=_),O<J-pr?(_[dn]=C[L],He(C,pr+O,_)):(C.push(_),_[dn]=null),_[Ft]=C;const ye=_[zn];null!==ye&&C!==ye&&function il(f,_){const C=f[Er];_[nn]!==_[Ft][Ft][nn]&&(f[Hi]=!0),null===C?f[Er]=[_]:C.push(_)}(ye,_);const je=_[Fn];null!==je&&je.insertView(f),_[Le]|=64}(L,O,ye,J);const je=Ml(J,ye),lt=O[Kn],Ht=Hl(lt,ye[Vi]);return null!==Ht&&function ds(f,_,C,O,L,J){O[Ln]=L,O[gi]=_,Go(f,O,C,1,L,J)}(L,ye[gi],lt,O,Ht,je),_.attachToViewContainerRef(),He(Im(ye),J,_),_}move(_,C){return this.insert(_,C)}indexOf(_){const C=Xl(this._lContainer);return null!==C?C.indexOf(_):-1}remove(_){const C=this._adjustIndex(_,-1),O=hc(this._lContainer,C);O&&(fe(Im(this._lContainer),C),vd(O[Vn],O))}detach(_){const C=this._adjustIndex(_,-1),O=hc(this._lContainer,C);return O&&null!=fe(Im(this._lContainer),C)?new fu(O):null}_adjustIndex(_,C=0){return _??this.length+C}};function Xl(f){return f[kr]}function Im(f){return f[kr]||(f[kr]=[])}function Jy(f,_){let C;const O=_[f.index];if(Br(O))C=O;else{let L;if(8&f.type)L=Ai(O);else{const J=_[Kn];L=J.createComment("");const ye=tr(f,_);fc(J,Hl(J,ye),L,function ag(f,_){return f.nextSibling(_)}(J,ye),!1)}_[f.index]=C=bb(O,_,L,f),Lf(_,C)}return new Zy(C,f,_)}class jh{constructor(_){this.queryList=_,this.matches=null}clone(){return new jh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Hh{constructor(_=[]){this.queries=_}createEmbeddedView(_){const C=_.queries;if(null!==C){const O=null!==_.contentQueries?_.contentQueries[0]:C.length,L=[];for(let J=0;J<O;J++){const ye=C.getByIndex(J);L.push(this.queries[ye.indexInDeclarationView].clone())}return new Hh(L)}return null}insertView(_){this.dirtyQueriesWithMatches(_)}detachView(_){this.dirtyQueriesWithMatches(_)}dirtyQueriesWithMatches(_){for(let C=0;C<this.queries.length;C++)null!==o0(_,C).matches&&this.queries[C].setDirty()}}class qy{constructor(_,C,O=null){this.predicate=_,this.flags=C,this.read=O}}class J_{constructor(_=[]){this.queries=_}elementStart(_,C){for(let O=0;O<this.queries.length;O++)this.queries[O].elementStart(_,C)}elementEnd(_){for(let C=0;C<this.queries.length;C++)this.queries[C].elementEnd(_)}embeddedTView(_){let C=null;for(let O=0;O<this.length;O++){const L=null!==C?C.length:0,J=this.getByIndex(O).embeddedTView(_,L);J&&(J.indexInDeclarationView=O,null!==C?C.push(J):C=[J])}return null!==C?new J_(C):null}template(_,C){for(let O=0;O<this.queries.length;O++)this.queries[O].template(_,C)}getByIndex(_){return this.queries[_]}get length(){return this.queries.length}track(_){this.queries.push(_)}}class q_{constructor(_,C=-1){this.metadata=_,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=C}elementStart(_,C){this.isApplyingToNode(C)&&this.matchTNode(_,C)}elementEnd(_){this._declarationNodeIndex===_.index&&(this._appliesToNextNode=!1)}template(_,C){this.elementStart(_,C)}embeddedTView(_,C){return this.isApplyingToNode(_)?(this.crossesNgTemplate=!0,this.addMatch(-_.index,C),new q_(this.metadata)):null}isApplyingToNode(_){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const C=this._declarationNodeIndex;let O=_.parent;for(;null!==O&&8&O.type&&O.index!==C;)O=O.parent;return C===(null!==O?O.index:-1)}return this._appliesToNextNode}matchTNode(_,C){const O=this.metadata.predicate;if(Array.isArray(O))for(let L=0;L<O.length;L++){const J=O[L];this.matchTNodeWithReadOption(_,C,M1(C,J)),this.matchTNodeWithReadOption(_,C,js(C,_,J,!1,!1))}else O===Dp?4&C.type&&this.matchTNodeWithReadOption(_,C,-1):this.matchTNodeWithReadOption(_,C,js(C,_,O,!1,!1))}matchTNodeWithReadOption(_,C,O){if(null!==O){const L=this.metadata.read;if(null!==L)if(L===su||L===Z_||L===Dp&&4&C.type)this.addMatch(C.index,-2);else{const J=js(C,_,L,!1,!1);null!==J&&this.addMatch(C.index,J)}else this.addMatch(C.index,O)}}addMatch(_,C){null===this.matches?this.matches=[_,C]:this.matches.push(_,C)}}function M1(f,_){const C=f.localNames;if(null!==C)for(let O=0;O<C.length;O+=2)if(C[O]===_)return C[O+1];return null}function ev(f,_,C,O){return-1===C?function S1(f,_){return 11&f.type?Sd(f,_):4&f.type?Dm(f,_):null}(_,f):-2===C?function tv(f,_,C){return C===su?Sd(_,f):C===Dp?Dm(_,f):C===Z_?Jy(_,f):void 0}(f,_,O):Jo(f,f[Vn],C,_)}function e0(f,_,C,O){const L=_[Fn].queries[O];if(null===L.matches){const J=f.data,ye=C.matches,je=[];for(let lt=0;lt<ye.length;lt+=2){const Ht=ye[lt];je.push(Ht<0?null:ev(_,J[Ht],ye[lt+1],C.metadata.read))}L.matches=je}return L.matches}function nv(f,_,C,O){const L=f.queries.getByIndex(C),J=L.matches;if(null!==J){const ye=e0(f,_,L,C);for(let je=0;je<J.length;je+=2){const lt=J[je];if(lt>0)O.push(ye[je/2]);else{const Ht=J[je+1],fn=_[-lt];for(let Hn=pr;Hn<fn.length;Hn++){const di=fn[Hn];di[zn]===di[Ft]&&nv(di[Vn],di,Ht,O)}if(null!==fn[Er]){const Hn=fn[Er];for(let di=0;di<Hn.length;di++){const Ei=Hn[di];nv(Ei[Vn],Ei,Ht,O)}}}}}return O}function To(f){const _=Oi(),C=xr(),O=os();ya(O+1);const L=o0(C,O);if(f.dirty&&function aa(f){return 4==(4&f[Le])}(_)===(2==(2&L.metadata.flags))){if(null===L.matches)f.reset([]);else{const J=L.crossesNgTemplate?nv(C,_,O,[]):e0(C,_,L,O);f.reset(J,vf),f.notifyOnChanges()}return!0}return!1}function Pm(f,_,C){const O=xr();O.firstCreatePass&&(r0(O,new qy(f,_,C),-1),2==(2&_)&&(O.staticViewQueries=!0)),n0(O,Oi(),_)}function iv(f,_,C,O){const L=xr();if(L.firstCreatePass){const J=Mo();r0(L,new qy(_,C,O),J.index),function w1(f,_){const C=f.contentQueries||(f.contentQueries=[]);_!==(C.length?C[C.length-1]:-1)&&C.push(f.queries.length-1,_)}(L,f),2==(2&C)&&(L.staticContentQueries=!0)}n0(L,Oi(),C)}function t0(){return function Ip(f,_){return f[Fn].queries[_].queryList}(Oi(),os())}function n0(f,_,C){const O=new Tm(4==(4&C));fb(f,_,O,O.destroy),null===_[Fn]&&(_[Fn]=new Hh),_[Fn].queries.push(new jh(O))}function r0(f,_,C){null===f.queries&&(f.queries=new J_),f.queries.track(new q_(_,C))}function o0(f,_){return f.queries.getByIndex(_)}function a0(f,_){return Dm(f,_)}const ps=(()=>({\u0275\u0275attribute:Kg,\u0275\u0275attributeInterpolate1:Qg,\u0275\u0275attributeInterpolate2:Cs,\u0275\u0275attributeInterpolate3:dp,\u0275\u0275attributeInterpolate4:yh,\u0275\u0275attributeInterpolate5:Ch,\u0275\u0275attributeInterpolate6:up,\u0275\u0275attributeInterpolate7:pp,\u0275\u0275attributeInterpolate8:Eh,\u0275\u0275attributeInterpolateV:Xg,\u0275\u0275defineComponent:_i,\u0275\u0275defineDirective:Si,\u0275\u0275defineInjectable:Ye,\u0275\u0275defineInjector:Wt,\u0275\u0275defineNgModule:On,\u0275\u0275definePipe:un,\u0275\u0275directiveInject:bh,\u0275\u0275getInheritedFactory:Js,\u0275\u0275inject:pt,\u0275\u0275injectAttribute:tl,\u0275\u0275invalidFactory:pb,\u0275\u0275invalidFactoryDep:tn,\u0275\u0275templateRefExtractor:a0,\u0275\u0275resetView:Aa,\u0275\u0275HostDirectivesFeature:Ib,\u0275\u0275NgOnChangesFeature:ii,\u0275\u0275ProvidersFeature:s1,\u0275\u0275CopyDefinitionFeature:CE,\u0275\u0275InheritDefinitionFeature:Gg,\u0275\u0275StandaloneFeature:z_,\u0275\u0275nextContext:qf,\u0275\u0275namespaceHTML:Jr,\u0275\u0275namespaceMathML:mo,\u0275\u0275namespaceSVG:wr,\u0275\u0275enableBindings:rr,\u0275\u0275disableBindings:oo,\u0275\u0275elementStart:Yf,\u0275\u0275elementEnd:Gf,\u0275\u0275element:Zg,\u0275\u0275elementContainerStart:xh,\u0275\u0275elementContainerEnd:mp,\u0275\u0275elementContainer:$f,\u0275\u0275pureFunction0:By,\u0275\u0275pureFunction1:h1,\u0275\u0275pureFunction2:Uy,\u0275\u0275pureFunction3:jy,\u0275\u0275pureFunction4:K_,\u0275\u0275pureFunction5:Q_,\u0275\u0275pureFunction6:Hy,\u0275\u0275pureFunction7:xc,\u0275\u0275pureFunction8:Vy,\u0275\u0275pureFunctionV:Wy,\u0275\u0275getCurrentView:Kf,\u0275\u0275restoreView:zr,\u0275\u0275listener:Mh,\u0275\u0275projection:jb,\u0275\u0275syntheticHostProperty:M_,\u0275\u0275syntheticHostListener:Sh,\u0275\u0275pipeBind1:Gy,\u0275\u0275pipeBind2:b1,\u0275\u0275pipeBind3:$y,\u0275\u0275pipeBind4:Ky,\u0275\u0275pipeBindV:X_,\u0275\u0275projectionDef:Ub,\u0275\u0275hostProperty:x_,\u0275\u0275property:zf,\u0275\u0275propertyInterpolate:_p,\u0275\u0275propertyInterpolate1:vp,\u0275\u0275propertyInterpolate2:em,\u0275\u0275propertyInterpolate3:wh,\u0275\u0275propertyInterpolate4:Oh,\u0275\u0275propertyInterpolate5:Th,\u0275\u0275propertyInterpolate6:tm,\u0275\u0275propertyInterpolate7:Jg,\u0275\u0275propertyInterpolate8:nm,\u0275\u0275propertyInterpolateV:Ad,\u0275\u0275pipe:Yy,\u0275\u0275queryRefresh:To,\u0275\u0275viewQuery:Pm,\u0275\u0275loadQuery:t0,\u0275\u0275contentQuery:iv,\u0275\u0275reference:hp,\u0275\u0275classMap:am,\u0275\u0275classMapInterpolate1:h_,\u0275\u0275classMapInterpolate2:Cp,\u0275\u0275classMapInterpolate3:Xb,\u0275\u0275classMapInterpolate4:f_,\u0275\u0275classMapInterpolate5:Zb,\u0275\u0275classMapInterpolate6:Jb,\u0275\u0275classMapInterpolate7:m_,\u0275\u0275classMapInterpolate8:g_,\u0275\u0275classMapInterpolateV:__,\u0275\u0275styleMap:rc,\u0275\u0275styleMapInterpolate1:qb,\u0275\u0275styleMapInterpolate2:ey,\u0275\u0275styleMapInterpolate3:ty,\u0275\u0275styleMapInterpolate4:v_,\u0275\u0275styleMapInterpolate5:ny,\u0275\u0275styleMapInterpolate6:iy,\u0275\u0275styleMapInterpolate7:b_,\u0275\u0275styleMapInterpolate8:ry,\u0275\u0275styleMapInterpolateV:oy,\u0275\u0275styleProp:om,\u0275\u0275stylePropInterpolate1:y_,\u0275\u0275stylePropInterpolate2:fm,\u0275\u0275stylePropInterpolate3:C_,\u0275\u0275stylePropInterpolate4:mm,\u0275\u0275stylePropInterpolate5:Ep,\u0275\u0275stylePropInterpolate6:gm,\u0275\u0275stylePropInterpolate7:_u,\u0275\u0275stylePropInterpolate8:Ah,\u0275\u0275stylePropInterpolateV:E_,\u0275\u0275classProp:o_,\u0275\u0275advance:eb,\u0275\u0275template:kb,\u0275\u0275text:c_,\u0275\u0275textInterpolate:cm,\u0275\u0275textInterpolate1:Ph,\u0275\u0275textInterpolate2:dm,\u0275\u0275textInterpolate3:yp,\u0275\u0275textInterpolate4:d_,\u0275\u0275textInterpolate5:u_,\u0275\u0275textInterpolate6:p_,\u0275\u0275textInterpolate7:um,\u0275\u0275textInterpolate8:pm,\u0275\u0275textInterpolateV:hm,\u0275\u0275i18n:Ay,\u0275\u0275i18nAttributes:N_,\u0275\u0275i18nExp:F_,\u0275\u0275i18nStart:k_,\u0275\u0275i18nEnd:Nd,\u0275\u0275i18nApply:B_,\u0275\u0275i18nPostprocess:Ly,\u0275\u0275resolveWindow:Yv,\u0275\u0275resolveDocument:Zu,\u0275\u0275resolveBody:gc,\u0275\u0275setComponentScope:Ni,\u0275\u0275setNgModuleScope:Qn,\u0275\u0275registerNgModuleType:Gc,\u0275\u0275sanitizeHtml:lh,\u0275\u0275sanitizeStyle:ch,\u0275\u0275sanitizeResourceUrl:xd,\u0275\u0275sanitizeScript:ju,\u0275\u0275sanitizeUrl:ou,\u0275\u0275sanitizeUrlOrResourceUrl:zl,\u0275\u0275trustConstantHtml:Hu,\u0275\u0275trustConstantResourceUrl:dh,\u0275\u0275validateIframeAttribute:Nu,forwardRef:g,resolveForwardRef:v}))();let Pp=null;function ov(){Pp=null}function av(f){return!!Wn(f)}const Vh=[];let sv=!1;function d0(){if(!sv){sv=!0;try{for(let f=Vh.length-1;f>=0;f--){const{moduleType:_,ngModule:C}=Vh[f];C.declarations&&C.declarations.every(Ap)&&(Vh.splice(f,1),rM(_,C))}}finally{sv=!1}}}function Ap(f){return Array.isArray(f)?f.every(Ap):!!v(f)}function u0(f,_={}){p0(f,_),void 0!==_.id&&Gc(f,_.id),function c0(f,_){Vh.push({moduleType:f,ngModule:_})}(f,_)}function p0(f,_,C=!1){const O=gr(_.declarations||gt);let L=null;Object.defineProperty(f,De,{configurable:!0,get:()=>(null===L&&(L=nr().compileNgModule(ps,`ng:///${f.name}/\u0275mod.js`,{type:f,bootstrap:gr(_.bootstrap||gt).map(v),declarations:O.map(v),imports:gr(_.imports||gt).map(v).map(T1),exports:gr(_.exports||gt).map(v).map(T1),schemas:_.schemas?gr(_.schemas):null,id:_.id||null}),L.schemas||(L.schemas=[])),L)});let J=null;Object.defineProperty(f,Ot,{get:()=>{if(null===J){const je=nr();J=je.compileFactory(ps,`ng:///${f.name}/\u0275fac.js`,{name:f.name,type:f,deps:Ls(f),target:je.FactoryTarget.NgModule,typeArgumentCount:0})}return J},configurable:!1});let ye=null;Object.defineProperty(f,Ce,{get:()=>{if(null===ye){const je={name:f.name,type:f,providers:_.providers||gt,imports:[(_.imports||gt).map(v),(_.exports||gt).map(v)]};ye=nr().compileInjector(ps,`ng:///${f.name}/\u0275inj.js`,je)}return ye},configurable:!1})}let Wh=new WeakMap,cv=new WeakMap;function dv(){Wh=new WeakMap,cv=new WeakMap,Vh.length=0}function rM(f,_){const C=gr(_.declarations||gt),O=ld(f);C.forEach(L=>{(L=v(L)).hasOwnProperty(ue)?Lm(rn(L),O):!L.hasOwnProperty(Ge)&&!L.hasOwnProperty(ee)&&(L.ngSelectorScope=f)})}function Lm(f,_){f.directiveDefs=()=>Array.from(_.compilation.directives).map(C=>C.hasOwnProperty(ue)?rn(C):$t(C)).filter(C=>!!C),f.pipeDefs=()=>Array.from(_.compilation.pipes).map(C=>Nt(C)),f.schemas=_.schemas,f.tView=null}function ld(f){if(av(f))return function oM(f){const _=Wn(f,!0);if(null!==_.transitiveCompileScopes)return _.transitiveCompileScopes;const C={schemas:_.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return ed(_.imports).forEach(O=>{const L=ld(O);L.exported.directives.forEach(J=>C.compilation.directives.add(J)),L.exported.pipes.forEach(J=>C.compilation.pipes.add(J))}),ed(_.declarations).forEach(O=>{Nt(O)?C.compilation.pipes.add(O):C.compilation.directives.add(O)}),ed(_.exports).forEach(O=>{const L=O;if(av(L)){const J=ld(L);J.exported.directives.forEach(ye=>{C.compilation.directives.add(ye),C.exported.directives.add(ye)}),J.exported.pipes.forEach(ye=>{C.compilation.pipes.add(ye),C.exported.pipes.add(ye)})}else Nt(L)?C.exported.pipes.add(L):C.exported.directives.add(L)}),_.transitiveCompileScopes=C,C}(f);if(Rn(f)){if(null!==(rn(f)||$t(f)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([f]),pipes:new Set}};if(null!==Nt(f))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([f])}}}throw new Error(`${f.name} does not have a module def (\u0275mod property)`)}function T1(f){return function l0(f){return void 0!==f.ngModule}(f)?f.ngModule:f}let m0=0;function zh(f,_){let C=null;(function dl(f,_){zc(_)&&(ua.set(f,_),Bl.add(f))})(f,_),b0(f,_),Object.defineProperty(f,ue,{get:()=>{if(null===C){const O=nr();if(zc(_)){const Ht=[`Component '${f.name}' is not resolved:`];throw _.templateUrl&&Ht.push(` - templateUrl: ${_.templateUrl}`),_.styleUrls&&_.styleUrls.length&&Ht.push(` - styleUrls: ${JSON.stringify(_.styleUrls)}`),Ht.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(Ht.join("\n"))}const L=function rv(){return Pp}();let J=_.preserveWhitespaces;void 0===J&&(J=null!==L&&void 0!==L.preserveWhitespaces&&L.preserveWhitespaces);let ye=_.encapsulation;void 0===ye&&(ye=null!==L&&void 0!==L.defaultEncapsulation?L.defaultEncapsulation:it.Emulated);const je=_.templateUrl||`ng:///${f.name}/template.html`,lt={...y0(f,_),typeSourceSpan:O.createParseSourceSpan("Component",f.name,je),template:_.template||"",preserveWhitespaces:J,styles:_.styles||gt,animations:_.animations,declarations:[],changeDetection:_.changeDetection,encapsulation:ye,interpolation:_.interpolation,viewProviders:_.viewProviders||null};m0++;try{if(lt.usesInheritance&&C0(f),C=O.compileComponent(ps,je,lt),_.standalone){const Ht=gr(_.imports||gt),{directiveDefs:fn,pipeDefs:Hn}=function _0(f,_){let C=null,O=null;return{directiveDefs:()=>{if(null===C){C=[rn(f)];const ye=new Set;for(const je of _){const lt=v(je);if(!ye.has(lt))if(ye.add(lt),Wn(lt)){const Ht=ld(lt);for(const fn of Ht.exported.directives){const Hn=rn(fn)||$t(fn);Hn&&!ye.has(fn)&&(ye.add(fn),C.push(Hn))}}else{const Ht=rn(lt)||$t(lt);Ht&&C.push(Ht)}}}return C},pipeDefs:()=>{if(null===O){O=[];const ye=new Set;for(const je of _){const lt=v(je);if(!ye.has(lt))if(ye.add(lt),Wn(lt)){const Ht=ld(lt);for(const fn of Ht.exported.pipes){const Hn=Nt(fn);Hn&&!ye.has(fn)&&(ye.add(fn),O.push(Hn))}}else{const Ht=Nt(lt);Ht&&O.push(Ht)}}}return O}}}(f,Ht);C.directiveDefs=fn,C.pipeDefs=Hn,C.dependencies=()=>Ht.map(v)}}finally{m0--}if(0===m0&&d0(),function D1(f){return void 0!==f.ngSelectorScope}(f)){const Ht=ld(f.ngSelectorScope);Lm(C,Ht)}if(_.schemas){if(!_.standalone)throw new Error(`The 'schemas' was specified for the ${B(f)} but is only valid on a component that is standalone.`);C.schemas=_.schemas}else _.standalone&&(C.schemas=[])}return C},configurable:!1})}function uv(f,_){let C=null;b0(f,_||{}),Object.defineProperty(f,Ge,{get:()=>{if(null===C){const O=v0(f,_||{});C=nr().compileDirective(ps,O.sourceMapUrl,O.metadata)}return C},configurable:!1})}function v0(f,_){const C=f&&f.name,O=`ng:///${C}/\u0275dir.js`,L=nr(),J=y0(f,_);return J.typeSourceSpan=L.createParseSourceSpan("Directive",C,O),J.usesInheritance&&C0(f),{metadata:J,sourceMapUrl:O}}function b0(f,_){let C=null;Object.defineProperty(f,Ot,{get:()=>{if(null===C){const O=v0(f,_),L=nr();C=L.compileFactory(ps,`ng:///${f.name}/\u0275fac.js`,{name:O.metadata.name,type:O.metadata.type,typeArgumentCount:0,deps:Ls(f),target:L.FactoryTarget.Directive})}return C},configurable:!1})}function I1(f){return Object.getPrototypeOf(f.prototype)===Object.prototype}function y0(f,_){const C=dc(),O=C.ownPropMetadata(f);return{name:f.name,type:f,selector:void 0!==_.selector?_.selector:null,host:_.host||Be,propMetadata:O,inputs:_.inputs||gt,outputs:_.outputs||gt,queries:A1(f,O,M0),lifecycle:{usesOnChanges:C.hasLifecycleHook(f,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!I1(f),exportAs:x0(_.exportAs),providers:_.providers||null,viewQueries:A1(f,O,S0),isStandalone:!!_.standalone,hostDirectives:_.hostDirectives?.map(L=>"function"==typeof L?{directive:L}:L)||null}}function C0(f){const _=Object.prototype;let C=Object.getPrototypeOf(f.prototype).constructor;for(;C&&C!==_;)!$t(C)&&!rn(C)&&D0(C)&&uv(C,null),C=Object.getPrototypeOf(C)}function P1(f){return"string"==typeof f?O0(f):v(f)}function E0(f,_){return{propertyName:f,predicate:P1(_.selector),descendants:_.descendants,first:_.first,read:_.read?_.read:null,static:!!_.static,emitDistinctChangesOnly:!!_.emitDistinctChangesOnly}}function A1(f,_,C){const O=[];for(const L in _)if(_.hasOwnProperty(L)){const J=_[L];J.forEach(ye=>{if(C(ye)){if(!ye.selector)throw new Error(`Can't construct a query for the property "${L}" of "${B(f)}" since the query selector wasn't defined.`);if(J.some(w0))throw new Error("Cannot combine @Input decorators with query decorators");O.push(E0(L,ye))}})}return O}function x0(f){return void 0===f?null:O0(f)}function M0(f){const _=f.ngMetadataName;return"ContentChild"===_||"ContentChildren"===_}function S0(f){const _=f.ngMetadataName;return"ViewChild"===_||"ViewChildren"===_}function w0(f){return"Input"===f.ngMetadataName}function O0(f){return f.split(",").map(_=>_.trim())}const T0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function D0(f){const _=dc();if(T0.some(O=>_.hasLifecycleHook(f,O)))return!0;const C=_.propMetadata(f);for(const O in C){const L=C[O];for(let J=0;J<L.length;J++){const ye=L[J],je=ye.ngMetadataName;if(w0(ye)||M0(ye)||S0(ye)||"Output"===je||"HostBinding"===je||"HostListener"===je)return!0}}return!1}function pv(f,_){let C=null,O=null;Object.defineProperty(f,Ot,{get:()=>{if(null===O){const L=hv(f,_),J=nr();O=J.compileFactory(ps,`ng:///${L.name}/\u0275fac.js`,{name:L.name,type:L.type,typeArgumentCount:0,deps:Ls(f),target:J.FactoryTarget.Pipe})}return O},configurable:!1}),Object.defineProperty(f,ee,{get:()=>{if(null===C){const L=hv(f,_);C=nr().compilePipe(ps,`ng:///${L.name}/\u0275pipe.js`,L)}return C},configurable:!1})}function hv(f,_){return{type:f,name:f.name,pipeName:_.name,pure:void 0===_.pure||_.pure,isStandalone:!!_.standalone}}const Yh=Ds("Directive",(f={})=>f,void 0,void 0,(f,_)=>uv(f,_)),L1=Ds("Component",(f={})=>({changeDetection:Yt.Default,...f}),Yh,void 0,(f,_)=>zh(f,_)),R1=Ds("Pipe",f=>({pure:!0,...f}),void 0,void 0,(f,_)=>pv(f,_)),Rm=bs("Input",f=>({bindingPropertyName:f})),k1=bs("Output",f=>({bindingPropertyName:f})),N1=bs("HostBinding",f=>({hostPropertyName:f})),I0=bs("HostListener",(f,_)=>({eventName:f,args:_})),aM=Ds("NgModule",f=>f,void 0,void 0,(f,_)=>u0(f,_));function Gh(...f){}const P0=new Fo("Application Initializer");let km=(()=>{class f{constructor(C){this.appInits=C,this.resolve=Gh,this.reject=Gh,this.initialized=!1,this.done=!1,this.donePromise=new Promise((O,L)=>{this.resolve=O,this.reject=L})}runInitializers(){if(this.initialized)return;const C=[],O=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let L=0;L<this.appInits.length;L++){const J=this.appInits[L]();if(Qf(J))C.push(J);else if(Bb(J)){const ye=new Promise((je,lt)=>{J.subscribe({complete:je,error:lt})});C.push(ye)}}Promise.all(C).then(()=>{O()}).catch(L=>{this.reject(L)}),0===C.length&&O(),this.initialized=!0}}return f.\u0275fac=function(C){return new(C||f)(pt(P0,8))},f.\u0275prov=Ye({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const A0=new Fo("AppId",{providedIn:"root",factory:L0});function L0(){return`${Nm()}${Nm()}${Nm()}`}const F1={provide:A0,useFactory:L0,deps:[]};function Nm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const fv=new Fo("Platform Initializer"),R0=new Fo("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),k0=new Fo("Application Packages Root URL"),lM=new Fo("AnimationModuleType");let N0=(()=>{class f{log(C){console.log(C)}warn(C){console.warn(C)}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275prov=Ye({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();const $h=new Fo("LocaleId",{providedIn:"root",factory:()=>ot($h,Mt.Optional|Mt.SkipSelf)||function B1(){return typeof $localize<"u"&&$localize.locale||bu}()}),mv=new Fo("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),F0=new Fo("Translations"),B0=new Fo("TranslationsFormat");var Hc=(()=>((Hc=Hc||{})[Hc.Error=0]="Error",Hc[Hc.Warning=1]="Warning",Hc[Hc.Ignore=2]="Ignore",Hc))();class U0{constructor(_,C){this.ngModuleFactory=_,this.componentFactories=C}}let U1=(()=>{class f{compileModuleSync(C){return new V_(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const O=this.compileModuleSync(C),J=ed(Wn(C).declarations).reduce((ye,je)=>{const lt=rn(je);return lt&&ye.push(new Xa(lt)),ye},[]);return new U0(O,J)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275prov=Ye({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const gv=new Fo("compilerOptions");class cM{}function j0(f){Rf(eo(f)),ac(f).forEach(_=>Lb(_))}const H0="ng";let V0=!1;function W0(){V0||(V0=!0,Mc("\u0275setProfiler",Un),Mc("getDirectiveMetadata",d1),Mc("getComponent",sd),Mc("getContext",c1),Mc("getListeners",Eu),Mc("getOwningComponent",Fd),Mc("getHostElement",Pl),Mc("getInjector",Tp),Mc("getRootComponents",ac),Mc("getDirectives",Y_),Mc("applyChanges",j0))}function Mc(f,_){if((typeof COMPILED>"u"||!COMPILED)&&bt){let O=bt[H0];O||(O=bt[H0]={}),O[f]=_}}const z0=(()=>Promise.resolve(0))();function _v(f){typeof Zone>"u"?z0.then(()=>{f&&f.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",f)}class sc{constructor({enableLongStackTrace:_=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:O=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jc(!1),this.onMicrotaskEmpty=new jc(!1),this.onStable=new jc(!1),this.onError=new jc(!1),typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();const L=this;L._nesting=0,L._outer=L._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(L._inner=L._inner.fork(new Zone.TaskTrackingZoneSpec)),_&&Zone.longStackTraceZoneSpec&&(L._inner=L._inner.fork(Zone.longStackTraceZoneSpec)),L.shouldCoalesceEventChangeDetection=!O&&C,L.shouldCoalesceRunChangeDetection=O,L.lastRequestAnimationFrameId=-1,L.nativeRequestAnimationFrame=function Y0(){let f=bt.requestAnimationFrame,_=bt.cancelAnimationFrame;if(typeof Zone<"u"&&f&&_){const C=f[Zone.__symbol__("OriginalDelegate")];C&&(f=C);const O=_[Zone.__symbol__("OriginalDelegate")];O&&(_=O)}return{nativeRequestAnimationFrame:f,nativeCancelAnimationFrame:_}}().nativeRequestAnimationFrame,function V1(f){const _=()=>{!function H1(f){f.isCheckStableRunning||-1!==f.lastRequestAnimationFrameId||(f.lastRequestAnimationFrameId=f.nativeRequestAnimationFrame.call(bt,()=>{f.fakeTopEventTask||(f.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{f.lastRequestAnimationFrameId=-1,vv(f),f.isCheckStableRunning=!0,Bd(f),f.isCheckStableRunning=!1},void 0,()=>{},()=>{})),f.fakeTopEventTask.invoke()}),vv(f))}(f)};f._inner=f._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,O,L,J,ye,je)=>{try{return G0(f),C.invokeTask(L,J,ye,je)}finally{(f.shouldCoalesceEventChangeDetection&&"eventTask"===J.type||f.shouldCoalesceRunChangeDetection)&&_(),$0(f)}},onInvoke:(C,O,L,J,ye,je,lt)=>{try{return G0(f),C.invoke(L,J,ye,je,lt)}finally{f.shouldCoalesceRunChangeDetection&&_(),$0(f)}},onHasTask:(C,O,L,J)=>{C.hasTask(L,J),O===L&&("microTask"==J.change?(f._hasPendingMicrotasks=J.microTask,vv(f),Bd(f)):"macroTask"==J.change&&(f.hasPendingMacrotasks=J.macroTask))},onHandleError:(C,O,L,J)=>(C.handleError(L,J),f.runOutsideAngular(()=>f.onError.emit(J)),!1)})}(L)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!sc.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(sc.isInAngularZone())throw new D(909,!1)}run(_,C,O){return this._inner.run(_,C,O)}runTask(_,C,O,L){const J=this._inner,ye=J.scheduleEventTask("NgZoneEvent: "+L,_,j1,Gh,Gh);try{return J.runTask(ye,C,O)}finally{J.cancelTask(ye)}}runGuarded(_,C,O){return this._inner.runGuarded(_,C,O)}runOutsideAngular(_){return this._outer.run(_)}}const j1={};function Bd(f){if(0==f._nesting&&!f.hasPendingMicrotasks&&!f.isStable)try{f._nesting++,f.onMicrotaskEmpty.emit(null)}finally{if(f._nesting--,!f.hasPendingMicrotasks)try{f.runOutsideAngular(()=>f.onStable.emit(null))}finally{f.isStable=!0}}}function vv(f){f.hasPendingMicrotasks=!!(f._hasPendingMicrotasks||(f.shouldCoalesceEventChangeDetection||f.shouldCoalesceRunChangeDetection)&&-1!==f.lastRequestAnimationFrameId)}function G0(f){f._nesting++,f.isStable&&(f.isStable=!1,f.onUnstable.emit(null))}function $0(f){f._nesting--,Bd(f)}class Lp{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jc,this.onMicrotaskEmpty=new jc,this.onStable=new jc,this.onError=new jc}run(_,C,O){return _.apply(C,O)}runGuarded(_,C,O){return _.apply(C,O)}runOutsideAngular(_){return _()}runTask(_,C,O,L){return _.apply(C,O)}}const K0=new Fo(""),Q0=new Fo("");let bv,uM=(()=>{class f{constructor(C,O,L){this._ngZone=C,this.registry=O,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,bv||(Z0(L),L.addToWindow(O)),this._watchAngularEvents(),C.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:()=>{sc.assertNotInAngularZone(),_v(()=>{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())_v(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(O=>!O.updateCb||!O.updateCb(C)||(clearTimeout(O.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,O,L){let J=-1;O&&O>0&&(J=setTimeout(()=>{this._callbacks=this._callbacks.filter(ye=>ye.timeoutId!==J),C(this._didWork,this.getPendingTasks())},O)),this._callbacks.push({doneCb:C,timeoutId:J,updateCb:L})}whenStable(C,O,L){if(L&&!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(C,O,L),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,O,L){return[]}}return f.\u0275fac=function(C){return new(C||f)(pt(sc),pt(X0),pt(Q0))},f.\u0275prov=Ye({token:f,factory:f.\u0275fac}),f})(),X0=(()=>{class f{constructor(){this._applications=new Map}registerApplication(C,O){this._applications.set(C,O)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,O=!0){return bv?.findTestabilityInTree(this,C,O)??null}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275prov=Ye({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();function Z0(f){bv=f}const Ud=!1;let jd=null;const yv=new Fo("AllowMultipleToken"),J0=new Fo("PlatformDestroyListeners"),q0=new Fo("appBootstrapListener");function eC(f,_,C){const O=new V_(C);return Promise.resolve(O)}function W1(f){return f.isBoundToModule}class z1{constructor(_,C){this.name=_,this.token=C}}function Y1(f){if(jd&&!jd.get(yv,!1))throw new D(400,!1);jd=f;const _=f.get(Ev);return tC(f),_}function tC(f){const _=f.get(fv,null);_&&_.forEach(C=>C())}function G1(f){const{rootComponent:_,appProviders:C,platformProviders:O}=f;Ud&&void 0!==_&&function Gv(f){if(function wg(f){if(!rn(f))throw new D(906,`The ${B(f)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}(f),!rn(f).standalone)throw new D(907,`The ${B(f)} component is not marked as standalone, but Angular expects to have a standalone component here. Please make sure the ${B(f)} component has the \`standalone: true\` flag in the decorator.`)}(_);const L=function pM(f=[]){if(jd)return jd;const _=iC(f);return jd=_,tC(_),_}(O),J=oC("zone.js",rC());return J.run(()=>{const je=W_([{provide:sc,useValue:J},...C||[]],L,"Environment Injector"),lt=je.get(mh,null);if(Ud&&!lt)throw new D(402,"No `ErrorHandler` found in the Dependency Injection tree.");let Ht;J.runOutsideAngular(()=>{Ht=J.onError.subscribe({next:di=>{lt.handleError(di)}})});const fn=()=>je.destroy(),Hn=L.get(J0);return Hn.add(fn),je.onDestroy(()=>{Ht.unsubscribe(),Hn.delete(fn)}),xv(lt,J,()=>{const di=je.get(km);return di.runInitializers(),di.donePromise.then(()=>{T_(je.get($h,bu)||bu);const Bi=je.get(Hd);return void 0!==_&&Bi.bootstrap(_),Bi})})})}function Cv(f,_,C=[]){const O=`Platform: ${_}`,L=new Fo(O);return(J=[])=>{let ye=Fm();if(!ye||ye.injector.get(yv,!1)){const je=[...C,...J,{provide:L,useValue:!0}];f?f(je):Y1(iC(je,O))}return nC()}}function nC(f){const _=Fm();if(!_)throw new D(401,!1);return _}function iC(f=[],_){return pl.create({name:_,providers:[{provide:zu,useValue:"platform"},{provide:J0,useValue:new Set([()=>jd=null])},...f]})}function $1(){Fm()?.destroy()}function Fm(){return jd?.get(Ev)??null}let Ev=(()=>{class f{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,O){const L=oC(O?.ngZone,rC(O)),J=[{provide:sc,useValue:L}];return L.run(()=>{const ye=pl.create({providers:J,parent:this.injector,name:C.moduleType.name}),je=C.create(ye),lt=je.injector.get(mh,null);if(!lt)throw new D(402,!1);return L.runOutsideAngular(()=>{const Ht=L.onError.subscribe({next:fn=>{lt.handleError(fn)}});je.onDestroy(()=>{Bm(this._modules,je),Ht.unsubscribe()})}),xv(lt,L,()=>{const Ht=je.injector.get(km);return Ht.runInitializers(),Ht.donePromise.then(()=>(T_(je.injector.get($h,bu)||bu),this._moduleDoBootstrap(je),je))})})}bootstrapModule(C,O=[]){const L=Mv({},O);return eC(0,0,C).then(J=>this.bootstrapModuleFactory(J,L))}_moduleDoBootstrap(C){const O=C.injector.get(Hd);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(L=>O.bootstrap(L));else{if(!C.instance.ngDoBootstrap)throw new D(-403,!1);C.instance.ngDoBootstrap(O)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(O=>O.destroy()),this._destroyListeners.forEach(O=>O());const C=this._injector.get(J0,null);C&&(C.forEach(O=>O()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return f.\u0275fac=function(C){return new(C||f)(pt(pl))},f.\u0275prov=Ye({token:f,factory:f.\u0275fac,providedIn:"platform"}),f})();function rC(f){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!f||!f.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!f||!f.ngZoneRunCoalescing)||!1}}function oC(f,_){let C;return C="noop"===f?new Lp:("zone.js"===f?void 0:f)||new sc(_),C}function xv(f,_,C){try{const O=C();return Qf(O)?O.catch(L=>{throw _.runOutsideAngular(()=>f.handleError(L)),L}):O}catch(O){throw _.runOutsideAngular(()=>f.handleError(O)),O}}function Mv(f,_){return Array.isArray(_)?_.reduce(Mv,f):{...f,..._}}let Hd=(()=>{class f{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(C,O,L){this._zone=C,this._injector=O,this._exceptionHandler=L,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const J=new a.y(je=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{je.next(this._stable),je.complete()})}),ye=new a.y(je=>{let lt;this._zone.runOutsideAngular(()=>{lt=this._zone.onStable.subscribe(()=>{sc.assertNotInAngularZone(),_v(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,je.next(!0))})})});const Ht=this._zone.onUnstable.subscribe(()=>{sc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{je.next(!1)}))});return()=>{lt.unsubscribe(),Ht.unsubscribe()}});this.isStable=(0,t.T)(J,ye.pipe((0,l.B)()))}bootstrap(C,O){Ud&&this.warnIfDestroyed();const L=C instanceof Qu;if(!this._injector.get(km).done){const Ei="Cannot bootstrap as there are still asynchronous initializers running."+(!L&&Rn(C)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new D(405,Ud&&Ei)}let ye;ye=L?C:this._injector.get(Xu).resolveComponentFactory(C),this.componentTypes.push(ye.componentType);const je=W1(ye)?void 0:this._injector.get(Fh),Ht=ye.create(pl.NULL,[],O||ye.selector,je),fn=Ht.location.nativeElement,Hn=Ht.injector.get(K0,null);return Hn?.registerApplication(fn),Ht.onDestroy(()=>{this.detachView(Ht.hostView),Bm(this.components,Ht),Hn?.unregisterApplication(fn)}),this._loadComponent(Ht),Ht}tick(){if(Ud&&this.warnIfDestroyed(),this._runningTick)throw new D(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){Ud&&this.warnIfDestroyed();const O=C;this._views.push(O),O.attachToAppRef(this)}detachView(C){Ud&&this.warnIfDestroyed();const O=C;Bm(this._views,O),O.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C);const O=this._injector.get(q0,[]);O.push(...this._bootstrapListeners),O.forEach(L=>L(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return Ud&&this.warnIfDestroyed(),this._destroyListeners.push(C),()=>Bm(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new D(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){Ud&&this._destroyed&&console.warn(A(406,"This instance of the `ApplicationRef` has already been destroyed."))}}return f.\u0275fac=function(C){return new(C||f)(pt(sc),pt(Md),pt(mh))},f.\u0275prov=Ye({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function Bm(f,_){const C=f.indexOf(_);C>-1&&f.splice(C,1)}function Q1(){return!1}function X1(){}function Z1(f){const _=hd(f);if(!_)throw sC(f);return new V_(_)}function J1(f){const _=hd(f);if(!_)throw sC(f);return _}function sC(f){return new Error(`No module with ID ${f} loaded`)}let lC=(()=>{class f{}return f.__NG_ELEMENT_ID__=q1,f})();function q1(f){return function hM(f,_,C){if(Bn(f)&&!C){const O=wo(f.index,_);return new fu(O,O)}return 47&f.type?new fu(_[nn],_):null}(Mo(),Oi(),16==(16&f))}class ex extends lC{}class tx extends ex{}class cC{constructor(_,C){this.name=_,this.callback=C}}function dC(f){return f.map(_=>_.nativeElement)}class Sv{constructor(_){this.nativeNode=_}get parent(){const _=this.nativeNode.parentNode;return _?new Um(_):null}get injector(){return Tp(this.nativeNode)}get componentInstance(){const _=this.nativeNode;return _&&(sd(_)||Fd(_))}get context(){return sd(this.nativeNode)||c1(this.nativeNode)}get listeners(){return Eu(this.nativeNode).filter(_=>"dom"===_.type)}get references(){return function ga(f){const _=xa(f);if(null===_)return{};if(void 0===_.localRefs){const C=_.lView;if(null===C)return{};_.localRefs=function Gd(f,_){const C=f[Vn].data[_];if(C&&C.localNames){const O={};let L=C.index+1;for(let J=0;J<C.localNames.length;J+=2)O[C.localNames[J]]=f[L],L++;return O}return null}(C,_.nodeIndex)}return _.localRefs||{}}(this.nativeNode)}get providerTokens(){return function wm(f){const _=xa(f),C=_?_.lView:null;if(null===C)return[];const O=C[Vn],L=O.data[_.nodeIndex],J=[],je=L.directiveEnd;for(let lt=1048575&L.providerIndexes;lt<je;lt++){let Ht=O.data[lt];G_(Ht)&&(Ht=Ht.type),J.push(Ht)}return J}(this.nativeNode)}}class Um extends Sv{constructor(_){super(_)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const _=xa(this.nativeNode),C=_?_.lView:null;return null!==C?C[Vn].data[_.nodeIndex].value:this.nativeNode.nodeName}get properties(){const _=xa(this.nativeNode),C=_?_.lView:null;if(null===C)return{};const O=C[Vn].data,L=O[_.nodeIndex],J={};return function fM(f,_){if(f){let C=Object.getPrototypeOf(f);const O=Node.prototype;for(;null!==C&&C!==O;){const L=Object.getOwnPropertyDescriptors(C);for(let J in L)if(!J.startsWith("__")&&!J.startsWith("on")){const ye=f[J];nx(ye)&&(_[J]=ye)}C=Object.getPrototypeOf(C)}}}(this.nativeElement,J),function rx(f,_,C,O){let L=_.propertyBindings;if(null!==L)for(let J=0;J<L.length;J++){const ye=L[J],lt=O[ye].split("\ufffd"),Ht=lt[0];if(lt.length>1){let fn=lt[1];for(let Hn=1;Hn<lt.length-1;Hn++)fn+=P(C[ye+Hn-1])+lt[Hn+1];f[Ht]=fn}else f[Ht]=C[ye]}}(J,L,C,O),J}get attributes(){const _={},C=this.nativeElement;if(!C)return _;const O=xa(C),L=O?O.lView:null;if(null===L)return{};const J=L[Vn].data[O.nodeIndex].attrs,ye=[];if(J){let je=0;for(;je<J.length;){const lt=J[je];if("string"!=typeof lt)break;_[lt]=J[je+1],ye.push(lt.toLowerCase()),je+=2}}for(const je of C.attributes)ye.includes(je.name)||(_[je.name]=je.value);return _}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const _={},O=this.nativeElement.className;return("string"!=typeof O?O.baseVal.split(" "):O.split(" ")).forEach(J=>_[J]=!0),_}get childNodes(){const _=this.nativeNode.childNodes,C=[];for(let O=0;O<_.length;O++)C.push(Rp(_[O]));return C}get children(){const _=this.nativeElement;if(!_)return[];const C=_.children,O=[];for(let L=0;L<C.length;L++)O.push(Rp(C[L]));return O}query(_){return this.queryAll(_)[0]||null}queryAll(_){const C=[];return uC(this,_,C,!0),C}queryAllNodes(_){const C=[];return uC(this,_,C,!1),C}triggerEventHandler(_,C){const O=this.nativeNode,L=[];this.listeners.forEach(J=>{if(J.name===_){const ye=J.callback;ye.call(O,C),L.push(ye)}}),"function"==typeof O.eventListeners&&O.eventListeners(_).forEach(J=>{if(-1!==J.toString().indexOf("__ngUnwrap__")){const ye=J("__ngUnwrap__");return-1===L.indexOf(ye)&&ye.call(O,C)}})}}function nx(f){return"string"==typeof f||"boolean"==typeof f||"number"==typeof f||null===f}function uC(f,_,C,O){const L=xa(f.nativeNode),J=L?L.lView:null;null!==J?Vd(J[Vn].data[L.nodeIndex],J,_,C,O,f.nativeNode):Ov(f.nativeNode,_,C,O)}function Vd(f,_,C,O,L,J){const ye=function Lr(f,_){const C=null===f?-1:f.index;return-1!==C?Ai(_[C]):null}(f,_);if(11&f.type){if(wv(ye,C,O,L,J),Bn(f)){const lt=wo(f.index,_);lt&&lt[Vn].firstChild&&Vd(lt[Vn].firstChild,lt,C,O,L,J)}else f.child&&Vd(f.child,_,C,O,L,J),ye&&Ov(ye,C,O,L);const je=_[f.index];Br(je)&&ix(je,C,O,L,J)}else if(4&f.type){const je=_[f.index];wv(je[Vi],C,O,L,J),ix(je,C,O,L,J)}else if(16&f.type){const je=_[nn],Ht=je[gi].projection[f.projection];if(Array.isArray(Ht))for(let fn of Ht)wv(fn,C,O,L,J);else if(Ht){const fn=je[Ft];Vd(fn[Vn].data[Ht.index],fn,C,O,L,J)}}else f.child&&Vd(f.child,_,C,O,L,J);if(J!==ye){const je=2&f.flags?f.projectionNext:f.next;je&&Vd(je,_,C,O,L,J)}}function ix(f,_,C,O,L){for(let J=pr;J<f.length;J++){const ye=f[J],je=ye[Vn].firstChild;je&&Vd(je,ye,_,C,O,L)}}function wv(f,_,C,O,L){if(L!==f){const J=Rp(f);if(!J)return;(O&&J instanceof Um&&_(J)&&-1===C.indexOf(J)||!O&&_(J)&&-1===C.indexOf(J))&&C.push(J)}}function Ov(f,_,C,O){const L=f.childNodes,J=L.length;for(let ye=0;ye<J;ye++){const je=L[ye],lt=Rp(je);lt&&((O&&lt instanceof Um&&_(lt)&&-1===C.indexOf(lt)||!O&&_(lt)&&-1===C.indexOf(lt))&&C.push(lt),Ov(je,_,C,O))}}const Tv="__ng_debug__";function Rp(f){return f instanceof Node?(f.hasOwnProperty(Tv)||(f[Tv]=f.nodeType==Node.ELEMENT_NODE?new Um(f):new Sv(f)),f[Tv]):null}function ox(f){return null}class to{constructor(){}supports(_){return $g(_)}create(_){return new pC(_)}}const ax=(f,_)=>_;class pC{constructor(_){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=_||ax}forEachItem(_){let C;for(C=this._itHead;null!==C;C=C._next)_(C)}forEachOperation(_){let C=this._itHead,O=this._removalsHead,L=0,J=null;for(;C||O;){const ye=!O||C&&C.currentIndex<kp(O,L,J)?C:O,je=kp(ye,L,J),lt=ye.currentIndex;if(ye===O)L--,O=O._nextRemoved;else if(C=C._next,null==ye.previousIndex)L++;else{J||(J=[]);const Ht=je-L,fn=lt-L;if(Ht!=fn){for(let di=0;di<Ht;di++){const Ei=di<J.length?J[di]:J[di]=0,Bi=Ei+di;fn<=Bi&&Bi<Ht&&(J[di]=Ei+1)}J[ye.previousIndex]=fn-Ht}}je!==lt&&_(ye,je,lt)}}forEachPreviousItem(_){let C;for(C=this._previousItHead;null!==C;C=C._nextPrevious)_(C)}forEachAddedItem(_){let C;for(C=this._additionsHead;null!==C;C=C._nextAdded)_(C)}forEachMovedItem(_){let C;for(C=this._movesHead;null!==C;C=C._nextMoved)_(C)}forEachRemovedItem(_){let C;for(C=this._removalsHead;null!==C;C=C._nextRemoved)_(C)}forEachIdentityChange(_){let C;for(C=this._identityChangesHead;null!==C;C=C._nextIdentityChange)_(C)}diff(_){if(null==_&&(_=[]),!$g(_))throw new D(900,!1);return this.check(_)?this:null}onDestroy(){}check(_){this._reset();let L,J,ye,C=this._itHead,O=!1;if(Array.isArray(_)){this.length=_.length;for(let je=0;je<this.length;je++)J=_[je],ye=this._trackByFn(je,J),null!==C&&Object.is(C.trackById,ye)?(O&&(C=this._verifyReinsertion(C,J,ye,je)),Object.is(C.item,J)||this._addIdentityChange(C,J)):(C=this._mismatch(C,J,ye,je),O=!0),C=C._next}else L=0,function Bx(f,_){if(Array.isArray(f))for(let C=0;C<f.length;C++)_(f[C]);else{const C=f[Symbol.iterator]();let O;for(;!(O=C.next()).done;)_(O.value)}}(_,je=>{ye=this._trackByFn(L,je),null!==C&&Object.is(C.trackById,ye)?(O&&(C=this._verifyReinsertion(C,je,ye,L)),Object.is(C.item,je)||this._addIdentityChange(C,je)):(C=this._mismatch(C,je,ye,L),O=!0),C=C._next,L++}),this.length=L;return this._truncate(C),this.collection=_,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let _;for(_=this._previousItHead=this._itHead;null!==_;_=_._next)_._nextPrevious=_._next;for(_=this._additionsHead;null!==_;_=_._nextAdded)_.previousIndex=_.currentIndex;for(this._additionsHead=this._additionsTail=null,_=this._movesHead;null!==_;_=_._nextMoved)_.previousIndex=_.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(_,C,O,L){let J;return null===_?J=this._itTail:(J=_._prev,this._remove(_)),null!==(_=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null))?(Object.is(_.item,C)||this._addIdentityChange(_,C),this._reinsertAfter(_,J,L)):null!==(_=null===this._linkedRecords?null:this._linkedRecords.get(O,L))?(Object.is(_.item,C)||this._addIdentityChange(_,C),this._moveAfter(_,J,L)):_=this._addAfter(new ts(C,O),J,L),_}_verifyReinsertion(_,C,O,L){let J=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null);return null!==J?_=this._reinsertAfter(J,_._prev,L):_.currentIndex!=L&&(_.currentIndex=L,this._addToMoves(_,L)),_}_truncate(_){for(;null!==_;){const C=_._next;this._addToRemovals(this._unlink(_)),_=C}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(_,C,O){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(_);const L=_._prevRemoved,J=_._nextRemoved;return null===L?this._removalsHead=J:L._nextRemoved=J,null===J?this._removalsTail=L:J._prevRemoved=L,this._insertAfter(_,C,O),this._addToMoves(_,O),_}_moveAfter(_,C,O){return this._unlink(_),this._insertAfter(_,C,O),this._addToMoves(_,O),_}_addAfter(_,C,O){return this._insertAfter(_,C,O),this._additionsTail=null===this._additionsTail?this._additionsHead=_:this._additionsTail._nextAdded=_,_}_insertAfter(_,C,O){const L=null===C?this._itHead:C._next;return _._next=L,_._prev=C,null===L?this._itTail=_:L._prev=_,null===C?this._itHead=_:C._next=_,null===this._linkedRecords&&(this._linkedRecords=new Hm),this._linkedRecords.put(_),_.currentIndex=O,_}_remove(_){return this._addToRemovals(this._unlink(_))}_unlink(_){null!==this._linkedRecords&&this._linkedRecords.remove(_);const C=_._prev,O=_._next;return null===C?this._itHead=O:C._next=O,null===O?this._itTail=C:O._prev=C,_}_addToMoves(_,C){return _.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=_:this._movesTail._nextMoved=_),_}_addToRemovals(_){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Hm),this._unlinkedRecords.put(_),_.currentIndex=null,_._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=_,_._prevRemoved=null):(_._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=_),_}_addIdentityChange(_,C){return _.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=_:this._identityChangesTail._nextIdentityChange=_,_}}class ts{constructor(_,C){this.item=_,this.trackById=C,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 Dv{constructor(){this._head=null,this._tail=null}add(_){null===this._head?(this._head=this._tail=_,_._nextDup=null,_._prevDup=null):(this._tail._nextDup=_,_._prevDup=this._tail,_._nextDup=null,this._tail=_)}get(_,C){let O;for(O=this._head;null!==O;O=O._nextDup)if((null===C||C<=O.currentIndex)&&Object.is(O.trackById,_))return O;return null}remove(_){const C=_._prevDup,O=_._nextDup;return null===C?this._head=O:C._nextDup=O,null===O?this._tail=C:O._prevDup=C,null===this._head}}class Hm{constructor(){this.map=new Map}put(_){const C=_.trackById;let O=this.map.get(C);O||(O=new Dv,this.map.set(C,O)),O.add(_)}get(_,C){const L=this.map.get(_);return L?L.get(_,C):null}remove(_){const C=_.trackById;return this.map.get(C).remove(_)&&this.map.delete(C),_}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function kp(f,_,C){const O=f.previousIndex;if(null===O)return O;let L=0;return C&&O<C.length&&(L=C[O]),O+_+L}class Np{constructor(){}supports(_){return _ instanceof Map||Ab(_)}create(){return new sx}}class sx{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(_){let C;for(C=this._mapHead;null!==C;C=C._next)_(C)}forEachPreviousItem(_){let C;for(C=this._previousMapHead;null!==C;C=C._nextPrevious)_(C)}forEachChangedItem(_){let C;for(C=this._changesHead;null!==C;C=C._nextChanged)_(C)}forEachAddedItem(_){let C;for(C=this._additionsHead;null!==C;C=C._nextAdded)_(C)}forEachRemovedItem(_){let C;for(C=this._removalsHead;null!==C;C=C._nextRemoved)_(C)}diff(_){if(_){if(!(_ instanceof Map||Ab(_)))throw new D(900,!1)}else _=new Map;return this.check(_)?this:null}onDestroy(){}check(_){this._reset();let C=this._mapHead;if(this._appendAfter=null,this._forEach(_,(O,L)=>{if(C&&C.key===L)this._maybeAddToChanges(C,O),this._appendAfter=C,C=C._next;else{const J=this._getOrCreateRecordForKey(L,O);C=this._insertBeforeOrAppend(C,J)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let O=C;null!==O;O=O._nextRemoved)O===this._mapHead&&(this._mapHead=null),this._records.delete(O.key),O._nextRemoved=O._next,O.previousValue=O.currentValue,O.currentValue=null,O._prev=null,O._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(_,C){if(_){const O=_._prev;return C._next=_,C._prev=O,_._prev=C,O&&(O._next=C),_===this._mapHead&&(this._mapHead=C),this._appendAfter=_,_}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(_,C){if(this._records.has(_)){const L=this._records.get(_);this._maybeAddToChanges(L,C);const J=L._prev,ye=L._next;return J&&(J._next=ye),ye&&(ye._prev=J),L._next=null,L._prev=null,L}const O=new lx(_);return this._records.set(_,O),O.currentValue=C,this._addToAdditions(O),O}_reset(){if(this.isDirty){let _;for(this._previousMapHead=this._mapHead,_=this._previousMapHead;null!==_;_=_._next)_._nextPrevious=_._next;for(_=this._changesHead;null!==_;_=_._nextChanged)_.previousValue=_.currentValue;for(_=this._additionsHead;null!=_;_=_._nextAdded)_.previousValue=_.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(_,C){Object.is(C,_.currentValue)||(_.previousValue=_.currentValue,_.currentValue=C,this._addToChanges(_))}_addToAdditions(_){null===this._additionsHead?this._additionsHead=this._additionsTail=_:(this._additionsTail._nextAdded=_,this._additionsTail=_)}_addToChanges(_){null===this._changesHead?this._changesHead=this._changesTail=_:(this._changesTail._nextChanged=_,this._changesTail=_)}_forEach(_,C){_ instanceof Map?_.forEach(C):Object.keys(_).forEach(O=>C(_[O],O))}}class lx{constructor(_){this.key=_,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 hC(){return new Kh([new to])}let Kh=(()=>{class f{constructor(C){this.factories=C}static create(C,O){if(null!=O){const L=O.factories.slice();C=C.concat(L)}return new f(C)}static extend(C){return{provide:f,useFactory:O=>f.create(C,O||hC()),deps:[[f,new qa,new Ir]]}}find(C){const O=this.factories.find(L=>L.supports(C));if(null!=O)return O;throw new D(901,!1)}}return f.\u0275prov=Ye({token:f,providedIn:"root",factory:hC}),f})();function Al(){return new Iv([new Np])}let Iv=(()=>{class f{constructor(C){this.factories=C}static create(C,O){if(O){const L=O.factories.slice();C=C.concat(L)}return new f(C)}static extend(C){return{provide:f,useFactory:O=>f.create(C,O||Al()),deps:[[f,new qa,new Ir]]}}find(C){const O=this.factories.find(L=>L.supports(C));if(O)return O;throw new D(901,!1)}}return f.\u0275prov=Ye({token:f,providedIn:"root",factory:Al}),f})();const fC=[new Np],hs=new Kh([new to]),rl=new Iv(fC),cx=Cv(null,"core",[]);let dx=(()=>{class f{constructor(C){}}return f.\u0275fac=function(C){return new(C||f)(pt(Hd))},f.\u0275mod=On({type:f}),f.\u0275inj=Wt({}),f})();function ux(f){return"boolean"==typeof f?f:null!=f&&"false"!==f}function px(f){return nr().compileDirectiveDeclaration(ps,`ng:///${f.type.name}/\u0275fac.js`,f)}function hx(f){Fy(f.type,f.decorators,f.ctorParameters??null,f.propDecorators??null)}function Bp(f){return nr().compileComponentDeclaration(ps,`ng:///${f.type.name}/\u0275cmp.js`,f)}function Pv(f){return nr(function fx(f){switch(f){case jo.Directive:return"directive";case jo.Component:return"component";case jo.Injectable:return"injectable";case jo.Pipe:return"pipe";case jo.NgModule:return"NgModule"}}(f.target)).compileFactoryDeclaration(ps,`ng:///${f.type.name}/\u0275fac.js`,f)}function mC(f){return nr().compileInjectableDeclaration(ps,`ng:///${f.type.name}/\u0275prov.js`,f)}function mx(f){return nr().compileInjectorDeclaration(ps,`ng:///${f.type.name}/\u0275inj.js`,f)}function gx(f){return nr().compileNgModuleDeclaration(ps,`ng:///${f.type.name}/\u0275mod.js`,f)}function _x(f){return nr().compilePipeDeclaration(ps,`ng:///${f.type.name}/\u0275pipe.js`,f)}function vx(f,_){const C=rn(f),O=_.elementInjector||ph();return new Xa(C).create(O,_.projectableNodes,_.hostElement,_.environmentInjector)}function bx(f){const _=rn(f);if(!_)return null;const C=new Xa(_);return{get selector(){return C.selector},get type(){return C.componentType},get inputs(){return C.inputs},get outputs(){return C.outputs},get ngContentSelectors(){return C.ngContentSelectors},get isStandalone(){return _.standalone}}}},85863:(oe,x,i)=>{"use strict";function e(u){for(let g in u){let v=u[g]??"";switch(g){case"display":u.display="flex"===v?["-webkit-flex","flex"]:"inline-flex"===v?["-webkit-inline-flex","inline-flex"]:v;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":u["-webkit-"+g]=v;break;case"flex-direction":u["-webkit-flex-direction"]=v,u["flex-direction"]=v;break;case"order":u.order=u["-webkit-"+g]=isNaN(+v)?"0":v}}return u}i.d(x,{Ar:()=>t,GK:()=>e,iQ:()=>a,kt:()=>p,tj:()=>h});const n="inline",a=["row","column","row-reverse","column-reverse"];function t(u){let[g,v,y]=l(u);return function d(u,g=null,v=!1){return{display:v?"inline-flex":"flex","box-sizing":"border-box","flex-direction":u,"flex-wrap":g||null}}(g,v,y)}function l(u){u=u?.toLowerCase()??"";let[g,v,y]=u.split(" ");return a.find(b=>b===g)||(g=a[0]),v===n&&(v=y!==n?y:"",y=n),[g,s(v),!!y]}function h(u){let[g]=l(u);return g.indexOf("row")>-1}function s(u){if(u)switch(u.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":u="wrap-reverse";break;case"no":case"none":case"nowrap":u="nowrap";break;default:u="wrap"}return u}function p(u,...g){if(null==u)throw TypeError("Cannot convert undefined or null to object");for(let v of g)if(null!=v)for(let y in v)v.hasOwnProperty(y)&&(u[y]=v[y]);return u}},32233:(oe,x,i)=>{"use strict";i.d(x,{Bs:()=>P,FL:()=>xn,IR:()=>y,Ot:()=>Ve,QI:()=>V,RK:()=>X,WU:()=>D,g5:()=>E,iR:()=>en,wY:()=>A,yB:()=>Mt});var e=i(94650),n=i(36895),a=i(61135),t=i(69751),l=i(56451),h=i(77579),s=i(85863),d=i(39300),p=i(18505);const g={provide:e.APP_BOOTSTRAP_LISTENER,useFactory:function u(_n,Jt){return()=>{if((0,n.isPlatformBrowser)(Jt)){const ke=Array.from(_n.querySelectorAll(`[class*=${v}]`)),Ae=/\bflex-layout-.+?\b/g;ke.forEach(ze=>{ze.classList.contains(`${v}ssr`)&&ze.parentNode?ze.parentNode.removeChild(ze):ze.className.replace(Ae,"")})}}},deps:[n.DOCUMENT,e.PLATFORM_ID],multi:!0},v="flex-layout-";let y=(()=>{class _n{}return _n.\u0275fac=function(ke){return new(ke||_n)},_n.\u0275mod=e.\u0275\u0275defineNgModule({type:_n}),_n.\u0275inj=e.\u0275\u0275defineInjector({providers:[g]}),_n})();class b{constructor(Jt=!1,ke="all",Ae="",ze="",pt=0){this.matches=Jt,this.mediaQuery=ke,this.mqAlias=Ae,this.suffix=ze,this.priority=pt,this.property=""}clone(){return new b(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let S=(()=>{class _n{constructor(){this.stylesheet=new Map}addStyleToElement(ke,Ae,ze){const pt=this.stylesheet.get(ke);pt?pt.set(Ae,ze):this.stylesheet.set(ke,new Map([[Ae,ze]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(ke,Ae){const ze=this.stylesheet.get(ke);let pt="";if(ze){const tn=ze.get(Ae);("number"==typeof tn||"string"==typeof tn)&&(pt=tn+"")}return pt}}return _n.\u0275fac=function(ke){return new(ke||_n)},_n.\u0275prov=e.\u0275\u0275defineInjectable({token:_n,factory:_n.\u0275fac,providedIn:"root"}),_n})();const E={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},D=new e.InjectionToken("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>E}),A=new e.InjectionToken("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),P=new e.InjectionToken("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function B(_n,Jt){return _n=_n?.clone()??new b,Jt&&(_n.mqAlias=Jt.alias,_n.mediaQuery=Jt.mediaQuery,_n.suffix=Jt.suffix,_n.priority=Jt.priority),_n}class V{constructor(){this.shouldCache=!0}sideEffect(Jt,ke,Ae){}}let X=(()=>{class _n{constructor(ke,Ae,ze,pt){this._serverStylesheet=ke,this._serverModuleLoaded=Ae,this._platformId=ze,this.layoutConfig=pt}applyStyleToElement(ke,Ae,ze=null){let pt={};"string"==typeof Ae&&(pt[Ae]=ze,Ae=pt),pt=this.layoutConfig.disableVendorPrefixes?Ae:(0,s.GK)(Ae),this._applyMultiValueStyleToElement(pt,ke)}applyStyleToElements(ke,Ae=[]){const ze=this.layoutConfig.disableVendorPrefixes?ke:(0,s.GK)(ke);Ae.forEach(pt=>{this._applyMultiValueStyleToElement(ze,pt)})}getFlowDirection(ke){const Ae="flex-direction";let ze=this.lookupStyle(ke,Ae);return[ze||"row",this.lookupInlineStyle(ke,Ae)||(0,n.isPlatformServer)(this._platformId)&&this._serverModuleLoaded?ze:""]}hasWrap(ke){return"wrap"===this.lookupStyle(ke,"flex-wrap")}lookupAttributeValue(ke,Ae){return ke.getAttribute(Ae)??""}lookupInlineStyle(ke,Ae){return(0,n.isPlatformBrowser)(this._platformId)?ke.style.getPropertyValue(Ae):function re(_n,Jt){return K(_n)[Jt]??""}(ke,Ae)}lookupStyle(ke,Ae,ze=!1){let pt="";return ke&&((pt=this.lookupInlineStyle(ke,Ae))||((0,n.isPlatformBrowser)(this._platformId)?ze||(pt=getComputedStyle(ke).getPropertyValue(Ae)):this._serverModuleLoaded&&(pt=this._serverStylesheet.getStyleForElement(ke,Ae)))),pt?pt.trim():""}_applyMultiValueStyleToElement(ke,Ae){Object.keys(ke).sort().forEach(ze=>{const pt=ke[ze],tn=Array.isArray(pt)?pt:[pt];tn.sort();for(let ot of tn)ot=ot?ot+"":"",(0,n.isPlatformBrowser)(this._platformId)||!this._serverModuleLoaded?(0,n.isPlatformBrowser)(this._platformId)?Ae.style.setProperty(ze,ot):Q(Ae,ze,ot):this._serverStylesheet.addStyleToElement(Ae,ze,ot)})}}return _n.\u0275fac=function(ke){return new(ke||_n)(e.\u0275\u0275inject(S),e.\u0275\u0275inject(A),e.\u0275\u0275inject(e.PLATFORM_ID),e.\u0275\u0275inject(D))},_n.\u0275prov=e.\u0275\u0275defineInjectable({token:_n,factory:_n.\u0275fac,providedIn:"root"}),_n})();function Q(_n,Jt,ke){Jt=Jt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Ae=K(_n);Ae[Jt]=ke??"",function ae(_n,Jt){let ke="";for(const Ae in Jt)Jt[Ae]&&(ke+=`${Ae}:${Jt[Ae]};`);_n.setAttribute("style",ke)}(_n,Ae)}function K(_n){const Jt={},ke=_n.getAttribute("style");if(ke){const Ae=ke.split(/;+/g);for(let ze=0;ze<Ae.length;ze++){const pt=Ae[ze].trim();if(pt.length>0){const tn=pt.indexOf(":");if(-1===tn)throw new Error(`Invalid CSS style: ${pt}`);Jt[pt.substr(0,tn).trim()]=pt.substr(tn+1).trim()}}}return Jt}function k(_n,Jt){return(Jt&&Jt.priority||0)-(_n&&_n.priority||0)}function $(_n,Jt){return(_n.priority||0)-(Jt.priority||0)}let j=(()=>{class _n{constructor(ke,Ae,ze){this._zone=ke,this._platformId=Ae,this._document=ze,this.source=new a.X(new b(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const ke=[];return this.registry.forEach((Ae,ze)=>{Ae.matches&&ke.push(ze)}),ke}isActive(ke){return this.registry.get(ke)?.matches??this.registerQuery(ke).some(ze=>ze.matches)}observe(ke,Ae=!1){if(ke&&ke.length){const ze=this._observable$.pipe((0,d.h)(tn=>!Ae||ke.indexOf(tn.mediaQuery)>-1)),pt=new t.y(tn=>{const ot=this.registerQuery(ke);if(ot.length){const Et=ot.pop();ot.forEach(z=>{tn.next(z)}),this.source.next(Et)}tn.complete()});return(0,l.T)(pt,ze)}return this._observable$}registerQuery(ke){const Ae=Array.isArray(ke)?ke:[ke],ze=[];return function U(_n,Jt){const ke=_n.filter(Ae=>!R[Ae]);if(ke.length>0){const Ae=ke.join(", ");try{const ze=Jt.createElement("style");ze.setAttribute("type","text/css"),ze.styleSheet||ze.appendChild(Jt.createTextNode(`\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ${Ae} {.fx-query-test{ }}\n`)),Jt.head.appendChild(ze),ke.forEach(pt=>R[pt]=ze)}catch(ze){console.error(ze)}}}(Ae,this._document),Ae.forEach(pt=>{const tn=Et=>{this._zone.run(()=>this.source.next(new b(Et.matches,pt)))};let ot=this.registry.get(pt);ot||(ot=this.buildMQL(pt),ot.addListener(tn),this.pendingRemoveListenerFns.push(()=>ot.removeListener(tn)),this.registry.set(pt,ot)),ot.matches&&ze.push(new b(!0,pt))}),ze}ngOnDestroy(){let ke;for(;ke=this.pendingRemoveListenerFns.pop();)ke()}buildMQL(ke){return function T(_n,Jt){return Jt&&window.matchMedia("all").addListener?window.matchMedia(_n):function le(_n){const Jt=new EventTarget;return Jt.matches="all"===_n||""===_n,Jt.media=_n,Jt.addListener=()=>{},Jt.removeListener=()=>{},Jt.addEventListener=()=>{},Jt.dispatchEvent=()=>!1,Jt.onchange=null,Jt}(_n)}(ke,(0,n.isPlatformBrowser)(this._platformId))}}return _n.\u0275fac=function(ke){return new(ke||_n)(e.\u0275\u0275inject(e.NgZone),e.\u0275\u0275inject(e.PLATFORM_ID),e.\u0275\u0275inject(n.DOCUMENT))},_n.\u0275prov=e.\u0275\u0275defineInjectable({token:_n,factory:_n.\u0275fac,providedIn:"root"}),_n})();const R={},H=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],N="(orientation: portrait) and (max-width: 599.98px)",pe="(orientation: landscape) and (max-width: 959.98px)",de="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",me="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",q="(orientation: portrait) and (min-width: 840px)",se="(orientation: landscape) and (min-width: 1280px)",ve={HANDSET:`${N}, ${pe}`,TABLET:`${de} , ${me}`,WEB:`${q}, ${se} `,HANDSET_PORTRAIT:`${N}`,TABLET_PORTRAIT:`${de} `,WEB_PORTRAIT:`${q}`,HANDSET_LANDSCAPE:`${pe}`,TABLET_LANDSCAPE:`${me}`,WEB_LANDSCAPE:`${se}`},Ee=[{alias:"handset",priority:2e3,mediaQuery:ve.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ve.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ve.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ve.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ve.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ve.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ve.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ve.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ve.WEB_PORTRAIT,overlapping:!0}],Ye=/(\.|-|_)/g;function wt(_n){let Jt=_n.length>0?_n.charAt(0):"",ke=_n.length>1?_n.slice(1):"";return Jt.toUpperCase()+ke}const Zt=new e.InjectionToken("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const _n=(0,e.inject)(P),Jt=(0,e.inject)(D),ke=[].concat.apply([],(_n||[]).map(ze=>Array.isArray(ze)?ze:[ze]));return function nt(_n,Jt=[]){const ke={};return _n.forEach(Ae=>{ke[Ae.alias]=Ae}),Jt.forEach(Ae=>{ke[Ae.alias]?(0,s.kt)(ke[Ae.alias],Ae):ke[Ae.alias]=Ae}),function Ut(_n){return _n.forEach(Jt=>{Jt.suffix||(Jt.suffix=function Wt(_n){return _n.replace(Ye,"|").split("|").map(wt).join("")}(Jt.alias),Jt.overlapping=!!Jt.overlapping)}),_n}(Object.keys(ke).map(Ae=>ke[Ae]))}((Jt.disableDefaultBps?[]:H).concat(Jt.addOrientationBps?Ee:[]),ke)}});let Fe=(()=>{class _n{constructor(ke){this.findByMap=new Map,this.items=[...ke].sort($)}findByAlias(ke){return ke?this.findWithPredicate(ke,Ae=>Ae.alias===ke):null}findByQuery(ke){return this.findWithPredicate(ke,Ae=>Ae.mediaQuery===ke)}get overlappings(){return this.items.filter(ke=>ke.overlapping)}get aliases(){return this.items.map(ke=>ke.alias)}get suffixes(){return this.items.map(ke=>ke?.suffix??"")}findWithPredicate(ke,Ae){let ze=this.findByMap.get(ke);return ze||(ze=this.items.find(Ae)??null,this.findByMap.set(ke,ze)),ze??null}}return _n.\u0275fac=function(ke){return new(ke||_n)(e.\u0275\u0275inject(Zt))},_n.\u0275prov=e.\u0275\u0275defineInjectable({token:_n,factory:_n.\u0275fac,providedIn:"root"}),_n})();const yt="print",ie={alias:yt,mediaQuery:yt,priority:1e3};let Ce=(()=>{class _n{constructor(ke,Ae,ze){this.breakpoints=ke,this.layoutConfig=Ae,this._document=ze,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Ie,this.deactivations=[]}withPrintQuery(ke){return[...ke,yt]}isPrintEvent(ke){return ke.mediaQuery.startsWith(yt)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(ke=>this.breakpoints.findByAlias(ke)).filter(ke=>null!==ke)}getEventBreakpoints({mediaQuery:ke}){const Ae=this.breakpoints.findByQuery(ke);return(Ae?[...this.printBreakPoints,Ae]:this.printBreakPoints).sort(k)}updateEvent(ke){let Ae=this.breakpoints.findByQuery(ke.mediaQuery);return this.isPrintEvent(ke)&&(Ae=this.getEventBreakpoints(ke)[0],ke.mediaQuery=Ae?.mediaQuery??""),B(ke,Ae)}registerBeforeAfterPrintHooks(ke){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Ae=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(ke,this.getEventBreakpoints(new b(!0,yt))),ke.updateStyles())},ze=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(ke),ke.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Ae),this._document.defaultView.addEventListener("afterprint",ze),this.beforePrintEventListeners.push(Ae),this.afterPrintEventListeners.push(ze)}interceptEvents(ke){return Ae=>{this.isPrintEvent(Ae)?Ae.matches&&!this.isPrinting?(this.startPrinting(ke,this.getEventBreakpoints(Ae)),ke.updateStyles()):!Ae.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(ke),ke.updateStyles()):this.collectActivations(ke,Ae)}}blockPropagation(){return ke=>!(this.isPrinting||this.isPrintEvent(ke))}startPrinting(ke,Ae){this.isPrinting=!0,this.formerActivations=ke.activatedBreakpoints,ke.activatedBreakpoints=this.queue.addPrintBreakpoints(Ae)}stopPrinting(ke){ke.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(ke,Ae){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Ae.matches){const ze=this.breakpoints.findByQuery(Ae.mediaQuery);if(ze){const pt=this.formerActivations&&this.formerActivations.includes(ze),tn=!this.formerActivations&&ke.activatedBreakpoints.includes(ze);(pt||tn)&&(this.deactivations.push(ze),this.deactivations.sort(k))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(ke=>this._document.defaultView.removeEventListener("beforeprint",ke)),this.afterPrintEventListeners.forEach(ke=>this._document.defaultView.removeEventListener("afterprint",ke)))}}return _n.\u0275fac=function(ke){return new(ke||_n)(e.\u0275\u0275inject(Fe),e.\u0275\u0275inject(D),e.\u0275\u0275inject(n.DOCUMENT))},_n.\u0275prov=e.\u0275\u0275defineInjectable({token:_n,factory:_n.\u0275fac,providedIn:"root"}),_n})();class Ie{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Jt){return Jt.push(ie),Jt.sort(k),Jt.forEach(ke=>this.addBreakpoint(ke)),this.printBreakpoints}addBreakpoint(Jt){Jt&&void 0===this.printBreakpoints.find(Ae=>Ae.mediaQuery===Jt.mediaQuery)&&(this.printBreakpoints=function dt(_n){return _n?.mediaQuery.startsWith(yt)??!1}(Jt)?[Jt,...this.printBreakpoints]:[...this.printBreakpoints,Jt])}clear(){this.printBreakpoints=[]}}let Mt=(()=>{class _n{constructor(ke,Ae,ze){this.matchMedia=ke,this.breakpoints=Ae,this.hook=ze,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new h.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(ke){this._activatedBreakpoints=[...ke]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(ke){this._useFallbacks=ke}onMediaChange(ke){const Ae=this.findByQuery(ke.mediaQuery);if(Ae){ke=B(ke,Ae);const ze=this.activatedBreakpoints.indexOf(Ae);ke.matches&&-1===ze?(this._activatedBreakpoints.push(Ae),this._activatedBreakpoints.sort(k),this.updateStyles()):!ke.matches&&-1!==ze&&(this._activatedBreakpoints.splice(ze,1),this._activatedBreakpoints.sort(k),this.updateStyles())}}init(ke,Ae,ze,pt,tn=[]){Xt(this.updateMap,ke,Ae,ze),Xt(this.clearMap,ke,Ae,pt),this.buildElementKeyMap(ke,Ae),this.watchExtraTriggers(ke,Ae,tn)}getValue(ke,Ae,ze){const pt=this.elementMap.get(ke);if(pt){const tn=void 0!==ze?pt.get(ze):this.getActivatedValues(pt,Ae);if(tn)return tn.get(Ae)}}hasValue(ke,Ae){const ze=this.elementMap.get(ke);if(ze){const pt=this.getActivatedValues(ze,Ae);if(pt)return void 0!==pt.get(Ae)||!1}return!1}setValue(ke,Ae,ze,pt){let tn=this.elementMap.get(ke);if(tn){const Et=(tn.get(pt)??new Map).set(Ae,ze);tn.set(pt,Et),this.elementMap.set(ke,tn)}else tn=(new Map).set(pt,(new Map).set(Ae,ze)),this.elementMap.set(ke,tn);const ot=this.getValue(ke,Ae);void 0!==ot&&this.updateElement(ke,Ae,ot)}trackValue(ke,Ae){return this.subject.asObservable().pipe((0,d.h)(ze=>ze.element===ke&&ze.key===Ae))}updateStyles(){this.elementMap.forEach((ke,Ae)=>{const ze=new Set(this.elementKeyMap.get(Ae));let pt=this.getActivatedValues(ke);pt&&pt.forEach((tn,ot)=>{this.updateElement(Ae,ot,tn),ze.delete(ot)}),ze.forEach(tn=>{if(pt=this.getActivatedValues(ke,tn),pt){const ot=pt.get(tn);this.updateElement(Ae,tn,ot)}else this.clearElement(Ae,tn)})})}clearElement(ke,Ae){const ze=this.clearMap.get(ke);if(ze){const pt=ze.get(Ae);pt&&(pt(),this.subject.next({element:ke,key:Ae,value:""}))}}updateElement(ke,Ae,ze){const pt=this.updateMap.get(ke);if(pt){const tn=pt.get(Ae);tn&&(tn(ze),this.subject.next({element:ke,key:Ae,value:ze}))}}releaseElement(ke){const Ae=this.watcherMap.get(ke);Ae&&(Ae.forEach(pt=>pt.unsubscribe()),this.watcherMap.delete(ke));const ze=this.elementMap.get(ke);ze&&(ze.forEach((pt,tn)=>ze.delete(tn)),this.elementMap.delete(ke))}triggerUpdate(ke,Ae){const ze=this.elementMap.get(ke);if(ze){const pt=this.getActivatedValues(ze,Ae);pt&&(Ae?this.updateElement(ke,Ae,pt.get(Ae)):pt.forEach((tn,ot)=>this.updateElement(ke,ot,tn)))}}buildElementKeyMap(ke,Ae){let ze=this.elementKeyMap.get(ke);ze||(ze=new Set,this.elementKeyMap.set(ke,ze)),ze.add(Ae)}watchExtraTriggers(ke,Ae,ze){if(ze&&ze.length){let pt=this.watcherMap.get(ke);if(pt||(pt=new Map,this.watcherMap.set(ke,pt)),!pt.get(Ae)){const ot=(0,l.T)(...ze).subscribe(()=>{const Et=this.getValue(ke,Ae);this.updateElement(ke,Ae,Et)});pt.set(Ae,ot)}}}findByQuery(ke){return this.breakpoints.findByQuery(ke)}getActivatedValues(ke,Ae){for(let pt=0;pt<this.activatedBreakpoints.length;pt++){const ot=ke.get(this.activatedBreakpoints[pt].alias);if(ot&&(void 0===Ae||ot.has(Ae)&&null!=ot.get(Ae)))return ot}if(!this._useFallbacks)return;const ze=ke.get("");return void 0===Ae||ze&&ze.has(Ae)?ze:void 0}observeActivations(){const ke=this.breakpoints.items.map(Ae=>Ae.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(ke)).pipe((0,p.b)(this.hook.interceptEvents(this)),(0,d.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return _n.\u0275fac=function(ke){return new(ke||_n)(e.\u0275\u0275inject(j),e.\u0275\u0275inject(Fe),e.\u0275\u0275inject(Ce))},_n.\u0275prov=e.\u0275\u0275defineInjectable({token:_n,factory:_n.\u0275fac,providedIn:"root"}),_n})();function Xt(_n,Jt,ke,Ae){if(void 0!==Ae){const ze=_n.get(Jt)??new Map;ze.set(ke,Ae),_n.set(Jt,ze)}}let en=(()=>{class _n{constructor(ke,Ae,ze,pt){this.elementRef=ke,this.styleBuilder=Ae,this.styler=ze,this.marshal=pt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new h.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(ke){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,ke,this.marshal.activatedAlias)}ngOnChanges(ke){Object.keys(ke).forEach(Ae=>{if(-1!==this.inputs.indexOf(Ae)){const ze=Ae.split(".").slice(1).join(".");this.setValue(ke[Ae].currentValue,ze)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(ke=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),ke)}addStyles(ke,Ae){const ze=this.styleBuilder,pt=ze.shouldCache;let tn=this.styleCache.get(ke);(!tn||!pt)&&(tn=ze.buildStyles(ke,Ae),pt&&this.styleCache.set(ke,tn)),this.mru={...tn},this.applyStyleToElement(tn),ze.sideEffect(ke,tn,Ae)}clearStyles(){Object.keys(this.mru).forEach(ke=>{this.mru[ke]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(ke,Ae=!1){if(ke){const[ze,pt]=this.styler.getFlowDirection(ke);if(!pt&&Ae){const tn=(0,s.Ar)(ze);this.styler.applyStyleToElements(tn,[ke])}return ze.trim()}return"row"}hasWrap(ke){return this.styler.hasWrap(ke)}applyStyleToElement(ke,Ae,ze=this.nativeElement){this.styler.applyStyleToElement(ze,ke,Ae)}setValue(ke,Ae){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,ke,Ae)}updateWithValue(ke){this.currentValue!==ke&&(this.addStyles(ke),this.currentValue=ke)}}return _n.\u0275fac=function(ke){return new(ke||_n)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(V),e.\u0275\u0275directiveInject(X),e.\u0275\u0275directiveInject(Mt))},_n.\u0275dir=e.\u0275\u0275defineDirective({type:_n,features:[e.\u0275\u0275NgOnChangesFeature]}),_n})();class xt extends EventTarget{constructor(Jt){super(),this._mediaQuery=Jt,this._isActive=!1,this._listeners=[],this.onchange=null}get matches(){return this._isActive}get media(){return this._mediaQuery}destroy(){this.deactivate(),this._listeners=[]}activate(){return this._isActive||(this._isActive=!0,this._listeners.forEach(Jt=>{Jt.call(this,{matches:this.matches,media:this.media})})),this}deactivate(){return this._isActive&&(this._isActive=!1,this._listeners.forEach(Jt=>{Jt.call(this,{matches:this.matches,media:this.media})})),this}addListener(Jt){-1===this._listeners.indexOf(Jt)&&this._listeners.push(Jt),this._isActive&&Jt.call(this,{matches:this.matches,media:this.media})}removeListener(Jt){}dispatchEvent(Jt){return!1}}function Ve(_n,Jt="1",ke="1"){let Ae=[Jt,ke,_n],ze=_n.indexOf("calc");if(ze>0){Ae[2]=mt(_n.substring(ze).trim());let pt=_n.substr(0,ze).trim().split(" ");2==pt.length&&(Ae[0]=pt[0],Ae[1]=pt[1])}else if(0==ze)Ae[2]=mt(_n.trim());else{let pt=_n.split(" ");Ae=3===pt.length?pt:[Jt,ke,_n]}return Ae}function mt(_n){return _n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}const It="x";function xn(_n,Jt){if(void 0===Jt)return _n;const ke=Ae=>{const ze=+Ae.slice(0,-It.length);return _n.endsWith(It)&&!isNaN(ze)?`${ze*Jt.value}${Jt.unit}`:_n};return _n.includes(" ")?_n.split(" ").map(ke).join(" "):ke(_n)}},55829:(oe,x,i)=>{"use strict";i.d(x,{Zl:()=>T,aT:()=>pe,b8:()=>X,oO:()=>E});var e=i(94650),n=i(32233),a=i(36895),t=i(21281),l=i(82722),h=i(11481);let y=(()=>{class de extends n.iR{constructor(q,se,ve,Ee,Ye,wt,Wt){super(q,null,se,ve),this.ngClassInstance=Wt,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new a.NgClass(Ee,Ye,q,wt)),this.init(),this.setValue("","")}set klass(q){this.ngClassInstance.klass=q,this.setValue(q,"")}updateWithValue(q){this.ngClassInstance.ngClass=q,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return de.\u0275fac=function(q){return new(q||de)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.RK),e.\u0275\u0275directiveInject(n.yB),e.\u0275\u0275directiveInject(e.IterableDiffers),e.\u0275\u0275directiveInject(e.KeyValueDiffers),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(a.NgClass,10))},de.\u0275dir=e.\u0275\u0275defineDirective({type:de,inputs:{klass:["class","klass"]},features:[e.\u0275\u0275InheritDefinitionFeature]}),de})();const b=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let E=(()=>{class de extends y{constructor(){super(...arguments),this.inputs=b}}return de.\u0275fac=function(){let me;return function(se){return(me||(me=e.\u0275\u0275getInheritedFactory(de)))(se||de)}}(),de.\u0275dir=e.\u0275\u0275defineDirective({type:de,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[e.\u0275\u0275InheritDefinitionFeature]}),de})(),D=(()=>{class de extends n.QI{buildStyles(q,se){return{display:"true"===q?se.display||(se.isServer?"initial":""):"none"}}}return de.\u0275fac=function(){let me;return function(se){return(me||(me=e.\u0275\u0275getInheritedFactory(de)))(se||de)}}(),de.\u0275prov=e.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),A=(()=>{class de extends n.iR{constructor(q,se,ve,Ee,Ye,wt,Wt){super(q,se,ve,Ee),this.layoutConfig=Ye,this.platformId=wt,this.serverModuleLoaded=Wt,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const q=Array.from(this.nativeElement.children);for(let ve=0;ve<q.length;ve++)if(this.marshal.hasValue(q[ve],"flex")){this.hasFlexChild=!0;break}P.has(this.nativeElement)?this.display=P.get(this.nativeElement):(this.display=this.getDisplayStyle(),P.set(this.nativeElement,this.display)),this.init();const se=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===se||""===se?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(q){Object.keys(q).forEach(se=>{if(-1!==this.inputs.indexOf(se)){const ve=se.split("."),Ee=ve.slice(1).join("."),Ye=q[se].currentValue;let wt=""===Ye||0!==Ye&&(0,t.Ig)(Ye);"fxHide"===ve[0]&&(wt=!wt),this.setValue(wt,Ee)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(q=>{this.marshal.trackValue(this.nativeElement,q).pipe((0,l.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(q=!0){if(""===q)return;const se=(0,a.isPlatformServer)(this.platformId);this.addStyles(q?"true":"false",{display:this.display,isServer:se}),se&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return de.\u0275fac=function(q){return new(q||de)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(D),e.\u0275\u0275directiveInject(n.RK),e.\u0275\u0275directiveInject(n.yB),e.\u0275\u0275directiveInject(n.WU),e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(n.wY))},de.\u0275dir=e.\u0275\u0275defineDirective({type:de,features:[e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]}),de})();const P=new WeakMap,B=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let X=(()=>{class de extends A{constructor(){super(...arguments),this.inputs=B}}return de.\u0275fac=function(){let me;return function(se){return(me||(me=e.\u0275\u0275getInheritedFactory(de)))(se||de)}}(),de.\u0275dir=e.\u0275\u0275defineDirective({type:de,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[e.\u0275\u0275InheritDefinitionFeature]}),de})();class re{constructor(me,q,se=!0){this.key=me,this.value=q,this.key=se?me.replace(/['"]/g,"").trim():me.trim(),this.value=se?q.replace(/['"]/g,"").trim():q.trim(),this.value=this.value.replace(/;/,"")}}function Q(de){let me=typeof de;return"object"===me?de.constructor===Array?"array":de.constructor===Set?"set":"object":me}function $(de){const[me,...q]=de.split(":");return new re(me,q.join(":"))}function j(de,me){return me.key&&(de[me.key]=me.value),de}let R=(()=>{class de extends n.iR{constructor(q,se,ve,Ee,Ye,wt,Wt,Ut,nt){super(q,null,se,ve),this.sanitizer=Ee,this.ngStyleInstance=Wt,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new a.NgStyle(q,Ye,wt)),this.init();const Zt=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Zt),this.isServer=Ut&&(0,a.isPlatformServer)(nt)}updateWithValue(q){const se=this.buildStyleMap(q);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...se},this.isServer&&this.applyStyleToElement(se),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(q){const se=ve=>this.sanitizer.sanitize(e.SecurityContext.STYLE,ve)??"";if(q)switch(Q(q)){case"string":return H(function ae(de,me=";"){return String(de).trim().split(me).map(q=>q.trim()).filter(q=>""!==q)}(q),se);case"array":return H(q,se);default:return function k(de,me){let q=[];return"set"===Q(de)?de.forEach(se=>q.push(se)):Object.keys(de).forEach(se=>{q.push(`${se}:${de[se]}`)}),function K(de,me){return de.map($).filter(se=>!!se).map(se=>(me&&(se.value=me(se.value)),se)).reduce(j,{})}(q,me)}(q,se)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return de.\u0275fac=function(q){return new(q||de)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.RK),e.\u0275\u0275directiveInject(n.yB),e.\u0275\u0275directiveInject(h.DomSanitizer),e.\u0275\u0275directiveInject(e.KeyValueDiffers),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(a.NgStyle,10),e.\u0275\u0275directiveInject(n.wY),e.\u0275\u0275directiveInject(e.PLATFORM_ID))},de.\u0275dir=e.\u0275\u0275defineDirective({type:de,features:[e.\u0275\u0275InheritDefinitionFeature]}),de})();const U=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let T=(()=>{class de extends R{constructor(){super(...arguments),this.inputs=U}}return de.\u0275fac=function(){let me;return function(se){return(me||(me=e.\u0275\u0275getInheritedFactory(de)))(se||de)}}(),de.\u0275dir=e.\u0275\u0275defineDirective({type:de,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[e.\u0275\u0275InheritDefinitionFeature]}),de})();function H(de,me){return de.map($).filter(se=>!!se).map(se=>(me&&(se.value=me(se.value)),se)).reduce(j,{})}let pe=(()=>{class de{}return de.\u0275fac=function(q){return new(q||de)},de.\u0275mod=e.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.IR]}),de})()},1576:(oe,x,i)=>{"use strict";i.d(x,{SQ:()=>A,UT:()=>nt,Wh:()=>Ve,XD:()=>en,ae:()=>tn,s9:()=>zt,xw:()=>g,yH:()=>le});var e=i(94650),n=i(40445),a=i(32233),t=i(85863),l=i(77579),h=i(82722);let s=(()=>{class ot extends a.QI{buildStyles(z,{display:Z}){const ge=(0,t.Ar)(z);return{...ge,display:"none"===Z?Z:ge.display}}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac,providedIn:"root"}),ot})();const d=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let u=(()=>{class ot extends a.iR{constructor(z,Z,ge,Qe,qe){super(z,ge,Z,Qe),this._config=qe,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(z){const ge=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=v.get(ge)??new Map,v.set(ge,this.styleCache),this.currentValue!==z&&(this.addStyles(z,{display:ge}),this.currentValue=z)}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(a.RK),e.\u0275\u0275directiveInject(s),e.\u0275\u0275directiveInject(a.yB),e.\u0275\u0275directiveInject(a.WU))},ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})(),g=(()=>{class ot extends u{constructor(){super(...arguments),this.inputs=d}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})();const v=new Map,y={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let b=(()=>{class ot extends a.QI{constructor(z,Z){super(),this._styler=z,this._config=Z}buildStyles(z,Z){return z.endsWith(re)?(z=z.slice(0,z.indexOf(re)),function ae(ot,Et){const[z,Z]=ot.split(" "),Qe=it=>`-${it}`;let qe="0px",ct=Qe(Z??z),Yt="0px";return"rtl"===Et?Yt=Qe(z):qe=Qe(z),{margin:`0px ${qe} ${ct} ${Yt}`}}(z=(0,a.FL)(z,this._config.multiplier),Z.directionality)):{}}sideEffect(z,Z,ge){const Qe=ge.items;if(z.endsWith(re)){z=z.slice(0,z.indexOf(re));const qe=function Q(ot,Et){const[z,Z]=ot.split(" ");let Qe="0px",ct="0px";return"rtl"===Et?ct=z:Qe=z,{padding:`0px ${Qe} ${Z??z} ${ct}`}}(z=(0,a.FL)(z,this._config.multiplier),ge.directionality);this._styler.applyStyleToElements(qe,ge.items)}else{z=(0,a.FL)(z,this._config.multiplier),z=this.addFallbackUnit(z);const qe=Qe.pop(),ct=function k(ot,Et){const z=K(Et.directionality,Et.layout),Z={...y};return Z[z]=ot,Z}(z,ge);this._styler.applyStyleToElements(ct,Qe),this._styler.applyStyleToElements(y,[qe])}}addFallbackUnit(z){return isNaN(+z)?z:`${z}${this._config.defaultUnit}`}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(a.RK),e.\u0275\u0275inject(a.WU))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac,providedIn:"root"}),ot})();const S=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let D=(()=>{class ot extends a.iR{constructor(z,Z,ge,Qe,qe,ct){super(z,qe,Qe,ct),this.zone=Z,this.directionality=ge,this.styleUtils=Qe,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new l.x;const Yt=[this.directionality.change,this.observerSubject.asObservable()];this.init(Yt),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,h.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const z=this.nativeElement.children,Z=[];for(let ge=z.length;ge--;)Z[ge]=z[ge];return Z}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(z){const ge=z.value.split(" ");this.layout=ge[0],t.iQ.find(Qe=>Qe===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(z){const Z=this.childrenNodes.filter(ge=>1===ge.nodeType&&this.willDisplay(ge)).sort((ge,Qe)=>{const qe=+this.styler.lookupStyle(ge,"order"),ct=+this.styler.lookupStyle(Qe,"order");return isNaN(qe)||isNaN(ct)||qe===ct?0:qe>ct?1:-1});if(Z.length>0){const ge=this.directionality.value,Qe=this.layout;"row"===Qe&&"rtl"===ge?this.styleCache=P:"row"===Qe&&"rtl"!==ge?this.styleCache=V:"column"===Qe&&"rtl"===ge?this.styleCache=B:"column"===Qe&&"rtl"!==ge&&(this.styleCache=X),this.addStyles(z,{directionality:ge,items:Z,layout:Qe})}}clearStyles(){const z=Object.keys(this.mru).length>0,Z=z?"padding":K(this.directionality.value,this.layout);z&&super.clearStyles(),this.styleUtils.applyStyleToElements({[Z]:""},this.childrenNodes)}willDisplay(z){const Z=this.marshal.getValue(z,"show-hide");return!0===Z||void 0===Z&&"none"!==this.styleUtils.lookupStyle(z,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(z=>{z.some(ge=>ge.addedNodes&&ge.addedNodes.length>0||ge.removedNodes&&ge.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(n.Is),e.\u0275\u0275directiveInject(a.RK),e.\u0275\u0275directiveInject(b),e.\u0275\u0275directiveInject(a.yB))},ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})(),A=(()=>{class ot extends D{constructor(){super(...arguments),this.inputs=S}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})();const P=new Map,B=new Map,V=new Map,X=new Map,re=" grid";function K(ot,Et){switch(Et){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===ot?"margin-left":"margin-right";case"row-reverse":return"rtl"===ot?"margin-right":"margin-left"}}let $=(()=>{class ot extends a.QI{constructor(z){super(),this.layoutConfig=z}buildStyles(z,Z){let[ge,Qe,...qe]=z.split(" "),ct=qe.join(" ");const Yt=Z.direction.indexOf("column")>-1?"column":"row",it=(0,t.tj)(Yt)?"max-width":"max-height",Be=(0,t.tj)(Yt)?"min-width":"min-height",gt=String(ct).indexOf("calc")>-1,ue=gt||"auto"===ct,Ge=String(ct).indexOf("%")>-1&&!gt,ee=String(ct).indexOf("px")>-1||String(ct).indexOf("rem")>-1||String(ct).indexOf("em")>-1||String(ct).indexOf("vw")>-1||String(ct).indexOf("vh")>-1;let De=gt||ee;ge="0"==ge?0:ge,Qe="0"==Qe?0:Qe;const Ot=!ge&&!Qe;let cn={};const Gn={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(ct||""){case"":ct="row"===Yt?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":ge=0,ct="auto";break;case"grow":ct="100%";break;case"noshrink":Qe=0,ct="auto";break;case"auto":break;case"none":ge=0,Qe=0,ct="auto";break;default:!De&&!Ge&&!isNaN(ct)&&(ct+="%"),"0%"===ct&&(De=!0),"0px"===ct&&(ct="0%"),cn=(0,t.kt)(Gn,gt?{"flex-grow":ge,"flex-shrink":Qe,"flex-basis":De?ct:"100%"}:{flex:`${ge} ${Qe} ${De?ct:"100%"}`})}return cn.flex||cn["flex-grow"]||(cn=(0,t.kt)(Gn,gt?{"flex-grow":ge,"flex-shrink":Qe,"flex-basis":ct}:{flex:`${ge} ${Qe} ${ct}`})),"0%"!==ct&&"0px"!==ct&&"0.000000001px"!==ct&&"auto"!==ct&&(cn[Be]=Ot||De&&ge?ct:null,cn[it]=Ot||!ue&&Qe?ct:null),cn[Be]||cn[it]?Z.hasWrap&&(cn[gt?"flex-basis":"flex"]=cn[it]?gt?cn[it]:`${ge} ${Qe} ${cn[it]}`:gt?cn[Be]:`${ge} ${Qe} ${cn[Be]}`):cn=(0,t.kt)(Gn,gt?{"flex-grow":ge,"flex-shrink":Qe,"flex-basis":ct}:{flex:`${ge} ${Qe} ${ct}`}),(0,t.kt)(cn,{"box-sizing":"border-box"})}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(a.WU))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac,providedIn:"root"}),ot})();const j=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let U=(()=>{class ot extends a.iR{constructor(z,Z,ge,Qe,qe){super(z,Qe,Z,qe),this.layoutConfig=ge,this.marshal=qe,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(z){this.flexShrink=z||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(z){this.flexGrow=z||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,h.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,h.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(z){const ge=z.value.split(" ");this.direction=ge[0],this.wrap=void 0!==ge[1]&&"wrap"===ge[1],this.triggerUpdate()}updateWithValue(z){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const ge=this.direction,Qe=ge.startsWith("row"),qe=this.wrap;Qe&&qe?this.styleCache=N:Qe&&!qe?this.styleCache=T:!Qe&&qe?this.styleCache=pe:!Qe&&!qe&&(this.styleCache=H);const ct=String(z).replace(";",""),Yt=(0,a.Ot)(ct,this.flexGrow,this.flexShrink);this.addStyles(Yt.join(" "),{direction:ge,hasWrap:qe})}triggerReflow(){const z=this.activatedValue;if(void 0!==z){const Z=(0,a.Ot)(z+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,Z.join(" "))}}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(a.RK),e.\u0275\u0275directiveInject(a.WU),e.\u0275\u0275directiveInject($),e.\u0275\u0275directiveInject(a.yB))},ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})(),le=(()=>{class ot extends U{constructor(){super(...arguments),this.inputs=j}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})();const T=new Map,H=new Map,N=new Map,pe=new Map;let Ye=(()=>{class ot extends a.QI{constructor(z){super(),this._config=z}buildStyles(z,Z){z||(z="0"),z=(0,a.FL)(z,this._config.multiplier);const ge=String(z).indexOf("%")>-1;!(String(z).indexOf("px")>-1)&&!ge&&!isNaN(+z)&&(z=`${z}%`);const qe=Z.isRtl?"margin-right":"margin-left";return(0,t.tj)(Z.layout)?{[qe]:z}:{"margin-top":z}}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(a.WU))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac,providedIn:"root"}),ot})();const wt=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"];let Ut=(()=>{class ot extends a.iR{constructor(z,Z,ge,Qe,qe){super(z,ge,qe,Qe),this.directionality=Z,this.DIRECTIVE_KEY="flex-offset",this.init([this.directionality.change]),this.parentElement&&this.marshal.trackValue(this.parentElement,"layout-gap").pipe((0,h.R)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))}updateWithValue(z=""){const Z=this.getFlexFlowDirection(this.parentElement,!0),ge="rtl"===this.directionality.value;"row"===Z&&ge?this.styleCache=Zt:"row"!==Z||ge?"column"===Z&&ge?this.styleCache=Fe:"column"===Z&&!ge&&(this.styleCache=ie):this.styleCache=yt,this.addStyles(z+"",{layout:Z,isRtl:ge})}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.Is),e.\u0275\u0275directiveInject(Ye),e.\u0275\u0275directiveInject(a.yB),e.\u0275\u0275directiveInject(a.RK))},ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})(),nt=(()=>{class ot extends Ut{constructor(){super(...arguments),this.inputs=wt}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})();const Zt=new Map,Fe=new Map,yt=new Map,ie=new Map;let Ce=(()=>{class ot extends a.QI{buildStyles(z){const Z={};switch(z=z||"stretch"){case"start":Z["align-self"]="flex-start";break;case"end":Z["align-self"]="flex-end";break;default:Z["align-self"]=z}return Z}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac,providedIn:"root"}),ot})();const Ie=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let Mt=(()=>{class ot extends a.iR{constructor(z,Z,ge,Qe){super(z,ge,Z,Qe),this.DIRECTIVE_KEY="flex-align",this.styleCache=Xt,this.init()}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(a.RK),e.\u0275\u0275directiveInject(Ce),e.\u0275\u0275directiveInject(a.yB))},ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})();const Xt=new Map;let en=(()=>{class ot extends Mt{constructor(){super(...arguments),this.inputs=Ie}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})();const vt={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let xt=(()=>{class ot extends a.QI{buildStyles(z){return vt}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac,providedIn:"root"}),ot})(),zt=(()=>{class ot extends a.iR{constructor(z,Z,ge,Qe){super(z,ge,Z,Qe),this.styleCache=bt,this.addStyles("")}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(a.RK),e.\u0275\u0275directiveInject(xt),e.\u0275\u0275directiveInject(a.yB))},ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})();const bt=new Map;let At=(()=>{class ot extends a.QI{buildStyles(z,Z){const ge={},[Qe,qe]=z.split(" ");switch(Qe){case"center":ge["justify-content"]="center";break;case"space-around":ge["justify-content"]="space-around";break;case"space-between":ge["justify-content"]="space-between";break;case"space-evenly":ge["justify-content"]="space-evenly";break;case"end":case"flex-end":ge["justify-content"]="flex-end";break;default:ge["justify-content"]="flex-start"}switch(qe){case"start":case"flex-start":ge["align-items"]=ge["align-content"]="flex-start";break;case"center":ge["align-items"]=ge["align-content"]="center";break;case"end":case"flex-end":ge["align-items"]=ge["align-content"]="flex-end";break;case"space-between":ge["align-content"]="space-between",ge["align-items"]="stretch";break;case"space-around":ge["align-content"]="space-around",ge["align-items"]="stretch";break;case"baseline":ge["align-content"]="stretch",ge["align-items"]="baseline";break;default:ge["align-items"]=ge["align-content"]="stretch"}return(0,t.kt)(ge,{display:Z.inline?"inline-flex":"flex","flex-direction":Z.layout,"box-sizing":"border-box","max-width":"stretch"===qe?(0,t.tj)(Z.layout)?null:"100%":null,"max-height":"stretch"===qe&&(0,t.tj)(Z.layout)?"100%":null})}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac,providedIn:"root"}),ot})();const $e=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let Pe=(()=>{class ot extends a.iR{constructor(z,Z,ge,Qe){super(z,ge,Z,Qe),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,h.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(z){const Z=this.layout||"row",ge=this.inline;"row"===Z&&ge?this.styleCache=Jt:"row"!==Z||ge?"row-reverse"===Z&&ge?this.styleCache=Ae:"row-reverse"!==Z||ge?"column"===Z&&ge?this.styleCache=ke:"column"!==Z||ge?"column-reverse"===Z&&ge?this.styleCache=ze:"column-reverse"===Z&&!ge&&(this.styleCache=_n):this.styleCache=It:this.styleCache=xn:this.styleCache=mt,this.addStyles(z,{layout:Z,inline:ge})}onLayoutChange(z){const Z=z.value.split(" ");this.layout=Z[0],this.inline=z.value.includes("inline"),t.iQ.find(ge=>ge===this.layout)||(this.layout="row"),this.triggerUpdate()}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(a.RK),e.\u0275\u0275directiveInject(At),e.\u0275\u0275directiveInject(a.yB))},ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})(),Ve=(()=>{class ot extends Pe{constructor(){super(...arguments),this.inputs=$e}}return ot.\u0275fac=function(){let Et;return function(Z){return(Et||(Et=e.\u0275\u0275getInheritedFactory(ot)))(Z||ot)}}(),ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[e.\u0275\u0275InheritDefinitionFeature]}),ot})();const mt=new Map,It=new Map,xn=new Map,_n=new Map,Jt=new Map,ke=new Map,Ae=new Map,ze=new Map;let tn=(()=>{class ot{}return ot.\u0275fac=function(z){return new(z||ot)},ot.\u0275mod=e.\u0275\u0275defineNgModule({type:ot}),ot.\u0275inj=e.\u0275\u0275defineInjector({imports:[a.IR,n.vT]}),ot})()},69814:(oe,x,i)=>{"use strict";i.d(x,{o9:()=>Si});var e=i(94650),n=i(32233),a=i(55829),t=i(1576);i(21281);let On=(()=>{class un{}return un.\u0275fac=function($t){return new($t||un)},un.\u0275mod=e.\u0275\u0275defineNgModule({type:un}),un.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.IR]}),un})();var Qn=i(36895);let Si=(()=>{class un{constructor($t,Nt){(0,Qn.isPlatformServer)(Nt)&&!$t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig($t,Nt=[]){return{ngModule:un,providers:$t.serverLoaded?[{provide:n.WU,useValue:{...n.g5,...$t}},{provide:n.Bs,useValue:Nt,multi:!0},{provide:n.wY,useValue:!0}]:[{provide:n.WU,useValue:{...n.g5,...$t}},{provide:n.Bs,useValue:Nt,multi:!0}]}}}return un.\u0275fac=function($t){return new($t||un)(e.\u0275\u0275inject(n.wY),e.\u0275\u0275inject(e.PLATFORM_ID))},un.\u0275mod=e.\u0275\u0275defineNgModule({type:un}),un.\u0275inj=e.\u0275\u0275defineInjector({imports:[t.ae,a.aT,On,t.ae,a.aT,On]}),un})()},24006:(oe,x,i)=>{"use strict";i.d(x,{CE:()=>Ar,Cf:()=>A,F:()=>gi,Fj:()=>b,JJ:()=>dt,JL:()=>Mt,JU:()=>d,NI:()=>Mr,On:()=>ri,Q7:()=>Se,QS:()=>_a,UX:()=>va,Wl:()=>u,Zs:()=>ut,_Y:()=>vi,a5:()=>yt,c5:()=>zi,cw:()=>it,gN:()=>Fe,kI:()=>V,nD:()=>hi,nJ:()=>Be,oH:()=>Bn,p4:()=>ti,qu:()=>Pa,sg:()=>Lt,u:()=>xo,u5:()=>yr,vC:()=>wo,wV:()=>cr,x0:()=>Di});var e=i(94650),n=i(36895),a=i(88996),t=i(4128),l=i(54004);let h=(()=>{class Tt{constructor(Ze,vn){this._renderer=Ze,this._elementRef=vn,this.onChange=Ci=>{},this.onTouched=()=>{}}setProperty(Ze,vn){this._renderer.setProperty(this._elementRef.nativeElement,Ze,vn)}registerOnTouched(Ze){this.onTouched=Ze}registerOnChange(Ze){this.onChange=Ze}setDisabledState(Ze){this.setProperty("disabled",Ze)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(e.ElementRef))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt}),Tt})(),s=(()=>{class Tt extends h{}return Tt.\u0275fac=function(){let Ct;return function(vn){return(Ct||(Ct=e.\u0275\u0275getInheritedFactory(Tt)))(vn||Tt)}}(),Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,features:[e.\u0275\u0275InheritDefinitionFeature]}),Tt})();const d=new e.InjectionToken("NgValueAccessor"),p={provide:d,useExisting:(0,e.forwardRef)(()=>u),multi:!0};let u=(()=>{class Tt extends s{writeValue(Ze){this.setProperty("checked",Ze)}}return Tt.\u0275fac=function(){let Ct;return function(vn){return(Ct||(Ct=e.\u0275\u0275getInheritedFactory(Tt)))(vn||Tt)}}(),Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Ze,vn){1&Ze&&e.\u0275\u0275listener("change",function(rr){return vn.onChange(rr.target.checked)})("blur",function(){return vn.onTouched()})},features:[e.\u0275\u0275ProvidersFeature([p]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})();const g={provide:d,useExisting:(0,e.forwardRef)(()=>b),multi:!0},y=new e.InjectionToken("CompositionEventMode");let b=(()=>{class Tt extends h{constructor(Ze,vn,Ci){super(Ze,vn),this._compositionMode=Ci,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function v(){const Tt=(0,n.\u0275getDOM)()?(0,n.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(Tt.toLowerCase())}())}writeValue(Ze){this.setProperty("value",Ze??"")}_handleInput(Ze){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ze)}_compositionStart(){this._composing=!0}_compositionEnd(Ze){this._composing=!1,this._compositionMode&&this.onChange(Ze)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(y,8))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,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(Ze,vn){1&Ze&&e.\u0275\u0275listener("input",function(rr){return vn._handleInput(rr.target.value)})("blur",function(){return vn.onTouched()})("compositionstart",function(){return vn._compositionStart()})("compositionend",function(rr){return vn._compositionEnd(rr.target.value)})},features:[e.\u0275\u0275ProvidersFeature([g]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})();const S=!1;function E(Tt){return null==Tt||("string"==typeof Tt||Array.isArray(Tt))&&0===Tt.length}function D(Tt){return null!=Tt&&"number"==typeof Tt.length}const A=new e.InjectionToken("NgValidators"),P=new e.InjectionToken("NgAsyncValidators"),B=/^(?=.{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 V{static min(Ct){return function X(Tt){return Ct=>{if(E(Ct.value)||E(Tt))return null;const Ze=parseFloat(Ct.value);return!isNaN(Ze)&&Ze<Tt?{min:{min:Tt,actual:Ct.value}}:null}}(Ct)}static max(Ct){return function re(Tt){return Ct=>{if(E(Ct.value)||E(Tt))return null;const Ze=parseFloat(Ct.value);return!isNaN(Ze)&&Ze>Tt?{max:{max:Tt,actual:Ct.value}}:null}}(Ct)}static required(Ct){return Q(Ct)}static requiredTrue(Ct){return ae(Ct)}static email(Ct){return function K(Tt){return E(Tt.value)||B.test(Tt.value)?null:{email:!0}}(Ct)}static minLength(Ct){return function k(Tt){return Ct=>E(Ct.value)||!D(Ct.value)?null:Ct.value.length<Tt?{minlength:{requiredLength:Tt,actualLength:Ct.value.length}}:null}(Ct)}static maxLength(Ct){return $(Ct)}static pattern(Ct){return j(Ct)}static nullValidator(Ct){return null}static compose(Ct){return de(Ct)}static composeAsync(Ct){return q(Ct)}}function Q(Tt){return E(Tt.value)?{required:!0}:null}function ae(Tt){return!0===Tt.value?null:{required:!0}}function $(Tt){return Ct=>D(Ct.value)&&Ct.value.length>Tt?{maxlength:{requiredLength:Tt,actualLength:Ct.value.length}}:null}function j(Tt){if(!Tt)return R;let Ct,Ze;return"string"==typeof Tt?(Ze="","^"!==Tt.charAt(0)&&(Ze+="^"),Ze+=Tt,"$"!==Tt.charAt(Tt.length-1)&&(Ze+="$"),Ct=new RegExp(Ze)):(Ze=Tt.toString(),Ct=Tt),vn=>{if(E(vn.value))return null;const Ci=vn.value;return Ct.test(Ci)?null:{pattern:{requiredPattern:Ze,actualValue:Ci}}}}function R(Tt){return null}function U(Tt){return null!=Tt}function le(Tt){const Ct=(0,e.\u0275isPromise)(Tt)?(0,a.D)(Tt):Tt;if(S&&!(0,e.\u0275isObservable)(Ct)){let Ze="Expected async validator to return Promise or Observable.";throw"object"==typeof Tt&&(Ze+=" Are you using a synchronous validator where an async validator is expected?"),new e.\u0275RuntimeError(-1101,Ze)}return Ct}function T(Tt){let Ct={};return Tt.forEach(Ze=>{Ct=null!=Ze?{...Ct,...Ze}:Ct}),0===Object.keys(Ct).length?null:Ct}function H(Tt,Ct){return Ct.map(Ze=>Ze(Tt))}function pe(Tt){return Tt.map(Ct=>function N(Tt){return!Tt.validate}(Ct)?Ct:Ze=>Ct.validate(Ze))}function de(Tt){if(!Tt)return null;const Ct=Tt.filter(U);return 0==Ct.length?null:function(Ze){return T(H(Ze,Ct))}}function me(Tt){return null!=Tt?de(pe(Tt)):null}function q(Tt){if(!Tt)return null;const Ct=Tt.filter(U);return 0==Ct.length?null:function(Ze){const vn=H(Ze,Ct).map(le);return(0,t.D)(vn).pipe((0,l.U)(T))}}function se(Tt){return null!=Tt?q(pe(Tt)):null}function ve(Tt,Ct){return null===Tt?[Ct]:Array.isArray(Tt)?[...Tt,Ct]:[Tt,Ct]}function Ee(Tt){return Tt._rawValidators}function Ye(Tt){return Tt._rawAsyncValidators}function wt(Tt){return Tt?Array.isArray(Tt)?Tt:[Tt]:[]}function Wt(Tt,Ct){return Array.isArray(Tt)?Tt.includes(Ct):Tt===Ct}function Ut(Tt,Ct){const Ze=wt(Ct);return wt(Tt).forEach(Ci=>{Wt(Ze,Ci)||Ze.push(Ci)}),Ze}function nt(Tt,Ct){return wt(Ct).filter(Ze=>!Wt(Tt,Ze))}class Zt{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(Ct){this._rawValidators=Ct||[],this._composedValidatorFn=me(this._rawValidators)}_setAsyncValidators(Ct){this._rawAsyncValidators=Ct||[],this._composedAsyncValidatorFn=se(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ct){this._onDestroyCallbacks.push(Ct)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ct=>Ct()),this._onDestroyCallbacks=[]}reset(Ct){this.control&&this.control.reset(Ct)}hasError(Ct,Ze){return!!this.control&&this.control.hasError(Ct,Ze)}getError(Ct,Ze){return this.control?this.control.getError(Ct,Ze):null}}class Fe extends Zt{get formDirective(){return null}get path(){return null}}class yt extends Zt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ie{constructor(Ct){this._cd=Ct}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let dt=(()=>{class Tt extends ie{constructor(Ze){super(Ze)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(yt,2))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ze,vn){2&Ze&&e.\u0275\u0275classProp("ng-untouched",vn.isUntouched)("ng-touched",vn.isTouched)("ng-pristine",vn.isPristine)("ng-dirty",vn.isDirty)("ng-valid",vn.isValid)("ng-invalid",vn.isInvalid)("ng-pending",vn.isPending)},features:[e.\u0275\u0275InheritDefinitionFeature]}),Tt})(),Mt=(()=>{class Tt extends ie{constructor(Ze){super(Ze)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(Fe,10))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ze,vn){2&Ze&&e.\u0275\u0275classProp("ng-untouched",vn.isUntouched)("ng-touched",vn.isTouched)("ng-pristine",vn.isPristine)("ng-dirty",vn.isDirty)("ng-valid",vn.isValid)("ng-invalid",vn.isInvalid)("ng-pending",vn.isPending)("ng-submitted",vn.isSubmitted)},features:[e.\u0275\u0275InheritDefinitionFeature]}),Tt})();function xn(Tt,Ct){return Tt?`with name: '${Ct}'`:`at index: ${Ct}`}const Ae=!1,ze="VALID",pt="INVALID",tn="PENDING",ot="DISABLED";function Et(Tt){return(Qe(Tt)?Tt.validators:Tt)||null}function Z(Tt,Ct){return(Qe(Ct)?Ct.asyncValidators:Tt)||null}function Qe(Tt){return null!=Tt&&!Array.isArray(Tt)&&"object"==typeof Tt}function qe(Tt,Ct,Ze){const vn=Tt.controls;if(!(Ct?Object.keys(vn):vn).length)throw new e.\u0275RuntimeError(1e3,Ae?function _n(Tt){return`\n    There are no form controls registered with this ${Tt?"group":"array"} yet. If you're using ngModel,\n    you may want to check next tick (e.g. use setTimeout).\n  `}(Ct):"");if(!vn[Ze])throw new e.\u0275RuntimeError(1001,Ae?function Jt(Tt,Ct){return`Cannot find form control ${xn(Tt,Ct)}`}(Ct,Ze):"")}function ct(Tt,Ct,Ze){Tt._forEachChild((vn,Ci)=>{if(void 0===Ze[Ci])throw new e.\u0275RuntimeError(1002,Ae?function ke(Tt,Ct){return`Must supply a value for form control ${xn(Tt,Ct)}`}(Ct,Ci):"")})}class Yt{constructor(Ct,Ze){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Ct),this._assignAsyncValidators(Ze)}get validator(){return this._composedValidatorFn}set validator(Ct){this._rawValidators=this._composedValidatorFn=Ct}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ct){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ct}get parent(){return this._parent}get valid(){return this.status===ze}get invalid(){return this.status===pt}get pending(){return this.status==tn}get disabled(){return this.status===ot}get enabled(){return this.status!==ot}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ct){this._assignValidators(Ct)}setAsyncValidators(Ct){this._assignAsyncValidators(Ct)}addValidators(Ct){this.setValidators(Ut(Ct,this._rawValidators))}addAsyncValidators(Ct){this.setAsyncValidators(Ut(Ct,this._rawAsyncValidators))}removeValidators(Ct){this.setValidators(nt(Ct,this._rawValidators))}removeAsyncValidators(Ct){this.setAsyncValidators(nt(Ct,this._rawAsyncValidators))}hasValidator(Ct){return Wt(this._rawValidators,Ct)}hasAsyncValidator(Ct){return Wt(this._rawAsyncValidators,Ct)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ct={}){this.touched=!0,this._parent&&!Ct.onlySelf&&this._parent.markAsTouched(Ct)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Ct=>Ct.markAllAsTouched())}markAsUntouched(Ct={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ze=>{Ze.markAsUntouched({onlySelf:!0})}),this._parent&&!Ct.onlySelf&&this._parent._updateTouched(Ct)}markAsDirty(Ct={}){this.pristine=!1,this._parent&&!Ct.onlySelf&&this._parent.markAsDirty(Ct)}markAsPristine(Ct={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ze=>{Ze.markAsPristine({onlySelf:!0})}),this._parent&&!Ct.onlySelf&&this._parent._updatePristine(Ct)}markAsPending(Ct={}){this.status=tn,!1!==Ct.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ct.onlySelf&&this._parent.markAsPending(Ct)}disable(Ct={}){const Ze=this._parentMarkedDirty(Ct.onlySelf);this.status=ot,this.errors=null,this._forEachChild(vn=>{vn.disable({...Ct,onlySelf:!0})}),this._updateValue(),!1!==Ct.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Ct,skipPristineCheck:Ze}),this._onDisabledChange.forEach(vn=>vn(!0))}enable(Ct={}){const Ze=this._parentMarkedDirty(Ct.onlySelf);this.status=ze,this._forEachChild(vn=>{vn.enable({...Ct,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ct.emitEvent}),this._updateAncestors({...Ct,skipPristineCheck:Ze}),this._onDisabledChange.forEach(vn=>vn(!1))}_updateAncestors(Ct){this._parent&&!Ct.onlySelf&&(this._parent.updateValueAndValidity(Ct),Ct.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ct){this._parent=Ct}getRawValue(){return this.value}updateValueAndValidity(Ct={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ze||this.status===tn)&&this._runAsyncValidator(Ct.emitEvent)),!1!==Ct.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ct.onlySelf&&this._parent.updateValueAndValidity(Ct)}_updateTreeValidity(Ct={emitEvent:!0}){this._forEachChild(Ze=>Ze._updateTreeValidity(Ct)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ct.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ot:ze}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ct){if(this.asyncValidator){this.status=tn,this._hasOwnPendingAsyncValidator=!0;const Ze=le(this.asyncValidator(this));this._asyncValidationSubscription=Ze.subscribe(vn=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(vn,{emitEvent:Ct})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ct,Ze={}){this.errors=Ct,this._updateControlsErrors(!1!==Ze.emitEvent)}get(Ct){let Ze=Ct;return null==Ze||(Array.isArray(Ze)||(Ze=Ze.split(".")),0===Ze.length)?null:Ze.reduce((vn,Ci)=>vn&&vn._find(Ci),this)}getError(Ct,Ze){const vn=Ze?this.get(Ze):this;return vn&&vn.errors?vn.errors[Ct]:null}hasError(Ct,Ze){return!!this.getError(Ct,Ze)}get root(){let Ct=this;for(;Ct._parent;)Ct=Ct._parent;return Ct}_updateControlsErrors(Ct){this.status=this._calculateStatus(),Ct&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ct)}_initObservables(){this.valueChanges=new e.EventEmitter,this.statusChanges=new e.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?ot:this.errors?pt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(tn)?tn:this._anyControlsHaveStatus(pt)?pt:ze}_anyControlsHaveStatus(Ct){return this._anyControls(Ze=>Ze.status===Ct)}_anyControlsDirty(){return this._anyControls(Ct=>Ct.dirty)}_anyControlsTouched(){return this._anyControls(Ct=>Ct.touched)}_updatePristine(Ct={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ct.onlySelf&&this._parent._updatePristine(Ct)}_updateTouched(Ct={}){this.touched=this._anyControlsTouched(),this._parent&&!Ct.onlySelf&&this._parent._updateTouched(Ct)}_registerOnCollectionChange(Ct){this._onCollectionChange=Ct}_setUpdateStrategy(Ct){Qe(Ct)&&null!=Ct.updateOn&&(this._updateOn=Ct.updateOn)}_parentMarkedDirty(Ct){return!Ct&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Ct){return null}_assignValidators(Ct){this._rawValidators=Array.isArray(Ct)?Ct.slice():Ct,this._composedValidatorFn=function z(Tt){return Array.isArray(Tt)?me(Tt):Tt||null}(this._rawValidators)}_assignAsyncValidators(Ct){this._rawAsyncValidators=Array.isArray(Ct)?Ct.slice():Ct,this._composedAsyncValidatorFn=function ge(Tt){return Array.isArray(Tt)?se(Tt):Tt||null}(this._rawAsyncValidators)}}class it extends Yt{constructor(Ct,Ze,vn){super(Et(Ze),Z(vn,Ze)),this.controls=Ct,this._initObservables(),this._setUpdateStrategy(Ze),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ct,Ze){return this.controls[Ct]?this.controls[Ct]:(this.controls[Ct]=Ze,Ze.setParent(this),Ze._registerOnCollectionChange(this._onCollectionChange),Ze)}addControl(Ct,Ze,vn={}){this.registerControl(Ct,Ze),this.updateValueAndValidity({emitEvent:vn.emitEvent}),this._onCollectionChange()}removeControl(Ct,Ze={}){this.controls[Ct]&&this.controls[Ct]._registerOnCollectionChange(()=>{}),delete this.controls[Ct],this.updateValueAndValidity({emitEvent:Ze.emitEvent}),this._onCollectionChange()}setControl(Ct,Ze,vn={}){this.controls[Ct]&&this.controls[Ct]._registerOnCollectionChange(()=>{}),delete this.controls[Ct],Ze&&this.registerControl(Ct,Ze),this.updateValueAndValidity({emitEvent:vn.emitEvent}),this._onCollectionChange()}contains(Ct){return this.controls.hasOwnProperty(Ct)&&this.controls[Ct].enabled}setValue(Ct,Ze={}){ct(this,!0,Ct),Object.keys(Ct).forEach(vn=>{qe(this,!0,vn),this.controls[vn].setValue(Ct[vn],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze)}patchValue(Ct,Ze={}){null!=Ct&&(Object.keys(Ct).forEach(vn=>{const Ci=this.controls[vn];Ci&&Ci.patchValue(Ct[vn],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze))}reset(Ct={},Ze={}){this._forEachChild((vn,Ci)=>{vn.reset(Ct[Ci],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this._updatePristine(Ze),this._updateTouched(Ze),this.updateValueAndValidity(Ze)}getRawValue(){return this._reduceChildren({},(Ct,Ze,vn)=>(Ct[vn]=Ze.getRawValue(),Ct))}_syncPendingControls(){let Ct=this._reduceChildren(!1,(Ze,vn)=>!!vn._syncPendingControls()||Ze);return Ct&&this.updateValueAndValidity({onlySelf:!0}),Ct}_forEachChild(Ct){Object.keys(this.controls).forEach(Ze=>{const vn=this.controls[Ze];vn&&Ct(vn,Ze)})}_setUpControls(){this._forEachChild(Ct=>{Ct.setParent(this),Ct._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ct){for(const[Ze,vn]of Object.entries(this.controls))if(this.contains(Ze)&&Ct(vn))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ze,vn,Ci)=>((vn.enabled||this.disabled)&&(Ze[Ci]=vn.value),Ze))}_reduceChildren(Ct,Ze){let vn=Ct;return this._forEachChild((Ci,rr)=>{vn=Ze(vn,Ci,rr)}),vn}_allControlsDisabled(){for(const Ct of Object.keys(this.controls))if(this.controls[Ct].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Ct){return this.controls.hasOwnProperty(Ct)?this.controls[Ct]:null}}const Be=it;class ue extends it{}const ee=new e.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>De}),De="always";function Ot(Tt,Ct){return[...Ct.path,Tt]}function cn(Tt,Ct,Ze=De){Nn(Tt,Ct),Ct.valueAccessor.writeValue(Tt.value),(Tt.disabled||"always"===Ze)&&Ct.valueAccessor.setDisabledState?.(Tt.disabled),function On(Tt,Ct){Ct.valueAccessor.registerOnChange(Ze=>{Tt._pendingValue=Ze,Tt._pendingChange=!0,Tt._pendingDirty=!0,"change"===Tt.updateOn&&Ti(Tt,Ct)})}(Tt,Ct),function Si(Tt,Ct){const Ze=(vn,Ci)=>{Ct.valueAccessor.writeValue(vn),Ci&&Ct.viewToModelUpdate(vn)};Tt.registerOnChange(Ze),Ct._registerOnDestroy(()=>{Tt._unregisterOnChange(Ze)})}(Tt,Ct),function Qn(Tt,Ct){Ct.valueAccessor.registerOnTouched(()=>{Tt._pendingTouched=!0,"blur"===Tt.updateOn&&Tt._pendingChange&&Ti(Tt,Ct),"submit"!==Tt.updateOn&&Tt.markAsTouched()})}(Tt,Ct),function Ni(Tt,Ct){if(Ct.valueAccessor.setDisabledState){const Ze=vn=>{Ct.valueAccessor.setDisabledState(vn)};Tt.registerOnDisabledChange(Ze),Ct._registerOnDestroy(()=>{Tt._unregisterOnDisabledChange(Ze)})}}(Tt,Ct)}function Gn(Tt,Ct,Ze=!0){const vn=()=>{};Ct.valueAccessor&&(Ct.valueAccessor.registerOnChange(vn),Ct.valueAccessor.registerOnTouched(vn)),Mn(Tt,Ct),Tt&&(Ct._invokeOnDestroyCallbacks(),Tt._registerOnCollectionChange(()=>{}))}function _i(Tt,Ct){Tt.forEach(Ze=>{Ze.registerOnValidatorChange&&Ze.registerOnValidatorChange(Ct)})}function Nn(Tt,Ct){const Ze=Ee(Tt);null!==Ct.validator?Tt.setValidators(ve(Ze,Ct.validator)):"function"==typeof Ze&&Tt.setValidators([Ze]);const vn=Ye(Tt);null!==Ct.asyncValidator?Tt.setAsyncValidators(ve(vn,Ct.asyncValidator)):"function"==typeof vn&&Tt.setAsyncValidators([vn]);const Ci=()=>Tt.updateValueAndValidity();_i(Ct._rawValidators,Ci),_i(Ct._rawAsyncValidators,Ci)}function Mn(Tt,Ct){let Ze=!1;if(null!==Tt){if(null!==Ct.validator){const Ci=Ee(Tt);if(Array.isArray(Ci)&&Ci.length>0){const rr=Ci.filter(oo=>oo!==Ct.validator);rr.length!==Ci.length&&(Ze=!0,Tt.setValidators(rr))}}if(null!==Ct.asyncValidator){const Ci=Ye(Tt);if(Array.isArray(Ci)&&Ci.length>0){const rr=Ci.filter(oo=>oo!==Ct.asyncValidator);rr.length!==Ci.length&&(Ze=!0,Tt.setAsyncValidators(rr))}}}const vn=()=>{};return _i(Ct._rawValidators,vn),_i(Ct._rawAsyncValidators,vn),Ze}function Ti(Tt,Ct){Tt._pendingDirty&&Tt.markAsDirty(),Tt.setValue(Tt._pendingValue,{emitModelToViewChange:!1}),Ct.viewToModelUpdate(Tt._pendingValue),Tt._pendingChange=!1}function un(Tt,Ct){Nn(Tt,Ct)}function ir(Tt,Ct){if(!Tt.hasOwnProperty("model"))return!1;const Ze=Tt.model;return!!Ze.isFirstChange()||!Object.is(Ct,Ze.currentValue)}function Ln(Tt,Ct){Tt._syncPendingControls(),Ct.forEach(Ze=>{const vn=Ze.control;"submit"===vn.updateOn&&vn._pendingChange&&(Ze.viewToModelUpdate(vn._pendingValue),vn._pendingChange=!1)})}function Vn(Tt,Ct){if(!Ct)return null;let Ze,vn,Ci;return Array.isArray(Ct),Ct.forEach(rr=>{rr.constructor===b?Ze=rr:function dr(Tt){return Object.getPrototypeOf(Tt.constructor)===s}(rr)?vn=rr:Ci=rr}),Ci||vn||Ze||null}const dn={provide:Fe,useExisting:(0,e.forwardRef)(()=>gi)},En=(()=>Promise.resolve())();let gi=(()=>{class Tt extends Fe{constructor(Ze,vn,Ci){super(),this.callSetDisabledState=Ci,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.EventEmitter,this.form=new it({},me(Ze),se(vn))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ze){En.then(()=>{const vn=this._findContainer(Ze.path);Ze.control=vn.registerControl(Ze.name,Ze.control),cn(Ze.control,Ze,this.callSetDisabledState),Ze.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ze)})}getControl(Ze){return this.form.get(Ze.path)}removeControl(Ze){En.then(()=>{const vn=this._findContainer(Ze.path);vn&&vn.removeControl(Ze.name),this._directives.delete(Ze)})}addFormGroup(Ze){En.then(()=>{const vn=this._findContainer(Ze.path),Ci=new it({});un(Ci,Ze),vn.registerControl(Ze.name,Ci),Ci.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ze){En.then(()=>{const vn=this._findContainer(Ze.path);vn&&vn.removeControl(Ze.name)})}getFormGroup(Ze){return this.form.get(Ze.path)}updateModel(Ze,vn){En.then(()=>{this.form.get(Ze.path).setValue(vn)})}setValue(Ze){this.control.setValue(Ze)}onSubmit(Ze){return this.submitted=!0,Ln(this.form,this._directives),this.ngSubmit.emit(Ze),"dialog"===Ze?.target?.method}onReset(){this.resetForm()}resetForm(Ze){this.form.reset(Ze),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ze){return Ze.pop(),Ze.length?this.form.get(Ze):this.form}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(A,10),e.\u0275\u0275directiveInject(P,10),e.\u0275\u0275directiveInject(ee,8))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ze,vn){1&Ze&&e.\u0275\u0275listener("submit",function(rr){return vn.onSubmit(rr)})("reset",function(){return vn.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e.\u0275\u0275ProvidersFeature([dn]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})();function $i(Tt,Ct){const Ze=Tt.indexOf(Ct);Ze>-1&&Tt.splice(Ze,1)}function fr(Tt){return"object"==typeof Tt&&null!==Tt&&2===Object.keys(Tt).length&&"value"in Tt&&"disabled"in Tt}const Mr=class extends Yt{constructor(Ct=null,Ze,vn){super(Et(Ze),Z(vn,Ze)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ct),this._setUpdateStrategy(Ze),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Qe(Ze)&&(Ze.nonNullable||Ze.initialValueIsDefault)&&(this.defaultValue=fr(Ct)?Ct.value:Ct)}setValue(Ct,Ze={}){this.value=this._pendingValue=Ct,this._onChange.length&&!1!==Ze.emitModelToViewChange&&this._onChange.forEach(vn=>vn(this.value,!1!==Ze.emitViewToModelChange)),this.updateValueAndValidity(Ze)}patchValue(Ct,Ze={}){this.setValue(Ct,Ze)}reset(Ct=this.defaultValue,Ze={}){this._applyFormState(Ct),this.markAsPristine(Ze),this.markAsUntouched(Ze),this.setValue(this.value,Ze),this._pendingChange=!1}_updateValue(){}_anyControls(Ct){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ct){this._onChange.push(Ct)}_unregisterOnChange(Ct){$i(this._onChange,Ct)}registerOnDisabledChange(Ct){this._onDisabledChange.push(Ct)}_unregisterOnDisabledChange(Ct){$i(this._onDisabledChange,Ct)}_forEachChild(Ct){}_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(Ct){fr(Ct)?(this.value=this._pendingValue=Ct.value,Ct.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ct}},ti=Mr;let on=(()=>{class Tt extends Fe{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Ot(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return Tt.\u0275fac=function(){let Ct;return function(vn){return(Ct||(Ct=e.\u0275\u0275getInheritedFactory(Tt)))(vn||Tt)}}(),Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,features:[e.\u0275\u0275InheritDefinitionFeature]}),Tt})();const Fn={provide:yt,useExisting:(0,e.forwardRef)(()=>ri)},jn=(()=>Promise.resolve())();let ri=(()=>{class Tt extends yt{constructor(Ze,vn,Ci,rr,oo,Oi){super(),this._changeDetectorRef=oo,this.callSetDisabledState=Oi,this.control=new Mr,this._registered=!1,this.update=new e.EventEmitter,this._parent=Ze,this._setValidators(vn),this._setAsyncValidators(Ci),this.valueAccessor=Vn(0,rr)}ngOnChanges(Ze){if(this._checkForErrors(),!this._registered||"name"in Ze){if(this._registered&&(this._checkName(),this.formDirective)){const vn=Ze.name.previousValue;this.formDirective.removeControl({name:vn,path:this._getPath(vn)})}this._setUpControl()}"isDisabled"in Ze&&this._updateDisabled(Ze),ir(Ze,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(Ze){this.viewModel=Ze,this.update.emit(Ze)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){cn(this.control,this,this.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(Ze){jn.then(()=>{this.control.setValue(Ze,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ze){const vn=Ze.isDisabled.currentValue,Ci=0!==vn&&(0,e.\u0275coerceToBoolean)(vn);jn.then(()=>{Ci&&!this.control.disabled?this.control.disable():!Ci&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ze){return this._parent?Ot(Ze,this._parent):[Ze]}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(Fe,9),e.\u0275\u0275directiveInject(A,10),e.\u0275\u0275directiveInject(P,10),e.\u0275\u0275directiveInject(d,10),e.\u0275\u0275directiveInject(e.ChangeDetectorRef,8),e.\u0275\u0275directiveInject(ee,8))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e.\u0275\u0275ProvidersFeature([Fn]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]}),Tt})(),vi=(()=>{class Tt{}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Tt})();const Ii={provide:d,useExisting:(0,e.forwardRef)(()=>cr),multi:!0};let cr=(()=>{class Tt extends s{writeValue(Ze){this.setProperty("value",Ze??"")}registerOnChange(Ze){this.onChange=vn=>{Ze(""==vn?null:parseFloat(vn))}}}return Tt.\u0275fac=function(){let Ct;return function(vn){return(Ct||(Ct=e.\u0275\u0275getInheritedFactory(Tt)))(vn||Tt)}}(),Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ze,vn){1&Ze&&e.\u0275\u0275listener("input",function(rr){return vn.onChange(rr.target.value)})("blur",function(){return vn.onTouched()})},features:[e.\u0275\u0275ProvidersFeature([Ii]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})(),kr=(()=>{class Tt{}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275mod=e.\u0275\u0275defineNgModule({type:Tt}),Tt.\u0275inj=e.\u0275\u0275defineInjector({}),Tt})();const Br=new e.InjectionToken("NgModelWithFormControlWarning"),_o={provide:yt,useExisting:(0,e.forwardRef)(()=>Bn)};let Bn=(()=>{class Tt extends yt{set isDisabled(Ze){}constructor(Ze,vn,Ci,rr,oo){super(),this._ngModelWarningConfig=rr,this.callSetDisabledState=oo,this.update=new e.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(Ze),this._setAsyncValidators(vn),this.valueAccessor=Vn(0,Ci)}ngOnChanges(Ze){if(this._isControlChanged(Ze)){const vn=Ze.form.previousValue;vn&&Gn(vn,this,!1),cn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ir(Ze,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Gn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ze){this.viewModel=Ze,this.update.emit(Ze)}_isControlChanged(Ze){return Ze.hasOwnProperty("form")}}return Tt._ngModelWarningSentOnce=!1,Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(A,10),e.\u0275\u0275directiveInject(P,10),e.\u0275\u0275directiveInject(d,10),e.\u0275\u0275directiveInject(Br,8),e.\u0275\u0275directiveInject(ee,8))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e.\u0275\u0275ProvidersFeature([_o]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]}),Tt})();const Sn={provide:Fe,useExisting:(0,e.forwardRef)(()=>Lt)};let Lt=(()=>{class Tt extends Fe{constructor(Ze,vn,Ci){super(),this.callSetDisabledState=Ci,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.EventEmitter,this._setValidators(Ze),this._setAsyncValidators(vn)}ngOnChanges(Ze){this._checkFormPresent(),Ze.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Mn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ze){const vn=this.form.get(Ze.path);return cn(vn,Ze,this.callSetDisabledState),vn.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ze),vn}getControl(Ze){return this.form.get(Ze.path)}removeControl(Ze){Gn(Ze.control||null,Ze,!1),function Le(Tt,Ct){const Ze=Tt.indexOf(Ct);Ze>-1&&Tt.splice(Ze,1)}(this.directives,Ze)}addFormGroup(Ze){this._setUpFormContainer(Ze)}removeFormGroup(Ze){this._cleanUpFormContainer(Ze)}getFormGroup(Ze){return this.form.get(Ze.path)}addFormArray(Ze){this._setUpFormContainer(Ze)}removeFormArray(Ze){this._cleanUpFormContainer(Ze)}getFormArray(Ze){return this.form.get(Ze.path)}updateModel(Ze,vn){this.form.get(Ze.path).setValue(vn)}onSubmit(Ze){return this.submitted=!0,Ln(this.form,this.directives),this.ngSubmit.emit(Ze),"dialog"===Ze?.target?.method}onReset(){this.resetForm()}resetForm(Ze){this.form.reset(Ze),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ze=>{const vn=Ze.control,Ci=this.form.get(Ze.path);vn!==Ci&&(Gn(vn||null,Ze),(Tt=>Tt instanceof Mr)(Ci)&&(cn(Ci,Ze,this.callSetDisabledState),Ze.control=Ci))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ze){const vn=this.form.get(Ze.path);un(vn,Ze),vn.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ze){if(this.form){const vn=this.form.get(Ze.path);vn&&function rn(Tt,Ct){return Mn(Tt,Ct)}(vn,Ze)&&vn.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Nn(this.form,this),this._oldForm&&Mn(this._oldForm,this)}_checkFormPresent(){}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(A,10),e.\u0275\u0275directiveInject(P,10),e.\u0275\u0275directiveInject(ee,8))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","formGroup",""]],hostBindings:function(Ze,vn){1&Ze&&e.\u0275\u0275listener("submit",function(rr){return vn.onSubmit(rr)})("reset",function(){return vn.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e.\u0275\u0275ProvidersFeature([Sn]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]}),Tt})();const Jn={provide:Fe,useExisting:(0,e.forwardRef)(()=>Di)};let Di=(()=>{class Tt extends on{constructor(Ze,vn,Ci){super(),this._parent=Ze,this._setValidators(vn),this._setAsyncValidators(Ci)}_checkParentType(){br(this._parent)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(Fe,13),e.\u0275\u0275directiveInject(A,10),e.\u0275\u0275directiveInject(P,10))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[e.\u0275\u0275ProvidersFeature([Jn]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})();const Wi={provide:Fe,useExisting:(0,e.forwardRef)(()=>Ar)};let Ar=(()=>{class Tt extends Fe{constructor(Ze,vn,Ci){super(),this._parent=Ze,this._setValidators(vn),this._setAsyncValidators(Ci)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Ot(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){br(this._parent)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(Fe,13),e.\u0275\u0275directiveInject(A,10),e.\u0275\u0275directiveInject(P,10))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[e.\u0275\u0275ProvidersFeature([Wi]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})();function br(Tt){return!(Tt instanceof Di||Tt instanceof Lt||Tt instanceof Ar)}const bo={provide:yt,useExisting:(0,e.forwardRef)(()=>xo)};let xo=(()=>{class Tt extends yt{set isDisabled(Ze){}constructor(Ze,vn,Ci,rr,oo){super(),this._ngModelWarningConfig=oo,this._added=!1,this.update=new e.EventEmitter,this._ngModelWarningSent=!1,this._parent=Ze,this._setValidators(vn),this._setAsyncValidators(Ci),this.valueAccessor=Vn(0,rr)}ngOnChanges(Ze){this._added||this._setUpControl(),ir(Ze,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ze){this.viewModel=Ze,this.update.emit(Ze)}get path(){return Ot(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Tt._ngModelWarningSentOnce=!1,Tt.\u0275fac=function(Ze){return new(Ze||Tt)(e.\u0275\u0275directiveInject(Fe,13),e.\u0275\u0275directiveInject(A,10),e.\u0275\u0275directiveInject(P,10),e.\u0275\u0275directiveInject(d,10),e.\u0275\u0275directiveInject(Br,8))},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e.\u0275\u0275ProvidersFeature([bo]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]}),Tt})();let an=(()=>{class Tt{constructor(){this._validator=R}ngOnChanges(Ze){if(this.inputName in Ze){const vn=this.normalizeInput(Ze[this.inputName].currentValue);this._enabled=this.enabled(vn),this._validator=this._enabled?this.createValidator(vn):R,this._onChange&&this._onChange()}}validate(Ze){return this._validator(Ze)}registerOnValidatorChange(Ze){this._onChange=Ze}enabled(Ze){return null!=Ze}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,features:[e.\u0275\u0275NgOnChangesFeature]}),Tt})();const ft={provide:A,useExisting:(0,e.forwardRef)(()=>Se),multi:!0},ce={provide:A,useExisting:(0,e.forwardRef)(()=>ut),multi:!0};let Se=(()=>{class Tt extends an{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.\u0275coerceToBoolean,this.createValidator=Ze=>Q}enabled(Ze){return Ze}}return Tt.\u0275fac=function(){let Ct;return function(vn){return(Ct||(Ct=e.\u0275\u0275getInheritedFactory(Tt)))(vn||Tt)}}(),Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ze,vn){2&Ze&&e.\u0275\u0275attribute("required",vn._enabled?"":null)},inputs:{required:"required"},features:[e.\u0275\u0275ProvidersFeature([ft]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})(),ut=(()=>{class Tt extends Se{constructor(){super(...arguments),this.createValidator=Ze=>ae}}return Tt.\u0275fac=function(){let Ct;return function(vn){return(Ct||(Ct=e.\u0275\u0275getInheritedFactory(Tt)))(vn||Tt)}}(),Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ze,vn){2&Ze&&e.\u0275\u0275attribute("required",vn._enabled?"":null)},features:[e.\u0275\u0275ProvidersFeature([ce]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})();const ci={provide:A,useExisting:(0,e.forwardRef)(()=>hi),multi:!0};let hi=(()=>{class Tt extends an{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Ze=>function ui(Tt){return"number"==typeof Tt?Tt:parseInt(Tt,10)}(Ze),this.createValidator=Ze=>$(Ze)}}return Tt.\u0275fac=function(){let Ct;return function(vn){return(Ct||(Ct=e.\u0275\u0275getInheritedFactory(Tt)))(vn||Tt)}}(),Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Ze,vn){2&Ze&&e.\u0275\u0275attribute("maxlength",vn._enabled?vn.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e.\u0275\u0275ProvidersFeature([ci]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})();const Ai={provide:A,useExisting:(0,e.forwardRef)(()=>zi),multi:!0};let zi=(()=>{class Tt extends an{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Ze=>Ze,this.createValidator=Ze=>j(Ze)}}return Tt.\u0275fac=function(){let Ct;return function(vn){return(Ct||(Ct=e.\u0275\u0275getInheritedFactory(Tt)))(vn||Tt)}}(),Tt.\u0275dir=e.\u0275\u0275defineDirective({type:Tt,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Ze,vn){2&Ze&&e.\u0275\u0275attribute("pattern",vn._enabled?vn.pattern:null)},inputs:{pattern:"pattern"},features:[e.\u0275\u0275ProvidersFeature([Ai]),e.\u0275\u0275InheritDefinitionFeature]}),Tt})(),Gr=(()=>{class Tt{}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275mod=e.\u0275\u0275defineNgModule({type:Tt}),Tt.\u0275inj=e.\u0275\u0275defineInjector({imports:[kr]}),Tt})();class Io extends Yt{constructor(Ct,Ze,vn){super(Et(Ze),Z(vn,Ze)),this.controls=Ct,this._initObservables(),this._setUpdateStrategy(Ze),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ct){return this.controls[this._adjustIndex(Ct)]}push(Ct,Ze={}){this.controls.push(Ct),this._registerControl(Ct),this.updateValueAndValidity({emitEvent:Ze.emitEvent}),this._onCollectionChange()}insert(Ct,Ze,vn={}){this.controls.splice(Ct,0,Ze),this._registerControl(Ze),this.updateValueAndValidity({emitEvent:vn.emitEvent})}removeAt(Ct,Ze={}){let vn=this._adjustIndex(Ct);vn<0&&(vn=0),this.controls[vn]&&this.controls[vn]._registerOnCollectionChange(()=>{}),this.controls.splice(vn,1),this.updateValueAndValidity({emitEvent:Ze.emitEvent})}setControl(Ct,Ze,vn={}){let Ci=this._adjustIndex(Ct);Ci<0&&(Ci=0),this.controls[Ci]&&this.controls[Ci]._registerOnCollectionChange(()=>{}),this.controls.splice(Ci,1),Ze&&(this.controls.splice(Ci,0,Ze),this._registerControl(Ze)),this.updateValueAndValidity({emitEvent:vn.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ct,Ze={}){ct(this,!1,Ct),Ct.forEach((vn,Ci)=>{qe(this,!1,Ci),this.at(Ci).setValue(vn,{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze)}patchValue(Ct,Ze={}){null!=Ct&&(Ct.forEach((vn,Ci)=>{this.at(Ci)&&this.at(Ci).patchValue(vn,{onlySelf:!0,emitEvent:Ze.emitEvent})}),this.updateValueAndValidity(Ze))}reset(Ct=[],Ze={}){this._forEachChild((vn,Ci)=>{vn.reset(Ct[Ci],{onlySelf:!0,emitEvent:Ze.emitEvent})}),this._updatePristine(Ze),this._updateTouched(Ze),this.updateValueAndValidity(Ze)}getRawValue(){return this.controls.map(Ct=>Ct.getRawValue())}clear(Ct={}){this.controls.length<1||(this._forEachChild(Ze=>Ze._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ct.emitEvent}))}_adjustIndex(Ct){return Ct<0?Ct+this.length:Ct}_syncPendingControls(){let Ct=this.controls.reduce((Ze,vn)=>!!vn._syncPendingControls()||Ze,!1);return Ct&&this.updateValueAndValidity({onlySelf:!0}),Ct}_forEachChild(Ct){this.controls.forEach((Ze,vn)=>{Ct(Ze,vn)})}_updateValue(){this.value=this.controls.filter(Ct=>Ct.enabled||this.disabled).map(Ct=>Ct.value)}_anyControls(Ct){return this.controls.some(Ze=>Ze.enabled&&Ct(Ze))}_setUpControls(){this._forEachChild(Ct=>this._registerControl(Ct))}_allControlsDisabled(){for(const Ct of this.controls)if(Ct.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ct){Ct.setParent(this),Ct._registerOnCollectionChange(this._onCollectionChange)}_find(Ct){return this.at(Ct)??null}}const wo=Io;function yo(Tt){return!!Tt&&(void 0!==Tt.asyncValidators||void 0!==Tt.validators||void 0!==Tt.updateOn)}let Pa=(()=>{class Tt{constructor(){this.useNonNullable=!1}get nonNullable(){const Ze=new Tt;return Ze.useNonNullable=!0,Ze}group(Ze,vn=null){const Ci=this._reduceControls(Ze);let rr={};return yo(vn)?rr=vn:null!==vn&&(rr.validators=vn.validator,rr.asyncValidators=vn.asyncValidator),new it(Ci,rr)}record(Ze,vn=null){const Ci=this._reduceControls(Ze);return new ue(Ci,vn)}control(Ze,vn,Ci){let rr={};return this.useNonNullable?(yo(vn)?rr=vn:(rr.validators=vn,rr.asyncValidators=Ci),new Mr(Ze,{...rr,nonNullable:!0})):new Mr(Ze,vn,Ci)}array(Ze,vn,Ci){const rr=Ze.map(oo=>this._createControl(oo));return new Io(rr,vn,Ci)}_reduceControls(Ze){const vn={};return Object.keys(Ze).forEach(Ci=>{vn[Ci]=this._createControl(Ze[Ci])}),vn}_createControl(Ze){return Ze instanceof Mr||Ze instanceof Yt?Ze:Array.isArray(Ze)?this.control(Ze[0],Ze.length>1?Ze[1]:null,Ze.length>2?Ze[2]:null):this.control(Ze)}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275prov=e.\u0275\u0275defineInjectable({token:Tt,factory:Tt.\u0275fac,providedIn:"root"}),Tt})(),_a=(()=>{class Tt extends Pa{group(Ze,vn=null){return super.group(Ze,vn)}control(Ze,vn,Ci){return super.control(Ze,vn,Ci)}array(Ze,vn,Ci){return super.array(Ze,vn,Ci)}}return Tt.\u0275fac=function(){let Ct;return function(vn){return(Ct||(Ct=e.\u0275\u0275getInheritedFactory(Tt)))(vn||Tt)}}(),Tt.\u0275prov=e.\u0275\u0275defineInjectable({token:Tt,factory:Tt.\u0275fac,providedIn:"root"}),Tt})(),yr=(()=>{class Tt{static withConfig(Ze){return{ngModule:Tt,providers:[{provide:ee,useValue:Ze.callSetDisabledState??De}]}}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275mod=e.\u0275\u0275defineNgModule({type:Tt}),Tt.\u0275inj=e.\u0275\u0275defineInjector({imports:[Gr]}),Tt})(),va=(()=>{class Tt{static withConfig(Ze){return{ngModule:Tt,providers:[{provide:Br,useValue:Ze.warnOnNgModelWithFormControl??"always"},{provide:ee,useValue:Ze.callSetDisabledState??De}]}}}return Tt.\u0275fac=function(Ze){return new(Ze||Tt)},Tt.\u0275mod=e.\u0275\u0275defineNgModule({type:Tt}),Tt.\u0275inj=e.\u0275\u0275defineInjector({imports:[Gr]}),Tt})()},47957:(oe,x,i)=>{"use strict";i.d(x,{Mz:()=>de,VI:()=>Ut,g8:()=>Ye,zp:()=>Wt});var e=i(94650),n=i(3238),a=i(36895),t=i(67376),l=i(98184),h=i(12687),s=i(21281),d=i(83353),u=(i(37340),i(50727)),g=i(77579),v=i(49770),y=i(56451),b=i(39646),S=i(54968),E=i(29521),D=i(84080),P=(i(24006),i(59549)),B=i(68675),V=i(63900),X=i(95698),re=i(39300),Q=i(54004),ae=i(18505),K=i(94086),k=i(40445);const $=["panel"];let le=0;class T{constructor(yt,ie){this.source=yt,this.option=ie}}const H=(0,n.Kr)(class{}),N=new e.InjectionToken("mat-autocomplete-default-options",{providedIn:"root",factory:function pe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let de=(()=>{class Fe extends H{get isOpen(){return this._isOpen&&this.showPanel}_setColor(ie){this._color=ie,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ie){this._autoActiveFirstOption=(0,s.Ig)(ie)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(ie){this._autoSelectActiveOption=(0,s.Ig)(ie)}set classList(ie){this._classList=ie&&ie.length?(0,s.du)(ie).reduce((Ce,Ie)=>(Ce[Ie]=!0,Ce),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(ie,Ce,Ie,dt){super(),this._changeDetectorRef=ie,this._elementRef=Ce,this._defaults=Ie,this._activeOptionChanges=u.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new e.EventEmitter,this.opened=new e.EventEmitter,this.closed=new e.EventEmitter,this.optionActivated=new e.EventEmitter,this._classList={},this.id="mat-autocomplete-"+le++,this.inertGroups=dt?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new h.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ie=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ie]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(ie){this.panel&&(this.panel.nativeElement.scrollTop=ie)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ie){const Ce=new T(this,ie);this.optionSelected.emit(Ce)}_getPanelAriaLabelledby(ie){return this.ariaLabel?null:this.ariaLabelledby?(ie?ie+" ":"")+this.ariaLabelledby:ie}_setVisibilityClasses(ie){ie[this._visibleClass]=this.showPanel,ie[this._hiddenClass]=!this.showPanel}_setThemeClasses(ie){ie["mat-primary"]="primary"===this._color,ie["mat-warn"]="warn"===this._color,ie["mat-accent"]="accent"===this._color}}return Fe.\u0275fac=function(ie){return new(ie||Fe)(e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(N),e.\u0275\u0275directiveInject(d.t4))},Fe.\u0275dir=e.\u0275\u0275defineDirective({type:Fe,viewQuery:function(ie,Ce){if(1&ie&&(e.\u0275\u0275viewQuery(e.TemplateRef,7),e.\u0275\u0275viewQuery($,5)),2&ie){let Ie;e.\u0275\u0275queryRefresh(Ie=e.\u0275\u0275loadQuery())&&(Ce.template=Ie.first),e.\u0275\u0275queryRefresh(Ie=e.\u0275\u0275loadQuery())&&(Ce.panel=Ie.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[e.\u0275\u0275InheritDefinitionFeature]}),Fe})();const Ye=new e.InjectionToken("mat-autocomplete-scroll-strategy"),Wt={provide:Ye,deps:[l.aV],useFactory:function wt(Fe){return()=>Fe.scrollStrategies.reposition()}};let Ut=(()=>{class Fe{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ie){this._autocompleteDisabled=(0,s.Ig)(ie)}constructor(ie,Ce,Ie,dt,Mt,Xt,en,vt,xt,zt,bt){this._element=ie,this._overlay=Ce,this._viewContainerRef=Ie,this._zone=dt,this._changeDetectorRef=Mt,this._dir=en,this._formField=vt,this._document=xt,this._viewportRuler=zt,this._defaults=bt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=u.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new g.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,v.P)(()=>{const At=this.autocomplete?this.autocomplete.options:null;return At?At.changes.pipe((0,B.O)(At),(0,V.w)(()=>(0,y.T)(...At.map($e=>$e.onSelectionChange)))):this._zone.onStable.pipe((0,X.q)(1),(0,V.w)(()=>this.optionSelections))}),this._scrollStrategy=Xt}ngAfterViewInit(){const ie=this._getWindow();typeof ie<"u"&&this._zone.runOutsideAngular(()=>ie.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ie){ie.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ie=this._getWindow();typeof ie<"u"&&ie.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,y.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,re.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,re.h)(()=>this._overlayAttached)):(0,b.of)()).pipe((0,Q.U)(ie=>ie instanceof n.rN?ie:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,y.T)((0,S.R)(this._document,"click"),(0,S.R)(this._document,"auxclick"),(0,S.R)(this._document,"touchend")).pipe((0,re.h)(ie=>{const Ce=(0,d.sA)(ie),Ie=this._formField?this._formField._elementRef.nativeElement:null,dt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ce!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Ie||!Ie.contains(Ce))&&(!dt||!dt.contains(Ce))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ce)}))}writeValue(ie){Promise.resolve(null).then(()=>this._assignOptionValue(ie))}registerOnChange(ie){this._onChange=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this._element.nativeElement.disabled=ie}_handleKeydown(ie){const Ce=ie.keyCode,Ie=(0,E.Vb)(ie);if(Ce===E.hY&&!Ie&&ie.preventDefault(),this.activeOption&&Ce===E.K5&&this.panelOpen&&!Ie)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ie.preventDefault();else if(this.autocomplete){const dt=this.autocomplete._keyManager.activeItem,Mt=Ce===E.LH||Ce===E.JH;Ce===E.Mf||Mt&&!Ie&&this.panelOpen?this.autocomplete._keyManager.onKeydown(ie):Mt&&this._canOpen()&&this.openPanel(),(Mt||this.autocomplete._keyManager.activeItem!==dt)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(ie){let Ce=ie.target,Ie=Ce.value;"number"===Ce.type&&(Ie=""==Ie?null:parseFloat(Ie)),this._previousValue!==Ie&&(this._previousValue=Ie,this._pendingAutoselectedOption=null,this._onChange(Ie),this._canOpen()&&this._document.activeElement===ie.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(ie=!1){this._formField&&"auto"===this._formField.floatLabel&&(ie?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ie=this._zone.onStable.pipe((0,X.q)(1)),Ce=this.autocomplete.options.changes.pipe((0,ae.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,K.g)(0));return(0,y.T)(ie,Ce).pipe((0,V.w)(()=>(this._zone.run(()=>{const Ie=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Ie!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,X.q)(1)).subscribe(Ie=>this._setValueAndClose(Ie))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(ie){const Ce=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ie):ie;this._updateNativeInputValue(Ce??"")}_updateNativeInputValue(ie){this._formField?this._formField._control.value=ie:this._element.nativeElement.value=ie,this._previousValue=ie}_setValueAndClose(ie){const Ce=ie?ie.source:this._pendingAutoselectedOption;Ce&&(this._clearPreviousSelectedOption(Ce),this._assignOptionValue(Ce.value),this._onChange(Ce.value),this.autocomplete._emitSelectEvent(Ce),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(ie){this.autocomplete.options.forEach(Ce=>{Ce!==ie&&Ce.selected&&Ce.deselect()})}_attachOverlay(){let ie=this._overlayRef;ie?(this._positionStrategy.setOrigin(this._getConnectedElement()),ie.updateSize({width:this._getPanelWidth()})):(this._portal=new D.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),ie=this._overlay.create(this._getOverlayConfig()),this._overlayRef=ie,this._handleOverlayEvents(ie),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&ie&&ie.updateSize({width:this._getPanelWidth()})})),ie&&!ie.hasAttached()&&(ie.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Ce=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&Ce!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new l.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const ie=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ie),this._positionStrategy=ie,ie}_setStrategyPositions(ie){const Ce=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ie=this._aboveClass,dt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Ie},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Ie}];let Mt;Mt="above"===this.position?dt:"below"===this.position?Ce:[...Ce,...dt],ie.withPositions(Mt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const ie=this.autocomplete;ie.autoActiveFirstOption?ie._keyManager.setFirstItemActive():ie._keyManager.setActiveItem(-1)}_canOpen(){const ie=this._element.nativeElement;return!ie.readOnly&&!ie.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(ie){const Ce=this.autocomplete,Ie=(0,n.CB)(ie,Ce.options,Ce.optionGroups);if(0===ie&&1===Ie)Ce._setScrollTop(0);else if(Ce.panel){const dt=Ce.options.toArray()[ie];if(dt){const Mt=dt._getHostElement(),Xt=(0,n.jH)(Mt.offsetTop,Mt.offsetHeight,Ce._getScrollTop(),Ce.panel.nativeElement.offsetHeight);Ce._setScrollTop(Xt)}}}_handleOverlayEvents(ie){ie.keydownEvents().subscribe(Ce=>{(Ce.keyCode===E.hY&&!(0,E.Vb)(Ce)||Ce.keyCode===E.LH&&(0,E.Vb)(Ce,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),Ce.stopPropagation(),Ce.preventDefault())}),ie.outsidePointerEvents().subscribe()}}return Fe.\u0275fac=function(ie){return new(ie||Fe)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(l.aV),e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(Ye),e.\u0275\u0275directiveInject(k.Is,8),e.\u0275\u0275directiveInject(P.G_,9),e.\u0275\u0275directiveInject(a.DOCUMENT,8),e.\u0275\u0275directiveInject(t.rL),e.\u0275\u0275directiveInject(N,8))},Fe.\u0275dir=e.\u0275\u0275defineDirective({type:Fe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[e.\u0275\u0275NgOnChangesFeature]}),Fe})()},4859:(oe,x,i)=>{"use strict";i.d(x,{RK:()=>H,lW:()=>Q,ot:()=>pe});var e=i(83353),n=i(94650),a=i(12687),t=i(3238);const l=["mat-button",""],h=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],s=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],y=["mat-icon-button",""],b=["*"],A=[{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"]}],P=(0,t.pj)((0,t.Id)((0,t.Kr)(class{constructor(de){this._elementRef=de}})));let B=(()=>{class de extends P{constructor(q,se,ve,Ee){super(q),this._platform=se,this._ngZone=ve,this._animationMode=Ee,this._focusMonitor=(0,n.inject)(a.tE),this._isFab=!1;const Ye=q.nativeElement.classList;for(const wt of A)this._hasHostAttributes(wt.selector)&&wt.mdcClasses.forEach(Wt=>{Ye.add(Wt)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(q="program",se){q?this._focusMonitor.focusVia(this._elementRef.nativeElement,q,se):this._elementRef.nativeElement.focus(se)}_hasHostAttributes(...q){return q.some(se=>this._elementRef.nativeElement.hasAttribute(se))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return de.\u0275fac=function(q){n.\u0275\u0275invalidFactory()},de.\u0275dir=n.\u0275\u0275defineDirective({type:de,viewQuery:function(q,se){if(1&q&&n.\u0275\u0275viewQuery(t.wG,5),2&q){let ve;n.\u0275\u0275queryRefresh(ve=n.\u0275\u0275loadQuery())&&(se.ripple=ve.first)}},features:[n.\u0275\u0275InheritDefinitionFeature]}),de})(),Q=(()=>{class de extends B{constructor(q,se,ve,Ee){super(q,se,ve,Ee)}}return de.\u0275fac=function(q){return new(q||de)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(e.t4),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},de.\u0275cmp=n.\u0275\u0275defineComponent({type:de,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(q,se){2&q&&(n.\u0275\u0275attribute("disabled",se.disabled||null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===se._animationMode)("mat-unthemed",!se.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:l,ngContentSelectors:s,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(q,se){1&q&&(n.\u0275\u0275projectionDef(h),n.\u0275\u0275element(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementStart(2,"span",1),n.\u0275\u0275projection(3,1),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(4,2),n.\u0275\u0275element(5,"span",2)(6,"span",3)(7,"span",4)),2&q&&(n.\u0275\u0275classProp("mdc-button__ripple",!se._isFab)("mdc-fab__ripple",se._isFab),n.\u0275\u0275advance(6),n.\u0275\u0275property("matRippleDisabled",se._isRippleDisabled())("matRippleTrigger",se._elementRef.nativeElement))},dependencies:[t.wG],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-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}),de})(),H=(()=>{class de extends B{constructor(q,se,ve,Ee){super(q,se,ve,Ee)}}return de.\u0275fac=function(q){return new(q||de)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(e.t4),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},de.\u0275cmp=n.\u0275\u0275defineComponent({type:de,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(q,se){2&q&&(n.\u0275\u0275attribute("disabled",se.disabled||null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===se._animationMode)("mat-unthemed",!se.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:y,ngContentSelectors:b,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(q,se){1&q&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275element(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275element(2,"span",1)(3,"span",2)(4,"span",3)),2&q&&(n.\u0275\u0275advance(3),n.\u0275\u0275property("matRippleDisabled",se._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",se._elementRef.nativeElement))},dependencies:[t.wG],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.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, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.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-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}),de})(),pe=(()=>{class de{}return de.\u0275fac=function(q){return new(q||de)},de.\u0275mod=n.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=n.\u0275\u0275defineInjector({imports:[t.BQ,t.si,t.BQ]}),de})()},56709:(oe,x,i)=>{"use strict";i.d(x,{$u:()=>d,LX:()=>P,MB:()=>S,oG:()=>E,p9:()=>B});var e=i(94650),n=i(24006),a=i(3238),t=i(21281);const l=["input"],h=["label"],s=["*"],d=new e.InjectionToken("mat-checkbox-default-options",{providedIn:"root",factory:p});function p(){return{color:"accent",clickAction:"check-indeterminate"}}const u={provide:n.JU,useExisting:(0,e.forwardRef)(()=>E),multi:!0};class g{}let v=0;const y=p(),b=(0,a.sb)((0,a.pj)((0,a.Kr)((0,a.Id)(class{constructor(V){this._elementRef=V}}))));let S=(()=>{class V extends b{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(re){this._required=(0,t.Ig)(re)}constructor(re,Q,ae,K,k,$,j){super(Q),this._changeDetectorRef=ae,this._ngZone=K,this._animationMode=$,this._options=j,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new e.EventEmitter,this.indeterminateChange=new e.EventEmitter,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||y,this.color=this.defaultColor=this._options.color||y.color,this.tabIndex=parseInt(k)||0,this.id=this._uniqueId=`${re}${++v}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(re){const Q=(0,t.Ig)(re);Q!=this.checked&&(this._checked=Q,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(re){const Q=(0,t.Ig)(re);Q!==this.disabled&&(this._disabled=Q,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(re){const Q=re!=this._indeterminate;this._indeterminate=(0,t.Ig)(re),Q&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(re){this.checked=!!re}registerOnChange(re){this._controlValueAccessorChangeFn=re}registerOnTouched(re){this._onTouched=re}setDisabledState(re){this.disabled=re}_transitionCheckState(re){let Q=this._currentCheckState,ae=this._getAnimationTargetElement();if(Q!==re&&ae&&(this._currentAnimationClass&&ae.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Q,re),this._currentCheckState=re,this._currentAnimationClass.length>0)){ae.classList.add(this._currentAnimationClass);const K=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ae.classList.remove(K)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const re=this._options?.clickAction;this.disabled||"noop"===re?!this.disabled&&"noop"===re&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==re&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(re){re.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(re,Q){if("NoopAnimations"===this._animationMode)return"";switch(re){case 0:if(1===Q)return this._animationClasses.uncheckedToChecked;if(3==Q)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Q?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Q?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Q?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(re){const Q=this._inputElement;Q&&(Q.nativeElement.indeterminate=re)}}return V.\u0275fac=function(re){e.\u0275\u0275invalidFactory()},V.\u0275dir=e.\u0275\u0275defineDirective({type:V,viewQuery:function(re,Q){if(1&re&&(e.\u0275\u0275viewQuery(l,5),e.\u0275\u0275viewQuery(h,5),e.\u0275\u0275viewQuery(a.wG,5)),2&re){let ae;e.\u0275\u0275queryRefresh(ae=e.\u0275\u0275loadQuery())&&(Q._inputElement=ae.first),e.\u0275\u0275queryRefresh(ae=e.\u0275\u0275loadQuery())&&(Q._labelElement=ae.first),e.\u0275\u0275queryRefresh(ae=e.\u0275\u0275loadQuery())&&(Q.ripple=ae.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[e.\u0275\u0275InheritDefinitionFeature]}),V})(),E=(()=>{class V extends S{constructor(re,Q,ae,K,k,$){super("mat-mdc-checkbox-",re,Q,ae,K,k,$),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(re){const Q=new g;return Q.source=this,Q.checked=re,Q}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(re){re.target&&this._labelElement.nativeElement.contains(re.target)&&re.stopPropagation()}}return V.\u0275fac=function(re){return new(re||V)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275injectAttribute("tabindex"),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8),e.\u0275\u0275directiveInject(d,8))},V.\u0275cmp=e.\u0275\u0275defineComponent({type:V,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(re,Q){2&re&&(e.\u0275\u0275hostProperty("id",Q.id),e.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null),e.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Q._animationMode)("mdc-checkbox--disabled",Q.disabled)("mat-mdc-checkbox-disabled",Q.disabled)("mat-mdc-checkbox-checked",Q.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[e.\u0275\u0275ProvidersFeature([u]),e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:s,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(re,Q){if(1&re&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("click",function(K){return Q._preventBubblingFromLabel(K)}),e.\u0275\u0275elementStart(1,"div",1,2)(3,"div",3),e.\u0275\u0275listener("click",function(){return Q._onTouchTargetClick()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"input",4,5),e.\u0275\u0275listener("blur",function(){return Q._onBlur()})("click",function(){return Q._onInputClick()})("change",function(K){return Q._onInteractionEvent(K)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(6,"div",6),e.\u0275\u0275elementStart(7,"div",7),e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(8,"svg",8),e.\u0275\u0275element(9,"path",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275namespaceHTML(),e.\u0275\u0275element(10,"div",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(11,"div",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"label",12,13),e.\u0275\u0275projection(14),e.\u0275\u0275elementEnd()()),2&re){const ae=e.\u0275\u0275reference(2);e.\u0275\u0275classProp("mdc-form-field--align-end","before"==Q.labelPosition),e.\u0275\u0275advance(4),e.\u0275\u0275classProp("mdc-checkbox--selected",Q.checked),e.\u0275\u0275property("checked",Q.checked)("indeterminate",Q.indeterminate)("disabled",Q.disabled)("id",Q.inputId)("required",Q.required)("tabIndex",Q.tabIndex),e.\u0275\u0275attribute("aria-label",Q.ariaLabel||null)("aria-labelledby",Q.ariaLabelledby)("aria-describedby",Q.ariaDescribedby)("name",Q.name)("value",Q.value),e.\u0275\u0275advance(7),e.\u0275\u0275property("matRippleTrigger",ae)("matRippleDisabled",Q.disableRipple||Q.disabled)("matRippleCentered",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("for",Q.inputId)}},dependencies:[a.wG],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__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%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__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-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),V})(),P=(()=>{class V{}return V.\u0275fac=function(re){return new(re||V)},V.\u0275mod=e.\u0275\u0275defineNgModule({type:V}),V.\u0275inj=e.\u0275\u0275defineInjector({}),V})(),B=(()=>{class V{}return V.\u0275fac=function(re){return new(re||V)},V.\u0275mod=e.\u0275\u0275defineNgModule({type:V}),V.\u0275inj=e.\u0275\u0275defineInjector({imports:[a.BQ,a.si,P,a.BQ,P]}),V})()},3238:(oe,x,i)=>{"use strict";i.d(x,{yN:()=>V,mZ:()=>X,_A:()=>de,rD:()=>Ut,sG:()=>me,Ad:()=>N,K7:()=>_n,HF:()=>Ve,Y2:()=>bt,BQ:()=>ae,X2:()=>nt,uc:()=>yt,XK:()=>wt,ey:()=>pt,Ng:()=>Et,rN:()=>Ae,nP:()=>Xe,us:()=>Pe,wG:()=>At,si:()=>$e,IR:()=>xt,MP:()=>ze,CB:()=>tn,jH:()=>ot,pj:()=>R,Kr:()=>U,Id:()=>j,FD:()=>T,dB:()=>H,sb:()=>le,E0:()=>Zt});var e=i(94650),n=i(12687),a=i(40445),l=i(36895),h=i(83353),s=i(21281),d=i(69751),p=i(77579),u=i(68675),g=i(29521);const b=["text"];function S(z,Z){if(1&z&&e.\u0275\u0275element(0,"mat-pseudo-checkbox",6),2&z){const ge=e.\u0275\u0275nextContext();e.\u0275\u0275property("state",ge.selected?"checked":"unchecked")("disabled",ge.disabled)}}function E(z,Z){if(1&z&&e.\u0275\u0275element(0,"mat-pseudo-checkbox",7),2&z){const ge=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",ge.disabled)}}function D(z,Z){if(1&z&&(e.\u0275\u0275elementStart(0,"span",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&z){const ge=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("(",ge.group.label,")")}}const A=[[["mat-icon"]],"*"],P=["mat-icon","*"];let V=(()=>{class z{}return z.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",z.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",z.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",z.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",z})(),X=(()=>{class z{}return z.COMPLEX="375ms",z.ENTERING="225ms",z.EXITING="195ms",z})();const Q=new e.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function re(){return!0}});let ae=(()=>{class z{constructor(ge,Qe,qe){this._sanityChecks=Qe,this._document=qe,this._hasDoneGlobalChecks=!1,ge._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ge){return!(0,h.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ge])}}return z.\u0275fac=function(ge){return new(ge||z)(e.\u0275\u0275inject(n.qm),e.\u0275\u0275inject(Q,8),e.\u0275\u0275inject(l.DOCUMENT))},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({imports:[a.vT,a.vT]}),z})();function j(z){return class extends z{get disabled(){return this._disabled}set disabled(Z){this._disabled=(0,s.Ig)(Z)}constructor(...Z){super(...Z),this._disabled=!1}}}function R(z,Z){return class extends z{get color(){return this._color}set color(ge){const Qe=ge||this.defaultColor;Qe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Qe&&this._elementRef.nativeElement.classList.add(`mat-${Qe}`),this._color=Qe)}constructor(...ge){super(...ge),this.defaultColor=Z,this.color=Z}}}function U(z){return class extends z{get disableRipple(){return this._disableRipple}set disableRipple(Z){this._disableRipple=(0,s.Ig)(Z)}constructor(...Z){super(...Z),this._disableRipple=!1}}}function le(z,Z=0){return class extends z{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ge){this._tabIndex=null!=ge?(0,s.su)(ge):this.defaultTabIndex}constructor(...ge){super(...ge),this._tabIndex=Z,this.defaultTabIndex=Z}}}function T(z){return class extends z{updateErrorState(){const Z=this.errorState,ct=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ct!==Z&&(this.errorState=ct,this.stateChanges.next())}constructor(...Z){super(...Z),this.errorState=!1}}}function H(z){return class extends z{constructor(...Z){super(...Z),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new d.y(ge=>{this._isInitialized?this._notifySubscriber(ge):this._pendingSubscribers.push(ge)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Z){Z.next(),Z.complete()}}}const N=new e.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:function pe(){return(0,e.inject)(e.LOCALE_ID)}});class de{constructor(){this._localeChanges=new p.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Z){return this.isDateInstance(Z)&&this.isValid(Z)?Z:null}deserialize(Z){return null==Z||this.isDateInstance(Z)&&this.isValid(Z)?Z:this.invalid()}setLocale(Z){this.locale=Z,this._localeChanges.next()}compareDate(Z,ge){return this.getYear(Z)-this.getYear(ge)||this.getMonth(Z)-this.getMonth(ge)||this.getDate(Z)-this.getDate(ge)}sameDate(Z,ge){if(Z&&ge){let Qe=this.isValid(Z),qe=this.isValid(ge);return Qe&&qe?!this.compareDate(Z,ge):Qe==qe}return Z==ge}clampDate(Z,ge,Qe){return ge&&this.compareDate(Z,ge)<0?ge:Qe&&this.compareDate(Z,Qe)>0?Qe:Z}}const me=new e.InjectionToken("mat-date-formats"),q=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function se(z,Z){const ge=Array(z);for(let Qe=0;Qe<z;Qe++)ge[Qe]=Z(Qe);return ge}let ve=(()=>{class z extends de{constructor(ge,Qe){super(),this.useUtcForDisplay=!1,super.setLocale(ge)}getYear(ge){return ge.getFullYear()}getMonth(ge){return ge.getMonth()}getDate(ge){return ge.getDate()}getDayOfWeek(ge){return ge.getDay()}getMonthNames(ge){const Qe=new Intl.DateTimeFormat(this.locale,{month:ge,timeZone:"utc"});return se(12,qe=>this._format(Qe,new Date(2017,qe,1)))}getDateNames(){const ge=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return se(31,Qe=>this._format(ge,new Date(2017,0,Qe+1)))}getDayOfWeekNames(ge){const Qe=new Intl.DateTimeFormat(this.locale,{weekday:ge,timeZone:"utc"});return se(7,qe=>this._format(Qe,new Date(2017,0,qe+1)))}getYearName(ge){const Qe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Qe,ge)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ge){return this.getDate(this._createDateWithOverflow(this.getYear(ge),this.getMonth(ge)+1,0))}clone(ge){return new Date(ge.getTime())}createDate(ge,Qe,qe){let ct=this._createDateWithOverflow(ge,Qe,qe);return ct.getMonth(),ct}today(){return new Date}parse(ge,Qe){return"number"==typeof ge?new Date(ge):ge?new Date(Date.parse(ge)):null}format(ge,Qe){if(!this.isValid(ge))throw Error("NativeDateAdapter: Cannot format invalid date.");const qe=new Intl.DateTimeFormat(this.locale,{...Qe,timeZone:"utc"});return this._format(qe,ge)}addCalendarYears(ge,Qe){return this.addCalendarMonths(ge,12*Qe)}addCalendarMonths(ge,Qe){let qe=this._createDateWithOverflow(this.getYear(ge),this.getMonth(ge)+Qe,this.getDate(ge));return this.getMonth(qe)!=((this.getMonth(ge)+Qe)%12+12)%12&&(qe=this._createDateWithOverflow(this.getYear(qe),this.getMonth(qe),0)),qe}addCalendarDays(ge,Qe){return this._createDateWithOverflow(this.getYear(ge),this.getMonth(ge),this.getDate(ge)+Qe)}toIso8601(ge){return[ge.getUTCFullYear(),this._2digit(ge.getUTCMonth()+1),this._2digit(ge.getUTCDate())].join("-")}deserialize(ge){if("string"==typeof ge){if(!ge)return null;if(q.test(ge)){let Qe=new Date(ge);if(this.isValid(Qe))return Qe}}return super.deserialize(ge)}isDateInstance(ge){return ge instanceof Date}isValid(ge){return!isNaN(ge.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ge,Qe,qe){const ct=new Date;return ct.setFullYear(ge,Qe,qe),ct.setHours(0,0,0,0),ct}_2digit(ge){return("00"+ge).slice(-2)}_format(ge,Qe){const qe=new Date;return qe.setUTCFullYear(Qe.getFullYear(),Qe.getMonth(),Qe.getDate()),qe.setUTCHours(Qe.getHours(),Qe.getMinutes(),Qe.getSeconds(),Qe.getMilliseconds()),ge.format(qe)}}return z.\u0275fac=function(ge){return new(ge||z)(e.\u0275\u0275inject(N,8),e.\u0275\u0275inject(h.t4))},z.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac}),z})();const Ee={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 Ye=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({providers:[{provide:de,useClass:ve}]}),z})(),wt=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({providers:[{provide:me,useValue:Ee}],imports:[Ye]}),z})(),Ut=(()=>{class z{isErrorState(ge,Qe){return!!(ge&&ge.invalid&&(ge.touched||Qe&&Qe.submitted))}}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275prov=e.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),nt=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275dir=e.\u0275\u0275defineDirective({type:z,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),z})();function Zt(z,Z,ge="mat"){z.changes.pipe((0,u.O)(z)).subscribe(({length:Qe})=>{Fe(Z,`${ge}-2-line`,!1),Fe(Z,`${ge}-3-line`,!1),Fe(Z,`${ge}-multi-line`,!1),2===Qe||3===Qe?Fe(Z,`${ge}-${Qe}-line`,!0):Qe>3&&Fe(Z,`${ge}-multi-line`,!0)})}function Fe(z,Z,ge){z.nativeElement.classList.toggle(Z,ge)}let yt=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({imports:[ae,ae]}),z})();class ie{constructor(Z,ge,Qe,qe=!1){this._renderer=Z,this.element=ge,this.config=Qe,this._animationForciblyDisabledThroughCss=qe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ce=(0,h.i$)({passive:!0,capture:!0});class Ie{constructor(){this._events=new Map,this._delegateEventHandler=Z=>{const ge=(0,h.sA)(Z);ge&&this._events.get(Z.type)?.forEach((Qe,qe)=>{(qe===ge||qe.contains(ge))&&Qe.forEach(ct=>ct.handleEvent(Z))})}}addHandler(Z,ge,Qe,qe){const ct=this._events.get(ge);if(ct){const Yt=ct.get(Qe);Yt?Yt.add(qe):ct.set(Qe,new Set([qe]))}else this._events.set(ge,new Map([[Qe,new Set([qe])]])),Z.runOutsideAngular(()=>{document.addEventListener(ge,this._delegateEventHandler,Ce)})}removeHandler(Z,ge,Qe){const qe=this._events.get(Z);if(!qe)return;const ct=qe.get(ge);ct&&(ct.delete(Qe),0===ct.size&&qe.delete(ge),0===qe.size&&(this._events.delete(Z),document.removeEventListener(Z,this._delegateEventHandler,Ce)))}}const dt={enterDuration:225,exitDuration:150},Xt=(0,h.i$)({passive:!0,capture:!0}),en=["mousedown","touchstart"],vt=["mouseup","mouseleave","touchend","touchcancel"];class xt{constructor(Z,ge,Qe,qe){this._target=Z,this._ngZone=ge,this._platform=qe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,qe.isBrowser&&(this._containerElement=(0,s.fI)(Qe))}fadeInRipple(Z,ge,Qe={}){const qe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ct={...dt,...Qe.animation};Qe.centered&&(Z=qe.left+qe.width/2,ge=qe.top+qe.height/2);const Yt=Qe.radius||function zt(z,Z,ge){const Qe=Math.max(Math.abs(z-ge.left),Math.abs(z-ge.right)),qe=Math.max(Math.abs(Z-ge.top),Math.abs(Z-ge.bottom));return Math.sqrt(Qe*Qe+qe*qe)}(Z,ge,qe),it=Z-qe.left,Be=ge-qe.top,gt=ct.enterDuration,ue=document.createElement("div");ue.classList.add("mat-ripple-element"),ue.style.left=it-Yt+"px",ue.style.top=Be-Yt+"px",ue.style.height=2*Yt+"px",ue.style.width=2*Yt+"px",null!=Qe.color&&(ue.style.backgroundColor=Qe.color),ue.style.transitionDuration=`${gt}ms`,this._containerElement.appendChild(ue);const Ge=window.getComputedStyle(ue),De=Ge.transitionDuration,Ot="none"===Ge.transitionProperty||"0s"===De||"0s, 0s"===De||0===qe.width&&0===qe.height,cn=new ie(this,ue,Qe,Ot);ue.style.transform="scale3d(1, 1, 1)",cn.state=0,Qe.persistent||(this._mostRecentTransientRipple=cn);let Gn=null;return!Ot&&(gt||ct.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _i=()=>this._finishRippleTransition(cn),Ni=()=>this._destroyRipple(cn);ue.addEventListener("transitionend",_i),ue.addEventListener("transitioncancel",Ni),Gn={onTransitionEnd:_i,onTransitionCancel:Ni}}),this._activeRipples.set(cn,Gn),(Ot||!gt)&&this._finishRippleTransition(cn),cn}fadeOutRipple(Z){if(2===Z.state||3===Z.state)return;const ge=Z.element,Qe={...dt,...Z.config.animation};ge.style.transitionDuration=`${Qe.exitDuration}ms`,ge.style.opacity="0",Z.state=2,(Z._animationForciblyDisabledThroughCss||!Qe.exitDuration)&&this._finishRippleTransition(Z)}fadeOutAll(){this._getActiveRipples().forEach(Z=>Z.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Z=>{Z.config.persistent||Z.fadeOut()})}setupTriggerEvents(Z){const ge=(0,s.fI)(Z);!this._platform.isBrowser||!ge||ge===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ge,en.forEach(Qe=>{xt._eventManager.addHandler(this._ngZone,Qe,ge,this)}))}handleEvent(Z){"mousedown"===Z.type?this._onMousedown(Z):"touchstart"===Z.type?this._onTouchStart(Z):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{vt.forEach(ge=>{this._triggerElement.addEventListener(ge,this,Xt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Z){0===Z.state?this._startFadeOutTransition(Z):2===Z.state&&this._destroyRipple(Z)}_startFadeOutTransition(Z){const ge=Z===this._mostRecentTransientRipple,{persistent:Qe}=Z.config;Z.state=1,!Qe&&(!ge||!this._isPointerDown)&&Z.fadeOut()}_destroyRipple(Z){const ge=this._activeRipples.get(Z)??null;this._activeRipples.delete(Z),this._activeRipples.size||(this._containerRect=null),Z===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Z.state=3,null!==ge&&(Z.element.removeEventListener("transitionend",ge.onTransitionEnd),Z.element.removeEventListener("transitioncancel",ge.onTransitionCancel)),Z.element.remove()}_onMousedown(Z){const ge=(0,n.X6)(Z),Qe=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ge&&!Qe&&(this._isPointerDown=!0,this.fadeInRipple(Z.clientX,Z.clientY,this._target.rippleConfig))}_onTouchStart(Z){if(!this._target.rippleDisabled&&!(0,n.yG)(Z)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ge=Z.changedTouches;for(let Qe=0;Qe<ge.length;Qe++)this.fadeInRipple(ge[Qe].clientX,ge[Qe].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(Z=>{!Z.config.persistent&&(1===Z.state||Z.config.terminateOnPointerUp&&0===Z.state)&&Z.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Z=this._triggerElement;Z&&(en.forEach(ge=>xt._eventManager.removeHandler(ge,Z,this)),this._pointerUpEventsRegistered&&vt.forEach(ge=>Z.removeEventListener(ge,this,Xt)))}}xt._eventManager=new Ie;const bt=new e.InjectionToken("mat-ripple-global-options");let At=(()=>{class z{get disabled(){return this._disabled}set disabled(ge){ge&&this.fadeOutAllNonPersistent(),this._disabled=ge,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ge){this._trigger=ge,this._setupTriggerEventsIfEnabled()}constructor(ge,Qe,qe,ct,Yt){this._elementRef=ge,this._animationMode=Yt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ct||{},this._rippleRenderer=new xt(this,Qe,ge,qe)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ge,Qe=0,qe){return"number"==typeof ge?this._rippleRenderer.fadeInRipple(ge,Qe,{...this.rippleConfig,...qe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ge})}}return z.\u0275fac=function(ge){return new(ge||z)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(h.t4),e.\u0275\u0275directiveInject(bt,8),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8))},z.\u0275dir=e.\u0275\u0275defineDirective({type:z,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ge,Qe){2&ge&&e.\u0275\u0275classProp("mat-ripple-unbounded",Qe.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"]}),z})(),$e=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({imports:[ae,ae]}),z})(),Xe=(()=>{class z{constructor(ge){this._animationMode=ge,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return z.\u0275fac=function(ge){return new(ge||z)(e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8))},z.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(ge,Qe){2&ge&&e.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===Qe.state)("mat-pseudo-checkbox-checked","checked"===Qe.state)("mat-pseudo-checkbox-disabled",Qe.disabled)("mat-pseudo-checkbox-minimal","minimal"===Qe.appearance)("mat-pseudo-checkbox-full","full"===Qe.appearance)("_mat-animation-noopable","NoopAnimations"===Qe._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(ge,Qe){},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}),z})(),Pe=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({imports:[ae]}),z})();const Ve=new e.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),_n=new e.InjectionToken("MatOptgroup");let ke=0;class Ae{constructor(Z,ge=!1){this.source=Z,this.isUserInput=ge}}let ze=(()=>{class z{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ge){this._disabled=(0,s.Ig)(ge)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(ge,Qe,qe,ct){this._element=ge,this._changeDetectorRef=Qe,this._parent=qe,this.group=ct,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ke++,this.onSelectionChange=new e.EventEmitter,this._stateChanges=new p.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ge,Qe){const qe=this._getHostElement();"function"==typeof qe.focus&&qe.focus(Qe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ge){(ge.keyCode===g.K5||ge.keyCode===g.L_)&&!(0,g.Vb)(ge)&&(this._selectViaInteraction(),ge.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 ge=this.viewValue;ge!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=ge)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ge=!1){this.onSelectionChange.emit(new Ae(this,ge))}}return z.\u0275fac=function(ge){e.\u0275\u0275invalidFactory()},z.\u0275dir=e.\u0275\u0275defineDirective({type:z,viewQuery:function(ge,Qe){if(1&ge&&e.\u0275\u0275viewQuery(b,7),2&ge){let qe;e.\u0275\u0275queryRefresh(qe=e.\u0275\u0275loadQuery())&&(Qe._text=qe.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),z})(),pt=(()=>{class z extends ze{constructor(ge,Qe,qe,ct){super(ge,Qe,qe,ct)}}return z.\u0275fac=function(ge){return new(ge||z)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(Ve,8),e.\u0275\u0275directiveInject(_n,8))},z.\u0275cmp=e.\u0275\u0275defineComponent({type:z,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(ge,Qe){1&ge&&e.\u0275\u0275listener("click",function(){return Qe._selectViaInteraction()})("keydown",function(ct){return Qe._handleKeydown(ct)}),2&ge&&(e.\u0275\u0275hostProperty("id",Qe.id),e.\u0275\u0275attribute("aria-selected",Qe.selected)("aria-disabled",Qe.disabled.toString()),e.\u0275\u0275classProp("mdc-list-item--selected",Qe.selected)("mat-mdc-option-multiple",Qe.multiple)("mat-mdc-option-active",Qe.active)("mdc-list-item--disabled",Qe.disabled))},exportAs:["matOption"],features:[e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:P,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(ge,Qe){1&ge&&(e.\u0275\u0275projectionDef(A),e.\u0275\u0275template(0,S,1,2,"mat-pseudo-checkbox",0),e.\u0275\u0275projection(1),e.\u0275\u0275elementStart(2,"span",1,2),e.\u0275\u0275projection(4,1),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,E,1,1,"mat-pseudo-checkbox",3),e.\u0275\u0275template(6,D,2,1,"span",4),e.\u0275\u0275element(7,"div",5)),2&ge&&(e.\u0275\u0275property("ngIf",Qe.multiple),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",!Qe.multiple&&Qe.selected&&!Qe.hideSingleSelectionIndicator),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Qe.group&&Qe.group._inert),e.\u0275\u0275advance(1),e.\u0275\u0275property("matRippleTrigger",Qe._getHostElement())("matRippleDisabled",Qe.disabled||Qe.disableRipple))},dependencies:[At,l.NgIf,Xe],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;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);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.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.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}),z})();function tn(z,Z,ge){if(ge.length){let Qe=Z.toArray(),qe=ge.toArray(),ct=0;for(let Yt=0;Yt<z+1;Yt++)Qe[Yt].group&&Qe[Yt].group===qe[ct]&&ct++;return ct}return 0}function ot(z,Z,ge,Qe){return z<ge?z:z+Z>ge+Qe?Math.max(0,z-Qe+Z):ge}let Et=(()=>{class z{}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275mod=e.\u0275\u0275defineNgModule({type:z}),z.\u0275inj=e.\u0275\u0275defineInjector({imports:[$e,l.CommonModule,ae,Pe]}),z})()},99602:(oe,x,i)=>{"use strict";i.d(x,{FA:()=>dr,Mq:()=>Be,Q0:()=>cn,hl:()=>Ot,nW:()=>Gn});var e=i(12687),n=i(98184),a=i(84080),t=i(36895),l=i(94650),h=i(4859),s=i(67376),d=i(3238),p=i(77579),u=i(50727),g=i(56451),v=i(39646),y=i(29521),b=i(40445),S=i(83353),E=i(95698),D=i(68675),A=i(39300),P=i(21281),B=i(37340),V=i(24006),X=i(59549),re=i(284);const Q=["mat-calendar-body",""];function ae(Ln,Vn){if(1&Ln&&(l.\u0275\u0275elementStart(0,"tr",3)(1,"td",4),l.\u0275\u0275text(2),l.\u0275\u0275elementEnd()()),2&Ln){const Le=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275styleProp("padding-top",Le._cellPadding)("padding-bottom",Le._cellPadding),l.\u0275\u0275attribute("colspan",Le.numCols),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",Le.label," ")}}function K(Ln,Vn){if(1&Ln&&(l.\u0275\u0275elementStart(0,"td",4),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ln){const Le=l.\u0275\u0275nextContext(2);l.\u0275\u0275styleProp("padding-top",Le._cellPadding)("padding-bottom",Le._cellPadding),l.\u0275\u0275attribute("colspan",Le._firstRowOffset),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",Le._firstRowOffset>=Le.labelMinRequiredCells?Le.label:""," ")}}function k(Ln,Vn){if(1&Ln){const Le=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"td",8)(1,"button",9),l.\u0275\u0275listener("click",function(dn){const gi=l.\u0275\u0275restoreView(Le).$implicit,$i=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView($i._cellClicked(gi,dn))})("focus",function(dn){const gi=l.\u0275\u0275restoreView(Le).$implicit,$i=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView($i._emitActiveDateChange(gi,dn))}),l.\u0275\u0275elementStart(2,"span",10),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd(),l.\u0275\u0275element(4,"span",11),l.\u0275\u0275elementEnd()()}if(2&Ln){const Le=Vn.$implicit,Ft=Vn.index,dn=l.\u0275\u0275nextContext().index,En=l.\u0275\u0275nextContext();l.\u0275\u0275styleProp("width",En._cellWidth)("padding-top",En._cellPadding)("padding-bottom",En._cellPadding),l.\u0275\u0275attribute("data-mat-row",dn)("data-mat-col",Ft),l.\u0275\u0275advance(1),l.\u0275\u0275classProp("mat-calendar-body-disabled",!Le.enabled)("mat-calendar-body-active",En._isActiveCell(dn,Ft))("mat-calendar-body-range-start",En._isRangeStart(Le.compareValue))("mat-calendar-body-range-end",En._isRangeEnd(Le.compareValue))("mat-calendar-body-in-range",En._isInRange(Le.compareValue))("mat-calendar-body-comparison-bridge-start",En._isComparisonBridgeStart(Le.compareValue,dn,Ft))("mat-calendar-body-comparison-bridge-end",En._isComparisonBridgeEnd(Le.compareValue,dn,Ft))("mat-calendar-body-comparison-start",En._isComparisonStart(Le.compareValue))("mat-calendar-body-comparison-end",En._isComparisonEnd(Le.compareValue))("mat-calendar-body-in-comparison-range",En._isInComparisonRange(Le.compareValue))("mat-calendar-body-preview-start",En._isPreviewStart(Le.compareValue))("mat-calendar-body-preview-end",En._isPreviewEnd(Le.compareValue))("mat-calendar-body-in-preview",En._isInPreview(Le.compareValue)),l.\u0275\u0275property("ngClass",Le.cssClasses)("tabindex",En._isActiveCell(dn,Ft)?0:-1),l.\u0275\u0275attribute("aria-label",Le.ariaLabel)("aria-disabled",!Le.enabled||null)("aria-pressed",En._isSelected(Le.compareValue))("aria-current",En.todayValue===Le.compareValue?"date":null)("aria-describedby",En._getDescribedby(Le.compareValue)),l.\u0275\u0275advance(1),l.\u0275\u0275classProp("mat-calendar-body-selected",En._isSelected(Le.compareValue))("mat-calendar-body-comparison-identical",En._isComparisonIdentical(Le.compareValue))("mat-calendar-body-today",En.todayValue===Le.compareValue),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",Le.displayValue," ")}}function $(Ln,Vn){if(1&Ln&&(l.\u0275\u0275elementStart(0,"tr",5),l.\u0275\u0275template(1,K,2,6,"td",6),l.\u0275\u0275template(2,k,5,48,"td",7),l.\u0275\u0275elementEnd()),2&Ln){const Le=Vn.$implicit,Ft=Vn.index,dn=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",0===Ft&&dn._firstRowOffset),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",Le)}}function j(Ln,Vn){if(1&Ln&&(l.\u0275\u0275elementStart(0,"th",5)(1,"span",6),l.\u0275\u0275text(2),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(3,"span",7),l.\u0275\u0275text(4),l.\u0275\u0275elementEnd()()),2&Ln){const Le=Vn.$implicit;l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(Le.long),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(Le.narrow)}}const R=["*"];function U(Ln,Vn){}function le(Ln,Vn){if(1&Ln){const Le=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-month-view",5),l.\u0275\u0275listener("activeDateChange",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En.activeDate=dn)})("_userSelection",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En._dateSelected(dn))})("dragStarted",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En._dragStarted(dn))})("dragEnded",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En._dragEnded(dn))}),l.\u0275\u0275elementEnd()}if(2&Ln){const Le=l.\u0275\u0275nextContext();l.\u0275\u0275property("activeDate",Le.activeDate)("selected",Le.selected)("dateFilter",Le.dateFilter)("maxDate",Le.maxDate)("minDate",Le.minDate)("dateClass",Le.dateClass)("comparisonStart",Le.comparisonStart)("comparisonEnd",Le.comparisonEnd)("startDateAccessibleName",Le.startDateAccessibleName)("endDateAccessibleName",Le.endDateAccessibleName)("activeDrag",Le._activeDrag)}}function T(Ln,Vn){if(1&Ln){const Le=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-year-view",6),l.\u0275\u0275listener("activeDateChange",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En.activeDate=dn)})("monthSelected",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En._monthSelectedInYearView(dn))})("selectedChange",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En._goToDateInView(dn,"month"))}),l.\u0275\u0275elementEnd()}if(2&Ln){const Le=l.\u0275\u0275nextContext();l.\u0275\u0275property("activeDate",Le.activeDate)("selected",Le.selected)("dateFilter",Le.dateFilter)("maxDate",Le.maxDate)("minDate",Le.minDate)("dateClass",Le.dateClass)}}function H(Ln,Vn){if(1&Ln){const Le=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-multi-year-view",7),l.\u0275\u0275listener("activeDateChange",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En.activeDate=dn)})("yearSelected",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En._yearSelectedInMultiYearView(dn))})("selectedChange",function(dn){l.\u0275\u0275restoreView(Le);const En=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(En._goToDateInView(dn,"year"))}),l.\u0275\u0275elementEnd()}if(2&Ln){const Le=l.\u0275\u0275nextContext();l.\u0275\u0275property("activeDate",Le.activeDate)("selected",Le.selected)("dateFilter",Le.dateFilter)("maxDate",Le.maxDate)("minDate",Le.minDate)("dateClass",Le.dateClass)}}function N(Ln,Vn){}const pe=["button"];function de(Ln,Vn){1&Ln&&(l.\u0275\u0275namespaceSVG(),l.\u0275\u0275elementStart(0,"svg",3),l.\u0275\u0275element(1,"path",4),l.\u0275\u0275elementEnd())}const me=[[["","matDatepickerToggleIcon",""]]],q=["[matDatepickerToggleIcon]"];let wt=(()=>{class Ln{constructor(){this.changes=new p.x,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(Le,Ft){return`${Le} \u2013 ${Ft}`}formatYearRangeLabel(Le,Ft){return`${Le} to ${Ft}`}}return Ln.\u0275fac=function(Le){return new(Le||Ln)},Ln.\u0275prov=l.\u0275\u0275defineInjectable({token:Ln,factory:Ln.\u0275fac,providedIn:"root"}),Ln})();class Wt{constructor(Vn,Le,Ft,dn,En={},gi=Vn,$i){this.value=Vn,this.displayValue=Le,this.ariaLabel=Ft,this.enabled=dn,this.cssClasses=En,this.compareValue=gi,this.rawValue=$i}}let Ut=1,nt=(()=>{class Ln{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(Le,Ft){this._elementRef=Le,this._ngZone=Ft,this._platform=(0,l.inject)(S.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 l.EventEmitter,this.previewChange=new l.EventEmitter,this.activeDateChange=new l.EventEmitter,this.dragStarted=new l.EventEmitter,this.dragEnded=new l.EventEmitter,this._didDragSinceMouseDown=!1,this._enterHandler=dn=>{if(this._skipNextFocus&&"focus"===dn.type)this._skipNextFocus=!1;else if(dn.target&&this.isRange){const En=this._getCellFromElement(dn.target);En&&this._ngZone.run(()=>this.previewChange.emit({value:En.enabled?En:null,event:dn}))}},this._touchmoveHandler=dn=>{if(!this.isRange)return;const En=Ie(dn),gi=En?this._getCellFromElement(En):null;En!==dn.target&&(this._didDragSinceMouseDown=!0),Fe(dn.target)&&dn.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:gi?.enabled?gi:null,event:dn}))},this._leaveHandler=dn=>{null!==this.previewEnd&&this.isRange&&("blur"!==dn.type&&(this._didDragSinceMouseDown=!0),dn.target&&this._getCellFromElement(dn.target)&&(!dn.relatedTarget||!this._getCellFromElement(dn.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:dn})))},this._mousedownHandler=dn=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const En=dn.target&&this._getCellFromElement(dn.target);!En||!this._isInRange(En.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:En.rawValue,event:dn})})},this._mouseupHandler=dn=>{if(!this.isRange)return;const En=Fe(dn.target);En?En.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const gi=this._getCellFromElement(En);this.dragEnded.emit({value:gi?.rawValue??null,event:dn})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:dn})})},this._touchendHandler=dn=>{const En=Ie(dn);En&&this._mouseupHandler({target:En})},this._id="mat-calendar-body-"+Ut++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,Ft.runOutsideAngular(()=>{const dn=Le.nativeElement;dn.addEventListener("mouseenter",this._enterHandler,!0),dn.addEventListener("touchmove",this._touchmoveHandler,!0),dn.addEventListener("focus",this._enterHandler,!0),dn.addEventListener("mouseleave",this._leaveHandler,!0),dn.addEventListener("blur",this._leaveHandler,!0),dn.addEventListener("mousedown",this._mousedownHandler),dn.addEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(Le,Ft){this._didDragSinceMouseDown||Le.enabled&&this.selectedValueChange.emit({value:Le.value,event:Ft})}_emitActiveDateChange(Le,Ft){Le.enabled&&this.activeDateChange.emit({value:Le.value,event:Ft})}_isSelected(Le){return this.startValue===Le||this.endValue===Le}ngOnChanges(Le){const Ft=Le.numCols,{rows:dn,numCols:En}=this;(Le.rows||Ft)&&(this._firstRowOffset=dn&&dn.length&&dn[0].length?En-dn[0].length:0),(Le.cellAspectRatio||Ft||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/En+"%"),(Ft||!this._cellWidth)&&(this._cellWidth=100/En+"%")}ngOnDestroy(){const Le=this._elementRef.nativeElement;Le.removeEventListener("mouseenter",this._enterHandler,!0),Le.removeEventListener("touchmove",this._touchmoveHandler,!0),Le.removeEventListener("focus",this._enterHandler,!0),Le.removeEventListener("mouseleave",this._leaveHandler,!0),Le.removeEventListener("blur",this._leaveHandler,!0),Le.removeEventListener("mousedown",this._mousedownHandler),Le.removeEventListener("touchstart",this._mousedownHandler),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(Le,Ft){let dn=Le*this.numCols+Ft;return Le&&(dn-=this._firstRowOffset),dn==this.activeCell}_focusActiveCell(Le=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(()=>{setTimeout(()=>{const Ft=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Ft&&(Le||(this._skipNextFocus=!0),Ft.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Le){return yt(Le,this.startValue,this.endValue)}_isRangeEnd(Le){return ie(Le,this.startValue,this.endValue)}_isInRange(Le){return Ce(Le,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Le){return yt(Le,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Le,Ft,dn){if(!this._isComparisonStart(Le)||this._isRangeStart(Le)||!this._isInRange(Le))return!1;let En=this.rows[Ft][dn-1];if(!En){const gi=this.rows[Ft-1];En=gi&&gi[gi.length-1]}return En&&!this._isRangeEnd(En.compareValue)}_isComparisonBridgeEnd(Le,Ft,dn){if(!this._isComparisonEnd(Le)||this._isRangeEnd(Le)||!this._isInRange(Le))return!1;let En=this.rows[Ft][dn+1];if(!En){const gi=this.rows[Ft+1];En=gi&&gi[0]}return En&&!this._isRangeStart(En.compareValue)}_isComparisonEnd(Le){return ie(Le,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Le){return Ce(Le,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Le){return this.comparisonStart===this.comparisonEnd&&Le===this.comparisonStart}_isPreviewStart(Le){return yt(Le,this.previewStart,this.previewEnd)}_isPreviewEnd(Le){return ie(Le,this.previewStart,this.previewEnd)}_isInPreview(Le){return Ce(Le,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(Le){return this.isRange?this.startValue===Le&&this.endValue===Le?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===Le?this._startDateLabelId:this.endValue===Le?this._endDateLabelId:null:null}_getCellFromElement(Le){const Ft=Fe(Le);if(Ft){const dn=Ft.getAttribute("data-mat-row"),En=Ft.getAttribute("data-mat-col");if(dn&&En)return this.rows[parseInt(dn)][parseInt(En)]}return null}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.NgZone))},Ln.\u0275cmp=l.\u0275\u0275defineComponent({type:Ln,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:[l.\u0275\u0275NgOnChangesFeature],attrs:Q,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(Le,Ft){1&Le&&(l.\u0275\u0275template(0,ae,3,6,"tr",0),l.\u0275\u0275template(1,$,3,2,"tr",1),l.\u0275\u0275elementStart(2,"label",2),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(4,"label",2),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd()),2&Le&&(l.\u0275\u0275property("ngIf",Ft._firstRowOffset<Ft.labelMinRequiredCells),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",Ft.rows),l.\u0275\u0275advance(1),l.\u0275\u0275property("id",Ft._startDateLabelId),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",Ft.startDateAccessibleName,"\n"),l.\u0275\u0275advance(1),l.\u0275\u0275property("id",Ft._endDateLabelId),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",Ft.endDateAccessibleName,"\n"))},dependencies:[t.NgClass,t.NgForOf,t.NgIf],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.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}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.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}),Ln})();function Zt(Ln){return"TD"===Ln?.nodeName}function Fe(Ln){let Vn;return Zt(Ln)?Vn=Ln:Zt(Ln.parentNode)?Vn=Ln.parentNode:Zt(Ln.parentNode?.parentNode)&&(Vn=Ln.parentNode.parentNode),null!=Vn?.getAttribute("data-mat-row")?Vn:null}function yt(Ln,Vn,Le){return null!==Le&&Vn!==Le&&Ln<Le&&Ln===Vn}function ie(Ln,Vn,Le){return null!==Vn&&Vn!==Le&&Ln>=Vn&&Ln===Le}function Ce(Ln,Vn,Le,Ft){return Ft&&null!==Vn&&null!==Le&&Vn!==Le&&Ln>=Vn&&Ln<=Le}function Ie(Ln){const Vn=Ln.changedTouches[0];return document.elementFromPoint(Vn.clientX,Vn.clientY)}class dt{constructor(Vn,Le){this.start=Vn,this.end=Le}}let Mt=(()=>{class Ln{constructor(Le,Ft){this.selection=Le,this._adapter=Ft,this._selectionChanged=new p.x,this.selectionChanged=this._selectionChanged,this.selection=Le}updateSelection(Le,Ft){const dn=this.selection;this.selection=Le,this._selectionChanged.next({selection:Le,source:Ft,oldValue:dn})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Le){return this._adapter.isDateInstance(Le)&&this._adapter.isValid(Le)}}return Ln.\u0275fac=function(Le){l.\u0275\u0275invalidFactory()},Ln.\u0275prov=l.\u0275\u0275defineInjectable({token:Ln,factory:Ln.\u0275fac}),Ln})(),Xt=(()=>{class Ln extends Mt{constructor(Le){super(null,Le)}add(Le){super.updateSelection(Le,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Le=new Ln(this._adapter);return Le.updateSelection(this.selection,this),Le}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275inject(d._A))},Ln.\u0275prov=l.\u0275\u0275defineInjectable({token:Ln,factory:Ln.\u0275fac}),Ln})();const xt={provide:Mt,deps:[[new l.Optional,new l.SkipSelf,Mt],d._A],useFactory:function vt(Ln,Vn){return Ln||new Xt(Vn)}},At=new l.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY");let mt=(()=>{class Ln{get activeDate(){return this._activeDate}set activeDate(Le){const Ft=this._activeDate,dn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(dn,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ft,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Le){this._selected=Le instanceof dt?Le:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Le){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}get maxDate(){return this._maxDate}set maxDate(Le){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}constructor(Le,Ft,dn,En,gi){this._changeDetectorRef=Le,this._dateFormats=Ft,this._dateAdapter=dn,this._dir=En,this._rangeStrategy=gi,this._rerenderSubscription=u.w0.EMPTY,this.activeDrag=null,this.selectedChange=new l.EventEmitter,this._userSelection=new l.EventEmitter,this.dragStarted=new l.EventEmitter,this.dragEnded=new l.EventEmitter,this.activeDateChange=new l.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,D.O)(null)).subscribe(()=>this._init())}ngOnChanges(Le){const Ft=Le.comparisonStart||Le.comparisonEnd;Ft&&!Ft.firstChange&&this._setRanges(this.selected),Le.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Le){const Ft=Le.value,dn=this._getDateFromDayOfMonth(Ft);let En,gi;this._selected instanceof dt?(En=this._getDateInCurrentMonth(this._selected.start),gi=this._getDateInCurrentMonth(this._selected.end)):En=gi=this._getDateInCurrentMonth(this._selected),(En!==Ft||gi!==Ft)&&this.selectedChange.emit(dn),this._userSelection.emit({value:dn,event:Le.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(Le){const dn=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Le.value),this._dateAdapter.compareDate(dn,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Le){const Ft=this._activeDate,dn=this._isRtl();switch(Le.keyCode){case y.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,dn?1:-1);break;case y.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,dn?-1:1);break;case y.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case y.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case y.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case y.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case y.Ku:this.activeDate=Le.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case y.VM:this.activeDate=Le.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case y.K5:case y.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Le.preventDefault());case y.hY:return void(null!=this._previewEnd&&!(0,y.Vb)(Le)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:Le}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Le})),Le.preventDefault(),Le.stopPropagation()));default:return}this._dateAdapter.compareDate(Ft,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Le.preventDefault()}_handleCalendarBodyKeyup(Le){(Le.keyCode===y.L_||Le.keyCode===y.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Le}),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 Le=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Le)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Le){this._matCalendarBody._focusActiveCell(Le)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Le,value:Ft}){if(this._rangeStrategy){const dn=Ft?Ft.rawValue:null,En=this._rangeStrategy.createPreview(dn,this.selected,Le);if(this._previewStart=this._getCellCompareValue(En.start),this._previewEnd=this._getCellCompareValue(En.end),this.activeDrag&&dn){const gi=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,dn,Le);gi&&(this._previewStart=this._getCellCompareValue(gi.start),this._previewEnd=this._getCellCompareValue(gi.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(Le){if(this.activeDrag)if(Le.value){const Ft=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,Le.value,Le.event);this.dragEnded.emit({value:Ft??null,event:Le.event})}else this.dragEnded.emit({value:null,event:Le.event})}_getDateFromDayOfMonth(Le){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Le)}_initWeekdays(){const Le=this._dateAdapter.getFirstDayOfWeek(),Ft=this._dateAdapter.getDayOfWeekNames("narrow");let En=this._dateAdapter.getDayOfWeekNames("long").map((gi,$i)=>({long:gi,narrow:Ft[$i]}));this._weekdays=En.slice(Le).concat(En.slice(0,Le))}_createWeekCells(){const Le=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ft=this._dateAdapter.getDateNames();this._weeks=[[]];for(let dn=0,En=this._firstWeekOffset;dn<Le;dn++,En++){7==En&&(this._weeks.push([]),En=0);const gi=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),dn+1),$i=this._shouldEnableDate(gi),fr=this._dateAdapter.format(gi,this._dateFormats.display.dateA11yLabel),Mr=this.dateClass?this.dateClass(gi,"month"):void 0;this._weeks[this._weeks.length-1].push(new Wt(dn+1,Ft[dn],fr,$i,Mr,this._getCellCompareValue(gi),gi))}}_shouldEnableDate(Le){return!!Le&&(!this.minDate||this._dateAdapter.compareDate(Le,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(Le,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Le))}_getDateInCurrentMonth(Le){return Le&&this._hasSameMonthAndYear(Le,this.activeDate)?this._dateAdapter.getDate(Le):null}_hasSameMonthAndYear(Le,Ft){return!(!Le||!Ft||this._dateAdapter.getMonth(Le)!=this._dateAdapter.getMonth(Ft)||this._dateAdapter.getYear(Le)!=this._dateAdapter.getYear(Ft))}_getCellCompareValue(Le){if(Le){const Ft=this._dateAdapter.getYear(Le),dn=this._dateAdapter.getMonth(Le),En=this._dateAdapter.getDate(Le);return new Date(Ft,dn,En).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Le){Le instanceof dt?(this._rangeStart=this._getCellCompareValue(Le.start),this._rangeEnd=this._getCellCompareValue(Le.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Le),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(Le){return!this.dateFilter||this.dateFilter(Le)}_clearPreview(){this._previewStart=this._previewEnd=null}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(d.sG,8),l.\u0275\u0275directiveInject(d._A,8),l.\u0275\u0275directiveInject(b.Is,8),l.\u0275\u0275directiveInject(At,8))},Ln.\u0275cmp=l.\u0275\u0275defineComponent({type:Ln,selectors:[["mat-month-view"]],viewQuery:function(Le,Ft){if(1&Le&&l.\u0275\u0275viewQuery(nt,5),2&Le){let dn;l.\u0275\u0275queryRefresh(dn=l.\u0275\u0275loadQuery())&&(Ft._matCalendarBody=dn.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:[l.\u0275\u0275NgOnChangesFeature],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(Le,Ft){1&Le&&(l.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),l.\u0275\u0275template(3,j,5,2,"th",2),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(4,"tr"),l.\u0275\u0275element(5,"th",3),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(6,"tbody",4),l.\u0275\u0275listener("selectedValueChange",function(En){return Ft._dateSelected(En)})("activeDateChange",function(En){return Ft._updateActiveDate(En)})("previewChange",function(En){return Ft._previewChanged(En)})("dragStarted",function(En){return Ft.dragStarted.emit(En)})("dragEnded",function(En){return Ft._dragEnded(En)})("keyup",function(En){return Ft._handleCalendarBodyKeyup(En)})("keydown",function(En){return Ft._handleCalendarBodyKeydown(En)}),l.\u0275\u0275elementEnd()()),2&Le&&(l.\u0275\u0275advance(3),l.\u0275\u0275property("ngForOf",Ft._weekdays),l.\u0275\u0275advance(3),l.\u0275\u0275property("label",Ft._monthLabel)("rows",Ft._weeks)("todayValue",Ft._todayDate)("startValue",Ft._rangeStart)("endValue",Ft._rangeEnd)("comparisonStart",Ft._comparisonRangeStart)("comparisonEnd",Ft._comparisonRangeEnd)("previewStart",Ft._previewStart)("previewEnd",Ft._previewEnd)("isRange",Ft._isRange)("labelMinRequiredCells",3)("activeCell",Ft._dateAdapter.getDate(Ft.activeDate)-1)("startDateAccessibleName",Ft.startDateAccessibleName)("endDateAccessibleName",Ft.endDateAccessibleName))},dependencies:[t.NgForOf,nt],encapsulation:2,changeDetection:0}),Ln})();const It=24;let _n=(()=>{class Ln{get activeDate(){return this._activeDate}set activeDate(Le){let Ft=this._activeDate;const dn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(dn,this.minDate,this.maxDate),Jt(this._dateAdapter,Ft,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Le){this._selected=Le instanceof dt?Le:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le)),this._setSelectedYear(Le)}get minDate(){return this._minDate}set minDate(Le){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}get maxDate(){return this._maxDate}set maxDate(Le){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}constructor(Le,Ft,dn){this._changeDetectorRef=Le,this._dateAdapter=Ft,this._dir=dn,this._rerenderSubscription=u.w0.EMPTY,this.selectedChange=new l.EventEmitter,this.yearSelected=new l.EventEmitter,this.activeDateChange=new l.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,D.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ft=this._dateAdapter.getYear(this._activeDate)-ke(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let dn=0,En=[];dn<It;dn++)En.push(Ft+dn),4==En.length&&(this._years.push(En.map(gi=>this._createCellForYear(gi))),En=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Le){const Ft=Le.value,dn=this._dateAdapter.createDate(Ft,0,1),En=this._getDateFromYear(Ft);this.yearSelected.emit(dn),this.selectedChange.emit(En)}_updateActiveDate(Le){const dn=this._activeDate;this.activeDate=this._getDateFromYear(Le.value),this._dateAdapter.compareDate(dn,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Le){const Ft=this._activeDate,dn=this._isRtl();switch(Le.keyCode){case y.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,dn?1:-1);break;case y.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,dn?-1:1);break;case y.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case y.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case y.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ke(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case y.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,It-ke(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case y.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Le.altKey?10*-It:-It);break;case y.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Le.altKey?10*It:It);break;case y.K5:case y.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ft,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Le.preventDefault()}_handleCalendarBodyKeyup(Le){(Le.keyCode===y.L_||Le.keyCode===y.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Le}),this._selectionKeyPressed=!1)}_getActiveCell(){return ke(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Le){const Ft=this._dateAdapter.getMonth(this.activeDate),dn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Le,Ft,1));return this._dateAdapter.createDate(Le,Ft,Math.min(this._dateAdapter.getDate(this.activeDate),dn))}_createCellForYear(Le){const Ft=this._dateAdapter.createDate(Le,0,1),dn=this._dateAdapter.getYearName(Ft),En=this.dateClass?this.dateClass(Ft,"multi-year"):void 0;return new Wt(Le,dn,dn,this._shouldEnableYear(Le),En)}_shouldEnableYear(Le){if(null==Le||this.maxDate&&Le>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Le<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let dn=this._dateAdapter.createDate(Le,0,1);this._dateAdapter.getYear(dn)==Le;dn=this._dateAdapter.addCalendarDays(dn,1))if(this.dateFilter(dn))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(Le){if(this._selectedYear=null,Le instanceof dt){const Ft=Le.start||Le.end;Ft&&(this._selectedYear=this._dateAdapter.getYear(Ft))}else Le&&(this._selectedYear=this._dateAdapter.getYear(Le))}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(d._A,8),l.\u0275\u0275directiveInject(b.Is,8))},Ln.\u0275cmp=l.\u0275\u0275defineComponent({type:Ln,selectors:[["mat-multi-year-view"]],viewQuery:function(Le,Ft){if(1&Le&&l.\u0275\u0275viewQuery(nt,5),2&Le){let dn;l.\u0275\u0275queryRefresh(dn=l.\u0275\u0275loadQuery())&&(Ft._matCalendarBody=dn.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(Le,Ft){1&Le&&(l.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),l.\u0275\u0275element(3,"th",2),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(4,"tbody",3),l.\u0275\u0275listener("selectedValueChange",function(En){return Ft._yearSelected(En)})("activeDateChange",function(En){return Ft._updateActiveDate(En)})("keyup",function(En){return Ft._handleCalendarBodyKeyup(En)})("keydown",function(En){return Ft._handleCalendarBodyKeydown(En)}),l.\u0275\u0275elementEnd()()),2&Le&&(l.\u0275\u0275advance(4),l.\u0275\u0275property("rows",Ft._years)("todayValue",Ft._todayYear)("startValue",Ft._selectedYear)("endValue",Ft._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",Ft._getActiveCell()))},dependencies:[nt],encapsulation:2,changeDetection:0}),Ln})();function Jt(Ln,Vn,Le,Ft,dn){const En=Ln.getYear(Vn),gi=Ln.getYear(Le),$i=Ae(Ln,Ft,dn);return Math.floor((En-$i)/It)===Math.floor((gi-$i)/It)}function ke(Ln,Vn,Le,Ft){return function ze(Ln,Vn){return(Ln%Vn+Vn)%Vn}(Ln.getYear(Vn)-Ae(Ln,Le,Ft),It)}function Ae(Ln,Vn,Le){let Ft=0;return Le?Ft=Ln.getYear(Le)-It+1:Vn&&(Ft=Ln.getYear(Vn)),Ft}let pt=(()=>{class Ln{get activeDate(){return this._activeDate}set activeDate(Le){let Ft=this._activeDate;const dn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(dn,this.minDate,this.maxDate),this._dateAdapter.getYear(Ft)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Le){this._selected=Le instanceof dt?Le:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le)),this._setSelectedMonth(Le)}get minDate(){return this._minDate}set minDate(Le){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}get maxDate(){return this._maxDate}set maxDate(Le){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}constructor(Le,Ft,dn,En){this._changeDetectorRef=Le,this._dateFormats=Ft,this._dateAdapter=dn,this._dir=En,this._rerenderSubscription=u.w0.EMPTY,this.selectedChange=new l.EventEmitter,this.monthSelected=new l.EventEmitter,this.activeDateChange=new l.EventEmitter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,D.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Le){const Ft=Le.value,dn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ft,1);this.monthSelected.emit(dn);const En=this._getDateFromMonth(Ft);this.selectedChange.emit(En)}_updateActiveDate(Le){const dn=this._activeDate;this.activeDate=this._getDateFromMonth(Le.value),this._dateAdapter.compareDate(dn,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Le){const Ft=this._activeDate,dn=this._isRtl();switch(Le.keyCode){case y.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,dn?1:-1);break;case y.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,dn?-1:1);break;case y.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case y.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case y.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case y.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case y.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Le.altKey?-10:-1);break;case y.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Le.altKey?10:1);break;case y.K5:case y.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ft,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Le.preventDefault()}_handleCalendarBodyKeyup(Le){(Le.keyCode===y.L_||Le.keyCode===y.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Le}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Le=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Ft=>Ft.map(dn=>this._createCellForMonth(dn,Le[dn]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Le){return Le&&this._dateAdapter.getYear(Le)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Le):null}_getDateFromMonth(Le){const Ft=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Le,1),dn=this._dateAdapter.getNumDaysInMonth(Ft);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Le,Math.min(this._dateAdapter.getDate(this.activeDate),dn))}_createCellForMonth(Le,Ft){const dn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Le,1),En=this._dateAdapter.format(dn,this._dateFormats.display.monthYearA11yLabel),gi=this.dateClass?this.dateClass(dn,"year"):void 0;return new Wt(Le,Ft.toLocaleUpperCase(),En,this._shouldEnableMonth(Le),gi)}_shouldEnableMonth(Le){const Ft=this._dateAdapter.getYear(this.activeDate);if(null==Le||this._isYearAndMonthAfterMaxDate(Ft,Le)||this._isYearAndMonthBeforeMinDate(Ft,Le))return!1;if(!this.dateFilter)return!0;for(let En=this._dateAdapter.createDate(Ft,Le,1);this._dateAdapter.getMonth(En)==Le;En=this._dateAdapter.addCalendarDays(En,1))if(this.dateFilter(En))return!0;return!1}_isYearAndMonthAfterMaxDate(Le,Ft){if(this.maxDate){const dn=this._dateAdapter.getYear(this.maxDate),En=this._dateAdapter.getMonth(this.maxDate);return Le>dn||Le===dn&&Ft>En}return!1}_isYearAndMonthBeforeMinDate(Le,Ft){if(this.minDate){const dn=this._dateAdapter.getYear(this.minDate),En=this._dateAdapter.getMonth(this.minDate);return Le<dn||Le===dn&&Ft<En}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(Le){this._selectedMonth=Le instanceof dt?this._getMonthInCurrentYear(Le.start)||this._getMonthInCurrentYear(Le.end):this._getMonthInCurrentYear(Le)}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(d.sG,8),l.\u0275\u0275directiveInject(d._A,8),l.\u0275\u0275directiveInject(b.Is,8))},Ln.\u0275cmp=l.\u0275\u0275defineComponent({type:Ln,selectors:[["mat-year-view"]],viewQuery:function(Le,Ft){if(1&Le&&l.\u0275\u0275viewQuery(nt,5),2&Le){let dn;l.\u0275\u0275queryRefresh(dn=l.\u0275\u0275loadQuery())&&(Ft._matCalendarBody=dn.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(Le,Ft){1&Le&&(l.\u0275\u0275elementStart(0,"table",0)(1,"thead",1)(2,"tr"),l.\u0275\u0275element(3,"th",2),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(4,"tbody",3),l.\u0275\u0275listener("selectedValueChange",function(En){return Ft._monthSelected(En)})("activeDateChange",function(En){return Ft._updateActiveDate(En)})("keyup",function(En){return Ft._handleCalendarBodyKeyup(En)})("keydown",function(En){return Ft._handleCalendarBodyKeydown(En)}),l.\u0275\u0275elementEnd()()),2&Le&&(l.\u0275\u0275advance(4),l.\u0275\u0275property("label",Ft._yearLabel)("rows",Ft._months)("todayValue",Ft._todayMonth)("startValue",Ft._selectedMonth)("endValue",Ft._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",Ft._dateAdapter.getMonth(Ft.activeDate)))},dependencies:[nt],encapsulation:2,changeDetection:0}),Ln})(),tn=1,ot=(()=>{class Ln{constructor(Le,Ft,dn,En,gi){this._intl=Le,this.calendar=Ft,this._dateAdapter=dn,this._dateFormats=En,this._id="mat-calendar-header-"+tn++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>gi.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:-It)}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:It)}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(Le,Ft){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Le)==this._dateAdapter.getYear(Ft)&&this._dateAdapter.getMonth(Le)==this._dateAdapter.getMonth(Ft):"year"==this.calendar.currentView?this._dateAdapter.getYear(Le)==this._dateAdapter.getYear(Ft):Jt(this._dateAdapter,Le,Ft,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const Ft=this._dateAdapter.getYear(this.calendar.activeDate)-ke(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),dn=Ft+It-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(Ft,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(dn,0,1))]}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(wt),l.\u0275\u0275directiveInject((0,l.forwardRef)(()=>Et)),l.\u0275\u0275directiveInject(d._A,8),l.\u0275\u0275directiveInject(d.sG,8),l.\u0275\u0275directiveInject(l.ChangeDetectorRef))},Ln.\u0275cmp=l.\u0275\u0275defineComponent({type:Ln,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:R,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(Le,Ft){1&Le&&(l.\u0275\u0275projectionDef(),l.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"button",2),l.\u0275\u0275listener("click",function(){return Ft.currentPeriodClicked()}),l.\u0275\u0275elementStart(3,"span",3),l.\u0275\u0275text(4),l.\u0275\u0275elementEnd(),l.\u0275\u0275namespaceSVG(),l.\u0275\u0275elementStart(5,"svg",4),l.\u0275\u0275element(6,"polygon",5),l.\u0275\u0275elementEnd()(),l.\u0275\u0275namespaceHTML(),l.\u0275\u0275element(7,"div",6),l.\u0275\u0275projection(8),l.\u0275\u0275elementStart(9,"button",7),l.\u0275\u0275listener("click",function(){return Ft.previousClicked()}),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(10,"button",8),l.\u0275\u0275listener("click",function(){return Ft.nextClicked()}),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275elementStart(11,"label",9),l.\u0275\u0275text(12),l.\u0275\u0275elementEnd()),2&Le&&(l.\u0275\u0275advance(2),l.\u0275\u0275attribute("aria-label",Ft.periodButtonLabel)("aria-describedby",Ft._periodButtonLabelId),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(Ft.periodButtonText),l.\u0275\u0275advance(1),l.\u0275\u0275classProp("mat-calendar-invert","month"!==Ft.calendar.currentView),l.\u0275\u0275advance(4),l.\u0275\u0275property("disabled",!Ft.previousEnabled()),l.\u0275\u0275attribute("aria-label",Ft.prevButtonLabel),l.\u0275\u0275advance(1),l.\u0275\u0275property("disabled",!Ft.nextEnabled()),l.\u0275\u0275attribute("aria-label",Ft.nextButtonLabel),l.\u0275\u0275advance(1),l.\u0275\u0275property("id",Ft._periodButtonLabelId),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(Ft.periodButtonDescription))},dependencies:[h.lW,h.RK],encapsulation:2,changeDetection:0}),Ln})(),Et=(()=>{class Ln{get startAt(){return this._startAt}set startAt(Le){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}get selected(){return this._selected}set selected(Le){this._selected=Le instanceof dt?Le:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}get minDate(){return this._minDate}set minDate(Le){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}get maxDate(){return this._maxDate}set maxDate(Le){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}get activeDate(){return this._clampedActiveDate}set activeDate(Le){this._clampedActiveDate=this._dateAdapter.clampDate(Le,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Le){const Ft=this._currentView!==Le?Le:null;this._currentView=Le,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Ft&&this.viewChanged.emit(Ft)}constructor(Le,Ft,dn,En){this._dateAdapter=Ft,this._dateFormats=dn,this._changeDetectorRef=En,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new l.EventEmitter,this.yearSelected=new l.EventEmitter,this.monthSelected=new l.EventEmitter,this.viewChanged=new l.EventEmitter(!0),this._userSelection=new l.EventEmitter,this._userDragDrop=new l.EventEmitter,this._activeDrag=null,this.stateChanges=new p.x,this._intlChanges=Le.changes.subscribe(()=>{En.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new a.C5(this.headerComponent||ot),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(Le){const Ft=Le.minDate&&!this._dateAdapter.sameDate(Le.minDate.previousValue,Le.minDate.currentValue)?Le.minDate:void 0,dn=Le.maxDate&&!this._dateAdapter.sameDate(Le.maxDate.previousValue,Le.maxDate.currentValue)?Le.maxDate:void 0,En=Ft||dn||Le.dateFilter;if(En&&!En.firstChange){const gi=this._getCurrentViewComponent();gi&&(this._changeDetectorRef.detectChanges(),gi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Le){const Ft=Le.value;(this.selected instanceof dt||Ft&&!this._dateAdapter.sameDate(Ft,this.selected))&&this.selectedChange.emit(Ft),this._userSelection.emit(Le)}_yearSelectedInMultiYearView(Le){this.yearSelected.emit(Le)}_monthSelectedInYearView(Le){this.monthSelected.emit(Le)}_goToDateInView(Le,Ft){this.activeDate=Le,this.currentView=Ft}_dragStarted(Le){this._activeDrag=Le}_dragEnded(Le){this._activeDrag&&(Le.value&&this._userDragDrop.emit(Le),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(wt),l.\u0275\u0275directiveInject(d._A,8),l.\u0275\u0275directiveInject(d.sG,8),l.\u0275\u0275directiveInject(l.ChangeDetectorRef))},Ln.\u0275cmp=l.\u0275\u0275defineComponent({type:Ln,selectors:[["mat-calendar"]],viewQuery:function(Le,Ft){if(1&Le&&(l.\u0275\u0275viewQuery(mt,5),l.\u0275\u0275viewQuery(pt,5),l.\u0275\u0275viewQuery(_n,5)),2&Le){let dn;l.\u0275\u0275queryRefresh(dn=l.\u0275\u0275loadQuery())&&(Ft.monthView=dn.first),l.\u0275\u0275queryRefresh(dn=l.\u0275\u0275loadQuery())&&(Ft.yearView=dn.first),l.\u0275\u0275queryRefresh(dn=l.\u0275\u0275loadQuery())&&(Ft.multiYearView=dn.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:[l.\u0275\u0275ProvidersFeature([xt]),l.\u0275\u0275NgOnChangesFeature],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(Le,Ft){1&Le&&(l.\u0275\u0275template(0,U,0,0,"ng-template",0),l.\u0275\u0275elementStart(1,"div",1),l.\u0275\u0275template(2,le,1,11,"mat-month-view",2),l.\u0275\u0275template(3,T,1,6,"mat-year-view",3),l.\u0275\u0275template(4,H,1,6,"mat-multi-year-view",4),l.\u0275\u0275elementEnd()),2&Le&&(l.\u0275\u0275property("cdkPortalOutlet",Ft._calendarHeaderPortal),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngSwitch",Ft.currentView),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngSwitchCase","month"),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngSwitchCase","year"),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngSwitchCase","multi-year"))},dependencies:[t.NgSwitch,t.NgSwitchCase,e.kH,a.Pl,mt,pt,_n],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;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}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0}),Ln})();const z={transformPanel:(0,B.X$)("transformPanel",[(0,B.eR)("void => enter-dropdown",(0,B.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,B.F4)([(0,B.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,B.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,B.eR)("void => enter-dialog",(0,B.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,B.F4)([(0,B.oB)({opacity:0,transform:"scale(0.7)"}),(0,B.oB)({transform:"none",opacity:1})]))),(0,B.eR)("* => void",(0,B.jt)("100ms linear",(0,B.oB)({opacity:0})))]),fadeInCalendar:(0,B.X$)("fadeInCalendar",[(0,B.SB)("void",(0,B.oB)({opacity:0})),(0,B.SB)("enter",(0,B.oB)({opacity:1})),(0,B.eR)("void => *",(0,B.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Z=0;const ge=new l.InjectionToken("mat-datepicker-scroll-strategy"),qe={provide:ge,deps:[n.aV],useFactory:function Qe(Ln){return()=>Ln.scrollStrategies.reposition()}},ct=(0,d.pj)(class{constructor(Ln){this._elementRef=Ln}});let Yt=(()=>{class Ln extends ct{constructor(Le,Ft,dn,En,gi,$i){super(Le),this._changeDetectorRef=Ft,this._globalModel=dn,this._dateAdapter=En,this._rangeSelectionStrategy=gi,this._subscriptions=new u.w0,this._animationDone=new p.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=$i.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(Le){const Ft=this._model.selection,dn=Le.value,En=Ft instanceof dt;if(En&&this._rangeSelectionStrategy){const gi=this._rangeSelectionStrategy.selectionFinished(dn,Ft,Le.event);this._model.updateSelection(gi,this)}else dn&&(En||!this._dateAdapter.sameDate(dn,Ft))&&this._model.add(dn);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(Le){this._model.updateSelection(Le.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(Le){this._isAnimating="start"===Le.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(Le,Ft){this._model=Le?this._globalModel.clone():this._globalModel,this._actionsPortal=Le,Ft&&this._changeDetectorRef.detectChanges()}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(Mt),l.\u0275\u0275directiveInject(d._A),l.\u0275\u0275directiveInject(At,8),l.\u0275\u0275directiveInject(wt))},Ln.\u0275cmp=l.\u0275\u0275defineComponent({type:Ln,selectors:[["mat-datepicker-content"]],viewQuery:function(Le,Ft){if(1&Le&&l.\u0275\u0275viewQuery(Et,5),2&Le){let dn;l.\u0275\u0275queryRefresh(dn=l.\u0275\u0275loadQuery())&&(Ft._calendar=dn.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Le,Ft){1&Le&&l.\u0275\u0275syntheticHostListener("@transformPanel.start",function(En){return Ft._handleAnimationEvent(En)})("@transformPanel.done",function(En){return Ft._handleAnimationEvent(En)}),2&Le&&(l.\u0275\u0275syntheticHostProperty("@transformPanel",Ft._animationState),l.\u0275\u0275classProp("mat-datepicker-content-touch",Ft.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[l.\u0275\u0275InheritDefinitionFeature],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(Le,Ft){if(1&Le&&(l.\u0275\u0275elementStart(0,"div",0)(1,"mat-calendar",1),l.\u0275\u0275listener("yearSelected",function(En){return Ft.datepicker._selectYear(En)})("monthSelected",function(En){return Ft.datepicker._selectMonth(En)})("viewChanged",function(En){return Ft.datepicker._viewChanged(En)})("_userSelection",function(En){return Ft._handleUserSelection(En)})("_userDragDrop",function(En){return Ft._handleUserDragDrop(En)}),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(2,N,0,0,"ng-template",2),l.\u0275\u0275elementStart(3,"button",3),l.\u0275\u0275listener("focus",function(){return Ft._closeButtonFocused=!0})("blur",function(){return Ft._closeButtonFocused=!1})("click",function(){return Ft.datepicker.close()}),l.\u0275\u0275text(4),l.\u0275\u0275elementEnd()()),2&Le){let dn;l.\u0275\u0275classProp("mat-datepicker-content-container-with-custom-header",Ft.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ft._actionsPortal),l.\u0275\u0275attribute("aria-modal",!0)("aria-labelledby",null!==(dn=Ft._dialogLabelId)&&void 0!==dn?dn:void 0),l.\u0275\u0275advance(1),l.\u0275\u0275property("id",Ft.datepicker.id)("ngClass",Ft.datepicker.panelClass)("startAt",Ft.datepicker.startAt)("startView",Ft.datepicker.startView)("minDate",Ft.datepicker._getMinDate())("maxDate",Ft.datepicker._getMaxDate())("dateFilter",Ft.datepicker._getDateFilter())("headerComponent",Ft.datepicker.calendarHeaderComponent)("selected",Ft._getSelected())("dateClass",Ft.datepicker.dateClass)("comparisonStart",Ft.comparisonStart)("comparisonEnd",Ft.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",Ft.startDateAccessibleName)("endDateAccessibleName",Ft.endDateAccessibleName),l.\u0275\u0275advance(1),l.\u0275\u0275property("cdkPortalOutlet",Ft._actionsPortal),l.\u0275\u0275advance(1),l.\u0275\u0275classProp("cdk-visually-hidden",!Ft._closeButtonFocused),l.\u0275\u0275property("color",Ft.color||"primary"),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(Ft._closeButtonText)}},dependencies:[t.NgClass,h.lW,e.mK,a.Pl,Et],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[z.transformPanel,z.fadeInCalendar]},changeDetection:0}),Ln})(),it=(()=>{class Ln{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Le){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Le){this._color=Le}get touchUi(){return this._touchUi}set touchUi(Le){this._touchUi=(0,P.Ig)(Le)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Le){const Ft=(0,P.Ig)(Le);Ft!==this._disabled&&(this._disabled=Ft,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(Le){this._restoreFocus=(0,P.Ig)(Le)}get panelClass(){return this._panelClass}set panelClass(Le){this._panelClass=(0,P.du)(Le)}get opened(){return this._opened}set opened(Le){(0,P.Ig)(Le)?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(Le,Ft,dn,En,gi,$i,fr){this._overlay=Le,this._ngZone=Ft,this._viewContainerRef=dn,this._dateAdapter=gi,this._dir=$i,this._model=fr,this._inputStateChanges=u.w0.EMPTY,this._document=(0,l.inject)(t.DOCUMENT),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new l.EventEmitter,this.monthSelected=new l.EventEmitter,this.viewChanged=new l.EventEmitter(!0),this.openedStream=new l.EventEmitter,this.closedStream=new l.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+Z++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new p.x,this._scrollStrategy=En}ngOnChanges(Le){const Ft=Le.xPosition||Le.yPosition;if(Ft&&!Ft.firstChange&&this._overlayRef){const dn=this._overlayRef.getConfig().positionStrategy;dn instanceof n._G&&(this._setConnectedPositions(dn),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(Le){this._model.add(Le)}_selectYear(Le){this.yearSelected.emit(Le)}_selectMonth(Le){this.monthSelected.emit(Le)}_viewChanged(Le){this.viewChanged.emit(Le)}registerInput(Le){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Le,this._inputStateChanges=Le.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Le){this._actionsPortal=Le,this._componentRef?.instance._assignActions(Le,!0)}removeActions(Le){Le===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,S.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const Le=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Ft=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:dn,location:En}=this._componentRef;dn._startExitAnimation(),dn._animationDone.pipe((0,E.q)(1)).subscribe(()=>{const gi=this._document.activeElement;Le&&(!gi||gi===this._document.activeElement||En.nativeElement.contains(gi))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}Le?setTimeout(Ft):Ft()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(Le){Le.datepicker=this,Le.color=this.color,Le._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Le._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Le=this.touchUi,Ft=new a.C5(Yt,this._viewContainerRef),dn=this._overlayRef=this._overlay.create(new n.X_({positionStrategy:Le?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Le?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:Le?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(Le?"dialog":"popup")}));this._getCloseStream(dn).subscribe(En=>{En&&En.preventDefault(),this.close()}),dn.keydownEvents().subscribe(En=>{const gi=En.keyCode;(gi===y.LH||gi===y.JH||gi===y.oh||gi===y.SV||gi===y.Ku||gi===y.VM)&&En.preventDefault()}),this._componentRef=dn.attach(Ft),this._forwardContentValues(this._componentRef.instance),Le||this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(()=>dn.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const Le=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Le)}_setConnectedPositions(Le){const Ft="end"===this.xPosition?"end":"start",dn="start"===Ft?"end":"start",En="above"===this.yPosition?"bottom":"top",gi="top"===En?"bottom":"top";return Le.withPositions([{originX:Ft,originY:gi,overlayX:Ft,overlayY:En},{originX:Ft,originY:En,overlayX:Ft,overlayY:gi},{originX:dn,originY:gi,overlayX:dn,overlayY:En},{originX:dn,originY:En,overlayX:dn,overlayY:gi}])}_getCloseStream(Le){const Ft=["ctrlKey","shiftKey","metaKey"];return(0,g.T)(Le.backdropClick(),Le.detachments(),Le.keydownEvents().pipe((0,A.h)(dn=>dn.keyCode===y.hY&&!(0,y.Vb)(dn)||this.datepickerInput&&(0,y.Vb)(dn,"altKey")&&dn.keyCode===y.LH&&Ft.every(En=>!(0,y.Vb)(dn,En)))))}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(n.aV),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275directiveInject(ge),l.\u0275\u0275directiveInject(d._A,8),l.\u0275\u0275directiveInject(b.Is,8),l.\u0275\u0275directiveInject(Mt))},Ln.\u0275dir=l.\u0275\u0275defineDirective({type:Ln,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:[l.\u0275\u0275NgOnChangesFeature]}),Ln})(),Be=(()=>{class Ln extends it{}return Ln.\u0275fac=function(){let Vn;return function(Ft){return(Vn||(Vn=l.\u0275\u0275getInheritedFactory(Ln)))(Ft||Ln)}}(),Ln.\u0275cmp=l.\u0275\u0275defineComponent({type:Ln,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[l.\u0275\u0275ProvidersFeature([xt,{provide:it,useExisting:Ln}]),l.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(Le,Ft){},encapsulation:2,changeDetection:0}),Ln})();class gt{constructor(Vn,Le){this.target=Vn,this.targetElement=Le,this.value=this.target.value}}let ue=(()=>{class Ln{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Le){this._assignValueProgrammatically(Le)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Le){const Ft=(0,P.Ig)(Le),dn=this._elementRef.nativeElement;this._disabled!==Ft&&(this._disabled=Ft,this.stateChanges.next(void 0)),Ft&&this._isInitialized&&dn.blur&&dn.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Le){this._model=Le,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Ft=>{if(this._shouldHandleChangeEvent(Ft)){const dn=this._getValueFromModel(Ft.selection);this._lastValueValid=this._isValidValue(dn),this._cvaOnChange(dn),this._onTouched(),this._formatValue(dn),this.dateInput.emit(new gt(this,this._elementRef.nativeElement)),this.dateChange.emit(new gt(this,this._elementRef.nativeElement))}})}constructor(Le,Ft,dn){this._elementRef=Le,this._dateAdapter=Ft,this._dateFormats=dn,this.dateChange=new l.EventEmitter,this.dateInput=new l.EventEmitter,this.stateChanges=new p.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=u.w0.EMPTY,this._localeSubscription=u.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=En=>{const gi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(En.value));return!gi||this._matchesFilter(gi)?null:{matDatepickerFilter:!0}},this._minValidator=En=>{const gi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(En.value)),$i=this._getMinDate();return!$i||!gi||this._dateAdapter.compareDate($i,gi)<=0?null:{matDatepickerMin:{min:$i,actual:gi}}},this._maxValidator=En=>{const gi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(En.value)),$i=this._getMaxDate();return!$i||!gi||this._dateAdapter.compareDate($i,gi)>=0?null:{matDatepickerMax:{max:$i,actual:gi}}},this._lastValueValid=!1,this._localeSubscription=Ft.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Le){(function Ge(Ln,Vn){const Le=Object.keys(Ln);for(let Ft of Le){const{previousValue:dn,currentValue:En}=Ln[Ft];if(!Vn.isDateInstance(dn)||!Vn.isDateInstance(En))return!0;if(!Vn.sameDate(dn,En))return!0}return!1})(Le,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Le){this._validatorOnChange=Le}validate(Le){return this._validator?this._validator(Le):null}writeValue(Le){this._assignValueProgrammatically(Le)}registerOnChange(Le){this._cvaOnChange=Le}registerOnTouched(Le){this._onTouched=Le}setDisabledState(Le){this.disabled=Le}_onKeydown(Le){(0,y.Vb)(Le,"altKey")&&Le.keyCode===y.JH&&["ctrlKey","shiftKey","metaKey"].every(En=>!(0,y.Vb)(Le,En))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Le.preventDefault())}_onInput(Le){const Ft=this._lastValueValid;let dn=this._dateAdapter.parse(Le,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(dn),dn=this._dateAdapter.getValidDateOrNull(dn);const En=!this._dateAdapter.sameDate(dn,this.value);!dn||En?this._cvaOnChange(dn):(Le&&!this.value&&this._cvaOnChange(dn),Ft!==this._lastValueValid&&this._validatorOnChange()),En&&(this._assignValue(dn),this.dateInput.emit(new gt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new gt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Le){this._elementRef.nativeElement.value=null!=Le?this._dateAdapter.format(Le,this._dateFormats.display.dateInput):""}_assignValue(Le){this._model?(this._assignValueToModel(Le),this._pendingValue=null):this._pendingValue=Le}_isValidValue(Le){return!Le||this._dateAdapter.isValid(Le)}_parentDisabled(){return!1}_assignValueProgrammatically(Le){Le=this._dateAdapter.deserialize(Le),this._lastValueValid=this._isValidValue(Le),Le=this._dateAdapter.getValidDateOrNull(Le),this._assignValue(Le),this._formatValue(Le)}_matchesFilter(Le){const Ft=this._getDateFilter();return!Ft||Ft(Le)}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(d._A,8),l.\u0275\u0275directiveInject(d.sG,8))},Ln.\u0275dir=l.\u0275\u0275defineDirective({type:Ln,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[l.\u0275\u0275NgOnChangesFeature]}),Ln})();const ee={provide:V.JU,useExisting:(0,l.forwardRef)(()=>Ot),multi:!0},De={provide:V.Cf,useExisting:(0,l.forwardRef)(()=>Ot),multi:!0};let Ot=(()=>{class Ln extends ue{set matDatepicker(Le){Le&&(this._datepicker=Le,this._closedSubscription=Le.closedStream.subscribe(()=>this._onTouched()),this._registerModel(Le.registerInput(this)))}get min(){return this._min}set min(Le){const Ft=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le));this._dateAdapter.sameDate(Ft,this._min)||(this._min=Ft,this._validatorOnChange())}get max(){return this._max}set max(Le){const Ft=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Le));this._dateAdapter.sameDate(Ft,this._max)||(this._max=Ft,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(Le){const Ft=this._matchesFilter(this.value);this._dateFilter=Le,this._matchesFilter(this.value)!==Ft&&this._validatorOnChange()}constructor(Le,Ft,dn,En){super(Le,Ft,dn),this._formField=En,this._closedSubscription=u.w0.EMPTY,this._validator=V.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(Le){return Le}_assignValueToModel(Le){this._model&&this._model.updateSelection(Le,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Le){return Le.source!==this}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(d._A,8),l.\u0275\u0275directiveInject(d.sG,8),l.\u0275\u0275directiveInject(X.G_,8))},Ln.\u0275dir=l.\u0275\u0275defineDirective({type:Ln,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(Le,Ft){1&Le&&l.\u0275\u0275listener("input",function(En){return Ft._onInput(En.target.value)})("change",function(){return Ft._onChange()})("blur",function(){return Ft._onBlur()})("keydown",function(En){return Ft._onKeydown(En)}),2&Le&&(l.\u0275\u0275hostProperty("disabled",Ft.disabled),l.\u0275\u0275attribute("aria-haspopup",Ft._datepicker?"dialog":null)("aria-owns",(null==Ft._datepicker?null:Ft._datepicker.opened)&&Ft._datepicker.id||null)("min",Ft.min?Ft._dateAdapter.toIso8601(Ft.min):null)("max",Ft.max?Ft._dateAdapter.toIso8601(Ft.max):null)("data-mat-calendar",Ft._datepicker?Ft._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[l.\u0275\u0275ProvidersFeature([ee,De,{provide:re.Jk,useExisting:Ln}]),l.\u0275\u0275InheritDefinitionFeature]}),Ln})(),cn=(()=>{class Ln{}return Ln.\u0275fac=function(Le){return new(Le||Ln)},Ln.\u0275dir=l.\u0275\u0275defineDirective({type:Ln,selectors:[["","matDatepickerToggleIcon",""]]}),Ln})(),Gn=(()=>{class Ln{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Le){this._disabled=(0,P.Ig)(Le)}constructor(Le,Ft,dn){this._intl=Le,this._changeDetectorRef=Ft,this._stateChanges=u.w0.EMPTY;const En=Number(dn);this.tabIndex=En||0===En?En:null}ngOnChanges(Le){Le.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Le){this.datepicker&&!this.disabled&&(this.datepicker.open(),Le.stopPropagation())}_watchStateChanges(){const Le=this.datepicker?this.datepicker.stateChanges:(0,v.of)(),Ft=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,v.of)(),dn=this.datepicker?(0,g.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,v.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,g.T)(this._intl.changes,Le,Ft,dn).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Ln.\u0275fac=function(Le){return new(Le||Ln)(l.\u0275\u0275directiveInject(wt),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275injectAttribute("tabindex"))},Ln.\u0275cmp=l.\u0275\u0275defineComponent({type:Ln,selectors:[["mat-datepicker-toggle"]],contentQueries:function(Le,Ft,dn){if(1&Le&&l.\u0275\u0275contentQuery(dn,cn,5),2&Le){let En;l.\u0275\u0275queryRefresh(En=l.\u0275\u0275loadQuery())&&(Ft._customIcon=En.first)}},viewQuery:function(Le,Ft){if(1&Le&&l.\u0275\u0275viewQuery(pe,5),2&Le){let dn;l.\u0275\u0275queryRefresh(dn=l.\u0275\u0275loadQuery())&&(Ft._button=dn.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(Le,Ft){1&Le&&l.\u0275\u0275listener("click",function(En){return Ft._open(En)}),2&Le&&(l.\u0275\u0275attribute("tabindex",null)("data-mat-calendar",Ft.datepicker?Ft.datepicker.id:null),l.\u0275\u0275classProp("mat-datepicker-toggle-active",Ft.datepicker&&Ft.datepicker.opened)("mat-accent",Ft.datepicker&&"accent"===Ft.datepicker.color)("mat-warn",Ft.datepicker&&"warn"===Ft.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[l.\u0275\u0275NgOnChangesFeature],ngContentSelectors:q,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(Le,Ft){1&Le&&(l.\u0275\u0275projectionDef(me),l.\u0275\u0275elementStart(0,"button",0,1),l.\u0275\u0275template(2,de,2,0,"svg",2),l.\u0275\u0275projection(3),l.\u0275\u0275elementEnd()),2&Le&&(l.\u0275\u0275property("disabled",Ft.disabled)("disableRipple",Ft.disableRipple),l.\u0275\u0275attribute("aria-haspopup",Ft.datepicker?"dialog":null)("aria-label",Ft.ariaLabel||Ft._intl.openCalendarLabel)("tabindex",Ft.disabled?-1:Ft.tabIndex),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",!Ft._customIcon))},dependencies:[t.NgIf,h.RK],styles:[".mat-datepicker-toggle{pointer-events:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),Ln})(),dr=(()=>{class Ln{}return Ln.\u0275fac=function(Le){return new(Le||Ln)},Ln.\u0275mod=l.\u0275\u0275defineNgModule({type:Ln}),Ln.\u0275inj=l.\u0275\u0275defineInjector({providers:[wt,qe],imports:[t.CommonModule,h.ot,n.U8,e.rt,a.eL,d.BQ,s.ZD]}),Ln})()},44850:(oe,x,i)=>{"use strict";i.d(x,{d:()=>t,t:()=>l});var e=i(94650),n=i(21281),a=i(3238);let t=(()=>{class h{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(d){this._vertical=(0,n.Ig)(d)}get inset(){return this._inset}set inset(d){this._inset=(0,n.Ig)(d)}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275cmp=e.\u0275\u0275defineComponent({type:h,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(d,p){2&d&&(e.\u0275\u0275attribute("aria-orientation",p.vertical?"vertical":"horizontal"),e.\u0275\u0275classProp("mat-divider-vertical",p.vertical)("mat-divider-horizontal",!p.vertical)("mat-divider-inset",p.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(d,p){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),h})(),l=(()=>{class h{}return h.\u0275fac=function(d){return new(d||h)},h.\u0275mod=e.\u0275\u0275defineNgModule({type:h}),h.\u0275inj=e.\u0275\u0275defineInjector({imports:[a.BQ,a.BQ]}),h})()},37084:(oe,x,i)=>{"use strict";i.d(x,{pp:()=>Wt,To:()=>Ut,ib:()=>me,yz:()=>Ee,yK:()=>wt});var e=i(94650),n=i(95017),a=i(21281),t=i(77579),l=i(50727);let h=0;const s=new e.InjectionToken("CdkAccordion");let d=(()=>{class nt{constructor(){this._stateChanges=new t.x,this._openCloseAllActions=new t.x,this.id="cdk-accordion-"+h++,this._multi=!1}get multi(){return this._multi}set multi(Fe){this._multi=(0,a.Ig)(Fe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Fe){this._stateChanges.next(Fe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275dir=e.\u0275\u0275defineDirective({type:nt,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e.\u0275\u0275ProvidersFeature([{provide:s,useExisting:nt}]),e.\u0275\u0275NgOnChangesFeature]}),nt})(),p=0,u=(()=>{class nt{get expanded(){return this._expanded}set expanded(Fe){Fe=(0,a.Ig)(Fe),this._expanded!==Fe&&(this._expanded=Fe,this.expandedChange.emit(Fe),Fe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(Fe){this._disabled=(0,a.Ig)(Fe)}constructor(Fe,yt,ie){this.accordion=Fe,this._changeDetectorRef=yt,this._expansionDispatcher=ie,this._openCloseAllSubscription=l.w0.EMPTY,this.closed=new e.EventEmitter,this.opened=new e.EventEmitter,this.destroyed=new e.EventEmitter,this.expandedChange=new e.EventEmitter,this.id="cdk-accordion-child-"+p++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ie.listen((Ce,Ie)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ie&&this.id!==Ce&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(Fe=>{this.disabled||(this.expanded=Fe)})}}return nt.\u0275fac=function(Fe){return new(Fe||nt)(e.\u0275\u0275directiveInject(s,12),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(n.A8))},nt.\u0275dir=e.\u0275\u0275defineDirective({type:nt,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e.\u0275\u0275ProvidersFeature([{provide:s,useValue:void 0}])]}),nt})(),g=(()=>{class nt{}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275mod=e.\u0275\u0275defineNgModule({type:nt}),nt.\u0275inj=e.\u0275\u0275defineInjector({}),nt})();var v=i(84080),y=i(36895),b=i(3238),S=i(12687),E=i(71884),D=i(68675),A=i(39300),P=i(95698),B=i(29521),V=i(60515),X=i(56451),re=i(37340);const Q=["body"];function ae(nt,Zt){}const K=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],k=["mat-expansion-panel-header","*","mat-action-row"];function $(nt,Zt){if(1&nt&&e.\u0275\u0275element(0,"span",2),2&nt){const Fe=e.\u0275\u0275nextContext();e.\u0275\u0275property("@indicatorRotate",Fe._getExpandedState())}}const j=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],R=["mat-panel-title","mat-panel-description","*"],U=new e.InjectionToken("MAT_ACCORDION"),le="225ms cubic-bezier(0.4,0.0,0.2,1)",T={indicatorRotate:(0,re.X$)("indicatorRotate",[(0,re.SB)("collapsed, void",(0,re.oB)({transform:"rotate(0deg)"})),(0,re.SB)("expanded",(0,re.oB)({transform:"rotate(180deg)"})),(0,re.eR)("expanded <=> collapsed, void => collapsed",(0,re.jt)(le))]),bodyExpansion:(0,re.X$)("bodyExpansion",[(0,re.SB)("collapsed, void",(0,re.oB)({height:"0px",visibility:"hidden"})),(0,re.SB)("expanded",(0,re.oB)({height:"*",visibility:"visible"})),(0,re.eR)("expanded <=> collapsed, void => collapsed",(0,re.jt)(le))])},H=new e.InjectionToken("MAT_EXPANSION_PANEL");let N=(()=>{class nt{constructor(Fe,yt){this._template=Fe,this._expansionPanel=yt}}return nt.\u0275fac=function(Fe){return new(Fe||nt)(e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(H,8))},nt.\u0275dir=e.\u0275\u0275defineDirective({type:nt,selectors:[["ng-template","matExpansionPanelContent",""]]}),nt})(),pe=0;const de=new e.InjectionToken("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let me=(()=>{class nt extends u{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Fe){this._hideToggle=(0,a.Ig)(Fe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Fe){this._togglePosition=Fe}constructor(Fe,yt,ie,Ce,Ie,dt,Mt){super(Fe,yt,ie),this._viewContainerRef=Ce,this._animationMode=dt,this._hideToggle=!1,this.afterExpand=new e.EventEmitter,this.afterCollapse=new e.EventEmitter,this._inputChanges=new t.x,this._headerId="mat-expansion-panel-header-"+pe++,this._bodyAnimationDone=new t.x,this.accordion=Fe,this._document=Ie,this._bodyAnimationDone.pipe((0,E.x)((Xt,en)=>Xt.fromState===en.fromState&&Xt.toState===en.toState)).subscribe(Xt=>{"void"!==Xt.fromState&&("expanded"===Xt.toState?this.afterExpand.emit():"collapsed"===Xt.toState&&this.afterCollapse.emit())}),Mt&&(this.hideToggle=Mt.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,D.O)(null),(0,A.h)(()=>this.expanded&&!this._portal),(0,P.q)(1)).subscribe(()=>{this._portal=new v.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Fe){this._inputChanges.next(Fe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Fe=this._document.activeElement,yt=this._body.nativeElement;return Fe===yt||yt.contains(Fe)}return!1}}return nt.\u0275fac=function(Fe){return new(Fe||nt)(e.\u0275\u0275directiveInject(U,12),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(n.A8),e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(y.DOCUMENT),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8),e.\u0275\u0275directiveInject(de,8))},nt.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["mat-expansion-panel"]],contentQueries:function(Fe,yt,ie){if(1&Fe&&e.\u0275\u0275contentQuery(ie,N,5),2&Fe){let Ce;e.\u0275\u0275queryRefresh(Ce=e.\u0275\u0275loadQuery())&&(yt._lazyContent=Ce.first)}},viewQuery:function(Fe,yt){if(1&Fe&&e.\u0275\u0275viewQuery(Q,5),2&Fe){let ie;e.\u0275\u0275queryRefresh(ie=e.\u0275\u0275loadQuery())&&(yt._body=ie.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Fe,yt){2&Fe&&e.\u0275\u0275classProp("mat-expanded",yt.expanded)("_mat-animation-noopable","NoopAnimations"===yt._animationMode)("mat-expansion-panel-spacing",yt._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e.\u0275\u0275ProvidersFeature([{provide:U,useValue:void 0},{provide:H,useExisting:nt}]),e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature],ngContentSelectors:k,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Fe,yt){1&Fe&&(e.\u0275\u0275projectionDef(K),e.\u0275\u0275projection(0),e.\u0275\u0275elementStart(1,"div",0,1),e.\u0275\u0275listener("@bodyExpansion.done",function(Ce){return yt._bodyAnimationDone.next(Ce)}),e.\u0275\u0275elementStart(3,"div",2),e.\u0275\u0275projection(4,1),e.\u0275\u0275template(5,ae,0,0,"ng-template",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275projection(6,2),e.\u0275\u0275elementEnd()),2&Fe&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("@bodyExpansion",yt._getExpandedState())("id",yt.id),e.\u0275\u0275attribute("aria-labelledby",yt._headerId),e.\u0275\u0275advance(4),e.\u0275\u0275property("cdkPortalOutlet",yt._portal))},dependencies:[v.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[T.bodyExpansion]},changeDetection:0}),nt})();class se{}const ve=(0,b.sb)(se);let Ee=(()=>{class nt extends ve{constructor(Fe,yt,ie,Ce,Ie,dt,Mt){super(),this.panel=Fe,this._element=yt,this._focusMonitor=ie,this._changeDetectorRef=Ce,this._animationMode=dt,this._parentChangeSubscription=l.w0.EMPTY;const Xt=Fe.accordion?Fe.accordion._stateChanges.pipe((0,A.h)(en=>!(!en.hideToggle&&!en.togglePosition))):V.E;this.tabIndex=parseInt(Mt||"")||0,this._parentChangeSubscription=(0,X.T)(Fe.opened,Fe.closed,Xt,Fe._inputChanges.pipe((0,A.h)(en=>!!(en.hideToggle||en.disabled||en.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Fe.closed.pipe((0,A.h)(()=>Fe._containsFocus())).subscribe(()=>ie.focusVia(yt,"program")),Ie&&(this.expandedHeight=Ie.expandedHeight,this.collapsedHeight=Ie.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const Fe=this._isExpanded();return Fe&&this.expandedHeight?this.expandedHeight:!Fe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Fe){switch(Fe.keyCode){case B.L_:case B.K5:(0,B.Vb)(Fe)||(Fe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Fe))}}focus(Fe,yt){Fe?this._focusMonitor.focusVia(this._element,Fe,yt):this._element.nativeElement.focus(yt)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Fe=>{Fe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return nt.\u0275fac=function(Fe){return new(Fe||nt)(e.\u0275\u0275directiveInject(me,1),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(S.tE),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(de,8),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8),e.\u0275\u0275injectAttribute("tabindex"))},nt.\u0275cmp=e.\u0275\u0275defineComponent({type:nt,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Fe,yt){1&Fe&&e.\u0275\u0275listener("click",function(){return yt._toggle()})("keydown",function(Ce){return yt._keydown(Ce)}),2&Fe&&(e.\u0275\u0275attribute("id",yt.panel._headerId)("tabindex",yt.tabIndex)("aria-controls",yt._getPanelId())("aria-expanded",yt._isExpanded())("aria-disabled",yt.panel.disabled),e.\u0275\u0275styleProp("height",yt._getHeaderHeight()),e.\u0275\u0275classProp("mat-expanded",yt._isExpanded())("mat-expansion-toggle-indicator-after","after"===yt._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===yt._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===yt._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:R,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Fe,yt){1&Fe&&(e.\u0275\u0275projectionDef(j),e.\u0275\u0275elementStart(0,"span",0),e.\u0275\u0275projection(1),e.\u0275\u0275projection(2,1),e.\u0275\u0275projection(3,2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,$,1,1,"span",1)),2&Fe&&(e.\u0275\u0275classProp("mat-content-hide-toggle",!yt._showToggle()),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",yt._showToggle()))},dependencies:[y.NgIf],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[T.indicatorRotate]},changeDetection:0}),nt})(),wt=(()=>{class nt{}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275dir=e.\u0275\u0275defineDirective({type:nt,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),nt})(),Wt=(()=>{class nt extends d{constructor(){super(...arguments),this._ownHeaders=new e.QueryList,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(Fe){this._hideToggle=(0,a.Ig)(Fe)}ngAfterContentInit(){this._headers.changes.pipe((0,D.O)(this._headers)).subscribe(Fe=>{this._ownHeaders.reset(Fe.filter(yt=>yt.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new S.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Fe){this._keyManager.onKeydown(Fe)}_handleHeaderFocus(Fe){this._keyManager.updateActiveItem(Fe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}}return nt.\u0275fac=function(){let Zt;return function(yt){return(Zt||(Zt=e.\u0275\u0275getInheritedFactory(nt)))(yt||nt)}}(),nt.\u0275dir=e.\u0275\u0275defineDirective({type:nt,selectors:[["mat-accordion"]],contentQueries:function(Fe,yt,ie){if(1&Fe&&e.\u0275\u0275contentQuery(ie,Ee,5),2&Fe){let Ce;e.\u0275\u0275queryRefresh(Ce=e.\u0275\u0275loadQuery())&&(yt._headers=Ce)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Fe,yt){2&Fe&&e.\u0275\u0275classProp("mat-accordion-multi",yt.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e.\u0275\u0275ProvidersFeature([{provide:U,useExisting:nt}]),e.\u0275\u0275InheritDefinitionFeature]}),nt})(),Ut=(()=>{class nt{}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275mod=e.\u0275\u0275defineNgModule({type:nt}),nt.\u0275inj=e.\u0275\u0275defineInjector({imports:[y.CommonModule,b.BQ,g,v.eL]}),nt})()},59549:(oe,x,i)=>{"use strict";i.d(x,{Bi:()=>Mt,Eo:()=>Ie,G_:()=>en,KE:()=>Xe,Lv:()=>Xt,Px:()=>Ee,TN:()=>Ce,UO:()=>dt,Ve:()=>wt,ab:()=>me,lN:()=>Pe});var e=i(94650),n=i(40445),a=i(83353),t=i(77579),l=i(56451),h=i(82722),s=i(36895),d=i(21281),p=i(37340),u=i(49643),g=i(3238);const v=["matFormFieldNotchedOutline",""],y=["*"],b=["textField"],S=["iconPrefixContainer"],E=["textPrefixContainer"];function D(Ve,mt){1&Ve&&e.\u0275\u0275element(0,"span",19)}function A(Ve,mt){if(1&Ve){const It=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"label",17),e.\u0275\u0275listener("cdkObserveContent",function(){e.\u0275\u0275restoreView(It);const _n=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(_n._refreshOutlineNotchWidth())}),e.\u0275\u0275projection(1,1),e.\u0275\u0275template(2,D,1,0,"span",18),e.\u0275\u0275elementEnd()}if(2&Ve){const It=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("floating",It._shouldLabelFloat())("cdkObserveContentDisabled",!It._hasOutline())("id",It._labelId),e.\u0275\u0275attribute("for",It._control.id)("aria-owns",It._control.id),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!It.hideRequiredMarker&&It._control.required)}}function P(Ve,mt){if(1&Ve&&e.\u0275\u0275template(0,A,3,6,"label",16),2&Ve){const It=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",It._hasFloatingLabel())}}function B(Ve,mt){1&Ve&&e.\u0275\u0275element(0,"div",20)}function V(Ve,mt){}function X(Ve,mt){if(1&Ve&&e.\u0275\u0275template(0,V,0,0,"ng-template",22),2&Ve){e.\u0275\u0275nextContext(2);const It=e.\u0275\u0275reference(1);e.\u0275\u0275property("ngTemplateOutlet",It)}}function re(Ve,mt){if(1&Ve&&(e.\u0275\u0275elementStart(0,"div",21),e.\u0275\u0275template(1,X,1,1,"ng-template",9),e.\u0275\u0275elementEnd()),2&Ve){const It=e.\u0275\u0275nextContext();e.\u0275\u0275property("matFormFieldNotchedOutlineOpen",It._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",It._labelWidth),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!It._forceDisplayInfixLabel())}}function Q(Ve,mt){1&Ve&&(e.\u0275\u0275elementStart(0,"div",23,24),e.\u0275\u0275projection(2,2),e.\u0275\u0275elementEnd())}function ae(Ve,mt){1&Ve&&(e.\u0275\u0275elementStart(0,"div",25,26),e.\u0275\u0275projection(2,3),e.\u0275\u0275elementEnd())}function K(Ve,mt){}function k(Ve,mt){if(1&Ve&&e.\u0275\u0275template(0,K,0,0,"ng-template",22),2&Ve){e.\u0275\u0275nextContext();const It=e.\u0275\u0275reference(1);e.\u0275\u0275property("ngTemplateOutlet",It)}}function $(Ve,mt){1&Ve&&(e.\u0275\u0275elementStart(0,"div",27),e.\u0275\u0275projection(1,4),e.\u0275\u0275elementEnd())}function j(Ve,mt){1&Ve&&(e.\u0275\u0275elementStart(0,"div",28),e.\u0275\u0275projection(1,5),e.\u0275\u0275elementEnd())}function R(Ve,mt){1&Ve&&e.\u0275\u0275element(0,"div",29)}function U(Ve,mt){if(1&Ve&&(e.\u0275\u0275elementStart(0,"div",30),e.\u0275\u0275projection(1,6),e.\u0275\u0275elementEnd()),2&Ve){const It=e.\u0275\u0275nextContext();e.\u0275\u0275property("@transitionMessages",It._subscriptAnimationState)}}function le(Ve,mt){if(1&Ve&&(e.\u0275\u0275elementStart(0,"mat-hint",34),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&Ve){const It=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("id",It._hintLabelId),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(It.hintLabel)}}function T(Ve,mt){if(1&Ve&&(e.\u0275\u0275elementStart(0,"div",31),e.\u0275\u0275template(1,le,2,2,"mat-hint",32),e.\u0275\u0275projection(2,7),e.\u0275\u0275element(3,"div",33),e.\u0275\u0275projection(4,8),e.\u0275\u0275elementEnd()),2&Ve){const It=e.\u0275\u0275nextContext();e.\u0275\u0275property("@transitionMessages",It._subscriptAnimationState),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",It.hintLabel)}}const H=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],N=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let pe=(()=>{class Ve{}return Ve.\u0275fac=function(It){return new(It||Ve)},Ve.\u0275dir=e.\u0275\u0275defineDirective({type:Ve,selectors:[["mat-label"]]}),Ve})();const me=new e.InjectionToken("MatError");let se=0,ve=(()=>{class Ve{constructor(){this.align="start",this.id="mat-mdc-hint-"+se++}}return Ve.\u0275fac=function(It){return new(It||Ve)},Ve.\u0275dir=e.\u0275\u0275defineDirective({type:Ve,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(It,xn){2&It&&(e.\u0275\u0275hostProperty("id",xn.id),e.\u0275\u0275attribute("align",null),e.\u0275\u0275classProp("mat-mdc-form-field-hint-end","end"===xn.align))},inputs:{align:"align",id:"id"}}),Ve})();const Ee=new e.InjectionToken("MatPrefix"),wt=new e.InjectionToken("MatSuffix");let Ut=(()=>{class Ve{constructor(It){this._elementRef=It,this.floating=!1}getWidth(){return function nt(Ve){if(null!==Ve.offsetParent)return Ve.scrollWidth;const It=Ve.cloneNode(!0);It.style.setProperty("position","absolute"),It.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(It);const xn=It.scrollWidth;return It.remove(),xn}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return Ve.\u0275fac=function(It){return new(It||Ve)(e.\u0275\u0275directiveInject(e.ElementRef))},Ve.\u0275dir=e.\u0275\u0275defineDirective({type:Ve,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(It,xn){2&It&&e.\u0275\u0275classProp("mdc-floating-label--float-above",xn.floating)},inputs:{floating:"floating"}}),Ve})();const Zt="mdc-line-ripple--active",Fe="mdc-line-ripple--deactivating";let yt=(()=>{class Ve{constructor(It,xn){this._elementRef=It,this._handleTransitionEnd=_n=>{const Jt=this._elementRef.nativeElement.classList,ke=Jt.contains(Fe);"opacity"===_n.propertyName&&ke&&Jt.remove(Zt,Fe)},xn.runOutsideAngular(()=>{It.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const It=this._elementRef.nativeElement.classList;It.remove(Fe),It.add(Zt)}deactivate(){this._elementRef.nativeElement.classList.add(Fe)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return Ve.\u0275fac=function(It){return new(It||Ve)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone))},Ve.\u0275dir=e.\u0275\u0275defineDirective({type:Ve,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),Ve})(),ie=(()=>{class Ve{constructor(It,xn){this._elementRef=It,this._ngZone=xn,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const It=this._elementRef.nativeElement.querySelector(".mdc-floating-label");It?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(It.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>It.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return Ve.\u0275fac=function(It){return new(It||Ve)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone))},Ve.\u0275cmp=e.\u0275\u0275defineComponent({type:Ve,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(It,xn){2&It&&e.\u0275\u0275classProp("mdc-notched-outline--notched",xn.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:v,ngContentSelectors:y,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(It,xn){1&It&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275element(0,"div",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275projection(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",2)),2&It&&(e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("width",xn._getNotchWidth()))},encapsulation:2,changeDetection:0}),Ve})();const Ce={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ie=(()=>{class Ve{}return Ve.\u0275fac=function(It){return new(It||Ve)},Ve.\u0275dir=e.\u0275\u0275defineDirective({type:Ve}),Ve})();function dt(){return Error("Placeholder attribute and child element were both specified.")}function Mt(Ve){return Error(`A hint was already declared for 'align="${Ve}"'.`)}function Xt(){return Error("mat-form-field must contain a MatFormFieldControl.")}const en=new e.InjectionToken("MatFormField"),vt=new e.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS");let xt=0,Xe=(()=>{class Ve{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(It){this._hideRequiredMarker=(0,d.Ig)(It)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(It){It!==this._floatLabel&&(this._floatLabel=It,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(It){const xn=this._appearance;this._appearance=It||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==xn&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(It){this._subscriptSizing=It||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(It){this._hintLabel=It,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(It){this._explicitFormFieldControl=It}constructor(It,xn,_n,Jt,ke,Ae,ze,pt){this._elementRef=It,this._changeDetectorRef=xn,this._ngZone=_n,this._dir=Jt,this._platform=ke,this._defaults=Ae,this._animationMode=ze,this._document=pt,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-"+xt++,this._hintLabelId="mat-mdc-hint-"+xt++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new t.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,Ae&&(Ae.appearance&&(this.appearance=Ae.appearance),this._hideRequiredMarker=Boolean(Ae?.hideRequiredMarker),Ae.color&&(this.color=Ae.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),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 It=this._control;It.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${It.controlType}`),It.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),It.ngControl&&It.ngControl.valueChanges&&It.ngControl.valueChanges.pipe((0,h.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(It=>!It._isText),this._hasTextPrefix=!!this._prefixChildren.find(It=>It._isText),this._hasIconSuffix=!!this._suffixChildren.find(It=>!It._isText),this._hasTextSuffix=!!this._suffixChildren.find(It=>It._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,l.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(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.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,h.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,h.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(It){const xn=this._control?this._control.ngControl:null;return xn&&xn[It]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let It=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&It.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const xn=this._hintChildren?this._hintChildren.find(Jt=>"start"===Jt.align):null,_n=this._hintChildren?this._hintChildren.find(Jt=>"end"===Jt.align):null;xn?It.push(xn.id):this._hintLabel&&It.push(this._hintLabelId),_n&&It.push(_n.id)}else this._errorChildren&&It.push(...this._errorChildren.map(xn=>xn.id));this._control.setDescribedByIds(It)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const It=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(It.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const xn=this._iconPrefixContainer?.nativeElement,_n=this._textPrefixContainer?.nativeElement,Jt=xn?.getBoundingClientRect().width??0,ke=_n?.getBoundingClientRect().width??0;It.style.transform=`var(\n        --mat-mdc-form-field-label-transform,\n        translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Jt+ke}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n    )`}_isAttachedToDom(){const It=this._elementRef.nativeElement;if(It.getRootNode){const xn=It.getRootNode();return xn&&xn!==It}return document.documentElement.contains(It)}}return Ve.\u0275fac=function(It){return new(It||Ve)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(n.Is),e.\u0275\u0275directiveInject(a.t4),e.\u0275\u0275directiveInject(vt,8),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8),e.\u0275\u0275directiveInject(s.DOCUMENT))},Ve.\u0275cmp=e.\u0275\u0275defineComponent({type:Ve,selectors:[["mat-form-field"]],contentQueries:function(It,xn,_n){if(1&It&&(e.\u0275\u0275contentQuery(_n,pe,5),e.\u0275\u0275contentQuery(_n,pe,7),e.\u0275\u0275contentQuery(_n,Ie,5),e.\u0275\u0275contentQuery(_n,Ee,5),e.\u0275\u0275contentQuery(_n,wt,5),e.\u0275\u0275contentQuery(_n,me,5),e.\u0275\u0275contentQuery(_n,ve,5)),2&It){let Jt;e.\u0275\u0275queryRefresh(Jt=e.\u0275\u0275loadQuery())&&(xn._labelChildNonStatic=Jt.first),e.\u0275\u0275queryRefresh(Jt=e.\u0275\u0275loadQuery())&&(xn._labelChildStatic=Jt.first),e.\u0275\u0275queryRefresh(Jt=e.\u0275\u0275loadQuery())&&(xn._formFieldControl=Jt.first),e.\u0275\u0275queryRefresh(Jt=e.\u0275\u0275loadQuery())&&(xn._prefixChildren=Jt),e.\u0275\u0275queryRefresh(Jt=e.\u0275\u0275loadQuery())&&(xn._suffixChildren=Jt),e.\u0275\u0275queryRefresh(Jt=e.\u0275\u0275loadQuery())&&(xn._errorChildren=Jt),e.\u0275\u0275queryRefresh(Jt=e.\u0275\u0275loadQuery())&&(xn._hintChildren=Jt)}},viewQuery:function(It,xn){if(1&It&&(e.\u0275\u0275viewQuery(b,5),e.\u0275\u0275viewQuery(S,5),e.\u0275\u0275viewQuery(E,5),e.\u0275\u0275viewQuery(Ut,5),e.\u0275\u0275viewQuery(ie,5),e.\u0275\u0275viewQuery(yt,5)),2&It){let _n;e.\u0275\u0275queryRefresh(_n=e.\u0275\u0275loadQuery())&&(xn._textField=_n.first),e.\u0275\u0275queryRefresh(_n=e.\u0275\u0275loadQuery())&&(xn._iconPrefixContainer=_n.first),e.\u0275\u0275queryRefresh(_n=e.\u0275\u0275loadQuery())&&(xn._textPrefixContainer=_n.first),e.\u0275\u0275queryRefresh(_n=e.\u0275\u0275loadQuery())&&(xn._floatingLabel=_n.first),e.\u0275\u0275queryRefresh(_n=e.\u0275\u0275loadQuery())&&(xn._notchedOutline=_n.first),e.\u0275\u0275queryRefresh(_n=e.\u0275\u0275loadQuery())&&(xn._lineRipple=_n.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(It,xn){2&It&&e.\u0275\u0275classProp("mat-mdc-form-field-label-always-float",xn._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",xn._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",xn._hasIconSuffix)("mat-form-field-invalid",xn._control.errorState)("mat-form-field-disabled",xn._control.disabled)("mat-form-field-autofilled",xn._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===xn._animationMode)("mat-form-field-appearance-fill","fill"==xn.appearance)("mat-form-field-appearance-outline","outline"==xn.appearance)("mat-form-field-hide-placeholder",xn._hasFloatingLabel()&&!xn._shouldLabelFloat())("mat-focused",xn._control.focused)("mat-primary","accent"!==xn.color&&"warn"!==xn.color)("mat-accent","accent"===xn.color)("mat-warn","warn"===xn.color)("ng-untouched",xn._shouldForward("untouched"))("ng-touched",xn._shouldForward("touched"))("ng-pristine",xn._shouldForward("pristine"))("ng-dirty",xn._shouldForward("dirty"))("ng-valid",xn._shouldForward("valid"))("ng-invalid",xn._shouldForward("invalid"))("ng-pending",xn._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e.\u0275\u0275ProvidersFeature([{provide:en,useExisting:Ve}])],ngContentSelectors:N,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","matFormFieldNotchedOutlineLabelWidth",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","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["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","matFormFieldNotchedOutlineLabelWidth"],[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(It,xn){1&It&&(e.\u0275\u0275projectionDef(H),e.\u0275\u0275template(0,P,1,1,"ng-template",null,0,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementStart(2,"div",1,2),e.\u0275\u0275listener("click",function(Jt){return xn._control.onContainerClick&&xn._control.onContainerClick(Jt)}),e.\u0275\u0275template(4,B,1,0,"div",3),e.\u0275\u0275elementStart(5,"div",4),e.\u0275\u0275template(6,re,2,3,"div",5),e.\u0275\u0275template(7,Q,3,0,"div",6),e.\u0275\u0275template(8,ae,3,0,"div",7),e.\u0275\u0275elementStart(9,"div",8),e.\u0275\u0275template(10,k,1,1,"ng-template",9),e.\u0275\u0275projection(11),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(12,$,2,0,"div",10),e.\u0275\u0275template(13,j,2,0,"div",11),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(14,R,1,0,"div",12),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"div",13),e.\u0275\u0275template(16,U,2,1,"div",14),e.\u0275\u0275template(17,T,5,2,"div",15),e.\u0275\u0275elementEnd()),2&It&&(e.\u0275\u0275advance(2),e.\u0275\u0275classProp("mdc-text-field--filled",!xn._hasOutline())("mdc-text-field--outlined",xn._hasOutline())("mdc-text-field--no-label",!xn._hasFloatingLabel())("mdc-text-field--disabled",xn._control.disabled)("mdc-text-field--invalid",xn._control.errorState),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!xn._hasOutline()&&!xn._control.disabled),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",xn._hasOutline()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",xn._hasIconPrefix),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",xn._hasTextPrefix),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!xn._hasOutline()||xn._forceDisplayInfixLabel()),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",xn._hasTextSuffix),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",xn._hasIconSuffix),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!xn._hasOutline()),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("mat-mdc-form-field-subscript-dynamic-size","dynamic"===xn.subscriptSizing),e.\u0275\u0275property("ngSwitch",xn._getDisplayedMessages()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","error"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase","hint"))},dependencies:[s.NgIf,s.NgTemplateOutlet,s.NgSwitch,s.NgSwitchCase,u.wD,ve,Ut,ie,yt],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 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:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;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:var(--mdc-shape-small, 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:var(--mdc-shape-small, 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:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;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-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.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%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.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;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.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{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.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}.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{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{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-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}[dir=rtl] .mat-mdc-form-field{text-align:right}.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}.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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-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(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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)}'],encapsulation:2,data:{animation:[Ce.transitionMessages]},changeDetection:0}),Ve})(),Pe=(()=>{class Ve{}return Ve.\u0275fac=function(It){return new(It||Ve)},Ve.\u0275mod=e.\u0275\u0275defineNgModule({type:Ve}),Ve.\u0275inj=e.\u0275\u0275defineInjector({imports:[g.BQ,s.CommonModule,u.Q8,g.BQ]}),Ve})()},97392:(oe,x,i)=>{"use strict";i.d(x,{Hw:()=>q,Ps:()=>se});var e=i(94650),n=i(3238),a=i(21281),t=i(36895),l=i(39646),h=i(62843),s=i(4128),d=i(50727),p=i(18505),u=i(54004),g=i(70262),v=i(28746),y=i(13099),b=i(95698),S=i(80529),E=i(11481);const D=["*"];let A;function B(ve){return function P(){if(void 0===A&&(A=null,typeof window<"u")){const ve=window;void 0!==ve.trustedTypes&&(A=ve.trustedTypes.createPolicy("angular#components",{createHTML:Ee=>Ee}))}return A}()?.createHTML(ve)||ve}function V(ve){return Error(`Unable to find icon with the name "${ve}"`)}function re(ve){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ve}".`)}function Q(ve){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ve}".`)}class ae{constructor(Ee,Ye,wt){this.url=Ee,this.svgText=Ye,this.options=wt}}let K=(()=>{class ve{constructor(Ye,wt,Wt,Ut){this._httpClient=Ye,this._sanitizer=wt,this._errorHandler=Ut,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=Wt}addSvgIcon(Ye,wt,Wt){return this.addSvgIconInNamespace("",Ye,wt,Wt)}addSvgIconLiteral(Ye,wt,Wt){return this.addSvgIconLiteralInNamespace("",Ye,wt,Wt)}addSvgIconInNamespace(Ye,wt,Wt,Ut){return this._addSvgIconConfig(Ye,wt,new ae(Wt,null,Ut))}addSvgIconResolver(Ye){return this._resolvers.push(Ye),this}addSvgIconLiteralInNamespace(Ye,wt,Wt,Ut){const nt=this._sanitizer.sanitize(e.SecurityContext.HTML,Wt);if(!nt)throw Q(Wt);const Zt=B(nt);return this._addSvgIconConfig(Ye,wt,new ae("",Zt,Ut))}addSvgIconSet(Ye,wt){return this.addSvgIconSetInNamespace("",Ye,wt)}addSvgIconSetLiteral(Ye,wt){return this.addSvgIconSetLiteralInNamespace("",Ye,wt)}addSvgIconSetInNamespace(Ye,wt,Wt){return this._addSvgIconSetConfig(Ye,new ae(wt,null,Wt))}addSvgIconSetLiteralInNamespace(Ye,wt,Wt){const Ut=this._sanitizer.sanitize(e.SecurityContext.HTML,wt);if(!Ut)throw Q(wt);const nt=B(Ut);return this._addSvgIconSetConfig(Ye,new ae("",nt,Wt))}registerFontClassAlias(Ye,wt=Ye){return this._fontCssClassesByAlias.set(Ye,wt),this}classNameForFontAlias(Ye){return this._fontCssClassesByAlias.get(Ye)||Ye}setDefaultFontSetClass(...Ye){return this._defaultFontSetClass=Ye,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ye){const wt=this._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,Ye);if(!wt)throw re(Ye);const Wt=this._cachedIconsByUrl.get(wt);return Wt?(0,l.of)(j(Wt)):this._loadSvgIconFromConfig(new ae(Ye,null)).pipe((0,p.b)(Ut=>this._cachedIconsByUrl.set(wt,Ut)),(0,u.U)(Ut=>j(Ut)))}getNamedSvgIcon(Ye,wt=""){const Wt=R(wt,Ye);let Ut=this._svgIconConfigs.get(Wt);if(Ut)return this._getSvgFromConfig(Ut);if(Ut=this._getIconConfigFromResolvers(wt,Ye),Ut)return this._svgIconConfigs.set(Wt,Ut),this._getSvgFromConfig(Ut);const nt=this._iconSetConfigs.get(wt);return nt?this._getSvgFromIconSetConfigs(Ye,nt):(0,h._)(V(Wt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ye){return Ye.svgText?(0,l.of)(j(this._svgElementFromConfig(Ye))):this._loadSvgIconFromConfig(Ye).pipe((0,u.U)(wt=>j(wt)))}_getSvgFromIconSetConfigs(Ye,wt){const Wt=this._extractIconWithNameFromAnySet(Ye,wt);if(Wt)return(0,l.of)(Wt);const Ut=wt.filter(nt=>!nt.svgText).map(nt=>this._loadSvgIconSetFromConfig(nt).pipe((0,g.K)(Zt=>{const yt=`Loading icon set URL: ${this._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,nt.url)} failed: ${Zt.message}`;return this._errorHandler.handleError(new Error(yt)),(0,l.of)(null)})));return(0,s.D)(Ut).pipe((0,u.U)(()=>{const nt=this._extractIconWithNameFromAnySet(Ye,wt);if(!nt)throw V(Ye);return nt}))}_extractIconWithNameFromAnySet(Ye,wt){for(let Wt=wt.length-1;Wt>=0;Wt--){const Ut=wt[Wt];if(Ut.svgText&&Ut.svgText.toString().indexOf(Ye)>-1){const nt=this._svgElementFromConfig(Ut),Zt=this._extractSvgIconFromSet(nt,Ye,Ut.options);if(Zt)return Zt}}return null}_loadSvgIconFromConfig(Ye){return this._fetchIcon(Ye).pipe((0,p.b)(wt=>Ye.svgText=wt),(0,u.U)(()=>this._svgElementFromConfig(Ye)))}_loadSvgIconSetFromConfig(Ye){return Ye.svgText?(0,l.of)(null):this._fetchIcon(Ye).pipe((0,p.b)(wt=>Ye.svgText=wt))}_extractSvgIconFromSet(Ye,wt,Wt){const Ut=Ye.querySelector(`[id="${wt}"]`);if(!Ut)return null;const nt=Ut.cloneNode(!0);if(nt.removeAttribute("id"),"svg"===nt.nodeName.toLowerCase())return this._setSvgAttributes(nt,Wt);if("symbol"===nt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(nt),Wt);const Zt=this._svgElementFromString(B("<svg></svg>"));return Zt.appendChild(nt),this._setSvgAttributes(Zt,Wt)}_svgElementFromString(Ye){const wt=this._document.createElement("DIV");wt.innerHTML=Ye;const Wt=wt.querySelector("svg");if(!Wt)throw Error("<svg> tag not found");return Wt}_toSvgElement(Ye){const wt=this._svgElementFromString(B("<svg></svg>")),Wt=Ye.attributes;for(let Ut=0;Ut<Wt.length;Ut++){const{name:nt,value:Zt}=Wt[Ut];"id"!==nt&&wt.setAttribute(nt,Zt)}for(let Ut=0;Ut<Ye.childNodes.length;Ut++)Ye.childNodes[Ut].nodeType===this._document.ELEMENT_NODE&&wt.appendChild(Ye.childNodes[Ut].cloneNode(!0));return wt}_setSvgAttributes(Ye,wt){return Ye.setAttribute("fit",""),Ye.setAttribute("height","100%"),Ye.setAttribute("width","100%"),Ye.setAttribute("preserveAspectRatio","xMidYMid meet"),Ye.setAttribute("focusable","false"),wt&&wt.viewBox&&Ye.setAttribute("viewBox",wt.viewBox),Ye}_fetchIcon(Ye){const{url:wt,options:Wt}=Ye,Ut=Wt?.withCredentials??!1;if(!this._httpClient)throw function X(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==wt)throw Error(`Cannot fetch icon from URL "${wt}".`);const nt=this._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,wt);if(!nt)throw re(wt);const Zt=this._inProgressUrlFetches.get(nt);if(Zt)return Zt;const Fe=this._httpClient.get(nt,{responseType:"text",withCredentials:Ut}).pipe((0,u.U)(yt=>B(yt)),(0,v.x)(()=>this._inProgressUrlFetches.delete(nt)),(0,y.B)());return this._inProgressUrlFetches.set(nt,Fe),Fe}_addSvgIconConfig(Ye,wt,Wt){return this._svgIconConfigs.set(R(Ye,wt),Wt),this}_addSvgIconSetConfig(Ye,wt){const Wt=this._iconSetConfigs.get(Ye);return Wt?Wt.push(wt):this._iconSetConfigs.set(Ye,[wt]),this}_svgElementFromConfig(Ye){if(!Ye.svgElement){const wt=this._svgElementFromString(Ye.svgText);this._setSvgAttributes(wt,Ye.options),Ye.svgElement=wt}return Ye.svgElement}_getIconConfigFromResolvers(Ye,wt){for(let Wt=0;Wt<this._resolvers.length;Wt++){const Ut=this._resolvers[Wt](wt,Ye);if(Ut)return U(Ut)?new ae(Ut.url,null,Ut.options):new ae(Ut,null)}}}return ve.\u0275fac=function(Ye){return new(Ye||ve)(e.\u0275\u0275inject(S.eN,8),e.\u0275\u0275inject(E.DomSanitizer),e.\u0275\u0275inject(t.DOCUMENT,8),e.\u0275\u0275inject(e.ErrorHandler))},ve.\u0275prov=e.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();function j(ve){return ve.cloneNode(!0)}function R(ve,Ee){return ve+":"+Ee}function U(ve){return!(!ve.url||!ve.options)}const le=(0,n.pj)(class{constructor(ve){this._elementRef=ve}}),T=new e.InjectionToken("MAT_ICON_DEFAULT_OPTIONS"),H=new e.InjectionToken("mat-icon-location",{providedIn:"root",factory:function N(){const ve=(0,e.inject)(t.DOCUMENT),Ee=ve?ve.location:null;return{getPathname:()=>Ee?Ee.pathname+Ee.search:""}}}),pe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],de=pe.map(ve=>`[${ve}]`).join(", "),me=/^url\(['"]?#(.*?)['"]?\)$/;let q=(()=>{class ve extends le{get inline(){return this._inline}set inline(Ye){this._inline=(0,a.Ig)(Ye)}get svgIcon(){return this._svgIcon}set svgIcon(Ye){Ye!==this._svgIcon&&(Ye?this._updateSvgIcon(Ye):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ye)}get fontSet(){return this._fontSet}set fontSet(Ye){const wt=this._cleanupFontValue(Ye);wt!==this._fontSet&&(this._fontSet=wt,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ye){const wt=this._cleanupFontValue(Ye);wt!==this._fontIcon&&(this._fontIcon=wt,this._updateFontIconClasses())}constructor(Ye,wt,Wt,Ut,nt,Zt){super(Ye),this._iconRegistry=wt,this._location=Ut,this._errorHandler=nt,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=d.w0.EMPTY,Zt&&(Zt.color&&(this.color=this.defaultColor=Zt.color),Zt.fontSet&&(this.fontSet=Zt.fontSet)),Wt||Ye.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ye){if(!Ye)return["",""];const wt=Ye.split(":");switch(wt.length){case 1:return["",wt[0]];case 2:return wt;default:throw Error(`Invalid icon name: "${Ye}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ye=this._elementsWithExternalReferences;if(Ye&&Ye.size){const wt=this._location.getPathname();wt!==this._previousPath&&(this._previousPath=wt,this._prependPathToReferences(wt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ye){this._clearSvgElement();const wt=this._location.getPathname();this._previousPath=wt,this._cacheChildrenWithExternalReferences(Ye),this._prependPathToReferences(wt),this._elementRef.nativeElement.appendChild(Ye)}_clearSvgElement(){const Ye=this._elementRef.nativeElement;let wt=Ye.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();wt--;){const Wt=Ye.childNodes[wt];(1!==Wt.nodeType||"svg"===Wt.nodeName.toLowerCase())&&Wt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ye=this._elementRef.nativeElement,wt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Wt=>Wt.length>0);this._previousFontSetClass.forEach(Wt=>Ye.classList.remove(Wt)),wt.forEach(Wt=>Ye.classList.add(Wt)),this._previousFontSetClass=wt,this.fontIcon!==this._previousFontIconClass&&!wt.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ye.classList.remove(this._previousFontIconClass),this.fontIcon&&Ye.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ye){return"string"==typeof Ye?Ye.trim().split(" ")[0]:Ye}_prependPathToReferences(Ye){const wt=this._elementsWithExternalReferences;wt&&wt.forEach((Wt,Ut)=>{Wt.forEach(nt=>{Ut.setAttribute(nt.name,`url('${Ye}#${nt.value}')`)})})}_cacheChildrenWithExternalReferences(Ye){const wt=Ye.querySelectorAll(de),Wt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ut=0;Ut<wt.length;Ut++)pe.forEach(nt=>{const Zt=wt[Ut],Fe=Zt.getAttribute(nt),yt=Fe?Fe.match(me):null;if(yt){let ie=Wt.get(Zt);ie||(ie=[],Wt.set(Zt,ie)),ie.push({name:nt,value:yt[1]})}})}_updateSvgIcon(Ye){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ye){const[wt,Wt]=this._splitIconName(Ye);wt&&(this._svgNamespace=wt),Wt&&(this._svgName=Wt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Wt,wt).pipe((0,b.q)(1)).subscribe(Ut=>this._setSvgElement(Ut),Ut=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${wt}:${Wt}! ${Ut.message}`))})}}}return ve.\u0275fac=function(Ye){return new(Ye||ve)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(K),e.\u0275\u0275injectAttribute("aria-hidden"),e.\u0275\u0275directiveInject(H),e.\u0275\u0275directiveInject(e.ErrorHandler),e.\u0275\u0275directiveInject(T,8))},ve.\u0275cmp=e.\u0275\u0275defineComponent({type:ve,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ye,wt){2&Ye&&(e.\u0275\u0275attribute("data-mat-icon-type",wt._usingFontIcon()?"font":"svg")("data-mat-icon-name",wt._svgName||wt.fontIcon)("data-mat-icon-namespace",wt._svgNamespace||wt.fontSet)("fontIcon",wt._usingFontIcon()?wt.fontIcon:null),e.\u0275\u0275classProp("mat-icon-inline",wt.inline)("mat-icon-no-color","primary"!==wt.color&&"accent"!==wt.color&&"warn"!==wt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:D,decls:1,vars:0,template:function(Ye,wt){1&Ye&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),ve})(),se=(()=>{class ve{}return ve.\u0275fac=function(Ye){return new(Ye||ve)},ve.\u0275mod=e.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.BQ,n.BQ]}),ve})()},284:(oe,x,i)=>{"use strict";i.d(x,{Jk:()=>u,Nt:()=>b,c:()=>S});var e=i(21281),n=i(83353),a=i(39349),t=i(94650),l=i(24006),h=i(3238),s=i(59549),d=i(77579);const u=new t.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),g=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let v=0;const y=(0,h.FD)(class{constructor(E,D,A,P){this._defaultErrorStateMatcher=E,this._parentForm=D,this._parentFormGroup=A,this.ngControl=P,this.stateChanges=new d.x}});let b=(()=>{class E extends y{get disabled(){return this._disabled}set disabled(A){this._disabled=(0,e.Ig)(A),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(A){this._id=A||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(l.kI.required)??!1}set required(A){this._required=(0,e.Ig)(A)}get type(){return this._type}set type(A){this._type=A||"text",this._validateType(),!this._isTextarea&&(0,n.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(A){A!==this.value&&(this._inputValueAccessor.value=A,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(A){this._readonly=(0,e.Ig)(A)}constructor(A,P,B,V,X,re,Q,ae,K,k){super(re,V,X,B),this._elementRef=A,this._platform=P,this._autofillMonitor=ae,this._formField=k,this._uid="mat-input-"+v++,this.focused=!1,this.stateChanges=new d.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(R=>(0,n.qK)().has(R)),this._iOSKeyupListener=R=>{const U=R.target;!U.value&&0===U.selectionStart&&0===U.selectionEnd&&(U.setSelectionRange(1,1),U.setSelectionRange(0,0))};const $=this._elementRef.nativeElement,j=$.nodeName.toLowerCase();this._inputValueAccessor=Q||$,this._previousNativeValue=this.value,this.id=this.id,P.IOS&&K.runOutsideAngular(()=>{A.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===j,this._isTextarea="textarea"===j,this._isInFormField=!!k,this._isNativeSelect&&(this.controlType=$.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(A=>{this.autofilled=A.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(A){this._elementRef.nativeElement.focus(A)}_focusChanged(A){A!==this.focused&&(this.focused=A,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const A=this._elementRef.nativeElement.value;this._previousNativeValue!==A&&(this._previousNativeValue=A,this.stateChanges.next())}_dirtyCheckPlaceholder(){const A=this._getPlaceholder();if(A!==this._previousPlaceholder){const P=this._elementRef.nativeElement;this._previousPlaceholder=A,A?P.setAttribute("placeholder",A):P.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){g.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let A=this._elementRef.nativeElement.validity;return A&&A.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const A=this._elementRef.nativeElement,P=A.options[0];return this.focused||A.multiple||!this.empty||!!(A.selectedIndex>-1&&P&&P.label)}return this.focused||!this.empty}setDescribedByIds(A){A.length?this._elementRef.nativeElement.setAttribute("aria-describedby",A.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const A=this._elementRef.nativeElement;return this._isNativeSelect&&(A.multiple||A.size>1)}}return E.\u0275fac=function(A){return new(A||E)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(n.t4),t.\u0275\u0275directiveInject(l.a5,10),t.\u0275\u0275directiveInject(l.F,8),t.\u0275\u0275directiveInject(l.sg,8),t.\u0275\u0275directiveInject(h.rD),t.\u0275\u0275directiveInject(u,10),t.\u0275\u0275directiveInject(a.Lq),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(s.G_,8))},E.\u0275dir=t.\u0275\u0275defineDirective({type:E,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(A,P){1&A&&t.\u0275\u0275listener("focus",function(){return P._focusChanged(!0)})("blur",function(){return P._focusChanged(!1)})("input",function(){return P._onInput()}),2&A&&(t.\u0275\u0275hostProperty("id",P.id)("disabled",P.disabled)("required",P.required),t.\u0275\u0275attribute("name",P.name||null)("readonly",P.readonly&&!P._isNativeSelect||null)("aria-invalid",P.empty&&P.required?null:P.errorState)("aria-required",P.required)("id",P.id),t.\u0275\u0275classProp("mat-input-server",P._isServer)("mat-mdc-form-field-textarea-control",P._isInFormField&&P._isTextarea)("mat-mdc-form-field-input-control",P._isInFormField)("mdc-text-field__input",P._isInFormField)("mat-mdc-native-select-inline",P._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[t.\u0275\u0275ProvidersFeature([{provide:s.Eo,useExisting:E}]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]}),E})(),S=(()=>{class E{}return E.\u0275fac=function(A){return new(A||E)},E.\u0275mod=t.\u0275\u0275defineNgModule({type:E}),E.\u0275inj=t.\u0275\u0275defineInjector({imports:[h.BQ,s.lN,s.lN,a.Ky,h.BQ]}),E})()},44393:(oe,x,i)=>{"use strict";i.d(x,{D8:()=>S,QJ:()=>y,VN:()=>g});var e=i(94650),n=i(3238),a=i(24363),t=i(47957),l=i(36895),h=i(98184),s=i(67376),d=i(24006);function p(E,D){if(1&E&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275projection(2),e.\u0275\u0275elementEnd()),2&E){const A=D.id,P=e.\u0275\u0275nextContext();e.\u0275\u0275property("id",P.id)("ngClass",P._classList),e.\u0275\u0275attribute("aria-label",P.ariaLabel||null)("aria-labelledby",P._getPanelAriaLabelledby(A))}}const u=["*"];let g=(()=>{class E extends t.Mz{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return E.\u0275fac=function(){let D;return function(P){return(D||(D=e.\u0275\u0275getInheritedFactory(E)))(P||E)}}(),E.\u0275cmp=e.\u0275\u0275defineComponent({type:E,selectors:[["mat-autocomplete"]],contentQueries:function(A,P,B){if(1&A&&(e.\u0275\u0275contentQuery(B,n.K7,5),e.\u0275\u0275contentQuery(B,a.CK,5)),2&A){let V;e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(P.optionGroups=V),e.\u0275\u0275queryRefresh(V=e.\u0275\u0275loadQuery())&&(P.options=V)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[e.\u0275\u0275ProvidersFeature([{provide:n.HF,useExisting:E}]),e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:u,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(A,P){1&A&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275template(0,p,3,4,"ng-template"))},dependencies:[l.NgClass],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),E})();const v={provide:d.JU,useExisting:(0,e.forwardRef)(()=>y),multi:!0};let y=(()=>{class E extends t.VI{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return E.\u0275fac=function(){let D;return function(P){return(D||(D=e.\u0275\u0275getInheritedFactory(E)))(P||E)}}(),E.\u0275dir=e.\u0275\u0275defineDirective({type:E,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(A,P){1&A&&e.\u0275\u0275listener("focusin",function(){return P._handleFocus()})("blur",function(){return P._onTouched()})("input",function(V){return P._handleInput(V)})("keydown",function(V){return P._handleKeydown(V)})("click",function(){return P._handleClick()}),2&A&&e.\u0275\u0275attribute("autocomplete",P.autocompleteAttribute)("role",P.autocompleteDisabled?null:"combobox")("aria-autocomplete",P.autocompleteDisabled?null:"list")("aria-activedescendant",P.panelOpen&&P.activeOption?P.activeOption.id:null)("aria-expanded",P.autocompleteDisabled?null:P.panelOpen.toString())("aria-owns",P.autocompleteDisabled||!P.panelOpen||null==P.autocomplete?null:P.autocomplete.id)("aria-haspopup",P.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[e.\u0275\u0275ProvidersFeature([v]),e.\u0275\u0275InheritDefinitionFeature]}),E})(),S=(()=>{class E{}return E.\u0275fac=function(A){return new(A||E)},E.\u0275mod=e.\u0275\u0275defineNgModule({type:E}),E.\u0275inj=e.\u0275\u0275defineInjector({providers:[t.zp],imports:[h.U8,a.Uc,n.BQ,l.CommonModule,s.ZD,a.Uc,n.BQ]}),E})()},99818:(oe,x,i)=>{"use strict";i.d(x,{Nr:()=>g,eB:()=>u,yu:()=>v});var e=i(94650),n=i(3238),a=i(12687);const t=["mat-button",""],l=["*"],d=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],p=(0,n.pj)((0,n.Id)((0,n.Kr)(class{constructor(y){this._elementRef=y}})));let u=(()=>{class y extends p{constructor(S,E,D){super(S),this._focusMonitor=E,this._animationMode=D,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const A of d)this._hasHostAttributes(A)&&this._getHostElement().classList.add(A);S.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(S,E){S?this._focusMonitor.focusVia(this._getHostElement(),S,E):this._getHostElement().focus(E)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...S){return S.some(E=>this._getHostElement().hasAttribute(E))}}return y.\u0275fac=function(S){return new(S||y)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(a.tE),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8))},y.\u0275cmp=e.\u0275\u0275defineComponent({type:y,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(S,E){if(1&S&&e.\u0275\u0275viewQuery(n.wG,5),2&S){let D;e.\u0275\u0275queryRefresh(D=e.\u0275\u0275loadQuery())&&(E.ripple=D.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(S,E){2&S&&(e.\u0275\u0275attribute("disabled",E.disabled||null),e.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===E._animationMode)("mat-button-disabled",E.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.\u0275\u0275InheritDefinitionFeature],attrs:t,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(S,E){1&S&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"span",0),e.\u0275\u0275projection(1),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"span",1)(3,"span",2)),2&S&&(e.\u0275\u0275advance(2),e.\u0275\u0275classProp("mat-button-ripple-round",E.isRoundButton||E.isIconButton),e.\u0275\u0275property("matRippleDisabled",E._isRippleDisabled())("matRippleCentered",E.isIconButton)("matRippleTrigger",E._getHostElement()))},dependencies:[n.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),y})(),g=(()=>{class y extends u{constructor(S,E,D,A){super(E,S,D),this._ngZone=A,this._haltDisabledEvents=P=>{this.disabled&&(P.preventDefault(),P.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return y.\u0275fac=function(S){return new(S||y)(e.\u0275\u0275directiveInject(a.tE),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8),e.\u0275\u0275directiveInject(e.NgZone,8))},y.\u0275cmp=e.\u0275\u0275defineComponent({type:y,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(S,E){2&S&&(e.\u0275\u0275attribute("tabindex",E.disabled?-1:E.tabIndex)("disabled",E.disabled||null)("aria-disabled",E.disabled.toString()),e.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===E._animationMode)("mat-button-disabled",E.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[e.\u0275\u0275InheritDefinitionFeature],attrs:t,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(S,E){1&S&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"span",0),e.\u0275\u0275projection(1),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"span",1)(3,"span",2)),2&S&&(e.\u0275\u0275advance(2),e.\u0275\u0275classProp("mat-button-ripple-round",E.isRoundButton||E.isIconButton),e.\u0275\u0275property("matRippleDisabled",E._isRippleDisabled())("matRippleCentered",E.isIconButton)("matRippleTrigger",E._getHostElement()))},dependencies:[n.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),y})(),v=(()=>{class y{}return y.\u0275fac=function(S){return new(S||y)},y.\u0275mod=e.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.si,n.BQ,n.BQ]}),y})()},28377:(oe,x,i)=>{"use strict";i.d(x,{IF:()=>re,Qi:()=>p,S$:()=>B,_K:()=>g,k0:()=>b,lb:()=>P,mi:()=>u,u7:()=>V});var e=i(94650),n=i(3238);const a=["*",[["mat-card-footer"]]],t=["*","mat-card-footer"],l=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],h=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","*"];let p=(()=>{class Q{}return Q.\u0275fac=function(K){return new(K||Q)},Q.\u0275dir=e.\u0275\u0275defineDirective({type:Q,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Q})(),u=(()=>{class Q{}return Q.\u0275fac=function(K){return new(K||Q)},Q.\u0275dir=e.\u0275\u0275defineDirective({type:Q,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Q})(),g=(()=>{class Q{}return Q.\u0275fac=function(K){return new(K||Q)},Q.\u0275dir=e.\u0275\u0275defineDirective({type:Q,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Q})(),b=(()=>{class Q{}return Q.\u0275fac=function(K){return new(K||Q)},Q.\u0275dir=e.\u0275\u0275defineDirective({type:Q,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Q})(),P=(()=>{class Q{}return Q.\u0275fac=function(K){return new(K||Q)},Q.\u0275dir=e.\u0275\u0275defineDirective({type:Q,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),Q})(),B=(()=>{class Q{constructor(K){this._animationMode=K}}return Q.\u0275fac=function(K){return new(K||Q)(e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8))},Q.\u0275cmp=e.\u0275\u0275defineComponent({type:Q,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(K,k){2&K&&e.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===k._animationMode)},exportAs:["matCard"],ngContentSelectors:t,decls:2,vars:0,template:function(K,k){1&K&&(e.\u0275\u0275projectionDef(a),e.\u0275\u0275projection(0),e.\u0275\u0275projection(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),Q})(),V=(()=>{class Q{}return Q.\u0275fac=function(K){return new(K||Q)},Q.\u0275cmp=e.\u0275\u0275defineComponent({type:Q,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:h,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(K,k){1&K&&(e.\u0275\u0275projectionDef(l),e.\u0275\u0275projection(0),e.\u0275\u0275elementStart(1,"div",0),e.\u0275\u0275projection(2,1),e.\u0275\u0275elementEnd(),e.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0}),Q})(),re=(()=>{class Q{}return Q.\u0275fac=function(K){return new(K||Q)},Q.\u0275mod=e.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.BQ,n.BQ]}),Q})()},24404:(oe,x,i)=>{"use strict";i.d(x,{FC:()=>g,Zh:()=>v});var e=i(12687),n=i(94650),a=i(24006),t=i(56709),l=i(3238),h=i(49643);const s=function(y){return{enterDuration:y}},d=["*"];class p{}const u={provide:a.JU,useExisting:(0,n.forwardRef)(()=>g),multi:!0};let g=(()=>{class y extends t.MB{constructor(S,E,D,A,P,B,V){super("mat-checkbox-",S,E,A,P,B,V),this._focusMonitor=D,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(S){const E=new p;return E.source=this,E.checked=S,E}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(S=>{S||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(S){S.stopPropagation(),super._handleInputClick()}focus(S,E){S?this._focusMonitor.focusVia(this._inputElement,S,E):this._inputElement.nativeElement.focus(E)}}return y.\u0275fac=function(S){return new(S||y)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(e.tE),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(t.$u,8))},y.\u0275cmp=n.\u0275\u0275defineComponent({type:y,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(S,E){2&S&&(n.\u0275\u0275hostProperty("id",E.id),n.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null),n.\u0275\u0275classProp("mat-checkbox-indeterminate",E.indeterminate)("mat-checkbox-checked",E.checked)("mat-checkbox-disabled",E.disabled)("mat-checkbox-label-before","before"==E.labelPosition)("_mat-animation-noopable","NoopAnimations"===E._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n.\u0275\u0275ProvidersFeature([u]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(S,E){if(1&S&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.\u0275\u0275listener("change",function(A){return E._onInteractionEvent(A)})("click",function(A){return E._onInputClick(A)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"span",5),n.\u0275\u0275element(6,"span",6),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(7,"span",7),n.\u0275\u0275elementStart(8,"span",8),n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(9,"svg",9),n.\u0275\u0275element(10,"path",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275namespaceHTML(),n.\u0275\u0275element(11,"span",11),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(12,"span",12,13),n.\u0275\u0275listener("cdkObserveContent",function(){return E._onLabelTextChange()}),n.\u0275\u0275elementStart(14,"span",14),n.\u0275\u0275text(15,"\xa0"),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(16),n.\u0275\u0275elementEnd()()),2&S){const D=n.\u0275\u0275reference(1),A=n.\u0275\u0275reference(13);n.\u0275\u0275attribute("for",E.inputId),n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-checkbox-inner-container-no-side-margin",!A.textContent||!A.textContent.trim()),n.\u0275\u0275advance(1),n.\u0275\u0275property("id",E.inputId)("required",E.required)("checked",E.checked)("disabled",E.disabled)("tabIndex",E.tabIndex),n.\u0275\u0275attribute("value",E.value)("name",E.name)("aria-label",E.ariaLabel||null)("aria-labelledby",E.ariaLabelledby)("aria-describedby",E.ariaDescribedby),n.\u0275\u0275advance(2),n.\u0275\u0275property("matRippleTrigger",D)("matRippleDisabled",E._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.\u0275\u0275pureFunction1(18,s,"NoopAnimations"===E._animationMode?0:150))}},dependencies:[l.wG,h.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),y})(),v=(()=>{class y{}return y.\u0275fac=function(S){return new(S||y)},y.\u0275mod=n.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=n.\u0275\u0275defineInjector({imports:[l.si,l.BQ,h.Q8,t.LX,l.BQ,t.LX]}),y})()},89923:(oe,x,i)=>{"use strict";i.d(x,{IP:()=>H,Y6:()=>k,ir:()=>le,lw:()=>K,yD:()=>pe});var e=i(29521),n=i(94650),a=i(3238),t=i(21281),l=i(83353),h=i(36895),s=i(77579),d=i(56451),p=i(95698),u=i(82722),g=i(68675),v=i(12687),y=i(40445),b=i(95017),S=i(24006),E=i(59549);const D=["*"],P=new n.InjectionToken("MatChipRemove"),B=new n.InjectionToken("MatChipAvatar"),V=new n.InjectionToken("MatChipTrailingIcon");class X{constructor(me){this._elementRef=me}}const re=(0,a.sb)((0,a.pj)((0,a.Kr)(X),"primary"),-1);let K=(()=>{class de extends re{get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(q){const se=(0,t.Ig)(q);se!==this._selected&&(this._selected=se,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(q){this._value=q}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(q){this._selectable=(0,t.Ig)(q)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(q){this._disabled=(0,t.Ig)(q)}get removable(){return this._removable}set removable(q){this._removable=(0,t.Ig)(q)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}constructor(q,se,ve,Ee,Ye,wt,Wt,Ut){super(q),this._ngZone=se,this._changeDetectorRef=Ye,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new s.x,this._onBlur=new s.x,this.selectionChange=new n.EventEmitter,this.destroyed=new n.EventEmitter,this.removed=new n.EventEmitter,this._addHostClassName(),this._chipRippleTarget=wt.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new a.IR(this,se,this._chipRippleTarget,ve),this._chipRipple.setupTriggerEvents(q),this.rippleConfig=Ee||{},this._animationsDisabled="NoopAnimations"===Wt,this.tabIndex=null!=Ut&&parseInt(Ut)||-1}_addHostClassName(){const q="mat-basic-chip",se=this._elementRef.nativeElement;se.hasAttribute(q)||se.tagName.toLowerCase()===q?se.classList.add(q):se.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(q=!1){return this._selected=!this.selected,this._dispatchSelectionChange(q),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(q){this.disabled&&q.preventDefault()}_handleKeydown(q){if(!this.disabled)switch(q.keyCode){case e.yY:case e.ZH:this.remove(),q.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),q.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(q=!1){this.selectionChange.emit({source:this,isUserInput:q,selected:this._selected})}}return de.\u0275fac=function(q){return new(q||de)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(l.t4),n.\u0275\u0275directiveInject(a.Y2,8),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(h.DOCUMENT),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275injectAttribute("tabindex"))},de.\u0275dir=n.\u0275\u0275defineDirective({type:de,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(q,se,ve){if(1&q&&(n.\u0275\u0275contentQuery(ve,B,5),n.\u0275\u0275contentQuery(ve,V,5),n.\u0275\u0275contentQuery(ve,P,5)),2&q){let Ee;n.\u0275\u0275queryRefresh(Ee=n.\u0275\u0275loadQuery())&&(se.avatar=Ee.first),n.\u0275\u0275queryRefresh(Ee=n.\u0275\u0275loadQuery())&&(se.trailingIcon=Ee.first),n.\u0275\u0275queryRefresh(Ee=n.\u0275\u0275loadQuery())&&(se.removeIcon=Ee.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(q,se){1&q&&n.\u0275\u0275listener("click",function(Ee){return se._handleClick(Ee)})("keydown",function(Ee){return se._handleKeydown(Ee)})("focus",function(){return se.focus()})("blur",function(){return se._blur()}),2&q&&(n.\u0275\u0275attribute("tabindex",se.disabled?null:se.tabIndex)("role",se.role)("disabled",se.disabled||null)("aria-disabled",se.disabled.toString())("aria-selected",se.ariaSelected),n.\u0275\u0275classProp("mat-chip-selected",se.selected)("mat-chip-with-avatar",se.avatar)("mat-chip-with-trailing-icon",se.trailingIcon||se.removeIcon)("mat-chip-disabled",se.disabled)("_mat-animation-noopable",se._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[n.\u0275\u0275InheritDefinitionFeature]}),de})(),k=(()=>{class de{constructor(q,se){this._parentChip=q,"BUTTON"===se.nativeElement.nodeName&&se.nativeElement.setAttribute("type","button")}_handleClick(q){const se=this._parentChip;se.removable&&!se.disabled&&se.remove(),q.stopPropagation(),q.preventDefault()}}return de.\u0275fac=function(q){return new(q||de)(n.\u0275\u0275directiveInject(K),n.\u0275\u0275directiveInject(n.ElementRef))},de.\u0275dir=n.\u0275\u0275defineDirective({type:de,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(q,se){1&q&&n.\u0275\u0275listener("click",function(Ee){return se._handleClick(Ee)})},features:[n.\u0275\u0275ProvidersFeature([{provide:P,useExisting:de}])]}),de})();const $=new n.InjectionToken("mat-chips-default-options"),j=(0,a.FD)(class{constructor(de,me,q,se){this._defaultErrorStateMatcher=de,this._parentForm=me,this._parentFormGroup=q,this.ngControl=se,this.stateChanges=new s.x}});let R=0;class U{constructor(me,q){this.source=me,this.value=q}}let le=(()=>{class de extends j{get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(q){this._explicitRole=q}get multiple(){return this._multiple}set multiple(q){this._multiple=(0,t.Ig)(q),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(q){this._compareWith=q,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(q){this.writeValue(q),this._value=q}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(S.kI.required)??!1}set required(q){this._required=(0,t.Ig)(q),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(q){this._placeholder=q,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(q){this._disabled=(0,t.Ig)(q),this._syncChipsState()}get selectable(){return this._selectable}set selectable(q){this._selectable=(0,t.Ig)(q),this._syncChipsState()}set tabIndex(q){this._userTabIndex=q,this._tabIndex=q}get chipSelectionChanges(){return(0,d.T)(...this.chips.map(q=>q.selectionChange))}get chipFocusChanges(){return(0,d.T)(...this.chips.map(q=>q._onFocus))}get chipBlurChanges(){return(0,d.T)(...this.chips.map(q=>q._onBlur))}get chipRemoveChanges(){return(0,d.T)(...this.chips.map(q=>q.destroyed))}constructor(q,se,ve,Ee,Ye,wt,Wt){super(wt,Ee,Ye,Wt),this._elementRef=q,this._changeDetectorRef=se,this._dir=ve,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new s.x,this._uid="mat-chip-list-"+R++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ut,nt)=>Ut===nt,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new n.EventEmitter,this.valueChange=new n.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this._keyManager=new v.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,u.R)(this._destroyed)).subscribe(q=>this._keyManager.withHorizontalOrientation(q)),this._keyManager.tabOut.subscribe(()=>this._allowFocusEscape()),this.chips.changes.pipe((0,g.O)(null),(0,u.R)(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new b.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(q){this._chipInput=q,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",q.id)}setDescribedByIds(q){q.length?this._elementRef.nativeElement.setAttribute("aria-describedby",q.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(q){this.chips&&this._setSelectionByValue(q,!1)}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this.stateChanges.next()}onContainerClick(q){this._originatesFromChip(q)||this.focus()}focus(q){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(q),this.stateChanges.next()))}_focusInput(q){this._chipInput&&this._chipInput.focus(q)}_keydown(q){const se=q.target;se&&se.classList.contains("mat-chip")&&(this._keyManager.onKeydown(q),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const q=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(q)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(q){return q>=0&&q<this.chips.length}_setSelectionByValue(q,se=!0){if(this._clearSelection(),this.chips.forEach(ve=>ve.deselect()),Array.isArray(q))q.forEach(ve=>this._selectValue(ve,se)),this._sortValues();else{const ve=this._selectValue(q,se);ve&&se&&this._keyManager.setActiveItem(ve)}}_selectValue(q,se=!0){const ve=this.chips.find(Ee=>null!=Ee.value&&this._compareWith(Ee.value,q));return ve&&(se?ve.selectViaInteraction():ve.select(),this._selectionModel.select(ve)),ve}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(q){this._selectionModel.clear(),this.chips.forEach(se=>{se!==q&&se.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(q=>{q.selected&&this._selectionModel.select(q)}),this.stateChanges.next())}_propagateChanges(q){let se=null;se=Array.isArray(this.selected)?this.selected.map(ve=>ve.value):this.selected?this.selected.value:q,this._value=se,this.change.emit(new U(this,se)),this.valueChange.emit(se),this._onChange(se),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(q=>{q.source.selected?this._selectionModel.select(q.source):this._selectionModel.deselect(q.source),this.multiple||this.chips.forEach(se=>{!this._selectionModel.isSelected(se)&&se.selected&&se.deselect()}),q.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(q=>{let se=this.chips.toArray().indexOf(q.chip);this._isValidIndex(se)&&this._keyManager.updateActiveItem(se),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(q=>{const se=q.chip,ve=this.chips.toArray().indexOf(q.chip);this._isValidIndex(ve)&&se._hasFocus&&(this._lastDestroyedChipIndex=ve)})}_originatesFromChip(q){let se=q.target;for(;se&&se!==this._elementRef.nativeElement;){if(se.classList.contains("mat-chip"))return!0;se=se.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(q=>q._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(q=>{q._chipListDisabled=this._disabled,q._chipListMultiple=this.multiple,q.chipListSelectable=this._selectable})}}return de.\u0275fac=function(q){return new(q||de)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(y.Is,8),n.\u0275\u0275directiveInject(S.F,8),n.\u0275\u0275directiveInject(S.sg,8),n.\u0275\u0275directiveInject(a.rD),n.\u0275\u0275directiveInject(S.a5,10))},de.\u0275cmp=n.\u0275\u0275defineComponent({type:de,selectors:[["mat-chip-list"]],contentQueries:function(q,se,ve){if(1&q&&n.\u0275\u0275contentQuery(ve,K,5),2&q){let Ee;n.\u0275\u0275queryRefresh(Ee=n.\u0275\u0275loadQuery())&&(se.chips=Ee)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(q,se){1&q&&n.\u0275\u0275listener("focus",function(){return se.focus()})("blur",function(){return se._blur()})("keydown",function(Ee){return se._keydown(Ee)}),2&q&&(n.\u0275\u0275hostProperty("id",se._uid),n.\u0275\u0275attribute("tabindex",se.disabled?null:se._tabIndex)("aria-required",se.role?se.required:null)("aria-disabled",se.disabled.toString())("aria-invalid",se.errorState)("aria-multiselectable",se.multiple)("role",se.role)("aria-orientation",se.ariaOrientation),n.\u0275\u0275classProp("mat-chip-list-disabled",se.disabled)("mat-chip-list-invalid",se.errorState)("mat-chip-list-required",se.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[n.\u0275\u0275ProvidersFeature([{provide:E.Eo,useExisting:de}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:D,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(q,se){1&q&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),de})(),T=0,H=(()=>{class de{set chipList(q){q&&(this._chipList=q,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(q){this._addOnBlur=(0,t.Ig)(q)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(q){this._disabled=(0,t.Ig)(q)}get empty(){return!this.inputElement.value}constructor(q,se){this._elementRef=q,this._defaultOptions=se,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new n.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+T++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(q){if(q){if(q.keyCode===e.Mf&&!(0,e.Vb)(q,"shiftKey")&&this._chipList._allowFocusEscape(),q.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void q.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(q)}_keyup(q){!this._focusLastChipOnBackspace&&q.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,q.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(q){!this.inputElement.value&&q&&this._chipList._keydown(q),(!q||this._isSeparatorKey(q))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),q?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(q){this.inputElement.focus(q)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(q){return!(0,e.Vb)(q)&&new Set(this.separatorKeyCodes).has(q.keyCode)}}return de.\u0275fac=function(q){return new(q||de)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject($))},de.\u0275dir=n.\u0275\u0275defineDirective({type:de,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(q,se){1&q&&n.\u0275\u0275listener("keydown",function(Ee){return se._keydown(Ee)})("keyup",function(Ee){return se._keyup(Ee)})("blur",function(){return se._blur()})("focus",function(){return se._focus()})("input",function(){return se._onInput()}),2&q&&(n.\u0275\u0275hostProperty("id",se.id),n.\u0275\u0275attribute("disabled",se.disabled||null)("placeholder",se.placeholder||null)("aria-invalid",se._chipList&&se._chipList.ngControl?se._chipList.ngControl.invalid:null)("aria-required",se._chipList&&se._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[n.\u0275\u0275NgOnChangesFeature]}),de})(),pe=(()=>{class de{}return de.\u0275fac=function(q){return new(q||de)},de.\u0275mod=n.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=n.\u0275\u0275defineInjector({providers:[a.rD,{provide:$,useValue:{separatorKeyCodes:[e.K5]}}],imports:[a.BQ]}),de})()},24363:(oe,x,i)=>{"use strict";i.d(x,{CK:()=>u,Uc:()=>g});var e=i(94650),n=i(36895),a=i(3238);function h(v,y){if(1&v&&e.\u0275\u0275element(0,"mat-pseudo-checkbox",5),2&v){const b=e.\u0275\u0275nextContext();e.\u0275\u0275property("state",b.selected?"checked":"unchecked")("disabled",b.disabled)}}function s(v,y){if(1&v&&(e.\u0275\u0275elementStart(0,"span",6),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&v){const b=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("(",b.group.label,")")}}const d=["*"];let u=(()=>{class v extends a.MP{constructor(b,S,E,D){super(b,S,E,D)}}return v.\u0275fac=function(b){return new(b||v)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(a.HF,8),e.\u0275\u0275directiveInject(a.K7,8))},v.\u0275cmp=e.\u0275\u0275defineComponent({type:v,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(b,S){1&b&&e.\u0275\u0275listener("click",function(){return S._selectViaInteraction()})("keydown",function(D){return S._handleKeydown(D)}),2&b&&(e.\u0275\u0275hostProperty("id",S.id),e.\u0275\u0275attribute("tabindex",S._getTabIndex())("aria-selected",S.selected)("aria-disabled",S.disabled.toString()),e.\u0275\u0275classProp("mat-selected",S.selected)("mat-option-multiple",S.multiple)("mat-active",S.active)("mat-option-disabled",S.disabled))},exportAs:["matOption"],features:[e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:6,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(b,S){1&b&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275template(0,h,1,2,"mat-pseudo-checkbox",0),e.\u0275\u0275elementStart(1,"span",1,2),e.\u0275\u0275projection(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,s,2,1,"span",3),e.\u0275\u0275element(5,"div",4)),2&b&&(e.\u0275\u0275property("ngIf",S.multiple),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",S.group&&S.group._inert),e.\u0275\u0275advance(1),e.\u0275\u0275property("matRippleTrigger",S._getHostElement())("matRippleDisabled",S.disabled||S.disableRipple))},dependencies:[a.wG,n.NgIf,a.nP],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),v})(),g=(()=>{class v{}return v.\u0275fac=function(b){return new(b||v)},v.\u0275mod=e.\u0275\u0275defineNgModule({type:v}),v.\u0275inj=e.\u0275\u0275defineInjector({imports:[a.si,n.CommonModule,a.BQ,a.us]}),v})()},35559:(oe,x,i)=>{"use strict";i.d(x,{eJ:()=>Ce,on:()=>en,ev:()=>At,aO:()=>xt,Rb:()=>bt,yj:()=>Xe,hV:()=>ie,YS:()=>zt});var e=i(97855),n=i(98184),a=i(84080),t=i(94650),l=i(3238),h=i(36895),s=i(12687),d=i(77579),p=i(56451),u=i(49770),g=i(39300),v=i(95698),y=i(68675),b=i(29521),S=i(37340);class D{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let re=(()=>{class Pe extends e.LL{constructor(mt,It,xn,_n,Jt,ke,Ae,ze){super(mt,It,xn,_n,Jt,ke,Ae,ze),this._animationStateChanged=new t.EventEmitter}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(mt){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:mt})}}return Pe.\u0275fac=function(mt){return new(mt||Pe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(s.qV),t.\u0275\u0275directiveInject(h.DOCUMENT,8),t.\u0275\u0275directiveInject(D),t.\u0275\u0275directiveInject(s.ic),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(n.Iu),t.\u0275\u0275directiveInject(s.tE))},Pe.\u0275cmp=t.\u0275\u0275defineComponent({type:Pe,selectors:[["ng-component"]],features:[t.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(mt,It){},encapsulation:2}),Pe})();class k{constructor(Ve,mt,It){this._ref=Ve,this._containerInstance=It,this._afterOpened=new d.x,this._beforeClosed=new d.x,this._state=0,this.disableClose=mt.disableClose,this.id=Ve.id,It._animationStateChanged.pipe((0,g.h)(xn=>"opened"===xn.state),(0,v.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),It._animationStateChanged.pipe((0,g.h)(xn=>"closed"===xn.state),(0,v.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ve.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,p.T)(this.backdropClick(),this.keydownEvents().pipe((0,g.h)(xn=>xn.keyCode===b.hY&&!this.disableClose&&!(0,b.Vb)(xn)))).subscribe(xn=>{this.disableClose||(xn.preventDefault(),$(this,"keydown"===xn.type?"keyboard":"mouse"))})}close(Ve){this._result=Ve,this._containerInstance._animationStateChanged.pipe((0,g.h)(mt=>"closing"===mt.state),(0,v.q)(1)).subscribe(mt=>{this._beforeClosed.next(Ve),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),mt.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Ve){let mt=this._ref.config.positionStrategy;return Ve&&(Ve.left||Ve.right)?Ve.left?mt.left(Ve.left):mt.right(Ve.right):mt.centerHorizontally(),Ve&&(Ve.top||Ve.bottom)?Ve.top?mt.top(Ve.top):mt.bottom(Ve.bottom):mt.centerVertically(),this._ref.updatePosition(),this}updateSize(Ve="",mt=""){return this._ref.updateSize(Ve,mt),this}addPanelClass(Ve){return this._ref.addPanelClass(Ve),this}removePanelClass(Ve){return this._ref.removePanelClass(Ve),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function $(Pe,Ve,mt){return Pe._closeInteractionType=Ve,Pe.close(mt)}let N=0,pe=(()=>{class Pe{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const mt=this._parentDialog;return mt?mt._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(mt,It,xn,_n,Jt,ke,Ae,ze,pt,tn){this._overlay=mt,this._defaultOptions=xn,this._parentDialog=_n,this._dialogRefConstructor=Ae,this._dialogContainerType=ze,this._dialogDataToken=pt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new d.x,this._afterOpenedAtThisLevel=new d.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=D,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,y.O)(void 0))),this._scrollStrategy=ke,this._dialog=It.get(e.Vq)}open(mt,It){let xn;(It={...this._defaultOptions||new D,...It}).id=It.id||`${this._idPrefix}${N++}`,It.scrollStrategy=It.scrollStrategy||this._scrollStrategy();const _n=this._dialog.open(mt,{...It,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:It},{provide:e.ib,useValue:It}]},templateContext:()=>({dialogRef:xn}),providers:(Jt,ke,Ae)=>(xn=new this._dialogRefConstructor(Jt,It,Ae),xn.updatePosition(It?.position),[{provide:this._dialogContainerType,useValue:Ae},{provide:this._dialogDataToken,useValue:ke.data},{provide:this._dialogRefConstructor,useValue:xn}])});return xn.componentInstance=_n.componentInstance,this.openDialogs.push(xn),this.afterOpened.next(xn),xn.afterClosed().subscribe(()=>{const Jt=this.openDialogs.indexOf(xn);Jt>-1&&(this.openDialogs.splice(Jt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),xn}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(mt){return this.openDialogs.find(It=>It.id===mt)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(mt){let It=mt.length;for(;It--;)mt[It].close()}}return Pe.\u0275fac=function(mt){t.\u0275\u0275invalidFactory()},Pe.\u0275prov=t.\u0275\u0275defineInjectable({token:Pe,factory:Pe.\u0275fac}),Pe})();const Wt={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Ut={dialogContainer:(0,S.X$)("dialogContainer",[(0,S.SB)("void, exit",(0,S.oB)({opacity:0,transform:"scale(0.7)"})),(0,S.SB)("enter",(0,S.oB)({transform:"none"})),(0,S.eR)("* => enter",(0,S.ru)([(0,S.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,S.oB)({transform:"none",opacity:1})),(0,S.IO)("@*",(0,S.pV)(),{optional:!0})]),Wt),(0,S.eR)("* => void, * => exit",(0,S.ru)([(0,S.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,S.oB)({opacity:0})),(0,S.IO)("@*",(0,S.pV)(),{optional:!0})]),Wt)])};function nt(Pe,Ve){}const Zt_params_enterAnimationDuration="150ms",Zt_params_exitAnimationDuration="75ms";class Fe extends D{constructor(){super(...arguments),this.enterAnimationDuration=Wt.params.enterAnimationDuration,this.exitAnimationDuration=Wt.params.exitAnimationDuration}}let yt=(()=>{class Pe extends re{_onAnimationDone({toState:mt,totalTime:It}){"enter"===mt?this._openAnimationDone(It):"exit"===mt&&this._animationStateChanged.next({state:"closed",totalTime:It})}_onAnimationStart({toState:mt,totalTime:It}){"enter"===mt?this._animationStateChanged.next({state:"opening",totalTime:It}):("exit"===mt||"void"===mt)&&this._animationStateChanged.next({state:"closing",totalTime:It})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}constructor(mt,It,xn,_n,Jt,ke,Ae,ze,pt){super(mt,It,xn,_n,Jt,ke,Ae,pt),this._changeDetectorRef=ze,this._state="enter"}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Zt_params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Zt_params_exitAnimationDuration}}}}return Pe.\u0275fac=function(mt){return new(mt||Pe)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(s.qV),t.\u0275\u0275directiveInject(h.DOCUMENT,8),t.\u0275\u0275directiveInject(Fe),t.\u0275\u0275directiveInject(s.ic),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(n.Iu),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(s.tE))},Pe.\u0275cmp=t.\u0275\u0275defineComponent({type:Pe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(mt,It){1&mt&&t.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(_n){return It._onAnimationStart(_n)})("@dialogContainer.done",function(_n){return It._onAnimationDone(_n)}),2&mt&&(t.\u0275\u0275hostProperty("id",It._config.id),t.\u0275\u0275attribute("aria-modal",It._config.ariaModal)("role",It._config.role)("aria-labelledby",It._config.ariaLabel?null:It._ariaLabelledBy)("aria-label",It._config.ariaLabel)("aria-describedby",It._config.ariaDescribedBy||null),t.\u0275\u0275syntheticHostProperty("@dialogContainer",It._getAnimationState()))},features:[t.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(mt,It){1&mt&&t.\u0275\u0275template(0,nt,0,0,"ng-template",0)},dependencies:[a.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Ut.dialogContainer]}}),Pe})();class ie extends k{}const Ce=new t.InjectionToken("MatDialogData"),Ie=new t.InjectionToken("mat-dialog-default-options"),dt=new t.InjectionToken("mat-dialog-scroll-strategy"),Xt={provide:dt,deps:[n.aV],useFactory:function Mt(Pe){return()=>Pe.scrollStrategies.block()}};let en=(()=>{class Pe extends pe{constructor(mt,It,xn,_n,Jt,ke,Ae,ze){super(mt,It,_n,ke,Ae,Jt,ie,yt,Ce,ze),this.dialogConfigClass=Fe}}return Pe.\u0275fac=function(mt){return new(mt||Pe)(t.\u0275\u0275inject(n.aV),t.\u0275\u0275inject(t.Injector),t.\u0275\u0275inject(h.Location,8),t.\u0275\u0275inject(Ie,8),t.\u0275\u0275inject(dt),t.\u0275\u0275inject(Pe,12),t.\u0275\u0275inject(n.Xj),t.\u0275\u0275inject(t.ANIMATION_MODULE_TYPE,8))},Pe.\u0275prov=t.\u0275\u0275defineInjectable({token:Pe,factory:Pe.\u0275fac}),Pe})(),vt=0,xt=(()=>{class Pe{constructor(mt,It,xn){this.dialogRef=mt,this._elementRef=It,this._dialog=xn,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=$e(this._elementRef,this._dialog.openDialogs))}ngOnChanges(mt){const It=mt._matDialogClose||mt._matDialogCloseResult;It&&(this.dialogResult=It.currentValue)}_onButtonClick(mt){$(this.dialogRef,0===mt.screenX&&0===mt.screenY?"keyboard":"mouse",this.dialogResult)}}return Pe.\u0275fac=function(mt){return new(mt||Pe)(t.\u0275\u0275directiveInject(ie,8),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(en))},Pe.\u0275dir=t.\u0275\u0275defineDirective({type:Pe,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(mt,It){1&mt&&t.\u0275\u0275listener("click",function(_n){return It._onButtonClick(_n)}),2&mt&&t.\u0275\u0275attribute("aria-label",It.ariaLabel||null)("type",It.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[t.\u0275\u0275NgOnChangesFeature]}),Pe})(),zt=(()=>{class Pe{constructor(mt,It,xn){this._dialogRef=mt,this._elementRef=It,this._dialog=xn,this.id="mat-dialog-title-"+vt++}ngOnInit(){this._dialogRef||(this._dialogRef=$e(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const mt=this._dialogRef._containerInstance;mt&&!mt._ariaLabelledBy&&(mt._ariaLabelledBy=this.id)})}}return Pe.\u0275fac=function(mt){return new(mt||Pe)(t.\u0275\u0275directiveInject(ie,8),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(en))},Pe.\u0275dir=t.\u0275\u0275defineDirective({type:Pe,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(mt,It){2&mt&&t.\u0275\u0275hostProperty("id",It.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Pe})(),bt=(()=>{class Pe{}return Pe.\u0275fac=function(mt){return new(mt||Pe)},Pe.\u0275dir=t.\u0275\u0275defineDirective({type:Pe,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Pe})(),At=(()=>{class Pe{constructor(){this.align="start"}}return Pe.\u0275fac=function(mt){return new(mt||Pe)},Pe.\u0275dir=t.\u0275\u0275defineDirective({type:Pe,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(mt,It){2&mt&&t.\u0275\u0275classProp("mat-dialog-actions-align-center","center"===It.align)("mat-dialog-actions-align-end","end"===It.align)},inputs:{align:"align"}}),Pe})();function $e(Pe,Ve){let mt=Pe.nativeElement.parentElement;for(;mt&&!mt.classList.contains("mat-dialog-container");)mt=mt.parentElement;return mt?Ve.find(It=>It.id===mt.id):null}let Xe=(()=>{class Pe{}return Pe.\u0275fac=function(mt){return new(mt||Pe)},Pe.\u0275mod=t.\u0275\u0275defineNgModule({type:Pe}),Pe.\u0275inj=t.\u0275\u0275defineInjector({providers:[en,Xt],imports:[e.Su,n.U8,a.eL,l.BQ,l.BQ]}),Pe})()},18455:(oe,x,i)=>{"use strict";i.d(x,{$V:()=>pe,Tl:()=>de,g4:()=>wt,nI:()=>le,nX:()=>Wt,pH:()=>N,v_:()=>Ye,wp:()=>Ut});var e=i(49643),n=i(36895),a=i(94650),t=i(3238),l=i(59549),h=i(40445),s=i(21281),d=i(77579),p=i(56451),u=i(54968),g=i(68675),v=i(82722),y=i(95698),b=i(83353);const S=["connectionContainer"],E=["inputContainer"],D=["label"];function A(nt,Zt){1&nt&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"div",14),a.\u0275\u0275element(2,"div",15)(3,"div",16)(4,"div",17),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"div",18),a.\u0275\u0275element(6,"div",15)(7,"div",16)(8,"div",17),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd())}function P(nt,Zt){if(1&nt){const Fe=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",19),a.\u0275\u0275listener("cdkObserveContent",function(){a.\u0275\u0275restoreView(Fe);const ie=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(ie.updateOutlineGap())}),a.\u0275\u0275projection(1,1),a.\u0275\u0275elementEnd()}if(2&nt){const Fe=a.\u0275\u0275nextContext();a.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Fe.appearance)}}function B(nt,Zt){if(1&nt&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275projection(1,2),a.\u0275\u0275elementStart(2,"span"),a.\u0275\u0275text(3),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd()),2&nt){const Fe=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(Fe._control.placeholder)}}function V(nt,Zt){1&nt&&a.\u0275\u0275projection(0,3,["*ngSwitchCase","true"])}function X(nt,Zt){1&nt&&(a.\u0275\u0275elementStart(0,"span",23),a.\u0275\u0275text(1," *"),a.\u0275\u0275elementEnd())}function re(nt,Zt){if(1&nt){const Fe=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"label",20,21),a.\u0275\u0275listener("cdkObserveContent",function(){a.\u0275\u0275restoreView(Fe);const ie=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(ie.updateOutlineGap())}),a.\u0275\u0275template(2,B,4,1,"ng-container",12),a.\u0275\u0275template(3,V,1,0,"ng-content",12),a.\u0275\u0275template(4,X,2,0,"span",22),a.\u0275\u0275elementEnd()}if(2&nt){const Fe=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-empty",Fe._control.empty&&!Fe._shouldAlwaysFloat())("mat-form-field-empty",Fe._control.empty&&!Fe._shouldAlwaysFloat())("mat-accent","accent"==Fe.color)("mat-warn","warn"==Fe.color),a.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Fe.appearance)("id",Fe._labelId)("ngSwitch",Fe._hasLabel()),a.\u0275\u0275attribute("for",Fe._control.id)("aria-owns",Fe._control.id),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngSwitchCase",!1),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!Fe.hideRequiredMarker&&Fe._control.required&&!Fe._control.disabled)}}function Q(nt,Zt){1&nt&&(a.\u0275\u0275elementStart(0,"div",24),a.\u0275\u0275projection(1,4),a.\u0275\u0275elementEnd())}function ae(nt,Zt){if(1&nt&&(a.\u0275\u0275elementStart(0,"div",25),a.\u0275\u0275element(1,"span",26),a.\u0275\u0275elementEnd()),2&nt){const Fe=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275classProp("mat-accent","accent"==Fe.color)("mat-warn","warn"==Fe.color)}}function K(nt,Zt){if(1&nt&&(a.\u0275\u0275elementStart(0,"div"),a.\u0275\u0275projection(1,5),a.\u0275\u0275elementEnd()),2&nt){const Fe=a.\u0275\u0275nextContext();a.\u0275\u0275property("@transitionMessages",Fe._subscriptAnimationState)}}function k(nt,Zt){if(1&nt&&(a.\u0275\u0275elementStart(0,"div",30),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&nt){const Fe=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("id",Fe._hintLabelId),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(Fe.hintLabel)}}function $(nt,Zt){if(1&nt&&(a.\u0275\u0275elementStart(0,"div",27),a.\u0275\u0275template(1,k,2,2,"div",28),a.\u0275\u0275projection(2,6),a.\u0275\u0275element(3,"div",29),a.\u0275\u0275projection(4,7),a.\u0275\u0275elementEnd()),2&nt){const Fe=a.\u0275\u0275nextContext();a.\u0275\u0275property("@transitionMessages",Fe._subscriptAnimationState),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",Fe.hintLabel)}}const j=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],R=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let U=0,le=(()=>{class nt{constructor(Fe,yt){this.id="mat-error-"+U++,Fe||yt.nativeElement.setAttribute("aria-live","polite")}}return nt.\u0275fac=function(Fe){return new(Fe||nt)(a.\u0275\u0275injectAttribute("aria-live"),a.\u0275\u0275directiveInject(a.ElementRef))},nt.\u0275dir=a.\u0275\u0275defineDirective({type:nt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Fe,yt){2&Fe&&a.\u0275\u0275attribute("id",yt.id)},inputs:{id:"id"},features:[a.\u0275\u0275ProvidersFeature([{provide:l.ab,useExisting:nt}])]}),nt})(),T=0;const H=new a.InjectionToken("MatHint");let N=(()=>{class nt{constructor(){this.align="start",this.id="mat-hint-"+T++}}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275dir=a.\u0275\u0275defineDirective({type:nt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Fe,yt){2&Fe&&(a.\u0275\u0275attribute("id",yt.id)("align",null),a.\u0275\u0275classProp("mat-form-field-hint-end","end"===yt.align))},inputs:{align:"align",id:"id"},features:[a.\u0275\u0275ProvidersFeature([{provide:H,useExisting:nt}])]}),nt})(),pe=(()=>{class nt{}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275dir=a.\u0275\u0275defineDirective({type:nt,selectors:[["mat-label"]]}),nt})(),de=(()=>{class nt{}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275dir=a.\u0275\u0275defineDirective({type:nt,selectors:[["mat-placeholder"]]}),nt})(),me=0;const ve=(0,t.pj)(class{constructor(nt){this._elementRef=nt}},"primary"),Ee=new a.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Ye=(()=>{class nt extends ve{get appearance(){return this._appearance}set appearance(Fe){const yt=this._appearance;this._appearance=Fe||this._defaults?.appearance||"legacy","outline"===this._appearance&&yt!==Fe&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Fe){this._hideRequiredMarker=(0,s.Ig)(Fe)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Fe){this._hintLabel=Fe,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Fe){Fe!==this._floatLabel&&(this._floatLabel=Fe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Fe){this._explicitFormFieldControl=Fe}constructor(Fe,yt,ie,Ce,Ie,dt,Mt){super(Fe),this._changeDetectorRef=yt,this._dir=ie,this._defaults=Ce,this._platform=Ie,this._ngZone=dt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new d.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+me++,this._labelId="mat-form-field-label-"+me++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Mt,this.appearance=Ce?.appearance||"legacy",Ce&&(this._hideRequiredMarker=Boolean(Ce.hideRequiredMarker),Ce.color&&(this.color=this.defaultColor=Ce.color))}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Fe=this._control;Fe.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Fe.controlType}`),Fe.stateChanges.pipe((0,g.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Fe.ngControl&&Fe.ngControl.valueChanges&&Fe.ngControl.valueChanges.pipe((0,v.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,p.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,g.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,g.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,v.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(Fe){const yt=this._control?this._control.ngControl:null;return yt&&yt[Fe]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,u.R)(this._label.nativeElement,"transitionend").pipe((0,y.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let Fe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Fe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const yt=this._hintChildren?this._hintChildren.find(Ce=>"start"===Ce.align):null,ie=this._hintChildren?this._hintChildren.find(Ce=>"end"===Ce.align):null;yt?Fe.push(yt.id):this._hintLabel&&Fe.push(this._hintLabelId),ie&&Fe.push(ie.id)}else this._errorChildren&&Fe.push(...this._errorChildren.map(yt=>yt.id));this._control.setDescribedByIds(Fe)}}_validateControlChild(){}updateOutlineGap(){const Fe=this._label?this._label.nativeElement:null,yt=this._connectionContainerRef.nativeElement,ie=".mat-form-field-outline-start",Ce=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!Fe||!Fe.children.length||!Fe.textContent.trim()){const en=yt.querySelectorAll(`${ie}, ${Ce}`);for(let vt=0;vt<en.length;vt++)en[vt].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Ie=0,dt=0;const Mt=yt.querySelectorAll(ie),Xt=yt.querySelectorAll(Ce);if(this._label&&this._label.nativeElement.children.length){const en=yt.getBoundingClientRect();if(0===en.width&&0===en.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const vt=this._getStartEnd(en),xt=Fe.children,zt=this._getStartEnd(xt[0].getBoundingClientRect());let bt=0;for(let At=0;At<xt.length;At++)bt+=xt[At].offsetWidth;Ie=Math.abs(zt-vt)-5,dt=bt>0?.75*bt+10:0}for(let en=0;en<Mt.length;en++)Mt[en].style.width=`${Ie}px`;for(let en=0;en<Xt.length;en++)Xt[en].style.width=`${dt}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(Fe){return this._dir&&"rtl"===this._dir.value?Fe.right:Fe.left}_isAttachedToDOM(){const Fe=this._elementRef.nativeElement;if(Fe.getRootNode){const yt=Fe.getRootNode();return yt&&yt!==Fe}return document.documentElement.contains(Fe)}}return nt.\u0275fac=function(Fe){return new(Fe||nt)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(h.Is,8),a.\u0275\u0275directiveInject(Ee,8),a.\u0275\u0275directiveInject(b.t4),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},nt.\u0275cmp=a.\u0275\u0275defineComponent({type:nt,selectors:[["mat-form-field"]],contentQueries:function(Fe,yt,ie){if(1&Fe&&(a.\u0275\u0275contentQuery(ie,l.Eo,5),a.\u0275\u0275contentQuery(ie,l.Eo,7),a.\u0275\u0275contentQuery(ie,pe,5),a.\u0275\u0275contentQuery(ie,pe,7),a.\u0275\u0275contentQuery(ie,de,5),a.\u0275\u0275contentQuery(ie,l.ab,5),a.\u0275\u0275contentQuery(ie,H,5),a.\u0275\u0275contentQuery(ie,l.Px,5),a.\u0275\u0275contentQuery(ie,l.Ve,5)),2&Fe){let Ce;a.\u0275\u0275queryRefresh(Ce=a.\u0275\u0275loadQuery())&&(yt._controlNonStatic=Ce.first),a.\u0275\u0275queryRefresh(Ce=a.\u0275\u0275loadQuery())&&(yt._controlStatic=Ce.first),a.\u0275\u0275queryRefresh(Ce=a.\u0275\u0275loadQuery())&&(yt._labelChildNonStatic=Ce.first),a.\u0275\u0275queryRefresh(Ce=a.\u0275\u0275loadQuery())&&(yt._labelChildStatic=Ce.first),a.\u0275\u0275queryRefresh(Ce=a.\u0275\u0275loadQuery())&&(yt._placeholderChild=Ce.first),a.\u0275\u0275queryRefresh(Ce=a.\u0275\u0275loadQuery())&&(yt._errorChildren=Ce),a.\u0275\u0275queryRefresh(Ce=a.\u0275\u0275loadQuery())&&(yt._hintChildren=Ce),a.\u0275\u0275queryRefresh(Ce=a.\u0275\u0275loadQuery())&&(yt._prefixChildren=Ce),a.\u0275\u0275queryRefresh(Ce=a.\u0275\u0275loadQuery())&&(yt._suffixChildren=Ce)}},viewQuery:function(Fe,yt){if(1&Fe&&(a.\u0275\u0275viewQuery(S,7),a.\u0275\u0275viewQuery(E,5),a.\u0275\u0275viewQuery(D,5)),2&Fe){let ie;a.\u0275\u0275queryRefresh(ie=a.\u0275\u0275loadQuery())&&(yt._connectionContainerRef=ie.first),a.\u0275\u0275queryRefresh(ie=a.\u0275\u0275loadQuery())&&(yt._inputContainerRef=ie.first),a.\u0275\u0275queryRefresh(ie=a.\u0275\u0275loadQuery())&&(yt._label=ie.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(Fe,yt){2&Fe&&a.\u0275\u0275classProp("mat-form-field-appearance-standard","standard"==yt.appearance)("mat-form-field-appearance-fill","fill"==yt.appearance)("mat-form-field-appearance-outline","outline"==yt.appearance)("mat-form-field-appearance-legacy","legacy"==yt.appearance)("mat-form-field-invalid",yt._control.errorState)("mat-form-field-can-float",yt._canLabelFloat())("mat-form-field-should-float",yt._shouldLabelFloat())("mat-form-field-has-label",yt._hasFloatingLabel())("mat-form-field-hide-placeholder",yt._hideControlPlaceholder())("mat-form-field-disabled",yt._control.disabled)("mat-form-field-autofilled",yt._control.autofilled)("mat-focused",yt._control.focused)("ng-untouched",yt._shouldForward("untouched"))("ng-touched",yt._shouldForward("touched"))("ng-pristine",yt._shouldForward("pristine"))("ng-dirty",yt._shouldForward("dirty"))("ng-valid",yt._shouldForward("valid"))("ng-invalid",yt._shouldForward("invalid"))("ng-pending",yt._shouldForward("pending"))("_mat-animation-noopable",!yt._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[a.\u0275\u0275ProvidersFeature([{provide:l.G_,useExisting:nt}]),a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:R,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(Fe,yt){1&Fe&&(a.\u0275\u0275projectionDef(j),a.\u0275\u0275elementStart(0,"div",0)(1,"div",1,2),a.\u0275\u0275listener("click",function(Ce){return yt._control.onContainerClick&&yt._control.onContainerClick(Ce)}),a.\u0275\u0275template(3,A,9,0,"ng-container",3),a.\u0275\u0275template(4,P,2,1,"div",4),a.\u0275\u0275elementStart(5,"div",5,6),a.\u0275\u0275projection(7),a.\u0275\u0275elementStart(8,"span",7),a.\u0275\u0275template(9,re,5,16,"label",8),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(10,Q,2,0,"div",9),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(11,ae,2,4,"div",10),a.\u0275\u0275elementStart(12,"div",11),a.\u0275\u0275template(13,K,2,1,"div",12),a.\u0275\u0275template(14,$,5,2,"div",13),a.\u0275\u0275elementEnd()()),2&Fe&&(a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf","outline"==yt.appearance),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",yt._prefixChildren.length),a.\u0275\u0275advance(5),a.\u0275\u0275property("ngIf",yt._hasFloatingLabel()),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",yt._suffixChildren.length),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf","outline"!=yt.appearance),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitch",yt._getDisplayedMessages()),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase","error"),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase","hint"))},dependencies:[n.NgIf,n.NgSwitch,n.NgSwitchCase,e.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}.mat-form-field .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-button-base,.mat-form-field .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-form-field .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{font-size:1em;display:inline-block;margin:-2px 0 1px}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button{font-size:inherit;width:1.5em;height:1.5em;padding:0}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{line-height:1.5em;margin:0}.mat-form-field .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:baseline}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[l.TN.transitionMessages]},changeDetection:0}),nt})(),wt=(()=>{class nt{}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275dir=a.\u0275\u0275defineDirective({type:nt,selectors:[["","matPrefix",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:l.Px,useExisting:nt}])]}),nt})(),Wt=(()=>{class nt{}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275dir=a.\u0275\u0275defineDirective({type:nt,selectors:[["","matSuffix",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:l.Ve,useExisting:nt}])]}),nt})(),Ut=(()=>{class nt{}return nt.\u0275fac=function(Fe){return new(Fe||nt)},nt.\u0275mod=a.\u0275\u0275defineNgModule({type:nt}),nt.\u0275inj=a.\u0275\u0275defineInjector({imports:[n.CommonModule,t.BQ,e.Q8,t.BQ]}),nt})()},29203:(oe,x,i)=>{"use strict";i.d(x,{k0:()=>s,x4:()=>d});var e=i(94650),n=i(284),a=i(59549),t=i(18455),l=i(39349),h=i(3238);let s=(()=>{class p extends n.Nt{constructor(){super(...arguments),this._legacyFormField=(0,e.inject)(a.G_,{optional:!0})}_getPlaceholder(){const g=this._legacyFormField;return g&&"legacy"===g.appearance&&!g._hasLabel?.()?null:this.placeholder}}return p.\u0275fac=function(){let u;return function(v){return(u||(u=e.\u0275\u0275getInheritedFactory(p)))(v||p)}}(),p.\u0275dir=e.\u0275\u0275defineDirective({type:p,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(g,v){2&g&&(e.\u0275\u0275attribute("data-placeholder",v.placeholder),e.\u0275\u0275classProp("mat-input-server",v._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",v._isInlineSelect()))},exportAs:["matInput"],features:[e.\u0275\u0275ProvidersFeature([{provide:a.Eo,useExisting:p}]),e.\u0275\u0275InheritDefinitionFeature]}),p})(),d=(()=>{class p{}return p.\u0275fac=function(g){return new(g||p)},p.\u0275mod=e.\u0275\u0275defineNgModule({type:p}),p.\u0275inj=e.\u0275\u0275defineInjector({providers:[h.rD],imports:[l.Ky,t.wp,h.BQ,l.Ky,t.wp]}),p})()},19982:(oe,x,i)=>{"use strict";i.d(x,{Zj:()=>pt,Wx:()=>tn,ap:()=>ot,oh:()=>z,gR:()=>it,U:()=>ze});var e=i(36895),n=i(94650),a=i(3238),t=i(21281),d=(i(83353),i(50727),i(56451),i(77579)),b=(i(49643),i(12687),i(95017),i(29521),i(24006),i(82722));const yt=new n.InjectionToken("MatList"),Xt=new n.InjectionToken("MatNavList");i(68675);var $e=i(44850);const Xe=["*"],Ve=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],mt=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ke=(0,a.Id)((0,a.Kr)(class{})),Ae=(0,a.Kr)(class{});let ze=(()=>{class Be extends ke{constructor(){super(...arguments),this._stateChanges=new d.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Be.\u0275fac=function(){let gt;return function(Ge){return(gt||(gt=n.\u0275\u0275getInheritedFactory(Be)))(Ge||Be)}}(),Be.\u0275cmp=n.\u0275\u0275defineComponent({type:Be,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n.\u0275\u0275ProvidersFeature([{provide:Xt,useExisting:Be}]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Xe,decls:1,vars:0,template:function(ue,Ge){1&ue&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Be})(),pt=(()=>{class Be extends ke{constructor(ue){super(),this._elementRef=ue,this._stateChanges=new d.x,"action-list"===this._getListType()&&(ue.nativeElement.classList.add("mat-action-list"),ue.nativeElement.setAttribute("role","group"))}_getListType(){const ue=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===ue?"list":"mat-action-list"===ue?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Be.\u0275fac=function(ue){return new(ue||Be)(n.\u0275\u0275directiveInject(n.ElementRef))},Be.\u0275cmp=n.\u0275\u0275defineComponent({type:Be,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[n.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:Be}]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Xe,decls:1,vars:0,template:function(ue,Ge){1&ue&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),Be})(),tn=(()=>{class Be{}return Be.\u0275fac=function(ue){return new(ue||Be)},Be.\u0275dir=n.\u0275\u0275defineDirective({type:Be,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Be})(),ot=(()=>{class Be{}return Be.\u0275fac=function(ue){return new(ue||Be)},Be.\u0275dir=n.\u0275\u0275defineDirective({type:Be,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Be})(),z=(()=>{class Be extends Ae{constructor(ue,Ge,ee,De){super(),this._element=ue,this._isInteractiveList=!1,this._destroyed=new d.x,this._disabled=!1,this._isInteractiveList=!!(ee||De&&"action-list"===De._getListType()),this._list=ee||De;const Ot=this._getHostElement();"button"===Ot.nodeName.toLowerCase()&&!Ot.hasAttribute("type")&&Ot.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,b.R)(this._destroyed)).subscribe(()=>{Ge.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(ue){this._disabled=(0,t.Ig)(ue)}ngAfterContentInit(){(0,a.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Be.\u0275fac=function(ue){return new(ue||Be)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(Xt,8),n.\u0275\u0275directiveInject(yt,8))},Be.\u0275cmp=n.\u0275\u0275defineComponent({type:Be,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(ue,Ge,ee){if(1&ue&&(n.\u0275\u0275contentQuery(ee,tn,5),n.\u0275\u0275contentQuery(ee,ot,5),n.\u0275\u0275contentQuery(ee,a.X2,5)),2&ue){let De;n.\u0275\u0275queryRefresh(De=n.\u0275\u0275loadQuery())&&(Ge._avatar=De.first),n.\u0275\u0275queryRefresh(De=n.\u0275\u0275loadQuery())&&(Ge._icon=De.first),n.\u0275\u0275queryRefresh(De=n.\u0275\u0275loadQuery())&&(Ge._lines=De)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(ue,Ge){2&ue&&n.\u0275\u0275classProp("mat-list-item-disabled",Ge.disabled)("mat-list-item-with-avatar",Ge._avatar||Ge._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:mt,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(ue,Ge){1&ue&&(n.\u0275\u0275projectionDef(Ve),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275element(1,"span",1),n.\u0275\u0275projection(2),n.\u0275\u0275elementStart(3,"span",2),n.\u0275\u0275projection(4,1),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(5,2),n.\u0275\u0275elementEnd()),2&ue&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("matRippleTrigger",Ge._getHostElement())("matRippleDisabled",Ge._isRippleDisabled()))},dependencies:[a.wG],encapsulation:2,changeDetection:0}),Be})(),it=(()=>{class Be{}return Be.\u0275fac=function(ue){return new(ue||Be)},Be.\u0275mod=n.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=n.\u0275\u0275defineInjector({imports:[a.uc,a.si,a.BQ,a.us,e.CommonModule,a.uc,a.BQ,a.us,$e.t]}),Be})()},86255:(oe,x,i)=>{"use strict";i.d(x,{W0:()=>xt,tN:()=>zt,jT:()=>$e,D8:()=>bt});var e=i(94650),n=i(12687),a=i(21281),t=i(29521),l=i(77579),h=i(56451),s=i(50727),d=i(39646),p=i(53101),u=i(68675),g=i(63900),v=i(95698),y=i(82722),b=i(39300),S=i(94086),E=i(3238),D=i(36895),A=i(84080),P=i(37340),B=i(40445),V=i(98184),X=i(83353);const re=["mat-menu-item",""];function Q(Xe,Pe){1&Xe&&(e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(0,"svg",3),e.\u0275\u0275element(1,"polygon",4),e.\u0275\u0275elementEnd())}const ae=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],K=["mat-icon, [matMenuItemIcon]","*"],j=new e.InjectionToken("MAT_MENU_PANEL"),R=(0,E.Kr)((0,E.Id)(class{}));let U=(()=>{class Xe extends R{constructor(Ve,mt,It,xn,_n){super(),this._elementRef=Ve,this._document=mt,this._focusMonitor=It,this._parentMenu=xn,this._changeDetectorRef=_n,this.role="menuitem",this._hovered=new l.x,this._focused=new l.x,this._highlighted=!1,this._triggersSubmenu=!1,xn?.addItem?.(this)}focus(Ve,mt){this._focusMonitor&&Ve?this._focusMonitor.focusVia(this._getHostElement(),Ve,mt):this._getHostElement().focus(mt),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(Ve){this.disabled&&(Ve.preventDefault(),Ve.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Ve=this._elementRef.nativeElement.cloneNode(!0),mt=Ve.querySelectorAll("mat-icon, .material-icons");for(let It=0;It<mt.length;It++)mt[It].remove();return Ve.textContent?.trim()||""}_setHighlighted(Ve){this._highlighted=Ve,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(Ve){this._triggersSubmenu=Ve,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return Xe.\u0275fac=function(Ve){return new(Ve||Xe)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(D.DOCUMENT),e.\u0275\u0275directiveInject(n.tE),e.\u0275\u0275directiveInject(j,8),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},Xe.\u0275cmp=e.\u0275\u0275defineComponent({type:Xe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator","mdc-list-item"],hostVars:8,hostBindings:function(Ve,mt){1&Ve&&e.\u0275\u0275listener("click",function(xn){return mt._checkDisabled(xn)})("mouseenter",function(){return mt._handleMouseEnter()}),2&Ve&&(e.\u0275\u0275attribute("role",mt.role)("tabindex",mt._getTabIndex())("aria-disabled",mt.disabled)("disabled",mt.disabled||null),e.\u0275\u0275classProp("mat-mdc-menu-item-highlighted",mt._highlighted)("mat-mdc-menu-item-submenu-trigger",mt._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[e.\u0275\u0275InheritDefinitionFeature],attrs:re,ngContentSelectors:K,decls:5,vars:3,consts:[[1,"mdc-list-item__primary-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Ve,mt){1&Ve&&(e.\u0275\u0275projectionDef(ae),e.\u0275\u0275projection(0),e.\u0275\u0275elementStart(1,"span",0),e.\u0275\u0275projection(2,1),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"div",1),e.\u0275\u0275template(4,Q,2,0,"svg",2)),2&Ve&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("matRippleDisabled",mt.disableRipple||mt.disabled)("matRippleTrigger",mt._getHostElement()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",mt._triggersSubmenu))},dependencies:[D.NgIf,E.wG],encapsulation:2,changeDetection:0}),Xe})();const N=new e.InjectionToken("MatMenuContent"),me={transformMenu:(0,P.X$)("transformMenu",[(0,P.SB)("void",(0,P.oB)({opacity:0,transform:"scale(0.8)"})),(0,P.eR)("void => enter",(0,P.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,P.oB)({opacity:1,transform:"scale(1)"}))),(0,P.eR)("* => void",(0,P.jt)("100ms 25ms linear",(0,P.oB)({opacity:0})))]),fadeInItems:(0,P.X$)("fadeInItems",[(0,P.SB)("showing",(0,P.oB)({opacity:1})),(0,P.eR)("void => *",[(0,P.oB)({opacity:0}),(0,P.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ve=0;const Ee=new e.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function Ye(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let wt=(()=>{class Xe{get xPosition(){return this._xPosition}set xPosition(Ve){this._xPosition=Ve,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Ve){this._yPosition=Ve,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Ve){this._overlapTrigger=(0,a.Ig)(Ve)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Ve){this._hasBackdrop=(0,a.Ig)(Ve)}set panelClass(Ve){const mt=this._previousPanelClass;mt&&mt.length&&mt.split(" ").forEach(It=>{this._classList[It]=!1}),this._previousPanelClass=Ve,Ve&&Ve.length&&(Ve.split(" ").forEach(It=>{this._classList[It]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Ve){this.panelClass=Ve}constructor(Ve,mt,It,xn){this._elementRef=Ve,this._ngZone=mt,this._defaultOptions=It,this._changeDetectorRef=xn,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new e.QueryList,this._classList={},this._panelAnimationState="void",this._animationDone=new l.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new e.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+ve++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,u.O)(this._directDescendantItems),(0,g.w)(Ve=>(0,h.T)(...Ve.map(mt=>mt._focused)))).subscribe(Ve=>this._keyManager.updateActiveItem(Ve)),this._directDescendantItems.changes.subscribe(Ve=>{const mt=this._keyManager;if("enter"===this._panelAnimationState&&mt.activeItem?._hasFocus()){const It=Ve.toArray(),xn=Math.max(0,Math.min(It.length-1,mt.activeItemIndex||0));It[xn]&&!It[xn].disabled?mt.setActiveItem(xn):mt.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,u.O)(this._directDescendantItems),(0,g.w)(mt=>(0,h.T)(...mt.map(It=>It._hovered))))}addItem(Ve){}removeItem(Ve){}_handleKeydown(Ve){const mt=Ve.keyCode,It=this._keyManager;switch(mt){case t.hY:(0,t.Vb)(Ve)||(Ve.preventDefault(),this.closed.emit("keydown"));break;case t.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case t.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(mt===t.LH||mt===t.JH)&&It.setFocusOrigin("keyboard"),void It.onKeydown(Ve)}Ve.stopPropagation()}focusFirstItem(Ve="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,v.q)(1)).subscribe(()=>{let mt=null;if(this._directDescendantItems.length&&(mt=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!mt||!mt.contains(document.activeElement)){const It=this._keyManager;It.setFocusOrigin(Ve).setFirstItemActive(),!It.activeItem&&mt&&mt.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Ve){const mt=Math.min(this._baseElevation+Ve,24),It=`${this._elevationPrefix}${mt}`,xn=Object.keys(this._classList).find(_n=>_n.startsWith(this._elevationPrefix));(!xn||xn===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[It]=!0,this._previousElevation=It)}setPositionClasses(Ve=this.xPosition,mt=this.yPosition){const It=this._classList;It["mat-menu-before"]="before"===Ve,It["mat-menu-after"]="after"===Ve,It["mat-menu-above"]="above"===mt,It["mat-menu-below"]="below"===mt,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Ve){this._animationDone.next(Ve),this._isAnimating=!1}_onAnimationStart(Ve){this._isAnimating=!0,"enter"===Ve.toState&&0===this._keyManager.activeItemIndex&&(Ve.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,u.O)(this._allItems)).subscribe(Ve=>{this._directDescendantItems.reset(Ve.filter(mt=>mt._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Xe.\u0275fac=function(Ve){return new(Ve||Xe)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(Ee),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},Xe.\u0275dir=e.\u0275\u0275defineDirective({type:Xe,contentQueries:function(Ve,mt,It){if(1&Ve&&(e.\u0275\u0275contentQuery(It,N,5),e.\u0275\u0275contentQuery(It,U,5),e.\u0275\u0275contentQuery(It,U,4)),2&Ve){let xn;e.\u0275\u0275queryRefresh(xn=e.\u0275\u0275loadQuery())&&(mt.lazyContent=xn.first),e.\u0275\u0275queryRefresh(xn=e.\u0275\u0275loadQuery())&&(mt._allItems=xn),e.\u0275\u0275queryRefresh(xn=e.\u0275\u0275loadQuery())&&(mt.items=xn)}},viewQuery:function(Ve,mt){if(1&Ve&&e.\u0275\u0275viewQuery(e.TemplateRef,5),2&Ve){let It;e.\u0275\u0275queryRefresh(It=e.\u0275\u0275loadQuery())&&(mt.templateRef=It.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Xe})();const Ut=new e.InjectionToken("mat-menu-scroll-strategy"),Zt={provide:Ut,deps:[V.aV],useFactory:function nt(Xe){return()=>Xe.scrollStrategies.reposition()}},Fe=(0,X.i$)({passive:!0});let ie=(()=>{class Xe{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Ve){this.menu=Ve}get menu(){return this._menu}set menu(Ve){Ve!==this._menu&&(this._menu=Ve,this._menuCloseSubscription.unsubscribe(),Ve&&(this._menuCloseSubscription=Ve.close.subscribe(mt=>{this._destroyMenu(mt),("click"===mt||"tab"===mt)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(mt)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(Ve,mt,It,xn,_n,Jt,ke,Ae,ze){this._overlay=Ve,this._element=mt,this._viewContainerRef=It,this._menuItemInstance=Jt,this._dir=ke,this._focusMonitor=Ae,this._ngZone=ze,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=s.w0.EMPTY,this._hoverSubscription=s.w0.EMPTY,this._menuCloseSubscription=s.w0.EMPTY,this._changeDetectorRef=(0,e.inject)(e.ChangeDetectorRef),this._handleTouchStart=pt=>{(0,n.yG)(pt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new e.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=xn,this._parentMaterialMenu=_n instanceof wt?_n:void 0,mt.nativeElement.addEventListener("touchstart",this._handleTouchStart,Fe)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Fe),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 Ve=this.menu;if(this._menuOpen||!Ve)return;const mt=this._createOverlay(Ve),It=mt.getConfig(),xn=It.positionStrategy;this._setPosition(Ve,xn),It.hasBackdrop=null==Ve.hasBackdrop?!this.triggersSubmenu():Ve.hasBackdrop,mt.attach(this._getPortal(Ve)),Ve.lazyContent&&Ve.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Ve),Ve instanceof wt&&(Ve._startAnimation(),Ve._directDescendantItems.changes.pipe((0,y.R)(Ve.close)).subscribe(()=>{xn.withLockedPosition(!1).reapplyLastPosition(),xn.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Ve,mt){this._focusMonitor&&Ve?this._focusMonitor.focusVia(this._element,Ve,mt):this._element.nativeElement.focus(mt)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Ve){if(!this._overlayRef||!this.menuOpen)return;const mt=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Ve||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,mt instanceof wt?(mt._resetAnimation(),mt.lazyContent?mt._animationDone.pipe((0,b.h)(It=>"void"===It.toState),(0,v.q)(1),(0,y.R)(mt.lazyContent._attached)).subscribe({next:()=>mt.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),mt?.lazyContent?.detach())}_initMenu(Ve){Ve.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Ve.direction=this.dir,this._setMenuElevation(Ve),Ve.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Ve){if(Ve.setElevation){let mt=0,It=Ve.parentMenu;for(;It;)mt++,It=It.parentMenu;Ve.setElevation(mt)}}_setIsMenuOpen(Ve){Ve!==this._menuOpen&&(this._menuOpen=Ve,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Ve),this._changeDetectorRef.markForCheck())}_createOverlay(Ve){if(!this._overlayRef){const mt=this._getOverlayConfig(Ve);this._subscribeToPositions(Ve,mt.positionStrategy),this._overlayRef=this._overlay.create(mt),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Ve){return new V.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Ve.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Ve.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Ve,mt){Ve.setPositionClasses&&mt.positionChanges.subscribe(It=>{const xn="start"===It.connectionPair.overlayX?"after":"before",_n="top"===It.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Ve.setPositionClasses(xn,_n)):Ve.setPositionClasses(xn,_n)})}_setPosition(Ve,mt){let[It,xn]="before"===Ve.xPosition?["end","start"]:["start","end"],[_n,Jt]="above"===Ve.yPosition?["bottom","top"]:["top","bottom"],[ke,Ae]=[_n,Jt],[ze,pt]=[It,xn],tn=0;if(this.triggersSubmenu()){if(pt=It="before"===Ve.xPosition?"start":"end",xn=ze="end"===It?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const ot=this._parentMaterialMenu.items.first;this._parentInnerPadding=ot?ot._getHostElement().offsetTop:0}tn="bottom"===_n?this._parentInnerPadding:-this._parentInnerPadding}}else Ve.overlapTrigger||(ke="top"===_n?"bottom":"top",Ae="top"===Jt?"bottom":"top");mt.withPositions([{originX:It,originY:ke,overlayX:ze,overlayY:_n,offsetY:tn},{originX:xn,originY:ke,overlayX:pt,overlayY:_n,offsetY:tn},{originX:It,originY:Ae,overlayX:ze,overlayY:Jt,offsetY:-tn},{originX:xn,originY:Ae,overlayX:pt,overlayY:Jt,offsetY:-tn}])}_menuClosingActions(){const Ve=this._overlayRef.backdropClick(),mt=this._overlayRef.detachments(),It=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,d.of)(),xn=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,b.h)(_n=>_n!==this._menuItemInstance),(0,b.h)(()=>this._menuOpen)):(0,d.of)();return(0,h.T)(Ve,It,xn,mt)}_handleMousedown(Ve){(0,n.X6)(Ve)||(this._openedBy=0===Ve.button?"mouse":void 0,this.triggersSubmenu()&&Ve.preventDefault())}_handleKeydown(Ve){const mt=Ve.keyCode;(mt===t.K5||mt===t.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(mt===t.SV&&"ltr"===this.dir||mt===t.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Ve){this.triggersSubmenu()?(Ve.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,b.h)(Ve=>Ve===this._menuItemInstance&&!Ve.disabled),(0,S.g)(0,p.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof wt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,v.q)(1),(0,S.g)(0,p.E),(0,y.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Ve){return(!this._portal||this._portal.templateRef!==Ve.templateRef)&&(this._portal=new A.UE(Ve.templateRef,this._viewContainerRef)),this._portal}}return Xe.\u0275fac=function(Ve){return new(Ve||Xe)(e.\u0275\u0275directiveInject(V.aV),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(Ut),e.\u0275\u0275directiveInject(j,8),e.\u0275\u0275directiveInject(U,10),e.\u0275\u0275directiveInject(B.Is,8),e.\u0275\u0275directiveInject(n.tE),e.\u0275\u0275directiveInject(e.NgZone))},Xe.\u0275dir=e.\u0275\u0275defineDirective({type:Xe,hostVars:3,hostBindings:function(Ve,mt){1&Ve&&e.\u0275\u0275listener("click",function(xn){return mt._handleClick(xn)})("mousedown",function(xn){return mt._handleMousedown(xn)})("keydown",function(xn){return mt._handleKeydown(xn)}),2&Ve&&e.\u0275\u0275attribute("aria-haspopup",mt.menu?"menu":null)("aria-expanded",mt.menuOpen)("aria-controls",mt.menuOpen?mt.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"}}),Xe})();var dt=i(67376);function Mt(Xe,Pe){if(1&Xe){const Ve=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275listener("keydown",function(It){e.\u0275\u0275restoreView(Ve);const xn=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(xn._handleKeydown(It))})("click",function(){e.\u0275\u0275restoreView(Ve);const It=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(It.closed.emit("click"))})("@transformMenu.start",function(It){e.\u0275\u0275restoreView(Ve);const xn=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(xn._onAnimationStart(It))})("@transformMenu.done",function(It){e.\u0275\u0275restoreView(Ve);const xn=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(xn._onAnimationDone(It))}),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275projection(2),e.\u0275\u0275elementEnd()()}if(2&Xe){const Ve=e.\u0275\u0275nextContext();e.\u0275\u0275property("id",Ve.panelId)("ngClass",Ve._classList)("@transformMenu",Ve._panelAnimationState),e.\u0275\u0275attribute("aria-label",Ve.ariaLabel||null)("aria-labelledby",Ve.ariaLabelledby||null)("aria-describedby",Ve.ariaDescribedby||null)}}const Xt=["*"],en=["mat-menu-item",""];function vt(Xe,Pe){1&Xe&&(e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(0,"svg",2),e.\u0275\u0275element(1,"polygon",3),e.\u0275\u0275elementEnd())}let xt=(()=>{class Xe extends wt{constructor(Ve,mt,It,xn){super(Ve,mt,It,xn),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Xe.\u0275fac=function(Ve){return new(Ve||Xe)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(Ee),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},Xe.\u0275cmp=e.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Ve,mt){2&Ve&&e.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[e.\u0275\u0275ProvidersFeature([{provide:j,useExisting:Xe}]),e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Xt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Ve,mt){1&Ve&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275template(0,Mt,3,6,"ng-template"))},dependencies:[D.NgClass],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[me.transformMenu,me.fadeInItems]},changeDetection:0}),Xe})(),zt=(()=>{class Xe extends U{}return Xe.\u0275fac=function(){let Pe;return function(mt){return(Pe||(Pe=e.\u0275\u0275getInheritedFactory(Xe)))(mt||Xe)}}(),Xe.\u0275cmp=e.\u0275\u0275defineComponent({type:Xe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(Ve,mt){2&Ve&&(e.\u0275\u0275attribute("role",mt.role)("tabindex",mt._getTabIndex())("aria-disabled",mt.disabled.toString())("disabled",mt.disabled||null),e.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",mt._highlighted)("mat-menu-item-submenu-trigger",mt._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[e.\u0275\u0275ProvidersFeature([{provide:U,useExisting:Xe}]),e.\u0275\u0275InheritDefinitionFeature],attrs:en,ngContentSelectors:Xt,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Ve,mt){1&Ve&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275projection(0),e.\u0275\u0275element(1,"div",0),e.\u0275\u0275template(2,vt,2,0,"svg",1)),2&Ve&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("matRippleDisabled",mt.disableRipple||mt.disabled)("matRippleTrigger",mt._getHostElement()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",mt._triggersSubmenu))},dependencies:[D.NgIf,E.wG],encapsulation:2,changeDetection:0}),Xe})(),bt=(()=>{class Xe extends ie{}return Xe.\u0275fac=function(){let Pe;return function(mt){return(Pe||(Pe=e.\u0275\u0275getInheritedFactory(Xe)))(mt||Xe)}}(),Xe.\u0275dir=e.\u0275\u0275defineDirective({type:Xe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[e.\u0275\u0275InheritDefinitionFeature]}),Xe})(),$e=(()=>{class Xe{}return Xe.\u0275fac=function(Ve){return new(Ve||Xe)},Xe.\u0275mod=e.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=e.\u0275\u0275defineInjector({providers:[Zt],imports:[D.CommonModule,E.BQ,E.si,V.U8,dt.ZD,E.BQ]}),Xe})()},27686:(oe,x,i)=>{"use strict";i.d(x,{cl:()=>D,gf:()=>A});var e=i(36895),n=i(94650),a=i(3238),t=i(99818),l=i(85208),h=i(47462),s=i(98739),d=i(18455),p=i(24363);function u(P,B){if(1&P&&(n.\u0275\u0275elementStart(0,"mat-option",19),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&P){const V=B.$implicit;n.\u0275\u0275property("value",V),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",V," ")}}function g(P,B){if(1&P){const V=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"mat-form-field",16)(1,"mat-select",17),n.\u0275\u0275listener("selectionChange",function(re){n.\u0275\u0275restoreView(V);const Q=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(Q._changePageSize(re.value))}),n.\u0275\u0275template(2,u,2,2,"mat-option",18),n.\u0275\u0275elementEnd()()}if(2&P){const V=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("appearance",V._formFieldAppearance)("color",V.color),n.\u0275\u0275advance(1),n.\u0275\u0275property("value",V.pageSize)("disabled",V.disabled)("panelClass",V.selectConfig.panelClass||"")("disableOptionCentering",V.selectConfig.disableOptionCentering)("aria-label",V._intl.itemsPerPageLabel),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",V._displayedPageSizeOptions)}}function v(P,B){if(1&P&&(n.\u0275\u0275elementStart(0,"div",20),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&P){const V=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(V.pageSize)}}function y(P,B){if(1&P&&(n.\u0275\u0275elementStart(0,"div",12)(1,"div",13),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(3,g,3,8,"mat-form-field",14),n.\u0275\u0275template(4,v,2,1,"div",15),n.\u0275\u0275elementEnd()),2&P){const V=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",V._intl.itemsPerPageLabel," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",V._displayedPageSizeOptions.length>1),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",V._displayedPageSizeOptions.length<=1)}}function b(P,B){if(1&P){const V=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",21),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(V);const re=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(re.firstPage())}),n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(1,"svg",7),n.\u0275\u0275element(2,"path",22),n.\u0275\u0275elementEnd()()}if(2&P){const V=n.\u0275\u0275nextContext();n.\u0275\u0275property("matTooltip",V._intl.firstPageLabel)("matTooltipDisabled",V._previousButtonsDisabled())("matTooltipPosition","above")("disabled",V._previousButtonsDisabled()),n.\u0275\u0275attribute("aria-label",V._intl.firstPageLabel)}}function S(P,B){if(1&P){const V=n.\u0275\u0275getCurrentView();n.\u0275\u0275namespaceSVG(),n.\u0275\u0275namespaceHTML(),n.\u0275\u0275elementStart(0,"button",23),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(V);const re=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(re.lastPage())}),n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(1,"svg",7),n.\u0275\u0275element(2,"path",24),n.\u0275\u0275elementEnd()()}if(2&P){const V=n.\u0275\u0275nextContext();n.\u0275\u0275property("matTooltip",V._intl.lastPageLabel)("matTooltipDisabled",V._nextButtonsDisabled())("matTooltipPosition","above")("disabled",V._nextButtonsDisabled()),n.\u0275\u0275attribute("aria-label",V._intl.lastPageLabel)}}const E=new n.InjectionToken("MAT_LEGACY_PAGINATOR_DEFAULT_OPTIONS");let D=(()=>{class P extends s.n7{constructor(V,X,re){super(V,X,re),re&&null!=re.formFieldAppearance&&(this._formFieldAppearance=re.formFieldAppearance)}}return P.\u0275fac=function(V){return new(V||P)(n.\u0275\u0275directiveInject(s.ye),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(E,8))},P.\u0275cmp=n.\u0275\u0275defineComponent({type:P,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.\u0275\u0275InheritDefinitionFeature],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(V,X){1&V&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275template(2,y,5,3,"div",2),n.\u0275\u0275elementStart(3,"div",3)(4,"div",4),n.\u0275\u0275text(5),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(6,b,3,5,"button",5),n.\u0275\u0275elementStart(7,"button",6),n.\u0275\u0275listener("click",function(){return X.previousPage()}),n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(8,"svg",7),n.\u0275\u0275element(9,"path",8),n.\u0275\u0275elementEnd()(),n.\u0275\u0275namespaceHTML(),n.\u0275\u0275elementStart(10,"button",9),n.\u0275\u0275listener("click",function(){return X.nextPage()}),n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(11,"svg",7),n.\u0275\u0275element(12,"path",10),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(13,S,3,5,"button",11),n.\u0275\u0275elementEnd()()()),2&V&&(n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",!X.hidePageSize),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate1(" ",X._intl.getRangeLabel(X.pageIndex,X.pageSize,X.length)," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",X.showFirstLastButtons),n.\u0275\u0275advance(1),n.\u0275\u0275property("matTooltip",X._intl.previousPageLabel)("matTooltipDisabled",X._previousButtonsDisabled())("matTooltipPosition","above")("disabled",X._previousButtonsDisabled()),n.\u0275\u0275attribute("aria-label",X._intl.previousPageLabel),n.\u0275\u0275advance(3),n.\u0275\u0275property("matTooltip",X._intl.nextPageLabel)("matTooltipDisabled",X._nextButtonsDisabled())("matTooltipPosition","above")("disabled",X._nextButtonsDisabled()),n.\u0275\u0275attribute("aria-label",X._intl.nextPageLabel),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",X.showFirstLastButtons))},dependencies:[e.NgForOf,e.NgIf,t.eB,d.v_,l.x8,p.CK,h.Kd],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),P})(),A=(()=>{class P{}return P.\u0275fac=function(V){return new(V||P)},P.\u0275mod=n.\u0275\u0275defineNgModule({type:P}),P.\u0275inj=n.\u0275\u0275defineInjector({providers:[s.ik],imports:[e.CommonModule,t.yu,l.uw,h.AA,a.BQ]}),P})()},1256:(oe,x,i)=>{"use strict";i.d(x,{eI:()=>A,jc:()=>B});var e=i(94650),n=i(36895),a=i(3238),t=i(21281);const l=new e.InjectionToken("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),h=new e.InjectionToken("mat-progress-bar-location",{providedIn:"root",factory:function s(){const V=(0,e.inject)(n.DOCUMENT),X=V?V.location:null;return{getPathname:()=>X?X.pathname+X.search:""}}});var v=i(50727),y=i(54968),b=i(39300);const S=["primaryValueBar"],E=(0,a.pj)(class{constructor(V){this._elementRef=V}},"primary");let D=0,A=(()=>{class V extends E{constructor(re,Q,ae,K,k,$){super(re),this._ngZone=Q,this._animationMode=ae,this._changeDetectorRef=$,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.EventEmitter,this._animationEndSubscription=v.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+D++;const j=K?K.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${j}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ae,k&&(k.color&&(this.color=this.defaultColor=k.color),this.mode=k.mode||this.mode)}get value(){return this._value}set value(re){this._value=P((0,t.su)(re)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(re){this._bufferValue=P(re||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const re=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,y.R)(re,"transitionend").pipe((0,b.h)(Q=>Q.target===re)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return V.\u0275fac=function(re){return new(re||V)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8),e.\u0275\u0275directiveInject(h,8),e.\u0275\u0275directiveInject(l,8),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},V.\u0275cmp=e.\u0275\u0275defineComponent({type:V,selectors:[["mat-progress-bar"]],viewQuery:function(re,Q){if(1&re&&e.\u0275\u0275viewQuery(S,5),2&re){let ae;e.\u0275\u0275queryRefresh(ae=e.\u0275\u0275loadQuery())&&(Q._primaryValueBar=ae.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(re,Q){2&re&&(e.\u0275\u0275attribute("aria-valuenow","indeterminate"===Q.mode||"query"===Q.mode?null:Q.value)("mode",Q.mode),e.\u0275\u0275classProp("_mat-animation-noopable",Q._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.\u0275\u0275InheritDefinitionFeature],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(re,Q){1&re&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(1,"svg",1)(2,"defs")(3,"pattern",2),e.\u0275\u0275element(4,"circle",3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(5,"rect",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275namespaceHTML(),e.\u0275\u0275element(6,"div",5)(7,"div",6,7)(9,"div",8),e.\u0275\u0275elementEnd()),2&re&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("id",Q.progressbarId),e.\u0275\u0275advance(2),e.\u0275\u0275attribute("fill",Q._rectangleFillValue),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngStyle",Q._bufferTransform()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngStyle",Q._primaryTransform()))},dependencies:[n.NgStyle],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),V})();function P(V,X=0,re=100){return Math.max(X,Math.min(re,V))}let B=(()=>{class V{}return V.\u0275fac=function(re){return new(re||V)},V.\u0275mod=e.\u0275\u0275defineNgModule({type:V}),V.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.CommonModule,a.BQ,a.BQ]}),V})()},84888:(oe,x,i)=>{"use strict";i.d(x,{UK:()=>E,sN:()=>S});var e=i(21281),n=i(83353),a=i(67376),t=i(36895),l=i(94650),h=i(3238),s=i(51572),d=i(50727);function p(A,P){if(1&A&&(l.\u0275\u0275namespaceSVG(),l.\u0275\u0275element(0,"circle",4)),2&A){const B=l.\u0275\u0275nextContext(),V=l.\u0275\u0275reference(1);l.\u0275\u0275styleProp("animation-name","mat-progress-spinner-stroke-rotate-"+B._spinnerAnimationLabel)("stroke-dashoffset",B._getStrokeDashOffset(),"px")("stroke-dasharray",B._getStrokeCircumference(),"px")("stroke-width",B._getCircleStrokeWidth(),"%")("transform-origin",B._getCircleTransformOrigin(V)),l.\u0275\u0275attribute("r",B._getCircleRadius())}}function u(A,P){if(1&A&&(l.\u0275\u0275namespaceSVG(),l.\u0275\u0275element(0,"circle",4)),2&A){const B=l.\u0275\u0275nextContext(),V=l.\u0275\u0275reference(1);l.\u0275\u0275styleProp("stroke-dashoffset",B._getStrokeDashOffset(),"px")("stroke-dasharray",B._getStrokeCircumference(),"px")("stroke-width",B._getCircleStrokeWidth(),"%")("transform-origin",B._getCircleTransformOrigin(V)),l.\u0275\u0275attribute("r",B._getCircleRadius())}}const y=(0,h.pj)(class{constructor(A){this._elementRef=A}},"primary");class S extends y{get diameter(){return this._diameter}set diameter(P){this._diameter=(0,e.su)(P),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(P){this._strokeWidth=(0,e.su)(P)}get value(){return"determinate"===this.mode?this._value:0}set value(P){this._value=Math.max(0,Math.min(100,(0,e.su)(P)))}constructor(P,B,V,X,re,Q,ae,K){super(P),this._document=V,this._diameter=100,this._value=0,this._resizeSubscription=d.w0.EMPTY,this.mode="determinate";const k=S._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),k.has(V.head)||k.set(V.head,new Set([100])),this._noopAnimations="NoopAnimations"===X&&!!re&&!re._forceAnimations,"mat-spinner"===P.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),re&&(re.color&&(this.color=this.defaultColor=re.color),re.diameter&&(this.diameter=re.diameter),re.strokeWidth&&(this.strokeWidth=re.strokeWidth)),B.isBrowser&&B.SAFARI&&ae&&Q&&K&&(this._resizeSubscription=ae.change(150).subscribe(()=>{"indeterminate"===this.mode&&K.run(()=>Q.markForCheck())}))}ngOnInit(){const P=this._elementRef.nativeElement;this._styleRoot=(0,n.kV)(P)||this._document.head,this._attachStyleNode(),P.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const P=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${P} ${P}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(P){const B=50*(P.currentScale??1);return`${B}% ${B}%`}_attachStyleNode(){const P=this._styleRoot,B=this._diameter,V=S._diameters;let X=V.get(P);if(!X||!X.has(B)){const re=this._document.createElement("style");re.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),re.textContent=this._getAnimationText(),P.appendChild(re),X||(X=new Set,V.set(P,X)),X.add(B)}}_getAnimationText(){const P=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*P).replace(/END_VALUE/g,""+.2*P).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}S._diameters=new WeakMap,S.\u0275fac=function(P){return new(P||S)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(n.t4),l.\u0275\u0275directiveInject(t.DOCUMENT,8),l.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8),l.\u0275\u0275directiveInject(s.oG),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(a.rL),l.\u0275\u0275directiveInject(l.NgZone))},S.\u0275cmp=l.\u0275\u0275defineComponent({type:S,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(P,B){2&P&&(l.\u0275\u0275attribute("aria-valuemin","determinate"===B.mode?0:null)("aria-valuemax","determinate"===B.mode?100:null)("aria-valuenow","determinate"===B.mode?B.value:null)("mode",B.mode),l.\u0275\u0275styleProp("width",B.diameter,"px")("height",B.diameter,"px"),l.\u0275\u0275classProp("_mat-animation-noopable",B._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[l.\u0275\u0275InheritDefinitionFeature],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(P,B){1&P&&(l.\u0275\u0275namespaceSVG(),l.\u0275\u0275elementStart(0,"svg",0,1),l.\u0275\u0275template(2,p,1,11,"circle",2),l.\u0275\u0275template(3,u,1,9,"circle",3),l.\u0275\u0275elementEnd()),2&P&&(l.\u0275\u0275styleProp("width",B.diameter,"px")("height",B.diameter,"px"),l.\u0275\u0275property("ngSwitch","indeterminate"===B.mode),l.\u0275\u0275attribute("viewBox",B._getViewBox()),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngSwitchCase",!0),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngSwitchCase",!1))},dependencies:[t.NgSwitch,t.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let E=(()=>{class A{}return A.\u0275fac=function(B){return new(B||A)},A.\u0275mod=l.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=l.\u0275\u0275defineInjector({imports:[h.BQ,t.CommonModule,h.BQ]}),A})()},44454:(oe,x,i)=>{"use strict";i.d(x,{vy:()=>K,OY:()=>ae,Xo:()=>k});var e=i(94650),n=i(3238),a=i(12687),t=i(95017),l=i(24006),h=i(21281);const s=["input"];let p=0;class u{constructor(j,R){this.source=j,this.value=R}}const v=new e.InjectionToken("MatRadioGroup"),y=new e.InjectionToken("mat-radio-default-options",{providedIn:"root",factory:function b(){return{color:"accent"}}});let S=(()=>{class ${get name(){return this._name}set name(R){this._name=R,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(R){this._labelPosition="before"===R?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(R){this._value!==R&&(this._value=R,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(R){this._selected=R,this.value=R?R.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(R){this._disabled=(0,h.Ig)(R),this._markRadiosForCheck()}get required(){return this._required}set required(R){this._required=(0,h.Ig)(R),this._markRadiosForCheck()}constructor(R){this._changeDetector=R,this._value=null,this._name="mat-radio-group-"+p++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.EventEmitter}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(R=>{R.name=this.name,R._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(U=>{U.checked=this.value===U.value,U.checked&&(this._selected=U)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new u(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(R=>R._markForCheck())}writeValue(R){this.value=R,this._changeDetector.markForCheck()}registerOnChange(R){this._controlValueAccessorChangeFn=R}registerOnTouched(R){this.onTouched=R}setDisabledState(R){this.disabled=R,this._changeDetector.markForCheck()}}return $.\u0275fac=function(R){return new(R||$)(e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},$.\u0275dir=e.\u0275\u0275defineDirective({type:$,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),$})();class E{constructor(j){this._elementRef=j}}const D=(0,n.Kr)((0,n.sb)(E));let A=(()=>{class $ extends D{get checked(){return this._checked}set checked(R){const U=(0,h.Ig)(R);this._checked!==U&&(this._checked=U,U&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!U&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),U&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(R){this._value!==R&&(this._value=R,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===R),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(R){this._labelPosition=R}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(R){this._setDisabled((0,h.Ig)(R))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(R){this._required=(0,h.Ig)(R)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(R){this._color=R}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(R,U,le,T,H,N,pe,de){super(U),this._changeDetector=le,this._focusMonitor=T,this._radioDispatcher=H,this._providerOverride=pe,this._uniqueId="mat-radio-"+ ++p,this.id=this._uniqueId,this.change=new e.EventEmitter,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=R,this._noopAnimations="NoopAnimations"===N,de&&(this.tabIndex=(0,h.su)(de,0))}focus(R,U){U?this._focusMonitor.focusVia(this._inputElement,U,R):this._inputElement.nativeElement.focus(R)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((R,U)=>{R!==this.id&&U===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(R=>{!R&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new u(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(R){R.stopPropagation()}_onInputInteraction(R){if(R.stopPropagation(),!this.checked&&!this.disabled){const U=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),U&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(R){this._onInputInteraction(R),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(R){this._disabled!==R&&(this._disabled=R,this._changeDetector.markForCheck())}_updateTabIndex(){const R=this.radioGroup;let U;if(U=R&&R.selected&&!this.disabled?R.selected===this?this.tabIndex:-1:this.tabIndex,U!==this._previousTabIndex){const le=this._inputElement?.nativeElement;le&&(le.setAttribute("tabindex",U+""),this._previousTabIndex=U)}}}return $.\u0275fac=function(R){e.\u0275\u0275invalidFactory()},$.\u0275dir=e.\u0275\u0275defineDirective({type:$,viewQuery:function(R,U){if(1&R&&e.\u0275\u0275viewQuery(s,5),2&R){let le;e.\u0275\u0275queryRefresh(le=e.\u0275\u0275loadQuery())&&(U._inputElement=le.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.\u0275\u0275InheritDefinitionFeature]}),$})();const X=function($){return{enterDuration:$}},re=["*"],Q={provide:l.JU,useExisting:(0,e.forwardRef)(()=>ae),multi:!0};let ae=(()=>{class $ extends S{}return $.\u0275fac=function(){let j;return function(U){return(j||(j=e.\u0275\u0275getInheritedFactory($)))(U||$)}}(),$.\u0275dir=e.\u0275\u0275defineDirective({type:$,selectors:[["mat-radio-group"]],contentQueries:function(R,U,le){if(1&R&&e.\u0275\u0275contentQuery(le,K,5),2&R){let T;e.\u0275\u0275queryRefresh(T=e.\u0275\u0275loadQuery())&&(U._radios=T)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e.\u0275\u0275ProvidersFeature([Q,{provide:v,useExisting:$}]),e.\u0275\u0275InheritDefinitionFeature]}),$})(),K=(()=>{class $ extends A{constructor(R,U,le,T,H,N,pe,de){super(R,U,le,T,H,N,pe,de)}}return $.\u0275fac=function(R){return new(R||$)(e.\u0275\u0275directiveInject(v,8),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(a.tE),e.\u0275\u0275directiveInject(t.A8),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8),e.\u0275\u0275directiveInject(y,8),e.\u0275\u0275injectAttribute("tabindex"))},$.\u0275cmp=e.\u0275\u0275defineComponent({type:$,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(R,U){1&R&&e.\u0275\u0275listener("focus",function(){return U._inputElement.nativeElement.focus()}),2&R&&(e.\u0275\u0275attribute("tabindex",null)("id",U.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.\u0275\u0275classProp("mat-radio-checked",U.checked)("mat-radio-disabled",U.disabled)("_mat-animation-noopable",U._noopAnimations)("mat-primary","primary"===U.color)("mat-accent","accent"===U.color)("mat-warn","warn"===U.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:re,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(R,U){if(1&R&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"label",0,1)(2,"span",2),e.\u0275\u0275element(3,"span",3)(4,"span",4),e.\u0275\u0275elementStart(5,"input",5,6),e.\u0275\u0275listener("change",function(T){return U._onInputInteraction(T)})("click",function(T){return U._onInputClick(T)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"span",7),e.\u0275\u0275element(8,"span",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"span",9)(10,"span",10),e.\u0275\u0275text(11,"\xa0"),e.\u0275\u0275elementEnd(),e.\u0275\u0275projection(12),e.\u0275\u0275elementEnd()()),2&R){const le=e.\u0275\u0275reference(1);e.\u0275\u0275attribute("for",U.inputId),e.\u0275\u0275advance(5),e.\u0275\u0275property("id",U.inputId)("checked",U.checked)("disabled",U.disabled)("required",U.required),e.\u0275\u0275attribute("name",U.name)("value",U.value)("aria-label",U.ariaLabel)("aria-labelledby",U.ariaLabelledby)("aria-describedby",U.ariaDescribedby),e.\u0275\u0275advance(2),e.\u0275\u0275property("matRippleTrigger",le)("matRippleDisabled",U._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.\u0275\u0275pureFunction1(17,X,U._noopAnimations?0:150)),e.\u0275\u0275advance(2),e.\u0275\u0275classProp("mat-radio-label-before","before"==U.labelPosition)}},dependencies:[n.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),$})(),k=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275mod=e.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.si,n.BQ,n.BQ]}),$})()},85208:(oe,x,i)=>{"use strict";i.d(x,{Cb:()=>$,uw:()=>R,x8:()=>j});var e=i(98184),n=i(36895),a=i(94650),t=i(3238),l=i(24363),h=i(59549),s=i(18455),d=i(67376),p=i(84385),u=i(82722),g=i(95698),v=i(37340);function y(U,le){if(1&U&&(a.\u0275\u0275elementStart(0,"span",8),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&U){const T=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(T.placeholder)}}function b(U,le){if(1&U&&(a.\u0275\u0275elementStart(0,"span",12),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&U){const T=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(T.triggerValue)}}function S(U,le){1&U&&a.\u0275\u0275projection(0,0,["*ngSwitchCase","true"])}function E(U,le){if(1&U&&(a.\u0275\u0275elementStart(0,"span",9),a.\u0275\u0275template(1,b,2,1,"span",10),a.\u0275\u0275template(2,S,1,0,"ng-content",11),a.\u0275\u0275elementEnd()),2&U){const T=a.\u0275\u0275nextContext();a.\u0275\u0275property("ngSwitch",!!T.customTrigger),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngSwitchCase",!0)}}function D(U,le){if(1&U){const T=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",13)(1,"div",14,15),a.\u0275\u0275listener("@transformPanel.done",function(N){a.\u0275\u0275restoreView(T);const pe=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(pe._panelDoneAnimatingStream.next(N.toState))})("keydown",function(N){a.\u0275\u0275restoreView(T);const pe=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(pe._handleKeydown(N))}),a.\u0275\u0275projection(3,1),a.\u0275\u0275elementEnd()()}if(2&U){const T=a.\u0275\u0275nextContext();a.\u0275\u0275property("@transformPanelWrap",void 0),a.\u0275\u0275advance(1),a.\u0275\u0275classMapInterpolate1("mat-select-panel ",T._getPanelTheme(),""),a.\u0275\u0275styleProp("transform-origin",T._transformOrigin)("font-size",T._triggerFontSize,"px"),a.\u0275\u0275property("ngClass",T.panelClass)("@transformPanel",T.multiple?"showing-multiple":"showing"),a.\u0275\u0275attribute("id",T.id+"-panel")("aria-multiselectable",T.multiple)("aria-label",T.ariaLabel||null)("aria-labelledby",T._getPanelAriaLabelledby())}}const A=[[["mat-select-trigger"]],"*"],P=["mat-select-trigger","*"],B={transformPanelWrap:(0,v.X$)("transformPanelWrap",[(0,v.eR)("* => void",(0,v.IO)("@transformPanel",[(0,v.pV)()],{optional:!0}))]),transformPanel:(0,v.X$)("transformPanel",[(0,v.SB)("void",(0,v.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,v.SB)("showing",(0,v.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,v.SB)("showing-multiple",(0,v.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,v.eR)("void => *",(0,v.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,v.eR)("* => void",(0,v.jt)("100ms 25ms linear",(0,v.oB)({opacity:0})))])},V=256;class k{constructor(le,T){this.source=le,this.value=T}}let $=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275dir=a.\u0275\u0275defineDirective({type:U,selectors:[["mat-select-trigger"]],features:[a.\u0275\u0275ProvidersFeature([{provide:p.LZ,useExisting:U}])]}),U})(),j=(()=>{class U extends p.hC{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(T,H,N){const pe=this._getItemHeight();return Math.min(Math.max(0,pe*T-H+pe/2),N)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,u.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(T){const H=(0,t.CB)(T,this.options,this.optionGroups),N=this._getItemHeight();this.panel.nativeElement.scrollTop=0===T&&1===H?0:(0,t.jH)((T+H)*N,N,this.panel.nativeElement.scrollTop,V)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(T){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(T)}_getChangeEvent(T){return new k(this,T)}_getOverlayMinWidth(){return this._triggerRect?.width}_calculateOverlayOffsetX(){const T=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),H=this._viewportRuler.getViewportSize(),N=this._isRtl(),pe=this.multiple?56:32;let de;if(this.multiple)de=40;else if(this.disableOptionCentering)de=16;else{let se=this._selectionModel.selected[0]||this.options.first;de=se&&se.group?32:16}N||(de*=-1);const me=0-(T.left+de-(N?pe:0)),q=T.right+de-H.width+(N?0:pe);me>0?de+=me+8:q>0&&(de-=q+8),this._overlayDir.offsetX=Math.round(de),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(T,H,N){const pe=this._getItemHeight(),de=(pe-this._triggerRect.height)/2,me=Math.floor(V/pe);let q;return this.disableOptionCentering?0:(q=0===this._scrollTop?T*pe:this._scrollTop===N?(T-(this._getItemCount()-me))*pe+(pe-(this._getItemCount()*pe-V)%pe):H-pe/2,Math.round(-1*q-de))}_checkOverlayWithinViewport(T){const H=this._getItemHeight(),N=this._viewportRuler.getViewportSize(),pe=this._triggerRect.top-8,de=N.height-this._triggerRect.bottom-8,me=Math.abs(this._offsetY),se=Math.min(this._getItemCount()*H,V)-me-this._triggerRect.height;se>de?this._adjustPanelUp(se,de):me>pe?this._adjustPanelDown(me,pe,T):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(T,H){const N=Math.round(T-H);this._scrollTop-=N,this._offsetY-=N,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(T,H,N){const pe=Math.round(T-H);if(this._scrollTop+=pe,this._offsetY+=pe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=N)return this._scrollTop=N,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const T=this._getItemHeight(),H=this._getItemCount(),N=Math.min(H*T,V),de=H*T-N;let me;me=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),me+=(0,t.CB)(me,this.options,this.optionGroups);const q=N/2;this._scrollTop=this._calculateOverlayScroll(me,q,de),this._offsetY=this._calculateOverlayOffsetY(me,q,de),this._checkOverlayWithinViewport(de)}_getOriginBasedOnOption(){const T=this._getItemHeight(),H=(T-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-H+T/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return U.\u0275fac=function(){let le;return function(H){return(le||(le=a.\u0275\u0275getInheritedFactory(U)))(H||U)}}(),U.\u0275cmp=a.\u0275\u0275defineComponent({type:U,selectors:[["mat-select"]],contentQueries:function(T,H,N){if(1&T&&(a.\u0275\u0275contentQuery(N,p.LZ,5),a.\u0275\u0275contentQuery(N,l.CK,5),a.\u0275\u0275contentQuery(N,t.K7,5)),2&T){let pe;a.\u0275\u0275queryRefresh(pe=a.\u0275\u0275loadQuery())&&(H.customTrigger=pe.first),a.\u0275\u0275queryRefresh(pe=a.\u0275\u0275loadQuery())&&(H.options=pe),a.\u0275\u0275queryRefresh(pe=a.\u0275\u0275loadQuery())&&(H.optionGroups=pe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(T,H){1&T&&a.\u0275\u0275listener("keydown",function(pe){return H._handleKeydown(pe)})("focus",function(){return H._onFocus()})("blur",function(){return H._onBlur()}),2&T&&(a.\u0275\u0275attribute("id",H.id)("tabindex",H.tabIndex)("aria-controls",H.panelOpen?H.id+"-panel":null)("aria-expanded",H.panelOpen)("aria-label",H.ariaLabel||null)("aria-required",H.required.toString())("aria-disabled",H.disabled.toString())("aria-invalid",H.errorState)("aria-activedescendant",H._getAriaActiveDescendant()),a.\u0275\u0275classProp("mat-select-disabled",H.disabled)("mat-select-invalid",H.errorState)("mat-select-required",H.required)("mat-select-empty",H.empty)("mat-select-multiple",H.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[a.\u0275\u0275ProvidersFeature([{provide:h.Eo,useExisting:U},{provide:t.HF,useExisting:U}]),a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:P,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(T,H){if(1&T&&(a.\u0275\u0275projectionDef(A),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("click",function(){return H.toggle()}),a.\u0275\u0275elementStart(3,"div",2),a.\u0275\u0275template(4,y,2,1,"span",3),a.\u0275\u0275template(5,E,3,2,"span",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(6,"div",5),a.\u0275\u0275element(7,"div",6),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(8,D,4,14,"ng-template",7),a.\u0275\u0275listener("backdropClick",function(){return H.close()})("attach",function(){return H._onAttached()})("detach",function(){return H.close()})),2&T){const N=a.\u0275\u0275reference(1);a.\u0275\u0275attribute("aria-owns",H.panelOpen?H.id+"-panel":null),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngSwitch",H.empty),a.\u0275\u0275attribute("id",H._valueId),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!1),a.\u0275\u0275advance(3),a.\u0275\u0275property("cdkConnectedOverlayPanelClass",H._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",H._scrollStrategy)("cdkConnectedOverlayOrigin",N)("cdkConnectedOverlayOpen",H.panelOpen)("cdkConnectedOverlayPositions",H._positions)("cdkConnectedOverlayMinWidth",H._getOverlayMinWidth())("cdkConnectedOverlayOffsetY",H._offsetY)}},dependencies:[n.NgClass,n.NgSwitch,n.NgSwitchCase,n.NgSwitchDefault,e.pI,e.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[B.transformPanelWrap,B.transformPanel]},changeDetection:0}),U})(),R=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=a.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=a.\u0275\u0275defineInjector({providers:[p.Ep],imports:[n.CommonModule,e.U8,l.Uc,t.BQ,d.ZD,s.wp,l.Uc,t.BQ]}),U})()},47732:(oe,x,i)=>{"use strict";i.d(x,{iZ:()=>K,Wd:()=>k});var e=i(49643),n=i(94650),a=i(3238),t=i(12687),l=i(24006),h=i(21281);let v=0;const y=(0,a.sb)((0,a.pj)((0,a.Kr)((0,a.Id)(class{constructor($){this._elementRef=$}}))));let b=(()=>{class $ extends y{get required(){return this._required}set required(R){this._required=(0,h.Ig)(R)}get checked(){return this._checked}set checked(R){this._checked=(0,h.Ig)(R),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(R,U,le,T,H,N,pe){super(R),this._focusMonitor=U,this._changeDetectorRef=le,this.defaults=H,this._onChange=de=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new n.EventEmitter,this.toggleChange=new n.EventEmitter,this.tabIndex=parseInt(T)||0,this.color=this.defaultColor=H.color||"accent",this._noopAnimations="NoopAnimations"===N,this.id=this._uniqueId=`${pe}${++v}`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(R=>{"keyboard"===R||"program"===R?(this._focused=!0,this._changeDetectorRef.markForCheck()):R||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(R){this.checked=!!R}registerOnChange(R){this._onChange=R}registerOnTouched(R){this._onTouched=R}setDisabledState(R){this.disabled=R,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return $.\u0275fac=function(R){n.\u0275\u0275invalidFactory()},$.\u0275dir=n.\u0275\u0275defineDirective({type:$,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[n.\u0275\u0275InheritDefinitionFeature]}),$})(),A=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275mod=n.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=n.\u0275\u0275defineInjector({}),$})();const B=["input"],V=function($){return{enterDuration:$}},X=["*"],re=new n.InjectionToken("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),Q={provide:l.JU,useExisting:(0,n.forwardRef)(()=>K),multi:!0};class ae{constructor(j,R){this.source=j,this.checked=R}}let K=(()=>{class $ extends b{constructor(R,U,le,T,H,N){super(R,U,le,T,H,N,"mat-slide-toggle-")}_createChangeEvent(R){return new ae(this,R)}_onChangeEvent(R){R.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(R){R.stopPropagation()}focus(R,U){U?this._focusMonitor.focusVia(this._inputElement,U,R):this._inputElement.nativeElement.focus(R)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return $.\u0275fac=function(R){return new(R||$)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(t.tE),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(re),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},$.\u0275cmp=n.\u0275\u0275defineComponent({type:$,selectors:[["mat-slide-toggle"]],viewQuery:function(R,U){if(1&R&&n.\u0275\u0275viewQuery(B,5),2&R){let le;n.\u0275\u0275queryRefresh(le=n.\u0275\u0275loadQuery())&&(U._inputElement=le.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(R,U){2&R&&(n.\u0275\u0275hostProperty("id",U.id),n.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),n.\u0275\u0275classProp("mat-checked",U.checked)("mat-disabled",U.disabled)("mat-slide-toggle-label-before","before"==U.labelPosition)("_mat-animation-noopable",U._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[n.\u0275\u0275ProvidersFeature([Q]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:X,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(R,U){if(1&R&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.\u0275\u0275listener("change",function(T){return U._onChangeEvent(T)})("click",function(T){return U._onInputClick(T)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"span",5),n.\u0275\u0275element(6,"span",6),n.\u0275\u0275elementStart(7,"span",7),n.\u0275\u0275element(8,"span",8),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(9,"span",9,10),n.\u0275\u0275listener("cdkObserveContent",function(){return U._onLabelTextChange()}),n.\u0275\u0275elementStart(11,"span",11),n.\u0275\u0275text(12,"\xa0"),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(13),n.\u0275\u0275elementEnd()()),2&R){const le=n.\u0275\u0275reference(1),T=n.\u0275\u0275reference(10);n.\u0275\u0275attribute("for",U.inputId),n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-slide-toggle-bar-no-side-margin",!T.textContent||!T.textContent.trim()),n.\u0275\u0275advance(1),n.\u0275\u0275property("id",U.inputId)("required",U.required)("tabIndex",U.tabIndex)("checked",U.checked)("disabled",U.disabled),n.\u0275\u0275attribute("name",U.name)("aria-checked",U.checked)("aria-label",U.ariaLabel)("aria-labelledby",U.ariaLabelledby)("aria-describedby",U.ariaDescribedby),n.\u0275\u0275advance(4),n.\u0275\u0275property("matRippleTrigger",le)("matRippleDisabled",U.disableRipple||U.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.\u0275\u0275pureFunction1(18,V,U._noopAnimations?0:150))}},dependencies:[a.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),$})(),k=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275mod=n.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=n.\u0275\u0275defineInjector({imports:[A,a.si,a.BQ,e.Q8,A,a.BQ]}),$})()},76066:(oe,x,i)=>{"use strict";i.d(x,{ST:()=>B,XF:()=>K});var e=i(36895),n=i(94650),a=i(3238),t=i(12687),l=i(40445),h=i(21281),s=i(29521),d=i(24006),p=i(83353),u=i(50727);const g=["sliderWrapper"],v=(0,p.i$)({passive:!1}),D={provide:d.JU,useExisting:(0,n.forwardRef)(()=>B),multi:!0};class A{}const P=(0,a.sb)((0,a.pj)((0,a.Id)(class{constructor(k){this._elementRef=k}}),"accent"));let B=(()=>{class k extends P{get invert(){return this._invert}set invert(j){this._invert=(0,h.Ig)(j)}get max(){return this._max}set max(j){this._max=(0,h.su)(j,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(j){this._min=(0,h.su)(j,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(j){this._step=(0,h.su)(j,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(j){this._thumbLabel=(0,h.Ig)(j)}get tickInterval(){return this._tickInterval}set tickInterval(j){this._tickInterval="auto"===j?"auto":"number"==typeof j||"string"==typeof j?(0,h.su)(j,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(j){if(j!==this._value){let R=(0,h.su)(j,0);this._roundToDecimal&&R!==this.min&&R!==this.max&&(R=parseFloat(R.toFixed(this._roundToDecimal))),this._value=R,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(j){this._vertical=(0,h.Ig)(j)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(j){this._focusHostElement(j)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const R=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${R})`}}_getTrackFillStyles(){const j=this.percent,U=this.vertical?`1, ${j}, 1`:`${j}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${U})`,display:0===j?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let j=100*this._tickIntervalPercent,H={backgroundSize:this.vertical?`2px ${j}%`:`${j}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${j/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const N=this._shouldInvertAxis();let pe;pe=this.vertical?N?"Bottom":"Top":N?"Right":"Left",H[`padding${pe}`]=`${this._getThumbGap()}px`}return H}_getThumbContainerStyles(){const j=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?j:!j)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const j=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?j:!j}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}constructor(j,R,U,le,T,H,N,pe){super(j),this._focusMonitor=R,this._changeDetectorRef=U,this._dir=le,this._ngZone=H,this._animationMode=pe,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new n.EventEmitter,this.input=new n.EventEmitter,this.valueChange=new n.EventEmitter,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=u.w0.EMPTY,this._pointerDown=de=>{this.disabled||this._isSliding||!X(de)&&0!==de.button||this._ngZone.run(()=>{this._touchId=X(de)?function ae(k,$){for(let j=0;j<k.touches.length;j++){const R=k.touches[j].target;if($===R||$.contains(R))return k.touches[j].identifier}}(de,this._elementRef.nativeElement):void 0;const me=re(de,this._touchId);if(me){const q=this.value;this._isSliding="pointer",this._lastPointerEvent=de,this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(de),this._focusHostElement(),this._updateValueFromPosition(me),this._valueOnSlideStart=q,de.cancelable&&de.preventDefault(),q!=this.value&&this._emitInputEvent()}})},this._pointerMove=de=>{if("pointer"===this._isSliding){const me=re(de,this._touchId);if(me){de.cancelable&&de.preventDefault();const q=this.value;this._lastPointerEvent=de,this._updateValueFromPosition(me),q!=this.value&&this._emitInputEvent()}}},this._pointerUp=de=>{"pointer"===this._isSliding&&(!X(de)||"number"!=typeof this._touchId||Q(de.changedTouches,this._touchId))&&(de.cancelable&&de.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=N,this.tabIndex=parseInt(T)||0,H.runOutsideAngular(()=>{const de=j.nativeElement;de.addEventListener("mousedown",this._pointerDown,v),de.addEventListener("touchstart",this._pointerDown,v)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(j=>{this._isActive=!!j&&"keyboard"!==j,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const j=this._elementRef.nativeElement;j.removeEventListener("mousedown",this._pointerDown,v),j.removeEventListener("touchstart",this._pointerDown,v),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(j){if(this.disabled||(0,s.Vb)(j)||this._isSliding&&"keyboard"!==this._isSliding)return;const R=this.value;switch(j.keyCode){case s.Ku:this._increment(10);break;case s.VM:this._increment(-10);break;case s.uR:this.value=this.max;break;case s.Sd:this.value=this.min;break;case s.oh:this._increment("rtl"==this._getDirection()?1:-1);break;case s.LH:this._increment(1);break;case s.SV:this._increment("rtl"==this._getDirection()?-1:1);break;case s.JH:this._increment(-1);break;default:return}R!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",j.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(j){const R=this._document,U=X(j),T=U?"touchend":"mouseup";R.addEventListener(U?"touchmove":"mousemove",this._pointerMove,v),R.addEventListener(T,this._pointerUp,v),U&&R.addEventListener("touchcancel",this._pointerUp,v);const H=this._getWindow();typeof H<"u"&&H&&H.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const j=this._document;j.removeEventListener("mousemove",this._pointerMove,v),j.removeEventListener("mouseup",this._pointerUp,v),j.removeEventListener("touchmove",this._pointerMove,v),j.removeEventListener("touchend",this._pointerUp,v),j.removeEventListener("touchcancel",this._pointerUp,v);const R=this._getWindow();typeof R<"u"&&R&&R.removeEventListener("blur",this._windowBlur)}_increment(j){const R=this._clamp(this.value||0,this.min,this.max);this.value=this._clamp(R+this.step*j,this.min,this.max)}_updateValueFromPosition(j){if(!this._sliderDimensions)return;let T=this._clamp(((this.vertical?j.y:j.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(T=1-T),0===T)this.value=this.min;else if(1===T)this.value=this.max;else{const H=this._calculateValue(T),N=Math.round((H-this.min)/this.step)*this.step+this.min;this.value=this._clamp(N,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(!this.tickInterval||!this._sliderDimensions)return;let j;if("auto"==this.tickInterval){let R=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width;j=Math.ceil(30/(R*this.step/(this.max-this.min)))*this.step/R}else j=this.tickInterval*this.step/(this.max-this.min);this._tickIntervalPercent=V(j)?j:0}_createChangeEvent(j=this.value){let R=new A;return R.source=this,R.value=j,R}_calculatePercentage(j){const R=((j||0)-this.min)/(this.max-this.min);return V(R)?R:0}_calculateValue(j){return this.min+j*(this.max-this.min)}_clamp(j,R=0,U=1){return Math.max(R,Math.min(j,U))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(j){this._elementRef.nativeElement.focus(j)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(j){this.value=j}registerOnChange(j){this._controlValueAccessorChangeFn=j}registerOnTouched(j){this.onTouched=j}setDisabledState(j){this.disabled=j}}return k.\u0275fac=function(j){return new(j||k)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(t.tE),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(l.Is,8),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(e.DOCUMENT),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},k.\u0275cmp=n.\u0275\u0275defineComponent({type:k,selectors:[["mat-slider"]],viewQuery:function(j,R){if(1&j&&n.\u0275\u0275viewQuery(g,5),2&j){let U;n.\u0275\u0275queryRefresh(U=n.\u0275\u0275loadQuery())&&(R._sliderWrapper=U.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(j,R){1&j&&n.\u0275\u0275listener("focus",function(){return R._onFocus()})("blur",function(){return R._onBlur()})("keydown",function(le){return R._onKeydown(le)})("keyup",function(){return R._onKeyup()})("mouseenter",function(){return R._onMouseenter()})("selectstart",function(le){return le.preventDefault()}),2&j&&(n.\u0275\u0275hostProperty("tabIndex",R.tabIndex),n.\u0275\u0275attribute("aria-disabled",R.disabled)("aria-valuemax",R.max)("aria-valuemin",R.min)("aria-valuenow",R.value)("aria-valuetext",null==R.valueText?R.displayValue:R.valueText)("aria-orientation",R.vertical?"vertical":"horizontal"),n.\u0275\u0275classProp("mat-slider-disabled",R.disabled)("mat-slider-has-ticks",R.tickInterval)("mat-slider-horizontal",!R.vertical)("mat-slider-axis-inverted",R._shouldInvertAxis())("mat-slider-invert-mouse-coords",R._shouldInvertMouseCoords())("mat-slider-sliding",R._isSliding)("mat-slider-thumb-label-showing",R.thumbLabel)("mat-slider-vertical",R.vertical)("mat-slider-min-value",R._isMinValue())("mat-slider-hide-last-tick",R.disabled||R._isMinValue()&&R._getThumbGap()&&R._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===R._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[n.\u0275\u0275ProvidersFeature([D]),n.\u0275\u0275InheritDefinitionFeature],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(j,R){1&j&&(n.\u0275\u0275elementStart(0,"div",0,1)(2,"div",2),n.\u0275\u0275element(3,"div",3)(4,"div",4),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"div",5),n.\u0275\u0275element(6,"div",6),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(7,"div",7),n.\u0275\u0275element(8,"div",8)(9,"div",9),n.\u0275\u0275elementStart(10,"div",10)(11,"span",11),n.\u0275\u0275text(12),n.\u0275\u0275elementEnd()()()()),2&j&&(n.\u0275\u0275advance(3),n.\u0275\u0275property("ngStyle",R._getTrackBackgroundStyles()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngStyle",R._getTrackFillStyles()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngStyle",R._getTicksContainerStyles()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngStyle",R._getTicksStyles()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngStyle",R._getThumbContainerStyles()),n.\u0275\u0275advance(5),n.\u0275\u0275textInterpolate(R.displayValue))},dependencies:[e.NgStyle],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid rgba(0,0,0,0);border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}'],encapsulation:2,changeDetection:0}),k})();function V(k){return!isNaN(k)&&isFinite(k)}function X(k){return"t"===k.type[0]}function re(k,$){let j;return j=X(k)?"number"==typeof $?Q(k.touches,$)||Q(k.changedTouches,$):k.touches[0]||k.changedTouches[0]:k,j?{x:j.clientX,y:j.clientY}:void 0}function Q(k,$){for(let j=0;j<k.length;j++)if(k[j].identifier===$)return k[j]}let K=(()=>{class k{}return k.\u0275fac=function(j){return new(j||k)},k.\u0275mod=n.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=n.\u0275\u0275defineInjector({imports:[e.CommonModule,a.BQ,a.BQ]}),k})()},92972:(oe,x,i)=>{"use strict";i.d(x,{pl:()=>S,y:()=>b});var e=i(98184),n=i(84080),a=i(36895),t=i(94650),l=i(3238),h=i(99818),s=i(17009),d=i(12687),p=i(62289);function u(E,D){if(1&E){const A=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",2)(1,"button",3),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(A);const B=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(B.action())}),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()()}if(2&E){const A=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(A.data.action)}}function g(E,D){}let v=(()=>{class E{constructor(A,P){this.snackBarRef=A,this.data=P}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return E.\u0275fac=function(A){return new(A||E)(t.\u0275\u0275directiveInject(s.OX),t.\u0275\u0275directiveInject(s.qD))},E.\u0275cmp=t.\u0275\u0275defineComponent({type:E,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(A,P){1&A&&(t.\u0275\u0275elementStart(0,"span",0),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(2,u,3,1,"div",1)),2&A&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(P.data.message),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",P.hasAction))},dependencies:[a.NgIf,h.eB],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),E})(),y=(()=>{class E extends s.xi{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return E.\u0275fac=function(){let D;return function(P){return(D||(D=t.\u0275\u0275getInheritedFactory(E)))(P||E)}}(),E.\u0275cmp=t.\u0275\u0275defineComponent({type:E,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(A,P){1&A&&t.\u0275\u0275syntheticHostListener("@state.done",function(V){return P.onAnimationEnd(V)}),2&A&&t.\u0275\u0275syntheticHostProperty("@state",P._animationState)},features:[t.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(A,P){1&A&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275template(1,g,0,0,"ng-template",1),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(2,"div")),2&A&&(t.\u0275\u0275advance(2),t.\u0275\u0275attribute("aria-live",P._live)("role",P._role)("id",P._liveElementId))},dependencies:[n.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[s.Et.snackBarState]}}),E})(),b=(()=>{class E{}return E.\u0275fac=function(A){return new(A||E)},E.\u0275mod=t.\u0275\u0275defineNgModule({type:E}),E.\u0275inj=t.\u0275\u0275defineInjector({imports:[e.U8,n.eL,a.CommonModule,h.yu,l.BQ,l.BQ]}),E})(),S=(()=>{class E extends s.rA{constructor(A,P,B,V,X,re){super(A,P,B,V,X,re),this.simpleSnackBarComponent=v,this.snackBarContainerComponent=y,this.handsetCssClass="mat-snack-bar-handset"}}return E.\u0275fac=function(A){return new(A||E)(t.\u0275\u0275inject(e.aV),t.\u0275\u0275inject(d.Kd),t.\u0275\u0275inject(t.Injector),t.\u0275\u0275inject(p.Yg),t.\u0275\u0275inject(E,12),t.\u0275\u0275inject(s.Ve))},E.\u0275prov=t.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac,providedIn:b}),E})()},73768:(oe,x,i)=>{"use strict";i.d(x,{ML:()=>Vn,R3:()=>Rn,t3:()=>ir,i5:()=>Ln,Uq:()=>ji,II:()=>gi,rl:()=>Ft,L7:()=>dr,wO:()=>Wn,fg:()=>En,S4:()=>Le,Zw:()=>$i,Al:()=>dn,ty:()=>Nt,r4:()=>on,U5:()=>Kn});var e=i(94650),n=i(40445),a=i(21281),t=i(95017),l=i(83353),h=i(67376),s=i(36895),d=i(77579),p=i(88996),u=i(61135),g=i(45191),v=i(39646),y=i(82722),b=i(95698);const S=[[["caption"]],[["colgroup"],["col"]]],E=["caption","colgroup, col"];function P(he){return class extends he{get sticky(){return this._sticky}set sticky(et){const tt=this._sticky;this._sticky=(0,a.Ig)(et),this._hasStickyChanged=tt!==this._sticky}hasStickyChanged(){const et=this._hasStickyChanged;return this._hasStickyChanged=!1,et}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...et){super(...et),this._sticky=!1,this._hasStickyChanged=!1}}}const B=new e.InjectionToken("CDK_TABLE");let X=(()=>{class he{constructor(tt){this.template=tt}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.TemplateRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","cdkCellDef",""]]}),he})(),re=(()=>{class he{constructor(tt){this.template=tt}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.TemplateRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","cdkHeaderCellDef",""]]}),he})(),Q=(()=>{class he{constructor(tt){this.template=tt}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.TemplateRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","cdkFooterCellDef",""]]}),he})();class ae{}const K=P(ae);let k=(()=>{class he extends K{get name(){return this._name}set name(tt){this._setNameInput(tt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(tt){const nn=this._stickyEnd;this._stickyEnd=(0,a.Ig)(tt),this._hasStickyChanged=nn!==this._stickyEnd}constructor(tt){super(),this._table=tt,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(tt){tt&&(this._name=tt,this.cssClassFriendlyName=tt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(B,8))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","cdkColumnDef",""]],contentQueries:function(tt,nn,zn){if(1&tt&&(e.\u0275\u0275contentQuery(zn,X,5),e.\u0275\u0275contentQuery(zn,re,5),e.\u0275\u0275contentQuery(zn,Q,5)),2&tt){let jt;e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(nn.cell=jt.first),e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(nn.headerCell=jt.first),e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(nn.footerCell=jt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature]}),he})();class ${constructor(et,tt){tt.nativeElement.classList.add(...et._columnCssClassName)}}let j=(()=>{class he extends ${constructor(tt,nn){super(tt,nn)}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(k),e.\u0275\u0275directiveInject(e.ElementRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.\u0275\u0275InheritDefinitionFeature]}),he})(),R=(()=>{class he extends ${constructor(tt,nn){if(super(tt,nn),1===tt._table?._elementRef.nativeElement.nodeType){const zn=tt._table._elementRef.nativeElement.getAttribute("role");nn.nativeElement.setAttribute("role","grid"===zn||"treegrid"===zn?"gridcell":"cell")}}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(k),e.\u0275\u0275directiveInject(e.ElementRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.\u0275\u0275InheritDefinitionFeature]}),he})(),U=(()=>{class he extends ${constructor(tt,nn){if(super(tt,nn),1===tt._table?._elementRef.nativeElement.nodeType){const zn=tt._table._elementRef.nativeElement.getAttribute("role");nn.nativeElement.setAttribute("role","grid"===zn||"treegrid"===zn?"gridcell":"cell")}}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(k),e.\u0275\u0275directiveInject(e.ElementRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.\u0275\u0275InheritDefinitionFeature]}),he})();class le{constructor(){this.tasks=[],this.endTasks=[]}}const T=new e.InjectionToken("_COALESCED_STYLE_SCHEDULER");let H=(()=>{class he{constructor(tt){this._ngZone=tt,this._currentSchedule=null,this._destroyed=new d.x}schedule(tt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(tt)}scheduleEnd(tt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(tt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new le,this._getScheduleObservable().pipe((0,y.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const tt=this._currentSchedule;this._currentSchedule=new le;for(const nn of tt.tasks)nn();for(const nn of tt.endTasks)nn()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,p.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,b.q)(1))}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275inject(e.NgZone))},he.\u0275prov=e.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})(),pe=(()=>{class he{constructor(tt,nn){this.template=tt,this._differs=nn}ngOnChanges(tt){if(!this._columnsDiffer){const nn=tt.columns&&tt.columns.currentValue||[];this._columnsDiffer=this._differs.find(nn).create(),this._columnsDiffer.diff(nn)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(tt){return this instanceof q?tt.headerCell.template:this instanceof Ee?tt.footerCell.template:tt.cell.template}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(e.IterableDiffers))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,features:[e.\u0275\u0275NgOnChangesFeature]}),he})();class de extends pe{}const me=P(de);let q=(()=>{class he extends me{constructor(tt,nn,zn){super(tt,nn),this._table=zn}ngOnChanges(tt){super.ngOnChanges(tt)}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(e.IterableDiffers),e.\u0275\u0275directiveInject(B,8))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]}),he})();class se extends pe{}const ve=P(se);let Ee=(()=>{class he extends ve{constructor(tt,nn,zn){super(tt,nn),this._table=zn}ngOnChanges(tt){super.ngOnChanges(tt)}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(e.IterableDiffers),e.\u0275\u0275directiveInject(B,8))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]}),he})(),Ye=(()=>{class he extends pe{constructor(tt,nn,zn){super(tt,nn),this._table=zn}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.TemplateRef),e.\u0275\u0275directiveInject(e.IterableDiffers),e.\u0275\u0275directiveInject(B,8))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.\u0275\u0275InheritDefinitionFeature]}),he})(),wt=(()=>{class he{constructor(tt){this._viewContainer=tt,he.mostRecentCellOutlet=this}ngOnDestroy(){he.mostRecentCellOutlet===this&&(he.mostRecentCellOutlet=null)}}return he.mostRecentCellOutlet=null,he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.ViewContainerRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","cdkCellOutlet",""]]}),he})(),Wt=(()=>{class he{}return he.\u0275fac=function(tt){return new(tt||he)},he.\u0275cmp=e.\u0275\u0275defineComponent({type:he,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(tt,nn){1&tt&&e.\u0275\u0275elementContainer(0,0)},dependencies:[wt],encapsulation:2}),he})(),Ut=(()=>{class he{}return he.\u0275fac=function(tt){return new(tt||he)},he.\u0275cmp=e.\u0275\u0275defineComponent({type:he,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(tt,nn){1&tt&&e.\u0275\u0275elementContainer(0,0)},dependencies:[wt],encapsulation:2}),he})(),nt=(()=>{class he{}return he.\u0275fac=function(tt){return new(tt||he)},he.\u0275cmp=e.\u0275\u0275defineComponent({type:he,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(tt,nn){1&tt&&e.\u0275\u0275elementContainer(0,0)},dependencies:[wt],encapsulation:2}),he})(),Zt=(()=>{class he{constructor(tt){this.templateRef=tt,this._contentClassName="cdk-no-data-row"}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.TemplateRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["ng-template","cdkNoDataRow",""]]}),he})();const Fe=["top","bottom","left","right"];class yt{constructor(et,tt,nn,zn,jt=!0,Fn=!0,jn){this._isNativeHtmlTable=et,this._stickCellCss=tt,this.direction=nn,this._coalescedStyleScheduler=zn,this._isBrowser=jt,this._needsPositionStickyOnElement=Fn,this._positionListener=jn,this._cachedCellWidths=[],this._borderCellCss={top:`${tt}-border-elem-top`,bottom:`${tt}-border-elem-bottom`,left:`${tt}-border-elem-left`,right:`${tt}-border-elem-right`}}clearStickyPositioning(et,tt){const nn=[];for(const zn of et)if(zn.nodeType===zn.ELEMENT_NODE){nn.push(zn);for(let jt=0;jt<zn.children.length;jt++)nn.push(zn.children[jt])}this._coalescedStyleScheduler.schedule(()=>{for(const zn of nn)this._removeStickyStyle(zn,tt)})}updateStickyColumns(et,tt,nn,zn=!0){if(!et.length||!this._isBrowser||!tt.some(Hi=>Hi)&&!nn.some(Hi=>Hi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const jt=et[0],Fn=jt.children.length,jn=this._getCellWidths(jt,zn),ri=this._getStickyStartColumnPositions(jn,tt),vi=this._getStickyEndColumnPositions(jn,nn),Ii=tt.lastIndexOf(!0),cr=nn.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Hi="rtl"===this.direction,Vi=Hi?"right":"left",kr=Hi?"left":"right";for(const Er of et)for(let pr=0;pr<Fn;pr++){const fo=Er.children[pr];tt[pr]&&this._addStickyStyle(fo,Vi,ri[pr],pr===Ii),nn[pr]&&this._addStickyStyle(fo,kr,vi[pr],pr===cr)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ii?[]:jn.slice(0,Ii+1).map((Er,pr)=>tt[pr]?Er:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===cr?[]:jn.slice(cr).map((Er,pr)=>nn[pr+cr]?Er:null).reverse()}))})}stickRows(et,tt,nn){if(!this._isBrowser)return;const zn="bottom"===nn?et.slice().reverse():et,jt="bottom"===nn?tt.slice().reverse():tt,Fn=[],jn=[],ri=[];for(let Ii=0,cr=0;Ii<zn.length;Ii++){if(!jt[Ii])continue;Fn[Ii]=cr;const Hi=zn[Ii];ri[Ii]=this._isNativeHtmlTable?Array.from(Hi.children):[Hi];const Vi=Hi.getBoundingClientRect().height;cr+=Vi,jn[Ii]=Vi}const vi=jt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Ii=0;Ii<zn.length;Ii++){if(!jt[Ii])continue;const cr=Fn[Ii],Hi=Ii===vi;for(const Vi of ri[Ii])this._addStickyStyle(Vi,nn,cr,Hi)}"top"===nn?this._positionListener?.stickyHeaderRowsUpdated({sizes:jn,offsets:Fn,elements:ri}):this._positionListener?.stickyFooterRowsUpdated({sizes:jn,offsets:Fn,elements:ri})})}updateStickyFooterContainer(et,tt){if(!this._isNativeHtmlTable)return;const nn=et.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{tt.some(zn=>!zn)?this._removeStickyStyle(nn,["bottom"]):this._addStickyStyle(nn,"bottom",0,!1)})}_removeStickyStyle(et,tt){for(const zn of tt)et.style[zn]="",et.classList.remove(this._borderCellCss[zn]);Fe.some(zn=>-1===tt.indexOf(zn)&&et.style[zn])?et.style.zIndex=this._getCalculatedZIndex(et):(et.style.zIndex="",this._needsPositionStickyOnElement&&(et.style.position=""),et.classList.remove(this._stickCellCss))}_addStickyStyle(et,tt,nn,zn){et.classList.add(this._stickCellCss),zn&&et.classList.add(this._borderCellCss[tt]),et.style[tt]=`${nn}px`,et.style.zIndex=this._getCalculatedZIndex(et),this._needsPositionStickyOnElement&&(et.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(et){const tt={top:100,bottom:10,left:1,right:1};let nn=0;for(const zn of Fe)et.style[zn]&&(nn+=tt[zn]);return nn?`${nn}`:""}_getCellWidths(et,tt=!0){if(!tt&&this._cachedCellWidths.length)return this._cachedCellWidths;const nn=[],zn=et.children;for(let jt=0;jt<zn.length;jt++)nn.push(zn[jt].getBoundingClientRect().width);return this._cachedCellWidths=nn,nn}_getStickyStartColumnPositions(et,tt){const nn=[];let zn=0;for(let jt=0;jt<et.length;jt++)tt[jt]&&(nn[jt]=zn,zn+=et[jt]);return nn}_getStickyEndColumnPositions(et,tt){const nn=[];let zn=0;for(let jt=et.length;jt>0;jt--)tt[jt]&&(nn[jt]=zn,zn+=et[jt]);return nn}}const xt=new e.InjectionToken("CDK_SPL");let bt=(()=>{class he{constructor(tt,nn){this.viewContainer=tt,this.elementRef=nn}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.ElementRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","rowOutlet",""]]}),he})(),At=(()=>{class he{constructor(tt,nn){this.viewContainer=tt,this.elementRef=nn}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.ElementRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","headerRowOutlet",""]]}),he})(),$e=(()=>{class he{constructor(tt,nn){this.viewContainer=tt,this.elementRef=nn}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.ElementRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","footerRowOutlet",""]]}),he})(),Xe=(()=>{class he{constructor(tt,nn){this.viewContainer=tt,this.elementRef=nn}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.ViewContainerRef),e.\u0275\u0275directiveInject(e.ElementRef))},he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","noDataRowOutlet",""]]}),he})(),mt=(()=>{class he{get trackBy(){return this._trackByFn}set trackBy(tt){this._trackByFn=tt}get dataSource(){return this._dataSource}set dataSource(tt){this._dataSource!==tt&&this._switchDataSource(tt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(tt){this._multiTemplateDataRows=(0,a.Ig)(tt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(tt){this._fixedLayout=(0,a.Ig)(tt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(tt,nn,zn,jt,Fn,jn,ri,vi,Ii,cr,Hi,Vi){this._differs=tt,this._changeDetectorRef=nn,this._elementRef=zn,this._dir=Fn,this._platform=ri,this._viewRepeater=vi,this._coalescedStyleScheduler=Ii,this._viewportRuler=cr,this._stickyPositioningListener=Hi,this._ngZone=Vi,this._onDestroy=new d.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.EventEmitter,this.viewChange=new u.X({start:0,end:Number.MAX_VALUE}),jt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=jn,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((tt,nn)=>this.trackBy?this.trackBy(nn.dataIndex,nn.data):nn),this._viewportRuler.change().pipe((0,y.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const nn=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||nn,this._forceRecalculateCellWidths=nn,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(tt=>{tt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,t.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const tt=this._dataDiffer.diff(this._renderRows);if(!tt)return this._updateNoDataRow(),void this.contentChanged.next();const nn=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(tt,nn,(zn,jt,Fn)=>this._getEmbeddedViewArgs(zn.item,Fn),zn=>zn.item.data,zn=>{1===zn.operation&&zn.context&&this._renderCellTemplateForItem(zn.record.item.rowDef,zn.context)}),this._updateRowIndexContext(),tt.forEachIdentityChange(zn=>{nn.get(zn.currentIndex).context.$implicit=zn.item.data}),this._updateNoDataRow(),this._ngZone&&e.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,b.q)(1),(0,y.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(tt){this._customColumnDefs.add(tt)}removeColumnDef(tt){this._customColumnDefs.delete(tt)}addRowDef(tt){this._customRowDefs.add(tt)}removeRowDef(tt){this._customRowDefs.delete(tt)}addHeaderRowDef(tt){this._customHeaderRowDefs.add(tt),this._headerRowDefChanged=!0}removeHeaderRowDef(tt){this._customHeaderRowDefs.delete(tt),this._headerRowDefChanged=!0}addFooterRowDef(tt){this._customFooterRowDefs.add(tt),this._footerRowDefChanged=!0}removeFooterRowDef(tt){this._customFooterRowDefs.delete(tt),this._footerRowDefChanged=!0}setNoDataRow(tt){this._customNoDataRow=tt}updateStickyHeaderRowStyles(){const tt=this._getRenderedRows(this._headerRowOutlet),zn=this._elementRef.nativeElement.querySelector("thead");zn&&(zn.style.display=tt.length?"":"none");const jt=this._headerRowDefs.map(Fn=>Fn.sticky);this._stickyStyler.clearStickyPositioning(tt,["top"]),this._stickyStyler.stickRows(tt,jt,"top"),this._headerRowDefs.forEach(Fn=>Fn.resetStickyChanged())}updateStickyFooterRowStyles(){const tt=this._getRenderedRows(this._footerRowOutlet),zn=this._elementRef.nativeElement.querySelector("tfoot");zn&&(zn.style.display=tt.length?"":"none");const jt=this._footerRowDefs.map(Fn=>Fn.sticky);this._stickyStyler.clearStickyPositioning(tt,["bottom"]),this._stickyStyler.stickRows(tt,jt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,jt),this._footerRowDefs.forEach(Fn=>Fn.resetStickyChanged())}updateStickyColumnStyles(){const tt=this._getRenderedRows(this._headerRowOutlet),nn=this._getRenderedRows(this._rowOutlet),zn=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...tt,...nn,...zn],["left","right"]),this._stickyColumnStylesNeedReset=!1),tt.forEach((jt,Fn)=>{this._addStickyColumnStyles([jt],this._headerRowDefs[Fn])}),this._rowDefs.forEach(jt=>{const Fn=[];for(let jn=0;jn<nn.length;jn++)this._renderRows[jn].rowDef===jt&&Fn.push(nn[jn]);this._addStickyColumnStyles(Fn,jt)}),zn.forEach((jt,Fn)=>{this._addStickyColumnStyles([jt],this._footerRowDefs[Fn])}),Array.from(this._columnDefsByName.values()).forEach(jt=>jt.resetStickyChanged())}_getAllRenderRows(){const tt=[],nn=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let zn=0;zn<this._data.length;zn++){let jt=this._data[zn];const Fn=this._getRenderRowsForData(jt,zn,nn.get(jt));this._cachedRenderRowsMap.has(jt)||this._cachedRenderRowsMap.set(jt,new WeakMap);for(let jn=0;jn<Fn.length;jn++){let ri=Fn[jn];const vi=this._cachedRenderRowsMap.get(ri.data);vi.has(ri.rowDef)?vi.get(ri.rowDef).push(ri):vi.set(ri.rowDef,[ri]),tt.push(ri)}}return tt}_getRenderRowsForData(tt,nn,zn){return this._getRowDefs(tt,nn).map(Fn=>{const jn=zn&&zn.has(Fn)?zn.get(Fn):[];if(jn.length){const ri=jn.shift();return ri.dataIndex=nn,ri}return{data:tt,rowDef:Fn,dataIndex:nn}})}_cacheColumnDefs(){this._columnDefsByName.clear(),It(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(nn=>{this._columnDefsByName.has(nn.name),this._columnDefsByName.set(nn.name,nn)})}_cacheRowDefs(){this._headerRowDefs=It(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=It(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=It(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const tt=this._rowDefs.filter(nn=>!nn.when);this._defaultRowDef=tt[0]}_renderUpdatedColumns(){const tt=(Fn,jn)=>Fn||!!jn.getColumnsDiff(),nn=this._rowDefs.reduce(tt,!1);nn&&this._forceRenderDataRows();const zn=this._headerRowDefs.reduce(tt,!1);zn&&this._forceRenderHeaderRows();const jt=this._footerRowDefs.reduce(tt,!1);return jt&&this._forceRenderFooterRows(),nn||zn||jt}_switchDataSource(tt){this._data=[],(0,t.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),tt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=tt}_observeRenderChanges(){if(!this.dataSource)return;let tt;(0,t.Z9)(this.dataSource)?tt=this.dataSource.connect(this):(0,g.b)(this.dataSource)?tt=this.dataSource:Array.isArray(this.dataSource)&&(tt=(0,v.of)(this.dataSource)),this._renderChangeSubscription=tt.pipe((0,y.R)(this._onDestroy)).subscribe(nn=>{this._data=nn||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((tt,nn)=>this._renderRow(this._headerRowOutlet,tt,nn)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((tt,nn)=>this._renderRow(this._footerRowOutlet,tt,nn)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(tt,nn){const zn=Array.from(nn.columns||[]).map(jn=>this._columnDefsByName.get(jn)),jt=zn.map(jn=>jn.sticky),Fn=zn.map(jn=>jn.stickyEnd);this._stickyStyler.updateStickyColumns(tt,jt,Fn,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(tt){const nn=[];for(let zn=0;zn<tt.viewContainer.length;zn++){const jt=tt.viewContainer.get(zn);nn.push(jt.rootNodes[0])}return nn}_getRowDefs(tt,nn){if(1==this._rowDefs.length)return[this._rowDefs[0]];let zn=[];if(this.multiTemplateDataRows)zn=this._rowDefs.filter(jt=>!jt.when||jt.when(nn,tt));else{let jt=this._rowDefs.find(Fn=>Fn.when&&Fn.when(nn,tt))||this._defaultRowDef;jt&&zn.push(jt)}return zn}_getEmbeddedViewArgs(tt,nn){return{templateRef:tt.rowDef.template,context:{$implicit:tt.data},index:nn}}_renderRow(tt,nn,zn,jt={}){const Fn=tt.viewContainer.createEmbeddedView(nn.template,jt,zn);return this._renderCellTemplateForItem(nn,jt),Fn}_renderCellTemplateForItem(tt,nn){for(let zn of this._getCellTemplates(tt))wt.mostRecentCellOutlet&&wt.mostRecentCellOutlet._viewContainer.createEmbeddedView(zn,nn);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const tt=this._rowOutlet.viewContainer;for(let nn=0,zn=tt.length;nn<zn;nn++){const Fn=tt.get(nn).context;Fn.count=zn,Fn.first=0===nn,Fn.last=nn===zn-1,Fn.even=nn%2==0,Fn.odd=!Fn.even,this.multiTemplateDataRows?(Fn.dataIndex=this._renderRows[nn].dataIndex,Fn.renderIndex=nn):Fn.index=this._renderRows[nn].dataIndex}}_getCellTemplates(tt){return tt&&tt.columns?Array.from(tt.columns,nn=>{const zn=this._columnDefsByName.get(nn);return tt.extractCellTemplate(zn)}):[]}_applyNativeTableSections(){const tt=this._document.createDocumentFragment(),nn=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const zn of nn){const jt=this._document.createElement(zn.tag);jt.setAttribute("role","rowgroup");for(const Fn of zn.outlets)jt.appendChild(Fn.elementRef.nativeElement);tt.appendChild(jt)}this._elementRef.nativeElement.appendChild(tt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const tt=(nn,zn)=>nn||zn.hasStickyChanged();this._headerRowDefs.reduce(tt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(tt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(tt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new yt(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,v.of)()).pipe((0,y.R)(this._onDestroy)).subscribe(nn=>{this._stickyStyler.direction=nn,this.updateStickyColumnStyles()})}_getOwnDefs(tt){return tt.filter(nn=>!nn._table||nn._table===this)}_updateNoDataRow(){const tt=this._customNoDataRow||this._noDataRow;if(!tt)return;const nn=0===this._rowOutlet.viewContainer.length;if(nn===this._isShowingNoDataRow)return;const zn=this._noDataRowOutlet.viewContainer;if(nn){const jt=zn.createEmbeddedView(tt.templateRef),Fn=jt.rootNodes[0];1===jt.rootNodes.length&&Fn?.nodeType===this._document.ELEMENT_NODE&&(Fn.setAttribute("role","row"),Fn.classList.add(tt._contentClassName))}else zn.clear();this._isShowingNoDataRow=nn}}return he.\u0275fac=function(tt){return new(tt||he)(e.\u0275\u0275directiveInject(e.IterableDiffers),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275injectAttribute("role"),e.\u0275\u0275directiveInject(n.Is,8),e.\u0275\u0275directiveInject(s.DOCUMENT),e.\u0275\u0275directiveInject(l.t4),e.\u0275\u0275directiveInject(t.k),e.\u0275\u0275directiveInject(T),e.\u0275\u0275directiveInject(h.rL),e.\u0275\u0275directiveInject(xt,12),e.\u0275\u0275directiveInject(e.NgZone,8))},he.\u0275cmp=e.\u0275\u0275defineComponent({type:he,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(tt,nn,zn){if(1&tt&&(e.\u0275\u0275contentQuery(zn,Zt,5),e.\u0275\u0275contentQuery(zn,k,5),e.\u0275\u0275contentQuery(zn,Ye,5),e.\u0275\u0275contentQuery(zn,q,5),e.\u0275\u0275contentQuery(zn,Ee,5)),2&tt){let jt;e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(nn._noDataRow=jt.first),e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(nn._contentColumnDefs=jt),e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(nn._contentRowDefs=jt),e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(nn._contentHeaderRowDefs=jt),e.\u0275\u0275queryRefresh(jt=e.\u0275\u0275loadQuery())&&(nn._contentFooterRowDefs=jt)}},viewQuery:function(tt,nn){if(1&tt&&(e.\u0275\u0275viewQuery(bt,7),e.\u0275\u0275viewQuery(At,7),e.\u0275\u0275viewQuery($e,7),e.\u0275\u0275viewQuery(Xe,7)),2&tt){let zn;e.\u0275\u0275queryRefresh(zn=e.\u0275\u0275loadQuery())&&(nn._rowOutlet=zn.first),e.\u0275\u0275queryRefresh(zn=e.\u0275\u0275loadQuery())&&(nn._headerRowOutlet=zn.first),e.\u0275\u0275queryRefresh(zn=e.\u0275\u0275loadQuery())&&(nn._footerRowOutlet=zn.first),e.\u0275\u0275queryRefresh(zn=e.\u0275\u0275loadQuery())&&(nn._noDataRowOutlet=zn.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(tt,nn){2&tt&&e.\u0275\u0275classProp("cdk-table-fixed-layout",nn.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e.\u0275\u0275ProvidersFeature([{provide:B,useExisting:he},{provide:t.k,useClass:t.yy},{provide:T,useClass:H},{provide:xt,useValue:null}])],ngContentSelectors:E,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(tt,nn){1&tt&&(e.\u0275\u0275projectionDef(S),e.\u0275\u0275projection(0),e.\u0275\u0275projection(1,1),e.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},dependencies:[bt,At,$e,Xe],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),he})();function It(he,et){return he.concat(Array.from(et))}let Jt=(()=>{class he{}return he.\u0275fac=function(tt){return new(tt||he)},he.\u0275mod=e.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=e.\u0275\u0275defineInjector({imports:[h.Cl]}),he})();var ke=i(3238),Ae=i(56451),ze=i(39841),pt=i(54004);class On extends t.o2{get data(){return this._data.value}set data(et){et=Array.isArray(et)?et:[],this._data.next(et),this._renderChangesSubscription||this._filterData(et)}get filter(){return this._filter.value}set filter(et){this._filter.next(et),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(et){this._sort=et,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(et){this._paginator=et,this._updateChangeSubscription()}constructor(et=[]){super(),this._renderData=new u.X([]),this._filter=new u.X(""),this._internalPageChanges=new d.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(tt,nn)=>{const zn=tt[nn];if((0,a.t6)(zn)){const jt=Number(zn);return jt<9007199254740991?jt:zn}return zn},this.sortData=(tt,nn)=>{const zn=nn.active,jt=nn.direction;return zn&&""!=jt?tt.sort((Fn,jn)=>{let ri=this.sortingDataAccessor(Fn,zn),vi=this.sortingDataAccessor(jn,zn);const Ii=typeof ri,cr=typeof vi;Ii!==cr&&("number"===Ii&&(ri+=""),"number"===cr&&(vi+=""));let Hi=0;return null!=ri&&null!=vi?ri>vi?Hi=1:ri<vi&&(Hi=-1):null!=ri?Hi=1:null!=vi&&(Hi=-1),Hi*("asc"==jt?1:-1)}):tt},this.filterPredicate=(tt,nn)=>{const zn=Object.keys(tt).reduce((Fn,jn)=>Fn+tt[jn]+"\u25ec","").toLowerCase(),jt=nn.trim().toLowerCase();return-1!=zn.indexOf(jt)},this._data=new u.X(et),this._updateChangeSubscription()}_updateChangeSubscription(){const et=this._sort?(0,Ae.T)(this._sort.sortChange,this._sort.initialized):(0,v.of)(null),tt=this._paginator?(0,Ae.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,v.of)(null),zn=(0,ze.a)([this._data,this._filter]).pipe((0,pt.U)(([jn])=>this._filterData(jn))),jt=(0,ze.a)([zn,et]).pipe((0,pt.U)(([jn])=>this._orderData(jn))),Fn=(0,ze.a)([jt,tt]).pipe((0,pt.U)(([jn])=>this._pageData(jn)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Fn.subscribe(jn=>this._renderData.next(jn))}_filterData(et){return this.filteredData=null==this.filter||""===this.filter?et:et.filter(tt=>this.filterPredicate(tt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(et){return this.sort?this.sortData(et.slice(),this.sort):et}_pageData(et){if(!this.paginator)return et;const tt=this.paginator.pageIndex*this.paginator.pageSize;return et.slice(tt,tt+this.paginator.pageSize)}_updatePaginator(et){Promise.resolve().then(()=>{const tt=this.paginator;if(tt&&(tt.length=et,tt.pageIndex>0)){const nn=Math.ceil(tt.length/tt.pageSize)-1||0,zn=Math.min(tt.pageIndex,nn);zn!==tt.pageIndex&&(tt.pageIndex=zn,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}const Ti=[[["caption"]],[["colgroup"],["col"]]],Si=["caption","colgroup, col"];let Nt=(()=>{class he extends mt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275cmp=e.\u0275\u0275defineComponent({type:he,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(tt,nn){2&tt&&e.\u0275\u0275classProp("mat-table-fixed-layout",nn.fixedLayout)},exportAs:["matTable"],features:[e.\u0275\u0275ProvidersFeature([{provide:t.k,useClass:t.yy},{provide:mt,useExisting:he},{provide:B,useExisting:he},{provide:T,useClass:H},{provide:xt,useValue:null}]),e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Si,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(tt,nn){1&tt&&(e.\u0275\u0275projectionDef(Ti),e.\u0275\u0275projection(0),e.\u0275\u0275projection(1,1),e.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},dependencies:[bt,At,$e,Xe],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),he})(),Rn=(()=>{class he extends X{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","matCellDef",""]],features:[e.\u0275\u0275ProvidersFeature([{provide:X,useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature]}),he})(),Wn=(()=>{class he extends re{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","matHeaderCellDef",""]],features:[e.\u0275\u0275ProvidersFeature([{provide:re,useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature]}),he})(),ji=(()=>{class he extends Q{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","matFooterCellDef",""]],features:[e.\u0275\u0275ProvidersFeature([{provide:Q,useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature]}),he})(),ir=(()=>{class he extends k{get name(){return this._name}set name(tt){this._setNameInput(tt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e.\u0275\u0275ProvidersFeature([{provide:k,useExisting:he},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature]}),he})(),dr=(()=>{class he extends j{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.\u0275\u0275InheritDefinitionFeature]}),he})(),Ln=(()=>{class he extends R{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.\u0275\u0275InheritDefinitionFeature]}),he})(),Vn=(()=>{class he extends U{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.\u0275\u0275InheritDefinitionFeature]}),he})(),Le=(()=>{class he extends q{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e.\u0275\u0275ProvidersFeature([{provide:q,useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature]}),he})(),Ft=(()=>{class he extends Ee{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e.\u0275\u0275ProvidersFeature([{provide:Ee,useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature]}),he})(),dn=(()=>{class he extends Ye{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275dir=e.\u0275\u0275defineDirective({type:he,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e.\u0275\u0275ProvidersFeature([{provide:Ye,useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature]}),he})(),En=(()=>{class he extends Wt{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275cmp=e.\u0275\u0275defineComponent({type:he,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e.\u0275\u0275ProvidersFeature([{provide:Wt,useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(tt,nn){1&tt&&e.\u0275\u0275elementContainer(0,0)},dependencies:[wt],encapsulation:2}),he})(),gi=(()=>{class he extends Ut{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275cmp=e.\u0275\u0275defineComponent({type:he,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e.\u0275\u0275ProvidersFeature([{provide:Ut,useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(tt,nn){1&tt&&e.\u0275\u0275elementContainer(0,0)},dependencies:[wt],encapsulation:2}),he})(),$i=(()=>{class he extends nt{}return he.\u0275fac=function(){let et;return function(nn){return(et||(et=e.\u0275\u0275getInheritedFactory(he)))(nn||he)}}(),he.\u0275cmp=e.\u0275\u0275defineComponent({type:he,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e.\u0275\u0275ProvidersFeature([{provide:nt,useExisting:he}]),e.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(tt,nn){1&tt&&e.\u0275\u0275elementContainer(0,0)},dependencies:[wt],encapsulation:2}),he})(),Kn=(()=>{class he{}return he.\u0275fac=function(tt){return new(tt||he)},he.\u0275mod=e.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=e.\u0275\u0275defineInjector({imports:[Jt,ke.BQ,ke.BQ]}),he})();class on extends On{}},83026:(oe,x,i)=>{"use strict";i.d(x,{R7:()=>ji,SK:()=>Le,gz:()=>$i,Nn:()=>Mr});var e=i(12687),n=i(49643),a=i(84080),t=i(36895),l=i(94650),h=i(3238),s=i(95698),d=i(40445),p=i(50727),u=i(77579),g=i(54968),v=i(39646),y=i(56451),b=i(60515),S=i(69751),E=i(82805),D=i(68675),A=i(71884),P=i(82722),B=i(63900),V=i(35684),X=i(39300),re=i(37340),Q=i(21281),ae=i(67376),K=i(83353),k=i(29521);function $(ti,Kn){}const j=function(ti){return{animationDuration:ti}},R=function(ti,Kn){return{value:ti,params:Kn}},nt={translateTab:(0,re.X$)("translateTab",[(0,re.SB)("center, void, left-origin-center, right-origin-center",(0,re.oB)({transform:"none"})),(0,re.SB)("left",(0,re.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,re.SB)("right",(0,re.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,re.eR)("* => left, * => right, left => center, right => center",(0,re.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,re.eR)("void => left-origin-center",[(0,re.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,re.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,re.eR)("void => right-origin-center",[(0,re.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,re.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Zt=(()=>{class ti extends a.Pl{constructor(on,he,et,tt){super(on,he,tt),this._host=et,this._centeringSub=p.w0.EMPTY,this._leavingSub=p.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,D.O)(this._host._isCenterPosition(this._host._position))).subscribe(on=>{on&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ComponentFactoryResolver),l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275directiveInject((0,l.forwardRef)(()=>yt)),l.\u0275\u0275directiveInject(t.DOCUMENT))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,selectors:[["","matTabBodyHost",""]],features:[l.\u0275\u0275InheritDefinitionFeature]}),ti})(),Fe=(()=>{class ti{set position(on){this._positionIndex=on,this._computePositionAnimationState()}constructor(on,he,et){this._elementRef=on,this._dir=he,this._dirChangeSubscription=p.w0.EMPTY,this._translateTabComplete=new u.x,this._onCentering=new l.EventEmitter,this._beforeCentering=new l.EventEmitter,this._afterLeavingCenter=new l.EventEmitter,this._onCentered=new l.EventEmitter(!0),this.animationDuration="500ms",this.preserveContent=!1,he&&(this._dirChangeSubscription=he.change.subscribe(tt=>{this._computePositionAnimationState(tt),et.markForCheck()})),this._translateTabComplete.pipe((0,A.x)((tt,nn)=>tt.fromState===nn.fromState&&tt.toState===nn.toState)).subscribe(tt=>{this._isCenterPosition(tt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(tt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(on){const he=this._isCenterPosition(on.toState);this._beforeCentering.emit(he),he&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(on){return"center"==on||"left-origin-center"==on||"right-origin-center"==on}_computePositionAnimationState(on=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==on?"left":"right":this._positionIndex>0?"ltr"==on?"right":"left":"center"}_computePositionFromOrigin(on){const he=this._getLayoutDirection();return"ltr"==he&&on<=0||"rtl"==he&&on>0?"left-origin-center":"right-origin-center"}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(d.Is,8),l.\u0275\u0275directiveInject(l.ChangeDetectorRef))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),ti})(),yt=(()=>{class ti extends Fe{constructor(on,he,et){super(on,he,et)}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(d.Is,8),l.\u0275\u0275directiveInject(l.ChangeDetectorRef))},ti.\u0275cmp=l.\u0275\u0275defineComponent({type:ti,selectors:[["mat-tab-body"]],viewQuery:function(on,he){if(1&on&&l.\u0275\u0275viewQuery(a.Pl,5),2&on){let et;l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._portalHost=et.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[l.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(on,he){1&on&&(l.\u0275\u0275elementStart(0,"div",0,1),l.\u0275\u0275listener("@translateTab.start",function(tt){return he._onTranslateTabStarted(tt)})("@translateTab.done",function(tt){return he._translateTabComplete.next(tt)}),l.\u0275\u0275template(2,$,0,0,"ng-template",2),l.\u0275\u0275elementEnd()),2&on&&l.\u0275\u0275property("@translateTab",l.\u0275\u0275pureFunction2(3,R,he._position,l.\u0275\u0275pureFunction1(1,j,he.animationDuration)))},dependencies:[Zt],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[nt.translateTab]}}),ti})();const ie=new l.InjectionToken("MatTabContent"),Ie=new l.InjectionToken("MatTabLabel"),dt=new l.InjectionToken("MAT_TAB");let Mt=(()=>{class ti extends a.ig{constructor(on,he,et){super(on,he),this._closestTab=et}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.TemplateRef),l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275directiveInject(dt,8))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[l.\u0275\u0275ProvidersFeature([{provide:Ie,useExisting:ti}]),l.\u0275\u0275InheritDefinitionFeature]}),ti})();const bt=new l.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function zt(){return Kn=>({left:Kn?(Kn.offsetLeft||0)+"px":"0",width:Kn?(Kn.offsetWidth||0)+"px":"0"})}}),At=(0,h.Id)(class{});let $e=(()=>{class ti extends At{constructor(on){super(),this.elementRef=on}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,features:[l.\u0275\u0275InheritDefinitionFeature]}),ti})();const Ve=(0,h.Id)(class{}),mt=new l.InjectionToken("MAT_TAB_GROUP");let It=(()=>{class ti extends Ve{get content(){return this._contentPortal}constructor(on,he){super(),this._viewContainerRef=on,this._closestTabGroup=he,this.textLabel="",this._contentPortal=null,this._stateChanges=new u.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(on){(on.hasOwnProperty("textLabel")||on.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new a.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(on){on&&on._closestTab===this&&(this._templateLabel=on)}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275directiveInject(mt,8))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,viewQuery:function(on,he){if(1&on&&l.\u0275\u0275viewQuery(l.TemplateRef,7),2&on){let et;l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._implicitContent=et.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[l.\u0275\u0275InheritDefinitionFeature,l.\u0275\u0275NgOnChangesFeature]}),ti})();const _n=(0,K.i$)({passive:!0});let Ae=(()=>{class ti{get disablePagination(){return this._disablePagination}set disablePagination(on){this._disablePagination=(0,Q.Ig)(on)}get selectedIndex(){return this._selectedIndex}set selectedIndex(on){on=(0,Q.su)(on),this._selectedIndex!=on&&(this._selectedIndexChanged=!0,this._selectedIndex=on,this._keyManager&&this._keyManager.updateActiveItem(on))}constructor(on,he,et,tt,nn,zn,jt){this._elementRef=on,this._changeDetectorRef=he,this._viewportRuler=et,this._dir=tt,this._ngZone=nn,this._platform=zn,this._animationMode=jt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new u.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new u.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new l.EventEmitter,this.indexFocused=new l.EventEmitter,nn.runOutsideAngular(()=>{(0,g.R)(on.nativeElement,"mouseleave").pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,g.R)(this._previousPaginator.nativeElement,"touchstart",_n).pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,g.R)(this._nextPaginator.nativeElement,"touchstart",_n).pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const on=this._dir?this._dir.change:(0,v.of)("ltr"),he=this._viewportRuler.change(150),et=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,s.q)(1)).subscribe(et),(0,y.T)(on,he,this._items.changes,this._itemsResized()).pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),et()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(tt=>{this.indexFocused.emit(tt),this._setTabFocus(tt)})}_itemsResized(){return"function"!=typeof ResizeObserver?b.E:this._items.changes.pipe((0,D.O)(this._items),(0,B.w)(on=>new S.y(he=>this._ngZone.runOutsideAngular(()=>{const et=new ResizeObserver(tt=>he.next(tt));return on.forEach(tt=>et.observe(tt.elementRef.nativeElement)),()=>{et.disconnect()}}))),(0,V.T)(1),(0,X.h)(on=>on.some(he=>he.contentRect.width>0&&he.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(on){if(!(0,k.Vb)(on))switch(on.keyCode){case k.K5:case k.L_:if(this.focusIndex!==this.selectedIndex){const he=this._items.get(this.focusIndex);he&&!he.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(on))}break;default:this._keyManager.onKeydown(on)}}_onContentChanges(){const on=this._elementRef.nativeElement.textContent;on!==this._currentTextContent&&(this._currentTextContent=on||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(on){!this._isValidIndex(on)||this.focusIndex===on||!this._keyManager||this._keyManager.setActiveItem(on)}_isValidIndex(on){return!this._items||!!this._items.toArray()[on]}_setTabFocus(on){if(this._showPaginationControls&&this._scrollToLabel(on),this._items&&this._items.length){this._items.toArray()[on].focus();const he=this._tabListContainer.nativeElement;he.scrollLeft="ltr"==this._getLayoutDirection()?0:he.scrollWidth-he.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const on=this.scrollDistance,he="ltr"===this._getLayoutDirection()?-on:on;this._tabList.nativeElement.style.transform=`translateX(${Math.round(he)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(on){this._scrollTo(on)}_scrollHeader(on){return this._scrollTo(this._scrollDistance+("before"==on?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(on){this._stopInterval(),this._scrollHeader(on)}_scrollToLabel(on){if(this.disablePagination)return;const he=this._items?this._items.toArray()[on]:null;if(!he)return;const et=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:tt,offsetWidth:nn}=he.elementRef.nativeElement;let zn,jt;"ltr"==this._getLayoutDirection()?(zn=tt,jt=zn+nn):(jt=this._tabListInner.nativeElement.offsetWidth-tt,zn=jt-nn);const Fn=this.scrollDistance,jn=this.scrollDistance+et;zn<Fn?this.scrollDistance-=Fn-zn:jt>jn&&(this.scrollDistance+=Math.min(jt-jn,zn-Fn))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const on=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;on||(this.scrollDistance=0),on!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=on}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const on=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,he=on?on.elementRef.nativeElement:null;he?this._inkBar.alignToElement(he):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(on,he){he&&null!=he.button&&0!==he.button||(this._stopInterval(),(0,E.H)(650,100).pipe((0,P.R)((0,y.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:et,distance:tt}=this._scrollHeader(on);(0===tt||tt>=et)&&this._stopInterval()}))}_scrollTo(on){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const he=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(he,on)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:he,distance:this._scrollDistance}}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(ae.rL),l.\u0275\u0275directiveInject(d.Is,8),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(K.t4),l.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,inputs:{disablePagination:"disablePagination"}}),ti})(),ze=(()=>{class ti extends Ae{get disableRipple(){return this._disableRipple}set disableRipple(on){this._disableRipple=(0,Q.Ig)(on)}constructor(on,he,et,tt,nn,zn,jt){super(on,he,et,tt,nn,zn,jt),this._disableRipple=!1}_itemSelected(on){on.preventDefault()}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(ae.rL),l.\u0275\u0275directiveInject(d.Is,8),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(K.t4),l.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,inputs:{disableRipple:"disableRipple"},features:[l.\u0275\u0275InheritDefinitionFeature]}),ti})();const tn=new l.InjectionToken("MAT_TABS_CONFIG");let ot=0;const Et=(0,h.pj)((0,h.Kr)(class{constructor(ti){this._elementRef=ti}}),"primary");let z=(()=>{class ti extends Et{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(on){this._dynamicHeight=(0,Q.Ig)(on)}get selectedIndex(){return this._selectedIndex}set selectedIndex(on){this._indexToSelect=(0,Q.su)(on,null)}get animationDuration(){return this._animationDuration}set animationDuration(on){this._animationDuration=/^\d+$/.test(on+"")?on+"ms":on}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(on){this._contentTabIndex=(0,Q.su)(on,null)}get disablePagination(){return this._disablePagination}set disablePagination(on){this._disablePagination=(0,Q.Ig)(on)}get preserveContent(){return this._preserveContent}set preserveContent(on){this._preserveContent=(0,Q.Ig)(on)}get backgroundColor(){return this._backgroundColor}set backgroundColor(on){const he=this._elementRef.nativeElement.classList;he.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),on&&he.add("mat-tabs-with-background",`mat-background-${on}`),this._backgroundColor=on}constructor(on,he,et,tt){super(on),this._changeDetectorRef=he,this._animationMode=tt,this._tabs=new l.QueryList,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=p.w0.EMPTY,this._tabLabelSubscription=p.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new l.EventEmitter,this.focusChange=new l.EventEmitter,this.animationDone=new l.EventEmitter,this.selectedTabChange=new l.EventEmitter(!0),this._groupId=ot++,this.animationDuration=et&&et.animationDuration?et.animationDuration:"500ms",this.disablePagination=!(!et||null==et.disablePagination)&&et.disablePagination,this.dynamicHeight=!(!et||null==et.dynamicHeight)&&et.dynamicHeight,this.contentTabIndex=et?.contentTabIndex??null,this.preserveContent=!!et?.preserveContent}ngAfterContentChecked(){const on=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=on){const he=null==this._selectedIndex;if(!he){this.selectedTabChange.emit(this._createChangeEvent(on));const et=this._tabBodyWrapper.nativeElement;et.style.minHeight=et.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((et,tt)=>et.isActive=tt===on),he||(this.selectedIndexChange.emit(on),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((he,et)=>{he.position=et-on,null!=this._selectedIndex&&0==he.position&&!he.origin&&(he.origin=on-this._selectedIndex)}),this._selectedIndex!==on&&(this._selectedIndex=on,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const on=this._clampTabIndex(this._indexToSelect);if(on===this._selectedIndex){const he=this._tabs.toArray();let et;for(let tt=0;tt<he.length;tt++)if(he[tt].isActive){this._indexToSelect=this._selectedIndex=tt,this._lastFocusedTabIndex=null,et=he[tt];break}!et&&he[on]&&Promise.resolve().then(()=>{he[on].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(on))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,D.O)(this._allTabs)).subscribe(on=>{this._tabs.reset(on.filter(he=>he._closestTabGroup===this||!he._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(on){const he=this._tabHeader;he&&(he.focusIndex=on)}_focusChanged(on){this._lastFocusedTabIndex=on,this.focusChange.emit(this._createChangeEvent(on))}_createChangeEvent(on){const he=new ge;return he.index=on,this._tabs&&this._tabs.length&&(he.tab=this._tabs.toArray()[on]),he}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,y.T)(...this._tabs.map(on=>on._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(on){return Math.min(this._tabs.length-1,Math.max(on||0,0))}_getTabLabelId(on){return`mat-tab-label-${this._groupId}-${on}`}_getTabContentId(on){return`mat-tab-content-${this._groupId}-${on}`}_setTabBodyWrapperHeight(on){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const he=this._tabBodyWrapper.nativeElement;he.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(he.style.height=on+"px")}_removeTabBodyWrapperHeight(){const on=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=on.clientHeight,on.style.height="",this.animationDone.emit()}_handleClick(on,he,et){he.focusIndex=et,on.disabled||(this.selectedIndex=et)}_getTabIndex(on){return on===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(on,he){on&&"mouse"!==on&&"touch"!==on&&(this._tabHeader.focusIndex=he)}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(tn,8),l.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[l.\u0275\u0275InheritDefinitionFeature]}),ti})();class ge{}function ee(ti,Kn){1&ti&&l.\u0275\u0275projection(0)}const De=["*"];function Ot(ti,Kn){}const cn=function(ti){return{animationDuration:ti}},Gn=function(ti,Kn){return{value:ti,params:Kn}},_i=["tabListContainer"],Ni=["tabList"],Nn=["tabListInner"],Mn=["nextPaginator"],On=["previousPaginator"],Qn=["tabBodyWrapper"],Ti=["tabHeader"];function Si(ti,Kn){}function un(ti,Kn){if(1&ti&&l.\u0275\u0275template(0,Si,0,0,"ng-template",10),2&ti){const on=l.\u0275\u0275nextContext().$implicit;l.\u0275\u0275property("cdkPortalOutlet",on.templateLabel)}}function rn(ti,Kn){if(1&ti&&l.\u0275\u0275text(0),2&ti){const on=l.\u0275\u0275nextContext().$implicit;l.\u0275\u0275textInterpolate(on.textLabel)}}function $t(ti,Kn){if(1&ti){const on=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div",6),l.\u0275\u0275listener("click",function(){const et=l.\u0275\u0275restoreView(on),tt=et.$implicit,nn=et.index,zn=l.\u0275\u0275nextContext(),jt=l.\u0275\u0275reference(1);return l.\u0275\u0275resetView(zn._handleClick(tt,jt,nn))})("cdkFocusChange",function(et){const nn=l.\u0275\u0275restoreView(on).index,zn=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(zn._tabFocusChanged(et,nn))}),l.\u0275\u0275elementStart(1,"div",7),l.\u0275\u0275template(2,un,1,1,"ng-template",8),l.\u0275\u0275template(3,rn,1,1,"ng-template",null,9,l.\u0275\u0275templateRefExtractor),l.\u0275\u0275elementEnd()()}if(2&ti){const on=Kn.$implicit,he=Kn.index,et=l.\u0275\u0275reference(4),tt=l.\u0275\u0275nextContext();l.\u0275\u0275classProp("mat-tab-label-active",tt.selectedIndex===he),l.\u0275\u0275property("id",tt._getTabLabelId(he))("ngClass",on.labelClass)("disabled",on.disabled)("matRippleDisabled",on.disabled||tt.disableRipple),l.\u0275\u0275attribute("tabIndex",tt._getTabIndex(he))("aria-posinset",he+1)("aria-setsize",tt._tabs.length)("aria-controls",tt._getTabContentId(he))("aria-selected",tt.selectedIndex===he)("aria-label",on.ariaLabel||null)("aria-labelledby",!on.ariaLabel&&on.ariaLabelledby?on.ariaLabelledby:null),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",on.templateLabel)("ngIfElse",et)}}function Nt(ti,Kn){if(1&ti){const on=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"mat-tab-body",11),l.\u0275\u0275listener("_onCentered",function(){l.\u0275\u0275restoreView(on);const et=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(et._removeTabBodyWrapperHeight())})("_onCentering",function(et){l.\u0275\u0275restoreView(on);const tt=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(tt._setTabBodyWrapperHeight(et))}),l.\u0275\u0275elementEnd()}if(2&ti){const on=Kn.$implicit,he=Kn.index,et=l.\u0275\u0275nextContext();l.\u0275\u0275classProp("mat-tab-body-active",et.selectedIndex===he),l.\u0275\u0275property("id",et._getTabContentId(he))("ngClass",on.bodyClass)("content",on.content)("position",on.position)("origin",on.origin)("animationDuration",et.animationDuration)("preserveContent",et.preserveContent),l.\u0275\u0275attribute("tabindex",null!=et.contentTabIndex&&et.selectedIndex===he?et.contentTabIndex:null)("aria-labelledby",et._getTabLabelId(he))}}let Wn=(()=>{class ti{constructor(on,he,et,tt){this._elementRef=on,this._ngZone=he,this._inkBarPositioner=et,this._animationMode=tt}alignToElement(on){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,s.q)(1)).subscribe(()=>{const he=this._inkBarPositioner(on),et=this._elementRef.nativeElement;et.style.left=he.left,et.style.width=he.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(bt),l.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(on,he){2&on&&l.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===he._animationMode)}}),ti})(),ji=(()=>{class ti extends It{get templateLabel(){return this._templateLabel}set templateLabel(on){this._setTemplateLabelInput(on)}}return ti.\u0275fac=function(){let Kn;return function(he){return(Kn||(Kn=l.\u0275\u0275getInheritedFactory(ti)))(he||ti)}}(),ti.\u0275cmp=l.\u0275\u0275defineComponent({type:ti,selectors:[["mat-tab"]],contentQueries:function(on,he,et){if(1&on&&(l.\u0275\u0275contentQuery(et,Ie,5),l.\u0275\u0275contentQuery(et,ie,7,l.TemplateRef)),2&on){let tt;l.\u0275\u0275queryRefresh(tt=l.\u0275\u0275loadQuery())&&(he.templateLabel=tt.first),l.\u0275\u0275queryRefresh(tt=l.\u0275\u0275loadQuery())&&(he._explicitContent=tt.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[l.\u0275\u0275ProvidersFeature([{provide:dt,useExisting:ti}]),l.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:De,decls:1,vars:0,template:function(on,he){1&on&&(l.\u0275\u0275projectionDef(),l.\u0275\u0275template(0,ee,1,0,"ng-template"))},encapsulation:2}),ti})(),ir=(()=>{class ti extends Zt{constructor(on,he,et,tt){super(on,he,et,tt)}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ComponentFactoryResolver),l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275directiveInject((0,l.forwardRef)(()=>dr)),l.\u0275\u0275directiveInject(t.DOCUMENT))},ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,selectors:[["","matTabBodyHost",""]],features:[l.\u0275\u0275InheritDefinitionFeature]}),ti})(),dr=(()=>{class ti extends Fe{constructor(on,he,et){super(on,he,et)}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(d.Is,8),l.\u0275\u0275directiveInject(l.ChangeDetectorRef))},ti.\u0275cmp=l.\u0275\u0275defineComponent({type:ti,selectors:[["mat-tab-body"]],viewQuery:function(on,he){if(1&on&&l.\u0275\u0275viewQuery(a.Pl,5),2&on){let et;l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._portalHost=et.first)}},hostAttrs:[1,"mat-tab-body"],features:[l.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(on,he){1&on&&(l.\u0275\u0275elementStart(0,"div",0,1),l.\u0275\u0275listener("@translateTab.start",function(tt){return he._onTranslateTabStarted(tt)})("@translateTab.done",function(tt){return he._translateTabComplete.next(tt)}),l.\u0275\u0275template(2,Ot,0,0,"ng-template",2),l.\u0275\u0275elementEnd()),2&on&&l.\u0275\u0275property("@translateTab",l.\u0275\u0275pureFunction2(3,Gn,he._position,l.\u0275\u0275pureFunction1(1,cn,he.animationDuration)))},dependencies:[ir],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[nt.translateTab]}}),ti})(),Ln=(()=>{class ti extends $e{}return ti.\u0275fac=function(){let Kn;return function(he){return(Kn||(Kn=l.\u0275\u0275getInheritedFactory(ti)))(he||ti)}}(),ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(on,he){2&on&&(l.\u0275\u0275attribute("aria-disabled",!!he.disabled),l.\u0275\u0275classProp("mat-tab-disabled",he.disabled))},inputs:{disabled:"disabled"},features:[l.\u0275\u0275InheritDefinitionFeature]}),ti})(),Vn=(()=>{class ti extends ze{constructor(on,he,et,tt,nn,zn,jt){super(on,he,et,tt,nn,zn,jt)}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(ae.rL),l.\u0275\u0275directiveInject(d.Is,8),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(K.t4),l.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},ti.\u0275cmp=l.\u0275\u0275defineComponent({type:ti,selectors:[["mat-tab-header"]],contentQueries:function(on,he,et){if(1&on&&l.\u0275\u0275contentQuery(et,Ln,4),2&on){let tt;l.\u0275\u0275queryRefresh(tt=l.\u0275\u0275loadQuery())&&(he._items=tt)}},viewQuery:function(on,he){if(1&on&&(l.\u0275\u0275viewQuery(Wn,7),l.\u0275\u0275viewQuery(_i,7),l.\u0275\u0275viewQuery(Ni,7),l.\u0275\u0275viewQuery(Nn,7),l.\u0275\u0275viewQuery(Mn,5),l.\u0275\u0275viewQuery(On,5)),2&on){let et;l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._inkBar=et.first),l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._tabListContainer=et.first),l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._tabList=et.first),l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._tabListInner=et.first),l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._nextPaginator=et.first),l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._previousPaginator=et.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(on,he){2&on&&l.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",he._showPaginationControls)("mat-tab-header-rtl","rtl"==he._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[l.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:De,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(on,he){1&on&&(l.\u0275\u0275projectionDef(),l.\u0275\u0275elementStart(0,"button",0,1),l.\u0275\u0275listener("click",function(){return he._handlePaginatorClick("before")})("mousedown",function(tt){return he._handlePaginatorPress("before",tt)})("touchend",function(){return he._stopInterval()}),l.\u0275\u0275element(2,"div",2),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(3,"div",3,4),l.\u0275\u0275listener("keydown",function(tt){return he._handleKeydown(tt)}),l.\u0275\u0275elementStart(5,"div",5,6),l.\u0275\u0275listener("cdkObserveContent",function(){return he._onContentChanges()}),l.\u0275\u0275elementStart(7,"div",7,8),l.\u0275\u0275projection(9),l.\u0275\u0275elementEnd(),l.\u0275\u0275element(10,"mat-ink-bar"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(11,"button",9,10),l.\u0275\u0275listener("mousedown",function(tt){return he._handlePaginatorPress("after",tt)})("click",function(){return he._handlePaginatorClick("after")})("touchend",function(){return he._stopInterval()}),l.\u0275\u0275element(13,"div",2),l.\u0275\u0275elementEnd()),2&on&&(l.\u0275\u0275classProp("mat-tab-header-pagination-disabled",he._disableScrollBefore),l.\u0275\u0275property("matRippleDisabled",he._disableScrollBefore||he.disableRipple)("disabled",he._disableScrollBefore||null),l.\u0275\u0275advance(5),l.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===he._animationMode),l.\u0275\u0275advance(6),l.\u0275\u0275classProp("mat-tab-header-pagination-disabled",he._disableScrollAfter),l.\u0275\u0275property("matRippleDisabled",he._disableScrollAfter||he.disableRipple)("disabled",he._disableScrollAfter||null))},dependencies:[h.wG,n.wD,Wn],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),ti})(),Le=(()=>{class ti extends z{constructor(on,he,et,tt){super(on,he,et,tt)}}return ti.\u0275fac=function(on){return new(on||ti)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(tn,8),l.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},ti.\u0275cmp=l.\u0275\u0275defineComponent({type:ti,selectors:[["mat-tab-group"]],contentQueries:function(on,he,et){if(1&on&&l.\u0275\u0275contentQuery(et,ji,5),2&on){let tt;l.\u0275\u0275queryRefresh(tt=l.\u0275\u0275loadQuery())&&(he._allTabs=tt)}},viewQuery:function(on,he){if(1&on&&(l.\u0275\u0275viewQuery(Qn,5),l.\u0275\u0275viewQuery(Ti,5)),2&on){let et;l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._tabBodyWrapper=et.first),l.\u0275\u0275queryRefresh(et=l.\u0275\u0275loadQuery())&&(he._tabHeader=et.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(on,he){2&on&&l.\u0275\u0275classProp("mat-tab-group-dynamic-height",he.dynamicHeight)("mat-tab-group-inverted-header","below"===he.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[l.\u0275\u0275ProvidersFeature([{provide:mt,useExisting:ti}]),l.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(on,he){1&on&&(l.\u0275\u0275elementStart(0,"mat-tab-header",0,1),l.\u0275\u0275listener("indexFocused",function(tt){return he._focusChanged(tt)})("selectFocusedIndex",function(tt){return he.selectedIndex=tt}),l.\u0275\u0275template(2,$t,5,15,"div",2),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(3,"div",3,4),l.\u0275\u0275template(5,Nt,1,11,"mat-tab-body",5),l.\u0275\u0275elementEnd()),2&on&&(l.\u0275\u0275property("selectedIndex",he.selectedIndex||0)("disableRipple",he.disableRipple)("disablePagination",he.disablePagination),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",he._tabs),l.\u0275\u0275advance(1),l.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===he._animationMode),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",he._tabs))},dependencies:[t.NgClass,t.NgForOf,t.NgIf,a.Pl,h.wG,e.kH,Ln,dr,Vn],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),ti})(),$i=(()=>{class ti extends Mt{}return ti.\u0275fac=function(){let Kn;return function(he){return(Kn||(Kn=l.\u0275\u0275getInheritedFactory(ti)))(he||ti)}}(),ti.\u0275dir=l.\u0275\u0275defineDirective({type:ti,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[l.\u0275\u0275ProvidersFeature([{provide:Ie,useExisting:ti}]),l.\u0275\u0275InheritDefinitionFeature]}),ti})(),Mr=(()=>{class ti{}return ti.\u0275fac=function(on){return new(on||ti)},ti.\u0275mod=l.\u0275\u0275defineNgModule({type:ti}),ti.\u0275inj=l.\u0275\u0275defineInjector({imports:[t.CommonModule,h.BQ,a.eL,h.si,n.Q8,e.rt,h.BQ]}),ti})()},47462:(oe,x,i)=>{"use strict";i.d(x,{AA:()=>S,Kd:()=>y});var e=i(98184),n=i(12687),a=i(36895),t=i(94650),l=i(3238),h=i(67376),s=i(40445),d=i(62289),p=i(83353),u=i(10266);i(37340);const v=["tooltip"];let y=(()=>{class D extends u.xT{constructor(P,B,V,X,re,Q,ae,K,k,$,j,R){super(P,B,V,X,re,Q,ae,K,k,$,j,R),this._tooltipComponent=b}}return D.\u0275fac=function(P){return new(P||D)(t.\u0275\u0275directiveInject(e.aV),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(h.mF),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(p.t4),t.\u0275\u0275directiveInject(n.$s),t.\u0275\u0275directiveInject(n.tE),t.\u0275\u0275directiveInject(u.cV),t.\u0275\u0275directiveInject(s.Is,8),t.\u0275\u0275directiveInject(u.Jm,8),t.\u0275\u0275directiveInject(a.DOCUMENT))},D.\u0275dir=t.\u0275\u0275defineDirective({type:D,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[t.\u0275\u0275InheritDefinitionFeature]}),D})(),b=(()=>{class D extends u.tr{constructor(P,B,V){super(P,V),this._breakpointObserver=B,this._isHandset=this._breakpointObserver.observe(d.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return D.\u0275fac=function(P){return new(P||D)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(d.Yg),t.\u0275\u0275directiveInject(t.ANIMATION_MODULE_TYPE,8))},D.\u0275cmp=t.\u0275\u0275defineComponent({type:D,selectors:[["mat-tooltip-component"]],viewQuery:function(P,B){if(1&P&&t.\u0275\u0275viewQuery(v,7),2&P){let V;t.\u0275\u0275queryRefresh(V=t.\u0275\u0275loadQuery())&&(B._tooltip=V.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(P,B){1&P&&t.\u0275\u0275listener("mouseleave",function(X){return B._handleMouseLeave(X)}),2&P&&t.\u0275\u0275styleProp("zoom",B.isVisible()?1:null)},features:[t.\u0275\u0275InheritDefinitionFeature],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(P,B){if(1&P&&(t.\u0275\u0275elementStart(0,"div",0,1),t.\u0275\u0275listener("animationend",function(X){return B._handleAnimationEnd(X)}),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd()),2&P){let V;t.\u0275\u0275classProp("mat-tooltip-handset",null==(V=t.\u0275\u0275pipeBind1(2,4,B._isHandset))?null:V.matches),t.\u0275\u0275property("ngClass",B.tooltipClass),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(B.message)}},dependencies:[a.NgClass,a.AsyncPipe],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),D})(),S=(()=>{class D{}return D.\u0275fac=function(P){return new(P||D)},D.\u0275mod=t.\u0275\u0275defineNgModule({type:D}),D.\u0275inj=t.\u0275\u0275defineInjector({providers:[u.Mp],imports:[n.rt,a.CommonModule,e.U8,l.BQ,l.BQ,h.ZD]}),D})()},98739:(oe,x,i)=>{"use strict";i.d(x,{ik:()=>y,n7:()=>A,ye:()=>g});var e=i(94650),n=i(77579),a=i(3238),t=i(21281);let g=(()=>{class X{constructor(){this.changes=new n.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Q,ae,K)=>{if(0==K||0==ae)return`0 of ${K}`;const k=Q*ae;return`${k+1} \u2013 ${k<(K=Math.max(K,0))?Math.min(k+ae,K):k+ae} of ${K}`}}}return X.\u0275fac=function(Q){return new(Q||X)},X.\u0275prov=e.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const y={provide:g,deps:[[new e.Optional,new e.SkipSelf,g]],useFactory:function v(X){return X||new g}},D=(0,a.Id)((0,a.dB)(class{}));let A=(()=>{class X extends D{get pageIndex(){return this._pageIndex}set pageIndex(Q){this._pageIndex=Math.max((0,t.su)(Q),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Q){this._length=(0,t.su)(Q),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Q){this._pageSize=Math.max((0,t.su)(Q),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Q){this._pageSizeOptions=(Q||[]).map(ae=>(0,t.su)(ae)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Q){this._hidePageSize=(0,t.Ig)(Q)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Q){this._showFirstLastButtons=(0,t.Ig)(Q)}constructor(Q,ae,K){if(super(),this._intl=Q,this._changeDetectorRef=ae,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new e.EventEmitter,this._intlChanges=Q.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),K){const{pageSize:k,pageSizeOptions:$,hidePageSize:j,showFirstLastButtons:R}=K;null!=k&&(this._pageSize=k),null!=$&&(this._pageSizeOptions=$),null!=j&&(this._hidePageSize=j),null!=R&&(this._showFirstLastButtons=R)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Q=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Q)}previousPage(){if(!this.hasPreviousPage())return;const Q=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Q)}firstPage(){if(!this.hasPreviousPage())return;const Q=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Q)}lastPage(){if(!this.hasNextPage())return;const Q=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Q)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Q=this.getNumberOfPages()-1;return this.pageIndex<Q&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(Q){const K=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/Q)||0,this.pageSize=Q,this._emitPageEvent(K)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((Q,ae)=>Q-ae),this._changeDetectorRef.markForCheck())}_emitPageEvent(Q){this.page.emit({previousPageIndex:Q,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return X.\u0275fac=function(Q){e.\u0275\u0275invalidFactory()},X.\u0275dir=e.\u0275\u0275defineDirective({type:X,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[e.\u0275\u0275InheritDefinitionFeature]}),X})()},51572:(oe,x,i)=>{"use strict";i.d(x,{Cq:()=>b,Ou:()=>v,oG:()=>d});var e=i(94650),n=i(3238),a=i(21281),t=i(36895);const l=["determinateSpinner"];function h(S,E){if(1&S&&(e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(0,"svg",11),e.\u0275\u0275element(1,"circle",12),e.\u0275\u0275elementEnd()),2&S){const D=e.\u0275\u0275nextContext();e.\u0275\u0275attribute("viewBox",D._viewBox()),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("stroke-dasharray",D._strokeCircumference(),"px")("stroke-dashoffset",D._strokeCircumference()/2,"px")("stroke-width",D._circleStrokeWidth(),"%"),e.\u0275\u0275attribute("r",D._circleRadius())}}const s=(0,n.pj)(class{constructor(S){this._elementRef=S}},"primary"),d=new e.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:function p(){return{diameter:u}}}),u=100;let v=(()=>{class S extends s{constructor(D,A,P){super(D),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=u,this._noopAnimations="NoopAnimations"===A&&!!P&&!P._forceAnimations,P&&(P.color&&(this.color=this.defaultColor=P.color),P.diameter&&(this.diameter=P.diameter),P.strokeWidth&&(this.strokeWidth=P.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(D){this._value=Math.max(0,Math.min(100,(0,a.su)(D)))}get diameter(){return this._diameter}set diameter(D){this._diameter=(0,a.su)(D)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(D){this._strokeWidth=(0,a.su)(D)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const D=2*this._circleRadius()+this.strokeWidth;return`0 0 ${D} ${D}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}}return S.\u0275fac=function(D){return new(D||S)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ANIMATION_MODULE_TYPE,8),e.\u0275\u0275directiveInject(d))},S.\u0275cmp=e.\u0275\u0275defineComponent({type:S,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(D,A){if(1&D&&e.\u0275\u0275viewQuery(l,5),2&D){let P;e.\u0275\u0275queryRefresh(P=e.\u0275\u0275loadQuery())&&(A._determinateCircle=P.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(D,A){2&D&&(e.\u0275\u0275attribute("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===A.mode?A.value:null)("mode",A.mode),e.\u0275\u0275styleProp("width",A.diameter,"px")("height",A.diameter,"px"),e.\u0275\u0275classProp("_mat-animation-noopable",A._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===A.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[e.\u0275\u0275InheritDefinitionFeature],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(D,A){if(1&D&&(e.\u0275\u0275template(0,h,2,8,"ng-template",null,0,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementStart(2,"div",1,2),e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(4,"svg",3),e.\u0275\u0275element(5,"circle",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275namespaceHTML(),e.\u0275\u0275elementStart(6,"div",5)(7,"div",6)(8,"div",7),e.\u0275\u0275elementContainer(9,8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",9),e.\u0275\u0275elementContainer(11,8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"div",10),e.\u0275\u0275elementContainer(13,8),e.\u0275\u0275elementEnd()()()),2&D){const P=e.\u0275\u0275reference(1);e.\u0275\u0275advance(4),e.\u0275\u0275attribute("viewBox",A._viewBox()),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("stroke-dasharray",A._strokeCircumference(),"px")("stroke-dashoffset",A._strokeDashOffset(),"px")("stroke-width",A._circleStrokeWidth(),"%"),e.\u0275\u0275attribute("r",A._circleRadius()),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngTemplateOutlet",P),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngTemplateOutlet",P),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngTemplateOutlet",P)}},dependencies:[t.NgTemplateOutlet],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, transparent)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0}),S})(),b=(()=>{class S{}return S.\u0275fac=function(D){return new(D||S)},S.\u0275mod=e.\u0275\u0275defineNgModule({type:S}),S.\u0275inj=e.\u0275\u0275defineInjector({imports:[t.CommonModule,n.BQ]}),S})()},84385:(oe,x,i)=>{"use strict";i.d(x,{$L:()=>Ut,Ep:()=>ve,LD:()=>Zt,LZ:()=>Ee,bI:()=>me,gD:()=>nt,hC:()=>Wt});var e=i(98184),n=i(36895),a=i(94650),t=i(3238),l=i(59549),h=i(67376),s=i(12687),d=i(40445),p=i(21281),u=i(95017),g=i(29521),v=i(24006),y=i(77579),b=i(49770),S=i(56451),E=i(68675),D=i(63900),A=i(95698),P=i(39300),B=i(54004),V=i(71884),X=i(82722),re=i(37340);const Q=["trigger"],ae=["panel"];function K(Fe,yt){if(1&Fe&&(a.\u0275\u0275elementStart(0,"span",10),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Fe){const ie=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(ie.placeholder)}}function k(Fe,yt){if(1&Fe&&(a.\u0275\u0275elementStart(0,"span",14),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Fe){const ie=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(ie.triggerValue)}}function $(Fe,yt){1&Fe&&a.\u0275\u0275projection(0,0,["*ngSwitchCase","true"])}function j(Fe,yt){if(1&Fe&&(a.\u0275\u0275elementStart(0,"span",11),a.\u0275\u0275template(1,k,2,1,"span",12),a.\u0275\u0275template(2,$,1,0,"ng-content",13),a.\u0275\u0275elementEnd()),2&Fe){const ie=a.\u0275\u0275nextContext();a.\u0275\u0275property("ngSwitch",!!ie.customTrigger),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngSwitchCase",!0)}}function R(Fe,yt){if(1&Fe){const ie=a.\u0275\u0275getCurrentView();a.\u0275\u0275namespaceSVG(),a.\u0275\u0275namespaceHTML(),a.\u0275\u0275elementStart(0,"div",15,16),a.\u0275\u0275listener("@transformPanel.done",function(Ie){a.\u0275\u0275restoreView(ie);const dt=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(dt._panelDoneAnimatingStream.next(Ie.toState))})("keydown",function(Ie){a.\u0275\u0275restoreView(ie);const dt=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(dt._handleKeydown(Ie))}),a.\u0275\u0275projection(2,1),a.\u0275\u0275elementEnd()}if(2&Fe){const ie=a.\u0275\u0275nextContext();a.\u0275\u0275classMapInterpolate1("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",ie._getPanelTheme(),""),a.\u0275\u0275property("ngClass",ie.panelClass)("@transformPanel","showing"),a.\u0275\u0275attribute("id",ie.id+"-panel")("aria-multiselectable",ie.multiple)("aria-label",ie.ariaLabel||null)("aria-labelledby",ie._getPanelAriaLabelledby())}}const U=[[["mat-select-trigger"]],"*"],le=["mat-select-trigger","*"],T={transformPanelWrap:(0,re.X$)("transformPanelWrap",[(0,re.eR)("* => void",(0,re.IO)("@transformPanel",[(0,re.pV)()],{optional:!0}))]),transformPanel:(0,re.X$)("transformPanel",[(0,re.SB)("void",(0,re.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,re.eR)("void => showing",(0,re.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,re.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,re.eR)("* => void",(0,re.jt)("100ms linear",(0,re.oB)({opacity:0})))])};let de=0;const me=new a.InjectionToken("mat-select-scroll-strategy"),se=new a.InjectionToken("MAT_SELECT_CONFIG"),ve={provide:me,deps:[e.aV],useFactory:function q(Fe){return()=>Fe.scrollStrategies.reposition()}},Ee=new a.InjectionToken("MatSelectTrigger");class Ye{constructor(yt,ie){this.source=yt,this.value=ie}}const wt=(0,t.Kr)((0,t.sb)((0,t.Id)((0,t.FD)(class{constructor(Fe,yt,ie,Ce,Ie){this._elementRef=Fe,this._defaultErrorStateMatcher=yt,this._parentForm=ie,this._parentFormGroup=Ce,this.ngControl=Ie,this.stateChanges=new y.x}}))));let Wt=(()=>{class Fe extends wt{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(ie){this._placeholder=ie,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(v.kI.required)??!1}set required(ie){this._required=(0,p.Ig)(ie),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(ie){this._multiple=(0,p.Ig)(ie)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(ie){this._disableOptionCentering=(0,p.Ig)(ie)}get compareWith(){return this._compareWith}set compareWith(ie){this._compareWith=ie,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ie){this._assignValue(ie)&&this._onChange(ie)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(ie){this._typeaheadDebounceInterval=(0,p.su)(ie)}get id(){return this._id}set id(ie){this._id=ie||this._uid,this.stateChanges.next()}constructor(ie,Ce,Ie,dt,Mt,Xt,en,vt,xt,zt,bt,At,$e,Xe){super(Mt,dt,en,vt,zt),this._viewportRuler=ie,this._changeDetectorRef=Ce,this._ngZone=Ie,this._dir=Xt,this._parentFormField=xt,this._liveAnnouncer=$e,this._defaultOptions=Xe,this._panelOpen=!1,this._compareWith=(Pe,Ve)=>Pe===Ve,this._uid="mat-select-"+de++,this._triggerAriaLabelledBy=null,this._destroy=new y.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+de++,this._panelDoneAnimatingStream=new y.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,b.P)(()=>{const Pe=this.options;return Pe?Pe.changes.pipe((0,E.O)(Pe),(0,D.w)(()=>(0,S.T)(...Pe.map(Ve=>Ve.onSelectionChange)))):this._ngZone.onStable.pipe((0,A.q)(1),(0,D.w)(()=>this.optionSelectionChanges))}),this.openedChange=new a.EventEmitter,this._openedStream=this.openedChange.pipe((0,P.h)(Pe=>Pe),(0,B.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,P.h)(Pe=>!Pe),(0,B.U)(()=>{})),this.selectionChange=new a.EventEmitter,this.valueChange=new a.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Xe?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Xe.typeaheadDebounceInterval),this._scrollStrategyFactory=At,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(bt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new u.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,V.x)(),(0,X.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,X.R)(this._destroy)).subscribe(ie=>{ie.added.forEach(Ce=>Ce.select()),ie.removed.forEach(Ce=>Ce.deselect())}),this.options.changes.pipe((0,E.O)(null),(0,X.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const ie=this._getTriggerAriaLabelledby(),Ce=this.ngControl;if(ie!==this._triggerAriaLabelledBy){const Ie=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ie,ie?Ie.setAttribute("aria-labelledby",ie):Ie.removeAttribute("aria-labelledby")}Ce&&(this._previousControl!==Ce.control&&(void 0!==this._previousControl&&null!==Ce.disabled&&Ce.disabled!==this.disabled&&(this.disabled=Ce.disabled),this._previousControl=Ce.control),this.updateErrorState())}ngOnChanges(ie){(ie.disabled||ie.userAriaDescribedBy)&&this.stateChanges.next(),ie.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(ie){this._assignValue(ie)}registerOnChange(ie){this._onChange=ie}registerOnTouched(ie){this._onTouched=ie}setDisabledState(ie){this.disabled=ie,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const ie=this._selectionModel.selected.map(Ce=>Ce.viewValue);return this._isRtl()&&ie.reverse(),ie.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(ie){this.disabled||(this.panelOpen?this._handleOpenKeydown(ie):this._handleClosedKeydown(ie))}_handleClosedKeydown(ie){const Ce=ie.keyCode,Ie=Ce===g.JH||Ce===g.LH||Ce===g.oh||Ce===g.SV,dt=Ce===g.K5||Ce===g.L_,Mt=this._keyManager;if(!Mt.isTyping()&&dt&&!(0,g.Vb)(ie)||(this.multiple||ie.altKey)&&Ie)ie.preventDefault(),this.open();else if(!this.multiple){const Xt=this.selected;Mt.onKeydown(ie);const en=this.selected;en&&Xt!==en&&this._liveAnnouncer.announce(en.viewValue,1e4)}}_handleOpenKeydown(ie){const Ce=this._keyManager,Ie=ie.keyCode,dt=Ie===g.JH||Ie===g.LH,Mt=Ce.isTyping();if(dt&&ie.altKey)ie.preventDefault(),this.close();else if(Mt||Ie!==g.K5&&Ie!==g.L_||!Ce.activeItem||(0,g.Vb)(ie))if(!Mt&&this._multiple&&Ie===g.A&&ie.ctrlKey){ie.preventDefault();const Xt=this.options.some(en=>!en.disabled&&!en.selected);this.options.forEach(en=>{en.disabled||(Xt?en.select():en.deselect())})}else{const Xt=Ce.activeItemIndex;Ce.onKeydown(ie),this._multiple&&dt&&ie.shiftKey&&Ce.activeItem&&Ce.activeItemIndex!==Xt&&Ce.activeItem._selectViaInteraction()}else ie.preventDefault(),Ce.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,A.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(ie){if(this.options.forEach(Ce=>Ce.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&ie)Array.isArray(ie),ie.forEach(Ce=>this._selectOptionByValue(Ce)),this._sortValues();else{const Ce=this._selectOptionByValue(ie);Ce?this._keyManager.updateActiveItem(Ce):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(ie){const Ce=this.options.find(Ie=>{if(this._selectionModel.isSelected(Ie))return!1;try{return null!=Ie.value&&this._compareWith(Ie.value,ie)}catch{return!1}});return Ce&&this._selectionModel.select(Ce),Ce}_assignValue(ie){return!!(ie!==this._value||this._multiple&&Array.isArray(ie))&&(this.options&&this._setSelectionByValue(ie),this._value=ie,!0)}_initKeyManager(){this._keyManager=new s.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),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 ie=(0,S.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,X.R)(ie)).subscribe(Ce=>{this._onSelect(Ce.source,Ce.isUserInput),Ce.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,S.T)(...this.options.map(Ce=>Ce._stateChanges)).pipe((0,X.R)(ie)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(ie,Ce){const Ie=this._selectionModel.isSelected(ie);null!=ie.value||this._multiple?(Ie!==ie.selected&&(ie.selected?this._selectionModel.select(ie):this._selectionModel.deselect(ie)),Ce&&this._keyManager.setActiveItem(ie),this.multiple&&(this._sortValues(),Ce&&this.focus())):(ie.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ie.value)),Ie!==this._selectionModel.isSelected(ie)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const ie=this.options.toArray();this._selectionModel.sort((Ce,Ie)=>this.sortComparator?this.sortComparator(Ce,Ie,ie):ie.indexOf(Ce)-ie.indexOf(Ie)),this.stateChanges.next()}}_propagateChanges(ie){let Ce=null;Ce=this.multiple?this.selected.map(Ie=>Ie.value):this.selected?this.selected.value:ie,this._value=Ce,this.valueChange.emit(Ce),this._onChange(Ce),this.selectionChange.emit(this._getChangeEvent(Ce)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(ie){this._elementRef.nativeElement.focus(ie)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const ie=this._parentFormField?.getLabelId();return this.ariaLabelledby?(ie?ie+" ":"")+this.ariaLabelledby:ie}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const ie=this._parentFormField?.getLabelId();let Ce=(ie?ie+" ":"")+this._valueId;return this.ariaLabelledby&&(Ce+=" "+this.ariaLabelledby),Ce}_panelDoneAnimating(ie){this.openedChange.emit(ie)}setDescribedByIds(ie){ie.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ie.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Fe.\u0275fac=function(ie){return new(ie||Fe)(a.\u0275\u0275directiveInject(h.rL),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(t.rD),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(d.Is,8),a.\u0275\u0275directiveInject(v.F,8),a.\u0275\u0275directiveInject(v.sg,8),a.\u0275\u0275directiveInject(l.G_,8),a.\u0275\u0275directiveInject(v.a5,10),a.\u0275\u0275injectAttribute("tabindex"),a.\u0275\u0275directiveInject(me),a.\u0275\u0275directiveInject(s.Kd),a.\u0275\u0275directiveInject(se,8))},Fe.\u0275dir=a.\u0275\u0275defineDirective({type:Fe,viewQuery:function(ie,Ce){if(1&ie&&(a.\u0275\u0275viewQuery(Q,5),a.\u0275\u0275viewQuery(ae,5),a.\u0275\u0275viewQuery(e.pI,5)),2&ie){let Ie;a.\u0275\u0275queryRefresh(Ie=a.\u0275\u0275loadQuery())&&(Ce.trigger=Ie.first),a.\u0275\u0275queryRefresh(Ie=a.\u0275\u0275loadQuery())&&(Ce.panel=Ie.first),a.\u0275\u0275queryRefresh(Ie=a.\u0275\u0275loadQuery())&&(Ce._overlayDir=Ie.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:[a.\u0275\u0275InheritDefinitionFeature,a.\u0275\u0275NgOnChangesFeature]}),Fe})(),Ut=(()=>{class Fe{}return Fe.\u0275fac=function(ie){return new(ie||Fe)},Fe.\u0275dir=a.\u0275\u0275defineDirective({type:Fe,selectors:[["mat-select-trigger"]],features:[a.\u0275\u0275ProvidersFeature([{provide:Ee,useExisting:Fe}])]}),Fe})(),nt=(()=>{class Fe extends Wt{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,X.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(ie){const Ce=this.options.toArray()[ie];if(Ce){const Ie=this.panel.nativeElement,dt=(0,t.CB)(ie,this.options,this.optionGroups),Mt=Ce._getHostElement();Ie.scrollTop=0===ie&&1===dt?0:(0,t.jH)(Mt.offsetTop,Mt.offsetHeight,Ie.scrollTop,Ie.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(ie){return new Ye(this,ie)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof e.xu?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(ie){this._hideSingleSelectionIndicator=(0,p.Ig)(ie),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const ie of this.options)ie._changeDetectorRef.markForCheck()}}return Fe.\u0275fac=function(){let yt;return function(Ce){return(yt||(yt=a.\u0275\u0275getInheritedFactory(Fe)))(Ce||Fe)}}(),Fe.\u0275cmp=a.\u0275\u0275defineComponent({type:Fe,selectors:[["mat-select"]],contentQueries:function(ie,Ce,Ie){if(1&ie&&(a.\u0275\u0275contentQuery(Ie,Ee,5),a.\u0275\u0275contentQuery(Ie,t.ey,5),a.\u0275\u0275contentQuery(Ie,t.K7,5)),2&ie){let dt;a.\u0275\u0275queryRefresh(dt=a.\u0275\u0275loadQuery())&&(Ce.customTrigger=dt.first),a.\u0275\u0275queryRefresh(dt=a.\u0275\u0275loadQuery())&&(Ce.options=dt),a.\u0275\u0275queryRefresh(dt=a.\u0275\u0275loadQuery())&&(Ce.optionGroups=dt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(ie,Ce){1&ie&&a.\u0275\u0275listener("keydown",function(dt){return Ce._handleKeydown(dt)})("focus",function(){return Ce._onFocus()})("blur",function(){return Ce._onBlur()}),2&ie&&(a.\u0275\u0275attribute("id",Ce.id)("tabindex",Ce.tabIndex)("aria-controls",Ce.panelOpen?Ce.id+"-panel":null)("aria-expanded",Ce.panelOpen)("aria-label",Ce.ariaLabel||null)("aria-required",Ce.required.toString())("aria-disabled",Ce.disabled.toString())("aria-invalid",Ce.errorState)("aria-activedescendant",Ce._getAriaActiveDescendant()),a.\u0275\u0275classProp("mat-mdc-select-disabled",Ce.disabled)("mat-mdc-select-invalid",Ce.errorState)("mat-mdc-select-required",Ce.required)("mat-mdc-select-empty",Ce.empty)("mat-mdc-select-multiple",Ce.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[a.\u0275\u0275ProvidersFeature([{provide:l.Eo,useExisting:Fe},{provide:t.HF,useExisting:Fe}]),a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:le,decls:11,vars:11,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"],["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(ie,Ce){if(1&ie&&(a.\u0275\u0275projectionDef(U),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("click",function(){return Ce.toggle()}),a.\u0275\u0275elementStart(3,"div",2),a.\u0275\u0275template(4,K,2,1,"span",3),a.\u0275\u0275template(5,j,3,2,"span",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(6,"div",5)(7,"div",6),a.\u0275\u0275namespaceSVG(),a.\u0275\u0275elementStart(8,"svg",7),a.\u0275\u0275element(9,"path",8),a.\u0275\u0275elementEnd()()()(),a.\u0275\u0275template(10,R,3,9,"ng-template",9),a.\u0275\u0275listener("backdropClick",function(){return Ce.close()})("attach",function(){return Ce._onAttached()})("detach",function(){return Ce.close()})),2&ie){const Ie=a.\u0275\u0275reference(1);a.\u0275\u0275attribute("aria-owns",Ce.panelOpen?Ce.id+"-panel":null),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngSwitch",Ce.empty),a.\u0275\u0275attribute("id",Ce._valueId),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!1),a.\u0275\u0275advance(5),a.\u0275\u0275property("cdkConnectedOverlayPanelClass",Ce._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Ce._scrollStrategy)("cdkConnectedOverlayOrigin",Ce._preferredOverlayOrigin||Ie)("cdkConnectedOverlayOpen",Ce.panelOpen)("cdkConnectedOverlayPositions",Ce._positions)("cdkConnectedOverlayWidth",Ce._overlayWidth)}},dependencies:[n.NgClass,n.NgSwitch,n.NgSwitchCase,n.NgSwitchDefault,e.pI,e.xu],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.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}.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}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.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)}._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.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:[T.transformPanel]},changeDetection:0}),Fe})(),Zt=(()=>{class Fe{}return Fe.\u0275fac=function(ie){return new(ie||Fe)},Fe.\u0275mod=a.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=a.\u0275\u0275defineInjector({providers:[ve],imports:[n.CommonModule,e.U8,t.Ng,t.BQ,h.ZD,l.lN,t.Ng,t.BQ]}),Fe})()},23267:(oe,x,i)=>{"use strict";i.d(x,{JX:()=>Ee,Rh:()=>ve,SJ:()=>wt,TM:()=>Ye});var e=i(67376),n=i(36895),a=i(94650),t=i(3238),l=i(12687),h=i(40445),s=i(21281),d=i(29521),p=i(83353),u=i(77579),g=i(54968),v=i(56451),y=i(39300),b=i(54004),S=i(69718),E=i(82722),D=i(71884),A=i(95698),P=i(68675),B=i(78372),V=i(37340);const X=["*"],re=["content"];function Q(Wt,Ut){if(1&Wt){const nt=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",2),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(nt);const Fe=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Fe._onBackdropClicked())}),a.\u0275\u0275elementEnd()}if(2&Wt){const nt=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-drawer-shown",nt._isShowingBackdrop())}}function ae(Wt,Ut){1&Wt&&(a.\u0275\u0275elementStart(0,"mat-drawer-content"),a.\u0275\u0275projection(1,2),a.\u0275\u0275elementEnd())}const K=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],k=["mat-drawer","mat-drawer-content","*"];function $(Wt,Ut){if(1&Wt){const nt=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",2),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(nt);const Fe=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(Fe._onBackdropClicked())}),a.\u0275\u0275elementEnd()}if(2&Wt){const nt=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-drawer-shown",nt._isShowingBackdrop())}}function j(Wt,Ut){1&Wt&&(a.\u0275\u0275elementStart(0,"mat-sidenav-content"),a.\u0275\u0275projection(1,2),a.\u0275\u0275elementEnd())}const R=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],U=["mat-sidenav","mat-sidenav-content","*"],T={transformDrawer:(0,V.X$)("transform",[(0,V.SB)("open, open-instant",(0,V.oB)({transform:"none",visibility:"visible"})),(0,V.SB)("void",(0,V.oB)({"box-shadow":"none",visibility:"hidden"})),(0,V.eR)("void => open-instant",(0,V.jt)("0ms")),(0,V.eR)("void <=> open, open-instant => void",(0,V.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},N=new a.InjectionToken("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function de(){return!1}}),pe=new a.InjectionToken("MAT_DRAWER_CONTAINER");let me=(()=>{class Wt extends e.PQ{constructor(nt,Zt,Fe,yt,ie){super(Fe,yt,ie),this._changeDetectorRef=nt,this._container=Zt}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Wt.\u0275fac=function(nt){return new(nt||Wt)(a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject((0,a.forwardRef)(()=>se)),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(e.mF),a.\u0275\u0275directiveInject(a.NgZone))},Wt.\u0275cmp=a.\u0275\u0275defineComponent({type:Wt,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(nt,Zt){2&nt&&a.\u0275\u0275styleProp("margin-left",Zt._container._contentMargins.left,"px")("margin-right",Zt._container._contentMargins.right,"px")},features:[a.\u0275\u0275ProvidersFeature([{provide:e.PQ,useExisting:Wt}]),a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:X,decls:1,vars:0,template:function(nt,Zt){1&nt&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),Wt})(),q=(()=>{class Wt{get position(){return this._position}set position(nt){(nt="end"===nt?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(nt),this._position=nt,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(nt){this._mode=nt,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(nt){this._disableClose=(0,s.Ig)(nt)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(nt){("true"===nt||"false"===nt||null==nt)&&(nt=(0,s.Ig)(nt)),this._autoFocus=nt}get opened(){return this._opened}set opened(nt){this.toggle((0,s.Ig)(nt))}constructor(nt,Zt,Fe,yt,ie,Ce,Ie,dt){this._elementRef=nt,this._focusTrapFactory=Zt,this._focusMonitor=Fe,this._platform=yt,this._ngZone=ie,this._interactivityChecker=Ce,this._doc=Ie,this._container=dt,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new u.x,this._animationEnd=new u.x,this._animationState="void",this.openedChange=new a.EventEmitter(!0),this._openedStream=this.openedChange.pipe((0,y.h)(Mt=>Mt),(0,b.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,y.h)(Mt=>Mt.fromState!==Mt.toState&&0===Mt.toState.indexOf("open")),(0,S.h)(void 0)),this._closedStream=this.openedChange.pipe((0,y.h)(Mt=>!Mt),(0,b.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,y.h)(Mt=>Mt.fromState!==Mt.toState&&"void"===Mt.toState),(0,S.h)(void 0)),this._destroyed=new u.x,this.onPositionChanged=new a.EventEmitter,this._modeChanged=new u.x,this.openedChange.subscribe(Mt=>{Mt?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,g.R)(this._elementRef.nativeElement,"keydown").pipe((0,y.h)(Mt=>Mt.keyCode===d.hY&&!this.disableClose&&!(0,d.Vb)(Mt)),(0,E.R)(this._destroyed)).subscribe(Mt=>this._ngZone.run(()=>{this.close(),Mt.stopPropagation(),Mt.preventDefault()}))}),this._animationEnd.pipe((0,D.x)((Mt,Xt)=>Mt.fromState===Xt.fromState&&Mt.toState===Xt.toState)).subscribe(Mt=>{const{fromState:Xt,toState:en}=Mt;(0===en.indexOf("open")&&"void"===Xt||"void"===en&&0===Xt.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(nt,Zt){this._interactivityChecker.isFocusable(nt)||(nt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Fe=()=>{nt.removeEventListener("blur",Fe),nt.removeEventListener("mousedown",Fe),nt.removeAttribute("tabindex")};nt.addEventListener("blur",Fe),nt.addEventListener("mousedown",Fe)})),nt.focus(Zt)}_focusByCssSelector(nt,Zt){let Fe=this._elementRef.nativeElement.querySelector(nt);Fe&&this._forceFocus(Fe,Zt)}_takeFocus(){if(!this._focusTrap)return;const nt=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Zt=>{!Zt&&"function"==typeof this._elementRef.nativeElement.focus&&nt.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(nt){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,nt):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const nt=this._doc.activeElement;return!!nt&&this._elementRef.nativeElement.contains(nt)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(nt){return this.toggle(!0,nt)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(nt=!this.opened,Zt){nt&&Zt&&(this._openedVia=Zt);const Fe=this._setOpen(nt,!nt&&this._isFocusWithinDrawer(),this._openedVia||"program");return nt||(this._openedVia=null),Fe}_setOpen(nt,Zt,Fe){return this._opened=nt,nt?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Zt&&this._restoreFocus(Fe)),this._updateFocusTrapState(),new Promise(yt=>{this.openedChange.pipe((0,A.q)(1)).subscribe(ie=>yt(ie?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(nt){const Zt=this._elementRef.nativeElement,Fe=Zt.parentNode;"end"===nt?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Fe.insertBefore(this._anchor,Zt)),Fe.appendChild(Zt)):this._anchor&&this._anchor.parentNode.insertBefore(Zt,this._anchor)}}return Wt.\u0275fac=function(nt){return new(nt||Wt)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(l.qV),a.\u0275\u0275directiveInject(l.tE),a.\u0275\u0275directiveInject(p.t4),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(l.ic),a.\u0275\u0275directiveInject(n.DOCUMENT,8),a.\u0275\u0275directiveInject(pe,8))},Wt.\u0275cmp=a.\u0275\u0275defineComponent({type:Wt,selectors:[["mat-drawer"]],viewQuery:function(nt,Zt){if(1&nt&&a.\u0275\u0275viewQuery(re,5),2&nt){let Fe;a.\u0275\u0275queryRefresh(Fe=a.\u0275\u0275loadQuery())&&(Zt._content=Fe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(nt,Zt){1&nt&&a.\u0275\u0275syntheticHostListener("@transform.start",function(yt){return Zt._animationStarted.next(yt)})("@transform.done",function(yt){return Zt._animationEnd.next(yt)}),2&nt&&(a.\u0275\u0275attribute("align",null),a.\u0275\u0275syntheticHostProperty("@transform",Zt._animationState),a.\u0275\u0275classProp("mat-drawer-end","end"===Zt.position)("mat-drawer-over","over"===Zt.mode)("mat-drawer-push","push"===Zt.mode)("mat-drawer-side","side"===Zt.mode)("mat-drawer-opened",Zt.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:X,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(nt,Zt){1&nt&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275projection(2),a.\u0275\u0275elementEnd())},dependencies:[e.PQ],encapsulation:2,data:{animation:[T.transformDrawer]},changeDetection:0}),Wt})(),se=(()=>{class Wt{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(nt){this._autosize=(0,s.Ig)(nt)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(nt){this._backdropOverride=null==nt?null:(0,s.Ig)(nt)}get scrollable(){return this._userContent||this._content}constructor(nt,Zt,Fe,yt,ie,Ce=!1,Ie){this._dir=nt,this._element=Zt,this._ngZone=Fe,this._changeDetectorRef=yt,this._animationMode=Ie,this._drawers=new a.QueryList,this.backdropClick=new a.EventEmitter,this._destroyed=new u.x,this._doCheckSubject=new u.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new u.x,nt&&nt.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),ie.change().pipe((0,E.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Ce}ngAfterContentInit(){this._allDrawers.changes.pipe((0,P.O)(this._allDrawers),(0,E.R)(this._destroyed)).subscribe(nt=>{this._drawers.reset(nt.filter(Zt=>!Zt._container||Zt._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,P.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(nt=>{this._watchDrawerToggle(nt),this._watchDrawerPosition(nt),this._watchDrawerMode(nt)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,B.b)(10),(0,E.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(nt=>nt.open())}close(){this._drawers.forEach(nt=>nt.close())}updateContentMargins(){let nt=0,Zt=0;if(this._left&&this._left.opened)if("side"==this._left.mode)nt+=this._left._getWidth();else if("push"==this._left.mode){const Fe=this._left._getWidth();nt+=Fe,Zt-=Fe}if(this._right&&this._right.opened)if("side"==this._right.mode)Zt+=this._right._getWidth();else if("push"==this._right.mode){const Fe=this._right._getWidth();Zt+=Fe,nt-=Fe}nt=nt||null,Zt=Zt||null,(nt!==this._contentMargins.left||Zt!==this._contentMargins.right)&&(this._contentMargins={left:nt,right:Zt},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(nt){nt._animationStarted.pipe((0,y.h)(Zt=>Zt.fromState!==Zt.toState),(0,E.R)(this._drawers.changes)).subscribe(Zt=>{"open-instant"!==Zt.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==nt.mode&&nt.openedChange.pipe((0,E.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(nt.opened))}_watchDrawerPosition(nt){nt&&nt.onPositionChanged.pipe((0,E.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,A.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(nt){nt&&nt._modeChanged.pipe((0,E.R)((0,v.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(nt){const Zt=this._element.nativeElement.classList,Fe="mat-drawer-container-has-open";nt?Zt.add(Fe):Zt.remove(Fe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(nt=>{"end"==nt.position?this._end=nt:this._start=nt}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(nt=>nt&&!nt.disableClose&&this._canHaveBackdrop(nt)).forEach(nt=>nt._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(nt){return"side"!==nt.mode||!!this._backdropOverride}_isDrawerOpen(nt){return null!=nt&&nt.opened}}return Wt.\u0275fac=function(nt){return new(nt||Wt)(a.\u0275\u0275directiveInject(h.Is,8),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(e.rL),a.\u0275\u0275directiveInject(N),a.\u0275\u0275directiveInject(a.ANIMATION_MODULE_TYPE,8))},Wt.\u0275cmp=a.\u0275\u0275defineComponent({type:Wt,selectors:[["mat-drawer-container"]],contentQueries:function(nt,Zt,Fe){if(1&nt&&(a.\u0275\u0275contentQuery(Fe,me,5),a.\u0275\u0275contentQuery(Fe,q,5)),2&nt){let yt;a.\u0275\u0275queryRefresh(yt=a.\u0275\u0275loadQuery())&&(Zt._content=yt.first),a.\u0275\u0275queryRefresh(yt=a.\u0275\u0275loadQuery())&&(Zt._allDrawers=yt)}},viewQuery:function(nt,Zt){if(1&nt&&a.\u0275\u0275viewQuery(me,5),2&nt){let Fe;a.\u0275\u0275queryRefresh(Fe=a.\u0275\u0275loadQuery())&&(Zt._userContent=Fe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(nt,Zt){2&nt&&a.\u0275\u0275classProp("mat-drawer-container-explicit-backdrop",Zt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.\u0275\u0275ProvidersFeature([{provide:pe,useExisting:Wt}])],ngContentSelectors:k,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(nt,Zt){1&nt&&(a.\u0275\u0275projectionDef(K),a.\u0275\u0275template(0,Q,1,2,"div",0),a.\u0275\u0275projection(1),a.\u0275\u0275projection(2,1),a.\u0275\u0275template(3,ae,2,0,"mat-drawer-content",1)),2&nt&&(a.\u0275\u0275property("ngIf",Zt.hasBackdrop),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",!Zt._content))},dependencies:[n.NgIf,me],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Wt})(),ve=(()=>{class Wt extends me{constructor(nt,Zt,Fe,yt,ie){super(nt,Zt,Fe,yt,ie)}}return Wt.\u0275fac=function(nt){return new(nt||Wt)(a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject((0,a.forwardRef)(()=>Ye)),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(e.mF),a.\u0275\u0275directiveInject(a.NgZone))},Wt.\u0275cmp=a.\u0275\u0275defineComponent({type:Wt,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(nt,Zt){2&nt&&a.\u0275\u0275styleProp("margin-left",Zt._container._contentMargins.left,"px")("margin-right",Zt._container._contentMargins.right,"px")},features:[a.\u0275\u0275ProvidersFeature([{provide:e.PQ,useExisting:Wt}]),a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:X,decls:1,vars:0,template:function(nt,Zt){1&nt&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),Wt})(),Ee=(()=>{class Wt extends q{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(nt){this._fixedInViewport=(0,s.Ig)(nt)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(nt){this._fixedTopGap=(0,s.su)(nt)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(nt){this._fixedBottomGap=(0,s.su)(nt)}}return Wt.\u0275fac=function(){let Ut;return function(Zt){return(Ut||(Ut=a.\u0275\u0275getInheritedFactory(Wt)))(Zt||Wt)}}(),Wt.\u0275cmp=a.\u0275\u0275defineComponent({type:Wt,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(nt,Zt){2&nt&&(a.\u0275\u0275attribute("align",null),a.\u0275\u0275styleProp("top",Zt.fixedInViewport?Zt.fixedTopGap:null,"px")("bottom",Zt.fixedInViewport?Zt.fixedBottomGap:null,"px"),a.\u0275\u0275classProp("mat-drawer-end","end"===Zt.position)("mat-drawer-over","over"===Zt.mode)("mat-drawer-push","push"===Zt.mode)("mat-drawer-side","side"===Zt.mode)("mat-drawer-opened",Zt.opened)("mat-sidenav-fixed",Zt.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:X,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(nt,Zt){1&nt&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275projection(2),a.\u0275\u0275elementEnd())},dependencies:[e.PQ],encapsulation:2,data:{animation:[T.transformDrawer]},changeDetection:0}),Wt})(),Ye=(()=>{class Wt extends se{}return Wt.\u0275fac=function(){let Ut;return function(Zt){return(Ut||(Ut=a.\u0275\u0275getInheritedFactory(Wt)))(Zt||Wt)}}(),Wt.\u0275cmp=a.\u0275\u0275defineComponent({type:Wt,selectors:[["mat-sidenav-container"]],contentQueries:function(nt,Zt,Fe){if(1&nt&&(a.\u0275\u0275contentQuery(Fe,ve,5),a.\u0275\u0275contentQuery(Fe,Ee,5)),2&nt){let yt;a.\u0275\u0275queryRefresh(yt=a.\u0275\u0275loadQuery())&&(Zt._content=yt.first),a.\u0275\u0275queryRefresh(yt=a.\u0275\u0275loadQuery())&&(Zt._allDrawers=yt)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(nt,Zt){2&nt&&a.\u0275\u0275classProp("mat-drawer-container-explicit-backdrop",Zt._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.\u0275\u0275ProvidersFeature([{provide:pe,useExisting:Wt}]),a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:U,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(nt,Zt){1&nt&&(a.\u0275\u0275projectionDef(R),a.\u0275\u0275template(0,$,1,2,"div",0),a.\u0275\u0275projection(1),a.\u0275\u0275projection(2,1),a.\u0275\u0275template(3,j,2,0,"mat-sidenav-content",1)),2&nt&&(a.\u0275\u0275property("ngIf",Zt.hasBackdrop),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",!Zt._content))},dependencies:[n.NgIf,ve],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Wt})(),wt=(()=>{class Wt{}return Wt.\u0275fac=function(nt){return new(nt||Wt)},Wt.\u0275mod=a.\u0275\u0275defineNgModule({type:Wt}),Wt.\u0275inj=a.\u0275\u0275defineInjector({imports:[n.CommonModule,t.BQ,e.ZD,e.ZD,t.BQ]}),Wt})()},17009:(oe,x,i)=>{"use strict";i.d(x,{Et:()=>re,OX:()=>E,Ve:()=>j,qD:()=>D,rA:()=>R,xi:()=>ae});var e=i(94650),n=i(77579),a=i(36895),t=i(37340),l=i(84080),h=i(83353),s=i(95698),d=i(82722),p=i(12687),u=i(62289),g=i(98184);const S=Math.pow(2,31)-1;class E{constructor(T,H){this._overlayRef=H,this._afterDismissed=new n.x,this._afterOpened=new n.x,this._onAction=new n.x,this._dismissedByAction=!1,this.containerInstance=T,T._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(T){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(T,S))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const D=new e.InjectionToken("MatSnackBarData");class A{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const re={snackBarState:(0,t.X$)("state",[(0,t.SB)("void, hidden",(0,t.oB)({transform:"scale(0.8)",opacity:0})),(0,t.SB)("visible",(0,t.oB)({transform:"scale(1)",opacity:1})),(0,t.eR)("* => visible",(0,t.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,t.eR)("* => void, * => hidden",(0,t.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,t.oB)({opacity:0})))])};let Q=0,ae=(()=>{class le extends l.en{constructor(H,N,pe,de,me){super(),this._ngZone=H,this._elementRef=N,this._changeDetectorRef=pe,this._platform=de,this.snackBarConfig=me,this._document=(0,e.inject)(a.DOCUMENT),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new n.x,this._onExit=new n.x,this._onEnter=new n.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+Q++,this.attachDomPortal=q=>{this._assertNotAttached();const se=this._portalOutlet.attachDomPortal(q);return this._afterPortalAttached(),se},this._live="assertive"!==me.politeness||me.announcementMessage?"off"===me.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(H){this._assertNotAttached();const N=this._portalOutlet.attachComponentPortal(H);return this._afterPortalAttached(),N}attachTemplatePortal(H){this._assertNotAttached();const N=this._portalOutlet.attachTemplatePortal(H);return this._afterPortalAttached(),N}onAnimationEnd(H){const{fromState:N,toState:pe}=H;if(("void"===pe&&"void"!==N||"hidden"===pe)&&this._completeExit(),"visible"===pe){const de=this._onEnter;this._ngZone.run(()=>{de.next(),de.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,s.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const H=this._elementRef.nativeElement,N=this.snackBarConfig.panelClass;N&&(Array.isArray(N)?N.forEach(pe=>H.classList.add(pe)):H.classList.add(N)),this._exposeToModals()}_exposeToModals(){const H=this._liveElementId,N=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let pe=0;pe<N.length;pe++){const de=N[pe],me=de.getAttribute("aria-owns");this._trackedModals.add(de),me?-1===me.indexOf(H)&&de.setAttribute("aria-owns",me+" "+H):de.setAttribute("aria-owns",H)}}_clearFromModals(){this._trackedModals.forEach(H=>{const N=H.getAttribute("aria-owns");if(N){const pe=N.replace(this._liveElementId,"").trim();pe.length>0?H.setAttribute("aria-owns",pe):H.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const H=this._elementRef.nativeElement.querySelector("[aria-hidden]"),N=this._elementRef.nativeElement.querySelector("[aria-live]");if(H&&N){let pe=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&H.contains(document.activeElement)&&(pe=document.activeElement),H.removeAttribute("aria-hidden"),N.appendChild(H),pe?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return le.\u0275fac=function(H){return new(H||le)(e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(h.t4),e.\u0275\u0275directiveInject(A))},le.\u0275dir=e.\u0275\u0275defineDirective({type:le,viewQuery:function(H,N){if(1&H&&e.\u0275\u0275viewQuery(l.Pl,7),2&H){let pe;e.\u0275\u0275queryRefresh(pe=e.\u0275\u0275loadQuery())&&(N._portalOutlet=pe.first)}},features:[e.\u0275\u0275InheritDefinitionFeature]}),le})();const j=new e.InjectionToken("mat-snack-bar-default-options",{providedIn:"root",factory:function $(){return new A}});let R=(()=>{class le{get _openedSnackBarRef(){const H=this._parentSnackBar;return H?H._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(H){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=H:this._snackBarRefAtThisLevel=H}constructor(H,N,pe,de,me,q){this._overlay=H,this._live=N,this._injector=pe,this._breakpointObserver=de,this._parentSnackBar=me,this._defaultConfig=q,this._snackBarRefAtThisLevel=null}openFromComponent(H,N){return this._attach(H,N)}openFromTemplate(H,N){return this._attach(H,N)}open(H,N="",pe){const de={...this._defaultConfig,...pe};return de.data={message:H,action:N},de.announcementMessage===H&&(de.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,de)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(H,N){const de=e.Injector.create({parent:N&&N.viewContainerRef&&N.viewContainerRef.injector||this._injector,providers:[{provide:A,useValue:N}]}),me=new l.C5(this.snackBarContainerComponent,N.viewContainerRef,de),q=H.attach(me);return q.instance.snackBarConfig=N,q.instance}_attach(H,N){const pe={...new A,...this._defaultConfig,...N},de=this._createOverlay(pe),me=this._attachSnackBarContainer(de,pe),q=new E(me,de);if(H instanceof e.TemplateRef){const se=new l.UE(H,null,{$implicit:pe.data,snackBarRef:q});q.instance=me.attachTemplatePortal(se)}else{const se=this._createInjector(pe,q),ve=new l.C5(H,void 0,se),Ee=me.attachComponentPortal(ve);q.instance=Ee.instance}return this._breakpointObserver.observe(u.u3.HandsetPortrait).pipe((0,d.R)(de.detachments())).subscribe(se=>{de.overlayElement.classList.toggle(this.handsetCssClass,se.matches)}),pe.announcementMessage&&me._onAnnounce.subscribe(()=>{this._live.announce(pe.announcementMessage,pe.politeness)}),this._animateSnackBar(q,pe),this._openedSnackBarRef=q,this._openedSnackBarRef}_animateSnackBar(H,N){H.afterDismissed().subscribe(()=>{this._openedSnackBarRef==H&&(this._openedSnackBarRef=null),N.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{H.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):H.containerInstance.enter(),N.duration&&N.duration>0&&H.afterOpened().subscribe(()=>H._dismissAfter(N.duration))}_createOverlay(H){const N=new g.X_;N.direction=H.direction;let pe=this._overlay.position().global();const de="rtl"===H.direction,me="left"===H.horizontalPosition||"start"===H.horizontalPosition&&!de||"end"===H.horizontalPosition&&de,q=!me&&"center"!==H.horizontalPosition;return me?pe.left("0"):q?pe.right("0"):pe.centerHorizontally(),"top"===H.verticalPosition?pe.top("0"):pe.bottom("0"),N.positionStrategy=pe,this._overlay.create(N)}_createInjector(H,N){return e.Injector.create({parent:H&&H.viewContainerRef&&H.viewContainerRef.injector||this._injector,providers:[{provide:E,useValue:N},{provide:D,useValue:H.data}]})}}return le.\u0275fac=function(H){return new(H||le)(e.\u0275\u0275inject(g.aV),e.\u0275\u0275inject(p.Kd),e.\u0275\u0275inject(e.Injector),e.\u0275\u0275inject(u.Yg),e.\u0275\u0275inject(le,12),e.\u0275\u0275inject(j))},le.\u0275prov=e.\u0275\u0275defineInjectable({token:le,factory:le.\u0275fac}),le})()},96308:(oe,x,i)=>{"use strict";i.d(x,{JX:()=>$,YE:()=>P,nU:()=>k});var e=i(94650),n=i(12687),a=i(21281),t=i(29521),l=i(3238),h=i(77579),s=i(56451),d=i(37340),p=i(36895);const u=["mat-sort-header",""];function g(j,R){if(1&j){const U=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",3),e.\u0275\u0275listener("@arrowPosition.start",function(){e.\u0275\u0275restoreView(U);const T=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(T._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.\u0275\u0275restoreView(U);const T=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(T._disableViewStateAnimation=!1)}),e.\u0275\u0275element(1,"div",4),e.\u0275\u0275elementStart(2,"div",5),e.\u0275\u0275element(3,"div",6)(4,"div",7)(5,"div",8),e.\u0275\u0275elementEnd()()}if(2&j){const U=e.\u0275\u0275nextContext();e.\u0275\u0275property("@arrowOpacity",U._getArrowViewState())("@arrowPosition",U._getArrowViewState())("@allowChildren",U._getArrowDirectionState()),e.\u0275\u0275advance(2),e.\u0275\u0275property("@indicator",U._getArrowDirectionState()),e.\u0275\u0275advance(1),e.\u0275\u0275property("@leftPointer",U._getArrowDirectionState()),e.\u0275\u0275advance(1),e.\u0275\u0275property("@rightPointer",U._getArrowDirectionState())}}const v=["*"],D=new e.InjectionToken("MAT_SORT_DEFAULT_OPTIONS"),A=(0,l.dB)((0,l.Id)(class{}));let P=(()=>{class j extends A{get direction(){return this._direction}set direction(U){this._direction=U}get disableClear(){return this._disableClear}set disableClear(U){this._disableClear=(0,a.Ig)(U)}constructor(U){super(),this._defaultOptions=U,this.sortables=new Map,this._stateChanges=new h.x,this.start="asc",this._direction="",this.sortChange=new e.EventEmitter}register(U){this.sortables.set(U.id,U)}deregister(U){this.sortables.delete(U.id)}sort(U){this.active!=U.id?(this.active=U.id,this.direction=U.start?U.start:this.start):this.direction=this.getNextSortDirection(U),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(U){if(!U)return"";let T=function B(j,R){let U=["asc","desc"];return"desc"==j&&U.reverse(),R||U.push(""),U}(U.start||this.start,U?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),H=T.indexOf(this.direction)+1;return H>=T.length&&(H=0),T[H]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return j.\u0275fac=function(U){return new(U||j)(e.\u0275\u0275directiveInject(D,8))},j.\u0275dir=e.\u0275\u0275defineDirective({type:j,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.\u0275\u0275InheritDefinitionFeature,e.\u0275\u0275NgOnChangesFeature]}),j})();const V=l.mZ.ENTERING+" "+l.yN.STANDARD_CURVE,X={indicator:(0,d.X$)("indicator",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"translateY(0px)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"translateY(10px)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(V))]),leftPointer:(0,d.X$)("leftPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(V))]),rightPointer:(0,d.X$)("rightPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(V))]),arrowOpacity:(0,d.X$)("arrowOpacity",[(0,d.SB)("desc-to-active, asc-to-active, active",(0,d.oB)({opacity:1})),(0,d.SB)("desc-to-hint, asc-to-hint, hint",(0,d.oB)({opacity:.54})),(0,d.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,d.oB)({opacity:0})),(0,d.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,d.jt)("0ms")),(0,d.eR)("* <=> *",(0,d.jt)(V))]),arrowPosition:(0,d.X$)("arrowPosition",[(0,d.eR)("* => desc-to-hint, * => desc-to-active",(0,d.jt)(V,(0,d.F4)([(0,d.oB)({transform:"translateY(-25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-desc, * => active-to-desc",(0,d.jt)(V,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(25%)"})]))),(0,d.eR)("* => asc-to-hint, * => asc-to-active",(0,d.jt)(V,(0,d.F4)([(0,d.oB)({transform:"translateY(25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-asc, * => active-to-asc",(0,d.jt)(V,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(-25%)"})]))),(0,d.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,d.oB)({transform:"translateY(0)"})),(0,d.SB)("hint-to-desc, active-to-desc, desc",(0,d.oB)({transform:"translateY(-25%)"})),(0,d.SB)("hint-to-asc, active-to-asc, asc",(0,d.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,d.X$)("allowChildren",[(0,d.eR)("* <=> *",[(0,d.IO)("@*",(0,d.pV)(),{optional:!0})])])};let re=(()=>{class j{constructor(){this.changes=new h.x}}return j.\u0275fac=function(U){return new(U||j)},j.\u0275prov=e.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac,providedIn:"root"}),j})();const ae={provide:re,deps:[[new e.Optional,new e.SkipSelf,re]],useFactory:function Q(j){return j||new re}},K=(0,l.Id)(class{});let k=(()=>{class j extends K{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(U){this._updateSortActionDescription(U)}get disableClear(){return this._disableClear}set disableClear(U){this._disableClear=(0,a.Ig)(U)}constructor(U,le,T,H,N,pe,de,me){super(),this._intl=U,this._changeDetectorRef=le,this._sort=T,this._columnDef=H,this._focusMonitor=N,this._elementRef=pe,this._ariaDescriber=de,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",me?.arrowPosition&&(this.arrowPosition=me?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(U=>{const le=!!U;le!==this._showIndicatorHint&&(this._setIndicatorHintVisible(le),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(U){this._isDisabled()&&U||(this._showIndicatorHint=U,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(U){this._viewState=U||{},this._disableViewStateAnimation&&(this._viewState={toState:U.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(U){!this._isDisabled()&&(U.keyCode===t.L_||U.keyCode===t.K5)&&(U.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const U=this._viewState.fromState;return(U?`${U}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(U){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,U)),this._sortActionDescription=U}_handleStateChanges(){this._rerenderSubscription=(0,s.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return j.\u0275fac=function(U){return new(U||j)(e.\u0275\u0275directiveInject(re),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(P,8),e.\u0275\u0275directiveInject("MAT_SORT_HEADER_COLUMN_DEF",8),e.\u0275\u0275directiveInject(n.tE),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.$s,8),e.\u0275\u0275directiveInject(D,8))},j.\u0275cmp=e.\u0275\u0275defineComponent({type:j,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(U,le){1&U&&e.\u0275\u0275listener("click",function(){return le._handleClick()})("keydown",function(H){return le._handleKeydown(H)})("mouseenter",function(){return le._setIndicatorHintVisible(!0)})("mouseleave",function(){return le._setIndicatorHintVisible(!1)}),2&U&&(e.\u0275\u0275attribute("aria-sort",le._getAriaSortAttribute()),e.\u0275\u0275classProp("mat-sort-header-disabled",le._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.\u0275\u0275InheritDefinitionFeature],attrs:u,ngContentSelectors:v,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(U,le){1&U&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275projection(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,g,6,6,"div",2),e.\u0275\u0275elementEnd()),2&U&&(e.\u0275\u0275classProp("mat-sort-header-sorted",le._isSorted())("mat-sort-header-position-before","before"===le.arrowPosition),e.\u0275\u0275attribute("tabindex",le._isDisabled()?null:0)("role",le._isDisabled()?null:"button"),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",le._renderArrow()))},dependencies:[p.NgIf],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[X.indicator,X.leftPointer,X.rightPointer,X.arrowOpacity,X.arrowPosition,X.allowChildren]},changeDetection:0}),j})(),$=(()=>{class j{}return j.\u0275fac=function(U){return new(U||j)},j.\u0275mod=e.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=e.\u0275\u0275defineInjector({providers:[ae],imports:[p.CommonModule,l.BQ]}),j})()},86257:(oe,x,i)=>{"use strict";i.d(x,{C0:()=>mt,Vq:()=>It,T5:()=>Jt,Ic:()=>xn});var e=i(84080),n=i(12687),a=i(40445),t=i(21281),l=i(29521),h=i(94650),s=i(83353),d=i(77579),p=i(39646),u=i(68675),g=i(82722);function v(ke,Ae){1&ke&&h.\u0275\u0275projection(0)}const y=["*"];let b=(()=>{class ke{constructor(ze){this._elementRef=ze}focus(){this._elementRef.nativeElement.focus()}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject(h.ElementRef))},ke.\u0275dir=h.\u0275\u0275defineDirective({type:ke,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),ke})(),S=(()=>{class ke{constructor(ze){this.template=ze}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject(h.TemplateRef))},ke.\u0275dir=h.\u0275\u0275defineDirective({type:ke,selectors:[["","cdkStepLabel",""]]}),ke})(),E=0;const P=new h.InjectionToken("STEPPER_GLOBAL_OPTIONS");let B=(()=>{class ke{get editable(){return this._editable}set editable(ze){this._editable=(0,t.Ig)(ze)}get optional(){return this._optional}set optional(ze){this._optional=(0,t.Ig)(ze)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(ze){this._completedOverride=(0,t.Ig)(ze)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(ze){this._customError=(0,t.Ig)(ze)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(ze,pt){this._stepper=ze,this.interacted=!1,this.interactedStream=new h.EventEmitter,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=pt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject((0,h.forwardRef)(()=>V)),h.\u0275\u0275directiveInject(P,8))},ke.\u0275cmp=h.\u0275\u0275defineComponent({type:ke,selectors:[["cdk-step"]],contentQueries:function(ze,pt,tn){if(1&ze&&h.\u0275\u0275contentQuery(tn,S,5),2&ze){let ot;h.\u0275\u0275queryRefresh(ot=h.\u0275\u0275loadQuery())&&(pt.stepLabel=ot.first)}},viewQuery:function(ze,pt){if(1&ze&&h.\u0275\u0275viewQuery(h.TemplateRef,7),2&ze){let tn;h.\u0275\u0275queryRefresh(tn=h.\u0275\u0275loadQuery())&&(pt.content=tn.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[h.\u0275\u0275NgOnChangesFeature],ngContentSelectors:y,decls:1,vars:0,template:function(ze,pt){1&ze&&(h.\u0275\u0275projectionDef(),h.\u0275\u0275template(0,v,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),ke})(),V=(()=>{class ke{get linear(){return this._linear}set linear(ze){this._linear=(0,t.Ig)(ze)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ze){const pt=(0,t.su)(ze);this.steps&&this._steps?(this._isValidIndex(pt),this.selected?._markAsInteracted(),this._selectedIndex!==pt&&!this._anyControlsInvalidOrPending(pt)&&(pt>=this._selectedIndex||this.steps.toArray()[pt].editable)&&this._updateSelectedItemIndex(pt)):this._selectedIndex=pt}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ze){this.selectedIndex=ze&&this.steps?this.steps.toArray().indexOf(ze):-1}get orientation(){return this._orientation}set orientation(ze){this._orientation=ze,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ze)}constructor(ze,pt,tn){this._dir=ze,this._changeDetectorRef=pt,this._elementRef=tn,this._destroyed=new d.x,this.steps=new h.QueryList,this._sortedHeaders=new h.QueryList,this._linear=!1,this._selectedIndex=0,this.selectionChange=new h.EventEmitter,this._orientation="horizontal",this._groupId=E++}ngAfterContentInit(){this._steps.changes.pipe((0,u.O)(this._steps),(0,g.R)(this._destroyed)).subscribe(ze=>{this.steps.reset(ze.filter(pt=>pt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,u.O)(this._stepHeader),(0,g.R)(this._destroyed)).subscribe(ze=>{this._sortedHeaders.reset(ze.toArray().sort((pt,tn)=>pt._elementRef.nativeElement.compareDocumentPosition(tn._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new n.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,p.of)()).pipe((0,u.O)(this._layoutDirection()),(0,g.R)(this._destroyed)).subscribe(ze=>this._keyManager.withHorizontalOrientation(ze)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(ze=>ze.reset()),this._stateChanged()}_getStepLabelId(ze){return`cdk-step-label-${this._groupId}-${ze}`}_getStepContentId(ze){return`cdk-step-content-${this._groupId}-${ze}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ze){const pt=ze-this._selectedIndex;return pt<0?"rtl"===this._layoutDirection()?"next":"previous":pt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ze,pt="number"){const tn=this.steps.toArray()[ze],ot=this._isCurrentStep(ze);return tn._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(tn,ot):this._getGuidelineLogic(tn,ot,pt)}_getDefaultIndicatorLogic(ze,pt){return ze._showError()&&ze.hasError&&!pt?"error":!ze.completed||pt?"number":ze.editable?"edit":"done"}_getGuidelineLogic(ze,pt,tn="number"){return ze._showError()&&ze.hasError&&!pt?"error":ze.completed&&!pt?"done":ze.completed&&pt?tn:ze.editable&&pt?"edit":tn}_isCurrentStep(ze){return this._selectedIndex===ze}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ze){const pt=this.steps.toArray();this.selectionChange.emit({selectedIndex:ze,previouslySelectedIndex:this._selectedIndex,selectedStep:pt[ze],previouslySelectedStep:pt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ze):this._keyManager.updateActiveItem(ze),this._selectedIndex=ze,this._stateChanged()}_onKeydown(ze){const pt=(0,l.Vb)(ze),tn=ze.keyCode,ot=this._keyManager;null==ot.activeItemIndex||pt||tn!==l.L_&&tn!==l.K5?ot.setFocusOrigin("keyboard").onKeydown(ze):(this.selectedIndex=ot.activeItemIndex,ze.preventDefault())}_anyControlsInvalidOrPending(ze){return!!(this._linear&&ze>=0)&&this.steps.toArray().slice(0,ze).some(pt=>{const tn=pt.stepControl;return(tn?tn.invalid||tn.pending||!pt.interacted:!pt.completed)&&!pt.optional&&!pt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ze=this._elementRef.nativeElement,pt=(0,s.ht)();return ze===pt||ze.contains(pt)}_isValidIndex(ze){return ze>-1&&(!this.steps||ze<this.steps.length)}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject(a.Is,8),h.\u0275\u0275directiveInject(h.ChangeDetectorRef),h.\u0275\u0275directiveInject(h.ElementRef))},ke.\u0275dir=h.\u0275\u0275defineDirective({type:ke,selectors:[["","cdkStepper",""]],contentQueries:function(ze,pt,tn){if(1&ze&&(h.\u0275\u0275contentQuery(tn,B,5),h.\u0275\u0275contentQuery(tn,b,5)),2&ze){let ot;h.\u0275\u0275queryRefresh(ot=h.\u0275\u0275loadQuery())&&(pt._steps=ot),h.\u0275\u0275queryRefresh(ot=h.\u0275\u0275loadQuery())&&(pt._stepHeader=ot)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),ke})(),X=(()=>{class ke{constructor(ze){this._stepper=ze,this.type="submit"}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject(V))},ke.\u0275dir=h.\u0275\u0275defineDirective({type:ke,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(ze,pt){1&ze&&h.\u0275\u0275listener("click",function(){return pt._stepper.next()}),2&ze&&h.\u0275\u0275hostProperty("type",pt.type)},inputs:{type:"type"}}),ke})(),Q=(()=>{class ke{}return ke.\u0275fac=function(ze){return new(ze||ke)},ke.\u0275mod=h.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=h.\u0275\u0275defineInjector({imports:[a.vT]}),ke})();var ae=i(36895),K=i(3238),k=i(97392),$=i(50727),j=i(63900),R=i(54004),U=i(71884),le=i(37340);function T(ke,Ae){if(1&ke&&h.\u0275\u0275elementContainer(0,8),2&ke){const ze=h.\u0275\u0275nextContext();h.\u0275\u0275property("ngTemplateOutlet",ze.iconOverrides[ze.state])("ngTemplateOutletContext",ze._getIconContext())}}function H(ke,Ae){if(1&ke&&(h.\u0275\u0275elementStart(0,"span",13),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ke){const ze=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(ze._getDefaultTextForState(ze.state))}}function N(ke,Ae){if(1&ke&&(h.\u0275\u0275elementStart(0,"span",14),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ke){const ze=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(ze._intl.completedLabel)}}function pe(ke,Ae){if(1&ke&&(h.\u0275\u0275elementStart(0,"span",14),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ke){const ze=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(ze._intl.editableLabel)}}function de(ke,Ae){if(1&ke&&(h.\u0275\u0275elementStart(0,"mat-icon",13),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ke){const ze=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(ze._getDefaultTextForState(ze.state))}}function me(ke,Ae){if(1&ke&&(h.\u0275\u0275elementContainerStart(0,9),h.\u0275\u0275template(1,H,2,1,"span",10),h.\u0275\u0275template(2,N,2,1,"span",11),h.\u0275\u0275template(3,pe,2,1,"span",11),h.\u0275\u0275template(4,de,2,1,"mat-icon",12),h.\u0275\u0275elementContainerEnd()),2&ke){const ze=h.\u0275\u0275nextContext();h.\u0275\u0275property("ngSwitch",ze.state),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","number"),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf","done"===ze.state),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf","edit"===ze.state)}}function q(ke,Ae){if(1&ke&&(h.\u0275\u0275elementStart(0,"div",15),h.\u0275\u0275elementContainer(1,16),h.\u0275\u0275elementEnd()),2&ke){const ze=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275property("ngTemplateOutlet",ze._templateLabel().template)}}function se(ke,Ae){if(1&ke&&(h.\u0275\u0275elementStart(0,"div",15),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ke){const ze=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(ze.label)}}function ve(ke,Ae){if(1&ke&&(h.\u0275\u0275elementStart(0,"div",17),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ke){const ze=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(ze._intl.optionalLabel)}}function Ee(ke,Ae){if(1&ke&&(h.\u0275\u0275elementStart(0,"div",18),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ke){const ze=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(ze.errorMessage)}}function Ye(ke,Ae){}function wt(ke,Ae){if(1&ke&&(h.\u0275\u0275projection(0),h.\u0275\u0275template(1,Ye,0,0,"ng-template",0)),2&ke){const ze=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275property("cdkPortalOutlet",ze._portal)}}const Wt=["*"];function Ut(ke,Ae){1&ke&&h.\u0275\u0275element(0,"div",11)}const nt=function(ke,Ae){return{step:ke,i:Ae}};function Zt(ke,Ae){if(1&ke&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275elementContainer(1,9),h.\u0275\u0275template(2,Ut,1,0,"div",10),h.\u0275\u0275elementContainerEnd()),2&ke){const ze=Ae.$implicit,pt=Ae.index,tn=Ae.last;h.\u0275\u0275nextContext(2);const ot=h.\u0275\u0275reference(4);h.\u0275\u0275advance(1),h.\u0275\u0275property("ngTemplateOutlet",ot)("ngTemplateOutletContext",h.\u0275\u0275pureFunction2(3,nt,ze,pt)),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",!tn)}}const Fe=function(ke){return{animationDuration:ke}},yt=function(ke,Ae){return{value:ke,params:Ae}};function ie(ke,Ae){if(1&ke){const ze=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"div",12),h.\u0275\u0275listener("@horizontalStepTransition.done",function(tn){h.\u0275\u0275restoreView(ze);const ot=h.\u0275\u0275nextContext(2);return h.\u0275\u0275resetView(ot._animationDone.next(tn))}),h.\u0275\u0275elementContainer(1,13),h.\u0275\u0275elementEnd()}if(2&ke){const ze=Ae.$implicit,pt=Ae.index,tn=h.\u0275\u0275nextContext(2);h.\u0275\u0275classProp("mat-horizontal-stepper-content-inactive",tn.selectedIndex!==pt),h.\u0275\u0275property("@horizontalStepTransition",h.\u0275\u0275pureFunction2(8,yt,tn._getAnimationDirection(pt),h.\u0275\u0275pureFunction1(6,Fe,tn._getAnimationDuration())))("id",tn._getStepContentId(pt)),h.\u0275\u0275attribute("aria-labelledby",tn._getStepLabelId(pt)),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngTemplateOutlet",ze.content)}}function Ce(ke,Ae){if(1&ke&&(h.\u0275\u0275elementStart(0,"div",4)(1,"div",5),h.\u0275\u0275template(2,Zt,3,6,"ng-container",6),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"div",7),h.\u0275\u0275template(4,ie,2,11,"div",8),h.\u0275\u0275elementEnd()()),2&ke){const ze=h.\u0275\u0275nextContext();h.\u0275\u0275advance(2),h.\u0275\u0275property("ngForOf",ze.steps),h.\u0275\u0275advance(2),h.\u0275\u0275property("ngForOf",ze.steps)}}function Ie(ke,Ae){if(1&ke){const ze=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"div",15),h.\u0275\u0275elementContainer(1,9),h.\u0275\u0275elementStart(2,"div",16)(3,"div",17),h.\u0275\u0275listener("@verticalStepTransition.done",function(tn){h.\u0275\u0275restoreView(ze);const ot=h.\u0275\u0275nextContext(2);return h.\u0275\u0275resetView(ot._animationDone.next(tn))}),h.\u0275\u0275elementStart(4,"div",18),h.\u0275\u0275elementContainer(5,13),h.\u0275\u0275elementEnd()()()()}if(2&ke){const ze=Ae.$implicit,pt=Ae.index,tn=Ae.last,ot=h.\u0275\u0275nextContext(2),Et=h.\u0275\u0275reference(4);h.\u0275\u0275advance(1),h.\u0275\u0275property("ngTemplateOutlet",Et)("ngTemplateOutletContext",h.\u0275\u0275pureFunction2(10,nt,ze,pt)),h.\u0275\u0275advance(1),h.\u0275\u0275classProp("mat-stepper-vertical-line",!tn),h.\u0275\u0275advance(1),h.\u0275\u0275classProp("mat-vertical-stepper-content-inactive",ot.selectedIndex!==pt),h.\u0275\u0275property("@verticalStepTransition",h.\u0275\u0275pureFunction2(15,yt,ot._getAnimationDirection(pt),h.\u0275\u0275pureFunction1(13,Fe,ot._getAnimationDuration())))("id",ot._getStepContentId(pt)),h.\u0275\u0275attribute("aria-labelledby",ot._getStepLabelId(pt)),h.\u0275\u0275advance(2),h.\u0275\u0275property("ngTemplateOutlet",ze.content)}}function dt(ke,Ae){if(1&ke&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275template(1,Ie,6,18,"div",14),h.\u0275\u0275elementContainerEnd()),2&ke){const ze=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275property("ngForOf",ze.steps)}}function Mt(ke,Ae){if(1&ke){const ze=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"mat-step-header",19),h.\u0275\u0275listener("click",function(){const ot=h.\u0275\u0275restoreView(ze).step;return h.\u0275\u0275resetView(ot.select())})("keydown",function(tn){h.\u0275\u0275restoreView(ze);const ot=h.\u0275\u0275nextContext();return h.\u0275\u0275resetView(ot._onKeydown(tn))}),h.\u0275\u0275elementEnd()}if(2&ke){const ze=Ae.step,pt=Ae.i,tn=h.\u0275\u0275nextContext();h.\u0275\u0275classProp("mat-horizontal-stepper-header","horizontal"===tn.orientation)("mat-vertical-stepper-header","vertical"===tn.orientation),h.\u0275\u0275property("tabIndex",tn._getFocusIndex()===pt?0:-1)("id",tn._getStepLabelId(pt))("index",pt)("state",tn._getIndicatorType(pt,ze.state))("label",ze.stepLabel||ze.label)("selected",tn.selectedIndex===pt)("active",tn._stepIsNavigable(pt,ze))("optional",ze.optional)("errorMessage",ze.errorMessage)("iconOverrides",tn._iconOverrides)("disableRipple",tn.disableRipple||!tn._stepIsNavigable(pt,ze))("color",ze.color||tn.color),h.\u0275\u0275attribute("aria-posinset",pt+1)("aria-setsize",tn.steps.length)("aria-controls",tn._getStepContentId(pt))("aria-selected",tn.selectedIndex==pt)("aria-label",ze.ariaLabel||null)("aria-labelledby",!ze.ariaLabel&&ze.ariaLabelledby?ze.ariaLabelledby:null)("aria-disabled",!tn._stepIsNavigable(pt,ze)||null)}}let Xt=(()=>{class ke extends S{}return ke.\u0275fac=function(){let Ae;return function(pt){return(Ae||(Ae=h.\u0275\u0275getInheritedFactory(ke)))(pt||ke)}}(),ke.\u0275dir=h.\u0275\u0275defineDirective({type:ke,selectors:[["","matStepLabel",""]],features:[h.\u0275\u0275InheritDefinitionFeature]}),ke})(),en=(()=>{class ke{constructor(){this.changes=new d.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ke.\u0275fac=function(ze){return new(ze||ke)},ke.\u0275prov=h.\u0275\u0275defineInjectable({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const xt={provide:en,deps:[[new h.Optional,new h.SkipSelf,en]],useFactory:function vt(ke){return ke||new en}},zt=(0,K.pj)(class extends b{constructor(Ae){super(Ae)}},"primary");let bt=(()=>{class ke extends zt{constructor(ze,pt,tn,ot){super(tn),this._intl=ze,this._focusMonitor=pt,this._intlSubscription=ze.changes.subscribe(()=>ot.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(ze,pt){ze?this._focusMonitor.focusVia(this._elementRef,ze,pt):this._elementRef.nativeElement.focus(pt)}_stringLabel(){return this.label instanceof Xt?null:this.label}_templateLabel(){return this.label instanceof Xt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(ze){return"number"==ze?`${this.index+1}`:"edit"==ze?"create":"error"==ze?"warning":ze}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject(en),h.\u0275\u0275directiveInject(n.tE),h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(h.ChangeDetectorRef))},ke.\u0275cmp=h.\u0275\u0275defineComponent({type:ke,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[h.\u0275\u0275InheritDefinitionFeature],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(ze,pt){1&ze&&(h.\u0275\u0275element(0,"div",0),h.\u0275\u0275elementStart(1,"div")(2,"div",1),h.\u0275\u0275template(3,T,1,2,"ng-container",2),h.\u0275\u0275template(4,me,5,4,"ng-container",3),h.\u0275\u0275elementEnd()(),h.\u0275\u0275elementStart(5,"div",4),h.\u0275\u0275template(6,q,2,1,"div",5),h.\u0275\u0275template(7,se,2,1,"div",5),h.\u0275\u0275template(8,ve,2,1,"div",6),h.\u0275\u0275template(9,Ee,2,1,"div",7),h.\u0275\u0275elementEnd()),2&ze&&(h.\u0275\u0275property("matRippleTrigger",pt._getHostElement())("matRippleDisabled",pt.disableRipple),h.\u0275\u0275advance(1),h.\u0275\u0275classMapInterpolate1("mat-step-icon-state-",pt.state," mat-step-icon"),h.\u0275\u0275classProp("mat-step-icon-selected",pt.selected),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitch",!(!pt.iconOverrides||!pt.iconOverrides[pt.state])),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase",!0),h.\u0275\u0275advance(2),h.\u0275\u0275classProp("mat-step-label-active",pt.active)("mat-step-label-selected",pt.selected)("mat-step-label-error","error"==pt.state),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",pt._templateLabel()),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",pt._stringLabel()),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",pt.optional&&"error"!=pt.state),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf","error"==pt.state))},dependencies:[ae.NgIf,ae.NgTemplateOutlet,ae.NgSwitch,ae.NgSwitchCase,ae.NgSwitchDefault,k.Hw,K.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),ke})();const Xe={horizontalStepTransition:(0,le.X$)("horizontalStepTransition",[(0,le.SB)("previous",(0,le.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,le.SB)("current",(0,le.oB)({transform:"none",visibility:"inherit"})),(0,le.SB)("next",(0,le.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,le.eR)("* => *",(0,le.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,le.X$)("verticalStepTransition",[(0,le.SB)("previous",(0,le.oB)({height:"0px",visibility:"hidden"})),(0,le.SB)("next",(0,le.oB)({height:"0px",visibility:"hidden"})),(0,le.SB)("current",(0,le.oB)({height:"*",visibility:"inherit"})),(0,le.eR)("* <=> current",(0,le.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let Pe=(()=>{class ke{constructor(ze){this.templateRef=ze}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject(h.TemplateRef))},ke.\u0275dir=h.\u0275\u0275defineDirective({type:ke,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ke})(),Ve=(()=>{class ke{constructor(ze){this._template=ze}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject(h.TemplateRef))},ke.\u0275dir=h.\u0275\u0275defineDirective({type:ke,selectors:[["ng-template","matStepContent",""]]}),ke})(),mt=(()=>{class ke extends B{constructor(ze,pt,tn,ot){super(ze,ot),this._errorStateMatcher=pt,this._viewContainerRef=tn,this._isSelected=$.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,j.w)(()=>this._stepper.selectionChange.pipe((0,R.U)(ze=>ze.selectedStep===this),(0,u.O)(this._stepper.selected===this)))).subscribe(ze=>{ze&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(ze,pt){return this._errorStateMatcher.isErrorState(ze,pt)||!!(ze&&ze.invalid&&this.interacted)}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject((0,h.forwardRef)(()=>It)),h.\u0275\u0275directiveInject(K.rD,4),h.\u0275\u0275directiveInject(h.ViewContainerRef),h.\u0275\u0275directiveInject(P,8))},ke.\u0275cmp=h.\u0275\u0275defineComponent({type:ke,selectors:[["mat-step"]],contentQueries:function(ze,pt,tn){if(1&ze&&(h.\u0275\u0275contentQuery(tn,Xt,5),h.\u0275\u0275contentQuery(tn,Ve,5)),2&ze){let ot;h.\u0275\u0275queryRefresh(ot=h.\u0275\u0275loadQuery())&&(pt.stepLabel=ot.first),h.\u0275\u0275queryRefresh(ot=h.\u0275\u0275loadQuery())&&(pt._lazyContent=ot.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[h.\u0275\u0275ProvidersFeature([{provide:K.rD,useExisting:ke},{provide:B,useExisting:ke}]),h.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Wt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ze,pt){1&ze&&(h.\u0275\u0275projectionDef(),h.\u0275\u0275template(0,wt,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),ke})(),It=(()=>{class ke extends V{get animationDuration(){return this._animationDuration}set animationDuration(ze){this._animationDuration=/^\d+$/.test(ze)?ze+"ms":ze}constructor(ze,pt,tn){super(ze,pt,tn),this.steps=new h.QueryList,this.animationDone=new h.EventEmitter,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new d.x,this._animationDuration="";const ot=tn.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ot?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:ze,templateRef:pt})=>this._iconOverrides[ze]=pt),this.steps.changes.pipe((0,g.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,U.x)((ze,pt)=>ze.fromState===pt.fromState&&ze.toState===pt.toState),(0,g.R)(this._destroyed)).subscribe(ze=>{"current"===ze.toState&&this.animationDone.emit()})}_stepIsNavigable(ze,pt){return pt.completed||this.selectedIndex===ze||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return ke.\u0275fac=function(ze){return new(ze||ke)(h.\u0275\u0275directiveInject(a.Is,8),h.\u0275\u0275directiveInject(h.ChangeDetectorRef),h.\u0275\u0275directiveInject(h.ElementRef))},ke.\u0275cmp=h.\u0275\u0275defineComponent({type:ke,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ze,pt,tn){if(1&ze&&(h.\u0275\u0275contentQuery(tn,mt,5),h.\u0275\u0275contentQuery(tn,Pe,5)),2&ze){let ot;h.\u0275\u0275queryRefresh(ot=h.\u0275\u0275loadQuery())&&(pt._steps=ot),h.\u0275\u0275queryRefresh(ot=h.\u0275\u0275loadQuery())&&(pt._icons=ot)}},viewQuery:function(ze,pt){if(1&ze&&h.\u0275\u0275viewQuery(bt,5),2&ze){let tn;h.\u0275\u0275queryRefresh(tn=h.\u0275\u0275loadQuery())&&(pt._stepHeader=tn)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(ze,pt){2&ze&&(h.\u0275\u0275attribute("aria-orientation",pt.orientation),h.\u0275\u0275classProp("mat-stepper-horizontal","horizontal"===pt.orientation)("mat-stepper-vertical","vertical"===pt.orientation)("mat-stepper-label-position-end","horizontal"===pt.orientation&&"end"==pt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===pt.orientation&&"bottom"==pt.labelPosition)("mat-stepper-header-position-bottom","bottom"===pt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[h.\u0275\u0275ProvidersFeature([{provide:V,useExisting:ke}]),h.\u0275\u0275InheritDefinitionFeature],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(ze,pt){1&ze&&(h.\u0275\u0275elementContainerStart(0,0),h.\u0275\u0275template(1,Ce,5,2,"div",1),h.\u0275\u0275template(2,dt,2,1,"ng-container",2),h.\u0275\u0275elementContainerEnd(),h.\u0275\u0275template(3,Mt,1,23,"ng-template",null,3,h.\u0275\u0275templateRefExtractor)),2&ze&&(h.\u0275\u0275property("ngSwitch",pt.orientation),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","horizontal"),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","vertical"))},dependencies:[ae.NgForOf,ae.NgIf,ae.NgTemplateOutlet,ae.NgSwitch,ae.NgSwitchCase,bt],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Xe.horizontalStepTransition,Xe.verticalStepTransition]},changeDetection:0}),ke})(),xn=(()=>{class ke extends X{}return ke.\u0275fac=function(){let Ae;return function(pt){return(Ae||(Ae=h.\u0275\u0275getInheritedFactory(ke)))(pt||ke)}}(),ke.\u0275dir=h.\u0275\u0275defineDirective({type:ke,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(ze,pt){2&ze&&h.\u0275\u0275hostProperty("type",pt.type)},inputs:{type:"type"},features:[h.\u0275\u0275InheritDefinitionFeature]}),ke})(),Jt=(()=>{class ke{}return ke.\u0275fac=function(ze){return new(ze||ke)},ke.\u0275mod=h.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=h.\u0275\u0275defineInjector({providers:[xt,K.rD],imports:[K.BQ,ae.CommonModule,e.eL,Q,k.Ps,K.si,K.BQ]}),ke})()},83683:(oe,x,i)=>{"use strict";i.d(x,{Ye:()=>p,g0:()=>g,rD:()=>d});var e=i(94650),n=i(3238),a=i(83353),t=i(36895);const l=["*",[["mat-toolbar-row"]]],h=["*","mat-toolbar-row"],s=(0,n.pj)(class{constructor(v){this._elementRef=v}});let d=(()=>{class v{}return v.\u0275fac=function(b){return new(b||v)},v.\u0275dir=e.\u0275\u0275defineDirective({type:v,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),v})(),p=(()=>{class v extends s{constructor(b,S,E){super(b),this._platform=S,this._document=E}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return v.\u0275fac=function(b){return new(b||v)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(a.t4),e.\u0275\u0275directiveInject(t.DOCUMENT))},v.\u0275cmp=e.\u0275\u0275defineComponent({type:v,selectors:[["mat-toolbar"]],contentQueries:function(b,S,E){if(1&b&&e.\u0275\u0275contentQuery(E,d,5),2&b){let D;e.\u0275\u0275queryRefresh(D=e.\u0275\u0275loadQuery())&&(S._toolbarRows=D)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(b,S){2&b&&e.\u0275\u0275classProp("mat-toolbar-multiple-rows",S._toolbarRows.length>0)("mat-toolbar-single-row",0===S._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:h,decls:2,vars:0,template:function(b,S){1&b&&(e.\u0275\u0275projectionDef(l),e.\u0275\u0275projection(0),e.\u0275\u0275projection(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),v})(),g=(()=>{class v{}return v.\u0275fac=function(b){return new(b||v)},v.\u0275mod=e.\u0275\u0275defineNgModule({type:v}),v.\u0275inj=e.\u0275\u0275defineInjector({imports:[n.BQ,n.BQ]}),v})()},10266:(oe,x,i)=>{"use strict";i.d(x,{AV:()=>de,Jm:()=>re,Mp:()=>V,cV:()=>P,gM:()=>T,tr:()=>H,xT:()=>le});var e=i(82722),n=i(95698),a=i(21281),t=i(29521),l=i(94650),h=i(36895),s=i(83353),d=i(12687),p=i(40445),u=i(98184),g=i(67376),v=i(84080),y=i(77579),S=(i(37340),i(3238));const E=["tooltip"],P=new l.InjectionToken("mat-tooltip-scroll-strategy"),V={provide:P,deps:[u.aV],useFactory:function B(me){return()=>me.scrollStrategies.reposition({scrollThrottle:20})}},re=new l.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function X(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ae="tooltip-panel",K=(0,s.i$)({passive:!0});let le=(()=>{class me{get position(){return this._position}set position(se){se!==this._position&&(this._position=se,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(se){this._positionAtOrigin=(0,a.Ig)(se),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(se){this._disabled=(0,a.Ig)(se),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(se){this._showDelay=(0,a.su)(se)}get hideDelay(){return this._hideDelay}set hideDelay(se){this._hideDelay=(0,a.su)(se),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(se){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=se?String(se).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(se){this._tooltipClass=se,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(se,ve,Ee,Ye,wt,Wt,Ut,nt,Zt,Fe,yt,ie){this._overlay=se,this._elementRef=ve,this._scrollDispatcher=Ee,this._viewContainerRef=Ye,this._ngZone=wt,this._platform=Wt,this._ariaDescriber=Ut,this._focusMonitor=nt,this._dir=Fe,this._defaultOptions=yt,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new y.x,this._scrollStrategy=Zt,this._document=ie,yt&&(yt.position&&(this.position=yt.position),yt.positionAtOrigin&&(this.positionAtOrigin=yt.positionAtOrigin),yt.touchGestures&&(this.touchGestures=yt.touchGestures)),Fe.change.pipe((0,e.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,e.R)(this._destroyed)).subscribe(se=>{se?"keyboard"===se&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const se=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ve,Ee])=>{se.removeEventListener(ve,Ee,K)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(se,this.message,"tooltip"),this._focusMonitor.stopMonitoring(se)}show(se=this.showDelay,ve){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Ee=this._createOverlay(ve);this._detach(),this._portal=this._portal||new v.C5(this._tooltipComponent,this._viewContainerRef);const Ye=this._tooltipInstance=Ee.attach(this._portal).instance;Ye._triggerElement=this._elementRef.nativeElement,Ye._mouseLeaveHideDelay=this._hideDelay,Ye.afterHidden().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Ye.show(se)}hide(se=this.hideDelay){const ve=this._tooltipInstance;ve&&(ve.isVisible()?ve.hide(se):(ve._cancelPendingAnimations(),this._detach()))}toggle(se){this._isTooltipVisible()?this.hide():this.show(void 0,se)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(se){if(this._overlayRef){const Ye=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!se)&&Ye._origin instanceof l.ElementRef)return this._overlayRef;this._detach()}const ve=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ee=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&se||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ve);return Ee.positionChanges.pipe((0,e.R)(this._destroyed)).subscribe(Ye=>{this._updateCurrentPositionClass(Ye.connectionPair),this._tooltipInstance&&Ye.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ee,panelClass:`${this._cssClassPrefix}-${ae}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,e.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,e.R)(this._destroyed)).subscribe(Ye=>{this._isTooltipVisible()&&Ye.keyCode===t.hY&&!(0,t.Vb)(Ye)&&(Ye.preventDefault(),Ye.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(se){const ve=se.getConfig().positionStrategy,Ee=this._getOrigin(),Ye=this._getOverlayPosition();ve.withPositions([this._addOffset({...Ee.main,...Ye.main}),this._addOffset({...Ee.fallback,...Ye.fallback})])}_addOffset(se){return se}_getOrigin(){const se=!this._dir||"ltr"==this._dir.value,ve=this.position;let Ee;"above"==ve||"below"==ve?Ee={originX:"center",originY:"above"==ve?"top":"bottom"}:"before"==ve||"left"==ve&&se||"right"==ve&&!se?Ee={originX:"start",originY:"center"}:("after"==ve||"right"==ve&&se||"left"==ve&&!se)&&(Ee={originX:"end",originY:"center"});const{x:Ye,y:wt}=this._invertPosition(Ee.originX,Ee.originY);return{main:Ee,fallback:{originX:Ye,originY:wt}}}_getOverlayPosition(){const se=!this._dir||"ltr"==this._dir.value,ve=this.position;let Ee;"above"==ve?Ee={overlayX:"center",overlayY:"bottom"}:"below"==ve?Ee={overlayX:"center",overlayY:"top"}:"before"==ve||"left"==ve&&se||"right"==ve&&!se?Ee={overlayX:"end",overlayY:"center"}:("after"==ve||"right"==ve&&se||"left"==ve&&!se)&&(Ee={overlayX:"start",overlayY:"center"});const{x:Ye,y:wt}=this._invertPosition(Ee.overlayX,Ee.overlayY);return{main:Ee,fallback:{overlayX:Ye,overlayY:wt}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,n.q)(1),(0,e.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(se){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=se,this._tooltipInstance._markForCheck())}_invertPosition(se,ve){return"above"===this.position||"below"===this.position?"top"===ve?ve="bottom":"bottom"===ve&&(ve="top"):"end"===se?se="start":"start"===se&&(se="end"),{x:se,y:ve}}_updateCurrentPositionClass(se){const{overlayY:ve,originX:Ee,originY:Ye}=se;let wt;if(wt="center"===ve?this._dir&&"rtl"===this._dir.value?"end"===Ee?"left":"right":"start"===Ee?"left":"right":"bottom"===ve&&"top"===Ye?"above":"below",wt!==this._currentPosition){const Wt=this._overlayRef;if(Wt){const Ut=`${this._cssClassPrefix}-${ae}-`;Wt.removePanelClass(Ut+this._currentPosition),Wt.addPanelClass(Ut+wt)}this._currentPosition=wt}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",se=>{let ve;this._setupPointerExitEventsIfNeeded(),void 0!==se.x&&void 0!==se.y&&(ve=se),this.show(void 0,ve)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",se=>{const ve=se.targetTouches?.[0],Ee=ve?{x:ve.clientX,y:ve.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Ee),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const se=[];if(this._platformSupportsMouseEvents())se.push(["mouseleave",ve=>{const Ee=ve.relatedTarget;(!Ee||!this._overlayRef?.overlayElement.contains(Ee))&&this.hide()}],["wheel",ve=>this._wheelListener(ve)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ve=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};se.push(["touchend",ve],["touchcancel",ve])}this._addListeners(se),this._passiveListeners.push(...se)}_addListeners(se){se.forEach(([ve,Ee])=>{this._elementRef.nativeElement.addEventListener(ve,Ee,K)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(se){if(this._isTooltipVisible()){const ve=this._document.elementFromPoint(se.clientX,se.clientY),Ee=this._elementRef.nativeElement;ve!==Ee&&!Ee.contains(ve)&&this.hide()}}_disableNativeGesturesIfNecessary(){const se=this.touchGestures;if("off"!==se){const ve=this._elementRef.nativeElement,Ee=ve.style;("on"===se||"INPUT"!==ve.nodeName&&"TEXTAREA"!==ve.nodeName)&&(Ee.userSelect=Ee.msUserSelect=Ee.webkitUserSelect=Ee.MozUserSelect="none"),("on"===se||!ve.draggable)&&(Ee.webkitUserDrag="none"),Ee.touchAction="none",Ee.webkitTapHighlightColor="transparent"}}}return me.\u0275fac=function(se){l.\u0275\u0275invalidFactory()},me.\u0275dir=l.\u0275\u0275defineDirective({type:me,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"]}}),me})(),T=(()=>{class me extends le{constructor(se,ve,Ee,Ye,wt,Wt,Ut,nt,Zt,Fe,yt,ie){super(se,ve,Ee,Ye,wt,Wt,Ut,nt,Zt,Fe,yt,ie),this._tooltipComponent=N,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(se){const Ee=!this._dir||"ltr"==this._dir.value;return"top"===se.originY?se.offsetY=-8:"bottom"===se.originY?se.offsetY=8:"start"===se.originX?se.offsetX=Ee?-8:8:"end"===se.originX&&(se.offsetX=Ee?8:-8),se}}return me.\u0275fac=function(se){return new(se||me)(l.\u0275\u0275directiveInject(u.aV),l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(g.mF),l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(s.t4),l.\u0275\u0275directiveInject(d.$s),l.\u0275\u0275directiveInject(d.tE),l.\u0275\u0275directiveInject(P),l.\u0275\u0275directiveInject(p.Is,8),l.\u0275\u0275directiveInject(re,8),l.\u0275\u0275directiveInject(h.DOCUMENT))},me.\u0275dir=l.\u0275\u0275defineDirective({type:me,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[l.\u0275\u0275InheritDefinitionFeature]}),me})(),H=(()=>{class me{constructor(se,ve){this._changeDetectorRef=se,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new y.x,this._animationsDisabled="NoopAnimations"===ve}show(se){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},se)}hide(se){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},se)}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:se}){(!se||!this._triggerElement.contains(se))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:se}){(se===this._showAnimation||se===this._hideAnimation)&&this._finalizeAnimation(se===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(se){se?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(se){const ve=this._tooltip.nativeElement,Ee=this._showAnimation,Ye=this._hideAnimation;if(ve.classList.remove(se?Ye:Ee),ve.classList.add(se?Ee:Ye),this._isVisible=se,se&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const wt=getComputedStyle(ve);("0s"===wt.getPropertyValue("animation-duration")||"none"===wt.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}se&&this._onShow(),this._animationsDisabled&&(ve.classList.add("_mat-animation-noopable"),this._finalizeAnimation(se))}}return me.\u0275fac=function(se){return new(se||me)(l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},me.\u0275dir=l.\u0275\u0275defineDirective({type:me}),me})(),N=(()=>{class me extends H{constructor(se,ve,Ee){super(se,Ee),this._elementRef=ve,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const se=this._elementRef.nativeElement.getBoundingClientRect();return se.height>24&&se.width>=200}}return me.\u0275fac=function(se){return new(se||me)(l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},me.\u0275cmp=l.\u0275\u0275defineComponent({type:me,selectors:[["mat-tooltip-component"]],viewQuery:function(se,ve){if(1&se&&l.\u0275\u0275viewQuery(E,7),2&se){let Ee;l.\u0275\u0275queryRefresh(Ee=l.\u0275\u0275loadQuery())&&(ve._tooltip=Ee.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(se,ve){1&se&&l.\u0275\u0275listener("mouseleave",function(Ye){return ve._handleMouseLeave(Ye)}),2&se&&l.\u0275\u0275styleProp("zoom",ve.isVisible()?1:null)},features:[l.\u0275\u0275InheritDefinitionFeature],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(se,ve){1&se&&(l.\u0275\u0275elementStart(0,"div",0,1),l.\u0275\u0275listener("animationend",function(Ye){return ve._handleAnimationEnd(Ye)}),l.\u0275\u0275elementStart(2,"div",2),l.\u0275\u0275text(3),l.\u0275\u0275elementEnd()()),2&se&&(l.\u0275\u0275classProp("mdc-tooltip--multiline",ve._isMultiline),l.\u0275\u0275property("ngClass",ve.tooltipClass),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(ve.message))},dependencies:[h.NgClass],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.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{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}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.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}),me})(),de=(()=>{class me{}return me.\u0275fac=function(se){return new(se||me)},me.\u0275mod=l.\u0275\u0275defineNgModule({type:me}),me.\u0275inj=l.\u0275\u0275defineInjector({providers:[V],imports:[d.rt,h.CommonModule,u.U8,S.BQ,S.BQ,g.ZD]}),me})()},11481:(oe,x,i)=>{"use strict";i.r(x),i.d(x,{BrowserModule:()=>en,BrowserTransferStateModule:()=>tn,By:()=>ot,DomSanitizer:()=>Yt,EVENT_MANAGER_PLUGINS:()=>b,EventManager:()=>S,HAMMER_GESTURE_CONFIG:()=>Z,HAMMER_LOADER:()=>ge,HammerGestureConfig:()=>Qe,HammerModule:()=>ct,Meta:()=>xt,REMOVE_STYLES_ON_COMPONENT_DESTROY:()=>K,Title:()=>At,TransferState:()=>ze,VERSION:()=>gt,bootstrapApplication:()=>Wt,createApplication:()=>Ut,disableDebugTools:()=>_n,enableDebugTools:()=>xn,makeStateKey:()=>Ae,platformBrowser:()=>Ie,provideProtractorTestingSupport:()=>Zt,\u0275BrowserDomAdapter:()=>t,\u0275BrowserGetTestability:()=>v,\u0275DomEventsPlugin:()=>q,\u0275DomRendererFactory2:()=>U,\u0275DomSanitizerImpl:()=>Be,\u0275DomSharedStylesHost:()=>A,\u0275HammerGesturesPlugin:()=>qe,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>Ce,\u0275KeyEventsPlugin:()=>Ye,\u0275NAMESPACE_URIS:()=>P,\u0275SharedStylesHost:()=>D,\u0275TRANSITION_ID:()=>p,\u0275escapeHtml:()=>Jt,\u0275flattenStyles:()=>j,\u0275getDOM:()=>e.\u0275getDOM,\u0275initDomAdapter:()=>Fe,\u0275shimContentAttribute:()=>k,\u0275shimHostAttribute:()=>$});var e=i(36895),n=i(94650);class a extends e.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class t extends a{static makeCurrent(){(0,e.\u0275setRootDomAdapter)(new t)}onAndCancel(Ge,ee,De){return Ge.addEventListener(ee,De,!1),()=>{Ge.removeEventListener(ee,De,!1)}}dispatchEvent(Ge,ee){Ge.dispatchEvent(ee)}remove(Ge){Ge.parentNode&&Ge.parentNode.removeChild(Ge)}createElement(Ge,ee){return(ee=ee||this.getDefaultDocument()).createElement(Ge)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ge){return Ge.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ge){return Ge instanceof DocumentFragment}getGlobalEventTarget(Ge,ee){return"window"===ee?window:"document"===ee?Ge:"body"===ee?Ge.body:null}getBaseHref(Ge){const ee=function h(){return l=l||document.querySelector("base"),l?l.getAttribute("href"):null}();return null==ee?null:function d(ue){s=s||document.createElement("a"),s.setAttribute("href",ue);const Ge=s.pathname;return"/"===Ge.charAt(0)?Ge:`/${Ge}`}(ee)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ge){return(0,e.\u0275parseCookieValue)(document.cookie,Ge)}}let s,l=null;const p=new n.InjectionToken("TRANSITION_ID"),g=[{provide:n.APP_INITIALIZER,useFactory:function u(ue,Ge,ee){return()=>{ee.get(n.ApplicationInitStatus).donePromise.then(()=>{const De=(0,e.\u0275getDOM)(),Ot=Ge.querySelectorAll(`style[ng-transition="${ue}"]`);for(let cn=0;cn<Ot.length;cn++)De.remove(Ot[cn])})}},deps:[p,e.DOCUMENT,n.Injector],multi:!0}];class v{addToWindow(Ge){n.\u0275global.getAngularTestability=(De,Ot=!0)=>{const cn=Ge.findTestabilityInTree(De,Ot);if(null==cn)throw new Error("Could not find testability for element.");return cn},n.\u0275global.getAllAngularTestabilities=()=>Ge.getAllTestabilities(),n.\u0275global.getAllAngularRootElements=()=>Ge.getAllRootElements(),n.\u0275global.frameworkStabilizers||(n.\u0275global.frameworkStabilizers=[]),n.\u0275global.frameworkStabilizers.push(De=>{const Ot=n.\u0275global.getAllAngularTestabilities();let cn=Ot.length,Gn=!1;const _i=function(Ni){Gn=Gn||Ni,cn--,0==cn&&De(Gn)};Ot.forEach(function(Ni){Ni.whenStable(_i)})})}findTestabilityInTree(Ge,ee,De){return null==ee?null:Ge.getTestability(ee)??(De?(0,e.\u0275getDOM)().isShadowRoot(ee)?this.findTestabilityInTree(Ge,ee.host,!0):this.findTestabilityInTree(Ge,ee.parentElement,!0):null)}}let y=(()=>{class ue{build(){return new XMLHttpRequest}}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();const b=new n.InjectionToken("EventManagerPlugins");let S=(()=>{class ue{constructor(ee,De){this._zone=De,this._eventNameToPlugin=new Map,ee.forEach(Ot=>{Ot.manager=this}),this._plugins=ee.slice().reverse()}addEventListener(ee,De,Ot){return this._findPluginFor(De).addEventListener(ee,De,Ot)}addGlobalEventListener(ee,De,Ot){return this._findPluginFor(De).addGlobalEventListener(ee,De,Ot)}getZone(){return this._zone}_findPluginFor(ee){const De=this._eventNameToPlugin.get(ee);if(De)return De;const Ot=this._plugins;for(let cn=0;cn<Ot.length;cn++){const Gn=Ot[cn];if(Gn.supports(ee))return this._eventNameToPlugin.set(ee,Gn),Gn}throw new Error(`No event manager plugin found for event ${ee}`)}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(b),n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();class E{constructor(Ge){this._doc=Ge}addGlobalEventListener(Ge,ee,De){const Ot=(0,e.\u0275getDOM)().getGlobalEventTarget(this._doc,Ge);if(!Ot)throw new Error(`Unsupported event target ${Ot} for event ${ee}`);return this.addEventListener(Ot,ee,De)}}let D=(()=>{class ue{constructor(){this.usageCount=new Map}addStyles(ee){for(const De of ee)1===this.changeUsageCount(De,1)&&this.onStyleAdded(De)}removeStyles(ee){for(const De of ee)0===this.changeUsageCount(De,-1)&&this.onStyleRemoved(De)}onStyleRemoved(ee){}onStyleAdded(ee){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(ee,De){const Ot=this.usageCount;let cn=Ot.get(ee)??0;return cn+=De,cn>0?Ot.set(ee,cn):Ot.delete(ee),cn}ngOnDestroy(){for(const ee of this.getAllStyles())this.onStyleRemoved(ee);this.usageCount.clear()}}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),A=(()=>{class ue extends D{constructor(ee){super(),this.doc=ee,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(ee){for(const De of this.hostNodes)this.addStyleToHost(De,ee)}onStyleRemoved(ee){const De=this.styleRef;De.get(ee)?.forEach(cn=>cn.remove()),De.delete(ee)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(ee){this.hostNodes.add(ee);for(const De of this.getAllStyles())this.addStyleToHost(ee,De)}removeHost(ee){this.hostNodes.delete(ee)}addStyleToHost(ee,De){const Ot=this.doc.createElement("style");Ot.textContent=De,ee.appendChild(Ot);const cn=this.styleRef.get(De);cn?cn.push(Ot):this.styleRef.set(De,[Ot])}resetHostNodes(){const ee=this.hostNodes;ee.clear(),ee.add(this.doc.head)}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(e.DOCUMENT))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();const P={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/"},B=/%COMP%/g,X="%COMP%",re=`_nghost-${X}`,Q=`_ngcontent-${X}`,K=new n.InjectionToken("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function k(ue){return Q.replace(B,ue)}function $(ue){return re.replace(B,ue)}function j(ue,Ge){return Ge.flat(100).map(ee=>ee.replace(B,ue))}function R(ue){return Ge=>{if("__ngUnwrap__"===Ge)return ue;!1===ue(Ge)&&(Ge.preventDefault(),Ge.returnValue=!1)}}let U=(()=>{class ue{constructor(ee,De,Ot,cn){this.eventManager=ee,this.sharedStylesHost=De,this.appId=Ot,this.removeStylesOnCompDestory=cn,this.rendererByCompId=new Map,this.defaultRenderer=new le(ee)}createRenderer(ee,De){if(!ee||!De)return this.defaultRenderer;const Ot=this.getOrCreateRenderer(ee,De);return Ot instanceof me?Ot.applyToHost(ee):Ot instanceof de&&Ot.applyStyles(),Ot}getOrCreateRenderer(ee,De){const Ot=this.rendererByCompId;let cn=Ot.get(De.id);if(!cn){const Gn=this.eventManager,_i=this.sharedStylesHost,Ni=this.removeStylesOnCompDestory;switch(De.encapsulation){case n.ViewEncapsulation.Emulated:cn=new me(Gn,_i,De,this.appId,Ni);break;case n.ViewEncapsulation.ShadowDom:return new pe(Gn,_i,ee,De);default:cn=new de(Gn,_i,De,Ni)}cn.onDestroy=()=>Ot.delete(De.id),Ot.set(De.id,cn)}return cn}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(S),n.\u0275\u0275inject(A),n.\u0275\u0275inject(n.APP_ID),n.\u0275\u0275inject(K))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();class le{constructor(Ge){this.eventManager=Ge,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ge,ee){return ee?document.createElementNS(P[ee]||ee,Ge):document.createElement(Ge)}createComment(Ge){return document.createComment(Ge)}createText(Ge){return document.createTextNode(Ge)}appendChild(Ge,ee){(N(Ge)?Ge.content:Ge).appendChild(ee)}insertBefore(Ge,ee,De){Ge&&(N(Ge)?Ge.content:Ge).insertBefore(ee,De)}removeChild(Ge,ee){Ge&&Ge.removeChild(ee)}selectRootElement(Ge,ee){let De="string"==typeof Ge?document.querySelector(Ge):Ge;if(!De)throw new Error(`The selector "${Ge}" did not match any elements`);return ee||(De.textContent=""),De}parentNode(Ge){return Ge.parentNode}nextSibling(Ge){return Ge.nextSibling}setAttribute(Ge,ee,De,Ot){if(Ot){ee=Ot+":"+ee;const cn=P[Ot];cn?Ge.setAttributeNS(cn,ee,De):Ge.setAttribute(ee,De)}else Ge.setAttribute(ee,De)}removeAttribute(Ge,ee,De){if(De){const Ot=P[De];Ot?Ge.removeAttributeNS(Ot,ee):Ge.removeAttribute(`${De}:${ee}`)}else Ge.removeAttribute(ee)}addClass(Ge,ee){Ge.classList.add(ee)}removeClass(Ge,ee){Ge.classList.remove(ee)}setStyle(Ge,ee,De,Ot){Ot&(n.RendererStyleFlags2.DashCase|n.RendererStyleFlags2.Important)?Ge.style.setProperty(ee,De,Ot&n.RendererStyleFlags2.Important?"important":""):Ge.style[ee]=De}removeStyle(Ge,ee,De){De&n.RendererStyleFlags2.DashCase?Ge.style.removeProperty(ee):Ge.style[ee]=""}setProperty(Ge,ee,De){Ge[ee]=De}setValue(Ge,ee){Ge.nodeValue=ee}listen(Ge,ee,De){return"string"==typeof Ge?this.eventManager.addGlobalEventListener(Ge,ee,R(De)):this.eventManager.addEventListener(Ge,ee,R(De))}}function N(ue){return"TEMPLATE"===ue.tagName&&void 0!==ue.content}class pe extends le{constructor(Ge,ee,De,Ot){super(Ge),this.sharedStylesHost=ee,this.hostEl=De,this.shadowRoot=De.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const cn=j(Ot.id,Ot.styles);for(const Gn of cn){const _i=document.createElement("style");_i.textContent=Gn,this.shadowRoot.appendChild(_i)}}nodeOrShadowRoot(Ge){return Ge===this.hostEl?this.shadowRoot:Ge}appendChild(Ge,ee){return super.appendChild(this.nodeOrShadowRoot(Ge),ee)}insertBefore(Ge,ee,De){return super.insertBefore(this.nodeOrShadowRoot(Ge),ee,De)}removeChild(Ge,ee){return super.removeChild(this.nodeOrShadowRoot(Ge),ee)}parentNode(Ge){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ge)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class de extends le{constructor(Ge,ee,De,Ot,cn=De.id){super(Ge),this.sharedStylesHost=ee,this.removeStylesOnCompDestory=Ot,this.rendererUsageCount=0,this.styles=j(cn,De.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class me extends de{constructor(Ge,ee,De,Ot,cn){const Gn=Ot+"-"+De.id;super(Ge,ee,De,cn,Gn),this.contentAttr=k(Gn),this.hostAttr=$(Gn)}applyToHost(Ge){this.applyStyles(),this.setAttribute(Ge,this.hostAttr,"")}createElement(Ge,ee){const De=super.createElement(Ge,ee);return super.setAttribute(De,this.contentAttr,""),De}}let q=(()=>{class ue extends E{constructor(ee){super(ee)}supports(ee){return!0}addEventListener(ee,De,Ot){return ee.addEventListener(De,Ot,!1),()=>this.removeEventListener(ee,De,Ot)}removeEventListener(ee,De,Ot){return ee.removeEventListener(De,Ot)}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(e.DOCUMENT))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();const se=["alt","control","meta","shift"],ve={"\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"},Ee={alt:ue=>ue.altKey,control:ue=>ue.ctrlKey,meta:ue=>ue.metaKey,shift:ue=>ue.shiftKey};let Ye=(()=>{class ue extends E{constructor(ee){super(ee)}supports(ee){return null!=ue.parseEventName(ee)}addEventListener(ee,De,Ot){const cn=ue.parseEventName(De),Gn=ue.eventCallback(cn.fullKey,Ot,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.\u0275getDOM)().onAndCancel(ee,cn.domEventName,Gn))}static parseEventName(ee){const De=ee.toLowerCase().split("."),Ot=De.shift();if(0===De.length||"keydown"!==Ot&&"keyup"!==Ot)return null;const cn=ue._normalizeKey(De.pop());let Gn="",_i=De.indexOf("code");if(_i>-1&&(De.splice(_i,1),Gn="code."),se.forEach(Nn=>{const Mn=De.indexOf(Nn);Mn>-1&&(De.splice(Mn,1),Gn+=Nn+".")}),Gn+=cn,0!=De.length||0===cn.length)return null;const Ni={};return Ni.domEventName=Ot,Ni.fullKey=Gn,Ni}static matchEventFullKeyCode(ee,De){let Ot=ve[ee.key]||ee.key,cn="";return De.indexOf("code.")>-1&&(Ot=ee.code,cn="code."),!(null==Ot||!Ot)&&(Ot=Ot.toLowerCase()," "===Ot?Ot="space":"."===Ot&&(Ot="dot"),se.forEach(Gn=>{Gn!==Ot&&(0,Ee[Gn])(ee)&&(cn+=Gn+".")}),cn+=Ot,cn===De)}static eventCallback(ee,De,Ot){return cn=>{ue.matchEventFullKeyCode(cn,ee)&&Ot.runGuarded(()=>De(cn))}}static _normalizeKey(ee){return"esc"===ee?"escape":ee}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(e.DOCUMENT))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();function Wt(ue,Ge){return(0,n.\u0275internalCreateApplication)({rootComponent:ue,...nt(Ge)})}function Ut(ue){return(0,n.\u0275internalCreateApplication)(nt(ue))}function nt(ue){return{appProviders:[...Xt,...ue?.providers??[]],platformProviders:Ce}}function Zt(){return[...Mt]}function Fe(){t.makeCurrent()}const Ce=[{provide:n.PLATFORM_ID,useValue:e.\u0275PLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:Fe,multi:!0},{provide:e.DOCUMENT,useFactory:function ie(){return(0,n.\u0275setDocument)(document),document},deps:[]}],Ie=(0,n.createPlatformFactory)(n.platformCore,"browser",Ce),dt=new n.InjectionToken(""),Mt=[{provide:n.\u0275TESTABILITY_GETTER,useClass:v,deps:[]},{provide:n.\u0275TESTABILITY,useClass:n.Testability,deps:[n.NgZone,n.TestabilityRegistry,n.\u0275TESTABILITY_GETTER]},{provide:n.Testability,useClass:n.Testability,deps:[n.NgZone,n.TestabilityRegistry,n.\u0275TESTABILITY_GETTER]}],Xt=[{provide:n.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:n.ErrorHandler,useFactory:function yt(){return new n.ErrorHandler},deps:[]},{provide:b,useClass:q,multi:!0,deps:[e.DOCUMENT,n.NgZone,n.PLATFORM_ID]},{provide:b,useClass:Ye,multi:!0,deps:[e.DOCUMENT]},{provide:U,useClass:U,deps:[S,A,n.APP_ID,K]},{provide:n.RendererFactory2,useExisting:U},{provide:D,useExisting:A},{provide:A,useClass:A,deps:[e.DOCUMENT]},{provide:S,useClass:S,deps:[b,n.NgZone]},{provide:e.XhrFactory,useClass:y,deps:[]},[]];let en=(()=>{class ue{constructor(ee){}static withServerTransition(ee){return{ngModule:ue,providers:[{provide:n.APP_ID,useValue:ee.appId},{provide:p,useExisting:n.APP_ID},g]}}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(dt,12))},ue.\u0275mod=n.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=n.\u0275\u0275defineInjector({providers:[...Xt,...Mt],imports:[e.CommonModule,n.ApplicationModule]}),ue})(),xt=(()=>{class ue{constructor(ee){this._doc=ee,this._dom=(0,e.\u0275getDOM)()}addTag(ee,De=!1){return ee?this._getOrCreateElement(ee,De):null}addTags(ee,De=!1){return ee?ee.reduce((Ot,cn)=>(cn&&Ot.push(this._getOrCreateElement(cn,De)),Ot),[]):[]}getTag(ee){return ee&&this._doc.querySelector(`meta[${ee}]`)||null}getTags(ee){if(!ee)return[];const De=this._doc.querySelectorAll(`meta[${ee}]`);return De?[].slice.call(De):[]}updateTag(ee,De){if(!ee)return null;De=De||this._parseSelector(ee);const Ot=this.getTag(De);return Ot?this._setMetaElementAttributes(ee,Ot):this._getOrCreateElement(ee,!0)}removeTag(ee){this.removeTagElement(this.getTag(ee))}removeTagElement(ee){ee&&this._dom.remove(ee)}_getOrCreateElement(ee,De=!1){if(!De){const Gn=this._parseSelector(ee),_i=this.getTags(Gn).filter(Ni=>this._containsAttributes(ee,Ni))[0];if(void 0!==_i)return _i}const Ot=this._dom.createElement("meta");return this._setMetaElementAttributes(ee,Ot),this._doc.getElementsByTagName("head")[0].appendChild(Ot),Ot}_setMetaElementAttributes(ee,De){return Object.keys(ee).forEach(Ot=>De.setAttribute(this._getMetaKeyMap(Ot),ee[Ot])),De}_parseSelector(ee){const De=ee.name?"name":"property";return`${De}="${ee[De]}"`}_containsAttributes(ee,De){return Object.keys(ee).every(Ot=>De.getAttribute(this._getMetaKeyMap(Ot))===ee[Ot])}_getMetaKeyMap(ee){return zt[ee]||ee}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(e.DOCUMENT))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:function(ee){let De=null;return De=ee?new ee:function vt(){return new xt((0,n.\u0275\u0275inject)(e.DOCUMENT))}(),De},providedIn:"root"}),ue})();const zt={httpEquiv:"http-equiv"};let At=(()=>{class ue{constructor(ee){this._doc=ee}getTitle(){return this._doc.title}setTitle(ee){this._doc.title=ee||""}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(e.DOCUMENT))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:function(ee){let De=null;return De=ee?new ee:function bt(){return new At((0,n.\u0275\u0275inject)(e.DOCUMENT))}(),De},providedIn:"root"}),ue})();function $e(ue,Ge){(typeof COMPILED>"u"||!COMPILED)&&((n.\u0275global.ng=n.\u0275global.ng||{})[ue]=Ge)}const Xe=typeof window<"u"&&window||{};class Pe{constructor(Ge,ee){this.msPerTick=Ge,this.numTicks=ee}}class Ve{constructor(Ge){this.appRef=Ge.injector.get(n.ApplicationRef)}timeChangeDetection(Ge){const ee=Ge&&Ge.record,De="Change Detection",Ot=null!=Xe.console.profile;ee&&Ot&&Xe.console.profile(De);const cn=mt();let Gn=0;for(;Gn<5||mt()-cn<500;)this.appRef.tick(),Gn++;const _i=mt();ee&&Ot&&Xe.console.profileEnd(De);const Ni=(_i-cn)/Gn;return Xe.console.log(`ran ${Gn} change detection cycles`),Xe.console.log(`${Ni.toFixed(2)} ms per check`),new Pe(Ni,Gn)}}function mt(){return Xe.performance&&Xe.performance.now?Xe.performance.now():(new Date).getTime()}const It="profiler";function xn(ue){return $e(It,new Ve(ue)),ue}function _n(){$e(It,null)}function Jt(ue){const Ge={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return ue.replace(/[&"'<>]/g,ee=>Ge[ee])}function Ae(ue){return ue}let ze=(()=>{class ue{constructor(){this.store={},this.onSerializeCallbacks={},this.store=function pt(ue,Ge){const ee=ue.getElementById(Ge+"-state");let De={};if(ee&&ee.textContent)try{De=JSON.parse(function ke(ue){const Ge={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return ue.replace(/&[^;]+;/g,ee=>Ge[ee])}(ee.textContent))}catch(Ot){console.warn("Exception while restoring TransferState for app "+Ge,Ot)}return De}((0,n.inject)(e.DOCUMENT),(0,n.inject)(n.APP_ID))}get(ee,De){return void 0!==this.store[ee]?this.store[ee]:De}set(ee,De){this.store[ee]=De}remove(ee){delete this.store[ee]}hasKey(ee){return this.store.hasOwnProperty(ee)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(ee,De){this.onSerializeCallbacks[ee]=De}toJson(){for(const ee in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(ee))try{this.store[ee]=this.onSerializeCallbacks[ee]()}catch(De){console.warn("Exception in onSerialize callback: ",De)}return JSON.stringify(this.store)}}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),tn=(()=>{class ue{}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275mod=n.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=n.\u0275\u0275defineInjector({}),ue})();class ot{static all(){return()=>!0}static css(Ge){return ee=>null!=ee.nativeElement&&function Et(ue,Ge){return!!(0,e.\u0275getDOM)().isElementNode(ue)&&(ue.matches&&ue.matches(Ge)||ue.msMatchesSelector&&ue.msMatchesSelector(Ge)||ue.webkitMatchesSelector&&ue.webkitMatchesSelector(Ge))}(ee.nativeElement,Ge)}static directive(Ge){return ee=>-1!==ee.providerTokens.indexOf(Ge)}}const z={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Z=new n.InjectionToken("HammerGestureConfig"),ge=new n.InjectionToken("HammerLoader");let Qe=(()=>{class ue{constructor(){this.events=[],this.overrides={}}buildHammer(ee){const De=new Hammer(ee,this.options);De.get("pinch").set({enable:!0}),De.get("rotate").set({enable:!0});for(const Ot in this.overrides)De.get(Ot).set(this.overrides[Ot]);return De}}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),qe=(()=>{class ue extends E{constructor(ee,De,Ot,cn){super(ee),this._config=De,this.console=Ot,this.loader=cn,this._loaderPromise=null}supports(ee){return!(!z.hasOwnProperty(ee.toLowerCase())&&!this.isCustomEvent(ee)||!window.Hammer&&!this.loader)}addEventListener(ee,De,Ot){const cn=this.manager.getZone();if(De=De.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||cn.runOutsideAngular(()=>this.loader());let Gn=!1,_i=()=>{Gn=!0};return cn.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Gn||(_i=this.addEventListener(ee,De,Ot)):_i=()=>{}}).catch(()=>{_i=()=>{}})),()=>{_i()}}return cn.runOutsideAngular(()=>{const Gn=this._config.buildHammer(ee),_i=function(Ni){cn.runGuarded(function(){Ot(Ni)})};return Gn.on(De,_i),()=>{Gn.off(De,_i),"function"==typeof Gn.destroy&&Gn.destroy()}})}isCustomEvent(ee){return this._config.events.indexOf(ee)>-1}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(e.DOCUMENT),n.\u0275\u0275inject(Z),n.\u0275\u0275inject(n.\u0275Console),n.\u0275\u0275inject(ge,8))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),ct=(()=>{class ue{}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275mod=n.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:b,useClass:qe,multi:!0,deps:[e.DOCUMENT,Z,n.\u0275Console,[new n.Optional,ge]]},{provide:Z,useClass:Qe,deps:[]}]}),ue})(),Yt=(()=>{class ue{}return ue.\u0275fac=function(ee){return new(ee||ue)},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:function(ee){let De=null;return De=ee?new(ee||ue):n.\u0275\u0275inject(Be),De},providedIn:"root"}),ue})(),Be=(()=>{class ue extends Yt{constructor(ee){super(),this._doc=ee}sanitize(ee,De){if(null==De)return null;switch(ee){case n.SecurityContext.NONE:return De;case n.SecurityContext.HTML:return(0,n.\u0275allowSanitizationBypassAndThrow)(De,"HTML")?(0,n.\u0275unwrapSafeValue)(De):(0,n.\u0275_sanitizeHtml)(this._doc,String(De)).toString();case n.SecurityContext.STYLE:return(0,n.\u0275allowSanitizationBypassAndThrow)(De,"Style")?(0,n.\u0275unwrapSafeValue)(De):De;case n.SecurityContext.SCRIPT:if((0,n.\u0275allowSanitizationBypassAndThrow)(De,"Script"))return(0,n.\u0275unwrapSafeValue)(De);throw new Error("unsafe value used in a script context");case n.SecurityContext.URL:return(0,n.\u0275allowSanitizationBypassAndThrow)(De,"URL")?(0,n.\u0275unwrapSafeValue)(De):(0,n.\u0275_sanitizeUrl)(String(De));case n.SecurityContext.RESOURCE_URL:if((0,n.\u0275allowSanitizationBypassAndThrow)(De,"ResourceURL"))return(0,n.\u0275unwrapSafeValue)(De);throw new Error(`unsafe value used in a resource URL context (see ${n.\u0275XSS_SECURITY_URL})`);default:throw new Error(`Unexpected SecurityContext ${ee} (see ${n.\u0275XSS_SECURITY_URL})`)}}bypassSecurityTrustHtml(ee){return(0,n.\u0275bypassSanitizationTrustHtml)(ee)}bypassSecurityTrustStyle(ee){return(0,n.\u0275bypassSanitizationTrustStyle)(ee)}bypassSecurityTrustScript(ee){return(0,n.\u0275bypassSanitizationTrustScript)(ee)}bypassSecurityTrustUrl(ee){return(0,n.\u0275bypassSanitizationTrustUrl)(ee)}bypassSecurityTrustResourceUrl(ee){return(0,n.\u0275bypassSanitizationTrustResourceUrl)(ee)}}return ue.\u0275fac=function(ee){return new(ee||ue)(n.\u0275\u0275inject(e.DOCUMENT))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:function(ee){let De=null;return De=ee?new ee:function it(ue){return new Be(ue.get(e.DOCUMENT))}(n.\u0275\u0275inject(n.Injector)),De},providedIn:"root"}),ue})();const gt=new n.Version("15.2.10")},9116:(oe,x,i)=>{"use strict";i.d(x,{gz:()=>Lt,m2:()=>$i,OD:()=>gi,F0:()=>Ea,rH:()=>as,Od:()=>Oo,Bz:()=>yl,lC:()=>an,Xs:()=>vi});var e=i(94650),n=i(88996),a=i(39646),t=i(61135),l=i(86805),h=i(39841),s=i(97272),d=i(49770),p=i(89635),u=i(62843),g=i(69751),v=i(60515),y=i(94033),b=i(77579),S=i(36895),E=i(54004),D=i(63900),A=i(95698),P=i(68675),B=i(39300),V=i(86099),X=i(50590),re=i(24351),Q=i(18505),ae=i(70262),K=i(22940),k=i(54482),$=i(25403);function j(xe){return xe<=0?()=>v.E:(0,k.e)((He,fe)=>{let rt=[];He.subscribe((0,$.x)(fe,Pt=>{rt.push(Pt),xe<rt.length&&rt.shift()},()=>{for(const Pt of rt)fe.next(Pt);fe.complete()},void 0,()=>{rt=null}))})}var R=i(18068),U=i(46590),le=i(44671);function T(xe,He){const fe=arguments.length>=2;return rt=>rt.pipe(xe?(0,B.h)((Pt,hn)=>xe(Pt,hn,rt)):le.y,j(1),fe?(0,U.d)(He):(0,R.T)(()=>new l.K))}var H=i(22529),N=i(69718),pe=i(28746),de=i(38343),me=i(8189),q=i(11481);const se="primary",ve=Symbol("RouteTitle");class Ee{constructor(He){this.params=He||{}}has(He){return Object.prototype.hasOwnProperty.call(this.params,He)}get(He){if(this.has(He)){const fe=this.params[He];return Array.isArray(fe)?fe[0]:fe}return null}getAll(He){if(this.has(He)){const fe=this.params[He];return Array.isArray(fe)?fe:[fe]}return[]}get keys(){return Object.keys(this.params)}}function Ye(xe){return new Ee(xe)}function wt(xe,He,fe){const rt=fe.path.split("/");if(rt.length>xe.length||"full"===fe.pathMatch&&(He.hasChildren()||rt.length<xe.length))return null;const Pt={};for(let hn=0;hn<rt.length;hn++){const wn=rt[hn],pi=xe[hn];if(wn.startsWith(":"))Pt[wn.substring(1)]=pi;else if(wn!==pi.path)return null}return{consumed:xe.slice(0,rt.length),posParams:Pt}}function Ut(xe,He){const fe=xe?Object.keys(xe):void 0,rt=He?Object.keys(He):void 0;if(!fe||!rt||fe.length!=rt.length)return!1;let Pt;for(let hn=0;hn<fe.length;hn++)if(Pt=fe[hn],!nt(xe[Pt],He[Pt]))return!1;return!0}function nt(xe,He){if(Array.isArray(xe)&&Array.isArray(He)){if(xe.length!==He.length)return!1;const fe=[...xe].sort(),rt=[...He].sort();return fe.every((Pt,hn)=>rt[hn]===Pt)}return xe===He}function Zt(xe){return Array.prototype.concat.apply([],xe)}function Fe(xe){return xe.length>0?xe[xe.length-1]:null}function ie(xe,He){for(const fe in xe)xe.hasOwnProperty(fe)&&He(xe[fe],fe)}function Ce(xe){return(0,e.\u0275isObservable)(xe)?xe:(0,e.\u0275isPromise)(xe)?(0,n.D)(Promise.resolve(xe)):(0,a.of)(xe)}const Ie=!1,dt={exact:function vt(xe,He,fe){if(!mt(xe.segments,He.segments)||!At(xe.segments,He.segments,fe)||xe.numberOfChildren!==He.numberOfChildren)return!1;for(const rt in He.children)if(!xe.children[rt]||!vt(xe.children[rt],He.children[rt],fe))return!1;return!0},subset:zt},Mt={exact:function en(xe,He){return Ut(xe,He)},subset:function xt(xe,He){return Object.keys(He).length<=Object.keys(xe).length&&Object.keys(He).every(fe=>nt(xe[fe],He[fe]))},ignored:()=>!0};function Xt(xe,He,fe){return dt[fe.paths](xe.root,He.root,fe.matrixParams)&&Mt[fe.queryParams](xe.queryParams,He.queryParams)&&!("exact"===fe.fragment&&xe.fragment!==He.fragment)}function zt(xe,He,fe){return bt(xe,He,He.segments,fe)}function bt(xe,He,fe,rt){if(xe.segments.length>fe.length){const Pt=xe.segments.slice(0,fe.length);return!(!mt(Pt,fe)||He.hasChildren()||!At(Pt,fe,rt))}if(xe.segments.length===fe.length){if(!mt(xe.segments,fe)||!At(xe.segments,fe,rt))return!1;for(const Pt in He.children)if(!xe.children[Pt]||!zt(xe.children[Pt],He.children[Pt],rt))return!1;return!0}{const Pt=fe.slice(0,xe.segments.length),hn=fe.slice(xe.segments.length);return!!(mt(xe.segments,Pt)&&At(xe.segments,Pt,rt)&&xe.children[se])&&bt(xe.children[se],He,hn,rt)}}function At(xe,He,fe){return He.every((rt,Pt)=>Mt[fe](xe[Pt].parameters,rt.parameters))}class $e{constructor(He=new Xe([],{}),fe={},rt=null){this.root=He,this.queryParams=fe,this.fragment=rt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ye(this.queryParams)),this._queryParamMap}toString(){return Jt.serialize(this)}}class Xe{constructor(He,fe){this.segments=He,this.children=fe,this.parent=null,ie(fe,(rt,Pt)=>rt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ke(this)}}class Pe{constructor(He,fe){this.path=He,this.parameters=fe}get parameterMap(){return this._parameterMap||(this._parameterMap=Ye(this.parameters)),this._parameterMap}toString(){return Z(this)}}function mt(xe,He){return xe.length===He.length&&xe.every((fe,rt)=>fe.path===He[rt].path)}let xn=(()=>{class xe{}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:function(){return new _n},providedIn:"root"}),xe})();class _n{parse(He){const fe=new ue(He);return new $e(fe.parseRootSegment(),fe.parseQueryParams(),fe.parseFragment())}serialize(He){const fe=`/${Ae(He.root,!0)}`,rt=function Qe(xe){const He=Object.keys(xe).map(fe=>{const rt=xe[fe];return Array.isArray(rt)?rt.map(Pt=>`${pt(fe)}=${pt(Pt)}`).join("&"):`${pt(fe)}=${pt(rt)}`}).filter(fe=>!!fe);return He.length?`?${He.join("&")}`:""}(He.queryParams);return`${fe}${rt}${"string"==typeof He.fragment?`#${function tn(xe){return encodeURI(xe)}(He.fragment)}`:""}`}}const Jt=new _n;function ke(xe){return xe.segments.map(He=>Z(He)).join("/")}function Ae(xe,He){if(!xe.hasChildren())return ke(xe);if(He){const fe=xe.children[se]?Ae(xe.children[se],!1):"",rt=[];return ie(xe.children,(Pt,hn)=>{hn!==se&&rt.push(`${hn}:${Ae(Pt,!1)}`)}),rt.length>0?`${fe}(${rt.join("//")})`:fe}{const fe=function It(xe,He){let fe=[];return ie(xe.children,(rt,Pt)=>{Pt===se&&(fe=fe.concat(He(rt,Pt)))}),ie(xe.children,(rt,Pt)=>{Pt!==se&&(fe=fe.concat(He(rt,Pt)))}),fe}(xe,(rt,Pt)=>Pt===se?[Ae(xe.children[se],!1)]:[`${Pt}:${Ae(rt,!1)}`]);return 1===Object.keys(xe.children).length&&null!=xe.children[se]?`${ke(xe)}/${fe[0]}`:`${ke(xe)}/(${fe.join("//")})`}}function ze(xe){return encodeURIComponent(xe).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pt(xe){return ze(xe).replace(/%3B/gi,";")}function ot(xe){return ze(xe).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(xe){return decodeURIComponent(xe)}function z(xe){return Et(xe.replace(/\+/g,"%20"))}function Z(xe){return`${ot(xe.path)}${function ge(xe){return Object.keys(xe).map(He=>`;${ot(He)}=${ot(xe[He])}`).join("")}(xe.parameters)}`}const qe=/^[^\/()?;=#]+/;function ct(xe){const He=xe.match(qe);return He?He[0]:""}const Yt=/^[^=?&#]+/,Be=/^[^&#]+/;class ue{constructor(He){this.url=He,this.remaining=He}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xe([],{}):new Xe([],this.parseChildren())}parseQueryParams(){const He={};if(this.consumeOptional("?"))do{this.parseQueryParam(He)}while(this.consumeOptional("&"));return He}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const He=[];for(this.peekStartsWith("(")||He.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),He.push(this.parseSegment());let fe={};this.peekStartsWith("/(")&&(this.capture("/"),fe=this.parseParens(!0));let rt={};return this.peekStartsWith("(")&&(rt=this.parseParens(!1)),(He.length>0||Object.keys(fe).length>0)&&(rt[se]=new Xe(He,fe)),rt}parseSegment(){const He=ct(this.remaining);if(""===He&&this.peekStartsWith(";"))throw new e.\u0275RuntimeError(4009,Ie);return this.capture(He),new Pe(Et(He),this.parseMatrixParams())}parseMatrixParams(){const He={};for(;this.consumeOptional(";");)this.parseParam(He);return He}parseParam(He){const fe=ct(this.remaining);if(!fe)return;this.capture(fe);let rt="";if(this.consumeOptional("=")){const Pt=ct(this.remaining);Pt&&(rt=Pt,this.capture(rt))}He[Et(fe)]=Et(rt)}parseQueryParam(He){const fe=function it(xe){const He=xe.match(Yt);return He?He[0]:""}(this.remaining);if(!fe)return;this.capture(fe);let rt="";if(this.consumeOptional("=")){const wn=function gt(xe){const He=xe.match(Be);return He?He[0]:""}(this.remaining);wn&&(rt=wn,this.capture(rt))}const Pt=z(fe),hn=z(rt);if(He.hasOwnProperty(Pt)){let wn=He[Pt];Array.isArray(wn)||(wn=[wn],He[Pt]=wn),wn.push(hn)}else He[Pt]=hn}parseParens(He){const fe={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const rt=ct(this.remaining),Pt=this.remaining[rt.length];if("/"!==Pt&&")"!==Pt&&";"!==Pt)throw new e.\u0275RuntimeError(4010,Ie);let hn;rt.indexOf(":")>-1?(hn=rt.slice(0,rt.indexOf(":")),this.capture(hn),this.capture(":")):He&&(hn=se);const wn=this.parseChildren();fe[hn]=1===Object.keys(wn).length?wn[se]:new Xe([],wn),this.consumeOptional("//")}return fe}peekStartsWith(He){return this.remaining.startsWith(He)}consumeOptional(He){return!!this.peekStartsWith(He)&&(this.remaining=this.remaining.substring(He.length),!0)}capture(He){if(!this.consumeOptional(He))throw new e.\u0275RuntimeError(4011,Ie)}}function Ge(xe){return xe.segments.length>0?new Xe([],{[se]:xe}):xe}function ee(xe){const He={};for(const rt of Object.keys(xe.children)){const hn=ee(xe.children[rt]);(hn.segments.length>0||hn.hasChildren())&&(He[rt]=hn)}return function De(xe){if(1===xe.numberOfChildren&&xe.children[se]){const He=xe.children[se];return new Xe(xe.segments.concat(He.segments),He.children)}return xe}(new Xe(xe.segments,He))}function Ot(xe){return xe instanceof $e}const cn=!1;function Nn(xe,He,fe,rt,Pt){if(0===fe.length)return Qn(He.root,He.root,He.root,rt,Pt);const hn=function un(xe){if("string"==typeof xe[0]&&1===xe.length&&"/"===xe[0])return new Si(!0,0,xe);let He=0,fe=!1;const rt=xe.reduce((Pt,hn,wn)=>{if("object"==typeof hn&&null!=hn){if(hn.outlets){const pi={};return ie(hn.outlets,(ki,ur)=>{pi[ur]="string"==typeof ki?ki.split("/"):ki}),[...Pt,{outlets:pi}]}if(hn.segmentPath)return[...Pt,hn.segmentPath]}return"string"!=typeof hn?[...Pt,hn]:0===wn?(hn.split("/").forEach((pi,ki)=>{0==ki&&"."===pi||(0==ki&&""===pi?fe=!0:".."===pi?He++:""!=pi&&Pt.push(pi))}),Pt):[...Pt,hn]},[]);return new Si(fe,He,rt)}(fe);return hn.toRoot()?Qn(He.root,He.root,new Xe([],{}),rt,Pt):function wn(ki){const ur=function Nt(xe,He,fe,rt){if(xe.isAbsolute)return new rn(He.root,!0,0);if(-1===rt)return new rn(fe,fe===He.root,0);return function Rn(xe,He,fe){let rt=xe,Pt=He,hn=fe;for(;hn>Pt;){if(hn-=Pt,rt=rt.parent,!rt)throw new e.\u0275RuntimeError(4005,cn&&"Invalid number of '../'");Pt=rt.segments.length}return new rn(rt,!1,Pt-hn)}(fe,rt+(Mn(xe.commands[0])?0:1),xe.numberOfDoubleDots)}(hn,He,xe.snapshot?._urlSegment,ki),lr=ur.processChildren?ir(ur.segmentGroup,ur.index,hn.commands):ji(ur.segmentGroup,ur.index,hn.commands);return Qn(He.root,ur.segmentGroup,lr,rt,Pt)}(xe.snapshot?._lastPathIndex)}function Mn(xe){return"object"==typeof xe&&null!=xe&&!xe.outlets&&!xe.segmentPath}function On(xe){return"object"==typeof xe&&null!=xe&&xe.outlets}function Qn(xe,He,fe,rt,Pt){let wn,hn={};rt&&ie(rt,(ki,ur)=>{hn[ur]=Array.isArray(ki)?ki.map(lr=>`${lr}`):`${ki}`}),wn=xe===He?fe:Ti(xe,He,fe);const pi=Ge(ee(wn));return new $e(pi,hn,Pt)}function Ti(xe,He,fe){const rt={};return ie(xe.children,(Pt,hn)=>{rt[hn]=Pt===He?fe:Ti(Pt,He,fe)}),new Xe(xe.segments,rt)}class Si{constructor(He,fe,rt){if(this.isAbsolute=He,this.numberOfDoubleDots=fe,this.commands=rt,He&&rt.length>0&&Mn(rt[0]))throw new e.\u0275RuntimeError(4003,cn&&"Root segment cannot have matrix parameters");const Pt=rt.find(On);if(Pt&&Pt!==Fe(rt))throw new e.\u0275RuntimeError(4004,cn&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class rn{constructor(He,fe,rt){this.segmentGroup=He,this.processChildren=fe,this.index=rt}}function ji(xe,He,fe){if(xe||(xe=new Xe([],{})),0===xe.segments.length&&xe.hasChildren())return ir(xe,He,fe);const rt=function dr(xe,He,fe){let rt=0,Pt=He;const hn={match:!1,pathIndex:0,commandIndex:0};for(;Pt<xe.segments.length;){if(rt>=fe.length)return hn;const wn=xe.segments[Pt],pi=fe[rt];if(On(pi))break;const ki=`${pi}`,ur=rt<fe.length-1?fe[rt+1]:null;if(Pt>0&&void 0===ki)break;if(ki&&ur&&"object"==typeof ur&&void 0===ur.outlets){if(!Ft(ki,ur,wn))return hn;rt+=2}else{if(!Ft(ki,{},wn))return hn;rt++}Pt++}return{match:!0,pathIndex:Pt,commandIndex:rt}}(xe,He,fe),Pt=fe.slice(rt.commandIndex);if(rt.match&&rt.pathIndex<xe.segments.length){const hn=new Xe(xe.segments.slice(0,rt.pathIndex),{});return hn.children[se]=new Xe(xe.segments.slice(rt.pathIndex),xe.children),ir(hn,0,Pt)}return rt.match&&0===Pt.length?new Xe(xe.segments,{}):rt.match&&!xe.hasChildren()?Ln(xe,He,fe):rt.match?ir(xe,0,Pt):Ln(xe,He,fe)}function ir(xe,He,fe){if(0===fe.length)return new Xe(xe.segments,{});{const rt=function Wn(xe){return On(xe[0])?xe[0].outlets:{[se]:xe}}(fe),Pt={};if(!rt[se]&&xe.children[se]&&1===xe.numberOfChildren&&0===xe.children[se].segments.length){const hn=ir(xe.children[se],He,fe);return new Xe(xe.segments,hn.children)}return ie(rt,(hn,wn)=>{"string"==typeof hn&&(hn=[hn]),null!==hn&&(Pt[wn]=ji(xe.children[wn],He,hn))}),ie(xe.children,(hn,wn)=>{void 0===rt[wn]&&(Pt[wn]=hn)}),new Xe(xe.segments,Pt)}}function Ln(xe,He,fe){const rt=xe.segments.slice(0,He);let Pt=0;for(;Pt<fe.length;){const hn=fe[Pt];if(On(hn)){const ki=Vn(hn.outlets);return new Xe(rt,ki)}if(0===Pt&&Mn(fe[0])){rt.push(new Pe(xe.segments[He].path,Le(fe[0]))),Pt++;continue}const wn=On(hn)?hn.outlets[se]:`${hn}`,pi=Pt<fe.length-1?fe[Pt+1]:null;wn&&pi&&Mn(pi)?(rt.push(new Pe(wn,Le(pi))),Pt+=2):(rt.push(new Pe(wn,{})),Pt++)}return new Xe(rt,{})}function Vn(xe){const He={};return ie(xe,(fe,rt)=>{"string"==typeof fe&&(fe=[fe]),null!==fe&&(He[rt]=Ln(new Xe([],{}),0,fe))}),He}function Le(xe){const He={};return ie(xe,(fe,rt)=>He[rt]=`${fe}`),He}function Ft(xe,He,fe){return xe==fe.path&&Ut(He,fe.parameters)}const dn="imperative";class En{constructor(He,fe){this.id=He,this.url=fe}}class gi extends En{constructor(He,fe,rt="imperative",Pt=null){super(He,fe),this.type=0,this.navigationTrigger=rt,this.restoredState=Pt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $i extends En{constructor(He,fe,rt){super(He,fe),this.urlAfterRedirects=rt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class fr extends En{constructor(He,fe,rt,Pt){super(He,fe),this.reason=rt,this.code=Pt,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mr extends En{constructor(He,fe,rt,Pt){super(He,fe),this.reason=rt,this.code=Pt,this.type=16}}class ti extends En{constructor(He,fe,rt,Pt){super(He,fe),this.error=rt,this.target=Pt,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Kn extends En{constructor(He,fe,rt,Pt){super(He,fe),this.urlAfterRedirects=rt,this.state=Pt,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class on extends En{constructor(He,fe,rt,Pt){super(He,fe),this.urlAfterRedirects=rt,this.state=Pt,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class he extends En{constructor(He,fe,rt,Pt,hn){super(He,fe),this.urlAfterRedirects=rt,this.state=Pt,this.shouldActivate=hn,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class et extends En{constructor(He,fe,rt,Pt){super(He,fe),this.urlAfterRedirects=rt,this.state=Pt,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tt extends En{constructor(He,fe,rt,Pt){super(He,fe),this.urlAfterRedirects=rt,this.state=Pt,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nn{constructor(He){this.route=He,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zn{constructor(He){this.route=He,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class jt{constructor(He){this.snapshot=He,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fn{constructor(He){this.snapshot=He,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jn{constructor(He){this.snapshot=He,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ri{constructor(He){this.snapshot=He,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vi{constructor(He,fe,rt){this.routerEvent=He,this.position=fe,this.anchor=rt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Hi=(()=>{class xe{createUrlTree(fe,rt,Pt,hn,wn,pi){return Nn(fe||rt.root,Pt,hn,wn,pi)}}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})(),kr=(()=>{class xe{}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:function(He){return Hi.\u0275fac(He)},providedIn:"root"}),xe})();class Er{constructor(He){this._root=He}get root(){return this._root.value}parent(He){const fe=this.pathFromRoot(He);return fe.length>1?fe[fe.length-2]:null}children(He){const fe=pr(He,this._root);return fe?fe.children.map(rt=>rt.value):[]}firstChild(He){const fe=pr(He,this._root);return fe&&fe.children.length>0?fe.children[0].value:null}siblings(He){const fe=fo(He,this._root);return fe.length<2?[]:fe[fe.length-2].children.map(Pt=>Pt.value).filter(Pt=>Pt!==He)}pathFromRoot(He){return fo(He,this._root).map(fe=>fe.value)}}function pr(xe,He){if(xe===He.value)return He;for(const fe of He.children){const rt=pr(xe,fe);if(rt)return rt}return null}function fo(xe,He){if(xe===He.value)return[He];for(const fe of He.children){const rt=fo(xe,fe);if(rt.length)return rt.unshift(He),rt}return[]}class Tr{constructor(He,fe){this.value=He,this.children=fe}toString(){return`TreeNode(${this.value})`}}function Br(xe){const He={};return xe&&xe.children.forEach(fe=>He[fe.value.outlet]=fe),He}class _o extends Er{constructor(He,fe){super(He),this.snapshot=fe,br(this,He)}toString(){return this.snapshot.toString()}}function Bn(xe,He){const fe=function Sn(xe,He){const wn=new Wi([],{},{},"",{},se,He,null,xe.root,-1,{});return new Ar("",new Tr(wn,[]))}(xe,He),rt=new t.X([new Pe("",{})]),Pt=new t.X({}),hn=new t.X({}),wn=new t.X({}),pi=new t.X(""),ki=new Lt(rt,Pt,wn,pi,hn,se,He,fe.root);return ki.snapshot=fe.root,new _o(new Tr(ki,[]),fe)}class Lt{constructor(He,fe,rt,Pt,hn,wn,pi,ki){this.url=He,this.params=fe,this.queryParams=rt,this.fragment=Pt,this.data=hn,this.outlet=wn,this.component=pi,this.title=this.data?.pipe((0,E.U)(ur=>ur[ve]))??(0,a.of)(void 0),this._futureSnapshot=ki}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,E.U)(He=>Ye(He)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,E.U)(He=>Ye(He)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Jn(xe,He="emptyOnly"){const fe=xe.pathFromRoot;let rt=0;if("always"!==He)for(rt=fe.length-1;rt>=1;){const Pt=fe[rt],hn=fe[rt-1];if(Pt.routeConfig&&""===Pt.routeConfig.path)rt--;else{if(hn.component)break;rt--}}return function Di(xe){return xe.reduce((He,fe)=>({params:{...He.params,...fe.params},data:{...He.data,...fe.data},resolve:{...fe.data,...He.resolve,...fe.routeConfig?.data,...fe._resolvedData}}),{params:{},data:{},resolve:{}})}(fe.slice(rt))}class Wi{get title(){return this.data?.[ve]}constructor(He,fe,rt,Pt,hn,wn,pi,ki,ur,lr,Yr){this.url=He,this.params=fe,this.queryParams=rt,this.fragment=Pt,this.data=hn,this.outlet=wn,this.component=pi,this.routeConfig=ki,this._urlSegment=ur,this._lastPathIndex=lr,this._resolve=Yr}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=Ye(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ye(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(rt=>rt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ar extends Er{constructor(He,fe){super(fe),this.url=He,br(this,fe)}toString(){return bo(this._root)}}function br(xe,He){He.value._routerState=xe,He.children.forEach(fe=>br(xe,fe))}function bo(xe){const He=xe.children.length>0?` { ${xe.children.map(bo).join(", ")} } `:"";return`${xe.value}${He}`}function xo(xe){if(xe.snapshot){const He=xe.snapshot,fe=xe._futureSnapshot;xe.snapshot=fe,Ut(He.queryParams,fe.queryParams)||xe.queryParams.next(fe.queryParams),He.fragment!==fe.fragment&&xe.fragment.next(fe.fragment),Ut(He.params,fe.params)||xe.params.next(fe.params),function Wt(xe,He){if(xe.length!==He.length)return!1;for(let fe=0;fe<xe.length;++fe)if(!Ut(xe[fe],He[fe]))return!1;return!0}(He.url,fe.url)||xe.url.next(fe.url),Ut(He.data,fe.data)||xe.data.next(fe.data)}else xe.snapshot=xe._futureSnapshot,xe.data.next(xe._futureSnapshot.data)}function Re(xe,He){const fe=Ut(xe.params,He.params)&&function Ve(xe,He){return mt(xe,He)&&xe.every((fe,rt)=>Ut(fe.parameters,He[rt].parameters))}(xe.url,He.url);return fe&&!(!xe.parent!=!He.parent)&&(!xe.parent||Re(xe.parent,He.parent))}function ne(xe,He,fe){if(fe&&xe.shouldReuseRoute(He.value,fe.value.snapshot)){const rt=fe.value;rt._futureSnapshot=He.value;const Pt=function be(xe,He,fe){return He.children.map(rt=>{for(const Pt of fe.children)if(xe.shouldReuseRoute(rt.value,Pt.value.snapshot))return ne(xe,rt,Pt);return ne(xe,rt)})}(xe,He,fe);return new Tr(rt,Pt)}{if(xe.shouldAttach(He.value)){const hn=xe.retrieve(He.value);if(null!==hn){const wn=hn.route;return wn.value._futureSnapshot=He.value,wn.children=He.children.map(pi=>ne(xe,pi)),wn}}const rt=function Ue(xe){return new Lt(new t.X(xe.url),new t.X(xe.params),new t.X(xe.queryParams),new t.X(xe.fragment),new t.X(xe.data),xe.outlet,xe.component,xe)}(He.value),Pt=He.children.map(hn=>ne(xe,hn));return new Tr(rt,Pt)}}const at="ngNavigationCancelingError";function Rt(xe,He){const{redirectTo:fe,navigationBehaviorOptions:rt}=Ot(He)?{redirectTo:He,navigationBehaviorOptions:void 0}:He,Pt=yn(!1,0,He);return Pt.url=fe,Pt.navigationBehaviorOptions=rt,Pt}function yn(xe,He,fe){const rt=new Error("NavigationCancelingError: "+(xe||""));return rt[at]=!0,rt.cancellationCode=He,fe&&(rt.url=fe),rt}function Tn(xe){return Yn(xe)&&Ot(xe.url)}function Yn(xe){return xe&&xe[at]}class Zn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ui,this.attachRef=null}}let ui=(()=>{class xe{constructor(){this.contexts=new Map}onChildOutletCreated(fe,rt){const Pt=this.getOrCreateContext(fe);Pt.outlet=rt,this.contexts.set(fe,Pt)}onChildOutletDestroyed(fe){const rt=this.getContext(fe);rt&&(rt.outlet=null,rt.attachRef=null)}onOutletDeactivated(){const fe=this.contexts;return this.contexts=new Map,fe}onOutletReAttached(fe){this.contexts=fe}getOrCreateContext(fe){let rt=this.getContext(fe);return rt||(rt=new Zn,this.contexts.set(fe,rt)),rt}getContext(fe){return this.contexts.get(fe)||null}}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const wi=!1;let an=(()=>{class xe{constructor(){this.activated=null,this._activatedRoute=null,this.name=se,this.activateEvents=new e.EventEmitter,this.deactivateEvents=new e.EventEmitter,this.attachEvents=new e.EventEmitter,this.detachEvents=new e.EventEmitter,this.parentContexts=(0,e.inject)(ui),this.location=(0,e.inject)(e.ViewContainerRef),this.changeDetector=(0,e.inject)(e.ChangeDetectorRef),this.environmentInjector=(0,e.inject)(e.EnvironmentInjector)}ngOnChanges(fe){if(fe.name){const{firstChange:rt,previousValue:Pt}=fe.name;if(rt)return;this.isTrackedInParentContexts(Pt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Pt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(fe){return this.parentContexts.getContext(fe)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const fe=this.parentContexts.getContext(this.name);fe?.route&&(fe.attachRef?this.attach(fe.attachRef,fe.route):this.activateWith(fe.route,fe.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.\u0275RuntimeError(4012,wi);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.\u0275RuntimeError(4012,wi);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.\u0275RuntimeError(4012,wi);this.location.detach();const fe=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(fe.instance),fe}attach(fe,rt){this.activated=fe,this._activatedRoute=rt,this.location.insert(fe.hostView),this.attachEvents.emit(fe.instance)}deactivate(){if(this.activated){const fe=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(fe)}}activateWith(fe,rt){if(this.isActivated)throw new e.\u0275RuntimeError(4013,wi);this._activatedRoute=fe;const Pt=this.location,wn=fe.snapshot.component,pi=this.parentContexts.getOrCreateContext(this.name).children,ki=new bn(fe,pi,Pt.injector);if(rt&&function Dn(xe){return!!xe.resolveComponentFactory}(rt)){const ur=rt.resolveComponentFactory(wn);this.activated=Pt.createComponent(ur,Pt.length,ki)}else this.activated=Pt.createComponent(wn,{index:Pt.length,injector:ki,environmentInjector:rt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275dir=e.\u0275\u0275defineDirective({type:xe,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.\u0275\u0275NgOnChangesFeature]}),xe})();class bn{constructor(He,fe,rt){this.route=He,this.childContexts=fe,this.parent=rt}get(He,fe){return He===Lt?this.route:He===ui?this.childContexts:this.parent.get(He,fe)}}let ii=(()=>{class xe{}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275cmp=e.\u0275\u0275defineComponent({type:xe,selectors:[["ng-component"]],standalone:!0,features:[e.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(fe,rt){1&fe&&e.\u0275\u0275element(0,"router-outlet")},dependencies:[an],encapsulation:2}),xe})();function li(xe,He){return xe.providers&&!xe._injector&&(xe._injector=(0,e.createEnvironmentInjector)(xe.providers,He,`Route: ${xe.path}`)),xe._injector??He}function ci(xe){const He=xe.children&&xe.children.map(ci),fe=He?{...xe,children:He}:{...xe};return!fe.component&&!fe.loadComponent&&(He||fe.loadChildren)&&fe.outlet&&fe.outlet!==se&&(fe.component=ii),fe}function hi(xe){return xe.outlet||se}function Ai(xe,He){const fe=xe.filter(rt=>hi(rt)===He);return fe.push(...xe.filter(rt=>hi(rt)!==He)),fe}function zi(xe){if(!xe)return null;if(xe.routeConfig?._injector)return xe.routeConfig._injector;for(let He=xe.parent;He;He=He.parent){const fe=He.routeConfig;if(fe?._loadedInjector)return fe._loadedInjector;if(fe?._injector)return fe._injector}return null}class tr{constructor(He,fe,rt,Pt){this.routeReuseStrategy=He,this.futureState=fe,this.currState=rt,this.forwardEvent=Pt}activate(He){const fe=this.futureState._root,rt=this.currState?this.currState._root:null;this.deactivateChildRoutes(fe,rt,He),xo(this.futureState.root),this.activateChildRoutes(fe,rt,He)}deactivateChildRoutes(He,fe,rt){const Pt=Br(fe);He.children.forEach(hn=>{const wn=hn.value.outlet;this.deactivateRoutes(hn,Pt[wn],rt),delete Pt[wn]}),ie(Pt,(hn,wn)=>{this.deactivateRouteAndItsChildren(hn,rt)})}deactivateRoutes(He,fe,rt){const Pt=He.value,hn=fe?fe.value:null;if(Pt===hn)if(Pt.component){const wn=rt.getContext(Pt.outlet);wn&&this.deactivateChildRoutes(He,fe,wn.children)}else this.deactivateChildRoutes(He,fe,rt);else hn&&this.deactivateRouteAndItsChildren(fe,rt)}deactivateRouteAndItsChildren(He,fe){He.value.component&&this.routeReuseStrategy.shouldDetach(He.value.snapshot)?this.detachAndStoreRouteSubtree(He,fe):this.deactivateRouteAndOutlet(He,fe)}detachAndStoreRouteSubtree(He,fe){const rt=fe.getContext(He.value.outlet),Pt=rt&&He.value.component?rt.children:fe,hn=Br(He);for(const wn of Object.keys(hn))this.deactivateRouteAndItsChildren(hn[wn],Pt);if(rt&&rt.outlet){const wn=rt.outlet.detach(),pi=rt.children.onOutletDeactivated();this.routeReuseStrategy.store(He.value.snapshot,{componentRef:wn,route:He,contexts:pi})}}deactivateRouteAndOutlet(He,fe){const rt=fe.getContext(He.value.outlet),Pt=rt&&He.value.component?rt.children:fe,hn=Br(He);for(const wn of Object.keys(hn))this.deactivateRouteAndItsChildren(hn[wn],Pt);rt&&(rt.outlet&&(rt.outlet.deactivate(),rt.children.onOutletDeactivated()),rt.attachRef=null,rt.resolver=null,rt.route=null)}activateChildRoutes(He,fe,rt){const Pt=Br(fe);He.children.forEach(hn=>{this.activateRoutes(hn,Pt[hn.value.outlet],rt),this.forwardEvent(new ri(hn.value.snapshot))}),He.children.length&&this.forwardEvent(new Fn(He.value.snapshot))}activateRoutes(He,fe,rt){const Pt=He.value,hn=fe?fe.value:null;if(xo(Pt),Pt===hn)if(Pt.component){const wn=rt.getOrCreateContext(Pt.outlet);this.activateChildRoutes(He,fe,wn.children)}else this.activateChildRoutes(He,fe,rt);else if(Pt.component){const wn=rt.getOrCreateContext(Pt.outlet);if(this.routeReuseStrategy.shouldAttach(Pt.snapshot)){const pi=this.routeReuseStrategy.retrieve(Pt.snapshot);this.routeReuseStrategy.store(Pt.snapshot,null),wn.children.onOutletReAttached(pi.contexts),wn.attachRef=pi.componentRef,wn.route=pi.route.value,wn.outlet&&wn.outlet.attach(pi.componentRef,pi.route.value),xo(pi.route.value),this.activateChildRoutes(He,null,wn.children)}else{const pi=zi(Pt.snapshot),ki=pi?.get(e.ComponentFactoryResolver)??null;wn.attachRef=null,wn.route=Pt,wn.resolver=ki,wn.injector=pi,wn.outlet&&wn.outlet.activateWith(Pt,wn.injector),this.activateChildRoutes(He,null,wn.children)}}else this.activateChildRoutes(He,null,rt)}}class Lr{constructor(He){this.path=He,this.route=this.path[this.path.length-1]}}class Gr{constructor(He,fe){this.component=He,this.route=fe}}function Io(xe,He,fe){const rt=xe._root;return yo(rt,He?He._root:null,fe,[rt.value])}function aa(xe,He){const fe=Symbol(),rt=He.get(xe,fe);return rt===fe?"function"!=typeof xe||(0,e.\u0275isInjectable)(xe)?He.get(xe):xe:rt}function yo(xe,He,fe,rt,Pt={canDeactivateChecks:[],canActivateChecks:[]}){const hn=Br(He);return xe.children.forEach(wn=>{(function Pa(xe,He,fe,rt,Pt={canDeactivateChecks:[],canActivateChecks:[]}){const hn=xe.value,wn=He?He.value:null,pi=fe?fe.getContext(xe.value.outlet):null;if(wn&&hn.routeConfig===wn.routeConfig){const ki=function Uo(xe,He,fe){if("function"==typeof fe)return fe(xe,He);switch(fe){case"pathParamsChange":return!mt(xe.url,He.url);case"pathParamsOrQueryParamsChange":return!mt(xe.url,He.url)||!Ut(xe.queryParams,He.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Re(xe,He)||!Ut(xe.queryParams,He.queryParams);default:return!Re(xe,He)}}(wn,hn,hn.routeConfig.runGuardsAndResolvers);ki?Pt.canActivateChecks.push(new Lr(rt)):(hn.data=wn.data,hn._resolvedData=wn._resolvedData),yo(xe,He,hn.component?pi?pi.children:null:fe,rt,Pt),ki&&pi&&pi.outlet&&pi.outlet.isActivated&&Pt.canDeactivateChecks.push(new Gr(pi.outlet.component,wn))}else wn&&_a(He,pi,Pt),Pt.canActivateChecks.push(new Lr(rt)),yo(xe,null,hn.component?pi?pi.children:null:fe,rt,Pt)})(wn,hn[wn.value.outlet],fe,rt.concat([wn.value]),Pt),delete hn[wn.value.outlet]}),ie(hn,(wn,pi)=>_a(wn,fe.getContext(pi),Pt)),Pt}function _a(xe,He,fe){const rt=Br(xe),Pt=xe.value;ie(rt,(hn,wn)=>{_a(hn,Pt.component?He?He.children.getContext(wn):null:He,fe)}),fe.canDeactivateChecks.push(new Gr(Pt.component&&He&&He.outlet&&He.outlet.isActivated?He.outlet.component:null,Pt))}function $o(xe){return"function"==typeof xe}function oo(xe){return xe instanceof l.K||"EmptyError"===xe?.name}const Oi=Symbol("INITIAL_VALUE");function xr(){return(0,D.w)(xe=>(0,h.a)(xe.map(He=>He.pipe((0,A.q)(1),(0,P.O)(Oi)))).pipe((0,E.U)(He=>{for(const fe of He)if(!0!==fe){if(fe===Oi)return Oi;if(!1===fe||fe instanceof $e)return fe}return!0}),(0,B.h)(He=>He!==Oi),(0,A.q)(1)))}function ja(xe){return(0,p.z)((0,Q.b)(He=>{if(Ot(He))throw Rt(0,He)}),(0,E.U)(He=>!0===He))}const Po={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ko(xe,He,fe,rt,Pt){const hn=Ji(xe,He,fe);return hn.matched?function rs(xe,He,fe,rt){const Pt=He.canMatch;if(!Pt||0===Pt.length)return(0,a.of)(!0);const hn=Pt.map(wn=>{const pi=aa(wn,xe);return Ce(function vn(xe){return xe&&$o(xe.canMatch)}(pi)?pi.canMatch(He,fe):xe.runInContext(()=>pi(He,fe)))});return(0,a.of)(hn).pipe(xr(),ja())}(rt=li(He,rt),He,fe).pipe((0,E.U)(wn=>!0===wn?hn:{...Po})):(0,a.of)(hn)}function Ji(xe,He,fe){if(""===He.path)return"full"===He.pathMatch&&(xe.hasChildren()||fe.length>0)?{...Po}:{matched:!0,consumedSegments:[],remainingSegments:fe,parameters:{},positionalParamSegments:{}};const Pt=(He.matcher||wt)(fe,xe,He);if(!Pt)return{...Po};const hn={};ie(Pt.posParams,(pi,ki)=>{hn[ki]=pi.path});const wn=Pt.consumed.length>0?{...hn,...Pt.consumed[Pt.consumed.length-1].parameters}:hn;return{matched:!0,consumedSegments:Pt.consumed,remainingSegments:fe.slice(Pt.consumed.length),parameters:wn,positionalParamSegments:Pt.posParams??{}}}function Na(xe,He,fe,rt){if(fe.length>0&&function Fr(xe,He,fe){return fe.some(rt=>$r(xe,He,rt)&&hi(rt)!==se)}(xe,fe,rt)){const hn=new Xe(He,function Fa(xe,He,fe,rt){const Pt={};Pt[se]=rt,rt._sourceSegment=xe,rt._segmentIndexShift=He.length;for(const hn of fe)if(""===hn.path&&hi(hn)!==se){const wn=new Xe([],{});wn._sourceSegment=xe,wn._segmentIndexShift=He.length,Pt[hi(hn)]=wn}return Pt}(xe,He,rt,new Xe(fe,xe.children)));return hn._sourceSegment=xe,hn._segmentIndexShift=He.length,{segmentGroup:hn,slicedSegments:[]}}if(0===fe.length&&function Ao(xe,He,fe){return fe.some(rt=>$r(xe,He,rt))}(xe,fe,rt)){const hn=new Xe(xe.segments,function Ma(xe,He,fe,rt,Pt){const hn={};for(const wn of rt)if($r(xe,fe,wn)&&!Pt[hi(wn)]){const pi=new Xe([],{});pi._sourceSegment=xe,pi._segmentIndexShift=He.length,hn[hi(wn)]=pi}return{...Pt,...hn}}(xe,He,fe,rt,xe.children));return hn._sourceSegment=xe,hn._segmentIndexShift=He.length,{segmentGroup:hn,slicedSegments:fe}}const Pt=new Xe(xe.segments,xe.children);return Pt._sourceSegment=xe,Pt._segmentIndexShift=He.length,{segmentGroup:Pt,slicedSegments:fe}}function $r(xe,He,fe){return(!(xe.hasChildren()||He.length>0)||"full"!==fe.pathMatch)&&""===fe.path}function fs(xe,He,fe,rt){return!!(hi(xe)===rt||rt!==se&&$r(He,fe,xe))&&("**"===xe.path||Ji(He,xe,fe).matched)}function Sr(xe,He,fe){return 0===He.length&&!xe.children[fe]}const os=!1;class ya{constructor(He){this.segmentGroup=He||null}}class Ha{constructor(He){this.urlTree=He}}function La(xe){return(0,u._)(new ya(xe))}function No(xe){return(0,u._)(new Ha(xe))}class oi{constructor(He,fe,rt,Pt,hn){this.injector=He,this.configLoader=fe,this.urlSerializer=rt,this.urlTree=Pt,this.config=hn,this.allowRedirects=!0}apply(){const He=Na(this.urlTree.root,[],[],this.config).segmentGroup,fe=new Xe(He.segments,He.children);return this.expandSegmentGroup(this.injector,this.config,fe,se).pipe((0,E.U)(hn=>this.createUrlTree(ee(hn),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ae.K)(hn=>{if(hn instanceof Ha)return this.allowRedirects=!1,this.match(hn.urlTree);throw hn instanceof ya?this.noMatchError(hn):hn}))}match(He){return this.expandSegmentGroup(this.injector,this.config,He.root,se).pipe((0,E.U)(Pt=>this.createUrlTree(ee(Pt),He.queryParams,He.fragment))).pipe((0,ae.K)(Pt=>{throw Pt instanceof ya?this.noMatchError(Pt):Pt}))}noMatchError(He){return new e.\u0275RuntimeError(4002,os)}createUrlTree(He,fe,rt){const Pt=Ge(He);return new $e(Pt,fe,rt)}expandSegmentGroup(He,fe,rt,Pt){return 0===rt.segments.length&&rt.hasChildren()?this.expandChildren(He,fe,rt).pipe((0,E.U)(hn=>new Xe([],hn))):this.expandSegment(He,rt,fe,rt.segments,Pt,!0)}expandChildren(He,fe,rt){const Pt=[];for(const hn of Object.keys(rt.children))"primary"===hn?Pt.unshift(hn):Pt.push(hn);return(0,n.D)(Pt).pipe((0,re.b)(hn=>{const wn=rt.children[hn],pi=Ai(fe,hn);return this.expandSegmentGroup(He,pi,wn,hn).pipe((0,E.U)(ki=>({segment:ki,outlet:hn})))}),(0,K.R)((hn,wn)=>(hn[wn.outlet]=wn.segment,hn),{}),T())}expandSegment(He,fe,rt,Pt,hn,wn){return(0,n.D)(rt).pipe((0,re.b)(pi=>this.expandSegmentAgainstRoute(He,fe,rt,pi,Pt,hn,wn).pipe((0,ae.K)(ur=>{if(ur instanceof ya)return(0,a.of)(null);throw ur}))),(0,X.P)(pi=>!!pi),(0,ae.K)((pi,ki)=>{if(oo(pi))return Sr(fe,Pt,hn)?(0,a.of)(new Xe([],{})):La(fe);throw pi}))}expandSegmentAgainstRoute(He,fe,rt,Pt,hn,wn,pi){return fs(Pt,fe,hn,wn)?void 0===Pt.redirectTo?this.matchSegmentAgainstRoute(He,fe,Pt,hn,wn):pi&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(He,fe,rt,Pt,hn,wn):La(fe):La(fe)}expandSegmentAgainstRouteUsingRedirect(He,fe,rt,Pt,hn,wn){return"**"===Pt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(He,rt,Pt,wn):this.expandRegularSegmentAgainstRouteUsingRedirect(He,fe,rt,Pt,hn,wn)}expandWildCardWithParamsAgainstRouteUsingRedirect(He,fe,rt,Pt){const hn=this.applyRedirectCommands([],rt.redirectTo,{});return rt.redirectTo.startsWith("/")?No(hn):this.lineralizeSegments(rt,hn).pipe((0,V.z)(wn=>{const pi=new Xe(wn,{});return this.expandSegment(He,pi,fe,wn,Pt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(He,fe,rt,Pt,hn,wn){const{matched:pi,consumedSegments:ki,remainingSegments:ur,positionalParamSegments:lr}=Ji(fe,Pt,hn);if(!pi)return La(fe);const Yr=this.applyRedirectCommands(ki,Pt.redirectTo,lr);return Pt.redirectTo.startsWith("/")?No(Yr):this.lineralizeSegments(Pt,Yr).pipe((0,V.z)(Ho=>this.expandSegment(He,fe,rt,Ho.concat(ur),wn,!1)))}matchSegmentAgainstRoute(He,fe,rt,Pt,hn){return"**"===rt.path?(He=li(rt,He),rt.loadChildren?(rt._loadedRoutes?(0,a.of)({routes:rt._loadedRoutes,injector:rt._loadedInjector}):this.configLoader.loadChildren(He,rt)).pipe((0,E.U)(pi=>(rt._loadedRoutes=pi.routes,rt._loadedInjector=pi.injector,new Xe(Pt,{})))):(0,a.of)(new Xe(Pt,{}))):Ko(fe,rt,Pt,He).pipe((0,D.w)(({matched:wn,consumedSegments:pi,remainingSegments:ki})=>wn?this.getChildConfig(He=rt._injector??He,rt,Pt).pipe((0,V.z)(lr=>{const Yr=lr.injector??He,Ho=lr.routes,{segmentGroup:ls,slicedSegments:Wo}=Na(fe,pi,ki,Ho),za=new Xe(ls.segments,ls.children);if(0===Wo.length&&za.hasChildren())return this.expandChildren(Yr,Ho,za).pipe((0,E.U)(ys=>new Xe(pi,ys)));if(0===Ho.length&&0===Wo.length)return(0,a.of)(new Xe(pi,{}));const Ka=hi(rt)===hn;return this.expandSegment(Yr,za,Ho,Wo,Ka?se:hn,!0).pipe((0,E.U)(Vs=>new Xe(pi.concat(Vs.segments),Vs.children)))})):La(fe)))}getChildConfig(He,fe,rt){return fe.children?(0,a.of)({routes:fe.children,injector:He}):fe.loadChildren?void 0!==fe._loadedRoutes?(0,a.of)({routes:fe._loadedRoutes,injector:fe._loadedInjector}):function Qs(xe,He,fe,rt){const Pt=He.canLoad;if(void 0===Pt||0===Pt.length)return(0,a.of)(!0);const hn=Pt.map(wn=>{const pi=aa(wn,xe);return Ce(function va(xe){return xe&&$o(xe.canLoad)}(pi)?pi.canLoad(He,fe):xe.runInContext(()=>pi(He,fe)))});return(0,a.of)(hn).pipe(xr(),ja())}(He,fe,rt).pipe((0,V.z)(Pt=>Pt?this.configLoader.loadChildren(He,fe).pipe((0,Q.b)(hn=>{fe._loadedRoutes=hn.routes,fe._loadedInjector=hn.injector})):function In(xe){return(0,u._)(yn(os,3))}())):(0,a.of)({routes:[],injector:He})}lineralizeSegments(He,fe){let rt=[],Pt=fe.root;for(;;){if(rt=rt.concat(Pt.segments),0===Pt.numberOfChildren)return(0,a.of)(rt);if(Pt.numberOfChildren>1||!Pt.children[se])return He.redirectTo,(0,u._)(new e.\u0275RuntimeError(4e3,os));Pt=Pt.children[se]}}applyRedirectCommands(He,fe,rt){return this.applyRedirectCreateUrlTree(fe,this.urlSerializer.parse(fe),He,rt)}applyRedirectCreateUrlTree(He,fe,rt,Pt){const hn=this.createSegmentGroup(He,fe.root,rt,Pt);return new $e(hn,this.createQueryParams(fe.queryParams,this.urlTree.queryParams),fe.fragment)}createQueryParams(He,fe){const rt={};return ie(He,(Pt,hn)=>{if("string"==typeof Pt&&Pt.startsWith(":")){const pi=Pt.substring(1);rt[hn]=fe[pi]}else rt[hn]=Pt}),rt}createSegmentGroup(He,fe,rt,Pt){const hn=this.createSegments(He,fe.segments,rt,Pt);let wn={};return ie(fe.children,(pi,ki)=>{wn[ki]=this.createSegmentGroup(He,pi,rt,Pt)}),new Xe(hn,wn)}createSegments(He,fe,rt,Pt){return fe.map(hn=>hn.path.startsWith(":")?this.findPosParam(He,hn,Pt):this.findOrReturn(hn,rt))}findPosParam(He,fe,rt){const Pt=rt[fe.path.substring(1)];if(!Pt)throw new e.\u0275RuntimeError(4001,os);return Pt}findOrReturn(He,fe){let rt=0;for(const Pt of fe){if(Pt.path===He.path)return fe.splice(rt),Pt;rt++}return He}}class Ri{}class Xi{constructor(He,fe,rt,Pt,hn,wn,pi){this.injector=He,this.rootComponentType=fe,this.config=rt,this.urlTree=Pt,this.url=hn,this.paramsInheritanceStrategy=wn,this.urlSerializer=pi}recognize(){const He=Na(this.urlTree.root,[],[],this.config.filter(fe=>void 0===fe.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,He,se).pipe((0,E.U)(fe=>{if(null===fe)return null;const rt=new Wi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},se,this.rootComponentType,null,this.urlTree.root,-1,{}),Pt=new Tr(rt,fe),hn=new Ar(this.url,Pt);return this.inheritParamsAndData(hn._root),hn}))}inheritParamsAndData(He){const fe=He.value,rt=Jn(fe,this.paramsInheritanceStrategy);fe.params=Object.freeze(rt.params),fe.data=Object.freeze(rt.data),He.children.forEach(Pt=>this.inheritParamsAndData(Pt))}processSegmentGroup(He,fe,rt,Pt){return 0===rt.segments.length&&rt.hasChildren()?this.processChildren(He,fe,rt):this.processSegment(He,fe,rt,rt.segments,Pt)}processChildren(He,fe,rt){return(0,n.D)(Object.keys(rt.children)).pipe((0,re.b)(Pt=>{const hn=rt.children[Pt],wn=Ai(fe,Pt);return this.processSegmentGroup(He,wn,hn,Pt)}),(0,K.R)((Pt,hn)=>Pt&&hn?(Pt.push(...hn),Pt):null),(0,H.o)(Pt=>null!==Pt),(0,U.d)(null),T(),(0,E.U)(Pt=>{if(null===Pt)return null;const hn=na(Pt);return function wr(xe){xe.sort((He,fe)=>He.value.outlet===se?-1:fe.value.outlet===se?1:He.value.outlet.localeCompare(fe.value.outlet))}(hn),hn}))}processSegment(He,fe,rt,Pt,hn){return(0,n.D)(fe).pipe((0,re.b)(wn=>this.processSegmentAgainstRoute(wn._injector??He,wn,rt,Pt,hn)),(0,X.P)(wn=>!!wn),(0,ae.K)(wn=>{if(oo(wn))return Sr(rt,Pt,hn)?(0,a.of)([]):(0,a.of)(null);throw wn}))}processSegmentAgainstRoute(He,fe,rt,Pt,hn){if(fe.redirectTo||!fs(fe,rt,Pt,hn))return(0,a.of)(null);let wn;if("**"===fe.path){const pi=Pt.length>0?Fe(Pt).parameters:{},ki=Vo(rt)+Pt.length,ur=new Wi(Pt,pi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Xo(fe),hi(fe),fe.component??fe._loadedComponent??null,fe,Va(rt),ki,Je(fe));wn=(0,a.of)({snapshot:ur,consumedSegments:[],remainingSegments:[]})}else wn=Ko(rt,fe,Pt,He).pipe((0,E.U)(({matched:pi,consumedSegments:ki,remainingSegments:ur,parameters:lr})=>{if(!pi)return null;const Yr=Vo(rt)+ki.length;return{snapshot:new Wi(ki,lr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Xo(fe),hi(fe),fe.component??fe._loadedComponent??null,fe,Va(rt),Yr,Je(fe)),consumedSegments:ki,remainingSegments:ur}}));return wn.pipe((0,D.w)(pi=>{if(null===pi)return(0,a.of)(null);const{snapshot:ki,consumedSegments:ur,remainingSegments:lr}=pi;He=fe._injector??He;const Yr=fe._loadedInjector??He,Ho=function mo(xe){return xe.children?xe.children:xe.loadChildren?xe._loadedRoutes:[]}(fe),{segmentGroup:ls,slicedSegments:Wo}=Na(rt,ur,lr,Ho.filter(Ka=>void 0===Ka.redirectTo));if(0===Wo.length&&ls.hasChildren())return this.processChildren(Yr,Ho,ls).pipe((0,E.U)(Ka=>null===Ka?null:[new Tr(ki,Ka)]));if(0===Ho.length&&0===Wo.length)return(0,a.of)([new Tr(ki,[])]);const za=hi(fe)===hn;return this.processSegment(Yr,Ho,ls,Wo,za?se:hn).pipe((0,E.U)(Ka=>null===Ka?null:[new Tr(ki,Ka)]))}))}}function Jr(xe){const He=xe.value.routeConfig;return He&&""===He.path&&void 0===He.redirectTo}function na(xe){const He=[],fe=new Set;for(const rt of xe){if(!Jr(rt)){He.push(rt);continue}const Pt=He.find(hn=>rt.value.routeConfig===hn.value.routeConfig);void 0!==Pt?(Pt.children.push(...rt.children),fe.add(Pt)):He.push(rt)}for(const rt of fe){const Pt=na(rt.children);He.push(new Tr(rt.value,Pt))}return He.filter(rt=>!fe.has(rt))}function Va(xe){let He=xe;for(;He._sourceSegment;)He=He._sourceSegment;return He}function Vo(xe){let He=xe,fe=He._segmentIndexShift??0;for(;He._sourceSegment;)He=He._sourceSegment,fe+=He._segmentIndexShift??0;return fe-1}function Xo(xe){return xe.data||{}}function Je(xe){return xe.resolve||{}}function or(xe){return"string"==typeof xe.title||null===xe.title}function Nr(xe){return(0,D.w)(He=>{const fe=xe(He);return fe?(0,n.D)(fe).pipe((0,E.U)(()=>He)):(0,a.of)(He)})}const Rr=new e.InjectionToken("ROUTES");let Vr=(()=>{class xe{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.inject)(e.Compiler)}loadComponent(fe){if(this.componentLoaders.get(fe))return this.componentLoaders.get(fe);if(fe._loadedComponent)return(0,a.of)(fe._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(fe);const rt=Ce(fe.loadComponent()).pipe((0,E.U)(Xr),(0,Q.b)(hn=>{this.onLoadEndListener&&this.onLoadEndListener(fe),fe._loadedComponent=hn}),(0,pe.x)(()=>{this.componentLoaders.delete(fe)})),Pt=new y.c(rt,()=>new b.x).pipe((0,de.x)());return this.componentLoaders.set(fe,Pt),Pt}loadChildren(fe,rt){if(this.childrenLoaders.get(rt))return this.childrenLoaders.get(rt);if(rt._loadedRoutes)return(0,a.of)({routes:rt._loadedRoutes,injector:rt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(rt);const hn=this.loadModuleFactoryOrRoutes(rt.loadChildren).pipe((0,E.U)(pi=>{this.onLoadEndListener&&this.onLoadEndListener(rt);let ki,ur,lr=!1;Array.isArray(pi)?ur=pi:(ki=pi.create(fe).injector,ur=Zt(ki.get(Rr,[],e.InjectFlags.Self|e.InjectFlags.Optional)));return{routes:ur.map(ci),injector:ki}}),(0,pe.x)(()=>{this.childrenLoaders.delete(rt)})),wn=new y.c(hn,()=>new b.x).pipe((0,de.x)());return this.childrenLoaders.set(rt,wn),wn}loadModuleFactoryOrRoutes(fe){return Ce(fe()).pipe((0,E.U)(Xr),(0,V.z)(rt=>rt instanceof e.NgModuleFactory||Array.isArray(rt)?(0,a.of)(rt):(0,n.D)(this.compiler.compileModuleAsync(rt))))}}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();function Xr(xe){return function Co(xe){return xe&&"object"==typeof xe&&"default"in xe}(xe)?xe.default:xe}let Zo=(()=>{class xe{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new b.x,this.configLoader=(0,e.inject)(Vr),this.environmentInjector=(0,e.inject)(e.EnvironmentInjector),this.urlSerializer=(0,e.inject)(xn),this.rootContexts=(0,e.inject)(ui),this.navigationId=0,this.afterPreactivation=()=>(0,a.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Pt=>this.events.next(new zn(Pt)),this.configLoader.onLoadStartListener=Pt=>this.events.next(new nn(Pt))}complete(){this.transitions?.complete()}handleNavigationRequest(fe){const rt=++this.navigationId;this.transitions?.next({...this.transitions.value,...fe,id:rt})}setupNavigations(fe){return this.transitions=new t.X({id:0,targetPageId:0,currentUrlTree:fe.currentUrlTree,currentRawUrl:fe.currentUrlTree,extractedUrl:fe.urlHandlingStrategy.extract(fe.currentUrlTree),urlAfterRedirects:fe.urlHandlingStrategy.extract(fe.currentUrlTree),rawUrl:fe.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:dn,restoredState:null,currentSnapshot:fe.routerState.snapshot,targetSnapshot:null,currentRouterState:fe.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,B.h)(rt=>0!==rt.id),(0,E.U)(rt=>({...rt,extractedUrl:fe.urlHandlingStrategy.extract(rt.rawUrl)})),(0,D.w)(rt=>{let Pt=!1,hn=!1;return(0,a.of)(rt).pipe((0,Q.b)(wn=>{this.currentNavigation={id:wn.id,initialUrl:wn.rawUrl,extractedUrl:wn.extractedUrl,trigger:wn.source,extras:wn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,D.w)(wn=>{const pi=fe.browserUrlTree.toString(),ki=!fe.navigated||wn.extractedUrl.toString()!==pi||pi!==fe.currentUrlTree.toString();if(!ki&&"reload"!==(wn.extras.onSameUrlNavigation??fe.onSameUrlNavigation)){const lr="";return this.events.next(new Mr(wn.id,fe.serializeUrl(rt.rawUrl),lr,0)),fe.rawUrlTree=wn.rawUrl,wn.resolve(null),v.E}if(fe.urlHandlingStrategy.shouldProcessUrl(wn.rawUrl))return ia(wn.source)&&(fe.browserUrlTree=wn.extractedUrl),(0,a.of)(wn).pipe((0,D.w)(lr=>{const Yr=this.transitions?.getValue();return this.events.next(new gi(lr.id,this.urlSerializer.serialize(lr.extractedUrl),lr.source,lr.restoredState)),Yr!==this.transitions?.getValue()?v.E:Promise.resolve(lr)}),function si(xe,He,fe,rt){return(0,D.w)(Pt=>function $n(xe,He,fe,rt,Pt){return new oi(xe,He,fe,rt,Pt).apply()}(xe,He,fe,Pt.extractedUrl,rt).pipe((0,E.U)(hn=>({...Pt,urlAfterRedirects:hn}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,fe.config),(0,Q.b)(lr=>{this.currentNavigation={...this.currentNavigation,finalUrl:lr.urlAfterRedirects},rt.urlAfterRedirects=lr.urlAfterRedirects}),function Vt(xe,He,fe,rt,Pt){return(0,V.z)(hn=>function sr(xe,He,fe,rt,Pt,hn,wn="emptyOnly"){return new Xi(xe,He,fe,rt,Pt,wn,hn).recognize().pipe((0,D.w)(pi=>null===pi?function Fi(xe){return new g.y(He=>He.error(xe))}(new Ri):(0,a.of)(pi)))}(xe,He,fe,hn.urlAfterRedirects,rt.serialize(hn.urlAfterRedirects),rt,Pt).pipe((0,E.U)(wn=>({...hn,targetSnapshot:wn}))))}(this.environmentInjector,this.rootComponentType,fe.config,this.urlSerializer,fe.paramsInheritanceStrategy),(0,Q.b)(lr=>{if(rt.targetSnapshot=lr.targetSnapshot,"eager"===fe.urlUpdateStrategy){if(!lr.extras.skipLocationChange){const Ho=fe.urlHandlingStrategy.merge(lr.urlAfterRedirects,lr.rawUrl);fe.setBrowserUrl(Ho,lr)}fe.browserUrlTree=lr.urlAfterRedirects}const Yr=new Kn(lr.id,this.urlSerializer.serialize(lr.extractedUrl),this.urlSerializer.serialize(lr.urlAfterRedirects),lr.targetSnapshot);this.events.next(Yr)}));if(ki&&fe.urlHandlingStrategy.shouldProcessUrl(fe.rawUrlTree)){const{id:lr,extractedUrl:Yr,source:Ho,restoredState:ls,extras:Wo}=wn,za=new gi(lr,this.urlSerializer.serialize(Yr),Ho,ls);this.events.next(za);const Ka=Bn(Yr,this.rootComponentType).snapshot;return rt={...wn,targetSnapshot:Ka,urlAfterRedirects:Yr,extras:{...Wo,skipLocationChange:!1,replaceUrl:!1}},(0,a.of)(rt)}{const lr="";return this.events.next(new Mr(wn.id,fe.serializeUrl(rt.extractedUrl),lr,1)),fe.rawUrlTree=wn.rawUrl,wn.resolve(null),v.E}}),(0,Q.b)(wn=>{const pi=new on(wn.id,this.urlSerializer.serialize(wn.extractedUrl),this.urlSerializer.serialize(wn.urlAfterRedirects),wn.targetSnapshot);this.events.next(pi)}),(0,E.U)(wn=>rt={...wn,guards:Io(wn.targetSnapshot,wn.currentSnapshot,this.rootContexts)}),function zr(xe,He){return(0,V.z)(fe=>{const{targetSnapshot:rt,currentSnapshot:Pt,guards:{canActivateChecks:hn,canDeactivateChecks:wn}}=fe;return 0===wn.length&&0===hn.length?(0,a.of)({...fe,guardsResult:!0}):function Aa(xe,He,fe,rt){return(0,n.D)(xe).pipe((0,V.z)(Pt=>function ca(xe,He,fe,rt,Pt){const hn=He&&He.routeConfig?He.routeConfig.canDeactivate:null;if(!hn||0===hn.length)return(0,a.of)(!0);const wn=hn.map(pi=>{const ki=zi(He)??Pt,ur=aa(pi,ki);return Ce(function Ze(xe){return xe&&$o(xe.canDeactivate)}(ur)?ur.canDeactivate(xe,He,fe,rt):ki.runInContext(()=>ur(xe,He,fe,rt))).pipe((0,X.P)())});return(0,a.of)(wn).pipe(xr())}(Pt.component,Pt.route,fe,He,rt)),(0,X.P)(Pt=>!0!==Pt,!0))}(wn,rt,Pt,xe).pipe((0,V.z)(pi=>pi&&function yr(xe){return"boolean"==typeof xe}(pi)?function Mo(xe,He,fe,rt){return(0,n.D)(He).pipe((0,re.b)(Pt=>(0,s.z)(function Ss(xe,He){return null!==xe&&He&&He(new jt(xe)),(0,a.of)(!0)}(Pt.route.parent,rt),function ka(xe,He){return null!==xe&&He&&He(new jn(xe)),(0,a.of)(!0)}(Pt.route,rt),function sl(xe,He,fe){const rt=He[He.length-1],hn=He.slice(0,He.length-1).reverse().map(wn=>function wo(xe){const He=xe.routeConfig?xe.routeConfig.canActivateChild:null;return He&&0!==He.length?{node:xe,guards:He}:null}(wn)).filter(wn=>null!==wn).map(wn=>(0,d.P)(()=>{const pi=wn.guards.map(ki=>{const ur=zi(wn.node)??fe,lr=aa(ki,ur);return Ce(function Ct(xe){return xe&&$o(xe.canActivateChild)}(lr)?lr.canActivateChild(rt,xe):ur.runInContext(()=>lr(rt,xe))).pipe((0,X.P)())});return(0,a.of)(pi).pipe(xr())}));return(0,a.of)(hn).pipe(xr())}(xe,Pt.path,fe),function ba(xe,He,fe){const rt=He.routeConfig?He.routeConfig.canActivate:null;if(!rt||0===rt.length)return(0,a.of)(!0);const Pt=rt.map(hn=>(0,d.P)(()=>{const wn=zi(He)??fe,pi=aa(hn,wn);return Ce(function Tt(xe){return xe&&$o(xe.canActivate)}(pi)?pi.canActivate(He,xe):wn.runInContext(()=>pi(He,xe))).pipe((0,X.P)())}));return(0,a.of)(Pt).pipe(xr())}(xe,Pt.route,fe))),(0,X.P)(Pt=>!0!==Pt,!0))}(rt,hn,xe,He):(0,a.of)(pi)),(0,E.U)(pi=>({...fe,guardsResult:pi})))})}(this.environmentInjector,wn=>this.events.next(wn)),(0,Q.b)(wn=>{if(rt.guardsResult=wn.guardsResult,Ot(wn.guardsResult))throw Rt(0,wn.guardsResult);const pi=new he(wn.id,this.urlSerializer.serialize(wn.extractedUrl),this.urlSerializer.serialize(wn.urlAfterRedirects),wn.targetSnapshot,!!wn.guardsResult);this.events.next(pi)}),(0,B.h)(wn=>!!wn.guardsResult||(fe.restoreHistory(wn),this.cancelNavigationTransition(wn,"",3),!1)),Nr(wn=>{if(wn.guards.canActivateChecks.length)return(0,a.of)(wn).pipe((0,Q.b)(pi=>{const ki=new et(pi.id,this.urlSerializer.serialize(pi.extractedUrl),this.urlSerializer.serialize(pi.urlAfterRedirects),pi.targetSnapshot);this.events.next(ki)}),(0,D.w)(pi=>{let ki=!1;return(0,a.of)(pi).pipe(function st(xe,He){return(0,V.z)(fe=>{const{targetSnapshot:rt,guards:{canActivateChecks:Pt}}=fe;if(!Pt.length)return(0,a.of)(fe);let hn=0;return(0,n.D)(Pt).pipe((0,re.b)(wn=>function ln(xe,He,fe,rt){const Pt=xe.routeConfig,hn=xe._resolve;return void 0!==Pt?.title&&!or(Pt)&&(hn[ve]=Pt.title),function An(xe,He,fe,rt){const Pt=function yi(xe){return[...Object.keys(xe),...Object.getOwnPropertySymbols(xe)]}(xe);if(0===Pt.length)return(0,a.of)({});const hn={};return(0,n.D)(Pt).pipe((0,V.z)(wn=>function Pi(xe,He,fe,rt){const Pt=zi(He)??rt,hn=aa(xe,Pt);return Ce(hn.resolve?hn.resolve(He,fe):Pt.runInContext(()=>hn(He,fe)))}(xe[wn],He,fe,rt).pipe((0,X.P)(),(0,Q.b)(pi=>{hn[wn]=pi}))),j(1),(0,N.h)(hn),(0,ae.K)(wn=>oo(wn)?v.E:(0,u._)(wn)))}(hn,xe,He,rt).pipe((0,E.U)(wn=>(xe._resolvedData=wn,xe.data=Jn(xe,fe).resolve,Pt&&or(Pt)&&(xe.data[ve]=Pt.title),null)))}(wn.route,rt,xe,He)),(0,Q.b)(()=>hn++),j(1),(0,V.z)(wn=>hn===Pt.length?(0,a.of)(fe):v.E))})}(fe.paramsInheritanceStrategy,this.environmentInjector),(0,Q.b)({next:()=>ki=!0,complete:()=>{ki||(fe.restoreHistory(pi),this.cancelNavigationTransition(pi,"",2))}}))}),(0,Q.b)(pi=>{const ki=new tt(pi.id,this.urlSerializer.serialize(pi.extractedUrl),this.urlSerializer.serialize(pi.urlAfterRedirects),pi.targetSnapshot);this.events.next(ki)}))}),Nr(wn=>{const pi=ki=>{const ur=[];ki.routeConfig?.loadComponent&&!ki.routeConfig._loadedComponent&&ur.push(this.configLoader.loadComponent(ki.routeConfig).pipe((0,Q.b)(lr=>{ki.component=lr}),(0,E.U)(()=>{})));for(const lr of ki.children)ur.push(...pi(lr));return ur};return(0,h.a)(pi(wn.targetSnapshot.root)).pipe((0,U.d)(),(0,A.q)(1))}),Nr(()=>this.afterPreactivation()),(0,E.U)(wn=>{const pi=function w(xe,He,fe){const rt=ne(xe,He._root,fe?fe._root:void 0);return new _o(rt,He)}(fe.routeReuseStrategy,wn.targetSnapshot,wn.currentRouterState);return rt={...wn,targetRouterState:pi}}),(0,Q.b)(wn=>{fe.currentUrlTree=wn.urlAfterRedirects,fe.rawUrlTree=fe.urlHandlingStrategy.merge(wn.urlAfterRedirects,wn.rawUrl),fe.routerState=wn.targetRouterState,"deferred"===fe.urlUpdateStrategy&&(wn.extras.skipLocationChange||fe.setBrowserUrl(fe.rawUrlTree,wn),fe.browserUrlTree=wn.urlAfterRedirects)}),((xe,He,fe)=>(0,E.U)(rt=>(new tr(He,rt.targetRouterState,rt.currentRouterState,fe).activate(xe),rt)))(this.rootContexts,fe.routeReuseStrategy,wn=>this.events.next(wn)),(0,A.q)(1),(0,Q.b)({next:wn=>{Pt=!0,this.lastSuccessfulNavigation=this.currentNavigation,fe.navigated=!0,this.events.next(new $i(wn.id,this.urlSerializer.serialize(wn.extractedUrl),this.urlSerializer.serialize(fe.currentUrlTree))),fe.titleStrategy?.updateTitle(wn.targetRouterState.snapshot),wn.resolve(!0)},complete:()=>{Pt=!0}}),(0,pe.x)(()=>{Pt||hn||this.cancelNavigationTransition(rt,"",1),this.currentNavigation?.id===rt.id&&(this.currentNavigation=null)}),(0,ae.K)(wn=>{if(hn=!0,Yn(wn)){Tn(wn)||(fe.navigated=!0,fe.restoreHistory(rt,!0));const pi=new fr(rt.id,this.urlSerializer.serialize(rt.extractedUrl),wn.message,wn.cancellationCode);if(this.events.next(pi),Tn(wn)){const ki=fe.urlHandlingStrategy.merge(wn.url,fe.rawUrlTree),ur={skipLocationChange:rt.extras.skipLocationChange,replaceUrl:"eager"===fe.urlUpdateStrategy||ia(rt.source)};fe.scheduleNavigation(ki,dn,null,ur,{resolve:rt.resolve,reject:rt.reject,promise:rt.promise})}else rt.resolve(!1)}else{fe.restoreHistory(rt,!0);const pi=new ti(rt.id,this.urlSerializer.serialize(rt.extractedUrl),wn,rt.targetSnapshot??void 0);this.events.next(pi);try{rt.resolve(fe.errorHandler(wn))}catch(ki){rt.reject(ki)}}return v.E}))}))}cancelNavigationTransition(fe,rt,Pt){const hn=new fr(fe.id,this.urlSerializer.serialize(fe.extractedUrl),rt,Pt);this.events.next(hn),fe.resolve(!1)}}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();function ia(xe){return xe!==dn}let Ga=(()=>{class xe{buildTitle(fe){let rt,Pt=fe.root;for(;void 0!==Pt;)rt=this.getResolvedTitleForRoute(Pt)??rt,Pt=Pt.children.find(hn=>hn.outlet===se);return rt}getResolvedTitleForRoute(fe){return fe.data[ve]}}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:function(){return(0,e.inject)(ra)},providedIn:"root"}),xe})(),ra=(()=>{class xe extends Ga{constructor(fe){super(),this.title=fe}updateTitle(fe){const rt=this.buildTitle(fe);void 0!==rt&&this.title.setTitle(rt)}}return xe.\u0275fac=function(fe){return new(fe||xe)(e.\u0275\u0275inject(q.Title))},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),mr=(()=>{class xe{}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:function(){return(0,e.inject)(so)},providedIn:"root"}),xe})();class Ur{shouldDetach(He){return!1}store(He,fe){}shouldAttach(He){return!1}retrieve(He){return null}shouldReuseRoute(He,fe){return He.routeConfig===fe.routeConfig}}let so=(()=>{class xe extends Ur{}return xe.\u0275fac=function(){let He;return function(rt){return(He||(He=e.\u0275\u0275getInheritedFactory(xe)))(rt||xe)}}(),xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const Wa=new e.InjectionToken("",{providedIn:"root",factory:()=>({})});let ml=(()=>{class xe{}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:function(){return(0,e.inject)(kl)},providedIn:"root"}),xe})(),kl=(()=>{class xe{shouldProcessUrl(fe){return!0}extract(fe){return fe}merge(fe,rt){return fe}}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();function ws(xe){throw xe}function Ca(xe,He,fe){return He.parse("/")}const ms={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ea=(()=>{class xe{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.inject)(e.\u0275Console),this.isNgZoneEnabled=!1,this.options=(0,e.inject)(Wa,{optional:!0})||{},this.errorHandler=this.options.errorHandler||ws,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Ca,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,e.inject)(ml),this.routeReuseStrategy=(0,e.inject)(mr),this.urlCreationStrategy=(0,e.inject)(kr),this.titleStrategy=(0,e.inject)(Ga),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=Zt((0,e.inject)(Rr,{optional:!0})??[]),this.navigationTransitions=(0,e.inject)(Zo),this.urlSerializer=(0,e.inject)(xn),this.location=(0,e.inject)(S.Location),this.isNgZoneEnabled=(0,e.inject)(e.NgZone)instanceof e.NgZone&&e.NgZone.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new $e,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Bn(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(fe=>{this.lastSuccessfulId=fe.id,this.currentPageId=this.browserPageId??0},fe=>{this.console.warn(`Unhandled Navigation Error: ${fe}`)})}resetRootComponentType(fe){this.routerState.root.component=fe,this.navigationTransitions.rootComponentType=fe}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const fe=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),dn,fe)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(fe=>{const rt="popstate"===fe.type?"popstate":"hashchange";"popstate"===rt&&setTimeout(()=>{this.navigateToSyncWithBrowser(fe.url,rt,fe.state)},0)}))}navigateToSyncWithBrowser(fe,rt,Pt){const hn={replaceUrl:!0},wn=Pt?.navigationId?Pt:null;if(Pt){const ki={...Pt};delete ki.navigationId,delete ki.\u0275routerPageId,0!==Object.keys(ki).length&&(hn.state=ki)}const pi=this.parseUrl(fe);this.scheduleNavigation(pi,rt,wn,hn)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(fe){this.config=fe.map(ci),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}createUrlTree(fe,rt={}){const{relativeTo:Pt,queryParams:hn,fragment:wn,queryParamsHandling:pi,preserveFragment:ki}=rt,ur=ki?this.currentUrlTree.fragment:wn;let lr=null;switch(pi){case"merge":lr={...this.currentUrlTree.queryParams,...hn};break;case"preserve":lr=this.currentUrlTree.queryParams;break;default:lr=hn||null}return null!==lr&&(lr=this.removeEmptyProps(lr)),this.urlCreationStrategy.createUrlTree(Pt,this.routerState,this.currentUrlTree,fe,lr,ur??null)}navigateByUrl(fe,rt={skipLocationChange:!1}){const Pt=Ot(fe)?fe:this.parseUrl(fe),hn=this.urlHandlingStrategy.merge(Pt,this.rawUrlTree);return this.scheduleNavigation(hn,dn,null,rt)}navigate(fe,rt={skipLocationChange:!1}){return function Xs(xe){for(let He=0;He<xe.length;He++){const fe=xe[He];if(null==fe)throw new e.\u0275RuntimeError(4008,false)}}(fe),this.navigateByUrl(this.createUrlTree(fe,rt),rt)}serializeUrl(fe){return this.urlSerializer.serialize(fe)}parseUrl(fe){let rt;try{rt=this.urlSerializer.parse(fe)}catch(Pt){rt=this.malformedUriErrorHandler(Pt,this.urlSerializer,fe)}return rt}isActive(fe,rt){let Pt;if(Pt=!0===rt?{...ms}:!1===rt?{...Us}:rt,Ot(fe))return Xt(this.currentUrlTree,fe,Pt);const hn=this.parseUrl(fe);return Xt(this.currentUrlTree,hn,Pt)}removeEmptyProps(fe){return Object.keys(fe).reduce((rt,Pt)=>{const hn=fe[Pt];return null!=hn&&(rt[Pt]=hn),rt},{})}scheduleNavigation(fe,rt,Pt,hn,wn){if(this.disposed)return Promise.resolve(!1);let pi,ki,ur,lr;return wn?(pi=wn.resolve,ki=wn.reject,ur=wn.promise):ur=new Promise((Yr,Ho)=>{pi=Yr,ki=Ho}),lr="computed"===this.canceledNavigationResolution?Pt&&Pt.\u0275routerPageId?Pt.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:lr,source:rt,restoredState:Pt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:fe,extras:hn,resolve:pi,reject:ki,promise:ur,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ur.catch(Yr=>Promise.reject(Yr))}setBrowserUrl(fe,rt){const Pt=this.urlSerializer.serialize(fe);if(this.location.isCurrentPathEqualTo(Pt)||rt.extras.replaceUrl){const wn={...rt.extras.state,...this.generateNgRouterState(rt.id,this.browserPageId)};this.location.replaceState(Pt,"",wn)}else{const hn={...rt.extras.state,...this.generateNgRouterState(rt.id,rt.targetPageId)};this.location.go(Pt,"",hn)}}restoreHistory(fe,rt=!1){if("computed"===this.canceledNavigationResolution){const hn=this.currentPageId-(this.browserPageId??this.currentPageId);0!==hn?this.location.historyGo(hn):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===hn&&(this.resetState(fe),this.browserUrlTree=fe.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(rt&&this.resetState(fe),this.resetUrlToCurrentUrlTree())}resetState(fe){this.routerState=fe.currentRouterState,this.currentUrlTree=fe.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,fe.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(fe,rt){return"computed"===this.canceledNavigationResolution?{navigationId:fe,\u0275routerPageId:rt}:{navigationId:fe}}}return xe.\u0275fac=function(fe){return new(fe||xe)},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),as=(()=>{class xe{constructor(fe,rt,Pt,hn,wn,pi){this.router=fe,this.route=rt,this.tabIndexAttribute=Pt,this.renderer=hn,this.el=wn,this.locationStrategy=pi,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new b.x;const ki=wn.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ki||"area"===ki,this.isAnchorElement?this.subscription=fe.events.subscribe(ur=>{ur instanceof $i&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(fe){this._preserveFragment=(0,e.\u0275coerceToBoolean)(fe)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(fe){this._skipLocationChange=(0,e.\u0275coerceToBoolean)(fe)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(fe){this._replaceUrl=(0,e.\u0275coerceToBoolean)(fe)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(fe){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",fe)}ngOnChanges(fe){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(fe){null!=fe?(this.commands=Array.isArray(fe)?fe:[fe],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(fe,rt,Pt,hn,wn){return!!(null===this.urlTree||this.isAnchorElement&&(0!==fe||rt||Pt||hn||wn||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const fe=null===this.href?null:(0,e.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",fe)}applyAttributeValue(fe,rt){const Pt=this.renderer,hn=this.el.nativeElement;null!==rt?Pt.setAttribute(hn,fe,rt):Pt.removeAttribute(hn,fe)}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 xe.\u0275fac=function(fe){return new(fe||xe)(e.\u0275\u0275directiveInject(Ea),e.\u0275\u0275directiveInject(Lt),e.\u0275\u0275injectAttribute("tabindex"),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(S.LocationStrategy))},xe.\u0275dir=e.\u0275\u0275defineDirective({type:xe,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(fe,rt){1&fe&&e.\u0275\u0275listener("click",function(hn){return rt.onClick(hn.button,hn.ctrlKey,hn.shiftKey,hn.altKey,hn.metaKey)}),2&fe&&e.\u0275\u0275attribute("target",rt.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[e.\u0275\u0275NgOnChangesFeature]}),xe})(),Oo=(()=>{class xe{get isActive(){return this._isActive}constructor(fe,rt,Pt,hn,wn){this.router=fe,this.element=rt,this.renderer=Pt,this.cdr=hn,this.link=wn,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.EventEmitter,this.routerEventsSubscription=fe.events.subscribe(pi=>{pi instanceof $i&&this.update()})}ngAfterContentInit(){(0,a.of)(this.links.changes,(0,a.of)(null)).pipe((0,me.J)()).subscribe(fe=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const fe=[...this.links.toArray(),this.link].filter(rt=>!!rt).map(rt=>rt.onChanges);this.linkInputChangesSubscription=(0,n.D)(fe).pipe((0,me.J)()).subscribe(rt=>{this._isActive!==this.isLinkActive(this.router)(rt)&&this.update()})}set routerLinkActive(fe){const rt=Array.isArray(fe)?fe:fe.split(" ");this.classes=rt.filter(Pt=>!!Pt)}ngOnChanges(fe){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const fe=this.hasActiveLinks();this._isActive!==fe&&(this._isActive=fe,this.cdr.markForCheck(),this.classes.forEach(rt=>{fe?this.renderer.addClass(this.element.nativeElement,rt):this.renderer.removeClass(this.element.nativeElement,rt)}),fe&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(fe))})}isLinkActive(fe){const rt=function gl(xe){return!!xe.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Pt=>!!Pt.urlTree&&fe.isActive(Pt.urlTree,rt)}hasActiveLinks(){const fe=this.isLinkActive(this.router);return this.link&&fe(this.link)||this.links.some(fe)}}return xe.\u0275fac=function(fe){return new(fe||xe)(e.\u0275\u0275directiveInject(Ea),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(as,8))},xe.\u0275dir=e.\u0275\u0275defineDirective({type:xe,selectors:[["","routerLinkActive",""]],contentQueries:function(fe,rt,Pt){if(1&fe&&e.\u0275\u0275contentQuery(Pt,as,5),2&fe){let hn;e.\u0275\u0275queryRefresh(hn=e.\u0275\u0275loadQuery())&&(rt.links=hn)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[e.\u0275\u0275NgOnChangesFeature]}),xe})();class Zs{}let Fl=(()=>{class xe{constructor(fe,rt,Pt,hn,wn){this.router=fe,this.injector=Pt,this.preloadingStrategy=hn,this.loader=wn}setUpPreloading(){this.subscription=this.router.events.pipe((0,B.h)(fe=>fe instanceof $i),(0,re.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(fe,rt){const Pt=[];for(const hn of rt){hn.providers&&!hn._injector&&(hn._injector=(0,e.createEnvironmentInjector)(hn.providers,fe,`Route: ${hn.path}`));const wn=hn._injector??fe,pi=hn._loadedInjector??wn;(hn.loadChildren&&!hn._loadedRoutes&&void 0===hn.canLoad||hn.loadComponent&&!hn._loadedComponent)&&Pt.push(this.preloadConfig(wn,hn)),(hn.children||hn._loadedRoutes)&&Pt.push(this.processRoutes(pi,hn.children??hn._loadedRoutes))}return(0,n.D)(Pt).pipe((0,me.J)())}preloadConfig(fe,rt){return this.preloadingStrategy.preload(rt,()=>{let Pt;Pt=rt.loadChildren&&void 0===rt.canLoad?this.loader.loadChildren(fe,rt):(0,a.of)(null);const hn=Pt.pipe((0,V.z)(wn=>null===wn?(0,a.of)(void 0):(rt._loadedRoutes=wn.routes,rt._loadedInjector=wn.injector,this.processRoutes(wn.injector??fe,wn.routes))));if(rt.loadComponent&&!rt._loadedComponent){const wn=this.loader.loadComponent(rt);return(0,n.D)([hn,wn]).pipe((0,me.J)())}return hn})}}return xe.\u0275fac=function(fe){return new(fe||xe)(e.\u0275\u0275inject(Ea),e.\u0275\u0275inject(e.Compiler),e.\u0275\u0275inject(e.EnvironmentInjector),e.\u0275\u0275inject(Zs),e.\u0275\u0275inject(Vr))},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const vl=new e.InjectionToken("");let js=(()=>{class xe{constructor(fe,rt,Pt,hn,wn={}){this.urlSerializer=fe,this.transitions=rt,this.viewportScroller=Pt,this.zone=hn,this.options=wn,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},wn.scrollPositionRestoration=wn.scrollPositionRestoration||"disabled",wn.anchorScrolling=wn.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(fe=>{fe instanceof gi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=fe.navigationTrigger,this.restoredId=fe.restoredState?fe.restoredState.navigationId:0):fe instanceof $i&&(this.lastId=fe.id,this.scheduleScrollEvent(fe,this.urlSerializer.parse(fe.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(fe=>{fe instanceof vi&&(fe.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(fe.position):fe.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(fe.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(fe,rt){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new vi(fe,"popstate"===this.lastSource?this.store[this.restoredId]:null,rt))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return xe.\u0275fac=function(fe){e.\u0275\u0275invalidFactory()},xe.\u0275prov=e.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})();var Jo=(()=>((Jo=Jo||{})[Jo.COMPLETE=0]="COMPLETE",Jo[Jo.FAILED=1]="FAILED",Jo[Jo.REDIRECTING=2]="REDIRECTING",Jo))();const gs=!1;function _s(xe,He){return{\u0275kind:xe,\u0275providers:He}}const Js=new e.InjectionToken("",{providedIn:"root",factory:()=>!1});function tl(){const xe=(0,e.inject)(e.Injector);return He=>{const fe=xe.get(e.ApplicationRef);if(He!==fe.components[0])return;const rt=xe.get(Ea),Pt=xe.get(Os);1===xe.get(vs)&&rt.initialNavigation(),xe.get(Ps,null,e.InjectFlags.Optional)?.setUpPreloading(),xe.get(vl,null,e.InjectFlags.Optional)?.init(),rt.resetRootComponentType(fe.componentTypes[0]),Pt.closed||(Pt.next(),Pt.complete(),Pt.unsubscribe())}}const Os=new e.InjectionToken(gs?"bootstrap done indicator":"",{factory:()=>new b.x}),vs=new e.InjectionToken(gs?"initial navigation":"",{providedIn:"root",factory:()=>1});function Is(){let xe=[];return xe=gs?[{provide:e.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const He=(0,e.inject)(Ea);return()=>He.events.subscribe(fe=>{console.group?.(`Router Event: ${fe.constructor.name}`),console.log(function Ii(xe){if(!("type"in xe))return`Unknown Router Event: ${xe.constructor.name}`;switch(xe.type){case 14:return`ActivationEnd(path: '${xe.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${xe.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${xe.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${xe.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${xe.id}, url: '${xe.url}', urlAfterRedirects: '${xe.urlAfterRedirects}', state: ${xe.state}, shouldActivate: ${xe.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${xe.id}, url: '${xe.url}', urlAfterRedirects: '${xe.urlAfterRedirects}', state: ${xe.state})`;case 2:return`NavigationCancel(id: ${xe.id}, url: '${xe.url}')`;case 16:return`NavigationSkipped(id: ${xe.id}, url: '${xe.url}')`;case 1:return`NavigationEnd(id: ${xe.id}, url: '${xe.url}', urlAfterRedirects: '${xe.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${xe.id}, url: '${xe.url}', error: ${xe.error})`;case 0:return`NavigationStart(id: ${xe.id}, url: '${xe.url}')`;case 6:return`ResolveEnd(id: ${xe.id}, url: '${xe.url}', urlAfterRedirects: '${xe.urlAfterRedirects}', state: ${xe.state})`;case 5:return`ResolveStart(id: ${xe.id}, url: '${xe.url}', urlAfterRedirects: '${xe.urlAfterRedirects}', state: ${xe.state})`;case 10:return`RouteConfigLoadEnd(path: ${xe.route.path})`;case 9:return`RouteConfigLoadStart(path: ${xe.route.path})`;case 4:return`RoutesRecognized(id: ${xe.id}, url: '${xe.url}', urlAfterRedirects: '${xe.urlAfterRedirects}', state: ${xe.state})`;case 15:return`Scroll(anchor: '${xe.anchor}', position: '${xe.position?`${xe.position[0]}, ${xe.position[1]}`:null}')`}}(fe)),console.log(fe),console.groupEnd?.()})}}]:[],_s(1,xe)}const Ps=new e.InjectionToken(gs?"router preloader":"");function bs(xe){return _s(0,[{provide:Ps,useExisting:Fl},{provide:Zs,useExisting:xe}])}const Bo=!1,da=new e.InjectionToken(Bo?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Lo=[S.Location,{provide:xn,useClass:_n},Ea,ui,{provide:Lt,useFactory:function ss(xe){return xe.routerState.root},deps:[Ea]},Vr,Bo?{provide:Js,useValue:!0}:[]];function As(){return new e.NgProbeToken("Router",Ea)}let yl=(()=>{class xe{constructor(fe){}static forRoot(fe,rt){return{ngModule:xe,providers:[Lo,Bo&&rt?.enableTracing?Is().\u0275providers:[],{provide:Rr,multi:!0,useValue:fe},{provide:da,useFactory:nr,deps:[[Ea,new e.Optional,new e.SkipSelf]]},{provide:Wa,useValue:rt||{}},rt?.useHash?{provide:S.LocationStrategy,useClass:S.HashLocationStrategy}:{provide:S.LocationStrategy,useClass:S.PathLocationStrategy},{provide:vl,useFactory:()=>{const xe=(0,e.inject)(S.ViewportScroller),He=(0,e.inject)(e.NgZone),fe=(0,e.inject)(Wa),rt=(0,e.inject)(Zo),Pt=(0,e.inject)(xn);return fe.scrollOffset&&xe.setOffset(fe.scrollOffset),new js(Pt,rt,xe,He,fe)}},rt?.preloadingStrategy?bs(rt.preloadingStrategy).\u0275providers:[],{provide:e.NgProbeToken,multi:!0,useFactory:As},rt?.initialNavigation?pn(rt):[],[{provide:Mi,useFactory:tl},{provide:e.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Mi}]]}}static forChild(fe){return{ngModule:xe,providers:[{provide:Rr,multi:!0,useValue:fe}]}}}return xe.\u0275fac=function(fe){return new(fe||xe)(e.\u0275\u0275inject(da,8))},xe.\u0275mod=e.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=e.\u0275\u0275defineInjector({imports:[ii]}),xe})();function nr(xe){if(Bo&&xe)throw new e.\u0275RuntimeError(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function pn(xe){return["disabled"===xe.initialNavigation?_s(3,[{provide:e.APP_INITIALIZER,multi:!0,useFactory:()=>{const He=(0,e.inject)(Ea);return()=>{He.setUpLocationChangeListener()}}},{provide:vs,useValue:2}]).\u0275providers:[],"enabledBlocking"===xe.initialNavigation?_s(2,[{provide:vs,useValue:0},{provide:e.APP_INITIALIZER,multi:!0,deps:[e.Injector],useFactory:He=>{const fe=He.get(S.LOCATION_INITIALIZED,Promise.resolve());return()=>fe.then(()=>new Promise(rt=>{const Pt=He.get(Ea),hn=He.get(Os);(function ll(xe,He){xe.events.pipe((0,B.h)(fe=>fe instanceof $i||fe instanceof fr||fe instanceof ti||fe instanceof Mr),(0,E.U)(fe=>fe instanceof $i||fe instanceof Mr?Jo.COMPLETE:fe instanceof fr&&(0===fe.code||1===fe.code)?Jo.REDIRECTING:Jo.FAILED),(0,B.h)(fe=>fe!==Jo.REDIRECTING),(0,A.q)(1)).subscribe(()=>{He()})})(Pt,()=>{rt(!0)}),He.get(Zo).afterPreactivation=()=>(rt(!0),hn.closed?(0,a.of)(void 0):hn),Pt.initialNavigation()}))}}]).\u0275providers:[]]}const Mi=new e.InjectionToken(Bo?"Router Initializer":"")},63942:(oe,x,i)=>{"use strict";i.d(x,{Z:()=>S});var e=i(42090),n=i(34859),a=i(6881),t=i(41877);class l{constructor(D,A){this._delegate=D,this.firebase=A,(0,a._addComponent)(D,new n.wA("app-compat",()=>this,"PUBLIC")),this.container=D.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(D){this._delegate.automaticDataCollectionEnabled=D}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(D=>{this._delegate.checkDestroyed(),D()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,a.deleteApp)(this._delegate)))}_getService(D,A=a._DEFAULT_ENTRY_NAME){var P;this._delegate.checkDestroyed();const B=this._delegate.container.getProvider(D);return!B.isInitialized()&&"EXPLICIT"===(null===(P=B.getComponent())||void 0===P?void 0:P.instantiationMode)&&B.initialize(),B.getImmediate({identifier:A})}_removeServiceInstance(D,A=a._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(D).clearInstance(A)}_addComponent(D){(0,a._addComponent)(this._delegate,D)}_addOrOverwriteComponent(D){(0,a._addOrOverwriteComponent)(this._delegate,D)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const s=new e.LL("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),u=function p(){const E=function d(E){const D={},A={__esModule:!0,initializeApp:function V(ae,K={}){const k=a.initializeApp(ae,K);if((0,e.r3)(D,k.name))return D[k.name];const $=new E(k,A);return D[k.name]=$,$},app:B,registerVersion:a.registerVersion,setLogLevel:a.setLogLevel,onLog:a.onLog,apps:null,SDK_VERSION:a.SDK_VERSION,INTERNAL:{registerComponent:function re(ae){const K=ae.name,k=K.replace("-compat","");if(a._registerComponent(ae)&&"PUBLIC"===ae.type){const $=(j=B())=>{if("function"!=typeof j[k])throw s.create("invalid-app-argument",{appName:K});return j[k]()};void 0!==ae.serviceProps&&(0,e.ZB)($,ae.serviceProps),A[k]=$,E.prototype[k]=function(...j){return this._getService.bind(this,K).apply(this,ae.multipleInstances?j:[])}}return"PUBLIC"===ae.type?A[k]:null},removeApp:function P(ae){delete D[ae]},useAsService:function Q(ae,K){return"serverAuth"===K?null:K},modularAPIs:a}};function B(ae){if(!(0,e.r3)(D,ae=ae||a._DEFAULT_ENTRY_NAME))throw s.create("no-app",{appName:ae});return D[ae]}return A.default=A,Object.defineProperty(A,"apps",{get:function X(){return Object.keys(D).map(ae=>D[ae])}}),B.App=E,A}(l);return E.INTERNAL=Object.assign(Object.assign({},E.INTERNAL),{createFirebaseNamespace:p,extendNamespace:function D(A){(0,e.ZB)(E,A)},createSubscribe:e.ne,ErrorFactory:e.LL,deepExtend:e.ZB}),E}(),g=new t.Yd("@firebase/app-compat");if((0,e.jU)()&&void 0!==self.firebase){g.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");const E=self.firebase.SDK_VERSION;E&&E.indexOf("LITE")>=0&&g.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}const S=u;!function b(E){(0,a.registerVersion)("@firebase/app-compat","0.2.13",E)}()},6881:(oe,x,i)=>{"use strict";i.r(x),i.d(x,{FirebaseError:()=>t.ZR,SDK_VERSION:()=>ke,_DEFAULT_ENTRY_NAME:()=>xt,_addComponent:()=>$e,_addOrOverwriteComponent:()=>Xe,_apps:()=>bt,_clearComponents:()=>It,_components:()=>At,_getProvider:()=>Ve,_registerComponent:()=>Pe,_removeServiceInstance:()=>mt,deleteApp:()=>tn,getApp:()=>ze,getApps:()=>pt,initializeApp:()=>Ae,onLog:()=>z,registerVersion:()=>Et,setLogLevel:()=>Z});var e=i(15861),n=i(34859),a=i(41877),t=i(42090);const l=(Mn,On)=>On.some(Qn=>Mn instanceof Qn);let h,s;const u=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap;let D={get(Mn,On,Qn){if(Mn instanceof IDBTransaction){if("done"===On)return g.get(Mn);if("objectStoreNames"===On)return Mn.objectStoreNames||v.get(Mn);if("store"===On)return Qn.objectStoreNames[1]?void 0:Qn.objectStore(Qn.objectStoreNames[0])}return V(Mn[On])},set:(Mn,On,Qn)=>(Mn[On]=Qn,!0),has:(Mn,On)=>Mn instanceof IDBTransaction&&("done"===On||"store"===On)||On in Mn};function B(Mn){return"function"==typeof Mn?function P(Mn){return Mn!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function p(){return s||(s=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Mn)?function(...On){return Mn.apply(X(this),On),V(u.get(this))}:function(...On){return V(Mn.apply(X(this),On))}:function(On,...Qn){const Ti=Mn.call(X(this),On,...Qn);return v.set(Ti,On.sort?On.sort():[On]),V(Ti)}}(Mn):(Mn instanceof IDBTransaction&&function E(Mn){if(g.has(Mn))return;const On=new Promise((Qn,Ti)=>{const Si=()=>{Mn.removeEventListener("complete",un),Mn.removeEventListener("error",rn),Mn.removeEventListener("abort",rn)},un=()=>{Qn(),Si()},rn=()=>{Ti(Mn.error||new DOMException("AbortError","AbortError")),Si()};Mn.addEventListener("complete",un),Mn.addEventListener("error",rn),Mn.addEventListener("abort",rn)});g.set(Mn,On)}(Mn),l(Mn,function d(){return h||(h=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Mn,D):Mn)}function V(Mn){if(Mn instanceof IDBRequest)return function S(Mn){const On=new Promise((Qn,Ti)=>{const Si=()=>{Mn.removeEventListener("success",un),Mn.removeEventListener("error",rn)},un=()=>{Qn(V(Mn.result)),Si()},rn=()=>{Ti(Mn.error),Si()};Mn.addEventListener("success",un),Mn.addEventListener("error",rn)});return On.then(Qn=>{Qn instanceof IDBCursor&&u.set(Qn,Mn)}).catch(()=>{}),b.set(On,Mn),On}(Mn);if(y.has(Mn))return y.get(Mn);const On=B(Mn);return On!==Mn&&(y.set(Mn,On),b.set(On,Mn)),On}const X=Mn=>b.get(Mn),ae=["get","getKey","getAll","getAllKeys","count"],K=["put","add","delete","clear"],k=new Map;function $(Mn,On){if(!(Mn instanceof IDBDatabase)||On in Mn||"string"!=typeof On)return;if(k.get(On))return k.get(On);const Qn=On.replace(/FromIndex$/,""),Ti=On!==Qn,Si=K.includes(Qn);if(!(Qn in(Ti?IDBIndex:IDBObjectStore).prototype)||!Si&&!ae.includes(Qn))return;const un=function(){var rn=(0,e.Z)(function*($t,...Nt){const Rn=this.transaction($t,Si?"readwrite":"readonly");let Wn=Rn.store;return Ti&&(Wn=Wn.index(Nt.shift())),(yield Promise.all([Wn[Qn](...Nt),Si&&Rn.done]))[0]});return function(Nt){return rn.apply(this,arguments)}}();return k.set(On,un),un}!function A(Mn){D=Mn(D)}(Mn=>({...Mn,get:(On,Qn,Ti)=>$(On,Qn)||Mn.get(On,Qn,Ti),has:(On,Qn)=>!!$(On,Qn)||Mn.has(On,Qn)}));class j{constructor(On){this.container=On}getPlatformInfoString(){return this.container.getProviders().map(Qn=>{if(function R(Mn){return"VERSION"===Mn.getComponent()?.type}(Qn)){const Ti=Qn.getImmediate();return`${Ti.library}/${Ti.version}`}return null}).filter(Qn=>Qn).join(" ")}}const U="@firebase/app",T=new a.Yd("@firebase/app"),xt="[DEFAULT]",zt={[U]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},bt=new Map,At=new Map;function $e(Mn,On){try{Mn.container.addComponent(On)}catch(Qn){T.debug(`Component ${On.name} failed to register with FirebaseApp ${Mn.name}`,Qn)}}function Xe(Mn,On){Mn.container.addOrOverwriteComponent(On)}function Pe(Mn){const On=Mn.name;if(At.has(On))return T.debug(`There were multiple attempts to register component ${On}.`),!1;At.set(On,Mn);for(const Qn of bt.values())$e(Qn,Mn);return!0}function Ve(Mn,On){const Qn=Mn.container.getProvider("heartbeat").getImmediate({optional:!0});return Qn&&Qn.triggerHeartbeat(),Mn.container.getProvider(On)}function mt(Mn,On,Qn=xt){Ve(Mn,On).clearInstance(Qn)}function It(){At.clear()}const _n=new t.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class Jt{constructor(On,Qn,Ti){this._isDeleted=!1,this._options=Object.assign({},On),this._config=Object.assign({},Qn),this._name=Qn.name,this._automaticDataCollectionEnabled=Qn.automaticDataCollectionEnabled,this._container=Ti,this.container.addComponent(new n.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(On){this.checkDestroyed(),this._automaticDataCollectionEnabled=On}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(On){this._isDeleted=On}checkDestroyed(){if(this.isDeleted)throw _n.create("app-deleted",{appName:this._name})}}const ke="9.23.0";function Ae(Mn,On={}){let Qn=Mn;"object"!=typeof On&&(On={name:On});const Ti=Object.assign({name:xt,automaticDataCollectionEnabled:!1},On),Si=Ti.name;if("string"!=typeof Si||!Si)throw _n.create("bad-app-name",{appName:String(Si)});if(Qn||(Qn=(0,t.aH)()),!Qn)throw _n.create("no-options");const un=bt.get(Si);if(un){if((0,t.vZ)(Qn,un.options)&&(0,t.vZ)(Ti,un.config))return un;throw _n.create("duplicate-app",{appName:Si})}const rn=new n.H0(Si);for(const Nt of At.values())rn.addComponent(Nt);const $t=new Jt(Qn,Ti,rn);return bt.set(Si,$t),$t}function ze(Mn=xt){const On=bt.get(Mn);if(!On&&Mn===xt&&(0,t.aH)())return Ae();if(!On)throw _n.create("no-app",{appName:Mn});return On}function pt(){return Array.from(bt.values())}function tn(Mn){return ot.apply(this,arguments)}function ot(){return(ot=(0,e.Z)(function*(Mn){const On=Mn.name;bt.has(On)&&(bt.delete(On),yield Promise.all(Mn.container.getProviders().map(Qn=>Qn.delete())),Mn.isDeleted=!0)})).apply(this,arguments)}function Et(Mn,On,Qn){var Ti;let Si=null!==(Ti=zt[Mn])&&void 0!==Ti?Ti:Mn;Qn&&(Si+=`-${Qn}`);const un=Si.match(/\s|\//),rn=On.match(/\s|\//);if(un||rn){const $t=[`Unable to register library "${Si}" with version "${On}":`];return un&&$t.push(`library name "${Si}" contains illegal characters (whitespace or "/")`),un&&rn&&$t.push("and"),rn&&$t.push(`version name "${On}" contains illegal characters (whitespace or "/")`),void T.warn($t.join(" "))}Pe(new n.wA(`${Si}-version`,()=>({library:Si,version:On}),"VERSION"))}function z(Mn,On){if(null!==Mn&&"function"!=typeof Mn)throw _n.create("invalid-log-argument");(0,a.Am)(Mn,On)}function Z(Mn){(0,a.Ub)(Mn)}const ge="firebase-heartbeat-database",Qe=1,qe="firebase-heartbeat-store";let ct=null;function Yt(){return ct||(ct=function re(Mn,On,{blocked:Qn,upgrade:Ti,blocking:Si,terminated:un}={}){const rn=indexedDB.open(Mn,On),$t=V(rn);return Ti&&rn.addEventListener("upgradeneeded",Nt=>{Ti(V(rn.result),Nt.oldVersion,Nt.newVersion,V(rn.transaction),Nt)}),Qn&&rn.addEventListener("blocked",Nt=>Qn(Nt.oldVersion,Nt.newVersion,Nt)),$t.then(Nt=>{un&&Nt.addEventListener("close",()=>un()),Si&&Nt.addEventListener("versionchange",Rn=>Si(Rn.oldVersion,Rn.newVersion,Rn))}).catch(()=>{}),$t}(ge,Qe,{upgrade:(Mn,On)=>{0===On&&Mn.createObjectStore(qe)}}).catch(Mn=>{throw _n.create("idb-open",{originalErrorMessage:Mn.message})})),ct}function Be(){return(Be=(0,e.Z)(function*(Mn){try{return yield(yield Yt()).transaction(qe).objectStore(qe).get(Ge(Mn))}catch(On){if(On instanceof t.ZR)T.warn(On.message);else{const Qn=_n.create("idb-get",{originalErrorMessage:On?.message});T.warn(Qn.message)}}})).apply(this,arguments)}function gt(Mn,On){return ue.apply(this,arguments)}function ue(){return(ue=(0,e.Z)(function*(Mn,On){try{const Ti=(yield Yt()).transaction(qe,"readwrite");yield Ti.objectStore(qe).put(On,Ge(Mn)),yield Ti.done}catch(Qn){if(Qn instanceof t.ZR)T.warn(Qn.message);else{const Ti=_n.create("idb-set",{originalErrorMessage:Qn?.message});T.warn(Ti.message)}}})).apply(this,arguments)}function Ge(Mn){return`${Mn.name}!${Mn.options.appId}`}class Ot{constructor(On){this.container=On,this._heartbeatsCache=null;const Qn=this.container.getProvider("app").getImmediate();this._storage=new _i(Qn),this._heartbeatsCachePromise=this._storage.read().then(Ti=>(this._heartbeatsCache=Ti,Ti))}triggerHeartbeat(){var On=this;return(0,e.Z)(function*(){const Ti=On.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),Si=cn();if(null===On._heartbeatsCache&&(On._heartbeatsCache=yield On._heartbeatsCachePromise),On._heartbeatsCache.lastSentHeartbeatDate!==Si&&!On._heartbeatsCache.heartbeats.some(un=>un.date===Si))return On._heartbeatsCache.heartbeats.push({date:Si,agent:Ti}),On._heartbeatsCache.heartbeats=On._heartbeatsCache.heartbeats.filter(un=>{const rn=new Date(un.date).valueOf();return Date.now()-rn<=2592e6}),On._storage.overwrite(On._heartbeatsCache)})()}getHeartbeatsHeader(){var On=this;return(0,e.Z)(function*(){if(null===On._heartbeatsCache&&(yield On._heartbeatsCachePromise),null===On._heartbeatsCache||0===On._heartbeatsCache.heartbeats.length)return"";const Qn=cn(),{heartbeatsToSend:Ti,unsentEntries:Si}=function Gn(Mn,On=1024){const Qn=[];let Ti=Mn.slice();for(const Si of Mn){const un=Qn.find(rn=>rn.agent===Si.agent);if(un){if(un.dates.push(Si.date),Ni(Qn)>On){un.dates.pop();break}}else if(Qn.push({agent:Si.agent,dates:[Si.date]}),Ni(Qn)>On){Qn.pop();break}Ti=Ti.slice(1)}return{heartbeatsToSend:Qn,unsentEntries:Ti}}(On._heartbeatsCache.heartbeats),un=(0,t.L)(JSON.stringify({version:2,heartbeats:Ti}));return On._heartbeatsCache.lastSentHeartbeatDate=Qn,Si.length>0?(On._heartbeatsCache.heartbeats=Si,yield On._storage.overwrite(On._heartbeatsCache)):(On._heartbeatsCache.heartbeats=[],On._storage.overwrite(On._heartbeatsCache)),un})()}}function cn(){return(new Date).toISOString().substring(0,10)}class _i{constructor(On){this.app=On,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,e.Z)(function*(){return!!(0,t.hl)()&&(0,t.eu)().then(()=>!0).catch(()=>!1)})()}read(){var On=this;return(0,e.Z)(function*(){return(yield On._canUseIndexedDBPromise)&&(yield function it(Mn){return Be.apply(this,arguments)}(On.app))||{heartbeats:[]}})()}overwrite(On){var Qn=this;return(0,e.Z)(function*(){var Ti;if(yield Qn._canUseIndexedDBPromise){const un=yield Qn.read();return gt(Qn.app,{lastSentHeartbeatDate:null!==(Ti=On.lastSentHeartbeatDate)&&void 0!==Ti?Ti:un.lastSentHeartbeatDate,heartbeats:On.heartbeats})}})()}add(On){var Qn=this;return(0,e.Z)(function*(){var Ti;if(yield Qn._canUseIndexedDBPromise){const un=yield Qn.read();return gt(Qn.app,{lastSentHeartbeatDate:null!==(Ti=On.lastSentHeartbeatDate)&&void 0!==Ti?Ti:un.lastSentHeartbeatDate,heartbeats:[...un.heartbeats,...On.heartbeats]})}})()}}function Ni(Mn){return(0,t.L)(JSON.stringify({version:2,heartbeats:Mn})).length}!function Nn(Mn){Pe(new n.wA("platform-logger",On=>new j(On),"PRIVATE")),Pe(new n.wA("heartbeat",On=>new Ot(On),"PRIVATE")),Et(U,"0.9.13",Mn),Et(U,"0.9.13","esm2017"),Et("fire-js","")}("")},34859:(oe,x,i)=>{"use strict";i.d(x,{H0:()=>d,wA:()=>a,zt:()=>l});var e=i(15861),n=i(42090);class a{constructor(u,g,v){this.name=u,this.instanceFactory=g,this.type=v,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(u){return this.instantiationMode=u,this}setMultipleInstances(u){return this.multipleInstances=u,this}setServiceProps(u){return this.serviceProps=u,this}setInstanceCreatedCallback(u){return this.onInstanceCreated=u,this}}const t="[DEFAULT]";class l{constructor(u,g){this.name=u,this.container=g,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(u){const g=this.normalizeInstanceIdentifier(u);if(!this.instancesDeferred.has(g)){const v=new n.BH;if(this.instancesDeferred.set(g,v),this.isInitialized(g)||this.shouldAutoInitialize())try{const y=this.getOrInitializeService({instanceIdentifier:g});y&&v.resolve(y)}catch{}}return this.instancesDeferred.get(g).promise}getImmediate(u){var g;const v=this.normalizeInstanceIdentifier(u?.identifier),y=null!==(g=u?.optional)&&void 0!==g&&g;if(!this.isInitialized(v)&&!this.shouldAutoInitialize()){if(y)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:v})}catch(b){if(y)return null;throw b}}getComponent(){return this.component}setComponent(u){if(u.name!==this.name)throw Error(`Mismatching Component ${u.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=u,this.shouldAutoInitialize()){if(function s(p){return"EAGER"===p.instantiationMode}(u))try{this.getOrInitializeService({instanceIdentifier:t})}catch{}for(const[g,v]of this.instancesDeferred.entries()){const y=this.normalizeInstanceIdentifier(g);try{const b=this.getOrInitializeService({instanceIdentifier:y});v.resolve(b)}catch{}}}}clearInstance(u=t){this.instancesDeferred.delete(u),this.instancesOptions.delete(u),this.instances.delete(u)}delete(){var u=this;return(0,e.Z)(function*(){const g=Array.from(u.instances.values());yield Promise.all([...g.filter(v=>"INTERNAL"in v).map(v=>v.INTERNAL.delete()),...g.filter(v=>"_delete"in v).map(v=>v._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(u=t){return this.instances.has(u)}getOptions(u=t){return this.instancesOptions.get(u)||{}}initialize(u={}){const{options:g={}}=u,v=this.normalizeInstanceIdentifier(u.instanceIdentifier);if(this.isInitialized(v))throw Error(`${this.name}(${v}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const y=this.getOrInitializeService({instanceIdentifier:v,options:g});for(const[b,S]of this.instancesDeferred.entries())v===this.normalizeInstanceIdentifier(b)&&S.resolve(y);return y}onInit(u,g){var v;const y=this.normalizeInstanceIdentifier(g),b=null!==(v=this.onInitCallbacks.get(y))&&void 0!==v?v:new Set;b.add(u),this.onInitCallbacks.set(y,b);const S=this.instances.get(y);return S&&u(S,y),()=>{b.delete(u)}}invokeOnInitCallbacks(u,g){const v=this.onInitCallbacks.get(g);if(v)for(const y of v)try{y(u,g)}catch{}}getOrInitializeService({instanceIdentifier:u,options:g={}}){let v=this.instances.get(u);if(!v&&this.component&&(v=this.component.instanceFactory(this.container,{instanceIdentifier:(p=u,p===t?void 0:p),options:g}),this.instances.set(u,v),this.instancesOptions.set(u,g),this.invokeOnInitCallbacks(v,u),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,u,v)}catch{}var p;return v||null}normalizeInstanceIdentifier(u=t){return this.component?this.component.multipleInstances?u:t:u}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class d{constructor(u){this.name=u,this.providers=new Map}addComponent(u){const g=this.getProvider(u.name);if(g.isComponentSet())throw new Error(`Component ${u.name} has already been registered with ${this.name}`);g.setComponent(u)}addOrOverwriteComponent(u){this.getProvider(u.name).isComponentSet()&&this.providers.delete(u.name),this.addComponent(u)}getProvider(u){if(this.providers.has(u))return this.providers.get(u);const g=new l(u,this);return this.providers.set(u,g),g}getProviders(){return Array.from(this.providers.values())}}},54727:(oe,x,i)=>{"use strict";var e=i(15861),n=i(6881),a=i(34859),t=i(42090);const l=(he,et)=>et.some(tt=>he instanceof tt);let h,s;const u=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap;let D={get(he,et,tt){if(he instanceof IDBTransaction){if("done"===et)return g.get(he);if("objectStoreNames"===et)return he.objectStoreNames||v.get(he);if("store"===et)return tt.objectStoreNames[1]?void 0:tt.objectStore(tt.objectStoreNames[0])}return V(he[et])},set:(he,et,tt)=>(he[et]=tt,!0),has:(he,et)=>he instanceof IDBTransaction&&("done"===et||"store"===et)||et in he};function B(he){return"function"==typeof he?function P(he){return he!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function p(){return s||(s=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(he)?function(...et){return he.apply(X(this),et),V(u.get(this))}:function(...et){return V(he.apply(X(this),et))}:function(et,...tt){const nn=he.call(X(this),et,...tt);return v.set(nn,et.sort?et.sort():[et]),V(nn)}}(he):(he instanceof IDBTransaction&&function E(he){if(g.has(he))return;const et=new Promise((tt,nn)=>{const zn=()=>{he.removeEventListener("complete",jt),he.removeEventListener("error",Fn),he.removeEventListener("abort",Fn)},jt=()=>{tt(),zn()},Fn=()=>{nn(he.error||new DOMException("AbortError","AbortError")),zn()};he.addEventListener("complete",jt),he.addEventListener("error",Fn),he.addEventListener("abort",Fn)});g.set(he,et)}(he),l(he,function d(){return h||(h=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(he,D):he)}function V(he){if(he instanceof IDBRequest)return function S(he){const et=new Promise((tt,nn)=>{const zn=()=>{he.removeEventListener("success",jt),he.removeEventListener("error",Fn)},jt=()=>{tt(V(he.result)),zn()},Fn=()=>{nn(he.error),zn()};he.addEventListener("success",jt),he.addEventListener("error",Fn)});return et.then(tt=>{tt instanceof IDBCursor&&u.set(tt,he)}).catch(()=>{}),b.set(et,he),et}(he);if(y.has(he))return y.get(he);const et=B(he);return et!==he&&(y.set(he,et),b.set(et,he)),et}const X=he=>b.get(he),ae=["get","getKey","getAll","getAllKeys","count"],K=["put","add","delete","clear"],k=new Map;function $(he,et){if(!(he instanceof IDBDatabase)||et in he||"string"!=typeof et)return;if(k.get(et))return k.get(et);const tt=et.replace(/FromIndex$/,""),nn=et!==tt,zn=K.includes(tt);if(!(tt in(nn?IDBIndex:IDBObjectStore).prototype)||!zn&&!ae.includes(tt))return;const jt=function(){var Fn=(0,e.Z)(function*(jn,...ri){const vi=this.transaction(jn,zn?"readwrite":"readonly");let Ii=vi.store;return nn&&(Ii=Ii.index(ri.shift())),(yield Promise.all([Ii[tt](...ri),zn&&vi.done]))[0]});return function(ri){return Fn.apply(this,arguments)}}();return k.set(et,jt),jt}!function A(he){D=he(D)}(he=>({...he,get:(et,tt,nn)=>$(et,tt)||he.get(et,tt,nn),has:(et,tt)=>!!$(et,tt)||he.has(et,tt)}));const j="@firebase/installations",R="0.6.4",U=1e4,le=`w:${R}`,T="FIS_v2",H="https://firebaseinstallations.googleapis.com/v1",N=36e5,q=new t.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function se(he){return he instanceof t.ZR&&he.code.includes("request-failed")}function ve({projectId:he}){return`${H}/projects/${he}/installations`}function Ee(he){return{token:he.token,requestStatus:2,expiresIn:Fe(he.expiresIn),creationTime:Date.now()}}function Ye(he,et){return wt.apply(this,arguments)}function wt(){return(wt=(0,e.Z)(function*(he,et){const nn=(yield et.json()).error;return q.create("request-failed",{requestName:he,serverCode:nn.code,serverMessage:nn.message,serverStatus:nn.status})})).apply(this,arguments)}function Wt({apiKey:he}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":he})}function nt(he){return Zt.apply(this,arguments)}function Zt(){return(Zt=(0,e.Z)(function*(he){const et=yield he();return et.status>=500&&et.status<600?he():et})).apply(this,arguments)}function Fe(he){return Number(he.replace("s","000"))}function Ce(){return(Ce=(0,e.Z)(function*({appConfig:he,heartbeatServiceProvider:et},{fid:tt}){const nn=ve(he),zn=Wt(he),jt=et.getImmediate({optional:!0});if(jt){const vi=yield jt.getHeartbeatsHeader();vi&&zn.append("x-firebase-client",vi)}const jn={method:"POST",headers:zn,body:JSON.stringify({fid:tt,authVersion:T,appId:he.appId,sdkVersion:le})},ri=yield nt(()=>fetch(nn,jn));if(ri.ok){const vi=yield ri.json();return{fid:vi.fid||tt,registrationStatus:2,refreshToken:vi.refreshToken,authToken:Ee(vi.authToken)}}throw yield Ye("Create Installation",ri)})).apply(this,arguments)}function Ie(he){return new Promise(et=>{setTimeout(et,he)})}const Mt=/^[cdef][\w-]{21}$/,Xt="";function en(){try{const he=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(he),he[0]=112+he[0]%16;const tt=function vt(he){return function dt(he){return btoa(String.fromCharCode(...he)).replace(/\+/g,"-").replace(/\//g,"_")}(he).substr(0,22)}(he);return Mt.test(tt)?tt:Xt}catch{return Xt}}function xt(he){return`${he.appName}!${he.appId}`}const zt=new Map;function bt(he,et){const tt=xt(he);Xe(tt,et),function Pe(he,et){const tt=function mt(){return!Ve&&"BroadcastChannel"in self&&(Ve=new BroadcastChannel("[Firebase] FID Change"),Ve.onmessage=he=>{Xe(he.data.key,he.data.fid)}),Ve}();tt&&tt.postMessage({key:he,fid:et}),function It(){0===zt.size&&Ve&&(Ve.close(),Ve=null)}()}(tt,et)}function Xe(he,et){const tt=zt.get(he);if(tt)for(const nn of tt)nn(et)}let Ve=null;const xn="firebase-installations-database",_n=1,Jt="firebase-installations-store";let ke=null;function Ae(){return ke||(ke=function re(he,et,{blocked:tt,upgrade:nn,blocking:zn,terminated:jt}={}){const Fn=indexedDB.open(he,et),jn=V(Fn);return nn&&Fn.addEventListener("upgradeneeded",ri=>{nn(V(Fn.result),ri.oldVersion,ri.newVersion,V(Fn.transaction))}),tt&&Fn.addEventListener("blocked",()=>tt()),jn.then(ri=>{jt&&ri.addEventListener("close",()=>jt()),zn&&ri.addEventListener("versionchange",()=>zn())}).catch(()=>{}),jn}(xn,_n,{upgrade:(he,et)=>{0===et&&he.createObjectStore(Jt)}})),ke}function ze(he,et){return pt.apply(this,arguments)}function pt(){return(pt=(0,e.Z)(function*(he,et){const tt=xt(he),zn=(yield Ae()).transaction(Jt,"readwrite"),jt=zn.objectStore(Jt),Fn=yield jt.get(tt);return yield jt.put(et,tt),yield zn.done,(!Fn||Fn.fid!==et.fid)&&bt(he,et.fid),et})).apply(this,arguments)}function tn(he){return ot.apply(this,arguments)}function ot(){return(ot=(0,e.Z)(function*(he){const et=xt(he),nn=(yield Ae()).transaction(Jt,"readwrite");yield nn.objectStore(Jt).delete(et),yield nn.done})).apply(this,arguments)}function Et(he,et){return z.apply(this,arguments)}function z(){return(z=(0,e.Z)(function*(he,et){const tt=xt(he),zn=(yield Ae()).transaction(Jt,"readwrite"),jt=zn.objectStore(Jt),Fn=yield jt.get(tt),jn=et(Fn);return void 0===jn?yield jt.delete(tt):yield jt.put(jn,tt),yield zn.done,jn&&(!Fn||Fn.fid!==jn.fid)&&bt(he,jn.fid),jn})).apply(this,arguments)}function Z(he){return ge.apply(this,arguments)}function ge(){return ge=(0,e.Z)(function*(he){let et;const tt=yield Et(he.appConfig,nn=>{const zn=function Qe(he){return ue(he||{fid:en(),registrationStatus:0})}(nn),jt=function qe(he,et){if(0===et.registrationStatus){if(!navigator.onLine)return{installationEntry:et,registrationPromise:Promise.reject(q.create("app-offline"))};const tt={fid:et.fid,registrationStatus:1,registrationTime:Date.now()},nn=function ct(he,et){return Yt.apply(this,arguments)}(he,tt);return{installationEntry:tt,registrationPromise:nn}}return 1===et.registrationStatus?{installationEntry:et,registrationPromise:it(he)}:{installationEntry:et}}(he,zn);return et=jt.registrationPromise,jt.installationEntry});return tt.fid===Xt?{installationEntry:yield et}:{installationEntry:tt,registrationPromise:et}}),ge.apply(this,arguments)}function Yt(){return Yt=(0,e.Z)(function*(he,et){try{const tt=yield function ie(he,et){return Ce.apply(this,arguments)}(he,et);return ze(he.appConfig,tt)}catch(tt){throw se(tt)&&409===tt.customData.serverCode?yield tn(he.appConfig):yield ze(he.appConfig,{fid:et.fid,registrationStatus:0}),tt}}),Yt.apply(this,arguments)}function it(he){return Be.apply(this,arguments)}function Be(){return(Be=(0,e.Z)(function*(he){let et=yield gt(he.appConfig);for(;1===et.registrationStatus;)yield Ie(100),et=yield gt(he.appConfig);if(0===et.registrationStatus){const{installationEntry:tt,registrationPromise:nn}=yield Z(he);return nn||tt}return et})).apply(this,arguments)}function gt(he){return Et(he,et=>{if(!et)throw q.create("installation-not-found");return ue(et)})}function ue(he){return function Ge(he){return 1===he.registrationStatus&&he.registrationTime+U<Date.now()}(he)?{fid:he.fid,registrationStatus:0}:he}function De(){return(De=(0,e.Z)(function*({appConfig:he,heartbeatServiceProvider:et},tt){const nn=function Ot(he,{fid:et}){return`${ve(he)}/${et}/authTokens:generate`}(he,tt),zn=function Ut(he,{refreshToken:et}){const tt=Wt(he);return tt.append("Authorization",function yt(he){return`${T} ${he}`}(et)),tt}(he,tt),jt=et.getImmediate({optional:!0});if(jt){const vi=yield jt.getHeartbeatsHeader();vi&&zn.append("x-firebase-client",vi)}const jn={method:"POST",headers:zn,body:JSON.stringify({installation:{sdkVersion:le,appId:he.appId}})},ri=yield nt(()=>fetch(nn,jn));if(ri.ok)return Ee(yield ri.json());throw yield Ye("Generate Auth Token",ri)})).apply(this,arguments)}function cn(he){return Gn.apply(this,arguments)}function Gn(){return Gn=(0,e.Z)(function*(he,et=!1){let tt;const nn=yield Et(he.appConfig,jt=>{if(!Qn(jt))throw q.create("not-registered");const Fn=jt.authToken;if(!et&&function Ti(he){return 2===he.requestStatus&&!function Si(he){const et=Date.now();return et<he.creationTime||he.creationTime+he.expiresIn<et+N}(he)}(Fn))return jt;if(1===Fn.requestStatus)return tt=function _i(he,et){return Ni.apply(this,arguments)}(he,et),jt;{if(!navigator.onLine)throw q.create("app-offline");const jn=function un(he){const et={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},he),{authToken:et})}(jt);return tt=function Mn(he,et){return On.apply(this,arguments)}(he,jn),jn}});return tt?yield tt:nn.authToken}),Gn.apply(this,arguments)}function Ni(){return(Ni=(0,e.Z)(function*(he,et){let tt=yield Nn(he.appConfig);for(;1===tt.authToken.requestStatus;)yield Ie(100),tt=yield Nn(he.appConfig);const nn=tt.authToken;return 0===nn.requestStatus?cn(he,et):nn})).apply(this,arguments)}function Nn(he){return Et(he,et=>{if(!Qn(et))throw q.create("not-registered");return function rn(he){return 1===he.requestStatus&&he.requestTime+U<Date.now()}(et.authToken)?Object.assign(Object.assign({},et),{authToken:{requestStatus:0}}):et})}function On(){return On=(0,e.Z)(function*(he,et){try{const tt=yield function ee(he,et){return De.apply(this,arguments)}(he,et),nn=Object.assign(Object.assign({},et),{authToken:tt});return yield ze(he.appConfig,nn),tt}catch(tt){if(!se(tt)||401!==tt.customData.serverCode&&404!==tt.customData.serverCode){const nn=Object.assign(Object.assign({},et),{authToken:{requestStatus:0}});yield ze(he.appConfig,nn)}else yield tn(he.appConfig);throw tt}}),On.apply(this,arguments)}function Qn(he){return void 0!==he&&2===he.registrationStatus}function Nt(){return(Nt=(0,e.Z)(function*(he){const et=he,{installationEntry:tt,registrationPromise:nn}=yield Z(et);return nn?nn.catch(console.error):cn(et).catch(console.error),tt.fid})).apply(this,arguments)}function Wn(){return Wn=(0,e.Z)(function*(he,et=!1){const tt=he;return yield function ji(he){return ir.apply(this,arguments)}(tt),(yield cn(tt,et)).token}),Wn.apply(this,arguments)}function ir(){return(ir=(0,e.Z)(function*(he){const{registrationPromise:et}=yield Z(he);et&&(yield et)})).apply(this,arguments)}function $i(he){return q.create("missing-app-config-values",{valueName:he})}const fr="installations",ti=he=>{const et=he.getProvider("app").getImmediate(),tt=function gi(he){if(!he||!he.options)throw $i("App Configuration");if(!he.name)throw $i("App Name");const et=["projectId","apiKey","appId"];for(const tt of et)if(!he.options[tt])throw $i(tt);return{appName:he.name,projectId:he.options.projectId,apiKey:he.options.apiKey,appId:he.options.appId}}(et);return{app:et,appConfig:tt,heartbeatServiceProvider:(0,n._getProvider)(et,"heartbeat"),_delete:()=>Promise.resolve()}},Kn=he=>{const et=he.getProvider("app").getImmediate(),tt=(0,n._getProvider)(et,fr).getImmediate();return{getId:()=>function $t(he){return Nt.apply(this,arguments)}(tt),getToken:zn=>function Rn(he){return Wn.apply(this,arguments)}(tt,zn)}};(function on(){(0,n._registerComponent)(new a.wA(fr,ti,"PUBLIC")),(0,n._registerComponent)(new a.wA("installations-internal",Kn,"PRIVATE"))})(),(0,n.registerVersion)(j,R),(0,n.registerVersion)(j,R,"esm2017")},41877:(oe,x,i)=>{"use strict";i.d(x,{Am:()=>p,Ub:()=>d,Yd:()=>s,in:()=>n});const e=[];var n=(()=>{return(u=n||(n={}))[u.DEBUG=0]="DEBUG",u[u.VERBOSE=1]="VERBOSE",u[u.INFO=2]="INFO",u[u.WARN=3]="WARN",u[u.ERROR=4]="ERROR",u[u.SILENT=5]="SILENT",n;var u})();const a={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},t=n.INFO,l={[n.DEBUG]:"log",[n.VERBOSE]:"log",[n.INFO]:"info",[n.WARN]:"warn",[n.ERROR]:"error"},h=(u,g,...v)=>{if(g<u.logLevel)return;const y=(new Date).toISOString(),b=l[g];if(!b)throw new Error(`Attempted to log a message with an invalid logType (value: ${g})`);console[b](`[${y}]  ${u.name}:`,...v)};class s{constructor(g){this.name=g,this._logLevel=t,this._logHandler=h,this._userLogHandler=null,e.push(this)}get logLevel(){return this._logLevel}set logLevel(g){if(!(g in n))throw new TypeError(`Invalid value "${g}" assigned to \`logLevel\``);this._logLevel=g}setLogLevel(g){this._logLevel="string"==typeof g?a[g]:g}get logHandler(){return this._logHandler}set logHandler(g){if("function"!=typeof g)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=g}get userLogHandler(){return this._userLogHandler}set userLogHandler(g){this._userLogHandler=g}debug(...g){this._userLogHandler&&this._userLogHandler(this,n.DEBUG,...g),this._logHandler(this,n.DEBUG,...g)}log(...g){this._userLogHandler&&this._userLogHandler(this,n.VERBOSE,...g),this._logHandler(this,n.VERBOSE,...g)}info(...g){this._userLogHandler&&this._userLogHandler(this,n.INFO,...g),this._logHandler(this,n.INFO,...g)}warn(...g){this._userLogHandler&&this._userLogHandler(this,n.WARN,...g),this._logHandler(this,n.WARN,...g)}error(...g){this._userLogHandler&&this._userLogHandler(this,n.ERROR,...g),this._logHandler(this,n.ERROR,...g)}}function d(u){e.forEach(g=>{g.setLogLevel(u)})}function p(u,g){for(const v of e){let y=null;g&&g.level&&(y=a[g.level]),v.userLogHandler=null===u?null:(b,S,...E)=>{const D=E.map(A=>{if(null==A)return null;if("string"==typeof A)return A;if("number"==typeof A||"boolean"==typeof A)return A.toString();if(A instanceof Error)return A.message;try{return JSON.stringify(A)}catch{return null}}).filter(A=>A).join(" ");S>=(y??b.logLevel)&&u({level:n[S].toLowerCase(),message:D,args:E,type:b.name})}}}},20908:(oe,x,i)=>{"use strict";i.d(x,{Gb:()=>gt,LP:()=>cn,pQ:()=>_i,ps:()=>Ni});var e=i(15861),a=(i(54727),i(34859)),t=i(5626),l=i(42090),h=i(6881);const s="/firebase-messaging-sw.js",d="/firebase-cloud-messaging-push-scope",p="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",u="https://fcmregistrations.googleapis.com/v1",g="google.c.a.c_id",v="google.c.a.c_l",y="google.c.a.ts",b="google.c.a.e";var E=(()=>{return(Nn=E||(E={})).PUSH_RECEIVED="push-received",Nn.NOTIFICATION_CLICKED="notification-clicked",E;var Nn})();function D(Nn){const Mn=new Uint8Array(Nn);return btoa(String.fromCharCode(...Mn)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function A(Nn){const On=(Nn+"=".repeat((4-Nn.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),Qn=atob(On),Ti=new Uint8Array(Qn.length);for(let Si=0;Si<Qn.length;++Si)Ti[Si]=Qn.charCodeAt(Si);return Ti}const P="fcm_token_details_db",B=5,V="fcm_token_object_Store";function re(){return re=(0,e.Z)(function*(Nn){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(Si=>Si.name).includes(P))return null;let Mn=null;return(yield(0,t.X3)(P,B,{upgrade:(Qn=(0,e.Z)(function*(Ti,Si,un,rn){var $t;if(Si<2||!Ti.objectStoreNames.contains(V))return;const Nt=rn.objectStore(V),Rn=yield Nt.index("fcmSenderId").get(Nn);if(yield Nt.clear(),Rn)if(2===Si){const Wn=Rn;if(!Wn.auth||!Wn.p256dh||!Wn.endpoint)return;Mn={token:Wn.fcmToken,createTime:null!==($t=Wn.createTime)&&void 0!==$t?$t:Date.now(),subscriptionOptions:{auth:Wn.auth,p256dh:Wn.p256dh,endpoint:Wn.endpoint,swScope:Wn.swScope,vapidKey:"string"==typeof Wn.vapidKey?Wn.vapidKey:D(Wn.vapidKey)}}}else if(3===Si){const Wn=Rn;Mn={token:Wn.fcmToken,createTime:Wn.createTime,subscriptionOptions:{auth:D(Wn.auth),p256dh:D(Wn.p256dh),endpoint:Wn.endpoint,swScope:Wn.swScope,vapidKey:D(Wn.vapidKey)}}}else if(4===Si){const Wn=Rn;Mn={token:Wn.fcmToken,createTime:Wn.createTime,subscriptionOptions:{auth:D(Wn.auth),p256dh:D(Wn.p256dh),endpoint:Wn.endpoint,swScope:Wn.swScope,vapidKey:D(Wn.vapidKey)}}}}),function(Si,un,rn,$t){return Qn.apply(this,arguments)})})).close(),yield(0,t.Lj)(P),yield(0,t.Lj)("fcm_vapid_details_db"),yield(0,t.Lj)("undefined"),function Q(Nn){if(!Nn||!Nn.subscriptionOptions)return!1;const{subscriptionOptions:Mn}=Nn;return"number"==typeof Nn.createTime&&Nn.createTime>0&&"string"==typeof Nn.token&&Nn.token.length>0&&"string"==typeof Mn.auth&&Mn.auth.length>0&&"string"==typeof Mn.p256dh&&Mn.p256dh.length>0&&"string"==typeof Mn.endpoint&&Mn.endpoint.length>0&&"string"==typeof Mn.swScope&&Mn.swScope.length>0&&"string"==typeof Mn.vapidKey&&Mn.vapidKey.length>0}(Mn)?Mn:null;var Qn}),re.apply(this,arguments)}const ae="firebase-messaging-database",K=1,k="firebase-messaging-store";let $=null;function j(){return $||($=(0,t.X3)(ae,K,{upgrade:(Nn,Mn)=>{0===Mn&&Nn.createObjectStore(k)}})),$}function R(Nn){return U.apply(this,arguments)}function U(){return U=(0,e.Z)(function*(Nn){const Mn=pe(Nn),Qn=yield(yield j()).transaction(k).objectStore(k).get(Mn);if(Qn)return Qn;{const Ti=yield function X(Nn){return re.apply(this,arguments)}(Nn.appConfig.senderId);if(Ti)return yield le(Nn,Ti),Ti}}),U.apply(this,arguments)}function le(Nn,Mn){return T.apply(this,arguments)}function T(){return(T=(0,e.Z)(function*(Nn,Mn){const On=pe(Nn),Ti=(yield j()).transaction(k,"readwrite");return yield Ti.objectStore(k).put(Mn,On),yield Ti.done,Mn})).apply(this,arguments)}function N(){return(N=(0,e.Z)(function*(Nn){const Mn=pe(Nn),Qn=(yield j()).transaction(k,"readwrite");yield Qn.objectStore(k).delete(Mn),yield Qn.done})).apply(this,arguments)}function pe({appConfig:Nn}){return Nn.appId}const me=new l.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function q(Nn,Mn){return se.apply(this,arguments)}function se(){return(se=(0,e.Z)(function*(Nn,Mn){const On=yield Ut(Nn),Qn=Zt(Mn),Ti={method:"POST",headers:On,body:JSON.stringify(Qn)};let Si;try{Si=yield(yield fetch(Wt(Nn.appConfig),Ti)).json()}catch(un){throw me.create("token-subscribe-failed",{errorInfo:un?.toString()})}if(Si.error)throw me.create("token-subscribe-failed",{errorInfo:Si.error.message});if(!Si.token)throw me.create("token-subscribe-no-token");return Si.token})).apply(this,arguments)}function Ee(){return(Ee=(0,e.Z)(function*(Nn,Mn){const On=yield Ut(Nn),Qn=Zt(Mn.subscriptionOptions),Ti={method:"PATCH",headers:On,body:JSON.stringify(Qn)};let Si;try{Si=yield(yield fetch(`${Wt(Nn.appConfig)}/${Mn.token}`,Ti)).json()}catch(un){throw me.create("token-update-failed",{errorInfo:un?.toString()})}if(Si.error)throw me.create("token-update-failed",{errorInfo:Si.error.message});if(!Si.token)throw me.create("token-update-no-token");return Si.token})).apply(this,arguments)}function Ye(Nn,Mn){return wt.apply(this,arguments)}function wt(){return(wt=(0,e.Z)(function*(Nn,Mn){const Qn={method:"DELETE",headers:yield Ut(Nn)};try{const Si=yield(yield fetch(`${Wt(Nn.appConfig)}/${Mn}`,Qn)).json();if(Si.error)throw me.create("token-unsubscribe-failed",{errorInfo:Si.error.message})}catch(Ti){throw me.create("token-unsubscribe-failed",{errorInfo:Ti?.toString()})}})).apply(this,arguments)}function Wt({projectId:Nn}){return`${u}/projects/${Nn}/registrations`}function Ut(Nn){return nt.apply(this,arguments)}function nt(){return(nt=(0,e.Z)(function*({appConfig:Nn,installations:Mn}){const On=yield Mn.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":Nn.apiKey,"x-goog-firebase-installations-auth":`FIS ${On}`})})).apply(this,arguments)}function Zt({p256dh:Nn,auth:Mn,endpoint:On,vapidKey:Qn}){const Ti={web:{endpoint:On,auth:Mn,p256dh:Nn}};return Qn!==p&&(Ti.web.applicationPubKey=Qn),Ti}const Fe=6048e5;function ie(){return ie=(0,e.Z)(function*(Nn){const Mn=yield function vt(Nn,Mn){return xt.apply(this,arguments)}(Nn.swRegistration,Nn.vapidKey),On={vapidKey:Nn.vapidKey,swScope:Nn.swRegistration.scope,endpoint:Mn.endpoint,auth:D(Mn.getKey("auth")),p256dh:D(Mn.getKey("p256dh"))},Qn=yield R(Nn.firebaseDependencies);if(Qn){if(function zt(Nn,Mn){return Mn.vapidKey===Nn.vapidKey&&Mn.endpoint===Nn.endpoint&&Mn.auth===Nn.auth&&Mn.p256dh===Nn.p256dh}(Qn.subscriptionOptions,On))return Date.now()>=Qn.createTime+Fe?function dt(Nn,Mn){return Mt.apply(this,arguments)}(Nn,{token:Qn.token,createTime:Date.now(),subscriptionOptions:On}):Qn.token;try{yield Ye(Nn.firebaseDependencies,Qn.token)}catch(Ti){console.warn(Ti)}return Xt(Nn.firebaseDependencies,On)}return Xt(Nn.firebaseDependencies,On)}),ie.apply(this,arguments)}function Ce(Nn){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,e.Z)(function*(Nn){const Mn=yield R(Nn.firebaseDependencies);Mn&&(yield Ye(Nn.firebaseDependencies,Mn.token),yield function H(Nn){return N.apply(this,arguments)}(Nn.firebaseDependencies));const On=yield Nn.swRegistration.pushManager.getSubscription();return!On||On.unsubscribe()}),Ie.apply(this,arguments)}function Mt(){return Mt=(0,e.Z)(function*(Nn,Mn){try{const On=yield function ve(Nn,Mn){return Ee.apply(this,arguments)}(Nn.firebaseDependencies,Mn),Qn=Object.assign(Object.assign({},Mn),{token:On,createTime:Date.now()});return yield le(Nn.firebaseDependencies,Qn),On}catch(On){throw yield Ce(Nn),On}}),Mt.apply(this,arguments)}function Xt(Nn,Mn){return en.apply(this,arguments)}function en(){return(en=(0,e.Z)(function*(Nn,Mn){const Qn={token:yield q(Nn,Mn),createTime:Date.now(),subscriptionOptions:Mn};return yield le(Nn,Qn),Qn.token})).apply(this,arguments)}function xt(){return(xt=(0,e.Z)(function*(Nn,Mn){return(yield Nn.pushManager.getSubscription())||Nn.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:A(Mn)})})).apply(this,arguments)}function bt(Nn){const Mn={from:Nn.from,collapseKey:Nn.collapse_key,messageId:Nn.fcmMessageId};return function At(Nn,Mn){if(!Mn.notification)return;Nn.notification={};const On=Mn.notification.title;On&&(Nn.notification.title=On);const Qn=Mn.notification.body;Qn&&(Nn.notification.body=Qn);const Ti=Mn.notification.image;Ti&&(Nn.notification.image=Ti);const Si=Mn.notification.icon;Si&&(Nn.notification.icon=Si)}(Mn,Nn),function $e(Nn,Mn){Mn.data&&(Nn.data=Mn.data)}(Mn,Nn),function Xe(Nn,Mn){var On,Qn,Ti,Si,un;if(!(Mn.fcmOptions||null!==(On=Mn.notification)&&void 0!==On&&On.click_action))return;Nn.fcmOptions={};const rn=null!==(Ti=null===(Qn=Mn.fcmOptions)||void 0===Qn?void 0:Qn.link)&&void 0!==Ti?Ti:null===(Si=Mn.notification)||void 0===Si?void 0:Si.click_action;rn&&(Nn.fcmOptions.link=rn);const $t=null===(un=Mn.fcmOptions)||void 0===un?void 0:un.analytics_label;$t&&(Nn.fcmOptions.analyticsLabel=$t)}(Mn,Nn),Mn}function Ve(Nn,Mn){const On=[];for(let Qn=0;Qn<Nn.length;Qn++)On.push(Nn.charAt(Qn)),Qn<Mn.length&&On.push(Mn.charAt(Qn));return On.join("")}function It(Nn){return me.create("missing-app-config-values",{valueName:Nn})}Ve("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Ve("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class xn{constructor(Mn,On,Qn){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const Ti=function mt(Nn){if(!Nn||!Nn.options)throw It("App Configuration Object");if(!Nn.name)throw It("App Name");const Mn=["projectId","apiKey","appId","messagingSenderId"],{options:On}=Nn;for(const Qn of Mn)if(!On[Qn])throw It(Qn);return{appName:Nn.name,projectId:On.projectId,apiKey:On.apiKey,appId:On.appId,senderId:On.messagingSenderId}}(Mn);this.firebaseDependencies={app:Mn,appConfig:Ti,installations:On,analyticsProvider:Qn}}_delete(){return Promise.resolve()}}function _n(Nn){return Jt.apply(this,arguments)}function Jt(){return(Jt=(0,e.Z)(function*(Nn){try{Nn.swRegistration=yield navigator.serviceWorker.register(s,{scope:d}),Nn.swRegistration.update().catch(()=>{})}catch(Mn){throw me.create("failed-service-worker-registration",{browserErrorMessage:Mn?.message})}})).apply(this,arguments)}function Ae(){return(Ae=(0,e.Z)(function*(Nn,Mn){if(!Mn&&!Nn.swRegistration&&(yield _n(Nn)),Mn||!Nn.swRegistration){if(!(Mn instanceof ServiceWorkerRegistration))throw me.create("invalid-sw-registration");Nn.swRegistration=Mn}})).apply(this,arguments)}function pt(){return(pt=(0,e.Z)(function*(Nn,Mn){Mn?Nn.vapidKey=Mn:Nn.vapidKey||(Nn.vapidKey=p)})).apply(this,arguments)}function tn(Nn,Mn){return ot.apply(this,arguments)}function ot(){return ot=(0,e.Z)(function*(Nn,Mn){if(!navigator)throw me.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw me.create("permission-blocked");return yield function ze(Nn,Mn){return pt.apply(this,arguments)}(Nn,Mn?.vapidKey),yield function ke(Nn,Mn){return Ae.apply(this,arguments)}(Nn,Mn?.serviceWorkerRegistration),function yt(Nn){return ie.apply(this,arguments)}(Nn)}),ot.apply(this,arguments)}function z(){return(z=(0,e.Z)(function*(Nn,Mn,On){const Qn=function Z(Nn){switch(Nn){case E.NOTIFICATION_CLICKED:return"notification_open";case E.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(Mn);(yield Nn.firebaseDependencies.analyticsProvider.get()).logEvent(Qn,{message_id:On[g],message_name:On[v],message_time:On[y],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function Qe(){return Qe=(0,e.Z)(function*(Nn,Mn){const On=Mn.data;if(!On.isFirebaseMessaging)return;Nn.onMessageHandler&&On.messageType===E.PUSH_RECEIVED&&("function"==typeof Nn.onMessageHandler?Nn.onMessageHandler(bt(On)):Nn.onMessageHandler.next(bt(On)));const Qn=On.data;(function Pe(Nn){return"object"==typeof Nn&&!!Nn&&g in Nn})(Qn)&&"1"===Qn[b]&&(yield function Et(Nn,Mn,On){return z.apply(this,arguments)}(Nn,On.messageType,Qn))}),Qe.apply(this,arguments)}const qe="@firebase/messaging",Yt=Nn=>{const Mn=new xn(Nn.getProvider("app").getImmediate(),Nn.getProvider("installations-internal").getImmediate(),Nn.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",On=>function ge(Nn,Mn){return Qe.apply(this,arguments)}(Mn,On)),Mn},it=Nn=>{const Mn=Nn.getProvider("messaging").getImmediate();return{getToken:Qn=>tn(Mn,Qn)}};function gt(){return ue.apply(this,arguments)}function ue(){return(ue=(0,e.Z)(function*(){try{yield(0,l.eu)()}catch{return!1}return typeof window<"u"&&(0,l.hl)()&&(0,l.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}function ee(){return(ee=(0,e.Z)(function*(Nn){if(!navigator)throw me.create("only-available-in-window");return Nn.swRegistration||(yield _n(Nn)),Ce(Nn)})).apply(this,arguments)}function cn(Nn,Mn){return Gn.apply(this,arguments)}function Gn(){return(Gn=(0,e.Z)(function*(Nn,Mn){return tn(Nn=(0,l.m9)(Nn),Mn)})).apply(this,arguments)}function _i(Nn){return function Ge(Nn){return ee.apply(this,arguments)}(Nn=(0,l.m9)(Nn))}function Ni(Nn,Mn){return function De(Nn,Mn){if(!navigator)throw me.create("only-available-in-window");return Nn.onMessageHandler=Mn,()=>{Nn.onMessageHandler=null}}(Nn=(0,l.m9)(Nn),Mn)}!function Be(){(0,h._registerComponent)(new a.wA("messaging",Yt,"PUBLIC")),(0,h._registerComponent)(new a.wA("messaging-internal",it,"PRIVATE")),(0,h.registerVersion)(qe,"0.12.4"),(0,h.registerVersion)(qe,"0.12.4","esm2017")}()},5626:(oe,x,i)=>{"use strict";i.d(x,{Lj:()=>V,X3:()=>B});var e=i(15861);const n=(K,k)=>k.some($=>K instanceof $);let a,t;const s=new WeakMap,d=new WeakMap,p=new WeakMap,u=new WeakMap,g=new WeakMap;let b={get(K,k,$){if(K instanceof IDBTransaction){if("done"===k)return d.get(K);if("objectStoreNames"===k)return K.objectStoreNames||p.get(K);if("store"===k)return $.objectStoreNames[1]?void 0:$.objectStore($.objectStoreNames[0])}return A(K[k])},set:(K,k,$)=>(K[k]=$,!0),has:(K,k)=>K instanceof IDBTransaction&&("done"===k||"store"===k)||k in K};function D(K){return"function"==typeof K?function E(K){return K!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function h(){return t||(t=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(K)?function(...k){return K.apply(P(this),k),A(s.get(this))}:function(...k){return A(K.apply(P(this),k))}:function(k,...$){const j=K.call(P(this),k,...$);return p.set(j,k.sort?k.sort():[k]),A(j)}}(K):(K instanceof IDBTransaction&&function y(K){if(d.has(K))return;const k=new Promise(($,j)=>{const R=()=>{K.removeEventListener("complete",U),K.removeEventListener("error",le),K.removeEventListener("abort",le)},U=()=>{$(),R()},le=()=>{j(K.error||new DOMException("AbortError","AbortError")),R()};K.addEventListener("complete",U),K.addEventListener("error",le),K.addEventListener("abort",le)});d.set(K,k)}(K),n(K,function l(){return a||(a=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(K,b):K)}function A(K){if(K instanceof IDBRequest)return function v(K){const k=new Promise(($,j)=>{const R=()=>{K.removeEventListener("success",U),K.removeEventListener("error",le)},U=()=>{$(A(K.result)),R()},le=()=>{j(K.error),R()};K.addEventListener("success",U),K.addEventListener("error",le)});return k.then($=>{$ instanceof IDBCursor&&s.set($,K)}).catch(()=>{}),g.set(k,K),k}(K);if(u.has(K))return u.get(K);const k=D(K);return k!==K&&(u.set(K,k),g.set(k,K)),k}const P=K=>g.get(K);function B(K,k,{blocked:$,upgrade:j,blocking:R,terminated:U}={}){const le=indexedDB.open(K,k),T=A(le);return j&&le.addEventListener("upgradeneeded",H=>{j(A(le.result),H.oldVersion,H.newVersion,A(le.transaction))}),$&&le.addEventListener("blocked",()=>$()),T.then(H=>{U&&H.addEventListener("close",()=>U()),R&&H.addEventListener("versionchange",()=>R())}).catch(()=>{}),T}function V(K,{blocked:k}={}){const $=indexedDB.deleteDatabase(K);return k&&$.addEventListener("blocked",()=>k()),A($).then(()=>{})}const X=["get","getKey","getAll","getAllKeys","count"],re=["put","add","delete","clear"],Q=new Map;function ae(K,k){if(!(K instanceof IDBDatabase)||k in K||"string"!=typeof k)return;if(Q.get(k))return Q.get(k);const $=k.replace(/FromIndex$/,""),j=k!==$,R=re.includes($);if(!($ in(j?IDBIndex:IDBObjectStore).prototype)||!R&&!X.includes($))return;const U=function(){var le=(0,e.Z)(function*(T,...H){const N=this.transaction(T,R?"readwrite":"readonly");let pe=N.store;return j&&(pe=pe.index(H.shift())),(yield Promise.all([pe[$](...H),R&&N.done]))[0]});return function(H){return le.apply(this,arguments)}}();return Q.set(k,U),U}!function S(K){b=K(b)}(K=>({...K,get:(k,$,j)=>ae(k,$)||K.get(k,$,j),has:(k,$)=>!!ae(k,$)||K.has(k,$)}))},72673:(oe,x,i)=>{"use strict";i.d(x,{Qc:()=>fs,qv:()=>ya,vI:()=>Ao});const e=()=>{};let n={},a={},t=null,l={mark:e,measure:e};try{typeof window<"u"&&(n=window),typeof document<"u"&&(a=document),typeof MutationObserver<"u"&&(t=MutationObserver),typeof performance<"u"&&(l=performance)}catch{}const{userAgent:h=""}=n.navigator||{},s=n,d=a,p=t,u=l,v=!!d.documentElement&&!!d.head&&"function"==typeof d.addEventListener&&"function"==typeof d.createElement,y=~h.indexOf("MSIE")||~h.indexOf("Trident/");var b="classic",S="duotone",E="sharp",D="sharp-duotone",A=[b,S,E,D],R={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},le=[1,2,3,4,5,6,7,8,9,10],T=le.concat([11,12,13,14,15,16,17,18,19,20]),H={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},N=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",H.GROUP,H.SWAP_OPACITY,H.PRIMARY,H.SECONDARY].concat(le.map(sn=>"".concat(sn,"x"))).concat(T.map(sn=>"w-".concat(sn)));const se="___FONT_AWESOME___",ve=16,Ee="fa",Ye="svg-inline--fa",wt="data-fa-i2svg",Wt="data-fa-pseudo-element",Ut="data-fa-pseudo-element-pending",nt="data-prefix",Zt="data-icon",Fe="fontawesome-i2svg",yt="async",ie=["HTML","HEAD","STYLE","SCRIPT"],Ce=(()=>{try{return!0}catch{return!1}})(),Ie=[b,E,D];function dt(sn){return new Proxy(sn,{get:(In,$n)=>$n in In?In[$n]:In[b]})}const Mt={...R};Mt[b]={...R[b],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};const Xt=dt(Mt),en={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};en[b]={...en[b],kit:"fak","kit-duotone":"fakd"};const vt=dt(en),xt={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};xt[b]={...xt[b],fak:"fa-kit"};const zt=dt(xt),bt={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};bt[b]={...bt[b],"fa-kit":"fak"};const At=dt(bt),$e=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,Xe="fa-layers-text",Pe=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,It=(dt({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),xn=H,_n=new Set;Object.keys(vt[b]).map(_n.add.bind(_n)),Object.keys(vt[E]).map(_n.add.bind(_n)),Object.keys(vt[D]).map(_n.add.bind(_n));const Jt=["kit",...N],ke=s.FontAwesomeConfig||{};d&&"function"==typeof d.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(In=>{let[$n,oi]=In;const si=function ze(sn){return""===sn||"false"!==sn&&("true"===sn||sn)}(function Ae(sn){var In=d.querySelector("script["+sn+"]");if(In)return In.getAttribute(sn)}($n));null!=si&&(ke[oi]=si)});const pt={styleDefault:"solid",familyDefault:"classic",cssPrefix:Ee,replacementClass:Ye,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ke.familyPrefix&&(ke.cssPrefix=ke.familyPrefix);const tn={...pt,...ke};tn.autoReplaceSvg||(tn.observeMutations=!1);const ot={};Object.keys(pt).forEach(sn=>{Object.defineProperty(ot,sn,{enumerable:!0,set:function(In){tn[sn]=In,Et.forEach($n=>$n(ot))},get:function(){return tn[sn]}})}),Object.defineProperty(ot,"familyPrefix",{enumerable:!0,set:function(sn){tn.cssPrefix=sn,Et.forEach(In=>In(ot))},get:function(){return tn.cssPrefix}}),s.FontAwesomeConfig=ot;const Et=[],Z=ve,ge={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},qe="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ct(){let sn=12,In="";for(;sn-- >0;)In+=qe[62*Math.random()|0];return In}function Yt(sn){const In=[];for(let $n=(sn||[]).length>>>0;$n--;)In[$n]=sn[$n];return In}function it(sn){return sn.classList?Yt(sn.classList):(sn.getAttribute("class")||"").split(" ").filter(In=>In)}function Be(sn){return"".concat(sn).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ue(sn){return Object.keys(sn||{}).reduce((In,$n)=>In+"".concat($n,": ").concat(sn[$n].trim(),";"),"")}function Ge(sn){return sn.size!==ge.size||sn.x!==ge.x||sn.y!==ge.y||sn.rotate!==ge.rotate||sn.flipX||sn.flipY}var Ot=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-counter-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(-1 * var(--fa-li-width, 2em));\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  animation-name: fa-beat;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  animation-name: fa-bounce;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  animation-name: fa-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  animation-name: fa-beat-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  animation-name: fa-flip;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  animation-name: fa-shake;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  animation-name: fa-spin;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 2s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  animation-name: fa-spin;\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    animation-delay: -1ms;\n    animation-duration: 1ms;\n    animation-iteration-count: 1;\n    transition-delay: 0s;\n    transition-duration: 0s;\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    transform: scale(1);\n  }\n  45% {\n    transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-shake {\n  0% {\n    transform: rotate(-15deg);\n  }\n  4% {\n    transform: rotate(15deg);\n  }\n  8%, 24% {\n    transform: rotate(-18deg);\n  }\n  12%, 28% {\n    transform: rotate(18deg);\n  }\n  16% {\n    transform: rotate(-22deg);\n  }\n  20% {\n    transform: rotate(22deg);\n  }\n  32% {\n    transform: rotate(-12deg);\n  }\n  36% {\n    transform: rotate(12deg);\n  }\n  40%, 100% {\n    transform: rotate(0deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}';function cn(){const sn=Ee,In=Ye,$n=ot.cssPrefix,oi=ot.replacementClass;let si=Ot;if($n!==sn||oi!==In){const qt=new RegExp("\\.".concat(sn,"\\-"),"g"),Ri=new RegExp("\\--".concat(sn,"\\-"),"g"),Fi=new RegExp("\\.".concat(In),"g");si=si.replace(qt,".".concat($n,"-")).replace(Ri,"--".concat($n,"-")).replace(Fi,".".concat(oi))}return si}let Gn=!1;function _i(){ot.autoAddCss&&!Gn&&(function Qe(sn){if(!sn||!v)return;const In=d.createElement("style");In.setAttribute("type","text/css"),In.innerHTML=sn;const $n=d.head.childNodes;let oi=null;for(let si=$n.length-1;si>-1;si--){const qt=$n[si],Ri=(qt.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Ri)>-1&&(oi=qt)}d.head.insertBefore(In,oi)}(cn()),Gn=!0)}var Ni={mixout:()=>({dom:{css:cn,insertCss:_i}}),hooks:()=>({beforeDOMElementCreation(){_i()},beforeI2svg(){_i()}})};const Nn=s||{};Nn[se]||(Nn[se]={}),Nn[se].styles||(Nn[se].styles={}),Nn[se].hooks||(Nn[se].hooks={}),Nn[se].shims||(Nn[se].shims=[]);var Mn=Nn[se];const On=[],Qn=function(){d.removeEventListener("DOMContentLoaded",Qn),Ti=1,On.map(sn=>sn())};let Ti=!1;function un(sn){const{tag:In,attributes:$n={},children:oi=[]}=sn;return"string"==typeof sn?Be(sn):"<".concat(In," ").concat(function gt(sn){return Object.keys(sn||{}).reduce((In,$n)=>In+"".concat($n,'="').concat(Be(sn[$n]),'" '),"").trim()}($n),">").concat(oi.map(un).join(""),"</").concat(In,">")}function rn(sn,In,$n){if(sn&&sn[In]&&sn[In][$n])return{prefix:In,iconName:$n,icon:sn[In][$n]}}v&&(Ti=(d.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(d.readyState),Ti||d.addEventListener("DOMContentLoaded",Qn));var Nt=function(In,$n,oi,si){var sr,Xi,wr,qt=Object.keys(In),Ri=qt.length,Fi=void 0!==si?function(In,$n){return function(oi,si,qt,Ri){return In.call($n,oi,si,qt,Ri)}}($n,si):$n;for(void 0===oi?(sr=1,wr=In[qt[0]]):(sr=0,wr=oi);sr<Ri;sr++)wr=Fi(wr,In[Xi=qt[sr]],Xi,In);return wr};function Wn(sn){const In=function Rn(sn){const In=[];let $n=0;const oi=sn.length;for(;$n<oi;){const si=sn.charCodeAt($n++);if(si>=55296&&si<=56319&&$n<oi){const qt=sn.charCodeAt($n++);56320==(64512&qt)?In.push(((1023&si)<<10)+(1023&qt)+65536):(In.push(si),$n--)}else In.push(si)}return In}(sn);return 1===In.length?In[0].toString(16):null}function ir(sn){return Object.keys(sn).reduce((In,$n)=>{const oi=sn[$n];return oi.icon?In[oi.iconName]=oi.icon:In[$n]=oi,In},{})}function dr(sn,In){let $n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:oi=!1}=$n,si=ir(In);"function"!=typeof Mn.hooks.addPack||oi?Mn.styles[sn]={...Mn.styles[sn]||{},...si}:Mn.hooks.addPack(sn,ir(In)),"fas"===sn&&dr("fa",In)}const{styles:Ln,shims:Vn}=Mn,Le={[b]:Object.values(zt[b]),[E]:Object.values(zt[E]),[D]:Object.values(zt[D])};let Ft=null,dn={},En={},gi={},$i={},fr={};const Mr={[b]:Object.keys(Xt[b]),[E]:Object.keys(Xt[E]),[D]:Object.keys(Xt[D])};const on=()=>{const sn=oi=>Nt(Ln,(si,qt,Ri)=>(si[Ri]=Nt(qt,oi,{}),si),{});dn=sn((oi,si,qt)=>(si[3]&&(oi[si[3]]=qt),si[2]&&si[2].filter(Fi=>"number"==typeof Fi).forEach(Fi=>{oi[Fi.toString(16)]=qt}),oi)),En=sn((oi,si,qt)=>(oi[qt]=qt,si[2]&&si[2].filter(Fi=>"string"==typeof Fi).forEach(Fi=>{oi[Fi]=qt}),oi)),fr=sn((oi,si,qt)=>{const Ri=si[2];return oi[qt]=qt,Ri.forEach(Fi=>{oi[Fi]=qt}),oi});const In="far"in Ln||ot.autoFetchSvg,$n=Nt(Vn,(oi,si)=>{const qt=si[0];let Ri=si[1];const Fi=si[2];return"far"===Ri&&!In&&(Ri="fas"),"string"==typeof qt&&(oi.names[qt]={prefix:Ri,iconName:Fi}),"number"==typeof qt&&(oi.unicodes[qt.toString(16)]={prefix:Ri,iconName:Fi}),oi},{names:{},unicodes:{}});gi=$n.names,$i=$n.unicodes,Ft=jn(ot.styleDefault,{family:ot.familyDefault})};function he(sn,In){return(dn[sn]||{})[In]}function tt(sn,In){return(fr[sn]||{})[In]}function nn(sn){return gi[sn]||{prefix:null,iconName:null}}function jt(){return Ft}(function z(sn){Et.push(sn)})(sn=>{Ft=jn(sn.styleDefault,{family:ot.familyDefault})}),on();const Fn=()=>({prefix:null,iconName:null,rest:[]});function jn(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:$n=b}=In;return vt[$n][sn]||vt[$n][Xt[$n][sn]]||(sn in Mn.styles?sn:null)||null}const ri={[b]:Object.keys(zt[b]),[E]:Object.keys(zt[E]),[D]:Object.keys(zt[D])};function vi(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:$n=!1}=In,oi={[b]:"".concat(ot.cssPrefix,"-").concat(b),[E]:"".concat(ot.cssPrefix,"-").concat(E),[D]:"".concat(ot.cssPrefix,"-").concat(D)};let si=null,qt=b;const Ri=A.filter(sr=>sr!==S);Ri.forEach(sr=>{(sn.includes(oi[sr])||sn.some(Xi=>ri[sr].includes(Xi)))&&(qt=sr)});const Fi=sn.reduce((sr,Xi)=>{const wr=function Kn(sn,In){const $n=In.split("-"),oi=$n[0],si=$n.slice(1).join("-");return oi!==sn||""===si||function ti(sn){return~Jt.indexOf(sn)}(si)?null:si}(ot.cssPrefix,Xi);if(Ln[Xi]?(Xi=Le[qt].includes(Xi)?At[qt][Xi]:Xi,si=Xi,sr.prefix=Xi):Mr[qt].indexOf(Xi)>-1?(si=Xi,sr.prefix=jn(Xi,{family:qt})):wr?sr.iconName=wr:Xi!==ot.replacementClass&&!Ri.some(mo=>Xi===oi[mo])&&sr.rest.push(Xi),!$n&&sr.prefix&&sr.iconName){const mo="fa"===si?nn(sr.iconName):{},Jr=tt(sr.prefix,sr.iconName);mo.prefix&&(si=null),sr.iconName=mo.iconName||Jr||sr.iconName,sr.prefix=mo.prefix||sr.prefix,"far"===sr.prefix&&!Ln.far&&Ln.fas&&!ot.autoFetchSvg&&(sr.prefix="fas")}return sr},Fn());return(sn.includes("fa-brands")||sn.includes("fab"))&&(Fi.prefix="fab"),(sn.includes("fa-duotone")||sn.includes("fad"))&&(Fi.prefix="fad"),!Fi.prefix&&qt===E&&(Ln.fass||ot.autoFetchSvg)&&(Fi.prefix="fass",Fi.iconName=tt(Fi.prefix,Fi.iconName)||Fi.iconName),!Fi.prefix&&qt===D&&(Ln.fasds||ot.autoFetchSvg)&&(Fi.prefix="fasds",Fi.iconName=tt(Fi.prefix,Fi.iconName)||Fi.iconName),("fa"===Fi.prefix||"fa"===si)&&(Fi.prefix=jt()||"fas"),Fi}let cr=[],Hi={};const Vi={},kr=Object.keys(Vi);function pr(sn,In){for(var $n=arguments.length,oi=new Array($n>2?$n-2:0),si=2;si<$n;si++)oi[si-2]=arguments[si];return(Hi[sn]||[]).forEach(Ri=>{In=Ri.apply(null,[In,...oi])}),In}function fo(sn){for(var In=arguments.length,$n=new Array(In>1?In-1:0),oi=1;oi<In;oi++)$n[oi-1]=arguments[oi];(Hi[sn]||[]).forEach(qt=>{qt.apply(null,$n)})}function Tr(){const sn=arguments[0],In=Array.prototype.slice.call(arguments,1);return Vi[sn]?Vi[sn].apply(null,In):void 0}function Br(sn){"fa"===sn.prefix&&(sn.prefix="fas");let{iconName:In}=sn;const $n=sn.prefix||jt();if(In)return In=tt($n,In)||In,rn(_o.definitions,$n,In)||rn(Mn.styles,$n,In)}const _o=new class Ii{constructor(){this.definitions={}}add(){for(var In=arguments.length,$n=new Array(In),oi=0;oi<In;oi++)$n[oi]=arguments[oi];const si=$n.reduce(this._pullDefinitions,{});Object.keys(si).forEach(qt=>{this.definitions[qt]={...this.definitions[qt]||{},...si[qt]},dr(qt,si[qt]);const Ri=zt[b][qt];Ri&&dr(Ri,si[qt]),on()})}reset(){this.definitions={}}_pullDefinitions(In,$n){const oi=$n.prefix&&$n.iconName&&$n.icon?{0:$n}:$n;return Object.keys(oi).map(si=>{const{prefix:qt,iconName:Ri,icon:Fi}=oi[si],sr=Fi[2];In[qt]||(In[qt]={}),sr.length>0&&sr.forEach(Xi=>{"string"==typeof Xi&&(In[qt][Xi]=Fi)}),In[qt][Ri]=Fi}),In}},Jn={noAuto:()=>{ot.autoReplaceSvg=!1,ot.observeMutations=!1,fo("noAuto")},config:ot,dom:{i2svg:function(){let sn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return v?(fo("beforeI2svg",sn),Tr("pseudoElements2svg",sn),Tr("i2svg",sn)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let sn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:In}=sn;!1===ot.autoReplaceSvg&&(ot.autoReplaceSvg=!0),ot.observeMutations=!0,function Si(sn){v&&(Ti?setTimeout(sn,0):On.push(sn))}(()=>{Di({autoReplaceSvgRoot:In}),fo("watch",sn)})}},parse:{icon:sn=>{if(null===sn)return null;if("object"==typeof sn&&sn.prefix&&sn.iconName)return{prefix:sn.prefix,iconName:tt(sn.prefix,sn.iconName)||sn.iconName};if(Array.isArray(sn)&&2===sn.length){const In=0===sn[1].indexOf("fa-")?sn[1].slice(3):sn[1],$n=jn(sn[0]);return{prefix:$n,iconName:tt($n,In)||In}}if("string"==typeof sn&&(sn.indexOf("".concat(ot.cssPrefix,"-"))>-1||sn.match($e))){const In=vi(sn.split(" "),{skipLookups:!0});return{prefix:In.prefix||jt(),iconName:tt(In.prefix,In.iconName)||In.iconName}}if("string"==typeof sn){const In=jt();return{prefix:In,iconName:tt(In,sn)||sn}}}},library:_o,findIconDefinition:Br,toHtml:un},Di=function(){let sn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:In=d}=sn;(Object.keys(Mn.styles).length>0||ot.autoFetchSvg)&&v&&ot.autoReplaceSvg&&Jn.dom.i2svg({node:In})};function Wi(sn,In){return Object.defineProperty(sn,"abstract",{get:In}),Object.defineProperty(sn,"html",{get:function(){return sn.abstract.map($n=>un($n))}}),Object.defineProperty(sn,"node",{get:function(){if(!v)return;const $n=d.createElement("div");return $n.innerHTML=sn.html,$n.children}}),sn}function bo(sn){const{icons:{main:In,mask:$n},prefix:oi,iconName:si,transform:qt,symbol:Ri,title:Fi,maskId:sr,titleId:Xi,extra:wr,watchable:mo=!1}=sn,{width:Jr,height:na}=$n.found?$n:In,Qo="fak"===oi,Va=[ot.replacementClass,si?"".concat(ot.cssPrefix,"-").concat(si):""].filter(st=>-1===wr.classes.indexOf(st)).filter(st=>""!==st||!!st).concat(wr.classes).join(" ");let Vo={children:[],attributes:{...wr.attributes,"data-prefix":oi,"data-icon":si,class:Va,role:wr.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Jr," ").concat(na)}};const Ra=Qo&&!~wr.classes.indexOf("fa-fw")?{width:"".concat(Jr/na*16*.0625,"em")}:{};mo&&(Vo.attributes[wt]=""),Fi&&(Vo.children.push({tag:"title",attributes:{id:Vo.attributes["aria-labelledby"]||"title-".concat(Xi||ct())},children:[Fi]}),delete Vo.attributes.title);const Xo={...Vo,prefix:oi,iconName:si,main:In,mask:$n,maskId:sr,transform:qt,symbol:Ri,styles:{...Ra,...wr.styles}},{children:Je,attributes:Vt}=$n.found&&In.found?Tr("generateAbstractMask",Xo)||{children:[],attributes:{}}:Tr("generateAbstractIcon",Xo)||{children:[],attributes:{}};return Xo.children=Je,Xo.attributes=Vt,Ri?function br(sn){let{prefix:In,iconName:$n,children:oi,attributes:si,symbol:qt}=sn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...si,id:!0===qt?"".concat(In,"-").concat(ot.cssPrefix,"-").concat($n):qt},children:oi}]}]}(Xo):function Ar(sn){let{children:In,main:$n,mask:oi,attributes:si,styles:qt,transform:Ri}=sn;if(Ge(Ri)&&$n.found&&!oi.found){const{width:Fi,height:sr}=$n,Xi={x:Fi/sr/2,y:.5};si.style=ue({...qt,"transform-origin":"".concat(Xi.x+Ri.x/16,"em ").concat(Xi.y+Ri.y/16,"em")})}return[{tag:"svg",attributes:si,children:In}]}(Xo)}function xo(sn){const{content:In,width:$n,height:oi,transform:si,title:qt,extra:Ri,watchable:Fi=!1}=sn,sr={...Ri.attributes,...qt?{title:qt}:{},class:Ri.classes.join(" ")};Fi&&(sr[wt]="");const Xi={...Ri.styles};Ge(si)&&(Xi.transform=function De(sn){let{transform:In,width:$n=ve,height:oi=ve,startCentered:si=!1}=sn,qt="";return qt+=si&&y?"translate(".concat(In.x/Z-$n/2,"em, ").concat(In.y/Z-oi/2,"em) "):si?"translate(calc(-50% + ".concat(In.x/Z,"em), calc(-50% + ").concat(In.y/Z,"em)) "):"translate(".concat(In.x/Z,"em, ").concat(In.y/Z,"em) "),qt+="scale(".concat(In.size/Z*(In.flipX?-1:1),", ").concat(In.size/Z*(In.flipY?-1:1),") "),qt+="rotate(".concat(In.rotate,"deg) "),qt}({transform:si,startCentered:!0,width:$n,height:oi}),Xi["-webkit-transform"]=Xi.transform);const wr=ue(Xi);wr.length>0&&(sr.style=wr);const mo=[];return mo.push({tag:"span",attributes:sr,children:[In]}),qt&&mo.push({tag:"span",attributes:{class:"sr-only"},children:[qt]}),mo}const{styles:w}=Mn;function ne(sn){const In=sn[0],$n=sn[1],[oi]=sn.slice(4);let si=null;return si=Array.isArray(oi)?{tag:"g",attributes:{class:"".concat(ot.cssPrefix,"-").concat(xn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ot.cssPrefix,"-").concat(xn.SECONDARY),fill:"currentColor",d:oi[0]}},{tag:"path",attributes:{class:"".concat(ot.cssPrefix,"-").concat(xn.PRIMARY),fill:"currentColor",d:oi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:oi}},{found:!0,width:In,height:$n,icon:si}}const be={found:!1,width:512,height:512};function at(sn,In){let $n=In;return"fa"===In&&null!==ot.styleDefault&&(In=jt()),new Promise((oi,si)=>{if("fa"===$n){const qt=nn(sn)||{};sn=qt.iconName||sn,In=qt.prefix||In}if(sn&&In&&w[In]&&w[In][sn])return oi(ne(w[In][sn]));(function Ue(sn,In){!Ce&&!ot.showMissingIcons&&sn&&console.error('Icon with name "'.concat(sn,'" and prefix "').concat(In,'" is missing.'))})(sn,In),oi({...be,icon:ot.showMissingIcons&&sn&&Tr("missingIconAbstract")||{}})})}const Rt=()=>{},yn=ot.measurePerformance&&u&&u.mark&&u.measure?u:{mark:Rt,measure:Rt},Tn='FA "6.6.0"',Zn=sn=>{yn.mark("".concat(Tn," ").concat(sn," ends")),yn.measure("".concat(Tn," ").concat(sn),"".concat(Tn," ").concat(sn," begins"),"".concat(Tn," ").concat(sn," ends"))};var ui={begin:sn=>(yn.mark("".concat(Tn," ").concat(sn," begins")),()=>Zn(sn)),end:Zn};const wi=()=>{};function an(sn){return"string"==typeof(sn.getAttribute?sn.getAttribute(wt):null)}function li(sn){return d.createElementNS("http://www.w3.org/2000/svg",sn)}function ft(sn){return d.createElement(sn)}function ce(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:$n=("svg"===sn.tag?li:ft)}=In;if("string"==typeof sn)return d.createTextNode(sn);const oi=$n(sn.tag);return Object.keys(sn.attributes||[]).forEach(function(qt){oi.setAttribute(qt,sn.attributes[qt])}),(sn.children||[]).forEach(function(qt){oi.appendChild(ce(qt,{ceFn:$n}))}),oi}const ut={replace:function(sn){const In=sn[0];if(In.parentNode)if(sn[1].forEach($n=>{In.parentNode.insertBefore(ce($n),In)}),null===In.getAttribute(wt)&&ot.keepOriginalSource){let $n=d.createComment(function Se(sn){let In=" ".concat(sn.outerHTML," ");return In="".concat(In,"Font Awesome fontawesome.com "),In}(In));In.parentNode.replaceChild($n,In)}else In.remove()},nest:function(sn){const In=sn[0],$n=sn[1];if(~it(In).indexOf(ot.replacementClass))return ut.replace(sn);const oi=new RegExp("".concat(ot.cssPrefix,"-.*"));if(delete $n[0].attributes.id,$n[0].attributes.class){const qt=$n[0].attributes.class.split(" ").reduce((Ri,Fi)=>(Fi===ot.replacementClass||Fi.match(oi)?Ri.toSvg.push(Fi):Ri.toNode.push(Fi),Ri),{toNode:[],toSvg:[]});$n[0].attributes.class=qt.toSvg.join(" "),0===qt.toNode.length?In.removeAttribute("class"):In.setAttribute("class",qt.toNode.join(" "))}const si=$n.map(qt=>un(qt)).join("\n");In.setAttribute(wt,""),In.innerHTML=si}};function Kt(sn){sn()}function mn(sn,In){const $n="function"==typeof In?In:wi;if(0===sn.length)$n();else{let oi=Kt;ot.mutateApproach===yt&&(oi=s.requestAnimationFrame||Kt),oi(()=>{const si=function ii(){return!0===ot.autoReplaceSvg?ut.replace:ut[ot.autoReplaceSvg]||ut.replace}(),qt=ui.begin("mutate");sn.map(si),qt(),$n()})}}let Un=!1;function qn(){Un=!0}function ci(){Un=!1}let hi=null;function Ai(sn){if(!p||!ot.observeMutations)return;const{treeCallback:In=wi,nodeCallback:$n=wi,pseudoElementsCallback:oi=wi,observeMutationsRoot:si=d}=sn;hi=new p(qt=>{if(Un)return;const Ri=jt();Yt(qt).forEach(Fi=>{if("childList"===Fi.type&&Fi.addedNodes.length>0&&!an(Fi.addedNodes[0])&&(ot.searchPseudoElements&&oi(Fi.target),In(Fi.target)),"attributes"===Fi.type&&Fi.target.parentNode&&ot.searchPseudoElements&&oi(Fi.target.parentNode),"attributes"===Fi.type&&an(Fi.target)&&~It.indexOf(Fi.attributeName))if("class"===Fi.attributeName&&function bn(sn){const In=sn.getAttribute?sn.getAttribute(nt):null,$n=sn.getAttribute?sn.getAttribute(Zt):null;return In&&$n}(Fi.target)){const{prefix:sr,iconName:Xi}=vi(it(Fi.target));Fi.target.setAttribute(nt,sr||Ri),Xi&&Fi.target.setAttribute(Zt,Xi)}else(function Dn(sn){return sn&&sn.classList&&sn.classList.contains&&sn.classList.contains(ot.replacementClass)})(Fi.target)&&$n(Fi.target)})}),v&&hi.observe(si,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Io(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:$n,prefix:oi,rest:si}=function tr(sn){const In=sn.getAttribute("data-prefix"),$n=sn.getAttribute("data-icon"),oi=void 0!==sn.innerText?sn.innerText.trim():"";let si=vi(it(sn));return si.prefix||(si.prefix=jt()),In&&$n&&(si.prefix=In,si.iconName=$n),si.iconName&&si.prefix||(si.prefix&&oi.length>0&&(si.iconName=function et(sn,In){return(En[sn]||{})[In]}(si.prefix,sn.innerText)||he(si.prefix,Wn(sn.innerText))),!si.iconName&&ot.autoFetchSvg&&sn.firstChild&&sn.firstChild.nodeType===Node.TEXT_NODE&&(si.iconName=sn.firstChild.data)),si}(sn),qt=function Lr(sn){const In=Yt(sn.attributes).reduce((si,qt)=>("class"!==si.name&&"style"!==si.name&&(si[qt.name]=qt.value),si),{}),$n=sn.getAttribute("title"),oi=sn.getAttribute("data-fa-title-id");return ot.autoA11y&&($n?In["aria-labelledby"]="".concat(ot.replacementClass,"-title-").concat(oi||ct()):(In["aria-hidden"]="true",In.focusable="false")),In}(sn),Ri=pr("parseNodeAttributes",{},sn);let Fi=In.styleParser?function Yi(sn){const In=sn.getAttribute("style");let $n=[];return In&&($n=In.split(";").reduce((oi,si)=>{const qt=si.split(":"),Ri=qt[0],Fi=qt.slice(1);return Ri&&Fi.length>0&&(oi[Ri]=Fi.join(":").trim()),oi},{})),$n}(sn):[];return{iconName:$n,title:sn.getAttribute("title"),titleId:sn.getAttribute("data-fa-title-id"),prefix:oi,transform:ge,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:si,styles:Fi,attributes:qt},...Ri}}const{styles:wo}=Mn;function aa(sn){const In="nest"===ot.autoReplaceSvg?Io(sn,{styleParser:!1}):Io(sn);return~In.extra.classes.indexOf(Xe)?Tr("generateLayersText",sn,In):Tr("generateSvgReplacementMutation",sn,In)}let yo=new Set;function Pa(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!v)return Promise.resolve();const $n=d.documentElement.classList,oi=wr=>$n.add("".concat(Fe,"-").concat(wr)),si=wr=>$n.remove("".concat(Fe,"-").concat(wr)),qt=ot.autoFetchSvg?yo:Ie.map(wr=>"fa-".concat(wr)).concat(Object.keys(wo));qt.includes("fa")||qt.push("fa");const Ri=[".".concat(Xe,":not([").concat(wt,"])")].concat(qt.map(wr=>".".concat(wr,":not([").concat(wt,"])"))).join(", ");if(0===Ri.length)return Promise.resolve();let Fi=[];try{Fi=Yt(sn.querySelectorAll(Ri))}catch{}if(!(Fi.length>0))return Promise.resolve();oi("pending"),si("complete");const sr=ui.begin("onTree"),Xi=Fi.reduce((wr,mo)=>{try{const Jr=aa(mo);Jr&&wr.push(Jr)}catch(Jr){Ce||"MissingIcon"===Jr.name&&console.error(Jr)}return wr},[]);return new Promise((wr,mo)=>{Promise.all(Xi).then(Jr=>{mn(Jr,()=>{oi("active"),oi("complete"),si("pending"),"function"==typeof In&&In(),sr(),wr()})}).catch(Jr=>{sr(),mo(Jr)})})}function Uo(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;aa(sn).then($n=>{$n&&mn([$n],In)})}Ie.map(sn=>{yo.add("fa-".concat(sn))}),Object.keys(Xt[b]).map(yo.add.bind(yo)),Object.keys(Xt[E]).map(yo.add.bind(yo)),Object.keys(Xt[D]).map(yo.add.bind(yo)),yo=[...yo];const $o=function(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:$n=ge,symbol:oi=!1,mask:si=null,maskId:qt=null,title:Ri=null,titleId:Fi=null,classes:sr=[],attributes:Xi={},styles:wr={}}=In;if(!sn)return;const{prefix:mo,iconName:Jr,icon:na}=sn;return Wi({type:"icon",...sn},()=>(fo("beforeDOMElementCreation",{iconDefinition:sn,params:In}),ot.autoA11y&&(Ri?Xi["aria-labelledby"]="".concat(ot.replacementClass,"-title-").concat(Fi||ct()):(Xi["aria-hidden"]="true",Xi.focusable="false")),bo({icons:{main:ne(na),mask:si?ne(si.icon):{found:!1,width:null,height:null,icon:{}}},prefix:mo,iconName:Jr,transform:{...ge,...$n},symbol:oi,title:Ri,maskId:qt,titleId:Fi,extra:{attributes:Xi,styles:wr,classes:sr}})))};var yr={mixout(){return{icon:(sn=$o,function(In){let $n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const oi=(In||{}).icon?In:Br(In||{});let{mask:si}=$n;return si&&(si=(si||{}).icon?si:Br(si||{})),sn(oi,{...$n,mask:si})})};var sn},hooks:()=>({mutationObserverCallbacks:sn=>(sn.treeCallback=Pa,sn.nodeCallback=Uo,sn)}),provides(sn){sn.i2svg=function(In){const{node:$n=d,callback:oi=(()=>{})}=In;return Pa($n,oi)},sn.generateSvgReplacementMutation=function(In,$n){const{iconName:oi,title:si,titleId:qt,prefix:Ri,transform:Fi,symbol:sr,mask:Xi,maskId:wr,extra:mo}=$n;return new Promise((Jr,na)=>{Promise.all([at(oi,Ri),Xi.iconName?at(Xi.iconName,Xi.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(Qo=>{let[Va,Vo]=Qo;Jr([In,bo({icons:{main:Va,mask:Vo},prefix:Ri,iconName:oi,transform:Fi,symbol:sr,maskId:wr,title:si,titleId:qt,extra:mo,watchable:!0})])}).catch(na)})},sn.generateAbstractIcon=function(In){let{children:$n,attributes:oi,main:si,transform:qt,styles:Ri}=In;const Fi=ue(Ri);let sr;return Fi.length>0&&(oi.style=Fi),Ge(qt)&&(sr=Tr("generateAbstractTransformGrouping",{main:si,transform:qt,containerWidth:si.width,iconWidth:si.width})),$n.push(sr||si.icon),{children:$n,attributes:oi}}}},va={mixout:()=>({layer(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:$n=[]}=In;return Wi({type:"layer"},()=>{fo("beforeDOMElementCreation",{assembler:sn,params:In});let oi=[];return sn(si=>{Array.isArray(si)?si.map(qt=>{oi=oi.concat(qt.abstract)}):oi=oi.concat(si.abstract)}),[{tag:"span",attributes:{class:["".concat(ot.cssPrefix,"-layers"),...$n].join(" ")},children:oi}]})}})},Tt={mixout:()=>({counter(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:$n=null,classes:oi=[],attributes:si={},styles:qt={}}=In;return Wi({type:"counter",content:sn},()=>(fo("beforeDOMElementCreation",{content:sn,params:In}),function Re(sn){const{content:In,title:$n,extra:oi}=sn,si={...oi.attributes,...$n?{title:$n}:{},class:oi.classes.join(" ")},qt=ue(oi.styles);qt.length>0&&(si.style=qt);const Ri=[];return Ri.push({tag:"span",attributes:si,children:[In]}),$n&&Ri.push({tag:"span",attributes:{class:"sr-only"},children:[$n]}),Ri}({content:sn.toString(),title:$n,extra:{attributes:si,styles:qt,classes:["".concat(ot.cssPrefix,"-layers-counter"),...oi]}})))}})},Ct={mixout:()=>({text(sn){let In=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:$n=ge,title:oi=null,classes:si=[],attributes:qt={},styles:Ri={}}=In;return Wi({type:"text",content:sn},()=>(fo("beforeDOMElementCreation",{content:sn,params:In}),xo({content:sn,transform:{...ge,...$n},title:oi,extra:{attributes:qt,styles:Ri,classes:["".concat(ot.cssPrefix,"-layers-text"),...si]}})))}}),provides(sn){sn.generateLayersText=function(In,$n){const{title:oi,transform:si,extra:qt}=$n;let Ri=null,Fi=null;if(y){const sr=parseInt(getComputedStyle(In).fontSize,10),Xi=In.getBoundingClientRect();Ri=Xi.width/sr,Fi=Xi.height/sr}return ot.autoA11y&&!oi&&(qt.attributes["aria-hidden"]="true"),Promise.resolve([In,xo({content:In.innerHTML,width:Ri,height:Fi,transform:si,title:oi,extra:qt,watchable:!0})])}}};const Ze=new RegExp('"',"ug"),vn=[1105920,1112319],Ci={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},rr=Object.keys(Ci).reduce((sn,In)=>(sn[In.toLowerCase()]=Ci[In],sn),{}),oo=Object.keys(rr).reduce((sn,In)=>{const $n=rr[In];return sn[In]=$n[900]||[...Object.entries($n)][0][1],sn},{});function zr(sn,In){const $n="".concat(Ut).concat(In.replace(":","-"));return new Promise((oi,si)=>{if(null!==sn.getAttribute($n))return oi();const Ri=Yt(sn.children).filter(Jr=>Jr.getAttribute(Wt)===In)[0],Fi=s.getComputedStyle(sn,In),sr=Fi.getPropertyValue("font-family"),Xi=sr.match(Pe),wr=Fi.getPropertyValue("font-weight"),mo=Fi.getPropertyValue("content");if(Ri&&!Xi)return sn.removeChild(Ri),oi();if(Xi&&"none"!==mo&&""!==mo){const Jr=Fi.getPropertyValue("content");let na=function xr(sn,In){const $n=sn.replace(/^['"]|['"]$/g,"").toLowerCase(),oi=parseInt(In),si=isNaN(oi)?"normal":oi;return(rr[$n]||{})[si]||oo[$n]}(sr,wr);const{value:Qo,isSecondary:Va}=function Oi(sn){const In=sn.replace(Ze,""),$n=function ji(sn,In){const $n=sn.length;let si,oi=sn.charCodeAt(In);return oi>=55296&&oi<=56319&&$n>In+1&&(si=sn.charCodeAt(In+1),si>=56320&&si<=57343)?1024*(oi-55296)+si-56320+65536:oi}(In,0),oi=$n>=vn[0]&&$n<=vn[1],si=2===In.length&&In[0]===In[1];return{value:Wn(si?In[0]:In),isSecondary:oi||si}}(Jr),Vo=Xi[0].startsWith("FontAwesome");let Ra=he(na,Qo),Xo=Ra;if(Vo){const Je=function zn(sn){const In=$i[sn],$n=he("fas",sn);return In||($n?{prefix:"fas",iconName:$n}:null)||{prefix:null,iconName:null}}(Qo);Je.iconName&&Je.prefix&&(Ra=Je.iconName,na=Je.prefix)}if(!Ra||Va||Ri&&Ri.getAttribute(nt)===na&&Ri.getAttribute(Zt)===Xo)oi();else{sn.setAttribute($n,Xo),Ri&&sn.removeChild(Ri);const Je=function Gr(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ge,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),{extra:Vt}=Je;Vt.attributes[Wt]=In,at(Ra,na).then(st=>{const ln=bo({...Je,icons:{main:st,mask:Fn()},prefix:na,iconName:Xo,extra:Vt,watchable:!0}),An=d.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===In?sn.insertBefore(An,sn.firstChild):sn.appendChild(An),An.outerHTML=ln.map(yi=>un(yi)).join("\n"),sn.removeAttribute($n),oi()}).catch(si)}}else oi()})}function Aa(sn){return Promise.all([zr(sn,"::before"),zr(sn,"::after")])}function Mo(sn){return!(sn.parentNode===document.head||~ie.indexOf(sn.tagName.toUpperCase())||sn.getAttribute(Wt)||sn.parentNode&&"svg"===sn.parentNode.tagName)}function ka(sn){if(v)return new Promise((In,$n)=>{const oi=Yt(sn.querySelectorAll("*")).filter(Mo).map(Aa),si=ui.begin("searchPseudoElements");qn(),Promise.all(oi).then(()=>{si(),ci(),In()}).catch(()=>{si(),ci(),$n()})})}let ba=!1;const ca=sn=>sn.toLowerCase().split(" ").reduce(($n,oi)=>{const si=oi.toLowerCase().split("-"),qt=si[0];let Ri=si.slice(1).join("-");if(qt&&"h"===Ri)return $n.flipX=!0,$n;if(qt&&"v"===Ri)return $n.flipY=!0,$n;if(Ri=parseFloat(Ri),isNaN(Ri))return $n;switch(qt){case"grow":$n.size=$n.size+Ri;break;case"shrink":$n.size=$n.size-Ri;break;case"left":$n.x=$n.x-Ri;break;case"right":$n.x=$n.x+Ri;break;case"up":$n.y=$n.y-Ri;break;case"down":$n.y=$n.y+Ri;break;case"rotate":$n.rotate=$n.rotate+Ri}return $n},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),ja={x:0,y:0,width:"100%",height:"100%"};function rs(sn){return sn.attributes&&(sn.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(sn.attributes.fill="black"),sn}function Po(sn){return"g"===sn.tag?sn.children:[sn]}!function Er(sn,In){let{mixoutsTo:$n}=In;cr=sn,Hi={},Object.keys(Vi).forEach(oi=>{-1===kr.indexOf(oi)&&delete Vi[oi]}),cr.forEach(oi=>{const si=oi.mixout?oi.mixout():{};if(Object.keys(si).forEach(qt=>{"function"==typeof si[qt]&&($n[qt]=si[qt]),"object"==typeof si[qt]&&Object.keys(si[qt]).forEach(Ri=>{$n[qt]||($n[qt]={}),$n[qt][Ri]=si[qt][Ri]})}),oi.hooks){const qt=oi.hooks();Object.keys(qt).forEach(Ri=>{Hi[Ri]||(Hi[Ri]=[]),Hi[Ri].push(qt[Ri])})}oi.provides&&oi.provides(Vi)})}([Ni,yr,va,Tt,Ct,{hooks:()=>({mutationObserverCallbacks:sn=>(sn.pseudoElementsCallback=ka,sn)}),provides(sn){sn.pseudoElements2svg=function(In){const{node:$n=d}=In;ot.searchPseudoElements&&ka($n)}}},{mixout:()=>({dom:{unwatch(){qn(),ba=!0}}}),hooks:()=>({bootstrap(){Ai(pr("mutationObserverCallbacks",{}))},noAuto(){!function zi(){hi&&hi.disconnect()}()},watch(sn){const{observeMutationsRoot:In}=sn;ba?ci():Ai(pr("mutationObserverCallbacks",{observeMutationsRoot:In}))}})},{mixout:()=>({parse:{transform:sn=>ca(sn)}}),hooks:()=>({parseNodeAttributes(sn,In){const $n=In.getAttribute("data-fa-transform");return $n&&(sn.transform=ca($n)),sn}}),provides(sn){sn.generateAbstractTransformGrouping=function(In){let{main:$n,transform:oi,containerWidth:si,iconWidth:qt}=In;const Ri={transform:"translate(".concat(si/2," 256)")},Fi="translate(".concat(32*oi.x,", ").concat(32*oi.y,") "),sr="scale(".concat(oi.size/16*(oi.flipX?-1:1),", ").concat(oi.size/16*(oi.flipY?-1:1),") "),Xi="rotate(".concat(oi.rotate," 0 0)"),wr={transform:"".concat(Fi," ").concat(sr," ").concat(Xi)},mo={transform:"translate(".concat(qt/2*-1," -256)")};return{tag:"g",attributes:{...Ri},children:[{tag:"g",attributes:{...wr},children:[{tag:$n.icon.tag,children:$n.icon.children,attributes:{...$n.icon.attributes,...mo}}]}]}}}},{hooks:()=>({parseNodeAttributes(sn,In){const $n=In.getAttribute("data-fa-mask"),oi=$n?vi($n.split(" ").map(si=>si.trim())):Fn();return oi.prefix||(oi.prefix=jt()),sn.mask=oi,sn.maskId=In.getAttribute("data-fa-mask-id"),sn}}),provides(sn){sn.generateAbstractMask=function(In){let{children:$n,attributes:oi,main:si,mask:qt,maskId:Ri,transform:Fi}=In;const{width:sr,icon:Xi}=si,{width:wr,icon:mo}=qt,Jr=function ee(sn){let{transform:In,containerWidth:$n,iconWidth:oi}=sn;const si={transform:"translate(".concat($n/2," 256)")},qt="translate(".concat(32*In.x,", ").concat(32*In.y,") "),Ri="scale(".concat(In.size/16*(In.flipX?-1:1),", ").concat(In.size/16*(In.flipY?-1:1),") "),Fi="rotate(".concat(In.rotate," 0 0)");return{outer:si,inner:{transform:"".concat(qt," ").concat(Ri," ").concat(Fi)},path:{transform:"translate(".concat(oi/2*-1," -256)")}}}({transform:Fi,containerWidth:wr,iconWidth:sr}),na={tag:"rect",attributes:{...ja,fill:"white"}},Qo=Xi.children?{children:Xi.children.map(rs)}:{},Va={tag:"g",attributes:{...Jr.inner},children:[rs({tag:Xi.tag,attributes:{...Xi.attributes,...Jr.path},...Qo})]},Vo={tag:"g",attributes:{...Jr.outer},children:[Va]},Ra="mask-".concat(Ri||ct()),Xo="clip-".concat(Ri||ct()),Je={tag:"mask",attributes:{...ja,id:Ra,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[na,Vo]},Vt={tag:"defs",children:[{tag:"clipPath",attributes:{id:Xo},children:Po(mo)},Je]};return $n.push(Vt,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(Xo,")"),mask:"url(#".concat(Ra,")"),...ja}}),{children:$n,attributes:oi}}}},{provides(sn){let In=!1;s.matchMedia&&(In=s.matchMedia("(prefers-reduced-motion: reduce)").matches),sn.missingIconAbstract=function(){const $n=[],oi={fill:"currentColor"},si={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};$n.push({tag:"path",attributes:{...oi,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const qt={...si,attributeName:"opacity"},Ri={tag:"circle",attributes:{...oi,cx:"256",cy:"364",r:"28"},children:[]};return In||Ri.children.push({tag:"animate",attributes:{...si,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...qt,values:"1;0;1;1;0;1;"}}),$n.push(Ri),$n.push({tag:"path",attributes:{...oi,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:In?[]:[{tag:"animate",attributes:{...qt,values:"1;0;0;0;0;1;"}}]}),In||$n.push({tag:"path",attributes:{...oi,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...qt,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:$n}}}},{hooks:()=>({parseNodeAttributes(sn,In){const $n=In.getAttribute("data-fa-symbol");return sn.symbol=null!==$n&&(""===$n||$n),sn}})}],{mixoutsTo:Jn});const Ao=Jn.library,fs=Jn.parse,ya=Jn.icon},67375:(oe,x,i)=>{"use strict";i.d(x,{UM:()=>R,s6:()=>k});var e=i(94650),n=i(36895),a=i(80529),t=i(24006),l=i(11481);const h=["labelButton"],s=function(U,le){return{selected:U,focused:le}};function d(U,le){if(1&U){const T=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",9),e.\u0275\u0275listener("click",function(N){const de=e.\u0275\u0275restoreView(T).$implicit,me=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(me.optionSelect(de,N))}),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()}if(2&U){const T=le.$implicit,H=le.index,N=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(2,s,T.value===N.value,H===N.optionId)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",T.label," ")}}function p(U,le){1&U&&(e.\u0275\u0275elementStart(0,"span",10),e.\u0275\u0275text(1,"No items for select"),e.\u0275\u0275elementEnd())}const u=function(U){return{"ae-expanded":U}},g=["fileInput"];function v(U,le){if(1&U){const T=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",2)(1,"ae-select",63),e.\u0275\u0275listener("ngModelChange",function(N){e.\u0275\u0275restoreView(T);const pe=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(pe.customClassId=N)})("change",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(N.setCustomClass(N.customClassId))}),e.\u0275\u0275elementEnd()()}if(2&U){const T=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("options",T.customClassList)("ngModel",T.customClassId)("disabled",T.htmlMode)("hidden",T.isButtonHidden("customClasses"))}}function y(U,le){if(1&U){const T=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",1)(1,"div",2)(2,"button",3),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("undo"))}),e.\u0275\u0275element(3,"i",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"button",5),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("redo"))}),e.\u0275\u0275element(5,"i",6),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",2)(7,"button",7),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("bold"))}),e.\u0275\u0275element(8,"i",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"button",9),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("italic"))}),e.\u0275\u0275element(10,"i",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"button",11),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("underline"))}),e.\u0275\u0275element(12,"i",12),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"button",13),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("strikeThrough"))}),e.\u0275\u0275element(14,"i",14),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"button",15),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("subscript"))}),e.\u0275\u0275element(16,"i",16),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(17,"button",17),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("superscript"))}),e.\u0275\u0275element(18,"i",18),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(19,"div",2)(20,"button",19),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("justifyLeft"))}),e.\u0275\u0275element(21,"i",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(22,"button",21),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("justifyCenter"))}),e.\u0275\u0275element(23,"i",22),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(24,"button",23),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("justifyRight"))}),e.\u0275\u0275element(25,"i",24),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(26,"button",25),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("justifyFull"))}),e.\u0275\u0275element(27,"i",26),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(28,"div",2)(29,"button",27),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("indent"))}),e.\u0275\u0275element(30,"i",28),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(31,"button",29),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("outdent"))}),e.\u0275\u0275element(32,"i",30),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(33,"div",2)(34,"button",31),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("insertUnorderedList"))}),e.\u0275\u0275element(35,"i",32),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"button",33),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("insertOrderedList"))}),e.\u0275\u0275element(37,"i",34),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(38,"div",2)(39,"ae-select",35),e.\u0275\u0275listener("ngModelChange",function(N){e.\u0275\u0275restoreView(T);const pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(pe.block=N)})("change",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand(N.block))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(40,"div",2)(41,"ae-select",36),e.\u0275\u0275listener("ngModelChange",function(N){e.\u0275\u0275restoreView(T);const pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(pe.fontName=N)})("change",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.setFontName(N.fontName))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(42,"div",2)(43,"ae-select",37),e.\u0275\u0275listener("ngModelChange",function(N){e.\u0275\u0275restoreView(T);const pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(pe.fontSize=N)})("change",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.setFontSize(N.fontSize))}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(44,"div",2)(45,"input",38,39),e.\u0275\u0275listener("change",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275reference(46),pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(pe.insertColor(N.value,"textColor"))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(47,"button",40),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275reference(46);return e.\u0275\u0275nextContext().focus(),e.\u0275\u0275resetView(N.click())}),e.\u0275\u0275elementStart(48,"span",41),e.\u0275\u0275element(49,"i",42),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(50,"input",38,43),e.\u0275\u0275listener("change",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275reference(51),pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(pe.insertColor(N.value,"backgroundColor"))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(52,"button",44),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275reference(51);return e.\u0275\u0275nextContext().focus(),e.\u0275\u0275resetView(N.click())}),e.\u0275\u0275elementStart(53,"span",45),e.\u0275\u0275element(54,"i",42),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(55,v,2,4,"div",46),e.\u0275\u0275elementStart(56,"div",2)(57,"button",47),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.insertUrl())}),e.\u0275\u0275element(58,"i",48),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(59,"button",49),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("unlink"))}),e.\u0275\u0275element(60,"i",50),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(61,"input",51,52),e.\u0275\u0275listener("change",function(N){e.\u0275\u0275restoreView(T);const pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(pe.onFileChanged(N))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(63,"button",53),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275reference(62);return e.\u0275\u0275nextContext().focus(),e.\u0275\u0275resetView(N.click())}),e.\u0275\u0275element(64,"i",54),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(65,"button",55),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.insertVideo())}),e.\u0275\u0275element(66,"i",56),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(67,"button",57),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("insertHorizontalRule"))}),e.\u0275\u0275element(68,"i",58),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(69,"div",2)(70,"button",59),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("removeFormat"))}),e.\u0275\u0275element(71,"i",60),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(72,"div",2)(73,"button",61),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(T);const N=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(N.triggerCommand("toggleEditorMode"))}),e.\u0275\u0275element(74,"i",62),e.\u0275\u0275elementEnd()(),e.\u0275\u0275projection(75),e.\u0275\u0275elementEnd()}if(2&U){const T=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("hidden",T.isButtonHidden("undo")),e.\u0275\u0275advance(2),e.\u0275\u0275property("hidden",T.isButtonHidden("redo")),e.\u0275\u0275advance(3),e.\u0275\u0275property("id","bold-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("bold")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","italic-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("italic")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","underline-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("underline")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","strikeThrough-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("strikeThrough")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","subscript-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("subscript")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","superscript-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("superscript")),e.\u0275\u0275advance(3),e.\u0275\u0275property("id","justifyLeft-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("justifyLeft")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","justifyCenter-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("justifyCenter")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","justifyRight-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("justifyRight")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","justifyFull-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("justifyFull")),e.\u0275\u0275advance(3),e.\u0275\u0275property("id","indent-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("indent")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","outdent-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("outdent")),e.\u0275\u0275advance(3),e.\u0275\u0275property("id","insertUnorderedList-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("insertUnorderedList")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","insertOrderedList-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("insertOrderedList")),e.\u0275\u0275advance(3),e.\u0275\u0275property("options",T.headings)("ngModel",T.block)("disabled",T.htmlMode)("hidden",T.isButtonHidden("heading")),e.\u0275\u0275advance(2),e.\u0275\u0275property("options",T.fonts)("ngModel",T.fontName)("disabled",T.htmlMode)("hidden",T.isButtonHidden("fontName")),e.\u0275\u0275advance(2),e.\u0275\u0275property("options",T.fontSizes)("ngModel",T.fontSize)("disabled",T.htmlMode)("hidden",T.isButtonHidden("fontSize")),e.\u0275\u0275advance(4),e.\u0275\u0275property("id","foregroundColorPicker-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("textColor")),e.\u0275\u0275advance(5),e.\u0275\u0275property("id","backgroundColorPicker-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("backgroundColor")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",T._customClasses),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","link-"+T.id)("disabled",T.isLinkButtonDisabled)("hidden",T.isButtonHidden("link")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","unlink-"+T.id)("disabled",T.htmlMode||!T.linkSelected)("hidden",T.isButtonHidden("unlink")),e.\u0275\u0275advance(4),e.\u0275\u0275property("id","insertImage-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("insertImage")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","insertVideo-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("insertVideo")),e.\u0275\u0275advance(2),e.\u0275\u0275property("id","insertHorizontalRule-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("insertHorizontalRule")),e.\u0275\u0275advance(3),e.\u0275\u0275property("id","clearFormatting-"+T.id)("disabled",T.htmlMode)("hidden",T.isButtonHidden("removeFormat")),e.\u0275\u0275advance(3),e.\u0275\u0275property("id","toggleEditorMode-"+T.id)("hidden",T.isButtonHidden("toggleEditorMode"))}}const b=["*"],S=["customButtons"],E=["editor"],D=["editorWrapper"],A=["editorToolbar"],P=function(U){return{executeCommandFn:U}};function B(U,le){if(1&U){const T=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"angular-editor-toolbar",8,9),e.\u0275\u0275listener("execute",function(N){e.\u0275\u0275restoreView(T);const pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(pe.executeCommand(N))}),e.\u0275\u0275elementContainer(2,10),e.\u0275\u0275elementEnd()}if(2&U){const T=e.\u0275\u0275nextContext();e.\u0275\u0275property("id",T.id)("uploadUrl",T.config.uploadUrl)("upload",T.config.upload)("showToolbar",void 0===T.config.showToolbar||T.config.showToolbar)("fonts",T.getFonts())("customClasses",T.config.customClasses)("defaultFontName",T.config.defaultFontName)("defaultFontSize",T.config.defaultFontSize)("hiddenButtons",T.config.toolbarHiddenButtons),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngTemplateOutlet",T.customButtonsTemplateRef)("ngTemplateOutletContext",e.\u0275\u0275pureFunction1(11,P,T.executeCommandFn))}}function V(U,le){if(1&U){const T=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"angular-editor-toolbar",8,9),e.\u0275\u0275listener("execute",function(N){e.\u0275\u0275restoreView(T);const pe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(pe.executeCommand(N))}),e.\u0275\u0275elementEnd()}if(2&U){const T=e.\u0275\u0275nextContext();e.\u0275\u0275property("id",T.id)("uploadUrl",T.config.uploadUrl)("upload",T.config.upload)("showToolbar",void 0===T.config.showToolbar||T.config.showToolbar)("fonts",T.getFonts())("customClasses",T.config.customClasses)("defaultFontName",T.config.defaultFontName)("defaultFontSize",T.config.defaultFontSize)("hiddenButtons",T.config.toolbarHiddenButtons)}}let X=(()=>{class U{constructor(T,H){this.http=T,this.doc=H,this.saveSelection=()=>{if(this.doc.getSelection){const N=this.doc.getSelection();N.getRangeAt&&N.rangeCount&&(this.savedSelection=N.getRangeAt(0),this.selectedText=N.toString())}else this.savedSelection=this.doc.getSelection&&this.doc.createRange?document.createRange():null}}executeCommand(T,H){["h1","h2","h3","h4","h5","h6","p","pre"].includes(T)?this.doc.execCommand("formatBlock",!1,T):this.doc.execCommand(T,!1,H)}createLink(T){T.includes("http")?this.insertHtml('<a href="'+T+'" target="_blank">'+this.selectedText+"</a>"):this.doc.execCommand("createlink",!1,T)}insertColor(T,H){this.restoreSelection()&&this.doc.execCommand("textColor"===H?"foreColor":"hiliteColor",!1,T)}setFontName(T){this.doc.execCommand("fontName",!1,T)}setFontSize(T){this.doc.execCommand("fontSize",!1,T)}insertHtml(T){if(!this.doc.execCommand("insertHTML",!1,T))throw new Error("Unable to perform the operation")}restoreSelection(){if(!this.savedSelection)return!1;if(this.doc.getSelection){const T=this.doc.getSelection();return T.removeAllRanges(),T.addRange(this.savedSelection),!0}return!!this.doc.getSelection||void 0}executeInNextQueueIteration(T,H=100){setTimeout(T,H)}checkSelection(){if(0===this.savedSelection.toString().length)throw new Error("No Selection Made");return!0}uploadImage(T){const H=new FormData;return H.append("file",T,T.name),this.http.post(this.uploadUrl,H,{reportProgress:!0,observe:"events",withCredentials:this.uploadWithCredentials})}insertImage(T){this.doc.execCommand("insertImage",!1,T)}setDefaultParagraphSeparator(T){this.doc.execCommand("defaultParagraphSeparator",!1,T)}createCustomClass(T){let H=this.selectedText;if(T){const N=T.tag?T.tag:"span";H="<"+N+' class="'+T.class+'">'+this.selectedText+"</"+N+">"}this.insertHtml(H)}insertVideo(T){T.match("www.youtube.com")&&this.insertYouTubeVideoTag(T),T.match("vimeo.com")&&this.insertVimeoVideoTag(T)}insertYouTubeVideoTag(T){const N=`https://img.youtube.com/vi/${T.split("v=")[1]}/0.jpg`;this.insertHtml(`\n      <div style='position: relative'>\n        <a href='${T}' target='_blank'>\n          <img src="${N}" alt="click to watch"/>\n          <img style='position: absolute; left:200px; top:140px'\n          src="https://img.icons8.com/color/96/000000/youtube-play.png"/>\n        </a>\n      </div>`)}insertVimeoVideoTag(T){const H=this.http.get(`https://vimeo.com/api/oembed.json?url=${T}`).subscribe(N=>{this.insertHtml(`<div>\n        <a href='${T}' target='_blank'>\n          <img src="${N.thumbnail_url_with_play_button}" alt="${N.title}"/>\n        </a>\n      </div>`),H.unsubscribe()})}nextNode(T){if(T.hasChildNodes())return T.firstChild;for(;T&&!T.nextSibling;)T=T.parentNode;return T?T.nextSibling:null}getRangeSelectedNodes(T,H){let N=T.startContainer;const pe=T.endContainer;let de=[];if(N===pe)de=[N];else{for(;N&&N!==pe;)de.push(N=this.nextNode(N));for(N=T.startContainer;N&&N!==T.commonAncestorContainer;)de.unshift(N),N=N.parentNode}if(H)for(N=T.commonAncestorContainer;N;)de.push(N),N=N.parentNode;return de}getSelectedNodes(){const T=[];if(this.doc.getSelection){const H=this.doc.getSelection();for(let N=0,pe=H.rangeCount;N<pe;++N)T.push.apply(T,this.getRangeSelectedNodes(H.getRangeAt(N),!0))}return T}replaceWithOwnChildren(T){const H=T.parentNode;for(;T.hasChildNodes();)H.insertBefore(T.firstChild,T);H.removeChild(T)}removeSelectedElements(T){const H=T.toLowerCase().split(",");this.getSelectedNodes().forEach(N=>{1===N.nodeType&&H.indexOf(N.tagName.toLowerCase())>-1&&this.replaceWithOwnChildren(N)})}}return U.\u0275fac=function(T){return new(T||U)(e.\u0275\u0275inject(a.eN),e.\u0275\u0275inject(n.DOCUMENT))},U.\u0275prov=e.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();const re={editable:!0,spellcheck:!0,height:"auto",minHeight:"0",maxHeight:"auto",width:"auto",minWidth:"0",translate:"yes",enableToolbar:!0,showToolbar:!0,placeholder:"Enter text here...",defaultParagraphSeparator:"",defaultFontName:"",defaultFontSize:"",fonts:[{class:"arial",name:"Arial"},{class:"times-new-roman",name:"Times New Roman"},{class:"calibri",name:"Calibri"},{class:"comic-sans-ms",name:"Comic Sans MS"}],uploadUrl:"v1/image",uploadWithCredentials:!1,sanitize:!0,toolbarPosition:"top",outline:!0};function Q(U){return null!=U}let ae=(()=>{class U{constructor(T,H){this.elRef=T,this.r=H,this.options=[],this.disabled=!1,this.optionId=0,this.opened=!1,this.hidden="inline-block",this.changeEvent=new e.EventEmitter,this.onChange=()=>{},this.onTouched=()=>{}}get label(){return this.selectedOption&&this.selectedOption.hasOwnProperty("label")?this.selectedOption.label:"Select"}get value(){return this.selectedOption.value}ngOnInit(){this.selectedOption=this.options[0],Q(this.isHidden)&&this.isHidden&&this.hide()}hide(){this.hidden="none"}optionSelect(T,H){H.stopPropagation(),this.setValue(T.value),this.onChange(this.selectedOption.value),this.changeEvent.emit(this.selectedOption.value),this.onTouched(),this.opened=!1}toggleOpen(T){this.disabled||(this.opened=!this.opened)}onClick(T){this.elRef.nativeElement.contains(T.target)||this.close()}close(){this.opened=!1}get isOpen(){return this.opened}writeValue(T){!T||"string"!=typeof T||this.setValue(T)}setValue(T){let H=0;const N=this.options.find((pe,de)=>(H=de,pe.value===T));N&&(this.selectedOption=N,this.optionId=H)}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.labelButton.nativeElement.disabled=T,this.r[T?"addClass":"removeClass"](this.labelButton.nativeElement,"disabled"),this.disabled=T}handleKeyDown(T){if(this.opened)switch(T.key){case"ArrowDown":this._handleArrowDown(T);break;case"ArrowUp":this._handleArrowUp(T);break;case"Space":this._handleSpace(T);break;case"Enter":this._handleEnter(T);break;case"Tab":this._handleTab(T);break;case"Escape":this.close(),T.preventDefault();break;case"Backspace":this._handleBackspace()}}_handleArrowDown(T){this.optionId<this.options.length-1&&this.optionId++}_handleArrowUp(T){this.optionId>=1&&this.optionId--}_handleSpace(T){}_handleEnter(T){this.optionSelect(this.options[this.optionId],T)}_handleTab(T){}_handleBackspace(){}}return U.\u0275fac=function(T){return new(T||U)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.Renderer2))},U.\u0275cmp=e.\u0275\u0275defineComponent({type:U,selectors:[["ae-select"]],viewQuery:function(T,H){if(1&T&&e.\u0275\u0275viewQuery(h,7),2&T){let N;e.\u0275\u0275queryRefresh(N=e.\u0275\u0275loadQuery())&&(H.labelButton=N.first)}},hostVars:2,hostBindings:function(T,H){1&T&&e.\u0275\u0275listener("click",function(pe){return H.onClick(pe)},!1,e.\u0275\u0275resolveDocument)("keydown",function(pe){return H.handleKeyDown(pe)}),2&T&&e.\u0275\u0275styleProp("display",H.hidden)},inputs:{options:"options",isHidden:["hidden","isHidden"]},outputs:{changeEvent:"change"},features:[e.\u0275\u0275ProvidersFeature([{provide:t.JU,useExisting:(0,e.forwardRef)(()=>U),multi:!0}])],decls:10,vars:7,consts:[[1,"ae-font","ae-picker",3,"ngClass"],["tabindex","0","type","button","role","button",1,"ae-picker-label",3,"tabIndex","click"],["labelButton",""],["viewBox","0 0 18 18"],["points","7 11 9 13 11 11 7 11",1,"ae-stroke"],["points","7 7 9 5 11 7 7 7",1,"ae-stroke"],[1,"ae-picker-options"],["tabindex","-1","type","button","role","button","class","ae-picker-item",3,"ngClass","click",4,"ngFor","ngForOf"],["class","dropdown-item",4,"ngIf"],["tabindex","-1","type","button","role","button",1,"ae-picker-item",3,"ngClass","click"],[1,"dropdown-item"]],template:function(T,H){1&T&&(e.\u0275\u0275elementStart(0,"span",0)(1,"button",1,2),e.\u0275\u0275listener("click",function(pe){return H.toggleOpen(pe)}),e.\u0275\u0275text(3),e.\u0275\u0275namespaceSVG(),e.\u0275\u0275elementStart(4,"svg",3),e.\u0275\u0275element(5,"polygon",4)(6,"polygon",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275namespaceHTML(),e.\u0275\u0275elementStart(7,"span",6),e.\u0275\u0275template(8,d,2,5,"button",7),e.\u0275\u0275template(9,p,2,0,"span",8),e.\u0275\u0275elementEnd()()),2&T&&(e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,u,H.isOpen)),e.\u0275\u0275advance(1),e.\u0275\u0275property("tabIndex",-1),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",H.label," "),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngForOf",H.options),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!H.options.length))},dependencies:[n.NgClass,n.NgForOf,n.NgIf],styles:['.ae-font.ae-picker{color:#444;display:inline-block;float:left;width:100%;position:relative;vertical-align:middle}.ae-font .ae-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:10px;position:relative;width:100%;line-height:26px;vertical-align:middle;font-size:85%;text-align:left;background-color:#fff;min-width:2rem;float:left;border:1px solid #ddd;text-overflow:clip;overflow:hidden;white-space:nowrap}.ae-font .ae-picker-label:before{content:"";position:absolute;right:0;top:0;width:20px;height:100%;background:linear-gradient(to right,rgb(255,255,255),#ffffff 100%)}.ae-font .ae-picker-label:focus{outline:none}.ae-font .ae-picker-label:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.ae-font .ae-picker-label:hover:before{background:linear-gradient(to right,#f5f5f5 100%,#ffffff 100%)}.ae-font .ae-picker-label:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.ae-font .ae-picker-label:disabled:before{background:linear-gradient(to right,#f5f5f5 100%,#ffffff 100%)}.ae-font .ae-picker-label svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ae-font .ae-picker-label svg:not(:root){overflow:hidden}.ae-font .ae-picker-label svg .ae-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ae-font .ae-picker-options{background-color:#fff;display:none;min-width:100%;position:absolute;white-space:nowrap;z-index:3;border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ae-font .ae-picker-options .ae-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px;padding-left:5px;z-index:3;text-align:left;background-color:transparent;min-width:2rem;width:100%;border:0 solid #ddd}.ae-font .ae-picker-options .ae-picker-item.selected{color:#06c;background-color:#fff4c2}.ae-font .ae-picker-options .ae-picker-item.focused,.ae-font .ae-picker-options .ae-picker-item:hover{background-color:#fffa98}.ae-font.ae-expanded{display:block;margin-top:-1px;z-index:1}.ae-font.ae-expanded .ae-picker-label{color:#ccc;z-index:2}.ae-font.ae-expanded .ae-picker-label svg{color:#ccc;z-index:2}.ae-font.ae-expanded .ae-picker-label svg .ae-stroke{stroke:#ccc}.ae-font.ae-expanded .ae-picker-options{display:block;margin-top:-1px;top:100%;z-index:3;border-color:#ccc}\n'],encapsulation:2}),U})(),K=(()=>{class U{constructor(T,H,N,pe){this.r=T,this.editorService=H,this.er=N,this.doc=pe,this.htmlMode=!1,this.linkSelected=!1,this.block="default",this.fontName="Times New Roman",this.fontSize="3",this.headings=[{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"},{label:"Heading 4",value:"h4"},{label:"Heading 5",value:"h5"},{label:"Heading 6",value:"h6"},{label:"Heading 7",value:"h7"},{label:"Paragraph",value:"p"},{label:"Predefined",value:"pre"},{label:"Standard",value:"div"},{label:"default",value:"default"}],this.fontSizes=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"}],this.customClassId="-1",this.customClassList=[{label:"",value:""}],this.tagMap={BLOCKQUOTE:"indent",A:"link"},this.select=["H1","H2","H3","H4","H5","H6","P","PRE","DIV"],this.buttons=["bold","italic","underline","strikeThrough","subscript","superscript","justifyLeft","justifyCenter","justifyRight","justifyFull","indent","outdent","insertUnorderedList","insertOrderedList","link"],this.fonts=[{label:"",value:""}],this.execute=new e.EventEmitter}set customClasses(T){T&&(this._customClasses=T,this.customClassList=this._customClasses.map((H,N)=>({label:H.name,value:N.toString()})),this.customClassList.unshift({label:"Clear Class",value:"-1"}))}set defaultFontName(T){T&&(this.fontName=T)}set defaultFontSize(T){T&&(this.fontSize=T)}get isLinkButtonDisabled(){return this.htmlMode||!Boolean(this.editorService.selectedText)}triggerCommand(T){this.execute.emit(T)}triggerButtons(){this.showToolbar&&this.buttons.forEach(T=>{const H=this.doc.queryCommandState(T),N=this.doc.getElementById(T+"-"+this.id);H?this.r.addClass(N,"active"):this.r.removeClass(N,"active")})}triggerBlocks(T){if(!this.showToolbar)return;this.linkSelected=T.findIndex(N=>"A"===N.nodeName)>-1;let H=!1;this.select.forEach(N=>{const pe=T.find(de=>de.nodeName===N);void 0!==pe&&N===pe.nodeName?!1===H&&(this.block=pe.nodeName.toLowerCase(),H=!0):!1===H&&(this.block="default")}),H=!1,this._customClasses&&this._customClasses.forEach((N,pe)=>{void 0!==T.find(me=>{if(me instanceof Element)return me.className===N.class})?!1===H&&(this.customClassId=pe.toString(),H=!0):!1===H&&(this.customClassId="-1")}),Object.keys(this.tagMap).map(N=>{const pe=this.doc.getElementById(this.tagMap[N]+"-"+this.id),de=T.find(me=>me.nodeName===N);void 0!==de&&N===de.nodeName?this.r.addClass(pe,"active"):this.r.removeClass(pe,"active")}),this.foreColour=this.doc.queryCommandValue("ForeColor"),this.fontSize=this.doc.queryCommandValue("FontSize"),this.fontName=this.doc.queryCommandValue("FontName").replace(/"/g,""),this.backColor=this.doc.queryCommandValue("backColor")}insertUrl(){let T="https://";const H=this.editorService.savedSelection;if(H&&"A"===H.commonAncestorContainer.parentElement.nodeName){const N=H.commonAncestorContainer.parentElement;""!==N.href&&(T=N.href)}T=prompt("Insert URL link",T),T&&""!==T&&"https://"!==T&&this.editorService.createLink(T)}insertVideo(){this.execute.emit("");const T=prompt("Insert Video link","https://");T&&""!==T&&"https://"!==T&&this.editorService.insertVideo(T)}insertColor(T,H){this.editorService.insertColor(T,H),this.execute.emit("")}setFontName(T){this.editorService.setFontName(T),this.execute.emit("")}setFontSize(T){this.editorService.setFontSize(T),this.execute.emit("")}setEditorMode(T){const H=this.doc.getElementById("toggleEditorMode-"+this.id);T?this.r.addClass(H,"active"):this.r.removeClass(H,"active"),this.htmlMode=T}onFileChanged(T){const H=T.target.files[0];if(H.type.includes("image/"))if(this.upload)this.upload(H).subscribe(N=>this.watchUploadImage(N,T));else if(this.uploadUrl)this.editorService.uploadImage(H).subscribe(N=>this.watchUploadImage(N,T));else{const N=new FileReader;N.onload=pe=>{this.editorService.insertImage(pe.currentTarget.result.toString())},N.readAsDataURL(H)}}watchUploadImage(T,H){const{imageUrl:N}=T.body;this.editorService.insertImage(N),H.srcElement.value=null}setCustomClass(T){"-1"===T?this.execute.emit("clear"):this.editorService.createCustomClass(this._customClasses[+T])}isButtonHidden(T){if(!(T&&this.hiddenButtons instanceof Array))return!1;let H;for(const N of this.hiddenButtons)if(N instanceof Array&&(H=N.find(pe=>pe===T)),H)break;return void 0!==H}focus(){this.execute.emit("focus"),console.log("focused")}}return U.\u0275fac=function(T){return new(T||U)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(X),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(n.DOCUMENT))},U.\u0275cmp=e.\u0275\u0275defineComponent({type:U,selectors:[["angular-editor-toolbar"]],viewQuery:function(T,H){if(1&T&&e.\u0275\u0275viewQuery(g,7),2&T){let N;e.\u0275\u0275queryRefresh(N=e.\u0275\u0275loadQuery())&&(H.myInputFile=N.first)}},inputs:{id:"id",uploadUrl:"uploadUrl",upload:"upload",showToolbar:"showToolbar",fonts:"fonts",customClasses:"customClasses",defaultFontName:"defaultFontName",defaultFontSize:"defaultFontSize",hiddenButtons:"hiddenButtons"},outputs:{execute:"execute"},ngContentSelectors:b,decls:1,vars:1,consts:[["class","angular-editor-toolbar",4,"ngIf"],[1,"angular-editor-toolbar"],[1,"angular-editor-toolbar-set"],["type","button","title","Undo","tabindex","-1",1,"angular-editor-button",3,"hidden","click"],[1,"fa","fa-undo"],["type","button","title","Redo","tabindex","-1",1,"angular-editor-button",3,"hidden","click"],[1,"fa","fa-repeat"],["type","button","title","Bold","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-bold"],["type","button","title","Italic","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-italic"],["type","button","title","Underline","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-underline"],["type","button","title","Strikethrough","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-strikethrough"],["type","button","title","Subscript","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-subscript"],["type","button","title","Superscript","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-superscript"],["type","button","title","Justify Left","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-align-left"],["type","button","title","Justify Center","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-align-center"],["type","button","title","Justify Right","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-align-right"],["type","button","title","Justify Full","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-align-justify"],["type","button","title","Indent","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-indent"],["type","button","title","Outdent","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-outdent"],["type","button","title","Unordered List","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-list-ul"],["type","button","title","Ordered List","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-list-ol"],["tabindex","-1",1,"select-heading",3,"options","ngModel","disabled","hidden","ngModelChange","change"],["tabindex","-1",1,"select-font",3,"options","ngModel","disabled","hidden","ngModelChange","change"],["tabindex","-1",1,"select-font-size",3,"options","ngModel","disabled","hidden","ngModelChange","change"],["type","color",2,"display","none",3,"change"],["fgInput",""],["type","button","title","Text Color","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"color-label","foreground"],[1,"fa","fa-font"],["bgInput",""],["type","button","title","Background Color","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"color-label","background"],["class","angular-editor-toolbar-set",4,"ngIf"],["type","button","title","Insert Link","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-link"],["type","button","title","Unlink","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-chain-broken"],["accept","image/*","type","file",2,"display","none",3,"change"],["fileInput",""],["type","button","title","Insert Image","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-image"],["type","button","title","Insert Video","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-video-camera"],["type","button","title","Horizontal Line","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-minus"],["type","button","title","Clear Formatting","tabindex","-1",1,"angular-editor-button",3,"id","disabled","hidden","click"],[1,"fa","fa-remove"],["type","button","title","HTML Code","tabindex","-1",1,"angular-editor-button",3,"id","hidden","click"],[1,"fa","fa-code"],["tabindex","-1",1,"select-custom-style",3,"options","ngModel","disabled","hidden","ngModelChange","change"]],template:function(T,H){1&T&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275template(0,y,76,83,"div",0)),2&T&&e.\u0275\u0275property("ngIf",H.showToolbar)},dependencies:[ae,n.NgIf,t.JJ,t.On],styles:['@font-face{font-family:FontAwesome;src:url(/assets/fonts/fontawesome-webfont.eot?v=4.7.0);src:url(/assets/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format("embedded-opentype"),url(/assets/fonts/fontawesome-webfont.woff2?v=4.7.0) format("woff2"),url(/assets/fonts/fontawesome-webfont.woff?v=4.7.0) format("woff"),url(/assets/fonts/fontawesome-webfont.ttf?v=4.7.0) format("truetype"),url(/assets/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa[_ngcontent-%COMP%]{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg[_ngcontent-%COMP%]{font-size:1.3333333333em;line-height:.75em;vertical-align:-15%}.fa-2x[_ngcontent-%COMP%]{font-size:2em}.fa-3x[_ngcontent-%COMP%]{font-size:3em}.fa-4x[_ngcontent-%COMP%]{font-size:4em}.fa-5x[_ngcontent-%COMP%]{font-size:5em}.fa-fw[_ngcontent-%COMP%]{width:1.2857142857em;text-align:center}.fa-ul[_ngcontent-%COMP%]{padding-left:0;margin-left:2.1428571429em;list-style-type:none}.fa-ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative}.fa-li[_ngcontent-%COMP%]{position:absolute;left:-2.1428571429em;width:2.1428571429em;top:.1428571429em;text-align:center}.fa-li.fa-lg[_ngcontent-%COMP%]{left:-1.8571428571em}.fa-border[_ngcontent-%COMP%]{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left[_ngcontent-%COMP%]{float:left}.fa-pull-right[_ngcontent-%COMP%]{float:right}.fa.fa-pull-left[_ngcontent-%COMP%]{margin-right:.3em}.fa.fa-pull-right[_ngcontent-%COMP%]{margin-left:.3em}.pull-right[_ngcontent-%COMP%]{float:right}.pull-left[_ngcontent-%COMP%]{float:left}.fa.pull-left[_ngcontent-%COMP%]{margin-right:.3em}.fa.pull-right[_ngcontent-%COMP%]{margin-left:.3em}.fa-spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fa-spin 2s infinite linear}.fa-pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fa-spin 1s infinite steps(8)}@keyframes _ngcontent-%COMP%_fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.fa-rotate-90[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";transform:scaleY(-1)}[_ngcontent-%COMP%]:root   .fa-rotate-90[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root   .fa-rotate-180[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root   .fa-rotate-270[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root   .fa-flip-horizontal[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root   .fa-flip-vertical[_ngcontent-%COMP%]{filter:none}.fa-stack[_ngcontent-%COMP%]{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x[_ngcontent-%COMP%], .fa-stack-2x[_ngcontent-%COMP%]{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x[_ngcontent-%COMP%]{line-height:inherit}.fa-stack-2x[_ngcontent-%COMP%]{font-size:2em}.fa-inverse[_ngcontent-%COMP%]{color:#fff}.fa-glass[_ngcontent-%COMP%]:before{content:"\\f000"}.fa-music[_ngcontent-%COMP%]:before{content:"\\f001"}.fa-search[_ngcontent-%COMP%]:before{content:"\\f002"}.fa-envelope-o[_ngcontent-%COMP%]:before{content:"\\f003"}.fa-heart[_ngcontent-%COMP%]:before{content:"\\f004"}.fa-star[_ngcontent-%COMP%]:before{content:"\\f005"}.fa-star-o[_ngcontent-%COMP%]:before{content:"\\f006"}.fa-user[_ngcontent-%COMP%]:before{content:"\\f007"}.fa-film[_ngcontent-%COMP%]:before{content:"\\f008"}.fa-th-large[_ngcontent-%COMP%]:before{content:"\\f009"}.fa-th[_ngcontent-%COMP%]:before{content:"\\f00a"}.fa-th-list[_ngcontent-%COMP%]:before{content:"\\f00b"}.fa-check[_ngcontent-%COMP%]:before{content:"\\f00c"}.fa-remove[_ngcontent-%COMP%]:before, .fa-close[_ngcontent-%COMP%]:before, .fa-times[_ngcontent-%COMP%]:before{content:"\\f00d"}.fa-search-plus[_ngcontent-%COMP%]:before{content:"\\f00e"}.fa-search-minus[_ngcontent-%COMP%]:before{content:"\\f010"}.fa-power-off[_ngcontent-%COMP%]:before{content:"\\f011"}.fa-signal[_ngcontent-%COMP%]:before{content:"\\f012"}.fa-gear[_ngcontent-%COMP%]:before, .fa-cog[_ngcontent-%COMP%]:before{content:"\\f013"}.fa-trash-o[_ngcontent-%COMP%]:before{content:"\\f014"}.fa-home[_ngcontent-%COMP%]:before{content:"\\f015"}.fa-file-o[_ngcontent-%COMP%]:before{content:"\\f016"}.fa-clock-o[_ngcontent-%COMP%]:before{content:"\\f017"}.fa-road[_ngcontent-%COMP%]:before{content:"\\f018"}.fa-download[_ngcontent-%COMP%]:before{content:"\\f019"}.fa-arrow-circle-o-down[_ngcontent-%COMP%]:before{content:"\\f01a"}.fa-arrow-circle-o-up[_ngcontent-%COMP%]:before{content:"\\f01b"}.fa-inbox[_ngcontent-%COMP%]:before{content:"\\f01c"}.fa-play-circle-o[_ngcontent-%COMP%]:before{content:"\\f01d"}.fa-rotate-right[_ngcontent-%COMP%]:before, .fa-repeat[_ngcontent-%COMP%]:before{content:"\\f01e"}.fa-refresh[_ngcontent-%COMP%]:before{content:"\\f021"}.fa-list-alt[_ngcontent-%COMP%]:before{content:"\\f022"}.fa-lock[_ngcontent-%COMP%]:before{content:"\\f023"}.fa-flag[_ngcontent-%COMP%]:before{content:"\\f024"}.fa-headphones[_ngcontent-%COMP%]:before{content:"\\f025"}.fa-volume-off[_ngcontent-%COMP%]:before{content:"\\f026"}.fa-volume-down[_ngcontent-%COMP%]:before{content:"\\f027"}.fa-volume-up[_ngcontent-%COMP%]:before{content:"\\f028"}.fa-qrcode[_ngcontent-%COMP%]:before{content:"\\f029"}.fa-barcode[_ngcontent-%COMP%]:before{content:"\\f02a"}.fa-tag[_ngcontent-%COMP%]:before{content:"\\f02b"}.fa-tags[_ngcontent-%COMP%]:before{content:"\\f02c"}.fa-book[_ngcontent-%COMP%]:before{content:"\\f02d"}.fa-bookmark[_ngcontent-%COMP%]:before{content:"\\f02e"}.fa-print[_ngcontent-%COMP%]:before{content:"\\f02f"}.fa-camera[_ngcontent-%COMP%]:before{content:"\\f030"}.fa-font[_ngcontent-%COMP%]:before{content:"\\f031"}.fa-bold[_ngcontent-%COMP%]:before{content:"\\f032"}.fa-italic[_ngcontent-%COMP%]:before{content:"\\f033"}.fa-text-height[_ngcontent-%COMP%]:before{content:"\\f034"}.fa-text-width[_ngcontent-%COMP%]:before{content:"\\f035"}.fa-align-left[_ngcontent-%COMP%]:before{content:"\\f036"}.fa-align-center[_ngcontent-%COMP%]:before{content:"\\f037"}.fa-align-right[_ngcontent-%COMP%]:before{content:"\\f038"}.fa-align-justify[_ngcontent-%COMP%]:before{content:"\\f039"}.fa-list[_ngcontent-%COMP%]:before{content:"\\f03a"}.fa-dedent[_ngcontent-%COMP%]:before, .fa-outdent[_ngcontent-%COMP%]:before{content:"\\f03b"}.fa-indent[_ngcontent-%COMP%]:before{content:"\\f03c"}.fa-video-camera[_ngcontent-%COMP%]:before{content:"\\f03d"}.fa-photo[_ngcontent-%COMP%]:before, .fa-image[_ngcontent-%COMP%]:before, .fa-picture-o[_ngcontent-%COMP%]:before{content:"\\f03e"}.fa-pencil[_ngcontent-%COMP%]:before{content:"\\f040"}.fa-map-marker[_ngcontent-%COMP%]:before{content:"\\f041"}.fa-adjust[_ngcontent-%COMP%]:before{content:"\\f042"}.fa-tint[_ngcontent-%COMP%]:before{content:"\\f043"}.fa-edit[_ngcontent-%COMP%]:before, .fa-pencil-square-o[_ngcontent-%COMP%]:before{content:"\\f044"}.fa-share-square-o[_ngcontent-%COMP%]:before{content:"\\f045"}.fa-check-square-o[_ngcontent-%COMP%]:before{content:"\\f046"}.fa-arrows[_ngcontent-%COMP%]:before{content:"\\f047"}.fa-step-backward[_ngcontent-%COMP%]:before{content:"\\f048"}.fa-fast-backward[_ngcontent-%COMP%]:before{content:"\\f049"}.fa-backward[_ngcontent-%COMP%]:before{content:"\\f04a"}.fa-play[_ngcontent-%COMP%]:before{content:"\\f04b"}.fa-pause[_ngcontent-%COMP%]:before{content:"\\f04c"}.fa-stop[_ngcontent-%COMP%]:before{content:"\\f04d"}.fa-forward[_ngcontent-%COMP%]:before{content:"\\f04e"}.fa-fast-forward[_ngcontent-%COMP%]:before{content:"\\f050"}.fa-step-forward[_ngcontent-%COMP%]:before{content:"\\f051"}.fa-eject[_ngcontent-%COMP%]:before{content:"\\f052"}.fa-chevron-left[_ngcontent-%COMP%]:before{content:"\\f053"}.fa-chevron-right[_ngcontent-%COMP%]:before{content:"\\f054"}.fa-plus-circle[_ngcontent-%COMP%]:before{content:"\\f055"}.fa-minus-circle[_ngcontent-%COMP%]:before{content:"\\f056"}.fa-times-circle[_ngcontent-%COMP%]:before{content:"\\f057"}.fa-check-circle[_ngcontent-%COMP%]:before{content:"\\f058"}.fa-question-circle[_ngcontent-%COMP%]:before{content:"\\f059"}.fa-info-circle[_ngcontent-%COMP%]:before{content:"\\f05a"}.fa-crosshairs[_ngcontent-%COMP%]:before{content:"\\f05b"}.fa-times-circle-o[_ngcontent-%COMP%]:before{content:"\\f05c"}.fa-check-circle-o[_ngcontent-%COMP%]:before{content:"\\f05d"}.fa-ban[_ngcontent-%COMP%]:before{content:"\\f05e"}.fa-arrow-left[_ngcontent-%COMP%]:before{content:"\\f060"}.fa-arrow-right[_ngcontent-%COMP%]:before{content:"\\f061"}.fa-arrow-up[_ngcontent-%COMP%]:before{content:"\\f062"}.fa-arrow-down[_ngcontent-%COMP%]:before{content:"\\f063"}.fa-mail-forward[_ngcontent-%COMP%]:before, .fa-share[_ngcontent-%COMP%]:before{content:"\\f064"}.fa-expand[_ngcontent-%COMP%]:before{content:"\\f065"}.fa-compress[_ngcontent-%COMP%]:before{content:"\\f066"}.fa-plus[_ngcontent-%COMP%]:before{content:"\\f067"}.fa-minus[_ngcontent-%COMP%]:before{content:"\\f068"}.fa-asterisk[_ngcontent-%COMP%]:before{content:"\\f069"}.fa-exclamation-circle[_ngcontent-%COMP%]:before{content:"\\f06a"}.fa-gift[_ngcontent-%COMP%]:before{content:"\\f06b"}.fa-leaf[_ngcontent-%COMP%]:before{content:"\\f06c"}.fa-fire[_ngcontent-%COMP%]:before{content:"\\f06d"}.fa-eye[_ngcontent-%COMP%]:before{content:"\\f06e"}.fa-eye-slash[_ngcontent-%COMP%]:before{content:"\\f070"}.fa-warning[_ngcontent-%COMP%]:before, .fa-exclamation-triangle[_ngcontent-%COMP%]:before{content:"\\f071"}.fa-plane[_ngcontent-%COMP%]:before{content:"\\f072"}.fa-calendar[_ngcontent-%COMP%]:before{content:"\\f073"}.fa-random[_ngcontent-%COMP%]:before{content:"\\f074"}.fa-comment[_ngcontent-%COMP%]:before{content:"\\f075"}.fa-magnet[_ngcontent-%COMP%]:before{content:"\\f076"}.fa-chevron-up[_ngcontent-%COMP%]:before{content:"\\f077"}.fa-chevron-down[_ngcontent-%COMP%]:before{content:"\\f078"}.fa-retweet[_ngcontent-%COMP%]:before{content:"\\f079"}.fa-shopping-cart[_ngcontent-%COMP%]:before{content:"\\f07a"}.fa-folder[_ngcontent-%COMP%]:before{content:"\\f07b"}.fa-folder-open[_ngcontent-%COMP%]:before{content:"\\f07c"}.fa-arrows-v[_ngcontent-%COMP%]:before{content:"\\f07d"}.fa-arrows-h[_ngcontent-%COMP%]:before{content:"\\f07e"}.fa-bar-chart-o[_ngcontent-%COMP%]:before, .fa-bar-chart[_ngcontent-%COMP%]:before{content:"\\f080"}.fa-twitter-square[_ngcontent-%COMP%]:before{content:"\\f081"}.fa-facebook-square[_ngcontent-%COMP%]:before{content:"\\f082"}.fa-camera-retro[_ngcontent-%COMP%]:before{content:"\\f083"}.fa-key[_ngcontent-%COMP%]:before{content:"\\f084"}.fa-gears[_ngcontent-%COMP%]:before, .fa-cogs[_ngcontent-%COMP%]:before{content:"\\f085"}.fa-comments[_ngcontent-%COMP%]:before{content:"\\f086"}.fa-thumbs-o-up[_ngcontent-%COMP%]:before{content:"\\f087"}.fa-thumbs-o-down[_ngcontent-%COMP%]:before{content:"\\f088"}.fa-star-half[_ngcontent-%COMP%]:before{content:"\\f089"}.fa-heart-o[_ngcontent-%COMP%]:before{content:"\\f08a"}.fa-sign-out[_ngcontent-%COMP%]:before{content:"\\f08b"}.fa-linkedin-square[_ngcontent-%COMP%]:before{content:"\\f08c"}.fa-thumb-tack[_ngcontent-%COMP%]:before{content:"\\f08d"}.fa-external-link[_ngcontent-%COMP%]:before{content:"\\f08e"}.fa-sign-in[_ngcontent-%COMP%]:before{content:"\\f090"}.fa-trophy[_ngcontent-%COMP%]:before{content:"\\f091"}.fa-github-square[_ngcontent-%COMP%]:before{content:"\\f092"}.fa-upload[_ngcontent-%COMP%]:before{content:"\\f093"}.fa-lemon-o[_ngcontent-%COMP%]:before{content:"\\f094"}.fa-phone[_ngcontent-%COMP%]:before{content:"\\f095"}.fa-square-o[_ngcontent-%COMP%]:before{content:"\\f096"}.fa-bookmark-o[_ngcontent-%COMP%]:before{content:"\\f097"}.fa-phone-square[_ngcontent-%COMP%]:before{content:"\\f098"}.fa-twitter[_ngcontent-%COMP%]:before{content:"\\f099"}.fa-facebook-f[_ngcontent-%COMP%]:before, .fa-facebook[_ngcontent-%COMP%]:before{content:"\\f09a"}.fa-github[_ngcontent-%COMP%]:before{content:"\\f09b"}.fa-unlock[_ngcontent-%COMP%]:before{content:"\\f09c"}.fa-credit-card[_ngcontent-%COMP%]:before{content:"\\f09d"}.fa-feed[_ngcontent-%COMP%]:before, .fa-rss[_ngcontent-%COMP%]:before{content:"\\f09e"}.fa-hdd-o[_ngcontent-%COMP%]:before{content:"\\f0a0"}.fa-bullhorn[_ngcontent-%COMP%]:before{content:"\\f0a1"}.fa-bell[_ngcontent-%COMP%]:before{content:"\\f0f3"}.fa-certificate[_ngcontent-%COMP%]:before{content:"\\f0a3"}.fa-hand-o-right[_ngcontent-%COMP%]:before{content:"\\f0a4"}.fa-hand-o-left[_ngcontent-%COMP%]:before{content:"\\f0a5"}.fa-hand-o-up[_ngcontent-%COMP%]:before{content:"\\f0a6"}.fa-hand-o-down[_ngcontent-%COMP%]:before{content:"\\f0a7"}.fa-arrow-circle-left[_ngcontent-%COMP%]:before{content:"\\f0a8"}.fa-arrow-circle-right[_ngcontent-%COMP%]:before{content:"\\f0a9"}.fa-arrow-circle-up[_ngcontent-%COMP%]:before{content:"\\f0aa"}.fa-arrow-circle-down[_ngcontent-%COMP%]:before{content:"\\f0ab"}.fa-globe[_ngcontent-%COMP%]:before{content:"\\f0ac"}.fa-wrench[_ngcontent-%COMP%]:before{content:"\\f0ad"}.fa-tasks[_ngcontent-%COMP%]:before{content:"\\f0ae"}.fa-filter[_ngcontent-%COMP%]:before{content:"\\f0b0"}.fa-briefcase[_ngcontent-%COMP%]:before{content:"\\f0b1"}.fa-arrows-alt[_ngcontent-%COMP%]:before{content:"\\f0b2"}.fa-group[_ngcontent-%COMP%]:before, .fa-users[_ngcontent-%COMP%]:before{content:"\\f0c0"}.fa-chain[_ngcontent-%COMP%]:before, .fa-link[_ngcontent-%COMP%]:before{content:"\\f0c1"}.fa-cloud[_ngcontent-%COMP%]:before{content:"\\f0c2"}.fa-flask[_ngcontent-%COMP%]:before{content:"\\f0c3"}.fa-cut[_ngcontent-%COMP%]:before, .fa-scissors[_ngcontent-%COMP%]:before{content:"\\f0c4"}.fa-copy[_ngcontent-%COMP%]:before, .fa-files-o[_ngcontent-%COMP%]:before{content:"\\f0c5"}.fa-paperclip[_ngcontent-%COMP%]:before{content:"\\f0c6"}.fa-save[_ngcontent-%COMP%]:before, .fa-floppy-o[_ngcontent-%COMP%]:before{content:"\\f0c7"}.fa-square[_ngcontent-%COMP%]:before{content:"\\f0c8"}.fa-navicon[_ngcontent-%COMP%]:before, .fa-reorder[_ngcontent-%COMP%]:before, .fa-bars[_ngcontent-%COMP%]:before{content:"\\f0c9"}.fa-list-ul[_ngcontent-%COMP%]:before{content:"\\f0ca"}.fa-list-ol[_ngcontent-%COMP%]:before{content:"\\f0cb"}.fa-strikethrough[_ngcontent-%COMP%]:before{content:"\\f0cc"}.fa-underline[_ngcontent-%COMP%]:before{content:"\\f0cd"}.fa-table[_ngcontent-%COMP%]:before{content:"\\f0ce"}.fa-magic[_ngcontent-%COMP%]:before{content:"\\f0d0"}.fa-truck[_ngcontent-%COMP%]:before{content:"\\f0d1"}.fa-pinterest[_ngcontent-%COMP%]:before{content:"\\f0d2"}.fa-pinterest-square[_ngcontent-%COMP%]:before{content:"\\f0d3"}.fa-google-plus-square[_ngcontent-%COMP%]:before{content:"\\f0d4"}.fa-google-plus[_ngcontent-%COMP%]:before{content:"\\f0d5"}.fa-money[_ngcontent-%COMP%]:before{content:"\\f0d6"}.fa-caret-down[_ngcontent-%COMP%]:before{content:"\\f0d7"}.fa-caret-up[_ngcontent-%COMP%]:before{content:"\\f0d8"}.fa-caret-left[_ngcontent-%COMP%]:before{content:"\\f0d9"}.fa-caret-right[_ngcontent-%COMP%]:before{content:"\\f0da"}.fa-columns[_ngcontent-%COMP%]:before{content:"\\f0db"}.fa-unsorted[_ngcontent-%COMP%]:before, .fa-sort[_ngcontent-%COMP%]:before{content:"\\f0dc"}.fa-sort-down[_ngcontent-%COMP%]:before, .fa-sort-desc[_ngcontent-%COMP%]:before{content:"\\f0dd"}.fa-sort-up[_ngcontent-%COMP%]:before, .fa-sort-asc[_ngcontent-%COMP%]:before{content:"\\f0de"}.fa-envelope[_ngcontent-%COMP%]:before{content:"\\f0e0"}.fa-linkedin[_ngcontent-%COMP%]:before{content:"\\f0e1"}.fa-rotate-left[_ngcontent-%COMP%]:before, .fa-undo[_ngcontent-%COMP%]:before{content:"\\f0e2"}.fa-legal[_ngcontent-%COMP%]:before, .fa-gavel[_ngcontent-%COMP%]:before{content:"\\f0e3"}.fa-dashboard[_ngcontent-%COMP%]:before, .fa-tachometer[_ngcontent-%COMP%]:before{content:"\\f0e4"}.fa-comment-o[_ngcontent-%COMP%]:before{content:"\\f0e5"}.fa-comments-o[_ngcontent-%COMP%]:before{content:"\\f0e6"}.fa-flash[_ngcontent-%COMP%]:before, .fa-bolt[_ngcontent-%COMP%]:before{content:"\\f0e7"}.fa-sitemap[_ngcontent-%COMP%]:before{content:"\\f0e8"}.fa-umbrella[_ngcontent-%COMP%]:before{content:"\\f0e9"}.fa-paste[_ngcontent-%COMP%]:before, .fa-clipboard[_ngcontent-%COMP%]:before{content:"\\f0ea"}.fa-lightbulb-o[_ngcontent-%COMP%]:before{content:"\\f0eb"}.fa-exchange[_ngcontent-%COMP%]:before{content:"\\f0ec"}.fa-cloud-download[_ngcontent-%COMP%]:before{content:"\\f0ed"}.fa-cloud-upload[_ngcontent-%COMP%]:before{content:"\\f0ee"}.fa-user-md[_ngcontent-%COMP%]:before{content:"\\f0f0"}.fa-stethoscope[_ngcontent-%COMP%]:before{content:"\\f0f1"}.fa-suitcase[_ngcontent-%COMP%]:before{content:"\\f0f2"}.fa-bell-o[_ngcontent-%COMP%]:before{content:"\\f0a2"}.fa-coffee[_ngcontent-%COMP%]:before{content:"\\f0f4"}.fa-cutlery[_ngcontent-%COMP%]:before{content:"\\f0f5"}.fa-file-text-o[_ngcontent-%COMP%]:before{content:"\\f0f6"}.fa-building-o[_ngcontent-%COMP%]:before{content:"\\f0f7"}.fa-hospital-o[_ngcontent-%COMP%]:before{content:"\\f0f8"}.fa-ambulance[_ngcontent-%COMP%]:before{content:"\\f0f9"}.fa-medkit[_ngcontent-%COMP%]:before{content:"\\f0fa"}.fa-fighter-jet[_ngcontent-%COMP%]:before{content:"\\f0fb"}.fa-beer[_ngcontent-%COMP%]:before{content:"\\f0fc"}.fa-h-square[_ngcontent-%COMP%]:before{content:"\\f0fd"}.fa-plus-square[_ngcontent-%COMP%]:before{content:"\\f0fe"}.fa-angle-double-left[_ngcontent-%COMP%]:before{content:"\\f100"}.fa-angle-double-right[_ngcontent-%COMP%]:before{content:"\\f101"}.fa-angle-double-up[_ngcontent-%COMP%]:before{content:"\\f102"}.fa-angle-double-down[_ngcontent-%COMP%]:before{content:"\\f103"}.fa-angle-left[_ngcontent-%COMP%]:before{content:"\\f104"}.fa-angle-right[_ngcontent-%COMP%]:before{content:"\\f105"}.fa-angle-up[_ngcontent-%COMP%]:before{content:"\\f106"}.fa-angle-down[_ngcontent-%COMP%]:before{content:"\\f107"}.fa-desktop[_ngcontent-%COMP%]:before{content:"\\f108"}.fa-laptop[_ngcontent-%COMP%]:before{content:"\\f109"}.fa-tablet[_ngcontent-%COMP%]:before{content:"\\f10a"}.fa-mobile-phone[_ngcontent-%COMP%]:before, .fa-mobile[_ngcontent-%COMP%]:before{content:"\\f10b"}.fa-circle-o[_ngcontent-%COMP%]:before{content:"\\f10c"}.fa-quote-left[_ngcontent-%COMP%]:before{content:"\\f10d"}.fa-quote-right[_ngcontent-%COMP%]:before{content:"\\f10e"}.fa-spinner[_ngcontent-%COMP%]:before{content:"\\f110"}.fa-circle[_ngcontent-%COMP%]:before{content:"\\f111"}.fa-mail-reply[_ngcontent-%COMP%]:before, .fa-reply[_ngcontent-%COMP%]:before{content:"\\f112"}.fa-github-alt[_ngcontent-%COMP%]:before{content:"\\f113"}.fa-folder-o[_ngcontent-%COMP%]:before{content:"\\f114"}.fa-folder-open-o[_ngcontent-%COMP%]:before{content:"\\f115"}.fa-smile-o[_ngcontent-%COMP%]:before{content:"\\f118"}.fa-frown-o[_ngcontent-%COMP%]:before{content:"\\f119"}.fa-meh-o[_ngcontent-%COMP%]:before{content:"\\f11a"}.fa-gamepad[_ngcontent-%COMP%]:before{content:"\\f11b"}.fa-keyboard-o[_ngcontent-%COMP%]:before{content:"\\f11c"}.fa-flag-o[_ngcontent-%COMP%]:before{content:"\\f11d"}.fa-flag-checkered[_ngcontent-%COMP%]:before{content:"\\f11e"}.fa-terminal[_ngcontent-%COMP%]:before{content:"\\f120"}.fa-code[_ngcontent-%COMP%]:before{content:"\\f121"}.fa-mail-reply-all[_ngcontent-%COMP%]:before, .fa-reply-all[_ngcontent-%COMP%]:before{content:"\\f122"}.fa-star-half-empty[_ngcontent-%COMP%]:before, .fa-star-half-full[_ngcontent-%COMP%]:before, .fa-star-half-o[_ngcontent-%COMP%]:before{content:"\\f123"}.fa-location-arrow[_ngcontent-%COMP%]:before{content:"\\f124"}.fa-crop[_ngcontent-%COMP%]:before{content:"\\f125"}.fa-code-fork[_ngcontent-%COMP%]:before{content:"\\f126"}.fa-unlink[_ngcontent-%COMP%]:before, .fa-chain-broken[_ngcontent-%COMP%]:before{content:"\\f127"}.fa-question[_ngcontent-%COMP%]:before{content:"\\f128"}.fa-info[_ngcontent-%COMP%]:before{content:"\\f129"}.fa-exclamation[_ngcontent-%COMP%]:before{content:"\\f12a"}.fa-superscript[_ngcontent-%COMP%]:before{content:"\\f12b"}.fa-subscript[_ngcontent-%COMP%]:before{content:"\\f12c"}.fa-eraser[_ngcontent-%COMP%]:before{content:"\\f12d"}.fa-puzzle-piece[_ngcontent-%COMP%]:before{content:"\\f12e"}.fa-microphone[_ngcontent-%COMP%]:before{content:"\\f130"}.fa-microphone-slash[_ngcontent-%COMP%]:before{content:"\\f131"}.fa-shield[_ngcontent-%COMP%]:before{content:"\\f132"}.fa-calendar-o[_ngcontent-%COMP%]:before{content:"\\f133"}.fa-fire-extinguisher[_ngcontent-%COMP%]:before{content:"\\f134"}.fa-rocket[_ngcontent-%COMP%]:before{content:"\\f135"}.fa-maxcdn[_ngcontent-%COMP%]:before{content:"\\f136"}.fa-chevron-circle-left[_ngcontent-%COMP%]:before{content:"\\f137"}.fa-chevron-circle-right[_ngcontent-%COMP%]:before{content:"\\f138"}.fa-chevron-circle-up[_ngcontent-%COMP%]:before{content:"\\f139"}.fa-chevron-circle-down[_ngcontent-%COMP%]:before{content:"\\f13a"}.fa-html5[_ngcontent-%COMP%]:before{content:"\\f13b"}.fa-css3[_ngcontent-%COMP%]:before{content:"\\f13c"}.fa-anchor[_ngcontent-%COMP%]:before{content:"\\f13d"}.fa-unlock-alt[_ngcontent-%COMP%]:before{content:"\\f13e"}.fa-bullseye[_ngcontent-%COMP%]:before{content:"\\f140"}.fa-ellipsis-h[_ngcontent-%COMP%]:before{content:"\\f141"}.fa-ellipsis-v[_ngcontent-%COMP%]:before{content:"\\f142"}.fa-rss-square[_ngcontent-%COMP%]:before{content:"\\f143"}.fa-play-circle[_ngcontent-%COMP%]:before{content:"\\f144"}.fa-ticket[_ngcontent-%COMP%]:before{content:"\\f145"}.fa-minus-square[_ngcontent-%COMP%]:before{content:"\\f146"}.fa-minus-square-o[_ngcontent-%COMP%]:before{content:"\\f147"}.fa-level-up[_ngcontent-%COMP%]:before{content:"\\f148"}.fa-level-down[_ngcontent-%COMP%]:before{content:"\\f149"}.fa-check-square[_ngcontent-%COMP%]:before{content:"\\f14a"}.fa-pencil-square[_ngcontent-%COMP%]:before{content:"\\f14b"}.fa-external-link-square[_ngcontent-%COMP%]:before{content:"\\f14c"}.fa-share-square[_ngcontent-%COMP%]:before{content:"\\f14d"}.fa-compass[_ngcontent-%COMP%]:before{content:"\\f14e"}.fa-toggle-down[_ngcontent-%COMP%]:before, .fa-caret-square-o-down[_ngcontent-%COMP%]:before{content:"\\f150"}.fa-toggle-up[_ngcontent-%COMP%]:before, .fa-caret-square-o-up[_ngcontent-%COMP%]:before{content:"\\f151"}.fa-toggle-right[_ngcontent-%COMP%]:before, .fa-caret-square-o-right[_ngcontent-%COMP%]:before{content:"\\f152"}.fa-euro[_ngcontent-%COMP%]:before, .fa-eur[_ngcontent-%COMP%]:before{content:"\\f153"}.fa-gbp[_ngcontent-%COMP%]:before{content:"\\f154"}.fa-dollar[_ngcontent-%COMP%]:before, .fa-usd[_ngcontent-%COMP%]:before{content:"\\f155"}.fa-rupee[_ngcontent-%COMP%]:before, .fa-inr[_ngcontent-%COMP%]:before{content:"\\f156"}.fa-cny[_ngcontent-%COMP%]:before, .fa-rmb[_ngcontent-%COMP%]:before, .fa-yen[_ngcontent-%COMP%]:before, .fa-jpy[_ngcontent-%COMP%]:before{content:"\\f157"}.fa-ruble[_ngcontent-%COMP%]:before, .fa-rouble[_ngcontent-%COMP%]:before, .fa-rub[_ngcontent-%COMP%]:before{content:"\\f158"}.fa-won[_ngcontent-%COMP%]:before, .fa-krw[_ngcontent-%COMP%]:before{content:"\\f159"}.fa-bitcoin[_ngcontent-%COMP%]:before, .fa-btc[_ngcontent-%COMP%]:before{content:"\\f15a"}.fa-file[_ngcontent-%COMP%]:before{content:"\\f15b"}.fa-file-text[_ngcontent-%COMP%]:before{content:"\\f15c"}.fa-sort-alpha-asc[_ngcontent-%COMP%]:before{content:"\\f15d"}.fa-sort-alpha-desc[_ngcontent-%COMP%]:before{content:"\\f15e"}.fa-sort-amount-asc[_ngcontent-%COMP%]:before{content:"\\f160"}.fa-sort-amount-desc[_ngcontent-%COMP%]:before{content:"\\f161"}.fa-sort-numeric-asc[_ngcontent-%COMP%]:before{content:"\\f162"}.fa-sort-numeric-desc[_ngcontent-%COMP%]:before{content:"\\f163"}.fa-thumbs-up[_ngcontent-%COMP%]:before{content:"\\f164"}.fa-thumbs-down[_ngcontent-%COMP%]:before{content:"\\f165"}.fa-youtube-square[_ngcontent-%COMP%]:before{content:"\\f166"}.fa-youtube[_ngcontent-%COMP%]:before{content:"\\f167"}.fa-xing[_ngcontent-%COMP%]:before{content:"\\f168"}.fa-xing-square[_ngcontent-%COMP%]:before{content:"\\f169"}.fa-youtube-play[_ngcontent-%COMP%]:before{content:"\\f16a"}.fa-dropbox[_ngcontent-%COMP%]:before{content:"\\f16b"}.fa-stack-overflow[_ngcontent-%COMP%]:before{content:"\\f16c"}.fa-instagram[_ngcontent-%COMP%]:before{content:"\\f16d"}.fa-flickr[_ngcontent-%COMP%]:before{content:"\\f16e"}.fa-adn[_ngcontent-%COMP%]:before{content:"\\f170"}.fa-bitbucket[_ngcontent-%COMP%]:before{content:"\\f171"}.fa-bitbucket-square[_ngcontent-%COMP%]:before{content:"\\f172"}.fa-tumblr[_ngcontent-%COMP%]:before{content:"\\f173"}.fa-tumblr-square[_ngcontent-%COMP%]:before{content:"\\f174"}.fa-long-arrow-down[_ngcontent-%COMP%]:before{content:"\\f175"}.fa-long-arrow-up[_ngcontent-%COMP%]:before{content:"\\f176"}.fa-long-arrow-left[_ngcontent-%COMP%]:before{content:"\\f177"}.fa-long-arrow-right[_ngcontent-%COMP%]:before{content:"\\f178"}.fa-apple[_ngcontent-%COMP%]:before{content:"\\f179"}.fa-windows[_ngcontent-%COMP%]:before{content:"\\f17a"}.fa-android[_ngcontent-%COMP%]:before{content:"\\f17b"}.fa-linux[_ngcontent-%COMP%]:before{content:"\\f17c"}.fa-dribbble[_ngcontent-%COMP%]:before{content:"\\f17d"}.fa-skype[_ngcontent-%COMP%]:before{content:"\\f17e"}.fa-foursquare[_ngcontent-%COMP%]:before{content:"\\f180"}.fa-trello[_ngcontent-%COMP%]:before{content:"\\f181"}.fa-female[_ngcontent-%COMP%]:before{content:"\\f182"}.fa-male[_ngcontent-%COMP%]:before{content:"\\f183"}.fa-gittip[_ngcontent-%COMP%]:before, .fa-gratipay[_ngcontent-%COMP%]:before{content:"\\f184"}.fa-sun-o[_ngcontent-%COMP%]:before{content:"\\f185"}.fa-moon-o[_ngcontent-%COMP%]:before{content:"\\f186"}.fa-archive[_ngcontent-%COMP%]:before{content:"\\f187"}.fa-bug[_ngcontent-%COMP%]:before{content:"\\f188"}.fa-vk[_ngcontent-%COMP%]:before{content:"\\f189"}.fa-weibo[_ngcontent-%COMP%]:before{content:"\\f18a"}.fa-renren[_ngcontent-%COMP%]:before{content:"\\f18b"}.fa-pagelines[_ngcontent-%COMP%]:before{content:"\\f18c"}.fa-stack-exchange[_ngcontent-%COMP%]:before{content:"\\f18d"}.fa-arrow-circle-o-right[_ngcontent-%COMP%]:before{content:"\\f18e"}.fa-arrow-circle-o-left[_ngcontent-%COMP%]:before{content:"\\f190"}.fa-toggle-left[_ngcontent-%COMP%]:before, .fa-caret-square-o-left[_ngcontent-%COMP%]:before{content:"\\f191"}.fa-dot-circle-o[_ngcontent-%COMP%]:before{content:"\\f192"}.fa-wheelchair[_ngcontent-%COMP%]:before{content:"\\f193"}.fa-vimeo-square[_ngcontent-%COMP%]:before{content:"\\f194"}.fa-turkish-lira[_ngcontent-%COMP%]:before, .fa-try[_ngcontent-%COMP%]:before{content:"\\f195"}.fa-plus-square-o[_ngcontent-%COMP%]:before{content:"\\f196"}.fa-space-shuttle[_ngcontent-%COMP%]:before{content:"\\f197"}.fa-slack[_ngcontent-%COMP%]:before{content:"\\f198"}.fa-envelope-square[_ngcontent-%COMP%]:before{content:"\\f199"}.fa-wordpress[_ngcontent-%COMP%]:before{content:"\\f19a"}.fa-openid[_ngcontent-%COMP%]:before{content:"\\f19b"}.fa-institution[_ngcontent-%COMP%]:before, .fa-bank[_ngcontent-%COMP%]:before, .fa-university[_ngcontent-%COMP%]:before{content:"\\f19c"}.fa-mortar-board[_ngcontent-%COMP%]:before, .fa-graduation-cap[_ngcontent-%COMP%]:before{content:"\\f19d"}.fa-yahoo[_ngcontent-%COMP%]:before{content:"\\f19e"}.fa-google[_ngcontent-%COMP%]:before{content:"\\f1a0"}.fa-reddit[_ngcontent-%COMP%]:before{content:"\\f1a1"}.fa-reddit-square[_ngcontent-%COMP%]:before{content:"\\f1a2"}.fa-stumbleupon-circle[_ngcontent-%COMP%]:before{content:"\\f1a3"}.fa-stumbleupon[_ngcontent-%COMP%]:before{content:"\\f1a4"}.fa-delicious[_ngcontent-%COMP%]:before{content:"\\f1a5"}.fa-digg[_ngcontent-%COMP%]:before{content:"\\f1a6"}.fa-pied-piper-pp[_ngcontent-%COMP%]:before{content:"\\f1a7"}.fa-pied-piper-alt[_ngcontent-%COMP%]:before{content:"\\f1a8"}.fa-drupal[_ngcontent-%COMP%]:before{content:"\\f1a9"}.fa-joomla[_ngcontent-%COMP%]:before{content:"\\f1aa"}.fa-language[_ngcontent-%COMP%]:before{content:"\\f1ab"}.fa-fax[_ngcontent-%COMP%]:before{content:"\\f1ac"}.fa-building[_ngcontent-%COMP%]:before{content:"\\f1ad"}.fa-child[_ngcontent-%COMP%]:before{content:"\\f1ae"}.fa-paw[_ngcontent-%COMP%]:before{content:"\\f1b0"}.fa-spoon[_ngcontent-%COMP%]:before{content:"\\f1b1"}.fa-cube[_ngcontent-%COMP%]:before{content:"\\f1b2"}.fa-cubes[_ngcontent-%COMP%]:before{content:"\\f1b3"}.fa-behance[_ngcontent-%COMP%]:before{content:"\\f1b4"}.fa-behance-square[_ngcontent-%COMP%]:before{content:"\\f1b5"}.fa-steam[_ngcontent-%COMP%]:before{content:"\\f1b6"}.fa-steam-square[_ngcontent-%COMP%]:before{content:"\\f1b7"}.fa-recycle[_ngcontent-%COMP%]:before{content:"\\f1b8"}.fa-automobile[_ngcontent-%COMP%]:before, .fa-car[_ngcontent-%COMP%]:before{content:"\\f1b9"}.fa-cab[_ngcontent-%COMP%]:before, .fa-taxi[_ngcontent-%COMP%]:before{content:"\\f1ba"}.fa-tree[_ngcontent-%COMP%]:before{content:"\\f1bb"}.fa-spotify[_ngcontent-%COMP%]:before{content:"\\f1bc"}.fa-deviantart[_ngcontent-%COMP%]:before{content:"\\f1bd"}.fa-soundcloud[_ngcontent-%COMP%]:before{content:"\\f1be"}.fa-database[_ngcontent-%COMP%]:before{content:"\\f1c0"}.fa-file-pdf-o[_ngcontent-%COMP%]:before{content:"\\f1c1"}.fa-file-word-o[_ngcontent-%COMP%]:before{content:"\\f1c2"}.fa-file-excel-o[_ngcontent-%COMP%]:before{content:"\\f1c3"}.fa-file-powerpoint-o[_ngcontent-%COMP%]:before{content:"\\f1c4"}.fa-file-photo-o[_ngcontent-%COMP%]:before, .fa-file-picture-o[_ngcontent-%COMP%]:before, .fa-file-image-o[_ngcontent-%COMP%]:before{content:"\\f1c5"}.fa-file-zip-o[_ngcontent-%COMP%]:before, .fa-file-archive-o[_ngcontent-%COMP%]:before{content:"\\f1c6"}.fa-file-sound-o[_ngcontent-%COMP%]:before, .fa-file-audio-o[_ngcontent-%COMP%]:before{content:"\\f1c7"}.fa-file-movie-o[_ngcontent-%COMP%]:before, .fa-file-video-o[_ngcontent-%COMP%]:before{content:"\\f1c8"}.fa-file-code-o[_ngcontent-%COMP%]:before{content:"\\f1c9"}.fa-vine[_ngcontent-%COMP%]:before{content:"\\f1ca"}.fa-codepen[_ngcontent-%COMP%]:before{content:"\\f1cb"}.fa-jsfiddle[_ngcontent-%COMP%]:before{content:"\\f1cc"}.fa-life-bouy[_ngcontent-%COMP%]:before, .fa-life-buoy[_ngcontent-%COMP%]:before, .fa-life-saver[_ngcontent-%COMP%]:before, .fa-support[_ngcontent-%COMP%]:before, .fa-life-ring[_ngcontent-%COMP%]:before{content:"\\f1cd"}.fa-circle-o-notch[_ngcontent-%COMP%]:before{content:"\\f1ce"}.fa-ra[_ngcontent-%COMP%]:before, .fa-resistance[_ngcontent-%COMP%]:before, .fa-rebel[_ngcontent-%COMP%]:before{content:"\\f1d0"}.fa-ge[_ngcontent-%COMP%]:before, .fa-empire[_ngcontent-%COMP%]:before{content:"\\f1d1"}.fa-git-square[_ngcontent-%COMP%]:before{content:"\\f1d2"}.fa-git[_ngcontent-%COMP%]:before{content:"\\f1d3"}.fa-y-combinator-square[_ngcontent-%COMP%]:before, .fa-yc-square[_ngcontent-%COMP%]:before, .fa-hacker-news[_ngcontent-%COMP%]:before{content:"\\f1d4"}.fa-tencent-weibo[_ngcontent-%COMP%]:before{content:"\\f1d5"}.fa-qq[_ngcontent-%COMP%]:before{content:"\\f1d6"}.fa-wechat[_ngcontent-%COMP%]:before, .fa-weixin[_ngcontent-%COMP%]:before{content:"\\f1d7"}.fa-send[_ngcontent-%COMP%]:before, .fa-paper-plane[_ngcontent-%COMP%]:before{content:"\\f1d8"}.fa-send-o[_ngcontent-%COMP%]:before, .fa-paper-plane-o[_ngcontent-%COMP%]:before{content:"\\f1d9"}.fa-history[_ngcontent-%COMP%]:before{content:"\\f1da"}.fa-circle-thin[_ngcontent-%COMP%]:before{content:"\\f1db"}.fa-header[_ngcontent-%COMP%]:before{content:"\\f1dc"}.fa-paragraph[_ngcontent-%COMP%]:before{content:"\\f1dd"}.fa-sliders[_ngcontent-%COMP%]:before{content:"\\f1de"}.fa-share-alt[_ngcontent-%COMP%]:before{content:"\\f1e0"}.fa-share-alt-square[_ngcontent-%COMP%]:before{content:"\\f1e1"}.fa-bomb[_ngcontent-%COMP%]:before{content:"\\f1e2"}.fa-soccer-ball-o[_ngcontent-%COMP%]:before, .fa-futbol-o[_ngcontent-%COMP%]:before{content:"\\f1e3"}.fa-tty[_ngcontent-%COMP%]:before{content:"\\f1e4"}.fa-binoculars[_ngcontent-%COMP%]:before{content:"\\f1e5"}.fa-plug[_ngcontent-%COMP%]:before{content:"\\f1e6"}.fa-slideshare[_ngcontent-%COMP%]:before{content:"\\f1e7"}.fa-twitch[_ngcontent-%COMP%]:before{content:"\\f1e8"}.fa-yelp[_ngcontent-%COMP%]:before{content:"\\f1e9"}.fa-newspaper-o[_ngcontent-%COMP%]:before{content:"\\f1ea"}.fa-wifi[_ngcontent-%COMP%]:before{content:"\\f1eb"}.fa-calculator[_ngcontent-%COMP%]:before{content:"\\f1ec"}.fa-paypal[_ngcontent-%COMP%]:before{content:"\\f1ed"}.fa-google-wallet[_ngcontent-%COMP%]:before{content:"\\f1ee"}.fa-cc-visa[_ngcontent-%COMP%]:before{content:"\\f1f0"}.fa-cc-mastercard[_ngcontent-%COMP%]:before{content:"\\f1f1"}.fa-cc-discover[_ngcontent-%COMP%]:before{content:"\\f1f2"}.fa-cc-amex[_ngcontent-%COMP%]:before{content:"\\f1f3"}.fa-cc-paypal[_ngcontent-%COMP%]:before{content:"\\f1f4"}.fa-cc-stripe[_ngcontent-%COMP%]:before{content:"\\f1f5"}.fa-bell-slash[_ngcontent-%COMP%]:before{content:"\\f1f6"}.fa-bell-slash-o[_ngcontent-%COMP%]:before{content:"\\f1f7"}.fa-trash[_ngcontent-%COMP%]:before{content:"\\f1f8"}.fa-copyright[_ngcontent-%COMP%]:before{content:"\\f1f9"}.fa-at[_ngcontent-%COMP%]:before{content:"\\f1fa"}.fa-eyedropper[_ngcontent-%COMP%]:before{content:"\\f1fb"}.fa-paint-brush[_ngcontent-%COMP%]:before{content:"\\f1fc"}.fa-birthday-cake[_ngcontent-%COMP%]:before{content:"\\f1fd"}.fa-area-chart[_ngcontent-%COMP%]:before{content:"\\f1fe"}.fa-pie-chart[_ngcontent-%COMP%]:before{content:"\\f200"}.fa-line-chart[_ngcontent-%COMP%]:before{content:"\\f201"}.fa-lastfm[_ngcontent-%COMP%]:before{content:"\\f202"}.fa-lastfm-square[_ngcontent-%COMP%]:before{content:"\\f203"}.fa-toggle-off[_ngcontent-%COMP%]:before{content:"\\f204"}.fa-toggle-on[_ngcontent-%COMP%]:before{content:"\\f205"}.fa-bicycle[_ngcontent-%COMP%]:before{content:"\\f206"}.fa-bus[_ngcontent-%COMP%]:before{content:"\\f207"}.fa-ioxhost[_ngcontent-%COMP%]:before{content:"\\f208"}.fa-angellist[_ngcontent-%COMP%]:before{content:"\\f209"}.fa-cc[_ngcontent-%COMP%]:before{content:"\\f20a"}.fa-shekel[_ngcontent-%COMP%]:before, .fa-sheqel[_ngcontent-%COMP%]:before, .fa-ils[_ngcontent-%COMP%]:before{content:"\\f20b"}.fa-meanpath[_ngcontent-%COMP%]:before{content:"\\f20c"}.fa-buysellads[_ngcontent-%COMP%]:before{content:"\\f20d"}.fa-connectdevelop[_ngcontent-%COMP%]:before{content:"\\f20e"}.fa-dashcube[_ngcontent-%COMP%]:before{content:"\\f210"}.fa-forumbee[_ngcontent-%COMP%]:before{content:"\\f211"}.fa-leanpub[_ngcontent-%COMP%]:before{content:"\\f212"}.fa-sellsy[_ngcontent-%COMP%]:before{content:"\\f213"}.fa-shirtsinbulk[_ngcontent-%COMP%]:before{content:"\\f214"}.fa-simplybuilt[_ngcontent-%COMP%]:before{content:"\\f215"}.fa-skyatlas[_ngcontent-%COMP%]:before{content:"\\f216"}.fa-cart-plus[_ngcontent-%COMP%]:before{content:"\\f217"}.fa-cart-arrow-down[_ngcontent-%COMP%]:before{content:"\\f218"}.fa-diamond[_ngcontent-%COMP%]:before{content:"\\f219"}.fa-ship[_ngcontent-%COMP%]:before{content:"\\f21a"}.fa-user-secret[_ngcontent-%COMP%]:before{content:"\\f21b"}.fa-motorcycle[_ngcontent-%COMP%]:before{content:"\\f21c"}.fa-street-view[_ngcontent-%COMP%]:before{content:"\\f21d"}.fa-heartbeat[_ngcontent-%COMP%]:before{content:"\\f21e"}.fa-venus[_ngcontent-%COMP%]:before{content:"\\f221"}.fa-mars[_ngcontent-%COMP%]:before{content:"\\f222"}.fa-mercury[_ngcontent-%COMP%]:before{content:"\\f223"}.fa-intersex[_ngcontent-%COMP%]:before, .fa-transgender[_ngcontent-%COMP%]:before{content:"\\f224"}.fa-transgender-alt[_ngcontent-%COMP%]:before{content:"\\f225"}.fa-venus-double[_ngcontent-%COMP%]:before{content:"\\f226"}.fa-mars-double[_ngcontent-%COMP%]:before{content:"\\f227"}.fa-venus-mars[_ngcontent-%COMP%]:before{content:"\\f228"}.fa-mars-stroke[_ngcontent-%COMP%]:before{content:"\\f229"}.fa-mars-stroke-v[_ngcontent-%COMP%]:before{content:"\\f22a"}.fa-mars-stroke-h[_ngcontent-%COMP%]:before{content:"\\f22b"}.fa-neuter[_ngcontent-%COMP%]:before{content:"\\f22c"}.fa-genderless[_ngcontent-%COMP%]:before{content:"\\f22d"}.fa-facebook-official[_ngcontent-%COMP%]:before{content:"\\f230"}.fa-pinterest-p[_ngcontent-%COMP%]:before{content:"\\f231"}.fa-whatsapp[_ngcontent-%COMP%]:before{content:"\\f232"}.fa-server[_ngcontent-%COMP%]:before{content:"\\f233"}.fa-user-plus[_ngcontent-%COMP%]:before{content:"\\f234"}.fa-user-times[_ngcontent-%COMP%]:before{content:"\\f235"}.fa-hotel[_ngcontent-%COMP%]:before, .fa-bed[_ngcontent-%COMP%]:before{content:"\\f236"}.fa-viacoin[_ngcontent-%COMP%]:before{content:"\\f237"}.fa-train[_ngcontent-%COMP%]:before{content:"\\f238"}.fa-subway[_ngcontent-%COMP%]:before{content:"\\f239"}.fa-medium[_ngcontent-%COMP%]:before{content:"\\f23a"}.fa-yc[_ngcontent-%COMP%]:before, .fa-y-combinator[_ngcontent-%COMP%]:before{content:"\\f23b"}.fa-optin-monster[_ngcontent-%COMP%]:before{content:"\\f23c"}.fa-opencart[_ngcontent-%COMP%]:before{content:"\\f23d"}.fa-expeditedssl[_ngcontent-%COMP%]:before{content:"\\f23e"}.fa-battery-4[_ngcontent-%COMP%]:before, .fa-battery[_ngcontent-%COMP%]:before, .fa-battery-full[_ngcontent-%COMP%]:before{content:"\\f240"}.fa-battery-3[_ngcontent-%COMP%]:before, .fa-battery-three-quarters[_ngcontent-%COMP%]:before{content:"\\f241"}.fa-battery-2[_ngcontent-%COMP%]:before, .fa-battery-half[_ngcontent-%COMP%]:before{content:"\\f242"}.fa-battery-1[_ngcontent-%COMP%]:before, .fa-battery-quarter[_ngcontent-%COMP%]:before{content:"\\f243"}.fa-battery-0[_ngcontent-%COMP%]:before, .fa-battery-empty[_ngcontent-%COMP%]:before{content:"\\f244"}.fa-mouse-pointer[_ngcontent-%COMP%]:before{content:"\\f245"}.fa-i-cursor[_ngcontent-%COMP%]:before{content:"\\f246"}.fa-object-group[_ngcontent-%COMP%]:before{content:"\\f247"}.fa-object-ungroup[_ngcontent-%COMP%]:before{content:"\\f248"}.fa-sticky-note[_ngcontent-%COMP%]:before{content:"\\f249"}.fa-sticky-note-o[_ngcontent-%COMP%]:before{content:"\\f24a"}.fa-cc-jcb[_ngcontent-%COMP%]:before{content:"\\f24b"}.fa-cc-diners-club[_ngcontent-%COMP%]:before{content:"\\f24c"}.fa-clone[_ngcontent-%COMP%]:before{content:"\\f24d"}.fa-balance-scale[_ngcontent-%COMP%]:before{content:"\\f24e"}.fa-hourglass-o[_ngcontent-%COMP%]:before{content:"\\f250"}.fa-hourglass-1[_ngcontent-%COMP%]:before, .fa-hourglass-start[_ngcontent-%COMP%]:before{content:"\\f251"}.fa-hourglass-2[_ngcontent-%COMP%]:before, .fa-hourglass-half[_ngcontent-%COMP%]:before{content:"\\f252"}.fa-hourglass-3[_ngcontent-%COMP%]:before, .fa-hourglass-end[_ngcontent-%COMP%]:before{content:"\\f253"}.fa-hourglass[_ngcontent-%COMP%]:before{content:"\\f254"}.fa-hand-grab-o[_ngcontent-%COMP%]:before, .fa-hand-rock-o[_ngcontent-%COMP%]:before{content:"\\f255"}.fa-hand-stop-o[_ngcontent-%COMP%]:before, .fa-hand-paper-o[_ngcontent-%COMP%]:before{content:"\\f256"}.fa-hand-scissors-o[_ngcontent-%COMP%]:before{content:"\\f257"}.fa-hand-lizard-o[_ngcontent-%COMP%]:before{content:"\\f258"}.fa-hand-spock-o[_ngcontent-%COMP%]:before{content:"\\f259"}.fa-hand-pointer-o[_ngcontent-%COMP%]:before{content:"\\f25a"}.fa-hand-peace-o[_ngcontent-%COMP%]:before{content:"\\f25b"}.fa-trademark[_ngcontent-%COMP%]:before{content:"\\f25c"}.fa-registered[_ngcontent-%COMP%]:before{content:"\\f25d"}.fa-creative-commons[_ngcontent-%COMP%]:before{content:"\\f25e"}.fa-gg[_ngcontent-%COMP%]:before{content:"\\f260"}.fa-gg-circle[_ngcontent-%COMP%]:before{content:"\\f261"}.fa-tripadvisor[_ngcontent-%COMP%]:before{content:"\\f262"}.fa-odnoklassniki[_ngcontent-%COMP%]:before{content:"\\f263"}.fa-odnoklassniki-square[_ngcontent-%COMP%]:before{content:"\\f264"}.fa-get-pocket[_ngcontent-%COMP%]:before{content:"\\f265"}.fa-wikipedia-w[_ngcontent-%COMP%]:before{content:"\\f266"}.fa-safari[_ngcontent-%COMP%]:before{content:"\\f267"}.fa-chrome[_ngcontent-%COMP%]:before{content:"\\f268"}.fa-firefox[_ngcontent-%COMP%]:before{content:"\\f269"}.fa-opera[_ngcontent-%COMP%]:before{content:"\\f26a"}.fa-internet-explorer[_ngcontent-%COMP%]:before{content:"\\f26b"}.fa-tv[_ngcontent-%COMP%]:before, .fa-television[_ngcontent-%COMP%]:before{content:"\\f26c"}.fa-contao[_ngcontent-%COMP%]:before{content:"\\f26d"}.fa-500px[_ngcontent-%COMP%]:before{content:"\\f26e"}.fa-amazon[_ngcontent-%COMP%]:before{content:"\\f270"}.fa-calendar-plus-o[_ngcontent-%COMP%]:before{content:"\\f271"}.fa-calendar-minus-o[_ngcontent-%COMP%]:before{content:"\\f272"}.fa-calendar-times-o[_ngcontent-%COMP%]:before{content:"\\f273"}.fa-calendar-check-o[_ngcontent-%COMP%]:before{content:"\\f274"}.fa-industry[_ngcontent-%COMP%]:before{content:"\\f275"}.fa-map-pin[_ngcontent-%COMP%]:before{content:"\\f276"}.fa-map-signs[_ngcontent-%COMP%]:before{content:"\\f277"}.fa-map-o[_ngcontent-%COMP%]:before{content:"\\f278"}.fa-map[_ngcontent-%COMP%]:before{content:"\\f279"}.fa-commenting[_ngcontent-%COMP%]:before{content:"\\f27a"}.fa-commenting-o[_ngcontent-%COMP%]:before{content:"\\f27b"}.fa-houzz[_ngcontent-%COMP%]:before{content:"\\f27c"}.fa-vimeo[_ngcontent-%COMP%]:before{content:"\\f27d"}.fa-black-tie[_ngcontent-%COMP%]:before{content:"\\f27e"}.fa-fonticons[_ngcontent-%COMP%]:before{content:"\\f280"}.fa-reddit-alien[_ngcontent-%COMP%]:before{content:"\\f281"}.fa-edge[_ngcontent-%COMP%]:before{content:"\\f282"}.fa-credit-card-alt[_ngcontent-%COMP%]:before{content:"\\f283"}.fa-codiepie[_ngcontent-%COMP%]:before{content:"\\f284"}.fa-modx[_ngcontent-%COMP%]:before{content:"\\f285"}.fa-fort-awesome[_ngcontent-%COMP%]:before{content:"\\f286"}.fa-usb[_ngcontent-%COMP%]:before{content:"\\f287"}.fa-product-hunt[_ngcontent-%COMP%]:before{content:"\\f288"}.fa-mixcloud[_ngcontent-%COMP%]:before{content:"\\f289"}.fa-scribd[_ngcontent-%COMP%]:before{content:"\\f28a"}.fa-pause-circle[_ngcontent-%COMP%]:before{content:"\\f28b"}.fa-pause-circle-o[_ngcontent-%COMP%]:before{content:"\\f28c"}.fa-stop-circle[_ngcontent-%COMP%]:before{content:"\\f28d"}.fa-stop-circle-o[_ngcontent-%COMP%]:before{content:"\\f28e"}.fa-shopping-bag[_ngcontent-%COMP%]:before{content:"\\f290"}.fa-shopping-basket[_ngcontent-%COMP%]:before{content:"\\f291"}.fa-hashtag[_ngcontent-%COMP%]:before{content:"\\f292"}.fa-bluetooth[_ngcontent-%COMP%]:before{content:"\\f293"}.fa-bluetooth-b[_ngcontent-%COMP%]:before{content:"\\f294"}.fa-percent[_ngcontent-%COMP%]:before{content:"\\f295"}.fa-gitlab[_ngcontent-%COMP%]:before{content:"\\f296"}.fa-wpbeginner[_ngcontent-%COMP%]:before{content:"\\f297"}.fa-wpforms[_ngcontent-%COMP%]:before{content:"\\f298"}.fa-envira[_ngcontent-%COMP%]:before{content:"\\f299"}.fa-universal-access[_ngcontent-%COMP%]:before{content:"\\f29a"}.fa-wheelchair-alt[_ngcontent-%COMP%]:before{content:"\\f29b"}.fa-question-circle-o[_ngcontent-%COMP%]:before{content:"\\f29c"}.fa-blind[_ngcontent-%COMP%]:before{content:"\\f29d"}.fa-audio-description[_ngcontent-%COMP%]:before{content:"\\f29e"}.fa-volume-control-phone[_ngcontent-%COMP%]:before{content:"\\f2a0"}.fa-braille[_ngcontent-%COMP%]:before{content:"\\f2a1"}.fa-assistive-listening-systems[_ngcontent-%COMP%]:before{content:"\\f2a2"}.fa-asl-interpreting[_ngcontent-%COMP%]:before, .fa-american-sign-language-interpreting[_ngcontent-%COMP%]:before{content:"\\f2a3"}.fa-deafness[_ngcontent-%COMP%]:before, .fa-hard-of-hearing[_ngcontent-%COMP%]:before, .fa-deaf[_ngcontent-%COMP%]:before{content:"\\f2a4"}.fa-glide[_ngcontent-%COMP%]:before{content:"\\f2a5"}.fa-glide-g[_ngcontent-%COMP%]:before{content:"\\f2a6"}.fa-signing[_ngcontent-%COMP%]:before, .fa-sign-language[_ngcontent-%COMP%]:before{content:"\\f2a7"}.fa-low-vision[_ngcontent-%COMP%]:before{content:"\\f2a8"}.fa-viadeo[_ngcontent-%COMP%]:before{content:"\\f2a9"}.fa-viadeo-square[_ngcontent-%COMP%]:before{content:"\\f2aa"}.fa-snapchat[_ngcontent-%COMP%]:before{content:"\\f2ab"}.fa-snapchat-ghost[_ngcontent-%COMP%]:before{content:"\\f2ac"}.fa-snapchat-square[_ngcontent-%COMP%]:before{content:"\\f2ad"}.fa-pied-piper[_ngcontent-%COMP%]:before{content:"\\f2ae"}.fa-first-order[_ngcontent-%COMP%]:before{content:"\\f2b0"}.fa-yoast[_ngcontent-%COMP%]:before{content:"\\f2b1"}.fa-themeisle[_ngcontent-%COMP%]:before{content:"\\f2b2"}.fa-google-plus-circle[_ngcontent-%COMP%]:before, .fa-google-plus-official[_ngcontent-%COMP%]:before{content:"\\f2b3"}.fa-fa[_ngcontent-%COMP%]:before, .fa-font-awesome[_ngcontent-%COMP%]:before{content:"\\f2b4"}.fa-handshake-o[_ngcontent-%COMP%]:before{content:"\\f2b5"}.fa-envelope-open[_ngcontent-%COMP%]:before{content:"\\f2b6"}.fa-envelope-open-o[_ngcontent-%COMP%]:before{content:"\\f2b7"}.fa-linode[_ngcontent-%COMP%]:before{content:"\\f2b8"}.fa-address-book[_ngcontent-%COMP%]:before{content:"\\f2b9"}.fa-address-book-o[_ngcontent-%COMP%]:before{content:"\\f2ba"}.fa-vcard[_ngcontent-%COMP%]:before, .fa-address-card[_ngcontent-%COMP%]:before{content:"\\f2bb"}.fa-vcard-o[_ngcontent-%COMP%]:before, .fa-address-card-o[_ngcontent-%COMP%]:before{content:"\\f2bc"}.fa-user-circle[_ngcontent-%COMP%]:before{content:"\\f2bd"}.fa-user-circle-o[_ngcontent-%COMP%]:before{content:"\\f2be"}.fa-user-o[_ngcontent-%COMP%]:before{content:"\\f2c0"}.fa-id-badge[_ngcontent-%COMP%]:before{content:"\\f2c1"}.fa-drivers-license[_ngcontent-%COMP%]:before, .fa-id-card[_ngcontent-%COMP%]:before{content:"\\f2c2"}.fa-drivers-license-o[_ngcontent-%COMP%]:before, .fa-id-card-o[_ngcontent-%COMP%]:before{content:"\\f2c3"}.fa-quora[_ngcontent-%COMP%]:before{content:"\\f2c4"}.fa-free-code-camp[_ngcontent-%COMP%]:before{content:"\\f2c5"}.fa-telegram[_ngcontent-%COMP%]:before{content:"\\f2c6"}.fa-thermometer-4[_ngcontent-%COMP%]:before, .fa-thermometer[_ngcontent-%COMP%]:before, .fa-thermometer-full[_ngcontent-%COMP%]:before{content:"\\f2c7"}.fa-thermometer-3[_ngcontent-%COMP%]:before, .fa-thermometer-three-quarters[_ngcontent-%COMP%]:before{content:"\\f2c8"}.fa-thermometer-2[_ngcontent-%COMP%]:before, .fa-thermometer-half[_ngcontent-%COMP%]:before{content:"\\f2c9"}.fa-thermometer-1[_ngcontent-%COMP%]:before, .fa-thermometer-quarter[_ngcontent-%COMP%]:before{content:"\\f2ca"}.fa-thermometer-0[_ngcontent-%COMP%]:before, .fa-thermometer-empty[_ngcontent-%COMP%]:before{content:"\\f2cb"}.fa-shower[_ngcontent-%COMP%]:before{content:"\\f2cc"}.fa-bathtub[_ngcontent-%COMP%]:before, .fa-s15[_ngcontent-%COMP%]:before, .fa-bath[_ngcontent-%COMP%]:before{content:"\\f2cd"}.fa-podcast[_ngcontent-%COMP%]:before{content:"\\f2ce"}.fa-window-maximize[_ngcontent-%COMP%]:before{content:"\\f2d0"}.fa-window-minimize[_ngcontent-%COMP%]:before{content:"\\f2d1"}.fa-window-restore[_ngcontent-%COMP%]:before{content:"\\f2d2"}.fa-times-rectangle[_ngcontent-%COMP%]:before, .fa-window-close[_ngcontent-%COMP%]:before{content:"\\f2d3"}.fa-times-rectangle-o[_ngcontent-%COMP%]:before, .fa-window-close-o[_ngcontent-%COMP%]:before{content:"\\f2d4"}.fa-bandcamp[_ngcontent-%COMP%]:before{content:"\\f2d5"}.fa-grav[_ngcontent-%COMP%]:before{content:"\\f2d6"}.fa-etsy[_ngcontent-%COMP%]:before{content:"\\f2d7"}.fa-imdb[_ngcontent-%COMP%]:before{content:"\\f2d8"}.fa-ravelry[_ngcontent-%COMP%]:before{content:"\\f2d9"}.fa-eercast[_ngcontent-%COMP%]:before{content:"\\f2da"}.fa-microchip[_ngcontent-%COMP%]:before{content:"\\f2db"}.fa-snowflake-o[_ngcontent-%COMP%]:before{content:"\\f2dc"}.fa-superpowers[_ngcontent-%COMP%]:before{content:"\\f2dd"}.fa-wpexplorer[_ngcontent-%COMP%]:before{content:"\\f2de"}.fa-meetup[_ngcontent-%COMP%]:before{content:"\\f2e0"}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable[_ngcontent-%COMP%]:active, .sr-only-focusable[_ngcontent-%COMP%]:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}a[_ngcontent-%COMP%]{cursor:pointer}.angular-editor-textarea[_ngcontent-%COMP%]{min-height:150px;overflow:auto;margin-top:5px;resize:vertical}.angular-editor-textarea[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;right:0;display:block;width:8px;height:8px;cursor:nwse-resize;background-color:#ffffff80}.angular-editor-toolbar[_ngcontent-%COMP%]{font:100 14px/15px Roboto,Arial,sans-serif;background-color:#f5f5f5;font-size:.8rem;padding:.2rem;border:1px solid #ddd}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]{display:none;margin-right:5px;vertical-align:baseline}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]{background-color:#fff;vertical-align:middle;border:1px solid #ddd;padding:.4rem;min-width:2rem;float:left}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:focus, .angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button.focus[_ngcontent-%COMP%]{outline:0}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:disabled > .color-label[_ngcontent-%COMP%]{pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:disabled > .color-label.foreground[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:after{background:#555555}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:disabled > .color-label.background[_ngcontent-%COMP%]{background:#555555}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button.active[_ngcontent-%COMP%]{background:#fff5b9}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button.active[_ngcontent-%COMP%]:hover{background-color:#fffa98}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{font-size:11px;width:90px;vertical-align:middle;background-color:transparent;border:.5px solid rgba(255,255,255,0);border-radius:5px;outline:none;padding:.4rem;cursor:pointer}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]{display:inline-block;width:90px}@supports not (-moz-appearance: none){.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   optgroup[_ngcontent-%COMP%]{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{border:1px solid;background-color:#fff}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .default[_ngcontent-%COMP%]{font-size:16px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h1[_ngcontent-%COMP%]{font-size:24px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h2[_ngcontent-%COMP%]{font-size:20px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h3[_ngcontent-%COMP%]{font-size:16px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h4[_ngcontent-%COMP%]{font-size:15px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h5[_ngcontent-%COMP%]{font-size:14px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h6[_ngcontent-%COMP%]{font-size:13px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .div[_ngcontent-%COMP%], .angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .pre[_ngcontent-%COMP%]{font-size:12px}}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]{display:inline-block;width:90px}@supports not (-moz-appearance: none){.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]   optgroup[_ngcontent-%COMP%]{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{border:1px solid;background-color:#fff}}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]{display:inline-block;width:50px}@supports not (-moz-appearance: none){.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   optgroup[_ngcontent-%COMP%]{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{border:1px solid;background-color:#fff}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size1[_ngcontent-%COMP%]{font-size:10px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size2[_ngcontent-%COMP%]{font-size:12px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size3[_ngcontent-%COMP%]{font-size:14px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size4[_ngcontent-%COMP%]{font-size:16px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size5[_ngcontent-%COMP%]{font-size:18px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size6[_ngcontent-%COMP%]{font-size:20px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size7[_ngcontent-%COMP%]{font-size:22px}}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]{display:inline-block;width:90px}@supports not (-moz-appearance: none){.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]   optgroup[_ngcontent-%COMP%]{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{border:1px solid;background-color:#fff}}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .color-label[_ngcontent-%COMP%]{position:relative;cursor:pointer}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .background[_ngcontent-%COMP%]{font-size:smaller;background:#1b1b1b;color:#fff;padding:3px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .foreground[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:after{position:absolute;content:"";left:-1px;top:auto;bottom:-3px;right:auto;width:15px;height:2px;z-index:0;background:#1b1b1b}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]:not([style*="display:none"]):not([style*="display: none"]){display:inline-block}']}),U})(),k=(()=>{class U{constructor(T,H,N,pe,de,me,q){this.r=T,this.editorService=H,this.doc=N,this.sanitizer=pe,this.cdRef=de,this.autoFocus=q,this.modeVisual=!0,this.showPlaceholder=!1,this.disabled=!1,this.focused=!1,this.touched=!1,this.changed=!1,this.id="",this.config=re,this.placeholder="",this.executeCommandFn=this.executeCommand.bind(this),this.viewMode=new e.EventEmitter,this.blurEvent=new e.EventEmitter,this.focusEvent=new e.EventEmitter,this.tabindex=-1;const se=Number(me);this.tabIndex=se||0===se?se:null}onFocus(){this.focus()}ngOnInit(){this.config.toolbarPosition=this.config.toolbarPosition?this.config.toolbarPosition:re.toolbarPosition}ngAfterViewInit(){Q(this.autoFocus)&&this.focus()}onPaste(T){if(this.config.rawPaste){T.preventDefault();const H=T.clipboardData.getData("text/plain");return document.execCommand("insertHTML",!1,H),H}}executeCommand(T,H){this.focus(),"focus"!==T&&("toggleEditorMode"===T?this.toggleEditorMode(this.modeVisual):""!==T&&("clear"===T?(this.editorService.removeSelectedElements(this.getCustomTags()),this.onContentChange(this.textArea.nativeElement)):"default"===T?(this.editorService.removeSelectedElements("h1,h2,h3,h4,h5,h6,p,pre"),this.onContentChange(this.textArea.nativeElement)):this.editorService.executeCommand(T,H),this.exec()))}onTextAreaFocus(T){this.focused?T.stopPropagation():(this.focused=!0,this.focusEvent.emit(T),(!this.touched||!this.changed)&&this.editorService.executeInNextQueueIteration(()=>{this.configure(),this.touched=!0}))}onTextAreaMouseOut(T){this.editorService.saveSelection()}onTextAreaBlur(T){if(this.editorService.executeInNextQueueIteration(this.editorService.saveSelection),"function"==typeof this.onTouched&&this.onTouched(),null!==T.relatedTarget){const H=T.relatedTarget.parentElement;!H.classList.contains("angular-editor-toolbar-set")&&!H.classList.contains("ae-picker")&&(this.blurEvent.emit(T),this.focused=!1)}}focus(){this.modeVisual?this.textArea.nativeElement.focus():(this.doc.getElementById("sourceText"+this.id).focus(),this.focused=!0)}onContentChange(T){let H="";H=this.modeVisual?T.innerHTML:T.innerText,(!H||"<br>"===H)&&(H=""),"function"==typeof this.onChange&&(this.onChange(this.config.sanitize||void 0===this.config.sanitize?this.sanitizer.sanitize(e.SecurityContext.HTML,H):H),!H!==this.showPlaceholder&&this.togglePlaceholder(this.showPlaceholder)),this.changed=!0}registerOnChange(T){this.onChange=H=>T("<br>"===H?"":H)}registerOnTouched(T){this.onTouched=T}writeValue(T){(!T||"<br>"===T||""===T)!==this.showPlaceholder&&this.togglePlaceholder(this.showPlaceholder),(void 0===T||""===T||"<br>"===T)&&(T=null),this.refreshView(T)}refreshView(T){this.r.setProperty(this.textArea.nativeElement,"innerHTML",null===T?"":T)}togglePlaceholder(T){T?(this.r.removeClass(this.editorWrapper.nativeElement,"show-placeholder"),this.showPlaceholder=!1):(this.r.addClass(this.editorWrapper.nativeElement,"show-placeholder"),this.showPlaceholder=!0)}setDisabledState(T){this.r[T?"addClass":"removeClass"](this.textArea.nativeElement,"disabled"),this.disabled=T}toggleEditorMode(T){let H;const N=this.textArea.nativeElement;if(T){H=this.r.createText(N.innerHTML),this.r.setProperty(N,"innerHTML",""),this.r.setProperty(N,"contentEditable",!1);const pe=this.r.createElement("pre");this.r.setStyle(pe,"margin","0"),this.r.setStyle(pe,"outline","none");const de=this.r.createElement("code");this.r.setProperty(de,"id","sourceText"+this.id),this.r.setStyle(de,"display","block"),this.r.setStyle(de,"white-space","pre-wrap"),this.r.setStyle(de,"word-break","keep-all"),this.r.setStyle(de,"outline","none"),this.r.setStyle(de,"margin","0"),this.r.setStyle(de,"background-color","#fff5b9"),this.r.setProperty(de,"contentEditable",!0),this.r.appendChild(de,H),this.focusInstance=this.r.listen(de,"focus",me=>this.onTextAreaFocus(me)),this.blurInstance=this.r.listen(de,"blur",me=>this.onTextAreaBlur(me)),this.r.appendChild(pe,de),this.r.appendChild(N,pe),this.doc.execCommand("defaultParagraphSeparator",!1,"div"),this.modeVisual=!1,this.viewMode.emit(!1),de.focus()}else this.doc.querySelectorAll?this.r.setProperty(N,"innerHTML",N.innerText):(H=this.doc.createRange(),H.selectNodeContents(N.firstChild),this.r.setProperty(N,"innerHTML",H.toString())),this.r.setProperty(N,"contentEditable",!0),this.modeVisual=!0,this.viewMode.emit(!0),this.onContentChange(N),N.focus();this.editorToolbar.setEditorMode(!this.modeVisual)}exec(){let T;this.editorToolbar.triggerButtons(),this.doc.getSelection&&(T=this.doc.getSelection(),this.editorService.executeInNextQueueIteration(this.editorService.saveSelection));let H=T.focusNode;const N=[];for(;H&&"editor"!==H.id;)N.unshift(H),H=H.parentNode;this.editorToolbar.triggerBlocks(N)}configure(){this.editorService.uploadUrl=this.config.uploadUrl,this.editorService.uploadWithCredentials=this.config.uploadWithCredentials,this.config.defaultParagraphSeparator&&this.editorService.setDefaultParagraphSeparator(this.config.defaultParagraphSeparator),this.config.defaultFontName&&this.editorService.setFontName(this.config.defaultFontName),this.config.defaultFontSize&&this.editorService.setFontSize(this.config.defaultFontSize)}getFonts(){return(this.config.fonts?this.config.fonts:re.fonts).map(H=>({label:H.name,value:H.name}))}getCustomTags(){const T=["span"];return this.config.customClasses.forEach(H=>{void 0!==H.tag&&(T.includes(H.tag)||T.push(H.tag))}),T.join(",")}ngOnDestroy(){this.blurInstance&&this.blurInstance(),this.focusInstance&&this.focusInstance()}filterStyles(T){return T.replace("position: fixed;","")}}return U.\u0275fac=function(T){return new(T||U)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(X),e.\u0275\u0275directiveInject(n.DOCUMENT),e.\u0275\u0275directiveInject(l.DomSanitizer),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275injectAttribute("tabindex"),e.\u0275\u0275injectAttribute("autofocus"))},U.\u0275cmp=e.\u0275\u0275defineComponent({type:U,selectors:[["angular-editor"]],contentQueries:function(T,H,N){if(1&T&&e.\u0275\u0275contentQuery(N,S,5),2&T){let pe;e.\u0275\u0275queryRefresh(pe=e.\u0275\u0275loadQuery())&&(H.customButtonsTemplateRef=pe.first)}},viewQuery:function(T,H){if(1&T&&(e.\u0275\u0275viewQuery(E,7),e.\u0275\u0275viewQuery(D,7),e.\u0275\u0275viewQuery(A,5)),2&T){let N;e.\u0275\u0275queryRefresh(N=e.\u0275\u0275loadQuery())&&(H.textArea=N.first),e.\u0275\u0275queryRefresh(N=e.\u0275\u0275loadQuery())&&(H.editorWrapper=N.first),e.\u0275\u0275queryRefresh(N=e.\u0275\u0275loadQuery())&&(H.editorToolbar=N.first)}},hostVars:1,hostBindings:function(T,H){1&T&&e.\u0275\u0275listener("focus",function(){return H.onFocus()}),2&T&&e.\u0275\u0275attribute("tabindex",H.tabindex)},inputs:{id:"id",config:"config",placeholder:"placeholder",tabIndex:"tabIndex"},outputs:{html:"html",viewMode:"viewMode",blurEvent:"blur",focusEvent:"focus"},features:[e.\u0275\u0275ProvidersFeature([{provide:t.JU,useExisting:(0,e.forwardRef)(()=>U),multi:!0},X])],decls:10,vars:19,consts:[[1,"angular-editor"],["angularEditor",""],[3,"id","uploadUrl","upload","showToolbar","fonts","customClasses","defaultFontName","defaultFontSize","hiddenButtons","execute",4,"ngIf"],[1,"angular-editor-wrapper"],["editorWrapper",""],[1,"angular-editor-textarea",3,"input","focus","blur","click","keyup","mouseout","paste"],["editor",""],[1,"angular-editor-placeholder"],[3,"id","uploadUrl","upload","showToolbar","fonts","customClasses","defaultFontName","defaultFontSize","hiddenButtons","execute"],["editorToolbar",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(T,H){1&T&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275template(2,B,3,13,"angular-editor-toolbar",2),e.\u0275\u0275elementStart(3,"div",3,4)(5,"div",5,6),e.\u0275\u0275listener("input",function(pe){return H.onContentChange(pe.target)})("focus",function(pe){return H.onTextAreaFocus(pe)})("blur",function(pe){return H.onTextAreaBlur(pe)})("click",function(){return H.exec()})("keyup",function(){return H.exec()})("mouseout",function(pe){return H.onTextAreaMouseOut(pe)})("paste",function(pe){return H.onPaste(pe)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"span",7),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(9,V,2,9,"angular-editor-toolbar",2),e.\u0275\u0275elementEnd()),2&T&&(e.\u0275\u0275styleProp("width",H.config.width)("min-width",H.config.minWidth),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","top"===H.config.toolbarPosition),e.\u0275\u0275advance(3),e.\u0275\u0275styleProp("height",H.config.height)("min-height",H.config.minHeight)("max-height",H.config.maxHeight)("outline",!1===H.config.outline?"none":void 0),e.\u0275\u0275attribute("contenteditable",H.config.editable)("tabindex",H.disabled?-1:H.tabIndex)("translate",H.config.translate)("spellcheck",H.config.spellcheck),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(H.placeholder||H.config.placeholder),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","bottom"===H.config.toolbarPosition))},dependencies:[K,n.NgIf,n.NgTemplateOutlet],styles:['@font-face{font-family:FontAwesome;src:url(/assets/fonts/fontawesome-webfont.eot?v=4.7.0);src:url(/assets/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format("embedded-opentype"),url(/assets/fonts/fontawesome-webfont.woff2?v=4.7.0) format("woff2"),url(/assets/fonts/fontawesome-webfont.woff?v=4.7.0) format("woff"),url(/assets/fonts/fontawesome-webfont.ttf?v=4.7.0) format("truetype"),url(/assets/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa[_ngcontent-%COMP%]{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg[_ngcontent-%COMP%]{font-size:1.3333333333em;line-height:.75em;vertical-align:-15%}.fa-2x[_ngcontent-%COMP%]{font-size:2em}.fa-3x[_ngcontent-%COMP%]{font-size:3em}.fa-4x[_ngcontent-%COMP%]{font-size:4em}.fa-5x[_ngcontent-%COMP%]{font-size:5em}.fa-fw[_ngcontent-%COMP%]{width:1.2857142857em;text-align:center}.fa-ul[_ngcontent-%COMP%]{padding-left:0;margin-left:2.1428571429em;list-style-type:none}.fa-ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative}.fa-li[_ngcontent-%COMP%]{position:absolute;left:-2.1428571429em;width:2.1428571429em;top:.1428571429em;text-align:center}.fa-li.fa-lg[_ngcontent-%COMP%]{left:-1.8571428571em}.fa-border[_ngcontent-%COMP%]{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left[_ngcontent-%COMP%]{float:left}.fa-pull-right[_ngcontent-%COMP%]{float:right}.fa.fa-pull-left[_ngcontent-%COMP%]{margin-right:.3em}.fa.fa-pull-right[_ngcontent-%COMP%]{margin-left:.3em}.pull-right[_ngcontent-%COMP%]{float:right}.pull-left[_ngcontent-%COMP%]{float:left}.fa.pull-left[_ngcontent-%COMP%]{margin-right:.3em}.fa.pull-right[_ngcontent-%COMP%]{margin-left:.3em}.fa-spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fa-spin 2s infinite linear}.fa-pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fa-spin 1s infinite steps(8)}@keyframes _ngcontent-%COMP%_fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.fa-rotate-90[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";transform:scaleY(-1)}[_ngcontent-%COMP%]:root   .fa-rotate-90[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root   .fa-rotate-180[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root   .fa-rotate-270[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root   .fa-flip-horizontal[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root   .fa-flip-vertical[_ngcontent-%COMP%]{filter:none}.fa-stack[_ngcontent-%COMP%]{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x[_ngcontent-%COMP%], .fa-stack-2x[_ngcontent-%COMP%]{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x[_ngcontent-%COMP%]{line-height:inherit}.fa-stack-2x[_ngcontent-%COMP%]{font-size:2em}.fa-inverse[_ngcontent-%COMP%]{color:#fff}.fa-glass[_ngcontent-%COMP%]:before{content:"\\f000"}.fa-music[_ngcontent-%COMP%]:before{content:"\\f001"}.fa-search[_ngcontent-%COMP%]:before{content:"\\f002"}.fa-envelope-o[_ngcontent-%COMP%]:before{content:"\\f003"}.fa-heart[_ngcontent-%COMP%]:before{content:"\\f004"}.fa-star[_ngcontent-%COMP%]:before{content:"\\f005"}.fa-star-o[_ngcontent-%COMP%]:before{content:"\\f006"}.fa-user[_ngcontent-%COMP%]:before{content:"\\f007"}.fa-film[_ngcontent-%COMP%]:before{content:"\\f008"}.fa-th-large[_ngcontent-%COMP%]:before{content:"\\f009"}.fa-th[_ngcontent-%COMP%]:before{content:"\\f00a"}.fa-th-list[_ngcontent-%COMP%]:before{content:"\\f00b"}.fa-check[_ngcontent-%COMP%]:before{content:"\\f00c"}.fa-remove[_ngcontent-%COMP%]:before, .fa-close[_ngcontent-%COMP%]:before, .fa-times[_ngcontent-%COMP%]:before{content:"\\f00d"}.fa-search-plus[_ngcontent-%COMP%]:before{content:"\\f00e"}.fa-search-minus[_ngcontent-%COMP%]:before{content:"\\f010"}.fa-power-off[_ngcontent-%COMP%]:before{content:"\\f011"}.fa-signal[_ngcontent-%COMP%]:before{content:"\\f012"}.fa-gear[_ngcontent-%COMP%]:before, .fa-cog[_ngcontent-%COMP%]:before{content:"\\f013"}.fa-trash-o[_ngcontent-%COMP%]:before{content:"\\f014"}.fa-home[_ngcontent-%COMP%]:before{content:"\\f015"}.fa-file-o[_ngcontent-%COMP%]:before{content:"\\f016"}.fa-clock-o[_ngcontent-%COMP%]:before{content:"\\f017"}.fa-road[_ngcontent-%COMP%]:before{content:"\\f018"}.fa-download[_ngcontent-%COMP%]:before{content:"\\f019"}.fa-arrow-circle-o-down[_ngcontent-%COMP%]:before{content:"\\f01a"}.fa-arrow-circle-o-up[_ngcontent-%COMP%]:before{content:"\\f01b"}.fa-inbox[_ngcontent-%COMP%]:before{content:"\\f01c"}.fa-play-circle-o[_ngcontent-%COMP%]:before{content:"\\f01d"}.fa-rotate-right[_ngcontent-%COMP%]:before, .fa-repeat[_ngcontent-%COMP%]:before{content:"\\f01e"}.fa-refresh[_ngcontent-%COMP%]:before{content:"\\f021"}.fa-list-alt[_ngcontent-%COMP%]:before{content:"\\f022"}.fa-lock[_ngcontent-%COMP%]:before{content:"\\f023"}.fa-flag[_ngcontent-%COMP%]:before{content:"\\f024"}.fa-headphones[_ngcontent-%COMP%]:before{content:"\\f025"}.fa-volume-off[_ngcontent-%COMP%]:before{content:"\\f026"}.fa-volume-down[_ngcontent-%COMP%]:before{content:"\\f027"}.fa-volume-up[_ngcontent-%COMP%]:before{content:"\\f028"}.fa-qrcode[_ngcontent-%COMP%]:before{content:"\\f029"}.fa-barcode[_ngcontent-%COMP%]:before{content:"\\f02a"}.fa-tag[_ngcontent-%COMP%]:before{content:"\\f02b"}.fa-tags[_ngcontent-%COMP%]:before{content:"\\f02c"}.fa-book[_ngcontent-%COMP%]:before{content:"\\f02d"}.fa-bookmark[_ngcontent-%COMP%]:before{content:"\\f02e"}.fa-print[_ngcontent-%COMP%]:before{content:"\\f02f"}.fa-camera[_ngcontent-%COMP%]:before{content:"\\f030"}.fa-font[_ngcontent-%COMP%]:before{content:"\\f031"}.fa-bold[_ngcontent-%COMP%]:before{content:"\\f032"}.fa-italic[_ngcontent-%COMP%]:before{content:"\\f033"}.fa-text-height[_ngcontent-%COMP%]:before{content:"\\f034"}.fa-text-width[_ngcontent-%COMP%]:before{content:"\\f035"}.fa-align-left[_ngcontent-%COMP%]:before{content:"\\f036"}.fa-align-center[_ngcontent-%COMP%]:before{content:"\\f037"}.fa-align-right[_ngcontent-%COMP%]:before{content:"\\f038"}.fa-align-justify[_ngcontent-%COMP%]:before{content:"\\f039"}.fa-list[_ngcontent-%COMP%]:before{content:"\\f03a"}.fa-dedent[_ngcontent-%COMP%]:before, .fa-outdent[_ngcontent-%COMP%]:before{content:"\\f03b"}.fa-indent[_ngcontent-%COMP%]:before{content:"\\f03c"}.fa-video-camera[_ngcontent-%COMP%]:before{content:"\\f03d"}.fa-photo[_ngcontent-%COMP%]:before, .fa-image[_ngcontent-%COMP%]:before, .fa-picture-o[_ngcontent-%COMP%]:before{content:"\\f03e"}.fa-pencil[_ngcontent-%COMP%]:before{content:"\\f040"}.fa-map-marker[_ngcontent-%COMP%]:before{content:"\\f041"}.fa-adjust[_ngcontent-%COMP%]:before{content:"\\f042"}.fa-tint[_ngcontent-%COMP%]:before{content:"\\f043"}.fa-edit[_ngcontent-%COMP%]:before, .fa-pencil-square-o[_ngcontent-%COMP%]:before{content:"\\f044"}.fa-share-square-o[_ngcontent-%COMP%]:before{content:"\\f045"}.fa-check-square-o[_ngcontent-%COMP%]:before{content:"\\f046"}.fa-arrows[_ngcontent-%COMP%]:before{content:"\\f047"}.fa-step-backward[_ngcontent-%COMP%]:before{content:"\\f048"}.fa-fast-backward[_ngcontent-%COMP%]:before{content:"\\f049"}.fa-backward[_ngcontent-%COMP%]:before{content:"\\f04a"}.fa-play[_ngcontent-%COMP%]:before{content:"\\f04b"}.fa-pause[_ngcontent-%COMP%]:before{content:"\\f04c"}.fa-stop[_ngcontent-%COMP%]:before{content:"\\f04d"}.fa-forward[_ngcontent-%COMP%]:before{content:"\\f04e"}.fa-fast-forward[_ngcontent-%COMP%]:before{content:"\\f050"}.fa-step-forward[_ngcontent-%COMP%]:before{content:"\\f051"}.fa-eject[_ngcontent-%COMP%]:before{content:"\\f052"}.fa-chevron-left[_ngcontent-%COMP%]:before{content:"\\f053"}.fa-chevron-right[_ngcontent-%COMP%]:before{content:"\\f054"}.fa-plus-circle[_ngcontent-%COMP%]:before{content:"\\f055"}.fa-minus-circle[_ngcontent-%COMP%]:before{content:"\\f056"}.fa-times-circle[_ngcontent-%COMP%]:before{content:"\\f057"}.fa-check-circle[_ngcontent-%COMP%]:before{content:"\\f058"}.fa-question-circle[_ngcontent-%COMP%]:before{content:"\\f059"}.fa-info-circle[_ngcontent-%COMP%]:before{content:"\\f05a"}.fa-crosshairs[_ngcontent-%COMP%]:before{content:"\\f05b"}.fa-times-circle-o[_ngcontent-%COMP%]:before{content:"\\f05c"}.fa-check-circle-o[_ngcontent-%COMP%]:before{content:"\\f05d"}.fa-ban[_ngcontent-%COMP%]:before{content:"\\f05e"}.fa-arrow-left[_ngcontent-%COMP%]:before{content:"\\f060"}.fa-arrow-right[_ngcontent-%COMP%]:before{content:"\\f061"}.fa-arrow-up[_ngcontent-%COMP%]:before{content:"\\f062"}.fa-arrow-down[_ngcontent-%COMP%]:before{content:"\\f063"}.fa-mail-forward[_ngcontent-%COMP%]:before, .fa-share[_ngcontent-%COMP%]:before{content:"\\f064"}.fa-expand[_ngcontent-%COMP%]:before{content:"\\f065"}.fa-compress[_ngcontent-%COMP%]:before{content:"\\f066"}.fa-plus[_ngcontent-%COMP%]:before{content:"\\f067"}.fa-minus[_ngcontent-%COMP%]:before{content:"\\f068"}.fa-asterisk[_ngcontent-%COMP%]:before{content:"\\f069"}.fa-exclamation-circle[_ngcontent-%COMP%]:before{content:"\\f06a"}.fa-gift[_ngcontent-%COMP%]:before{content:"\\f06b"}.fa-leaf[_ngcontent-%COMP%]:before{content:"\\f06c"}.fa-fire[_ngcontent-%COMP%]:before{content:"\\f06d"}.fa-eye[_ngcontent-%COMP%]:before{content:"\\f06e"}.fa-eye-slash[_ngcontent-%COMP%]:before{content:"\\f070"}.fa-warning[_ngcontent-%COMP%]:before, .fa-exclamation-triangle[_ngcontent-%COMP%]:before{content:"\\f071"}.fa-plane[_ngcontent-%COMP%]:before{content:"\\f072"}.fa-calendar[_ngcontent-%COMP%]:before{content:"\\f073"}.fa-random[_ngcontent-%COMP%]:before{content:"\\f074"}.fa-comment[_ngcontent-%COMP%]:before{content:"\\f075"}.fa-magnet[_ngcontent-%COMP%]:before{content:"\\f076"}.fa-chevron-up[_ngcontent-%COMP%]:before{content:"\\f077"}.fa-chevron-down[_ngcontent-%COMP%]:before{content:"\\f078"}.fa-retweet[_ngcontent-%COMP%]:before{content:"\\f079"}.fa-shopping-cart[_ngcontent-%COMP%]:before{content:"\\f07a"}.fa-folder[_ngcontent-%COMP%]:before{content:"\\f07b"}.fa-folder-open[_ngcontent-%COMP%]:before{content:"\\f07c"}.fa-arrows-v[_ngcontent-%COMP%]:before{content:"\\f07d"}.fa-arrows-h[_ngcontent-%COMP%]:before{content:"\\f07e"}.fa-bar-chart-o[_ngcontent-%COMP%]:before, .fa-bar-chart[_ngcontent-%COMP%]:before{content:"\\f080"}.fa-twitter-square[_ngcontent-%COMP%]:before{content:"\\f081"}.fa-facebook-square[_ngcontent-%COMP%]:before{content:"\\f082"}.fa-camera-retro[_ngcontent-%COMP%]:before{content:"\\f083"}.fa-key[_ngcontent-%COMP%]:before{content:"\\f084"}.fa-gears[_ngcontent-%COMP%]:before, .fa-cogs[_ngcontent-%COMP%]:before{content:"\\f085"}.fa-comments[_ngcontent-%COMP%]:before{content:"\\f086"}.fa-thumbs-o-up[_ngcontent-%COMP%]:before{content:"\\f087"}.fa-thumbs-o-down[_ngcontent-%COMP%]:before{content:"\\f088"}.fa-star-half[_ngcontent-%COMP%]:before{content:"\\f089"}.fa-heart-o[_ngcontent-%COMP%]:before{content:"\\f08a"}.fa-sign-out[_ngcontent-%COMP%]:before{content:"\\f08b"}.fa-linkedin-square[_ngcontent-%COMP%]:before{content:"\\f08c"}.fa-thumb-tack[_ngcontent-%COMP%]:before{content:"\\f08d"}.fa-external-link[_ngcontent-%COMP%]:before{content:"\\f08e"}.fa-sign-in[_ngcontent-%COMP%]:before{content:"\\f090"}.fa-trophy[_ngcontent-%COMP%]:before{content:"\\f091"}.fa-github-square[_ngcontent-%COMP%]:before{content:"\\f092"}.fa-upload[_ngcontent-%COMP%]:before{content:"\\f093"}.fa-lemon-o[_ngcontent-%COMP%]:before{content:"\\f094"}.fa-phone[_ngcontent-%COMP%]:before{content:"\\f095"}.fa-square-o[_ngcontent-%COMP%]:before{content:"\\f096"}.fa-bookmark-o[_ngcontent-%COMP%]:before{content:"\\f097"}.fa-phone-square[_ngcontent-%COMP%]:before{content:"\\f098"}.fa-twitter[_ngcontent-%COMP%]:before{content:"\\f099"}.fa-facebook-f[_ngcontent-%COMP%]:before, .fa-facebook[_ngcontent-%COMP%]:before{content:"\\f09a"}.fa-github[_ngcontent-%COMP%]:before{content:"\\f09b"}.fa-unlock[_ngcontent-%COMP%]:before{content:"\\f09c"}.fa-credit-card[_ngcontent-%COMP%]:before{content:"\\f09d"}.fa-feed[_ngcontent-%COMP%]:before, .fa-rss[_ngcontent-%COMP%]:before{content:"\\f09e"}.fa-hdd-o[_ngcontent-%COMP%]:before{content:"\\f0a0"}.fa-bullhorn[_ngcontent-%COMP%]:before{content:"\\f0a1"}.fa-bell[_ngcontent-%COMP%]:before{content:"\\f0f3"}.fa-certificate[_ngcontent-%COMP%]:before{content:"\\f0a3"}.fa-hand-o-right[_ngcontent-%COMP%]:before{content:"\\f0a4"}.fa-hand-o-left[_ngcontent-%COMP%]:before{content:"\\f0a5"}.fa-hand-o-up[_ngcontent-%COMP%]:before{content:"\\f0a6"}.fa-hand-o-down[_ngcontent-%COMP%]:before{content:"\\f0a7"}.fa-arrow-circle-left[_ngcontent-%COMP%]:before{content:"\\f0a8"}.fa-arrow-circle-right[_ngcontent-%COMP%]:before{content:"\\f0a9"}.fa-arrow-circle-up[_ngcontent-%COMP%]:before{content:"\\f0aa"}.fa-arrow-circle-down[_ngcontent-%COMP%]:before{content:"\\f0ab"}.fa-globe[_ngcontent-%COMP%]:before{content:"\\f0ac"}.fa-wrench[_ngcontent-%COMP%]:before{content:"\\f0ad"}.fa-tasks[_ngcontent-%COMP%]:before{content:"\\f0ae"}.fa-filter[_ngcontent-%COMP%]:before{content:"\\f0b0"}.fa-briefcase[_ngcontent-%COMP%]:before{content:"\\f0b1"}.fa-arrows-alt[_ngcontent-%COMP%]:before{content:"\\f0b2"}.fa-group[_ngcontent-%COMP%]:before, .fa-users[_ngcontent-%COMP%]:before{content:"\\f0c0"}.fa-chain[_ngcontent-%COMP%]:before, .fa-link[_ngcontent-%COMP%]:before{content:"\\f0c1"}.fa-cloud[_ngcontent-%COMP%]:before{content:"\\f0c2"}.fa-flask[_ngcontent-%COMP%]:before{content:"\\f0c3"}.fa-cut[_ngcontent-%COMP%]:before, .fa-scissors[_ngcontent-%COMP%]:before{content:"\\f0c4"}.fa-copy[_ngcontent-%COMP%]:before, .fa-files-o[_ngcontent-%COMP%]:before{content:"\\f0c5"}.fa-paperclip[_ngcontent-%COMP%]:before{content:"\\f0c6"}.fa-save[_ngcontent-%COMP%]:before, .fa-floppy-o[_ngcontent-%COMP%]:before{content:"\\f0c7"}.fa-square[_ngcontent-%COMP%]:before{content:"\\f0c8"}.fa-navicon[_ngcontent-%COMP%]:before, .fa-reorder[_ngcontent-%COMP%]:before, .fa-bars[_ngcontent-%COMP%]:before{content:"\\f0c9"}.fa-list-ul[_ngcontent-%COMP%]:before{content:"\\f0ca"}.fa-list-ol[_ngcontent-%COMP%]:before{content:"\\f0cb"}.fa-strikethrough[_ngcontent-%COMP%]:before{content:"\\f0cc"}.fa-underline[_ngcontent-%COMP%]:before{content:"\\f0cd"}.fa-table[_ngcontent-%COMP%]:before{content:"\\f0ce"}.fa-magic[_ngcontent-%COMP%]:before{content:"\\f0d0"}.fa-truck[_ngcontent-%COMP%]:before{content:"\\f0d1"}.fa-pinterest[_ngcontent-%COMP%]:before{content:"\\f0d2"}.fa-pinterest-square[_ngcontent-%COMP%]:before{content:"\\f0d3"}.fa-google-plus-square[_ngcontent-%COMP%]:before{content:"\\f0d4"}.fa-google-plus[_ngcontent-%COMP%]:before{content:"\\f0d5"}.fa-money[_ngcontent-%COMP%]:before{content:"\\f0d6"}.fa-caret-down[_ngcontent-%COMP%]:before{content:"\\f0d7"}.fa-caret-up[_ngcontent-%COMP%]:before{content:"\\f0d8"}.fa-caret-left[_ngcontent-%COMP%]:before{content:"\\f0d9"}.fa-caret-right[_ngcontent-%COMP%]:before{content:"\\f0da"}.fa-columns[_ngcontent-%COMP%]:before{content:"\\f0db"}.fa-unsorted[_ngcontent-%COMP%]:before, .fa-sort[_ngcontent-%COMP%]:before{content:"\\f0dc"}.fa-sort-down[_ngcontent-%COMP%]:before, .fa-sort-desc[_ngcontent-%COMP%]:before{content:"\\f0dd"}.fa-sort-up[_ngcontent-%COMP%]:before, .fa-sort-asc[_ngcontent-%COMP%]:before{content:"\\f0de"}.fa-envelope[_ngcontent-%COMP%]:before{content:"\\f0e0"}.fa-linkedin[_ngcontent-%COMP%]:before{content:"\\f0e1"}.fa-rotate-left[_ngcontent-%COMP%]:before, .fa-undo[_ngcontent-%COMP%]:before{content:"\\f0e2"}.fa-legal[_ngcontent-%COMP%]:before, .fa-gavel[_ngcontent-%COMP%]:before{content:"\\f0e3"}.fa-dashboard[_ngcontent-%COMP%]:before, .fa-tachometer[_ngcontent-%COMP%]:before{content:"\\f0e4"}.fa-comment-o[_ngcontent-%COMP%]:before{content:"\\f0e5"}.fa-comments-o[_ngcontent-%COMP%]:before{content:"\\f0e6"}.fa-flash[_ngcontent-%COMP%]:before, .fa-bolt[_ngcontent-%COMP%]:before{content:"\\f0e7"}.fa-sitemap[_ngcontent-%COMP%]:before{content:"\\f0e8"}.fa-umbrella[_ngcontent-%COMP%]:before{content:"\\f0e9"}.fa-paste[_ngcontent-%COMP%]:before, .fa-clipboard[_ngcontent-%COMP%]:before{content:"\\f0ea"}.fa-lightbulb-o[_ngcontent-%COMP%]:before{content:"\\f0eb"}.fa-exchange[_ngcontent-%COMP%]:before{content:"\\f0ec"}.fa-cloud-download[_ngcontent-%COMP%]:before{content:"\\f0ed"}.fa-cloud-upload[_ngcontent-%COMP%]:before{content:"\\f0ee"}.fa-user-md[_ngcontent-%COMP%]:before{content:"\\f0f0"}.fa-stethoscope[_ngcontent-%COMP%]:before{content:"\\f0f1"}.fa-suitcase[_ngcontent-%COMP%]:before{content:"\\f0f2"}.fa-bell-o[_ngcontent-%COMP%]:before{content:"\\f0a2"}.fa-coffee[_ngcontent-%COMP%]:before{content:"\\f0f4"}.fa-cutlery[_ngcontent-%COMP%]:before{content:"\\f0f5"}.fa-file-text-o[_ngcontent-%COMP%]:before{content:"\\f0f6"}.fa-building-o[_ngcontent-%COMP%]:before{content:"\\f0f7"}.fa-hospital-o[_ngcontent-%COMP%]:before{content:"\\f0f8"}.fa-ambulance[_ngcontent-%COMP%]:before{content:"\\f0f9"}.fa-medkit[_ngcontent-%COMP%]:before{content:"\\f0fa"}.fa-fighter-jet[_ngcontent-%COMP%]:before{content:"\\f0fb"}.fa-beer[_ngcontent-%COMP%]:before{content:"\\f0fc"}.fa-h-square[_ngcontent-%COMP%]:before{content:"\\f0fd"}.fa-plus-square[_ngcontent-%COMP%]:before{content:"\\f0fe"}.fa-angle-double-left[_ngcontent-%COMP%]:before{content:"\\f100"}.fa-angle-double-right[_ngcontent-%COMP%]:before{content:"\\f101"}.fa-angle-double-up[_ngcontent-%COMP%]:before{content:"\\f102"}.fa-angle-double-down[_ngcontent-%COMP%]:before{content:"\\f103"}.fa-angle-left[_ngcontent-%COMP%]:before{content:"\\f104"}.fa-angle-right[_ngcontent-%COMP%]:before{content:"\\f105"}.fa-angle-up[_ngcontent-%COMP%]:before{content:"\\f106"}.fa-angle-down[_ngcontent-%COMP%]:before{content:"\\f107"}.fa-desktop[_ngcontent-%COMP%]:before{content:"\\f108"}.fa-laptop[_ngcontent-%COMP%]:before{content:"\\f109"}.fa-tablet[_ngcontent-%COMP%]:before{content:"\\f10a"}.fa-mobile-phone[_ngcontent-%COMP%]:before, .fa-mobile[_ngcontent-%COMP%]:before{content:"\\f10b"}.fa-circle-o[_ngcontent-%COMP%]:before{content:"\\f10c"}.fa-quote-left[_ngcontent-%COMP%]:before{content:"\\f10d"}.fa-quote-right[_ngcontent-%COMP%]:before{content:"\\f10e"}.fa-spinner[_ngcontent-%COMP%]:before{content:"\\f110"}.fa-circle[_ngcontent-%COMP%]:before{content:"\\f111"}.fa-mail-reply[_ngcontent-%COMP%]:before, .fa-reply[_ngcontent-%COMP%]:before{content:"\\f112"}.fa-github-alt[_ngcontent-%COMP%]:before{content:"\\f113"}.fa-folder-o[_ngcontent-%COMP%]:before{content:"\\f114"}.fa-folder-open-o[_ngcontent-%COMP%]:before{content:"\\f115"}.fa-smile-o[_ngcontent-%COMP%]:before{content:"\\f118"}.fa-frown-o[_ngcontent-%COMP%]:before{content:"\\f119"}.fa-meh-o[_ngcontent-%COMP%]:before{content:"\\f11a"}.fa-gamepad[_ngcontent-%COMP%]:before{content:"\\f11b"}.fa-keyboard-o[_ngcontent-%COMP%]:before{content:"\\f11c"}.fa-flag-o[_ngcontent-%COMP%]:before{content:"\\f11d"}.fa-flag-checkered[_ngcontent-%COMP%]:before{content:"\\f11e"}.fa-terminal[_ngcontent-%COMP%]:before{content:"\\f120"}.fa-code[_ngcontent-%COMP%]:before{content:"\\f121"}.fa-mail-reply-all[_ngcontent-%COMP%]:before, .fa-reply-all[_ngcontent-%COMP%]:before{content:"\\f122"}.fa-star-half-empty[_ngcontent-%COMP%]:before, .fa-star-half-full[_ngcontent-%COMP%]:before, .fa-star-half-o[_ngcontent-%COMP%]:before{content:"\\f123"}.fa-location-arrow[_ngcontent-%COMP%]:before{content:"\\f124"}.fa-crop[_ngcontent-%COMP%]:before{content:"\\f125"}.fa-code-fork[_ngcontent-%COMP%]:before{content:"\\f126"}.fa-unlink[_ngcontent-%COMP%]:before, .fa-chain-broken[_ngcontent-%COMP%]:before{content:"\\f127"}.fa-question[_ngcontent-%COMP%]:before{content:"\\f128"}.fa-info[_ngcontent-%COMP%]:before{content:"\\f129"}.fa-exclamation[_ngcontent-%COMP%]:before{content:"\\f12a"}.fa-superscript[_ngcontent-%COMP%]:before{content:"\\f12b"}.fa-subscript[_ngcontent-%COMP%]:before{content:"\\f12c"}.fa-eraser[_ngcontent-%COMP%]:before{content:"\\f12d"}.fa-puzzle-piece[_ngcontent-%COMP%]:before{content:"\\f12e"}.fa-microphone[_ngcontent-%COMP%]:before{content:"\\f130"}.fa-microphone-slash[_ngcontent-%COMP%]:before{content:"\\f131"}.fa-shield[_ngcontent-%COMP%]:before{content:"\\f132"}.fa-calendar-o[_ngcontent-%COMP%]:before{content:"\\f133"}.fa-fire-extinguisher[_ngcontent-%COMP%]:before{content:"\\f134"}.fa-rocket[_ngcontent-%COMP%]:before{content:"\\f135"}.fa-maxcdn[_ngcontent-%COMP%]:before{content:"\\f136"}.fa-chevron-circle-left[_ngcontent-%COMP%]:before{content:"\\f137"}.fa-chevron-circle-right[_ngcontent-%COMP%]:before{content:"\\f138"}.fa-chevron-circle-up[_ngcontent-%COMP%]:before{content:"\\f139"}.fa-chevron-circle-down[_ngcontent-%COMP%]:before{content:"\\f13a"}.fa-html5[_ngcontent-%COMP%]:before{content:"\\f13b"}.fa-css3[_ngcontent-%COMP%]:before{content:"\\f13c"}.fa-anchor[_ngcontent-%COMP%]:before{content:"\\f13d"}.fa-unlock-alt[_ngcontent-%COMP%]:before{content:"\\f13e"}.fa-bullseye[_ngcontent-%COMP%]:before{content:"\\f140"}.fa-ellipsis-h[_ngcontent-%COMP%]:before{content:"\\f141"}.fa-ellipsis-v[_ngcontent-%COMP%]:before{content:"\\f142"}.fa-rss-square[_ngcontent-%COMP%]:before{content:"\\f143"}.fa-play-circle[_ngcontent-%COMP%]:before{content:"\\f144"}.fa-ticket[_ngcontent-%COMP%]:before{content:"\\f145"}.fa-minus-square[_ngcontent-%COMP%]:before{content:"\\f146"}.fa-minus-square-o[_ngcontent-%COMP%]:before{content:"\\f147"}.fa-level-up[_ngcontent-%COMP%]:before{content:"\\f148"}.fa-level-down[_ngcontent-%COMP%]:before{content:"\\f149"}.fa-check-square[_ngcontent-%COMP%]:before{content:"\\f14a"}.fa-pencil-square[_ngcontent-%COMP%]:before{content:"\\f14b"}.fa-external-link-square[_ngcontent-%COMP%]:before{content:"\\f14c"}.fa-share-square[_ngcontent-%COMP%]:before{content:"\\f14d"}.fa-compass[_ngcontent-%COMP%]:before{content:"\\f14e"}.fa-toggle-down[_ngcontent-%COMP%]:before, .fa-caret-square-o-down[_ngcontent-%COMP%]:before{content:"\\f150"}.fa-toggle-up[_ngcontent-%COMP%]:before, .fa-caret-square-o-up[_ngcontent-%COMP%]:before{content:"\\f151"}.fa-toggle-right[_ngcontent-%COMP%]:before, .fa-caret-square-o-right[_ngcontent-%COMP%]:before{content:"\\f152"}.fa-euro[_ngcontent-%COMP%]:before, .fa-eur[_ngcontent-%COMP%]:before{content:"\\f153"}.fa-gbp[_ngcontent-%COMP%]:before{content:"\\f154"}.fa-dollar[_ngcontent-%COMP%]:before, .fa-usd[_ngcontent-%COMP%]:before{content:"\\f155"}.fa-rupee[_ngcontent-%COMP%]:before, .fa-inr[_ngcontent-%COMP%]:before{content:"\\f156"}.fa-cny[_ngcontent-%COMP%]:before, .fa-rmb[_ngcontent-%COMP%]:before, .fa-yen[_ngcontent-%COMP%]:before, .fa-jpy[_ngcontent-%COMP%]:before{content:"\\f157"}.fa-ruble[_ngcontent-%COMP%]:before, .fa-rouble[_ngcontent-%COMP%]:before, .fa-rub[_ngcontent-%COMP%]:before{content:"\\f158"}.fa-won[_ngcontent-%COMP%]:before, .fa-krw[_ngcontent-%COMP%]:before{content:"\\f159"}.fa-bitcoin[_ngcontent-%COMP%]:before, .fa-btc[_ngcontent-%COMP%]:before{content:"\\f15a"}.fa-file[_ngcontent-%COMP%]:before{content:"\\f15b"}.fa-file-text[_ngcontent-%COMP%]:before{content:"\\f15c"}.fa-sort-alpha-asc[_ngcontent-%COMP%]:before{content:"\\f15d"}.fa-sort-alpha-desc[_ngcontent-%COMP%]:before{content:"\\f15e"}.fa-sort-amount-asc[_ngcontent-%COMP%]:before{content:"\\f160"}.fa-sort-amount-desc[_ngcontent-%COMP%]:before{content:"\\f161"}.fa-sort-numeric-asc[_ngcontent-%COMP%]:before{content:"\\f162"}.fa-sort-numeric-desc[_ngcontent-%COMP%]:before{content:"\\f163"}.fa-thumbs-up[_ngcontent-%COMP%]:before{content:"\\f164"}.fa-thumbs-down[_ngcontent-%COMP%]:before{content:"\\f165"}.fa-youtube-square[_ngcontent-%COMP%]:before{content:"\\f166"}.fa-youtube[_ngcontent-%COMP%]:before{content:"\\f167"}.fa-xing[_ngcontent-%COMP%]:before{content:"\\f168"}.fa-xing-square[_ngcontent-%COMP%]:before{content:"\\f169"}.fa-youtube-play[_ngcontent-%COMP%]:before{content:"\\f16a"}.fa-dropbox[_ngcontent-%COMP%]:before{content:"\\f16b"}.fa-stack-overflow[_ngcontent-%COMP%]:before{content:"\\f16c"}.fa-instagram[_ngcontent-%COMP%]:before{content:"\\f16d"}.fa-flickr[_ngcontent-%COMP%]:before{content:"\\f16e"}.fa-adn[_ngcontent-%COMP%]:before{content:"\\f170"}.fa-bitbucket[_ngcontent-%COMP%]:before{content:"\\f171"}.fa-bitbucket-square[_ngcontent-%COMP%]:before{content:"\\f172"}.fa-tumblr[_ngcontent-%COMP%]:before{content:"\\f173"}.fa-tumblr-square[_ngcontent-%COMP%]:before{content:"\\f174"}.fa-long-arrow-down[_ngcontent-%COMP%]:before{content:"\\f175"}.fa-long-arrow-up[_ngcontent-%COMP%]:before{content:"\\f176"}.fa-long-arrow-left[_ngcontent-%COMP%]:before{content:"\\f177"}.fa-long-arrow-right[_ngcontent-%COMP%]:before{content:"\\f178"}.fa-apple[_ngcontent-%COMP%]:before{content:"\\f179"}.fa-windows[_ngcontent-%COMP%]:before{content:"\\f17a"}.fa-android[_ngcontent-%COMP%]:before{content:"\\f17b"}.fa-linux[_ngcontent-%COMP%]:before{content:"\\f17c"}.fa-dribbble[_ngcontent-%COMP%]:before{content:"\\f17d"}.fa-skype[_ngcontent-%COMP%]:before{content:"\\f17e"}.fa-foursquare[_ngcontent-%COMP%]:before{content:"\\f180"}.fa-trello[_ngcontent-%COMP%]:before{content:"\\f181"}.fa-female[_ngcontent-%COMP%]:before{content:"\\f182"}.fa-male[_ngcontent-%COMP%]:before{content:"\\f183"}.fa-gittip[_ngcontent-%COMP%]:before, .fa-gratipay[_ngcontent-%COMP%]:before{content:"\\f184"}.fa-sun-o[_ngcontent-%COMP%]:before{content:"\\f185"}.fa-moon-o[_ngcontent-%COMP%]:before{content:"\\f186"}.fa-archive[_ngcontent-%COMP%]:before{content:"\\f187"}.fa-bug[_ngcontent-%COMP%]:before{content:"\\f188"}.fa-vk[_ngcontent-%COMP%]:before{content:"\\f189"}.fa-weibo[_ngcontent-%COMP%]:before{content:"\\f18a"}.fa-renren[_ngcontent-%COMP%]:before{content:"\\f18b"}.fa-pagelines[_ngcontent-%COMP%]:before{content:"\\f18c"}.fa-stack-exchange[_ngcontent-%COMP%]:before{content:"\\f18d"}.fa-arrow-circle-o-right[_ngcontent-%COMP%]:before{content:"\\f18e"}.fa-arrow-circle-o-left[_ngcontent-%COMP%]:before{content:"\\f190"}.fa-toggle-left[_ngcontent-%COMP%]:before, .fa-caret-square-o-left[_ngcontent-%COMP%]:before{content:"\\f191"}.fa-dot-circle-o[_ngcontent-%COMP%]:before{content:"\\f192"}.fa-wheelchair[_ngcontent-%COMP%]:before{content:"\\f193"}.fa-vimeo-square[_ngcontent-%COMP%]:before{content:"\\f194"}.fa-turkish-lira[_ngcontent-%COMP%]:before, .fa-try[_ngcontent-%COMP%]:before{content:"\\f195"}.fa-plus-square-o[_ngcontent-%COMP%]:before{content:"\\f196"}.fa-space-shuttle[_ngcontent-%COMP%]:before{content:"\\f197"}.fa-slack[_ngcontent-%COMP%]:before{content:"\\f198"}.fa-envelope-square[_ngcontent-%COMP%]:before{content:"\\f199"}.fa-wordpress[_ngcontent-%COMP%]:before{content:"\\f19a"}.fa-openid[_ngcontent-%COMP%]:before{content:"\\f19b"}.fa-institution[_ngcontent-%COMP%]:before, .fa-bank[_ngcontent-%COMP%]:before, .fa-university[_ngcontent-%COMP%]:before{content:"\\f19c"}.fa-mortar-board[_ngcontent-%COMP%]:before, .fa-graduation-cap[_ngcontent-%COMP%]:before{content:"\\f19d"}.fa-yahoo[_ngcontent-%COMP%]:before{content:"\\f19e"}.fa-google[_ngcontent-%COMP%]:before{content:"\\f1a0"}.fa-reddit[_ngcontent-%COMP%]:before{content:"\\f1a1"}.fa-reddit-square[_ngcontent-%COMP%]:before{content:"\\f1a2"}.fa-stumbleupon-circle[_ngcontent-%COMP%]:before{content:"\\f1a3"}.fa-stumbleupon[_ngcontent-%COMP%]:before{content:"\\f1a4"}.fa-delicious[_ngcontent-%COMP%]:before{content:"\\f1a5"}.fa-digg[_ngcontent-%COMP%]:before{content:"\\f1a6"}.fa-pied-piper-pp[_ngcontent-%COMP%]:before{content:"\\f1a7"}.fa-pied-piper-alt[_ngcontent-%COMP%]:before{content:"\\f1a8"}.fa-drupal[_ngcontent-%COMP%]:before{content:"\\f1a9"}.fa-joomla[_ngcontent-%COMP%]:before{content:"\\f1aa"}.fa-language[_ngcontent-%COMP%]:before{content:"\\f1ab"}.fa-fax[_ngcontent-%COMP%]:before{content:"\\f1ac"}.fa-building[_ngcontent-%COMP%]:before{content:"\\f1ad"}.fa-child[_ngcontent-%COMP%]:before{content:"\\f1ae"}.fa-paw[_ngcontent-%COMP%]:before{content:"\\f1b0"}.fa-spoon[_ngcontent-%COMP%]:before{content:"\\f1b1"}.fa-cube[_ngcontent-%COMP%]:before{content:"\\f1b2"}.fa-cubes[_ngcontent-%COMP%]:before{content:"\\f1b3"}.fa-behance[_ngcontent-%COMP%]:before{content:"\\f1b4"}.fa-behance-square[_ngcontent-%COMP%]:before{content:"\\f1b5"}.fa-steam[_ngcontent-%COMP%]:before{content:"\\f1b6"}.fa-steam-square[_ngcontent-%COMP%]:before{content:"\\f1b7"}.fa-recycle[_ngcontent-%COMP%]:before{content:"\\f1b8"}.fa-automobile[_ngcontent-%COMP%]:before, .fa-car[_ngcontent-%COMP%]:before{content:"\\f1b9"}.fa-cab[_ngcontent-%COMP%]:before, .fa-taxi[_ngcontent-%COMP%]:before{content:"\\f1ba"}.fa-tree[_ngcontent-%COMP%]:before{content:"\\f1bb"}.fa-spotify[_ngcontent-%COMP%]:before{content:"\\f1bc"}.fa-deviantart[_ngcontent-%COMP%]:before{content:"\\f1bd"}.fa-soundcloud[_ngcontent-%COMP%]:before{content:"\\f1be"}.fa-database[_ngcontent-%COMP%]:before{content:"\\f1c0"}.fa-file-pdf-o[_ngcontent-%COMP%]:before{content:"\\f1c1"}.fa-file-word-o[_ngcontent-%COMP%]:before{content:"\\f1c2"}.fa-file-excel-o[_ngcontent-%COMP%]:before{content:"\\f1c3"}.fa-file-powerpoint-o[_ngcontent-%COMP%]:before{content:"\\f1c4"}.fa-file-photo-o[_ngcontent-%COMP%]:before, .fa-file-picture-o[_ngcontent-%COMP%]:before, .fa-file-image-o[_ngcontent-%COMP%]:before{content:"\\f1c5"}.fa-file-zip-o[_ngcontent-%COMP%]:before, .fa-file-archive-o[_ngcontent-%COMP%]:before{content:"\\f1c6"}.fa-file-sound-o[_ngcontent-%COMP%]:before, .fa-file-audio-o[_ngcontent-%COMP%]:before{content:"\\f1c7"}.fa-file-movie-o[_ngcontent-%COMP%]:before, .fa-file-video-o[_ngcontent-%COMP%]:before{content:"\\f1c8"}.fa-file-code-o[_ngcontent-%COMP%]:before{content:"\\f1c9"}.fa-vine[_ngcontent-%COMP%]:before{content:"\\f1ca"}.fa-codepen[_ngcontent-%COMP%]:before{content:"\\f1cb"}.fa-jsfiddle[_ngcontent-%COMP%]:before{content:"\\f1cc"}.fa-life-bouy[_ngcontent-%COMP%]:before, .fa-life-buoy[_ngcontent-%COMP%]:before, .fa-life-saver[_ngcontent-%COMP%]:before, .fa-support[_ngcontent-%COMP%]:before, .fa-life-ring[_ngcontent-%COMP%]:before{content:"\\f1cd"}.fa-circle-o-notch[_ngcontent-%COMP%]:before{content:"\\f1ce"}.fa-ra[_ngcontent-%COMP%]:before, .fa-resistance[_ngcontent-%COMP%]:before, .fa-rebel[_ngcontent-%COMP%]:before{content:"\\f1d0"}.fa-ge[_ngcontent-%COMP%]:before, .fa-empire[_ngcontent-%COMP%]:before{content:"\\f1d1"}.fa-git-square[_ngcontent-%COMP%]:before{content:"\\f1d2"}.fa-git[_ngcontent-%COMP%]:before{content:"\\f1d3"}.fa-y-combinator-square[_ngcontent-%COMP%]:before, .fa-yc-square[_ngcontent-%COMP%]:before, .fa-hacker-news[_ngcontent-%COMP%]:before{content:"\\f1d4"}.fa-tencent-weibo[_ngcontent-%COMP%]:before{content:"\\f1d5"}.fa-qq[_ngcontent-%COMP%]:before{content:"\\f1d6"}.fa-wechat[_ngcontent-%COMP%]:before, .fa-weixin[_ngcontent-%COMP%]:before{content:"\\f1d7"}.fa-send[_ngcontent-%COMP%]:before, .fa-paper-plane[_ngcontent-%COMP%]:before{content:"\\f1d8"}.fa-send-o[_ngcontent-%COMP%]:before, .fa-paper-plane-o[_ngcontent-%COMP%]:before{content:"\\f1d9"}.fa-history[_ngcontent-%COMP%]:before{content:"\\f1da"}.fa-circle-thin[_ngcontent-%COMP%]:before{content:"\\f1db"}.fa-header[_ngcontent-%COMP%]:before{content:"\\f1dc"}.fa-paragraph[_ngcontent-%COMP%]:before{content:"\\f1dd"}.fa-sliders[_ngcontent-%COMP%]:before{content:"\\f1de"}.fa-share-alt[_ngcontent-%COMP%]:before{content:"\\f1e0"}.fa-share-alt-square[_ngcontent-%COMP%]:before{content:"\\f1e1"}.fa-bomb[_ngcontent-%COMP%]:before{content:"\\f1e2"}.fa-soccer-ball-o[_ngcontent-%COMP%]:before, .fa-futbol-o[_ngcontent-%COMP%]:before{content:"\\f1e3"}.fa-tty[_ngcontent-%COMP%]:before{content:"\\f1e4"}.fa-binoculars[_ngcontent-%COMP%]:before{content:"\\f1e5"}.fa-plug[_ngcontent-%COMP%]:before{content:"\\f1e6"}.fa-slideshare[_ngcontent-%COMP%]:before{content:"\\f1e7"}.fa-twitch[_ngcontent-%COMP%]:before{content:"\\f1e8"}.fa-yelp[_ngcontent-%COMP%]:before{content:"\\f1e9"}.fa-newspaper-o[_ngcontent-%COMP%]:before{content:"\\f1ea"}.fa-wifi[_ngcontent-%COMP%]:before{content:"\\f1eb"}.fa-calculator[_ngcontent-%COMP%]:before{content:"\\f1ec"}.fa-paypal[_ngcontent-%COMP%]:before{content:"\\f1ed"}.fa-google-wallet[_ngcontent-%COMP%]:before{content:"\\f1ee"}.fa-cc-visa[_ngcontent-%COMP%]:before{content:"\\f1f0"}.fa-cc-mastercard[_ngcontent-%COMP%]:before{content:"\\f1f1"}.fa-cc-discover[_ngcontent-%COMP%]:before{content:"\\f1f2"}.fa-cc-amex[_ngcontent-%COMP%]:before{content:"\\f1f3"}.fa-cc-paypal[_ngcontent-%COMP%]:before{content:"\\f1f4"}.fa-cc-stripe[_ngcontent-%COMP%]:before{content:"\\f1f5"}.fa-bell-slash[_ngcontent-%COMP%]:before{content:"\\f1f6"}.fa-bell-slash-o[_ngcontent-%COMP%]:before{content:"\\f1f7"}.fa-trash[_ngcontent-%COMP%]:before{content:"\\f1f8"}.fa-copyright[_ngcontent-%COMP%]:before{content:"\\f1f9"}.fa-at[_ngcontent-%COMP%]:before{content:"\\f1fa"}.fa-eyedropper[_ngcontent-%COMP%]:before{content:"\\f1fb"}.fa-paint-brush[_ngcontent-%COMP%]:before{content:"\\f1fc"}.fa-birthday-cake[_ngcontent-%COMP%]:before{content:"\\f1fd"}.fa-area-chart[_ngcontent-%COMP%]:before{content:"\\f1fe"}.fa-pie-chart[_ngcontent-%COMP%]:before{content:"\\f200"}.fa-line-chart[_ngcontent-%COMP%]:before{content:"\\f201"}.fa-lastfm[_ngcontent-%COMP%]:before{content:"\\f202"}.fa-lastfm-square[_ngcontent-%COMP%]:before{content:"\\f203"}.fa-toggle-off[_ngcontent-%COMP%]:before{content:"\\f204"}.fa-toggle-on[_ngcontent-%COMP%]:before{content:"\\f205"}.fa-bicycle[_ngcontent-%COMP%]:before{content:"\\f206"}.fa-bus[_ngcontent-%COMP%]:before{content:"\\f207"}.fa-ioxhost[_ngcontent-%COMP%]:before{content:"\\f208"}.fa-angellist[_ngcontent-%COMP%]:before{content:"\\f209"}.fa-cc[_ngcontent-%COMP%]:before{content:"\\f20a"}.fa-shekel[_ngcontent-%COMP%]:before, .fa-sheqel[_ngcontent-%COMP%]:before, .fa-ils[_ngcontent-%COMP%]:before{content:"\\f20b"}.fa-meanpath[_ngcontent-%COMP%]:before{content:"\\f20c"}.fa-buysellads[_ngcontent-%COMP%]:before{content:"\\f20d"}.fa-connectdevelop[_ngcontent-%COMP%]:before{content:"\\f20e"}.fa-dashcube[_ngcontent-%COMP%]:before{content:"\\f210"}.fa-forumbee[_ngcontent-%COMP%]:before{content:"\\f211"}.fa-leanpub[_ngcontent-%COMP%]:before{content:"\\f212"}.fa-sellsy[_ngcontent-%COMP%]:before{content:"\\f213"}.fa-shirtsinbulk[_ngcontent-%COMP%]:before{content:"\\f214"}.fa-simplybuilt[_ngcontent-%COMP%]:before{content:"\\f215"}.fa-skyatlas[_ngcontent-%COMP%]:before{content:"\\f216"}.fa-cart-plus[_ngcontent-%COMP%]:before{content:"\\f217"}.fa-cart-arrow-down[_ngcontent-%COMP%]:before{content:"\\f218"}.fa-diamond[_ngcontent-%COMP%]:before{content:"\\f219"}.fa-ship[_ngcontent-%COMP%]:before{content:"\\f21a"}.fa-user-secret[_ngcontent-%COMP%]:before{content:"\\f21b"}.fa-motorcycle[_ngcontent-%COMP%]:before{content:"\\f21c"}.fa-street-view[_ngcontent-%COMP%]:before{content:"\\f21d"}.fa-heartbeat[_ngcontent-%COMP%]:before{content:"\\f21e"}.fa-venus[_ngcontent-%COMP%]:before{content:"\\f221"}.fa-mars[_ngcontent-%COMP%]:before{content:"\\f222"}.fa-mercury[_ngcontent-%COMP%]:before{content:"\\f223"}.fa-intersex[_ngcontent-%COMP%]:before, .fa-transgender[_ngcontent-%COMP%]:before{content:"\\f224"}.fa-transgender-alt[_ngcontent-%COMP%]:before{content:"\\f225"}.fa-venus-double[_ngcontent-%COMP%]:before{content:"\\f226"}.fa-mars-double[_ngcontent-%COMP%]:before{content:"\\f227"}.fa-venus-mars[_ngcontent-%COMP%]:before{content:"\\f228"}.fa-mars-stroke[_ngcontent-%COMP%]:before{content:"\\f229"}.fa-mars-stroke-v[_ngcontent-%COMP%]:before{content:"\\f22a"}.fa-mars-stroke-h[_ngcontent-%COMP%]:before{content:"\\f22b"}.fa-neuter[_ngcontent-%COMP%]:before{content:"\\f22c"}.fa-genderless[_ngcontent-%COMP%]:before{content:"\\f22d"}.fa-facebook-official[_ngcontent-%COMP%]:before{content:"\\f230"}.fa-pinterest-p[_ngcontent-%COMP%]:before{content:"\\f231"}.fa-whatsapp[_ngcontent-%COMP%]:before{content:"\\f232"}.fa-server[_ngcontent-%COMP%]:before{content:"\\f233"}.fa-user-plus[_ngcontent-%COMP%]:before{content:"\\f234"}.fa-user-times[_ngcontent-%COMP%]:before{content:"\\f235"}.fa-hotel[_ngcontent-%COMP%]:before, .fa-bed[_ngcontent-%COMP%]:before{content:"\\f236"}.fa-viacoin[_ngcontent-%COMP%]:before{content:"\\f237"}.fa-train[_ngcontent-%COMP%]:before{content:"\\f238"}.fa-subway[_ngcontent-%COMP%]:before{content:"\\f239"}.fa-medium[_ngcontent-%COMP%]:before{content:"\\f23a"}.fa-yc[_ngcontent-%COMP%]:before, .fa-y-combinator[_ngcontent-%COMP%]:before{content:"\\f23b"}.fa-optin-monster[_ngcontent-%COMP%]:before{content:"\\f23c"}.fa-opencart[_ngcontent-%COMP%]:before{content:"\\f23d"}.fa-expeditedssl[_ngcontent-%COMP%]:before{content:"\\f23e"}.fa-battery-4[_ngcontent-%COMP%]:before, .fa-battery[_ngcontent-%COMP%]:before, .fa-battery-full[_ngcontent-%COMP%]:before{content:"\\f240"}.fa-battery-3[_ngcontent-%COMP%]:before, .fa-battery-three-quarters[_ngcontent-%COMP%]:before{content:"\\f241"}.fa-battery-2[_ngcontent-%COMP%]:before, .fa-battery-half[_ngcontent-%COMP%]:before{content:"\\f242"}.fa-battery-1[_ngcontent-%COMP%]:before, .fa-battery-quarter[_ngcontent-%COMP%]:before{content:"\\f243"}.fa-battery-0[_ngcontent-%COMP%]:before, .fa-battery-empty[_ngcontent-%COMP%]:before{content:"\\f244"}.fa-mouse-pointer[_ngcontent-%COMP%]:before{content:"\\f245"}.fa-i-cursor[_ngcontent-%COMP%]:before{content:"\\f246"}.fa-object-group[_ngcontent-%COMP%]:before{content:"\\f247"}.fa-object-ungroup[_ngcontent-%COMP%]:before{content:"\\f248"}.fa-sticky-note[_ngcontent-%COMP%]:before{content:"\\f249"}.fa-sticky-note-o[_ngcontent-%COMP%]:before{content:"\\f24a"}.fa-cc-jcb[_ngcontent-%COMP%]:before{content:"\\f24b"}.fa-cc-diners-club[_ngcontent-%COMP%]:before{content:"\\f24c"}.fa-clone[_ngcontent-%COMP%]:before{content:"\\f24d"}.fa-balance-scale[_ngcontent-%COMP%]:before{content:"\\f24e"}.fa-hourglass-o[_ngcontent-%COMP%]:before{content:"\\f250"}.fa-hourglass-1[_ngcontent-%COMP%]:before, .fa-hourglass-start[_ngcontent-%COMP%]:before{content:"\\f251"}.fa-hourglass-2[_ngcontent-%COMP%]:before, .fa-hourglass-half[_ngcontent-%COMP%]:before{content:"\\f252"}.fa-hourglass-3[_ngcontent-%COMP%]:before, .fa-hourglass-end[_ngcontent-%COMP%]:before{content:"\\f253"}.fa-hourglass[_ngcontent-%COMP%]:before{content:"\\f254"}.fa-hand-grab-o[_ngcontent-%COMP%]:before, .fa-hand-rock-o[_ngcontent-%COMP%]:before{content:"\\f255"}.fa-hand-stop-o[_ngcontent-%COMP%]:before, .fa-hand-paper-o[_ngcontent-%COMP%]:before{content:"\\f256"}.fa-hand-scissors-o[_ngcontent-%COMP%]:before{content:"\\f257"}.fa-hand-lizard-o[_ngcontent-%COMP%]:before{content:"\\f258"}.fa-hand-spock-o[_ngcontent-%COMP%]:before{content:"\\f259"}.fa-hand-pointer-o[_ngcontent-%COMP%]:before{content:"\\f25a"}.fa-hand-peace-o[_ngcontent-%COMP%]:before{content:"\\f25b"}.fa-trademark[_ngcontent-%COMP%]:before{content:"\\f25c"}.fa-registered[_ngcontent-%COMP%]:before{content:"\\f25d"}.fa-creative-commons[_ngcontent-%COMP%]:before{content:"\\f25e"}.fa-gg[_ngcontent-%COMP%]:before{content:"\\f260"}.fa-gg-circle[_ngcontent-%COMP%]:before{content:"\\f261"}.fa-tripadvisor[_ngcontent-%COMP%]:before{content:"\\f262"}.fa-odnoklassniki[_ngcontent-%COMP%]:before{content:"\\f263"}.fa-odnoklassniki-square[_ngcontent-%COMP%]:before{content:"\\f264"}.fa-get-pocket[_ngcontent-%COMP%]:before{content:"\\f265"}.fa-wikipedia-w[_ngcontent-%COMP%]:before{content:"\\f266"}.fa-safari[_ngcontent-%COMP%]:before{content:"\\f267"}.fa-chrome[_ngcontent-%COMP%]:before{content:"\\f268"}.fa-firefox[_ngcontent-%COMP%]:before{content:"\\f269"}.fa-opera[_ngcontent-%COMP%]:before{content:"\\f26a"}.fa-internet-explorer[_ngcontent-%COMP%]:before{content:"\\f26b"}.fa-tv[_ngcontent-%COMP%]:before, .fa-television[_ngcontent-%COMP%]:before{content:"\\f26c"}.fa-contao[_ngcontent-%COMP%]:before{content:"\\f26d"}.fa-500px[_ngcontent-%COMP%]:before{content:"\\f26e"}.fa-amazon[_ngcontent-%COMP%]:before{content:"\\f270"}.fa-calendar-plus-o[_ngcontent-%COMP%]:before{content:"\\f271"}.fa-calendar-minus-o[_ngcontent-%COMP%]:before{content:"\\f272"}.fa-calendar-times-o[_ngcontent-%COMP%]:before{content:"\\f273"}.fa-calendar-check-o[_ngcontent-%COMP%]:before{content:"\\f274"}.fa-industry[_ngcontent-%COMP%]:before{content:"\\f275"}.fa-map-pin[_ngcontent-%COMP%]:before{content:"\\f276"}.fa-map-signs[_ngcontent-%COMP%]:before{content:"\\f277"}.fa-map-o[_ngcontent-%COMP%]:before{content:"\\f278"}.fa-map[_ngcontent-%COMP%]:before{content:"\\f279"}.fa-commenting[_ngcontent-%COMP%]:before{content:"\\f27a"}.fa-commenting-o[_ngcontent-%COMP%]:before{content:"\\f27b"}.fa-houzz[_ngcontent-%COMP%]:before{content:"\\f27c"}.fa-vimeo[_ngcontent-%COMP%]:before{content:"\\f27d"}.fa-black-tie[_ngcontent-%COMP%]:before{content:"\\f27e"}.fa-fonticons[_ngcontent-%COMP%]:before{content:"\\f280"}.fa-reddit-alien[_ngcontent-%COMP%]:before{content:"\\f281"}.fa-edge[_ngcontent-%COMP%]:before{content:"\\f282"}.fa-credit-card-alt[_ngcontent-%COMP%]:before{content:"\\f283"}.fa-codiepie[_ngcontent-%COMP%]:before{content:"\\f284"}.fa-modx[_ngcontent-%COMP%]:before{content:"\\f285"}.fa-fort-awesome[_ngcontent-%COMP%]:before{content:"\\f286"}.fa-usb[_ngcontent-%COMP%]:before{content:"\\f287"}.fa-product-hunt[_ngcontent-%COMP%]:before{content:"\\f288"}.fa-mixcloud[_ngcontent-%COMP%]:before{content:"\\f289"}.fa-scribd[_ngcontent-%COMP%]:before{content:"\\f28a"}.fa-pause-circle[_ngcontent-%COMP%]:before{content:"\\f28b"}.fa-pause-circle-o[_ngcontent-%COMP%]:before{content:"\\f28c"}.fa-stop-circle[_ngcontent-%COMP%]:before{content:"\\f28d"}.fa-stop-circle-o[_ngcontent-%COMP%]:before{content:"\\f28e"}.fa-shopping-bag[_ngcontent-%COMP%]:before{content:"\\f290"}.fa-shopping-basket[_ngcontent-%COMP%]:before{content:"\\f291"}.fa-hashtag[_ngcontent-%COMP%]:before{content:"\\f292"}.fa-bluetooth[_ngcontent-%COMP%]:before{content:"\\f293"}.fa-bluetooth-b[_ngcontent-%COMP%]:before{content:"\\f294"}.fa-percent[_ngcontent-%COMP%]:before{content:"\\f295"}.fa-gitlab[_ngcontent-%COMP%]:before{content:"\\f296"}.fa-wpbeginner[_ngcontent-%COMP%]:before{content:"\\f297"}.fa-wpforms[_ngcontent-%COMP%]:before{content:"\\f298"}.fa-envira[_ngcontent-%COMP%]:before{content:"\\f299"}.fa-universal-access[_ngcontent-%COMP%]:before{content:"\\f29a"}.fa-wheelchair-alt[_ngcontent-%COMP%]:before{content:"\\f29b"}.fa-question-circle-o[_ngcontent-%COMP%]:before{content:"\\f29c"}.fa-blind[_ngcontent-%COMP%]:before{content:"\\f29d"}.fa-audio-description[_ngcontent-%COMP%]:before{content:"\\f29e"}.fa-volume-control-phone[_ngcontent-%COMP%]:before{content:"\\f2a0"}.fa-braille[_ngcontent-%COMP%]:before{content:"\\f2a1"}.fa-assistive-listening-systems[_ngcontent-%COMP%]:before{content:"\\f2a2"}.fa-asl-interpreting[_ngcontent-%COMP%]:before, .fa-american-sign-language-interpreting[_ngcontent-%COMP%]:before{content:"\\f2a3"}.fa-deafness[_ngcontent-%COMP%]:before, .fa-hard-of-hearing[_ngcontent-%COMP%]:before, .fa-deaf[_ngcontent-%COMP%]:before{content:"\\f2a4"}.fa-glide[_ngcontent-%COMP%]:before{content:"\\f2a5"}.fa-glide-g[_ngcontent-%COMP%]:before{content:"\\f2a6"}.fa-signing[_ngcontent-%COMP%]:before, .fa-sign-language[_ngcontent-%COMP%]:before{content:"\\f2a7"}.fa-low-vision[_ngcontent-%COMP%]:before{content:"\\f2a8"}.fa-viadeo[_ngcontent-%COMP%]:before{content:"\\f2a9"}.fa-viadeo-square[_ngcontent-%COMP%]:before{content:"\\f2aa"}.fa-snapchat[_ngcontent-%COMP%]:before{content:"\\f2ab"}.fa-snapchat-ghost[_ngcontent-%COMP%]:before{content:"\\f2ac"}.fa-snapchat-square[_ngcontent-%COMP%]:before{content:"\\f2ad"}.fa-pied-piper[_ngcontent-%COMP%]:before{content:"\\f2ae"}.fa-first-order[_ngcontent-%COMP%]:before{content:"\\f2b0"}.fa-yoast[_ngcontent-%COMP%]:before{content:"\\f2b1"}.fa-themeisle[_ngcontent-%COMP%]:before{content:"\\f2b2"}.fa-google-plus-circle[_ngcontent-%COMP%]:before, .fa-google-plus-official[_ngcontent-%COMP%]:before{content:"\\f2b3"}.fa-fa[_ngcontent-%COMP%]:before, .fa-font-awesome[_ngcontent-%COMP%]:before{content:"\\f2b4"}.fa-handshake-o[_ngcontent-%COMP%]:before{content:"\\f2b5"}.fa-envelope-open[_ngcontent-%COMP%]:before{content:"\\f2b6"}.fa-envelope-open-o[_ngcontent-%COMP%]:before{content:"\\f2b7"}.fa-linode[_ngcontent-%COMP%]:before{content:"\\f2b8"}.fa-address-book[_ngcontent-%COMP%]:before{content:"\\f2b9"}.fa-address-book-o[_ngcontent-%COMP%]:before{content:"\\f2ba"}.fa-vcard[_ngcontent-%COMP%]:before, .fa-address-card[_ngcontent-%COMP%]:before{content:"\\f2bb"}.fa-vcard-o[_ngcontent-%COMP%]:before, .fa-address-card-o[_ngcontent-%COMP%]:before{content:"\\f2bc"}.fa-user-circle[_ngcontent-%COMP%]:before{content:"\\f2bd"}.fa-user-circle-o[_ngcontent-%COMP%]:before{content:"\\f2be"}.fa-user-o[_ngcontent-%COMP%]:before{content:"\\f2c0"}.fa-id-badge[_ngcontent-%COMP%]:before{content:"\\f2c1"}.fa-drivers-license[_ngcontent-%COMP%]:before, .fa-id-card[_ngcontent-%COMP%]:before{content:"\\f2c2"}.fa-drivers-license-o[_ngcontent-%COMP%]:before, .fa-id-card-o[_ngcontent-%COMP%]:before{content:"\\f2c3"}.fa-quora[_ngcontent-%COMP%]:before{content:"\\f2c4"}.fa-free-code-camp[_ngcontent-%COMP%]:before{content:"\\f2c5"}.fa-telegram[_ngcontent-%COMP%]:before{content:"\\f2c6"}.fa-thermometer-4[_ngcontent-%COMP%]:before, .fa-thermometer[_ngcontent-%COMP%]:before, .fa-thermometer-full[_ngcontent-%COMP%]:before{content:"\\f2c7"}.fa-thermometer-3[_ngcontent-%COMP%]:before, .fa-thermometer-three-quarters[_ngcontent-%COMP%]:before{content:"\\f2c8"}.fa-thermometer-2[_ngcontent-%COMP%]:before, .fa-thermometer-half[_ngcontent-%COMP%]:before{content:"\\f2c9"}.fa-thermometer-1[_ngcontent-%COMP%]:before, .fa-thermometer-quarter[_ngcontent-%COMP%]:before{content:"\\f2ca"}.fa-thermometer-0[_ngcontent-%COMP%]:before, .fa-thermometer-empty[_ngcontent-%COMP%]:before{content:"\\f2cb"}.fa-shower[_ngcontent-%COMP%]:before{content:"\\f2cc"}.fa-bathtub[_ngcontent-%COMP%]:before, .fa-s15[_ngcontent-%COMP%]:before, .fa-bath[_ngcontent-%COMP%]:before{content:"\\f2cd"}.fa-podcast[_ngcontent-%COMP%]:before{content:"\\f2ce"}.fa-window-maximize[_ngcontent-%COMP%]:before{content:"\\f2d0"}.fa-window-minimize[_ngcontent-%COMP%]:before{content:"\\f2d1"}.fa-window-restore[_ngcontent-%COMP%]:before{content:"\\f2d2"}.fa-times-rectangle[_ngcontent-%COMP%]:before, .fa-window-close[_ngcontent-%COMP%]:before{content:"\\f2d3"}.fa-times-rectangle-o[_ngcontent-%COMP%]:before, .fa-window-close-o[_ngcontent-%COMP%]:before{content:"\\f2d4"}.fa-bandcamp[_ngcontent-%COMP%]:before{content:"\\f2d5"}.fa-grav[_ngcontent-%COMP%]:before{content:"\\f2d6"}.fa-etsy[_ngcontent-%COMP%]:before{content:"\\f2d7"}.fa-imdb[_ngcontent-%COMP%]:before{content:"\\f2d8"}.fa-ravelry[_ngcontent-%COMP%]:before{content:"\\f2d9"}.fa-eercast[_ngcontent-%COMP%]:before{content:"\\f2da"}.fa-microchip[_ngcontent-%COMP%]:before{content:"\\f2db"}.fa-snowflake-o[_ngcontent-%COMP%]:before{content:"\\f2dc"}.fa-superpowers[_ngcontent-%COMP%]:before{content:"\\f2dd"}.fa-wpexplorer[_ngcontent-%COMP%]:before{content:"\\f2de"}.fa-meetup[_ngcontent-%COMP%]:before{content:"\\f2e0"}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable[_ngcontent-%COMP%]:active, .sr-only-focusable[_ngcontent-%COMP%]:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}a[_ngcontent-%COMP%]{cursor:pointer}.angular-editor-textarea[_ngcontent-%COMP%]{min-height:150px;overflow:auto;margin-top:5px;resize:vertical}.angular-editor-textarea[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:0;right:0;display:block;width:8px;height:8px;cursor:nwse-resize;background-color:#ffffff80}.angular-editor-toolbar[_ngcontent-%COMP%]{font:100 14px/15px Roboto,Arial,sans-serif;background-color:#f5f5f5;font-size:.8rem;padding:.2rem;border:1px solid #ddd}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]{display:none;margin-right:5px;vertical-align:baseline}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]{background-color:#fff;vertical-align:middle;border:1px solid #ddd;padding:.4rem;min-width:2rem;float:left}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:focus, .angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button.focus[_ngcontent-%COMP%]{outline:0}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:disabled > .color-label[_ngcontent-%COMP%]{pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:disabled > .color-label.foreground[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:after{background:#555555}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button[_ngcontent-%COMP%]:disabled > .color-label.background[_ngcontent-%COMP%]{background:#555555}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button.active[_ngcontent-%COMP%]{background:#fff5b9}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .angular-editor-button.active[_ngcontent-%COMP%]:hover{background-color:#fffa98}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{font-size:11px;width:90px;vertical-align:middle;background-color:transparent;border:.5px solid rgba(255,255,255,0);border-radius:5px;outline:none;padding:.4rem;cursor:pointer}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]{display:inline-block;width:90px}@supports not (-moz-appearance: none){.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   optgroup[_ngcontent-%COMP%]{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{border:1px solid;background-color:#fff}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .default[_ngcontent-%COMP%]{font-size:16px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h1[_ngcontent-%COMP%]{font-size:24px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h2[_ngcontent-%COMP%]{font-size:20px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h3[_ngcontent-%COMP%]{font-size:16px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h4[_ngcontent-%COMP%]{font-size:15px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h5[_ngcontent-%COMP%]{font-size:14px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .h6[_ngcontent-%COMP%]{font-size:13px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .div[_ngcontent-%COMP%], .angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]   .pre[_ngcontent-%COMP%]{font-size:12px}}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-heading[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]{display:inline-block;width:90px}@supports not (-moz-appearance: none){.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]   optgroup[_ngcontent-%COMP%]{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{border:1px solid;background-color:#fff}}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]{display:inline-block;width:50px}@supports not (-moz-appearance: none){.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   optgroup[_ngcontent-%COMP%]{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{border:1px solid;background-color:#fff}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size1[_ngcontent-%COMP%]{font-size:10px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size2[_ngcontent-%COMP%]{font-size:12px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size3[_ngcontent-%COMP%]{font-size:14px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size4[_ngcontent-%COMP%]{font-size:16px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size5[_ngcontent-%COMP%]{font-size:18px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size6[_ngcontent-%COMP%]{font-size:20px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]   .size7[_ngcontent-%COMP%]{font-size:22px}}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-font-size[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]{display:inline-block;width:90px}@supports not (-moz-appearance: none){.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]   optgroup[_ngcontent-%COMP%]{font-size:12px;background-color:#f4f4f4;padding:5px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]   option[_ngcontent-%COMP%]{border:1px solid;background-color:#fff}}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]:disabled{background-color:#f5f5f5;pointer-events:none;cursor:not-allowed}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .select-custom-style[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f1f1f1;transition:.2s ease}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .color-label[_ngcontent-%COMP%]{position:relative;cursor:pointer}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .background[_ngcontent-%COMP%]{font-size:smaller;background:#1b1b1b;color:#fff;padding:3px}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]   .foreground[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:after{position:absolute;content:"";left:-1px;top:auto;bottom:-3px;right:auto;width:15px;height:2px;z-index:0;background:#1b1b1b}.angular-editor-toolbar[_ngcontent-%COMP%]   .angular-editor-toolbar-set[_ngcontent-%COMP%]:not([style*="display:none"]):not([style*="display: none"]){display:inline-block}.angular-editor[_ngcontent-%COMP%]{position:relative}.angular-editor[_ngcontent-%COMP%]     [contenteditable=true]:empty:before{content:attr(placeholder);color:#868e96;opacity:1}.angular-editor[_ngcontent-%COMP%]   .angular-editor-wrapper[_ngcontent-%COMP%]{position:relative}.angular-editor[_ngcontent-%COMP%]   .angular-editor-wrapper[_ngcontent-%COMP%]   .angular-editor-textarea[_ngcontent-%COMP%]{min-height:5rem;padding:.5rem .8rem 1rem;border:1px solid #ddd;background-color:transparent;overflow-x:hidden;overflow-y:auto;position:relative}.angular-editor[_ngcontent-%COMP%]   .angular-editor-wrapper[_ngcontent-%COMP%]   .angular-editor-textarea[_ngcontent-%COMP%]     blockquote{margin-left:1rem;border-left:.2em solid #dfe2e5;padding-left:.5rem}.angular-editor[_ngcontent-%COMP%]   .angular-editor-wrapper[_ngcontent-%COMP%]     p{margin-bottom:0}.angular-editor[_ngcontent-%COMP%]   .angular-editor-wrapper[_ngcontent-%COMP%]   .angular-editor-placeholder[_ngcontent-%COMP%]{display:none;position:absolute;top:0;padding:.5rem .8rem 1rem .9rem;color:#6c757d;opacity:.75}.angular-editor[_ngcontent-%COMP%]   .angular-editor-wrapper.show-placeholder[_ngcontent-%COMP%]   .angular-editor-placeholder[_ngcontent-%COMP%]{display:block}.angular-editor[_ngcontent-%COMP%]   .angular-editor-wrapper.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.5;pointer-events:none}']}),U})(),R=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=e.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=e.\u0275\u0275defineInjector({imports:[[n.CommonModule,t.u5,t.UX]]}),U})()},88776:(oe,x,i)=>{"use strict";i.d(x,{eX:()=>q,sQ:()=>mt,GW:()=>$,l4:()=>se});var e=i(56451),n=i(69751),a=i(77579),t=i(38502),l=i(60515),h=i(39646),s=i(62843),d=i(30576);class u{constructor(ze,pt,tn){this.kind=ze,this.value=pt,this.error=tn,this.hasValue="N"===ze}observe(ze){return g(this,ze)}do(ze,pt,tn){const{kind:ot,value:Et,error:z}=this;return"N"===ot?ze?.(Et):"E"===ot?pt?.(z):tn?.()}accept(ze,pt,tn){var ot;return(0,d.m)(null===(ot=ze)||void 0===ot?void 0:ot.next)?this.observe(ze):this.do(ze,pt,tn)}toObservable(){const{kind:ze,value:pt,error:tn}=this,ot="N"===ze?(0,h.of)(pt):"E"===ze?(0,s._)(()=>tn):"C"===ze?l.E:0;if(!ot)throw new TypeError(`Unexpected notification kind ${ze}`);return ot}static createNext(ze){return new u("N",ze)}static createError(ze){return new u("E",void 0,ze)}static createComplete(){return u.completeNotification}}function g(Ae,ze){var pt,tn,ot;const{kind:Et,value:z,error:Z}=Ae;if("string"!=typeof Et)throw new TypeError('Invalid notification, missing "kind"');"N"===Et?null===(pt=ze.next)||void 0===pt||pt.call(ze,z):"E"===Et?null===(tn=ze.error)||void 0===tn||tn.call(ze,Z):null===(ot=ze.complete)||void 0===ot||ot.call(ze)}u.completeNotification=new u("C");var v=i(54482),y=i(25403),S=i(54004),E=i(70262),D=i(39300),A=i(38421);function P(Ae,ze,pt,tn){return(0,v.e)((ot,Et)=>{let z;ze&&"function"!=typeof ze?({duration:pt,element:z,connector:tn}=ze):z=ze;const Z=new Map,ge=Be=>{Z.forEach(Be),Be(Et)},Qe=Be=>ge(gt=>gt.error(Be));let qe=0,ct=!1;const Yt=new y.Q(Et,Be=>{try{const gt=Ae(Be);let ue=Z.get(gt);if(!ue){Z.set(gt,ue=tn?tn():new a.x);const Ge=function it(Be,gt){const ue=new n.y(Ge=>{qe++;const ee=gt.subscribe(Ge);return()=>{ee.unsubscribe(),0==--qe&&ct&&Yt.unsubscribe()}});return ue.key=Be,ue}(gt,ue);if(Et.next(Ge),pt){const ee=(0,y.x)(ue,()=>{ue.complete(),ee?.unsubscribe()},void 0,void 0,()=>Z.delete(gt));Yt.add((0,A.Xf)(pt(Ge)).subscribe(ee))}}ue.next(z?z(Be):Be)}catch(gt){Qe(gt)}},()=>ge(Be=>Be.complete()),Qe,()=>Z.clear(),()=>(ct=!0,0===qe));ot.subscribe(Yt)})}var B=i(86099),V=i(36129),re=i(95698),Q=i(94650),ae=i(28555);const K={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},k="__@ngrx/effects_create__";function $(Ae,ze={}){const pt=ze.functional?Ae:Ae(),tn={...K,...ze};return Object.defineProperty(pt,k,{value:tn}),pt}function le(Ae){return Object.getPrototypeOf(Ae)}function H(Ae){return"function"==typeof Ae}function N(Ae){return Ae.filter(H)}function pe(Ae,ze,pt){const tn=le(Ae).constructor.name,ot=function U(Ae){return function j(Ae){return Object.getOwnPropertyNames(Ae).filter(tn=>!(!Ae[tn]||!Ae[tn].hasOwnProperty(k))&&Ae[tn][k].hasOwnProperty("dispatch")).map(tn=>({propertyName:tn,...Ae[tn][k]}))}(Ae)}(Ae).map(({propertyName:Et,dispatch:z,useEffectsErrorHandler:Z})=>{const ge="function"==typeof Ae[Et]?Ae[Et]():Ae[Et],Qe=Z?pt(ge,ze):ge;return!1===z?Qe.pipe((0,t.l)()):Qe.pipe(function b(){return(0,v.e)((Ae,ze)=>{Ae.subscribe((0,y.x)(ze,pt=>{ze.next(u.createNext(pt))},()=>{ze.next(u.createComplete()),ze.complete()},pt=>{ze.next(u.createError(pt)),ze.complete()}))})}()).pipe((0,S.U)(ct=>({effect:Ae[Et],notification:ct,propertyName:Et,sourceName:tn,sourceInstance:Ae})))});return(0,e.T)(...ot)}const de=10;function me(Ae,ze,pt=de){return Ae.pipe((0,E.K)(tn=>(ze&&ze.handleError(tn),pt<=1?Ae:me(Ae,ze,pt-1))))}let q=(()=>{class Ae extends n.y{constructor(pt){super(),pt&&(this.source=pt)}lift(pt){const tn=new Ae;return tn.source=this,tn.operator=pt,tn}}return Ae.\u0275fac=function(pt){return new(pt||Ae)(Q.\u0275\u0275inject(ae.Y$))},Ae.\u0275prov=Q.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})();function se(...Ae){return(0,D.h)(ze=>Ae.some(pt=>"string"==typeof pt?pt===ze.type:pt.type===ze.type))}const ve=new Q.InjectionToken("@ngrx/effects Internal Root Guard"),Ee=new Q.InjectionToken("@ngrx/effects User Provided Effects"),Ye=new Q.InjectionToken("@ngrx/effects Internal Root Effects"),wt=new Q.InjectionToken("@ngrx/effects Internal Root Effects Instances"),Wt=new Q.InjectionToken("@ngrx/effects Internal Feature Effects"),Ut=new Q.InjectionToken("@ngrx/effects Internal Feature Effects Instance Groups"),nt=new Q.InjectionToken("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>me}),Zt="@ngrx/effects/init";(0,ae.PH)(Zt);const dt="ngrxOnIdentifyEffects",vt="ngrxOnInitEffects";function xt(Ae){return zt(Ae,vt)}function zt(Ae,ze){return Ae&&ze in Ae&&"function"==typeof Ae[ze]}let bt=(()=>{class Ae extends a.x{constructor(pt,tn){super(),this.errorHandler=pt,this.effectsErrorHandler=tn}addEffects(pt){this.next(pt)}toActions(){return this.pipe(P(pt=>function T(Ae){return"Object"!==Ae.constructor.name&&"Function"!==Ae.constructor.name}(pt)?le(pt):pt),(0,B.z)(pt=>pt.pipe(P(At))),(0,B.z)(pt=>{const tn=pt.pipe((0,V.z)(Et=>function $e(Ae,ze){return pt=>{const tn=pe(pt,Ae,ze);return function en(Ae){return zt(Ae,"ngrxOnRunEffects")}(pt)?pt.ngrxOnRunEffects(tn):tn}}(this.errorHandler,this.effectsErrorHandler)(Et)),(0,S.U)(Et=>(function yt(Ae,ze){if("N"===Ae.notification.kind){const pt=Ae.notification.value;!function ie(Ae){return"function"!=typeof Ae&&Ae&&Ae.type&&"string"==typeof Ae.type}(pt)&&ze.handleError(new Error(`Effect ${function Ce({propertyName:Ae,sourceInstance:ze,sourceName:pt}){const tn="function"==typeof ze[Ae];return`"${pt}.${String(Ae)}${tn?"()":""}"`}(Ae)} dispatched an invalid action: ${function Ie(Ae){try{return JSON.stringify(Ae)}catch{return Ae}}(pt)}`))}}(Et,this.errorHandler),Et.notification)),(0,D.h)(Et=>"N"===Et.kind&&null!=Et.value),function X(){return(0,v.e)((Ae,ze)=>{Ae.subscribe((0,y.x)(ze,pt=>g(pt,ze)))})}()),ot=pt.pipe((0,re.q)(1),(0,D.h)(xt),(0,S.U)(Et=>Et.ngrxOnInitEffects()));return(0,e.T)(tn,ot)}))}}return Ae.\u0275fac=function(pt){return new(pt||Ae)(Q.\u0275\u0275inject(Q.ErrorHandler),Q.\u0275\u0275inject(nt))},Ae.\u0275prov=Q.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})();function At(Ae){return function Mt(Ae){return zt(Ae,dt)}(Ae)?Ae.ngrxOnIdentifyEffects():""}let Xe=(()=>{class Ae{constructor(pt,tn){this.effectSources=pt,this.store=tn,this.effectsSubscription=null}get isStarted(){return!!this.effectsSubscription}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Ae.\u0275fac=function(pt){return new(pt||Ae)(Q.\u0275\u0275inject(bt),Q.\u0275\u0275inject(ae.yh))},Ae.\u0275prov=Q.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Pe=(()=>{class Ae{constructor(pt,tn,ot,Et,z,Z,ge){this.sources=pt,tn.start();for(const Qe of Et)pt.addEffects(Qe);ot.dispatch({type:Zt})}addEffects(pt){this.sources.addEffects(pt)}}return Ae.\u0275fac=function(pt){return new(pt||Ae)(Q.\u0275\u0275inject(bt),Q.\u0275\u0275inject(Xe),Q.\u0275\u0275inject(ae.yh),Q.\u0275\u0275inject(wt),Q.\u0275\u0275inject(ae.cr,8),Q.\u0275\u0275inject(ae.CK,8),Q.\u0275\u0275inject(ve,8))},Ae.\u0275mod=Q.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=Q.\u0275\u0275defineInjector({}),Ae})(),Ve=(()=>{class Ae{constructor(pt,tn,ot,Et){const z=tn.flat();for(const Z of z)pt.addEffects(Z)}}return Ae.\u0275fac=function(pt){return new(pt||Ae)(Q.\u0275\u0275inject(Pe),Q.\u0275\u0275inject(Ut),Q.\u0275\u0275inject(ae.cr,8),Q.\u0275\u0275inject(ae.CK,8))},Ae.\u0275mod=Q.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=Q.\u0275\u0275defineInjector({}),Ae})(),mt=(()=>{class Ae{static forFeature(...pt){const tn=pt.flat(),ot=N(tn);return{ngModule:Ve,providers:[ot,{provide:Wt,multi:!0,useValue:tn},{provide:Ee,multi:!0,useValue:[]},{provide:Ut,multi:!0,useFactory:It,deps:[Wt,Ee]}]}}static forRoot(...pt){const tn=pt.flat(),ot=N(tn);return{ngModule:Pe,providers:[ot,{provide:Ye,useValue:[tn]},{provide:ve,useFactory:xn},{provide:Ee,multi:!0,useValue:[]},{provide:wt,useFactory:It,deps:[Ye,Ee]}]}}}return Ae.\u0275fac=function(pt){return new(pt||Ae)},Ae.\u0275mod=Q.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=Q.\u0275\u0275defineInjector({}),Ae})();function It(Ae,ze){const pt=[];for(const tn of Ae)pt.push(...tn);for(const tn of ze)pt.push(...tn);return pt.map(tn=>H(tn)?(0,Q.inject)(tn):tn)}function xn(){const Ae=(0,Q.inject)(Xe,{optional:!0,skipSelf:!0}),ze=(0,Q.inject)(Ye,{self:!0});if((1!==ze.length||0!==ze[0].length)&&Ae)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},64629:(oe,x,i)=>{"use strict";i.d(x,{H:()=>g});var e=i(28555),n=i(94650),h=(()=>{return(y=h||(h={}))[y.EntitiesOnly=0]="EntitiesOnly",y[y.Both=1]="Both",y[y.None=2]="None",h;var y})();function s(y){return function(S,E){const D={ids:[...E.ids],entities:{...E.entities}},A=y(S,D);return A===h.Both?Object.assign({},E,D):A===h.EntitiesOnly?{...E,entities:D.entities}:E}}function d(y,b){const S=b(y);return(0,n.isDevMode)()&&void 0===S&&console.warn("@ngrx/entity: The entity passed to the `selectId` implementation returned undefined.","You should probably provide your own `selectId` implementation.","The entity that was passed:",y,"The `selectId` implementation:",b.toString()),S}function p(y){function b(j,R){const U=d(j,y);return U in R.entities?h.None:(R.ids.push(U),R.entities[U]=j,h.Both)}function S(j,R){let U=!1;for(const le of j)U=b(le,R)!==h.None||U;return U?h.Both:h.None}function D(j,R){const U=d(j,y);return U in R.entities?(R.entities[U]=j,h.EntitiesOnly):(R.ids.push(U),R.entities[U]=j,h.Both)}function B(j,R){const le=(j instanceof Array?j:R.ids.filter(T=>j(R.entities[T]))).filter(T=>T in R.entities).map(T=>delete R.entities[T]).length>0;return le&&(R.ids=R.ids.filter(T=>T in R.entities)),le?h.Both:h.None}function re(j,R){return Q([j],R)}function Q(j,R){const U={};return(j=j.filter(T=>T.id in R.entities)).length>0?j.filter(H=>function X(j,R,U){const T=Object.assign({},U.entities[R.id],R.changes),H=d(T,y),N=H!==R.id;return N&&(j[R.id]=H,delete U.entities[R.id]),U.entities[H]=T,N}(U,H,R)).length>0?(R.ids=R.ids.map(H=>U[H]||H),h.Both):h.EntitiesOnly:h.None}function $(j,R){const U=[],le=[];for(const N of j){const pe=d(N,y);pe in R.entities?le.push({id:pe,changes:N}):U.push(N)}const T=Q(le,R),H=S(U,R);switch(!0){case H===h.None&&T===h.None:return h.None;case H===h.Both||T===h.Both:return h.Both;default:return h.EntitiesOnly}}return{removeAll:function V(j){return Object.assign({},j,{ids:[],entities:{}})},addOne:s(b),addMany:s(S),setAll:s(function E(j,R){return R.ids=[],R.entities={},S(j,R),h.Both}),setOne:s(D),setMany:s(function A(j,R){const U=j.map(le=>D(le,R));switch(!0){case U.some(le=>le===h.Both):return h.Both;case U.some(le=>le===h.EntitiesOnly):return h.EntitiesOnly;default:return h.None}}),updateOne:s(re),updateMany:s(Q),upsertOne:s(function k(j,R){return $([j],R)}),upsertMany:s($),removeOne:s(function P(j,R){return B([j],R)}),removeMany:s(B),map:s(function ae(j,R){return Q(R.ids.reduce((T,H)=>{const N=j(R.entities[H]);return N!==R.entities[H]&&T.push({id:H,changes:N}),T},[]).filter(({id:T})=>T in R.entities),R)}),mapOne:s(function K({map:j,id:R},U){const le=U.entities[R];return le?re({id:R,changes:j(le)},U):h.None})}}function u(y,b){const{removeOne:S,removeMany:E,removeAll:D}=p(y);function A(U,le){return P([U],le)}function P(U,le){const T=U.filter(H=>!(d(H,y)in le.entities));return 0===T.length?h.None:(R(T,le),h.Both)}function V(U,le){const T=d(U,y);return T in le.entities?(le.ids=le.ids.filter(H=>H!==T),R([U],le),h.Both):A(U,le)}function re(U,le){return ae([U],le)}function ae(U,le){const T=[],H=U.filter(N=>function Q(U,le,T){if(!(le.id in T.entities))return!1;const N=Object.assign({},T.entities[le.id],le.changes),pe=d(N,y);return delete T.entities[le.id],U.push(N),pe!==le.id}(T,N,le)).length>0;if(0===T.length)return h.None;{const N=le.ids,pe=[];return le.ids=le.ids.filter((de,me)=>de in le.entities||(pe.push(me),!1)),R(T,le),!H&&pe.every(de=>le.ids[de]===N[de])?h.EntitiesOnly:h.Both}}function j(U,le){const T=[],H=[];for(const de of U){const me=d(de,y);me in le.entities?H.push({id:me,changes:de}):T.push(de)}const N=ae(H,le),pe=P(T,le);switch(!0){case pe===h.None&&N===h.None:return h.None;case pe===h.Both||N===h.Both:return h.Both;default:return h.EntitiesOnly}}function R(U,le){U.sort(b);const T=[];let H=0,N=0;for(;H<U.length&&N<le.ids.length;){const pe=U[H],de=d(pe,y),me=le.ids[N];b(pe,le.entities[me])<=0?(T.push(de),H++):(T.push(me),N++)}le.ids=T.concat(H<U.length?U.slice(H).map(y):le.ids.slice(N)),U.forEach((pe,de)=>{le.entities[y(pe)]=pe})}return{removeOne:S,removeMany:E,removeAll:D,addOne:s(A),updateOne:s(re),upsertOne:s(function $(U,le){return j([U],le)}),setAll:s(function B(U,le){return le.entities={},le.ids=[],P(U,le),h.Both}),setOne:s(V),setMany:s(function X(U,le){const T=U.map(H=>V(H,le));switch(!0){case T.some(H=>H===h.Both):return h.Both;case T.some(H=>H===h.EntitiesOnly):return h.EntitiesOnly;default:return h.None}}),addMany:s(P),updateMany:s(ae),upsertMany:s(j),map:s(function K(U,le){return ae(le.ids.reduce((H,N)=>{const pe=U(le.entities[N]);return pe!==le.entities[N]&&H.push({id:N,changes:pe}),H},[]),le)}),mapOne:s(function k({map:U,id:le},T){const H=T.entities[le];return H?re({id:le,changes:U(H)},T):h.None})}}function g(y={}){const{selectId:b,sortComparer:S}={selectId:y.selectId??(P=>P.id),sortComparer:y.sortComparer??!1},E=function t(){return{getInitialState:function y(b={}){return Object.assign({ids:[],entities:{}},b)}}}(),D=function l(){return{getSelectors:function y(b){const S=P=>P.ids,E=P=>P.entities,D=(0,e.P1)(S,E,(P,B)=>P.map(V=>B[V])),A=(0,e.P1)(S,P=>P.length);return b?{selectIds:(0,e.P1)(b,S),selectEntities:(0,e.P1)(b,E),selectAll:(0,e.P1)(b,D),selectTotal:(0,e.P1)(b,A)}:{selectIds:S,selectEntities:E,selectAll:D,selectTotal:A}}}}();return{selectId:b,sortComparer:S,...E,...D,...S?u(b,S):p(b)}}},90825:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(94650),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(28555),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(60515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(69751),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(56451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(13099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(24351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(82722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(35684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(85363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(11365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(22940);const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(x,i){if(this.action=x,this.timestamp=i,this.type=PERFORM_ACTION,typeof x.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(x){this.timestamp=x,this.type=RESET}}class Rollback{constructor(x){this.timestamp=x,this.type=ROLLBACK}}class Commit{constructor(x){this.timestamp=x,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(x){this.id=x,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(x,i,e=!0){this.start=x,this.end=i,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(x){this.index=x,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(x){this.actionId=x,this.type=JUMP_TO_ACTION}}class ImportState{constructor(x){this.nextLiftedState=x,this.type=IMPORT_STATE}}class LockChanges{constructor(x){this.status=x,this.type=LOCK_CHANGES}}class PauseRecording{constructor(x){this.status=x,this.type=PAUSE_RECORDING}}class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(oe){const x={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},i="function"==typeof oe?oe():oe,a=Object.assign({},x,{features:i.features||!!i.logOnly&&{pause:!0,export:!0,test:!0}||x.features},i);if(a.maxAge&&a.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${a.maxAge}`);return a}function difference(oe,x){return oe.filter(i=>x.indexOf(i)<0)}function unliftState(oe){const{computedStates:x,currentStateIndex:i}=oe;if(i>=x.length){const{state:n}=x[x.length-1];return n}const{state:e}=x[i];return e}function unliftAction(oe){return oe.actionsById[oe.nextActionId-1]}function liftAction(oe){return new PerformAction(oe,+Date.now())}function sanitizeActions(oe,x){return Object.keys(x).reduce((i,e)=>{const n=Number(e);return i[n]=sanitizeAction(oe,x[n],n),i},{})}function sanitizeAction(oe,x,i){return{...x,action:oe(x.action,i)}}function sanitizeStates(oe,x){return x.map((i,e)=>({state:sanitizeState(oe,i.state,e),error:i.error}))}function sanitizeState(oe,x,i){return oe(x,i)}function shouldFilterActions(oe){return oe.predicate||oe.actionsSafelist||oe.actionsBlocklist}function filterLiftedState(oe,x,i,e){const n=[],a={},t=[];return oe.stagedActionIds.forEach((l,h)=>{const s=oe.actionsById[l];s&&(h&&isActionFiltered(oe.computedStates[h],s,x,i,e)||(a[l]=s,n.push(l),t.push(oe.computedStates[h])))}),{...oe,stagedActionIds:n,actionsById:a,computedStates:t}}function isActionFiltered(oe,x,i,e,n){const a=i&&!i(oe,x.action),t=e&&!x.action.type.match(e.map(h=>escapeRegExp(h)).join("|")),l=n&&x.action.type.match(n.map(h=>escapeRegExp(h)).join("|"));return a||t||l}function escapeRegExp(oe){return oe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let DevtoolsDispatcher=(()=>{class oe extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return oe.\u0275fac=function(){let x;return function(e){return(x||(x=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275getInheritedFactory(oe)))(e||oe)}}(),oe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac}),oe})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(oe,x,i){this.config=x,this.dispatcher=i,this.devtoolsExtension=oe,this.createActionStreams()}notify(oe,x){if(this.devtoolsExtension)if(oe.type===PERFORM_ACTION){if(x.isLocked||x.isPaused)return;const i=unliftState(x);if(shouldFilterActions(this.config)&&isActionFiltered(i,oe,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,i,x.currentStateIndex):i,n=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,oe,x.nextActionId):oe;this.sendToReduxDevtools(()=>this.extensionConnection.send(n,e))}else{const i={...x,stagedActionIds:x.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,x.actionsById):x.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,x.computedStates):x.computedStates};this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,i,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(oe=>{const x=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=x,x.init(),x.subscribe(i=>oe.next(i)),x.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const oe=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),x=oe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(l=>l.type===ExtensionActionTypes.START)),i=oe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(l=>l.type===ExtensionActionTypes.STOP)),e=oe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(l=>l.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(l=>this.unwrapAction(l.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(l=>l.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(h=>h.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>l),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(l)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(l))),a=oe.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(l=>l.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(l=>this.unwrapAction(l.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(i)),t=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(i));this.start$=x.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(i)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>a)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>t))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(oe){const x={name:oe.name,features:oe.features,serialize:oe.serialize,autoPause:oe.autoPause??!1,trace:oe.trace??!1,traceLimit:oe.traceLimit??75};return!1!==oe.maxAge&&(x.maxAge=oe.maxAge),x}sendToReduxDevtools(oe){try{oe()}catch(x){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",x)}}}return DevtoolsExtension.\u0275fac=function oe(x){return new(x||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(oe,x,i,e,n){if(e)return{state:i,error:"Interrupted by an error up the chain"};let t,a=i;try{a=oe(i,x)}catch(l){t=l.toString(),n.handleError(l)}return{state:a,error:t}}function recomputeStates(oe,x,i,e,n,a,t,l,h){if(x>=oe.length&&oe.length===a.length)return oe;const s=oe.slice(0,x),d=a.length-(h?1:0);for(let p=x;p<d;p++){const u=a[p],g=n[u].action,v=s[p-1],y=v?v.state:e,b=v?v.error:void 0,E=t.indexOf(u)>-1?v:computeNextEntry(i,g,y,b,l);s.push(E)}return h&&s.push(oe[oe.length-1]),s}function liftInitialState(oe,x){return{monitorState:x(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:oe,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(oe,x,i,e,n={}){return a=>(t,l)=>{let{monitorState:h,actionsById:s,nextActionId:d,stagedActionIds:p,skippedActionIds:u,committedState:g,currentStateIndex:v,computedStates:y,isLocked:b,isPaused:S}=t||x;function E(P){let B=P,V=p.slice(1,B+1);for(let X=0;X<V.length;X++){if(y[X+1].error){B=X,V=p.slice(1,B+1);break}delete s[V[X]]}u=u.filter(X=>-1===V.indexOf(X)),p=[0,...p.slice(B+1)],g=y[B].state,y=y.slice(B),v=v>B?v-B:0}function D(){s={0:liftAction(INIT_ACTION)},d=1,p=[0],u=[],g=y[v].state,v=0,y=[]}t||(s=Object.create(s));let A=0;switch(l.type){case LOCK_CHANGES:b=l.status,A=1/0;break;case PAUSE_RECORDING:S=l.status,S?(p=[...p,d],s[d]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),d++,A=p.length-1,y=y.concat(y[y.length-1]),v===p.length-2&&v++,A=1/0):D();break;case RESET:s={0:liftAction(INIT_ACTION)},d=1,p=[0],u=[],g=oe,v=0,y=[];break;case COMMIT:D();break;case ROLLBACK:s={0:liftAction(INIT_ACTION)},d=1,p=[0],u=[],v=0,y=[];break;case TOGGLE_ACTION:{const{id:P}=l;u=-1===u.indexOf(P)?[P,...u]:u.filter(V=>V!==P),A=p.indexOf(P);break}case SET_ACTIONS_ACTIVE:{const{start:P,end:B,active:V}=l,X=[];for(let re=P;re<B;re++)X.push(re);u=V?difference(u,X):[...u,...X],A=p.indexOf(P);break}case JUMP_TO_STATE:v=l.index,A=1/0;break;case JUMP_TO_ACTION:{const P=p.indexOf(l.actionId);-1!==P&&(v=P),A=1/0;break}case SWEEP:p=difference(p,u),u=[],v=Math.min(v,p.length-1);break;case PERFORM_ACTION:{if(b)return t||x;if(S||t&&isActionFiltered(t.computedStates[v],l,n.predicate,n.actionsSafelist,n.actionsBlocklist)){const B=y[y.length-1];y=[...y.slice(0,-1),computeNextEntry(a,l.action,B.state,B.error,i)],A=1/0;break}n.maxAge&&p.length===n.maxAge&&E(1),v===p.length-1&&v++;const P=d++;s[P]=l,p=[...p,P],A=p.length-1;break}case IMPORT_STATE:({monitorState:h,actionsById:s,nextActionId:d,stagedActionIds:p,skippedActionIds:u,committedState:g,currentStateIndex:v,computedStates:y,isLocked:b,isPaused:S}=l.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:A=0,n.maxAge&&p.length>n.maxAge&&(y=recomputeStates(y,A,a,g,s,p,u,i,S),E(p.length-n.maxAge),A=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(y.filter(B=>B.error).length>0)A=0,n.maxAge&&p.length>n.maxAge&&(y=recomputeStates(y,A,a,g,s,p,u,i,S),E(p.length-n.maxAge),A=1/0);else{if(!S&&!b){v===p.length-1&&v++;const B=d++;s[B]=new PerformAction(l,+Date.now()),p=[...p,B],A=p.length-1,y=recomputeStates(y,A,a,g,s,p,u,i,S)}y=y.map(B=>({...B,state:a(B.state,RECOMPUTE_ACTION)})),v=p.length-1,n.maxAge&&p.length>n.maxAge&&E(p.length-n.maxAge),A=1/0}break;default:A=1/0}return y=recomputeStates(y,A,a,g,s,p,u,i,S),h=e(h,l),{monitorState:h,actionsById:s,nextActionId:d,stagedActionIds:p,skippedActionIds:u,committedState:g,currentStateIndex:v,computedStates:y,isLocked:b,isPaused:S}}}let StoreDevtools=(()=>{class oe{constructor(i,e,n,a,t,l,h,s){const d=liftInitialState(h,s.monitor),p=liftReducerWith(h,d,l,s.monitor,s),u=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),a.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),i,a.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),g=n.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(p)),v=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),y=u.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(g),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:D},[A,P])=>{let B=P(D,A);return A.type!==PERFORM_ACTION&&shouldFilterActions(s)&&(B=filterLiftedState(B,s.predicate,s.actionsSafelist,s.actionsBlocklist)),a.notify(A,B),{state:B,action:A}},{state:d,action:null})).subscribe(({state:D,action:A})=>{v.next(D),A.type===PERFORM_ACTION&&t.next(A.action)}),b=a.start$.subscribe(()=>{this.refresh()}),S=v.asObservable(),E=S.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=b,this.stateSubscription=y,this.dispatcher=i,this.liftedState=S,this.state=E}dispatch(i){this.dispatcher.next(i)}next(i){this.dispatcher.next(i)}error(i){}complete(){}performAction(i){this.dispatch(new PerformAction(i,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(i){this.dispatch(new ToggleAction(i))}jumpToAction(i){this.dispatch(new JumpToAction(i))}jumpToState(i){this.dispatch(new JumpToState(i))}importState(i){this.dispatch(new ImportState(i))}lockChanges(i){this.dispatch(new LockChanges(i))}pauseRecording(i){this.dispatch(new PauseRecording(i))}}return oe.\u0275fac=function(i){return new(i||oe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(_angular_core__WEBPACK_IMPORTED_MODULE_0__.ErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275inject(STORE_DEVTOOLS_CONFIG))},oe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjectable({token:oe,factory:oe.\u0275fac}),oe})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(oe,x){return Boolean(oe)||x.monitor!==noMonitor}function createReduxDevtoolsExtension(){const oe="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[oe]<"u"?window[oe]:null}function provideStoreDevtools(oe={}){return(0,_angular_core__WEBPACK_IMPORTED_MODULE_0__.makeEnvironmentProviders)([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:oe},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}])}function createStateObservable(oe){return oe.state}let StoreDevtoolsModule=(()=>{class oe{static instrument(i={}){return{ngModule:oe,providers:[provideStoreDevtools(i)]}}}return oe.\u0275fac=function(i){return new(i||oe)},oe.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.\u0275\u0275defineInjector({}),oe})()},28555:(oe,x,i)=>{"use strict";i.d(x,{Aw:()=>tt,CK:()=>et,FR:()=>bt,Ky:()=>S,Lq:()=>zn,P1:()=>gt,PH:()=>b,UO:()=>Q,UY:()=>Fe,Y$:()=>xt,Y6:()=>$,Ys:()=>mt,ZF:()=>ee,cr:()=>he,mK:()=>Mt,n$:()=>dt,on:()=>nn,qg:()=>re,wb:()=>Xt,yh:()=>Pe});var e=i(94650),n=i(61135),a=i(69751),t=i(77579),l=i(233),h=i(85363),s=i(11365),d=i(22940),p=i(94813),u=i(54004),g=i(71884);const v={};function b(jt,Fn){if(v[jt]=(v[jt]||0)+1,"function"==typeof Fn)return D(jt,(...ri)=>({...Fn(...ri),type:jt}));switch(Fn?Fn._as:"empty"){case"empty":return D(jt,()=>({type:jt}));case"props":return D(jt,ri=>({...ri,type:jt}));default:throw new Error("Unexpected config.")}}function S(){return{_as:"props",_p:void 0}}function D(jt,Fn){return Object.defineProperty(Fn,"type",{value:jt,writable:!1})}const re="@ngrx/store/init";let Q=(()=>{class jt extends n.X{constructor(){super({type:re})}next(jn){if("function"==typeof jn)throw new TypeError("\n        Dispatch expected an object, instead it received a function.\n        If you're using the createAction function, make sure to invoke the function\n        before dispatching the action. For example, someAction should be someAction().");if(typeof jn>"u")throw new TypeError("Actions must be objects");if(typeof jn.type>"u")throw new TypeError("Actions must have a type property");super.next(jn)}complete(){}ngOnDestroy(){super.complete()}}return jt.\u0275fac=function(jn){return new(jn||jt)},jt.\u0275prov=e.\u0275\u0275defineInjectable({token:jt,factory:jt.\u0275fac}),jt})();const ae=[Q],K=new e.InjectionToken("@ngrx/store Internal Root Guard"),k=new e.InjectionToken("@ngrx/store Internal Initial State"),$=new e.InjectionToken("@ngrx/store Initial State"),j=new e.InjectionToken("@ngrx/store Reducer Factory"),R=new e.InjectionToken("@ngrx/store Internal Reducer Factory Provider"),U=new e.InjectionToken("@ngrx/store Initial Reducers"),le=new e.InjectionToken("@ngrx/store Internal Initial Reducers"),T=new e.InjectionToken("@ngrx/store Store Features"),H=new e.InjectionToken("@ngrx/store Internal Store Reducers"),N=new e.InjectionToken("@ngrx/store Internal Feature Reducers"),pe=new e.InjectionToken("@ngrx/store Internal Feature Configs"),de=new e.InjectionToken("@ngrx/store Internal Store Features"),me=new e.InjectionToken("@ngrx/store Internal Feature Reducers Token"),q=new e.InjectionToken("@ngrx/store Feature Reducers"),se=new e.InjectionToken("@ngrx/store User Provided Meta Reducers"),ve=new e.InjectionToken("@ngrx/store Meta Reducers"),Ee=new e.InjectionToken("@ngrx/store Internal Resolved Meta Reducers"),Ye=new e.InjectionToken("@ngrx/store User Runtime Checks Config"),wt=new e.InjectionToken("@ngrx/store Internal User Runtime Checks Config"),Wt=new e.InjectionToken("@ngrx/store Internal Runtime Checks"),Ut=new e.InjectionToken("@ngrx/store Check if Action types are unique");function Fe(jt,Fn={}){const jn=Object.keys(jt),ri={};for(let Ii=0;Ii<jn.length;Ii++){const cr=jn[Ii];"function"==typeof jt[cr]&&(ri[cr]=jt[cr])}const vi=Object.keys(ri);return function(cr,Hi){cr=void 0===cr?Fn:cr;let Vi=!1;const kr={};for(let Er=0;Er<vi.length;Er++){const pr=vi[Er],Tr=cr[pr],Br=(0,ri[pr])(Tr,Hi);kr[pr]=Br,Vi=Vi||Br!==Tr}return Vi?kr:cr}}function ie(...jt){return function(Fn){if(0===jt.length)return Fn;const jn=jt[jt.length-1];return jt.slice(0,-1).reduceRight((vi,Ii)=>Ii(vi),jn(Fn))}}function Ce(jt,Fn){return Array.isArray(Fn)&&Fn.length>0&&(jt=ie.apply(null,[...Fn,jt])),(jn,ri)=>{const vi=jt(jn);return(Ii,cr)=>vi(Ii=void 0===Ii?ri:Ii,cr)}}new e.InjectionToken("@ngrx/store Root Store Provider"),new e.InjectionToken("@ngrx/store Feature State Provider");class dt extends a.y{}class Mt extends Q{}const Xt="@ngrx/store/update-reducers";let en=(()=>{class jt extends n.X{constructor(jn,ri,vi,Ii){super(Ii(vi,ri)),this.dispatcher=jn,this.initialState=ri,this.reducers=vi,this.reducerFactory=Ii}get currentReducers(){return this.reducers}addFeature(jn){this.addFeatures([jn])}addFeatures(jn){const ri=jn.reduce((vi,{reducers:Ii,reducerFactory:cr,metaReducers:Hi,initialState:Vi,key:kr})=>{const Er="function"==typeof Ii?function Ie(jt){const Fn=Array.isArray(jt)&&jt.length>0?ie(...jt):jn=>jn;return(jn,ri)=>(jn=Fn(jn),(vi,Ii)=>jn(vi=void 0===vi?ri:vi,Ii))}(Hi)(Ii,Vi):Ce(cr,Hi)(Ii,Vi);return vi[kr]=Er,vi},{});this.addReducers(ri)}removeFeature(jn){this.removeFeatures([jn])}removeFeatures(jn){this.removeReducers(jn.map(ri=>ri.key))}addReducer(jn,ri){this.addReducers({[jn]:ri})}addReducers(jn){this.reducers={...this.reducers,...jn},this.updateReducers(Object.keys(jn))}removeReducer(jn){this.removeReducers([jn])}removeReducers(jn){jn.forEach(ri=>{this.reducers=function yt(jt,Fn){return Object.keys(jt).filter(jn=>jn!==Fn).reduce((jn,ri)=>Object.assign(jn,{[ri]:jt[ri]}),{})}(this.reducers,ri)}),this.updateReducers(jn)}updateReducers(jn){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Xt,features:jn})}ngOnDestroy(){this.complete()}}return jt.\u0275fac=function(jn){return new(jn||jt)(e.\u0275\u0275inject(Mt),e.\u0275\u0275inject($),e.\u0275\u0275inject(U),e.\u0275\u0275inject(j))},jt.\u0275prov=e.\u0275\u0275defineInjectable({token:jt,factory:jt.\u0275fac}),jt})();const vt=[en,{provide:dt,useExisting:en},{provide:Mt,useExisting:Q}];let xt=(()=>{class jt extends t.x{ngOnDestroy(){this.complete()}}return jt.\u0275fac=function(){let Fn;return function(ri){return(Fn||(Fn=e.\u0275\u0275getInheritedFactory(jt)))(ri||jt)}}(),jt.\u0275prov=e.\u0275\u0275defineInjectable({token:jt,factory:jt.\u0275fac}),jt})();const zt=[xt];class bt extends a.y{}let At=(()=>{class jt extends n.X{constructor(jn,ri,vi,Ii){super(Ii);const kr=jn.pipe((0,h.Q)(l.N)).pipe((0,s.M)(ri)).pipe((0,d.R)($e,{state:Ii}));this.stateSubscription=kr.subscribe(({state:Er,action:pr})=>{this.next(Er),vi.next(pr)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return jt.INIT=re,jt.\u0275fac=function(jn){return new(jn||jt)(e.\u0275\u0275inject(Q),e.\u0275\u0275inject(dt),e.\u0275\u0275inject(xt),e.\u0275\u0275inject($))},jt.\u0275prov=e.\u0275\u0275defineInjectable({token:jt,factory:jt.\u0275fac}),jt})();function $e(jt={state:void 0},[Fn,jn]){const{state:ri}=jt;return{state:jn(ri,Fn),action:Fn}}const Xe=[At,{provide:bt,useExisting:At}];let Pe=(()=>{class jt extends a.y{constructor(jn,ri,vi){super(),this.actionsObserver=ri,this.reducerManager=vi,this.source=jn}select(jn,...ri){return mt.call(null,jn,...ri)(this)}lift(jn){const ri=new jt(this,this.actionsObserver,this.reducerManager);return ri.operator=jn,ri}dispatch(jn){this.actionsObserver.next(jn)}next(jn){this.actionsObserver.next(jn)}error(jn){this.actionsObserver.error(jn)}complete(){this.actionsObserver.complete()}addReducer(jn,ri){this.reducerManager.addReducer(jn,ri)}removeReducer(jn){this.reducerManager.removeReducer(jn)}}return jt.\u0275fac=function(jn){return new(jn||jt)(e.\u0275\u0275inject(bt),e.\u0275\u0275inject(Q),e.\u0275\u0275inject(en))},jt.\u0275prov=e.\u0275\u0275defineInjectable({token:jt,factory:jt.\u0275fac}),jt})();const Ve=[Pe];function mt(jt,Fn,...jn){return function(vi){let Ii;if("string"==typeof jt){const cr=[Fn,...jn].filter(Boolean);Ii=vi.pipe((0,p.j)(jt,...cr))}else{if("function"!=typeof jt)throw new TypeError(`Unexpected type '${typeof jt}' in select operator, expected 'string' or 'function'`);Ii=vi.pipe((0,u.U)(cr=>jt(cr,Fn)))}return Ii.pipe((0,g.x)())}}const It="https://ngrx.io/guide/store/configuration/runtime-checks";function xn(jt){return void 0===jt}function _n(jt){return null===jt}function Jt(jt){return Array.isArray(jt)}function pt(jt){return"object"==typeof jt&&null!==jt}function Et(jt){return"function"==typeof jt}let ge=!1;function ct(jt,Fn){return jt===Fn}function Be(jt,Fn=ct,jn=ct){let Ii,ri=null,vi=null;return{memoized:function kr(){if(void 0!==Ii)return Ii.result;if(!ri)return vi=jt.apply(null,arguments),ri=arguments,vi;if(!function Yt(jt,Fn,jn){for(let ri=0;ri<jt.length;ri++)if(!jn(jt[ri],Fn[ri]))return!0;return!1}(arguments,ri,Fn))return vi;const Er=jt.apply(null,arguments);return ri=arguments,jn(vi,Er)?vi:(vi=Er,Er)},reset:function cr(){ri=null,vi=null},setResult:function Hi(Er){Ii={result:Er}},clearResult:function Vi(){Ii=void 0}}}function gt(...jt){return function Ge(jt,Fn={stateFn:ue}){return function(...jn){let ri=jn;if(Array.isArray(ri[0])){const[Er,...pr]=ri;ri=[...Er,...pr]}else 1===ri.length&&function De(jt){return!!jt&&"object"==typeof jt&&Object.values(jt).every(Fn=>"function"==typeof Fn)}(ri[0])&&(ri=function Ot(jt){const Fn=Object.values(jt),jn=Object.keys(jt);return[...Fn,(...vi)=>jn.reduce((Ii,cr,Hi)=>({...Ii,[cr]:vi[Hi]}),{})]}(ri[0]));const vi=ri.slice(0,ri.length-1),Ii=ri[ri.length-1],cr=vi.filter(Er=>Er.release&&"function"==typeof Er.release),Hi=jt(function(...Er){return Ii.apply(null,Er)}),Vi=Be(function(Er,pr){return Fn.stateFn.apply(null,[Er,vi,pr,Hi])});return Object.assign(Vi.memoized,{release:function kr(){Vi.reset(),Hi.reset(),cr.forEach(Er=>Er.release())},projector:Hi.memoized,setResult:Vi.setResult,clearResult:Vi.clearResult})}}(Be)(...jt)}function ue(jt,Fn,jn,ri){if(void 0===jn){const Ii=Fn.map(cr=>cr(jt));return ri.memoized.apply(null,Ii)}const vi=Fn.map(Ii=>Ii(jt,jn));return ri.memoized.apply(null,[...vi,jn])}function ee(jt){return gt(Fn=>{const jn=Fn[jt];return!function qe(){return ge}()&&(0,e.isDevMode)()&&!(jt in Fn)&&console.warn(`@ngrx/store: The feature name "${jt}" does not exist in the state, therefore createFeatureSelector cannot access it.  Be sure it is imported in a loaded module using StoreModule.forRoot('${jt}', ...) or StoreModule.forFeature('${jt}', ...).  If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),jn},Fn=>Fn)}function Ni(jt){return jt instanceof e.InjectionToken?(0,e.inject)(jt):jt}function Nn(jt,Fn){return Fn.map((jn,ri)=>{if(jt[ri]instanceof e.InjectionToken){const vi=(0,e.inject)(jt[ri]);return{key:jn.key,reducerFactory:vi.reducerFactory?vi.reducerFactory:Fe,metaReducers:vi.metaReducers?vi.metaReducers:[],initialState:vi.initialState}}return jn})}function Mn(jt){return jt.map(Fn=>Fn instanceof e.InjectionToken?(0,e.inject)(Fn):Fn)}function On(jt){return"function"==typeof jt?jt():jt}function Qn(jt,Fn){return jt.concat(Fn)}function Ti(){if((0,e.inject)(Pe,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function un(jt){Object.freeze(jt);const Fn=Et(jt);return Object.getOwnPropertyNames(jt).forEach(jn=>{if(!jn.startsWith("\u0275")&&function Z(jt,Fn){return Object.prototype.hasOwnProperty.call(jt,Fn)}(jt,jn)&&(!Fn||"caller"!==jn&&"callee"!==jn&&"arguments"!==jn)){const ri=jt[jn];(pt(ri)||Et(ri))&&!Object.isFrozen(ri)&&un(ri)}}),jt}function $t(jt,Fn=[]){return(xn(jt)||_n(jt))&&0===Fn.length?{path:["root"],value:jt}:Object.keys(jt).reduce((ri,vi)=>{if(ri)return ri;const Ii=jt[vi];return function z(jt){return Et(jt)&&jt.hasOwnProperty("\u0275cmp")}(Ii)?ri:!(xn(Ii)||_n(Ii)||function ze(jt){return"number"==typeof jt}(Ii)||function Ae(jt){return"boolean"==typeof jt}(Ii)||function ke(jt){return"string"==typeof jt}(Ii)||Jt(Ii))&&(function ot(jt){if(!function tn(jt){return pt(jt)&&!Jt(jt)}(jt))return!1;const Fn=Object.getPrototypeOf(jt);return Fn===Object.prototype||null===Fn}(Ii)?$t(Ii,[...Fn,vi]):{path:[...Fn,vi],value:Ii})},!1)}function Nt(jt,Fn){if(!1===jt)return;const jn=jt.path.join("."),ri=new Error(`Detected unserializable ${Fn} at "${jn}". ${It}#strict${Fn}serializability`);throw ri.value=jt.value,ri.unserializablePath=jn,ri}function Wn(jt){return(0,e.isDevMode)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...jt}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function ji({strictActionSerializability:jt,strictStateSerializability:Fn}){return jn=>jt||Fn?function rn(jt,Fn){return function(jn,ri){Fn.action(ri)&&Nt($t(ri),"action");const vi=jt(jn,ri);return Fn.state()&&Nt($t(vi),"state"),vi}}(jn,{action:ri=>jt&&!dr(ri),state:()=>Fn}):jn}function ir({strictActionImmutability:jt,strictStateImmutability:Fn}){return jn=>jt||Fn?function Si(jt,Fn){return function(jn,ri){const vi=Fn.action(ri)?un(ri):ri,Ii=jt(jn,vi);return Fn.state()?un(Ii):Ii}}(jn,{action:ri=>jt&&!dr(ri),state:()=>Fn}):jn}function dr(jt){return jt.type.startsWith("@ngrx")}function Ln({strictActionWithinNgZone:jt}){return Fn=>jt?function Rn(jt,Fn){return function(jn,ri){if(Fn.action(ri)&&!e.NgZone.isInAngularZone())throw new Error(`Action '${ri.type}' running outside NgZone. ${It}#strictactionwithinngzone`);return jt(jn,ri)}}(Fn,{action:jn=>jt&&!dr(jn)}):Fn}function Vn(jt){return[{provide:wt,useValue:jt},{provide:Ye,useFactory:Ft,deps:[wt]},{provide:Wt,deps:[Ye],useFactory:Wn},{provide:ve,multi:!0,deps:[Wt],useFactory:ir},{provide:ve,multi:!0,deps:[Wt],useFactory:ji},{provide:ve,multi:!0,deps:[Wt],useFactory:Ln}]}function Le(){return[{provide:Ut,multi:!0,deps:[Wt],useFactory:dn}]}function Ft(jt){return jt}function dn(jt){if(!jt.strictActionTypeUniqueness)return;const Fn=Object.entries(v).filter(([,jn])=>jn>1).map(([jn])=>jn);if(Fn.length)throw new Error(`Action types are registered more than once, ${Fn.map(jn=>`"${jn}"`).join(", ")}. ${It}#strictactiontypeuniqueness`)}function gi(jt={},Fn={}){return[{provide:K,useFactory:Ti},{provide:k,useValue:Fn.initialState},{provide:$,useFactory:On,deps:[k]},{provide:le,useValue:jt},{provide:H,useExisting:jt instanceof e.InjectionToken?jt:le},{provide:U,deps:[le,[new e.Inject(H)]],useFactory:Ni},{provide:se,useValue:Fn.metaReducers?Fn.metaReducers:[]},{provide:Ee,deps:[ve,se],useFactory:Qn},{provide:R,useValue:Fn.reducerFactory?Fn.reducerFactory:Fe},{provide:j,deps:[R,Ee],useFactory:Ce},ae,vt,zt,Xe,Ve,Vn(Fn.runtimeChecks),Le()]}function on(jt,Fn,jn={}){return[{provide:pe,multi:!0,useValue:jt instanceof Object?{}:jn},{provide:T,multi:!0,useValue:{key:jt instanceof Object?jt.name:jt,reducerFactory:jn instanceof e.InjectionToken||!jn.reducerFactory?Fe:jn.reducerFactory,metaReducers:jn instanceof e.InjectionToken||!jn.metaReducers?[]:jn.metaReducers,initialState:jn instanceof e.InjectionToken||!jn.initialState?void 0:jn.initialState}},{provide:de,deps:[pe,T],useFactory:Nn},{provide:N,multi:!0,useValue:jt instanceof Object?jt.reducer:Fn},{provide:me,multi:!0,useExisting:Fn instanceof e.InjectionToken?Fn:N},{provide:q,multi:!0,deps:[N,[new e.Inject(me)]],useFactory:Mn},Le()]}let he=(()=>{class jt{constructor(jn,ri,vi,Ii,cr,Hi){}}return jt.\u0275fac=function(jn){return new(jn||jt)(e.\u0275\u0275inject(Q),e.\u0275\u0275inject(dt),e.\u0275\u0275inject(xt),e.\u0275\u0275inject(Pe),e.\u0275\u0275inject(K,8),e.\u0275\u0275inject(Ut,8))},jt.\u0275mod=e.\u0275\u0275defineNgModule({type:jt}),jt.\u0275inj=e.\u0275\u0275defineInjector({}),jt})(),et=(()=>{class jt{constructor(jn,ri,vi,Ii,cr){this.features=jn,this.featureReducers=ri,this.reducerManager=vi;const Hi=jn.map((Vi,kr)=>{const pr=ri.shift()[kr];return{...Vi,reducers:pr,initialState:On(Vi.initialState)}});vi.addFeatures(Hi)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return jt.\u0275fac=function(jn){return new(jn||jt)(e.\u0275\u0275inject(de),e.\u0275\u0275inject(q),e.\u0275\u0275inject(en),e.\u0275\u0275inject(he),e.\u0275\u0275inject(Ut,8))},jt.\u0275mod=e.\u0275\u0275defineNgModule({type:jt}),jt.\u0275inj=e.\u0275\u0275defineInjector({}),jt})(),tt=(()=>{class jt{static forRoot(jn,ri){return{ngModule:he,providers:[...gi(jn,ri)]}}static forFeature(jn,ri,vi={}){return{ngModule:et,providers:[...on(jn,ri,vi)]}}}return jt.\u0275fac=function(jn){return new(jn||jt)},jt.\u0275mod=e.\u0275\u0275defineNgModule({type:jt}),jt.\u0275inj=e.\u0275\u0275defineInjector({}),jt})();function nn(...jt){return{reducer:jt.pop(),types:jt.map(ri=>ri.type)}}function zn(jt,...Fn){const jn=new Map;for(const ri of Fn)for(const vi of ri.types){const Ii=jn.get(vi);jn.set(vi,Ii?(Hi,Vi)=>ri.reducer(Ii(Hi,Vi),Vi):ri.reducer)}return function(ri=jt,vi){const Ii=jn.get(vi.type);return Ii?Ii(ri,vi):ri}}},89383:(oe,x,i)=>{"use strict";i.d(x,{X$:()=>U,Zw:()=>v,aw:()=>le,sK:()=>j});var e=i(94650),n=i(39646),a=i(45191),t=i(4128),l=i(97272),h=i(49770),s=i(95698),d=i(34782),p=i(54004),u=i(24351),g=i(63900);class v{}let y=(()=>{class T extends v{getTranslation(N){return(0,n.of)({})}}return T.\u0275fac=function(){let H;return function(pe){return(H||(H=e.\u0275\u0275getInheritedFactory(T)))(pe||T)}}(),T.\u0275prov=e.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac}),T})();class b{}let S=(()=>{class T{handle(N){return N.key}}return T.\u0275fac=function(N){return new(N||T)},T.\u0275prov=e.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac}),T})();function E(T,H){if(T===H)return!0;if(null===T||null===H)return!1;if(T!=T&&H!=H)return!0;let de,me,q,N=typeof T;if(N==typeof H&&"object"==N){if(!Array.isArray(T)){if(Array.isArray(H))return!1;for(me in q=Object.create(null),T){if(!E(T[me],H[me]))return!1;q[me]=!0}for(me in H)if(!(me in q)&&typeof H[me]<"u")return!1;return!0}if(!Array.isArray(H))return!1;if((de=T.length)==H.length){for(me=0;me<de;me++)if(!E(T[me],H[me]))return!1;return!0}}return!1}function D(T){return typeof T<"u"&&null!==T}function A(T){return T&&"object"==typeof T&&!Array.isArray(T)}function P(T,H){let N=Object.assign({},T);return A(T)&&A(H)&&Object.keys(H).forEach(pe=>{A(H[pe])?pe in T?N[pe]=P(T[pe],H[pe]):Object.assign(N,{[pe]:H[pe]}):Object.assign(N,{[pe]:H[pe]})}),N}class B{}let V=(()=>{class T extends B{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(N,pe){let de;return de="string"==typeof N?this.interpolateString(N,pe):"function"==typeof N?this.interpolateFunction(N,pe):N,de}getValue(N,pe){let de="string"==typeof pe?pe.split("."):[pe];pe="";do{pe+=de.shift(),!D(N)||!D(N[pe])||"object"!=typeof N[pe]&&de.length?de.length?pe+=".":N=void 0:(N=N[pe],pe="")}while(de.length);return N}interpolateFunction(N,pe){return N(pe)}interpolateString(N,pe){return pe?N.replace(this.templateMatcher,(de,me)=>{let q=this.getValue(pe,me);return D(q)?q:de}):N}}return T.\u0275fac=function(){let H;return function(pe){return(H||(H=e.\u0275\u0275getInheritedFactory(T)))(pe||T)}}(),T.\u0275prov=e.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac}),T})();class X{}let re=(()=>{class T extends X{compile(N,pe){return N}compileTranslations(N,pe){return N}}return T.\u0275fac=function(){let H;return function(pe){return(H||(H=e.\u0275\u0275getInheritedFactory(T)))(pe||T)}}(),T.\u0275prov=e.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac}),T})();class Q{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.EventEmitter,this.onLangChange=new e.EventEmitter,this.onDefaultLangChange=new e.EventEmitter}}const ae=new e.InjectionToken("USE_STORE"),K=new e.InjectionToken("USE_DEFAULT_LANG"),k=new e.InjectionToken("DEFAULT_LANGUAGE"),$=new e.InjectionToken("USE_EXTEND");let j=(()=>{class T{constructor(N,pe,de,me,q,se=!0,ve=!1,Ee=!1,Ye){this.store=N,this.currentLoader=pe,this.compiler=de,this.parser=me,this.missingTranslationHandler=q,this.useDefaultLang=se,this.isolate=ve,this.extend=Ee,this.pending=!1,this._onTranslationChange=new e.EventEmitter,this._onLangChange=new e.EventEmitter,this._onDefaultLangChange=new e.EventEmitter,this._langs=[],this._translations={},this._translationRequests={},Ye&&this.setDefaultLang(Ye)}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(N){this.isolate?this._defaultLang=N:this.store.defaultLang=N}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(N){this.isolate?this._currentLang=N:this.store.currentLang=N}get langs(){return this.isolate?this._langs:this.store.langs}set langs(N){this.isolate?this._langs=N:this.store.langs=N}get translations(){return this.isolate?this._translations:this.store.translations}set translations(N){this.isolate?this._translations=N:this.store.translations=N}setDefaultLang(N){if(N===this.defaultLang)return;let pe=this.retrieveTranslations(N);typeof pe<"u"?(null==this.defaultLang&&(this.defaultLang=N),pe.pipe((0,s.q)(1)).subscribe(de=>{this.changeDefaultLang(N)})):this.changeDefaultLang(N)}getDefaultLang(){return this.defaultLang}use(N){if(N===this.currentLang)return(0,n.of)(this.translations[N]);let pe=this.retrieveTranslations(N);return typeof pe<"u"?(this.currentLang||(this.currentLang=N),pe.pipe((0,s.q)(1)).subscribe(de=>{this.changeLang(N)}),pe):(this.changeLang(N),(0,n.of)(this.translations[N]))}retrieveTranslations(N){let pe;return(typeof this.translations[N]>"u"||this.extend)&&(this._translationRequests[N]=this._translationRequests[N]||this.getTranslation(N),pe=this._translationRequests[N]),pe}getTranslation(N){this.pending=!0;const pe=this.currentLoader.getTranslation(N).pipe((0,d.d)(1),(0,s.q)(1));return this.loadingTranslations=pe.pipe((0,p.U)(de=>this.compiler.compileTranslations(de,N)),(0,d.d)(1),(0,s.q)(1)),this.loadingTranslations.subscribe({next:de=>{this.translations[N]=this.extend&&this.translations[N]?{...de,...this.translations[N]}:de,this.updateLangs(),this.pending=!1},error:de=>{this.pending=!1}}),pe}setTranslation(N,pe,de=!1){pe=this.compiler.compileTranslations(pe,N),this.translations[N]=(de||this.extend)&&this.translations[N]?P(this.translations[N],pe):pe,this.updateLangs(),this.onTranslationChange.emit({lang:N,translations:this.translations[N]})}getLangs(){return this.langs}addLangs(N){N.forEach(pe=>{-1===this.langs.indexOf(pe)&&this.langs.push(pe)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(N,pe,de){let me;if(pe instanceof Array){let q={},se=!1;for(let ve of pe)q[ve]=this.getParsedResult(N,ve,de),(0,a.b)(q[ve])&&(se=!0);if(se){const ve=pe.map(Ee=>(0,a.b)(q[Ee])?q[Ee]:(0,n.of)(q[Ee]));return(0,t.D)(ve).pipe((0,p.U)(Ee=>{let Ye={};return Ee.forEach((wt,Wt)=>{Ye[pe[Wt]]=wt}),Ye}))}return q}if(N&&(me=this.parser.interpolate(this.parser.getValue(N,pe),de)),typeof me>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(me=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],pe),de)),typeof me>"u"){let q={key:pe,translateService:this};typeof de<"u"&&(q.interpolateParams=de),me=this.missingTranslationHandler.handle(q)}return typeof me<"u"?me:pe}get(N,pe){if(!D(N)||!N.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,u.b)(de=>(de=this.getParsedResult(de,N,pe),(0,a.b)(de)?de:(0,n.of)(de))));{let de=this.getParsedResult(this.translations[this.currentLang],N,pe);return(0,a.b)(de)?de:(0,n.of)(de)}}getStreamOnTranslationChange(N,pe){if(!D(N)||!N.length)throw new Error('Parameter "key" required');return(0,l.z)((0,h.P)(()=>this.get(N,pe)),this.onTranslationChange.pipe((0,g.w)(de=>{const me=this.getParsedResult(de.translations,N,pe);return"function"==typeof me.subscribe?me:(0,n.of)(me)})))}stream(N,pe){if(!D(N)||!N.length)throw new Error('Parameter "key" required');return(0,l.z)((0,h.P)(()=>this.get(N,pe)),this.onLangChange.pipe((0,g.w)(de=>{const me=this.getParsedResult(de.translations,N,pe);return(0,a.b)(me)?me:(0,n.of)(me)})))}instant(N,pe){if(!D(N)||!N.length)throw new Error('Parameter "key" required');let de=this.getParsedResult(this.translations[this.currentLang],N,pe);if((0,a.b)(de)){if(N instanceof Array){let me={};return N.forEach((q,se)=>{me[N[se]]=N[se]}),me}return N}return de}set(N,pe,de=this.currentLang){this.translations[de][N]=this.compiler.compile(pe,de),this.updateLangs(),this.onTranslationChange.emit({lang:de,translations:this.translations[de]})}changeLang(N){this.currentLang=N,this.onLangChange.emit({lang:N,translations:this.translations[N]}),null==this.defaultLang&&this.changeDefaultLang(N)}changeDefaultLang(N){this.defaultLang=N,this.onDefaultLangChange.emit({lang:N,translations:this.translations[N]})}reloadLang(N){return this.resetLang(N),this.getTranslation(N)}resetLang(N){this._translationRequests[N]=void 0,this.translations[N]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let N=window.navigator.languages?window.navigator.languages[0]:null;return N=N||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof N>"u"?void 0:(-1!==N.indexOf("-")&&(N=N.split("-")[0]),-1!==N.indexOf("_")&&(N=N.split("_")[0]),N)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let N=window.navigator.languages?window.navigator.languages[0]:null;return N=N||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,N}}return T.\u0275fac=function(N){return new(N||T)(e.\u0275\u0275inject(Q),e.\u0275\u0275inject(v),e.\u0275\u0275inject(X),e.\u0275\u0275inject(B),e.\u0275\u0275inject(b),e.\u0275\u0275inject(K),e.\u0275\u0275inject(ae),e.\u0275\u0275inject($),e.\u0275\u0275inject(k))},T.\u0275prov=e.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac}),T})(),U=(()=>{class T{constructor(N,pe){this.translate=N,this._ref=pe,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(N,pe,de){let me=q=>{this.value=void 0!==q?q:N,this.lastKey=N,this._ref.markForCheck()};if(de){let q=this.translate.getParsedResult(de,N,pe);(0,a.b)(q.subscribe)?q.subscribe(me):me(q)}this.translate.get(N,pe).subscribe(me)}transform(N,...pe){if(!N||!N.length)return N;if(E(N,this.lastKey)&&E(pe,this.lastParams))return this.value;let de;if(D(pe[0])&&pe.length)if("string"==typeof pe[0]&&pe[0].length){let me=pe[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{de=JSON.parse(me)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${pe[0]}`)}}else"object"==typeof pe[0]&&!Array.isArray(pe[0])&&(de=pe[0]);return this.lastKey=N,this.lastParams=pe,this.updateValue(N,de),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(me=>{this.lastKey&&me.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(N,de,me.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(me=>{this.lastKey&&(this.lastKey=null,this.updateValue(N,de,me.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(N,de))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return T.\u0275fac=function(N){return new(N||T)(e.\u0275\u0275directiveInject(j,16),e.\u0275\u0275directiveInject(e.ChangeDetectorRef,16))},T.\u0275pipe=e.\u0275\u0275definePipe({name:"translate",type:T,pure:!1}),T.\u0275prov=e.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac}),T})(),le=(()=>{class T{static forRoot(N={}){return{ngModule:T,providers:[N.loader||{provide:v,useClass:y},N.compiler||{provide:X,useClass:re},N.parser||{provide:B,useClass:V},N.missingTranslationHandler||{provide:b,useClass:S},Q,{provide:ae,useValue:N.isolate},{provide:K,useValue:N.useDefaultLang},{provide:$,useValue:N.extend},{provide:k,useValue:N.defaultLanguage},j]}}static forChild(N={}){return{ngModule:T,providers:[N.loader||{provide:v,useClass:y},N.compiler||{provide:X,useClass:re},N.parser||{provide:B,useClass:V},N.missingTranslationHandler||{provide:b,useClass:S},{provide:ae,useValue:N.isolate},{provide:K,useValue:N.useDefaultLang},{provide:$,useValue:N.extend},{provide:k,useValue:N.defaultLanguage},j]}}}return T.\u0275fac=function(N){return new(N||T)},T.\u0275mod=e.\u0275\u0275defineNgModule({type:T}),T.\u0275inj=e.\u0275\u0275defineInjector({}),T})()},70259:(oe,x,i)=>{"use strict";i.d(x,{C6:()=>e.getApps,Mq:()=>e.getApp});var e=i(6881);(0,e.registerVersion)("firebase","9.23.0","app")},29260:(oe,x,i)=>{"use strict";i.d(x,{Z:()=>e.Z});var e=i(63942);e.Z.registerVersion("firebase","9.23.0","app-compat")},32644:(oe,x,i)=>{"use strict";i.r(x);var e=i(15861),n=i(63942),a=i(42090),t=i(6881),l=i(97582),h=i(41877),s=i(34859);const p={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},v_EMAIL_SIGNIN="EMAIL_SIGNIN",v_PASSWORD_RESET="PASSWORD_RESET",v_RECOVER_EMAIL="RECOVER_EMAIL",v_REVERT_SECOND_FACTOR_ADDITION="REVERT_SECOND_FACTOR_ADDITION",v_VERIFY_AND_CHANGE_EMAIL="VERIFY_AND_CHANGE_EMAIL",v_VERIFY_EMAIL="VERIFY_EMAIL";const S=function y(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend."}},E=function b(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},D=new a.LL("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),P=new h.Yd("@firebase/auth");function V(_e,...F){P.logLevel<=h.in.ERROR&&P.error(`Auth (${t.SDK_VERSION}): ${_e}`,...F)}function X(_e,...F){throw K(_e,...F)}function re(_e,...F){return K(_e,...F)}function Q(_e,F,Y){const Te=Object.assign(Object.assign({},E()),{[F]:Y});return new a.LL("auth","Firebase",Te).create(F,{appName:_e.name})}function ae(_e,F,Y){if(!(F instanceof Y))throw Y.name!==F.constructor.name&&X(_e,"argument-error"),Q(_e,"argument-error",`Type of ${F.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function K(_e,...F){if("string"!=typeof _e){const Y=F[0],Te=[...F.slice(1)];return Te[0]&&(Te[0].appName=_e.name),_e._errorFactory.create(Y,...Te)}return D.create(_e,...F)}function k(_e,F,...Y){if(!_e)throw K(F,...Y)}function $(_e){const F="INTERNAL ASSERTION FAILED: "+_e;throw V(F),new Error(F)}function j(_e,F){_e||$(F)}function R(){var _e;return typeof self<"u"&&(null===(_e=self.location)||void 0===_e?void 0:_e.href)||""}function U(){return"http:"===le()||"https:"===le()}function le(){var _e;return typeof self<"u"&&(null===(_e=self.location)||void 0===_e?void 0:_e.protocol)||null}class N{constructor(F,Y){this.shortDelay=F,this.longDelay=Y,j(Y>F,"Short delay should be less than long delay!"),this.isMobile=(0,a.uI)()||(0,a.b$)()}get(){return function T(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(U()||(0,a.ru)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function pe(_e,F){j(_e.emulator,"Emulator should always be set here");const{url:Y}=_e.emulator;return F?`${Y}${F.startsWith("/")?F.slice(1):F}`:Y}class de{static initialize(F,Y,Te){this.fetchImpl=F,Y&&(this.headersImpl=Y),Te&&(this.responseImpl=Te)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:void $("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:void $("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:void $("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const me={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},q=new N(3e4,6e4);function se(_e,F){return _e.tenantId&&!F.tenantId?Object.assign(Object.assign({},F),{tenantId:_e.tenantId}):F}function ve(_e,F,Y,Te){return Ee.apply(this,arguments)}function Ee(){return(Ee=(0,e.Z)(function*(_e,F,Y,Te,kt={}){return Ye(_e,kt,(0,e.Z)(function*(){let gn={},ei={};Te&&("GET"===F?ei=Te:gn={body:JSON.stringify(Te)});const bi=(0,a.xO)(Object.assign({key:_e.config.apiKey},ei)).slice(1),Gi=yield _e._getAdditionalHeaders();return Gi["Content-Type"]="application/json",_e.languageCode&&(Gi["X-Firebase-Locale"]=_e.languageCode),de.fetch()(nt(_e,_e.config.apiHost,Y,bi),Object.assign({method:F,headers:Gi,referrerPolicy:"no-referrer"},gn))}))})).apply(this,arguments)}function Ye(_e,F,Y){return wt.apply(this,arguments)}function wt(){return(wt=(0,e.Z)(function*(_e,F,Y){_e._canInitEmulator=!1;const Te=Object.assign(Object.assign({},me),F);try{const kt=new Zt(_e),gn=yield Promise.race([Y(),kt.promise]);kt.clearNetworkTimeout();const ei=yield gn.json();if("needConfirmation"in ei)throw Fe(_e,"account-exists-with-different-credential",ei);if(gn.ok&&!("errorMessage"in ei))return ei;{const bi=gn.ok?ei.errorMessage:ei.error.message,[Gi,er]=bi.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Gi)throw Fe(_e,"credential-already-in-use",ei);if("EMAIL_EXISTS"===Gi)throw Fe(_e,"email-already-in-use",ei);if("USER_DISABLED"===Gi)throw Fe(_e,"user-disabled",ei);const _r=Te[Gi]||Gi.toLowerCase().replace(/[_\s]+/g,"-");if(er)throw Q(_e,_r,er);X(_e,_r)}}catch(kt){if(kt instanceof a.ZR)throw kt;X(_e,"network-request-failed",{message:String(kt)})}})).apply(this,arguments)}function Wt(_e,F,Y,Te){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,e.Z)(function*(_e,F,Y,Te,kt={}){const gn=yield ve(_e,F,Y,Te,kt);return"mfaPendingCredential"in gn&&X(_e,"multi-factor-auth-required",{_serverResponse:gn}),gn})).apply(this,arguments)}function nt(_e,F,Y,Te){const kt=`${F}${Y}?${Te}`;return _e.config.emulator?pe(_e.config,kt):`${_e.config.apiScheme}://${kt}`}class Zt{constructor(F){this.auth=F,this.timer=null,this.promise=new Promise((Y,Te)=>{this.timer=setTimeout(()=>Te(re(this.auth,"network-request-failed")),q.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Fe(_e,F,Y){const Te={appName:_e.name};Y.email&&(Te.email=Y.email),Y.phoneNumber&&(Te.phoneNumber=Y.phoneNumber);const kt=re(_e,F,Te);return kt.customData._tokenResponse=Y,kt}function ie(){return(ie=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:delete",F)})).apply(this,arguments)}function Ie(){return(Ie=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:update",F)})).apply(this,arguments)}function Mt(){return(Mt=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:lookup",F)})).apply(this,arguments)}function Xt(_e){if(_e)try{const F=new Date(Number(_e));if(!isNaN(F.getTime()))return F.toUTCString()}catch{}}function xt(){return(xt=(0,e.Z)(function*(_e,F=!1){const Y=(0,a.m9)(_e),Te=yield Y.getIdToken(F),kt=bt(Te);k(kt&&kt.exp&&kt.auth_time&&kt.iat,Y.auth,"internal-error");const gn="object"==typeof kt.firebase?kt.firebase:void 0,ei=gn?.sign_in_provider;return{claims:kt,token:Te,authTime:Xt(zt(kt.auth_time)),issuedAtTime:Xt(zt(kt.iat)),expirationTime:Xt(zt(kt.exp)),signInProvider:ei||null,signInSecondFactor:gn?.sign_in_second_factor||null}})).apply(this,arguments)}function zt(_e){return 1e3*Number(_e)}function bt(_e){const[F,Y,Te]=_e.split(".");if(void 0===F||void 0===Y||void 0===Te)return V("JWT malformed, contained fewer than 3 sections"),null;try{const kt=(0,a.tV)(Y);return kt?JSON.parse(kt):(V("Failed to decode base64 JWT payload"),null)}catch(kt){return V("Caught error parsing JWT payload as JSON",kt?.toString()),null}}function $e(_e,F){return Xe.apply(this,arguments)}function Xe(){return(Xe=(0,e.Z)(function*(_e,F,Y=!1){if(Y)return F;try{return yield F}catch(Te){throw Te instanceof a.ZR&&function Pe({code:_e}){return"auth/user-disabled"===_e||"auth/user-token-expired"===_e}(Te)&&_e.auth.currentUser===_e&&(yield _e.auth.signOut()),Te}})).apply(this,arguments)}class Ve{constructor(F){this.user=F,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(F){var Y;if(F){const Te=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),Te}{this.errorBackoff=3e4;const kt=(null!==(Y=this.user.stsTokenManager.expirationTime)&&void 0!==Y?Y:0)-Date.now()-3e5;return Math.max(0,kt)}}schedule(F=!1){var Y=this;if(!this.isRunning)return;const Te=this.getInterval(F);this.timerId=setTimeout((0,e.Z)(function*(){yield Y.iteration()}),Te)}iteration(){var F=this;return(0,e.Z)(function*(){try{yield F.user.getIdToken(!0)}catch(Y){return void("auth/network-request-failed"===Y?.code&&F.schedule(!0))}F.schedule()})()}}class mt{constructor(F,Y){this.createdAt=F,this.lastLoginAt=Y,this._initializeTime()}_initializeTime(){this.lastSignInTime=Xt(this.lastLoginAt),this.creationTime=Xt(this.createdAt)}_copy(F){this.createdAt=F.createdAt,this.lastLoginAt=F.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function It(_e){return xn.apply(this,arguments)}function xn(){return xn=(0,e.Z)(function*(_e){var F;const Y=_e.auth,Te=yield _e.getIdToken(),kt=yield $e(_e,function dt(_e,F){return Mt.apply(this,arguments)}(Y,{idToken:Te}));k(kt?.users.length,Y,"internal-error");const gn=kt.users[0];_e._notifyReloadListener(gn);const ei=null!==(F=gn.providerUserInfo)&&void 0!==F&&F.length?function Ae(_e){return _e.map(F=>{var{providerId:Y}=F,Te=(0,l._T)(F,["providerId"]);return{providerId:Y,uid:Te.rawId||"",displayName:Te.displayName||null,email:Te.email||null,phoneNumber:Te.phoneNumber||null,photoURL:Te.photoUrl||null}})}(gn.providerUserInfo):[],bi=function ke(_e,F){return[..._e.filter(Te=>!F.some(kt=>kt.providerId===Te.providerId)),...F]}(_e.providerData,ei),_r=!!_e.isAnonymous&&!(_e.email&&gn.passwordHash||bi?.length),vr={uid:gn.localId,displayName:gn.displayName||null,photoURL:gn.photoUrl||null,email:gn.email||null,emailVerified:gn.emailVerified||!1,phoneNumber:gn.phoneNumber||null,tenantId:gn.tenantId||null,providerData:bi,metadata:new mt(gn.createdAt,gn.lastLoginAt),isAnonymous:_r};Object.assign(_e,vr)}),xn.apply(this,arguments)}function Jt(){return(Jt=(0,e.Z)(function*(_e){const F=(0,a.m9)(_e);yield It(F),yield F.auth._persistUserIfCurrent(F),F.auth._notifyListenersIfCurrent(F)})).apply(this,arguments)}function pt(){return(pt=(0,e.Z)(function*(_e,F){const Y=yield Ye(_e,{},(0,e.Z)(function*(){const Te=(0,a.xO)({grant_type:"refresh_token",refresh_token:F}).slice(1),{tokenApiHost:kt,apiKey:gn}=_e.config,ei=nt(_e,kt,"/v1/token",`key=${gn}`),bi=yield _e._getAdditionalHeaders();return bi["Content-Type"]="application/x-www-form-urlencoded",de.fetch()(ei,{method:"POST",headers:bi,body:Te})}));return{accessToken:Y.access_token,expiresIn:Y.expires_in,refreshToken:Y.refresh_token}})).apply(this,arguments)}class tn{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(F){k(F.idToken,"internal-error"),k(typeof F.idToken<"u","internal-error"),k(typeof F.refreshToken<"u","internal-error");const Y="expiresIn"in F&&typeof F.expiresIn<"u"?Number(F.expiresIn):function At(_e){const F=bt(_e);return k(F,"internal-error"),k(typeof F.exp<"u","internal-error"),k(typeof F.iat<"u","internal-error"),Number(F.exp)-Number(F.iat)}(F.idToken);this.updateTokensAndExpiration(F.idToken,F.refreshToken,Y)}getToken(F,Y=!1){var Te=this;return(0,e.Z)(function*(){return k(!Te.accessToken||Te.refreshToken,F,"user-token-expired"),Y||!Te.accessToken||Te.isExpired?Te.refreshToken?(yield Te.refresh(F,Te.refreshToken),Te.accessToken):null:Te.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(F,Y){var Te=this;return(0,e.Z)(function*(){const{accessToken:kt,refreshToken:gn,expiresIn:ei}=yield function ze(_e,F){return pt.apply(this,arguments)}(F,Y);Te.updateTokensAndExpiration(kt,gn,Number(ei))})()}updateTokensAndExpiration(F,Y,Te){this.refreshToken=Y||null,this.accessToken=F||null,this.expirationTime=Date.now()+1e3*Te}static fromJSON(F,Y){const{refreshToken:Te,accessToken:kt,expirationTime:gn}=Y,ei=new tn;return Te&&(k("string"==typeof Te,"internal-error",{appName:F}),ei.refreshToken=Te),kt&&(k("string"==typeof kt,"internal-error",{appName:F}),ei.accessToken=kt),gn&&(k("number"==typeof gn,"internal-error",{appName:F}),ei.expirationTime=gn),ei}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(F){this.accessToken=F.accessToken,this.refreshToken=F.refreshToken,this.expirationTime=F.expirationTime}_clone(){return Object.assign(new tn,this.toJSON())}_performRefresh(){return $("not implemented")}}function ot(_e,F){k("string"==typeof _e||typeof _e>"u","internal-error",{appName:F})}class Et{constructor(F){var{uid:Y,auth:Te,stsTokenManager:kt}=F,gn=(0,l._T)(F,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Ve(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=Y,this.auth=Te,this.stsTokenManager=kt,this.accessToken=kt.accessToken,this.displayName=gn.displayName||null,this.email=gn.email||null,this.emailVerified=gn.emailVerified||!1,this.phoneNumber=gn.phoneNumber||null,this.photoURL=gn.photoURL||null,this.isAnonymous=gn.isAnonymous||!1,this.tenantId=gn.tenantId||null,this.providerData=gn.providerData?[...gn.providerData]:[],this.metadata=new mt(gn.createdAt||void 0,gn.lastLoginAt||void 0)}getIdToken(F){var Y=this;return(0,e.Z)(function*(){const Te=yield $e(Y,Y.stsTokenManager.getToken(Y.auth,F));return k(Te,Y.auth,"internal-error"),Y.accessToken!==Te&&(Y.accessToken=Te,yield Y.auth._persistUserIfCurrent(Y),Y.auth._notifyListenersIfCurrent(Y)),Te})()}getIdTokenResult(F){return function vt(_e){return xt.apply(this,arguments)}(this,F)}reload(){return function _n(_e){return Jt.apply(this,arguments)}(this)}_assign(F){this!==F&&(k(this.uid===F.uid,this.auth,"internal-error"),this.displayName=F.displayName,this.photoURL=F.photoURL,this.email=F.email,this.emailVerified=F.emailVerified,this.phoneNumber=F.phoneNumber,this.isAnonymous=F.isAnonymous,this.tenantId=F.tenantId,this.providerData=F.providerData.map(Y=>Object.assign({},Y)),this.metadata._copy(F.metadata),this.stsTokenManager._assign(F.stsTokenManager))}_clone(F){const Y=new Et(Object.assign(Object.assign({},this),{auth:F,stsTokenManager:this.stsTokenManager._clone()}));return Y.metadata._copy(this.metadata),Y}_onReload(F){k(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=F,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(F){this.reloadListener?this.reloadListener(F):this.reloadUserInfo=F}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(F,Y=!1){var Te=this;return(0,e.Z)(function*(){let kt=!1;F.idToken&&F.idToken!==Te.stsTokenManager.accessToken&&(Te.stsTokenManager.updateFromServerResponse(F),kt=!0),Y&&(yield It(Te)),yield Te.auth._persistUserIfCurrent(Te),kt&&Te.auth._notifyListenersIfCurrent(Te)})()}delete(){var F=this;return(0,e.Z)(function*(){const Y=yield F.getIdToken();return yield $e(F,function yt(_e,F){return ie.apply(this,arguments)}(F.auth,{idToken:Y})),F.stsTokenManager.clearRefreshToken(),F.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(F=>Object.assign({},F)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(F,Y){var Te,kt,gn,ei,bi,Gi,er,_r;const vr=null!==(Te=Y.displayName)&&void 0!==Te?Te:void 0,la=null!==(kt=Y.email)&&void 0!==kt?kt:void 0,Tl=null!==(gn=Y.phoneNumber)&&void 0!==gn?gn:void 0,qc=null!==(ei=Y.photoURL)&&void 0!==ei?ei:void 0,ru=null!==(bi=Y.tenantId)&&void 0!==bi?bi:void 0,Ta=null!==(Gi=Y._redirectEventId)&&void 0!==Gi?Gi:void 0,lh=null!==(er=Y.createdAt)&&void 0!==er?er:void 0,ch=null!==(_r=Y.lastLoginAt)&&void 0!==_r?_r:void 0,{uid:ou,emailVerified:xd,isAnonymous:ju,providerData:Hu,stsTokenManager:dh}=Y;k(ou&&dh,F,"internal-error");const uf=tn.fromJSON(this.name,dh);k("string"==typeof ou,F,"internal-error"),ot(vr,F.name),ot(la,F.name),k("boolean"==typeof xd,F,"internal-error"),k("boolean"==typeof ju,F,"internal-error"),ot(Tl,F.name),ot(qc,F.name),ot(ru,F.name),ot(Ta,F.name),ot(lh,F.name),ot(ch,F.name);const zl=new Et({uid:ou,auth:F,email:la,emailVerified:xd,displayName:vr,isAnonymous:ju,photoURL:qc,phoneNumber:Tl,tenantId:ru,stsTokenManager:uf,createdAt:lh,lastLoginAt:ch});return Hu&&Array.isArray(Hu)&&(zl.providerData=Hu.map(dg=>Object.assign({},dg))),Ta&&(zl._redirectEventId=Ta),zl}static _fromIdTokenResponse(F,Y,Te=!1){return(0,e.Z)(function*(){const kt=new tn;kt.updateFromServerResponse(Y);const gn=new Et({uid:Y.localId,auth:F,stsTokenManager:kt,isAnonymous:Te});return yield It(gn),gn})()}}const z=new Map;function Z(_e){j(_e instanceof Function,"Expected a class definition");let F=z.get(_e);return F?(j(F instanceof _e,"Instance stored in cache mismatched with class"),F):(F=new _e,z.set(_e,F),F)}const Qe=(()=>{class _e{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,e.Z)(function*(){return!0})()}_set(Y,Te){var kt=this;return(0,e.Z)(function*(){kt.storage[Y]=Te})()}_get(Y){var Te=this;return(0,e.Z)(function*(){const kt=Te.storage[Y];return void 0===kt?null:kt})()}_remove(Y){var Te=this;return(0,e.Z)(function*(){delete Te.storage[Y]})()}_addListener(Y,Te){}_removeListener(Y,Te){}}return _e.type="NONE",_e})();function qe(_e,F,Y){return`firebase:${_e}:${F}:${Y}`}class ct{constructor(F,Y,Te){this.persistence=F,this.auth=Y,this.userKey=Te;const{config:kt,name:gn}=this.auth;this.fullUserKey=qe(this.userKey,kt.apiKey,gn),this.fullPersistenceKey=qe("persistence",kt.apiKey,gn),this.boundEventHandler=Y._onStorageEvent.bind(Y),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(F){return this.persistence._set(this.fullUserKey,F.toJSON())}getCurrentUser(){var F=this;return(0,e.Z)(function*(){const Y=yield F.persistence._get(F.fullUserKey);return Y?Et._fromJSON(F.auth,Y):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(F){var Y=this;return(0,e.Z)(function*(){if(Y.persistence===F)return;const Te=yield Y.getCurrentUser();return yield Y.removeCurrentUser(),Y.persistence=F,Te?Y.setCurrentUser(Te):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(F,Y,Te="authUser"){return(0,e.Z)(function*(){if(!Y.length)return new ct(Z(Qe),F,Te);const kt=(yield Promise.all(Y.map(function(){var er=(0,e.Z)(function*(_r){if(yield _r._isAvailable())return _r});return function(_r){return er.apply(this,arguments)}}()))).filter(er=>er);let gn=kt[0]||Z(Qe);const ei=qe(Te,F.config.apiKey,F.name);let bi=null;for(const er of Y)try{const _r=yield er._get(ei);if(_r){const vr=Et._fromJSON(F,_r);er!==gn&&(bi=vr),gn=er;break}}catch{}const Gi=kt.filter(er=>er._shouldAllowMigration);return gn._shouldAllowMigration&&Gi.length?(gn=Gi[0],bi&&(yield gn._set(ei,bi.toJSON())),yield Promise.all(Y.map(function(){var er=(0,e.Z)(function*(_r){if(_r!==gn)try{yield _r._remove(ei)}catch{}});return function(_r){return er.apply(this,arguments)}}())),new ct(gn,F,Te)):new ct(gn,F,Te)})()}}function Yt(_e){const F=_e.toLowerCase();if(F.includes("opera/")||F.includes("opr/")||F.includes("opios/"))return"Opera";if(ue(F))return"IEMobile";if(F.includes("msie")||F.includes("trident/"))return"IE";if(F.includes("edge/"))return"Edge";if(it(F))return"Firefox";if(F.includes("silk/"))return"Silk";if(ee(F))return"Blackberry";if(De(F))return"Webos";if(Be(F))return"Safari";if((F.includes("chrome/")||gt(F))&&!F.includes("edge/"))return"Chrome";if(Ge(F))return"Android";{const Te=_e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===Te?.length)return Te[1]}return"Other"}function it(_e=(0,a.z$)()){return/firefox\//i.test(_e)}function Be(_e=(0,a.z$)()){const F=_e.toLowerCase();return F.includes("safari/")&&!F.includes("chrome/")&&!F.includes("crios/")&&!F.includes("android")}function gt(_e=(0,a.z$)()){return/crios\//i.test(_e)}function ue(_e=(0,a.z$)()){return/iemobile/i.test(_e)}function Ge(_e=(0,a.z$)()){return/android/i.test(_e)}function ee(_e=(0,a.z$)()){return/blackberry/i.test(_e)}function De(_e=(0,a.z$)()){return/webos/i.test(_e)}function Ot(_e=(0,a.z$)()){return/iphone|ipad|ipod/i.test(_e)||/macintosh/i.test(_e)&&/mobile/i.test(_e)}function Ni(_e=(0,a.z$)()){return Ot(_e)||Ge(_e)||De(_e)||ee(_e)||/windows phone/i.test(_e)||ue(_e)}function Mn(_e,F=[]){let Y;switch(_e){case"Browser":Y=Yt((0,a.z$)());break;case"Worker":Y=`${Yt((0,a.z$)())}-${_e}`;break;default:Y=_e}const Te=F.length?F.join(","):"FirebaseCore-web";return`${Y}/JsCore/${t.SDK_VERSION}/${Te}`}function Qn(){return(Qn=(0,e.Z)(function*(_e){return(yield ve(_e,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""})).apply(this,arguments)}function Ti(_e,F){return Si.apply(this,arguments)}function Si(){return(Si=(0,e.Z)(function*(_e,F){return ve(_e,"GET","/v2/recaptchaConfig",se(_e,F))})).apply(this,arguments)}function un(_e){return void 0!==_e&&void 0!==_e.getResponse}function rn(_e){return void 0!==_e&&void 0!==_e.enterprise}class $t{constructor(F){if(this.siteKey="",this.emailPasswordEnabled=!1,void 0===F.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=F.recaptchaKey.split("/")[3],this.emailPasswordEnabled=F.recaptchaEnforcementState.some(Y=>"EMAIL_PASSWORD_PROVIDER"===Y.provider&&"OFF"!==Y.enforcementState)}}function Rn(_e){return new Promise((F,Y)=>{const Te=document.createElement("script");Te.setAttribute("src",_e),Te.onload=F,Te.onerror=kt=>{const gn=re("internal-error");gn.customData=kt,Y(gn)},Te.type="text/javascript",Te.charset="UTF-8",function Nt(){var _e,F;return null!==(F=null===(_e=document.getElementsByTagName("head"))||void 0===_e?void 0:_e[0])&&void 0!==F?F:document}().appendChild(Te)})}function Wn(_e){return`__${_e}${Math.floor(1e6*Math.random())}`}const dr="NO_RECAPTCHA";class Ln{constructor(F){this.type="recaptcha-enterprise",this.auth=En(F)}verify(F="verify",Y=!1){var Te=this;return(0,e.Z)(function*(){function gn(){return gn=(0,e.Z)(function*(bi){if(!Y){if(null==bi.tenantId&&null!=bi._agentRecaptchaConfig)return bi._agentRecaptchaConfig.siteKey;if(null!=bi.tenantId&&void 0!==bi._tenantRecaptchaConfigs[bi.tenantId])return bi._tenantRecaptchaConfigs[bi.tenantId].siteKey}return new Promise(function(){var Gi=(0,e.Z)(function*(er,_r){Ti(bi,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(vr=>{if(void 0!==vr.recaptchaKey){const la=new $t(vr);return null==bi.tenantId?bi._agentRecaptchaConfig=la:bi._tenantRecaptchaConfigs[bi.tenantId]=la,er(la.siteKey)}_r(new Error("recaptcha Enterprise site key undefined"))}).catch(vr=>{_r(vr)})});return function(er,_r){return Gi.apply(this,arguments)}}())}),gn.apply(this,arguments)}function ei(bi,Gi,er){const _r=window.grecaptcha;rn(_r)?_r.enterprise.ready(()=>{_r.enterprise.execute(bi,{action:F}).then(vr=>{Gi(vr)}).catch(()=>{Gi(dr)})}):er(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((bi,Gi)=>{(function kt(bi){return gn.apply(this,arguments)})(Te.auth).then(er=>{if(!Y&&rn(window.grecaptcha))ei(er,bi,Gi);else{if(typeof window>"u")return void Gi(new Error("RecaptchaVerifier is only supported in browser"));Rn("https://www.google.com/recaptcha/enterprise.js?render="+er).then(()=>{ei(er,bi,Gi)}).catch(_r=>{Gi(_r)})}}).catch(er=>{Gi(er)})})})()}}function Vn(_e,F,Y){return Le.apply(this,arguments)}function Le(){return(Le=(0,e.Z)(function*(_e,F,Y,Te=!1){const kt=new Ln(_e);let gn;try{gn=yield kt.verify(Y)}catch{gn=yield kt.verify(Y,!0)}const ei=Object.assign({},F);return Object.assign(ei,Te?{captchaResp:gn}:{captchaResponse:gn}),Object.assign(ei,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(ei,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),ei})).apply(this,arguments)}class Ft{constructor(F){this.auth=F,this.queue=[]}pushCallback(F,Y){const Te=gn=>new Promise((ei,bi)=>{try{ei(F(gn))}catch(Gi){bi(Gi)}});Te.onAbort=Y,this.queue.push(Te);const kt=this.queue.length-1;return()=>{this.queue[kt]=()=>Promise.resolve()}}runMiddleware(F){var Y=this;return(0,e.Z)(function*(){if(Y.auth.currentUser===F)return;const Te=[];try{for(const kt of Y.queue)yield kt(F),kt.onAbort&&Te.push(kt.onAbort)}catch(kt){Te.reverse();for(const gn of Te)try{gn()}catch{}throw Y.auth._errorFactory.create("login-blocked",{originalMessage:kt?.message})}})()}}class dn{constructor(F,Y,Te,kt){this.app=F,this.heartbeatServiceProvider=Y,this.appCheckServiceProvider=Te,this.config=kt,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new gi(this),this.idTokenSubscription=new gi(this),this.beforeStateQueue=new Ft(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=D,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=F.name,this.clientVersion=kt.sdkClientVersion}_initializeWithPersistence(F,Y){var Te=this;return Y&&(this._popupRedirectResolver=Z(Y)),this._initializationPromise=this.queue((0,e.Z)(function*(){var kt,gn;if(!Te._deleted&&(Te.persistenceManager=yield ct.create(Te,F),!Te._deleted)){if(null!==(kt=Te._popupRedirectResolver)&&void 0!==kt&&kt._shouldInitProactively)try{yield Te._popupRedirectResolver._initialize(Te)}catch{}yield Te.initializeCurrentUser(Y),Te.lastNotifiedUid=(null===(gn=Te.currentUser)||void 0===gn?void 0:gn.uid)||null,!Te._deleted&&(Te._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var F=this;return(0,e.Z)(function*(){if(F._deleted)return;const Y=yield F.assertedPersistence.getCurrentUser();if(F.currentUser||Y){if(F.currentUser&&Y&&F.currentUser.uid===Y.uid)return F._currentUser._assign(Y),void(yield F.currentUser.getIdToken());yield F._updateCurrentUser(Y,!0)}})()}initializeCurrentUser(F){var Y=this;return(0,e.Z)(function*(){var Te;const kt=yield Y.assertedPersistence.getCurrentUser();let gn=kt,ei=!1;if(F&&Y.config.authDomain){yield Y.getOrInitRedirectPersistenceManager();const bi=null===(Te=Y.redirectUser)||void 0===Te?void 0:Te._redirectEventId,Gi=gn?._redirectEventId,er=yield Y.tryRedirectSignIn(F);(!bi||bi===Gi)&&er?.user&&(gn=er.user,ei=!0)}if(!gn)return Y.directlySetCurrentUser(null);if(!gn._redirectEventId){if(ei)try{yield Y.beforeStateQueue.runMiddleware(gn)}catch(bi){gn=kt,Y._popupRedirectResolver._overrideRedirectResult(Y,()=>Promise.reject(bi))}return gn?Y.reloadAndSetCurrentUserOrClear(gn):Y.directlySetCurrentUser(null)}return k(Y._popupRedirectResolver,Y,"argument-error"),yield Y.getOrInitRedirectPersistenceManager(),Y.redirectUser&&Y.redirectUser._redirectEventId===gn._redirectEventId?Y.directlySetCurrentUser(gn):Y.reloadAndSetCurrentUserOrClear(gn)})()}tryRedirectSignIn(F){var Y=this;return(0,e.Z)(function*(){let Te=null;try{Te=yield Y._popupRedirectResolver._completeRedirectFn(Y,F,!0)}catch{yield Y._setRedirectUser(null)}return Te})()}reloadAndSetCurrentUserOrClear(F){var Y=this;return(0,e.Z)(function*(){try{yield It(F)}catch(Te){if("auth/network-request-failed"!==Te?.code)return Y.directlySetCurrentUser(null)}return Y.directlySetCurrentUser(F)})()}useDeviceLanguage(){this.languageCode=function H(){if(typeof navigator>"u")return null;const _e=navigator;return _e.languages&&_e.languages[0]||_e.language||null}()}_delete(){var F=this;return(0,e.Z)(function*(){F._deleted=!0})()}updateCurrentUser(F){var Y=this;return(0,e.Z)(function*(){const Te=F?(0,a.m9)(F):null;return Te&&k(Te.auth.config.apiKey===Y.config.apiKey,Y,"invalid-user-token"),Y._updateCurrentUser(Te&&Te._clone(Y))})()}_updateCurrentUser(F,Y=!1){var Te=this;return(0,e.Z)(function*(){if(!Te._deleted)return F&&k(Te.tenantId===F.tenantId,Te,"tenant-id-mismatch"),Y||(yield Te.beforeStateQueue.runMiddleware(F)),Te.queue((0,e.Z)(function*(){yield Te.directlySetCurrentUser(F),Te.notifyAuthListeners()}))})()}signOut(){var F=this;return(0,e.Z)(function*(){return yield F.beforeStateQueue.runMiddleware(null),(F.redirectPersistenceManager||F._popupRedirectResolver)&&(yield F._setRedirectUser(null)),F._updateCurrentUser(null,!0)})()}setPersistence(F){var Y=this;return this.queue((0,e.Z)(function*(){yield Y.assertedPersistence.setPersistence(Z(F))}))}initializeRecaptchaConfig(){var F=this;return(0,e.Z)(function*(){const Y=yield Ti(F,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),Te=new $t(Y);null==F.tenantId?F._agentRecaptchaConfig=Te:F._tenantRecaptchaConfigs[F.tenantId]=Te,Te.emailPasswordEnabled&&new Ln(F).verify()})()}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(F){this._errorFactory=new a.LL("auth","Firebase",F())}onAuthStateChanged(F,Y,Te){return this.registerStateListener(this.authStateSubscription,F,Y,Te)}beforeAuthStateChanged(F,Y){return this.beforeStateQueue.pushCallback(F,Y)}onIdTokenChanged(F,Y,Te){return this.registerStateListener(this.idTokenSubscription,F,Y,Te)}toJSON(){var F;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(F=this._currentUser)||void 0===F?void 0:F.toJSON()}}_setRedirectUser(F,Y){var Te=this;return(0,e.Z)(function*(){const kt=yield Te.getOrInitRedirectPersistenceManager(Y);return null===F?kt.removeCurrentUser():kt.setCurrentUser(F)})()}getOrInitRedirectPersistenceManager(F){var Y=this;return(0,e.Z)(function*(){if(!Y.redirectPersistenceManager){const Te=F&&Z(F)||Y._popupRedirectResolver;k(Te,Y,"argument-error"),Y.redirectPersistenceManager=yield ct.create(Y,[Z(Te._redirectPersistence)],"redirectUser"),Y.redirectUser=yield Y.redirectPersistenceManager.getCurrentUser()}return Y.redirectPersistenceManager})()}_redirectUserForId(F){var Y=this;return(0,e.Z)(function*(){var Te,kt;return Y._isInitialized&&(yield Y.queue((0,e.Z)(function*(){}))),(null===(Te=Y._currentUser)||void 0===Te?void 0:Te._redirectEventId)===F?Y._currentUser:(null===(kt=Y.redirectUser)||void 0===kt?void 0:kt._redirectEventId)===F?Y.redirectUser:null})()}_persistUserIfCurrent(F){var Y=this;return(0,e.Z)(function*(){if(F===Y.currentUser)return Y.queue((0,e.Z)(function*(){return Y.directlySetCurrentUser(F)}))})()}_notifyListenersIfCurrent(F){F===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var F,Y;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const Te=null!==(Y=null===(F=this.currentUser)||void 0===F?void 0:F.uid)&&void 0!==Y?Y:null;this.lastNotifiedUid!==Te&&(this.lastNotifiedUid=Te,this.authStateSubscription.next(this.currentUser))}registerStateListener(F,Y,Te,kt){if(this._deleted)return()=>{};const gn="function"==typeof Y?Y:Y.next.bind(Y),ei=this._isInitialized?Promise.resolve():this._initializationPromise;return k(ei,this,"internal-error"),ei.then(()=>gn(this.currentUser)),"function"==typeof Y?F.addObserver(Y,Te,kt):F.addObserver(Y)}directlySetCurrentUser(F){var Y=this;return(0,e.Z)(function*(){Y.currentUser&&Y.currentUser!==F&&Y._currentUser._stopProactiveRefresh(),F&&Y.isProactiveRefreshEnabled&&F._startProactiveRefresh(),Y.currentUser=F,F?yield Y.assertedPersistence.setCurrentUser(F):yield Y.assertedPersistence.removeCurrentUser()})()}queue(F){return this.operations=this.operations.then(F,F),this.operations}get assertedPersistence(){return k(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(F){!F||this.frameworks.includes(F)||(this.frameworks.push(F),this.frameworks.sort(),this.clientVersion=Mn(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var F=this;return(0,e.Z)(function*(){var Y;const Te={"X-Client-Version":F.clientVersion};F.app.options.appId&&(Te["X-Firebase-gmpid"]=F.app.options.appId);const kt=yield null===(Y=F.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===Y?void 0:Y.getHeartbeatsHeader();kt&&(Te["X-Firebase-Client"]=kt);const gn=yield F._getAppCheckToken();return gn&&(Te["X-Firebase-AppCheck"]=gn),Te})()}_getAppCheckToken(){var F=this;return(0,e.Z)(function*(){var Y;const Te=yield null===(Y=F.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===Y?void 0:Y.getToken();return Te?.error&&function B(_e,...F){P.logLevel<=h.in.WARN&&P.warn(`Auth (${t.SDK_VERSION}): ${_e}`,...F)}(`Error while retrieving App Check token: ${Te.error}`),Te?.token})()}}function En(_e){return(0,a.m9)(_e)}class gi{constructor(F){this.auth=F,this.observer=null,this.addObserver=(0,a.ne)(Y=>this.observer=Y)}get next(){return k(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function ti(_e){const F=_e.indexOf(":");return F<0?"":_e.substr(0,F+1)}function on(_e){if(!_e)return null;const F=Number(_e);return isNaN(F)?null:F}class et{constructor(F,Y){this.providerId=F,this.signInMethod=Y}toJSON(){return $("not implemented")}_getIdTokenResponse(F){return $("not implemented")}_linkToIdToken(F,Y){return $("not implemented")}_getReauthenticationResolver(F){return $("not implemented")}}function tt(_e,F){return nn.apply(this,arguments)}function nn(){return(nn=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:resetPassword",se(_e,F))})).apply(this,arguments)}function zn(_e,F){return jt.apply(this,arguments)}function jt(){return(jt=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:update",F)})).apply(this,arguments)}function jn(){return(jn=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:update",se(_e,F))})).apply(this,arguments)}function ri(_e,F){return vi.apply(this,arguments)}function vi(){return(vi=(0,e.Z)(function*(_e,F){return Wt(_e,"POST","/v1/accounts:signInWithPassword",se(_e,F))})).apply(this,arguments)}function Ii(_e,F){return cr.apply(this,arguments)}function cr(){return(cr=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:sendOobCode",se(_e,F))})).apply(this,arguments)}function Vi(){return(Vi=(0,e.Z)(function*(_e,F){return Ii(_e,F)})).apply(this,arguments)}function kr(_e,F){return Er.apply(this,arguments)}function Er(){return(Er=(0,e.Z)(function*(_e,F){return Ii(_e,F)})).apply(this,arguments)}function pr(_e,F){return fo.apply(this,arguments)}function fo(){return(fo=(0,e.Z)(function*(_e,F){return Ii(_e,F)})).apply(this,arguments)}function Br(){return(Br=(0,e.Z)(function*(_e,F){return Ii(_e,F)})).apply(this,arguments)}function Bn(){return(Bn=(0,e.Z)(function*(_e,F){return Wt(_e,"POST","/v1/accounts:signInWithEmailLink",se(_e,F))})).apply(this,arguments)}function Lt(){return(Lt=(0,e.Z)(function*(_e,F){return Wt(_e,"POST","/v1/accounts:signInWithEmailLink",se(_e,F))})).apply(this,arguments)}class Jn extends et{constructor(F,Y,Te,kt=null){super("password",Te),this._email=F,this._password=Y,this._tenantId=kt}static _fromEmailAndPassword(F,Y){return new Jn(F,Y,"password")}static _fromEmailAndCode(F,Y,Te=null){return new Jn(F,Y,"emailLink",Te)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(F){const Y="string"==typeof F?JSON.parse(F):F;if(Y?.email&&Y?.password){if("password"===Y.signInMethod)return this._fromEmailAndPassword(Y.email,Y.password);if("emailLink"===Y.signInMethod)return this._fromEmailAndCode(Y.email,Y.password,Y.tenantId)}return null}_getIdTokenResponse(F){var Y=this;return(0,e.Z)(function*(){var Te;switch(Y.signInMethod){case"password":const kt={returnSecureToken:!0,email:Y._email,password:Y._password,clientType:"CLIENT_TYPE_WEB"};if(null!==(Te=F._getRecaptchaConfig())&&void 0!==Te&&Te.emailPasswordEnabled){const gn=yield Vn(F,kt,"signInWithPassword");return ri(F,gn)}return ri(F,kt).catch(function(){var gn=(0,e.Z)(function*(ei){if("auth/missing-recaptcha-token"===ei.code){console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const bi=yield Vn(F,kt,"signInWithPassword");return ri(F,bi)}return Promise.reject(ei)});return function(ei){return gn.apply(this,arguments)}}());case"emailLink":return function _o(_e,F){return Bn.apply(this,arguments)}(F,{email:Y._email,oobCode:Y._password});default:X(F,"internal-error")}})()}_linkToIdToken(F,Y){var Te=this;return(0,e.Z)(function*(){switch(Te.signInMethod){case"password":return zn(F,{idToken:Y,returnSecureToken:!0,email:Te._email,password:Te._password});case"emailLink":return function Sn(_e,F){return Lt.apply(this,arguments)}(F,{idToken:Y,email:Te._email,oobCode:Te._password});default:X(F,"internal-error")}})()}_getReauthenticationResolver(F){return this._getIdTokenResponse(F)}}function Di(_e,F){return Wi.apply(this,arguments)}function Wi(){return(Wi=(0,e.Z)(function*(_e,F){return Wt(_e,"POST","/v1/accounts:signInWithIdp",se(_e,F))})).apply(this,arguments)}class br extends et{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(F){const Y=new br(F.providerId,F.signInMethod);return F.idToken||F.accessToken?(F.idToken&&(Y.idToken=F.idToken),F.accessToken&&(Y.accessToken=F.accessToken),F.nonce&&!F.pendingToken&&(Y.nonce=F.nonce),F.pendingToken&&(Y.pendingToken=F.pendingToken)):F.oauthToken&&F.oauthTokenSecret?(Y.accessToken=F.oauthToken,Y.secret=F.oauthTokenSecret):X("argument-error"),Y}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(F){const Y="string"==typeof F?JSON.parse(F):F,{providerId:Te,signInMethod:kt}=Y,gn=(0,l._T)(Y,["providerId","signInMethod"]);if(!Te||!kt)return null;const ei=new br(Te,kt);return ei.idToken=gn.idToken||void 0,ei.accessToken=gn.accessToken||void 0,ei.secret=gn.secret,ei.nonce=gn.nonce,ei.pendingToken=gn.pendingToken||null,ei}_getIdTokenResponse(F){return Di(F,this.buildRequest())}_linkToIdToken(F,Y){const Te=this.buildRequest();return Te.idToken=Y,Di(F,Te)}_getReauthenticationResolver(F){const Y=this.buildRequest();return Y.autoCreate=!1,Di(F,Y)}buildRequest(){const F={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)F.pendingToken=this.pendingToken;else{const Y={};this.idToken&&(Y.id_token=this.idToken),this.accessToken&&(Y.access_token=this.accessToken),this.secret&&(Y.oauth_token_secret=this.secret),Y.providerId=this.providerId,this.nonce&&!this.pendingToken&&(Y.nonce=this.nonce),F.postBody=(0,a.xO)(Y)}return F}}function xo(){return(xo=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:sendVerificationCode",se(_e,F))})).apply(this,arguments)}function w(){return(w=(0,e.Z)(function*(_e,F){return Wt(_e,"POST","/v1/accounts:signInWithPhoneNumber",se(_e,F))})).apply(this,arguments)}function be(){return(be=(0,e.Z)(function*(_e,F){const Y=yield Wt(_e,"POST","/v1/accounts:signInWithPhoneNumber",se(_e,F));if(Y.temporaryProof)throw Fe(_e,"account-exists-with-different-credential",Y);return Y})).apply(this,arguments)}const Ue={USER_NOT_FOUND:"user-not-found"};function Rt(){return(Rt=(0,e.Z)(function*(_e,F){return Wt(_e,"POST","/v1/accounts:signInWithPhoneNumber",se(_e,Object.assign(Object.assign({},F),{operation:"REAUTH"})),Ue)})).apply(this,arguments)}class yn extends et{constructor(F){super("phone","phone"),this.params=F}static _fromVerification(F,Y){return new yn({verificationId:F,verificationCode:Y})}static _fromTokenResponse(F,Y){return new yn({phoneNumber:F,temporaryProof:Y})}_getIdTokenResponse(F){return function Re(_e,F){return w.apply(this,arguments)}(F,this._makeVerificationRequest())}_linkToIdToken(F,Y){return function ne(_e,F){return be.apply(this,arguments)}(F,Object.assign({idToken:Y},this._makeVerificationRequest()))}_getReauthenticationResolver(F){return function at(_e,F){return Rt.apply(this,arguments)}(F,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:F,phoneNumber:Y,verificationId:Te,verificationCode:kt}=this.params;return F&&Y?{temporaryProof:F,phoneNumber:Y}:{sessionInfo:Te,code:kt}}toJSON(){const F={providerId:this.providerId};return this.params.phoneNumber&&(F.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(F.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(F.verificationCode=this.params.verificationCode),this.params.verificationId&&(F.verificationId=this.params.verificationId),F}static fromJSON(F){"string"==typeof F&&(F=JSON.parse(F));const{verificationId:Y,verificationCode:Te,phoneNumber:kt,temporaryProof:gn}=F;return Te||Y||kt||gn?new yn({verificationId:Y,verificationCode:Te,phoneNumber:kt,temporaryProof:gn}):null}}class Zn{constructor(F){var Y,Te,kt,gn,ei,bi;const Gi=(0,a.zd)((0,a.pd)(F)),er=null!==(Y=Gi.apiKey)&&void 0!==Y?Y:null,_r=null!==(Te=Gi.oobCode)&&void 0!==Te?Te:null,vr=function Tn(_e){switch(_e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(kt=Gi.mode)&&void 0!==kt?kt:null);k(er&&_r&&vr,"argument-error"),this.apiKey=er,this.operation=vr,this.code=_r,this.continueUrl=null!==(gn=Gi.continueUrl)&&void 0!==gn?gn:null,this.languageCode=null!==(ei=Gi.languageCode)&&void 0!==ei?ei:null,this.tenantId=null!==(bi=Gi.tenantId)&&void 0!==bi?bi:null}static parseLink(F){const Y=function Yn(_e){const F=(0,a.zd)((0,a.pd)(_e)).link,Y=F?(0,a.zd)((0,a.pd)(F)).deep_link_id:null,Te=(0,a.zd)((0,a.pd)(_e)).deep_link_id;return(Te?(0,a.zd)((0,a.pd)(Te)).link:null)||Te||Y||F||_e}(F);try{return new Zn(Y)}catch{return null}}}let wi=(()=>{class _e{constructor(){this.providerId=_e.PROVIDER_ID}static credential(Y,Te){return Jn._fromEmailAndPassword(Y,Te)}static credentialWithLink(Y,Te){const kt=Zn.parseLink(Te);return k(kt,"argument-error"),Jn._fromEmailAndCode(Y,kt.code,kt.tenantId)}}return _e.PROVIDER_ID="password",_e.EMAIL_PASSWORD_SIGN_IN_METHOD="password",_e.EMAIL_LINK_SIGN_IN_METHOD="emailLink",_e})();class an{constructor(F){this.providerId=F,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(F){this.defaultLanguageCode=F}setCustomParameters(F){return this.customParameters=F,this}getCustomParameters(){return this.customParameters}}class bn extends an{constructor(){super(...arguments),this.scopes=[]}addScope(F){return this.scopes.includes(F)||this.scopes.push(F),this}getScopes(){return[...this.scopes]}}class Dn extends bn{static credentialFromJSON(F){const Y="string"==typeof F?JSON.parse(F):F;return k("providerId"in Y&&"signInMethod"in Y,"argument-error"),br._fromParams(Y)}credential(F){return this._credential(Object.assign(Object.assign({},F),{nonce:F.rawNonce}))}_credential(F){return k(F.idToken||F.accessToken,"argument-error"),br._fromParams(Object.assign(Object.assign({},F),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(F){return Dn.oauthCredentialFromTaggedObject(F)}static credentialFromError(F){return Dn.oauthCredentialFromTaggedObject(F.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:F}){if(!F)return null;const{oauthIdToken:Y,oauthAccessToken:Te,oauthTokenSecret:kt,pendingToken:gn,nonce:ei,providerId:bi}=F;if(!Te&&!kt&&!Y&&!gn||!bi)return null;try{return new Dn(bi)._credential({idToken:Y,accessToken:Te,nonce:ei,pendingToken:gn})}catch{return null}}}let ii=(()=>{class _e extends bn{constructor(){super("facebook.com")}static credential(Y){return br._fromParams({providerId:_e.PROVIDER_ID,signInMethod:_e.FACEBOOK_SIGN_IN_METHOD,accessToken:Y})}static credentialFromResult(Y){return _e.credentialFromTaggedObject(Y)}static credentialFromError(Y){return _e.credentialFromTaggedObject(Y.customData||{})}static credentialFromTaggedObject({_tokenResponse:Y}){if(!Y||!("oauthAccessToken"in Y)||!Y.oauthAccessToken)return null;try{return _e.credential(Y.oauthAccessToken)}catch{return null}}}return _e.FACEBOOK_SIGN_IN_METHOD="facebook.com",_e.PROVIDER_ID="facebook.com",_e})(),li=(()=>{class _e extends bn{constructor(){super("google.com"),this.addScope("profile")}static credential(Y,Te){return br._fromParams({providerId:_e.PROVIDER_ID,signInMethod:_e.GOOGLE_SIGN_IN_METHOD,idToken:Y,accessToken:Te})}static credentialFromResult(Y){return _e.credentialFromTaggedObject(Y)}static credentialFromError(Y){return _e.credentialFromTaggedObject(Y.customData||{})}static credentialFromTaggedObject({_tokenResponse:Y}){if(!Y)return null;const{oauthIdToken:Te,oauthAccessToken:kt}=Y;if(!Te&&!kt)return null;try{return _e.credential(Te,kt)}catch{return null}}}return _e.GOOGLE_SIGN_IN_METHOD="google.com",_e.PROVIDER_ID="google.com",_e})(),ft=(()=>{class _e extends bn{constructor(){super("github.com")}static credential(Y){return br._fromParams({providerId:_e.PROVIDER_ID,signInMethod:_e.GITHUB_SIGN_IN_METHOD,accessToken:Y})}static credentialFromResult(Y){return _e.credentialFromTaggedObject(Y)}static credentialFromError(Y){return _e.credentialFromTaggedObject(Y.customData||{})}static credentialFromTaggedObject({_tokenResponse:Y}){if(!Y||!("oauthAccessToken"in Y)||!Y.oauthAccessToken)return null;try{return _e.credential(Y.oauthAccessToken)}catch{return null}}}return _e.GITHUB_SIGN_IN_METHOD="github.com",_e.PROVIDER_ID="github.com",_e})();class Se extends et{constructor(F,Y){super(F,F),this.pendingToken=Y}_getIdTokenResponse(F){return Di(F,this.buildRequest())}_linkToIdToken(F,Y){const Te=this.buildRequest();return Te.idToken=Y,Di(F,Te)}_getReauthenticationResolver(F){const Y=this.buildRequest();return Y.autoCreate=!1,Di(F,Y)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(F){const Y="string"==typeof F?JSON.parse(F):F,{providerId:Te,signInMethod:kt,pendingToken:gn}=Y;return Te&&kt&&gn&&Te===kt?new Se(Te,gn):null}static _create(F,Y){return new Se(F,Y)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class Kt extends an{constructor(F){k(F.startsWith("saml."),"argument-error"),super(F)}static credentialFromResult(F){return Kt.samlCredentialFromTaggedObject(F)}static credentialFromError(F){return Kt.samlCredentialFromTaggedObject(F.customData||{})}static credentialFromJSON(F){const Y=Se.fromJSON(F);return k(Y,"argument-error"),Y}static samlCredentialFromTaggedObject({_tokenResponse:F}){if(!F)return null;const{pendingToken:Y,providerId:Te}=F;if(!Y||!Te)return null;try{return Se._create(Te,Y)}catch{return null}}}let mn=(()=>{class _e extends bn{constructor(){super("twitter.com")}static credential(Y,Te){return br._fromParams({providerId:_e.PROVIDER_ID,signInMethod:_e.TWITTER_SIGN_IN_METHOD,oauthToken:Y,oauthTokenSecret:Te})}static credentialFromResult(Y){return _e.credentialFromTaggedObject(Y)}static credentialFromError(Y){return _e.credentialFromTaggedObject(Y.customData||{})}static credentialFromTaggedObject({_tokenResponse:Y}){if(!Y)return null;const{oauthAccessToken:Te,oauthTokenSecret:kt}=Y;if(!Te||!kt)return null;try{return _e.credential(Te,kt)}catch{return null}}}return _e.TWITTER_SIGN_IN_METHOD="twitter.com",_e.PROVIDER_ID="twitter.com",_e})();function Un(_e,F){return qn.apply(this,arguments)}function qn(){return(qn=(0,e.Z)(function*(_e,F){return Wt(_e,"POST","/v1/accounts:signUp",se(_e,F))})).apply(this,arguments)}class ci{constructor(F){this.user=F.user,this.providerId=F.providerId,this._tokenResponse=F._tokenResponse,this.operationType=F.operationType}static _fromIdTokenResponse(F,Y,Te,kt=!1){return(0,e.Z)(function*(){const gn=yield Et._fromIdTokenResponse(F,Te,kt),ei=hi(Te);return new ci({user:gn,providerId:ei,_tokenResponse:Te,operationType:Y})})()}static _forOperation(F,Y,Te){return(0,e.Z)(function*(){yield F._updateTokensIfNecessary(Te,!0);const kt=hi(Te);return new ci({user:F,providerId:kt,_tokenResponse:Te,operationType:Y})})()}}function hi(_e){return _e.providerId?_e.providerId:"phoneNumber"in _e?"phone":null}function zi(){return(zi=(0,e.Z)(function*(_e){var F;const Y=En(_e);if(yield Y._initializationPromise,null!==(F=Y.currentUser)&&void 0!==F&&F.isAnonymous)return new ci({user:Y.currentUser,providerId:null,operationType:"signIn"});const Te=yield Un(Y,{returnSecureToken:!0}),kt=yield ci._fromIdTokenResponse(Y,"signIn",Te,!0);return yield Y._updateCurrentUser(kt.user),kt})).apply(this,arguments)}class Yi extends a.ZR{constructor(F,Y,Te,kt){var gn;super(Y.code,Y.message),this.operationType=Te,this.user=kt,Object.setPrototypeOf(this,Yi.prototype),this.customData={appName:F.name,tenantId:null!==(gn=F.tenantId)&&void 0!==gn?gn:void 0,_serverResponse:Y.customData._serverResponse,operationType:Te}}static _fromErrorAndOperation(F,Y,Te,kt){return new Yi(F,Y,Te,kt)}}function tr(_e,F,Y,Te){return("reauthenticate"===F?Y._getReauthenticationResolver(_e):Y._getIdTokenResponse(_e)).catch(gn=>{throw"auth/multi-factor-auth-required"===gn.code?Yi._fromErrorAndOperation(_e,gn,F,Te):gn})}function Lr(_e){return new Set(_e.map(({providerId:F})=>F).filter(F=>!!F))}function Io(){return Io=(0,e.Z)(function*(_e,F){const Y=(0,a.m9)(_e);yield yo(!0,Y,F);const{providerUserInfo:Te}=yield function Ce(_e,F){return Ie.apply(this,arguments)}(Y.auth,{idToken:yield Y.getIdToken(),deleteProvider:[F]}),kt=Lr(Te||[]);return Y.providerData=Y.providerData.filter(gn=>kt.has(gn.providerId)),kt.has("phone")||(Y.phoneNumber=null),yield Y.auth._persistUserIfCurrent(Y),Y}),Io.apply(this,arguments)}function wo(_e,F){return aa.apply(this,arguments)}function aa(){return(aa=(0,e.Z)(function*(_e,F,Y=!1){const Te=yield $e(_e,F._linkToIdToken(_e.auth,yield _e.getIdToken()),Y);return ci._forOperation(_e,"link",Te)})).apply(this,arguments)}function yo(_e,F,Y){return Pa.apply(this,arguments)}function Pa(){return(Pa=(0,e.Z)(function*(_e,F,Y){yield It(F);const kt=!1===_e?"provider-already-linked":"no-such-provider";k(Lr(F.providerData).has(Y)===_e,F.auth,kt)})).apply(this,arguments)}function Uo(_e,F){return _a.apply(this,arguments)}function _a(){return(_a=(0,e.Z)(function*(_e,F,Y=!1){const{auth:Te}=_e,kt="reauthenticate";try{const gn=yield $e(_e,tr(Te,kt,F,_e),Y);k(gn.idToken,Te,"internal-error");const ei=bt(gn.idToken);k(ei,Te,"internal-error");const{sub:bi}=ei;return k(_e.uid===bi,Te,"user-mismatch"),ci._forOperation(_e,kt,gn)}catch(gn){throw"auth/user-not-found"===gn?.code&&X(Te,"user-mismatch"),gn}})).apply(this,arguments)}function $o(_e,F){return yr.apply(this,arguments)}function yr(){return(yr=(0,e.Z)(function*(_e,F,Y=!1){const kt=yield tr(_e,"signIn",F),gn=yield ci._fromIdTokenResponse(_e,"signIn",kt);return Y||(yield _e._updateCurrentUser(gn.user)),gn})).apply(this,arguments)}function va(_e,F){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,e.Z)(function*(_e,F){return $o(En(_e),F)})).apply(this,arguments)}function Ct(_e,F){return Ze.apply(this,arguments)}function Ze(){return(Ze=(0,e.Z)(function*(_e,F){const Y=(0,a.m9)(_e);return yield yo(!1,Y,F.providerId),wo(Y,F)})).apply(this,arguments)}function vn(_e,F){return Ci.apply(this,arguments)}function Ci(){return(Ci=(0,e.Z)(function*(_e,F){return Uo((0,a.m9)(_e),F)})).apply(this,arguments)}function oo(){return(oo=(0,e.Z)(function*(_e,F){return Wt(_e,"POST","/v1/accounts:signInWithCustomToken",se(_e,F))})).apply(this,arguments)}function xr(){return xr=(0,e.Z)(function*(_e,F){const Y=En(_e),Te=yield function rr(_e,F){return oo.apply(this,arguments)}(Y,{token:F,returnSecureToken:!0}),kt=yield ci._fromIdTokenResponse(Y,"signIn",Te);return yield Y._updateCurrentUser(kt.user),kt}),xr.apply(this,arguments)}class zr{constructor(F,Y){this.factorId=F,this.uid=Y.mfaEnrollmentId,this.enrollmentTime=new Date(Y.enrolledAt).toUTCString(),this.displayName=Y.displayName}static _fromServerResponse(F,Y){return"phoneInfo"in Y?Aa._fromServerResponse(F,Y):"totpInfo"in Y?Mo._fromServerResponse(F,Y):X(F,"internal-error")}}class Aa extends zr{constructor(F){super("phone",F),this.phoneNumber=F.phoneInfo}static _fromServerResponse(F,Y){return new Aa(Y)}}class Mo extends zr{constructor(F){super("totp",F)}static _fromServerResponse(F,Y){return new Mo(Y)}}function ka(_e,F,Y){var Te;k((null===(Te=Y.url)||void 0===Te?void 0:Te.length)>0,_e,"invalid-continue-uri"),k(typeof Y.dynamicLinkDomain>"u"||Y.dynamicLinkDomain.length>0,_e,"invalid-dynamic-link-domain"),F.continueUrl=Y.url,F.dynamicLinkDomain=Y.dynamicLinkDomain,F.canHandleCodeInApp=Y.handleCodeInApp,Y.iOS&&(k(Y.iOS.bundleId.length>0,_e,"missing-ios-bundle-id"),F.iOSBundleId=Y.iOS.bundleId),Y.android&&(k(Y.android.packageName.length>0,_e,"missing-android-pkg-name"),F.androidInstallApp=Y.android.installApp,F.androidMinimumVersionCode=Y.android.minimumVersion,F.androidPackageName=Y.android.packageName)}function ba(){return ba=(0,e.Z)(function*(_e,F,Y){var Te;const kt=En(_e),gn={requestType:"PASSWORD_RESET",email:F,clientType:"CLIENT_TYPE_WEB"};if(null!==(Te=kt._getRecaptchaConfig())&&void 0!==Te&&Te.emailPasswordEnabled){const ei=yield Vn(kt,gn,"getOobCode",!0);Y&&ka(kt,ei,Y),yield kr(kt,ei)}else Y&&ka(kt,gn,Y),yield kr(kt,gn).catch(function(){var ei=(0,e.Z)(function*(bi){if("auth/missing-recaptcha-token"!==bi.code)return Promise.reject(bi);{console.log("Password resets are protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the password reset flow.");const Gi=yield Vn(kt,gn,"getOobCode",!0);Y&&ka(kt,Gi,Y),yield kr(kt,Gi)}});return function(bi){return ei.apply(this,arguments)}}())}),ba.apply(this,arguments)}function ca(){return(ca=(0,e.Z)(function*(_e,F,Y){yield tt((0,a.m9)(_e),{oobCode:F,newPassword:Y})})).apply(this,arguments)}function ja(){return ja=(0,e.Z)(function*(_e,F){yield function Fn(_e,F){return jn.apply(this,arguments)}((0,a.m9)(_e),{oobCode:F})}),ja.apply(this,arguments)}function rs(_e,F){return Po.apply(this,arguments)}function Po(){return(Po=(0,e.Z)(function*(_e,F){const Y=(0,a.m9)(_e),Te=yield tt(Y,{oobCode:F}),kt=Te.requestType;switch(k(kt,Y,"internal-error"),kt){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":k(Te.newEmail,Y,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":k(Te.mfaInfo,Y,"internal-error");default:k(Te.email,Y,"internal-error")}let gn=null;return Te.mfaInfo&&(gn=zr._fromServerResponse(En(Y),Te.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===Te.requestType?Te.newEmail:Te.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===Te.requestType?Te.email:Te.newEmail)||null,multiFactorInfo:gn},operation:kt}})).apply(this,arguments)}function Ji(){return(Ji=(0,e.Z)(function*(_e,F){const{data:Y}=yield rs((0,a.m9)(_e),F);return Y.email})).apply(this,arguments)}function Ma(){return Ma=(0,e.Z)(function*(_e,F,Y){var Te;const kt=En(_e),gn={returnSecureToken:!0,email:F,password:Y,clientType:"CLIENT_TYPE_WEB"};let ei;if(null!==(Te=kt._getRecaptchaConfig())&&void 0!==Te&&Te.emailPasswordEnabled){const er=yield Vn(kt,gn,"signUpPassword");ei=Un(kt,er)}else ei=Un(kt,gn).catch(function(){var er=(0,e.Z)(function*(_r){if("auth/missing-recaptcha-token"===_r.code){console.log("Sign-up is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-up flow.");const vr=yield Vn(kt,gn,"signUpPassword");return Un(kt,vr)}return Promise.reject(_r)});return function(_r){return er.apply(this,arguments)}}());const bi=yield ei.catch(er=>Promise.reject(er)),Gi=yield ci._fromIdTokenResponse(kt,"signIn",bi);return yield kt._updateCurrentUser(Gi.user),Gi}),Ma.apply(this,arguments)}function Ao(){return Ao=(0,e.Z)(function*(_e,F,Y){var Te;const kt=En(_e),gn={requestType:"EMAIL_SIGNIN",email:F,clientType:"CLIENT_TYPE_WEB"};function ei(bi,Gi){k(Gi.handleCodeInApp,kt,"argument-error"),Gi&&ka(kt,bi,Gi)}if(null!==(Te=kt._getRecaptchaConfig())&&void 0!==Te&&Te.emailPasswordEnabled){const bi=yield Vn(kt,gn,"getOobCode",!0);ei(bi,Y),yield pr(kt,bi)}else ei(gn,Y),yield pr(kt,gn).catch(function(){var bi=(0,e.Z)(function*(Gi){if("auth/missing-recaptcha-token"!==Gi.code)return Promise.reject(Gi);{console.log("Email link sign-in is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");const er=yield Vn(kt,gn,"getOobCode",!0);ei(er,Y),yield pr(kt,er)}});return function(Gi){return bi.apply(this,arguments)}}())}),Ao.apply(this,arguments)}function Sr(){return(Sr=(0,e.Z)(function*(_e,F,Y){const Te=(0,a.m9)(_e),kt=wi.credentialWithLink(F,Y||R());return k(kt._tenantId===(Te.tenantId||null),Te,"tenant-id-mismatch"),va(Te,kt)})).apply(this,arguments)}function ya(){return(ya=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:createAuthUri",se(_e,F))})).apply(this,arguments)}function La(){return La=(0,e.Z)(function*(_e,F){const Te={identifier:F,continueUri:U()?R():"http://localhost"},{signinMethods:kt}=yield function os(_e,F){return ya.apply(this,arguments)}((0,a.m9)(_e),Te);return kt||[]}),La.apply(this,arguments)}function sn(){return sn=(0,e.Z)(function*(_e,F){const Y=(0,a.m9)(_e),kt={requestType:"VERIFY_EMAIL",idToken:yield _e.getIdToken()};F&&ka(Y.auth,kt,F);const{email:gn}=yield function Hi(_e,F){return Vi.apply(this,arguments)}(Y.auth,kt);gn!==_e.email&&(yield _e.reload())}),sn.apply(this,arguments)}function $n(){return $n=(0,e.Z)(function*(_e,F,Y){const Te=(0,a.m9)(_e),gn={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:yield _e.getIdToken(),newEmail:F};Y&&ka(Te.auth,gn,Y);const{email:ei}=yield function Tr(_e,F){return Br.apply(this,arguments)}(Te.auth,gn);ei!==_e.email&&(yield _e.reload())}),$n.apply(this,arguments)}function si(){return(si=(0,e.Z)(function*(_e,F){return ve(_e,"POST","/v1/accounts:update",F)})).apply(this,arguments)}function Ri(){return Ri=(0,e.Z)(function*(_e,{displayName:F,photoURL:Y}){if(void 0===F&&void 0===Y)return;const Te=(0,a.m9)(_e),gn={idToken:yield Te.getIdToken(),displayName:F,photoUrl:Y,returnSecureToken:!0},ei=yield $e(Te,function oi(_e,F){return si.apply(this,arguments)}(Te.auth,gn));Te.displayName=ei.displayName||null,Te.photoURL=ei.photoUrl||null;const bi=Te.providerData.find(({providerId:Gi})=>"password"===Gi);bi&&(bi.displayName=Te.displayName,bi.photoURL=Te.photoURL),yield Te._updateTokensIfNecessary(ei)}),Ri.apply(this,arguments)}function Xi(_e,F,Y){return wr.apply(this,arguments)}function wr(){return(wr=(0,e.Z)(function*(_e,F,Y){const{auth:Te}=_e,gn={idToken:yield _e.getIdToken(),returnSecureToken:!0};F&&(gn.email=F),Y&&(gn.password=Y);const ei=yield $e(_e,zn(Te,gn));yield _e._updateTokensIfNecessary(ei,!0)})).apply(this,arguments)}class Jr{constructor(F,Y,Te={}){this.isNewUser=F,this.providerId=Y,this.profile=Te}}class na extends Jr{constructor(F,Y,Te,kt){super(F,Y,Te),this.username=kt}}class Qo extends Jr{constructor(F,Y){super(F,"facebook.com",Y)}}class Va extends na{constructor(F,Y){super(F,"github.com",Y,"string"==typeof Y?.login?Y?.login:null)}}class Vo extends Jr{constructor(F,Y){super(F,"google.com",Y)}}class Ra extends na{constructor(F,Y,Te){super(F,"twitter.com",Y,Te)}}function Xo(_e){const{user:F,_tokenResponse:Y}=_e;return F.isAnonymous&&!Y?{providerId:null,isNewUser:!1,profile:null}:function mo(_e){var F,Y;if(!_e)return null;const{providerId:Te}=_e,kt=_e.rawUserInfo?JSON.parse(_e.rawUserInfo):{},gn=_e.isNewUser||"identitytoolkit#SignupNewUserResponse"===_e.kind;if(!Te&&_e?.idToken){const ei=null===(Y=null===(F=bt(_e.idToken))||void 0===F?void 0:F.firebase)||void 0===Y?void 0:Y.sign_in_provider;if(ei)return new Jr(gn,"anonymous"!==ei&&"custom"!==ei?ei:null)}if(!Te)return null;switch(Te){case"facebook.com":return new Qo(gn,kt);case"github.com":return new Va(gn,kt);case"google.com":return new Vo(gn,kt);case"twitter.com":return new Ra(gn,kt,_e.screenName||null);case"custom":case"anonymous":return new Jr(gn,null);default:return new Jr(gn,Te,kt)}}(Y)}class Rr{constructor(F,Y,Te){this.type=F,this.credential=Y,this.auth=Te}static _fromIdtoken(F,Y){return new Rr("enroll",F,Y)}static _fromMfaPendingCredential(F){return new Rr("signin",F)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(F){var Y,Te;if(F?.multiFactorSession){if(null!==(Y=F.multiFactorSession)&&void 0!==Y&&Y.pendingCredential)return Rr._fromMfaPendingCredential(F.multiFactorSession.pendingCredential);if(null!==(Te=F.multiFactorSession)&&void 0!==Te&&Te.idToken)return Rr._fromIdtoken(F.multiFactorSession.idToken)}return null}}class Vr{constructor(F,Y,Te){this.session=F,this.hints=Y,this.signInResolver=Te}static _fromError(F,Y){const Te=En(F),kt=Y.customData._serverResponse,gn=(kt.mfaInfo||[]).map(bi=>zr._fromServerResponse(Te,bi));k(kt.mfaPendingCredential,Te,"internal-error");const ei=Rr._fromMfaPendingCredential(kt.mfaPendingCredential);return new Vr(ei,gn,function(){var bi=(0,e.Z)(function*(Gi){const er=yield Gi._process(Te,ei);delete kt.mfaInfo,delete kt.mfaPendingCredential;const _r=Object.assign(Object.assign({},kt),{idToken:er.idToken,refreshToken:er.refreshToken});switch(Y.operationType){case"signIn":const vr=yield ci._fromIdTokenResponse(Te,Y.operationType,_r);return yield Te._updateCurrentUser(vr.user),vr;case"reauthenticate":return k(Y.user,Te,"internal-error"),ci._forOperation(Y.user,Y.operationType,_r);default:X(Te,"internal-error")}});return function(Gi){return bi.apply(this,arguments)}}())}resolveSignIn(F){var Y=this;return(0,e.Z)(function*(){return Y.signInResolver(F)})()}}class ra{constructor(F){this.user=F,this.enrolledFactors=[],F._onReload(Y=>{Y.mfaInfo&&(this.enrolledFactors=Y.mfaInfo.map(Te=>zr._fromServerResponse(F.auth,Te)))})}static _fromUser(F){return new ra(F)}getSession(){var F=this;return(0,e.Z)(function*(){return Rr._fromIdtoken(yield F.user.getIdToken(),F.user.auth)})()}enroll(F,Y){var Te=this;return(0,e.Z)(function*(){const kt=F,gn=yield Te.getSession(),ei=yield $e(Te.user,kt._process(Te.user.auth,gn,Y));return yield Te.user._updateTokensIfNecessary(ei),Te.user.reload()})()}unenroll(F){var Y=this;return(0,e.Z)(function*(){const Te="string"==typeof F?F:F.uid,kt=yield Y.user.getIdToken();try{const gn=yield $e(Y.user,function Ga(_e,F){return ve(_e,"POST","/v2/accounts/mfaEnrollment:withdraw",se(_e,F))}(Y.user.auth,{idToken:kt,mfaEnrollmentId:Te}));Y.enrolledFactors=Y.enrolledFactors.filter(({uid:ei})=>ei!==Te),yield Y.user._updateTokensIfNecessary(gn),yield Y.user.reload()}catch(gn){throw gn}})()}}const mr=new WeakMap,so="__sak";class sa{constructor(F,Y){this.storageRetriever=F,this.type=Y}_isAvailable(){try{return this.storage?(this.storage.setItem(so,"1"),this.storage.removeItem(so),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(F,Y){return this.storage.setItem(F,JSON.stringify(Y)),Promise.resolve()}_get(F){const Y=this.storage.getItem(F);return Promise.resolve(Y?JSON.parse(Y):null)}_remove(F){return this.storage.removeItem(F),Promise.resolve()}get storage(){return this.storageRetriever()}}const ws=(()=>{class _e extends sa{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(Y,Te)=>this.onStorageEvent(Y,Te),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Wa(){const _e=(0,a.z$)();return Be(_e)||Ot(_e)}()&&function Nn(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=Ni(),this._shouldAllowMigration=!0}forAllChangedKeys(Y){for(const Te of Object.keys(this.listeners)){const kt=this.storage.getItem(Te),gn=this.localCache[Te];kt!==gn&&Y(Te,gn,kt)}}onStorageEvent(Y,Te=!1){if(!Y.key)return void this.forAllChangedKeys((bi,Gi,er)=>{this.notifyListeners(bi,er)});const kt=Y.key;if(Te?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const bi=this.storage.getItem(kt);if(Y.newValue!==bi)null!==Y.newValue?this.storage.setItem(kt,Y.newValue):this.storage.removeItem(kt);else if(this.localCache[kt]===Y.newValue&&!Te)return}const gn=()=>{const bi=this.storage.getItem(kt);!Te&&this.localCache[kt]===bi||this.notifyListeners(kt,bi)},ei=this.storage.getItem(kt);!function _i(){return(0,a.w1)()&&10===document.documentMode}()||ei===Y.newValue||Y.newValue===Y.oldValue?gn():setTimeout(gn,10)}notifyListeners(Y,Te){this.localCache[Y]=Te;const kt=this.listeners[Y];if(kt)for(const gn of Array.from(kt))gn(Te&&JSON.parse(Te))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((Y,Te,kt)=>{this.onStorageEvent(new StorageEvent("storage",{key:Y,oldValue:Te,newValue:kt}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(Y,Te){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[Y]||(this.listeners[Y]=new Set,this.localCache[Y]=this.storage.getItem(Y)),this.listeners[Y].add(Te)}_removeListener(Y,Te){this.listeners[Y]&&(this.listeners[Y].delete(Te),0===this.listeners[Y].size&&delete this.listeners[Y]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(Y,Te){var kt=()=>super._set,gn=this;return(0,e.Z)(function*(){yield kt().call(gn,Y,Te),gn.localCache[Y]=JSON.stringify(Te)})()}_get(Y){var Te=()=>super._get,kt=this;return(0,e.Z)(function*(){const gn=yield Te().call(kt,Y);return kt.localCache[Y]=JSON.stringify(gn),gn})()}_remove(Y){var Te=()=>super._remove,kt=this;return(0,e.Z)(function*(){yield Te().call(kt,Y),delete kt.localCache[Y]})()}}return _e.type="LOCAL",_e})(),ms=(()=>{class _e extends sa{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(Y,Te){}_removeListener(Y,Te){}}return _e.type="SESSION",_e})();let Ea=(()=>{class _e{constructor(Y){this.eventTarget=Y,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(Y){const Te=this.receivers.find(gn=>gn.isListeningto(Y));if(Te)return Te;const kt=new _e(Y);return this.receivers.push(kt),kt}isListeningto(Y){return this.eventTarget===Y}handleEvent(Y){var Te=this;return(0,e.Z)(function*(){const kt=Y,{eventId:gn,eventType:ei,data:bi}=kt.data,Gi=Te.handlersMap[ei];if(!Gi?.size)return;kt.ports[0].postMessage({status:"ack",eventId:gn,eventType:ei});const er=Array.from(Gi).map(function(){var vr=(0,e.Z)(function*(la){return la(kt.origin,bi)});return function(la){return vr.apply(this,arguments)}}()),_r=yield function Us(_e){return Promise.all(_e.map(function(){var F=(0,e.Z)(function*(Y){try{return{fulfilled:!0,value:yield Y}}catch(Te){return{fulfilled:!1,reason:Te}}});return function(Y){return F.apply(this,arguments)}}()))}(er);kt.ports[0].postMessage({status:"done",eventId:gn,eventType:ei,response:_r})})()}_subscribe(Y,Te){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[Y]||(this.handlersMap[Y]=new Set),this.handlersMap[Y].add(Te)}_unsubscribe(Y,Te){this.handlersMap[Y]&&Te&&this.handlersMap[Y].delete(Te),(!Te||0===this.handlersMap[Y].size)&&delete this.handlersMap[Y],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return _e.receivers=[],_e})();function Xs(_e="",F=10){let Y="";for(let Te=0;Te<F;Te++)Y+=Math.floor(10*Math.random());return _e+Y}class as{constructor(F){this.target=F,this.handlers=new Set}removeMessageHandler(F){F.messageChannel&&(F.messageChannel.port1.removeEventListener("message",F.onMessage),F.messageChannel.port1.close()),this.handlers.delete(F)}_send(F,Y,Te=50){var kt=this;return(0,e.Z)(function*(){const gn=typeof MessageChannel<"u"?new MessageChannel:null;if(!gn)throw new Error("connection_unavailable");let ei,bi;return new Promise((Gi,er)=>{const _r=Xs("",20);gn.port1.start();const vr=setTimeout(()=>{er(new Error("unsupported_event"))},Te);bi={messageChannel:gn,onMessage(la){const Tl=la;if(Tl.data.eventId===_r)switch(Tl.data.status){case"ack":clearTimeout(vr),ei=setTimeout(()=>{er(new Error("timeout"))},3e3);break;case"done":clearTimeout(ei),Gi(Tl.data.response);break;default:clearTimeout(vr),clearTimeout(ei),er(new Error("invalid_response"))}}},kt.handlers.add(bi),gn.port1.addEventListener("message",bi.onMessage),kt.target.postMessage({eventType:F,eventId:_r,data:Y},[gn.port2])}).finally(()=>{bi&&kt.removeMessageHandler(bi)})})()}}function Oo(){return window}function Zs(){return typeof Oo().WorkerGlobalScope<"u"&&"function"==typeof Oo().importScripts}function _l(){return(_l=(0,e.Z)(function*(){if(!navigator?.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const js="firebaseLocalStorageDb",Jo=1,ll="firebaseLocalStorage",gs="fbase_key";class Hs{constructor(F){this.request=F}toPromise(){return new Promise((F,Y)=>{this.request.addEventListener("success",()=>{F(this.request.result)}),this.request.addEventListener("error",()=>{Y(this.request.error)})})}}function ss(_e,F){return _e.transaction([ll],F?"readwrite":"readonly").objectStore(ll)}function Js(){const _e=indexedDB.open(js,Jo);return new Promise((F,Y)=>{_e.addEventListener("error",()=>{Y(_e.error)}),_e.addEventListener("upgradeneeded",()=>{const Te=_e.result;try{Te.createObjectStore(ll,{keyPath:gs})}catch(kt){Y(kt)}}),_e.addEventListener("success",(0,e.Z)(function*(){const Te=_e.result;Te.objectStoreNames.contains(ll)?F(Te):(Te.close(),yield function _s(){const _e=indexedDB.deleteDatabase(js);return new Hs(_e).toPromise()}(),F(yield Js()))}))})}function qs(_e,F,Y){return bl.apply(this,arguments)}function bl(){return(bl=(0,e.Z)(function*(_e,F,Y){const Te=ss(_e,!0).put({[gs]:F,value:Y});return new Hs(Te).toPromise()})).apply(this,arguments)}function tl(){return(tl=(0,e.Z)(function*(_e,F){const Y=ss(_e,!1).get(F),Te=yield new Hs(Y).toPromise();return void 0===Te?null:Te.value})).apply(this,arguments)}function Os(_e,F){const Y=ss(_e,!0).delete(F);return new Hs(Y).toPromise()}const Is=(()=>{class _e{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var Y=this;return(0,e.Z)(function*(){return Y.db||(Y.db=yield Js()),Y.db})()}_withRetries(Y){var Te=this;return(0,e.Z)(function*(){let kt=0;for(;;)try{const gn=yield Te._openDb();return yield Y(gn)}catch(gn){if(kt++>3)throw gn;Te.db&&(Te.db.close(),Te.db=void 0)}})()}initializeServiceWorkerMessaging(){var Y=this;return(0,e.Z)(function*(){return Zs()?Y.initializeReceiver():Y.initializeSender()})()}initializeReceiver(){var Y=this;return(0,e.Z)(function*(){Y.receiver=Ea._getInstance(function vl(){return Zs()?self:null}()),Y.receiver._subscribe("keyChanged",function(){var Te=(0,e.Z)(function*(kt,gn){return{keyProcessed:(yield Y._poll()).includes(gn.key)}});return function(kt,gn){return Te.apply(this,arguments)}}()),Y.receiver._subscribe("ping",function(){var Te=(0,e.Z)(function*(kt,gn){return["keyChanged"]});return function(kt,gn){return Te.apply(this,arguments)}}())})()}initializeSender(){var Y=this;return(0,e.Z)(function*(){var Te,kt;if(Y.activeServiceWorker=yield function Nl(){return _l.apply(this,arguments)}(),!Y.activeServiceWorker)return;Y.sender=new as(Y.activeServiceWorker);const gn=yield Y.sender._send("ping",{},800);gn&&null!==(Te=gn[0])&&void 0!==Te&&Te.fulfilled&&null!==(kt=gn[0])&&void 0!==kt&&kt.value.includes("keyChanged")&&(Y.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(Y){var Te=this;return(0,e.Z)(function*(){if(Te.sender&&Te.activeServiceWorker&&function Fl(){var _e;return(null===(_e=navigator?.serviceWorker)||void 0===_e?void 0:_e.controller)||null}()===Te.activeServiceWorker)try{yield Te.sender._send("keyChanged",{key:Y},Te.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,e.Z)(function*(){try{if(!indexedDB)return!1;const Y=yield Js();return yield qs(Y,so,"1"),yield Os(Y,so),!0}catch{}return!1})()}_withPendingWrite(Y){var Te=this;return(0,e.Z)(function*(){Te.pendingWrites++;try{yield Y()}finally{Te.pendingWrites--}})()}_set(Y,Te){var kt=this;return(0,e.Z)(function*(){return kt._withPendingWrite((0,e.Z)(function*(){return yield kt._withRetries(gn=>qs(gn,Y,Te)),kt.localCache[Y]=Te,kt.notifyServiceWorker(Y)}))})()}_get(Y){var Te=this;return(0,e.Z)(function*(){const kt=yield Te._withRetries(gn=>function el(_e,F){return tl.apply(this,arguments)}(gn,Y));return Te.localCache[Y]=kt,kt})()}_remove(Y){var Te=this;return(0,e.Z)(function*(){return Te._withPendingWrite((0,e.Z)(function*(){return yield Te._withRetries(kt=>Os(kt,Y)),delete Te.localCache[Y],Te.notifyServiceWorker(Y)}))})()}_poll(){var Y=this;return(0,e.Z)(function*(){const Te=yield Y._withRetries(ei=>{const bi=ss(ei,!1).getAll();return new Hs(bi).toPromise()});if(!Te)return[];if(0!==Y.pendingWrites)return[];const kt=[],gn=new Set;for(const{fbase_key:ei,value:bi}of Te)gn.add(ei),JSON.stringify(Y.localCache[ei])!==JSON.stringify(bi)&&(Y.notifyListeners(ei,bi),kt.push(ei));for(const ei of Object.keys(Y.localCache))Y.localCache[ei]&&!gn.has(ei)&&(Y.notifyListeners(ei,null),kt.push(ei));return kt})()}notifyListeners(Y,Te){this.localCache[Y]=Te;const kt=this.listeners[Y];if(kt)for(const gn of Array.from(kt))gn(Te)}startPolling(){var Y=this;this.stopPolling(),this.pollTimer=setInterval((0,e.Z)(function*(){return Y._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(Y,Te){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[Y]||(this.listeners[Y]=new Set,this._get(Y)),this.listeners[Y].add(Te)}_removeListener(Y,Te){this.listeners[Y]&&(this.listeners[Y].delete(Te),0===this.listeners[Y].size&&delete this.listeners[Y]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return _e.type="LOCAL",_e})(),Bo=1e12;class $a{constructor(F){this.auth=F,this.counter=Bo,this._widgets=new Map}render(F,Y){const Te=this.counter;return this._widgets.set(Te,new da(F,this.auth.name,Y||{})),this.counter++,Te}reset(F){var Y;const Te=F||Bo;null===(Y=this._widgets.get(Te))||void 0===Y||Y.delete(),this._widgets.delete(Te)}getResponse(F){var Y;return(null===(Y=this._widgets.get(F||Bo))||void 0===Y?void 0:Y.getResponse())||""}execute(F){var Y=this;return(0,e.Z)(function*(){var Te;return null===(Te=Y._widgets.get(F||Bo))||void 0===Te||Te.execute(),""})()}}class da{constructor(F,Y,Te){this.params=Te,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const kt="string"==typeof F?document.getElementById(F):F;k(kt,"argument-error",{appName:Y}),this.container=kt,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=function Lo(_e){const F=[],Y="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let Te=0;Te<_e;Te++)F.push(Y.charAt(Math.floor(Math.random()*Y.length)));return F.join("")}(50);const{callback:F,"expired-callback":Y}=this.params;if(F)try{F(this.responseToken)}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,Y)try{Y()}catch{}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const As=Wn("rcb"),yl=new N(3e4,6e4);class Sa{constructor(){var F;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!(null===(F=Oo().grecaptcha)||void 0===F||!F.render)}load(F,Y=""){return k(function we(_e){return _e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(_e)}(Y),F,"argument-error"),this.shouldResolveImmediately(Y)&&un(Oo().grecaptcha)?Promise.resolve(Oo().grecaptcha):new Promise((Te,kt)=>{const gn=Oo().setTimeout(()=>{kt(re(F,"network-request-failed"))},yl.get());Oo()[As]=()=>{Oo().clearTimeout(gn),delete Oo()[As];const bi=Oo().grecaptcha;if(!bi||!un(bi))return void kt(re(F,"internal-error"));const Gi=bi.render;bi.render=(er,_r)=>{const vr=Gi(er,_r);return this.counter++,vr},this.hostLanguage=Y,Te(bi)},Rn(`https://www.google.com/recaptcha/api.js??${(0,a.xO)({onload:As,render:"explicit",hl:Y})}`).catch(()=>{clearTimeout(gn),kt(re(F,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(F){var Y;return!(null===(Y=Oo().grecaptcha)||void 0===Y||!Y.render)&&(F===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class nr{load(F){return(0,e.Z)(function*(){return new $a(F)})()}clearedOneInstance(){}}const pn="recaptcha",Mi={theme:"light",type:"image"};class mi{constructor(F,Y=Object.assign({},Mi),Te){this.parameters=Y,this.type=pn,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=En(Te),this.isInvisible="invisible"===this.parameters.size,k(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");const kt="string"==typeof F?document.getElementById(F):F;k(kt,this.auth,"argument-error"),this.container=kt,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new nr:new Sa,this.validateStartingState()}verify(){var F=this;return(0,e.Z)(function*(){F.assertNotDestroyed();const Y=yield F.render(),Te=F.getAssertedRecaptcha();return Te.getResponse(Y)||new Promise(gn=>{const ei=bi=>{bi&&(F.tokenChangeListeners.delete(ei),gn(bi))};F.tokenChangeListeners.add(ei),F.isInvisible&&Te.execute(Y)})})()}render(){try{this.assertNotDestroyed()}catch(F){return Promise.reject(F)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(F=>{throw this.renderPromise=null,F})),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach(F=>{this.container.removeChild(F)})}validateStartingState(){k(!this.parameters.sitekey,this.auth,"argument-error"),k(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),k(typeof document<"u",this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(F){return Y=>{if(this.tokenChangeListeners.forEach(Te=>Te(Y)),"function"==typeof F)F(Y);else if("string"==typeof F){const Te=Oo()[F];"function"==typeof Te&&Te(Y)}}}assertNotDestroyed(){k(!this.destroyed,this.auth,"internal-error")}makeRenderPromise(){var F=this;return(0,e.Z)(function*(){if(yield F.init(),!F.widgetId){let Y=F.container;if(!F.isInvisible){const Te=document.createElement("div");Y.appendChild(Te),Y=Te}F.widgetId=F.getAssertedRecaptcha().render(Y,F.parameters)}return F.widgetId})()}init(){var F=this;return(0,e.Z)(function*(){k(U()&&!Zs(),F.auth,"internal-error"),yield function gr(){let _e=null;return new Promise(F=>{"complete"!==document.readyState?(_e=()=>F(),window.addEventListener("load",_e)):F()}).catch(F=>{throw _e&&window.removeEventListener("load",_e),F})}(),F.recaptcha=yield F._recaptchaLoader.load(F.auth,F.auth.languageCode||void 0);const Y=yield function On(_e){return Qn.apply(this,arguments)}(F.auth);k(Y,F.auth,"internal-error"),F.parameters.sitekey=Y})()}getAssertedRecaptcha(){return k(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class xe{constructor(F,Y){this.verificationId=F,this.onConfirmation=Y}confirm(F){const Y=yn._fromVerification(this.verificationId,F);return this.onConfirmation(Y)}}function fe(){return(fe=(0,e.Z)(function*(_e,F,Y){const Te=En(_e),kt=yield pi(Te,F,(0,a.m9)(Y));return new xe(kt,gn=>va(Te,gn))})).apply(this,arguments)}function Pt(){return(Pt=(0,e.Z)(function*(_e,F,Y){const Te=(0,a.m9)(_e);yield yo(!1,Te,"phone");const kt=yield pi(Te.auth,F,(0,a.m9)(Y));return new xe(kt,gn=>Ct(Te,gn))})).apply(this,arguments)}function wn(){return(wn=(0,e.Z)(function*(_e,F,Y){const Te=(0,a.m9)(_e),kt=yield pi(Te.auth,F,(0,a.m9)(Y));return new xe(kt,gn=>vn(Te,gn))})).apply(this,arguments)}function pi(_e,F,Y){return ki.apply(this,arguments)}function ki(){return ki=(0,e.Z)(function*(_e,F,Y){var Te;const kt=yield Y.verify();try{let gn;if(k("string"==typeof kt,_e,"argument-error"),k(Y.type===pn,_e,"argument-error"),gn="string"==typeof F?{phoneNumber:F}:F,"session"in gn){const ei=gn.session;if("phoneNumber"in gn)return k("enroll"===ei.type,_e,"internal-error"),(yield function Xr(_e,F){return ve(_e,"POST","/v2/accounts/mfaEnrollment:start",se(_e,F))}(_e,{idToken:ei.credential,phoneEnrollmentInfo:{phoneNumber:gn.phoneNumber,recaptchaToken:kt}})).phoneSessionInfo.sessionInfo;{k("signin"===ei.type,_e,"internal-error");const bi=(null===(Te=gn.multiFactorHint)||void 0===Te?void 0:Te.uid)||gn.multiFactorUid;return k(bi,_e,"missing-multi-factor-info"),(yield function Ps(_e,F){return ve(_e,"POST","/v2/accounts/mfaSignIn:start",se(_e,F))}(_e,{mfaPendingCredential:ei.credential,mfaEnrollmentId:bi,phoneSignInInfo:{recaptchaToken:kt}})).phoneResponseInfo.sessionInfo}}{const{sessionInfo:ei}=yield function bo(_e,F){return xo.apply(this,arguments)}(_e,{phoneNumber:gn.phoneNumber,recaptchaToken:kt});return ei}}finally{Y._reset()}}),ki.apply(this,arguments)}function lr(){return(lr=(0,e.Z)(function*(_e,F){yield wo((0,a.m9)(_e),F)})).apply(this,arguments)}let Yr=(()=>{class _e{constructor(Y){this.providerId=_e.PROVIDER_ID,this.auth=En(Y)}verifyPhoneNumber(Y,Te){return pi(this.auth,Y,(0,a.m9)(Te))}static credential(Y,Te){return yn._fromVerification(Y,Te)}static credentialFromResult(Y){return _e.credentialFromTaggedObject(Y)}static credentialFromError(Y){return _e.credentialFromTaggedObject(Y.customData||{})}static credentialFromTaggedObject({_tokenResponse:Y}){if(!Y)return null;const{phoneNumber:Te,temporaryProof:kt}=Y;return Te&&kt?yn._fromTokenResponse(Te,kt):null}}return _e.PROVIDER_ID="phone",_e.PHONE_SIGN_IN_METHOD="phone",_e})();function Ho(_e,F){return F?Z(F):(k(_e._popupRedirectResolver,_e,"argument-error"),_e._popupRedirectResolver)}class ls extends et{constructor(F){super("custom","custom"),this.params=F}_getIdTokenResponse(F){return Di(F,this._buildIdpRequest())}_linkToIdToken(F,Y){return Di(F,this._buildIdpRequest(Y))}_getReauthenticationResolver(F){return Di(F,this._buildIdpRequest())}_buildIdpRequest(F){const Y={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return F&&(Y.idToken=F),Y}}function Wo(_e){return $o(_e.auth,new ls(_e),_e.bypassAuthState)}function za(_e){const{auth:F,user:Y}=_e;return k(Y,F,"internal-error"),Uo(Y,new ls(_e),_e.bypassAuthState)}function Ka(_e){return lc.apply(this,arguments)}function lc(){return(lc=(0,e.Z)(function*(_e){const{auth:F,user:Y}=_e;return k(Y,F,"internal-error"),wo(Y,new ls(_e),_e.bypassAuthState)})).apply(this,arguments)}class Vs{constructor(F,Y,Te,kt,gn=!1){this.auth=F,this.resolver=Te,this.user=kt,this.bypassAuthState=gn,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(Y)?Y:[Y]}execute(){var F=this;return new Promise(function(){var Y=(0,e.Z)(function*(Te,kt){F.pendingPromise={resolve:Te,reject:kt};try{F.eventManager=yield F.resolver._initialize(F.auth),yield F.onExecution(),F.eventManager.registerConsumer(F)}catch(gn){F.reject(gn)}});return function(Te,kt){return Y.apply(this,arguments)}}())}onAuthEvent(F){var Y=this;return(0,e.Z)(function*(){const{urlResponse:Te,sessionId:kt,postBody:gn,tenantId:ei,error:bi,type:Gi}=F;if(bi)return void Y.reject(bi);const er={auth:Y.auth,requestUri:Te,sessionId:kt,tenantId:ei||void 0,postBody:gn||void 0,user:Y.user,bypassAuthState:Y.bypassAuthState};try{Y.resolve(yield Y.getIdpTask(Gi)(er))}catch(_r){Y.reject(_r)}})()}onError(F){this.reject(F)}getIdpTask(F){switch(F){case"signInViaPopup":case"signInViaRedirect":return Wo;case"linkViaPopup":case"linkViaRedirect":return Ka;case"reauthViaPopup":case"reauthViaRedirect":return za;default:X(this.auth,"internal-error")}}resolve(F){j(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(F),this.unregisterAndCleanUp()}reject(F){j(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(F),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const ys=new N(2e3,1e4);function jr(){return(jr=(0,e.Z)(function*(_e,F,Y){const Te=En(_e);ae(_e,F,an);const kt=Ho(Te,Y);return new Ws(Te,"signInViaPopup",F,kt).executeNotNull()})).apply(this,arguments)}function Zr(){return(Zr=(0,e.Z)(function*(_e,F,Y){const Te=(0,a.m9)(_e);ae(Te.auth,F,an);const kt=Ho(Te.auth,Y);return new Ws(Te.auth,"reauthViaPopup",F,kt,Te).executeNotNull()})).apply(this,arguments)}function Ro(){return(Ro=(0,e.Z)(function*(_e,F,Y){const Te=(0,a.m9)(_e);ae(Te.auth,F,an);const kt=Ho(Te.auth,Y);return new Ws(Te.auth,"linkViaPopup",F,kt,Te).executeNotNull()})).apply(this,arguments)}let Ws=(()=>{class _e extends Vs{constructor(Y,Te,kt,gn,ei){super(Y,Te,gn,ei),this.provider=kt,this.authWindow=null,this.pollId=null,_e.currentPopupAction&&_e.currentPopupAction.cancel(),_e.currentPopupAction=this}executeNotNull(){var Y=this;return(0,e.Z)(function*(){const Te=yield Y.execute();return k(Te,Y.auth,"internal-error"),Te})()}onExecution(){var Y=this;return(0,e.Z)(function*(){j(1===Y.filter.length,"Popup operations only handle one event");const Te=Xs();Y.authWindow=yield Y.resolver._openPopup(Y.auth,Y.provider,Y.filter[0],Te),Y.authWindow.associatedEvent=Te,Y.resolver._originValidation(Y.auth).catch(kt=>{Y.reject(kt)}),Y.resolver._isIframeWebStorageSupported(Y.auth,kt=>{kt||Y.reject(re(Y.auth,"web-storage-unsupported"))}),Y.pollUserCancellation()})()}get eventId(){var Y;return(null===(Y=this.authWindow)||void 0===Y?void 0:Y.associatedEvent)||null}cancel(){this.reject(re(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,_e.currentPopupAction=null}pollUserCancellation(){const Y=()=>{var Te,kt;this.pollId=null!==(kt=null===(Te=this.authWindow)||void 0===Te?void 0:Te.window)&&void 0!==kt&&kt.closed?window.setTimeout(()=>{this.pollId=null,this.reject(re(this.auth,"popup-closed-by-user"))},8e3):window.setTimeout(Y,ys.get())};Y()}}return _e.currentPopupAction=null,_e})();const dc="pendingRedirect",Ls=new Map;class Wc extends Vs{constructor(F,Y,Te=!1){super(F,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],Y,void 0,Te),this.eventId=null}execute(){var F=()=>super.execute,Y=this;return(0,e.Z)(function*(){let Te=Ls.get(Y.auth._key());if(!Te){try{const gn=(yield function zo(_e,F){return no.apply(this,arguments)}(Y.resolver,Y.auth))?yield F().call(Y):null;Te=()=>Promise.resolve(gn)}catch(kt){Te=()=>Promise.reject(kt)}Ls.set(Y.auth._key(),Te)}return Y.bypassAuthState||Ls.set(Y.auth._key(),()=>Promise.resolve(null)),Te()})()}onAuthEvent(F){var Y=()=>super.onAuthEvent,Te=this;return(0,e.Z)(function*(){if("signInViaRedirect"===F.type)return Y().call(Te,F);if("unknown"!==F.type){if(F.eventId){const kt=yield Te.auth._redirectUserForId(F.eventId);if(kt)return Te.user=kt,Y().call(Te,F);Te.resolve(null)}}else Te.resolve(null)})()}onExecution(){return(0,e.Z)(function*(){})()}cleanUp(){}}function no(){return(no=(0,e.Z)(function*(_e,F){const Y=Yc(F),Te=zc(_e);if(!(yield Te._isAvailable()))return!1;const kt="true"===(yield Te._get(Y));return yield Te._remove(Y),kt})).apply(this,arguments)}function ua(_e,F){return Bl.apply(this,arguments)}function Bl(){return(Bl=(0,e.Z)(function*(_e,F){return zc(_e)._set(Yc(F),"true")})).apply(this,arguments)}function cs(_e,F){Ls.set(_e._key(),F)}function zc(_e){return Z(_e._redirectPersistence)}function Yc(_e){return qe(dc,_e.config.apiKey,_e.name)}function Tu(_e,F,Y){return function ud(_e,F,Y){return pa.apply(this,arguments)}(_e,F,Y)}function pa(){return(pa=(0,e.Z)(function*(_e,F,Y){const Te=En(_e);ae(_e,F,an),yield Te._initializationPromise;const kt=Ho(Te,Y);return yield ua(kt,Te),kt._openRedirect(Te,F,"signInViaRedirect")})).apply(this,arguments)}function wa(_e,F,Y){return function Cl(_e,F,Y){return Qa.apply(this,arguments)}(_e,F,Y)}function Qa(){return(Qa=(0,e.Z)(function*(_e,F,Y){const Te=(0,a.m9)(_e);ae(Te.auth,F,an),yield Te.auth._initializationPromise;const kt=Ho(Te.auth,Y);yield ua(kt,Te.auth);const gn=yield Rs(Te);return kt._openRedirect(Te.auth,F,"reauthViaRedirect",gn)})).apply(this,arguments)}function Ul(_e,F,Y){return function Gc(_e,F,Y){return pd.apply(this,arguments)}(_e,F,Y)}function pd(){return(pd=(0,e.Z)(function*(_e,F,Y){const Te=(0,a.m9)(_e);ae(Te.auth,F,an),yield Te.auth._initializationPromise;const kt=Ho(Te.auth,Y);yield yo(!1,Te,F.providerId),yield ua(kt,Te.auth);const gn=yield Rs(Te);return kt._openRedirect(Te.auth,F,"linkViaRedirect",gn)})).apply(this,arguments)}function wc(){return(wc=(0,e.Z)(function*(_e,F){return yield En(_e)._initializationPromise,zs(_e,F,!1)})).apply(this,arguments)}function zs(_e,F){return qr.apply(this,arguments)}function qr(){return(qr=(0,e.Z)(function*(_e,F,Y=!1){const Te=En(_e),kt=Ho(Te,F),ei=yield new Wc(Te,kt,Y).execute();return ei&&!Y&&(delete ei.user._redirectEventId,yield Te._persistUserIfCurrent(ei.user),yield Te._setRedirectUser(null,F)),ei})).apply(this,arguments)}function Rs(_e){return ul.apply(this,arguments)}function ul(){return(ul=(0,e.Z)(function*(_e){const F=Xs(`${_e.uid}:::`);return _e._redirectEventId=F,yield _e.auth._setRedirectUser(_e),yield _e.auth._persistUserIfCurrent(_e),F})).apply(this,arguments)}class te{constructor(F){this.auth=F,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(F){this.consumers.add(F),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,F)&&(this.sendToConsumer(this.queuedRedirectEvent,F),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(F){this.consumers.delete(F)}onEvent(F){if(this.hasEventBeenHandled(F))return!1;let Y=!1;return this.consumers.forEach(Te=>{this.isEventForConsumer(F,Te)&&(Y=!0,this.sendToConsumer(F,Te),this.saveEventToCache(F))}),this.hasHandledPotentialRedirect||!function Bt(_e){switch(_e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return ht(_e);default:return!1}}(F)||(this.hasHandledPotentialRedirect=!0,Y||(this.queuedRedirectEvent=F,Y=!0)),Y}sendToConsumer(F,Y){var Te;if(F.error&&!ht(F)){const kt=(null===(Te=F.error.code)||void 0===Te?void 0:Te.split("auth/")[1])||"internal-error";Y.onError(re(this.auth,kt))}else Y.onAuthEvent(F)}isEventForConsumer(F,Y){const Te=null===Y.eventId||!!F.eventId&&F.eventId===Y.eventId;return Y.filter.includes(F.type)&&Te}hasEventBeenHandled(F){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Oe(F))}saveEventToCache(F){this.cachedEventUids.add(Oe(F)),this.lastProcessedEventTime=Date.now()}}function Oe(_e){return[_e.type,_e.eventId,_e.sessionId,_e.tenantId].filter(F=>F).join("-")}function ht({type:_e,error:F}){return"unknown"===_e&&"auth/no-auth-event"===F?.code}function Cn(_e){return ni.apply(this,arguments)}function ni(){return(ni=(0,e.Z)(function*(_e,F={}){return ve(_e,"GET","/v1/projects",F)})).apply(this,arguments)}const Li=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,hr=/^https?/;function lo(){return(lo=(0,e.Z)(function*(_e){if(_e.config.emulator)return;const{authorizedDomains:F}=yield Cn(_e);for(const Y of F)try{if(Ya(Y))return}catch{}X(_e,"unauthorized-domain")})).apply(this,arguments)}function Ya(_e){const F=R(),{protocol:Y,hostname:Te}=new URL(F);if(_e.startsWith("chrome-extension://")){const ei=new URL(_e);return""===ei.hostname&&""===Te?"chrome-extension:"===Y&&_e.replace("chrome-extension://","")===F.replace("chrome-extension://",""):"chrome-extension:"===Y&&ei.hostname===Te}if(!hr.test(Y))return!1;if(Li.test(_e))return Te===_e;const kt=_e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+kt+"|"+kt+")$","i").test(Te)}const Ys=new N(3e4,6e4);function Eo(){const _e=Oo().___jsl;if(_e?.H)for(const F of Object.keys(_e.H))if(_e.H[F].r=_e.H[F].r||[],_e.H[F].L=_e.H[F].L||[],_e.H[F].r=[..._e.H[F].L],_e.CP)for(let Y=0;Y<_e.CP.length;Y++)_e.CP[Y]=null}let Oc=null;const Iu=new N(5e3,15e3),zd="__/auth/iframe",qo="emulator/auth/iframe",Pu={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Gp=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function $c(_e){const F=_e.config;k(F.authDomain,_e,"auth-domain-config-required");const Y=F.emulator?pe(F,qo):`https://${_e.config.authDomain}/${zd}`,Te={apiKey:F.apiKey,appName:_e.name,v:t.SDK_VERSION},kt=Gp.get(_e.config.apiHost);kt&&(Te.eid=kt);const gn=_e._getFrameworks();return gn.length&&(Te.fw=gn.join(",")),`${Y}?${(0,a.xO)(Te).slice(1)}`}function jl(){return jl=(0,e.Z)(function*(_e){const F=yield function Yp(_e){return Oc=Oc||function Du(_e){return new Promise((F,Y)=>{var Te,kt,gn;function ei(){Eo(),gapi.load("gapi.iframes",{callback:()=>{F(gapi.iframes.getContext())},ontimeout:()=>{Eo(),Y(re(_e,"network-request-failed"))},timeout:Ys.get()})}if(null!==(kt=null===(Te=Oo().gapi)||void 0===Te?void 0:Te.iframes)&&void 0!==kt&&kt.Iframe)F(gapi.iframes.getContext());else{if(null===(gn=Oo().gapi)||void 0===gn||!gn.load){const bi=Wn("iframefcb");return Oo()[bi]=()=>{gapi.load?ei():Y(re(_e,"network-request-failed"))},Rn(`https://apis.google.com/js/api.js?onload=${bi}`).catch(Gi=>Y(Gi))}ei()}}).catch(F=>{throw Oc=null,F})}(_e),Oc}(_e),Y=Oo().gapi;return k(Y,_e,"internal-error"),F.open({where:document.body,url:$c(_e),messageHandlersFilter:Y.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Pu,dontclear:!0},Te=>new Promise(function(){var kt=(0,e.Z)(function*(gn,ei){yield Te.restyle({setHideOnLeave:!1});const bi=re(_e,"network-request-failed"),Gi=Oo().setTimeout(()=>{ei(bi)},Iu.get());function er(){Oo().clearTimeout(Gi),gn(Te)}Te.ping(er).then(er,()=>{ei(bi)})});return function(gn,ei){return kt.apply(this,arguments)}}()))}),jl.apply(this,arguments)}const xa={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},ec=500,eo=600,md="_blank",Ba="http://localhost";class Tc{constructor(F){this.window=F,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const $p="__/auth/handler",_d="emulator/auth/handler",Au=encodeURIComponent("fac");function El(_e,F,Y,Te,kt,gn){return uc.apply(this,arguments)}function uc(){return(uc=(0,e.Z)(function*(_e,F,Y,Te,kt,gn){k(_e.config.authDomain,_e,"auth-domain-config-required"),k(_e.config.apiKey,_e,"invalid-api-key");const ei={apiKey:_e.config.apiKey,appName:_e.name,authType:Y,redirectUrl:Te,v:t.SDK_VERSION,eventId:kt};if(F instanceof an){F.setDefaultLanguage(_e.languageCode),ei.providerId=F.providerId||"",(0,a.xb)(F.getCustomParameters())||(ei.customParameters=JSON.stringify(F.getCustomParameters()));for(const[_r,vr]of Object.entries(gn||{}))ei[_r]=vr}if(F instanceof bn){const _r=F.getScopes().filter(vr=>""!==vr);_r.length>0&&(ei.scopes=_r.join(","))}_e.tenantId&&(ei.tid=_e.tenantId);const bi=ei;for(const _r of Object.keys(bi))void 0===bi[_r]&&delete bi[_r];const Gi=yield _e._getAppCheckToken(),er=Gi?`#${Au}=${encodeURIComponent(Gi)}`:"";return`${function Dc({config:_e}){return _e.emulator?pe(_e,_d):`https://${_e.authDomain}/${$p}`}(_e)}?${(0,a.xO)(bi).slice(1)}${er}`})).apply(this,arguments)}const Yd="webStorageSupport",pc=class Gd{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=ms,this._completeRedirectFn=zs,this._overrideRedirectResult=cs}_openPopup(F,Y,Te,kt){var gn=this;return(0,e.Z)(function*(){var ei;j(null===(ei=gn.eventManagers[F._key()])||void 0===ei?void 0:ei.manager,"_initialize() not called before _openPopup()");const bi=yield El(F,Y,Te,R(),kt);return function ha(_e,F,Y,Te=ec,kt=eo){const gn=Math.max((window.screen.availHeight-kt)/2,0).toString(),ei=Math.max((window.screen.availWidth-Te)/2,0).toString();let bi="";const Gi=Object.assign(Object.assign({},xa),{width:Te.toString(),height:kt.toString(),top:gn,left:ei}),er=(0,a.z$)().toLowerCase();Y&&(bi=gt(er)?md:Y),it(er)&&(F=F||Ba,Gi.scrollbars="yes");const _r=Object.entries(Gi).reduce((la,[Tl,qc])=>`${la}${Tl}=${qc},`,"");if(function Gn(_e=(0,a.z$)()){var F;return Ot(_e)&&!(null===(F=window.navigator)||void 0===F||!F.standalone)}(er)&&"_self"!==bi)return function gd(_e,F){const Y=document.createElement("a");Y.href=_e,Y.target=F;const Te=document.createEvent("MouseEvent");Te.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),Y.dispatchEvent(Te)}(F||"",bi),new Tc(null);const vr=window.open(F||"",bi,_r);k(vr,_e,"popup-blocked");try{vr.focus()}catch{}return new Tc(vr)}(F,bi,Xs())})()}_openRedirect(F,Y,Te,kt){var gn=this;return(0,e.Z)(function*(){return yield gn._originValidation(F),function gl(_e){Oo().location.href=_e}(yield El(F,Y,Te,R(),kt)),new Promise(()=>{})})()}_initialize(F){const Y=F._key();if(this.eventManagers[Y]){const{manager:kt,promise:gn}=this.eventManagers[Y];return kt?Promise.resolve(kt):(j(gn,"If manager is not set, promise should be"),gn)}const Te=this.initAndGetManager(F);return this.eventManagers[Y]={promise:Te},Te.catch(()=>{delete this.eventManagers[Y]}),Te}initAndGetManager(F){var Y=this;return(0,e.Z)(function*(){const Te=yield function fd(_e){return jl.apply(this,arguments)}(F),kt=new te(F);return Te.register("authEvent",gn=>(k(gn?.authEvent,F,"invalid-auth-event"),{status:kt.onEvent(gn.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),Y.eventManagers[F._key()]={manager:kt},Y.iframes[F._key()]=Te,kt})()}_isIframeWebStorageSupported(F,Y){this.iframes[F._key()].send(Yd,{type:Yd},kt=>{var gn;const ei=null===(gn=kt?.[0])||void 0===gn?void 0:gn[Yd];void 0!==ei&&Y(!!ei),X(F,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(F){const Y=F._key();return this.originValidationPromises[Y]||(this.originValidationPromises[Y]=function Hr(_e){return lo.apply(this,arguments)}(F)),this.originValidationPromises[Y]}get _shouldInitProactively(){return Ni()||Be()||Ot()}};class $d{constructor(F){this.factorId=F}_process(F,Y,Te){switch(Y.type){case"enroll":return this._finalizeEnroll(F,Y.credential,Te);case"signin":return this._finalizeSignIn(F,Y.credential);default:return $("unexpected MultiFactorSessionType")}}}class Ic extends $d{constructor(F){super("phone"),this.credential=F}static _fromCredential(F){return new Ic(F)}_finalizeEnroll(F,Y,Te){return function vo(_e,F){return ve(_e,"POST","/v2/accounts/mfaEnrollment:finalize",se(_e,F))}(F,{idToken:Y,displayName:Te,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(F,Y){return function bs(_e,F){return ve(_e,"POST","/v2/accounts/mfaSignIn:finalize",se(_e,F))}(F,{mfaPendingCredential:Y,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}let Ke=(()=>{class _e{constructor(){}static assertion(Y){return Ic._fromCredential(Y)}}return _e.FACTOR_ID="phone",_e})();var Qt="@firebase/auth";class ai{constructor(F){this.auth=F,this.internalListeners=new Map}getUid(){var F;return this.assertAuthConfigured(),(null===(F=this.auth.currentUser)||void 0===F?void 0:F.uid)||null}getToken(F){var Y=this;return(0,e.Z)(function*(){return Y.assertAuthConfigured(),yield Y.auth._initializationPromise,Y.auth.currentUser?{accessToken:yield Y.auth.currentUser.getIdToken(F)}:null})()}addAuthTokenListener(F){if(this.assertAuthConfigured(),this.internalListeners.has(F))return;const Y=this.auth.onIdTokenChanged(Te=>{F(Te?.stsTokenManager.accessToken||null)});this.internalListeners.set(F,Y),this.updateProactiveRefresh()}removeAuthTokenListener(F){this.assertAuthConfigured();const Y=this.internalListeners.get(F);Y&&(this.internalListeners.delete(F),Y(),this.updateProactiveRefresh())}assertAuthConfigured(){k(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function ks(){return window}(0,a.Pz)("authIdTokenMaxAge"),function Cr(_e){(0,t._registerComponent)(new s.wA("auth",(F,{options:Y})=>{const Te=F.getProvider("app").getImmediate(),kt=F.getProvider("heartbeat"),gn=F.getProvider("app-check-internal"),{apiKey:ei,authDomain:bi}=Te.options;k(ei&&!ei.includes(":"),"invalid-api-key",{appName:Te.name});const Gi={apiKey:ei,authDomain:bi,clientPlatform:_e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Mn(_e)},er=new dn(Te,kt,gn,Gi);return function fr(_e,F){const Y=F?.persistence||[],Te=(Array.isArray(Y)?Y:[Y]).map(Z);F?.errorMap&&_e._updateErrorMap(F.errorMap),_e._initializeWithPersistence(Te,F?.popupRedirectResolver)}(er,Y),er},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((F,Y,Te)=>{F.getProvider("auth-internal").initialize()})),(0,t._registerComponent)(new s.wA("auth-internal",F=>{const Y=En(F.getProvider("auth").getImmediate());return new ai(Y)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,t.registerVersion)(Qt,"0.23.2",function Ki(_e){switch(_e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(_e)),(0,t.registerVersion)(Qt,"0.23.2","esm2017")}("Browser");const il=2e3;function hc(){return hc=(0,e.Z)(function*(_e,F,Y){var Te;const{BuildInfo:kt}=ks();j(F.sessionId,"AuthEvent did not contain a session ID");const gn=yield function fc(_e){return Kc.apply(this,arguments)}(F.sessionId),ei={};return Ot()?ei.ibi=kt.packageName:Ge()?ei.apn=kt.packageName:X(_e,"operation-not-supported-in-this-environment"),kt.displayName&&(ei.appDisplayName=kt.displayName),ei.sessionId=gn,El(_e,Y,F.type,void 0,null!==(Te=F.eventId)&&void 0!==Te?Te:void 0,ei)}),hc.apply(this,arguments)}function Pc(){return(Pc=(0,e.Z)(function*(_e){const{BuildInfo:F}=ks(),Y={};Ot()?Y.iosBundleId=F.packageName:Ge()?Y.androidPackageName=F.packageName:X(_e,"operation-not-supported-in-this-environment"),yield Cn(_e,Y)})).apply(this,arguments)}function bd(){return(bd=(0,e.Z)(function*(_e,F,Y){const{cordova:Te}=ks();let kt=()=>{};try{yield new Promise((gn,ei)=>{let bi=null;function Gi(){var vr;gn();const la=null===(vr=Te.plugins.browsertab)||void 0===vr?void 0:vr.close;"function"==typeof la&&la(),"function"==typeof Y?.close&&Y.close()}function er(){bi||(bi=window.setTimeout(()=>{ei(re(_e,"redirect-cancelled-by-user"))},il))}function _r(){"visible"===document?.visibilityState&&er()}F.addPassiveListener(Gi),document.addEventListener("resume",er,!1),Ge()&&document.addEventListener("visibilitychange",_r,!1),kt=()=>{F.removePassiveListener(Gi),document.removeEventListener("resume",er,!1),document.removeEventListener("visibilitychange",_r,!1),bi&&window.clearTimeout(bi)}})}finally{kt()}})).apply(this,arguments)}function Kc(){return(Kc=(0,e.Z)(function*(_e){const F=function yd(_e){if(j(/[0-9a-zA-Z]+/.test(_e),"Can only convert alpha-numeric strings"),typeof TextEncoder<"u")return(new TextEncoder).encode(_e);const F=new ArrayBuffer(_e.length),Y=new Uint8Array(F);for(let Te=0;Te<_e.length;Te++)Y[Te]=_e.charCodeAt(Te);return Y}(_e),Y=yield crypto.subtle.digest("SHA-256",F);return Array.from(new Uint8Array(Y)).map(kt=>kt.toString(16).padStart(2,"0")).join("")})).apply(this,arguments)}const Qc=20;class Kd extends te{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise(F=>{this.resolveInialized=F})}addPassiveListener(F){this.passiveListeners.add(F)}removePassiveListener(F){this.passiveListeners.delete(F)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(F){return this.resolveInialized(),this.passiveListeners.forEach(Y=>Y(F)),super.onEvent(F)}initialized(){var F=this;return(0,e.Z)(function*(){yield F.initPromise})()}}function Kp(_e){return Ac.apply(this,arguments)}function Ac(){return(Ac=(0,e.Z)(function*(_e){const F=yield Xc()._get(nc(_e));return F&&(yield Xc()._remove(nc(_e))),F})).apply(this,arguments)}function Qp(){const _e=[],F="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let Y=0;Y<Qc;Y++){const Te=Math.floor(Math.random()*F.length);_e.push(F.charAt(Te))}return _e.join("")}function Xc(){return Z(ws)}function nc(_e){return qe("authEvent",_e.config.apiKey,_e.name)}function Ml(_e){if(!_e?.includes("?"))return{};const[F,...Y]=_e.split("?");return(0,a.zd)(Y.join("?"))}const Go=class Xp{constructor(){this._redirectPersistence=ms,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=zs,this._overrideRedirectResult=cs}_initialize(F){var Y=this;return(0,e.Z)(function*(){const Te=F._key();let kt=Y.eventManagers.get(Te);return kt||(kt=new Kd(F),Y.eventManagers.set(Te,kt),Y.attachCallbackListeners(F,kt)),kt})()}_openPopup(F){X(F,"operation-not-supported-in-this-environment")}_openRedirect(F,Y,Te,kt){var gn=this;return(0,e.Z)(function*(){!function Ru(_e){var F,Y,Te,kt,gn,ei,bi,Gi,er,_r;const vr=ks();k("function"==typeof(null===(F=vr?.universalLinks)||void 0===F?void 0:F.subscribe),_e,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),k(typeof(null===(Y=vr?.BuildInfo)||void 0===Y?void 0:Y.packageName)<"u",_e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),k("function"==typeof(null===(gn=null===(kt=null===(Te=vr?.cordova)||void 0===Te?void 0:Te.plugins)||void 0===kt?void 0:kt.browsertab)||void 0===gn?void 0:gn.openUrl),_e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),k("function"==typeof(null===(Gi=null===(bi=null===(ei=vr?.cordova)||void 0===ei?void 0:ei.plugins)||void 0===bi?void 0:bi.browsertab)||void 0===Gi?void 0:Gi.isAvailable),_e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),k("function"==typeof(null===(_r=null===(er=vr?.cordova)||void 0===er?void 0:er.InAppBrowser)||void 0===_r?void 0:_r.open),_e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(F);const ei=yield gn._initialize(F);yield ei.initialized(),ei.resetRedirect(),function dl(){Ls.clear()}(),yield gn._originValidation(F);const bi=function Hl(_e,F,Y=null){return{type:F,eventId:Y,urlResponse:null,sessionId:Qp(),postBody:null,tenantId:_e.tenantId,error:re(_e,"no-auth-event")}}(F,Te,kt);yield function ag(_e,F){return Xc()._set(nc(_e),F)}(F,bi);const Gi=yield function Lu(_e,F,Y){return hc.apply(this,arguments)}(F,bi,Y),er=yield function og(_e){const{cordova:F}=ks();return new Promise(Y=>{F.plugins.browsertab.isAvailable(Te=>{let kt=null;Te?F.plugins.browsertab.openUrl(_e):kt=F.InAppBrowser.open(_e,function cn(_e=(0,a.z$)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(_e)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(_e)}()?"_blank":"_system","location=yes"),Y(kt)})})}(Gi);return function xl(_e,F,Y){return bd.apply(this,arguments)}(F,ei,er)})()}_isIframeWebStorageSupported(F,Y){throw new Error("Method not implemented.")}_originValidation(F){const Y=F._key();return this.originValidationPromises[Y]||(this.originValidationPromises[Y]=function vd(_e){return Pc.apply(this,arguments)}(F)),this.originValidationPromises[Y]}attachCallbackListeners(F,Y){const{universalLinks:Te,handleOpenURL:kt,BuildInfo:gn}=ks(),ei=setTimeout((0,e.Z)(function*(){yield Kp(F),Y.onEvent(Sl())}),500),bi=function(){var _r=(0,e.Z)(function*(vr){clearTimeout(ei);const la=yield Kp(F);let Tl=null;la&&vr?.url&&(Tl=function tf(_e,F){var Y,Te;const kt=function Xd(_e){const F=Ml(_e),Y=F.link?decodeURIComponent(F.link):void 0,Te=Ml(Y).link,kt=F.deep_link_id?decodeURIComponent(F.deep_link_id):void 0;return Ml(kt).link||kt||Te||Y||_e}(F);if(kt.includes("/__/auth/callback")){const gn=Ml(kt),ei=gn.firebaseError?function Qd(_e){try{return JSON.parse(_e)}catch{return null}}(decodeURIComponent(gn.firebaseError)):null,bi=null===(Te=null===(Y=ei?.code)||void 0===Y?void 0:Y.split("auth/"))||void 0===Te?void 0:Te[1],Gi=bi?re(bi):null;return Gi?{type:_e.type,eventId:_e.eventId,tenantId:_e.tenantId,error:Gi,urlResponse:null,sessionId:null,postBody:null}:{type:_e.type,eventId:_e.eventId,tenantId:_e.tenantId,sessionId:_e.sessionId,urlResponse:kt,postBody:null}}return null}(la,vr.url)),Y.onEvent(Tl||Sl())});return function(la){return _r.apply(this,arguments)}}();typeof Te<"u"&&"function"==typeof Te.subscribe&&Te.subscribe(null,bi);const Gi=kt,er=`${gn.packageName.toLowerCase()}://`;ks().handleOpenURL=function(){var _r=(0,e.Z)(function*(vr){if(vr.toLowerCase().startsWith(er)&&bi({url:vr}),"function"==typeof Gi)try{Gi(vr)}catch(la){console.error(la)}});return function(vr){return _r.apply(this,arguments)}}()}};function Sl(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:re("no-auth-event")}}const Jp=1e3;function wl(){var _e;return(null===(_e=self?.location)||void 0===_e?void 0:_e.protocol)||null}function Ol(_e=(0,a.z$)()){return!("file:"!==wl()&&"ionic:"!==wl()&&"capacitor:"!==wl()||!_e.toLowerCase().match(/iphone|ipad|ipod|android/))}function sg(){try{const _e=self.localStorage,F=Xs();if(_e)return _e.setItem(F,"1"),_e.removeItem(F),!function ku(_e=(0,a.z$)()){return function Vl(){return(0,a.w1)()&&11===document?.documentMode}()||function rf(_e=(0,a.z$)()){return/Edge\/\d+/.test(_e)}(_e)}()||(0,a.hl)()}catch{return Nu()&&(0,a.hl)()}return!1}function Nu(){return typeof global<"u"&&"WorkerGlobalScope"in global&&"importScripts"in global}function qd(){return(function qp(){return"http:"===wl()||"https:"===wl()}()||(0,a.ru)()||Ol())&&!function Jd(){return(0,a.b$)()||(0,a.UG)()}()&&sg()&&!Nu()}function af(){return Ol()&&typeof document<"u"}function Ed(){return(Ed=(0,e.Z)(function*(){return!!af()&&new Promise(_e=>{const F=setTimeout(()=>{_e(!1)},Jp);document.addEventListener("deviceready",()=>{clearTimeout(F),_e(!0)})})})).apply(this,arguments)}const Gs={LOCAL:"local",NONE:"none",SESSION:"session"},Zc=k,th="persistence";function nh(_e){return ih.apply(this,arguments)}function ih(){return(ih=(0,e.Z)(function*(_e){yield _e._initializationPromise;const F=lf(),Y=qe(th,_e.config.apiKey,_e.name);F&&F.setItem(Y,_e._getPersistence())})).apply(this,arguments)}function lf(){var _e;try{return(null===(_e=function eh(){return typeof window<"u"?window:null}())||void 0===_e?void 0:_e.sessionStorage)||null}catch{return null}}const Fu=k;class us{constructor(){this.browserResolver=Z(pc),this.cordovaResolver=Z(Go),this.underlyingResolver=null,this._redirectPersistence=ms,this._completeRedirectFn=zs,this._overrideRedirectResult=cs}_initialize(F){var Y=this;return(0,e.Z)(function*(){return yield Y.selectUnderlyingResolver(),Y.assertedUnderlyingResolver._initialize(F)})()}_openPopup(F,Y,Te,kt){var gn=this;return(0,e.Z)(function*(){return yield gn.selectUnderlyingResolver(),gn.assertedUnderlyingResolver._openPopup(F,Y,Te,kt)})()}_openRedirect(F,Y,Te,kt){var gn=this;return(0,e.Z)(function*(){return yield gn.selectUnderlyingResolver(),gn.assertedUnderlyingResolver._openRedirect(F,Y,Te,kt)})()}_isIframeWebStorageSupported(F,Y){this.assertedUnderlyingResolver._isIframeWebStorageSupported(F,Y)}_originValidation(F){return this.assertedUnderlyingResolver._originValidation(F)}get _shouldInitProactively(){return af()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return Fu(this.underlyingResolver,"internal-error"),this.underlyingResolver}selectUnderlyingResolver(){var F=this;return(0,e.Z)(function*(){if(F.underlyingResolver)return;const Y=yield function sf(){return Ed.apply(this,arguments)}();F.underlyingResolver=Y?F.cordovaResolver:F.browserResolver})()}}function Lc(_e){return _e.unwrap()}function cg(_e){return oh(_e)}function oh(_e){const{_tokenResponse:F}=_e instanceof a.ZR?_e.customData:_e;if(!F)return null;if(!(_e instanceof a.ZR)&&"temporaryProof"in F&&"phoneNumber"in F)return Yr.credentialFromResult(_e);const Y=F.providerId;if(!Y||Y===p.PASSWORD)return null;let Te;switch(Y){case p.GOOGLE:Te=li;break;case p.FACEBOOK:Te=ii;break;case p.GITHUB:Te=ft;break;case p.TWITTER:Te=mn;break;default:const{oauthIdToken:kt,oauthAccessToken:gn,oauthTokenSecret:ei,pendingToken:bi,nonce:Gi}=F;return gn||ei||kt||bi?bi?Y.startsWith("saml.")?Se._create(Y,bi):br._fromParams({providerId:Y,signInMethod:Y,pendingToken:bi,idToken:kt,accessToken:gn}):new Dn(Y).credential({idToken:kt,accessToken:gn,rawNonce:Gi}):null}return _e instanceof a.ZR?Te.credentialFromError(_e):Te.credentialFromResult(_e)}function $s(_e,F){return F.catch(Y=>{throw Y instanceof a.ZR&&function rh(_e,F){var Y;const Te=null===(Y=F.customData)||void 0===Y?void 0:Y._tokenResponse;if("auth/multi-factor-auth-required"===F?.code)F.resolver=new cf(_e,function Co(_e,F){var Y;const Te=(0,a.m9)(_e),kt=F;return k(F.customData.operationType,Te,"argument-error"),k(null===(Y=kt.customData._serverResponse)||void 0===Y?void 0:Y.mfaPendingCredential,Te,"argument-error"),Vr._fromError(Te,kt)}(_e,F));else if(Te){const kt=oh(F),gn=F;kt&&(gn.credential=kt,gn.tenantId=Te.tenantId||void 0,gn.email=Te.email||void 0,gn.phoneNumber=Te.phoneNumber||void 0)}}(_e,Y),Y}).then(Y=>{const kt=Y.user;return{operationType:Y.operationType,credential:cg(Y),additionalUserInfo:Xo(Y),user:Wl.getOrCreate(kt)}})}function ah(_e,F){return Bu.apply(this,arguments)}function Bu(){return(Bu=(0,e.Z)(function*(_e,F){const Y=yield F;return{verificationId:Y.verificationId,confirm:Te=>$s(_e,Y.confirm(Te))}})).apply(this,arguments)}class cf{constructor(F,Y){this.resolver=Y,this.auth=function eu(_e){return _e.wrapped()}(F)}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(F){return $s(Lc(this.auth),this.resolver.resolveSignIn(F))}}class Wl{constructor(F){this._delegate=F,this.multiFactor=function Ur(_e){const F=(0,a.m9)(_e);return mr.has(F)||mr.set(F,ra._fromUser(F)),mr.get(F)}(F)}static getOrCreate(F){return Wl.USER_MAP.has(F)||Wl.USER_MAP.set(F,new Wl(F)),Wl.USER_MAP.get(F)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(F){return this._delegate.getIdTokenResult(F)}getIdToken(F){return this._delegate.getIdToken(F)}linkAndRetrieveDataWithCredential(F){return this.linkWithCredential(F)}linkWithCredential(F){var Y=this;return(0,e.Z)(function*(){return $s(Y.auth,Ct(Y._delegate,F))})()}linkWithPhoneNumber(F,Y){var Te=this;return(0,e.Z)(function*(){return ah(Te.auth,function rt(_e,F,Y){return Pt.apply(this,arguments)}(Te._delegate,F,Y))})()}linkWithPopup(F){var Y=this;return(0,e.Z)(function*(){return $s(Y.auth,function qa(_e,F,Y){return Ro.apply(this,arguments)}(Y._delegate,F,us))})()}linkWithRedirect(F){var Y=this;return(0,e.Z)(function*(){return yield nh(En(Y.auth)),Ul(Y._delegate,F,us)})()}reauthenticateAndRetrieveDataWithCredential(F){return this.reauthenticateWithCredential(F)}reauthenticateWithCredential(F){var Y=this;return(0,e.Z)(function*(){return $s(Y.auth,vn(Y._delegate,F))})()}reauthenticateWithPhoneNumber(F,Y){return ah(this.auth,function hn(_e,F,Y){return wn.apply(this,arguments)}(this._delegate,F,Y))}reauthenticateWithPopup(F){return $s(this.auth,function Ir(_e,F,Y){return Zr.apply(this,arguments)}(this._delegate,F,us))}reauthenticateWithRedirect(F){var Y=this;return(0,e.Z)(function*(){return yield nh(En(Y.auth)),wa(Y._delegate,F,us)})()}sendEmailVerification(F){return function No(_e,F){return sn.apply(this,arguments)}(this._delegate,F)}unlink(F){var Y=this;return(0,e.Z)(function*(){return yield function Gr(_e,F){return Io.apply(this,arguments)}(Y._delegate,F),Y})()}updateEmail(F){return function Fi(_e,F){return Xi((0,a.m9)(_e),F,null)}(this._delegate,F)}updatePassword(F){return function sr(_e,F){return Xi((0,a.m9)(_e),null,F)}(this._delegate,F)}updatePhoneNumber(F){return function ur(_e,F){return lr.apply(this,arguments)}(this._delegate,F)}updateProfile(F){return function qt(_e,F){return Ri.apply(this,arguments)}(this._delegate,F)}verifyBeforeUpdateEmail(F,Y){return function In(_e,F,Y){return $n.apply(this,arguments)}(this._delegate,F,Y)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}Wl.USER_MAP=new WeakMap;const tu=k;let df=(()=>{class _e{constructor(Y,Te){if(this.app=Y,Te.isInitialized())return this._delegate=Te.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:kt}=Y.options;tu(kt,"invalid-api-key",{appName:Y.name}),tu(kt,"invalid-api-key",{appName:Y.name});const gn=typeof window<"u"?us:void 0;this._delegate=Te.initialize({options:{persistence:mc(kt,Y.name),popupRedirectResolver:gn}}),this._delegate._updateErrorMap(S),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?Wl.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(Y){this._delegate.languageCode=Y}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(Y){this._delegate.tenantId=Y}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(Y,Te){!function Mr(_e,F,Y){const Te=En(_e);k(Te._canInitEmulator,Te,"emulator-config-failed"),k(/^https?:\/\//.test(F),Te,"invalid-emulator-scheme");const kt=!!Y?.disableWarnings,gn=ti(F),{host:ei,port:bi}=function Kn(_e){const F=ti(_e),Y=/(\/\/)?([^?#/]+)/.exec(_e.substr(F.length));if(!Y)return{host:"",port:null};const Te=Y[2].split("@").pop()||"",kt=/^(\[[^\]]+\])(:|$)/.exec(Te);if(kt){const gn=kt[1];return{host:gn,port:on(Te.substr(gn.length+1))}}{const[gn,ei]=Te.split(":");return{host:gn,port:on(ei)}}}(F);Te.config.emulator={url:`${gn}//${ei}${null===bi?"":`:${bi}`}/`},Te.settings.appVerificationDisabledForTesting=!0,Te.emulatorConfig=Object.freeze({host:ei,port:bi,protocol:gn.replace(":",""),options:Object.freeze({disableWarnings:kt})}),kt||function he(){function _e(){const F=document.createElement("p"),Y=F.style;F.innerText="Running in emulator mode. Do not use with production credentials.",Y.position="fixed",Y.width="100%",Y.backgroundColor="#ffffff",Y.border=".1em solid #000000",Y.color="#b50000",Y.bottom="0px",Y.left="0px",Y.margin="0px",Y.zIndex="10000",Y.textAlign="center",F.classList.add("firebase-emulator-warning"),document.body.appendChild(F)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",_e):_e())}()}(this._delegate,Y,Te)}applyActionCode(Y){return function Qs(_e,F){return ja.apply(this,arguments)}(this._delegate,Y)}checkActionCode(Y){return rs(this._delegate,Y)}confirmPasswordReset(Y,Te){return function sl(_e,F,Y){return ca.apply(this,arguments)}(this._delegate,Y,Te)}createUserWithEmailAndPassword(Y,Te){var kt=this;return(0,e.Z)(function*(){return $s(kt._delegate,function Na(_e,F,Y){return Ma.apply(this,arguments)}(kt._delegate,Y,Te))})()}fetchProvidersForEmail(Y){return this.fetchSignInMethodsForEmail(Y)}fetchSignInMethodsForEmail(Y){return function Ha(_e,F){return La.apply(this,arguments)}(this._delegate,Y)}isSignInWithEmailLink(Y){return function $r(_e,F){return"EMAIL_SIGNIN"===Zn.parseLink(F)?.operation}(0,Y)}getRedirectResult(){var Y=this;return(0,e.Z)(function*(){tu(qd(),Y._delegate,"operation-not-supported-in-this-environment");const Te=yield function hd(_e,F){return wc.apply(this,arguments)}(Y._delegate,us);return Te?$s(Y._delegate,Promise.resolve(Te)):{credential:null,user:null}})()}addFrameworkForLogging(Y){!function Cd(_e,F){En(_e)._logFramework(F)}(this._delegate,Y)}onAuthStateChanged(Y,Te,kt){const{next:gn,error:ei,complete:bi}=nu(Y,Te,kt);return this._delegate.onAuthStateChanged(gn,ei,bi)}onIdTokenChanged(Y,Te,kt){const{next:gn,error:ei,complete:bi}=nu(Y,Te,kt);return this._delegate.onIdTokenChanged(gn,ei,bi)}sendSignInLinkToEmail(Y,Te){return function Fr(_e,F,Y){return Ao.apply(this,arguments)}(this._delegate,Y,Te)}sendPasswordResetEmail(Y,Te){return function Ss(_e,F,Y){return ba.apply(this,arguments)}(this._delegate,Y,Te||void 0)}setPersistence(Y){var Te=this;return(0,e.Z)(function*(){let kt;switch(function Jc(_e,F){Zc(Object.values(Gs).includes(F),_e,"invalid-persistence-type"),(0,a.b$)()?Zc(F!==Gs.SESSION,_e,"unsupported-persistence-type"):(0,a.UG)()?Zc(F===Gs.NONE,_e,"unsupported-persistence-type"):Nu()?Zc(F===Gs.NONE||F===Gs.LOCAL&&(0,a.hl)(),_e,"unsupported-persistence-type"):Zc(F===Gs.NONE||sg(),_e,"unsupported-persistence-type")}(Te._delegate,Y),Y){case Gs.SESSION:kt=ms;break;case Gs.LOCAL:kt=(yield Z(Is)._isAvailable())?Is:ws;break;case Gs.NONE:kt=Qe;break;default:return X("argument-error",{appName:Te._delegate.name})}return Te._delegate.setPersistence(kt)})()}signInAndRetrieveDataWithCredential(Y){return this.signInWithCredential(Y)}signInAnonymously(){return $s(this._delegate,function Ai(_e){return zi.apply(this,arguments)}(this._delegate))}signInWithCredential(Y){return $s(this._delegate,va(this._delegate,Y))}signInWithCustomToken(Y){return $s(this._delegate,function Oi(_e,F){return xr.apply(this,arguments)}(this._delegate,Y))}signInWithEmailAndPassword(Y,Te){return $s(this._delegate,function Fa(_e,F,Y){return va((0,a.m9)(_e),wi.credential(F,Y))}(this._delegate,Y,Te))}signInWithEmailLink(Y,Te){return $s(this._delegate,function fs(_e,F,Y){return Sr.apply(this,arguments)}(this._delegate,Y,Te))}signInWithPhoneNumber(Y,Te){return ah(this._delegate,function He(_e,F,Y){return fe.apply(this,arguments)}(this._delegate,Y,Te))}signInWithPopup(Y){var Te=this;return(0,e.Z)(function*(){return tu(qd(),Te._delegate,"operation-not-supported-in-this-environment"),$s(Te._delegate,function cc(_e,F,Y){return jr.apply(this,arguments)}(Te._delegate,Y,us))})()}signInWithRedirect(Y){var Te=this;return(0,e.Z)(function*(){return tu(qd(),Te._delegate,"operation-not-supported-in-this-environment"),yield nh(Te._delegate),Tu(Te._delegate,Y,us)})()}updateCurrentUser(Y){return this._delegate.updateCurrentUser(Y)}verifyPasswordResetCode(Y){return function Ko(_e,F){return Ji.apply(this,arguments)}(this._delegate,Y)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}return _e.Persistence=Gs,_e})();function nu(_e,F,Y){let Te=_e;"function"!=typeof _e&&({next:Te,error:F,complete:Y}=_e);const kt=Te;return{next:ei=>kt(ei&&Wl.getOrCreate(ei)),error:F,complete:Y}}function mc(_e,F){const Y=function lg(_e,F){const Y=lf();if(!Y)return[];const Te=qe(th,_e,F);switch(Y.getItem(Te)){case Gs.NONE:return[Qe];case Gs.LOCAL:return[Is,ms];case Gs.SESSION:return[ms];default:return[]}}(_e,F);if(typeof self<"u"&&!Y.includes(Is)&&Y.push(Is),typeof window<"u")for(const Te of[ws,ms])Y.includes(Te)||Y.push(Te);return Y.includes(Qe)||Y.push(Qe),Y}class Rc{constructor(){this.providerId="phone",this._delegate=new Yr(Lc(n.Z.auth()))}static credential(F,Y){return Yr.credential(F,Y)}verifyPhoneNumber(F,Y){return this._delegate.verifyPhoneNumber(F,Y)}unwrap(){return this._delegate}}Rc.PHONE_SIGN_IN_METHOD=Yr.PHONE_SIGN_IN_METHOD,Rc.PROVIDER_ID=Yr.PROVIDER_ID;const iu=k;class Uu{constructor(F,Y,Te=n.Z.app()){var kt;iu(null===(kt=Te.options)||void 0===kt?void 0:kt.apiKey,"invalid-api-key",{appName:Te.name}),this._delegate=new mi(F,Y,Te.auth()),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}!function Bv(_e){_e.INTERNAL.registerComponent(new s.wA("auth-compat",F=>{const Y=F.getProvider("app-compat").getImmediate(),Te=F.getProvider("auth");return new df(Y,Te)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:v_EMAIL_SIGNIN,PASSWORD_RESET:v_PASSWORD_RESET,RECOVER_EMAIL:v_RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:v_REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:v_VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:v_VERIFY_EMAIL}},EmailAuthProvider:wi,FacebookAuthProvider:ii,GithubAuthProvider:ft,GoogleAuthProvider:li,OAuthProvider:Dn,SAMLAuthProvider:Kt,PhoneAuthProvider:Rc,PhoneMultiFactorGenerator:Ke,RecaptchaVerifier:Uu,TwitterAuthProvider:mn,Auth:df,AuthCredential:et,Error:a.ZR}).setInstantiationMode("LAZY").setMultipleInstances(!1)),_e.registerVersion("@firebase/auth-compat","0.4.2")}(n.Z)},26774:(oe,x,i)=>{"use strict";i.d(x,{Gb:()=>e.Gb});var e=i(20908)},79207:(oe,x,i)=>{"use strict";i.d(x,{Pz:()=>b,Qc:()=>y});const{parse:e,stringify:n}=JSON,{keys:a}=Object,t=String,l="string",h={},s="object",d=(D,A)=>A,p=D=>D instanceof t?t(D):D,u=(D,A)=>typeof A===l?new t(A):A,g=(D,A,P,B)=>{const V=[];for(let X=a(P),{length:re}=X,Q=0;Q<re;Q++){const ae=X[Q],K=P[ae];if(K instanceof t){const k=D[K];typeof k!==s||A.has(k)?P[ae]=B.call(P,ae,k):(A.add(k),P[ae]=h,V.push({k:ae,a:[D,A,k,B]}))}else P[ae]!==h&&(P[ae]=B.call(P,ae,K))}for(let{length:X}=V,re=0;re<X;re++){const{k:Q,a:ae}=V[re];P[Q]=B.call(P,Q,g.apply(null,ae))}return P},v=(D,A,P)=>{const B=t(A.push(P)-1);return D.set(P,B),B},y=(D,A)=>{const P=e(D,u).map(p),B=P[0],V=A||d,X=typeof B===s&&B?g(P,new Set,B,V):B;return V.call({"":X},"",X)},b=(D,A,P)=>{const B=A&&typeof A===s?(k,$)=>""===k||-1<A.indexOf(k)?$:void 0:A||d,V=new Map,X=[],re=[];let Q=+v(V,X,B.call({"":D},"",D)),ae=!Q;for(;Q<X.length;)ae=!0,re[Q]=n(X[Q++],K,P);return"["+re.join(",")+"]";function K(k,$){if(ae)return ae=!ae,$;const j=B.call(this,k,$);switch(typeof j){case s:if(null===j)return j;case l:return V.get(j)||v(V,X,j)}return j}}},59808:(oe,x,i)=>{"use strict";i.d(x,{t:()=>l,y:()=>t});var e=i(94650),n=i(27243);const a=["bcElement"];let t=(()=>{const s=class{get options(){return{format:this.format,lineColor:this.lineColor,width:this.width,height:this.height,displayValue:this.displayValue,fontOptions:this.fontOptions,font:this.font,textAlign:this.textAlign,textPosition:this.textPosition,textMargin:this.textMargin,fontSize:this.fontSize,background:this.background,margin:this.margin,marginTop:this.marginTop,marginBottom:this.marginBottom,marginLeft:this.marginLeft,marginRight:this.marginRight,valid:this.valid}}constructor(p){this.renderer=p,this.elementType="svg",this.cssClass="barcode",this.format="CODE128",this.lineColor="#000000",this.width=2,this.height=100,this.displayValue=!1,this.fontOptions="",this.font="monospace",this.textAlign="center",this.textPosition="bottom",this.textMargin=2,this.fontSize=20,this.background="#ffffff",this.margin=10,this.marginTop=10,this.marginBottom=10,this.marginLeft=10,this.marginRight=10,this.value="",this.valid=()=>!0}ngAfterViewInit(){this.createBarcode()}ngOnChanges(){this.bcElement&&this.createBarcode()}createBarcode(){if(!this.value)return;let p;switch(this.elementType){case"img":p=this.renderer.createElement("img");break;case"canvas":p=this.renderer.createElement("canvas");break;default:p=this.renderer.createElement("svg","svg")}n(p,this.value,this.options);for(const u of this.bcElement.nativeElement.childNodes)this.renderer.removeChild(this.bcElement.nativeElement,u);this.renderer.appendChild(this.bcElement.nativeElement,p)}};let h=s;return s.\u0275fac=function(u){return new(u||s)(e.\u0275\u0275directiveInject(e.Renderer2))},s.\u0275cmp=e.\u0275\u0275defineComponent({type:s,selectors:[["ngx-barcode6"]],viewQuery:function(u,g){if(1&u&&e.\u0275\u0275viewQuery(a,5),2&u){let v;e.\u0275\u0275queryRefresh(v=e.\u0275\u0275loadQuery())&&(g.bcElement=v.first)}},inputs:{elementType:["bc-element-type","elementType"],cssClass:["bc-class","cssClass"],format:["bc-format","format"],lineColor:["bc-line-color","lineColor"],width:["bc-width","width"],height:["bc-height","height"],displayValue:["bc-display-value","displayValue"],fontOptions:["bc-font-options","fontOptions"],font:["bc-font","font"],textAlign:["bc-text-align","textAlign"],textPosition:["bc-text-position","textPosition"],textMargin:["bc-text-margin","textMargin"],fontSize:["bc-font-size","fontSize"],background:["bc-background","background"],margin:["bc-margin","margin"],marginTop:["bc-margin-top","marginTop"],marginBottom:["bc-margin-bottom","marginBottom"],marginLeft:["bc-margin-left","marginLeft"],marginRight:["bc-margin-right","marginRight"],value:["bc-value","value"],valid:["bc-valid","valid"]},features:[e.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[["bcElement",""]],template:function(u,g){1&u&&e.\u0275\u0275element(0,"div",null,0),2&u&&e.\u0275\u0275classMap(g.cssClass)},encapsulation:2}),h})(),l=(()=>{const s=class{};let h=s;return s.\u0275fac=function(u){return new(u||s)},s.\u0275mod=e.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=e.\u0275\u0275defineInjector({}),h})()},81208:(oe,x,i)=>{"use strict";i.d(x,{QG:()=>K,ap:()=>ae});var e=i(15861),n=i(94650),a=i(11481),t=i(36895);const l=["wrapper"],h=["sourceImage"];function s($,j){if(1&$){const R=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"img",4,5),n.\u0275\u0275listener("load",function(){n.\u0275\u0275restoreView(R);const le=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(le.imageLoadedInView())})("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Drag))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Drag))})("error",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(T.loadImageError(le))}),n.\u0275\u0275elementEnd()}if(2&$){const R=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("visibility",R.imageVisible?"visible":"hidden")("transform",R.safeTransformStyle),n.\u0275\u0275classProp("ngx-ic-draggable",!R.disabled&&R.allowMoveImage),n.\u0275\u0275property("src",R.safeImgDataUrl,n.\u0275\u0275sanitizeUrl),n.\u0275\u0275attribute("alt",R.imageAltText)}}function d($,j){if(1&$){const R=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275elementStart(1,"span",9),n.\u0275\u0275listener("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"topleft"))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"topleft"))}),n.\u0275\u0275element(2,"span",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"span",11),n.\u0275\u0275element(4,"span",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"span",12),n.\u0275\u0275listener("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"topright"))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"topright"))}),n.\u0275\u0275element(6,"span",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(7,"span",13),n.\u0275\u0275element(8,"span",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"span",14),n.\u0275\u0275listener("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"bottomright"))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"bottomright"))}),n.\u0275\u0275element(10,"span",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(11,"span",15),n.\u0275\u0275element(12,"span",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(13,"span",16),n.\u0275\u0275listener("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"bottomleft"))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"bottomleft"))}),n.\u0275\u0275element(14,"span",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(15,"span",17),n.\u0275\u0275element(16,"span",10),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(17,"span",18),n.\u0275\u0275listener("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"top"))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"top"))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(18,"span",19),n.\u0275\u0275listener("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"right"))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"right"))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(19,"span",20),n.\u0275\u0275listener("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"bottom"))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"bottom"))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(20,"span",21),n.\u0275\u0275listener("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"left"))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Resize,"left"))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementContainerEnd()}}function p($,j){if(1&$){const R=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",6),n.\u0275\u0275listener("keydown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(T.keyboardAccess(le))}),n.\u0275\u0275elementStart(1,"div",7),n.\u0275\u0275listener("mousedown",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Move))})("touchstart",function(le){n.\u0275\u0275restoreView(R);const T=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(T.startMove(le,T.moveTypes.Move))}),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(2,d,21,0,"ng-container",8),n.\u0275\u0275elementEnd()}if(2&$){const R=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("top",R.cropper.y1,"px")("left",R.cropper.x1,"px")("width",R.cropper.x2-R.cropper.x1,"px")("height",R.cropper.y2-R.cropper.y1,"px")("margin-left","center"===R.alignImage?R.marginLeft:null)("visibility",R.imageVisible?"visible":"hidden"),n.\u0275\u0275classProp("ngx-ic-round",R.roundCropper),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",!R.hideResizeSquares)}}class u{constructor(){this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(j){Object.keys(j).filter(R=>R in this).forEach(R=>this[R]=j[R]),this.validateOptions()}setOptionsFromChanges(j){Object.keys(j).filter(R=>R in this).forEach(R=>this[R]=j[R].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}}var g=(()=>{return($=g||(g={})).Drag="drag",$.Move="move",$.Resize="resize",$.Pinch="pinch",g;var $})();function E($,j){return $/100*j}let D=(()=>{class ${crop(R,U,le,T){const H=this.getImagePosition(R,U,le,T),N=H.x2-H.x1,pe=H.y2-H.y1,de=document.createElement("canvas");de.width=N,de.height=pe;const me=de.getContext("2d");if(!me)return null;null!=T.backgroundColor&&(me.fillStyle=T.backgroundColor,me.fillRect(0,0,N,pe));const q=(T.transform.scale||1)*(T.transform.flipH?-1:1),se=(T.transform.scale||1)*(T.transform.flipV?-1:1),{translateH:ve,translateV:Ee}=this.getCanvasTranslate(R,U,T),Ye=U.transformed;me.setTransform(q,0,0,se,Ye.size.width/2+ve,Ye.size.height/2+Ee),me.translate(-H.x1/q,-H.y1/se),me.rotate((T.transform.rotate||0)*Math.PI/180),me.drawImage(Ye.image,-Ye.size.width/2,-Ye.size.height/2);const wt={width:N,height:pe,imagePosition:H,cropperPosition:{...le}};T.containWithinAspectRatio&&(wt.offsetImagePosition=this.getOffsetImagePosition(R,U,le,T));const Wt=this.getResizeRatio(N,pe,T);return 1!==Wt&&(wt.width=Math.round(N*Wt),wt.height=T.maintainAspectRatio?Math.round(wt.width/T.aspectRatio):Math.round(pe*Wt),function S($,j,R){const U=$.width,le=$.height,T=U/(j=Math.round(j)),H=le/(R=Math.round(R)),N=Math.ceil(T/2),pe=Math.ceil(H/2),de=$.getContext("2d");if(de){const me=de.getImageData(0,0,U,le),q=de.createImageData(j,R),se=me.data,ve=q.data;for(let Ee=0;Ee<R;Ee++)for(let Ye=0;Ye<j;Ye++){const wt=4*(Ye+Ee*j),Wt=Ee*H;let Ut=0,nt=0,Zt=0,Fe=0,yt=0,ie=0,Ce=0;const Ie=Math.floor(Ye*T),dt=Math.floor(Ee*H);let Mt=Math.ceil((Ye+1)*T),Xt=Math.ceil((Ee+1)*H);Mt=Math.min(Mt,U),Xt=Math.min(Xt,le);for(let en=dt;en<Xt;en++){const vt=Math.abs(Wt-en)/pe,xt=Ye*T,zt=vt*vt;for(let bt=Ie;bt<Mt;bt++){const At=Math.abs(xt-bt)/N,$e=Math.sqrt(zt+At*At);if($e>=1)continue;Ut=2*$e*$e*$e-3*$e*$e+1;const Xe=4*(bt+en*U);Ce+=Ut*se[Xe+3],Zt+=Ut,se[Xe+3]<255&&(Ut=Ut*se[Xe+3]/250),Fe+=Ut*se[Xe],yt+=Ut*se[Xe+1],ie+=Ut*se[Xe+2],nt+=Ut}}ve[wt]=Fe/nt,ve[wt+1]=yt/nt,ve[wt+2]=ie/nt,ve[wt+3]=Ce/Zt}$.width=j,$.height=R,de.putImageData(q,0,0)}}(de,wt.width,wt.height)),wt.base64=de.toDataURL("image/"+T.format,this.getQuality(T)),wt}getCanvasTranslate(R,U,le){if("px"===le.transform.translateUnit){const T=this.getRatio(R,U);return{translateH:(le.transform.translateH||0)*T,translateV:(le.transform.translateV||0)*T}}return{translateH:le.transform.translateH?E(le.transform.translateH,U.transformed.size.width):0,translateV:le.transform.translateV?E(le.transform.translateV,U.transformed.size.height):0}}getRatio(R,U){return U.transformed.size.width/R.nativeElement.offsetWidth}getImagePosition(R,U,le,T){const H=this.getRatio(R,U),N={x1:Math.round(le.x1*H),y1:Math.round(le.y1*H),x2:Math.round(le.x2*H),y2:Math.round(le.y2*H)};return T.containWithinAspectRatio||(N.x1=Math.max(N.x1,0),N.y1=Math.max(N.y1,0),N.x2=Math.min(N.x2,U.transformed.size.width),N.y2=Math.min(N.y2,U.transformed.size.height)),N}getOffsetImagePosition(R,U,le,T){const pe=U.transformed.size.width/R.nativeElement.offsetWidth;let de,me;(T.canvasRotation+U.exifTransform.rotate)%2?(de=(U.transformed.size.width-U.original.size.height)/2,me=(U.transformed.size.height-U.original.size.width)/2):(de=(U.transformed.size.width-U.original.size.width)/2,me=(U.transformed.size.height-U.original.size.height)/2);const q={x1:Math.round(le.x1*pe)-de,y1:Math.round(le.y1*pe)-me,x2:Math.round(le.x2*pe)-de,y2:Math.round(le.y2*pe)-me};return T.containWithinAspectRatio||(q.x1=Math.max(q.x1,0),q.y1=Math.max(q.y1,0),q.x2=Math.min(q.x2,U.transformed.size.width),q.y2=Math.min(q.y2,U.transformed.size.height)),q}getResizeRatio(R,U,le){const T=le.resizeToWidth/R,H=le.resizeToHeight/U,N=new Array;le.resizeToWidth>0&&N.push(T),le.resizeToHeight>0&&N.push(H);const pe=0===N.length?1:Math.min(...N);return pe>1&&!le.onlyScaleDown?pe:Math.min(pe,1)}getQuality(R){return Math.min(1,Math.max(0,R.imageQuality/100))}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=n.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),A=(()=>{class ${resetCropperPosition(R,U,le){if(!R?.nativeElement)return;const T=R.nativeElement;if(le.cropperStaticHeight&&le.cropperStaticWidth)U.x1=0,U.x2=T.offsetWidth>le.cropperStaticWidth?le.cropperStaticWidth:T.offsetWidth,U.y1=0,U.y2=T.offsetHeight>le.cropperStaticHeight?le.cropperStaticHeight:T.offsetHeight;else{const H=Math.min(le.cropperScaledMaxWidth,T.offsetWidth),N=Math.min(le.cropperScaledMaxHeight,T.offsetHeight);if(le.maintainAspectRatio)if(T.offsetWidth/le.aspectRatio<T.offsetHeight){U.x1=0,U.x2=H;const pe=H/le.aspectRatio;U.y1=(T.offsetHeight-pe)/2,U.y2=U.y1+pe}else{U.y1=0,U.y2=N;const pe=N*le.aspectRatio;U.x1=(T.offsetWidth-pe)/2,U.x2=U.x1+pe}else U.x1=0,U.x2=H,U.y1=0,U.y2=N}}move(R,U,le){const T=this.getClientX(R)-U.clientX,H=this.getClientY(R)-U.clientY;le.x1=U.x1+T,le.y1=U.y1+H,le.x2=U.x2+T,le.y2=U.y2+H}resize(R,U,le,T,H){const N=this.getClientX(R)-U.clientX,pe=this.getClientY(R)-U.clientY;switch(U.position){case"left":le.x1=Math.min(Math.max(U.x1+N,le.x2-H.cropperScaledMaxWidth),le.x2-H.cropperScaledMinWidth);break;case"topleft":le.x1=Math.min(Math.max(U.x1+N,le.x2-H.cropperScaledMaxWidth),le.x2-H.cropperScaledMinWidth),le.y1=Math.min(Math.max(U.y1+pe,le.y2-H.cropperScaledMaxHeight),le.y2-H.cropperScaledMinHeight);break;case"top":le.y1=Math.min(Math.max(U.y1+pe,le.y2-H.cropperScaledMaxHeight),le.y2-H.cropperScaledMinHeight);break;case"topright":le.x2=Math.max(Math.min(U.x2+N,le.x1+H.cropperScaledMaxWidth),le.x1+H.cropperScaledMinWidth),le.y1=Math.min(Math.max(U.y1+pe,le.y2-H.cropperScaledMaxHeight),le.y2-H.cropperScaledMinHeight);break;case"right":le.x2=Math.max(Math.min(U.x2+N,le.x1+H.cropperScaledMaxWidth),le.x1+H.cropperScaledMinWidth);break;case"bottomright":le.x2=Math.max(Math.min(U.x2+N,le.x1+H.cropperScaledMaxWidth),le.x1+H.cropperScaledMinWidth),le.y2=Math.max(Math.min(U.y2+pe,le.y1+H.cropperScaledMaxHeight),le.y1+H.cropperScaledMinHeight);break;case"bottom":le.y2=Math.max(Math.min(U.y2+pe,le.y1+H.cropperScaledMaxHeight),le.y1+H.cropperScaledMinHeight);break;case"bottomleft":le.x1=Math.min(Math.max(U.x1+N,le.x2-H.cropperScaledMaxWidth),le.x2-H.cropperScaledMinWidth),le.y2=Math.max(Math.min(U.y2+pe,le.y1+H.cropperScaledMaxHeight),le.y1+H.cropperScaledMinHeight);break;case"center":const de=R.scale,me=Math.min(Math.max(H.cropperScaledMinWidth,Math.abs(U.x2-U.x1)*de),H.cropperScaledMaxWidth),q=Math.min(Math.max(H.cropperScaledMinHeight,Math.abs(U.y2-U.y1)*de),H.cropperScaledMaxHeight);le.x1=U.clientX-me/2,le.x2=U.clientX+me/2,le.y1=U.clientY-q/2,le.y2=U.clientY+q/2,le.x1<0?(le.x2-=le.x1,le.x1=0):le.x2>T.width&&(le.x1-=le.x2-T.width,le.x2=T.width),le.y1<0?(le.y2-=le.y1,le.y1=0):le.y2>T.height&&(le.y1-=le.y2-T.height,le.y2=T.height)}H.maintainAspectRatio&&this.checkAspectRatio(U.position,le,T,H)}checkAspectRatio(R,U,le,T){let H=0,N=0;switch(R){case"top":U.x2=U.x1+(U.y2-U.y1)*T.aspectRatio,H=Math.max(U.x2-le.width,0),N=Math.max(0-U.y1,0),(H>0||N>0)&&(U.x2-=N*T.aspectRatio>H?N*T.aspectRatio:H,U.y1+=N*T.aspectRatio>H?N:H/T.aspectRatio);break;case"bottom":U.x2=U.x1+(U.y2-U.y1)*T.aspectRatio,H=Math.max(U.x2-le.width,0),N=Math.max(U.y2-le.height,0),(H>0||N>0)&&(U.x2-=N*T.aspectRatio>H?N*T.aspectRatio:H,U.y2-=N*T.aspectRatio>H?N:H/T.aspectRatio);break;case"topleft":U.y1=U.y2-(U.x2-U.x1)/T.aspectRatio,H=Math.max(0-U.x1,0),N=Math.max(0-U.y1,0),(H>0||N>0)&&(U.x1+=N*T.aspectRatio>H?N*T.aspectRatio:H,U.y1+=N*T.aspectRatio>H?N:H/T.aspectRatio);break;case"topright":U.y1=U.y2-(U.x2-U.x1)/T.aspectRatio,H=Math.max(U.x2-le.width,0),N=Math.max(0-U.y1,0),(H>0||N>0)&&(U.x2-=N*T.aspectRatio>H?N*T.aspectRatio:H,U.y1+=N*T.aspectRatio>H?N:H/T.aspectRatio);break;case"right":case"bottomright":U.y2=U.y1+(U.x2-U.x1)/T.aspectRatio,H=Math.max(U.x2-le.width,0),N=Math.max(U.y2-le.height,0),(H>0||N>0)&&(U.x2-=N*T.aspectRatio>H?N*T.aspectRatio:H,U.y2-=N*T.aspectRatio>H?N:H/T.aspectRatio);break;case"left":case"bottomleft":U.y2=U.y1+(U.x2-U.x1)/T.aspectRatio,H=Math.max(0-U.x1,0),N=Math.max(U.y2-le.height,0),(H>0||N>0)&&(U.x1+=N*T.aspectRatio>H?N*T.aspectRatio:H,U.y2-=N*T.aspectRatio>H?N:H/T.aspectRatio);break;case"center":U.x2=U.x1+(U.y2-U.y1)*T.aspectRatio,U.y2=U.y1+(U.x2-U.x1)/T.aspectRatio;const pe=Math.max(0-U.x1,0),de=Math.max(U.x2-le.width,0),me=Math.max(U.y2-le.height,0),q=Math.max(0-U.y1,0);(pe>0||de>0||me>0||q>0)&&(U.x1+=me*T.aspectRatio>pe?me*T.aspectRatio:pe,U.x2-=q*T.aspectRatio>de?q*T.aspectRatio:de,U.y1+=q*T.aspectRatio>de?q:de/T.aspectRatio,U.y2-=me*T.aspectRatio>pe?me:pe/T.aspectRatio)}}getClientX(R){return R.touches?.[0].clientX||R.clientX||0}getClientY(R){return R.touches?.[0].clientY||R.clientY||0}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=n.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();let Q=(()=>{class ${constructor(){this.autoRotateSupported=function B(){return new Promise($=>{const j=new Image;j.onload=()=>{$(1===j.width&&2===j.height)},j.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="})}()}loadImageFile(R,U){return new Promise((le,T)=>{const H=new FileReader;H.onload=N=>{this.loadImage(N.target.result,R.type,U).then(le).catch(T)},H.readAsDataURL(R)})}loadImage(R,U,le){return this.isValidImageType(U)?this.loadBase64Image(R,le):Promise.reject(new Error("Invalid image type"))}isValidImageType(R){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp|x-icon|vnd.microsoft.icon)/.test(R)}loadImageFromURL(R,U){return new Promise((le,T)=>{const H=new Image;H.onerror=()=>T,H.onload=()=>{const N=document.createElement("canvas"),pe=N.getContext("2d");N.width=H.width,N.height=H.height,pe?.drawImage(H,0,0),this.loadBase64Image(N.toDataURL(),U).then(le)},H.crossOrigin="anonymous",H.src=R})}loadBase64Image(R,U){return new Promise((le,T)=>{const H=new Image;H.onload=()=>le({originalImage:H,originalBase64:R}),H.onerror=T,H.src=R}).then(le=>this.transformImageBase64(le,U))}transformImageBase64(R,U){var le=this;return(0,e.Z)(function*(){const T=yield le.autoRotateSupported,H=yield function V($){switch("string"==typeof $&&($=function X($){const j=new DataView(function re($){$=$.replace(/^data\:([^\;]+)\;base64,/gim,"");const j=atob($),R=j.length,U=new Uint8Array(R);for(let le=0;le<R;le++)U[le]=j.charCodeAt(le);return U.buffer}($));if(65496!==j.getUint16(0,!1))return-2;const R=j.byteLength;let U=2;for(;U<R;){if(j.getUint16(U+2,!1)<=8)return-1;const le=j.getUint16(U,!1);if(U+=2,65505==le){if(1165519206!==j.getUint32(U+=2,!1))return-1;const T=18761==j.getUint16(U+=6,!1);U+=j.getUint32(U+4,T);const H=j.getUint16(U,T);U+=2;for(let N=0;N<H;N++)if(274==j.getUint16(U+12*N,T))return j.getUint16(U+12*N+8,T)}else{if(65280!=(65280&le))break;U+=j.getUint16(U,!1)}}return-1}($)),$){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}(T?-1:R.originalBase64);return R.originalImage&&R.originalImage.complete?le.transformLoadedImage({original:{base64:R.originalBase64,image:R.originalImage,size:{width:R.originalImage.naturalWidth,height:R.originalImage.naturalHeight}},exifTransform:H},U):Promise.reject(new Error("No image loaded"))})()}transformLoadedImage(R,U){var le=this;return(0,e.Z)(function*(){const T=U.canvasRotation+R.exifTransform.rotate,H={width:R.original.image.naturalWidth,height:R.original.image.naturalHeight};if(0===T&&!R.exifTransform.flip&&!U.containWithinAspectRatio)return{original:{base64:R.original.base64,image:R.original.image,size:{...H}},transformed:{base64:R.original.base64,image:R.original.image,size:{...H}},exifTransform:R.exifTransform};const N=le.getTransformedSize(H,R.exifTransform,U),pe=document.createElement("canvas");pe.width=N.width,pe.height=N.height;const de=pe.getContext("2d");de?.setTransform(R.exifTransform.flip?-1:1,0,0,1,pe.width/2,pe.height/2),de?.rotate(Math.PI*(T/2)),de?.drawImage(R.original.image,-H.width/2,-H.height/2);const me=pe.toDataURL(),q=yield le.loadImageFromBase64(me);return{original:{base64:R.original.base64,image:R.original.image,size:{...H}},transformed:{base64:me,image:q,size:{width:q.width,height:q.height}},exifTransform:R.exifTransform}})()}loadImageFromBase64(R){return new Promise((U,le)=>{const T=new Image;T.onload=()=>U(T),T.onerror=le,T.src=R})}getTransformedSize(R,U,le){const T=le.canvasRotation+U.rotate;if(le.containWithinAspectRatio){if(T%2){const N=R.height/le.aspectRatio;return{width:Math.max(R.height,R.width*le.aspectRatio),height:Math.max(R.width,N)}}{const N=R.width/le.aspectRatio;return{width:Math.max(R.width,R.height*le.aspectRatio),height:Math.max(R.height,N)}}}return T%2?{height:R.width,width:R.height}:{width:R.width,height:R.height}}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=n.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),ae=(()=>{class ${constructor(R,U,le,T,H){this.cropService=R,this.cropperPositionService=U,this.loadImageService=le,this.sanitizer=T,this.cd=H,this.Hammer=window?.Hammer||null,this.settings=new u,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=g,this.imageVisible=!1,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new n.EventEmitter,this.startCropImage=new n.EventEmitter,this.imageLoaded=new n.EventEmitter,this.cropperReady=new n.EventEmitter,this.loadImageFailed=new n.EventEmitter,this.transformChange=new n.EventEmitter,this.reset()}ngOnChanges(R){this.onChangesUpdateSettings(R),this.onChangesInputImage(R),this.loadedImage?.original.image.complete&&(R.containWithinAspectRatio||R.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(U=>this.setLoadedImage(U)).catch(U=>this.loadImageError(U)),(R.cropper||R.maintainAspectRatio||R.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),!this.maintainAspectRatio||!this.resetCropOnAspectRatioChange&&this.aspectRatioIsCorrect()||!R.maintainAspectRatio&&!R.aspectRatio?R.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop()):this.resetCropperPosition(),this.cd.markForCheck()),R.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop(),this.cd.markForCheck()),R.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(R){this.settings.setOptionsFromChanges(R),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1})}onChangesInputImage(R){(R.imageChangedEvent||R.imageURL||R.imageBase64||R.imageFile)&&this.reset(),R.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),R.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),R.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),R.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){const R=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${R}, ${this.transform.translateV||0}${R}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(R){this.loadImageService.loadImageFile(R,this.settings).then(U=>this.setLoadedImage(U)).catch(U=>this.loadImageError(U))}loadBase64Image(R){this.loadImageService.loadBase64Image(R,this.settings).then(U=>this.setLoadedImage(U)).catch(U=>this.loadImageError(U))}loadImageFromURL(R){this.loadImageService.loadImageFromURL(R,this.settings).then(U=>this.setLoadedImage(U)).catch(U=>this.loadImageError(U))}setLoadedImage(R){this.loadedImage=R,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(R.transformed.base64),this.cd.markForCheck()}loadImageError(R){console.error(R),this.loadImageFailed.emit()}imageLoadedInView(){null!=this.loadedImage&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit({...this.maxSize}),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){this.loadedImage&&(this.hidden?this.resizedWhileHidden=!0:(this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()))}activatePinchGesture(){if(this.Hammer){const R=new this.Hammer(this.wrapper.nativeElement);R.get("pinch").set({enable:!0}),R.on("pinchmove",this.onPinch.bind(this)),R.on("pinchend",this.pinchStop.bind(this)),R.on("pinchstart",this.startPinch.bind(this))}else(0,n.isDevMode)()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const R=this.sourceImage.nativeElement;(this.maxSize.width!==R.offsetWidth||this.maxSize.height!==R.offsetHeight)&&(this.cropper.x1=this.cropper.x1*R.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*R.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*R.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*R.offsetHeight/this.maxSize.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(R){this.changeKeyboardStepSize(R),this.keyboardMoveCropper(R)}changeKeyboardStepSize(R){const U=+R.key;U>=1&&U<=9&&(this.settings.stepSize=U)}keyboardMoveCropper(R){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(R.key))return;const le=R.shiftKey?g.Resize:g.Move,T=R.altKey?function y($){switch($){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";default:return"right"}}(R.key):function v($){switch($){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";default:return"left"}}(R.key),H=function b($,j){switch($){case"ArrowUp":return{clientX:0,clientY:-1*j};case"ArrowRight":return{clientX:j,clientY:0};case"ArrowDown":return{clientX:0,clientY:j};default:return{clientX:-1*j,clientY:0}}}(R.key,this.settings.stepSize);R.preventDefault(),R.stopPropagation(),this.startMove({clientX:0,clientY:0},le,T),this.moveImg(H),this.moveStop()}startMove(R,U,le=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===g.Pinch||U===g.Drag&&!this.allowMoveImage||(R.preventDefault&&R.preventDefault(),this.moveStart={active:!0,type:U,position:le,transform:{...this.transform},clientX:this.cropperPositionService.getClientX(R),clientY:this.cropperPositionService.getClientY(R),...this.cropper})}startPinch(R){this.safeImgDataUrl&&(R.preventDefault&&R.preventDefault(),this.moveStart={active:!0,type:g.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2,...this.cropper})}moveImg(R){if(this.moveStart.active){if(R.stopPropagation&&R.stopPropagation(),R.preventDefault&&R.preventDefault(),this.moveStart.type===g.Move)this.cropperPositionService.move(R,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===g.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(R,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===g.Drag){const U=this.cropperPositionService.getClientX(R)-this.moveStart.clientX,le=this.cropperPositionService.getClientY(R)-this.moveStart.clientY;this.transform={...this.transform,translateH:(this.moveStart.transform?.translateH||0)+U,translateV:(this.moveStart.transform?.translateV||0)+le},this.setCssTransform()}this.cd.detectChanges()}}onPinch(R){this.moveStart.active&&(R.stopPropagation&&R.stopPropagation(),R.preventDefault&&R.preventDefault(),this.moveStart.type===g.Pinch&&(this.cropperPositionService.resize(R,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const R=this.sourceImage.nativeElement;this.maxSize.width=R.offsetWidth,this.maxSize.height=R.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.settings.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){const R=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/R:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/R:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidth<this.settings.cropperScaledMaxHeight*this.aspectRatio&&(this.settings.cropperScaledMaxHeight=this.settings.cropperScaledMaxWidth/this.aspectRatio))}else this.settings.cropperScaledMaxWidth=this.maxSize.width,this.settings.cropperScaledMaxHeight=this.maxSize.height}checkCropperPosition(R=!1){this.cropper.x1<0&&(this.cropper.x2-=R?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=R?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=R?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=R?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===g.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(){if(null!=this.loadedImage?.transformed?.image){this.startCropImage.emit();const R=this.cropService.crop(this.sourceImage,this.loadedImage,this.cropper,this.settings);return null!=R&&this.imageCropped.emit(R),R}return null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}}return $.\u0275fac=function(R){return new(R||$)(n.\u0275\u0275directiveInject(D),n.\u0275\u0275directiveInject(A),n.\u0275\u0275directiveInject(Q),n.\u0275\u0275directiveInject(a.DomSanitizer),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},$.\u0275cmp=n.\u0275\u0275defineComponent({type:$,selectors:[["image-cropper"]],viewQuery:function(R,U){if(1&R&&(n.\u0275\u0275viewQuery(l,7),n.\u0275\u0275viewQuery(h,5)),2&R){let le;n.\u0275\u0275queryRefresh(le=n.\u0275\u0275loadQuery())&&(U.wrapper=le.first),n.\u0275\u0275queryRefresh(le=n.\u0275\u0275loadQuery())&&(U.sourceImage=le.first)}},hostVars:6,hostBindings:function(R,U){1&R&&n.\u0275\u0275listener("resize",function(){return U.onResize()},!1,n.\u0275\u0275resolveWindow)("mousemove",function(T){return U.moveImg(T)},!1,n.\u0275\u0275resolveDocument)("touchmove",function(T){return U.moveImg(T)},!1,n.\u0275\u0275resolveDocument)("mouseup",function(){return U.moveStop()},!1,n.\u0275\u0275resolveDocument)("touchend",function(){return U.moveStop()},!1,n.\u0275\u0275resolveDocument),2&R&&(n.\u0275\u0275styleProp("text-align",U.alignImage),n.\u0275\u0275classProp("disabled",U.disabled)("ngx-ix-hidden",U.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},features:[n.\u0275\u0275NgOnChangesFeature],decls:5,vars:10,consts:[["wrapper",""],["class","ngx-ic-source-image",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"ngx-ic-source-image",3,"src","load","mousedown","touchstart","error"],["sourceImage",""],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],[1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],[1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],[1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],[1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],[1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(R,U){1&R&&(n.\u0275\u0275elementStart(0,"div",null,0),n.\u0275\u0275template(2,s,2,8,"img",1),n.\u0275\u0275element(3,"div",2),n.\u0275\u0275template(4,p,3,15,"div",3),n.\u0275\u0275elementEnd()),2&R&&(n.\u0275\u0275styleProp("background",U.imageVisible&&U.backgroundColor),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",U.safeImgDataUrl),n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",U.maxSize.width,"px")("height",U.maxSize.height,"px")("margin-left","center"===U.alignImage?U.marginLeft:null),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",U.imageVisible))},dependencies:[t.NgIf],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%]   .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]:focus   .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%]   .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%]   .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]   .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   .ngx-ic-cropper[_ngcontent-%COMP%]   .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}),$})(),K=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275mod=n.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=n.\u0275\u0275defineInjector({imports:[[t.CommonModule]]}),$})()},24826:(oe,x,i)=>{"use strict";i.d(x,{Fy:()=>xn,bB:()=>pt,Mp:()=>Ve});var e=i(94650),n=i(36895),a=i(77579),t=i(56451),l=i(39646),h=i(88996),s=i(18505),d=i(39300),p=i(63900),u=i(50590),g=i(95698),v=i(35684),y=i(54004),b=i(57359),S=i(54482);const D=(ot,Et)=>(ot.push(Et),ot);var P=i(94086),B=i(9116),V=i(11481),X=i(37340);function re(ot,Et){}const Q=function(ot,Et){return{$implicit:ot,index:Et}};function ae(ot,Et){if(1&ot&&e.\u0275\u0275template(0,re,0,0,"ng-template",4),2&ot){const z=e.\u0275\u0275nextContext(),Z=z.$implicit,ge=z.index,Qe=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngTemplateOutlet",Z.tplRef)("ngTemplateOutletContext",e.\u0275\u0275pureFunction2(2,Q,Qe.preparePublicSlide(Z),ge))}}const K=function(ot,Et,z,Z){return{width:ot,"margin-left":Et,"margin-right":z,left:Z}};function k(ot,Et){if(1&ot){const z=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",2),e.\u0275\u0275listener("animationend",function(){const Qe=e.\u0275\u0275restoreView(z).$implicit,qe=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(qe.clear(Qe.id))}),e.\u0275\u0275template(2,ae,1,5,null,3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&ot){const z=Et.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",z.classes)("ngStyle",e.\u0275\u0275pureFunction4(4,K,z.width+"px",z.marginL?z.marginL+"px":"",z.marginR?z.marginR+"px":"",z.left))("@autoHeight",z.heightState),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",z.load)}}const $=function(ot,Et,z,Z,ge){return{width:ot,transform:Et,transition:z,"padding-left":Z,"padding-right":ge}},j=function(ot,Et){return{isMouseDragable:ot,isTouchDragable:Et}};function R(ot,Et){if(1&ot&&(e.\u0275\u0275elementStart(0,"div",4),e.\u0275\u0275element(1,"owl-stage",5),e.\u0275\u0275elementEnd()),2&ot){const z=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("owlDraggable",e.\u0275\u0275pureFunction2(3,j,null==z.owlDOMData?null:z.owlDOMData.isMouseDragable,null==z.owlDOMData?null:z.owlDOMData.isTouchDragable))("stageData",z.stageData)("slidesData",z.slidesData)}}const U=function(ot,Et){return{active:ot,"owl-dot-text":Et}};function le(ot,Et){if(1&ot){const z=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",11),e.\u0275\u0275listener("click",function(){const Qe=e.\u0275\u0275restoreView(z).$implicit,qe=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(qe.moveByDot(Qe.id))}),e.\u0275\u0275element(1,"span",12),e.\u0275\u0275elementEnd()}if(2&ot){const z=Et.$implicit;e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction2(2,U,z.active,z.showInnerContent)),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",z.innerContent,e.\u0275\u0275sanitizeHtml)}}const T=function(ot){return{disabled:ot}};function H(ot,Et){if(1&ot){const z=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",6)(2,"div",7),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(z);const ge=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ge.prev())}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",8),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(z);const ge=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(ge.next())}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(4,"div",9),e.\u0275\u0275template(5,le,2,5,"div",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&ot){const z=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(7,T,null==z.navData?null:z.navData.disabled)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(9,T,null==z.navData||null==z.navData.prev?null:z.navData.prev.disabled))("innerHTML",null==z.navData||null==z.navData.prev?null:z.navData.prev.htmlText,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,T,null==z.navData||null==z.navData.next?null:z.navData.next.disabled))("innerHTML",null==z.navData||null==z.navData.next?null:z.navData.next.htmlText,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(13,T,null==z.dotsData?null:z.dotsData.disabled)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",null==z.dotsData?null:z.dotsData.dots)}}const N=function(ot,Et,z,Z,ge){return{"owl-rtl":ot,"owl-loaded":Et,"owl-responsive":z,"owl-drag":Z,"owl-grab":ge}};class pe{constructor(){this.items=3,this.skip_validateItems=!1,this.loop=!1,this.center=!1,this.rewind=!1,this.mouseDrag=!0,this.touchDrag=!0,this.pullDrag=!0,this.freeDrag=!1,this.margin=0,this.stagePadding=0,this.merge=!1,this.mergeFit=!0,this.autoWidth=!1,this.startPosition=0,this.rtl=!1,this.smartSpeed=250,this.fluidSpeed=!1,this.dragEndSpeed=!1,this.responsive={},this.responsiveRefreshRate=200,this.nav=!1,this.navText=["prev","next"],this.navSpeed=!1,this.slideBy=1,this.dots=!0,this.dotsEach=!1,this.dotsData=!1,this.dotsSpeed=!1,this.autoplay=!1,this.autoplayTimeout=5e3,this.autoplayHoverPause=!1,this.autoplaySpeed=!1,this.autoplayMouseleaveTimeout=1,this.lazyLoad=!1,this.lazyLoadEager=0,this.slideTransition="",this.animateOut=!1,this.animateIn=!1,this.autoHeight=!1,this.URLhashListener=!1}}class de{constructor(){this.items="number",this.skip_validateItems="boolean",this.loop="boolean",this.center="boolean",this.rewind="boolean",this.mouseDrag="boolean",this.touchDrag="boolean",this.pullDrag="boolean",this.freeDrag="boolean",this.margin="number",this.stagePadding="number",this.merge="boolean",this.mergeFit="boolean",this.autoWidth="boolean",this.startPosition="number|string",this.rtl="boolean",this.smartSpeed="number",this.fluidSpeed="boolean",this.dragEndSpeed="number|boolean",this.responsive={},this.responsiveRefreshRate="number",this.nav="boolean",this.navText="string[]",this.navSpeed="number|boolean",this.slideBy="number|string",this.dots="boolean",this.dotsEach="number|boolean",this.dotsData="boolean",this.dotsSpeed="number|boolean",this.autoplay="boolean",this.autoplayTimeout="number",this.autoplayHoverPause="boolean",this.autoplaySpeed="number|boolean",this.autoplayMouseleaveTimeout="number",this.lazyLoad="boolean",this.lazyLoadEager="number",this.slideTransition="string",this.animateOut="string|boolean",this.animateIn="string|boolean",this.autoHeight="boolean",this.URLhashListener="boolean"}}let me=(()=>{class ot{constructor(z){this.errorHandler=z}log(z,...Z){(0,e.isDevMode)()&&console.log(z,...Z)}error(z){this.errorHandler.handleError(z)}warn(z,...Z){console.warn(z,...Z)}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(e.ErrorHandler))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})();var se=(()=>{return(ot=se||(se={})).Event="event",ot.State="state",se;var ot})(),ve=(()=>{return(ot=ve||(ve={})).Default="default",ot.Inner="inner",ot.Outer="outer",ve;var ot})();let wt=(()=>{class ot{constructor(z){this.logger=z,this._viewSettingsShipper$=new a.x,this._initializedCarousel$=new a.x,this._changeSettingsCarousel$=new a.x,this._changedSettingsCarousel$=new a.x,this._translateCarousel$=new a.x,this._translatedCarousel$=new a.x,this._resizeCarousel$=new a.x,this._resizedCarousel$=new a.x,this._refreshCarousel$=new a.x,this._refreshedCarousel$=new a.x,this._dragCarousel$=new a.x,this._draggedCarousel$=new a.x,this.settings={items:0},this.owlDOMData={rtl:!1,isResponsive:!1,isRefreshed:!1,isLoaded:!1,isLoading:!1,isMouseDragable:!1,isGrab:!1,isTouchDragable:!1},this.stageData={transform:"translate3d(0px,0px,0px)",transition:"0s",width:0,paddingL:0,paddingR:0},this._items=[],this._widths=[],this._supress={},this._plugins={},this._current=null,this._clones=[],this._mergers=[],this._speed=null,this._coordinates=[],this._breakpoint=null,this.clonedIdPrefix="cloned-",this._options={},this._invalidated={},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},this._pipe=[{filter:["width","items","settings"],run:Z=>{Z.current=this._items&&this._items[this.relative(this._current)]?.id}},{filter:["width","items","settings"],run:Z=>{const ge=this.settings.margin||"",qe=this.settings.rtl,ct={"margin-left":qe?ge:"","margin-right":qe?"":ge};!this.settings.autoWidth||this.slidesData.forEach(Yt=>{Yt.marginL=ct["margin-left"],Yt.marginR=ct["margin-right"]}),Z.css=ct}},{filter:["width","items","settings"],run:Z=>{const ge=+(this.width()/this.settings.items).toFixed(3)-this.settings.margin,Qe=!this.settings.autoWidth,qe=[];let ct=null,Yt=this._items.length;for(Z.items={merge:!1,width:ge};Yt-- >0;)ct=this._mergers[Yt],ct=this.settings.mergeFit&&Math.min(ct,this.settings.items)||ct,Z.items.merge=ct>1||Z.items.merge,qe[Yt]=Qe?ge*ct:this._items[Yt].width?this._items[Yt].width:ge;this._widths=qe,this.slidesData.forEach((it,Be)=>{it.width=this._widths[Be],it.marginR=Z.css["margin-right"],it.marginL=Z.css["margin-left"]})}},{filter:["items","settings"],run:()=>{const Z=[],ge=this._items,Qe=this.settings,qe=Math.max(2*Qe.items,4),ct=2*Math.ceil(ge.length/2);let Yt=[],it=[],Be=Qe.loop&&ge.length?Qe.rewind?qe:Math.max(qe,ct):0;for(Be/=2;Be-- >0;)Z.push(this.normalize(Z.length/2,!0)),Yt.push({...this.slidesData[Z[Z.length-1]]}),Z.push(this.normalize(ge.length-1-(Z.length-1)/2,!0)),it.unshift({...this.slidesData[Z[Z.length-1]]});this._clones=Z,Yt=Yt.map(gt=>(gt.id=`${this.clonedIdPrefix}${gt.id}`,gt.isActive=!1,gt.isCloned=!0,gt)),it=it.map(gt=>(gt.id=`${this.clonedIdPrefix}${gt.id}`,gt.isActive=!1,gt.isCloned=!0,gt)),this.slidesData=it.concat(this.slidesData).concat(Yt)}},{filter:["width","items","settings"],run:()=>{const Z=this.settings.rtl?1:-1,ge=this._clones.length+this._items.length,Qe=[];let qe=-1,ct=0,Yt=0;for(;++qe<ge;)ct=Qe[qe-1]||0,Yt=this._widths[this.relative(qe)]+this.settings.margin,Qe.push(ct+Yt*Z);this._coordinates=Qe}},{filter:["width","items","settings"],run:()=>{const Z=this.settings.stagePadding,ge=this._coordinates,Qe={width:Math.ceil(Math.abs(ge[ge.length-1]))+2*Z,"padding-left":Z||"","padding-right":Z||""};this.stageData.width=Qe.width,this.stageData.paddingL=Qe["padding-left"],this.stageData.paddingR=Qe["padding-right"]}},{filter:["width","items","settings"],run:Z=>{let ge=Z.current?this.slidesData.findIndex(Qe=>Qe.id===Z.current):0;ge=Math.max(this.minimum(),Math.min(this.maximum(),ge)),this.reset(ge)}},{filter:["position"],run:()=>{this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:()=>{const Z=this.settings.rtl?1:-1,ge=2*this.settings.stagePadding,Qe=[];let qe,ct,Yt,it,Be,gt;if(qe=this.coordinates(this.current()),"number"==typeof qe?qe+=ge:qe=0,ct=qe+this.width()*Z,-1===Z&&this.settings.center){const ue=this._coordinates.filter(Ge=>this.settings.items%2==1?Ge>=qe:Ge>qe);qe=ue.length?ue[ue.length-1]:qe}for(Be=0,gt=this._coordinates.length;Be<gt;Be++)Yt=Math.ceil(this._coordinates[Be-1]||0),it=Math.ceil(Math.abs(this._coordinates[Be])+ge*Z),(this._op(Yt,"<=",qe)&&this._op(Yt,">",ct)||this._op(it,"<",qe)&&this._op(it,">",ct))&&Qe.push(Be);this.slidesData.forEach(ue=>(ue.isActive=!1,ue)),Qe.forEach(ue=>{this.slidesData[ue].isActive=!0}),this.settings.center&&(this.slidesData.forEach(ue=>(ue.isCentered=!1,ue)),this.slidesData[this.current()].isCentered=!0)}}]}get invalidated(){return this._invalidated}get states(){return this._states}getViewCurSettings(){return this._viewSettingsShipper$.asObservable()}getInitializedState(){return this._initializedCarousel$.asObservable()}getChangeState(){return this._changeSettingsCarousel$.asObservable()}getChangedState(){return this._changedSettingsCarousel$.asObservable()}getTranslateState(){return this._translateCarousel$.asObservable()}getTranslatedState(){return this._translatedCarousel$.asObservable()}getResizeState(){return this._resizeCarousel$.asObservable()}getResizedState(){return this._resizedCarousel$.asObservable()}getRefreshState(){return this._refreshCarousel$.asObservable()}getRefreshedState(){return this._refreshedCarousel$.asObservable()}getDragState(){return this._dragCarousel$.asObservable()}getDraggedState(){return this._draggedCarousel$.asObservable()}setOptions(z){const Z=new pe,ge=this._validateOptions(z,Z);this._options={...Z,...ge}}_validateOptions(z,Z){const ge={...z},Qe=new de,qe=(ct,Yt)=>(this.logger.log(`options.${Yt} must be type of ${ct}; ${Yt}=${z[Yt]} skipped to defaults: ${Yt}=${Z[Yt]}`),Z[Yt]);for(const ct in ge)if(ge.hasOwnProperty(ct))if("number"===Qe[ct])this._isNumeric(ge[ct])?(ge[ct]=+ge[ct],ge[ct]="items"===ct?this._validateItems(ge[ct],ge.skip_validateItems):ge[ct]):ge[ct]=qe(Qe[ct],ct);else if("boolean"===Qe[ct]&&"boolean"!=typeof ge[ct])ge[ct]=qe(Qe[ct],ct);else if("number|boolean"!==Qe[ct]||this._isNumberOrBoolean(ge[ct]))if("number|string"!==Qe[ct]||this._isNumberOrString(ge[ct]))if("string|boolean"!==Qe[ct]||this._isStringOrBoolean(ge[ct])){if("string[]"===Qe[ct])if(Array.isArray(ge[ct])){let Yt=!1;ge[ct].forEach(it=>{Yt="string"==typeof it}),Yt||(ge[ct]=qe(Qe[ct],ct))}else ge[ct]=qe(Qe[ct],ct)}else ge[ct]=qe(Qe[ct],ct);else ge[ct]=qe(Qe[ct],ct);else ge[ct]=qe(Qe[ct],ct);return ge}_validateItems(z,Z){let ge=z;return z>this._items.length?Z?this.logger.log("The option 'items' in your options is bigger than the number of slides. The navigation got disabled"):(ge=this._items.length,this.logger.log("The option 'items' in your options is bigger than the number of slides. This option is updated to the current number of slides and the navigation got disabled")):z===this._items.length&&(this.settings.dots||this.settings.nav)&&this.logger.log("Option 'items' in your options is equal to the number of slides. So the navigation got disabled"),ge}setCarouselWidth(z){this._width=z}setup(z,Z,ge){this.setCarouselWidth(z),this.setItems(Z),this._defineSlidesData(),this.setOptions(ge),this.settings={...this._options},this.setOptionsForViewport(),this._trigger("change",{property:{name:"settings",value:this.settings}}),this.invalidate("settings"),this._trigger("changed",{property:{name:"settings",value:this.settings}})}setOptionsForViewport(){const z=this._width,Z=this._options.responsive;let ge=-1;if(!Object.keys(Z).length)return;if(!z)return void(this.settings.items=1);for(const qe in Z)Z.hasOwnProperty(qe)&&+qe<=z&&+qe>ge&&(ge=Number(qe));this.settings={...this._options,...Z[ge],items:Z[ge]&&Z[ge].items?this._validateItems(Z[ge].items,this._options.skip_validateItems):this._options.items},delete this.settings.responsive,this.owlDOMData.isResponsive=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag;const Qe=[];this._items.forEach(qe=>{Qe.push(this.settings.merge?qe.dataMerge:1)}),this._mergers=Qe,this._breakpoint=ge,this.invalidate("settings")}initialize(z){this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),z.forEach(Z=>{this._mergers.push(this.settings.merge?Z.dataMerge:1)}),this._clones=[],this.reset(this._isNumeric(this.settings.startPosition)?+this.settings.startPosition:0),this.invalidate("items"),this.refresh(),this.owlDOMData.isLoaded=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag,this.sendChanges(),this.leave("initializing"),this._trigger("initialized")}sendChanges(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}_optionsLogic(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}update(){let z=0;const Z=this._pipe.length,ge=qe=>this._invalidated[qe],Qe={};for(;z<Z;){const qe=this._pipe[z].filter.filter(ge);(this._invalidated.all||qe.length>0)&&this._pipe[z].run(Qe),z++}this.slidesData.forEach(qe=>qe.classes=this.setCurSlideClasses(qe)),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}width(z){switch(z=z||ve.Default){case ve.Inner:case ve.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}}refresh(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}onResize(z){if(!this._items.length)return!1;this.setCarouselWidth(z),this.enter("resizing"),this._trigger("resize"),this.invalidate("width"),this.refresh(),this.leave("resizing"),this._trigger("resized")}prepareDragging(z){let ge,Z=null;return ge=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","),Z={x:+ge[0],y:+ge[1]},this.is("animating")&&this.invalidate("position"),"mousedown"===z.type&&(this.owlDOMData.isGrab=!0),this.speed(0),Z}enterDragging(){this.enter("dragging"),this._trigger("drag")}defineNewCoordsDrag(z,Z){let ge=null,Qe=null,qe=null;const ct=this.difference(Z.pointer,this.pointer(z)),Yt=this.difference(Z.stage.start,ct);return!!this.is("dragging")&&(this.settings.loop?(ge=this.coordinates(this.minimum()),Qe=+this.coordinates(this.maximum()+1)-ge,Yt.x=((Yt.x-ge)%Qe+Qe)%Qe+ge):(ge=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),Qe=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),qe=this.settings.pullDrag?-1*ct.x/5:0,Yt.x=Math.max(Math.min(Yt.x,ge+qe),Qe+qe)),Yt)}finishDragging(z,Z,ge){const qe=this.difference(Z.pointer,this.pointer(z)),ct=Z.stage.current,Yt=["right","left"][+(this.settings.rtl?qe.x<+this.settings.rtl:qe.x>+this.settings.rtl)];let it,Be,gt;(0!==qe.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),it=this.closest(ct.x,0!==qe.x?Yt:Z.direction),Be=this.current(),gt=this.current(-1===it?void 0:it),Be!==gt&&(this.invalidate("position"),this.update()),Z.direction=Yt,(Math.abs(qe.x)>3||(new Date).getTime()-Z.time>300)&&ge()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}closest(z,Z){const Qe=this.width();let qe=this.coordinates(),ct=-1;this.settings.center&&(qe=qe.map(Yt=>(0===Yt&&(Yt+=1e-6),Yt)));for(let Yt=0;Yt<qe.length&&("left"===Z&&z>qe[Yt]-30&&z<qe[Yt]+30?ct=Yt:"right"===Z&&z>qe[Yt]-Qe-30&&z<qe[Yt]-Qe+30?ct=Yt+1:this._op(z,"<",qe[Yt])&&this._op(z,">",qe[Yt+1]||qe[Yt]-Qe)?ct="left"===Z?Yt+1:Yt:null===Z&&z>qe[Yt]-30&&z<qe[Yt]+30&&(ct=Yt),-1===ct);Yt++);return this.settings.loop||(this._op(z,">",qe[this.minimum()])?ct=z=this.minimum():this._op(z,"<",qe[this.maximum()])&&(ct=z=this.maximum())),ct}animate(z){const Z=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),Z&&(this.enter("animating"),this._trigger("translate")),this.stageData.transform="translate3d("+z+"px,0px,0px)",this.stageData.transition=this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}is(z){return this._states.current[z]&&this._states.current[z]>0}current(z){return void 0===z?this._current:0!==this._items.length?(z=this.normalize(z),this._current!==z&&(this._trigger("change",{property:{name:"position",value:z}}),this._current=z,this.invalidate("position"),this._trigger("changed",{property:{name:"position",value:this._current}})),this._current):void 0}invalidate(z){return"string"==typeof z&&(this._invalidated[z]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}reset(z){void 0!==(z=this.normalize(z))&&(this._speed=0,this._current=z,this._suppress(["translate","translated"]),this.animate(this.coordinates(z)),this._release(["translate","translated"]))}normalize(z,Z){const ge=this._items.length,Qe=Z?0:this._clones.length;return!this._isNumeric(z)||ge<1?z=void 0:(z<0||z>=ge+Qe)&&(z=((z-Qe/2)%ge+ge)%ge+Qe/2),z}relative(z){return this.normalize(z-=this._clones.length/2,!0)}maximum(z=!1){const Z=this.settings;let Qe,qe,ct,ge=this._coordinates.length;if(Z.loop)ge=this._clones.length/2+this._items.length-1;else if(Z.autoWidth||Z.merge){for(Qe=this._items.length,qe=this.slidesData[--Qe].width,ct=this._width;Qe-- >0&&(qe+=+this.slidesData[Qe].width+this.settings.margin,!(qe>ct)););ge=Qe+1}else ge=Z.center?this._items.length-1:this._items.length-Z.items;return z&&(ge-=this._clones.length/2),Math.max(ge,0)}minimum(z=!1){return z?0:this._clones.length/2}items(z){return void 0===z?this._items.slice():(z=this.normalize(z,!0),[this._items[z]])}mergers(z){return void 0===z?this._mergers.slice():(z=this.normalize(z,!0),this._mergers[z])}clones(z){const Z=this._clones.length/2,ge=Z+this._items.length,Qe=qe=>qe%2==0?ge+qe/2:Z-(qe+1)/2;return void 0===z?this._clones.map((qe,ct)=>Qe(ct)):this._clones.map((qe,ct)=>qe===z?Qe(ct):null).filter(qe=>qe)}speed(z){return void 0!==z&&(this._speed=z),this._speed}coordinates(z){let Qe,qe,Z=1,ge=z-1;return void 0===z?(qe=this._coordinates.map((ct,Yt)=>this.coordinates(Yt)),qe):(this.settings.center?(this.settings.rtl&&(Z=-1,ge=z+1),Qe=this._coordinates[z],Qe+=(this.width()-Qe+(this._coordinates[ge]||0))/2*Z):Qe=this._coordinates[ge]||0,Qe=Math.ceil(Qe),Qe)}_duration(z,Z,ge){return 0===ge?0:Math.min(Math.max(Math.abs(Z-z),1),6)*Math.abs(+ge||this.settings.smartSpeed)}to(z,Z){let ge=this.current(),Qe=null,qe=z-this.relative(ge),ct=this.maximum(),Yt=0;const it=+(qe>0)-+(qe<0),Be=this._items.length,gt=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(qe)>Be/2&&(qe+=-1*it*Be),Qe=(((z=ge+qe)-gt)%Be+Be)%Be+gt,Qe!==z&&Qe-qe<=ct&&Qe-qe>0&&(ge=Qe-qe,z=Qe,Yt=30,this.reset(ge),this.sendChanges())):this.settings.rewind?(ct+=1,z=(z%ct+ct)%ct):z=Math.max(gt,Math.min(ct,z)),setTimeout(()=>{this.speed(this._duration(ge,z,Z)),this.current(z),this.update()},Yt)}next(z){z=z||!1,this.to(this.relative(this.current())+1,z)}prev(z){z=z||!1,this.to(this.relative(this.current())-1,z)}onTransitionEnd(z){if(void 0!==z)return!1;this.leave("animating"),this._trigger("translated")}_viewport(){let z;return this._width?z=this._width:this.logger.log("Can not detect viewport width."),z}setItems(z){this._items=z}_defineSlidesData(){let z;this.slidesData&&this.slidesData.length&&(z=new Map,this.slidesData.forEach(Z=>{Z.load&&z.set(Z.id,Z.load)})),this.slidesData=this._items.map(Z=>({id:`${Z.id}`,isActive:!1,tplRef:Z.tplRef,dataMerge:Z.dataMerge,width:0,isCloned:!1,load:!!z&&z.get(Z.id),hashFragment:Z.dataHash}))}setCurSlideClasses(z){const Z={active:z.isActive,center:z.isCentered,cloned:z.isCloned,animated:z.isAnimated,"owl-animated-in":z.isDefAnimatedIn,"owl-animated-out":z.isDefAnimatedOut};return this.settings.animateIn&&(Z[this.settings.animateIn]=z.isCustomAnimatedIn),this.settings.animateOut&&(Z[this.settings.animateOut]=z.isCustomAnimatedOut),Z}_op(z,Z,ge){const Qe=this.settings.rtl;switch(Z){case"<":return Qe?z>ge:z<ge;case">":return Qe?z<ge:z>ge;case">=":return Qe?z<=ge:z>=ge;case"<=":return Qe?z>=ge:z<=ge}}_trigger(z,Z,ge,Qe,qe){switch(z){case"initialized":this._initializedCarousel$.next(z);break;case"change":this._changeSettingsCarousel$.next(Z);break;case"changed":this._changedSettingsCarousel$.next(Z);break;case"drag":this._dragCarousel$.next(z);break;case"dragged":this._draggedCarousel$.next(z);break;case"resize":this._resizeCarousel$.next(z);break;case"resized":this._resizedCarousel$.next(z);break;case"refresh":this._refreshCarousel$.next(z);break;case"refreshed":this._refreshedCarousel$.next(z);break;case"translate":this._translateCarousel$.next(z);break;case"translated":this._translatedCarousel$.next(z)}}enter(z){[z].concat(this._states.tags[z]||[]).forEach(Z=>{void 0===this._states.current[Z]&&(this._states.current[Z]=0),this._states.current[Z]++})}leave(z){[z].concat(this._states.tags[z]||[]).forEach(Z=>{(0===this._states.current[Z]||this._states.current[Z])&&this._states.current[Z]--})}register(z){z.type===se.State&&(this._states.tags[z.name]=this._states.tags[z.name]?this._states.tags[z.name].concat(z.tags):z.tags,this._states.tags[z.name]=this._states.tags[z.name].filter((Z,ge)=>this._states.tags[z.name].indexOf(Z)===ge))}_suppress(z){z.forEach(Z=>{this._supress[Z]=!0})}_release(z){z.forEach(Z=>{delete this._supress[Z]})}pointer(z){const Z={x:null,y:null};return(z=(z=z.originalEvent||z||window.event).touches&&z.touches.length?z.touches[0]:z.changedTouches&&z.changedTouches.length?z.changedTouches[0]:z).pageX?(Z.x=z.pageX,Z.y=z.pageY):(Z.x=z.clientX,Z.y=z.clientY),Z}_isNumeric(z){return!isNaN(parseFloat(z))}_isNumberOrBoolean(z){return this._isNumeric(z)||"boolean"==typeof z}_isNumberOrString(z){return this._isNumeric(z)||"string"==typeof z}_isStringOrBoolean(z){return"string"==typeof z||"boolean"==typeof z}difference(z,Z){return null===z||null===Z?{x:0,y:0}:{x:z.x-Z.x,y:z.y-Z.y}}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(me))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})(),Wt=(()=>{class ot{constructor(z){this.carouselService=z,this._initialized=!1,this._pages=[],this._navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}},this._dotsData={disabled:!1,dots:[]},this.spyDataStreams()}ngOnDestroy(){this.navSubscription.unsubscribe()}spyDataStreams(){const z=this.carouselService.getInitializedState().pipe((0,s.b)(qe=>{this.initialize(),this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),Z=this.carouselService.getChangedState().pipe((0,d.h)(qe=>"position"===qe.property.name),(0,s.b)(qe=>{this.update()})),ge=this.carouselService.getRefreshedState().pipe((0,s.b)(()=>{this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),Qe=(0,t.T)(z,Z,ge);this.navSubscription=Qe.subscribe(()=>{})}initialize(){this._navData.disabled=!0,this._navData.prev.htmlText=this.carouselService.settings.navText[0],this._navData.next.htmlText=this.carouselService.settings.navText[1],this._dotsData.disabled=!0,this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}_updateNavPages(){let z,Z,ge;const Qe=this.carouselService.clones().length/2,qe=Qe+this.carouselService.items().length,ct=this.carouselService.maximum(!0),Yt=[],it=this.carouselService.settings;let Be=it.center||it.autoWidth||it.dotsData?1:Math.floor(Number(it.dotsEach))||Math.floor(it.items);if(Be=+Be,"page"!==it.slideBy&&(it.slideBy=Math.min(+it.slideBy,it.items)),it.dots||"page"===it.slideBy)for(z=Qe,Z=0,ge=0;z<qe;z++){if(Z>=Be||0===Z){if(Yt.push({start:Math.min(ct,z-Qe),end:z-Qe+Be-1}),Math.min(ct,z-Qe)===ct)break;Z=0,++ge}Z+=this.carouselService.mergers(this.carouselService.relative(z))}this._pages=Yt}draw(){let z;const Z=this.carouselService.settings,ge=this.carouselService.items(),Qe=ge.length<=Z.items;if(this._navData.disabled=!Z.nav||Qe,this._dotsData.disabled=!Z.dots||Qe,Z.dots)if(z=this._pages.length-this._dotsData.dots.length,Z.dotsData&&0!==z)this._dotsData.dots=[],ge.forEach(qe=>{this._dotsData.dots.push({active:!1,id:`dot-${qe.id}`,innerContent:qe.dotContent,showInnerContent:!0})});else if(z>0){const qe=this._dotsData.dots.length>0?this._dotsData.dots.length:0;for(let ct=0;ct<z;ct++)this._dotsData.dots.push({active:!1,id:`dot-${ct+qe}`,innerContent:"",showInnerContent:!1})}else z<0&&this._dotsData.dots.splice(z,Math.abs(z));this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}update(){this._updateNavButtons(),this._updateDots()}_updateNavButtons(){const z=this.carouselService.settings,Z=z.loop||z.rewind,ge=this.carouselService.relative(this.carouselService.current());z.nav&&(this._navData.prev.disabled=!Z&&ge<=this.carouselService.minimum(!0),this._navData.next.disabled=!Z&&ge>=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}_updateDots(){let z;this.carouselService.settings.dots&&(this._dotsData.dots.forEach(Z=>{!0===Z.active&&(Z.active=!1)}),z=this._current(),this._dotsData.dots.length&&(this._dotsData.dots[z].active=!0),this.carouselService.dotsData=this._dotsData)}_current(){const z=this.carouselService.relative(this.carouselService.current());let Z;const ge=this._pages.filter((Qe,qe)=>Qe.start<=z&&Qe.end>=z).pop();return Z=this._pages.findIndex(Qe=>Qe.start===ge.start&&Qe.end===ge.end),Z}_getPosition(z){let Z,ge;const Qe=this.carouselService.settings;return"page"===Qe.slideBy?(Z=this._current(),ge=this._pages.length,z?++Z:--Z,Z=this._pages[(Z%ge+ge)%ge].start):(Z=this.carouselService.relative(this.carouselService.current()),ge=this.carouselService.items().length,z?Z+=+Qe.slideBy:Z-=+Qe.slideBy),Z}next(z){this.carouselService.to(this._getPosition(!0),z)}prev(z){this.carouselService.to(this._getPosition(!1),z)}to(z,Z,ge){let Qe;!ge&&this._pages.length?(Qe=this._pages.length,this.carouselService.to(this._pages[(z%Qe+Qe)%Qe].start,Z)):this.carouselService.to(z,Z)}moveByDot(z){const Z=this._dotsData.dots.findIndex(ge=>z===ge.id);this.to(Z,this.carouselService.settings.dotsSpeed)}toSlideById(z){const Z=this.carouselService.slidesData.findIndex(ge=>ge.id===z&&!1===ge.isCloned);-1===Z||Z===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(Z),!1)}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(wt))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})();const Ut=new e.InjectionToken("WindowToken");class nt{get nativeWindow(){throw new Error("Not implemented.")}}const Ce=[{provide:nt,useClass:(()=>{class ot extends nt{constructor(){super()}get nativeWindow(){return window}}return ot.\u0275fac=function(z){return new(z||ot)},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})()},{provide:Ut,useFactory:function Fe(ot,Et){return(0,n.isPlatformBrowser)(Et)?ot.nativeWindow:{setTimeout:(Z,ge)=>{},clearTimeout:Z=>{}}},deps:[nt,e.PLATFORM_ID]}],Ie=new e.InjectionToken("DocumentToken");class dt{get nativeDocument(){throw new Error("Not implemented.")}}const xt=[{provide:dt,useClass:(()=>{class ot extends dt{constructor(){super()}get nativeDocument(){return document}}return ot.\u0275fac=function(z){return new(z||ot)},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})()},{provide:Ie,useFactory:function Xt(ot,Et){return(0,n.isPlatformBrowser)(Et)?ot.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[dt,e.PLATFORM_ID]}];let zt=(()=>{class ot{constructor(z,Z,ge,Qe){this.carouselService=z,this.ngZone=Qe,this._timeout=null,this._paused=!1,this._isAutoplayStopped=!1,this.winRef=Z,this.docRef=ge,this.spyDataStreams()}get isAutoplayStopped(){return this._isAutoplayStopped}set isAutoplayStopped(z){this._isAutoplayStopped=z}ngOnDestroy(){this.autoplaySubscription.unsubscribe()}spyDataStreams(){const z=this.carouselService.getInitializedState().pipe((0,s.b)(()=>{this.carouselService.settings.autoplay&&this.play()})),Z=this.carouselService.getChangedState().pipe((0,s.b)(qe=>{this._handleChangeObservable(qe)})),ge=this.carouselService.getResizedState().pipe((0,s.b)(()=>{this.carouselService.settings.autoplay&&!this._isAutoplayStopped?this.play():this.stop()})),Qe=(0,t.T)(z,Z,ge);this.autoplaySubscription=Qe.subscribe(()=>{})}play(z,Z){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),!this.carouselService.is("rotating")&&(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}_getNextTimeout(z,Z){return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!z,this.ngZone.runOutsideAngular(()=>this.winRef.setTimeout(()=>{this.ngZone.run(()=>{this._paused||this.carouselService.is("busy")||this.carouselService.is("interacting")||this.docRef.hidden||this.carouselService.next(Z||this.carouselService.settings.autoplaySpeed)})},z||this.carouselService.settings.autoplayTimeout))}_setAutoPlayInterval(z){this._timeout=this._getNextTimeout(z)}stop(){this.carouselService.is("rotating")&&(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}pause(){this.carouselService.is("rotating")&&(this._paused=!0)}_handleChangeObservable(z){"settings"===z.property.name?this.carouselService.settings.autoplay?this.play():this.stop():"position"===z.property.name&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}_playAfterTranslated(){(0,l.of)("translated").pipe((0,p.w)(z=>this.carouselService.getTranslatedState()),(0,u.P)(),(0,d.h)(()=>this._isArtificialAutoplayTimeout),(0,s.b)(()=>this._setAutoPlayInterval())).subscribe(()=>{})}startPausing(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}startPlayingMouseLeave(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}startPlayingTouchEnd(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(wt),e.\u0275\u0275inject(Ut),e.\u0275\u0275inject(Ie),e.\u0275\u0275inject(e.NgZone))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})(),bt=(()=>{class ot{constructor(z){this.carouselService=z,this.spyDataStreams()}ngOnDestroy(){this.lazyLoadSubscription.unsubscribe()}spyDataStreams(){const z=this.carouselService.getInitializedState().pipe((0,s.b)(()=>{const qe=this.carouselService.settings&&!this.carouselService.settings.lazyLoad;this.carouselService.slidesData.forEach(ct=>ct.load=!!qe)})),Z=this.carouselService.getChangeState(),ge=this.carouselService.getResizedState(),Qe=(0,t.T)(z,Z,ge).pipe((0,s.b)(qe=>this._defineLazyLoadSlides(qe)));this.lazyLoadSubscription=Qe.subscribe(()=>{})}_defineLazyLoadSlides(z){if(this.carouselService.settings&&this.carouselService.settings.lazyLoad&&(z.property&&"position"===z.property.name||"initialized"===z||"resized"===z)){const Z=this.carouselService.settings,ge=this.carouselService.clones().length;let Qe=Z.center&&Math.ceil(Z.items/2)||Z.items,qe=Z.center&&-1*Qe||0,ct=(z.property&&void 0!==z.property.value?z.property.value:this.carouselService.current())+qe;for(Z.lazyLoadEager>0&&(Qe+=Z.lazyLoadEager,Z.loop&&(ct-=Z.lazyLoadEager,Qe++));qe++<Qe;)this._load(ge/2+this.carouselService.relative(ct)),ge&&this.carouselService.clones(this.carouselService.relative(ct)).forEach(Yt=>this._load(Yt)),ct++}}_load(z){this.carouselService.slidesData[z].load||(this.carouselService.slidesData[z].load=!0)}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(wt))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})(),At=(()=>{class ot{constructor(z){this.carouselService=z,this.swapping=!0,this.previous=void 0,this.next=void 0,this.spyDataStreams()}ngOnDestroy(){this.animateSubscription.unsubscribe()}spyDataStreams(){const z=this.carouselService.getChangeState().pipe((0,s.b)(it=>{"position"===it.property.name&&(this.previous=this.carouselService.current(),this.next=it.property.value)})),Z=this.carouselService.getDragState(),ge=this.carouselService.getDraggedState(),Qe=this.carouselService.getTranslatedState(),qe=(0,t.T)(Z,ge,Qe).pipe((0,s.b)(it=>this.swapping="translated"===it)),ct=this.carouselService.getTranslateState().pipe((0,s.b)(it=>{this.swapping&&(this.carouselService._options.animateOut||this.carouselService._options.animateIn)&&this._swap()})),Yt=(0,t.T)(z,ct,qe).pipe();this.animateSubscription=Yt.subscribe(()=>{})}_swap(){if(1!==this.carouselService.settings.items)return;let z;this.carouselService.speed(0);const Z=this.carouselService.slidesData[this.previous],ge=this.carouselService.slidesData[this.next],Qe=this.carouselService.settings.animateIn,qe=this.carouselService.settings.animateOut;this.carouselService.current()!==this.previous&&(qe&&(z=+this.carouselService.coordinates(this.previous)-+this.carouselService.coordinates(this.next),this.carouselService.slidesData.forEach(ct=>{ct.id===Z.id&&(ct.left=`${z}px`,ct.isAnimated=!0,ct.isDefAnimatedOut=!0,ct.isCustomAnimatedOut=!0)})),Qe&&this.carouselService.slidesData.forEach(ct=>{ct.id===ge.id&&(ct.isAnimated=!0,ct.isDefAnimatedIn=!0,ct.isCustomAnimatedIn=!0)}))}clear(z){this.carouselService.slidesData.forEach(Z=>{Z.id===z&&(Z.left="",Z.isAnimated=!1,Z.isDefAnimatedOut=!1,Z.isCustomAnimatedOut=!1,Z.isDefAnimatedIn=!1,Z.isCustomAnimatedIn=!1,Z.classes=this.carouselService.setCurSlideClasses(Z))}),this.carouselService.onTransitionEnd()}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(wt))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})(),$e=(()=>{class ot{constructor(z){this.carouselService=z,this.spyDataStreams()}ngOnDestroy(){this.autoHeightSubscription.unsubscribe()}spyDataStreams(){const z=this.carouselService.getInitializedState().pipe((0,s.b)(qe=>{this.carouselService.settings.autoHeight?this.update():this.carouselService.slidesData.forEach(ct=>ct.heightState="full")})),Z=this.carouselService.getChangedState().pipe((0,s.b)(qe=>{this.carouselService.settings.autoHeight&&"position"===qe.property.name&&this.update()})),ge=this.carouselService.getRefreshedState().pipe((0,s.b)(qe=>{this.carouselService.settings.autoHeight&&this.update()})),Qe=(0,t.T)(z,Z,ge);this.autoHeightSubscription=Qe.subscribe(()=>{})}update(){const z=this.carouselService.settings.items;let Z=this.carouselService.current(),ge=Z+z;this.carouselService.settings.center&&(Z=z%2==1?Z-(z-1)/2:Z-z/2,ge=z%2==1?Z+z:Z+z+1),this.carouselService.slidesData.forEach((Qe,qe)=>{Qe.heightState=qe>=Z&&qe<ge?"full":"nulled"})}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(wt))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})(),Xe=(()=>{class ot{constructor(z,Z,ge){this.carouselService=z,this.route=Z,this.router=ge,this.spyDataStreams(),this.route||(this.route={fragment:(0,l.of)("no route").pipe((0,g.q)(1))}),this.router||(this.router={navigate:(Qe,qe)=>{}})}ngOnDestroy(){this.hashSubscription.unsubscribe()}spyDataStreams(){const z=this.carouselService.getInitializedState().pipe((0,s.b)(()=>this.listenToRoute())),Z=this.carouselService.getChangedState().pipe((0,s.b)(Qe=>{if(this.carouselService.settings.URLhashListener&&"position"===Qe.property.name){const qe=this.carouselService.current(),ct=this.carouselService.slidesData[qe].hashFragment;if(!ct||ct===this.currentHashFragment)return;this.router.navigate(["./"],{fragment:ct,relativeTo:this.route})}})),ge=(0,t.T)(z,Z);this.hashSubscription=ge.subscribe(()=>{})}rewind(z){const Z=this.carouselService.slidesData.findIndex(ge=>ge.hashFragment===z&&!1===ge.isCloned);-1===Z||Z===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(Z),!1)}listenToRoute(){this.route.fragment.pipe((0,v.T)("URLHash"===this.carouselService.settings.startPosition?0:2)).subscribe(Z=>{this.currentHashFragment=Z,this.rewind(Z)})}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(wt),e.\u0275\u0275inject(B.gz,8),e.\u0275\u0275inject(B.F0,8))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})(),Pe=0,Ve=(()=>{class ot{constructor(z){this.tplRef=z,this.id="owl-slide-"+Pe++,this._dataMerge=1,this.width=0,this.dotContent="",this.dataHash=""}set dataMerge(z){this._dataMerge=this.isNumeric(z)?z:1}get dataMerge(){return this._dataMerge}isNumeric(z){return!isNaN(parseFloat(z))}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.TemplateRef))},ot.\u0275dir=e.\u0275\u0275defineDirective({type:ot,selectors:[["ng-template","carouselSlide",""]],inputs:{id:"id",dataMerge:"dataMerge",width:"width",dotContent:"dotContent",dataHash:"dataHash"}}),ot})(),mt=(()=>{class ot{constructor(z){this.eventManager=z,this.resizeSubject=new a.x,this.eventManager.addGlobalEventListener("window","resize",this.onResize.bind(this)),this.eventManager.addGlobalEventListener("window","onload",this.onLoaded.bind(this))}get onResize$(){return this.resizeSubject.asObservable()}onResize(z){this.resizeSubject.next(z.target)}onLoaded(z){this.windowWidth=z.target}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275inject(V.EventManager))},ot.\u0275prov=e.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})(),It=(()=>{class ot{constructor(z,Z,ge,Qe,qe){this.zone=z,this.el=Z,this.renderer=ge,this.carouselService=Qe,this.animateService=qe,this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this._oneDragMove$=new a.x,this.preparePublicSlide=ct=>{const Yt={...ct};return delete Yt.tplRef,Yt},this.bindOneMouseTouchMove=ct=>{this._oneMouseTouchMove(ct)},this.bindOnDragMove=ct=>{this._onDragMove(ct)},this.bindOnDragEnd=ct=>{this._onDragEnd(ct)},this._oneClickHandler=()=>{this.listenerOneClick=this.renderer.listen(this._drag.target,"click",()=>!1),this.listenerOneClick()}}onMouseDown(z){this.owlDraggable.isMouseDragable&&this._onDragStart(z)}onTouchStart(z){if(z.targetTouches.length>=2)return!1;this.owlDraggable.isTouchDragable&&this._onDragStart(z)}onTouchCancel(z){this._onDragEnd(z)}onDragStart(){if(this.owlDraggable.isMouseDragable)return!1}onSelectStart(){if(this.owlDraggable.isMouseDragable)return!1}ngOnInit(){this._oneMoveSubsription=this._oneDragMove$.pipe((0,u.P)()).subscribe(()=>{this._sendChanges()})}ngOnDestroy(){this._oneMoveSubsription.unsubscribe()}_onDragStart(z){let Z=null;3!==z.which&&(Z=this._prepareDragging(z),this._drag.time=(new Date).getTime(),this._drag.target=z.target,this._drag.stage.start=Z,this._drag.stage.current=Z,this._drag.pointer=this._pointer(z),this.listenerMouseUp=this.renderer.listen(document,"mouseup",this.bindOnDragEnd),this.listenerTouchEnd=this.renderer.listen(document,"touchend",this.bindOnDragEnd),this.zone.runOutsideAngular(()=>{this.listenerOneMouseMove=this.renderer.listen(document,"mousemove",this.bindOneMouseTouchMove),this.listenerOneTouchMove=this.renderer.listen(document,"touchmove",this.bindOneMouseTouchMove)}))}_oneMouseTouchMove(z){const Z=this._difference(this._drag.pointer,this._pointer(z));this.listenerATag&&this.listenerATag(),!(Math.abs(Z.x)<3&&Math.abs(Z.y)<3&&this._is("valid"))&&(Math.abs(Z.x)<3&&Math.abs(Z.x)<Math.abs(Z.y)&&this._is("valid")||(this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving=!0,this.blockClickAnchorInDragging(z),this.listenerMouseMove=this.renderer.listen(document,"mousemove",this.bindOnDragMove),this.listenerTouchMove=this.renderer.listen(document,"touchmove",this.bindOnDragMove),z.preventDefault(),this._enterDragging(),this._oneDragMove$.next(z)))}blockClickAnchorInDragging(z){let Z=z.target;for(;Z&&!(Z instanceof HTMLAnchorElement);)Z=Z.parentElement;Z instanceof HTMLAnchorElement&&(this.listenerATag=this.renderer.listen(Z,"click",()=>!1))}_onDragMove(z){let Z;const ge=this.carouselService.defineNewCoordsDrag(z,this._drag);!1!==ge&&(Z=ge,z.preventDefault(),this._drag.stage.current=Z,this._animate(Z.x-this._drag.stage.start.x))}_animate(z){this.renderer.setStyle(this.el.nativeElement.children[0],"transform",`translate3d(${z}px,0px,0px`),this.renderer.setStyle(this.el.nativeElement.children[0],"transition","0s")}_onDragEnd(z){this.carouselService.owlDOMData.isGrab=!1,this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving&&(this.renderer.setStyle(this.el.nativeElement.children[0],"transform",""),this.renderer.setStyle(this.el.nativeElement.children[0],"transition",this.carouselService.speed(+this.carouselService.settings.dragEndSpeed||this.carouselService.settings.smartSpeed)/1e3+"s"),this._finishDragging(z),this.listenerMouseMove(),this.listenerTouchMove()),this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this.listenerMouseUp(),this.listenerTouchEnd()}_prepareDragging(z){return this.carouselService.prepareDragging(z)}_finishDragging(z){this.carouselService.finishDragging(z,this._drag,this._oneClickHandler)}_pointer(z){return this.carouselService.pointer(z)}_difference(z,Z){return this.carouselService.difference(z,Z)}_is(z){return this.carouselService.is(z)}_enter(z){this.carouselService.enter(z)}_sendChanges(){this.carouselService.sendChanges()}onTransitionEnd(){this.carouselService.onTransitionEnd()}_enterDragging(){this.carouselService.enterDragging()}clear(z){this.animateService.clear(z)}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.NgZone),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(wt),e.\u0275\u0275directiveInject(At))},ot.\u0275cmp=e.\u0275\u0275defineComponent({type:ot,selectors:[["owl-stage"]],hostBindings:function(z,Z){1&z&&e.\u0275\u0275listener("mousedown",function(Qe){return Z.onMouseDown(Qe)})("touchstart",function(Qe){return Z.onTouchStart(Qe)})("touchcancel",function(Qe){return Z.onTouchCancel(Qe)})("dragstart",function(){return Z.onDragStart()})("selectstart",function(){return Z.onSelectStart()})},inputs:{owlDraggable:"owlDraggable",stageData:"stageData",slidesData:"slidesData"},decls:3,vars:8,consts:[[1,"owl-stage",3,"ngStyle","transitionend"],[4,"ngFor","ngForOf"],[1,"owl-item",3,"ngClass","ngStyle","animationend"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(z,Z){1&z&&(e.\u0275\u0275elementStart(0,"div")(1,"div",0),e.\u0275\u0275listener("transitionend",function(){return Z.onTransitionEnd()}),e.\u0275\u0275template(2,k,3,9,"ng-container",1),e.\u0275\u0275elementEnd()()),2&z&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction5(2,$,Z.stageData.width+"px",Z.stageData.transform,Z.stageData.transition,Z.stageData.paddingL?Z.stageData.paddingL+"px":"",Z.stageData.paddingR?Z.stageData.paddingR+"px":"")),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Z.slidesData))},dependencies:[n.NgClass,n.NgForOf,n.NgIf,n.NgTemplateOutlet,n.NgStyle],encapsulation:2,data:{animation:[(0,X.X$)("autoHeight",[(0,X.SB)("nulled",(0,X.oB)({height:0})),(0,X.SB)("full",(0,X.oB)({height:"*"})),(0,X.eR)("full => nulled",[(0,X.jt)("700ms 350ms")]),(0,X.eR)("nulled => full",[(0,X.jt)(350)])])]}}),ot})(),xn=(()=>{class ot{constructor(z,Z,ge,Qe,qe,ct,Yt,it,Be,gt,ue,Ge){this.el=z,this.resizeService=Z,this.carouselService=ge,this.navigationService=Qe,this.autoplayService=qe,this.lazyLoadService=ct,this.animateService=Yt,this.autoHeightService=it,this.hashService=Be,this.logger=gt,this.changeDetectorRef=ue,this.translated=new e.EventEmitter,this.dragging=new e.EventEmitter,this.change=new e.EventEmitter,this.changed=new e.EventEmitter,this.initialized=new e.EventEmitter,this.slidesData=[],this.carouselLoaded=!1,this.docRef=Ge}onVisibilityChange(z){if(this.carouselService.settings.autoplay)switch(this.docRef.visibilityState){case"visible":!this.autoplayService.isAutoplayStopped&&this.autoplayService.play();break;case"hidden":this.autoplayService.pause()}}ngOnInit(){this.spyDataStreams(),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}ngOnChanges(){this.prevOptions!==this.options&&(this.prevOptions&&this.slides?.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray())):this.prevOptions&&!this.slides?.toArray().length?(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered")):this.carouselLoaded=!1,this.prevOptions=this.options)}ngAfterContentInit(){this.slides.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray()),this._winResizeWatcher()):this.logger.log("There are no slides to show. So the carousel won't be rendered"),this._slidesChangesSubscription=this.slides.changes.pipe((0,s.b)(z=>{this.carouselService.setup(this.carouselWindowWidth,z.toArray(),this.options),this.carouselService.initialize(z.toArray()),z.toArray().length||(this.carouselLoaded=!1),z.toArray().length&&!this.resizeSubscription&&this._winResizeWatcher()})).subscribe(()=>{})}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe(),this._slidesChangesSubscription&&this._slidesChangesSubscription.unsubscribe(),this._allObservSubscription&&this._allObservSubscription.unsubscribe()}spyDataStreams(){this._viewCurSettings$=this.carouselService.getViewCurSettings().pipe((0,s.b)(z=>{this.owlDOMData=z.owlDOMData,this.stageData=z.stageData,this.slidesData=z.slidesData,this.carouselLoaded||(this.carouselLoaded=!0),this.navData=z.navData,this.dotsData=z.dotsData,this.changeDetectorRef.markForCheck()})),this._initializedCarousel$=this.carouselService.getInitializedState().pipe((0,s.b)(()=>{this.gatherTranslatedData(),this.initialized.emit(this.slidesOutputData)})),this._translatedCarousel$=this.carouselService.getTranslatedState().pipe((0,s.b)(()=>{this.gatherTranslatedData(),this.translated.emit(this.slidesOutputData)})),this._changeCarousel$=this.carouselService.getChangeState().pipe((0,s.b)(()=>{this.gatherTranslatedData(),this.change.emit(this.slidesOutputData)})),this._changedCarousel$=this.carouselService.getChangeState().pipe((0,p.w)(z=>{const Z=(0,l.of)(z).pipe((0,d.h)(()=>"position"===z.property.name),(0,p.w)(()=>(0,h.D)(this.slidesData)),(0,v.T)(z.property.value),(0,g.q)(this.carouselService.settings.items),(0,y.U)(ge=>{const Qe=this.carouselService.clonedIdPrefix,qe=ge.id.indexOf(Qe)>=0?ge.id.slice(Qe.length):ge.id;return{...ge,id:qe,isActive:!0}}),function A(){return(0,S.e)((ot,Et)=>{(function E(ot,Et){return(0,S.e)((0,b.U)(ot,Et,arguments.length>=2,!1,!0))})(D,[])(ot).subscribe(Et)})}(),(0,y.U)(ge=>({slides:ge,startPosition:this.carouselService.relative(z.property.value)})));return(0,t.T)(Z)}),(0,s.b)(z=>{this.gatherTranslatedData(),this.changed.emit(z.slides.length?z:this.slidesOutputData)})),this._draggingCarousel$=this.carouselService.getDragState().pipe((0,s.b)(()=>{this.gatherTranslatedData(),this.dragging.emit({dragging:!0,data:this.slidesOutputData})}),(0,p.w)(()=>this.carouselService.getDraggedState().pipe((0,y.U)(()=>!!this.carouselService.is("animating")))),(0,p.w)(z=>z?this.carouselService.getTranslatedState().pipe((0,u.P)()):(0,l.of)("not animating")),(0,s.b)(()=>{this.dragging.emit({dragging:!1,data:this.slidesOutputData})})),this._carouselMerge$=(0,t.T)(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe(()=>{})}_winResizeWatcher(){Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe((0,d.h)(()=>this.carouselWindowWidth!==this.el.nativeElement.querySelector(".owl-carousel").clientWidth),(0,P.g)(this.carouselService.settings.responsiveRefreshRate)).subscribe(()=>{this.carouselService.onResize(this.el.nativeElement.querySelector(".owl-carousel").clientWidth),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}))}onTransitionEnd(){this.carouselService.onTransitionEnd()}next(){this.carouselLoaded&&this.navigationService.next(this.carouselService.settings.navSpeed)}prev(){this.carouselLoaded&&this.navigationService.prev(this.carouselService.settings.navSpeed)}moveByDot(z){this.carouselLoaded&&this.navigationService.moveByDot(z)}to(z){this.carouselLoaded&&this.navigationService.toSlideById(z)}gatherTranslatedData(){let z;const Z=this.carouselService.clonedIdPrefix,ge=this.slidesData.filter(Qe=>!0===Qe.isActive).map(Qe=>({id:Qe.id.indexOf(Z)>=0?Qe.id.slice(Z.length):Qe.id,width:Qe.width,marginL:Qe.marginL,marginR:Qe.marginR,center:Qe.isCentered}));z=this.carouselService.relative(this.carouselService.current()),this.slidesOutputData={startPosition:z,slides:ge}}startPausing(){this.autoplayService.startPausing()}startPlayML(){this.autoplayService.startPlayingMouseLeave()}startPlayTE(){this.autoplayService.startPlayingTouchEnd()}stopAutoplay(){this.autoplayService.isAutoplayStopped=!0,this.autoplayService.stop()}startAutoplay(){this.autoplayService.isAutoplayStopped=!1,this.autoplayService.play()}}return ot.\u0275fac=function(z){return new(z||ot)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(mt),e.\u0275\u0275directiveInject(wt),e.\u0275\u0275directiveInject(Wt),e.\u0275\u0275directiveInject(zt),e.\u0275\u0275directiveInject(bt),e.\u0275\u0275directiveInject(At),e.\u0275\u0275directiveInject($e),e.\u0275\u0275directiveInject(Xe),e.\u0275\u0275directiveInject(me),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(Ie))},ot.\u0275cmp=e.\u0275\u0275defineComponent({type:ot,selectors:[["owl-carousel-o"]],contentQueries:function(z,Z,ge){if(1&z&&e.\u0275\u0275contentQuery(ge,Ve,4),2&z){let Qe;e.\u0275\u0275queryRefresh(Qe=e.\u0275\u0275loadQuery())&&(Z.slides=Qe)}},hostBindings:function(z,Z){1&z&&e.\u0275\u0275listener("visibilitychange",function(Qe){return Z.onVisibilityChange(Qe)},!1,e.\u0275\u0275resolveDocument)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},features:[e.\u0275\u0275ProvidersFeature([Wt,zt,wt,bt,At,$e,Xe]),e.\u0275\u0275NgOnChangesFeature],decls:4,vars:9,consts:[[1,"owl-carousel","owl-theme",3,"ngClass","mouseover","mouseleave","touchstart","touchend"],["owlCarousel",""],["class","owl-stage-outer",4,"ngIf"],[4,"ngIf"],[1,"owl-stage-outer"],[3,"owlDraggable","stageData","slidesData"],[1,"owl-nav",3,"ngClass"],[1,"owl-prev",3,"ngClass","innerHTML","click"],[1,"owl-next",3,"ngClass","innerHTML","click"],[1,"owl-dots",3,"ngClass"],["class","owl-dot",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"owl-dot",3,"ngClass","click"],[3,"innerHTML"]],template:function(z,Z){1&z&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275listener("mouseover",function(){return Z.startPausing()})("mouseleave",function(){return Z.startPlayML()})("touchstart",function(){return Z.startPausing()})("touchend",function(){return Z.startPlayTE()}),e.\u0275\u0275template(2,R,2,6,"div",2),e.\u0275\u0275template(3,H,6,15,"ng-container",3),e.\u0275\u0275elementEnd()),2&z&&(e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction5(3,N,null==Z.owlDOMData?null:Z.owlDOMData.rtl,null==Z.owlDOMData?null:Z.owlDOMData.isLoaded,null==Z.owlDOMData?null:Z.owlDOMData.isResponsive,null==Z.owlDOMData?null:Z.owlDOMData.isMouseDragable,null==Z.owlDOMData?null:Z.owlDOMData.isGrab)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",Z.carouselLoaded),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Z.slides.toArray().length))},dependencies:[n.NgClass,n.NgForOf,n.NgIf,It],styles:[".owl-theme[_ngcontent-%COMP%]{display:block}"],changeDetection:0}),ot})(),pt=(()=>{class ot{}return ot.\u0275fac=function(z){return new(z||ot)},ot.\u0275mod=e.\u0275\u0275defineNgModule({type:ot}),ot.\u0275inj=e.\u0275\u0275defineInjector({providers:[Ce,mt,xt,me],imports:[n.CommonModule]}),ot})()},69384:(oe,x,i)=>{"use strict";i.d(x,{n:()=>bt,K:()=>At});var e=i(94650),n=i(36895),a=i(83353);class t{constructor(Xe,Pe){this._document=Pe;const Ve=this._textarea=this._document.createElement("textarea"),mt=Ve.style;mt.position="fixed",mt.top=mt.opacity="0",mt.left="-999em",Ve.setAttribute("aria-hidden","true"),Ve.value=Xe,Ve.readOnly=!0,this._document.body.appendChild(Ve)}copy(){const Xe=this._textarea;let Pe=!1;try{if(Xe){const Ve=this._document.activeElement;Xe.select(),Xe.setSelectionRange(0,Xe.value.length),Pe=this._document.execCommand("copy"),Ve&&Ve.focus()}}catch{}return Pe}destroy(){const Xe=this._textarea;Xe&&(Xe.remove(),this._textarea=void 0)}}let l=(()=>{class $e{constructor(Pe){this._document=Pe}copy(Pe){const Ve=this.beginCopy(Pe),mt=Ve.copy();return Ve.destroy(),mt}beginCopy(Pe){return new t(Pe,this._document)}}return $e.\u0275fac=function(Pe){return new(Pe||$e)(e.\u0275\u0275inject(n.DOCUMENT))},$e.\u0275prov=e.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),d=(()=>{class $e{}return $e.\u0275fac=function(Pe){return new(Pe||$e)},$e.\u0275mod=e.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=e.\u0275\u0275defineInjector({}),$e})();var p=i(69751),u=i(39646),g=i(61135),v=i(77579),y=i(60515),b=i(18505),S=i(94086),E=i(95698),D=i(82722),A=i(11481);const P=new e.InjectionToken("shareButtonsConfig");var V=(()=>{return($e=V||(V={})).Anchor="anchor",$e.Window="window",V;var $e})();function X($e){return $e&&"object"==typeof $e&&!Array.isArray($e)}function re($e,...Xe){if(!Xe.length)return $e;const Pe=Xe.shift();if(X($e)&&X(Pe))for(const Ve in Pe)X(Pe[Ve])?($e[Ve]||Object.assign($e,{[Ve]:{}}),re($e[Ve],Pe[Ve])):Object.assign($e,{[Ve]:Pe[Ve]});return re($e,...Xe)}const k={description:$e=>$e.description?`${$e.description}\r\n${$e.url}`:$e.url},$={facebook:{type:"facebook",text:"Facebook",ariaLabel:"Share on Facebook",icon:["fab","facebook-f"],color:"#4267B2",share:{desktop:"https://www.facebook.com/sharer/sharer.php?"},params:{url:"u"}},twitter:{type:"twitter",text:"Twitter",ariaLabel:"Share on Twitter",icon:["fab","twitter"],color:"#00acee",share:{desktop:"https://twitter.com/intent/tweet?"},params:{url:"url",description:"text",tags:"hashtags",via:"via"}},linkedin:{type:"linkedin",text:"LinkedIn",ariaLabel:"Share on LinkedIn",icon:["fab","linkedin-in"],color:"#006fa6",share:{desktop:"https://www.linkedin.com/shareArticle?"},params:{url:"url",title:"title",description:"summary"}},pinterest:{type:"pinterest",text:"Pinterest",ariaLabel:"Share on Pinterest",icon:["fab","pinterest-p"],color:"#BD091D",share:{desktop:"https://pinterest.com/pin/create/button/?"},params:{url:"url",description:"description",image:"media"}},reddit:{type:"reddit",text:"Reddit",ariaLabel:"Share on Reddit",icon:["fab","reddit-alien"],color:"#FF4006",share:{desktop:"https://www.reddit.com/submit?"},params:{url:"url",title:"title"}},tumblr:{type:"tumblr",text:"Tumblr",ariaLabel:"Share on Tumblr",icon:["fab","tumblr"],color:"#36465D",share:{desktop:"https://tumblr.com/widgets/share/tool?"},params:{url:"canonicalUrl",description:"caption",tags:"tags"}},mix:{type:"mix",text:"Mix",ariaLabel:"Share on Mix",icon:["fab","mix"],color:"#eb4924",share:{desktop:"https://mix.com/add?"},params:{url:"url"}},viber:{type:"viber",text:"Viber",ariaLabel:"Share on Viber",icon:["fab","viber"],color:"#665ca7",share:{android:"viber://forward?",ios:"viber://forward?"},params:{description:"text"},paramsFunc:k},vk:{type:"vk",text:"VKontakte",ariaLabel:"Share on VKontakte",icon:["fab","vk"],color:"#4C75A3",share:{desktop:"https://vk.com/share.php?"},params:{url:"url"}},telegram:{type:"telegram",text:"Telegram",ariaLabel:"Share on Telegram",icon:["fab","telegram-plane"],color:"#0088cc",share:{desktop:"https://t.me/share/url?"},params:{url:"url",description:"text"}},messenger:{type:"messenger",text:"Messenger",ariaLabel:"Share on Messenger",icon:["fab","facebook-messenger"],color:"#0080FF",share:{android:"fb-messenger://share/?",ios:"fb-messenger://share/?"},params:{url:"link"}},whatsapp:{type:"whatsapp",text:"WhatsApp",ariaLabel:"Share on WhatsApp",icon:["fab","whatsapp"],color:"#25D366",share:{desktop:"https://web.whatsapp.com/send?",android:"whatsapp://send?",ios:"https://api.whatsapp.com/send?"},params:{description:"text"},paramsFunc:k},xing:{type:"xing",text:"Xing",ariaLabel:"Share on Xing",icon:["fab","xing"],color:"#006567",share:{desktop:"https://www.xing.com/spi/shares/new?"},params:{url:"url"}},line:{type:"line",text:"Line",ariaLabel:"Share on Line",icon:["fab","line"],color:"#00b900",share:{desktop:"https://social-plugins.line.me/lineit/share?"},params:{url:"url"}},sms:{type:"sms",text:"SMS",ariaLabel:"Share link via SMS",icon:["fas","sms"],color:"#20c16c",share:{desktop:"sms:?",ios:"sms:&"},params:{description:"body"},paramsFunc:k},email:{type:"email",text:"Email",ariaLabel:"Share link via email",icon:["fas","envelope"],color:"#FF961C",share:{desktop:"mailto:?"},params:{title:"subject",description:"body"},paramsFunc:k},print:{type:"print",text:"Print",ariaLabel:"Print page",icon:["fas","print"],color:"#765AA2",func:function ae(){return new p.y($e=>document.defaultView.print())}},copy:{type:"copy",text:"Copy link",ariaLabel:"Copy link",icon:["fas","link"],color:"#607D8B",data:{text:"Copy link",icon:["fas","link"],successText:"Copied",successIcon:["fas","check"],delay:2e3},func:function K({params:$e,data:Xe,clipboard:Pe,updater:Ve}){return(0,u.of)(null).pipe((0,b.b)(()=>{Pe.copy($e.url),Ve.next({icon:Xe.successIcon,text:Xe.successText,disabled:!0})}),(0,S.g)(Xe.delay),(0,b.b)(()=>Ve.next({icon:Xe.icon,text:Xe.text,disabled:!1})),(0,E.q)(1))}}};let j=(()=>{class $e{constructor(Pe,Ve){this._document=Ve,this.config={sharerMethod:V.Anchor,sharerTarget:"_blank",windowObj:this._document.defaultView,windowFuncName:"open",prop:$,theme:"default",include:[],exclude:[],autoSetMeta:!0,windowWidth:800,windowHeight:500,moreButtonIcon:"ellipsis-h",lessButtonIcon:"minus",moreButtonAriaLabel:"Show more share buttons",lessButtonAriaLabel:"Show less share buttons"},this.config$=new g.X(this.config),Pe&&this.setConfig(Pe)}get prop(){return this.config.prop}get windowSize(){return`width=${this.config.windowWidth}, height=${this.config.windowHeight}`}setConfig(Pe){this.config=re(this.config,Pe),this.config$.next(this.config)}addButton(Pe,Ve){this.setConfig({prop:{[Pe]:Ve}})}}return $e.\u0275fac=function(Pe){return new(Pe||$e)(e.\u0275\u0275inject(P,8),e.\u0275\u0275inject(n.DOCUMENT))},$e.\u0275prov=e.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),R=(()=>{class $e{constructor(Pe,Ve,mt,It,xn,_n,Jt){this._meta=Ve,this._platform=mt,this._clipboard=It,this._share=xn,this._cd=_n,this._document=Jt,this._destroyed=new v.x,this._updater=new v.x,this.autoSetMeta=this._share.config.autoSetMeta,this.url=this._share.config.url,this.title=this._share.config.title,this.description=this._share.config.description,this.image=this._share.config.image,this.tags=this._share.config.tags,this.opened=new e.EventEmitter,this.closed=new e.EventEmitter,this._el=Pe.nativeElement}share(){if(this._platform.isBrowser&&this.shareButton){const Pe=this.autoSetMeta?this.getParamsFromMetaTags():this.getParamsFromInputs();(this.shareButton.share?this.open(Pe):this.shareButton.func({params:Pe,data:this.shareButton.data,clipboard:this._clipboard,updater:this._updater})).pipe((0,D.R)(this._destroyed)).subscribe()}else console.warn(`${this.text} button is not compatible on this Platform`)}ngOnInit(){this._updater.pipe((0,b.b)(Pe=>{this.icon=Pe.icon,this.text=Pe.text,this._el.style.pointerEvents=Pe.disabled?"none":"auto",this._cd.markForCheck()}),(0,D.R)(this._destroyed)).subscribe()}ngOnChanges(Pe){this._platform.isBrowser&&(this._shareButtonChanged(Pe.shareButtonName)&&this._createShareButton(),this._urlChanged(Pe.url)&&(this.url=function Q($e,Xe){if($e){if(/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test($e))return $e;console.warn(`[ShareButtons]: Sharing link '${$e}' is invalid!`)}return Xe}(this.autoSetMeta?this.url||this._getMetaTagContent("og:url"):this.url,this._document.defaultView.location.href)))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createShareButton(){const Pe=this._share.config.prop[this.shareButtonName];Pe?(this.shareButton=Pe,this._el.classList.remove(`sb-${this._buttonClass}`),this._el.classList.add(`sb-${this.shareButtonName}`),this._el.style.setProperty("--button-color",this.shareButton.color),this._buttonClass=this.shareButtonName,this.color=this.shareButton.color,this.text=this.shareButton.text,this.icon=this.shareButton.icon,this._el.setAttribute("aria-label",Pe.ariaLabel)):console.error(`[ShareButtons]: The share button '${this.shareButtonName}' does not exist!`)}_getMetaTagContent(Pe){const Ve=this._meta.getTag(`property="${Pe}"`);if(Ve)return Ve.getAttribute("content");const mt=this._meta.getTag(`name="${Pe}"`);return mt?mt.getAttribute("content"):void 0}_shareButtonChanged(Pe){return Pe&&(Pe.firstChange||Pe.previousValue!==Pe.currentValue)}_urlChanged(Pe){return!this.url||Pe&&Pe.previousValue!==Pe.currentValue}getParamsFromMetaTags(){return{url:this.url,title:this.title||this._getMetaTagContent("og:title"),description:this.description||this._getMetaTagContent("og:description"),image:this.image||this._getMetaTagContent("og:image"),via:this._share.config.twitterAccount,tags:this.tags}}getParamsFromInputs(){return{url:this.url,title:this.title,description:this.description,image:this.image,tags:this.tags,via:this._share.config.twitterAccount}}open(Pe){let Ve;if(Ve=this._platform.IOS&&this.shareButton.share.ios?this.shareButton.share.ios:this._platform.ANDROID&&this.shareButton.share.android?this.shareButton.share.android:this.shareButton.share.desktop,Ve){this._finalUrl=Ve+this._serializeParams(Pe),this._share.config.debug&&console.log("[DEBUG SHARE BUTTON]: ",this._finalUrl);const It=this.shareButton.target||this._share.config.sharerTarget;switch(this.shareButton.method||this._share.config.sharerMethod){case V.Anchor:const xn=this._document.createElement("a");xn.setAttribute("target",It),xn.setAttribute("rel","noopener noreferrer"),xn.href=this._finalUrl,xn.click(),xn.remove();break;case V.Window:const Jt=(0,this._share.config.windowObj[this._share.config.windowFuncName])(this._finalUrl,It,this._share.windowSize);if(this._share.config.windowObj.opener=null,Jt)return new p.y(ke=>{const Ae=this._document.defaultView.setInterval(()=>{Jt.closed&&(this._document.defaultView.clearInterval(Ae),this.closed.emit(this.shareButtonName),ke.next(),ke.complete())},200)})}this.opened.emit(this.shareButtonName)}return y.E}_serializeParams(Pe){return Object.entries(this.shareButton.params).map(([Ve,mt])=>{const It=this.shareButton.paramsFunc?this.shareButton.paramsFunc[Ve]:null;if(Pe[Ve]||It){const xn=It?It(Pe):Pe[Ve];return`${mt}=${encodeURIComponent(xn)}`}return""}).filter(Ve=>""!==Ve).join("&")}}return $e.\u0275fac=function(Pe){return new(Pe||$e)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(A.Meta),e.\u0275\u0275directiveInject(a.t4),e.\u0275\u0275directiveInject(l),e.\u0275\u0275directiveInject(j),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(n.DOCUMENT))},$e.\u0275dir=e.\u0275\u0275defineDirective({type:$e,selectors:[["","shareButton",""]],hostBindings:function(Pe,Ve){1&Pe&&e.\u0275\u0275listener("click",function(){return Ve.share()})},inputs:{shareButtonName:["shareButton","shareButtonName"],autoSetMeta:"autoSetMeta",url:"url",title:"title",description:"description",image:"image",tags:"tags"},outputs:{opened:"opened",closed:"closed"},exportAs:["shareButton"],features:[e.\u0275\u0275NgOnChangesFeature]}),$e})(),U=(()=>{class $e{static withConfig(Pe){return{ngModule:$e,providers:[{provide:P,useValue:Pe}]}}}return $e.\u0275fac=function(Pe){return new(Pe||$e)},$e.\u0275mod=e.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=e.\u0275\u0275defineInjector({imports:[a.ud,d]}),$e})();var le=i(72673);const T=["*"],pe=$e=>{const Xe={"fa-spin":$e.spin,"fa-pulse":$e.pulse,"fa-fw":$e.fixedWidth,"fa-border":$e.border,"fa-inverse":$e.inverse,"fa-layers-counter":$e.counter,"fa-flip-horizontal":"horizontal"===$e.flip||"both"===$e.flip,"fa-flip-vertical":"vertical"===$e.flip||"both"===$e.flip,[`fa-${$e.size}`]:null!==$e.size,[`fa-rotate-${$e.rotate}`]:null!==$e.rotate,[`fa-pull-${$e.pull}`]:null!==$e.pull,[`fa-stack-${$e.stackItemSize}`]:null!=$e.stackItemSize};return Object.keys(Xe).map(Pe=>Xe[Pe]?Pe:null).filter(Pe=>Pe)};let q=(()=>{class $e{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return $e.\u0275fac=function(Pe){return new(Pe||$e)},$e.\u0275prov=e.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),se=(()=>{class $e{constructor(){this.definitions={}}addIcons(...Pe){for(const Ve of Pe){Ve.prefix in this.definitions||(this.definitions[Ve.prefix]={}),this.definitions[Ve.prefix][Ve.iconName]=Ve;for(const mt of Ve.icon[2])"string"==typeof mt&&(this.definitions[Ve.prefix][mt]=Ve)}}addIconPacks(...Pe){for(const Ve of Pe){const mt=Object.keys(Ve).map(It=>Ve[It]);this.addIcons(...mt)}}getIconDefinition(Pe,Ve){return Pe in this.definitions&&Ve in this.definitions[Pe]?this.definitions[Pe][Ve]:null}}return $e.\u0275fac=function(Pe){return new(Pe||$e)},$e.\u0275prov=e.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),ve=(()=>{class $e{constructor(){this.stackItemSize="1x"}ngOnChanges(Pe){if("size"in Pe)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return $e.\u0275fac=function(Pe){return new(Pe||$e)},$e.\u0275dir=e.\u0275\u0275defineDirective({type:$e,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.\u0275\u0275NgOnChangesFeature]}),$e})(),Ee=(()=>{class $e{constructor(Pe,Ve){this.renderer=Pe,this.elementRef=Ve}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Pe){"size"in Pe&&(null!=Pe.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Pe.size.currentValue}`),null!=Pe.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Pe.size.previousValue}`))}}return $e.\u0275fac=function(Pe){return new(Pe||$e)(e.\u0275\u0275directiveInject(e.Renderer2),e.\u0275\u0275directiveInject(e.ElementRef))},$e.\u0275cmp=e.\u0275\u0275defineComponent({type:$e,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.\u0275\u0275NgOnChangesFeature],ngContentSelectors:T,decls:1,vars:0,template:function(Pe,Ve){1&Pe&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275projection(0))},encapsulation:2}),$e})(),Ye=(()=>{class $e{constructor(Pe,Ve,mt,It,xn){this.sanitizer=Pe,this.config=Ve,this.iconLibrary=mt,this.stackItem=It,this.classes=[],null!=xn&&null==It&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(Pe){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let Ve=null;if(Ve=null==this.icon?this.config.fallbackIcon:this.icon,Pe){const mt=this.findIconDefinition(Ve);if(null!=mt){const It=this.buildParams();this.renderIcon(mt,It)}}}render(){this.ngOnChanges({})}findIconDefinition(Pe){const Ve=(($e,Xe)=>($e=>void 0!==$e.prefix&&void 0!==$e.iconName)($e)?$e:Array.isArray($e)&&2===$e.length?{prefix:$e[0],iconName:$e[1]}:"string"==typeof $e?{prefix:Xe,iconName:$e}:void 0)(Pe,this.config.defaultPrefix);return"icon"in Ve?Ve:this.iconLibrary.getIconDefinition(Ve.prefix,Ve.iconName)??(($e=>{throw new Error(`Could not find icon with iconName=${$e.iconName} and prefix=${$e.prefix} in the icon library.`)})(Ve),null)}buildParams(){const Pe={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},Ve="string"==typeof this.transform?le.Qc.transform(this.transform):this.transform;return{title:this.title,transform:Ve,classes:[...pe(Pe),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(Pe,Ve){const mt=(0,le.qv)(Pe,Ve);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(mt.html.join("\n"))}}return $e.\u0275fac=function(Pe){return new(Pe||$e)(e.\u0275\u0275directiveInject(A.DomSanitizer),e.\u0275\u0275directiveInject(q),e.\u0275\u0275directiveInject(se),e.\u0275\u0275directiveInject(ve,8),e.\u0275\u0275directiveInject(Ee,8))},$e.\u0275cmp=e.\u0275\u0275defineComponent({type:$e,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Pe,Ve){2&Pe&&(e.\u0275\u0275hostProperty("innerHTML",Ve.renderedIconHTML,e.\u0275\u0275sanitizeHtml),e.\u0275\u0275attribute("title",Ve.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[e.\u0275\u0275NgOnChangesFeature],decls:0,vars:0,template:function(Pe,Ve){},encapsulation:2}),$e})(),Fe=(()=>{class $e{}return $e.\u0275fac=function(Pe){return new(Pe||$e)},$e.\u0275mod=e.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=e.\u0275\u0275defineInjector({}),$e})();function yt($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div",6),e.\u0275\u0275element(1,"fa-icon",7),e.\u0275\u0275elementEnd()),2&$e){const Pe=e.\u0275\u0275nextContext(2),Ve=e.\u0275\u0275reference(1);e.\u0275\u0275advance(1),e.\u0275\u0275property("icon",Pe.icon||Ve.icon)("fixedWidth",!0)}}function ie($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div",8),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&$e){const Pe=e.\u0275\u0275nextContext(2),Ve=e.\u0275\u0275reference(1);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",Pe.text||Ve.text," ")}}function Ce($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div",3),e.\u0275\u0275template(1,yt,2,2,"div",4),e.\u0275\u0275template(2,ie,2,1,"div",5),e.\u0275\u0275elementEnd()),2&$e){const Pe=e.\u0275\u0275nextContext(),Ve=e.\u0275\u0275reference(1);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.showIcon&&Ve.icon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.showText)}}let Ie=(()=>{class $e{constructor(Pe){this._share=Pe,this.showIcon=!0,this.showText=!1,this.theme=this._share.config.theme,this.opened=new e.EventEmitter,this.closed=new e.EventEmitter}get buttonClass(){return`sb-button sb-${this.theme}`}}return $e.\u0275fac=function(Pe){return new(Pe||$e)(e.\u0275\u0275directiveInject(j))},$e.\u0275cmp=e.\u0275\u0275defineComponent({type:$e,selectors:[["share-button"]],hostVars:2,hostBindings:function(Pe,Ve){2&Pe&&e.\u0275\u0275classMap(Ve.buttonClass)},inputs:{button:"button",url:"url",title:"title",description:"description",image:"image",tags:"tags",autoSetMeta:"autoSetMeta",showIcon:"showIcon",showText:"showText",text:"text",icon:"icon",theme:"theme",disabled:"disabled"},outputs:{opened:"opened",closed:"closed"},decls:3,vars:13,consts:[["type","button",1,"sb-wrapper",3,"shareButton","url","image","title","description","tags","autoSetMeta","disabled","opened","closed"],["btn","shareButton"],["class","sb-content",4,"ngIf"],[1,"sb-content"],["class","sb-icon",4,"ngIf"],["class","sb-text",4,"ngIf"],[1,"sb-icon"],[3,"icon","fixedWidth"],[1,"sb-text"]],template:function(Pe,Ve){if(1&Pe&&(e.\u0275\u0275elementStart(0,"button",0,1),e.\u0275\u0275listener("opened",function(It){return Ve.opened.emit(It)})("closed",function(It){return Ve.closed.emit(It)}),e.\u0275\u0275template(2,Ce,3,2,"div",2),e.\u0275\u0275elementEnd()),2&Pe){const mt=e.\u0275\u0275reference(1);e.\u0275\u0275classProp("sb-show-icon",Ve.showIcon)("sb-show-text",Ve.showText),e.\u0275\u0275property("shareButton",Ve.button)("url",Ve.url)("image",Ve.image)("title",Ve.title)("description",Ve.description)("tags",Ve.tags)("autoSetMeta",Ve.autoSetMeta)("disabled",Ve.disabled),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",mt)}},dependencies:[R,Ye,n.NgIf],styles:["[button=facebook][_nghost-%COMP%], [button=facebook]   [_nghost-%COMP%]{--button-color: #4267B2}[button=twitter][_nghost-%COMP%], [button=twitter]   [_nghost-%COMP%]{--button-color: #00acee}[button=google][_nghost-%COMP%], [button=google]   [_nghost-%COMP%]{--button-color: #db4437}[button=mix][_nghost-%COMP%], [button=mix]   [_nghost-%COMP%]{--button-color: #ff8226}[button=line][_nghost-%COMP%], [button=line]   [_nghost-%COMP%]{--button-color: #00b900}[button=linkedin][_nghost-%COMP%], [button=linkedin]   [_nghost-%COMP%]{--button-color: #006fa6}[button=pinterest][_nghost-%COMP%], [button=pinterest]   [_nghost-%COMP%]{--button-color: #bd081c}[button=reddit][_nghost-%COMP%], [button=reddit]   [_nghost-%COMP%]{--button-color: #ff4006}[button=tumblr][_nghost-%COMP%], [button=tumblr]   [_nghost-%COMP%]{--button-color: #36465d}[button=whatsapp][_nghost-%COMP%], [button=whatsapp]   [_nghost-%COMP%]{--button-color: #25d366}[button=messenger][_nghost-%COMP%], [button=messenger]   [_nghost-%COMP%]{--button-color: #0080FF}[button=telegram][_nghost-%COMP%], [button=telegram]   [_nghost-%COMP%]{--button-color: #0088cc}[button=xing][_nghost-%COMP%], [button=xing]   [_nghost-%COMP%]{--button-color: #006567}[button=sms][_nghost-%COMP%], [button=sms]   [_nghost-%COMP%]{--button-color: #20c16c}[button=email][_nghost-%COMP%], [button=email]   [_nghost-%COMP%]{--button-color: #FF961C}[button=viber][_nghost-%COMP%], [button=viber]   [_nghost-%COMP%]{--button-color: #665ca7}[button=vk][_nghost-%COMP%], [button=vk]   [_nghost-%COMP%]{--button-color: #4C75A3}[button=copy][_nghost-%COMP%], [button=copy]   [_nghost-%COMP%]{--button-color: #607D8B}[button=print][_nghost-%COMP%], [button=print]   [_nghost-%COMP%]{--button-color: #765AA2}[button=expand][_nghost-%COMP%], [button=expand]   [_nghost-%COMP%]{--button-color: #FF6651}button[_ngcontent-%COMP%]{cursor:pointer;position:relative;outline:0;-webkit-print-color-adjust:exact;margin:.3125em;margin:var(--sb-margin, .3125em);padding:0;padding:var(--sb-padding, 0);min-width:4.125em;min-width:var(--sb-min-width, 4.125em);height:2.5em;height:var(--sb-height, 2.5em);color:#fff;color:var(--sb-color, #fff);background:var(--sb-background);font-size:13px;font-size:var(--sb-font-size, 13px);line-height:2.571em;line-height:var(--sb-line-height, 2.571em);border:var(--sb-border);border-radius:var(--sb-border-radius);transition:var(--sb-transition);box-shadow:var(--sb-box-shadow);text-shadow:var(--sb-text-shadow);overflow:var(--sb-overflow)}.sb-icon[_ngcontent-%COMP%], .sb-text[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sb-content[_ngcontent-%COMP%]{flex:1;display:flex;height:100%;width:100%;position:relative}.sb-text[_ngcontent-%COMP%]{flex:1;height:100%;white-space:nowrap;padding:0 .7em;padding:var(--sb-text-padding, 0 .7em);font-weight:700;font-weight:var(--sb-font-weight, bold)}.sb-icon[_ngcontent-%COMP%]{text-align:center;width:100%;height:100%;min-width:2em;font-size:1.2em;font-size:var(--sb-icon-size, 1.2em)}"],changeDetection:0}),$e})(),dt=(()=>{class $e{static withConfig(Pe){return{ngModule:$e,providers:[{provide:P,useValue:Pe}]}}}return $e.\u0275fac=function(Pe){return new(Pe||$e)},$e.\u0275mod=e.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=e.\u0275\u0275defineInjector({imports:[U,Fe,n.CommonModule,U,Fe]}),$e})();var Mt=i(50727),Xt=i(54004);function en($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"share-button",3),e.\u0275\u0275listener("opened",function(mt){e.\u0275\u0275restoreView(Pe);const It=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(It.opened.emit(mt))})("closed",function(mt){e.\u0275\u0275restoreView(Pe);const It=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(It.closed.emit(mt))}),e.\u0275\u0275elementEnd()}if(2&$e){const Pe=Xe.$implicit,Ve=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("button",Pe)("theme",Ve.theme)("url",Ve.url)("title",Ve.title)("description",Ve.description)("image",Ve.image)("tags",Ve.tags)("autoSetMeta",Ve.autoSetMeta)("showIcon",Ve.showIcon)("showText",Ve.showText)("disabled",Ve.disabled)}}function vt($e,Xe){if(1&$e){const Pe=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"expand-button",4),e.\u0275\u0275listener("toggle",function(mt){e.\u0275\u0275restoreView(Pe);const It=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(It.updateState({expanded:mt}))}),e.\u0275\u0275elementEnd()}if(2&$e){const Pe=e.\u0275\u0275nextContext().$implicit,Ve=e.\u0275\u0275nextContext();e.\u0275\u0275classMapInterpolate1("sb-button sb-",Ve.theme,""),e.\u0275\u0275property("expanded",Pe.expanded)("moreIcon",Pe.moreIcon)("lessIcon",Pe.lessIcon)("moreAriaLabel",Pe.moreAriaLabel)("lessAriaLabel",Pe.lessAriaLabel)}}function xt($e,Xe){if(1&$e&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,en,1,11,"share-button",1),e.\u0275\u0275template(2,vt,1,8,"expand-button",2),e.\u0275\u0275elementEnd()),2&$e){const Pe=Xe.$implicit,Ve=e.\u0275\u0275nextContext();e.\u0275\u0275classMapInterpolate1("sb-group sb-",Ve.theme,""),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",Pe.selectedButtons),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",Pe.shownCount<Pe.userButtons.length)}}let zt=(()=>{class $e{constructor(Pe){this.toggle=new e.EventEmitter,Pe.nativeElement.style.setProperty("--button-color","#FF6651")}}return $e.\u0275fac=function(Pe){return new(Pe||$e)(e.\u0275\u0275directiveInject(e.ElementRef))},$e.\u0275cmp=e.\u0275\u0275defineComponent({type:$e,selectors:[["expand-button"]],inputs:{moreIcon:"moreIcon",lessIcon:"lessIcon",expanded:"expanded",moreAriaLabel:"moreAriaLabel",lessAriaLabel:"lessAriaLabel"},outputs:{toggle:"toggle"},decls:4,vars:2,consts:[[1,"sb-wrapper","sb-expand","sb-show-icon",3,"click"],[1,"sb-content"],[1,"sb-icon"],[3,"icon"]],template:function(Pe,Ve){1&Pe&&(e.\u0275\u0275elementStart(0,"button",0),e.\u0275\u0275listener("click",function(){return Ve.toggle.emit(!Ve.expanded)}),e.\u0275\u0275elementStart(1,"div",1)(2,"div",2),e.\u0275\u0275element(3,"fa-icon",3),e.\u0275\u0275elementEnd()()()),2&Pe&&(e.\u0275\u0275attribute("aria-label",Ve.expanded?Ve.lessAriaLabel:Ve.moreAriaLabel),e.\u0275\u0275advance(3),e.\u0275\u0275property("icon",Ve.expanded?Ve.lessIcon:Ve.moreIcon))},dependencies:[Ye],styles:["[button=facebook][_nghost-%COMP%], [button=facebook]   [_nghost-%COMP%]{--button-color: #4267B2}[button=twitter][_nghost-%COMP%], [button=twitter]   [_nghost-%COMP%]{--button-color: #00acee}[button=google][_nghost-%COMP%], [button=google]   [_nghost-%COMP%]{--button-color: #db4437}[button=mix][_nghost-%COMP%], [button=mix]   [_nghost-%COMP%]{--button-color: #ff8226}[button=line][_nghost-%COMP%], [button=line]   [_nghost-%COMP%]{--button-color: #00b900}[button=linkedin][_nghost-%COMP%], [button=linkedin]   [_nghost-%COMP%]{--button-color: #006fa6}[button=pinterest][_nghost-%COMP%], [button=pinterest]   [_nghost-%COMP%]{--button-color: #bd081c}[button=reddit][_nghost-%COMP%], [button=reddit]   [_nghost-%COMP%]{--button-color: #ff4006}[button=tumblr][_nghost-%COMP%], [button=tumblr]   [_nghost-%COMP%]{--button-color: #36465d}[button=whatsapp][_nghost-%COMP%], [button=whatsapp]   [_nghost-%COMP%]{--button-color: #25d366}[button=messenger][_nghost-%COMP%], [button=messenger]   [_nghost-%COMP%]{--button-color: #0080FF}[button=telegram][_nghost-%COMP%], [button=telegram]   [_nghost-%COMP%]{--button-color: #0088cc}[button=xing][_nghost-%COMP%], [button=xing]   [_nghost-%COMP%]{--button-color: #006567}[button=sms][_nghost-%COMP%], [button=sms]   [_nghost-%COMP%]{--button-color: #20c16c}[button=email][_nghost-%COMP%], [button=email]   [_nghost-%COMP%]{--button-color: #FF961C}[button=viber][_nghost-%COMP%], [button=viber]   [_nghost-%COMP%]{--button-color: #665ca7}[button=vk][_nghost-%COMP%], [button=vk]   [_nghost-%COMP%]{--button-color: #4C75A3}[button=copy][_nghost-%COMP%], [button=copy]   [_nghost-%COMP%]{--button-color: #607D8B}[button=print][_nghost-%COMP%], [button=print]   [_nghost-%COMP%]{--button-color: #765AA2}[button=expand][_nghost-%COMP%], [button=expand]   [_nghost-%COMP%]{--button-color: #FF6651}button[_ngcontent-%COMP%]{cursor:pointer;position:relative;outline:0;-webkit-print-color-adjust:exact;margin:.3125em;margin:var(--sb-margin, .3125em);padding:0;padding:var(--sb-padding, 0);min-width:4.125em;min-width:var(--sb-min-width, 4.125em);height:2.5em;height:var(--sb-height, 2.5em);color:#fff;color:var(--sb-color, #fff);background:var(--sb-background);font-size:13px;font-size:var(--sb-font-size, 13px);line-height:2.571em;line-height:var(--sb-line-height, 2.571em);border:var(--sb-border);border-radius:var(--sb-border-radius);transition:var(--sb-transition);box-shadow:var(--sb-box-shadow);text-shadow:var(--sb-text-shadow);overflow:var(--sb-overflow)}.sb-icon[_ngcontent-%COMP%], .sb-text[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sb-content[_ngcontent-%COMP%]{flex:1;display:flex;height:100%;width:100%;position:relative}.sb-text[_ngcontent-%COMP%]{flex:1;height:100%;white-space:nowrap;padding:0 .7em;padding:var(--sb-text-padding, 0 .7em);font-weight:700;font-weight:var(--sb-font-weight, bold)}.sb-icon[_ngcontent-%COMP%]{text-align:center;width:100%;height:100%;min-width:2em;font-size:1.2em;font-size:var(--sb-icon-size, 1.2em)}"],changeDetection:0}),$e})(),bt=(()=>{class $e{constructor(Pe){this._share=Pe,this._state$=new g.X({includedButtons:[],excludedButtons:[],userButtons:[],selectedButtons:[],expanded:!0,shownCount:Object.keys($).length}),this._configSub$=Mt.w0.EMPTY,this.theme=this._share.config.theme,this.showIcon=!0,this.showText=!1,this.opened=new e.EventEmitter,this.closed=new e.EventEmitter}ngOnInit(){this.state$=this._state$.pipe((0,Xt.U)(Pe=>{const Ve=Pe.includedButtons&&Pe.includedButtons.length?Pe.includedButtons:Pe.userButtons,mt=Pe.excludedButtons?Ve.filter(xn=>Pe.excludedButtons.indexOf(xn)<0):Ve,It=mt.slice(0,Pe.expanded?mt.length:Pe.shownCount);return{userButtons:mt,selectedButtons:It,expanded:Pe.expanded,shownCount:Pe.shownCount,moreIcon:Pe.moreIcon,lessIcon:Pe.lessIcon,moreAriaLabel:Pe.moreAriaLabel,lessAriaLabel:Pe.lessAriaLabel}})),this._configSub$=this._share.config$.subscribe(Pe=>{const mt=(Pe.include.length?Pe.include:Object.keys($)).filter(It=>Pe.exclude.indexOf(It)<0);this.updateState({userButtons:mt,expanded:!1,moreIcon:Pe.moreButtonIcon,lessIcon:Pe.lessButtonIcon,moreAriaLabel:Pe.moreButtonAriaLabel,lessAriaLabel:Pe.lessButtonAriaLabel})})}ngOnChanges(Pe){(Pe.include&&Pe.include.currentValue!==Pe.include.previousValue||Pe.exclude&&Pe.exclude.currentValue!==Pe.exclude.previousValue||Pe.show&&Pe.show.currentValue!==Pe.show.previousValue)&&this.updateState({includedButtons:this.include,excludedButtons:this.exclude,shownCount:this.show})}ngOnDestroy(){this._configSub$.unsubscribe(),this._state$.complete()}updateState(Pe){this._state$.next({...this._state$.value,...Pe})}}return $e.\u0275fac=function(Pe){return new(Pe||$e)(e.\u0275\u0275directiveInject(j))},$e.\u0275cmp=e.\u0275\u0275defineComponent({type:$e,selectors:[["share-buttons"]],inputs:{theme:"theme",include:"include",exclude:"exclude",show:"show",url:"url",title:"title",description:"description",image:"image",tags:"tags",autoSetMeta:"autoSetMeta",showIcon:"showIcon",showText:"showText",disabled:"disabled"},outputs:{opened:"opened",closed:"closed"},features:[e.\u0275\u0275NgOnChangesFeature],decls:2,vars:3,consts:[[3,"class",4,"ngIf"],[3,"button","theme","url","title","description","image","tags","autoSetMeta","showIcon","showText","disabled","opened","closed",4,"ngFor","ngForOf"],[3,"class","expanded","moreIcon","lessIcon","moreAriaLabel","lessAriaLabel","toggle",4,"ngIf"],[3,"button","theme","url","title","description","image","tags","autoSetMeta","showIcon","showText","disabled","opened","closed"],[3,"expanded","moreIcon","lessIcon","moreAriaLabel","lessAriaLabel","toggle"]],template:function(Pe,Ve){1&Pe&&(e.\u0275\u0275template(0,xt,3,5,"div",0),e.\u0275\u0275pipe(1,"async")),2&Pe&&e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(1,1,Ve.state$))},dependencies:[Ie,n.NgForOf,n.NgIf,zt,n.AsyncPipe],styles:["[_nghost-%COMP%]{display:inherit}.sb-group[_ngcontent-%COMP%], .sb-button[_ngcontent-%COMP%]{display:inline-flex;align-items:flex-start}.sb-group[_ngcontent-%COMP%]{flex-wrap:wrap}"],changeDetection:0}),$e})(),At=(()=>{class $e{static withConfig(Pe){return{ngModule:$e,providers:[{provide:P,useValue:Pe}]}}}return $e.\u0275fac=function(Pe){return new(Pe||$e)},$e.\u0275mod=e.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=e.\u0275\u0275defineInjector({imports:[dt,n.CommonModule,dt]}),$e})()},20502:(oe,x,i)=>{"use strict";i.d(x,{xr:()=>A,hx:()=>P});var e=i(94650);const n=typeof performance<"u"&&typeof performance.now<"u"&&"function"==typeof performance.mark&&"function"==typeof performance.measure&&("function"==typeof performance.clearMarks||"function"==typeof performance.clearMeasures),a=typeof PerformanceObserver<"u"&&typeof PerformanceObserver.prototype<"u"&&"function"==typeof PerformanceObserver.prototype.constructor,t="[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0);let l={},h={};const s=()=>n?performance.now():Date.now(),d=B=>{l[B]=void 0,h[B]&&(h[B]=void 0),n&&(t||performance.clearMeasures(B),performance.clearMarks(B))},p=B=>{if(n){if(t&&a){const V=new PerformanceObserver(X=>{h[B]=X.getEntries().find(re=>re.name===B),V.disconnect()});V.observe({entryTypes:["measure"]})}performance.mark(B)}l[B]=s()},u=(B,V)=>{try{const X=l[B];return n?(V||performance.mark(`${B}-end`),performance.measure(B,B,V||`${B}-end`),t?h[B]?h[B]:X?{duration:s()-X,startTime:X,entryType:"measure",name:B}:{}:performance.getEntriesByName(B).pop()||{}):X?{duration:s()-X,startTime:X,entryType:"measure",name:B}:{}}catch{return{}}finally{d(B),d(V||`${B}-end`)}};var v=i(36895);function y(B,V){1&B&&e.\u0275\u0275projection(0,0,["*ngIf","appearance  === 'custom-content'"])}const b=function(B,V,X,re,Q){return{"custom-content":B,circle:V,progress:X,"progress-dark":re,pulse:Q}};function S(B,V){if(1&B&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275template(1,y,1,0,"ng-content",2),e.\u0275\u0275elementEnd()),2&B){const X=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction5(5,b,"custom-content"===X.appearance,"circle"===X.appearance,"progress"===X.animation,"progress-dark"===X.animation,"pulse"===X.animation))("ngStyle",X.theme),e.\u0275\u0275attribute("aria-label",X.ariaLabel)("aria-valuetext",X.loadingText),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf","custom-content"===X.appearance)}}const E=["*"],D=new e.InjectionToken("ngx-skeleton-loader.config");let A=(()=>{class B{constructor(X){this.config=X;const{appearance:re="line",animation:Q="progress",theme:ae=null,loadingText:K="Loading...",count:k=1,ariaLabel:$="loading"}=X||{};this.appearance=re,this.animation=Q,this.theme=ae,this.loadingText=K,this.count=k,this.items=[],this.ariaLabel=$}ngOnInit(){p("NgxSkeletonLoader:Rendered"),p("NgxSkeletonLoader:Loaded"),this.validateInputValues()}validateInputValues(){/^\d+$/.test(`${this.count}`)||((0,e.isDevMode)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'count' a numeric value. Forcing default to \"1\"."),this.count=1),"custom-content"===this.appearance&&(0,e.isDevMode)()&&1!==this.count&&(console.error('`NgxSkeletonLoaderComponent` enforces elements with "custom-content" appearance as DOM nodes. Forcing "count" to "1".'),this.count=1),this.items.length=this.count;const X=["progress","progress-dark","pulse","false"];-1===X.indexOf(String(this.animation))&&((0,e.isDevMode)()&&console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'animation' as: ${X.join(", ")}. Forcing default to "progress".`),this.animation="progress"),-1===["circle","line","custom-content",""].indexOf(String(this.appearance))&&((0,e.isDevMode)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'appearance' as: circle or line or custom-content or empty string. Forcing default to \"''\"."),this.appearance=""),Boolean(this.config?.theme?.extendsFromRoot)&&null!==this.theme&&(this.theme={...this.config.theme,...this.theme})}ngOnChanges(X){["count","animation","appearance"].find(re=>X[re]&&(X[re].isFirstChange()||X[re].previousValue===X[re].currentValue))||this.validateInputValues()}ngAfterViewInit(){u("NgxSkeletonLoader:Rendered")}ngOnDestroy(){u("NgxSkeletonLoader:Loaded")}}return B.\u0275fac=function(X){return new(X||B)(e.\u0275\u0275directiveInject(D,8))},B.\u0275cmp=e.\u0275\u0275defineComponent({type:B,selectors:[["ngx-skeleton-loader"]],inputs:{count:"count",loadingText:"loadingText",appearance:"appearance",animation:"animation",ariaLabel:"ariaLabel",theme:"theme"},features:[e.\u0275\u0275NgOnChangesFeature],ngContentSelectors:E,decls:1,vars:1,consts:[["class","skeleton-loader","aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],["aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","0",1,"skeleton-loader",3,"ngClass","ngStyle"],[4,"ngIf"]],template:function(X,re){1&X&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275template(0,S,2,11,"div",0)),2&X&&e.\u0275\u0275property("ngForOf",re.items)},dependencies:[v.NgClass,v.NgForOf,v.NgIf,v.NgStyle],styles:['.skeleton-loader[_ngcontent-%COMP%]{box-sizing:border-box;overflow:hidden;position:relative;background:rgb(239,241,246) no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.skeleton-loader[_ngcontent-%COMP%]:after, .skeleton-loader[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.circle[_ngcontent-%COMP%]{width:40px;height:40px;margin:5px;border-radius:50%}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{transform:translateZ(0)}.skeleton-loader.progress[_ngcontent-%COMP%]:after, .skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:after, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.skeleton-loader.progress[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.skeleton-loader.pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}.skeleton-loader.custom-content[_ngcontent-%COMP%]{height:100%;background:none}@media (prefers-reduced-motion: reduce){.skeleton-loader.pulse[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%], .skeleton-loader.progress[_ngcontent-%COMP%]{animation:none}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%]{background-image:none}}@keyframes _ngcontent-%COMP%_progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}'],changeDetection:0}),B})(),P=(()=>{class B{static forRoot(X){return{ngModule:B,providers:[{provide:D,useValue:X}]}}}return B.\u0275fac=function(X){return new(X||B)},B.\u0275mod=e.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=e.\u0275\u0275defineInjector({imports:[v.CommonModule]}),B})()},68423:(oe,x,i)=>{"use strict";i.d(x,{Ro:()=>X,ef:()=>re,t2:()=>P});var e=i(94650),n=i(61135),a=i(77579),t=i(39300),l=i(82722),h=i(37340),s=i(36895),d=i(11481);const p=["overlay"];function u(Q,ae){1&Q&&e.\u0275\u0275element(0,"div")}function g(Q,ae){if(1&Q&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,u,1,0,"div",6),e.\u0275\u0275elementEnd()),2&Q){const K=e.\u0275\u0275nextContext(2);e.\u0275\u0275classMap(K.spinner.class),e.\u0275\u0275styleProp("color",K.spinner.color),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",K.spinner.divArray)}}function v(Q,ae){if(1&Q&&(e.\u0275\u0275element(0,"div",7),e.\u0275\u0275pipe(1,"safeHtml")),2&Q){const K=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("innerHTML",e.\u0275\u0275pipeBind1(1,1,K.template),e.\u0275\u0275sanitizeHtml)}}function y(Q,ae){if(1&Q&&(e.\u0275\u0275elementStart(0,"div",1,2),e.\u0275\u0275template(2,g,2,5,"div",3),e.\u0275\u0275template(3,v,2,3,"div",4),e.\u0275\u0275elementStart(4,"div",5),e.\u0275\u0275projection(5),e.\u0275\u0275elementEnd()()),2&Q){const K=e.\u0275\u0275nextContext();e.\u0275\u0275styleProp("background-color",K.spinner.bdColor)("z-index",K.spinner.zIndex)("position",K.spinner.fullScreen?"fixed":"absolute"),e.\u0275\u0275property("@.disabled",K.disableAnimation)("@fadeIn","in"),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!K.template),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",K.template),e.\u0275\u0275advance(1),e.\u0275\u0275styleProp("z-index",K.spinner.zIndex)}}const b=["*"],S={"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},D="primary";class A{constructor(ae){Object.assign(this,ae)}static create(ae){return!ae?.template&&(null==ae?.type||0===ae.type.length)&&console.warn('[ngx-spinner]: Property "type" is missed. Please, provide animation type to <ngx-spinner> component\n        and ensure css is added to angular.json file'),new A(ae)}}let P=(()=>{class Q{constructor(){this.spinnerObservable=new n.X(null)}getSpinner(K){return this.spinnerObservable.asObservable().pipe((0,t.h)(k=>k&&k.name===K))}show(K=D,k){return new Promise(($,j)=>{setTimeout(()=>{k&&Object.keys(k).length?(k.name=K,this.spinnerObservable.next(new A({...k,show:!0})),$(!0)):(this.spinnerObservable.next(new A({name:K,show:!0})),$(!0))},10)})}hide(K=D,k=10){return new Promise(($,j)=>{setTimeout(()=>{this.spinnerObservable.next(new A({name:K,show:!1})),$(!0)},k)})}}return Q.\u0275fac=function(K){return new(K||Q)},Q.\u0275prov=e.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();const B=new e.InjectionToken("NGX_SPINNER_CONFIG");let V=(()=>{class Q{constructor(K){this._sanitizer=K}transform(K){if(K)return this._sanitizer.bypassSecurityTrustHtml(K)}}return Q.\u0275fac=function(K){return new(K||Q)(e.\u0275\u0275directiveInject(d.DomSanitizer,16))},Q.\u0275pipe=e.\u0275\u0275definePipe({name:"safeHtml",type:Q,pure:!0}),Q})(),X=(()=>{class Q{constructor(K,k,$,j){this.spinnerService=K,this.changeDetector=k,this.elementRef=$,this.globalConfig=j,this.disableAnimation=!1,this.spinner=new A,this.ngUnsubscribe=new a.x,this.setDefaultOptions=()=>{const{type:R}=this.globalConfig??{};this.spinner=A.create({name:this.name,bdColor:this.bdColor,size:this.size,color:this.color,type:this.type??R,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=D,this.template=null,this.showSpinner=!1,this.divArray=[],this.divCount=0,this.show=!1}handleKeyboardEvent(K){this.spinnerDOM&&this.spinnerDOM.nativeElement&&(this.fullScreen||!this.fullScreen&&this.isSpinnerZone(K.target))&&(K.returnValue=!1,K.preventDefault())}initObservable(){this.spinnerService.getSpinner(this.name).pipe((0,l.R)(this.ngUnsubscribe)).subscribe(K=>{this.setDefaultOptions(),Object.assign(this.spinner,K),K.show&&this.onInputChange(),this.changeDetector.detectChanges()})}ngOnInit(){this.setDefaultOptions(),this.initObservable()}isSpinnerZone(K){return K===this.elementRef.nativeElement.parentElement||K.parentNode&&this.isSpinnerZone(K.parentNode)}ngOnChanges(K){for(const k in K)if(k){const $=K[k];if($.isFirstChange())return;typeof $.currentValue<"u"&&$.currentValue!==$.previousValue&&""!==$.currentValue&&(this.spinner[k]=$.currentValue,"showSpinner"===k&&($.currentValue?this.spinnerService.show(this.spinner.name,this.spinner):this.spinnerService.hide(this.spinner.name)),"name"===k&&this.initObservable())}}getClass(K,k){this.spinner.divCount=S[K],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map((j,R)=>R);let $="";switch(k.toLowerCase()){case"small":$="la-sm";break;case"medium":$="la-2x";break;case"large":$="la-3x"}return"la-"+K+" "+$}onInputChange(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}return Q.\u0275fac=function(K){return new(K||Q)(e.\u0275\u0275directiveInject(P),e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(B,8))},Q.\u0275cmp=e.\u0275\u0275defineComponent({type:Q,selectors:[["ngx-spinner"]],viewQuery:function(K,k){if(1&K&&e.\u0275\u0275viewQuery(p,5),2&K){let $;e.\u0275\u0275queryRefresh($=e.\u0275\u0275loadQuery())&&(k.spinnerDOM=$.first)}},hostBindings:function(K,k){1&K&&e.\u0275\u0275listener("keydown",function(j){return k.handleKeyboardEvent(j)},!1,e.\u0275\u0275resolveDocument)},inputs:{bdColor:"bdColor",size:"size",color:"color",type:"type",fullScreen:"fullScreen",name:"name",zIndex:"zIndex",template:"template",showSpinner:"showSpinner",disableAnimation:"disableAnimation"},features:[e.\u0275\u0275NgOnChangesFeature],ngContentSelectors:b,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(K,k){1&K&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275template(0,y,6,12,"div",0)),2&K&&e.\u0275\u0275property("ngIf",k.spinner.show)},dependencies:[s.NgForOf,s.NgIf,V],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,h.X$)("fadeIn",[(0,h.SB)("in",(0,h.oB)({opacity:1})),(0,h.eR)(":enter",[(0,h.oB)({opacity:0}),(0,h.jt)(300)]),(0,h.eR)(":leave",(0,h.jt)(200,(0,h.oB)({opacity:0})))])]},changeDetection:0}),Q})(),re=(()=>{class Q{static forRoot(K){return{ngModule:Q,providers:[{provide:B,useValue:K}]}}}return Q.\u0275fac=function(K){return new(K||Q)},Q.\u0275mod=e.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=e.\u0275\u0275defineInjector({imports:[s.CommonModule]}),Q})()},15861:(oe,x,i)=>{"use strict";function e(a,t,l,h,s,d,p){try{var u=a[d](p),g=u.value}catch(v){return void l(v)}u.done?t(g):Promise.resolve(g).then(h,s)}function n(a){return function(){var t=this,l=arguments;return new Promise(function(h,s){var d=a.apply(t,l);function p(g){e(d,h,s,p,u,"next",g)}function u(g){e(d,h,s,p,u,"throw",g)}p(void 0)})}}i.d(x,{Z:()=>n})},97582:(oe,x,i)=>{"use strict";function t(de,me){var q={};for(var se in de)Object.prototype.hasOwnProperty.call(de,se)&&me.indexOf(se)<0&&(q[se]=de[se]);if(null!=de&&"function"==typeof Object.getOwnPropertySymbols){var ve=0;for(se=Object.getOwnPropertySymbols(de);ve<se.length;ve++)me.indexOf(se[ve])<0&&Object.prototype.propertyIsEnumerable.call(de,se[ve])&&(q[se[ve]]=de[se[ve]])}return q}function l(de,me,q,se){var Ye,ve=arguments.length,Ee=ve<3?me:null===se?se=Object.getOwnPropertyDescriptor(me,q):se;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ee=Reflect.decorate(de,me,q,se);else for(var wt=de.length-1;wt>=0;wt--)(Ye=de[wt])&&(Ee=(ve<3?Ye(Ee):ve>3?Ye(me,q,Ee):Ye(me,q))||Ee);return ve>3&&Ee&&Object.defineProperty(me,q,Ee),Ee}function v(de,me,q,se){return new(q||(q=Promise))(function(Ee,Ye){function wt(nt){try{Ut(se.next(nt))}catch(Zt){Ye(Zt)}}function Wt(nt){try{Ut(se.throw(nt))}catch(Zt){Ye(Zt)}}function Ut(nt){nt.done?Ee(nt.value):function ve(Ee){return Ee instanceof q?Ee:new q(function(Ye){Ye(Ee)})}(nt.value).then(wt,Wt)}Ut((se=se.apply(de,me||[])).next())})}function V(de){return this instanceof V?(this.v=de,this):new V(de)}function X(de,me,q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ve,se=q.apply(de,me||[]),Ee=[];return ve=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),wt("next"),wt("throw"),wt("return",function Ye(yt){return function(ie){return Promise.resolve(ie).then(yt,Zt)}}),ve[Symbol.asyncIterator]=function(){return this},ve;function wt(yt,ie){se[yt]&&(ve[yt]=function(Ce){return new Promise(function(Ie,dt){Ee.push([yt,Ce,Ie,dt])>1||Wt(yt,Ce)})},ie&&(ve[yt]=ie(ve[yt])))}function Wt(yt,ie){try{!function Ut(yt){yt.value instanceof V?Promise.resolve(yt.value.v).then(nt,Zt):Fe(Ee[0][2],yt)}(se[yt](ie))}catch(Ce){Fe(Ee[0][3],Ce)}}function nt(yt){Wt("next",yt)}function Zt(yt){Wt("throw",yt)}function Fe(yt,ie){yt(ie),Ee.shift(),Ee.length&&Wt(Ee[0][0],Ee[0][1])}}function Q(de){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q,me=de[Symbol.asyncIterator];return me?me.call(de):(de=function E(de){var me="function"==typeof Symbol&&Symbol.iterator,q=me&&de[me],se=0;if(q)return q.call(de);if(de&&"number"==typeof de.length)return{next:function(){return de&&se>=de.length&&(de=void 0),{value:de&&de[se++],done:!de}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}(de),q={},se("next"),se("throw"),se("return"),q[Symbol.asyncIterator]=function(){return this},q);function se(Ee){q[Ee]=de[Ee]&&function(Ye){return new Promise(function(wt,Wt){!function ve(Ee,Ye,wt,Wt){Promise.resolve(Wt).then(function(Ut){Ee({value:Ut,done:wt})},Ye)}(wt,Wt,(Ye=de[Ee](Ye)).done,Ye.value)})}}}i.d(x,{FC:()=>X,KL:()=>Q,_T:()=>t,gn:()=>l,mG:()=>v,qq:()=>V}),"function"==typeof SuppressedError&&SuppressedError}},oe=>{oe(oe.s=67e3)}]);