1var J4=Object.create;var cy=Object.defineProperty,ej=Object.defineProperties,tj=Object.getOwnPropertyDescriptor,ij=Object.getOwnPropertyDescriptors,nj=Object.getOwnPropertyNames,rh=Object.getOwnPropertySymbols,rj=Object.getPrototypeOf,dy=Object.prototype.hasOwnProperty,AT=Object.prototype.propertyIsEnumerable;var IT=(t,n,e)=>n in t?cy(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,N=(t,n)=>{for(var e in n||={})dy.call(n,e)&&IT(t,e,n[e]);if(rh)for(var e of rh(n))AT.call(n,e)&&IT(t,e,n[e]);return t},re=(t,n)=>ej(t,ij(n));var xp=(t,n)=>{var e={};for(var i in t)dy.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&rh)for(var i of rh(t))n.indexOf(i)<0&&AT.call(t,i)&&(e[i]=t[i]);return e};var oh=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var oj=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of nj(n))!dy.call(t,r)&&r!==e&&cy(t,r,{get:()=>n[r],enumerable:!(i=tj(n,r))||i.enumerable});return t};var uy=(t,n,e)=>(e=t!=null?J4(rj(t)):{},oj(n||!t||!t.__esModule?cy(e,"default",{value:t,enumerable:!0}):e,t));var li=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(u){r(u)}},a=l=>{try{s(e.throw(l))}catch(u){r(u)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())});var BR=oh((URe,LR)=>{function Lw(t,n,e){var i,r,o,a,s;n==null&&(n=100);function l(){var g=Date.now()-a;g<n&&g>=0?i=setTimeout(l,n-g):(i=null,e||(s=t.apply(o,r),o=r=null))}var u=function(){o=this,r=arguments,a=Date.now();var g=e&&!i;return i||(i=setTimeout(l,n)),g&&(s=t.apply(o,r),o=r=null),s};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(s=t.apply(o,r),o=r=null,clearTimeout(i),i=null)},u}Lw.debounce=Lw;LR.exports=Lw});var b3=oh(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});var m3="fas",f3="euro-sign",h3=320,g3=512,gD=[8364,"eur","euro"],_3="f153",v3="M48.1 240c-.1 2.7-.1 5.3-.1 8l0 16c0 2.7 0 5.3 .1 8L32 272c-17.7 0-32 14.3-32 32s14.3 32 32 32l28.3 0C89.9 419.9 170 480 264 480l24 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-24 0c-57.9 0-108.2-32.4-133.9-80L256 336c17.7 0 32-14.3 32-32s-14.3-32-32-32l-143.8 0c-.1-2.6-.2-5.3-.2-8l0-16c0-2.7 .1-5.4 .2-8L256 240c17.7 0 32-14.3 32-32s-14.3-32-32-32l-125.9 0c25.7-47.6 76-80 133.9-80l24 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-24 0C170 32 89.9 92.1 60.3 176L32 176c-17.7 0-32 14.3-32 32s14.3 32 32 32l16.1 0z";wo.definition={prefix:m3,iconName:f3,icon:[h3,g3,gD,_3,v3]};wo.faEuroSign=wo.definition;wo.prefix=m3;wo.iconName=f3;wo.width=h3;wo.height=g3;wo.ligatures=gD;wo.unicode=_3;wo.svgPathData=v3;wo.aliases=gD});var y3=oh(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});var Or=b3();Eo.definition={prefix:Or.prefix,iconName:Or.iconName,icon:[Or.width,Or.height,Or.aliases,Or.unicode,Or.svgPathData]};Eo.faEuro=Eo.definition;Eo.prefix=Or.prefix;Eo.iconName=Or.iconName;Eo.width=Or.width;Eo.height=Or.height;Eo.ligatures=Or.aliases;Eo.unicode=Or.unicode;Eo.svgPathData=Or.svgPathData;Eo.aliases=Or.aliases});var qH=oh(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});var jH="fas",zH="hourglass",UH=384,GH=512,RD=[9203,62032,"hourglass-empty"],$H="f254",WH="M0 32C0 14.3 14.3 0 32 0L64 0 320 0l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l0 11c0 42.4-16.9 83.1-46.9 113.1L237.3 256l67.9 67.9c30 30 46.9 70.7 46.9 113.1l0 11c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0L64 512l-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l0-11c0-42.4 16.9-83.1 46.9-113.1L146.7 256 78.9 188.1C48.9 158.1 32 117.4 32 75l0-11C14.3 64 0 49.7 0 32zM96 64l0 11c0 25.5 10.1 49.9 28.1 67.9L192 210.7l67.9-67.9c18-18 28.1-42.4 28.1-67.9l0-11L96 64zm0 384l192 0 0-11c0-25.5-10.1-49.9-28.1-67.9L192 301.3l-67.9 67.9c-18 18-28.1 42.4-28.1 67.9l0 11z";Mo.definition={prefix:jH,iconName:zH,icon:[UH,GH,RD,$H,WH]};Mo.faHourglass=Mo.definition;Mo.prefix=jH;Mo.iconName=zH;Mo.width=UH;Mo.height=GH;Mo.ligatures=RD;Mo.unicode=$H;Mo.svgPathData=WH;Mo.aliases=RD});function hy(t,n){return Object.is(t,n)}var hn=null,ah=!1,gy=1,Sr=Symbol("SIGNAL");function St(t){let n=hn;return hn=t,n}function _y(){return hn}var cd={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function dd(t){if(ah)throw new Error("");
1if(hn===null)return;hn.consumerOnSignalRead(t);let n=hn.nextProducerIndex++;if(uh(hn),n<hn.producerNode.length&&hn.producerNode[n]!==t&&wp(hn)){let e=hn.producerNode[n];dh(e,hn.producerIndexOfThis[n])}hn.producerNode[n]!==t&&(hn.producerNode[n]=t,hn.producerIndexOfThis[n]=wp(hn)?OT(t,hn,n):0),hn.producerLastReadVersion[n]=t.version}function kT(){gy++}function vy(t){if(!(wp(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===gy)){if(!t.producerMustRecompute(t)&&!ch(t)){fy(t);return}t.producerRecomputeValue(t),fy(t)}}function by(t){if(t.liveConsumerNode===void 0)return;let n=ah;ah=!0;try{for(let e of t.liveConsumerNode)e.dirty||aj(e)}finally{ah=n}}function yy(){return hn?.consumerAllowSignalWrites!==!1}function aj(t){t.dirty=!0,by(t),t.consumerMarkedDirty?.(t)}function fy(t){t.dirty=!1,t.lastCleanEpoch=gy}function Ep(t){return t&&(t.nextProducerIndex=0),St(t)}function lh(t,n){if(St(n),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(wp(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)dh(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ch(t){uh(t);for(let n=0;n<t.producerNode.length;n++){let e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(vy(e),i!==e.version))return!0}return!1}function Dp(t){if(uh(t),wp(t))for(let n=0;n<t.producerNode.length;n++)dh(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function OT(t,n,e){if(PT(t),t.liveConsumerNode.length===0&&NT(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=OT(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(n)-1}function dh(t,n){if(PT(t),t.liveConsumerNode.length===1&&NT(t))for(let i=0;i<t.producerNode.length;i++)dh(t.producerNode[i],t.producerIndexOfThis[i]);let e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){let i=t.liveConsumerIndexOfThis[n],r=t.liveConsumerNode[n];uh(r),r.producerIndexOfThis[i]=n}}function wp(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function uh(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function PT(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function NT(t){return t.producerNode!==void 0}function ph(t,n){let e=Object.create(sj);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(vy(e),dd(e),e.value===sh)throw e.error;return e.value};return i[Sr]=e,i}var py=Symbol("UNSET"),my=Symbol("COMPUTING"),sh=Symbol("ERRORED"),sj=re(N({},cd),{value:py,dirty:!0,error:null,equal:hy,kind:"computed",producerMustRecompute(t){return t.value===py||t.value===my},producerRecomputeValue(t){if(t.value===my)throw new Error("Detected cycle in computations.");let n=t.value;t.value=my;let e=Ep(t),i,r=!1;try{i=t.computation(),St(null),r=n!==py&&n!==sh&&i!==sh&&t.equal(n,i)}catch(o){i=sh,t.error=o}finally{lh(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function lj(){throw new Error}var RT=lj;function FT(t){RT(t)}function Cy(t){RT=t}var cj=null;function Sy(t,n){let e=Object.create(mh);e.value=t,n!==void 0&&(e.equal=n);let i=()=>(dd(e),e.value);return i[Sr]=e,i}function ud(t,n){yy()||FT(t),t.equal(t.value,n)||(t.value=n,dj(t))}function xy(t,n){yy()||FT(t),ud(t,n(t.value))}var mh=re(N({},cd),{equal:hy,value:void 0,kind:"signal"});function dj(t){t.version++,kT(),by(t),cj?.()}function wy(t){let n=St(null);try{return t()}finally{St(n)}}var Ey;function Tp(){return Ey}function ms(t){let n=Ey;return Ey=t,n}var fh=Symbol("NotFound");function st(t){return typeof t=="function"}function Fa(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var hh=Fa(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: 2${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(` 3 `)}`:"",this.name="UnsubscriptionError",this.errors=e});function fs(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var Ie=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}
vendor: 19,733 bytes, line 3
3unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(st(i))try{i()}catch(o){n=o instanceof hh?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{LT(o)}catch(a){n=n??[],a instanceof hh?n=[...n,...a.errors]:n.push(a)}}if(n)throw new hh(n)}}add(n){var e;if(n&&n!==this)if(this.closed)LT(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&fs(e,n)}remove(n){let{_finalizers:e}=this;e&&fs(e,n),n instanceof t&&n._removeParent(this)}};Ie.EMPTY=(()=>{let t=new Ie;return t.closed=!0,t})();var Dy=Ie.EMPTY;function gh(t){return t instanceof Ie||t&&"closed"in t&&st(t.remove)&&st(t.add)&&st(t.unsubscribe)}function LT(t){st(t)?t():t.unsubscribe()}var ea={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var pd={setTimeout(t,n,...e){let{delegate:i}=pd;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=pd;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function _h(t){pd.setTimeout(()=>{let{onUnhandledError:n}=ea;if(n)n(t);else throw t})}function ta(){}var BT=Ty("C",void 0,void 0);function HT(t){return Ty("E",void 0,t)}function VT(t){return Ty("N",t,void 0)}function Ty(t,n,e){return{kind:t,value:n,error:e}}var Xl=null;function md(t){if(ea.useDeprecatedSynchronousErrorHandling){let n=!Xl;if(n&&(Xl={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=Xl;if(Xl=null,e)throw i}}else t()}function jT(t){ea.useDeprecatedSynchronousErrorHandling&&Xl&&(Xl.errorThrown=!0,Xl.error=t)}var hs=class extends Ie{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,gh(n)&&n.add(this)):this.destination=gj}static create(n,e,i){return new ia(n,e,i)}next(n){this.isStopped?Iy(VT(n),this):this._next(n)}error(n){this.isStopped?Iy(HT(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Iy(BT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},fj=Function.prototype.bind;function My(t,n){return fj.call(t,n)}var Ay=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){vh(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){vh(i)}else vh(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){vh(e)}}},ia=class extends hs{constructor(n,e,i){super();let r;if(st(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&ea.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&My(n.next,o),error:n.error&&My(n.error,o),complete:n.complete&&My(n.complete,o)}):r=n}this.destination=new Ay(r)}};function vh(t){ea.useDeprecatedSynchronousErrorHandling?jT(t):_h(t)}function hj(t){throw t}function Iy(t,n){let{onStoppedNotification:e}=ea;e&&pd.setTimeout(()=>e(t,n))}var gj={closed:!0,next:ta,error:hj,complete:ta};var fd=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Un(t){return t}function ky(...t){return Oy(t)}function Oy(t){return t.length===0?Un:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var je=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=vj(e)?e:new ia(e,i,r);return md(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=zT(i),new i((r,o)=>{let a=new ia({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[fd](){return this}pipe(...e){return Oy(e)(this)}toPromise(e){return e=zT(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function zT(t){var n;return(n=t??ea.Promise)!==null&&n!==void 0?n:Promise}function _j(t){return t&&st(t.next)&&st(t.error)&&st(t.complete)}function vj(t){return t&&t instanceof hs||_j(t)&&gh(t)}function Py(t){return st(t?.lift)}function Ke(t){return n=>{if(Py(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(t,n,e,i,r){return new Ny(t,n,e,i,r)}var Ny=class extends hs{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function hd(){return Ke((t,n)=>{let e=null;t._refCount++;let i=He(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var gd=class extends je{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Py(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Ie;let e=this.getSubject();n.add(this.source.subscribe(He(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Ie.EMPTY)}return n}refCount(){return hd()(this)}};var UT=Fa(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var G=(()=>{class t extends je{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new _d(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new UT}next(e){md(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){md(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){md(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:i,isStopped:r,observers:o}=this;return i||r?Dy:(this.currentObservers=null,o.push(e),new Ie(()=>{this.currentObservers=null,fs(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new je;return e.source=this,e}}return t.create=(n,e)=>new _d(n,e),t})(),_d=class extends G{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Dy}};var Gt=class extends G{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var Mp={now(){return(Mp.delegate||Date).now()},delegate:void 0};var Io=class extends G{constructor(n=1/0,e=1/0,i=Mp){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;a<o.length&&!n.closed;a+=i?1:2)n.next(o[a]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){let{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*n;if(n<1/0&&o<i.length&&i.splice(0,i.length-o),!r){let a=e.now(),s=0;for(let l=1;l<i.length&&i[l]<=a;l+=2)s=l;s&&i.splice(0,s+1)}}};var bh=class extends Ie{constructor(n,e){super()}schedule(n,e=0){return this}};var Ip={setInterval(t,n,...e){let{delegate:i}=Ip;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){let{delegate:n}=Ip;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};var yh=class extends bh{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return Ip.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return e;e!=null&&Ip.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(n,e);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let i=!1,r;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,fs(i,this),n!=null&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}};var vd=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};vd.now=Mp.now;var Ch=class extends vd{constructor(n,e=vd.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var ro=new Ch(yh),GT=ro;var ht=new je(t=>t.complete());function Sh(t){return t&&st(t.schedule)}function Ry(t){return t[t.length-1]}function nl(t){return st(Ry(t))?t.pop():void 0}function Ao(t){return Sh(Ry(t))?t.pop():void 0}function $T(t,n){return typeof Ry(t)=="number"?t.pop():n}function qT(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(g){try{u(i.next(g))}catch(v){a(v)}}function l(g){try{u(i.throw(g))}catch(v){a(v)}}function u(g){g.done?o(g.value):r(g.value).then(s,l)}u((i=i.apply(t,n||[])).next())})}function WT(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Jl(t){return this instanceof Jl?(this.v=t,this):new Jl(t)}function YT(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(C){return function(S){return Promise.resolve(S).then(C,v)}}function s(C,S){i[C]&&(r[C]=function(D){return new Promise(function(O,V){o.push([C,D,O,V])>1||l(C,D)})},S&&(r[C]=S(r[C])))}function l(C,S){try{u(i[C](S))}catch(D){w(o[0][3],D)}}function u(C){C.value instanceof Jl?Promise.resolve(C.value.v).then(g,v):w(o[0][2],C)}function g(C){l("next",C)}function v(C){l("throw",C)}function w(C,S){C(S),o.shift(),o.length&&l(o[0][0],o[0][1])}}function KT(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof WT=="function"?WT(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(u){o({value:u,done:s})},a)}}var bd=t=>t&&typeof t.length=="number"&&typeof t!="function";function xh(t){return st(t?.then)}function wh(t){return st(t[fd])}function Eh(t){return Symbol.asyncIterator&&st(t?.[Symbol.asyncIterator])}function Dh(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function bj(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Th=bj();function Mh(t){return st(t?.[Th])}function Ih(t){return YT(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield Jl(e.read());if(r)return yield Jl(void 0);yield yield Jl(i)}}finally{e.releaseLock()}})}function Ah(t){return st(t?.getReader)}function yt(t){if(t instanceof je)return t;if(t!=null){if(wh(t))return yj(t);if(bd(t))return Cj(t);if(xh(t))return Sj(t);if(Eh(t))return QT(t);if(Mh(t))return xj(t);if(Ah(t))return wj(t)}throw Dh(t)}function yj(t){return new je(n=>{let e=t[fd]();if(st(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Cj(t){return new je(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}function Sj(t){return new je(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,_h)})}function xj(t){return new je(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function QT(t){return new je(n=>{Ej(t,n).catch(e=>n.error(e))})}function wj(t){return QT(Ih(t))}function Ej(t,n){var e,i,r,o;return qT(this,void 0,void 0,function*(){try{for(e=KT(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function gn(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function kh(t,n=0){return Ke((e,i)=>{e.subscribe(He(i,r=>gn(i,t,()=>i.next(r),n),()=>gn(i,t,()=>i.complete(),n),r=>gn(i,t,()=>i.error(r),n)))})}function Oh(t,n=0){return Ke((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function ZT(t,n){return yt(t).pipe(Oh(n),kh(n))}function XT(t,n){return yt(t).pipe(Oh(n),kh(n))}function JT(t,n){return new je(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function eM(t,n){return new je(e=>{let i;return gn(e,n,()=>{i=t[Th](),gn(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>st(i?.return)&&i.return()})}function Ph(t,n){if(!t)throw new Error("Iterable cannot be null");return new je(e=>{gn(e,n,()=>{let i=t[Symbol.asyncIterator]();gn(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function tM(t,n){return Ph(Ih(t),n)}function iM(t,n){if(t!=null){if(wh(t))return ZT(t,n);if(bd(t))return JT(t,n);if(xh(t))return XT(t,n);if(Eh(t))return Ph(t,n);if(Mh(t))return eM(t,n);if(Ah(t))return tM(t,n)}throw Dh(t)}function mi(t,n){return n?iM(t,n):yt(t)}function j(...t){let n=Ao(t);return mi(t,n)}function Nr(t,n){let e=st(t)?t:()=>t,i=r=>r.error(e());return new je(n?r=>n.schedule(i,0,r):i)}function Nh(t){return!!t&&(t instanceof je||st(t.lift)&&st(t.subscribe))}var na=Fa(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ec(t,n){let e=typeof n=="object";return new Promise((i,r)=>{let o=new ia({next:a=>{i(a),o.unsubscribe()},error:r,complete:()=>{e?i(n.defaultValue):r(new na)}});t.subscribe(o)})}function Rh(t){return t instanceof Date&&!isNaN(t)}var Dj=Fa(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function Fh(t,n){let{first:e,each:i,with:r=Tj,scheduler:o=n??ro,meta:a=null}=Rh(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Ke((s,l)=>{let u,g,v=null,w=0,C=S=>{g=gn(l,o,()=>{try{u.unsubscribe(),yt(r({meta:a,lastValue:v,seen:w})).subscribe(l)}catch(D){l.error(D)}},S)};u=s.subscribe(He(l,S=>{g?.unsubscribe(),w++,l.next(v=S),i>0&&C(i)},void 0,void 0,()=>{g?.closed||g?.unsubscribe(),v=null})),!w&&C(e!=null?typeof e=="number"?e:+e-o.now():i)})}function Tj(t){throw new Dj(t)}function F(t,n){return Ke((e,i)=>{let r=0;e.subscribe(He(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:Mj}=Array;function Ij(t,n){return Mj(n)?t(...n):t(n)}function yd(t){return F(n=>Ij(t,n))}var{isArray:Aj}=Array,{getPrototypeOf:kj,prototype:Oj,keys:Pj}=Object;function Lh(t){if(t.length===1){let n=t[0];if(Aj(n))return{args:n,keys:null};if(Nj(n)){let e=Pj(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function Nj(t){return t&&typeof t=="object"&&kj(t)===Oj}function Bh(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function ra(...t){let n=Ao(t),e=nl(t),{args:i,keys:r}=Lh(t);if(i.length===0)return mi([],n);let o=new je(Rj(i,n,r?a=>Bh(r,a):Un));return e?o.pipe(yd(e)):o}function Rj(t,n,e=Un){return i=>{nM(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l<r;l++)nM(n,()=>{let u=mi(t[l],n),g=!1;u.subscribe(He(i,v=>{o[l]=v,g||(g=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function nM(t,n,e){t?gn(e,t,n):n()}function rM(t,n,e,i,r,o,a,s){let l=[],u=0,g=0,v=!1,w=()=>{v&&!l.length&&!u&&n.complete()},C=D=>u<i?S(D):l.push(D),S=D=>{o&&n.next(D),u++;let O=!1;yt(e(D,g++)).subscribe(He(n,V=>{r?.(V),o?C(V):n.next(V)},()=>{O=!0},void 0,()=>{if(O)try{for(u--;l.length&&u<i;){let V=l.shift();a?gn(n,a,()=>S(V)):S(V)}w()}catch(V){n.error(V)}}))};return t.subscribe(He(n,C,()=>{v=!0,w()}
3)),()=>{s?.()}}function ci(t,n,e=1/0){return st(n)?ci((i,r)=>F((o,a)=>n(i,o,r,a))(yt(t(i,r))),e):(typeof n=="number"&&(e=n),Ke((i,r)=>rM(i,r,t,e)))}function La(t=1/0){return ci(Un,t)}function oM(){return La(1)}function ko(...t){return oM()(mi(t,Ao(t)))}function Oo(t){return new je(n=>{yt(t()).subscribe(n)})}function _n(...t){let n=nl(t),{args:e,keys:i}=Lh(t),r=new je(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,u=a;for(let g=0;g<a;g++){let v=!1;yt(e[g]).subscribe(He(o,w=>{v||(v=!0,u--),s[g]=w},()=>l--,void 0,()=>{(!l||!v)&&(u||o.next(i?Bh(i,s):s),o.complete())}))}});return n?r.pipe(yd(n)):r}var Fj=["addListener","removeListener"],Lj=["addEventListener","removeEventListener"],Bj=["on","off"];function xr(t,n,e,i){if(st(e)&&(i=e,e=void 0),i)return xr(t,n,e).pipe(yd(i));let[r,o]=jj(t)?Lj.map(a=>s=>t[a](n,s,e)):Hj(t)?Fj.map(aM(t,n)):Vj(t)?Bj.map(aM(t,n)):[];if(!r&&bd(t))return ci(a=>xr(a,n,e))(yt(t));if(!r)throw new TypeError("Invalid event target");return new je(a=>{let s=(...l)=>a.next(1<l.length?l:l[0]);return r(s),()=>o(s)})}function aM(t,n){return e=>i=>t[e](n,i)}function Hj(t){return st(t.addListener)&&st(t.removeListener)}function Vj(t){return st(t.on)&&st(t.off)}function jj(t){return st(t.addEventListener)&&st(t.removeEventListener)}function Po(t=0,n,e=GT){let i=-1;return n!=null&&(Sh(n)?e=n:i=n),new je(r=>{let o=Rh(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function Fy(t=0,n=ro){return t<0&&(t=0),Po(t,t,n)}function ji(...t){let n=Ao(t),e=$T(t,1/0),i=t;return i.length?i.length===1?yt(i[0]):La(e)(mi(i,n)):ht}var Ly=new je(ta);var{isArray:zj}=Array;function Hh(t){return t.length===1&&zj(t[0])?t[0]:t}function Ue(t,n){return Ke((e,i)=>{let r=0;e.subscribe(He(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Vh(...t){return t=Hh(t),t.length===1?yt(t[0]):new je(Uj(t))}function Uj(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i<t.length;i++)e.push(yt(t[i]).subscribe(He(n,r=>{if(e){for(let o=0;o<e.length;o++)o!==i&&e[o].unsubscribe();e=null}n.next(r)})))}}function Cd(...t){let n=nl(t),e=Hh(t);return e.length?new je(i=>{let r=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{r=o=null});for(let a=0;!i.closed&&a<e.length;a++)yt(e[a]).subscribe(He(i,s=>{if(r[a].push(s),r.every(l=>l.length)){let l=r.map(u=>u.shift());i.next(n?n(...l):l),r.some((u,g)=>!u.length&&o[g])&&i.complete()}},()=>{o[a]=!0,!r[a].length&&i.complete()}));return()=>{r=o=null}}):ht}function sM(t){return Ke((n,e)=>{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let u=r;r=null,e.next(u)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe(He(e,u=>{i=!0,r=u,o||yt(t(u)).subscribe(o=He(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function Sd(t,n=ro){return sM(()=>Po(t,n))}function By(t,...n){var e,i;let r=(e=Ao(n))!==null&&e!==void 0?e:ro,o=(i=n[0])!==null&&i!==void 0?i:null,a=n[1]||1/0;return Ke((s,l)=>{let u=[],g=!1,v=S=>{let{buffer:D,subs:O}=S;O.unsubscribe(),fs(u,S),l.next(D),g&&w()},w=()=>{if(u){let S=new Ie;l.add(S);let O={buffer:[],subs:S};u.push(O),gn(S,r,()=>v(O),t)}};o!==null&&o>=0?gn(l,r,w,o,!0):g=!0,w();let C=He(l,S=>{let D=u.slice();for(let O of D){let{buffer:V}=O;V.push(S),a<=V.length&&v(O)}},()=>{for(;u?.length;)l.next(u.shift().buffer);C?.unsubscribe(),l.complete(),l.unsubscribe()},void 0,()=>u=null);s.subscribe(C)})}function Ae(t){return Ke((n,e)=>{let i=null,r=!1,o;i=n.subscribe(He(e,void 0,void 0,a=>{o=yt(t(a,Ae(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function lM(t,n,e,i,r){return(o,a)=>{let s=e,l=n,u=0;o.subscribe(He(a,g=>{let v=u++;l=s?t(l,g,v):(s=!0,g),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function Ba(t,n){return st(n)?ci(t,n,1):ci(t,1)}function rl(t,n=ro){return Ke((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let u=o;o=null,i.next(u)}};function l(){let u=a+t,g=n.now();if(g<u){r=this.schedule(void 0,u-g),i.add(r);return}s()}e.subscribe(He(i,u=>{o=u,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function ol(t){return Ke((n,e)=>{let i=!1;n.subscribe(He(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}
3))})}function Et(t){return t<=0?()=>ht:Ke((n,e)=>{let i=0;n.subscribe(He(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function cM(){return Ke((t,n)=>{t.subscribe(He(n,ta))})}function dM(t){return F(()=>t)}function Hy(t,n){return n?e=>ko(n.pipe(Et(1),cM()),e.pipe(Hy(t))):ci((e,i)=>yt(t(e,i)).pipe(Et(1),dM(e)))}function Ap(t,n=ro){let e=Po(t,n);return Hy(()=>e)}function rr(t,n=Un){return t=t??Gj,Ke((e,i)=>{let r,o=!0;e.subscribe(He(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function Gj(t,n){return t===n}function jh(t=$j){return Ke((n,e)=>{let i=!1;n.subscribe(He(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function $j(){return new na}function Vy(...t){return n=>ko(n,j(...t))}function zh(t,n){return n?e=>e.pipe(zh((i,r)=>yt(t(i,r)).pipe(F((o,a)=>n(i,o,r,a))))):Ke((e,i)=>{let r=0,o=null,a=!1;e.subscribe(He(i,s=>{o||(o=He(i,void 0,()=>{o=null,a&&i.complete()}),yt(t(s,r++)).subscribe(o))},()=>{a=!0,!o&&i.complete()}))})}function oo(t){return Ke((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Rr(t,n){let e=arguments.length>=2;return i=>i.pipe(t?Ue((r,o)=>t(r,o,i)):Un,Et(1),e?ol(n):jh(()=>new na))}function xd(t){return t<=0?()=>ht:Ke((n,e)=>{let i=[];n.subscribe(He(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function jy(t,n){let e=arguments.length>=2;return i=>i.pipe(t?Ue((r,o)=>t(r,o,i)):Un,xd(1),e?ol(n):jh(()=>new na))}function Uh(){return Ke((t,n)=>{let e,i=!1;t.subscribe(He(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function zy(t,n){return Ke(lM(t,n,arguments.length>=2,!0))}function tc(t={}){let{connector:n=()=>new G,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,u=0,g=!1,v=!1,w=()=>{s?.unsubscribe(),s=void 0},C=()=>{w(),a=l=void 0,g=v=!1},S=()=>{let D=a;C(),D?.unsubscribe()};return Ke((D,O)=>{u++,!v&&!g&&w();let V=l=l??n();O.add(()=>{u--,u===0&&!v&&!g&&(s=Uy(S,r))}),V.subscribe(O),!a&&u>0&&(a=new ia({next:Q=>V.next(Q),error:Q=>{v=!0,w(),s=Uy(C,e,Q),V.error(Q)},complete:()=>{g=!0,w(),s=Uy(C,i),V.complete()}}),yt(D).subscribe(a))})(o)}}function Uy(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new ia({next:()=>{i.unsubscribe(),t()}});return yt(n(...e)).subscribe(i)}function Gh(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,tc({connector:()=>new Io(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function wd(t){return Ue((n,e)=>t<=e)}function Yt(...t){let n=Ao(t);return Ke((e,i)=>{(n?ko(t,e,n):ko(t,e)).subscribe(i)})}function Qt(t,n){return Ke((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(He(i,l=>{r?.unsubscribe();let u=0,g=o++;yt(t(l,g)).subscribe(r=He(i,v=>i.next(n?n(l,v,g,u++):v),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function We(t){return Ke((n,e)=>{yt(t).subscribe(He(e,()=>e.complete(),ta)),!e.closed&&n.subscribe(e)})}function Gy(t,n=!1){return Ke((e,i)=>{let r=0;e.subscribe(He(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function jt(t,n,e){let i=st(t)||n||e?{next:t,error:n,complete:e}:t;return i?Ke((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(He(o,l=>{var u;(u=i.next)===null||u===void 0||u.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var u;s=!1,(u=i.error)===null||u===void 0||u.call(i,l),o.error(l)},()=>{var l,u;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(u=i.finalize)===null||u===void 0||u.call(i)}))}):Un}function kp(...t){let n=nl(t);return Ke((e,i)=>{let r=t.length,o=new Array(r),a=t.map(()=>!1),s=!1;for(let l=0;l<r;l++)yt(t[l]).subscribe(He(i,u=>{o[l]=u,!s&&!a[l]&&(a[l]=!0,(s=a.every(Un))&&(a=null))},ta));e.subscribe(He(i,l=>{if(s){let u=[l,...o];i.next(n?n(...u):u)}}))})}var Ky={JSACTION:"jsaction"},Qy={JSACTION:"__jsaction",OWNER:"__owner"},fM={};function Wj(t){return t[Qy.JSACTION]}function uM(t,n){t[Qy.JSACTION]=n}function qj(t){return fM[t]}function Yj(t,n){fM[t]=n}var rt={CLICK:"click",CLICKMOD:"clickmod",DBLCLICK:"dblclick",FOCUS:"focus",FOCUSIN:"focusin",BLUR:"blur",FOCUSOUT:"focusout",SUBMIT:"submit",KEYDOWN:"keydown",KEYPRESS:"keypress",KEYUP:"keyup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",ERROR:"error",LOAD:"load",TOUCHSTART:"touchstart",TOUCHEND:"touchend",TOUCHMOVE:"touchmove",TOGGLE:"toggle"},Kj=[rt.MOUSEENTER,rt.MOUSELEAVE,"pointerenter","pointerleave"],zEe=[rt.CLICK,rt.DBLCLICK,rt.FOCUSIN,rt.FOCUSOUT,rt.KEYDOWN,rt.KEYUP,rt.KEYPRESS,rt.MOUSEOVER,rt.MOUSEOUT,rt.SUBMIT,rt.TOUC
3HSTART,rt.TOUCHEND,rt.TOUCHMOVE,"touchcancel","auxclick","change","compositionstart","compositionupdate","compositionend","beforeinput","input","select","copy","cut","paste","mousedown","mouseup","wheel","contextmenu","dragover","dragenter","dragleave","drop","dragstart","dragend","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","gotpointercapture","lostpointercapture","ended","loadedmetadata","pagehide","pageshow","visibilitychange","beforematch"],Qj=[rt.FOCUS,rt.BLUR,rt.ERROR,rt.LOAD,rt.TOGGLE],Zy=t=>Qj.indexOf(t)>=0;function Zj(t){return t===rt.MOUSEENTER?rt.MOUSEOVER:t===rt.MOUSELEAVE?rt.MOUSEOUT:t===rt.POINTERENTER?rt.POINTEROVER:t===rt.POINTERLEAVE?rt.POINTEROUT:t}function Xj(t,n,e,i){let r=!1;Zy(n)&&(r=!0);let o=typeof i=="boolean"?{capture:r,passive:i}:r;return t.addEventListener(n,e,o),{eventType:n,handler:e,capture:r,passive:i}}function Jj(t,n){if(t.removeEventListener){let e=typeof n.passive=="boolean"?{capture:n.capture}:n.capture;t.removeEventListener(n.eventType,n.handler,e)}else t.detachEvent&&t.detachEvent(`on${n.eventType}`,n.handler)}function ez(t){t.preventDefault?t.preventDefault():t.returnValue=!1}var pM=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent);function tz(t){return t.which===2||t.which==null&&t.button===4}function iz(t){return pM&&t.metaKey||!pM&&t.ctrlKey||tz(t)||t.shiftKey}function nz(t,n,e){let i=t.relatedTarget;return(t.type===rt.MOUSEOVER&&n===rt.MOUSEENTER||t.type===rt.MOUSEOUT&&n===rt.MOUSELEAVE||t.type===rt.POINTEROVER&&n===rt.POINTERENTER||t.type===rt.POINTEROUT&&n===rt.POINTERLEAVE)&&(!i||i!==e&&!e.contains(i))}function rz(t,n){let e={};for(let i in t){if(i==="srcElement"||i==="target")continue;let r=i,o=t[r];typeof o!="function"&&(e[r]=o)}return t.type===rt.MOUSEOVER?e.type=rt.MOUSEENTER:t.type===rt.MOUSEOUT?e.type=rt.MOUSELEAVE:t.type===rt.POINTEROVER?e.type=rt.POINTERENTER:e.type=rt.POINTERLEAVE,e.target=e.srcElement=n,e.bubbles=!1,e._originalEvent=t,e}var oz=typeof navigator<"u"&&/iPhone|iPad|iPod/.test(navigator.userAgent),Yh=class{element;handlerInfos=[];constructor(n){this.element=n}addEventListener(n,e,i){oz&&(this.element.style.cursor="pointer"),this.handlerInfos.push(Xj(this.element,n,e(this.element),i))}cleanUp(){for(let n=0;n<this.handlerInfos.length;n++)Jj(this.element,this.handlerInfos[n]);this.handlerInfos=[]}},az={EVENT_ACTION_SEPARATOR:":"};function al(t){return t.eventType}function Xy(t,n){t.eventType=n}function Wh(t){return t.event}function hM(t,n){t.event=n}function gM(t){return t.targetElement}function _M(t,n){t.targetElement=n}function vM(t){return t.eic}function sz(t,n){t.eic=n}function lz(t){return t.timeStamp}function cz(t,n){t.timeStamp=n}function qh(t){return t.eia}function bM(t,n,e){t.eia=[n,e]}function $y(t){t.eia=void 0}function $h(t){return t[1]}function dz(t){return t.eirp}function yM(t,n){t.eirp=n}function CM(t){return t.eir}function SM(t,n){t.eir=n}function xM(t){return{eventType:t.eventType,event:t.event,targetElement:t.targetElement,eic:t.eic,eia:t.eia,timeStamp:t.timeStamp,eirp:t.eirp,eiack:t.eiack,eir:t.eir}}function uz(t,n,e,i,r,o,a,s){return{eventType:t,event:n,targetElement:e,eic:i,timeStamp:r,eia:o,eirp:a,eiack:s}}var Wy=class t{eventInfo;constructor(n){this.eventInfo=n}getEventType(){return al(this.eventInfo)}setEventType(n){Xy(this.eventInfo,n)}getEvent(){return Wh(this.eventInfo)}setEvent(n){hM(this.eventInfo,n)}getTargetElement(){return gM(this.eventInfo)}setTargetElement(n){_M(this.eventInfo,n)}getContainer(){return vM(this.eventInfo)}setContainer(n){sz(this.eventInfo,n)}getTimestamp(){return lz(this.eventInfo)}setTimestamp(n){cz(this.eventInfo,n)}getAction(){let n=qh(this.eventInfo);if(n)return{name:n[0],element:n[1]}}setAction(n){if(!n){$y(this.eventInfo);return}bM(this.eventInfo,n.name,n.element)}getIsReplay(){return dz(this.eventInfo)}setIsReplay(n){yM(this.eventInfo,n)}getResolved(){return CM(this.eventInfo)}setResolved(n){SM(this.eventInfo,n)}clone(){return new t(xM(this.eventInfo))}},pz={},mz=/\s*;\s*/,fz=rt.CLICK,qy=class{a11yClickSupport=!1;clickModSupport=!0;syntheticMouseEventSupport;updateEventInfoForA11yClick=void 0;preventDefaultForA11yClick=void 0;populateClickOnlyAction=void 0;constructor({syntheticMouseEventSupport:n=!1,clickModSupport:e=!0}={}){this.syntheticMouseEventSupport=n,this.clickModSupport=e}resolveEventType(n){this.clickModSupport&&al(n)===rt.CLICK&&iz(Wh(n))?Xy(n,rt.CLICKMOD):this.a11yClickSupport&&this.updateEventInfoForA11yClick(n)}resolveAction(n){CM(n)||(this.populateAction(n,gM(n)),SM(n,!0))}resolveParentAction(n){let e=qh(n),i=e&&$h(e);$y(n);let r=i&&this.getParentNode(i);r&&this.populateAction(n,r)}populateAction(n,e){let i=e;for(;i&&i!==vM(n)&&(i.nodeType===Node.ELEMENT_NODE&&this.populateActionOnElement(i,n),!qh(n));)i=this.getParentNode(i);let r=qh(n);if(r&&(this.a11yClickSupport&&this.preventDefaultForA11yClick(n),this.syntheticMouseEventSupport&&(al(n)===rt.MOUSEENTER||al(n)===rt.MOUSELEAVE||al(n)===rt.POINTERENTER||al(n)===rt.POINTERLEAVE)))if(nz(Wh(n),al(n),$h(r))){let o=rz(Wh(n),$h(r));hM(n,o),_M(n,$h(r))}else $y(n)}getParentNode(n){let e=n[Qy.OWNER];if(e)return e;let i=n.parentNode;return i?.nodeName==="#document-fragment"?i?.host??null:i}populateActionOnElement(n,e){let i=this.parseActions(n),r=i[al(e)];r!==void 0&&bM(e,r,n),this.a11yClickSupport&&this.populateClickOnlyAction(n,e,i)}parseActions(n){let e=Wj(n);if(!e){let i=n.getAttribute(Ky.JSACTION);if(!i)e=pz,uM(n,e);else{if(e=qj(i),!e){e={};let r=i.split(mz);for(let o=0;o<r.length;o++){let a=r[o];if(!a)continue;let s=a.indexOf(az.EVENT_ACTION_SEPARATOR),l=s!==-1,u=l?a.substr(0,s).trim():fz,g=l?a.substr(s+1).trim():a;e[u]=g}Yj(i,e)}uM(n,e)}}return e}addA11yClickSupport(n,e,i){this.a11yClickSupport=!0,this.updateEventInfoForA11yClick=n,this.preventDefaultForA11yClick=e,this.populateClickOnlyAction=i}},wM=function(t){return t[t.I_AM_THE_JSACTION_FRAMEWORK=0]="I_AM_THE_JSACTION_FRAMEWORK",t}(wM||{}),Yy=class{dispatchDelegate;actionResolver;eventReplayer;eventReplayScheduled=!1;replayEventInfoWrappers=[];constructor(n,{actionResolver:e,eventReplayer:i}={}){this.dispatchDelegate=n,this.actionResolver=e,this.eventReplayer=i}
3dispatch(n){let e=new Wy(n);this.actionResolver?.resolveEventType(n),this.actionResolver?.resolveAction(n);let i=e.getAction();if(i&&hz(i.element,e)&&ez(e.getEvent()),this.eventReplayer&&e.getIsReplay()){this.scheduleEventInfoWrapperReplay(e);return}this.dispatchDelegate(e)}scheduleEventInfoWrapperReplay(n){this.replayEventInfoWrappers.push(n),!this.eventReplayScheduled&&(this.eventReplayScheduled=!0,Promise.resolve().then(()=>{this.eventReplayScheduled=!1,this.eventReplayer(this.replayEventInfoWrappers)}))}};function hz(t,n){return t.tagName==="A"&&(n.getEventType()===rt.CLICK||n.getEventType()===rt.CLICKMOD)}var EM=Symbol.for("propagationStopped"),Jy={REPLAY:101};var gz="`preventDefault` called during event replay.";var _z="`composedPath` called during event replay.",Kh=class{dispatchDelegate;clickModSupport;actionResolver;dispatcher;constructor(n,e=!0){this.dispatchDelegate=n,this.clickModSupport=e,this.actionResolver=new qy({clickModSupport:e}),this.dispatcher=new Yy(i=>{this.dispatchToDelegate(i)},{actionResolver:this.actionResolver})}dispatch(n){this.dispatcher.dispatch(n)}dispatchToDelegate(n){for(n.getIsReplay()&&yz(n),vz(n);n.getAction();){if(Cz(n),Zy(n.getEventType())&&n.getAction().element!==n.getTargetElement()||(this.dispatchDelegate(n.getEvent(),n.getAction().name),bz(n)))return;this.actionResolver.resolveParentAction(n.eventInfo)}}};function vz(t){let n=t.getEvent(),e=t.getEvent().stopPropagation.bind(n),i=()=>{n[EM]=!0,e()};ic(n,"stopPropagation",i),ic(n,"stopImmediatePropagation",i)}function bz(t){return!!t.getEvent()[EM]}function yz(t){let n=t.getEvent(),e=t.getTargetElement(),i=n.preventDefault.bind(n);ic(n,"target",e),ic(n,"eventPhase",Jy.REPLAY),ic(n,"preventDefault",()=>{throw i(),new Error(gz+"")}),ic(n,"composedPath",()=>{throw new Error(_z+"")})}function Cz(t){let n=t.getEvent(),e=t.getAction()?.element;e&&ic(n,"currentTarget",e,{configurable:!0})}function ic(t,n,e,{configurable:i=!1}={}){Object.defineProperty(t,n,{value:e,configurable:i})}function DM(t,n){t.ecrd(e=>{n.dispatch(e)},wM.I_AM_THE_JSACTION_FRAMEWORK)}function Sz(t){return t?.q??[]}function xz(t){t&&(mM(t.c,t.et,t.h),mM(t.c,t.etc,t.h,!0))}function mM(t,n,e,i){for(let r=0;r<n.length;r++)t.removeEventListener(n[r],e,i)}var wz=!1,TM=(()=>{class t{static MOUSE_SPECIAL_SUPPORT=wz;containerManager;eventHandlers={};browserEventTypeToExtraEventTypes={};dispatcher=null;queuedEventInfos=[];constructor(e){this.containerManager=e}handleEvent(e,i,r){let o=uz(e,i,i.target,r,Date.now());this.handleEventInfo(o)}handleEventInfo(e){if(!this.dispatcher){yM(e,!0),this.queuedEventInfos?.push(e);return}this.dispatcher(e)}addEvent(e,i,r){if(e in this.eventHandlers||!this.containerManager||!t.MOUSE_SPECIAL_SUPPORT&&Kj.indexOf(e)>=0)return;let o=(s,l,u)=>{this.handleEvent(s,l,u)};this.eventHandlers[e]=o;let a=Zj(i||e);if(a!==e){let s=this.browserEventTypeToExtraEventTypes[a]||[];s.push(e),this.browserEventTypeToExtraEventTypes[a]=s}this.containerManager.addEventListener(a,s=>l=>{o(e,l,s)},r)}replayEarlyEvents(e=window._ejsa){e&&(this.replayEarlyEventInfos(e.q),xz(e),delete window._ejsa)}replayEarlyEventInfos(e){for(let i=0;i<e.length;i++){let r=e[i],o=this.getEventTypesForBrowserEventType(r.eventType);for(let a=0;a<o.length;a++){let s=xM(r);Xy(s,o[a]),this.handleEventInfo(s)}}}getEventTypesForBrowserEventType(e){let i=[];return this.eventHandlers[e]&&i.push(e),this.browserEventTypeToExtraEventTypes[e]&&i.push(...this.browserEventTypeToExtraEventTypes[e]),i}handler(e){return this.eventHandlers[e]}cleanUp(){this.containerManager?.cleanUp(),this.containerManager=null,this.eventHandlers={},this.browserEventTypeToExtraEventTypes={},this.dispatcher=null,this.queuedEventInfos=[]}registerDispatcher(e,i){this.ecrd(e,i)}ecrd(e,i){if(this.dispatcher=e,this.queuedEventInfos?.length){for(let r=0;r<this.queuedEventInfos.length;r++)this.handleEventInfo(this.queuedEventInfos[r]);this.queuedEventInfos=null}}}return t})();function MM(t,n=window){return Sz(n._ejsas?.[t])}function eC(t,n=window){n._ejsas&&(n._ejsas[t]=void 0)}var HI="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",K=class extends
3Error{code;constructor(n,e){super(Qp(n,e)),this.code=n}};function Ez(t){return`NG0${Math.abs(t)}`}function Qp(t,n){return`${Ez(t)}${n?": "+n:""}`}var Ug=Symbol("InputSignalNode#UNSET"),VI=re(N({},mh),{transformFn:void 0,applyValueToInputSignal(t,n){ud(t,n)}});function jI(t,n){let e=Object.create(VI);e.value=t,e.transformFn=n?.transform;function i(){if(dd(e),e.value===Ug){let r=null;throw new K(-950,r)}return e.value}return i[Sr]=e,i}function Zp(t){return{toString:t}.toString()}var Qh="__parameters__";function Dz(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function zI(t,n,e){return Zp(()=>{let i=Dz(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,u,g){let v=l.hasOwnProperty(Qh)?l[Qh]:Object.defineProperty(l,Qh,{value:[]})[Qh];for(;v.length<=g;)v.push(null);return(v[g]=v[g]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var Gn=globalThis;function vi(t){for(let n in t)if(t[n]===vi)return n;throw Error("Could not find renamed property on target object.")}function Tz(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Lr(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Lr).join(", ")}]`;if(t==null)return""+t;let n=t.overriddenName||t.name;if(n)return`${n}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(` 4`);return i>=0?e.slice(0,i):e}function yC(t,n){return t?n?`${t} ${n}`:t:n||""}var Mz=vi({__forward_ref__:vi});function Si(t){return t.__forward_ref__=Si,t.toString=function(){return Lr(this())},t}function $n(t){return UI(t)?t():t}function UI(t){return typeof t=="function"&&t.hasOwnProperty(Mz)&&t.__forward_ref__===Si}function Iz(t,n,e){t!=n&&Az(e,t,n,"==")}function Az(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(i==null?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}function I(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function be(t){return{providers:t.providers||[],imports:t.imports||[]}}function Gg(t){return IM(t,$I)||IM(t,WI)}function GI(t){return Gg(t)!==null}function IM(t,n){return t.hasOwnProperty(n)?t[n]:null}function kz(t){let n=t&&(t[$I]||t[WI]);return n||null}function AM(t){return t&&(t.hasOwnProperty(kM)||t.hasOwnProperty(Oz))?t[kM]:null}var $I=vi({\u0275prov:vi}),kM=vi({\u0275inj:vi}),WI=vi({ngInjectableDef:vi}),Oz=vi({ngInjectorDef:vi}),H=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=I({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function qI(t){return t&&!!t.\u0275providers}var Pz=vi({\u0275cmp:vi}),Nz=vi({\u0275dir:vi}),Rz=vi({\u0275pipe:vi}),Fz=vi({\u0275mod:vi}),mg=vi({\u0275fac:vi}),Rp=vi({__NG_ELEMENT_ID__:vi}),OM=vi({__NG_ENV_ID__:vi});function di(t){return typeof t=="string"?t:t==null?"":String(t)}function Lz(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():di(t)}function YI(t,n){throw new K(-200,t)}function L1(t,n){throw new K(-201,!1)}var Dt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Dt||{}),CC;function KI(){return CC}function Fr(t){let n=CC;return CC=t,n}function QI(t,n,e){let i=Gg(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&Dt.Optional)return null;if(n!==void 0)return n;L1(t,"Injector")}var Bz={},rc=Bz,SC="__NG_DI_FLAG__",fg=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=e;return this.injector.get(n,i.optional?fh:rc,i)}},hg="ngTempTokenPath",Hz="ngTokenPath",Vz=/\n/gm,jz="\u0275",PM="__source";function zz(t,n=Dt.Default){if(Tp()===void 0)throw new K(-203,!1);if(Tp()===null)return QI(t,void 0,n);{let e=Tp(),i;return e instanceof fg?i=e.injector:i=e,i.get(t,n&Dt.Optional?null:void 0,n)}}function xe(t,n=Dt.Default){return(KI()||zz)($n(t),n)}function d(t,n=Dt.Default){return xe(t,$g(n))}function $g(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function xC(t){let n=[];for(let e=0;e<t.length;e++){let i=$n(t[e]);if(Array.isArray(i)){if(i.length===0)throw new K(900,!1);let r,o=Dt.Default;for(let a=0;a<i.length;a++){let s=i[a],l=Uz(s);typeof l=="number"?l===-1?r=s.token:o|=l:r=s}n.push(xe(r,o))}else n.push(xe(i))}return n}function ZI(t,n){return t[SC]=n,t.prototype[SC]=n,t}function Uz(t){return t[SC]}function Gz(t,n,e,i){let r=t[hg];throw n[PM]&&r.unshift(n[PM]),t.message=$z(` 5`+t.message,r,e,i),t[Hz]=r,t[hg]=null,t}function $z(t,n,e,i=null){t=t&&t.charAt(0)===` 6`&&t.charAt(1)==jz?t.slice(2):t;let r=Lr(n);if(Array.isArray(n))r=n.map(Lr).join(" -> ");else if(typeof n=="object"){let o=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];o.push(a+":"+(typeof s=="string"?JSON.stringify(s):Lr(s)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(Vz,` 7 `)}`}var ca=ZI(zI("Optional"),8);var pl=ZI(zI("SkipSelf"),4);function ac(t,n){let e=t.hasOwnProperty(mg);return e?t[mg]:null}function Wz(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function qz(t){return t.flat(Number.POSITIVE_INFINITY)}
7function B1(t,n){t.forEach(e=>Array.isArray(e)?B1(e,n):n(e))}function XI(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function gg(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Yz(t,n){let e=[];for(let i=0;i<t;i++)e.push(n);return e}function Kz(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(r===1)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function Xp(t,n,e){let i=Jp(t,n);return i>=0?t[i|1]=e:(i=~i,Kz(t,i,n,e)),i}function tC(t,n){let e=Jp(t,n);if(e>=0)return t[e|1]}function Jp(t,n){return Qz(t,n,1)}function Qz(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<<e];if(n===a)return o<<e;a>n?r=o:i=o+1}return~(r<<e)}var Va={},or=[],ll=new H(""),JI=new H("",-1),eA=new H(""),_g=class{get(n,e=rc){if(e===rc){let i=new Error(`NullInjectorError: No provider for ${Lr(n)}!`);throw i.name="NullInjectorError",i}return e}};function tA(t,n){let e=t[Fz]||null;if(!e&&n===!0)throw new Error(`Type ${Lr(t)} does not have '\u0275mod' property.`);return e}function cl(t){return t[Pz]||null}function H1(t){return t[Nz]||null}function iA(t){return t[Rz]||null}function $a(t){return{\u0275providers:t}}function V1(...t){return{\u0275providers:j1(!0,t),\u0275fromNgModule:!0}}function j1(t,...n){let e=[],i=new Set,r,o=a=>{e.push(a)};return B1(n,a=>{let s=a;wC(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&nA(r,o),e}function nA(t,n){for(let e=0;e<t.length;e++){let{ngModule:i,providers:r}=t[e];z1(r,o=>{n(o,i)})}}function wC(t,n,e,i){if(t=$n(t),!t)return!1;let r=null,o=AM(t),a=!o&&cl(t);if(!o&&!a){let l=t.ngModule;if(o=AM(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)wC(u,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let u;try{B1(o.imports,g=>{wC(g,n,e,i)&&(u||=[],u.push(g))})}finally{}u!==void 0&&nA(u,n)}if(!s){let u=ac(r)||(()=>new r);n({provide:r,useFactory:u,deps:or},r),n({provide:eA,useValue:r,multi:!0},r),n({provide:ll,useValue:()=>xe(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let u=t;z1(l,g=>{n(g,u)})}}else return!1;return r!==t&&t.providers!==void 0}function z1(t,n){for(let e of t)qI(e)&&(e=e.\u0275providers),Array.isArray(e)?z1(e,n):n(e)}var Zz=vi({provide:String,useValue:vi});function rA(t){return t!==null&&typeof t=="object"&&Zz in t}function Xz(t){return!!(t&&t.useExisting)}function Jz(t){return!!(t&&t.useFactory)}function Nd(t){return typeof t=="function"}function eU(t){return!!t.useClass}var Wg=new H(""),ng={},NM={},iC;function qg(){return iC===void 0&&(iC=new _g),iC}var hi=class{},Vp=class extends hi{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,DC(n,a=>this.processProvider(a)),this.records.set(JI,Ed(void 0,this)),r.has("environment")&&this.records.set(hi,Ed(void 0,this));let o=this.records.get(Wg);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(eA,or,Dt.Self))}retrieve(n,e){let i=e;return this.get(n,i.optional?fh:rc,i)}destroy(){Pp(this),this._destroyed=!0;let n=St(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),St(n)}}onDestroy(n){return Pp(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Pp(this);let e=ms(this),i=Fr(void 0),r;try{return n()}finally{ms(e),Fr(i)}}get(n,e=rc,i=Dt.Default){if(Pp(this),n.hasOwnProperty(OM))return n[OM](this);i=$g(i);let r,o=ms(this),a=Fr(void 0);try{if(!(i&Dt.SkipSelf)){let l=this.records.get(n);if(l===void 0){let u=oU(n)&&Gg(n);u&&this.injectableDefInScope(u)?l=Ed(EC(n),ng):l=null,this.records.set(n,l)}if(l!=null)return this.hydrate(n,l,i)}let s=i&Dt.Self?qg():this.parent;return e=i&Dt.Optional&&e===rc?null:e,s.get(n,e)}catch(s){if(s.name==="NullInjectorError"){if((s[hg]=s[hg]||[]).unshift(Lr(n)),o)throw s;return Gz(s,n,"R3InjectorError",this.source)}else throw s}finally{Fr(a),ms(o)}}
vendor: 8,440 bytes, line 7
7resolveInjectorInitializers(){let n=St(null),e=ms(this),i=Fr(void 0),r;try{let o=this.get(ll,or,Dt.Self);for(let a of o)a()}finally{ms(e),Fr(i),St(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(Lr(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=$n(n);let e=Nd(n)?n:$n(n&&n.provide),i=iU(n);if(!Nd(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Ed(void 0,ng,!0),r.factory=()=>xC(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=St(null);try{return e.value===NM?YI(Lr(n)):e.value===ng&&(e.value=NM,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&rU(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{St(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=$n(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function EC(t){let n=Gg(t),e=n!==null?n.factory:ac(t);if(e!==null)return e;if(t instanceof H)throw new K(204,!1);if(t instanceof Function)return tU(t);throw new K(204,!1)}function tU(t){if(t.length>0)throw new K(204,!1);let e=kz(t);return e!==null?()=>e.factory(t):()=>new t}function iU(t){if(rA(t))return Ed(void 0,t.useValue);{let n=oA(t);return Ed(n,ng)}}function oA(t,n,e){let i;if(Nd(t)){let r=$n(t);return ac(r)||EC(r)}else if(rA(t))i=()=>$n(t.useValue);else if(Jz(t))i=()=>t.useFactory(...xC(t.deps||[]));else if(Xz(t))i=(r,o)=>xe($n(t.useExisting),o!==void 0&&o&Dt.Optional?Dt.Optional:void 0);else{let r=$n(t&&(t.useClass||t.provide));if(nU(t))i=()=>new r(...xC(t.deps));else return ac(r)||EC(r)}return i}function Pp(t){if(t.destroyed)throw new K(205,!1)}function Ed(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function nU(t){return!!t.deps}function rU(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function oU(t){return typeof t=="function"||typeof t=="object"&&t instanceof H}function DC(t,n){for(let e of t)Array.isArray(e)?DC(e,n):e&&qI(e)?DC(e.\u0275providers,n):n(e)}function po(t,n){let e;t instanceof Vp?(Pp(t),e=t):e=new fg(t);let i,r=ms(e),o=Fr(void 0);try{return n()}finally{ms(r),Fr(o)}}function U1(){return KI()!==void 0||Tp()!=null}function zd(t){if(!U1())throw new K(-203,!1)}function aU(t){return typeof t=="function"}var lo=0,ot=1,pt=2,Cn=3,aa=4,Er=5,Ro=6,vg=7,yn=8,ja=9,_s=10,$t=11,jp=12,RM=13,Ud=14,ar=15,sc=16,Dd=17,vs=18,Yg=19,aA=20,sl=21,nC=22,lc=23,No=24,Ad=25,Xt=26,sA=1,bs=6,ys=7,bg=8,Rd=9,Wn=10;function sa(t){return Array.isArray(t)&&typeof t[sA]=="object"}function Wa(t){return Array.isArray(t)&&t[sA]===!0}function G1(t){return(t.flags&4)!==0}function gc(t){return t.componentOffset>-1}function Kg(t){return(t.flags&1)===1}function za(t){return!!t.template}function zp(t){return(t[pt]&512)!==0}function _c(t){return(t[pt]&256)===256}var TC=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function lA(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Xe=(()=>{let t=()=>cA;return t.ngInherit=!0,t})();function cA(t){return t.type.prototype.ngOnChanges&&(t.setInput=lU),sU}function sU(){let t=uA(this),n=t?.current;if(n){let e=t.previous;if(e===Va)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function lU(t,n,e,i,r){let o=this.declaredInputs[i],a=uA(t)||cU(t,{previous:Va,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[o];s[o]=new TC(u&&u.currentValue,e,l===Va),lA(t,n,r,e)}var dA="__ngSimpleChanges__";function uA(t){return t[dA]||null}function cU(t,n){return t[dA]=n}var FM=null;var ui=function(t,n=null,e){FM?.(t,n,e)},pA="svg",dU="math";function co(t){for(;Array.isArray(t);)t=t[lo];return t}function Qg(t,n){return co(n[t])}function da(t,n){return co(n[t.index])}function em(t,n){return t.data[n]}function Zg(t,n){return t[n]}function $1(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Ua(t,n){let e=n[t];return sa(e)?e:e[lo]}function uU(t){return(t[pt]&4)===4}function W1(t){return(t[pt]&128)===128}function pU(t){return Wa(t[Cn])}function Cs(t,n){return n==null?null:t[n]}function mA(t){t[Dd]=0}function fA(t){t[pt]&1024||(t[pt]|=1024,W1(t)&&Gd(t))}function mU(t,n){for(;t>0;)n=n[Ud],t--;return n}function Xg(t){return!!(t[pt]&9216||t[No]?.dirty)}function MC(t){t[_s].changeDetectionScheduler?.notify(8),t[pt]&64&&(t[pt]|=1024),Xg(t)&&Gd(t)}function Gd(t){t[_s].changeDetectionScheduler?.notify(0);let n=cc(t);for(;n!==null&&!(n[pt]&8192||(n[pt]|=8192,!W1(n)));)n=cc(n)}function hA(t,n){if(_c(t))throw new K(911,!1);t[sl]===null&&(t[sl]=[]),t[sl].push(n)}function fU(t,n){if(t[sl]===null)return;let e=t[sl].indexOf(n);e!==-1&&t[sl].splice(e,1)}function cc(t){let n=t[Cn];return Wa(n)?n[Cn]:n}function q1(t){return t[vg]??=[]}function Y1(t){return t.cleanup??=[]}function hU(t,n,e,i){let r=q1(n);r.push(e),t.firstCreatePass&&Y1(t).push(i,r.length-1)}var gt={lFrame:SA(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var IC=!1;function gU(){return gt.lFrame.elementDepthCount}function _U(){gt.lFrame.elementDepthCount++}function vU(){gt.lFrame.elementDepthCount--}function K1(){return gt.bindingsEnabled}function $d(){return gt.skipHydrationRootTNode!==null}function bU(t){return gt.skipHydrationRootTNode===t}function yU(t){gt.skipHydrationRootTNode=t}function CU(){gt.skipHydrationRootTNode=null}function qe(){return gt.lFrame.lView}function gi(){return gt.lFrame.tView}function A(t){return gt.lFrame.contextLView=t,t[yn]}function k(t){return gt.lFrame.contextLView=null,t}function lr(){let t=gA();for(;t!==null&&t.type===64;)t=t.parent;return t}function gA(){return gt.lFrame.currentTNode}function Up(){let t=gt.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function la(t,n){let e=gt.lFrame;e.currentTNode=t,e.isParent=n}function Q1(){return gt.lFrame.isParent}function Z1(){gt.lFrame.isParent=!1}function _A(){return gt.lFrame.contextLView}function vA(){return IC}function yg(t){let n=IC;return IC=t,n}function tm(){let t=gt.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Wd(){return gt.lFrame.bindingIndex}function SU(t){return gt.lFrame.bindingIndex=t}function ml(){return gt.lFrame.bindingIndex++}function vc(t){let n=gt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function xU(){return gt.lFrame.inI18n}function bA(t){gt.lFrame.inI18n=t}function wU(t,n){let e=gt.lFrame;e.bindingIndex=e.bindingRootIndex=t,AC(n)}function EU(){return gt.lFrame.currentDirectiveIndex}function AC(t){gt.lFrame.currentDirectiveIndex=t}function DU(t){let n=gt.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function X1(){return gt.lFrame.currentQueryIndex}function Jg(t){gt.lFrame.currentQueryIndex=t}function TU(t){let n=t[ot];return n.type===2?n.declTNode:n.type===1?t[Er]:null}function yA(t,n,e){if(e&Dt.SkipSelf){let r=n,o=t;for(;r=r.parent,r===null&&!(e&Dt.Host);)if(r=TU(o),r===null||(o=o[Ud],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=gt.lFrame=CA();return i.currentTNode=n,i.lView=t,!0}function J1(t){let n=CA(),e=t[ot];gt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function CA(){let t=gt.lFrame,n=t===null?null:t.child;return n===null?SA(t):n}function SA(t){let n={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:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function xA(){let t=gt.lFrame;return gt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var wA=xA;function eS(){let t=xA();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function MU(t){return(gt.lFrame.contextLView=mU(t,gt.lFrame.contextLView))[yn]}function Hr(){return gt.lFrame.selectedIndex}function dc(t){gt.lFrame.selectedIndex=t}function im(){let t=gt.lFrame;return em(t.tView,t.selectedIndex)}function Sn(){gt.lFrame.currentNamespace=pA}function Es(){IU()}function IU(){gt.lFrame.currentNamespace=null}function EA(){return gt.lFrame.currentNamespace}var DA=!0;function nm(){return DA}function Ds(t){DA=t}
7function AU(t,n,e){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){let a=cA(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function tS(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:g}=o;a&&(t.contentHooks??=[]).push(-e,a),s&&((t.contentHooks??=[]).push(e,s),(t.contentCheckHooks??=[]).push(e,s)),l&&(t.viewHooks??=[]).push(-e,l),u&&((t.viewHooks??=[]).push(e,u),(t.viewCheckHooks??=[]).push(e,u)),g!=null&&(t.destroyHooks??=[]).push(e,g)}}function rg(t,n,e){TA(t,n,3,e)}function og(t,n,e,i){(t[pt]&3)===e&&TA(t,n,e,i)}function rC(t,n){let e=t[pt];(e&3)===n&&(e&=16383,e+=1,t[pt]=e)}function TA(t,n,e,i){let r=i!==void 0?t[Dd]&65535:0,o=i??-1,a=n.length-1,s=0;for(let l=r;l<a;l++)if(typeof n[l+1]=="number"){if(s=n[l],i!=null&&s>=i)break}else n[l]<0&&(t[Dd]+=65536),(s<o||o==-1)&&(kU(t,e,n,l),t[Dd]=(t[Dd]&4294901760)+l+2),l++}function LM(t,n){ui(4,t,n);let e=St(null);try{n.call(t)}finally{St(e),ui(5,t,n)}}function kU(t,n,e,i){let r=e[i]<0,o=e[i+1],a=r?-e[i]:e[i],s=t[a];r?t[pt]>>14<t[Dd]>>16&&(t[pt]&3)===n&&(t[pt]+=16384,LM(s,o)):LM(s,o)}var kd=-1,uc=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i){this.factory=n,this.canSeeViewProviders=e,this.injectImpl=i}};function OU(t){return(t.flags&8)!==0}function PU(t){return(t.flags&16)!==0}function NU(t,n,e){let i=0;for(;i<e.length;){let r=e[i];if(typeof r=="number"){if(r!==0)break;i++;let o=e[i++],a=e[i++],s=e[i++];t.setAttribute(n,a,s,o)}else{let o=r,a=e[++i];RU(o)?t.setProperty(n,o,a):t.setAttribute(n,o,a),i++}}return i}function MA(t){return t===3||t===4||t===6}function RU(t){return t.charCodeAt(0)===64}function Fd(t,n){if(!(n===null||n.length===0))if(t===null||t.length===0)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){let r=n[i];typeof r=="number"?e=r:e===0||(e===-1||e===2?BM(t,e,r,null,n[++i]):BM(t,e,r,null,null))}}return t}function BM(t,n,e,i,r){let o=0,a=t.length;if(n===-1)a=-1;else for(;o<t.length;){let s=t[o++];if(typeof s=="number"){if(s===n){a=-1;break}else if(s>n){a=o-1;break}}}for(;o<t.length;){let s=t[o];if(typeof s=="number")break;if(s===e){r!==null&&(t[o+1]=r);return}o++,r!==null&&o++}a!==-1&&(t.splice(a,0,n),o=a+1),t.splice(o++,0,e),r!==null&&t.splice(o++,0,r)}function IA(t){return t!==kd}function Cg(t){return t&32767}function FU(t){return t>>16}function Sg(t,n){let e=FU(t),i=n;for(;e>0;)i=i[Ud],e--;return i}var kC=!0;function xg(t){let n=kC;return kC=t,n}var LU=256,AA=LU-1,kA=5,BU=0,Ha={};function HU(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(Rp)&&(i=e[Rp]),i==null&&(i=e[Rp]=BU++);let r=i&AA,o=1<<r;n.data[t+(r>>kA)]|=o}function wg(t,n){let e=OA(t,n);if(e!==-1)return e;let i=n[ot];i.firstCreatePass&&(t.injectorIndex=n.length,oC(i.data,t),oC(n,null),oC(i.blueprint,null));let r=iS(t,n),o=t.injectorIndex;if(IA(r)){let a=Cg(r),s=Sg(r,n),l=s[ot].data;for(let u=0;u<8;u++)n[o+u]=s[a+u]|l[a+u]}return n[o+8]=r,o}function oC(t,n){t.push(0,0,0,0,0,0,0,0,n)}function OA(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function iS(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=LA(r),i===null)return kd;if(e++,r=r[Ud],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return kd}function OC(t,n,e){HU(t,n,e)}function VU(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r<i;){let o=e[r];if(MA(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<i&&typeof e[r]=="string";)r++;else{if(o===n)return e[r+1];r=r+2}}}return null}function PA(t,n,e){if(e&Dt.Optional||t!==void 0)return t;L1(n,"NodeInjector")}function NA(t,n,e,i){if(e&Dt.Optional&&i===void 0&&(i=null),(e&(Dt.Self|Dt.Host))===0){let r=t[ja],o=Fr(void 0);try{return r?r.get(n,i,e&Dt.Optional):QI(n,i,e&Dt.Optional)}finally{Fr(o)}}return PA(i,n,e)}function RA(t,n,e,i=Dt.Default,r){if(t!==null){if(n[pt]&2048&&!(i&Dt.Self)){let a=GU(t,n,e,i,Ha);if(a!==Ha)return a}let o=FA(t,n,e,i,Ha);if(o!==Ha)return o}return NA(n,e,i,r)}function FA(t,n,e,i,r){let o=zU(e);if(typeof o=="function"){if(!yA(n,t,i))return i&Dt.Host?PA(r,e,i):NA(n,e,i,r);try{let a;if(a=o(i),a==null&&!(i&Dt.Optional))L1(e);else return a}finally{wA()}}else if(typeof o=="number"){let a=null,s=OA(t,n),l=kd,u=i&Dt.Host?n[ar][Er]:null;for((s===-1||i&Dt.SkipSelf)&&(l=s===-1?iS(t,n):n[s+8],l===kd||!VM(i,!1)?s=-1:(a=n[ot],s=Cg(l),n=Sg(l,n)));s!==-1;){let g=n[ot];if(HM(o,s,g.data)){let v=jU(s,n,e,a,i,u);if(v!==Ha)return v}l=n[s+8],l!==kd&&VM(i,n[ot].data[s+8]===u)&&HM(o,s,n)?(a=g,s=Cg(l),n=Sg(l,n)):s=-1}}return r}function jU(t,n,e,i,r,o){let a=n[ot],s=a.data[t+8],l=i==null?gc(s)&&kC:i!=a&&(s.type&3)!==0,u=r&Dt.Host&&o===s,g=ag
7(s,a,e,l,u);return g!==null?Gp(n,a,g,s,r):Ha}function ag(t,n,e,i,r){let o=t.providerIndexes,a=n.data,s=o&1048575,l=t.directiveStart,u=t.directiveEnd,g=o>>20,v=i?s:s+g,w=r?s+g:u;for(let C=v;C<w;C++){let S=a[C];if(C<l&&e===S||C>=l&&S.type===e)return C}if(r){let C=a[l];if(C&&za(C)&&C.type===e)return l}return null}function Gp(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof uc){let s=o;s.resolving&&YI(Lz(a[e]));let l=xg(s.canSeeViewProviders);s.resolving=!0;let u,g=s.injectImpl?Fr(s.injectImpl):null,v=yA(t,i,Dt.Default);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&AU(e,a[e],n)}finally{g!==null&&Fr(g),xg(l),s.resolving=!1,wA()}}return o}function zU(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Rp)?t[Rp]:void 0;return typeof n=="number"?n>=0?n&AA:UU:n}function HM(t,n,e){let i=1<<t;return!!(e[n+(t>>kA)]&i)}function VM(t,n){return!(t&Dt.Self)&&!(t&Dt.Host&&n)}var oc=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return RA(this._tNode,this._lView,n,$g(i),e)}};function UU(){return new oc(lr(),qe())}function Tt(t){return Zp(()=>{let n=t.prototype.constructor,e=n[mg]||PC(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[mg]||PC(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function PC(t){return UI(t)?()=>{let n=PC($n(t));return n&&n()}:ac(t)}function GU(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[pt]&2048&&!zp(a);){let s=FA(o,a,e,i|Dt.Self,Ha);if(s!==Ha)return s;let l=o.parent;if(!l){let u=a[aA];if(u){let g=u.get(e,Ha,i);if(g!==Ha)return g}l=LA(a),a=a[Ud]}o=l}return r}function LA(t){let n=t[ot],e=n.type;return e===2?n.declTNode:e===1?t[Er]:null}function rm(t){return VU(lr(),t)}function jM(t,n=null,e=null,i){let r=BA(t,n,e,i);return r.resolveInjectorInitializers(),r}function BA(t,n=null,e=null,i,r=new Set){let o=[e||or,V1(t)];return i=i||(typeof t=="object"?void 0:Lr(t)),new Vp(o,n||qg(),i||null,r)}var Ne=class t{static THROW_IF_NOT_FOUND=rc;static NULL=new _g;static create(n,e){if(Array.isArray(n))return jM({name:""},e,n,"");{let i=n.name??"";return jM({name:i},n.parent,n.providers,i)}}static \u0275prov=I({token:t,providedIn:"any",factory:()=>xe(JI)});static __NG_ELEMENT_ID__=-1};var Br=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>rm(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},$U=new H("");$U.__NG_ELEMENT_ID__=t=>{let n=lr();if(n===null)throw new K(204,!1);if(n.type&2)return n.value;if(t&Dt.Optional)return null;throw new K(204,!1)};var HA=!1,Vr=(()=>{class t{static __NG_ELEMENT_ID__=WU;static __NG_ENV_ID__=e=>e}return t})(),Eg=class extends Vr{_lView;constructor(n){super(),this._lView=n}onDestroy(n){let e=this._lView;return _c(e)?(n(),()=>{}):(hA(e,n),()=>fU(e,n))}};function WU(){return new Eg(qe())}var dl=class{},e_=new H("",{providedIn:"root",factory:()=>!1});var VA=new H(""),jA=new H(""),ua=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Gt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=I({token:t,providedIn:"root",factory:()=>new t})}return t})(),zA=(()=>{class t{internalPendingTasks=d(ua);scheduler=d(dl);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){return li(this,null,function*(){let i=this.add();try{return yield e()}finally{i()}})}static \u0275prov=I({token:t,providedIn:"root",factory:()=>new t})}return t})(),NC=class extends G{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,U1()&&(this.destroyRef=d(Vr,{optional:!0})??void 0,this.pendingTasks=d(ua,{optional:!0})??void 0)}emit(n){let e=St(null);try{super.next(n)}finally{St(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof Ie&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},z=NC;function $p(...t){}function UA(t){let n,e;function i(){t=$p;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()}
vendor: 5,348 bytes, line 7
7)),()=>i()}function zM(t){return queueMicrotask(()=>t()),()=>{t=$p}}var nS="isAngularZone",Dg=nS+"_ID",qU=0,de=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new z(!1);onMicrotaskEmpty=new z(!1);onStable=new z(!1);onError=new z(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=HA}=n;if(typeof Zone>"u")throw new K(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,QU(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(nS)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new K(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new K(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,YU,$p,$p);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},YU={};function rS(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function KU(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){UA(()=>{t.callbackScheduled=!1,RC(t),t.isCheckStableRunning=!0,rS(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),RC(t)}function QU(t){let n=()=>{KU(t)},e=qU++;t._inner=t._inner.fork({name:"angular",properties:{[nS]:!0,[Dg]:e,[Dg+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(ZU(l))return i.invokeTask(o,a,s,l);try{return UM(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),GM(t)}},onInvoke:(i,r,o,a,s,l,u)=>{try{return UM(t),i.invoke(o,a,s,l,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!XU(l)&&n(),GM(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,RC(t),rS(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function RC(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function UM(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function GM(t){t._nesting--,rS(t)}var FC=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new z;onMicrotaskEmpty=new z;onStable=new z;onError=new z;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function ZU(t){return GA(t,"__ignore_ng_zone__")}function XU(t){return GA(t,"__scheduler_tick__")}function GA(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var sr=class{_console=console;handleError(n){this._console.error("ERROR",n)}},JU=new H("",{providedIn:"root",factory:()=>{let t=d(de),n=d(sr);return e=>t.runOutsideAngular(()=>n.handleError(e))}}),Tg=class{destroyed=!1;listeners=null;errorHandler=d(sr,{optional:!0});destroyRef=d(Vr);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new K(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{let e=this.listeners?.indexOf(n);e!==void 0&&e!==-1&&this.listeners?.splice(e,1)}}}emit(n){if(this.destroyed){console.warn(Qp(953,!1));return}if(this.listeners===null)return;let e=St(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{St(e)}}};function qd(t){return new Tg}function $M(t,n){return jI(t,n)}function e5(t){return jI(Ug,t)}var we=($M.required=e5,$M);function t5(){return Yd(lr(),qe())}function Yd(t,n){return new ue(da(t,n))}var ue=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=t5}return t})();function $A(t){return t instanceof ue?t.nativeElement:t}function fl(t){return typeof t=="function"&&t[Sr]!==void 0}function ee(t,n){let e=Sy(t,n?.equal),i=e[Sr];return e.set=r=>ud(i,r),e.update=r=>xy(i,r),e.asReadonly=WA.bind(e),e}function WA(){let t=this[Sr];if(t.readonlyFn===void 0){let n=()=>this();n[Sr]=t,t.readonlyFn=n}return t.readonlyFn}function qA(t){return fl(t)&&typeof t.set=="function"}function i5(){return this._results[Symbol.iterator]()}var uo=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new G}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}
7forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let i=qz(n);(this._changesDetected=!Wz(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=i5},n5="ngSkipHydration",r5="ngskiphydration";function YA(t){let n=t.mergedAttrs;if(n===null)return!1;for(let e=0;e<n.length;e+=2){let i=n[e];if(typeof i=="number")return!1;if(typeof i=="string"&&i.toLowerCase()===r5)return!0}return!1}function KA(t){return t.hasAttribute(n5)}function Mg(t){return(t.flags&128)===128}function o5(t){if(Mg(t))return!0;let n=t.parent;for(;n;){if(Mg(t)||YA(n))return!0;n=n.parent}return!1}var QA=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(QA||{}),ZA=new Map,a5=0;function s5(){return a5++}function l5(t){ZA.set(t[Yg],t)}function LC(t){ZA.delete(t[Yg])}var WM="__ngContext__";function ul(t,n){sa(n)?(t[WM]=n[Yg],l5(n)):t[WM]=n}function XA(t){return ek(t[jp])}function JA(t){return ek(t[aa])}function ek(t){for(;t!==null&&!Wa(t);)t=t[aa];return t}var BC;function tk(t){BC=t}function Kd(){if(BC!==void 0)return BC;if(typeof document<"u")return document;throw new K(210,!1)}var so=new H("",{providedIn:"root",factory:()=>c5}),c5="ng",oS=new H(""),Qe=new H("",{providedIn:"platform",factory:()=>"unknown"});var zt=new H(""),om=new H("",{providedIn:"root",factory:()=>Kd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),aS={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},ik=new H("",{providedIn:"root",factory:()=>aS});function d5(){let t=new Qd;return t.store=u5(Kd(),d(so)),t}var Qd=(()=>{class t{static \u0275prov=I({token:t,providedIn:"root",factory:d5});store={};onSerializeCallbacks={};get(e,i){return this.store[e]!==void 0?this.store[e]:i}set(e,i){this.store[e]=i}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(e,i){this.onSerializeCallbacks[e]=i}toJson(){for(let e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}return t})();function u5(t,n){let e=t.getElementById(n+"-state");if(e?.textContent)try{return JSON.parse(e.textContent)}catch(i){console.warn("Exception while restoring TransferState for app "+n,i)}return{}}var nk="h",rk="b",p5="f",m5="n",f5="e",h5="t",sS="c",ok="x",Ig="r",g5="i",_5="n",ak="d";var v5="di",b5="s",y5="p";var Zh=new H(""),sk=!1,lk=new H("",{providedIn:"root",factory:()=>sk});var ck=new H(""),C5=!1,S5=new H(""),qM=new H("",{providedIn:"root",factory:()=>new Map}),lS=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(lS||{}),Zd=new H(""),YM=new Set;function cr(t){YM.has(t)||(YM.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var cS=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=x5}return t})();function x5(){return new cS(qe(),lr())}var Td=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Td||{}),dk=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=I({token:t,providedIn:"root",factory:()=>new t})}return t})(),w5=[Td.EarlyRead,Td.Write,Td.MixedReadWrite,Td.Read],E5=(()=>{class t{ngZone=d(de);scheduler=d(dl);errorHandler=d(sr,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){d(Zd,{optional:!0})}execute(){let e=this.sequences.size>0;e&&ui(16),this.executing=!0;for(let i of w5)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&ui(17)}register(e){let{view:i}=e;i!==void 0?((i[Ad]??=[]).push(e),Gd(i),i[pt]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,i){return i?i.run(lS.AFTER_NEXT_RENDER,e):e()}static \u0275prov=I({token:t,providedIn:"root",factory:()=>new t})}return t})(),HC=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let n=this.view?.[Ad];n&&(this.view[Ad]=n.filter(e=>e!==this))}};function Ts(t,n){!n?.injector&&zd(Ts);let e=n?.injector??d(Ne);return cr("NgAfterRender"),uk(t,e,n,!1)}function Ti(t,n){!n?.injector&&zd(Ti);let e=n?.injector??d(Ne);return cr("NgAfterNextRender"),uk(t,e,n,!0)}function D5(t,n){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[n]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function uk(t,n,e,i){let r=n.get(dk);r.impl??=n.get(E5);let o=n.get(Zd,null,{optional:!0}),a=e?.phase??Td.MixedReadWrite,s=e?.manualCleanup!==!0?n.get(Vr):null,l=n.get(cS,null,{optional:!0}),u=new HC(r.impl,D5(t,a),l?.view,i,s,o?.snapshot(null));return r.impl.register(u),u}var ao=function(t){return t[t.NOT_STARTED=0]="NOT_STARTED",t[t.IN_PROGRESS=1]="IN_PROGRESS",t[t.COMPLETE=2]="COMPLETE",t[t.FAILED=3]="FAILED",t}(ao||{}),KM=0,T5=1,bn=function(t){return t[t.Placeholder=0]="Placeholder",t[t.Loading=1]="Loading",t[t.Complete=2]="Complete",t[t.Error=3]="Error",t}(bn||{});var M5=0,t_=1;var I5=4,A5=5;
7var k5=7,Od=8,O5=9,pk=function(t){return t[t.Manual=0]="Manual",t[t.Playthrough=1]="Playthrough",t}(pk||{});function sg(t,n){let e=N5(t),i=n[e];if(i!==null){for(let r of i)r();n[e]=null}}function P5(t){sg(1,t),sg(0,t),sg(2,t)}function N5(t){let n=I5;return t===1?n=A5:t===2&&(n=O5),n}function mk(t){return t+1}function am(t,n){let e=t[ot],i=mk(n.index);return t[i]}function i_(t,n){let e=mk(n.index);return t.data[e]}function R5(t,n,e){let i=n[ot],r=i_(i,e);switch(t){case bn.Complete:return r.primaryTmplIndex;case bn.Loading:return r.loadingTmplIndex;case bn.Error:return r.errorTmplIndex;case bn.Placeholder:return r.placeholderTmplIndex;default:return null}}function QM(t,n){return n===bn.Placeholder?t.placeholderBlockConfig?.[KM]??null:n===bn.Loading?t.loadingBlockConfig?.[KM]??null:null}function F5(t){return t.loadingBlockConfig?.[T5]??null}function ZM(t,n){if(!t||t.length===0)return n;let e=new Set(t);for(let i of n)e.add(i);return t.length===e.size?t:Array.from(e)}function L5(t,n){let e=n.primaryTmplIndex+Xt;return em(t,e)}var n_="ngb";var B5=(t,n,e)=>{let i=t,r=i.__jsaction_fns??new Map,o=r.get(n)??[];o.push(e),r.set(n,o),i.__jsaction_fns=r},H5=(t,n)=>{let e=t,i=e.getAttribute(n_)??"",r=n.get(i)??new Set;r.has(e)||r.add(e),n.set(i,r)};var V5=t=>{t.removeAttribute(Ky.JSACTION),t.removeAttribute(n_),t.__jsaction_fns=void 0},j5=new H("",{providedIn:"root",factory:()=>({})});function fk(t,n){let e=n?.__jsaction_fns?.get(t.type);if(!(!e||!n?.isConnected))for(let i of e)i(t)}var VC=new Map;function z5(t,n){return VC.set(t,n),()=>VC.delete(t)}var XM=!1,hk=(t,n,e,i)=>{};function U5(t,n,e,i){hk(t,n,e,i)}function G5(){XM||(hk=(t,n,e,i)=>{let r=t[ja].get(so);VC.get(r)?.(n,e,i)},XM=!0)}var dS=new H("");var $5="__nghData__",gk=$5,W5="__nghDeferData__",q5=W5,aC="ngh",Y5="nghm",_k=()=>null;function K5(t,n,e=!1){let i=t.getAttribute(aC);if(i==null)return null;let[r,o]=i.split("|");if(i=e?o:r,!i)return null;let a=o?`|${o}`:"",s=e?r:a,l={};if(i!==""){let g=n.get(Qd,null,{optional:!0});g!==null&&(l=g.get(gk,[])[Number(i)])}let u={data:l,firstChild:t.firstChild??null};return e&&(u.firstChild=t,r_(u,0,t.nextSibling)),s?t.setAttribute(aC,s):t.removeAttribute(aC),u}function Q5(){_k=K5}function vk(t,n,e=!1){return _k(t,n,e)}function Z5(t){let n=t._lView;return n[ot].type===2?null:(zp(n)&&(n=n[Xt]),n)}function X5(t){return t.textContent?.replace(/\s/gm,"")}function J5(t){let n=Kd(),e=n.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode(o){let a=X5(o);return a==="ngetn"||a==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),i,r=[];for(;i=e.nextNode();)r.push(i);for(let o of r)o.textContent==="ngetn"?o.replaceWith(n.createTextNode("")):o.remove()}function r_(t,n,e){t.segmentHeads??={},t.segmentHeads[n]=e}function jC(t,n){return t.segmentHeads?.[n]??null}function eG(t){return t.get(S5,!1,{optional:!0})}function tG(t,n){let e=t.data,i=e[f5]?.[n]??null;return i===null&&e[sS]?.[n]&&(i=uS(t,n)),i}function bk(t,n){return t.data[sS]?.[n]??null}function uS(t,n){let e=bk(t,n)??[],i=0;for(let r of e)i+=r[Ig]*(r[ok]??1);return i}function iG(t){if(typeof t.disconnectedNodes>"u"){let n=t.data[ak];t.disconnectedNodes=n?new Set(n):null}return t.disconnectedNodes}function sm(t,n){if(typeof t.disconnectedNodes>"u"){let e=t.data[ak];t.disconnectedNodes=e?new Set(e):null}return!!iG(t)?.has(n)}function nG(t,n){let e=n.get(dS),r=n.get(Qd).get(q5,{}),o=!1,a=t,s=null,l=[];for(;!o&&a;){o=e.has(a);let u=e.hydrating.get(a);if(s===null&&u!=null){s=u.promise;break}l.unshift(a),a=r[a][y5]}return{parentBlockPromise:s,hydrationQueue:l}}function sC(t){return!!t&&t.nodeType===Node.COMMENT_NODE&&t.textContent?.trim()===Y5}function JM(t){for(;t&&t.nodeType===Node.TEXT_NODE;)t=t.previousSibling;return t}function rG(t){for(let i of t.body.childNodes)if(sC(i))return;let n=JM(t.body.previousSibling);if(sC(n))return;let e=JM(t.head.lastChild);if(!sC(e))throw new K(-507,!1)}function yk(t,n){let e=t.contentQueries;if(e!==null){let i=St(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],a=e[r+1];if(a!==-1){let s=t.data[a];Jg(o),s.contentQueries(2,n[a],a)}}}finally{St(i)}}}function zC(t,n,e){Jg(0);let i=St(null);try{n(t,e)}finally{St(i)}}function pS(t,n,e){if(G1(n)){let i=St(null);try{let r=n.directiveStart,o=n.directiveEnd;for(let a=r;a<o;a++){let s=t.data[a];if(s.contentQueries){let l=e[a];s.contentQueries(1,l,a)}}}finally{St(i)}}}var Ga=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Ga||{});var Xh;function oG(){if(Xh===void 0&&(Xh=null,Gn.trustedTypes))try{Xh=Gn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Xh}function o_(t){return oG()?.createHTML(t)||t}var Jh;function Ck(){if(Jh===void 0&&(Jh=null,Gn.trustedTypes))try{Jh=Gn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Jh}function eI(t){return Ck()?.createHTML(t)||t}function tI(t){return Ck()?.createScriptURL(t)||t}var Ss=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${HI})`}},UC=class extends Ss{getTypeName(){return"HTML"}},GC=class extends Ss{getTypeName(){return"Style"}}
vendor: 11,910 bytes, line 7
7,$C=class extends Ss{getTypeName(){return"Script"}},WC=class extends Ss{getTypeName(){return"URL"}},qC=class extends Ss{getTypeName(){return"ResourceURL"}};function jr(t){return t instanceof Ss?t.changingThisBreaksApplicationSecurity:t}function Ms(t,n){let e=aG(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${HI})`)}return e===n}function aG(t){return t instanceof Ss&&t.getTypeName()||null}function Sk(t){return new UC(t)}function xk(t){return new GC(t)}function wk(t){return new $C(t)}function Ek(t){return new WC(t)}function Dk(t){return new qC(t)}function Tk(t){let n=new KC(t);return sG()?new YC(n):n}var YC=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{let e=new window.DOMParser().parseFromString(o_(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},KC=class{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=o_(n),e}};function sG(){try{return!!new window.DOMParser().parseFromString(o_(""),"text/html")}catch{return!1}}var lG=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function lm(t){return t=String(t),t.match(lG)?t:"unsafe:"+t}function Is(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function cm(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var Mk=Is("area,br,col,hr,img,wbr"),Ik=Is("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ak=Is("rp,rt"),cG=cm(Ak,Ik),dG=cm(Ik,Is("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")),uG=cm(Ak,Is("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")),QC=cm(Mk,dG,uG,cG),Ag=Is("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pG=Is("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"),mG=Is("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"),ZC=cm(Ag,pG,mG),fG=Is("script,style,template"),XC=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=_G(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=gG(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=iI(n).toLowerCase();if(!QC.hasOwnProperty(e))return this.sanitizedSomething=!0,!fG.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r<i.length;r++){let o=i.item(r),a=o.name,s=a.toLowerCase();if(!ZC.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let l=o.value;Ag[s]&&(l=lm(l)),this.buf.push(" ",a,'="',nI(l),'"')}return this.buf.push(">"),!0}endElement(n){let e=iI(n).toLowerCase();QC.hasOwnProperty(e)&&!Mk.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(nI(n))}};function hG(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function gG(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw kk(n);return n}function _G(t){let n=t.firstChild;if(n&&hG(t,n))throw kk(n);return n}function iI(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function kk(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var vG=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bG=/([^\#-~ |!])/g;function nI(t){return t.replace(/&/g,"&").replace(vG,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(bG,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var eg;function mS(t,n){let e=null;try{eg=eg||Tk(t);let i=n?String(n):"";e=eg.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=eg.getInertBodyElement(i)}while(i!==o);let s=new XC().sanitizeChildren(JC(e)||e);return o_(s)}finally{if(e){let i=JC(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function JC(t){return"content"in t&&yG(t)?t.content:null}function yG(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var CG=/^>|^->|<!--|-->|--!>|<!-$/g,SG=/(<|>)/g,xG="\u200B$1\u200B";function wG(t){return t.replace(CG,n=>n.replace(SG,xG))}function fS(t,n){return t.createText(n)}function Ok(t,n,e){t.setValue(n,e)}function hS(t,n){return t.createComment(wG(n))}function a_(t,n,e){return t.createElement(n,e)}function pc(t,n,e,i,r){t.insertBefore(n,e,i,r)}function Pk(t,n,e){t.appendChild(n,e)}function rI(t,n,e,i,r){i!==null?pc(t,n,e,i,r):Pk(t,n,e)}function s_(t,n,e){t.removeChild(null,n,e)}function Nk(t){t.textContent=""}function EG(t,n,e){t.setAttribute(n,"style",e)}function DG(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function Rk(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&NU(t,n,i),r!==null&&DG(t,n,r),o!==null&&EG(t,n,o)}var en=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(en||{});function y(t){let n=gS();return n?eI(n.sanitize(en.HTML,t)||""):Ms(t,"HTML")?eI(jr(t)):mS(Kd(),di(t))}function TG(t){let n=gS();return n?n.sanitize(en.URL,t)||"":Ms(t,"URL")?jr(t):lm(di(t))}function bc(t){let n=gS();if(n)return tI(n.sanitize(en.RESOURCE_URL,t)||"");if(Ms(t,"ResourceURL"))return tI(jr(t));throw new K(904,!1)}var MG=new Set(["embed","frame","iframe","media","script"]),IG=new Set(["base","link","script"]);function AG(t,n){return n==="src"&&MG.has(t)||n==="href"&&IG.has(t)||n==="xlink:href"&&t==="script"?bc:TG}function Fk(t,n,e){return AG(n,e)(t)}function gS(){let t=qe();return t&&t[_s].sanitizer}function Lk(t){return t.ownerDocument.defaultView}function Bk(t){return t.ownerDocument}function kG(t){return t.ownerDocument.body}function Hk(t){return t instanceof Function?t():t}function OG(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var Vk="ng-template";function PG(t,n,e,i){let r=0;if(i){for(;r<n.length&&typeof n[r]=="string";r+=2)if(n[r]==="class"&&OG(n[r+1].toLowerCase(),e,0)!==-1)return!0}else if(_S(t))return!1;if(r=n.indexOf(1,r),r>-1){let o;for(;++r<n.length&&typeof(o=n[r])=="string";)if(o.toLowerCase()===e)return!0}return!1}function _S(t){return t.type===4&&t.value!==Vk}function NG(t,n,e){let i=t.type===4&&!e?Vk:t.value;return n===i}function RG(t,n,e){let i=4,r=t.attrs,o=r!==null?BG(r):0,a=!1;for(let s=0;s<n.length;s++){let l=n[s];if(typeof l=="number"){if(!a&&!oa(i)&&!oa(l))return!1;if(a&&oa(l))continue;a=!1,i=l|i&1;continue}if(!a)if(i&4){if(i=2|i&1,l!==""&&!NG(t,l,e)||l===""&&n.length===1){if(oa(i))return!1;a=!0}}else if(i&8){if(r===null||!PG(t,r,l,e)){if(oa(i))return!1;a=!0}}else{let u=n[++s],g=FG(l,r,_S(t),e);if(g===-1){if(oa(i))return!1;a=!0;continue}if(u!==""){let v;if(g>o?v="":v=r[g+1].toLowerCase(),i&2&&u!==v){if(oa(i))return!1;a=!0}}}}return oa(i)||a}function oa(t){return(t&1)===0}function FG(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){let a=n[r];if(a===t)return r;if(a===3||a===6)o=!0;else if(a===1||a===2){let s=n[++r];for(;typeof s=="string";)s=n[++r];continue}else{if(a===4)break;if(a===0){r+=4;continue}}r+=o?1:2}return-1}else return HG(n,t)}function jk(t,n,e=!1){for(let i=0;i<n.length;i++)if(RG(t,n[i],e))return!0;return!1}function LG(t){let n=t.attrs;if(n!=null){let e=n.indexOf(5);if((e&1)===0)return n[e+1]}return null}function BG(t){for(let n=0;n<t.length;n++){let e=t[n];if(MA(e))return n}return t.length}function HG(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let i=t[e];if(typeof i=="number")return-1;if(i===n)return e;e++}return-1}function VG(t,n){e:for(let e=0;e<n.length;e++){let i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function oI(t,n){return t?":not("+n.trim()+")":n}function jG(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let a=t[e];if(typeof a=="string")if(i&2){let s=t[++e];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!oa(a)&&(n+=oI(o,r),r=""),i=a,o=o||!oa(i);e++}return r!==""&&(n+=oI(o,r)),n}function zG(t){return t.map(jG).join(",")}function UG(t){let n=[],e=[],i=1,r=2;for(;i<t.length;){let o=t[i];if(typeof o=="string")r===2?o!==""&&n.push(o,t[++i]):r===8&&e.push(o);else{if(!oa(r))break;r=o}i++}return e.length&&n.push(1,...e),n}var Gi={};function vS(t,n,e,i,r,o,a,s,l,u,g){let v=Xt+i,w=v+r,C=GG(v,w),S=typeof u=="function"?u():u;return C[ot]={type:t,blueprint:C,template:e,queries:null,viewQuery:s,declTNode:n,data:C.slice().fill(null,v),bindingStartIndex:v,expandoStartIndex:w,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:typeof o=="function"?o():o,pipeRegistry:typeof a=="function"?a():a,firstChild:null,schemas:l,consts:S,incompleteFirstPass:!1,ssrId:g}}function GG(t,n){let e=[];for(let i=0;i<n;i++)e.push(i<t?null:Gi);return e}function $G(t){let n=t.tView;return n===null||n.incompleteFirstPass?t.tView=vS(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function bS(t,n,e,i,r,o,a,s,l,u,g){let v=n.blueprint.slice();return v[lo]=r,v[pt]=i|4|128|8|64|1024,(u!==null||t&&t[pt]&2048)&&(v[pt]|=2048),mA(v),v[Cn]=v[Ud]=t,v[yn]=e,v[_s]=a||t&&t[_s],v[$t]=s||t&&t[$t],v[ja]=l||t&&t[ja]||null,v[Er]=o,v[Yg]=s5(),v[Ro]=g,v[aA]=u,v[ar]=n.type==2?t[ar]:v,v}function WG(t,n,e){let i=da(n,t),r=$G(e),o=t[_s].rendererFactory,a=yS(t,bS(t,r,null,zk(e),i,n,null,o.createRenderer(i,e),null,null,null));return t[n.index]=a}function zk(t){let n=16;return t.signals?n=4096:t.onPush&&(n=64),n}function dm(t,n,e,i){if(e===0)return-1;let r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function yS(t,n){return t[jp]?t[RM][aa]=n:t[jp]=n,t[RM]=n,n}function c(t=1){Uk(gi(),qe(),Hr()+t,!1)}function Uk(t,n,e,i){if(!i)if((n[pt]&3)===3){let o=t.preOrderCheckHooks;o!==null&&rg(n,o,e)}else{let o=t.preOrderHooks;o!==null&&og(n,o,0,e)}
7dc(e)}var l_=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(l_||{});function e1(t,n,e,i){let r=St(null);try{let[o,a,s]=t.inputs[e],l=null;(a&l_.SignalBased)!==0&&(l=n[o][Sr]),l!==null&&l.transformFn!==void 0?i=l.transformFn(i):s!==null&&(i=s.call(n,i)),t.setInput!==null?t.setInput(n,l,i,e,o):lA(n,l,o,i)}finally{St(r)}}function Gk(t,n,e,i,r){let o=Hr(),a=i&2;try{dc(-1),a&&n.length>Xt&&Uk(t,n,Xt,!1),ui(a?2:0,r),e(i,r)}finally{dc(o),ui(a?3:1,r)}}function c_(t,n,e){JG(t,n,e),(e.flags&64)===64&&e8(t,n,e)}function CS(t,n,e=da){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;o<i.length;o+=2){let a=i[o+1],s=a===-1?e(n,t):t[a];t[r++]=s}}}function qG(t,n,e,i){let o=i.get(lk,sk)||e===Ga.ShadowDom,a=t.selectRootElement(n,o);return YG(a),a}function YG(t){$k(t)}var $k=()=>null;function KG(t){KA(t)?Nk(t):J5(t)}function QG(){$k=KG}function ZG(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function um(t,n,e,i,r,o,a,s){if(!s&&ES(n,t,e,i,r)){gc(n)&&XG(e,n.index);return}if(n.type&3){let l=da(n,e);i=ZG(i),r=a!=null?a(r,n.value||"",i):r,o.setProperty(l,i,r)}else n.type&12}function XG(t,n){let e=Ua(n,t);e[pt]&16||(e[pt]|=64)}function JG(t,n,e){let i=e.directiveStart,r=e.directiveEnd;gc(e)&&WG(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||wg(e,n);let o=e.initialInputs;for(let a=i;a<r;a++){let s=t.data[a],l=Gp(n,t,a,e);if(ul(l,n),o!==null&&n8(n,a-i,l,s,e,o),za(s)){let u=Ua(e.index,n);u[yn]=Gp(n,t,a,e)}}}function e8(t,n,e){let i=e.directiveStart,r=e.directiveEnd,o=e.index,a=EU();try{dc(o);for(let s=i;s<r;s++){let l=t.data[s],u=n[s];AC(s),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&t8(l,u)}}finally{dc(-1),AC(a)}}function t8(t,n){t.hostBindings!==null&&t.hostBindings(1,n)}function SS(t,n){let e=t.directiveRegistry,i=null;if(e)for(let r=0;r<e.length;r++){let o=e[r];jk(n,o.selectors,!1)&&(i??=[],za(o)?i.unshift(o):i.push(o))}return i}function i8(t,n,e,i,r,o){let a=da(t,n);xS(n[$t],a,o,t.value,e,i,r)}function xS(t,n,e,i,r,o,a){if(o==null)t.removeAttribute(n,r,e);else{let s=a==null?di(o):a(o,i||"",r);t.setAttribute(n,r,s,e)}}function n8(t,n,e,i,r,o){let a=o[n];if(a!==null)for(let s=0;s<a.length;s+=2){let l=a[s],u=a[s+1];e1(i,e,l,u)}}function wS(t,n){let e=t[ja],i=e?e.get(sr,null):null;i&&i.handleError(n)}function ES(t,n,e,i,r){let o=t.inputs?.[i],a=t.hostDirectiveInputs?.[i],s=!1;if(a)for(let l=0;l<a.length;l+=2){let u=a[l],g=a[l+1],v=n.data[u];e1(v,e[u],g,r),s=!0}if(o)for(let l of o){let u=e[l],g=n.data[l];e1(g,u,i,r),s=!0}return s}function r8(t,n){let e=Ua(n,t),i=e[ot];o8(i,e);let r=e[lo];r!==null&&e[Ro]===null&&(e[Ro]=vk(r,e[ja])),ui(18),DS(i,e,e[yn]),ui(19,e[yn])}function o8(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}function DS(t,n,e){J1(n);try{let i=t.viewQuery;i!==null&&zC(1,i,e);let r=t.template;r!==null&&Gk(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[vs]?.finishViewCreation(t),t.staticContentQueries&&yk(t,n),t.staticViewQueries&&zC(2,t.viewQuery,e);let o=t.components;o!==null&&a8(n,o)}
vendor: 11,915 bytes, line 7
7catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[pt]&=-5,eS()}}function a8(t,n){for(let e=0;e<n.length;e++)r8(t,n[e])}function Xd(t,n,e,i){let r=St(null);try{let o=n.tView,s=t[pt]&4096?4096:16,l=bS(t,o,e,s,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),u=t[n.index];l[sc]=u;let g=t[vs];return g!==null&&(l[vs]=g.createEmbeddedView(o)),DS(o,l,e),l}finally{St(r)}}function mc(t,n){return!n||n.firstChild===null||Mg(t)}var t1;function TS(t,n){return t1(t,n)}function s8(t){t1===void 0&&(t1=t())}var xs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(xs||{});function yc(t){return(t.flags&32)===32}function Md(t,n,e,i,r){if(i!=null){let o,a=!1;Wa(i)?o=i:sa(i)&&(a=!0,i=i[lo]);let s=co(i);t===0&&e!==null?r==null?Pk(n,e,s):pc(n,e,s,r||null,!0):t===1&&e!==null?pc(n,e,s,r||null,!0):t===2?s_(n,s,a):t===3&&n.destroyNode(s),o!=null&&f8(n,t,o,e,r)}}function l8(t,n){Wk(t,n),n[lo]=null,n[Er]=null}function c8(t,n,e,i,r,o){i[lo]=r,i[Er]=n,p_(t,i,e,1,r,o)}function Wk(t,n){n[_s].changeDetectionScheduler?.notify(9),p_(t,n,n[$t],2,null,null)}function d8(t){let n=t[jp];if(!n)return lC(t[ot],t);for(;n;){let e=null;if(sa(n))e=n[jp];else{let i=n[Wn];i&&(e=i)}if(!e){for(;n&&!n[aa]&&n!==t;)sa(n)&&lC(n[ot],n),n=n[Cn];n===null&&(n=t),sa(n)&&lC(n[ot],n),e=n&&n[aa]}n=e}}function MS(t,n){let e=t[Rd],i=e.indexOf(n);e.splice(i,1)}function d_(t,n){if(_c(n))return;let e=n[$t];e.destroyNode&&p_(t,n,e,3,null,null),d8(n)}function lC(t,n){if(_c(n))return;let e=St(null);try{n[pt]&=-129,n[pt]|=256,n[No]&&Dp(n[No]),p8(t,n),u8(t,n),n[ot].type===1&&n[$t].destroy();let i=n[sc];if(i!==null&&Wa(n[Cn])){i!==n[Cn]&&MS(i,n);let r=n[vs];r!==null&&r.detachView(t)}LC(n)}finally{St(e)}}function u8(t,n){let e=t.cleanup,i=n[vg];if(e!==null)for(let a=0;a<e.length-1;a+=2)if(typeof e[a]=="string"){let s=e[a+3];s>=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[vg]=null);let r=n[sl];if(r!==null){n[sl]=null;for(let a=0;a<r.length;a++){let s=r[a];s()}}let o=n[lc];if(o!==null){n[lc]=null;for(let a of o)a.destroy()}}function p8(t,n){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let i=0;i<e.length;i+=2){let r=n[e[i]];if(!(r instanceof uc)){let o=e[i+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){let s=r[o[a]],l=o[a+1];ui(4,s,l);try{l.call(s)}finally{ui(5,s,l)}}else{ui(4,r,o);try{o.call(r)}finally{ui(5,r,o)}}}}}function qk(t,n,e){return Yk(t,n.parent,e)}function Yk(t,n,e){let i=n;for(;i!==null&&i.type&168;)n=i,i=n.parent;if(i===null)return e[lo];if(gc(i)){let{encapsulation:r}=t.data[i.directiveStart+i.componentOffset];if(r===Ga.None||r===Ga.Emulated)return null}return da(i,e)}function Kk(t,n,e){return Zk(t,n,e)}function Qk(t,n,e){return t.type&40?da(t,e):null}var Zk=Qk,i1;function Xk(t,n){Zk=t,i1=n}function u_(t,n,e,i){let r=qk(t,i,n),o=n[$t],a=i.parent||n[Er],s=Kk(a,i,n);if(r!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)rI(o,r,e[l],s,!1);else rI(o,r,e,s,!1);i1!==void 0&&i1(o,i,n,e,r)}function Np(t,n){if(n!==null){let e=n.type;if(e&3)return da(n,t);if(e&4)return n1(-1,t[n.index]);if(e&8){let i=n.child;if(i!==null)return Np(t,i);{let r=t[n.index];return Wa(r)?n1(-1,r):co(r)}}else{if(e&128)return Np(t,n.next);if(e&32)return TS(n,t)()||co(t[n.index]);{let i=Jk(t,n);if(i!==null){if(Array.isArray(i))return i[0];let r=cc(t[ar]);return Np(r,i)}else return Np(t,n.next)}}}return null}function Jk(t,n){if(n!==null){let i=t[ar][Er],r=n.projection;return i.projection[r]}return null}function n1(t,n){let e=Wn+t+1;if(e<n.length){let i=n[e],r=i[ot].firstChild;if(r!==null)return Np(i,r)}return n[ys]}function IS(t,n,e,i,r,o,a){for(;e!=null;){if(e.type===128){e=e.next;continue}let s=i[e.index],l=e.type;if(a&&n===0&&(s&&ul(co(s),i),e.flags|=2),!yc(e))if(l&8)IS(t,n,e.child,i,r,o,!1),Md(n,t,r,s,o);else if(l&32){let u=TS(e,i),g;for(;g=u();)Md(n,t,r,g,o);Md(n,t,r,s,o)}else l&16?eO(t,n,i,e,r,o):Md(n,t,r,s,o);e=a?e.projectionNext:e.next}}function p_(t,n,e,i,r,o){IS(e,i,t.firstChild,n,r,o,!1)}function m8(t,n,e){let i=n[$t],r=qk(t,e,n),o=e.parent||n[Er],a=Kk(o,e,n);eO(i,0,n,e,r,a)}function eO(t,n,e,i,r,o){let a=e[ar],l=a[Er].projection[i.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++){let g=l[u];Md(n,t,r,g,o)}else{let u=l,g=a[Cn];Mg(i)&&(u.flags|=128),IS(t,n,u,g,r,o,!0)}}function f8(t,n,e,i,r){let o=e[ys],a=co(e);o!==a&&Md(n,t,i,o,r);for(let s=Wn;s<e.length;s++){let l=e[s];p_(l[ot],l,t,n,i,o)}}function h8(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=i.indexOf("-")===-1?void 0:xs.DashCase;r==null?t.removeStyle(e,i,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=xs.Important),t.setStyle(e,i,r,o))}}function kg(t,n,e,i,r=!1){for(;e!==null;){if(e.type===128){e=r?e.projectionNext:e.next;continue}let o=n[e.index];o!==null&&i.push(co(o)),Wa(o)&&g8(o,i);let a=e.type;if(a&8)kg(t,n,e.child,i);else if(a&32){let s=TS(e,n),l;for(;l=s();)i.push(l)}else if(a&16){let s=Jk(n,e);if(Array.isArray(s))i.push(...s);else{let l=cc(n[ar]);kg(l[ot],l,s,i,!0)}}e=r?e.projectionNext:e.next}return i}function g8(t,n){for(let e=Wn;e<t.length;e++){let i=t[e],r=i[ot].firstChild;r!==null&&kg(i[ot],i,r,n)}t[ys]!==t[lo]&&n.push(t[ys])}function tO(t){if(t[Ad]!==null){for(let n of t[Ad])n.impl.addSequence(n);t[Ad].length=0}}var iO=[];function _8(t){return t[No]??v8(t)}function v8(t){let n=iO.pop()??Object.create(y8);return n.lView=t,n}function b8(t){t.lView[No]!==t&&(t.lView=null,iO.push(t))}var y8=re(N({},cd),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Gd(t.lView)},consumerOnSignalRead(){this.lView[No]=this}});function C8(t){let n=t[No]??Object.create(S8);return n.lView=t,n}var S8=re(N({},cd),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=cc(t.lView);for(;n&&!nO(n[ot]);)n=cc(n);n&&fA(n)},consumerOnSignalRead(){this.lView[No]=this}});function nO(t){return t.type!==2}function rO(t){if(t[lc]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[lc])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[pt]&8192)}}var x8=100;function oO(t,n=!0,e=0){let r=t[_s].rendererFactory,o=!1;o||r.begin?.();try{w8(t,e)}catch(a){throw n&&wS(t,a),a}finally{o||r.end?.()}}function w8(t,n){let e=vA();try{yg(!0),r1(t,n);let i=0;for(;Xg(t);){if(i===x8)throw new K(103,!1);i++,r1(t,1)}}finally{yg(e)}}function E8(t,n,e,i){if(_c(n))return;let r=n[pt],o=!1,a=!1;J1(n);let s=!0,l=null,u=null;o||(nO(t)?(u=_8(n),l=Ep(u)):_y()===null?(s=!1,u=C8(n),l=Ep(u)):n[No]&&(Dp(n[No]),n[No]=null));try{mA(n),SU(t.bindingStartIndex),e!==null&&Gk(t,n,e,2,i);let g=(r&3)===3;if(!o)if(g){let C=t.preOrderCheckHooks;C!==null&&rg(n,C,null)}else{let C=t.preOrderHooks;C!==null&&og(n,C,0,null),rC(n,0)}if(a||D8(n),rO(n),aO(n,0),t.contentQueries!==null&&yk(t,n),!o)if(g){let C=t.contentCheckHooks;C!==null&&rg(n,C)}else{let C=t.contentHooks;C!==null&&og(n,C,1),rC(n,1)}M8(t,n);let v=t.components;v!==null&&lO(n,v,0);let w=t.viewQuery;if(w!==null&&zC(2,w,i),!o)if(g){let C=t.viewCheckHooks;C!==null&&rg(n,C)}else{let C=t.viewHooks;C!==null&&og(n,C,2),rC(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[nC]){for(let C of n[nC])C();n[nC]=null}o||(tO(n),n[pt]&=-73)}catch(g){throw o||Gd(n),g}finally{u!==null&&(lh(u,l),s&&b8(u)),eS()}}function aO(t,n){for(let e=XA(t);e!==null;e=JA(e))for(let i=Wn;i<e.length;i++){let r=e[i];sO(r,n)}}function D8(t){for(let n=XA(t);n!==null;n=JA(n)){if(!(n[pt]&2))continue;let e=n[Rd];for(let i=0;i<e.length;i++){let r=e[i];fA(r)}}}function T8(t,n,e){ui(18);let i=Ua(n,t);sO(i,e),ui(19,i[yn])}function sO(t,n){W1(t)&&r1(t,n)}function r1(t,n){let i=t[ot],r=t[pt],o=t[No],a=!!(n===0&&r&16);if(a||=!!(r&64&&n===0),a||=!!(r&1024),a||=!!(o?.dirty&&ch(o)),a||=!1,o&&(o.dirty=!1),t[pt]&=-9217,a)E8(i,t,i.template,t[yn]);else if(r&8192){rO(t),aO(t,1);let s=i.components;s!==null&&lO(t,s,1),tO(t)}}function lO(t,n,e){for(let i=0;i<n.length;i++)T8(t,n[i],e)}function M8(t,n){let e=t.hostBindingOpCodes;if(e!==null)try{for(let i=0;i<e.length;i++){let r=e[i];if(r<0)dc(~r);else{let o=r,a=e[++i],s=e[++i];wU(a,o);let l=n[o];ui(24,l),s(2,l),ui(25,l)}}}finally{dc(-1)}}function m_(t,n){let e=vA()?64:1088;for(t[_s].changeDetectionScheduler?.notify(n);t;){t[pt]|=e;let i=cc(t);if(zp(t)&&!i)return t;t=i}return null}function cO(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null]}function dO(t,n){let e=Wn+n;if(e<t.length)return t[e]}function Jd(t,n,e,i=!0){let r=n[ot];if(I8(r,n,t,e),i){let a=n1(e,t),s=n[$t],l=s.parentNode(t[ys]);l!==null&&c8(r,t[Er],s,n,l,a)}let o=n[Ro];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function AS(t,n){let e=Wp(t,n);return e!==void 0&&d_(e[ot],e),e}function Wp(t,n){if(t.length<=Wn)return;let e=Wn+n,i=t[e];if(i){let r=i[sc];r!==null&&r!==t&&MS(r,i),n>0&&(t[e-1][aa]=i[aa]);let o=gg(t,Wn+n);l8(i[ot],i);let a=o[vs];a!==null&&a.detachView(o[ot]),i[Cn]=null,i[aa]=null,i[pt]&=-129}return i}function I8(t,n,e,i){let r=Wn+i,o=e.length;i>0&&(e[r-1][aa]=n),i<o-Wn?(n[aa]=e[r],XI(e,Wn+i,n)):(e.push(n),n[aa]=null),n[Cn]=e;let a=n[sc];a!==null&&e!==a&&uO(a,n);let s=n[vs];s!==null&&s.insertView(t),MC(n),n[pt]|=128}function uO(t,n){let e=t[Rd],i=n[Cn];if(sa(i))t[pt]|=2;else{let r=i[Cn][ar];n[ar]!==r&&(t[pt]|=2)}e===null?t[Rd]=[n]:e.push(n)}var qp=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let n=this._lView,e=n[ot];return kg(e,n,e.firstChild,[])}constructor(n,e,i=!0){this._lView=n,this._cdRefInjectingView=e,this.notifyErrorHandler=i}get context(){return this._lView[yn]}set context(n){this._lView[yn]=n}get destroyed(){return _c(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[Cn];if(Wa(n)){let e=n[bg],i=e?e.indexOf(this):-1;i>-1&&(Wp(n,i),gg(e,i))}this._attachedToViewContainer=!1}d_(this._lView[ot],this._lView)}onDestroy(n){hA(this._lView,n)}markForCheck(){m_(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[pt]&=-129}reattach(){MC(this._lView),this._lView[pt]|=128}detectChanges(){this._lView[pt]|=1024,oO(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=zp(this._lView),e=this._lView[sc];e!==null&&!n&&MS(e,this._lView),Wk(this._lView[ot],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new K(902,!1);this._appRef=n;let e=zp(this._lView),i=this._lView[sc];i!==null&&!e&&uO(i,this._lView),MC(this._lView)}};var ii=(()=>{class t{static __NG_ELEMENT_ID__=O8}return t})(),A8=ii,k8=class extends A8{_declarationLView;_declarationTContainer;elementRef;constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){let r=Xd(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new qp(r)}};function O8(){return f_(lr(),qe())}function f_(t,n){return t.type&4?new k8(n,t,Yd(t,n)):null}function pO(t,n,e){let i=n.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return r===null?Qk(t,n,e):co(e[r])}function mO(t,n,e,i,r){let o=n.insertBeforeIndex;if(Array.isArray(o)){let a=i,s=null;if(n.type&3||(s=a,a=r),a!==null&&n.componentOffset===-1)for(let l=1;l<o.length;l++){let u=e[o[l]];pc(t,a,u,s,!1)}}}function eu(t,n,e,i,r){let o=t.data[n];if(o===null)o=kS(t,n,e,i,r),xU()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=Up();o.injectorIndex=a===null?-1:a.injectorIndex}return la(o,!0),o}function kS(t,n,e,i,r){let o=gA(),a=Q1(),s=a?o:o&&o.parent,l=t.data[n]=N8(t,s,e,n,i,r);return P8(t,l,o,a),l}function P8(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}
7function N8(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return $d()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function fO(t,n){if(t.push(n),t.length>1)for(let e=t.length-2;e>=0;e--){let i=t[e];hO(i)||R8(i,n)&&F8(i)===null&&L8(i,n.index)}}function hO(t){return!(t.type&64)}function R8(t,n){return hO(n)||t.index>n.index}function F8(t){let n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function L8(t,n){let e=t.insertBeforeIndex;Array.isArray(e)?e[0]=n:(Xk(pO,mO),t.insertBeforeIndex=n)}function Fp(t,n){let e=t.data[n];return e===null||typeof e=="string"?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function B8(t,n,e){let i=t.data[n];i===null?t.data[n]=e:i.value=e}function H8(t,n){let e=t.insertBeforeIndex;e===null?(Xk(pO,mO),e=t.insertBeforeIndex=[null,n]):(Iz(Array.isArray(e),!0,"Expecting array here"),e.push(n))}function V8(t,n,e){let i=kS(t,e,64,null,null);return fO(n,i),i}function h_(t,n){let e=n[t.currentCaseLViewIndex];return e===null?e:e<0?~e:e}function j8(t){return t>>>17}function z8(t){return(t&131070)>>>1}function U8(t,n,e){return t|n<<17|e<<1}function G8(t){return t===-1}function gO(t,n,e){t.index=0;let i=h_(n,e);i!==null?t.removes=n.remove[i]:t.removes=or}function o1(t){if(t.index<t.removes.length){let n=t.removes[t.index++];if(n>0)return t.lView[n];{t.stack.push(t.index,t.removes);let e=~n,i=t.lView[ot].data[e];return gO(t,i,t.lView),o1(t)}}else return t.stack.length===0?null:(t.removes=t.stack.pop(),t.index=t.stack.pop(),o1(t))}function $8(){let t={stack:[],index:-1};function n(e,i){for(t.lView=i;t.stack.length;)t.stack.pop();return gO(t,e.value,i),o1.bind(null,t)}return n}var W8=new RegExp(`^(\\d+)*(${rk}|${nk})*(.*)`);function q8(t){let n=t.match(W8),[e,i,r,o]=n,a=i?parseInt(i,10):r,s=[];for(let[l,u,g]of o.matchAll(/(f|n)(\d*)/g)){let v=parseInt(g,10)||1;s.push(u,v)}return[a,...s]}function Y8(t){return!t.prev&&t.parent?.type===8}function cC(t){return t.index-Xt}function K8(t,n){let e=t.i18nNodes;if(e)return e.get(n)}function g_(t,n,e,i){let r=cC(i),o=K8(t,r);if(o===void 0){let a=t.data[_5];if(a?.[r])o=Z8(a[r],e);else if(n.firstChild===i)o=t.firstChild;else{let s=i.prev===null,l=i.prev??i.parent;if(Y8(i)){let u=cC(i.parent);o=jC(t,u)}else{let u=da(l,e);if(s)o=u.firstChild;else{let g=cC(l),v=jC(t,g);if(l.type===2&&v){let C=uS(t,g)+1;o=__(C,v)}else o=u.nextSibling}}}}return o}function __(t,n){let e=n;for(let i=0;i<t;i++)e=e.nextSibling;return e}function Q8(t,n){let e=t;for(let i=0;i<n.length;i+=2){let r=n[i],o=n[i+1];for(let a=0;a<o;a++)switch(r){case p5:e=e.firstChild;break;case m5:e=e.nextSibling;break}}return e}function Z8(t,n){let[e,...i]=q8(t),r;if(e===nk)r=n[ar][lo];else if(e===rk)r=kG(n[ar][lo]);else{let o=Number(e);r=co(n[o+Xt])}return Q8(r,i)}var X8=!1,J8=()=>{};function e$(t){X8=t}function t$(t,n,e,i){J8(t,n,e,i)}var i$=()=>{};function n$(t,n,e){i$(t,n,e)}function r$(t){let n=t[Ro];if(n){let{i18nNodes:e,dehydratedIcuData:i}=n;if(e&&i){let r=t[$t];for(let o of i.values())o$(r,e,o)}n.i18nNodes=void 0,n.dehydratedIcuData=void 0}}function o$(t,n,e){for(let i of e.node.cases[e.case]){let r=n.get(i.index-Xt);r&&s_(t,r,!1)}}function _O(t){let n=t[bs]??[],i=t[Cn][$t],r=[];for(let o of n)o.data[v5]!==void 0?r.push(o):vO(o,i);t[bs]=r}function a$(t){let{lContainer:n}=t,e=n[bs];if(e===null)return;let r=n[Cn][$t];for(let o of e)vO(o,r)}function vO(t,n){let e=0,i=t.firstChild;if(i){let r=t.data[Ig];for(;e<r;){let o=i.nextSibling;s_(n,i,!1),i=o,e++}}}function v_(t){_O(t);let n=t[lo];sa(n)&&Og(n);for(let e=Wn;e<t.length;e++)Og(t[e])}function Og(t){r$(t);let n=t[ot];for(let e=Xt;e<n.bindingStartIndex;e++)if(Wa(t[e])){let i=t[e];v_(i)}else sa(t[e])&&Og(t[e])}function bO(t){let n=t._views;for(let e of n){let i=Z5(e);i!==null&&i[lo]!==null&&(sa(i)?Og(i):v_(i))}}function s$(t,n,e,i){t!==null&&(e.cleanup(n),v_(t.lContainer),bO(i))}function l$(t,n){let e=[];for(let i of n)for(let r=0;r<(i[ok]??1);r++){let o={data:i,firstChild:null};i[Ig]>0&&(o.firstChild=t,t=__(i[Ig],t)),e.push(o)}return[t,e]}var yO=()=>null;function c$(t,n){let e=t[bs];return!n||e===null||e.length===0?null:e[0].data[g5]===n?e.shift():(_O(t),null)}function d$(){yO=c$}function Ld(t,n){return yO(t,n)}var u$=class{},CO=class{}
7,a1=class{resolveComponentFactory(n){throw Error(`No component factory found for ${Lr(n)}.`)}},b_=class{static NULL=new a1},Ji=class{},It=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>p$()}return t})();function p$(){let t=qe(),n=lr(),e=Ua(n.index,t);return(sa(e)?e:t)[$t]}var m$=(()=>{class t{static \u0275prov=I({token:t,providedIn:"root",factory:()=>null})}return t})();var dC={},Pd=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=$g(i);let r=this.injector.get(n,dC,i);return r!==dC||e===dC?r:this.parentInjector.get(n,e,i)}};function s1(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a<n.length;a++){let s=n[a];if(typeof s=="number")o=s;else if(o==1)r=yC(r,s);else if(o==2){let l=s,u=n[++a];i=yC(i,l+": "+u+";")}}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}function ke(t,n=Dt.Default){let e=qe();if(e===null)return xe(t,n);let i=lr();return RA(i,e,$n(t),n)}function y_(){let t="invalid";throw new Error(t)}function OS(t,n,e,i,r){let o=i===null?null:{"":-1},a=r(t,e);if(a!==null){let s,l=null,u=null,g=h$(a);g===null?s=a:[s,l,u]=g,v$(t,n,e,s,o,l,u)}o!==null&&i!==null&&f$(e,i,o)}function f$(t,n,e){let i=t.localNames=[];for(let r=0;r<n.length;r+=2){let o=e[n[r+1]];if(o==null)throw new K(-301,!1);i.push(n[r],o)}}function h$(t){let n=null,e=!1;for(let a=0;a<t.length;a++){let s=t[a];if(a===0&&za(s)&&(n=s),s.findHostDirectiveDefs!==null){e=!0;break}}if(!e)return null;let i=null,r=null,o=null;for(let a of t)a.findHostDirectiveDefs!==null&&(i??=[],r??=new Map,o??=new Map,g$(a,i,o,r)),a===n&&(i??=[],i.push(a));return i!==null?(i.push(...n===null?t:t.slice(1)),[i,r,o]):null}function g$(t,n,e,i){let r=n.length;t.findHostDirectiveDefs(t,n,i),e.set(t,[r,n.length-1])}function _$(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function v$(t,n,e,i,r,o,a){let s=i.length,l=!1;for(let w=0;w<s;w++){let C=i[w];!l&&za(C)&&(l=!0,_$(t,e,w)),OC(wg(e,n),t,C.type)}w$(e,t.data.length,s);for(let w=0;w<s;w++){let C=i[w];C.providersResolver&&C.providersResolver(C)}let u=!1,g=!1,v=dm(t,n,s,null);s>0&&(e.directiveToIndex=new Map);for(let w=0;w<s;w++){let C=i[w];if(e.mergedAttrs=Fd(e.mergedAttrs,C.hostAttrs),y$(t,e,n,v,C),x$(v,C,r),a!==null&&a.has(C)){let[D,O]=a.get(C);e.directiveToIndex.set(C.type,[v,D+e.directiveStart,O+e.directiveStart])}else(o===null||!o.has(C))&&e.directiveToIndex.set(C.type,v);C.contentQueries!==null&&(e.flags|=4),(C.hostBindings!==null||C.hostAttrs!==null||C.hostVars!==0)&&(e.flags|=64);let S=C.type.prototype;!u&&(S.ngOnChanges||S.ngOnInit||S.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),u=!0),!g&&(S.ngOnChanges||S.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),g=!0),v++}b$(t,e,o)}function b$(t,n,e){for(let i=n.directiveStart;i<n.directiveEnd;i++){let r=t.data[i];if(e===null||!e.has(r))aI(0,n,r,i),aI(1,n,r,i),lI(n,i,!1);else{let o=e.get(r);sI(0,n,o,i),sI(1,n,o,i),lI(n,i,!0)}}}function aI(t,n,e,i){let r=t===0?e.inputs:e.outputs;for(let o in r)if(r.hasOwnProperty(o)){let a;t===0?a=n.inputs??={}:a=n.outputs??={},a[o]??=[],a[o].push(i),SO(n,o)}}function sI(t,n,e,i){let r=t===0?e.inputs:e.outputs;for(let o in r)if(r.hasOwnProperty(o)){let a=r[o],s;t===0?s=n.hostDirectiveInputs??={}:s=n.hostDirectiveOutputs??={},s[a]??=[],s[a].push(i,o),SO(n,a)}}function SO(t,n){n==="class"?t.flags|=8:n==="style"&&(t.flags|=16)}function lI(t,n,e){let{attrs:i,inputs:r,hostDirectiveInputs:o}=t;if(i===null||!e&&r===null||e&&o===null||_S(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let a=null,s=0;for(;s<i.length;){let l=i[s];if(l===0){s+=4;continue}else if(l===5){s+=2;continue}else if(typeof l=="number")break;if(!e&&r.hasOwnProperty(l)){let u=r[l];for(let g of u)if(g===n){a??=[],a.push(l,i[s+1]);break}}else if(e&&o.hasOwnProperty(l)){let u=o[l];for(let g=0;g<u.length;g+=2)if(u[g]===n){a??=[],a.push(u[g+1],i[s+1]);break}}s+=2}t.initialInputs??=[],t.initialInputs.push(a)}function y$(t,n,e,i,r){t.data[i]=r;let o=r.factory||(r.factory=ac(r.type,!0)),a=new uc(o,za(r),ke);t.blueprint[i]=a,e[i]=a,C$(t,n,i,dm(t,e,r.hostVars,Gi),r)}function C$(t,n,e,i,r){let o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;a===null&&(a=t.hostBindingOpCodes=[]);let s=~n.index;S$(a)!=s&&a.push(s),a.push(e,i,o)}}function S$(t){let n=t.length;for(;n>0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function x$(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;za(n)&&(e[""]=t)}}function w$(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function xO(t,n,e,i,r,o,a,s){let l=n.consts,u=Cs(l,a),g=eu(n,t,2,i,u);return o&&OS(n,e,g,Cs(l,s),r),g.mergedAttrs=Fd(g.mergedAttrs,g.attrs),g.attrs!==null&&s1(g,g.attrs,!1),g.mergedAttrs!==null&&s1(g,g.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,g),g}function wO(t,n){tS(t,n),G1(n)&&t.queries.elementEnd(n)}var Pg=class extends b_{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=cl(n);return new Bd(e,this.ngModule)}};function E$(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&l_.SignalBased)!==0};return r&&(o.transform=r),o}
7)}function D$(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function T$(t,n,e){let i=n instanceof hi?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new Pd(e,i):e}function M$(t){let n=t.get(Ji,null);if(n===null)throw new K(407,!1);let e=t.get(m$,null),i=t.get(dl,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i}}function I$(t,n){let e=(t.selectors[0][0]||"div").toLowerCase();return a_(n,e,e==="svg"?pA:e==="math"?dU:null)}var Bd=class extends CO{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=E$(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=D$(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=zG(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r){ui(22);let o=St(null);try{let a=this.componentDef,s=i?["ng-version","19.2.19"]:UG(this.componentDef.selectors[0]),l=vS(0,null,null,1,0,null,null,null,null,[s],null),u=T$(a,r||this.ngModule,n),g=M$(u),v=g.rendererFactory.createRenderer(null,a),w=i?qG(v,i,a.encapsulation,u):I$(a,v),C=bS(null,l,null,512|zk(a),null,null,g,v,u,null,vk(w,u,!0));C[Xt]=w,J1(C);let S=null;try{let D=xO(Xt,l,C,"#host",()=>[this.componentDef],!0,0);w&&(Rk(v,w,D),ul(w,C)),c_(l,C,D),pS(l,D,C),wO(l,D),e!==void 0&&A$(D,this.ngContentSelectors,e),S=Ua(D.index,C),C[yn]=S[yn],DS(l,C,null)}catch(D){throw S!==null&&LC(S),LC(C),D}finally{ui(23),eS()}return new l1(this.componentType,C)}finally{St(o)}}},l1=class extends u${_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e){super(),this._rootLView=e,this._tNode=em(e[ot],Xt),this.location=Yd(this._tNode,e),this.instance=Ua(this._tNode.index,e)[yn],this.hostView=this.changeDetectorRef=new qp(e,void 0,!1),this.componentType=n}setInput(n,e){let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=ES(i,r[ot],r,n,e);this.previousInputValues.set(n,e);let a=Ua(i.index,r);m_(a,1)}get injector(){return new oc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function A$(t,n,e){let i=t.projection=[];for(let r=0;r<n.length;r++){let o=e[r];i.push(o!=null&&o.length?Array.from(o):null)}}var bi=(()=>{class t{static __NG_ELEMENT_ID__=k$}return t})();function k$(){let t=lr();return DO(t,qe())}var O$=bi,EO=class extends O${_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Yd(this._hostTNode,this._hostLView)}get injector(){return new oc(this._hostTNode,this._hostLView)}get parentInjector(){let n=iS(this._hostTNode,this._hostLView);if(IA(n)){let e=Sg(n,this._hostLView),i=Cg(n),r=e[ot].data[i+8];return new oc(r,e)}else return new oc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=cI(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Wn}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Ld(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,mc(this._hostTNode,a)),s}createComponent(n,e,i,r,o){let a=n&&!aU(n),s;if(a)s=e;else{let S=e||{};s=S.index,i=S.injector,r=S.projectableNodes,o=S.environmentInjector||S.ngModuleRef}let l=a?n:new Bd(cl(n)),u=i||this.parentInjector;if(!o&&l.ngModule==null){let D=(a?u:this.parentInjector).get(hi,null);D&&(o=D)}let g=cl(l.componentType??{}),v=Ld(this._lContainer,g?.id??null),w=v?.firstChild??null,C=l.create(u,r,w,o);return this.insertImpl(C.hostView,s,mc(this._hostTNode,v)),C}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(pU(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[Cn],u=new EO(l,l[Er],l[Cn]);u.detach(u.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return Jd(a,r,o,i),n.attachToViewContainerRef(),XI(uC(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=cI(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Wp(this._lContainer,e);i&&(gg(uC(this._lContainer),e),d_(i[ot],i))}detach(n){let e=this._adjustIndex(n,-1),i=Wp(this._lContainer,e);return i&&gg(uC(this._lContainer),e)!=null?new qp(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function cI(t){return t[bg]}function uC(t){return t[bg]||(t[bg]=[])}function DO(t,n){let e,i=n[t.index];return Wa(i)?e=i:(e=cO(i,n,null,t),n[t.index]=e,yS(n,e)),TO(e,n,t,i),new EO(e,t,n)}function P$(t,n){let e=t[$t],i=e.createComment(""),r=da(n,t),o=e.parentNode(r);return pc(e,o,i,e.nextSibling(r),!1),i}var TO=MO,PS=()=>!1;function N$(t,n,e){return PS(t,n,e)}function MO(t,n,e,i){if(t[ys])return;let r;e.type&8?r=co(i):r=P$(n,e),t[ys]=r}function R$(t,n,e){if(t[ys]&&t[bs])return!0;let i=e[Ro],r=n.index-Xt;if(!i||o5(n)||sm(i,r))return!1;let a=jC(i,r),s=i.data[sS]?.[r],[l,u]=l$(a,s);return t[ys]=l,t[bs]=u,!0}function F$(t,n,e,i){PS(t,e,n)||MO(t,n,e,i)}function L$(){TO=F$,PS=R$}var c1=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},d1=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){let a=e.getByIndex(o),s=this.queries[a.indexInDeclarationView];
vendor: 9,864 bytes, line 7
7r.push(s.clone())}return new t(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)RS(n,e).matches!==null&&this.queries[e].setDirty()}},Ng=class{flags;read;predicate;constructor(n,e,i=null){this.flags=e,this.read=i,typeof n=="string"?this.predicate=U$(n):this.predicate=n}},u1=class t{queries;constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){let r=e!==null?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,e!==null?e.push(o):e=[o])}return e!==null?new t(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}},p1=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,e=-1){this.metadata=n,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new t(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,i=n.parent;for(;i!==null&&i.type&8&&i.index!==e;)i=i.parent;return e===(i!==null?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){let i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){let o=i[r];this.matchTNodeWithReadOption(n,e,B$(e,o)),this.matchTNodeWithReadOption(n,e,ag(e,n,o,!1,!1))}else i===ii?e.type&4&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,ag(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(i!==null){let r=this.metadata.read;if(r!==null)if(r===ue||r===bi||r===ii&&e.type&4)this.addMatch(e.index,-2);else{let o=ag(e,n,r,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(n,e){this.matches===null?this.matches=[n,e]:this.matches.push(n,e)}};function B$(t,n){let e=t.localNames;if(e!==null){for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1]}return null}function H$(t,n){return t.type&11?Yd(t,n):t.type&4?f_(t,n):null}function V$(t,n,e,i){return e===-1?H$(n,t):e===-2?j$(t,n,i):Gp(t,t[ot],e,n)}function j$(t,n,e){if(e===ue)return Yd(n,t);if(e===ii)return f_(n,t);if(e===bi)return DO(n,t)}function IO(t,n,e,i){let r=n[vs].queries[i];if(r.matches===null){let o=t.data,a=e.matches,s=[];for(let l=0;a!==null&&l<a.length;l+=2){let u=a[l];if(u<0)s.push(null);else{let g=o[u];s.push(V$(n,g,a[l+1],e.metadata.read))}}r.matches=s}return r.matches}function m1(t,n,e,i){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let a=IO(t,n,r,e);for(let s=0;s<o.length;s+=2){let l=o[s];if(l>0)i.push(a[s/2]);else{let u=o[s+1],g=n[-l];for(let v=Wn;v<g.length;v++){let w=g[v];w[sc]===w[Cn]&&m1(w[ot],w,u,i)}if(g[Rd]!==null){let v=g[Rd];for(let w=0;w<v.length;w++){let C=v[w];m1(C[ot],C,u,i)}}}}}return i}function NS(t,n){return t[vs].queries[n].queryList}function AO(t,n,e){let i=new uo((e&4)===4);return hU(t,n,i,i.destroy),(n[vs]??=new d1).queries.push(new c1(i))-1}function z$(t,n,e){let i=gi();return i.firstCreatePass&&(OO(i,new Ng(t,n,e),-1),(n&2)===2&&(i.staticViewQueries=!0)),AO(i,qe(),n)}function kO(t,n,e,i){let r=gi();if(r.firstCreatePass){let o=lr();OO(r,new Ng(n,e,i),o.index),G$(r,t),(e&2)===2&&(r.staticContentQueries=!0)}return AO(r,qe(),e)}function U$(t){return t.split(",").map(n=>n.trim())}function OO(t,n,e){t.queries===null&&(t.queries=new u1),t.queries.track(new p1(n,e))}function G$(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function RS(t,n){return t.queries.getByIndex(n)}function PO(t,n){let e=t[ot],i=RS(e,n);return i.crossesNgTemplate?m1(e,t,n,[]):IO(e,t,i,n)}function NO(t,n,e){let i,r=ph(()=>{i._dirtyCounter();let o=Y$(i,t);if(n&&o===void 0)throw new K(-951,!1);return o});return i=r[Sr],i._dirtyCounter=ee(0),i._flatValue=void 0,r}function $$(t){return NO(!0,!1,t)}function W$(t){return NO(!0,!0,t)}function q$(t,n){let e=t[Sr];e._lView=qe(),e._queryIndex=n,e._queryList=NS(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function Y$(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[pt]&4)return n?void 0:or;let r=NS(e,i),o=PO(e,i);return r.reset(o,$A),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function dI(t,n){return $$(n)}function K$(t,n){return W$(n)}var RO=(dI.required=K$,dI);function FO(t,n){let e=Object.create(VI),i=new Tg;e.value=t;function r(){return dd(e),uI(e.value),e.value}return r[Sr]=e,r.asReadonly=WA.bind(r),r.set=o=>{e.equal(e.value,o)||(ud(e,o),i.emit(o))},r.update=o=>{uI(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function uI(t){if(t===Ug)throw new K(952,!1)}function pI(t,n){return FO(t,n)}function Q$(t){return FO(Ug,t)}var LO=(pI.required=Q$,pI);var ws=class{},FS=class{};var f1=class extends ws{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Pg(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=tA(n);this._bootstrapComponents=Hk(o.bootstrap),this._r3Injector=BA(n,e,[{provide:ws,useValue:this},{provide:b_,useValue:this.componentFactoryResolver},...i],Lr(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},h1=class extends FS{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new f1(this.moduleType,n,[])}};var Rg=class extends ws{injector;componentFactoryResolver=new Pg(this);instance=null;constructor(n){super();let e=new Vp([...n.providers,{provide:ws,useValue:this},{provide:b_,useValue:this.componentFactoryResolver}],n.parent||qg(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function tu(t,n,e=null){return new Rg({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var Z$=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=j1(!1,e.type),r=i.length>0?tu([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=I({token:t,providedIn:"environment",factory:()=>new t(xe(hi))})}return t})();function P(t){return Zp(()=>{let n=BO(t),e=re(N({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===QA.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(Z$).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ga.Emulated,styles:t.styles||or,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&cr("NgStandalone"),HO(e);let i=t.dependencies;return e.directiveDefs=mI(i,!1),e.pipeDefs=mI(i,!0),e.id=i6(e),e})}function X$(t){return cl(t)||H1(t)}function J$(t){return t!==null}function ye(t){return Zp(()=>({type:t.type,bootstrap:t.bootstrap||or,declarations:t.declarations||or,imports:t.imports||or,exports:t.exports||or,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function e6(t,n){if(t==null)return Va;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=l_.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function t6(t){if(t==null)return Va;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function $(t){return Zp(()=>{let n=BO(t);return HO(n),n})}function Pn(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function BO(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||Va,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||or,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:e6(t.inputs,n),outputs:t6(t.outputs),debugInfo:null}}function HO(t){t.features?.forEach(n=>n(t))}function mI(t,n){if(!t)return null;let e=n?iA:X$;return()=>(typeof t=="function"?t():t).map(i=>e(i)).filter(J$)}function i6(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];
7for(let o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function n6(t){return Object.getPrototypeOf(t.prototype).constructor}function it(t){let n=n6(t.type),e=!0,i=[t];for(;n;){let r;if(za(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new K(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=pC(t.inputs),a.declaredInputs=pC(t.declaredInputs),a.outputs=pC(t.outputs);let s=r.hostBindings;s&&l6(t,s);let l=r.viewQuery,u=r.contentQueries;if(l&&a6(t,l),u&&s6(t,u),r6(t,r),Tz(t.outputs,r.outputs),za(r)&&r.data.animation){let g=t.data;g.animation=(g.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a<o.length;a++){let s=o[a];s&&s.ngInherit&&s(t),s===it&&(e=!1)}}n=Object.getPrototypeOf(n)}o6(i)}function r6(t,n){for(let e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let i=n.inputs[e];i!==void 0&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e])}}function o6(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Fd(r.hostAttrs,e=Fd(e,r.hostAttrs))}}function pC(t){return t===Va?{}:t===or?[]:t}function a6(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function s6(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function l6(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function LS(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=VO,e.hostDirectives=i?t.map(g1):[t]):i?e.hostDirectives.unshift(...t.map(g1)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function VO(t,n,e){if(t.hostDirectives!==null)for(let i of t.hostDirectives)if(typeof i=="function"){let r=i();for(let o of r)fI(g1(o),n,e)}else fI(i,n,e)}function fI(t,n,e){let i=H1(t.directive);c6(i.declaredInputs,t.inputs),VO(i,n,e),e.set(i,t),n.push(i)}function g1(t){return typeof t=="function"?{directive:$n(t),inputs:Va,outputs:Va}:{directive:$n(t.directive),inputs:hI(t.inputs),outputs:hI(t.outputs)}}function hI(t){if(t===void 0||t.length===0)return Va;let n={};for(let e=0;e<t.length;e+=2)n[t[e]]=t[e+1];return n}function c6(t,n){for(let e in n)if(n.hasOwnProperty(e)){let i=n[e],r=t[e];t[i]=r}}function jO(t){return u6(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function d6(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{let e=t[Symbol.iterator](),i;for(;!(i=e.next()).done;)n(i.value)}}function u6(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function BS(t,n,e){return t[n]=e}function p6(t,n){return t[n]}function wr(t,n,e){let i=t[n];return Object.is(i,e)?!1:(t[n]=e,!0)}function Hd(t,n,e,i){let r=wr(t,n,e);return wr(t,n+1,i)||r}function m6(t,n,e,i,r){let o=Hd(t,n,e,i);return wr(t,n+2,r)||o}function C_(t,n,e,i,r,o){let a=Hd(t,n,e,i);return Hd(t,n+2,r,o)||a}function f6(t,n,e,i,r,o,a,s,l){let u=n.consts,g=eu(n,t,4,a||null,s||null);K1()&&OS(n,e,g,Cs(u,l),SS),g.mergedAttrs=Fd(g.mergedAttrs,g.attrs),tS(n,g);let v=g.tView=vS(2,g,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u,null);return n.queries!==null&&(n.queries.template(n,g),v.queries=n.queries.embeddedTView(g)),g}function Fg(t,n,e,i,r,o,a,s,l,u){let g=e+Xt,v=n.firstCreatePass?f6(g,n,t,i,r,o,a,s,l):n.data[g];la(v,!1);let w=zO(n,t,v,e);nm()&&u_(n,t,w,v),ul(w,t);let C=cO(w,t,w,v);return t[g]=C,yS(t,C),N$(C,v,t),Kg(v)&&c_(n,t,v),l!=null&&CS(t,v,u),v}function x(t,n,e,i,r,o,a,s){let l=qe(),u=gi(),g=Cs(u.consts,o);return Fg(l,u,t,n,e,i,r,g,a,s),x}var zO=UO;function UO(t,n,e,i){return Ds(!0),n[$t].createComment("")}function h6(t,n,e,i){let r=n[Ro],o=!r||$d()||yc(e)||sm(r,i);if(Ds(o),o)return UO(t,n);let a=r.data[h5]?.[i]??null;a!==null&&e.tView!==null&&e.tView.ssrId===null&&(e.tView.ssrId=a);let s=g_(r,t,n,e);r_(r,i,s);let l=uS(r,i);return __(l,s)}function g6(){zO=h6}var _6=(()=>{class t{cachedInjectors=new Map;getOrCreateInjector(e,i,r,o){if(!this.cachedInjectors.has(e)){let a=r.length>0?tu(r,i,o):null;this.cachedInjectors.set(e,a)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=I({token:t,providedIn:"environment",factory:()=>new t})}return t})();var v6=new H("");function mC(t,n,e){return t.get(_6).getOrCreateInjector(n,t,e,"")}function b6(t,n,e){if(t instanceof Pd){let r=t.injector,o=t.parentInjector,a=mC(o,n,e);return new Pd(r,a)}let i=t.get(hi);if(i!==t){let r=mC(i,n,e);return new Pd(t,r)}return mC(t,n,e)}function Id(t,n,e,i=!1){let r=e[Cn],o=r[ot];if(_c(r))return;let a=am(r,n),s=a[t_],l=a[k5];if(!(l!==null&&t<l)&&gI(s,t)&&gI(a[M5]??-1,t)){let u=i_(o,n),v=!i&&!0&&(F5(u)!==null||QM(u,bn.Loading)!==null||QM(u,bn.Placeholder))?S6:C6;try{v(t,a,e,n,r)}catch(w){wS(r,w)}}}function y6(t,n){let e=t[bs]?.findIndex(r=>r.data[b5]===n[t_])??-1;return{dehydratedView:e>-1?t[bs][e]:null,dehydratedViewIx:e}}function C6(t,n,e,i,r){ui(20);let o=R5(t,r,i);if(o!==null){n[t_]=t;let a=r[ot],s=o+Xt,l=em(a,s),u=0;AS(e,u);let g;if(t===bn.Complete){let S=i_(a,i),D=S.providers;D&&D.length>0&&(g=b6(r[ja],S,D))}let{dehydratedView:v,dehydratedViewIx:w}=y6(e,n),C=Xd(r,l,null,{injector:g,dehydratedView:v});if(Jd(e,C,u,mc(l,v)),m_(C,2),w>-1&&e[bs]?.splice(w,1),(t===bn.Complete||t===bn.Error)&&Array.isArray(n[Od])){for(let S of n[Od])S();n[Od]=null}}ui(21)}function gI(t,n){return t<n}function _I(t,n,e){t.loadingPromise.then(()=>{t.loadingState===ao.COMPLETE?Id(bn.Complete,n,e):t.loadingState===ao.FAILED&&Id(bn.Error,n,e)})}var S6=null;var HS=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var VS=new H(""),pm=new H(""),S_=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,i,r){this._ngZone=e,this.registry=i,U1()&&(this._destroyRef=d(Vr,{optional:!0})??void 0),jS||(x6(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>
7{this._isZoneStable=!1}}),i=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),i.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(e)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e()},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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(e,i,r),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}static \u0275fac=function(i){return new(i||t)(xe(de),xe(x_),xe(pm))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),x_=(()=>{class t{_applications=new Map;registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return jS?.findTestabilityInTree(this,e,i)??null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function x6(t){jS=t}var jS,GO=(()=>{class t{static \u0275prov=I({token:t,providedIn:"root",factory:()=>new _1})}return t})(),_1=class{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}remove(n){let e=n.zone,i=this.queues.get(e);i.has(n)&&(i.delete(n),this.queuedEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,e]of this.queues)n===null?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(let e of n)n.delete(e),this.queuedEffectCount--,e.run()}};function hl(t){return!!t&&typeof t.then=="function"}function zS(t){return!!t&&typeof t.subscribe=="function"}var $O=new H("");function Cc(t){return $a([{provide:$O,multi:!0,useValue:t}])}var WO=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=d($O,{optional:!0})??[];injector=d(Ne);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=po(this.injector,r);if(hl(o))e.push(o);else if(zS(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Sc=new H("");function w6(){Cy(()=>{throw new K(600,!1)})}function E6(t){return t.isBoundToModule}var D6=10;var Ui=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=d(JU);afterRenderManager=d(dk);zonelessEnabled=d(e_);
7rootEffectScheduler=d(GO);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new G;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=d(ua).hasPendingTasks.pipe(F(e=>!e));constructor(){d(Zd,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=d(hi);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=Ne.NULL){ui(10);let o=e instanceof CO;if(!this._injector.get(WO).done){let C="";throw new K(405,C)}let s;o?s=e:s=this._injector.get(b_).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let l=E6(s)?void 0:this._injector.get(ws),u=i||s.selector,g=s.create(r,[],u,l),v=g.location.nativeElement,w=g.injector.get(VS,null);return w?.registerApplication(v),g.onDestroy(()=>{this.detachView(g.hostView),lg(this.components,g),w?.unregisterApplication(v)}),this._loadComponent(g),ui(11,g),g}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ui(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(lS.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new K(101,!1);let e=St(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,St(e),this.afterTick.next(),ui(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ji,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++<D6;)ui(14),this.synchronizeOnce(),ui(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let e=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i,notifyErrorHandler:r}of this.allViews)T6(i,r,e,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>Xg(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;lg(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Sc,[]).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>lg(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new K(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lg(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function T6(t,n,e,i){if(!e&&!Xg(t))return;oO(t,n,e&&!i?0:1)}function M6(t,n,e){let i=n[ja],r=n[ot];if(t.loadingState!==ao.NOT_STARTED)return t.loadingPromise??Promise.resolve();let o=am(n,e),a=L5(r,t);t.loadingState=ao.IN_PROGRESS,sg(1,o);let s=t.dependencyResolverFn,l=i.get(zA).add();return s?(t.loadingPromise=Promise.allSettled(s()).then(u=>{let g=!1,v=[],w=[];for(let C of u)if(C.status==="fulfilled"){let S=C.value,D=cl(S)||H1(S);if(D)v.push(D);else{let O=iA(S);O&&w.push(O)}}else{g=!0;break}if(g){if(t.loadingState=ao.FAILED,t.errorTmplIndex===null){let C="",S=new K(-750,!1);wS(n,S)}}else{t.loadingState=ao.COMPLETE;let C=a.tView;if(v.length>0){C.directiveRegistry=ZM(C.directiveRegistry,v);let S=v.map(O=>O.type),D=j1(!1,...S);t.providers=D}w.length>0&&(C.pipeRegistry=ZM(C.pipeRegistry,w))}}),t.loadingPromise.finally(()=>{t.loadingPromise=null,l()})):(t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=ao.COMPLETE,l()}),t.loadingPromise)}function I6(t,n){return n[ja].get(v6,null,{optional:!0})?.behavior!==pk.Manual}function A6(t,n,e){let i=n[ot],r=n[e.index];if(!I6(t,n))return;let o=am(n,e),a=i_(i,e);switch(P5(o),a.loadingState){case ao.NOT_STARTED:Id(bn.Loading,e,r),M6(a,n,e),a.loadingState===ao.IN_PROGRESS&&_I(a,e,r);break;case ao.IN_PROGRESS:Id(bn.Loading,e,r),_I(a,e,r);break;case ao.COMPLETE:Id(bn.Complete,e,r);break;case ao.FAILED:Id(bn.Error,e,r);break;default:}}function k6(t,n,e){return li(this,null,function*(){let i=t.get(dS);if(i.hydrating.has(n))return;let{parentBlockPromise:o,hydrationQueue:a}=nG(n,t);if(a.length===0)return;o!==null&&a.shift(),N6(i,a),o!==null&&(yield o);let s=a[0];
7i.has(s)?yield vI(t,a,e):i.awaitParentBlock(s,()=>li(null,null,function*(){return yield vI(t,a,e)}))})}function vI(t,n,e){return li(this,null,function*(){let i=t.get(dS),r=i.hydrating,o=t.get(ua),a=o.add();for(let l=0;l<n.length;l++){let u=n[l],g=i.get(u);if(g!=null){if(yield F6(g),yield R6(t),O6(g)){a$(g),bI(n.slice(l),i);break}r.get(u).resolve()}else{P6(l,n,i),bI(n.slice(l),i);break}}let s=n[n.length-1];yield r.get(s)?.promise,o.remove(a),e&&e(n),s$(i.get(s),n,i,t.get(Ui))})}function O6(t){return am(t.lView,t.tNode)[t_]===bn.Error}function P6(t,n,e){let i=t-1,r=i>-1?e.get(n[i]):null;r&&v_(r.lContainer)}function bI(t,n){let e=n.hydrating;for(let i in t)e.get(i)?.reject();n.cleanup(t)}function N6(t,n){for(let e of n)t.hydrating.set(e,Promise.withResolvers())}function R6(t){return new Promise(n=>Ti(n,{injector:t}))}function F6(t){return li(this,null,function*(){let{tNode:n,lView:e}=t,i=am(e,n);return new Promise(r=>{L6(i,r),A6(2,e,n)})})}function L6(t,n){Array.isArray(t[Od])||(t[Od]=[]),t[Od].push(n)}function ce(t,n,e,i){let r=qe(),o=ml();if(wr(r,o,n)){let a=gi(),s=im();i8(s,r,t,n,e,i)}return ce}function US(t,n,e,i){return wr(t,ml(),e)?n+di(e)+i:Gi}function B6(t,n,e,i,r,o){let a=Wd(),s=Hd(t,a,e,r);return vc(2),s?n+di(e)+i+di(r)+o:Gi}function H6(t,n,e,i,r,o,a,s,l,u){let g=Wd(),v=C_(t,g,e,r,a,l);return vc(4),v?n+di(e)+i+di(r)+o+di(a)+s+di(l)+u:Gi}function V6(t,n,e,i,r,o,a,s,l,u,g,v){let w=Wd(),C=C_(t,w,e,r,a,l);return C=wr(t,w+4,g)||C,vc(5),C?n+di(e)+i+di(r)+o+di(a)+s+di(l)+u+di(g)+v:Gi}function j6(t,n,e,i,r,o,a,s,l,u,g,v,w,C){let S=Wd(),D=C_(t,S,e,r,a,l);return D=Hd(t,S+4,g,w)||D,vc(6),D?n+di(e)+i+di(r)+o+di(a)+s+di(l)+u+di(g)+v+di(w)+C:Gi}function z6(t,n,e,i,r,o,a,s,l,u,g,v,w,C,S,D){let O=Wd(),V=C_(t,O,e,r,a,l);return V=m6(t,O+4,g,w,S)||V,vc(7),V?n+di(e)+i+di(r)+o+di(a)+s+di(l)+u+di(g)+v+di(w)+C+di(S)+D:Gi}function tg(t,n){return t<<17|n<<2}function fc(t){return t>>17&32767}function U6(t){return(t&2)==2}function G6(t,n){return t&131071|n<<17}function v1(t){return t|2}function Vd(t){return(t&131068)>>2}function fC(t,n){return t&-131069|n<<2}function $6(t){return(t&1)===1}function b1(t){return t|1}function W6(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=fc(a),l=Vd(a);t[i]=e;let u=!1,g;if(Array.isArray(e)){let v=e;g=v[1],(g===null||Jp(v,g)>0)&&(u=!0)}else g=e;if(r)if(l!==0){let w=fc(t[s+1]);t[i+1]=tg(w,s),w!==0&&(t[w+1]=fC(t[w+1],i)),t[s+1]=G6(t[s+1],i)}else t[i+1]=tg(s,0),s!==0&&(t[s+1]=fC(t[s+1],i)),s=i;else t[i+1]=tg(l,0),s===0?s=i:t[l+1]=fC(t[l+1],i),l=i;u&&(t[i+1]=v1(t[i+1])),yI(t,g,i,!0),yI(t,g,i,!1),q6(n,g,t,i,o),a=tg(s,l),o?n.classBindings=a:n.styleBindings=a}function q6(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Jp(o,n)>=0&&(e[i+1]=b1(e[i+1]))}function yI(t,n,e,i){let r=t[e+1],o=n===null,a=i?fc(r):Vd(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],u=t[a+1];Y6(l,n)&&(s=!0,t[a+1]=i?b1(u):v1(u)),a=i?fc(u):Vd(u)}s&&(t[e+1]=i?v1(r):b1(r))}function Y6(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Jp(t,n)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qO(t){return t.substring(vn.key,vn.keyEnd)}function K6(t){return t.substring(vn.value,vn.valueEnd)}function Q6(t){return QO(t),YO(t,jd(t,0,vn.textEnd))}function YO(t,n){let e=vn.textEnd;return e===n?-1:(n=vn.keyEnd=X6(t,vn.key=n,e),jd(t,n,e))}function Z6(t){return QO(t),KO(t,jd(t,0,vn.textEnd))}function KO(t,n){let e=vn.textEnd,i=vn.key=jd(t,n,e);return e===i?-1:(i=vn.keyEnd=J6(t,i,e),i=CI(t,i,e,58),i=vn.value=jd(t,i,e),i=vn.valueEnd=eW(t,i,e),CI(t,i,e,59))}function QO(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function jd(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function X6(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}function J6(t,n,e){let i;for(;n<e&&((i=t.charCodeAt(n))===45||i===95||(i&-33)>=65&&(i&-33)<=90||i>=48&&i<=57);)n++;return n}function CI(t,n,e,i){return n=jd(t,n,e),n<e&&n++,n}function eW(t,n,e){let i=-1,r=-1,o=-1,a=n,s=a;for(;a<e;){let l=t.charCodeAt(a++);if(l===59)return s;l===34||l===39?s=a=SI(t,l,a,e):n===a-4&&o===85&&r===82&&i===76&&l===40?s=a=SI(t,41,a,e):l>32&&(s=a),o=r,r=i,i=l&-33}return s}function SI(t,n,e,i){let r=-1,o=e;for(;o<i;){let a=t.charCodeAt(o++);if(a==n&&r!==92)return o;a==92&&r===92?r=0:r=a}throw new Error}function f(t,n,e){let i=qe(),r=ml();if(wr(i,r,n)){let o=gi(),a=im();um(o,a,i,t,n,i[$t],e,!1)}return f}function y1(t,n,e,i,r){ES(n,t,e,r?"class":"style",i)}function sn(t,n,e){return JO(t,n,e,!1),sn}function fe(t,n){return JO(t,n,null,!0),fe}function ZO(t){GS(i2,tW,t,!1)}function tW(t,n){for(let e=Z6(n);e>=0;e=KO(n,e))i2(t,qO(n),K6(n))}function Mi(t){GS(sW,XO,t,!0)}function XO(t,n){for(let e=Q6(n);e>=0;e=YO(n,e))Xp(t,qO(n),!0)}function JO(t,n,e,i){let r=qe(),o=gi(),a=vc(2);if(o.firstUpdatePass&&t2(o,t,a,i),n!==Gi&&wr(r,a,n)){let s=o.data[Hr()];n2(o,s,r,r[$t],t,r[a+1]=cW(n,e),i,a)}}function GS(t,n,e,i){let r=gi(),o=vc(2);r.firstUpdatePass&&t2(r,null,o,i);let a=qe();if(e!==Gi&&wr(a,o,e)){let s=r.data[Hr()];if(r2(s,i)&&!e2(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=yC(l,e||"")),y1(r,s,a,e,i)}else lW(r,s,a,a[$t],a[o+1],a[o+1]=aW(t,n,e),i,o)}}function e2(t,n){return n>=t.expandoStartIndex}function t2(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[Hr()],a=e2(t,e);r2(o,i)&&n===null&&!a&&(n=!1),n=iW(r,o,n,i),W6(r,o,n,e,a,i)}}function iW(t,n,e,i){let r=DU(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=hC(null,t,n,e,i),e=Yp(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=hC(r,t,n,e,i),o===null){let l=nW(t,n,i);l!==void 0&&Array.isArray(l)&&(l=hC(null,t,n,l[1],i),l=Yp(l,n.attrs,i),rW(t,n,i,l))}else o=oW(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function nW(t,n,e){let i=e?n.classBindings:n.styleBindings;if(Vd(i)!==0)return t[fc(i)]}function rW(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[fc(r)]=i}function oW(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++){let a=t[o].hostAttrs;i=Yp(i,a,e)}return Yp(i,n.attrs,e)}function hC(t,n,e,i,r){let o=null,a=e.directiveEnd,s=e.directiveStylingLast;
vendor: 4,147 bytes, line 7
7for(s===-1?s=e.directiveStart:s++;s<a&&(o=n[s],i=Yp(i,o.hostAttrs,r),o!==t);)s++;return t!==null&&(e.directiveStylingLast=s),i}function Yp(t,n,e){let i=e?1:2,r=-1;if(n!==null)for(let o=0;o<n.length;o++){let a=n[o];typeof a=="number"?r=a:r===i&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Xp(t,a,e?!0:n[++o]))}return t===void 0?null:t}function aW(t,n,e){if(e==null||e==="")return or;let i=[],r=jr(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else typeof r=="string"&&n(i,r);return i}function i2(t,n,e){Xp(t,n,jr(e))}function sW(t,n,e){let i=String(n);i!==""&&!i.includes(" ")&&Xp(t,i,e)}function lW(t,n,e,i,r,o,a,s){r===Gi&&(r=or);let l=0,u=0,g=0<r.length?r[0]:null,v=0<o.length?o[0]:null;for(;g!==null||v!==null;){let w=l<r.length?r[l+1]:void 0,C=u<o.length?o[u+1]:void 0,S=null,D;g===v?(l+=2,u+=2,w!==C&&(S=v,D=C)):v===null||g!==null&&g<v?(l+=2,S=g):(u+=2,S=v,D=C),S!==null&&n2(t,n,e,i,S,D,a,s),g=l<r.length?r[l]:null,v=u<o.length?o[u]:null}}function n2(t,n,e,i,r,o,a,s){if(!(n.type&3))return;let l=t.data,u=l[s+1],g=$6(u)?xI(l,n,e,r,Vd(u),a):void 0;if(!Lg(g)){Lg(o)||U6(u)&&(o=xI(l,null,e,r,s,a));let v=Qg(Hr(),e);h8(i,a,v,r,o)}}function xI(t,n,e,i,r,o){let a=n===null,s;for(;r>0;){let l=t[r],u=Array.isArray(l),g=u?l[1]:l,v=g===null,w=e[r+1];w===Gi&&(w=v?or:void 0);let C=v?tC(w,i):g===i?w:void 0;if(u&&!Lg(C)&&(C=tC(l,i)),Lg(C)&&(s=C,a))return s;let S=t[r+1];r=a?fc(S):Vd(S)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=tC(l,i))}return s}function Lg(t){return t!==void 0}function cW(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=Lr(jr(t)))),t}function r2(t,n){return(t.flags&(n?8:16))!==0}function As(t,n,e){let i=qe(),r=US(i,t,n,e);GS(Xp,XO,r,!0)}var C1=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function gC(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function dW(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let u=t.at(o),g=n[o],v=gC(o,u,o,g,e);if(v!==0){v<0&&t.updateValue(o,g),o++;continue}let w=t.at(a),C=n[l],S=gC(a,w,l,C,e);if(S!==0){S<0&&t.updateValue(a,C),a--,l--;continue}let D=e(o,u),O=e(a,w),V=e(o,g);if(Object.is(V,O)){let Q=e(l,C);Object.is(Q,D)?(t.swap(o,a),t.updateValue(a,C),l--,a--):t.move(a,o),t.updateValue(o,g),o++;continue}if(i??=new Bg,r??=EI(t,o,a,e),S1(t,i,o,V))t.updateValue(o,g),o++,a++;else if(r.has(V))i.set(D,t.detach(o)),a--;else{let Q=t.create(o,n[o]);t.attach(o,Q),o++,a++}}for(;o<=l;)wI(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),u=l.next();for(;!u.done&&o<=a;){let g=t.at(o),v=u.value,w=gC(o,g,o,v,e);if(w!==0)w<0&&t.updateValue(o,v),o++,u=l.next();else{i??=new Bg,r??=EI(t,o,a,e);let C=e(o,v);if(S1(t,i,o,C))t.updateValue(o,v),o++,a++,u=l.next();else if(!r.has(C))t.attach(o,t.create(o,v)),o++,a++,u=l.next();else{let S=e(o,g);i.set(S,t.detach(o)),a--}}}for(;!u.done;)wI(t,i,e,t.length,u.value),u=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function S1(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function wI(t,n,e,i,r){if(S1(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function EI(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var Bg=class{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function b(t,n){cr("NgControlFlow");
7let e=qe(),i=ml(),r=e[i]!==Gi?e[i]:-1,o=r!==-1?Hg(e,Xt+r):void 0,a=0;if(wr(e,i,t)){let s=St(null);try{if(o!==void 0&&AS(o,a),t!==-1){let l=Xt+t,u=Hg(e,l),g=D1(e[ot],l),v=Ld(u,g.tView.ssrId),w=Xd(e,g,n,{dehydratedView:v});Jd(u,w,a,mc(g,v))}}finally{St(s)}}else if(o!==void 0){let s=dO(o,a);s!==void 0&&(s[yn]=n)}}var x1=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Wn}};function $S(t){return t}function X(t,n){return n}var w1=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function W(t,n,e,i,r,o,a,s,l,u,g,v,w){cr("NgControlFlow");let C=qe(),S=gi(),D=l!==void 0,O=qe(),V=s?a.bind(O[ar][yn]):a,Q=new w1(D,V);O[Xt+t]=Q,Fg(C,S,t+1,n,e,i,r,Cs(S.consts,o)),D&&Fg(C,S,t+2,l,u,g,v,Cs(S.consts,w))}var E1=class extends C1{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Wn}at(n){return this.getLView(n)[yn].$implicit}attach(n,e){let i=e[Ro];this.needsIndexUpdate||=n!==this.length,Jd(this.lContainer,e,n,mc(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,uW(this.lContainer,n)}create(n,e){let i=Ld(this.lContainer,this.templateTNode.tView.ssrId),r=Xd(this.hostLView,this.templateTNode,new x1(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){d_(n[ot],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[yn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[yn].$index=n}getLView(n){return pW(this.lContainer,n)}};function q(t){let n=St(null),e=Hr();try{let i=qe(),r=i[ot],o=i[e],a=e+1,s=Hg(i,a);if(o.liveCollection===void 0){let u=D1(r,a);o.liveCollection=new E1(s,i,u)}else o.liveCollection.reset();let l=o.liveCollection;if(dW(l,t,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let u=ml(),g=l.length===0;if(wr(i,u,g)){let v=e+2,w=Hg(i,v);if(g){let C=D1(r,v),S=Ld(w,C.tView.ssrId),D=Xd(i,C,void 0,{dehydratedView:S});Jd(w,D,0,mc(C,S))}else AS(w,0)}}}finally{St(n)}}function Hg(t,n){return t[n]}function uW(t,n){return Wp(t,n)}function pW(t,n){return dO(t,n)}function D1(t,n){return em(t,n)}function p(t,n,e,i){let r=qe(),o=gi(),a=Xt+t,s=r[$t],l=o.firstCreatePass?xO(a,o,r,n,SS,K1(),e,i):o.data[a],u=o2(o,r,l,s,n,t);r[a]=u;let g=Kg(l);return la(l,!0),Rk(s,u,l),!yc(l)&&nm()&&u_(o,r,u,l),(gU()===0||g)&&ul(u,r),_U(),g&&(c_(o,r,l),pS(o,l,r)),i!==null&&CS(r,l),p}function m(){let t=lr();Q1()?Z1():(t=t.parent,la(t,!1));let n=t;bU(n)&&CU(),vU();let e=gi();return e.firstCreatePass&&wO(e,n),n.classesWithoutHost!=null&&OU(n)&&y1(e,n,qe(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&PU(n)&&y1(e,n,qe(),n.stylesWithoutHost,!1),m}function _(t,n,e,i){return p(t,n,e,i),m(),_}var o2=(t,n,e,i,r,o)=>(Ds(!0),a_(i,r,EA()));function mW(t,n,e,i,r,o){let a=n[Ro],s=!a||$d()||yc(e)||sm(a,o);if(Ds(s),s)return a_(i,r,EA());let l=g_(a,t,n,e);return bk(a,o)&&r_(a,o,l.nextSibling),a&&(YA(e)||KA(l))&&gc(e)&&(yU(e),Nk(l)),l}function fW(){o2=mW}function hW(t,n,e,i,r){let o=n.consts,a=Cs(o,i),s=eu(n,t,8,"ng-container",a);a!==null&&s1(s,a,!0);let l=Cs(o,r);return K1()&&OS(n,e,s,l,SS),s.mergedAttrs=Fd(s.mergedAttrs,s.attrs),n.queries!==null&&n.queries.elementStart(n,s),s}function ni(t,n,e){let i=qe(),r=gi(),o=t+Xt,a=r.firstCreatePass?hW(o,r,i,n,e):r.data[o];la(a,!0);let s=a2(r,i,a,t);return i[o]=s,nm()&&u_(r,i,s,a),ul(s,i),Kg(a)&&(c_(r,i,a),pS(r,a,i)),e!=null&&CS(i,a),ni}function Jt(){let t=lr(),n=gi();return Q1()?Z1():(t=t.parent,la(t,!1)),n.firstCreatePass&&(tS(n,t),G1(t)&&n.queries.elementEnd(t)),Jt}function mo(t,n,e){return ni(t,n,e),Jt(),mo}var a2=(t,n,e,i)=>(Ds(!0),hS(n[$t],""));function gW(t,n,e,i){let r,o=n[Ro],a=!o||$d()||sm(o,i)||yc(e);if(Ds(a),a)return hS(n[$t],"");let s=g_(o,t,n,e),l=tG(o,i);return r_(o,i,s),r=__(l,s),r}function _W(){a2=gW}function B(){return qe()}function yi(t,n,e){let i=qe(),r=ml();if(wr(i,r,n)){let o=gi(),a=im();um(o,a,i,t,n,i[$t],e,!0)}return yi}var nc=void 0;function vW(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var bW=["en",[["a","p"],["AM","PM"],nc],[["AM","PM"],nc,nc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
7ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],nc,[["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"]],nc,[["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}",nc,"{1} 'at' {0}",nc],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",vW],Lp={};function s2(t,n,e){typeof n!="string"&&(e=n,n=t[Ci.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),Lp[n]=t,e&&(Lp[n][Ci.ExtraData]=e)}function Dr(t){let n=yW(t),e=DI(n);if(e)return e;let i=n.split("-")[0];if(e=DI(i),e)return e;if(i==="en")return bW;throw new K(701,!1)}function l2(t){return Dr(t)[Ci.PluralCase]}function DI(t){return t in Lp||(Lp[t]=Gn.ng&&Gn.ng.common&&Gn.ng.common.locales&&Gn.ng.common.locales[t]),Lp[t]}var Ci=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Ci||{});function yW(t){return t.toLowerCase().replace(/_/g,"-")}var CW=["zero","one","two","few","many"];function SW(t,n){let e=l2(n)(parseInt(t,10)),i=CW[e];return i!==void 0?i:"other"}var Vg="en-US",xW="USD",c2={marker:"element"},d2={marker:"ICU"},gs=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(gs||{}),u2=Vg;function wW(t){typeof t=="string"&&(u2=t.toLowerCase().replace(/_/g,"-"))}function EW(){return u2}var Kp=0,Bp=0;function DW(t){t&&(Kp=Kp|1<<Math.min(Bp,31)),Bp++}function TW(t,n,e){if(Bp>0){let i=t.data[e],r=Array.isArray(i)?i:i.update,o=Wd()-Bp-1;m2(t,n,r,o,Kp)}Kp=0,Bp=0}function MW(t,n,e){let i=t[$t];switch(e){case Node.COMMENT_NODE:return hS(i,n);case Node.TEXT_NODE:return fS(i,n);case Node.ELEMENT_NODE:return a_(i,n,null)}}var cg=(t,n,e,i)=>(Ds(!0),MW(t,e,i));function IW(t,n,e,i){let r=t[$t];for(let o=0;o<n.length;o++){let a=n[o++],s=n[o],l=(a&gs.COMMENT)===gs.COMMENT,u=(a&gs.APPEND_EAGERLY)===gs.APPEND_EAGERLY,g=a>>>gs.SHIFT,v=t[g],w=!1;v===null&&(v=t[g]=cg(t,g,s,l?Node.COMMENT_NODE:Node.TEXT_NODE),w=nm()),u&&e!==null&&w&&pc(r,e,v,i,!1)}}function p2(t,n,e,i){let r=e[$t],o=null,a;for(let s=0;s<n.length;s++){let l=n[s];if(typeof l=="string"){let u=n[++s];e[u]===null&&(e[u]=cg(e,u,l,Node.TEXT_NODE))}else if(typeof l=="number")switch(l&1){case 0:let u=j8(l);o===null&&(o=u,a=r.parentNode(i));let g,v;if(u===o?(g=i,v=a):(g=null,v=co(e[u])),v!==null){let D=z8(l),O=e[D];pc(r,v,O,g,!1);let V=Fp(t,D);if(V!==null&&typeof V=="object"){let Q=h_(V,e);Q!==null&&p2(t,V.create[Q],e,e[V.anchorIdx])}}break;case 1:let w=l>>>1,C=n[++s],S=n[++s];xS(r,Qg(w,e),null,null,C,S,null);break;default:}else switch(l){case d2:let u=n[++s],g=n[++s];if(e[g]===null){let C=e[g]=cg(e,g,u,Node.COMMENT_NODE);ul(C,e)}break;case c2:let v=n[++s],w=n[++s];if(e[w]===null){let C=e[w]=cg(e,w,v,Node.ELEMENT_NODE);ul(C,e)}break;default:}}}function m2(t,n,e,i,r){for(let o=0;o<e.length;o++){let a=e[o],s=e[++o];if(a&r){let l="";for(let u=o+1;u<=o+s;u++){let g=e[u];if(typeof g=="string")l+=g;else if(typeof g=="number")if(g<0)l+=di(n[i-g]);else{let v=g>>>2;switch(g&3){case 1:let w=e[++u],C=e[++u],S=t.data[v];typeof S=="string"?xS(n[$t],n[v],null,S,w,l,C):um(t,S,n,w,l,n[$t],C,!1);break;case 0:let D=n[v];D!==null&&Ok(n[$t],D,l);break;case 2:AW(t,Fp(t,v),n,l);break;case 3:TI(t,Fp(t,v),i,n);break}}}}else{let l=e[o+1];if(l>0&&(l&3)===3){let u=l>>>2,g=Fp(t,u);n[g.currentCaseLViewIndex]<0&&TI(t,g,i,n)}}o+=s}}function TI(t,n,e,i){let r=i[n.currentCaseLViewIndex];if(r!==null){let o=Kp;r<0&&(r=i[n.currentCaseLViewIndex]=~r,o=-1),m2(t,i,n.update[r],e,o)}}function AW(t,n,e,i){let r=kW(n,i);if(h_(n,e)!==r&&(f2(t,n,e),e[n.currentCaseLViewIndex]=r===null?null:~r,r!==null)){let a=e[n.anchorIdx];
7a&&p2(t,n.create[r],e,a),n$(e,n.anchorIdx,r)}}function f2(t,n,e){let i=h_(n,e);if(i!==null){let r=n.remove[i];for(let o=0;o<r.length;o++){let a=r[o];if(a>0){let s=Qg(a,e);s!==null&&s_(e[$t],s)}else f2(t,Fp(t,~a),e)}}}function kW(t,n){let e=t.cases.indexOf(n);if(e===-1)switch(t.type){case 1:{let i=SW(n,EW());e=t.cases.indexOf(i),e===-1&&i!=="other"&&(e=t.cases.indexOf("other"));break}case 0:{e=t.cases.indexOf("other");break}}return e===-1?null:e}var jg=/�(\d+):?\d*�/gi;var OW=/�(\d+)�/,h2=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,Hp="\uFFFD",PW=/�\/?\*(\d+:\d+)�/gi,NW=/�(\/?[#*]\d+):?\d*�/gi,RW=/\uE500/g;function FW(t){return t.replace(RW," ")}function LW(t,n,e,i,r,o){let a=Up(),s=[],l=[],u=[[]],g=[[]];r=HW(r,o);let v=FW(r).split(NW);for(let w=0;w<v.length;w++){let C=v[w];if((w&1)===0){let S=T1(C);for(let D=0;D<S.length;D++){let O=S[D];if((D&1)===0){let V=O;V!==""&&BW(g[0],t,a,u[0],s,l,e,V)}else{let V=O;if(typeof V!="object")throw new Error(`Unable to parse ICU expression in "${r}" message.`);let ie=g2(t,a,u[0],e,s,"",!0).index;v2(g[0],t,e,l,n,V,ie)}}}else{let S=C.charCodeAt(0)===47,D=C.charCodeAt(S?1:0),O=Xt+Number.parseInt(C.substring(S?2:1));if(S)u.shift(),g.shift(),la(Up(),!1);else{let V=V8(t,u[0],O);u.unshift([]),la(V,!0);let Q={kind:2,index:O,children:[],type:D===35?0:1};g[0].push(Q),g.unshift(Q.children)}}}t.data[i]={create:s,update:l,ast:g[0],parentTNodeIndex:n}}function g2(t,n,e,i,r,o,a){let s=dm(t,i,1,null),l=s<<gs.SHIFT,u=Up();n===u&&(u=null),u===null&&(l|=gs.APPEND_EAGERLY),a&&(l|=gs.COMMENT,s8($8)),r.push(l,o===null?"":o);let g=kS(t,s,a?32:1,o===null?"":o,null);fO(e,g);let v=g.index;return la(g,!1),u!==null&&n!==u&&H8(u,v),g}function BW(t,n,e,i,r,o,a,s){let l=s.match(jg),g=g2(n,e,i,a,r,l?null:s,!1).index;l&&dg(o,s,g,null,0,null),t.push({kind:0,index:g})}function dg(t,n,e,i,r,o){let a=t.length,s=a+1;t.push(null,null);let l=a+2,u=n.split(jg),g=0;for(let v=0;v<u.length;v++){let w=u[v];if(v&1){let C=r+parseInt(w,10);t.push(-1-C),g=g|_2(C)}else w!==""&&t.push(w)}return t.push(e<<2|(i?1:0)),i&&t.push(i,o),t[a]=g,t[s]=t.length-l,g}function _2(t){return 1<<Math.min(t,31)}function MI(t){let n,e="",i=0,r=!1,o;for(;(n=PW.exec(t))!==null;)r?n[0]===`${Hp}/*${o}${Hp}`&&(i=n.index,r=!1):(e+=t.substring(i,n.index+n[0].length),o=n[1],r=!0);return e+=t.slice(i),e}function HW(t,n){if(G8(n))return MI(t);{let e=t.indexOf(`:${n}${Hp}`)+2+n.toString().length,i=t.search(new RegExp(`${Hp}\\/\\*\\d+:${n}${Hp}`));return MI(t.substring(e,i))}}function v2(t,n,e,i,r,o,a){let s=0,l={type:o.type,currentCaseLViewIndex:dm(n,e,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};UW(i,o,a),B8(n,a,l);let u=o.values,g=[];for(let v=0;v<u.length;v++){let w=u[v],C=[];for(let D=0;D<w.length;D++){let O=w[D];if(typeof O!="string"){let V=C.push(O)-1;w[D]=`<!--\uFFFD${V}\uFFFD-->`}}let S=[];g.push(S),s=jW(S,n,l,e,i,r,o.cases[v],w.join(""),C)|s}s&&GW(i,s,a),t.push({kind:3,index:a,cases:g,currentCaseLViewIndex:l.currentCaseLViewIndex})}function VW(t){let n=[],e=[],i=1,r=0;t=t.replace(h2,function(a,s,l){return l==="select"?i=0:i=1,r=parseInt(s.slice(1),10),""});let o=T1(t);for(let a=0;a<o.length;){let s=o[a++].trim();i===1&&(s=s.replace(/\s*(?:=)?(\w+)\s*/,"$1")),s.length&&n.push(s);let l=T1(o[a++]);n.length>e.length&&e.push(l)}return{type:i,mainBinding:r,cases:n,values:e}}function T1(t){if(!t)return[];let n=0,e=[],i=[],r=/[{}]/g;r.lastIndex=0;let o;for(;o=r.exec(t);){let s=o.index;if(o[0]=="}"){if(e.pop(),e.length==0){let l=t.substring(n,s);h2.test(l)?i.push(VW(l)):i.push(l),n=s+1}}else{if(e.length==0){let l=t.substring(n,s);i.push(l),n=s+1}e.push("{")}}let a=t.substring(n);return i.push(a),i}function jW(t,n,e,i,r,o,a,s,l){let u=[],g=[],v=[];e.cases.push(a),e.create.push(u),e.remove.push(g),e.update.push(v);let C=Tk(Kd()).getInertBodyElement(s),S=JC(C)||C;return S?b2(t,n,e,i,r,u,g,v,S,o,l,0):0}function b2(t,n,e,i,r,o,a,s,l,u,g,v){let w=0,C=l.firstChild;for(;C;){let S=dm(n,i,1,null);switch(C.nodeType){case Node.ELEMENT_NODE:let D=C,O=D.tagName.toLowerCase();if(QC.hasOwnProperty(O)){_C(o,c2,O,u,S),n.data[S]=O;let U=D.attributes;for(let Oe=0;Oe<U.length;Oe++){let ae=U.item(Oe),oe=ae.name.toLowerCase();!!ae.value.match(jg)?ZC.hasOwnProperty(oe)&&(Ag[oe]?dg(s,ae.value,S,ae.name,0,lm):dg(s,ae.value,S,ae.name,0,null)):ZC[oe]&&(Ag[oe]?AI(o,S,ae.name,"unsafe:blocked"):AI(o,S,ae.name,ae.value))}let Me={kind:1,index:S,children:[]};t.push(Me),w=b2(Me.children,n,e,i,r,o,a,s,C,S,g,v+1)|w,II(a,S,v)}break;case Node.TEXT_NODE:let V=C.textContent||"",Q=V.match(jg);_C(o,null,Q?"":V,u,S),II(a,S,v),Q&&(w=dg(s,V,S,null,0,null)|w),t.push({kind:0,index:S});break;case Node.COMMENT_NODE:let ie=OW.exec(C.textContent||"");if(ie){let U=parseInt(ie[1],10),Me=g[U];_C(o,d2,"",u,S),v2(t,n,i,r,u,Me,S),zW(a,S,v)}break}C=C.nextSibling}return w}function II(t,n,e){e===0&&t.push(n)}function zW(t,n,e){e===0&&(t.push(~n),t.push(n))}function UW(t,n,e){t.push(_2(n.mainBinding),2,-1-n.mainBinding,e<<2|2)}function GW(t,n,e){t.push(n,1,e<<2|3)}function _C(t,n,e,i,r){n!==null&&t.push(n),t.push(e,r,U8(0,i,r))}function AI(t,n,e,i){t.push(n<<1|1,e,i)}function $W(t,n,e=-1){let i=gi(),r=qe(),o=Xt+t,a=Cs(i.consts,n),s=Up();if(i.firstCreatePass&&LW(i,s===null?0:s.index,r,o,a,e),i.type===2){let w=r[ar];w[pt]|=32}else r[pt]|=32;let l=i.data[o],u=s===r[Er]?null:s,g=Yk(i,u,r),v=s&&s.type&8?r[s.index]:null;t$(r,o,s,e),IW(r,l.create,g,v),bA(!0)}function WW(){bA(!1)}function w_(t,n,e){$W(t,n,e),WW()}function WS(t){let n=qe();return DW(wr(n,ml(),t)),WS}function y2(t){TW(gi(),qe(),t+Xt)}function kI(t,n,e){return function i(r){if(r===Function)return e;let o=gc(t)?Ua(t.index,n):n;m_(o,5);let a=n[yn],s=OI(n,a,e,r),l=i.__ngNextListenerFn__;for(;l;)s=OI(n,a,l,r)&&s,l=l.__ngNextListenerFn__;return s}}function OI(t,n,e,i){let r=St(null);try{return ui(6,n,e),e(i)!==!1}catch(o){return qW(t,o),!1}finally{ui(7,n,e),St(r)}}function qW(t,n){let e=t[ja],i=e?e.get(sr,null):null;i&&i.handleError(n)}function PI(t,n,e,i,r,o){let a=n[e],s=n[ot],u=s.data[e].outputs[i],g=a[u],v=s.firstCreatePass?Y1(s):null,w=q1(n),C=g.subscribe(o),S=w.length;w.push(o,C),v&&v.push(r,t.index,S,-(S+1))}function T(t,n,e,i){let r=qe(),o=gi(),a=lr();return C2(o,r,r[$t],a,t,n,i),T}function YW(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let a=r[o];if(a===e&&r[o+1]===i){let s=n[vg],l=r[o+2];return s.length>l?s[l]:null}
vendor: 7,375 bytes, line 7
7typeof a=="string"&&(o+=2)}return null}function C2(t,n,e,i,r,o,a){let s=Kg(i),u=t.firstCreatePass?Y1(t):null,g=q1(n),v=!0;if(i.type&3||a){let w=da(i,n),C=a?a(w):w,S=g.length,D=a?V=>a(co(V[i.index])):i.index,O=null;if(!a&&s&&(O=YW(t,n,r,i.index)),O!==null){let V=O.__ngLastListenerFn__||O;V.__ngNextListenerFn__=o,O.__ngLastListenerFn__=o,v=!1}else{o=kI(i,n,o),U5(n,C,r,o);let V=e.listen(C,r,o);g.push(o,V),u&&u.push(r,D,S,S+1)}}else o=kI(i,n,o);if(v){let w=i.outputs?.[r],C=i.hostDirectiveOutputs?.[r];if(C&&C.length)for(let S=0;S<C.length;S+=2){let D=C[S],O=C[S+1];PI(i,n,D,O,r,o)}if(w&&w.length)for(let S of w)PI(i,n,S,r,r,o)}}function h(t=1){return MU(t)}function KW(t,n){let e=null,i=LG(t);for(let r=0;r<n.length;r++){let o=n[r];if(o==="*"){e=r;continue}if(i===null?jk(t,o,!0):VG(i,o))return r}return e}function _t(t){let n=qe()[ar][Er];if(!n.projection){let e=t?t.length:1,i=n.projection=Yz(e,null),r=i.slice(),o=n.child;for(;o!==null;){if(o.type!==128){let a=t?KW(o,t):0;a!==null&&(r[a]?r[a].projectionNext=o:i[a]=o,r[a]=o)}o=o.next}}}function Ve(t,n=0,e,i,r,o){let a=qe(),s=gi(),l=i?t+1:null;l!==null&&Fg(a,s,l,i,r,o,null,e);let u=eu(s,Xt+t,16,null,e||null);u.projection===null&&(u.projection=n),Z1();let v=!a[Ro]||$d();a[ar][Er].projection[u.projection]===null&&l!==null?QW(a,s,l):v&&!yc(u)&&m8(s,a,u)}function QW(t,n,e){let i=Xt+e,r=n.data[i],o=t[i],a=Ld(o,r.tView.ssrId),s=Xd(t,r,void 0,{dehydratedView:a});Jd(o,s,0,mc(r,a))}function xc(t,n,e){return S2(t,"",n,"",e),xc}function S2(t,n,e,i,r){let o=qe(),a=US(o,n,e,i);if(a!==Gi){let s=gi(),l=im();um(s,l,o,t,a,o[$t],r,!1)}return S2}function Kt(t,n,e,i){kO(t,n,e,i)}function De(t,n,e){z$(t,n,e)}function se(t){let n=qe(),e=gi(),i=X1();Jg(i+1);let r=RS(e,i);if(t.dirty&&uU(n)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=PO(n,i);t.reset(o,$A),t.notifyOnChanges()}return!0}return!1}function le(){return NS(qe(),X1())}function x2(t,n,e,i,r){q$(n,kO(t,e,i,r))}function w2(t=1){Jg(X1()+t)}function J(t){let n=_A();return Zg(n,Xt+t)}function E(t,n=""){let e=qe(),i=gi(),r=t+Xt,o=i.firstCreatePass?eu(i,r,1,n,null):i.data[r],a=E2(i,e,o,n,t);e[r]=a,nm()&&u_(i,e,a,o),la(o,!1)}var E2=(t,n,e,i,r)=>(Ds(!0),fS(n[$t],i));function ZW(t,n,e,i,r){let o=n[Ro],a=!o||$d()||yc(e)||sm(o,r);return Ds(a),a?fS(n[$t],i):g_(o,t,n,e)}function XW(){E2=ZW}function he(t){return R("",t,""),he}function R(t,n,e){let i=qe(),r=US(i,t,n,e);return r!==Gi&&iu(i,Hr(),r),R}function Pe(t,n,e,i,r){let o=qe(),a=B6(o,t,n,e,i,r);return a!==Gi&&iu(o,Hr(),a),Pe}function pa(t,n,e,i,r,o,a,s,l){let u=qe(),g=H6(u,t,n,e,i,r,o,a,s,l);return g!==Gi&&iu(u,Hr(),g),pa}function qS(t,n,e,i,r,o,a,s,l,u,g){let v=qe(),w=V6(v,t,n,e,i,r,o,a,s,l,u,g);return w!==Gi&&iu(v,Hr(),w),qS}function ma(t,n,e,i,r,o,a,s,l,u,g,v,w){let C=qe(),S=j6(C,t,n,e,i,r,o,a,s,l,u,g,v,w);return S!==Gi&&iu(C,Hr(),S),ma}function E_(t,n,e,i,r,o,a,s,l,u,g,v,w,C,S){let D=qe(),O=z6(D,t,n,e,i,r,o,a,s,l,u,g,v,w,C,S);return O!==Gi&&iu(D,Hr(),O),E_}function iu(t,n,e){let i=Qg(n,t);Ok(t[$t],i,e)}function xn(t,n,e){qA(n)&&(n=n());let i=qe(),r=ml();if(wr(i,r,n)){let o=gi(),a=im();um(o,a,i,t,n,i[$t],e,!1)}return xn}function Nn(t,n){let e=qA(t);return e&&t.set(n),e}function wn(t,n){let e=qe(),i=gi(),r=lr();return C2(i,e,e[$t],r,t,n),wn}var D2={};function Tr(t){let n=gi(),e=qe(),i=t+Xt,r=eu(n,i,128,null,null);return la(r,!1),$1(n,e,i,D2),Tr}function D_(t){cr("NgLet");let n=gi(),e=qe(),i=Hr();return $1(n,e,i,t),t}function T_(t){let n=_A(),e=Zg(n,Xt+t);if(e===D2)throw new K(314,!1);return e}function JW(t,n,e){let i=gi();if(i.firstCreatePass){let r=za(t);M1(e,i.data,i.blueprint,r,!0),M1(n,i.data,i.blueprint,r,!1)}}function M1(t,n,e,i,r){if(t=$n(t),Array.isArray(t))for(let o=0;o<t.length;o++)M1(t[o],n,e,i,r);else{let o=gi(),a=qe(),s=lr(),l=Nd(t)?t:$n(t.provide),u=oA(t),g=s.providerIndexes&1048575,v=s.directiveStart,w=s.providerIndexes>>20;if(Nd(t)||!t.multi){let C=new uc(u,r,ke),S=bC(l,n,r?g:g+w,v);S===-1?(OC(wg(s,a),o,l),vC(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(C),a.push(C)):(e[S]=C,a[S]=C)}else{let C=bC(l,n,g+w,v),S=bC(l,n,g,g+w),D=C>=0&&e[C],O=S>=0&&e[S];if(r&&!O||!r&&!D){OC(wg(s,a),o,l);let V=iq(r?tq:eq,e.length,r,i,u);!r&&O&&(e[S].providerFactory=V),vC(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(V),a.push(V)}else{let V=T2(e[r?S:C],u,!r&&i);vC(o,t,C>-1?C:S,V)}!r&&i&&O&&e[S].componentProviders++}}}function vC(t,n,e,i){let r=Nd(n),o=eU(n);if(r||o){let l=(o?$n(n.useClass):n).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let g=u.indexOf(e);g===-1?u.push(e,[i,l]):u[g+1].push(i,l)}else u.push(e,l)}}}function T2(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function bC(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function eq(t,n,e,i,r){return I1(this.multi,[])}function tq(t,n,e,i,r){let o=this.multi,a;if(this.providerFactory){let s=this.providerFactory.componentProviders,l=Gp(i,i[ot],this.providerFactory.index,r);a=l.slice(0,s),I1(o,a);for(let u=s;u<l.length;u++)a.push(l[u])}else a=[],I1(o,a);return a}function I1(t,n){for(let e=0;e<t.length;e++){let i=t[e];n.push(i())}return n}function iq(t,n,e,i,r){let o=new uc(t,e,ke);return o.multi=[],o.index=n,o.componentProviders=0,T2(o,r,i&&!e),o}function _e(t,n=[]){return e=>{e.providersResolver=(i,r)=>JW(i,r?r(t):t,n)}}function M2(t,n,e){let i=tm()+t,r=qe();return r[i]===Gi?BS(r,i,e?n.call(e):n()):p6(r,i)}function zi(t,n,e,i){return A2(qe(),tm(),t,n,e,i)}function nu(t,n,e,i,r){return k2(qe(),tm(),t,n,e,i,r)}function I2(t,n){let e=t[n];return e===Gi?void 0:e}function A2(t,n,e,i,r,o){let a=n+e;return wr(t,a,r)?BS(t,a+1,o?i.call(o,r):i(r)):I2(t,a+1)}function k2(t,n,e,i,r,o,a){let s=n+e;return Hd(t,s,r,o)?BS(t,s+2,a?i.call(a,r,o):i(r,o)):I2(t,s+2)}function te(t,n){let e=gi(),i,r=t+Xt;e.firstCreatePass?(i=nq(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=ac(i.type,!0)),a,s=Fr(ke);try{let l=xg(!1),u=o();return xg(l),$1(e,qe(),r,u),u}finally{Fr(s)}}function nq(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function Ct(t,n,e){let i=t+Xt,r=qe(),o=Zg(r,i);return O2(r,i)?A2(r,tm(),n,o.transform,e,o):o.transform(e)}function Te(t,n,e,i){let r=t+Xt,o=qe(),a=Zg(o,r);return O2(o,r)?k2(o,tm(),n,a.transform,e,i,a):a.transform(e,i)}function O2(t,n){return t[ot].data[n].pure}function fa(t,n){return f_(t,n)}var hc=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},YS=new hc("19.2.19"),A1=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},P2=(()=>{class t{compileModuleSync(e){return new h1(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=tA(e),o=Hk(r.declarations).reduce((a,s)=>{let l=cl(s);return l&&a.push(new Bd(l)),a},[]);return new A1(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var rq=(()=>{class t{zone=d(de);
7changeDetectionScheduler=d(dl);applicationRef=d(Ui);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oq=new H("",{factory:()=>!1});function N2({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new de(re(N({},F2()),{scheduleInRootZone:e})),[{provide:de,useFactory:t},{provide:ll,multi:!0,useFactory:()=>{let i=d(rq,{optional:!0});return()=>i.initialize()}},{provide:ll,multi:!0,useFactory:()=>{let i=d(aq);return()=>{i.initialize()}}},n===!0?{provide:VA,useValue:!0}:[],{provide:jA,useValue:e??HA}]}function R2(t){let n=t?.ignoreChangesOutsideZone,e=t?.scheduleInRootZone,i=N2({ngZoneFactory:()=>{let r=F2(t);return r.scheduleInRootZone=e,r.shouldCoalesceEventChangeDetection&&cr("NgZone_CoalesceEvent"),new de(r)},ignoreChangesOutsideZone:n,scheduleInRootZone:e});return $a([{provide:oq,useValue:!0},{provide:e_,useValue:!1},i])}function F2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var aq=(()=>{class t{subscription=new Ie;initialized=!1;zone=d(de);pendingTasks=d(ua);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{de.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var sq=(()=>{class t{appRef=d(Ui);taskService=d(ua);ngZone=d(de);zonelessEnabled=d(e_);tracing=d(Zd,{optional:!0});disableScheduling=d(VA,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ie;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Dg):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(d(jA,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof FC||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?zM:UA;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Dg+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(e),i}finally{this.cleanup()}
7this.useMicrotaskScheduler=!0,zM(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lq(){return typeof $localize<"u"&&$localize.locale||Vg}var ha=new H("",{providedIn:"root",factory:()=>d(ha,Dt.Optional|Dt.SkipSelf)||lq()}),M_=new H("",{providedIn:"root",factory:()=>xW});var k1=new H(""),cq=new H("");function Op(t){return!t.moduleRef}function dq(t){let n=Op(t)?t.r3Injector:t.moduleRef.injector,e=n.get(de);return e.run(()=>{Op(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(sr,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:o=>{i.handleError(o)}})}),Op(t)){let o=()=>n.destroy(),a=t.platformInjector.get(k1);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(k1);a.add(o),t.moduleRef.onDestroy(()=>{lg(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return pq(i,e,()=>{let o=n.get(WO);return o.runInitializers(),o.donePromise.then(()=>{let a=n.get(ha,Vg);if(wW(a||Vg),!n.get(cq,!0))return Op(t)?n.get(Ui):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Op(t)){let l=n.get(Ui);return t.rootComponent!==void 0&&l.bootstrap(t.rootComponent),l}else return uq(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function uq(t,n){let e=t.injector.get(Ui);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>e.bootstrap(i));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new K(-403,!1);n.push(t)}function pq(t,n,e){try{let i=e();return hl(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}var ug=null;function mq(t=[],n){return Ne.create({name:n,providers:[{provide:Wg,useValue:"platform"},{provide:k1,useValue:new Set([()=>ug=null])},...t]})}function fq(t=[]){if(ug)return ug;let n=mq(t);return ug=n,w6(),hq(n),n}function hq(t){let n=t.get(oS,null);po(t,()=>{n?.forEach(e=>e())})}function L2(){return!1}var Je=(()=>{class t{static __NG_ELEMENT_ID__=gq}return t})();function gq(t){return _q(lr(),qe(),(t&16)===16)}function _q(t,n,e){if(gc(t)&&!e){let i=Ua(t.index,n);return new qp(i,i)}else if(t.type&175){let i=n[ar];return new qp(i,n)}return null}var O1=class{constructor(){}supports(n){return jO(n)}create(n){return new P1(n)}},vq=(t,n)=>n,P1=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||vq}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex<NI(i,r,o)?e:i,s=NI(a,r,o),l=a.currentIndex;if(a===i)r--,i=i._nextRemoved;else if(e=e._next,a.previousIndex==null)r++;else{o||(o=[]);let u=s-r,g=l-r;if(u!=g){for(let w=0;w<u;w++){let C=w<o.length?o[w]:o[w]=0,S=C+w;g<=S&&S<u&&(o[w]=C+1)}let v=a.previousIndex;o[v]=g-u}}s!==l&&n(a,s,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)n(e)}diff(n){if(n==null&&(n=[]),!jO(n))throw new K(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._itHead,i=!1,r,o,a;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)o=n[s],a=this._trackByFn(s,o),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,o,a,s),i=!0):(i&&(e=this._verifyReinsertion(e,o,a,s)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next}else r=0,d6(n,s=>{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Ob
vendor: 5,536 bytes, line 7
7ject.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new N1(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new zg),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new zg),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},N1=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e}},R1=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},zg=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new R1,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function NI(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}function RI(){return new I_([new O1])}var I_=(()=>{class t{factories;static \u0275prov=I({token:t,providedIn:"root",factory:RI});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||RI()),deps:[[t,new pl,new ca]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new K(901,!1)}}return t})();var B2=(()=>{class t{constructor(e){}static \u0275fac=function(i){return new(i||t)(xe(Ui))};static \u0275mod=ye({type:t});static \u0275inj=be({})}return t})();function H2(t){let{rootComponent:n,appProviders:e,platformProviders:i,platformRef:r}=t;ui(8);try{let o=r?.injector??fq(i),a=[N2({}),{provide:dl,useExisting:sq},...e||[]],s=new Rg({providers:a,parent:o,debugName:"",runEnvironmentInitializer
7s:!1});return dq({r3Injector:s.injector,platformInjector:o,rootComponent:n})}catch(o){return Promise.reject(o)}finally{ui(9)}}var ig=new WeakSet,FI="",pg=[];function LI(t){return t.get(ck,C5)}function V2(){let t=[{provide:ck,useFactory:()=>{let n=!0;{let e=d(so);n=!!window._ejsas?.[e]}return n&&cr("NgEventReplay"),n}}];return t.push({provide:ll,useValue:()=>{let n=d(Ui),{injector:e}=n;if(!ig.has(n)){let i=d(qM);if(LI(e)){G5();let r=e.get(so),o=z5(r,(a,s,l)=>{a.nodeType===Node.ELEMENT_NODE&&(B5(a,s,l),H5(a,i))});n.onDestroy(o)}}},multi:!0},{provide:Sc,useFactory:()=>{let n=d(Ui),{injector:e}=n;return()=>{!LI(e)||ig.has(n)||(ig.add(n),n.onDestroy(()=>{ig.delete(n);{let i=e.get(so);eC(i)}}),n.whenStable().then(()=>{if(n.destroyed)return;let i=e.get(j5);bq(i,e);let r=e.get(qM);r.get(FI)?.forEach(V5),r.delete(FI);let o=i.instance;eG(e)?n.onDestroy(()=>o.cleanUp()):o.cleanUp()}))}},multi:!0}),t}var bq=(t,n)=>{let e=n.get(so),i=window._ejsas[e],r=t.instance=new TM(new Yh(i.c));for(let s of i.et)r.addEvent(s);for(let s of i.etc)r.addEvent(s);let o=MM(e);r.replayEarlyEventInfos(o),eC(e);let a=new Kh(s=>{yq(n,s,s.currentTarget)});DM(r,a)};function yq(t,n,e){let i=(e&&e.getAttribute(n_))??"";/d\d+/.test(i)?Cq(i,t,n,e):n.eventPhase===Jy.REPLAY&&fk(n,e)}function Cq(t,n,e,i){pg.push({event:e,currentTarget:i}),k6(n,t,Sq)}function Sq(t){let n=[...pg],e=new Set(t);pg=[];for(let{event:i,currentTarget:r}of n){let o=r.getAttribute(n_);e.has(o)?fk(i,r):pg.push({event:i,currentTarget:r})}}var BI=!1;function xq(){BI||(BI=!0,Q5(),fW(),XW(),_W(),g6(),L$(),d$(),QG())}function wq(t){return t.whenStable()}function j2(){let t=[{provide:Zh,useFactory:()=>{let n=!0;return n=!!d(Qd,{optional:!0})?.get(gk,null),n&&cr("NgHydration"),n}},{provide:ll,useValue:()=>{e$(!1),d(Zh)&&(rG(Kd()),xq())},multi:!0}];return t.push({provide:lk,useFactory:()=>d(Zh)},{provide:Sc,useFactory:()=>
7{if(d(Zh)){let n=d(Ui);return()=>{wq(n).then(()=>{n.destroyed||bO(n)})}}return()=>{}},multi:!0}),$a(t)}function pe(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ii(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}function qn(t){return wy(t)}function Yn(t,n){return ph(t,n?.equal)}var F1=class{[Sr];constructor(n){this[Sr]=n}destroy(){this[Sr].destroy()}};function qa(t,n){!n?.injector&&zd(qa);let e=n?.injector??d(Ne),i=n?.manualCleanup!==!0?e.get(Vr):null,r,o=e.get(cS,null,{optional:!0}),a=e.get(dl);return o!==null&&!n?.forceRoot?(r=Tq(o.view,a,t),i instanceof Eg&&i._lView===o.view&&(i=null)):r=Mq(t,e.get(GO),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new F1(r)}var z2=re(N({},cd),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:$p,run(){if(this.dirty=!1,this.hasRun&&!ch(this))return;this.hasRun=!0;let t=i=>(this.cleanupFns??=[]).push(i),n=Ep(this),e=yg(!1);try{this.maybeCleanup(),this.fn(t)}finally{yg(e),lh(this,n)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),Eq=re(N({},z2),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Dp(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),Dq=re(N({},z2),{consumerMarkedDirty(){this.view[pt]|=8192,Gd(this.view),this.notifier.notify(13)},destroy(){Dp(this),this.onDestroyFn(),this.maybeCleanup(),this.view[lc]?.delete(this)}});function Tq(t,n,e){let i=Object.create(Dq);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=e,t[lc]??=new Set,t[lc].add(i),i.consumerMarkedDirty(i),i}function Mq(t,n,e){let i=Object.create(Eq);
vendor: 4,974 bytes, line 7
7return i.fn=t,i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.schedule(i),i.notifier.notify(12),i}function gl(t,n){let e=cl(t),i=n.elementInjector||qg();return new Bd(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}var Se=new H("");var $2=null;function fo(){return $2}function KS(t){$2??=t}var mm=class{},QS=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:()=>d(W2),providedIn:"platform"})}return t})(),ZS=new H(""),W2=(()=>{class t extends QS{_location;_history;_doc=d(Se);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return fo().getBaseHref(this._doc)}onPopState(e){let i=fo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=fo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function q2(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function U2(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function _l(t){return t&&t[0]!=="?"?`?${t}`:t}var wc=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:()=>d(XS),providedIn:"root"})}return t})(),Y2=new H(""),XS=(()=>{class t extends wc{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??d(Se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return q2(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+_l(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+_l(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+_l(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(xe(QS),xe(Y2,8))};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ks=(()=>{class t{_subject=new G;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=kq(U2(G2(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+_l(i))}normalize(e){return t.stripTrailingSlash(Aq(this._basePath,G2(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_l(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_l(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEac
7h(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=_l;static joinWithSlash=q2;static stripTrailingSlash=U2;static \u0275fac=function(i){return new(i||t)(xe(wc))};static \u0275prov=I({token:t,factory:()=>Iq(),providedIn:"root"})}return t})();function Iq(){return new ks(xe(wc))}function Aq(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function G2(t){return t.replace(/\/index.html$/,"")}function kq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var eP={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]},B_=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(B_||{});var dr=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(dr||{}),_i=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(_i||{}),zr=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(zr||{}),Kn={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function tP(t){return Dr(t)[Ci.LocaleId]}function iP(t,n,e){let i=Dr(t),r=[i[Ci.DayPeriodsFormat],i[Ci.DayPeriodsStandalone]],o=Fo(r,n);return Fo(o,e)}function nP(t,n,e){let i=Dr(t),r=[i[Ci.DaysFormat],i[Ci.DaysStandalone]],o=Fo(r,n);return Fo(o,e)}function rP(t,n,e){let i=Dr(t),r=[i[Ci.MonthsFormat],i[Ci.MonthsStandalone]],o=Fo(r,n);return Fo(o,e)}function oP(t,n){let i=Dr(t)[Ci.Eras];return Fo(i,n)}function fm(t,n){let e=Dr(t);return Fo(e[Ci.DateFormat],n)}function hm(t,n){let e=Dr(t);return Fo(e[Ci.TimeFormat],n)}function gm(t,n){let i=Dr(t)[Ci.DateTimeFormat];return Fo(i,n)}function _a(t,n){let e=Dr(t),i=e[Ci.NumberSymbols][n];if(typeof i>"u"){if(n===Kn.CurrencyDecimal)return e[Ci.NumberSymbols][Kn.Decimal];if(n===Kn.CurrencyGroup)return e[Ci.NumberSymbols][Kn.Group]}return i}function sx(t,n){return Dr(t)[Ci.NumberFormats][n]}function Oq(t){return Dr(t)[Ci.Currencies]}function aP(t){if(!t[Ci.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ci.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function sP(t){let n=Dr(t);return aP(n),(n[Ci.ExtraData][2]||[]).map(i=>typeof i=="string"?JS(i):[JS(i[0]),JS(i[1])])}function lP(t,n,e){let i=Dr(t);aP(i);let r=[i[Ci.ExtraData][0],i[Ci.ExtraData][1]],o=Fo(r,n)||[];return Fo(o,e)||[]}function Fo(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function JS(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function H_(t,n,e="en"){let i=Oq(e)[t]||eP[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var Pq=2;function cP(t){let n,e=eP[t];return e&&(n=e[2]),typeof n=="number"?n:Pq}var Nq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,A_={},Rq=/((?:[^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]*)/;function lx(t,n,e,i){let r=Gq(t);n=Os(e,n)||n;let a=[],s;for(;n;)if(s=Rq.exec(n),s){a=a.concat(s.slice(1));let g=a.pop();if(!g)break;n=g}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=uP(i,l),r=Uq(r,i));let u="";return a.forEach(g=>{let v=jq(g);u+=v?v(r,e,l):g==="''"?"'":g.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function R_(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Os(t,n){let e=tP(t);if(A_[e]??={},A_[e][n])return A_[e][n];let i="";switch(n){case"shortDate":i=fm(t,zr.Short);break;case"mediumDate":i=fm(t,zr.Medium);break;case"longDate":i=fm(t,zr.Long);break;case"fullDate":i=fm(t,zr.Full);break;case"shortTime":i=hm(t,zr.Short);break;case"mediumTime":i=hm(t,zr.Medium);break;case"longTime":i=hm(t,zr.Long);break;case"fullTime":i=hm(t,zr.Full);break;case"short":let r=Os(t,"shortTime"),o=Os(t,"shortDate");i=k_(gm(t,zr.Short),[r,o]);break;case"medium":let a=Os(t,"mediumTime"),s=Os(t,"mediumDate");i=k_(gm(t,zr.Medium),[a,s]);break;case"long":let l=Os(t,"longTime"),u=Os(t,"longDate");i=k_(gm(t,zr.Long),[l,u]);break;case"full":let g=Os(t,"fullTime"),v=Os(t,"fullDate");i=k_(gm(t,zr.Full),[g,v]);break}return i&&(A_[e][n]=i),i}function k_(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function ga(t,n,e="-",i,r){let o="";
vendor: 4,456 bytes, line 7
7(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length<n;)a="0"+a;return i&&(a=a.slice(a.length-n)),o+a}function Fq(t,n){return ga(t,3).substring(0,n)}function ln(t,n,e=0,i=!1,r=!1){return function(o,a){let s=Lq(t,o);if((e>0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return Fq(s,n);let l=_a(a,Kn.MinusSign);return ga(s,n,l,i,r)}}function Lq(t,n){switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function xi(t,n,e=dr.Format,i=!1){return function(r,o){return Bq(r,o,t,n,e,i)}}function Bq(t,n,e,i,r,o){switch(e){case 2:return rP(n,r,i)[t.getMonth()];case 1:return nP(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let u=sP(n),g=lP(n,r,i),v=u.findIndex(w=>{if(Array.isArray(w)){let[C,S]=w,D=a>=C.hours&&s>=C.minutes,O=a<S.hours||a===S.hours&&s<S.minutes;if(C.hours<S.hours){if(D&&O)return!0}else if(D||O)return!0}else if(w.hours===a&&w.minutes===s)return!0;return!1});if(v!==-1)return g[v]}return iP(n,r,i)[a<12?0:1];case 3:return oP(n,i)[t.getFullYear()<=0?0:1];default:let l=e;throw new Error(`unexpected translation type ${l}`)}}function O_(t){return function(n,e,i){let r=-1*i,o=_a(e,Kn.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+ga(a,2,o)+ga(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+ga(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+ga(a,2,o)+":"+ga(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+ga(a,2,o)+":"+ga(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var Hq=0,N_=4;function Vq(t){let n=R_(t,Hq,1).getDay();return R_(t,0,1+(n<=N_?N_:N_+7)-n)}function dP(t){let n=t.getDay(),e=n===0?-3:N_-n;return R_(t.getFullYear(),t.getMonth(),t.getDate()+e)}function ex(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=dP(e),a=Vq(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return ga(r,t,_a(i,Kn.MinusSign))}}function P_(t,n=!1){return function(e,i){let o=dP(e).getFullYear();return ga(o,t,_a(i,Kn.MinusSign),n)}}var tx={};function jq(t){if(tx[t])return tx[t];let n;switch(t){case"G":case"GG":case"GGG":n=xi(3,_i.Abbreviated);break;case"GGGG":n=xi(3,_i.Wide);break;case"GGGGG":n=xi(3,_i.Narrow);break;case"y":n=ln(0,1,0,!1,!0);break;case"yy":n=ln(0,2,0,!0,!0);break;case"yyy":n=ln(0,3,0,!1,!0);break;case"yyyy":n=ln(0,4,0,!1,!0);break;case"Y":n=P_(1);break;case"YY":n=P_(2,!0);break;case"YYY":n=P_(3);break;case"YYYY":n=P_(4);break;case"M":case"L":n=ln(1,1,1);break;case"MM":case"LL":n=ln(1,2,1);break;case"MMM":n=xi(2,_i.Abbreviated);break;case"MMMM":n=xi(2,_i.Wide);break;case"MMMMM":n=xi(2,_i.Narrow);break;case"LLL":n=xi(2,_i.Abbreviated,dr.Standalone);break;case"LLLL":n=xi(2,_i.Wide,dr.Standalone);break;case"LLLLL":n=xi(2,_i.Narrow,dr.Standalone);break;case"w":n=ex(1);break;case"ww":n=ex(2);break;case"W":n=ex(1,!0);break;case"d":n=ln(2,1);break;case"dd":n=ln(2,2);break;case"c":case"cc":n=ln(7,1);break;case"ccc":n=xi(1,_i.Abbreviated,dr.Standalone);break;case"cccc":n=xi(1,_i.Wide,dr.Standalone);break;case"ccccc":n=xi(1,_i.Narrow,dr.Standalone);break;case"cccccc":n=xi(1,_i.Short,dr.Standalone);break;case"E":case"EE":case"EEE":n=xi(1,_i.Abbreviated);break;case"EEEE":n=xi(1,_i.Wide);break;case"EEEEE":n=xi(1,_i.Narrow);break;case"EEEEEE":n=xi(1,_i.Short);break;case"a":case"aa":case"aaa":n=xi(0,_i.Abbreviated);break;case"aaaa":n=xi(0,_i.Wide);break;case"aaaaa":n=xi(0,_i.Narrow);break;case"b":case"bb":case"bbb":n=xi(0,_i.Abbreviated,dr.Standalone,!0);break;case"bbbb":n=xi(0,_i.Wide,dr.Standalone,!0);break;case"bbbbb":n=xi(0,_i.Narrow,dr.Standalone,!0);break;case"B":case"BB":case"BBB":n=xi(0,_i.Abbreviated,dr.Format,!0);break;case"BBBB":n=xi(0,_i.Wide,dr.Format,!0);break;case"BBBBB":n=xi(0,_i.Narrow,dr.Format,!0);break;case"h":n=ln(3,1,-12);break;case"hh":n=ln(3,2,-12);break;case"H":n=ln(3,1);break;case"HH":n=ln(3,2);break;case"m":n=ln(4,1);break;case"mm":n=ln(4,2);break;case"s":n=ln(5,1);break;case"ss":n=ln(5,2);break;case"S":n=ln(6,1);break;case"SS":n=ln(6,2);break;case"SSS":n=ln(6,3);break;case"Z":case"ZZ":case"ZZZ":n=O_(0);break;case"ZZZZZ":n=O_(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=O_(1);break;
7case"OOOO":case"ZZZZ":case"zzzz":n=O_(2);break;default:return null}return tx[t]=n,n}function uP(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function zq(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function Uq(t,n,e){let r=t.getTimezoneOffset(),o=uP(n,r);return zq(t,-1*(o-r))}function Gq(t){if(K2(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,o=1,a=1]=t.split("-").map(s=>+s);return R_(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Nq))return $q(i)}let n=new Date(t);if(!K2(n))throw new Error(`Unable to convert "${t}" into a date`);return n}function $q(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,u),n}function K2(t){return t instanceof Date&&!isNaN(t.valueOf())}var Wq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Q2=22,F_=".",_m="0",qq=";",Yq=",",ix="#",Z2="\xA4";function pP(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=_a(e,Kn.Infinity);else{let u=Qq(t);a&&(u=Kq(u));let g=n.minInt,v=n.minFrac,w=n.maxFrac;if(o){let Q=o.match(Wq);if(Q===null)throw new Error(`${o} is not a valid digit info`);let ie=Q[1],U=Q[3],Me=Q[5];ie!=null&&(g=nx(ie)),U!=null&&(v=nx(U)),Me!=null?w=nx(Me):U!=null&&v>w&&(w=v)}Zq(u,v,w);let C=u.digits,S=u.integerLen,D=u.exponent,O=[];for(l=C.every(Q=>!Q);S<g;S++)C.unshift(0);for(;S<0;S++)C.unshift(0);S>0?O=C.splice(S,C.length):(O=C,C=[0]);let V=[];for(C.length>=n.lgSize&&V.unshift(C.splice(-n.lgSize,C.length).join(""));C.length>n.gSize;)V.unshift(C.splice(-n.gSize,C.length).join(""));C.length&&V.unshift(C.join("")),s=V.join(_a(e,i)),O.length&&(s+=_a(e,r)+O.join("")),D&&(s+=_a(e,Kn.Exponential)+"+"+D)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function mP(t,n,e,i,r){let o=sx(n,B_.Currency),a=hP(o,_a(n,Kn.MinusSign));return a.minFrac=cP(i),a.maxFrac=a.minFrac,pP(t,a,n,Kn.CurrencyGroup,Kn.CurrencyDecimal,r).replace(Z2,e).replace(Z2,"").trim()}function fP(t,n,e){let i=sx(n,B_.Decimal),r=hP(i,_a(n,Kn.MinusSign));return pP(t,r,n,Kn.Group,Kn.Decimal,e)}function hP(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(qq),r=i[0],o=i[1],a=r.indexOf(F_)!==-1?r.split(F_):[r.substring(0,r.lastIndexOf(_m)+1),r.substring(r.lastIndexOf(_m)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(ix));for(let g=0;g<l.length;g++){let v=l.charAt(g);v===_m?e.minFrac=e.maxFrac=g+1:v===ix?e.maxFrac=g+1:e.posSuf+=v}let u=s.split(Yq);if(e.gSize=u[1]?u[1].length:0,e.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,o){let g=r.length-e.posPre.length-e.posSuf.length,v=o.indexOf(ix);e.negPre=o.substring(0,v).replace(/'/g,""),e.negSuf=o.slice(v+g).replace(/'/g,"")}else e.negPre=n+e.posPre,e.negSuf=e.posSuf;return e}function Kq(t){if(t.digits[0]===0)return t;let n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(n===0?t.digits.push(0,0):n===1&&t.digits.push(0),t.integerLen+=2),t}function Qq(t){let n=Math.abs(t)+"",e=0,i,r,o,a,s;for((r=n.indexOf(F_))>-1&&(n=n.replace(F_,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===_m;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===_m;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>Q2&&(i=i.splice(0,Q2-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function Zq(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let v=a;v<i.length;v++)i[v]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,a=o+1),i[0]=0;for(let v=1;v<a;v++)i[v]=0}if(s>=5)if(a-1<0){for(let v=0;v>a;v--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r<Math.max(0,o);r++)i.push(0);let l=o!==0,u=n+t.integerLen,g=i.reduceRight(function(v,w,C,S){return w=w+v,S[C]=w<10?w:w-10,l&&(S[C]===0&&C>=u?S.pop():l=!1),w>=10?1:0},0);g&&(i.unshift(g),t.integerLen++)}function nx(t){let n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}var rx=/\s+/,X2=[],tn=(()=>{class t{_ngEl;_renderer;initialClasses=X2;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(rx):X2}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(rx):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[
7i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(rx).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(ke(ue),ke(It))};static \u0275dir=$({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var L_=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},V_=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new L_(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),J2(s,r)}});for(let r=0,o=i.length;r<o;r++){let s=i.get(r).context;s.index=r,s.count=o,s.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);J2(o,r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(ke(bi),ke(ii),ke(I_))};static \u0275dir=$({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function J2(t,n){t.context.$implicit=n.item}var Ya=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(ke(bi))};static \u0275dir=$({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Xe]})}return t})();function j_(t,n){return new K(2100,!1)}var ox=class{createSubscription(n,e){return qn(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){qn(()=>n.unsubscribe())}},ax=class{createSubscription(n,e){return n.then(i=>e?.(i),i=>{throw i}),{unsubscribe:()=>{e=null}}}dispose(n){n.unsubscribe()}},Xq=new ax,Jq=new ox,vm=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(hl(e))return Xq;if(zS(e))return Jq;throw j_(t,e)}
7_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(ke(Je,16))};static \u0275pipe=Pn({name:"async",type:t,pure:!1})}return t})();var e9="mediumDate",gP=new H(""),_P=new H(""),Le=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??e9,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return lx(e,a,o||this.locale,s)}catch(a){throw j_(t,a.message)}}static \u0275fac=function(i){return new(i||t)(ke(ha,16),ke(gP,24),ke(_P,24))};static \u0275pipe=Pn({name:"date",type:t,pure:!0})}return t})();var Ps=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,r){if(!vP(e))return null;r||=this._locale;try{let o=bP(e);return fP(o,r,i)}catch(o){throw j_(t,o.message)}}static \u0275fac=function(i){return new(i||t)(ke(ha,16))};static \u0275pipe=Pn({name:"number",type:t,pure:!0})}return t})();var Ec=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!vP(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=H_(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=bP(e);return mP(l,a,s,i,o)}catch(l){throw j_(t,l.message)}}static \u0275fac=function(i){return new(i||t)(ke(ha,16),ke(M_,16))};static \u0275pipe=Pn({name:"currency",type:t,pure:!0})}return t})();function vP(t){return!(t==null||t===""||t!==t)}function bP(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var cx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({})}return t})();function bm(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var z_="browser",yP="server";function nt(t){return t===z_}function Ka(t){return t===yP}var Dc=class{};function U_(t,n,e){return s2(t,n,e)}var SP=(()=>{class t{static \u0275prov=I({token:t,providedIn:"root",factory:()=>new dx(d(Se),window)})}return t})(),dx=class{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=n9(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}};function n9(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var xP=t=>t.src,r9=new H("",{providedIn:"root",factory:()=>xP});var CP=/^((\s*\d+w\s*(,|$)){1,})$/;var o9=[1,2],a9=640;var s9=1920,l9=1080;var cn=(()=>{class t{imageLoader=d(r9);config=c9(d(ik));renderer=d(It);imgElement=d(ue).nativeElement;injector=d(Ne);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){}ngOnInit(){cr("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?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");let e=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&CP.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(e){if(e.ngSrc&&!e.ngSrc.isFirstChange()){let i=this._renderedSrc;this.updateSrcAndSrcset(!0)}}callImageLoader(e){let i=e;return this.loaderParams&&(i.loaderParams=this.loaderParams),this.imageLoader(i)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let e={src:this.ngSrc};this._renderedSrc=this.callImageLoader(e)}return this._renderedSrc}getRewrittenSrcset(){let e=CP.test(this.ngSrcset);return this.ngSrcset.split(",").filter(r=>r!=="").map(r=>{r=r.trim();let o=e?parseFloat(r):parseFloat(r)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:o})} ${r}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:e}=this.config,i=e;return this.sizes?.trim()==="100vw"&&(i=e.filter(o=>o>=a9)),i.map(o=>`${this.callImageLoader({src:this.ngSrc,width:o})} ${o}w`).join(", ")}updateSrcAndSrcset(e=!1){e&&(this._renderedSrc=null);let i=this.getRewrittenSrc();this.setHostAttribute("src",i);let r;return this.ngSrcset?r=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(r=this.getAutomaticSrcset()),r&&this.setHostAttribute("srcset",r),r}getFixedSrcset(){return o9.map(i=>`${this.callImageLoader({src:this.ngSrc,width:this.width*i})} ${i}x`).join(", ")}shouldGenerateAutomaticSrcset(){let e=!1;return this.sizes||(e=this.width>s9||this.height>l9),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==xP&&!e}generatePlaceholder(e){let{placeholderResolution:i}=this.config;return e===!0?`url(${this.callImageLoader({src:this.ngSrc,width:i,isPlaceholder:!0})})`:typeof e=="string"?`url(${e})`:null}shouldBlurPlaceholder(e){return!e||!e.hasOwnProperty("blur")?!0:!!e.blur}removePlaceholderOnLoad(e){let i=()=>{let a=this.injector.get(Je);r(),o(),this.placeholder=!1,a.markForCheck()},r=this.renderer.listen(e,"load",i),o=this.renderer.listen(e,"error",i);d9(e,i)}setHostAttribute(e,i){this.renderer.setAttribute(this.imgElement,e,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(i,r){i&2&&sn("position",r.fill?"absolute":null)("width",r.fill?"100%":null)("height",r.fill?"100%":null)("inset",r.fill?"0":null)("background-size",r.placeholder?"cover":null)("background-position",r.placeholder?"50% 50%":null)("background-repeat",r.placeholder?"no-repeat":null)("background-image",r.placeholder?r.generatePlaceholder(r.placeholder):null)("filter",r.placeholder&&r.shouldBlurPlaceholder(r.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",u9],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Ii],height:[2,"height","height",Ii],loading:"loading",priority:[2,"priority","priority",pe],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",pe],fill:[2,"fill","fill",pe],placeholder:[2,"placeholder","placeholder",p9],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[Xe]})}return t})();function c9(t){let n={};return t.breakpoints&&(n.breakpoints=t.breakpoints.sort((e,i)=>e-i)),Object.assign({},aS,t,n)}
7function d9(t,n){t.complete&&t.naturalWidth&&n()}function u9(t){return typeof t=="string"?t:jr(t)}function p9(t){return typeof t=="string"&&t!=="true"&&t!=="false"&&t!==""?t:pe(t)}var ru=new H(""),fx=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new K(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(xe(ru),xe(de))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),Tc=class{_doc;constructor(n){this._doc=n}manager},G_="ng-app-id";function wP(t){for(let n of t)n.remove()}function EP(t,n){let e=n.createElement("style");return e.textContent=t,e}function f9(t,n,e,i){let r=t.head?.querySelectorAll(`style[${G_}="${n}"],link[${G_}="${n}"]`);if(r)for(let o of r)o.removeAttribute(G_),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function px(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var hx=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.isServer=Ka(o),f9(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,EP);i?.forEach(r=>this.addUsage(r,this.external,px))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&(wP(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])wP(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,EP(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,px(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(G_,this.appId),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(xe(Se),xe(so),xe(om,8),xe(Qe))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),ux={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/Math/MathML"},gx=/%COMP%/g;var TP="%COMP%",h9=`_nghost-${TP}
7`,g9=`_ngcontent-${TP}`,_9=!0,v9=new H("",{providedIn:"root",factory:()=>_9});function b9(t){return g9.replace(gx,t)}function y9(t){return h9.replace(gx,t)}function MP(t,n){return n.map(e=>e.replace(gx,t))}var Sm=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l,u=null,g=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=u,this.tracingService=g,this.platformIsServer=Ka(s),this.defaultRenderer=new ym(e,a,l,this.platformIsServer,this.tracingService)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ga.ShadowDom&&(i=re(N({},i),{encapsulation:Ga.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof $_?r.applyToHost(e):r instanceof Cm&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,g=this.removeStylesOnCompDestroy,v=this.platformIsServer,w=this.tracingService;switch(i.encapsulation){case Ga.Emulated:o=new $_(l,u,i,this.appId,g,a,s,v,w);break;case Ga.ShadowDom:return new mx(l,u,e,i,a,s,this.nonce,v,w);default:o=new Cm(l,u,i,g,a,s,v,w);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(xe(fx),xe(hx),xe(so),xe(v9),xe(Se),xe(Qe),xe(de),xe(om),xe(Zd,8))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),ym=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(ux[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(DP(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(DP(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new K(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=ux[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=ux[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(xs.DashCase|xs.Important)?n.style.setProperty(e,i,r&xs.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&xs.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=fo().getGlobalEventTarget(this.doc,n),!n))throw new K(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function DP(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var mx=class extends ym{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,u){super(n,o,a,l,u),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let g=r.styles;g=MP(r.id,g);for(let w of g){let C=document.createElement("style");s&&C.setAttribute("nonce",s),C.textContent=w,this.shadowRoot.appendChild(C)}let v=r.getExternalStyles?.();if(v)for(let w of v){let C=px(w,o);s&&C.setAttribute("nonce",s),this.shadowRoot.appendChild(C)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Cm=class extends ym{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,u){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let g=i.styles;this.styles=u?MP(u,g):g,this.styleUrls=i.getExternalStyles?.(u)}
vendor: 5,228 bytes, line 7
7applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},$_=class extends Cm{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,u){let g=r+"-"+i.id;super(n,e,i,o,a,s,l,u,g),this.contentAttr=b9(g),this.hostAttr=y9(g)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var W_=class t extends mm{supportsDOMEvents=!0;static makeCurrent(){KS(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=C9();return e==null?null:S9(e)}resetBaseElement(){xm=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return bm(document.cookie,n)}},xm=null;function C9(){return xm=xm||document.head.querySelector("base"),xm?xm.getAttribute("href"):null}function S9(t){return new URL(t,document.baseURI).pathname}var q_=class{addToWindow(n){Gn.getAngularTestability=(i,r=!0)=>{let o=n.findTestabilityInTree(i,r);if(o==null)throw new K(5103,!1);return o},Gn.getAllAngularTestabilities=()=>n.getAllTestabilities(),Gn.getAllAngularRootElements=()=>n.getAllRootElements();let e=i=>{let r=Gn.getAllAngularTestabilities(),o=r.length,a=function(){o--,o==0&&i()};r.forEach(s=>{s.whenStable(a)})};Gn.frameworkStabilizers||(Gn.frameworkStabilizers=[]),Gn.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,i){if(e==null)return null;let r=n.getTestability(e);return r??(i?fo().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},x9=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),AP=(()=>{class t extends Tc{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(xe(Se))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),IP=["alt","control","meta","shift"],w9={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},E9={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},kP=(()=>{class t extends Tc{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fo().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),IP.forEach(u=>{let g=i.indexOf(u);g>-1&&(i.splice(g,1),a+=u+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=w9[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),IP.forEach(a=>{if(a!==r){let s=E9[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(xe(Se))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})();function _x(t,n,e){return H2(N({rootComponent:t,platformRef:e?.platformRef},D9(n)))}function D9(t){return{appProviders:[...OP,...t?.providers??[]],platformProviders:A9}}function T9(){W_.makeCurrent()}function M9(){return new sr}function I9(){return tk(document),document}var A9=[{provide:Qe,useValue:z_},{provide:oS,useValue:T9,multi:!0},{provide:Se,useFactory:I9}];var k9=[{provide:pm,useClass:q_},{provide:VS,useClass:S_,deps:[de,x_,pm]},{provide:S_,useClass:S_,deps:[de,x_,pm]}],OP=[{provide:Wg,useValue:"root"},{provide:sr,useFactory:M9},{provide:ru,useClass:AP,multi:!0,deps:[Se]},{provide:ru,useClass:kP,multi:!0,deps:[Se]},Sm,hx,fx,{provide:Ji,useExisting:Sm},{provide:Dc,useClass:x9},[]],vx=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({providers:[...OP,...k9],imports:[cx,B2]})}return t})();var au=class{},su=class{},ur=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
8`).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Q_=class{encodeKey(n){return PP(n)}encodeValue(n){return PP(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function O9(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var P9=/%(\d[a-f0-9])/gi,N9={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function PP(t){return encodeURIComponent(t).replace(P9,(n,e)=>N9[e]??n)}function Y_(t){return`${t}`}var ho=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Q_,n.fromString){if(n.fromObject)throw new K(2805,!1);this.map=O9(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Y_):[Y_(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEac
vendor: 6,079 bytes, line 8
8h(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Y_(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Y_(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Z_=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function R9(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function NP(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function RP(t){return typeof Blob<"u"&&t instanceof Blob}function FP(t){return typeof FormData<"u"&&t instanceof FormData}function F9(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var wm="Content-Type",X_="Accept",xx="X-Request-URL",HP="text/plain",VP="application/json",jP=`${VP}, ${HP}, */*`,ou=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(R9(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new ur,this.context??=new Z_,!this.params)this.params=new ho,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":s<e.length-1?"&":"";this.urlWithParams=e+l+a}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||NP(this.body)||RP(this.body)||FP(this.body)||F9(this.body)?this.body:this.body instanceof ho?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||FP(this.body)?null:RP(this.body)?this.body.type||null:NP(this.body)?null:typeof this.body=="string"?HP:this.body instanceof ho?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?VP:null}clone(n={}){let e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=n.transferCache??this.transferCache,a=n.body!==void 0?n.body:this.body,s=n.withCredentials??this.withCredentials,l=n.reportProgress??this.reportProgress,u=n.headers||this.headers,g=n.params||this.params,v=n.context??this.context;return n.setHeaders!==void 0&&(u=Object.keys(n.setHeaders).reduce((w,C)=>w.set(C,n.setHeaders[C]),u)),n.setParams&&(g=Object.keys(n.setParams).reduce((w,C)=>w.set(C,n.setParams[C]),g)),new t(e,i,a,{params:g,headers:u,context:v,reportProgress:l,responseType:r,withCredentials:s,transferCache:o})}},Ns=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ns||{}),lu=class{headers;status;statusText;url;ok;type;constructor(n,e=200,i="OK"){this.headers=n.headers||new ur,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},Em=class t extends lu{constructor(n={}){super(n)}type=Ns.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},vl=class t extends lu{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Ns.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},va=class extends lu{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},zP=200,L9=204;function bx(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Be=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof ou)o=e;else{let l;r.headers instanceof ur?l=r.headers:l=new ur(r.headers);let u;r.params&&(r.params instanceof ho?u=r.params:u=new ho({fromObject:r.params})),o=new ou(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:u,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let a=j(o).pipe(Ba(l=>this.handler.handle(l)));if(e instanceof ou||r.observe==="events")return a;let s=a.pipe(Ue(l=>l instanceof vl));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(F(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new K(2806,!1);return l.body}));case"blob":return s.pipe(F(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new K(2807,!1);return l.body}));case"text":return s.pipe(F(l=>{if(l.body!==null&&typeof l.body!="string")throw new K(2808,!1);return l.body}));case"json":default:return s.pipe(F(l=>l.body))}case"response":return s;default:throw new K(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}
8){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new ho().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,bx(r,i))}post(e,i,r={}){return this.request("POST",e,bx(r,i))}put(e,i,r={}){return this.request("PUT",e,bx(r,i))}static \u0275fac=function(i){return new(i||t)(xe(au))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),B9=/^\)\]\}',?\n/;function LP(t){if(t.url)return t.url;let n=xx.toLocaleLowerCase();return t.headers.get(n)}var UP=new H(""),K_=(()=>{class t{fetchImpl=d(yx,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=d(de);destroyRef=d(Vr);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(e){return new je(i=>{let r=new AbortController;return this.doRequest(e,r.signal,i).then(Cx,o=>i.error(new va({error:o}))),()=>r.abort()})}doRequest(e,i,r){return li(this,null,function*(){let o=this.createRequestInit(e),a;try{let C=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,N({signal:i},o)));H9(C),r.next({type:Ns.Sent}),a=yield C}catch(C){r.error(new va({error:C,status:C.status??0,statusText:C.statusText,url:e.urlWithParams,headers:C.headers}));return}let s=new ur(a.headers),l=a.statusText,u=LP(a)??e.urlWithParams,g=a.status,v=null;if(e.reportProgress&&r.next(new Em({headers:s,status:g,statusText:l,url:u})),a.body){let C=a.headers.get("content-length"),S=[],D=a.body.getReader(),O=0,V,Q,ie=typeof Zone<"u"&&Zone.current,U=!1;if(yield this.ngZone.runOutsideAngular(()=>li(this,null,function*(){for(;;){if(this.destroyed){yield D.cancel(),U=!0;break}let{done:Oe,value:ae}=yield D.read();if(Oe)break;if(S.push(ae),O+=ae.length,e.reportProgress){Q=e.responseType==="text"?(Q??"")+(V??=new TextDecoder).decode(ae,{stream:!0}):void 0;let oe=()=>r.next({type:Ns.DownloadProgress,total:C?+C:void 0,loaded:O,partialText:Q});ie?ie.run(oe):oe()}}})),U){r.complete();return}let Me=this.concatChunks(S,O);try{let Oe=a.headers.get(wm)??"";v=this.parseBody(e,Me,Oe)}catch(Oe){r.error(new va({error:Oe,headers:new ur(a.headers),status:a.status,statusText:a.statusText,url:LP(a)??e.urlWithParams}));return}}g===0&&(g=v?zP:0),g>=200&&g<300?(r.next(new vl({body:v,headers:s,status:g,statusText:l,url:u})),r.complete()):r.error(new va({error:v,headers:s,status:g,statusText:l,url:u}))})}parseBody(e,i,r){switch(e.responseType){case"json":let o=new TextDecoder().decode(i).replace(B9,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:r});case"arraybuffer":return i.buffer}}createRequestInit(e){let i={},r=e.withCredentials?"include":void 0;if(e.headers.forEach((o,a)=>i[o]=a.join(",")),e.headers.has(X_)||(i[X_]=jP),!e.headers.has(wm)){let o=e.detectContentTypeHeader();o!==null&&(i[wm]=o)}return{body:e.serializeBody(),method:e.method,headers:i,credentials:r}}concatChunks(e,i){let r=new Uint8Array(i),o=0;for(let a of e)r.set(a,o),o+=a.length;return r}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),yx=class{};function Cx(){}function H9(t){t.then(Cx,Cx)}function GP(t,n){return n(t)}function V9(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}function j9(t,n,e){return(i,r)=>po(e,()=>n(i,o=>t(o,r)))}var cu=new H(""),wx=new H(""),Ex=new H(""),Dx=new H("",{providedIn:"root",factory:()=>!0});function z9(){let t=null;return(n,e)=>{t===null&&(t=(d(cu,{optional:!0})??[]).reduceRight(V9,GP));let i=d(ua);if(d(Dx)){let o=i.add();return t(n,e).pipe(oo(()=>i.remove(o)))}else return t(n,e)}}var J_=(()=>{class t extends au{backend;injector;chain=null;pendingTasks=d(ua);contributeToStability=d(Dx);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(wx),...this.injector.get(Ex,[])]));this.chain=i.reduceRight((r,o)=>j9(r,o,this.injector),GP)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(oo(()=>this.pendingTasks.remove(i)))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(xe(su),xe(hi))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})();var U9=/^\)\]\}',?\n/,G9=RegExp(`^${xx}:`,"m");function $9(t){return"responseURL"in t&&t.responseURL?t.responseURL:G9.test(t.getAllResponseHeaders())?t.getResponseHeader(xx):null}var Sx=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new K(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?mi(i.\u0275loadImpl()):j(null)).pipe(Qt(()=>new je(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEac
vendor: 2,220 bytes, line 8
8h((D,O)=>a.setRequestHeader(D,O.join(","))),e.headers.has(X_)||a.setRequestHeader(X_,jP),!e.headers.has(wm)){let D=e.detectContentTypeHeader();D!==null&&a.setRequestHeader(wm,D)}if(e.responseType){let D=e.responseType.toLowerCase();a.responseType=D!=="json"?D:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let D=a.statusText||"OK",O=new ur(a.getAllResponseHeaders()),V=$9(a)||e.url;return l=new Em({headers:O,status:a.status,statusText:D,url:V}),l},g=()=>{let{headers:D,status:O,statusText:V,url:Q}=u(),ie=null;O!==L9&&(ie=typeof a.response>"u"?a.responseText:a.response),O===0&&(O=ie?zP:0);let U=O>=200&&O<300;if(e.responseType==="json"&&typeof ie=="string"){let Me=ie;ie=ie.replace(U9,"");try{ie=ie!==""?JSON.parse(ie):null}catch(Oe){ie=Me,U&&(U=!1,ie={error:Oe,text:ie})}}U?(o.next(new vl({body:ie,headers:D,status:O,statusText:V,url:Q||void 0})),o.complete()):o.error(new va({error:ie,headers:D,status:O,statusText:V,url:Q||void 0}))},v=D=>{let{url:O}=u(),V=new va({error:D,status:a.status||0,statusText:a.statusText||"Unknown Error",url:O||void 0});o.error(V)},w=!1,C=D=>{w||(o.next(u()),w=!0);let O={type:Ns.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(O.total=D.total),e.responseType==="text"&&a.responseText&&(O.partialText=a.responseText),o.next(O)},S=D=>{let O={type:Ns.UploadProgress,loaded:D.loaded};D.lengthComputable&&(O.total=D.total),o.next(O)};return a.addEventListener("load",g),a.addEventListener("error",v),a.addEventListener("timeout",v),a.addEventListener("abort",v),e.reportProgress&&(a.addEventListener("progress",C),s!==null&&a.upload&&a.upload.addEventListener("progress",S)),a.send(s),o.next({type:Ns.Sent}),()=>{a.removeEventListener("error",v),a.removeEventListener("abort",v),a.removeEventListener("load",g),a.removeEventListener("timeout",v),e.reportProgress&&(a.removeEventListener("progress",C),s!==null&&a.upload&&a.upload.removeEventListener("progress",S)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(xe(Dc))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),$P=new H(""),W9="XSRF-TOKEN",q9=new H("",{providedIn:"root",factory:()=>W9}),Y9="X-XSRF-TOKEN",K9=new H("",{providedIn:"root",factory:()=>Y9}
8),Dm=class{},Q9=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=bm(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(xe(Se),xe(q9))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),Z9=/^(?:https?:)?\/\//i;function X9(t,n){if(!d($P)||t.method==="GET"||t.method==="HEAD"||Z9.test(t.url))return n(t);let e=d(Dm).getToken(),i=d(K9);return e!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,e)})),n(t)}var e0=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(e0||{});function WP(t,n){return{\u0275kind:t,\u0275providers:n}}function Tx(...t){let n=[Be,Sx,J_,{provide:au,useExisting:J_},{provide:su,useFactory:()=>d(UP,{optional:!0})??d(Sx)},{provide:wx,useValue:X9,multi:!0},{provide:$P,useValue:!0},{provide:Dm,useClass:Q9}];for(let e of t)n.push(...e.\u0275providers);return $a(n)}var BP=new H("");function Mx(){return WP(e0.LegacyInterceptors,[{provide:BP,useFactory:z9},{provide:wx,useExisting:BP,multi:!0}])}function Ix(){return WP(e0.Fetch,[K_,{provide:UP,useExisting:K_},{provide:su,useExisting:K_}])}var J9=new H(""),e7="b",t7="h",i7="s",n7="st",r7="u",o7="rt",Ax=new H(""),a7=["GET","HEAD"];function s7(t,n){let w=d(Ax),{isCacheActive:e}=w,i=xp(w,["isCacheActive"]),{transferCache:r,method:o}=t;if(!e||r===!1||o==="POST"&&!i.includePostRequests&&!r||o!=="POST"&&!a7.includes(o)||!i.includeRequestsWithAuthHeaders&&l7(t)||i.filter?.(t)===!1)return n(t);let a=d(Qd);if(d(J9,{optional:!0}))throw new K(2803,!1);let l=t.url,u=c7(t,l),g=a.get(u,null),v=i.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(v=r.includeHeaders),g){let{[e7]:C,[o7]:S,[t7]:D,[i7]:O,[n7]:V,[r7]:Q}=g,ie=C;switch(S){case"arraybuffer":ie=new TextEncoder().encode(C).buffer;break;case"blob":ie=new Blob([C]);break}let U=new ur(D);return j(new vl({body:ie,headers:U,status:O,statusText:V,url:Q}))}return n(t).pipe(jt(C=>{C instanceof vl}))}function l7(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function qP(t){return[...t.keys()].sort().map(n=>`${n}=${t.getAll(n)}`).join("&")}function c7(t,n){let{params:e,method:i,responseType:r}=t,o=qP(e),a=t.serializeBody();
8a instanceof URLSearchParams?a=qP(a):typeof a!="string"&&(a="");let s=[i,r,n,a,o].join("|"),l=d7(s);return l}function d7(t){let n=0;for(let e of t)n=Math.imul(31,n)+e.charCodeAt(0)<<0;return n+=2147483648,n.toString()}function kx(t){return[{provide:Ax,useFactory:()=>(cr("NgHttpTransferCache"),N({isCacheActive:!0},t))},{provide:Ex,useValue:s7,multi:!0},{provide:Sc,multi:!0,useFactory:()=>{let n=d(Ui),e=d(Ax);return()=>{n.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var YP=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(xe(Se))};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var p7={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},Ox=new H(""),KP=new H(""),m7=(()=>{class t{events=[];overrides={};options;buildHammer(e){let i=new Hammer(e,this.options);i.get("pinch").set({enable:!0}),i.get("rotate").set({enable:!0});for(let r in this.overrides)i.get(r).set(this.overrides[r]);return i}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),f7=(()=>{class t extends Tc{_config;_injector;loader;_loaderPromise=null;constructor(e,i,r,o){super(e),this._config=i,this._injector=r,this.loader=o}supports(e){return!(!p7.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,i,r){let o=this.manager.getZone();if(i=i.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||o.runOutsideAngular(()=>this.loader());let a=!1,s=()=>{a=!0};return o.runOutsideAngular(()=>this._loaderPromise.then(()=>{if(!window.Hammer){s=()=>{};return}a||(s=this.addEventListener(e,i,r))}).catch(()=>{s=()=>{}})),()=>{s()}}return o.runOutsideAngular(()=>{let a=this._config.buildHammer(e),s=function(l){o.runGuarded(function(){r(l)})};return a.on(i,s),()=>{a.off(i,s),typeof a.destroy=="function"&&a.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}static \u0275fac=function(i){return new(i||t)(xe(Se),xe(Ox),xe(Ne),xe(KP,8))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),QP=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({providers:[{provide:ru,useClass:f7,multi:!0,deps:[Se,Ox,Ne,[new ca,KP]]},{provide:Ox,useClass:m7}]})}return t})(),En=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=xe(h7),r},providedIn:"root"})}return t})(),h7=(()=>{class t extends En{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case en.NONE:return i;case en.HTML:return Ms(i,"HTML")?jr(i):mS(this._doc,String(i)).toString();case en.STYLE:return Ms(i,"Style")?jr(i):i;case en.SCRIPT:if(Ms(i,"Script"))return jr(i);throw new K(5200,!1);case en.URL:return Ms(i,"URL")?jr(i):lm(String(i));case en.RESOURCE_URL:if(Ms(i,"ResourceURL"))return jr(i);throw new K(5201,!1);default:throw new K(5202,!1)}}bypassSecurityTrustHtml(e){return Sk(e)}bypassSecurityTrustStyle(e){return xk(e)}bypassSecurityTrustScript(e){return wk(e)}bypassSecurityTrustUrl(e){return Ek(e)}bypassSecurityTrustResourceUrl(e){return Dk(e)}static \u0275fac=function(i){return new(i||t)(xe(Se))};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Tm=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t}(Tm||{});function ZP(t,n=[],e={}){return{\u0275kind:t,\u0275providers:n}}function XP(t){return ZP(Tm.HttpTransferCacheOptions,kx(t))}function JP(){return ZP(Tm.EventReplay,V2())}function eN(...t){let n=[],e=new Set;for(let{\u0275providers:r,\u0275kind:o}of t)e.add(o),r.length&&n.push(r);let i=e.has(Tm.HttpTransferCacheOptions);return $a([[],j2(),e.has(Tm.NoHttpTransferCache)||i?[]:kx({}),n])}var xt="primary",Vm=Symbol("RouteTitle"),Bx=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Ac(t){return new Bx(t)}function lN(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.length<t.length))return null;let r={};for(let o=0;o<i.length;o++){let a=i[o],s=t[o];if(a[0]===":")r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function g7(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!Qa(t[e],n[e]))return!1;return!0}function Qa(t,n){let e=t?Hx(t):void 0,i=n?Hx(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!cN(t[r],n[r]))return!1;return!0}function Hx(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function cN(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}else return t===n}function dN(t){return t.length>0?t[t.length-1]:null}
8function Cl(t){return Nh(t)?t:hl(t)?mi(Promise.resolve(t)):j(t)}var _7={exact:pN,subset:mN},uN={exact:v7,subset:b7,ignored:()=>!0};function tN(t,n,e){return _7[e.paths](t.root,n.root,e.matrixParams)&&uN[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function v7(t,n){return Qa(t,n)}function pN(t,n,e){if(!Mc(t.segments,n.segments)||!n0(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!pN(t.children[i],n.children[i],e))return!1;return!0}function b7(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>cN(t[e],n[e]))}function mN(t,n,e){return fN(t,n,n.segments,e)}function fN(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Mc(r,e)||n.hasChildren()||!n0(r,e,i))}else if(t.segments.length===e.length){if(!Mc(t.segments,e)||!n0(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!mN(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Mc(t.segments,r)||!n0(t.segments,r,i)||!t.children[xt]?!1:fN(t.children[xt],n,o,i)}}function n0(t,n,e){return n.every((i,r)=>uN[e](t[r].parameters,i.parameters))}var Xa=class{root;queryParams;fragment;_queryParamMap;constructor(n=new ri([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Ac(this.queryParams),this._queryParamMap}toString(){return S7.serialize(this)}},ri=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return r0(this)}},bl=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Ac(this.parameters),this._parameterMap}toString(){return gN(this)}};function y7(t,n){return Mc(t,n)&&t.every((e,i)=>Qa(e.parameters,n[i].parameters))}function Mc(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function C7(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===xt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==xt&&(e=e.concat(n(r,i)))}),e}var yu=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:()=>new kc,providedIn:"root"})}return t})(),kc=class{parse(n){let e=new jx(n);return new Xa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Mm(n.root,!0)}`,i=E7(n.queryParams),r=typeof n.fragment=="string"?`#${x7(n.fragment)}`:"";return`${e}${i}${r}`}},S7=new kc;function r0(t){return t.segments.map(n=>gN(n)).join("/")}function Mm(t,n){if(!t.hasChildren())return r0(t);if(n){let e=t.children[xt]?Mm(t.children[xt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==xt&&i.push(`${r}:${Mm(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=C7(t,(i,r)=>r===xt?[Mm(t.children[xt],!1)]:[`${r}:${Mm(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[xt]!=null?`${r0(t)}/${e[0]}`:`${r0(t)}/(${e.join("//")})`}}function hN(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function t0(t){return hN(t).replace(/%3B/gi,";")}function x7(t){return encodeURI(t)}function Vx(t){return hN(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function o0(t){return decodeURIComponent(t)}function iN(t){return o0(t.replace(/\+/g,"%20"))}function gN(t){return`${Vx(t.path)}${w7(t.parameters)}`}function w7(t){return Object.entries(t).map(([n,e])=>`;${Vx(n)}=${Vx(e)}`).join("")}function E7(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${t0(e)}=${t0(r)}`).join("&"):`${t0(e)}=${t0(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var D7=/^[^\/()?;#]+/;function Nx(t){let n=t.match(D7);return n?n[0]:""}var T7=/^[^\/()?;=#]+/;function M7(t){let n=t.match(T7);return n?n[0]:""}var I7=/^[^=?&#]+/;function A7(t){let n=t.match(I7);return n?n[0]:""}var k7=/^[^&#]+/;
8function O7(t){let n=t.match(k7);return n?n[0]:""}var jx=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ri([],{}):new ri([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[xt]=new ri(n,e)),i}parseSegment(){let n=Nx(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new K(4009,!1);return this.capture(n),new bl(o0(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=M7(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=Nx(this.remaining);r&&(i=r,this.capture(i))}n[o0(e)]=o0(i)}parseQueryParam(n){let e=A7(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=O7(this.remaining);a&&(i=a,this.capture(i))}let r=iN(e),o=iN(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Nx(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new K(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=xt);let a=this.parseChildren();e[o]=Object.keys(a).length===1?a[xt]:new ri([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new K(4011,!1)}};function _N(t){return t.segments.length>0?new ri([],{[xt]:t}):t}function vN(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=vN(r);if(i===xt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new ri(t.segments,n);return P7(e)}function P7(t){if(t.numberOfChildren===1&&t.children[xt]){let n=t.children[xt];return new ri(t.segments.concat(n.segments),n.children)}return t}function yl(t){return t instanceof Xa}function bN(t,n,e=null,i=null){let r=yN(t);return CN(r,n,e,i)}function yN(t){let n;function e(o){let a={};for(let l of o.children){let u=e(l);a[l.outlet]=u}let s=new ri(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=_N(i);return n??r}function CN(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return Rx(r,r,r,e,i);let o=N7(n);if(o.toRoot())return Rx(r,r,new ri([],{}),e,i);let a=R7(o,r,t),s=a.processChildren?Am(a.segmentGroup,a.index,o.commands):xN(a.segmentGroup,a.index,o.commands);return Rx(r,a.segmentGroup,s,e,i)}function s0(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Om(t){return typeof t=="object"&&t!=null&&t.outlets}function Rx(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,u])=>{o[l]=Array.isArray(u)?u.map(g=>`${g}`):`${u}`});let a;t===n?a=e:a=SN(t,n,e);let s=_N(vN(a));return new Xa(s,o,r)}function SN(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=SN(o,n,e)}),new ri(t.segments,i)}var l0=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&s0(i[0]))throw new K(4003,!1);let r=i.find(Om);if(r&&r!==dN(i))throw new K(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function N7(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new l0(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>
8{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new l0(e,n,i)}var pu=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function R7(t,n,e){if(t.isAbsolute)return new pu(n,!0,0);if(!e)return new pu(n,!1,NaN);if(e.parent===null)return new pu(e,!0,0);let i=s0(t.commands[0])?0:1,r=e.segments.length-1+i;return F7(e,r,t.numberOfDoubleDots)}function F7(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new K(4005,!1);r=i.segments.length}return new pu(i,!1,r-o)}function L7(t){return Om(t[0])?t[0].outlets:{[xt]:t}}function xN(t,n,e){if(t??=new ri([],{}),t.segments.length===0&&t.hasChildren())return Am(t,n,e);let i=B7(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let o=new ri(t.segments.slice(0,i.pathIndex),{});return o.children[xt]=new ri(t.segments.slice(i.pathIndex),t.children),Am(o,0,r)}else return i.match&&r.length===0?new ri(t.segments,{}):i.match&&!t.hasChildren()?zx(t,n,e):i.match?Am(t,0,r):zx(t,n,e)}function Am(t,n,e){if(e.length===0)return new ri(t.segments,{});{let i=L7(e),r={};if(Object.keys(i).some(o=>o!==xt)&&t.children[xt]&&t.numberOfChildren===1&&t.children[xt].segments.length===0){let o=Am(t.children[xt],n,e);return new ri(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=xN(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new ri(t.segments,r)}}function B7(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;let a=t.segments[r],s=e[i];if(Om(s))break;let l=`${s}`,u=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!rN(l,u,a))return o;i+=2}else{if(!rN(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function zx(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r<e.length;){let o=e[r];if(Om(o)){let l=H7(o.outlets);return new ri(i,l)}if(r===0&&s0(e[0])){let l=t.segments[n];i.push(new bl(l.path,nN(e[0]))),r++;continue}let a=Om(o)?o.outlets[xt]:`${o}`,s=r<e.length-1?e[r+1]:null;a&&s&&s0(s)?(i.push(new bl(a,nN(s))),r+=2):(i.push(new bl(a,{})),r++)}return new ri(i,{})}function H7(t){let n={};return Object.entries(t).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=zx(new ri([],{}),0,i))}),n}function nN(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function rN(t,n,e){return t==e.path&&Qa(n,e.parameters)}var a0="imperative",Tn=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Tn||{}),_o=class{id;url;constructor(n,e){this.id=n,this.url=e}},Ja=class extends _o{type=Tn.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Dn=class extends _o{urlAfterRedirects;type=Tn.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ur=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromRe
8solver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ur||{}),fu=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(fu||{}),Za=class extends _o{reason;code;type=Tn.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},es=class extends _o{reason;code;type=Tn.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}},hu=class extends _o{error;target;type=Tn.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pm=class extends _o{urlAfterRedirects;state;type=Tn.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},c0=class extends _o{urlAfterRedirects;state;type=Tn.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},d0=class extends _o{urlAfterRedirects;state;shouldActivate;type=Tn.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},u0=class extends _o{urlAfterRedirects;state;type=Tn.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},p0=class extends _o{urlAfterRedirects;state;type=Tn.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m0=class{route;type=Tn.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},f0=class{route;type=Tn.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},h0=class{snapshot;type=Tn.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},g0=class{snapshot;type=Tn.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_0=class{snapshot;type=Tn.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},v0=class{snapshot;type=Tn.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},gu=class{routerEvent;position;anchor;type=Tn.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Nm=class{},_u=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function V7(t,n){return t.providers&&!t._injector&&(t._injector=tu(t.providers,n,`Route: ${t.path}`)),t._injector??n}function ba(t){return t.outlet||xt}function j7(t,n){let e=t.filter(i=>ba(i)===n);return e.push(...t.filter(i=>ba(i)!==n)),e}function jm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var b0=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return jm(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Cu(this.rootInjector)}},Cu=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);
8i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b0(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(xe(hi))};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),y0=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Ux(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=Ux(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Gx(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Gx(n,this._root).map(e=>e.value)}};function Ux(t,n){if(t===n.value)return n;for(let e of n.children){let i=Ux(t,e);if(i)return i}return null}function Gx(t,n){if(t===n.value)return[n];for(let e of n.children){let i=Gx(t,e);if(i.length)return i.unshift(n),i}return[]}var go=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function uu(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Rm=class extends y0{snapshot;constructor(n,e){super(n),this.snapshot=e,Xx(this,n)}toString(){return this.snapshot.toString()}};function wN(t){let n=z7(t),e=new Gt([new bl("",{})]),i=new Gt({}),r=new Gt({}),o=new Gt({}),a=new Gt(""),s=new Ye(e,i,o,a,r,xt,t,n.root);return s.snapshot=n.root,new Rm(new go(s,[]),n)}function z7(t){let n={},e={},i={},r="",o=new Ic([],n,i,r,e,xt,t,null,{});return new Fm("",new go(o,[]))}var Ye=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(F(u=>u[Vm]))??j(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}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.params.pipe(F(n=>Ac(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(F(n=>Ac(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function C0(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:N(N({},n.params),t.params),data:N(N({},n.data),t.data),resolve:N(N(N(N({},t.data),n.data),r?.data),t._resolvedData)}:i={params:N({},t.params),data:N({},t.data),resolve:N(N({},t.data),t._resolvedData??{})},r&&DN(r)&&(i.resolve[Vm]=r.title),i}var Ic=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Vm]}constructor(n,e,i,r,o,a,s,l,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u}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??=Ac(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ac(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Fm=class extends y0{url;
8constructor(n,e){super(e),this.url=n,Xx(this,e)}toString(){return EN(this._root)}};function Xx(t,n){n.value._routerState=t,n.children.forEach(e=>Xx(t,e))}function EN(t){let n=t.children.length>0?` { ${t.children.map(EN).join(", ")} } `:"";return`${t.value}${n}`}function Fx(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Qa(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Qa(n.params,e.params)||t.paramsSubject.next(e.params),g7(n.url,e.url)||t.urlSubject.next(e.url),Qa(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function $x(t,n){let e=Qa(t.params,n.params)&&y7(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||$x(t.parent,n.parent))}function DN(t){return typeof t.title=="string"||t.title===null}var TN=new H(""),Oc=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=xt;activateEvents=new z;deactivateEvents=new z;attachEvents=new z;detachEvents=new z;routerOutletData=we(void 0);parentContexts=d(Cu);location=d(bi);changeDetector=d(Je);inputBinder=d(E0,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new K(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new K(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new K(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new K(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new Wx(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Xe]})}return t})(),Wx=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===Ye?this.route:n===Cu?this.childContexts:n===TN?this.outletData:this.parent.get(n,e)}},E0=new H("");var Jx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&_(0,"router-outlet")},dependencies:[Oc],encapsulation:2})}return t})();function ew(t){let n=t.children&&t.children.map(ew),e=n?re(N({},t),{children:n}):N({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==xt&&(e.component=Jx),e}function U7(t,n,e){let i=Lm(t,n._root,e?e._root:void 0);return new Rm(i,n)}function Lm(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=G7(t,n,e);return new go(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Lm(t,s)),a}}let i=$7(n.value),r=n.children.map(o=>Lm(t,o));return new go(i,r)}}function G7(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Lm(t,i,r);return Lm(t,i)})}function $7(t){return new Ye(new Gt(t.url),new Gt(t.params),new Gt(t.queryParams),new Gt(t.fragment),new Gt(t.data),t.outlet,t.component,t)}var vu=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},MN="ngNavigationCancelingError";function S0(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=yl(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=IN(!1,Ur.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function IN(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[MN]=!0,e.cancellationCode=n,e}function W7(t){return AN(t)&&yl(t.url)}function AN(t){return!!t&&t[MN]}var q7=(t,n,e,i)=>F(r=>(new qx(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),qx=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}
8activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Fx(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=uu(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=uu(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=uu(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=uu(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new v0(o.value.snapshot))}),n.children.length&&this.forwardEvent(new g0(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(Fx(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Fx(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,i)}},x0=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},mu=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Y7(t,n,e){let i=t._root,r=n?n._root:null;return Im(i,r,e,[i.value])}function K7(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Su(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!GI(t)?t:n.get(t):i}function Im(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=uu(n);return t.children.forEach(a=>{Q7(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>km(s,e.getContext(a),r)),r}function Q7(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=Z7(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new x0(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Im(t,n,s?s.children:null,i,r):Im(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new mu(s.outlet.component,a))}else a&&km(n,s,r),r.canActivateChecks.push(new x0(i)),o.component?Im(t,null,s?s.children:null,i,r):Im(t,null,e,i,r);return r}function Z7(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Mc(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Mc(t.url,n.url)||!Qa(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$x(t,n)||!Qa(t.queryParams,n.queryParams);case"paramsChange":default:return!$x(t,n)}}function km(t,n,e){let i=uu(t),r=t.value;
8Object.entries(i).forEach(([o,a])=>{r.component?n?km(a,n.children.getContext(o),e):km(a,null,e):km(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new mu(n.outlet.component,r)):e.canDeactivateChecks.push(new mu(null,r)):e.canDeactivateChecks.push(new mu(null,r))}function zm(t){return typeof t=="function"}function X7(t){return typeof t=="boolean"}function J7(t){return t&&zm(t.canLoad)}function eY(t){return t&&zm(t.canActivate)}function tY(t){return t&&zm(t.canActivateChild)}function iY(t){return t&&zm(t.canDeactivate)}function nY(t){return t&&zm(t.canMatch)}function kN(t){return t instanceof na||t?.name==="EmptyError"}var i0=Symbol("INITIAL_VALUE");function bu(){return Qt(t=>ra(t.map(n=>n.pipe(Et(1),Yt(i0)))).pipe(F(n=>{for(let e of n)if(e!==!0){if(e===i0)return i0;if(e===!1||rY(e))return e}return!0}),Ue(n=>n!==i0),Et(1)))}function rY(t){return yl(t)||t instanceof vu}function oY(t,n){return ci(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?j(re(N({},e),{guardsResult:!0})):aY(a,i,r,t).pipe(ci(s=>s&&X7(s)?sY(i,o,t,n):j(s)),F(s=>re(N({},e),{guardsResult:s})))})}function aY(t,n,e,i){return mi(t).pipe(ci(r=>pY(r.component,r.route,e,n,i)),Rr(r=>r!==!0,!0))}function sY(t,n,e,i){return mi(n).pipe(Ba(r=>ko(cY(r.route.parent,i),lY(r.route,i),uY(t,r.path,e),dY(t,r.route,e))),Rr(r=>r!==!0,!0))}function lY(t,n){return t!==null&&n&&n(new _0(t)),j(!0)}function cY(t,n){return t!==null&&n&&n(new h0(t)),j(!0)}function dY(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return j(!0);let r=i.map(o=>Oo(()=>{let a=jm(n)??e,s=Su(o,a),l=eY(s)?s.canActivate(n,t):po(a,()=>s(n,t));return Cl(l).pipe(Rr())}));return j(r).pipe(bu())}function uY(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>K7(a)).filter(a=>a!==null).map(a=>Oo(()=>{let s=a.guards.map(l=>{let u=jm(a.node)??e,g=Su(l,u),v=tY(g)?g.canActivateChild(i,t):po(u,()=>g(i,t));return Cl(v).pipe(Rr())});return j(s).pipe(bu())}));return j(o).pipe(bu())}function pY(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return j(!0);let a=o.map(s=>{let l=jm(n)??r,u=Su(s,l),g=iY(u)?u.canDeactivate(t,n,e,i):po(l,()=>u(t,n,e,i));return Cl(g).pipe(Rr())});return j(a).pipe(bu())}function mY(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return j(!0);let o=r.map(a=>{let s=Su(a,t),l=J7(s)?s.canLoad(n,e):po(t,()=>s(n,e));return Cl(l)});return j(o).pipe(bu(),ON(i))}function ON(t){return ky(jt(n=>{if(typeof n!="boolean")throw S0(t,n)}),F(n=>n===!0))}function fY(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return j(!0);let o=r.map(a=>{let s=Su(a,t),l=nY(s)?s.canMatch(n,e):po(t,()=>s(n,e));return Cl(l)});return j(o).pipe(bu(),ON(i))}var Bm=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Hm=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function du(t){return Nr(new Bm(t))}function hY(t){return Nr(new K(4e3,!1))}function gY(t){return Nr(IN(!1,Ur.GuardRejected))}var Yx=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return j(i);if(r.numberOfChildren>1||!r.children[xt])return hY(`${n.redirectTo}`);r=r.children[xt]}}applyRedirectCommands(n,e,i,r,o){if(typeof e!="string"){let s=e,{queryParams:l,fragment:u,routeConfig:g,url:v,outlet:w,params:C,data:S,title:D}=r,O=po(o,()=>s({params:C,data:S,queryParams:l,fragment:u,routeConfig:g,url:v,outlet:w,title:D}));if(O instanceof Xa)throw new Hm(O);e=O}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e[0]==="/")throw new Hm(a);return a}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new Xa(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};
8return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new ri(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new K(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}},Kx={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _Y(t,n,e,i,r){let o=PN(t,n,e);return o.matched?(i=V7(n,i),fY(i,n,e,r).pipe(F(a=>a===!0?o:N({},Kx)))):j(o)}function PN(t,n,e){if(n.path==="**")return vY(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?N({},Kx):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||lN)(e,t,n);if(!r)return N({},Kx);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?N(N({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function vY(t){return{matched:!0,parameters:t.length>0?dN(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function oN(t,n,e,i){return e.length>0&&CY(t,e,i)?{segmentGroup:new ri(n,yY(i,new ri(e,t.children))),slicedSegments:[]}:e.length===0&&SY(t,e,i)?{segmentGroup:new ri(t.segments,bY(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new ri(t.segments,t.children),slicedSegments:e}}function bY(t,n,e,i){let r={};for(let o of e)if(D0(t,n,o)&&!i[ba(o)]){let a=new ri([],{});r[ba(o)]=a}return N(N({},i),r)}function yY(t,n){let e={};e[xt]=n;for(let i of t)if(i.path===""&&ba(i)!==xt){let r=new ri([],{});e[ba(i)]=r}return e}function CY(t,n,e){return e.some(i=>D0(t,n,i)&&ba(i)!==xt)}function SY(t,n,e){return e.some(i=>D0(t,n,i))}function D0(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function xY(t,n,e){return n.length===0&&!t.children[e]}var Qx=class{};function wY(t,n,e,i,r,o,a="emptyOnly"){return new Zx(t,n,e,i,r,a,o).recognize()}var EY=31,Zx=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new Yx(this.urlSerializer,this.urlTree)}noMatchError(n){return new K(4002,`'${n.segmentGroup}'`)}recognize(){let n=oN(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(F(({children:e,rootSnapshot:i})=>{let r=new go(i,e),o=new Fm("",r),a=bN(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(n){let e=new Ic([],Object.freeze({}),Object.freeze(N({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),xt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,xt,e).pipe(F(i=>({children:i,rootSnapshot:e})),Ae(i=>{if(i instanceof Hm)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Bm?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(F(a=>a instanceof go?[a]:[]))}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return mi(o).pipe(Ba(a=>{let s=i.children[a],l=j7(e,a);return this.processSegmentGroup(n,l,s,a,r)}),zy((a,s)=>(a.push(...s),a)),ol(null),jy(),ci(a=>{if(a===null)return du(i);let s=NN(a);return DY(s),j(s)}))}processSegment(n,e,i,r,o,a,s){return mi(e).pipe(Ba(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(Ae(u=>{if(u instanceof Bm)return j(null);throw u}))),Rr(l=>!!l),Ae(l=>{if(kN(l))return xY(i,r,o)?j(new Qx):du(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return ba(i)!==a&&(a===xt||!D0(r,o,i))?du(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):du(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:u,consumedSegments:g,positionalParamSegments:v,remainingSegments:w}=PN(e,r,o);if(!l)return du(e);
8typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>EY&&(this.allowRedirects=!1));let C=new Ic(o,u,Object.freeze(N({},this.urlTree.queryParams)),this.urlTree.fragment,aN(r),ba(r),r.component??r._loadedComponent??null,r,sN(r)),S=C0(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(S.params),C.data=Object.freeze(S.data);let D=this.applyRedirects.applyRedirectCommands(g,r.redirectTo,v,C,n);return this.applyRedirects.lineralizeSegments(r,D).pipe(ci(O=>this.processSegment(n,i,e,O.concat(w),a,!1,s)))}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=_Y(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe(Qt(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(Qt(({routes:u})=>{let g=i._loadedInjector??n,{parameters:v,consumedSegments:w,remainingSegments:C}=l,S=new Ic(w,v,Object.freeze(N({},this.urlTree.queryParams)),this.urlTree.fragment,aN(i),ba(i),i.component??i._loadedComponent??null,i,sN(i)),D=C0(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(D.params),S.data=Object.freeze(D.data);let{segmentGroup:O,slicedSegments:V}=oN(e,w,C,u);if(V.length===0&&O.hasChildren())return this.processChildren(g,u,O,S).pipe(F(ie=>new go(S,ie)));if(u.length===0&&V.length===0)return j(new go(S,[]));let Q=ba(i)===o;return this.processSegment(g,u,O,V,Q?xt:o,!0,S).pipe(F(ie=>new go(S,ie instanceof go?[ie]:[])))}))):du(e)))}getChildConfig(n,e,i){return e.children?j({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?j({routes:e._loadedRoutes,injector:e._loadedInjector}):mY(n,e,i,this.urlSerializer).pipe(ci(r=>r?this.configLoader.loadChildren(n,e).pipe(jt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):gY(e))):j({routes:[],injector:n})}};function DY(t){t.sort((n,e)=>n.value.outlet===xt?-1:e.value.outlet===xt?1:n.value.outlet.localeCompare(e.value.outlet))}function TY(t){let n=t.value.routeConfig;return n&&n.path===""}function NN(t){let n=[],e=new Set;for(let i of t){if(!TY(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=NN(i.children);n.push(new go(i.value,r))}return n.filter(i=>!e.has(i))}function aN(t){return t.data||{}}function sN(t){return t.resolve||{}}function MY(t,n,e,i,r,o){return ci(a=>wY(t,n,e,i,a.extractedUrl,r,o).pipe(F(({state:s,tree:l})=>re(N({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function IY(t,n){return ci(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return j(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let u of RN(l))a.add(u);let s=0;return mi(a).pipe(Ba(l=>o.has(l)?AY(l,i,t,n):(l.data=C0(l,l.parent,t).resolve,j(void 0))),jt(()=>s++),xd(1),ci(l=>s===a.size?j(e):ht))})}function RN(t){let n=t.children.map(e=>RN(e)).flat();return[t,...n]}function AY(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!DN(r)&&(o[Vm]=r.title),kY(o,t,n,i).pipe(F(a=>(t._resolvedData=a,t.data=C0(t,t.parent,e).resolve,null)))}function kY(t,n,e,i){let r=Hx(t);if(r.length===0)return j({});let o={};return mi(r).pipe(ci(a=>OY(t[a],n,e,i).pipe(Rr(),jt(s=>{if(s instanceof vu)throw S0(new kc,s);o[a]=s}))),xd(1),F(()=>o),Ae(a=>kN(a)?ht:Nr(a)))}function OY(t,n,e,i){let r=jm(n)??i,o=Su(t,r),a=o.resolve?o.resolve(n,e):po(r,()=>o(n,e));return Cl(a)}function Lx(t){return Qt(n=>{let e=t(n);return e?mi(e).pipe(F(()=>n)):j(n)})}var tw=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===xt);return i}getResolvedTitleForRoute(e){return e.data[Vm]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:()=>d(FN),providedIn:"root"})}return t})(),FN=(()=>{class t extends tw{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(xe(YP))};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xu=new H("",{providedIn:"root",factory:()=>({})}),Um=new H(""),iw=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(P2);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return j(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Cl(e.loadComponent()).pipe(F(BN),jt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),oo(()=>{this.componentLoaders.delete(e)})),r=new gd(i,()=>new G).pipe(hd());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return j({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=LN(i,this.compiler,e,this.onLoadEndListener).pipe(oo(()=>{this.childrenLoaders.delete(i)})),a=new gd(o,()=>new G).pipe(hd());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function LN(t,n,e,i){return Cl(t.loadChildren()).pipe(F(BN),ci(r=>r instanceof FS||Array.isArray(r)?j(r):mi(n.compileModuleAsync(r))),F(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Um,[],{optional:!0,self:!0}).flat()),{routes:a.map(ew),injector:o}}))}function PY(t){return t&&typeof t=="object"&&"default"in t}function BN(t){return PY(t)?t.default:t}var T0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:()=>d(NY),providedIn:"root"})}return t})(),NY=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HN=new H("");var VN=new H(""),M0=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new G;
8transitionAbortSubject=new G;configLoader=d(iw);environmentInjector=d(hi);destroyRef=d(Vr);urlSerializer=d(yu);rootContexts=d(Cu);location=d(ks);inputBindingEnabled=d(E0,{optional:!0})!==null;titleStrategy=d(tw);options=d(xu,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(T0);createViewTransition=d(HN,{optional:!0});navigationErrorHandler=d(VN,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>j(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new m0(r)),i=r=>this.events.next(new f0(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(re(N({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i}))}setupNavigations(e){return this.transitions=new Gt(null),this.transitions.pipe(Ue(i=>i!==null),Qt(i=>{let r=!1,o=!1;return j(i).pipe(Qt(a=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Ur.SupersededByNewNavigation),ht;this.currentTransition=i,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?re(N({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&l!=="reload"){let u="";return this.events.next(new es(a.id,this.urlSerializer.serialize(a.rawUrl),u,fu.IgnoredSameUrlNavigation)),a.resolve(!1),ht}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return j(a).pipe(Qt(u=>(this.events.next(new Ja(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?ht:Promise.resolve(u))),MY(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),jt(u=>{i.targetSnapshot=u.targetSnapshot,i.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=re(N({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let g=new Pm(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(g)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:u,extractedUrl:g,source:v,restoredState:w,extras:C}=a,S=new Ja(u,this.urlSerializer.serialize(g),v,w);this.events.next(S);let D=wN(this.rootComponentType).snapshot;return this.currentTransition=i=re(N({},a),{targetSnapshot:D,urlAfterRedirects:g,extras:re(N({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,j(i)}else{let u="";return this.events.next(new es(a.id,this.urlSerializer.serialize(a.extractedUrl),u,fu.IgnoredByUrlHandlingStrategy)),a.resolve(!1),ht}}),jt(a=>{let s=new c0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),F(a=>(this.currentTransition=i=re(N({},a),{guards:Y7(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),i)),oY(this.environmentInjector,a=>this.events.next(a)),jt(a=>{if(i.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw S0(this.urlSerializer,a.guardsResult);let s=new d0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),Ue(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",Ur.GuardRejected),!1)),Lx(a=>{if(a.guards.canActivateChecks.length!==0)return j(a).pipe(jt(s=>{let l=new u0(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l)}
8),Qt(s=>{let l=!1;return j(s).pipe(IY(this.paramsInheritanceStrategy,this.environmentInjector),jt({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(s,"",Ur.NoDataFromResolver)}}))}),jt(s=>{let l=new p0(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l)}))}),Lx(a=>{let s=l=>{let u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(jt(g=>{l.component=g}),F(()=>{})));for(let g of l.children)u.push(...s(g));return u};return ra(s(a.targetSnapshot.root)).pipe(ol(null),Et(1))}),Lx(()=>this.afterPreactivation()),Qt(()=>{let{currentSnapshot:a,targetSnapshot:s}=i,l=this.createViewTransition?.(this.environmentInjector,a.root,s.root);return l?mi(l).pipe(F(()=>i)):j(i)}),F(a=>{let s=U7(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=i=re(N({},a),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,i}),jt(()=>{this.events.next(new Nm)}),q7(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),Et(1),jt({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Dn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),We(this.transitionAbortSubject.pipe(jt(a=>{throw a}))),oo(()=>{!r&&!o&&this.cancelNavigationTransition(i,"",Ur.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ae(a=>{if(this.destroyed)return i.resolve(!1),ht;if(o=!0,AN(a))this.events.next(new Za(i.id,this.urlSerializer.serialize(i.extractedUrl),a.message,a.cancellationCode)),W7(a)?this.events.next(new _u(a.url,a.navigationBehaviorOptions)):i.resolve(!1);else{let s=new hu(i.id,this.urlSerializer.serialize(i.extractedUrl),a,i.targetSnapshot??void 0);try{let l=po(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(l instanceof vu){let{message:u,cancellationCode:g}=S0(this.urlSerializer,l);this.events.next(new Za(i.id,this.urlSerializer.serialize(i.extractedUrl),u,g)),this.events.next(new _u(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(s),a}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return ht}))}))}cancelNavigationTransition(e,i,r){let o=new Za(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function RY(t){return t!==a0}var jN=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:()=>d(FY),providedIn:"root"})}return t})(),w0=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},FY=(()=>{class t extends w0{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zN=(()=>{class t{urlSerializer=d(yu);options=d(xu,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(ks);urlHandlingStrategy=d(T0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Xa;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof Xa?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=wN(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:()=>d(LY),providedIn:"root"})}return t})(),LY=(()=>{class t extends zN{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof Ja?this.updateStateMemento():e instanceof es?this.commitTransition(i):e instanceof Pm?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Nm?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Za&&(e.code===Ur.GuardRejected||e.code===Ur.NoDataFromRe
8solver)?this.restoreHistory(i):e instanceof hu?this.restoreHistory(i,!0):e instanceof Dn&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=N(N({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l)}else{let s=N(N({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function I0(t,n){t.events.pipe(Ue(e=>e instanceof Dn||e instanceof Za||e instanceof hu||e instanceof es),F(e=>e instanceof Dn||e instanceof es?0:(e instanceof Za?e.code===Ur.Redirect||e.code===Ur.SupersededByNewNavigation:!1)?2:1),Ue(e=>e!==2),Et(1)).subscribe(()=>{n()})}var BY={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},HY={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},et=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(HS);stateManager=d(zN);options=d(xu,{optional:!0})||{};pendingTasks=d(ua);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(M0);urlSerializer=d(yu);location=d(ks);urlHandlingStrategy=d(T0);_events=new G;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(jN);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Um,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(E0,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ie;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Za&&i.code!==Ur.Redirect&&i.code!==Ur.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Dn)this.navigated=!0;else if(i instanceof _u){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=N({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||RY(r.source)},a);this.scheduleNavigation(s,a0,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}jY(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),a0,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=N({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ew),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,u=l?this.currentUrlTree.fragment:a,g=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":g=N(N({},this.currentUrlTree.queryParams),o);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=o||null}g!==null&&(g=this.removeEmptyProps(g));let v;try{let w=r?r.snapshot:this.routerState.snapshot.root;v=yN(w)}
8catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root}return CN(v,e,g,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=yl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,a0,null,i)}navigate(e,i={skipLocationChange:!1}){return VY(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=N({},BY):i===!1?r=N({},HY):r=i,yl(e))return tN(this.currentUrlTree,e,r);let o=this.parseUrl(e);return tN(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((v,w)=>{s=v,l=w});let g=this.pendingTasks.add();return I0(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(v=>Promise.reject(v))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function VY(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new K(4008,!1)}function jY(t){return!(t instanceof Nm)&&!(t instanceof _u)}var Lo=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new G;constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof Dn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(yl(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:Fk(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:yl(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(ke(et),ke(Ye),rm("tabindex"),ke(It),ke(ue),ke(wc))};static \u0275dir=$({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&T("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&ce("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",pe],skipLocationChange:[2,"skipLocationChange","skipLocationChange",pe],replaceUrl:[2,"replaceUrl","replaceUrl",pe],routerLink:"routerLink"},features:[Xe]})}return t})(),$m=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new z;constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof Dn&&this.update()})}ngAfterContentInit(){j(this.links.changes,j(null)).pipe(La()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=mi(e).pipe(La()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();
8this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let i=zY(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(ke(et),ke(ue),ke(It),ke(Je),ke(Lo,8))};static \u0275dir=$({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&Kt(o,Lo,5),i&2){let a;se(a=le())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Xe]})}return t})();function zY(t){return!!t.paths}var Gm=class{},nw=(()=>{class t{preload(e,i){return i().pipe(Ae(()=>j(null)))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var UN=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Ue(e=>e instanceof Dn),Ba(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=tu(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return mi(r).pipe(La())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=j(null);let o=r.pipe(ci(a=>a===null?j(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return mi([o,a]).pipe(La())}else return o})}static \u0275fac=function(i){return new(i||t)(xe(et),xe(hi),xe(Gm),xe(iw))};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GN=new H(""),UY=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ja?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Dn?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof es&&e.code===fu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof gu&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new gu(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){y_()};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})();function rw(t,...n){return $a([{provide:Um,multi:!0,useValue:t},[],{provide:Ye,useFactory:GY,deps:[et]},{provide:Sc,multi:!0,useFactory:$Y},n.map(e=>e.\u0275providers)])}function GY(t){return t.routerState.root}function A0(t,n){return{\u0275kind:t,\u0275providers:n}}function ow(t={}){return A0(4,[{provide:GN,useFactory:()=>{let e=d(SP),i=d(de),r=d(M0),o=d(yu);return new UY(o,r,e,i,t)}}])}function $Y(){let t=d(Ne);return n=>{let e=t.get(Ui);if(n!==e.components[0])return;let i=t.get(et),r=t.get($N);t.get(WN)===1&&i.initialNavigation(),t.get(qN,null,Dt.Optional)?.setUpPreloading(),t.get(GN,null,Dt.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var $N=new H("",{factory:()=>new G}),WN=new H("",{providedIn:"root",factory:()=>1});function aw(){let t=[{provide:WN,useValue:0},Cc(()=>{let n=d(Ne);return n.get(ZS,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(et),o=n.get($N);I0(r,()=>{i(!0)}),n.get(M0).afterPreactivation=()=>(i(!0),o.closed?j(void 0):o),r.initialNavigation()}))})];return A0(2,t)}var qN=new H("");function sw(t){return A0(0,[{provide:qN,useExisting:UN},{provide:Gm,useExisting:t}])}function lw(t){return A0(5,[{provide:xu,useValue:t}])}var Rn=Object.freeze({CACHE_TIME_BASE_DATA:1800,USE_LANDING_PAGE:1,USE_BREADCRUMB:0,PUBLICATION:"NCRV"});var vt=(()=>{class t{constructor(){this.http=d(Be),this.baseData=[]}getBaseData(e){return this.baseData[e]}loadBaseData(e){if(this.baseData[e])return j(this.baseData[e]);let i=JSON.parse(localStorage.getItem("baseData_"+e));return i&&new Date(i.expirationDate)>new Date?(Array.isArray(i.data)?this.baseData[e]=i.data:this.baseData[e]=[i.data],j(this.baseData[e])):this.http.get("/webabo/basedata/"+e).pi
8pe(F(r=>{this.baseData[e]=r;let o=new Date;return o.setSeconds(o.getSeconds()+Rn.CACHE_TIME_BASE_DATA),localStorage.setItem("baseData_"+e,JSON.stringify({expirationDate:o,data:r})),this.baseData[e]}),Ae(r=>(console.log(r),ht)))}loadComplaintCodes(e){return this.http.get("/webabo/basedata/"+e).pipe(F(i=>i),Ae(i=>(console.log(i),ht)))}handleAddress(e){e&&this.loadBaseData("countrycodes").subscribe(i=>{i.forEach(r=>{r.key===e.country&&(e.countryDescription=r.description)})})}handlePerson(e){e&&(this.loadBaseData("titles").subscribe(i=>{i.forEach(r=>{r.key===e.title&&(e.titleDescription=r.description)})}),e.titleDescription||(e.titleDescription=""),this.loadBaseData("clienttypes").subscribe(i=>{i.forEach(r=>{r.key===e.salutation&&(e.salutationDescription=r.description,e.addressCode||(e.addressCode=r.defaultAddressCodeId))})}),this.loadBaseData("addresscodes").subscribe(i=>{i.forEach(r=>{r.key===e.addressCode&&(e.addressCodeDescription=r.description,e.salutation||(e.salutation=r.defaultClientTypeKey))})}))}handleComplaint(e){e&&this.loadBaseData("complaintgroupcodes/"+e.reasongroup+"/complaintreasons").subscribe(i=>{i.forEach(r=>{(r.key===e.reason||r.key===e.type)&&(e.reasonBaseData=r)})})}handleUnauthorizedOrder(e){e&&this.addVariantToSubscription(e).then(i=>{this.addProductCodeToSubscription(e).then()})}addProductCodeToSubscription(e){return li(this,null,function*(){this.loadBaseData("products").subscribe(i=>{i.forEach(r=>{if(r.key===e.productCode)return e.product=r,Promise.resolve()})})})}addVariantToSubscription(e){return li(this,null,function*(){this.loadBaseData("variantcode/"+e.variantCode).subscribe(i=>(e.variant=i,Promise.resolve()))})}getVariantCode(e){return this.http.get("/webabo/basedata/variantcode/"+e).pipe(F(i=>i),Ae(i=>(console.log(i),ht)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pc=class t{constructor(n,e){this.validFrom=n,this.validUntil=e}static cutTimeOfDate(n){return n.setSeconds(0),n.setMinutes(0),n.setHours(0),n}static isEndless(n){let e=t.cutTimeOfDate(new Date("2999-01-01"));return n=t.cutTimeOfDate(new Date(n)),e.getTime()===n.getTime()}};var Fn=function(t){return t.BEGIN_CHECKOUT="begin_checkout",t.ADDED_ADDRESSES="add_shipping_info",t.ADDED_PAYMENT="add_payment_info",t.CALCULATED_PRICE="price_calculated",t.PURCHASED="purchase",t.SITE_NAVIGATION="navigation",t}(Fn||{});var k0,WY=new Uint8Array(16);function cw(){if(!k0&&(k0=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!k0))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k0(WY)}var YN=/^(?:[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;function qY(t){return typeof t=="string"&&YN.test(t)}var KN=qY;var Qn=[];for(O0=0;O0<256;++O0)Qn.push((O0+256).toString(16).substr(1));var O0;function YY(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(Qn[t[n+0]]+Qn[t[n+1]]+Qn[t[n+2]]+Qn[t[n+3]]+"-"+Qn[t[n+4]]+Qn[t[n+5]]+"-"+Qn[t[n+6]]+Qn[t[n+7]]+"-"+Qn[t[n+8]]+Qn[t[n+9]]+"-"+Qn[t[n+10]]+Qn[t[n+11]]+Qn[t[n+12]]+Qn[t[n+13]]+Qn[t[n+14]]+Qn[t[n+15]]).toLowerCase();if(!KN(e))throw TypeError("Stringified UUID is invalid");return e}var QN=YY;function KY(t,n,e){t=t||{};var i=t.random||(t.rng||cw)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,n){e=e||0;for(var r=0;r<16;++r)n[e+r]=i[r];return n}return QN(i)}var Wm=KY;var P0=class{};var Gr=(()=>{class t{constructor(){this.http=d(Be),this.platformId=d(Qe),this.datePipe=d(Le),this.injector=d(Ne)}pushEvent(e,i){if(nt(this.platformId)&&typeof dataLayer=="object"&&"push"in dataLayer&&typeof dataLayer.push=="function"){let r=N({},i.body??i);delete r.registerPassword,delete r.deliveryAddress,delete r.billingAddress,delete r.bonusAddress,delete r.payment,delete r.billingAddressList,delete r.deliveryAddressList,delete r.paymentList,delete r.email,delete r.selectedGiftList,delete r.additionalData,this.loginService||(this.loginService=this.injector.get(ft)),this.loginService.getUserData().subscribe(a=>{a.userSSOId&&(r.userSSOId=a.userSSOId)});let o={event:e,objectData:JSON.stringify(r)};dataLayer.push(o)}if(e!==Fn.SITE_NAVIGATION){let r=[],o=N({},i.body??i);
8if(Array.isArray(o)?(o.forEach(a=>delete a.registerPassword),r=o):(delete o.registerPassword,r.push(o)),nt(this.platformId))try{let a=new P0;a.ts=this.datePipe.transform(Date(),"yyyy-MM-dd HH:mm:ss"),a.transactionId=this.transactionId,a.eventType=e?.toString()?.toUpperCase(),a.eventData=r,this.http.post("webabo/tracking/orderevent",a).subscribe(s=>s)}catch(a){console.error("Error while saving tracking: "+a)}}}generateTransactionId(){this.transactionId=Wm()}getTransactionId(){return this.transactionId}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ct=(()=>{class t{constructor(){this.http=d(Be),this.baseDataService=d(vt),this.datePipe=d(Le),this.orderTrackingService=d(Gr),this.products=[],this.subToPrice=new Map,this.loadedAll=!1,this.subs=[],this.subsWithTerminated=[]}static{this.COOKIE_NAME="webabo-subscription-cookie"}getSubscriptionsAlsoTerminated(){let e=new Date().getTime();return this.http.get("/webabo/subscriptionsAlsoTerminated?"+e).pipe(F(i=>(i.forEach(r=>{this.handleSubscription(r)}),this.subsWithTerminated=i,this.subsWithTerminated)))}getSubscriptionsGroupedAlsoTerminated(){let e=new Date().getTime();return this.http.get("/webabo/subscriptionsForOverviewAlsoTerminated?"+e).pipe(F(i=>(i.forEach(r=>{this.handleSubscription(r)}),this.subsWithTerminated=i,this.subsWithTerminated)))}getSubscriptions(e=!1){let i=new Date().getTime();return this.http.get("/webabo/subscriptions?"+i,{params:{onlyRevocable:e}}).pipe(F(r=>(this.loadedAll=!0,r.forEach(o=>{this.handleSubscription(o)}),this.subs=r,this.subs)))}getSubscriptionsUnauthorized(e){return this.http.get("/webabo/subscriptions/unauthorized?userBackendId="+e).pipe(F(i=>(i.forEach(r=>{r.userBackendId=e,this.handleSubscription(r)}),i)))}getSubscription(e,i){let r=new Date().getTime();return this.http.get("/webabo/subscriptions/"+e,{params:{backendId:i,salt:r}}).pipe(F(o=>(o=o instanceof Array?o[0]:o,this.handleSubscription(o),this.subs.push(o),o)))}getSubscriptionForDetail(e,i){let r=new Date().getTime();return this.http.get("/webabo/subscriptions/"+e+"/aggregated",{params:{backendId:i,salt:r}}).pipe(F(o=>(o=o instanceof Array?o[0]:o,this.handleSubscription(o),o.sequelSubscriptions?.forEach(a=>{this.handleSubscription(a),a.combiSubscriptionList?.forEach(s=>{this.handleSubscription(s)})}),o.combiSubscriptionList?.forEach(a=>{this.handleSubscription(a)}),o)))}getDelayMessages(e){return this.http.get("/webabo/subscriptions/"+e+"/delaymessages").pipe(F(i=>i))}handleSubscription(e){this.handleState(e);let i=this.baseDataService.getBaseData("products");!i||i.length==0?this.baseDataService.loadBaseData("products").subscribe(r=>{this.handleProducts(r,e)}):this.handleProducts(i,e),e.offer?(e.readOnly=!e.offer||e.offer.price===0||e.state>=2,e?.offer?.product?.productCode&&(e.productCode=e.offer.product.productCode,this.handleProducts(i,e))):e.subscriptionStatus=="EXISTING"&&this.handleProducts(i,e),e.validDate.validFrom=new Date(e.validDate.validFrom),Pc.isEndless(e.validDate.validUntil)||e.validDate.validUntil==null?e.validDate.validUntil=null:e.validDate.validUntil=new Date(e.validDate.validUntil),this.baseDataService.loadBaseData("variantcode/"+e.variantCode).subscribe(r=>{r&&(r.length>0?e.variantDescription=r[0].description:e.variantDescription=r.description)}),this.setCurrentFromList(e,"curPayment",e.paymentList),this.setCurrentFromList(e,"curDelivery",e.deliveryAddressList),this.setCurrentFromList(e,"curBilling",e.billingAddressList),e.subId=e.backendId}handleState(e){let i=new Date,r=new Date(e.validDate.validFrom),o=new Date(e.validDate.validUntil);e.webId>0?e.state=-1:r<=i&&o>=i?e.state=0:o<i?e.state=3:r>i&&(e.state=1)}handleProducts(e,i){if(e){for(let r of e)if(r.key===i.productCode){i.productDescription=r.description;break}}}setCurrentFromList(e,i,r){let o=new Date;for(let a of r)if(a.validDate&&a.validDate.validFrom){let s=new Date("2999-01-01");if(a.validDate.validUntil&&(s=new Date(a.validDate.validUntil)),s>=o){a.person&&a.address&&(this.baseDataService.handleAddress(a.address),this.baseDataService.handlePerson(a.person)),e[i]=a;return}}else e[i]=a}sendOrder(e){let i=new ur({"x-transaction-id":this.orderTrackingService.transactionId});return this.http.post("/webabo/subscriptions",e,{headers:i}).pipe(F(r=>(this.resetData(),r)))}sendOrderUnauthorized(e){let i=new ur({"x-transaction-id":this.orderTrackingService.transactionId});return this.http.post("/webabo/subscriptions/unauthorized",e,{headers:i,observe:"response"}).pipe(F(r=>{this.resetData();let o={body:r.body};return r.headers.get("x-otlc").length&&(o.otlc=r.headers.get("x-otlc")),o}))}captureAuthorizedOrder(e){return this.http.post("webabo/payment/"+e+"capture",{})}plausiCheck(e){return this.http.post("/webabo/subscriptions/plausi",e).pipe(F(i=>i))}sendSubPaymentEdit(e,i,r){let o="/webabo/subscriptions/"+e+"/payments/"+i;return this.http.patch(o,r,{headers:{"Content-Type":"application/merge-patch+json"}}).pipe(F(()=>{this.resetData()}))}getNextDeliveryDate(e,i){return this.http.get("/webabo/subscriptions/unauthorized/next-delivery-date?productC
8ode="+e+"&variantCode="+i).pipe(F(r=>new Date(r)))}getPriceForSubscription(e){return this.http.post("/webabo/subscriptions/prices",e).pipe(F(i=>i),Ae(i=>Nr(i)))}resetData(){this.loadedAll=!1,this.subs=[],this.subsWithTerminated=[]}getTerminationDateOfSubscription(e,i){let r="/webabo/subscriptions/unauthorized/next-termination-date?backendId="+e+"&reason="+i;return this.http.get(r).pipe(F(o=>o))}terminateSubscription(e,i,r,o){let a="/webabo/subscriptions/"+e+"?backendId="+i+"&reason="+r+"&terminationDate="+this.datePipe.transform(o,"yyyy-MM-dd");return this.http.delete(a).pipe(F(s=>(this.resetData(),s)))}startBuckarooPaymentTransaction(e){let i="/webabo/buckaroo?amount="+e.amount+"&invoice="+e.invoiceText+"&wssId="+e.wssId;return this.http.post(i,JSON.stringify(e.orderObject)).pipe(F(r=>r))}createPayPalOrder(e){return this.http.post("/webabo/subscriptions/orders",e).pipe(F(i=>i))}authorizePayPalOrder(e){return this.http.post(`/webabo/subscriptions/${e}/authorize`,{}).pipe(F(i=>i))}getCustomerUnauthorized(e){let i="/webabo/users/unauthorized/"+e;return this.http.get(i).pipe(F(r=>r),Ae(r=>j(null)))}fillCustomerUnauthorized(e){return this.http.post("/webabo/users/searchAndFill?strictSearch=false",e).pipe(F(r=>r),Ae(r=>j(null)))}getNextChangeDate(e){let i="/webabo/subscriptions/"+e+"next-change-date";return this.http.get(i).pipe(F(r=>r),Ae(r=>j(null)))}getAllowedPaymentsForSub(e){let i="/webabo/subscriptions/"+e+"/allowed-payments";return this.http.get(i).pipe(F(r=>r),Ae(r=>j(null)))}setPriceForKey(e,i){this.subToPrice.set(e,i)}getPriceForKey(e){let i=this.subToPrice.get(e)??[];return this.subToPrice.delete(e),i}checkIfCurrentProductAlreadyOrdered(e,i,r){return this.http.post("webabo/subscriptions/has-product",{userBackendId:e,productCode:i,orderStartDate:r}).pipe(F(o=>o))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wu=(()=>{class t{constructor(){this.http=d(Be),this.datePipe=d(Le),this.loadedAll=!1,this.complaints=[],this.errorMsgs=[]}getComplaints(){if(this.loadedAll)return j(this.complaints);{this.complaints=[];let e=new Date().getTime();return this.http.get("/webabo/complaints?"+e).pipe(F(i=>(this.loadedAll=!0,i?.forEach(r=>{let o=JSON.parse(JSON.stringify(r));r=re(N({},r),{compensations:o.compensation}),this.complaints.push(r)}),this.complaints)),Ae(i=>(console.log(i),ht)))}}getComplaint(e,i){for(let r of this.complaints)if(r.webId===e&&r.backendId===i)return j(r);return this.http.get("/webabo/complaints/"+e).pipe(F(r=>(this.complaints.push(r),r)),Ae(r=>(console.log(r),ht)))}getComplaintByString(e,i){return this.getComplaint(Number(e),Number(i))}sendComplaint(e){return this.http.post("/webabo/complaints",e).pipe(F(()=>{this.loadedAll=!1}),Ae(i=>{throw console.log(i),i}))}sendUnauthorizedComplaint(e){return this.http.post("/webabo/complaints/unauthorized",e).pipe(F(()=>{}),Ae(i=>{throw console.log(i),i}))}getDueDates(e,i){return this.http.get("/webabo/complaints/v2/due-dates?subId="+e+"&complaintReason="+i).pipe(Ae(r=>(console.log(r),ht)))}findAllComplaintActionsForParams(e,i,r){let o=new Date(r);return this.http.get("/webabo/complaints/actions?subId="+e+"&complaintReason="+i+"&publicationDate="+this.datePipe.transform(o,"yyyy-MM-dd")).pipe(Ae(a=>(console.log(a),ht)))}getPriceForComplaint(e){return this.http.post("/webabo/complaints/prices",e).pipe(F(i=>i),Ae(i=>(console.log(i),ht)))}setErrorMessages(e){return this.errorMsgs=e,j(!0)}consumeErrorMessages(){let e=this.errorMsgs;return this.errorMsgs=[],j(e)}resetData(){this.loadedAll=!1,this.complaints=[],this.errorMsgs=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Eu=(()=>{class t{constructor(){this.http=d(Be),this.baseDataService=d(vt),this.moves=[],this.loadedAll=!1}getMoves(){if(this.loadedAll)return j(this.moves);{let e=new Date().getTime();return this.http.get("/webabo/moves?"+e).pipe(F(i=>(this.loadedAll=!0,i.forEach(r=>{this.handleMove(r)}),this.moves)))}}checkMove(e){return this.http.post("/webabo/moves/prices",e)}sendMove(e){return this.http.post("/webabo/moves",e).pipe(F(i=>(this.loadedAll=!1,this.resetData(),i)))}resetData(){this.loadedAll=!1,this.moves=[]}getUser(){return this.http.get("/webabo/users/paradise").pipe(F(e=>e),Ae(e=>(console.error("getUser: ",e.message),j(null))))}handleMove(e){if(e.webId>0){let i=Pc.cutTimeOfDate(new Date(e.validDate.validFrom)),r=Pc.cutTimeOfDate(new Date);i&&i.getDate()>=r.getDate()&&(this.baseDataService.handleAddress(e.address),this.baseDataService.handlePerson(e.person),this.moves.push(e))}}checkMovesPossibility(e){return this.http.get("/webabo/moves/possibility/"+e).pi
8pe(F(i=>i))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $r=(()=>{class t{constructor(){this.http=d(Be),this.platformId=d(Qe),this.loadedAll=!1,this.payments=[],this.paymentMethods=new Map}getPayment(e,i){for(let r of this.payments)if(r.webId===+e&&r.backendId===+i)return j(r);return this.http.get("/webabo/bank/"+e,{params:{backendId:i}}).pipe(F(r=>(this.payments.push(r),r)))}getPayments(){if(this.loadedAll)return j(this.payments);let e=new Date().getTime();return this.http.get("/webabo/bank?"+e).pipe(F(i=>(this.loadedAll=!0,i=this.handlePayments(i),this.payments=i,this.payments)))}sendPaymentEdit(e){return this.http.post("/webabo/bank",e).pipe(F(()=>{this.resetData()}))}handlePayments(e){let i=[];return e.forEach(r=>{if(r.webId&&r.webId>0){let o=i.findIndex(a=>a.backendId===r.backendId);o!==-1&&(i[o]=r)}else i.push(r)}),i}getPaymentMethodByCode(e){return this.paymentMethods.has(e)?j(this.paymentMethods.get(e)):this.http.get("/webabo/basedata/paymentmethods/"+e+"/full").pipe(F(i=>(this.paymentMethods.set(e,i),i)))}resetData(){this.loadedAll=!1,this.payments=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var N0=class t{static of(n){if(n){let e=new t;return e.token=n.token??"",e.timeToLive=n.timeToLive??0,e.refreshToken=n.refreshToken??0,e.expiration_date=n.expiration_date??new Date,e.code=n.code??"",e}else return null}};var R0=new H("REQUEST"),ZN=new H("RESPONSE");var Ln=(()=>{class t{constructor(){this.router=d(et),this.platformId=d(Qe),this.response=d(ZN,{optional:!0})}redirect(e,i=!1,r=!1){let o=/^https?:\/\//i.test(e);if((o||i)&&nt(this.platformId)){let s=o?e:"https://"+e;r?window.open(s,"_blank"):window.location.href=s;return}this.router.navigateByUrl(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Wr=(()=>{class t{addAltText(e,i){return e&&(e.altText=i),e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ai=(()=>{class t{constructor(){this.platformId=d(Qe),this.request=d(R0,{optional:!0})}loadVhosts(){let e;return this._vHost?e=j():e=this.fetchvHost().pipe(F(i=>i),jt(i=>(this._vHost=i,null)),Ae(i=>(console.log(i),j()))),e}fetchvHost(){let e;return Ka(this.platformId)&&this.request?e=this.request.vHost:e=vHost,e?j(e):(console.log("WAS TUN?"),j(null))}get vHost(){return this._vHost}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Y=(()=>{class t{constructor(){this.vHostService=d(Ai)}getTranslation(e){let i=this.vHostService.vHost;return typeof i<"u"&&i&&i.translation?i.translation[e]?i.translation[e]:"":"["+e+"]"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qm=class t{constructor(n,e){this.key=n,this.value=e}asBoolean(){if(this.value==="true"||this.value==="1")return!0;if(this.value==="false"||this.value==="0")return!1;console.warn(`invalid boolean value '${this.value}' for config key '${this.key}'`)}static clone(n){return new t(n.key,n.value)}};var Du=(()=>{class t{constructor(){this.defaultCountry=""}getDefaultCountry(){return this.defaultCountry??""}setDefaultCountry(e){this.defaultCountry=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var QY=["mat-internal-form-field",""],ZY=["*"],F0=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:QY,ngContentSelectors:ZY,decls:1,vars:0,template:function(i,r){i&1&&(_t(),Ve(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}
8.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 .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} 9`],encapsulation:2,changeDetection:0})}return t})();function Ym(t){return t.buttons===0||t.detail===0}function Km(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}var dw;function XN(){if(dw==null){let t=typeof document<"u"?document.head:null;dw=!!(t&&(t.createShadowRoot||t.attachShadow))}return dw}function uw(t){if(XN()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function qr(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Zn(t){return t.composedPath?t.composedPath()[0]:t.target}function $i(t,n,e,i,r){let o=parseInt(YS.major),a=parseInt(YS.minor);return o>19||o===19&&a>0||o===0&&a===0?t.listen(n,e,i,r):(n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)})}var pw;try{pw=typeof Intl<"u"&&Intl.v8BreakIterator}catch{pw=!1}var wt=(()=>{class t{_platformId=d(Qe);isBrowser=this._platformId?nt(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||pw)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qm;function JN(){if(Qm==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Qm=!0}))}finally{Qm=Qm||!1}return Qm}function Sl(t){return JN()?t:!!t.capture}function ya(t,n=0){return eR(t)?Number(t):arguments.length===2?n:0}function eR(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function vo(t){return t instanceof ue?t.nativeElement:t}var tR=new H("cdk-input-modality-detector-options"),iR={ignoreKeys:[18,17,224,91,16]},nR=650,mw={passive:!0,capture:!0},rR=(()=>{class t{_platform=d(wt);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Gt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>
vendor: 6,921 bytes, line 9
9i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Zn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<nR||(this._modality.next(Ym(e)?"keyboard":"mouse"),this._mostRecentTarget=Zn(e))};_onTouchstart=e=>{if(Km(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Zn(e)};constructor(){let e=d(de),i=d(Se),r=d(tR,{optional:!0});if(this._options=N(N({},iR),r),this.modalityDetected=this._modality.pipe(wd(1)),this.modalityChanged=this.modalityDetected.pipe(rr()),this._platform.isBrowser){let o=d(Ji).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[$i(o,i,"keydown",this._onKeydown,mw),$i(o,i,"mousedown",this._onMousedown,mw),$i(o,i,"touchstart",this._onTouchstart,mw)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zm=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Zm||{}),oR=new H("cdk-focus-monitor-default-options"),L0=Sl({passive:!0,capture:!0}),Yr=(()=>{class t{_ngZone=d(de);_platform=d(wt);_inputModalityDetector=d(rR);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=d(Se,{optional:!0});_stopInputModalityDetector=new G;constructor(){let e=d(oR,{optional:!0});this._detectionMode=e?.detectionMode||Zm.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Zn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=vo(e);if(!this._platform.isBrowser||r.nodeType!==1)return j();let o=uw(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new G,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=vo(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=vo(e),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Zm.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Zm.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?nR:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Zn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,L0)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(We(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,L0),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,L0),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a<o.length;a++)if(o[a].contains(i))return!0}return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),B0=(()=>{class t{_elementRef=d(ue);_focusMonitor=d(Yr);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new z;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var H0=new WeakMap,pi=(()=>{class t{_appRef;_injector=d(Ne);_environmentInjector=d(hi);load(e){let i=this._appRef=this._appRef||this._injector.get(Ui),r=H0.get(i);r||(r={loaders:new Set,refs:[]},H0.set(i,r),i.onDestroy(()=>
9{H0.get(i)?.refs.forEach(o=>o.destroy()),H0.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(gl(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Bo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} 10`],encapsulation:2,changeDetection:0})}return t})();function Tu(t){return Array.isArray(t)?t:[t]}var aR=new Set,Nc,lR=(()=>{class t{_platform=d(wt);_nonce=d(om,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):JY}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&XY(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function XY(t,n){if(!aR.has(t))try{Nc||(Nc=document.createElement("style"),n&&Nc.setAttribute("nonce",n),Nc.setAttribute("type","text/css"),document.head.appendChild(Nc)),Nc.sheet&&(Nc.sheet.insertRule(`@media ${t} {body{ }}`,0),aR.add(t))}catch(e){console.error(e)}}function JY(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Ca=(()=>{class t{_mediaMatcher=d(lR);_zone=d(de);_queries=new Map;_destroySubject=new G;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return sR(Tu(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=sR(Tu(e)).map(a=>this._registerQuery(a).observable),o=ra(r);return o=ko(o.pipe(Et(1)),o.pipe(wd(1),rl(0))),o.pipe(F(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new je(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(Yt(i),F(({matches:a})=>({query:e,matches:a})),We(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sR(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var eK=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var V0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({providers:[eK]})}return t})();var gw=(()=>{class t{_platform=d(wt);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return iK(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=tK(dK(e));if(i&&(cR(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=cR(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!lK(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return cK(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tK(t){try{return t.frameElement}catch{return null}}function iK(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function nK(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function rK(t){return aK(t)&&t.type=="hidden"}function oK(t){return sK(t)&&t.hasAttribute("href")}function aK(t){return t.nodeName.toLowerCase()=="input"}function sK(t){return t.nodeName.toLowerCase()=="a"}function pR(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function cR(t){if(!pR(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function lK(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function cK(t){return rK(t)?!1:nK(t)||oK(t)||t.hasAttribute("contenteditable")||pR(t)}function dK(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var hw=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_enabled=!0;constructor(n,e,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(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(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=0;i<e.length;i++){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=e.length-1;i>=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?Ti(n,{injector:this._injector}):setTimeout(n)}},j0=(()=>{class t{_checker=d(gw);_ngZone=d(de);_document=d(Se);_injector=d(Ne);constructor(){d(pi).load(Bo)}create(e,i=!1){return new hw(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_w=(()=>{class t{_elementRef=d(ue);_focusTrapFactory=d(j0);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){d(wt).isBrowser&&(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&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=qr(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",pe],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",pe]},exportAs:["cdkTrapFocus"],features:[Xe]})}return t})(),mR=new H("liveAnnouncerElement",{providedIn:"root",factory:fR});function fR(){return null}var hR=new H("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),uK=0,Xm=(()=>{class t{_ngZone=d(de);_defaultOptions=d(hR,{optional:!0});_liveElement;_document=d(Se);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=d(mR,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<i.length;o++)i[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${uK++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){let o=i[r],a=o.getAttribute("aria-owns");a?a.indexOf(e)===-1&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var xl=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(xl||{}),dR="cdk-high-contrast-black-on-white",uR="cdk-high-contrast-white-on-black",fw="cdk-high-contrast-active",z0=(()=>{class t{_platform=d(wt);_hasCheckedHighContrastMode;_document=d(Se);_breakpointSubscription;constructor(){this._breakpointSubscription=d(Ca).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasse
vendor: 5,146 bytes, line 10
10s())})}getHighContrastMode(){if(!this._platform.isBrowser)return xl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return xl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return xl.BLACK_ON_WHITE}return xl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(fw,dR,uR),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===xl.BLACK_ON_WHITE?e.add(fw,dR):i===xl.WHITE_ON_BLACK&&e.add(fw,uR)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jm=(()=>{class t{constructor(){d(z0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[V0]})}return t})();var vw={},Mt=(()=>{class t{_appId=d(so);getId(e){return this._appId!=="ng"&&(e+=this._appId),vw.hasOwnProperty(e)||(vw[e]=0),`${e}${vw[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pK=200,U0=class{_letterKeyStream=new G;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new G;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:pK;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(jt(e=>this._pressedLetters.push(e)),rl(n),Ue(()=>this._pressedLetters.length>0),F(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let r=(this._selectedItemIndex+i)%this._items.length,o=this._items[r];if(!this._skipPredicateFn?.(o)&&o.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(o);break}}this._pressedLetters=[]})}};function oi(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Mu=class{_items;_activeItemIndex=-1;_activeItem=ee(null);_wrap=!1;_typeaheadSubscription=Ie.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof uo?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):fl(n)&&(this._effectRef=qa(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new G;change=new G;skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new U0(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){let e=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>
100?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o<a?o:a-1,-1);break}else return;default:(r||oi(n,"shiftKey"))&&this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){let e=this._getItemsArray(),i=typeof n=="number"?n:e.indexOf(n),r=e[i];this._activeItem.set(r??null),this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let r=(this._activeItemIndex+n*i+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){let i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(n+=e,!i[n])return;this.setActiveItem(n)}}_getItemsArray(){return fl(this._items)?this._items():this._items instanceof uo?this._items.toArray():this._items}_itemsChanged(n){this._typeahead?.setItems(n);let e=this._activeItem();if(e){let i=n.indexOf(e);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}};var Rc=class extends Mu{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var Fc=class extends Mu{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var bR=" ";function Iu(t,n,e){let i=q0(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(bR)))}function wl(t,n,e){let i=q0(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(bR)):t.removeAttribute(n)}function q0(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var yR="cdk-describedby-message",W0="cdk-describedby-host",yw=0,CR=(()=>{class t{_platform=d(wt);_document=d(Se);_messageRegistry=new Map;_messagesContainer=null;_id=`${yw++}`;constructor(){d(pi).load(Bo),this._id=d(so)+"-"+yw++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=bw(i,r);typeof i!="string"?(vR(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=bw(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${W0}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(W0);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){let r=this._document.createElement("div");vR(r,this._id),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(bw(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let o=0;o<i.length;o++)i[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(e){let i=q0(e,"aria-describedby").filter(r=>r.indexOf(yR)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Iu(e,"aria-describedby",r.messageElement.id),e.setAttribute(W0,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,wl(e,"aria-describedby",r.messageElement.id),e.removeAttribute(W0)}_isElementDescribedByMessage(e,i){let r=q0(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}
10_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bw(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function vR(t,n){t.id||(t.id=`${yR}-${n}-${yw++}`)}var mK=new H("cdk-dir-doc",{providedIn:"root",factory:fK});function fK(){return d(Se)}var hK=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function SR(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?hK.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var ki=(()=>{class t{value="ltr";change=new z;constructor(){let e=d(mK,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=SR(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var El=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({})}return t})();var Kr=(()=>{class t{constructor(){d(z0)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[El,El]})}return t})();var Dl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var Cw=new H("MAT_DATE_LOCALE",{providedIn:"root",factory:gK});function gK(){return d(ha)}var Au="Method not implemented",qt=class{locale;_localeChanges=new G;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(Au)}getHours(n){throw new Error(Au)}getMinutes(n){throw new Error(Au)}getSeconds(n){throw new Error(Au)}parseTime(n,e){throw new Error(Au)}addSeconds(n,e){throw new Error(Au)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},Vo=new H("mat-date-formats");var Ls=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} 11`],encapsulation:2,changeDetection:0})}return t})();var xa=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(xa||{}),Y0,Lc;function K0(){if(Lc==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Lc=!1,Lc;if("scrollBehavior"in document.documentElement.style)Lc=!0;else{let t=Element.prototype.scrollTo;t?Lc=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Lc=!1}}return Lc}function ku(){if(typeof document!="object"||!document)return xa.NORMAL;if(Y0==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),Y0=xa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Y
110=t.scrollLeft===0?xa.NEGATED:xa.INVERTED),t.remove()}return Y0}function Sw(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Ou,xR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function xw(){if(Ou)return Ou;if(typeof document!="object"||!document)return Ou=new Set(xR),Ou;let t=document.createElement("input");return Ou=new Set(xR.filter(n=>(t.setAttribute("type",n),t.type===n))),Ou}function bo(t){return t!=null&&`${t}`!="false"}function nn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function wR(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}var jo=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(jo||{}),ww=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=jo.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},ER=Sl({passive:!0,capture:!0}),Ew=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,ER)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,ER)))}_delegateEventHandler=n=>{let e=Zn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},nf={enterDuration:225,exitDuration:150},_K=800,DR=Sl({passive:!0,capture:!0}),TR=["mousedown","touchstart"],MR=["mouseup","mouseleave","touchend","touchcancel"],vK=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} 12`],encapsulation:2,changeDetection:0})}return t})(),rf=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Ew;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=vo(i)),o&&o.get(pi).load(vK)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=N(N({},nf),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||bK(n,e,r),s=n-r.left,l=e-r.top,u=o.enterDuration,g=document.createElement("div");g.classList.add("mat-ripple-element"),g.style.left=`${s-a}px`,g.style.top=`${l-a}px`,g.style.height=`${a*2}px`,g.style.width=`${a*2}px`,i.color!=null&&(g.style.backgroundColor=i.color),g.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(g);let v=window.getComputedStyle(g),w=v.transitionProperty,C=v.transitionDuration,S=w==="none"||C==="0s"||C==="0s, 0s"||r.width===0&&r.height===0,D=new ww(this,g,i,S);g.style.transform="scale3d(1, 1, 1)",D.state=jo.FADING_IN,i.persistent||(this._mostRecentTransientRipple=D);let O=null;return!S&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let V=()=>{O&&(O.fallbackTimer=null),clearTimeout(ie),this._finishRippleTransition(D)},Q=()=>this._destroyRipple(D),ie=setTimeout(Q,u+100);g.addEventListener("transitionend",V),g.addEventListener("transitioncancel",Q),O={onTransitionEnd:V,onTransitionCancel:Q,fallbackTimer:ie}}),this._activeRipples.set(D,O),(S||!u)&&this._finishRippleTransition(D),D}fadeOutRipple(n){if(n.state===jo.FADING_OUT||n.state===jo.HIDDEN)return;let e=n.element,i=N(N({},nf),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=jo.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}
vendor: 8,364 bytes, line 12
12fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=vo(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,TR.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{MR.forEach(e=>{this._triggerElement.addEventListener(e,this,DR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===jo.FADING_IN?this._startFadeOutTransition(n):n.state===jo.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=jo.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=jo.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=Ym(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+_K;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!Km(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=n.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{let e=n.state===jo.VISIBLE||n.config.terminateOnPointerUp&&n.state===jo.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(TR.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(MR.forEach(e=>n.removeEventListener(e,this,DR)),this._pointerUpEventsRegistered=!1))}};function bK(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Dw=new H("mat-ripple-global-options"),Tl=(()=>{class t{_elementRef=d(ue);_animationMode=d(zt,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=d(de),i=d(wt),r=d(Dw,{optional:!0}),o=d(Ne);this._globalOptions=r||{},this._rippleRenderer=new rf(this,e,this._elementRef,i,o)}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:N(N(N({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,N(N({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,N(N({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})();var IR=(()=>{class t{_animationMode=d(zt,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&fe("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},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-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;
12height: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} 13`],encapsulation:2,changeDetection:0})}return t})();var yK=["text"],CK=[[["mat-icon"]],"*"],SK=["mat-icon","*"];function xK(t,n){if(t&1&&_(0,"mat-pseudo-checkbox",1),t&2){let e=h();f("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function wK(t,n){if(t&1&&_(0,"mat-pseudo-checkbox",3),t&2){let e=h();f("disabled",e.disabled)}}function EK(t,n){if(t&1&&(p(0,"span",4),E(1),m()),t&2){let e=h();c(),R("(",e.group.label,")")}}var Nu=new H("MAT_OPTION_PARENT_COMPONENT"),Ru=new H("MatOptgroup");var Pu=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},Ri=(()=>{class t{_element=d(ue);_changeDetectorRef=d(Je);_parent=d(Nu,{optional:!0});group=d(Ru,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=d(Mt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new z;_text;_stateChanges=new G;constructor(){let e=d(pi);e.load(Qr),e.load(Bo),this._signalDisableRipple=!!this._parent&&fl(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!oi(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Pu(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&De(yK,7),i&2){let o;se(o=le())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&T("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(yi("id",r.id),ce("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),fe("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",pe]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:SK,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){i&1&&(_t(CK),x(0,xK,1,2,"mat-pseudo-checkbox",1),Ve(1),p(2,"span",2,0),Ve(4,1),m(),x(5,wK,1,1,"mat-pseudo-checkbox",3)(6,EK,2,1,"span",4),_(7,"div",5)),i&2&&(b(r.multiple?0:-1),c(5),b(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),c(),b(r.group&&r.group._inert?6:-1),c(),f("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[IR,Tl],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} 14`],encapsulation:2,changeDetection:0})}return t})();function of(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;
14a<t+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}function af(t,n,e,i){return t<e?t:t+n>e+i?Math.max(0,t-i+n):e}var Q0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[Kr,Kr]})}return t})();var DK={capture:!0},TK=["focus","mousedown","mouseenter","touchstart"],Tw="mat-ripple-loader-uninitialized",Mw="mat-ripple-loader-class-name",AR="mat-ripple-loader-centered",Z0="mat-ripple-loader-disabled",kR=(()=>{class t{_document=d(Se);_animationMode=d(zt,{optional:!0});_globalRippleOptions=d(Dw,{optional:!0});_platform=d(wt);_ngZone=d(de);_injector=d(Ne);_eventCleanups;_hosts=new Map;constructor(){let e=d(Ji).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>TK.map(i=>$i(e,this._document,i,this._onInteraction,DK)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(Tw,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Mw))&&e.setAttribute(Mw,i.className||""),i.centered&&e.setAttribute(AR,""),i.disabled&&e.setAttribute(Z0,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(Z0,""):e.removeAttribute(Z0)}_onInteraction=e=>{let i=Zn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Tw}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Mw)),e.append(i);let r=this._animationMode==="NoopAnimations",o=this._globalRippleOptions,a=r?0:o?.animation?.enterDuration??nf.enterDuration,s=r?0:o?.animation?.exitDuration??nf.exitDuration,l={rippleDisabled:r||o?.disabled||e.hasAttribute(Z0),rippleConfig:{centered:e.hasAttribute(AR),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:s}}},u=new rf(l,this._ngZone,i,this._platform,this._injector),g=!l.rippleDisabled;g&&u.setupTriggerEvents(e),this._hosts.set(e,{target:l,renderer:u,hasSetUpEvents:g}),e.removeAttribute(Tw)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var IK=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,AK=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Iw(t,n){let e=Array(t);for(let i=0;i<t;i++)e[i]=n(i);return e}var kw=(()=>{class t extends qt{useUtcForDisplay=!1;_matDateLocale=d(Cw,{optional:!0});constructor(){super();let e=d(Cw,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Iw(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Iw(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Iw(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,re(N({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(IK.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(AK);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),Aw(r,0,23)&&Aw(o,0,59)&&(a==null||Aw(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})();function Aw(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var kK={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};function X0(t=kK){return[{provide:qt,useClass:kw},{provide:Vo,useValue:t}]}var Ce=(()=>{class t{constructor(){this.http=d(Be),this.localeService=d(Du),this.dateAdapter=d(qt),this.platformId=d(Qe),this.config={};let e=this.platformId;this.isBrowser=nt(e)}getConfig(e){return Object.keys(this.config).includes(e)||console.warn(`could not load config '${e}'`),this.config[e]}loadConfig(e,i=!1){if(!i&&this.config[e])return j(this.config[e]);let r=null;return!i&&this.isBrowser&&(r=JSON.parse(localStorage.getItem("config_"+e))),!i&&r&&new Date(r.expirationDate)>new Date?(this.config[e]=qm.clone(r.data),j(this.config[e])):this.http.get("/webabo/configs/"+e).pi
14pe(F(o=>{this.config[e]=qm.clone(o);let a=new Date;return a.setSeconds(a.getSeconds()+Rn.CACHE_TIME_BASE_DATA),this.isBrowser&&localStorage.setItem("config_"+e,JSON.stringify({expirationDate:a,data:o})),this.config[e]}))}loadConfigs(e){return e.length===0?j([]):_n(e.map(i=>this.loadConfig(i)))}clearConfig(){if(this.isBrowser)for(let e in localStorage)e.includes("config_")&&localStorage.removeItem(e)}initLocale(){if(this.isBrowser)return new Promise(e=>{this.loadConfig("locale").toPromise().then(i=>{let r=i?.value?.split("_");r?this.dateAdapter.setLocale(r[0]):console.error("Error while setting locale"),e(this)})})}initDefaultCountry(){if(this.isBrowser)return new Promise(e=>{this.loadConfig("requiredFields.addr.defaultCountry").toPromise().then(i=>{this.localeService.setDefaultCountry(i.value),e(this)})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Wi=(()=>{class t{constructor(){this.http=d(Be),this.sanitizer=d(En),this.imageHandler=d(Wr),this.translationService=d(Y),this.configService=d(Ce),this.loadedAll=!1,this.landingPages=[]}getLandingPages(){return this.loadLandingPages().pipe(Qt(e=>this.configService.loadConfig("revocation.enabled").pipe(F(i=>i?.value==="1"?e:(e??[]).filter(r=>r?.link!=="revocation")))))}loadLandingPages(){if(this.loadedAll)return j(this.landingPages);let e=JSON.parse(localStorage.getItem("landingPages"));return e&&e.landingPages?.length>0?j(e.landingPages):this.http.get("/webabo/landingpages").pipe(F(i=>{if(this.loadedAll=!0,i){i.forEach(o=>{o.viewImg&&o.viewFile&&o.viewFile.type&&(o.viewFile=this.imageHandler.addAltText(o.viewFile,o.viewDescription??this.translationService.getTranslation("landingPage.viewImage.altText.default"))),o.file&&o.file.type&&(o.file=this.imageHandler.addAltText(o.file,o.description??this.translationService.getTranslation("landingPage.image.altText.default"))),o.isExtern=o.externLink&&o.externLink!=""}),this.landingPages=i;let r=new Date;return r.setSeconds(r.getSeconds()+Rn.CACHE_TIME_BASE_DATA),localStorage.setItem("landingPages",JSON.stringify({expirationDate:r,landingPages:i})),this.landingPages}}))}resetData(){this.loadedAll=!1,this.landingPages=[]}getPageOfUrl(e){return e?this.getLandingPages().pipe(F(i=>{let r=null;return i.forEach(o=>{o&&o.link==e&&(r=o,!o.isExtern&&o.viewImg&&o.viewFile&&o.viewFile.type&&(r.viewFile=this.imageHandler.addAltText(o.viewFile,o?.viewDescription??this.translationService.getTranslation("landingPage.viewImage.altText.default"))))}),r})):j(null)}isMoveServiceActive(){return this.getLandingPages().pipe(F(e=>e.some(i=>/^\/move$/.test(i.link)&&i.active)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function J0(t){switch(t.responseType){case"json":return"response"in t?t.response:JSON.parse(t.responseText);case"document":return t.responseXML;case"text":default:return"response"in t?t.response:t.responseText}}var ev=class{constructor(n,e,i,r="download_load"){this.originalEvent=n,this.xhr=e,this.request=i,this.type=r;let{status:o,responseType:a}=e;this.status=o??0,this.responseType=a??"";let s=e.getAllResponseHeaders();this.responseHeaders=s?s.split(` 15`).reduce((g,v)=>{let w=v.indexOf(": ");return g[v.slice(0,w)]=v.slice(w+2),g},{}):{},this.response=J0(e);let{loaded:l,total:u}=n;this.loaded=l,this.total=u}};var sf=Fa(t=>function(e,i,r){this.message=e,this.name="AjaxError",this.xhr=i,this.request=r,this.status=i.status,this.responseType=i.responseType;let o;try{o=J0(i)}catch{o=i.responseText}this.response=o}),OR=(()=>{function t(n,e){return sf.call(this,"ajax timeout",n,e),this.name="AjaxTimeoutError",this}return t.prototype=Object.create(sf.prototype),t})();function OK(t,n){return zo({method:"GET",url:t,headers:n})}function PK(t,n,e){return zo({method:"POST",url:t,body:n,headers:e})}function NK(t,n){return zo({method:"DELETE",url:t,headers:n})}function RK(t,n,e){return zo({method:"PUT",url:t,body:n,headers:e})}function FK(t,n,e){return zo({method:"PATCH",url:t,body:n,headers:e})}var LK=F(t=>t.response);function BK(t,n){return LK(zo({method:"GET",url:t,headers:n}))}var zo=(()=>{let t=n=>VK(typeof n=="string"?{url:n}:n);return t.get=OK,t.post=PK,t.delete=NK,t.put=RK,t.patch=FK,t.getJSON=BK,t})(),HK="upload",PR="download",Ow="loadstart",Pw="progress",NR="load";function VK(t){return new je(n=>{var e,i;let r=Object.assign({async:!0,crossDomain:!1,withCredentials:!1,method:"GET",timeout:0,responseType:"json"},t),{queryParams:o,body:a,headers:s}=r,l=r.url;if(!l)throw new TypeError("url is required");if(o){let U;if(l.includes("?")){let Me=l.split("?");if(2<Me.length)throw new TypeError("invalid url");
15U=new URLSearchParams(Me[1]),new URLSearchParams(o).forEach((Oe,ae)=>U.set(ae,Oe)),l=Me[0]+"?"+U}else U=new URLSearchParams(o),l=l+"?"+U}let u={};if(s)for(let U in s)s.hasOwnProperty(U)&&(u[U.toLowerCase()]=s[U]);let g=r.crossDomain;!g&&!("x-requested-with"in u)&&(u["x-requested-with"]="XMLHttpRequest");let{withCredentials:v,xsrfCookieName:w,xsrfHeaderName:C}=r;if((v||!g)&&w&&C){let U=(i=(e=document?.cookie.match(new RegExp(`(^|;\\s*)(${w})=([^;]*)`)))===null||e===void 0?void 0:e.pop())!==null&&i!==void 0?i:"";U&&(u[C]=U)}let S=jK(a,u),D=Object.assign(Object.assign({},r),{url:l,headers:u,body:S}),O;O=t.createXHR?t.createXHR():new XMLHttpRequest;{let{progressSubscriber:U,includeDownloadProgress:Me=!1,includeUploadProgress:Oe=!1}=t,ae=(Ze,lt)=>{O.addEventListener(Ze,()=>{var Ft;let ti=lt();(Ft=U?.error)===null||Ft===void 0||Ft.call(U,ti),n.error(ti)})};ae("timeout",()=>new OR(O,D)),ae("abort",()=>new sf("aborted",O,D));let oe=(Ze,lt)=>new ev(lt,O,D,`${Ze}_${lt.type}`),dt=(Ze,lt,Ft)=>{Ze.addEventListener(lt,ti=>{n.next(oe(Ft,ti))})};Oe&&[Ow,Pw,NR].forEach(Ze=>dt(O.upload,Ze,HK)),U&&[Ow,Pw].forEach(Ze=>O.upload.addEventListener(Ze,lt=>{var Ft;return(Ft=U?.next)===null||Ft===void 0?void 0:Ft.call(U,lt)})),Me&&[Ow,Pw].forEach(Ze=>dt(O,Ze,PR));let ut=Ze=>{let lt="ajax error"+(Ze?" "+Ze:"");n.error(new sf(lt,O,D))};O.addEventListener("error",Ze=>{var lt;(lt=U?.error)===null||lt===void 0||lt.call(U,Ze),ut()}),O.addEventListener(NR,Ze=>{var lt,Ft;let{status:ti}=O;if(ti<400){(lt=U?.complete)===null||lt===void 0||lt.call(U);let on;try{on=oe(PR,Ze)}catch(ne){n.error(ne);return}n.next(on),n.complete()}else(Ft=U?.error)===null||Ft===void 0||Ft.call(U,Ze),ut(ti)})}let{user:V,method:Q,async:ie}=D;V?O.open(Q,l,ie,V,D.password):O.open(Q,l,ie),ie&&(O.timeout=D.timeout,O.responseType=D.responseType),"withCredentials"in O&&(O.withCredentials=D.withCredentials);for(let U in u)u.hasOwnProperty(U)&&O.setRequestHeader(U,u[U]);return S?O.send(S):O.send(),()=>{O&&O.readyState!==4&&O.abort()}})}function jK(t,n){var e;if(!t||typeof t=="string"||qK(t)||YK(t)||UK(t)||GK(t)||$K(t)||KK(t))return t;if(WK(t))return t.buffer;if(typeof t=="object")return n["content-type"]=(e=n["content-type"])!==null&&e!==void 0?e:"application/json;charset=utf-8",JSON.stringify(t);throw new TypeError("Unknown body type")}var zK=Object.prototype.toString;function Nw(t,n){return zK.call(t)===`[object ${n}]`}function UK(t){return Nw(t,"ArrayBuffer")}function GK(t){return Nw(t,"File")}function $K(t){return Nw(t,"Blob")}function WK(t){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(t)}function qK(t){return typeof FormData<"u"&&t instanceof FormData}function YK(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function KK(t){return typeof ReadableStream<"u"&&t instanceof ReadableStream}var tv=class t{static of(n){let e=null;return n&&(e=new t,e.code=n.code??null,e.parentUserUuid=n.parentUserUuid??null),e}};var iv=class t{static of(n){let e=null;return n&&(e=new t,e.userId=n.userId??null),e}};var RR=(()=>{class t{constructor(e,i){this.document=e,this.platformId=i,this.documentIsAccessible=nt(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),t.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.check(e)){e=encodeURIComponent(e);let r=t.getCookieRegExp(e).exec(this.document.cookie);return r&&r[1]?t.safeDecodeURIComponent(r[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},i=this.document;return i.cookie&&i.cookie!==""&&i.cookie.split(";").forEach(r=>{let[o,a]=r.split("=");e[t.safeDecodeURIComponent(o.replace(/^ /,""))]=t.safeDecodeURIComponent(a)}),e}set(e,i,r,o,a,s,l,u){if(!this.documentIsAccessible)return;if(typeof r=="number"||r instanceof Date||o||a||s||l){let w={expires:r,path:o,domain:a,secure:s,sameSite:l||"Lax",partitioned:u};this.set(e,i,w);return}let g=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",v=r||{};if(v.expires)if(typeof v.expires=="number"){let w=new Date(new Date().getTime()+v.expires*1e3*60*60*24);g+="expires="+w.toUTCString()+";"}else g+="expires="+v.expires.toUTCString()+";";v.path&&(g+="path="+v.path+";"),v.domain&&(g+="domain="+v.domain+";"),v.secure===!1&&v.sameSite==="None"&&(v.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),v.secure&&(g+="secure;"),v.sameSite||(v.sameSite="Lax"),g+="sameSite="+v.sameSite+";",v.partitioned&&(g+="Partitioned;"),this.document.cookie=g}delete(e,i,r,o,a="Lax"){if(!this.documentIsAccessible)return;let s=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:s,path:i,domain:r,secure:o,sameSite:a})}deleteAll(e,i,r,o="Lax"){if(!this.documentIsAccessible)return;let a=this.getAll();for(let s in a)a.hasOwnProperty(s)&&this.delete(s,e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)(xe(Se),xe(Qe))}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Fu(t){t||(zd(Fu),t=d(Vr));let n=new je(e=>t.onDestroy(e.next.bind(e)));return e=>e.pipe(We(n))}var Rw="/guest-user-info",nv=(()=>{class t{constructor(){this.router=d(et),this.blocked=!1,this.router.events.pipe(Ue(e=>e instanceof Ja),Ue(e=>!e.url.startsWith(Rw)),Fu()).subscribe(()=>this.blocked=!1)}isBlocked(){return this.blocked}markBlocked(){this.blocked=!0}reset(){this.blocked=!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ft=(()=>{class t{constructor(){this.http=d(Be),this.route=d(Ye),this.router=d(et),this.baseDataService=d(vt),this.complaintService=d(wu),this.hupSubscriptionsService=d(ct),this.moveService=d(Eu),this.paymentService=d($r),this.cookieService=d(RR),this.redirectService=d(Ln),this.landingPageService=d(Wi),this.configService=d(Ce),this.guestAccountService=d(nv),this.platformId=d(Qe),this.isChildUser$=new Gt(null),this.authData=new Gt(null),this.isStatusCallRunning=!1}static{this.COOKIE_NAME="webabo-auth-cookie"}static{this.COOKIE_PATH="/"}getSsoConfiguration(){return console.log("SSO-Host is "+this.configService.getConfig("sso.server.host")?.value),{usage:this.configService.getConfig("sso.usage")?.value,clientId:this.configService.getConfig("sso.client.webabo.id")?.value,returnUrl:this.configService.getConfig("sso.client.webabo.returnUrl")?.value,ssoHost:this.configService.getConfig("sso.server.host")?.value}}checkStatus(){nt(this.platformId)&&_n(["sso.usage","sso.client.webabo.id","sso.client.webabo.returnUrl","sso.server.host"].map(i=>this.configService.loadConfig(i))).pipe(Qt(()=>this.getAuthData().pipe(Rr()))).subscribe(i=>{let r=!!i&&i.token!==null,o=this.isChildUser$.getValue();if(!r||o===null){let a=this.getSsoConfiguration();if(a.usage?.toUpperCase().startsWith("OAUTHHASSO")&&a.ssoHost){let s=a.ssoHost+"/auth/status?client_id="+a.clientId+"&redirect_uri="+encodeURI(a.returnUrl);this.isStatusCallRunning||(this.isStatusCallRunning=!0,zo({url:s,method:"GET",withCredentials:!0}).pipe(F(u=>tv.of(u.response)),Ae(u=>(console.error("logon-status-error: ",u),j(null)))).pipe(Rr()).subscribe(u=>{if(u){let g=u.code;this.isChildUser$.next(!!u.parentUserUuid),g!=null&&this.loginByCode(g).subscribe()}this.isStatusCallRunning=!1},()=>{this.isStatusCallRunning=!1},()=>{this.isStatusCallRunning=!1}))}}})}login(e,i,r){return this.http.post("/webabo/auth/login",{username:e,password:i},{headers:{"Content-Type":"application/json"}}).pipe(F(o=>(o.token?.length&&(o.expiration_date=new Date(new Date().getTime()+o.timeToLive*1e3),this.authData.next(o),this.cookieService.set(t.COOKIE_NAME,JSON.stringify(o),{expires:o.expiration_date,path:t.COOKIE_PATH}),this.autoLogout(o.expiration_date),this.autoRefresh((o.timeToLive-10)*1e3),r&&this.redirectService.redirect(r)),o)))}loginByCode(e,i){return this.http.post("/webabo/auth/loginByCode?code="+e,null).pipe(F(r=>{if(r.token!=="0")r.expiration_date=new Date(new Date().getTime()+r.timeToLive*1e3),this.authData.next(r),this.cookieService.set(t.COOKIE_NAME,JSON.stringify(r),{expires:r.expiration_date,path:t.COOKIE_PATH}),this.autoLogout(r.expiration_date),this.autoRefresh((r.timeToLive-10)*1e3),i&&this.redirectService.redirect(i);else return r}))}loginByOtlc(e){let i=this.getSsoConfiguration();if(i.usage?.toUpperCase().startsWith("OAUTHHASSO")){let r=i.ssoHost+"/auth/otlc?code="+e;zo({url:r,method:"GET",withCredentials:!0}).pipe(F(a=>iv.of(a.response).userId),Ae(a=>(console.error("otlc-error: ",a),j(null)))).pipe(Rr()).subscribe(a=>{a!=null&&this.checkStatus()})}}autoLogin(){let e=this.cookieService.get(t.COOKIE_NAME);if(e){let i=N0.of(JSON.parse(e));if(i)try{let r=new Date(i.expiration_date),o=r.getTime(),a=new Date().getTime();o>a?(this.authData.next(i),this.autoLogout(r),this.autoRefresh((i.timeToLive-10)*1e3)):this.logout()}catch(r){console.log(r)}}}logout(){this.resetData(),localStorage.clear(),this.paymentService.resetData(),this.hupSubscriptionsService.resetData(),this.moveService.resetData(),this.complaintService.resetData(),this.landingPageService.resetData(),this.cookieService.delete(t.COOKIE_NAME,t.COOKIE_PATH),this.tokenExpirationTimer&&clearTimeout(this.tokenExpirationTimer),this.tokenExpirationTimer=null;let e=this.getSsoConfiguration();if(e.usage.toUpperCase().startsWith("OAUTHHASSO")){let i=e.ssoHost+"/auth/logout?client_id="+e.clientId;zo({url:i,method:"GET",responseType:"json",withCredentials:!0}).pipe(Ae(r=>(console.error("logout-error: ",r),j(null)))).subscribe(()=>{this.router.navigate(["/"]).then(()=>null)})}else this.router.navigate(["/"]).then(()=>null)}autoLogout(e){let i=e.getTime()-new Date().getTime();nt(this.platformId)&&(this.tokenExpirationTimer=setTimeout(()=>{this.logout()},i))}refresh(){return this.http.post("/webabo/auth/refresh?token="+this.authData.value.refreshToken,null).pipe(F(e=>{if(e.code!=="")e.expiration_date=new Date(new Date().getTime()+e.timeToLive*1e3),this.authData.next(e),this.cookieService.set(t.COOKIE_NAME,JSON.stringify(e),{expires:e.expiration_date,path:t.COOKIE_PATH}),this.autoLogout(e.expiration_date),this.autoRefresh((e.timeToLive-10)*1e3);else return e}))}autoRefresh(e){nt(this.platformId)&&(this.tokenExpirationTimer=setTimeout(()=>{this.refresh().subscribe()},e))}getUserData(){return this.userData?j(this.userData):this.http.get("/webabo/users").pipe(F(e=>(this.baseDataService.handleAddress(e.address),this.baseDataService.handlePerson(e.person),this.userData=e,this.userData)))}assignClientNo(e){if(e>0)return this.http.post("/webabo/users/assign-client-no",{clientNo:e}).pipe(F(i=>(this.baseDataService.handleAddress(i.address),this.baseDataService.handlePerson(i.person),this.userData=i,this.userData)))}resetData(){this.authData.next(null),this.isChildUser$.next(null),this.userData=null,this.guestAccountService.reset()}getAuthData(){return this.authData.getValue()||this.autoLogin(),this.authData}getPasswordComplexityInfo(){let e=this.getSsoConfiguration();return Ka(this.platformId)||e.usage?.toUpperCase().indexOf("OAUTHHASSO")!=0?j(null):zo.getJSON(e.ssoHost+"/util/password-complexity").pipe(Ae(()=>j(null)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();
15var tt=function(t){return t.buttonBackgroundColor="css.buttonBackgroundColor",t.buttonColor="css.buttonColor",t.buttonHeight="css.buttonHeight",t.offerButtonBackgroundColor="css.offer.buttonBackgroundColor",t.offerButtonColor="css.offer.buttonColor",t.offerHeaderBackground="css.offer.headerBackgroundColor",t.offerHeaderColor="css.offer.headerColor",t.offerHighlightHeaderBackground="css.offer.highlightHeaderBackgroundColor",t.offerHighlightHeaderColor="css.offer.highlightHeaderColor",t.offerHighlightHeaderTextAlign="css.offer.highlightHeaderTextAlign",t.offerFooterBackground="css.offer.footerBackgroundColor",t.offerFooterColor="css.offer.footerColor",t.offerFxFlex="css.offer.fxFlex",t.offerFxFlexSM="css.offer.fxFlexSM",t.offerFxFlexMD="css.offer.fxFlexMD",t.offerFxFlexLG="css.offer.fxFlexLG",t.offerFxFlexXL="css.offer.fxFlexXL",t.offerFxFlexXXL="css.offer.fxFlexXXL",t.landingFxFlex="css.landing.fxFlex",t.landingFxFlexXXL="css.landing.fxFlexXXL",t.landingFxFlexSM="css.landing.fxFlexSM",t.landingFxFlexMD="css.landing.fxFlexMD",t.landingFxFlexLG="css.landing.fxFlexLG",t.landingFxFlexXL="css.landing.fxFlexXL",t.naviBackgroundColor="css.navi.backgroundColor",t.naviColor="css.navi.color",t.naviTextDecoration="css.navi.textdecoration",t.naviHoverBackgroundColor="css.navi.hoverBackgroundColor",t.naviHoverColor="css.navi.hoverColor",t.naviHoverTextdecoration="css.navi.hoverTextdecoration",t.naviActiveBackgroundColor="css.navi.activeBackgroundColor",t.naviActiveColor="css.navi.activeColor",t.naviActiveTextdecoration="css.navi.activeTextdecoration",t.naviBorderTop="css.navi.borderTop",t.naviBorderRight="css.navi.borderRight",t.naviBorderBottom="css.navi.borderBottom",t.naviBorderLeft="css.navi.borderLeft",t.naviHoverBorderTop="css.navi.hoverBorderTop",t.naviHoverBorderRight="css.navi.hoverBorderRight",t.naviHoverBorderBottom="css.navi.hoverBorderBottom",t.naviHoverBorderLeft="css.navi.hoverBorderLeft",t.naviActiveBorderTop="css.navi.activeBorderTop",t.naviActiveBorderRight="css.navi.activeBorderRight",t.naviActiveBorderBottom="css.navi.activeBorderBottom",t.naviActiveBorderLeft="css.navi.activeBorderLeft",t.bodyClasses="css.body.classes",t.offerHeaderClasses="css.offer.headerClasses",t.bonusFxFlex="css.bonus.fxFlex",t.bonusFxFlexXXL="css.bonus.fxFlexXXL",t.bonusFxFlexSM="css.bonus.fxFlexSM",t.bonusFxFlexMD="css.bonus.fxFlexMD",t.bonusFxFlexLG="css.bonus.fxFlexLG",t.bonusFxFlexXL="css.bonus.fxFlexXL",t.customerFxFlex="css.customer.fxFlex",t.customerFxFlexXXL="css.customer.fxFlexXXL",t.customerFxFlexSM="css.customer.fxFlexSM",t.customerFxFlexMD="css.customer.fxFlexMD",t.customerFxFlexLG="css.customer.fxFlexLG",t.customerFxFlexXL="css.customer.fxFlexXL",t.hupFontFamily="css.fontFamily",t.sliderTextAlign="slider_external_offer_data_position",t.formOfPaymentFxFlex="css.formOfPayment.fxFlex",t.formOfPaymentFxFlexSM="css.formOfPayment.fxFlexSM",t.formOfPaymentFxFlexMD="css.formOfPayment.fxFlexMD",t.formOfPaymentFxFlexLG="css.formOfPayment.fxFlexLG",t.formOfPaymentFxFlexXL="css.formOfPayment.fxFlexXL",t.formOfPaymentFxFlexXXL="css.formOfPayment.fxFlexXXL",t.checkBoxBackgroundColor="css.checkbox.backgroundColor",t.checkBoxBorderColor="css.checkbox.borderColor",t.checkBoxCheckmarkColor="css.checkbox.checkmarkColor",t.buttonSecondaryColor="css.buttonSecondaryColor",t.buttonSecondaryBackgroundColor="css.buttonSecondaryBackgroundColor",t}(tt||{});var FR=(()=>{class t{constructor(){this.vHostService=d(Ai),this.document=d(Se),this.cssEnum=tt,this.stylesId="vhost-custom-styles"}setStyles(){let e=this.vHostService.vHost;if(!e?.css)return j(void 0);let i=`:root { 16`;return e.css.forEach(r=>{if(r.key==="css.customCss")return;let o="--"+Object.keys(this.cssEnum)[Object.values(this.cssEnum).indexOf(r.key)],a=r.value!=="#"?r.value:"initial";i+=` ${o}: ${a}; 17`}),i+=`} 18`,this.updateStyleElement(this.stylesId,i),j(void 0)}appendCss(e){e&&this.updateStyleElement("vhost-append-css",e)}updateStyleElement(e,i){let r=this.document.getElementById(e);r||(r=this.document.createElement("style"),r.id=e,this.document.head.appendChild(r)),r.textContent=i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var QK={url:"",deserializer:t=>JSON.parse(t.data),serializer:t=>JSON.stringify(t)},ZK="WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }",rv=class t extends _d{constructor(n,e){if(super(),this._socket=null,n instanceof je)this.destination=e,this.source=n;else{let i=this._config=Object.assign({},QK);if(this._output=new G,typeof n=="string")i.url=n;else for(let r in n)n.hasOwnProperty(r)&&(i[r]=n[r]);if(!i.WebSocketCtor&&WebSocket)i.WebSocketCtor=WebSocket;else if(!i.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new Io}}lift(n){let e=new t(this._config,this.destination);return e.operator=n,e.source=this,e}_resetState(){this._socket=null,this.source||(this.destination=new Io),this._output=new G}multiplex(n,e,i){let r=this;return new je(o=>{try{r.next(n())}catch(s){o.error(s)}let a=r.subscribe({next:s=>{try{i(s)&&o.next(s)}catch(l){o.error(l)}},error:s=>o.error(s),complete:()=>o.complete()});return()=>{try{r.next(e())}catch(s){o.error(s)}a.unsubscribe()}})}_connectSocket(){let{WebSocketCtor:n,protocol:e,url:i,binaryType:r}=this._config,o=this._output,a=null;
18try{a=e?new n(i,e):new n(i),this._socket=a,r&&(this._socket.binaryType=r)}catch(l){o.error(l);return}let s=new Ie(()=>{this._socket=null,a&&a.readyState===1&&a.close()});a.onopen=l=>{let{_socket:u}=this;if(!u){a.close(),this._resetState();return}let{openObserver:g}=this._config;g&&g.next(l);let v=this.destination;this.destination=hs.create(w=>{if(a.readyState===1)try{let{serializer:C}=this._config;a.send(C(w))}catch(C){this.destination.error(C)}},w=>{let{closingObserver:C}=this._config;C&&C.next(void 0),w&&w.code?a.close(w.code,w.reason):o.error(new TypeError(ZK)),this._resetState()},()=>{let{closingObserver:w}=this._config;w&&w.next(void 0),a.close(),this._resetState()}),v&&v instanceof Io&&s.add(v.subscribe(this.destination))},a.onerror=l=>{this._resetState(),o.error(l)},a.onclose=l=>{a===this._socket&&this._resetState();let{closeObserver:u}=this._config;u&&u.next(l),l.wasClean?o.complete():o.error(l)},a.onmessage=l=>{try{let{deserializer:u}=this._config;o.next(u(l))}catch(u){o.error(u)}}}_subscribe(n){let{source:e}=this;return e?e.subscribe(n):(this._socket||this._connectSocket(),this._output.subscribe(n),n.add(()=>{let{_socket:i}=this;this._output.observers.length===0&&(i&&(i.readyState===1||i.readyState===0)&&i.close(),this._resetState())}),n)}unsubscribe(){let{_socket:n}=this;n&&(n.readyState===1||n.readyState===0)&&n.close(),this._resetState(),super.unsubscribe()}};function Fw(t){return new rv(t)}var HR=uy(BR());var ov=function(t){return t.configChanged="admintool.topic.configChanged",t.translationChanged="admintool.topic.translationChanged",t.clearCache="admintool.topic.clearCache",t}(ov||{}),av=(()=>{class t{constructor(){this.platformId=d(Qe),this.topicToSubjectSharedObservablePair=new Map,this.topicsChanged=!1,this.debouncedUpdateWebSocketConnection=(0,HR.debounce)(this.updateWebSocketConnection,200)}getObservable(e){new Gt("x").next("");let r=this.topicToSubjectSharedObservablePair;if(!r.has(e)){let o=new G,a=o.pipe(oo(()=>{r.delete(e),this.debouncedUpdateWebSocketConnection()}),tc());this.topicsChanged=!0,r.set(e,{subject:o,sharedObservable:a}),this.updateWebSocketConnection()}return r.get(e).sharedObservable}updateWebSocketConnection(){if(!nt(this.platformId))return;let e=this.topicToSubjectSharedObservablePair;if(e.size==0){this.closeWebSocketConnection();return}if(!this.webSocketSubject&&this.webSocketSubject!==null&&(this.webSocketSubject=Fw(this.createWebSocketUrl()),this.webSocketSubject?.subscribe(i=>{console.log("WebSocketService",i);let r=i.messageType;r&&e.has(r)&&e.get(r).subject.next(i)},i=>{console.log("Fehler beim verarbeiten der Message",i),this.closeWebSocketConnection(),setTimeout(()=>this.updateWebSocketConnection(),3e3)})),this.topicsChanged){let i=[];for(let r of e.keys())i.push(r);this.webSocketSubject.next({type:"updateTopics",topics:i}),this.topicsChanged=!1}}closeWebSocketConnection(){nt(this.platformId)&&this.webSocketSubject&&(this.webSocketSubject.complete(),this.webSocketSubject=null)}ngOnDestroy(){this.closeWebSocketConnection()}createWebSocketUrl(){if(this.wssId=Wm(),L2())return"ws://localhost:4201?id="+this.wssId;{let e=new URL(window.location.href);return(e.protocol=="http:"?"ws":"wss")+"://"+e.host+"?id="+this.wssId}}getWssId(){return this.wssId}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function XK(t,n){if(t&1&&(p(0,"li"),_(1,"span",1),m()),t&2){let e=n.$implicit,i=h();c(),f("routerLink",e.url)("innerHTML",i.translationService.getTranslation("breadcrumb_"+e.label),y)}}var VR=(()=>{class t{constructor(){this.router=d(et),this.activatedRoute=d(Ye),this.translationService=d(Y),this.breadcrumbs=this.buildBreadCrumb(this.activatedRoute.root)}ngOnInit(){this.router.events.pipe(Ue(e=>e instanceof Dn),rr()).subscribe(()=>{this.breadcrumbs=this.buildBreadCrumb(this.activatedRoute.root),this.breadcrumbs.unshift({label:"landing_page",url:"/landing"})})}buildBreadCrumb(e,i="",r=[]){let o=e.routeConfig&&e.routeConfig.data?e.routeConfig.data.breadcrumb:"",a=e.routeConfig&&e.routeConfig.data?e.routeConfig.path:"";a.split("/").forEach((v,w)=>{if(v.startsWith(":")){let C=v.split(":")[1];a=a.replace(v,e.snapshot.params[C])}});let l=a?`${i}/${a}`:i,u={label:o,url:l},g=u.label?[...r,u]:[...r];return e.firstChild?this.buildBreadCrumb(e.firstChild,l,g):g}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-breadcrumb"]],decls:3,vars:0,consts:[[1,"my-breadcrumb"],["routerLinkActive","router-link-active",3,"routerLink","innerHTML"]],template:function(i,r){i&1&&(p(0,"ol",0),W(1,XK,2,2,"li",null,X),m()),i&2&&(c(),q(r.breadcrumbs))},dependencies:[Lo,$m],styles:[`.my-breadcrumb[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:.75rem 0!important;list-style:none;background:none;font-size:.8rem}.my-breadcrumb[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .my-breadcrumb[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#a9a9a9}.my-breadcrumb[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .my-breadcrumb[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{color:#696969;text-decoration:none;cursor:pointer}.my-breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;float:left;margin:5px}.my-breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{margin-right:20px}.my-breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:after{content:" >";white-space:pre;color:#a9a9a9}.my-breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child:after{content:""} 19/*# sourceMappingURL=breadcrumb.component-3FTGXERF.css.map */`]})}}return t})();var Bn=(()=>{class t{transform(e,i){let r="";return i.vHost?.css?.forEach(o=>{o.key===e&&(r=o.value)}),r}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Pn({name:"cssProperty",type:t,pure:!0})}}return t})();var Lu=class{_attachedHost;attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Mr=class extends Lu{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef
vendor: 70,368 bytes, lines 19-21
19=e,this.injector=i,this.projectableNodes=o}},Xn=class extends Lu{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},sv=class extends Lu{element;constructor(n){super(),this.element=n instanceof ue?n.nativeElement:n}},Bs=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Mr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Xn)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof sv)return this._attachedPortal=n,this.attachDomPortal(n)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var lf=class extends Bs{outletElement;_appRef;_defaultInjector;_document;constructor(n,e,i,r,o){super(),this.outletElement=n,this._appRef=i,this._defaultInjector=r,this._document=o}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(ws,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||Ne.NULL,o=r.get(hi,i.injector);e=gl(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}};var mr=(()=>{class t extends Bs{_moduleRef=d(ws,{optional:!0});_document=d(Se);_viewContainerRef=d(bi);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new z;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[it]})}return t})();var ts=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({})}return t})();var JK=20,Bu=(()=>{class t{_ngZone=d(de);_platform=d(wt);_renderer=d(Ji).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new G;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=JK){return this._platform.isBrowser?new je(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Sd(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):j()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Ue(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=vo(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bw=(()=>{class t{elementRef=d(ue);scrollDispatcher=d(Bu);ngZone=d(de);dir=d(ki,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new G;_renderer=d(It);_cleanupScroll;_elementScrolled=new G;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&ku()!=xa.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),ku()==xa.INVERTED?e.left=e.right:ku()==xa.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;K0()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&ku()==xa.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&ku()==xa.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),eQ=20,Ml=(()=>{class t{_platform=d(wt);_listeners;_viewportSize;_change=new G;_document=d(Se,{optional:!0});constructor(){let e=d(de),i=d(Ji).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=eQ){return e>0?this._change.pipe(Sd(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Bc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({})}return t})(),Hw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[El,Bc,El,Bc]})}return t})();var jR=K0(),lv=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(n,e){this._viewportRuler=n,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=nn(-this._previousScrollPosition.left),n.style.top=nn(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),jR&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),jR&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};var cv=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(Ue(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},cf=class{enable(){}disable(){}attach(){}};function Vw(t,n){return n.some(e=>{let i=t.bottom<e.top,r=t.top>e.bottom,o=t.right<e.left,a=t.left>e.right;return i||r||o||a})}function zR(t,n){return n.some(e=>{let i=t.top<e.top,r=t.bottom>e.bottom,o=t.left<e.left,a=t.right>e.right;return i||r||o||a})}var dv=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Vw(e,[{width:i,height:r,bottom:r,right:i,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}},YR=(()=>{class t{_scrollDispatcher=d(Bu);_viewportRuler=d(Ml);_ngZone=d(de);_document=d(Se);constructor(){}noop=()=>new cf;close=e=>new cv(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new lv(this._viewportRuler,this._document);reposition=e=>new dv(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yo=class{positionStrategy;scrollStrategy=new cf;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var uv=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var KR=(()=>{class t{_attachedOverlays=[];_document=d(Se);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),QR=(()=>{class t extends KR{_ngZone=d(de);_renderer=d(Ji).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ZR=(()=>{class t extends KR{_platform=d(wt);_ngZone=d(de);_renderer=d(Ji).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[$i(this._renderer,i,"pointerdown",this._pointerDownListener,r),$i(this._renderer,i,"click",this._clickListener,r),$i(this._renderer,i,"auxclick",this._clickListener,r),$i(this._renderer,i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=Zn(e)};_clickListener=e=>{let i=Zn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(UR(s.overlayElement,i)||UR(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function UR(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var XR=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} 20`],encapsulation:2,changeDetection:0})}return t})(),mv=(()=>{class t{_platform=d(wt);_containerElement;_document=d(Se);_styleLoader=d(pi);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Sw()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}let i=this._document.createElement("div");i.classList.add(e),Sw()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(XR)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jw=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(n,e,i,r){this._renderer=e,this._ngZone=i,this.element=n.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=e.listen(this.element,"click",r)}detach(){this._ngZone.runOutsideAngular(()=>{let n=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(n,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),n.style.pointerEvents="none",n.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},Vc=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new G;_attachments=new G;_detachments=new G;_positionStrategy;_scrollStrategy;_locationChanges=Ie.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new G;_outsidePointerEvents=new G;_renders=new G;_afterRenderRef;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,u,g=!1,v,w){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=u,this._animationsDisabled=g,this._injector=v,this._renderer=w,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=qn(()=>Ts(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ti(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=N(N({},this._config),n),this._updateElementSize()}setDirection(n){this._config=re(N({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=nn(this._config.width),n.height=nn(this._config.height),n.minWidth=nn(this._config.minWidth),n.minHeight=nn(this._config.minHeight),n.maxWidth=nn(this._config.maxWidth),n.maxHeight=nn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new jw(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(n))}):this._backdropRef.element.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=Tu(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let n=this._renders.pipe(We(ji(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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()),n.unsubscribe())})})}_disposeScrollStrategy(){let n=this._scrollStrategy;n?.disable(),n?.detach?.()}},GR="cdk-overlay-connected-position-bounding-box",iQ=/([A-Za-z%]+)$/,Hu=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new G;_resizeSubscription=Ie.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(GR),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.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){this.reapplyLastPosition();return}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();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),u=this._getOverlayPoint(l,e,s),g=this._getOverlayFit(u,e,i,s);if(g.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(g,u,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleArea<g.visibleArea)&&(a={overlayFit:g,overlayPoint:u,originPoint:l,position:s,overlayRect:e})}if(o.length){let s=null,l=-1;for(let u of o){let g=u.boundingBoxRect.width*u.boundingBoxRect.height*(u.position.weight||1);g>l&&(l=g,s=u)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Hc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(GR),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=WR(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),u=this._getOffset(r,"y");l&&(a+=l),u&&(s+=u);let g=0-a,v=a+o.width-i.width,w=0-s,C=s+o.height-i.height,S=this._subtractOverflows(o.width,g,v),D=this._subtractOverflows(o.height,w,C),O=S*D;return{visibleArea:O,isCompletelyWithinViewport:o.width*o.height===O,fitsInViewportVertically:D===o.height,fitsInViewportHorizontally:S==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=$R(this._overlayRef.getConfig().minHeight),s=$R(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,u=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&u}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=WR(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),u=Math.max(o.left-i.left-n.x,0),g=0,v=0;return r.width<=o.width?g=u||-a:g=n.x<this._viewportMargin?o.left-i.left-n.x:0,r.height<=o.height?v=l||-s:v=n.y<this._viewportMargin?o.top-i.top-n.y:0,this._previousPushAmount={x:g,y:v},{x:n.x+g,y:n.y+v}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(n!==this._lastPosition||!this._lastScrollVisibility||!nQ(this._lastScrollVisibility,i)){let r=new uv(n,i);this._positionChanges.next(r)}this._lastScrollVisibility=i}this._lastPosition=n,this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,r=n.overlayY;n.overlayX==="center"?i="center":this._isRtl()?i=n.overlayX==="start"?"right":"left":i=n.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(n,e){let i=this._viewportRect,r=this._isRtl(),o,a,s;if(e.overlayY==="top")a=n.y,o=i.height-a+this._viewportMargin;else if(e.overlayY==="bottom")s=i.height-n.y+this._viewportMargin*2,o=i.height-s+this._viewportMargin;else{let C=Math.min(i.bottom-n.y+i.top,n.y),S=this._lastBoundingBoxSize.height;o=C*2,a=n.y-C,o>S&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-S/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,u=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,g,v,w;if(u)w=i.width-n.x+this._viewportMargin*2,g=n.x-this._viewportMargin;else if(l)v=n.x,g=i.right-n.x;else{let C=Math.min(i.right-n.x+i.left,n.x),S=this._lastBoundingBoxSize.width;g=C*2,v=n.x-C,g>S&&!this._isInitialRender&&!this._growAfterOpen&&(v=n.x-S/2)}return{top:a,left:v,bottom:s,right:w,width:g,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=nn(i.height),r.top=nn(i.top),r.bottom=nn(i.bottom),r.width=nn(i.width),r.left=nn(i.left),r.right=nn(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=nn(o)),a&&(r.maxWidth=nn(a))}this._lastBoundingBoxSize=i,Hc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Hc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Hc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let g=this._viewportRuler.getViewportScrollPosition();Hc(i,this._getExactOverlayY(e,n,g)),Hc(i,this._getExactOverlayX(e,n,g))}else i.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=nn(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=nn(a.maxWidth):o&&(i.maxWidth="")),Hc(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=nn(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=nn(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zR(n,i),isOriginOutsideView:Vw(n,i),isOverlayClipped:zR(e,i),isOverlayOutsideView:Vw(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&Tu(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){let n=this._origin;if(n instanceof ue)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function Hc(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function $R(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(iQ);return!e||e==="px"?parseFloat(n):null}return t||null}function WR(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function nQ(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var qR="cdk-global-overlay-wrapper",pv=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(qR),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),g=this._xPosition,v=this._xOffset,w=this._overlayRef.getConfig().direction==="rtl",C="",S="",D="";l?D="flex-start":g==="center"?(D="center",w?S=v:C=v):w?g==="left"||g==="end"?(D="flex-end",C=v):(g==="right"||g==="start")&&(D="flex-start",S=v):g==="left"||g==="start"?(D="flex-start",C=v):(g==="right"||g==="end")&&(D="flex-end",S=v),n.position=this._cssPosition,n.marginLeft=l?"0":C,n.marginTop=u?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":S,e.justifyContent=D,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(qR),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},JR=(()=>{class t{_viewportRuler=d(Ml);_document=d(Se);_platform=d(wt);_overlayContainer=d(mv);constructor(){}global(){return new pv}flexibleConnectedTo(e){return new Hu(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Oi=(()=>{class t{scrollStrategies=d(YR);_overlayContainer=d(mv);_positionBuilder=d(JR);_keyboardDispatcher=d(QR);_injector=d(Ne);_ngZone=d(de);_document=d(Se);_directionality=d(ki);_location=d(ks);_outsideClickDispatcher=d(ZR);_animationsModuleType=d(zt,{optional:!0});_idGenerator=d(Mt);_renderer=d(Ji).createRenderer(null,null);_appRef;_styleLoader=d(pi);constructor(){}create(e){this._styleLoader.load(XR);let i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new yo(e);return a.direction=a.direction||this._directionality.value,new Vc(o,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(hi),this._renderer)}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ui)),new lf(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rQ=[{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"}],eF=new H("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(Oi);return()=>t.scrollStrategies.reposition()}}),Vu=(()=>{class t{elementRef=d(ue);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),fv=(()=>{class t{_overlay=d(Oi);_dir=d(ki,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=Ie.EMPTY;_attachSubscription=Ie.EMPTY;_detachSubscription=Ie.EMPTY;_positionSubscription=Ie.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=d(eF);_disposeOnNavigation=!1;_ngZone=d(de);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new z;positionChange=new z;attach=new z;detach=new z;overlayKeydown=new z;overlayOutsideClick=new z;constructor(){let e=d(ii),i=d(bi);this._templatePortal=new Xn(e,i),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?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=rQ);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!oi(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Zn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new yo({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Vu?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Vu?this.origin.elementRef.nativeElement:this.origin instanceof ue?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Gy(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",pe],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",pe],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",pe],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",pe],push:[2,"cdkConnectedOverlayPush","push",pe],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",pe]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Xe]})}return t})();function oQ(t){return()=>t.scrollStrategies.reposition()}var aQ={provide:eF,deps:[Oi],useFactory:oQ},Hs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({providers:[Oi,aQ],imports:[El,ts,Hw,Hw]})}return t})();function sQ(t,n){}var Il=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext};var Uw=(()=>{class t extends Bs{_elementRef=d(ue);_focusTrapFactory=d(j0);_config;_interactivityChecker=d(gw);_ngZone=d(de);_overlayRef=d(Vc);_focusMonitor=d(Yr);_renderer=d(It);_changeDetectorRef=d(Je);_injector=d(Ne);_platform=d(wt);_document=d(Se,{optional:!0});_portalOutlet;_focusTrapped=new G;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=d(Il,{optional:!0})||new Il,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||Ti(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=qr(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=qr();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=qr()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&De(mr,7),i&2){let o;se(o=le())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&ce("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[it],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&x(0,sQ,0,0,"ng-template",0)},dependencies:[mr],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} 21`],encapsulation:2})}return t})(),df=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new G;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!oi(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}},lQ=new H("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=d(Oi);return()=>t.scrollStrategies.block()}}),cQ=new H("DialogData"),dQ=new H("DefaultDialogConfig");var tF=(()=>{class t{_overlay=d(Oi);_injector=d(Ne);_defaultOptions=d(dQ,{optional:!0});_parentDialog=d(t,{optional:!0,skipSelf:!0});_overlayContainer=d(mv);_idGenerator=d(Mt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new G;_afterOpenedAtThisLevel=new G;_ariaHiddenElements=new Map;_scrollStrategy=d(lQ);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Oo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Yt(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new Il;i=N(N({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=this._overlay.create(o),s=new df(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let u=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(Et(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(u)}):this._hideNonDialogContentFromAssistiveTechnology(u)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){zw(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){zw(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),zw(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new yo({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:Il,useValue:r},{provide:df,useValue:i},{provide:Vc,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=Uw;let l=new Mr(s,r.viewContainerRef,Ne.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof ii){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=N(N({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Xn(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new Mr(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:cQ,useValue:e.data},{provide:df,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(ki,null,{optional:!0}))&&s.push({provide:ki,useValue:{value:e.direction,change:j()}}),Ne.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function zw(t,n){let e=t.length;for(;e--;)n(t[e])}function uQ(t,n){}var pf=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},Gw="mdc-dialog--open",iF="mdc-dialog--opening",nF="mdc-dialog--closing",pQ=150,mQ=75,aF=(()=>{class t extends Uw{_animationMode=d(zt,{optional:!0});_animationStateChanged=new z;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?oF(this._config.enterAnimationDuration)??pQ:0;_exitAnimationDuration=this._animationsEnabled?oF(this._config.exitAnimationDuration)??mQ:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(rF,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(iF,Gw)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Gw),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Gw),this._animationsEnabled?(this._hostElement.style.setProperty(rF,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(nF)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(iF,nF)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(yi("id",r._config.id),ce("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),fe("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[it],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,uQ,0,0,"ng-template",2),m()())},dependencies:[mr],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}
21.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} 22`],encapsulation:2})}return t})(),rF="--mat-dialog-transition-duration";function oF(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?ya(t.substring(0,t.length-2)):t.endsWith("s")?ya(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var uf=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(uf||{}),Al=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new G;_beforeClosed=new G;_result;_closeFallbackTimeout;_state=uf.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(Ue(r=>r.state==="opened"),Et(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Ue(r=>r.state==="closed"),Et(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ji(this.backdropClick(),this.keydownEvents().pipe(Ue(r=>r.keyCode===27&&!this.disableClose&&!oi(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),$w(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Ue(e=>e.state==="closing"),Et(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=uf.CLOSING,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(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=uf.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function $w(t,n,e){return t._closeInteractionType=n,t.close(e)}var ju=new H("MatMdcDialogData"),sF=new H("mat-mdc-dialog-default-options"),lF=new H("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(Oi);return()=>t.scrollStrategies.block()}});var Vs=(()=>{class t{_overlay=d(Oi);_defaultOptions=d(sF,{optional:!0});_scrollStrategy=d(lF);_parentDialog=d(t,{optional:!0,skipSelf:!0});_idGenerator=d(Mt);_dialog=d(tF);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new G;_afterOpenedAtThisLevel=new G;dialogConfigClass=pf;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Oo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Yt(void 0)));constructor(){this._dialogRefConstructor=Al,this._dialogContainerType=aF,this._dialogDataToken=ju}open(e,i){let r;i=N(N({},this._defaultOptions||new pf),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,re(N({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Il,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>
22(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mf=(()=>{class t{dialogRef=d(Al,{optional:!0});_elementRef=d(ue);_dialog=d(Vs);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=dF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){$w(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&T("click",function(a){return r._onButtonClick(a)}),i&2&&ce("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Xe]})}return t})(),cF=(()=>{class t{_dialogRef=d(Al,{optional:!0});_elementRef=d(ue);_dialog=d(Vs);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=dF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t})}return t})(),ff=(()=>{class t extends cF{id=d(Mt).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&yi("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[it]})}return t})(),hf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[LS([Bw])]})}return t})(),gf=(()=>{class t extends cF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&fe("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[it]})}return t})();function dF(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var bF=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(ke(It),ke(ue))};static \u0275dir=$({type:t})}return t})(),fQ=(()=>{class t extends bF{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,features:[it]})}return t})(),Ar=new H("");var hQ={provide:Ar,useExisting:Si(()=>Bt),multi:!0};function gQ(){let t=fo()?fo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var _Q=new H(""),Bt=(()=>{class t extends bF{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!gQ())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(ke(It),ke(ue),ke(_Q,8))};static \u0275dir=$({type:t,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(i,r){i&1&&T("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[_e([hQ]),it]})}return t})();function Yw(t){return t==null||Kw(t)===0}function Kw(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var In=new H(""),$u=new H(""),vQ=/^(?=.{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])?)*$/,Z=class{static min(n){return bQ(n)}static max(n){return yQ(n)}static required(n){return yF(n)}static requiredTrue(n){return CQ(n)}static email(n){return CF(n)}static minLength(n){return SF(n)}static maxLength(n){return xF(n)}static pattern(n){return wF(n)}static nullValidator(n){return gv()}static compose(n){return AF(n)}static composeAsync(n){return kF(n)}};function bQ(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}function yQ(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function yF(t){return Yw(t.value)?{required:!0}:null}function CQ(t){return t.value===!0?null:{required:!0}}function CF(t){return Yw(t.value)||vQ.test(t.value)?null:{email:!0}}function SF(t){return n=>{let e=n.value?.length??Kw(n.value);return e===null||e===0?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null}}function xF(t){return n=>{let e=n.value?.length??Kw(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function wF(t){if(!t)return gv;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>
vendor: 16,916 bytes, line 22
22{if(Yw(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function gv(t){return null}function EF(t){return t!=null}function DF(t){return hl(t)?mi(t):t}function TF(t){let n={};return t.forEach(e=>{n=e!=null?N(N({},n),e):n}),Object.keys(n).length===0?null:n}function MF(t,n){return n.map(e=>e(t))}function SQ(t){return!t.validate}function IF(t){return t.map(n=>SQ(n)?n:e=>n.validate(e))}function AF(t){if(!t)return null;let n=t.filter(EF);return n.length==0?null:function(e){return TF(MF(e,n))}}function Qw(t){return t!=null?AF(IF(t)):null}function kF(t){if(!t)return null;let n=t.filter(EF);return n.length==0?null:function(e){let i=MF(e,n).map(DF);return _n(i).pipe(F(TF))}}function Zw(t){return t!=null?kF(IF(t)):null}function uF(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function OF(t){return t._rawValidators}function PF(t){return t._rawAsyncValidators}function Ww(t){return t?Array.isArray(t)?t:[t]:[]}function _v(t,n){return Array.isArray(t)?t.includes(n):t===n}function pF(t,n){let e=Ww(n);return Ww(t).forEach(r=>{_v(e,r)||e.push(r)}),e}function mF(t,n){return Ww(n).filter(e=>!_v(t,e))}var vv=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Qw(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Zw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Mn=class extends vv{name;get formDirective(){return null}get path(){return null}},Ir=class extends vv{_parent=null;name=null;valueAccessor=null},bv=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},xQ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},NBe=re(N({},xQ),{"[class.ng-submitted]":"isSubmitted"}),At=(()=>{class t extends bv{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(ke(Ir,2))};static \u0275dir=$({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&fe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[it]})}return t})(),Wt=(()=>{class t extends bv{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(ke(Mn,10))};static \u0275dir=$({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&fe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[it]})}return t})();var _f="VALID",hv="INVALID",zu="PENDING",vf="DISABLED",kl=class{},yv=class extends kl{value;source;constructor(n,e){super(),this.value=n,this.source=e}},yf=class extends kl{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},Cf=class extends kl{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},Uu=class extends kl{status;source;constructor(n,e){super(),this.status=n,this.source=e}},Cv=class extends kl{source;constructor(n){super(),this.source=n}},Sv=class extends kl{source;constructor(n){super(),this.source=n}};function Xw(t){return(Dv(t)?t.validators:t)||null}function wQ(t){return Array.isArray(t)?Qw(t):t||null}function Jw(t,n){return(Dv(n)?n.asyncValidators:t)||null}function EQ(t){return Array.isArray(t)?Zw(t):t||null}function Dv(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function NF(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new K(1e3,"");if(!i[e])throw new K(1001,"")}function RF(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new K(1002,"")})}var Gu=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return qn(this.statusReactive)}set status(n){qn(()=>this.statusReactive.set(n))}_status=Yn(()=>this.statusReactive());statusReactive=ee(void 0);get valid(){return this.status===_f}get invalid(){return this.status===hv}get pending(){return this.status==zu}get disabled(){return this.status===vf}get enabled(){return this.status!==vf}errors;get pristine(){return qn(this.pristineReactive)}set pristine(n){qn(()=>this.pristineReactive.set(n))}_pristine=Yn(()=>this.pristineReactive());pristineReactive=ee(!0);get dirty(){return!this.pristine}get touched(){return qn(this.touchedReactive)}set touched(n){qn(()=>this.touchedReactive.set(n))}_touched=Yn(()=>this.touchedReactive());touchedReactive=ee(!1);get untouched(){return!this.touched}_events=new G;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(pF(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(pF(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(mF(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(mF(n,this._rawAsyncValidators))}hasValidator(n){return _v(this._rawValidators,n)}hasAsyncValidator(n){return _v(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(re(N({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Cf(!0,i))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new Cf(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(re(N({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new yf(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new yf(!0,i))}markAsPending(n={}){this.status=zu;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Uu(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(re(N({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=vf,this.errors=null,this._forEachChild(r=>{r.disable(re(N({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new yv(this.value,i)),this._events.next(new Uu(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(re(N({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=_f,this._forEachChild(i=>{i.enable(re(N({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(re(N({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_f||this.status===zu)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new yv(this.value,e)),this._events.next(new Uu(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(re(N({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vf:_f}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=zu,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=DF(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new Uu(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new z,this.statusChanges=new z}_calculateStatus(){return this._allControlsDisabled()?vf:this.errors?hv:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zu)?zu:this._anyControlsHaveStatus(hv)?hv:_f}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new yf(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Cf(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Dv(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=wQ(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=EQ(this._rawAsyncValidators)}},Uo=class extends Gu{constructor(n,e,i){super(Xw(e),Jw(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){RF(this,!0,n),Object.keys(n).forEach(i=>{NF(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var qw=class extends Uo{};var Sf=new H("",{providedIn:"root",factory:()=>Tv}),Tv="always";function Mv(t,n){return[...n.path,t]}function xv(t,n,e=Tv){eE(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),TQ(t,n),IQ(t,n),MQ(t,n),DQ(t,n)}function fF(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Ev(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}
22function wv(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function DQ(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function eE(t,n){let e=OF(t);n.validator!==null?t.setValidators(uF(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=PF(t);n.asyncValidator!==null?t.setAsyncValidators(uF(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();wv(n._rawValidators,r),wv(n._rawAsyncValidators,r)}function Ev(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=OF(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=PF(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return wv(n._rawValidators,i),wv(n._rawAsyncValidators,i),e}function TQ(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&FF(t,n)})}function MQ(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&FF(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function FF(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function IQ(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function LF(t,n){t==null,eE(t,n)}function AQ(t,n){return Ev(t,n)}function BF(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function kQ(t){return Object.getPrototypeOf(t.constructor)===fQ}
22function HF(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function VF(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Bt?e=o:kQ(o)?i=o:r=o}),r||i||e||null}function OQ(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var PQ={provide:Mn,useExisting:Si(()=>jc)},bf=Promise.resolve(),jc=(()=>{class t extends Mn{callSetDisabledState;get submitted(){return qn(this.submittedReactive)}_submitted=Yn(()=>this.submittedReactive());submittedReactive=ee(!1);_directives=new Set;form;ngSubmit=new z;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new Uo({},Qw(e),Zw(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){bf.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),xv(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}
vendor: 4,504 bytes, line 22
22removeControl(e){bf.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){bf.then(()=>{let i=this._findContainer(e.path),r=new Uo({});LF(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){bf.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){bf.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),HF(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Cv(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new Sv(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||t)(ke(In,10),ke($u,10),ke(Sf,8))};static \u0275dir=$({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&T("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[_e([PQ]),it]})}return t})();function hF(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function gF(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var dn=class extends Gu{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(Xw(e),Jw(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Dv(e)&&(e.nonNullable||e.initialValueIsDefault)&&(gF(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){hF(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){hF(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){gF(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var NQ=t=>t instanceof dn,RQ=(()=>{class t extends Mn{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Mv(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,standalone:!1,features:[it]})}return t})();var FQ={provide:Ir,useExisting:Si(()=>js)},_F=Promise.resolve(),js=(()=>{class t extends Ir{_changeDetectorRef;callSetDisabledState;control=new dn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new z;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=VF(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),BF(e,this.viewModel)&&(this._updateV
22alue(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(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){xv(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){_F.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&pe(i);_F.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Mv(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(ke(Mn,9),ke(In,10),ke($u,10),ke(Ar,10),ke(Je,8),ke(Sf,8))};static \u0275dir=$({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[_e([FQ]),it,Xe]})}return t})();var wi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var jF=new H("");var LQ={provide:Mn,useExisting:Si(()=>bt)},bt=(()=>{class t extends Mn{callSetDisabledState;get submitted(){return qn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Yn(()=>this._submittedReactive());_submittedReactive=ee(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new z;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ev(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return xv(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}
22removeControl(e){fF(e.control||null,e,!1),OQ(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),HF(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Cv(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new Sv(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(fF(i||null,e),NQ(r)&&(xv(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);LF(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&AQ(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){eE(this.form,this),this._oldForm&&Ev(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(ke(In,10),ke($u,10),ke(Sf,8))};static \u0275dir=$({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&T("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[_e([LQ]),it,Xe]})}return t})(),BQ={provide:Mn,useExisting:Si(()=>fr)},fr=(()=>{class t extends RQ{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){zF(this._parent)}static \u0275fac=function(i){return new(i||t)(ke(Mn,13),ke(In,10),ke($u,10))};static \u0275dir=$({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[_e([BQ]),it]})}return t})(),HQ={provide:Mn,useExisting:Si(()=>Wu)},Wu=(()=>{class t extends Mn{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){zF(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Mv(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||t)(ke(Mn,13),ke(In,10),ke($u,10))};static \u0275dir=$({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[_e([HQ]),it]})}return t})();function zF(t){return!(t instanceof fr)&&!(t instanceof bt)&&!(t instanceof Wu)}var VQ={provide:Ir,useExisting:Si(()=>Ut)},Ut=(()=>{class t extends Ir{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new z;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=VF(this,o)}ngOnChanges(e){this._added||this._setUpControl(),BF(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Mv(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||t)(ke(Mn,13),ke(In,10),ke($u,10),ke(Ar,10),ke(jF,8))};static \u0275dir=$({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[_e([VQ]),it,Xe]})}return t})();function UF(t){return typeof t=="number"?t:parseInt(t,10)}var xf=(()=>{class t{_validator=gv;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].
22currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):gv,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,features:[Xe]})}return t})();var jQ={provide:In,useExisting:Si(()=>ai),multi:!0};var ai=(()=>{class t extends xf{required;inputName="required";normalizeInput=pe;createValidator=e=>yF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&ce("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[_e([jQ]),it]})}return t})();var zQ={provide:In,useExisting:Si(()=>wf),multi:!0},wf=(()=>{class t extends xf{email;inputName="email";normalizeInput=pe;createValidator=e=>CF;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},standalone:!1,features:[_e([zQ]),it]})}return t})(),UQ={provide:In,useExisting:Si(()=>Ef),multi:!0},Ef=(()=>{class t extends xf{minlength;inputName="minlength";normalizeInput=e=>UF(e);createValidator=e=>SF(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ce("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[_e([UQ]),it]})}return t})(),GQ={provide:In,useExisting:Si(()=>wa),multi:!0},wa=(()=>{class t extends xf{maxlength;inputName="maxlength";normalizeInput=e=>UF(e);createValidator=e=>xF(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ce("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[_e([GQ]),it]})}return t})(),$Q={provide:In,useExisting:Si(()=>tE),multi:!0},tE=(()=>{class t extends xf{pattern;inputName="pattern";normalizeInput=e=>e;createValidator=e=>wF(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&ce("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[_e([$Q]),it]})}return t})();var GF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({})}return t})(),Go=class extends Gu{constructor(n,e,i){super(Xw(e),Jw(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateV
22alueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){RF(this,!1,n),n.forEach((i,r)=>{NF(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};function vF(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var kt=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return vF(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Uo(r,o)}record(e,i=null){let r=this._reduceControls(e);return new qw(r,i)}control(e,i,r){let o={};return this.useNonNullable?(vF(i)?o=i:(o.validators=i,o.asyncValidators=r),new dn(e,re(N({},o),{nonNullable:!0}))):new dn(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new Go(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof dn)return e;if(e instanceof Gu)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $o=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sf,useValue:e.callSetDisabledState??Tv}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[GF]})}return t})(),Ot=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:jF,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Sf,useValue:e.callSetDisabledState??Tv}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[GF]})}return t})();var WQ=(t,n)=>({"lds-ring-small":t,"lds-ring":n}),Ge=(()=>{class t{constructor(){this.type=""}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-loading-spinner"]],inputs:{type:"type"},decls:5,vars:4,consts:[[3,"ngClass"]],template:function(i,r){i&1&&(p(0,"div",0),_(1,"div")(2,"div")(3,"div")(4,"div"),m()),i&2&&f("ngClass",nu(1,WQ,r.type==="small",r.type===""))},dependencies:[tn],styles:[`.lds-ring[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid var(--buttonBackgroundColor);border-radius:50%;animation:_ngcontent-%COMP%_lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--buttonBackgroundColor) transparent transparent transparent}.lds-ring-small[_ngcontent-%COMP%]{display:inline-block;position:relative;width:40px;height:40px}.lds-ring-small[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:32px;height:32px;margin:8px;
22border:4px solid var(--buttonBackgroundColor);border-radius:50%;animation:_ngcontent-%COMP%_lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--buttonBackgroundColor) transparent transparent transparent}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1), .lds-ring-small[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2), .lds-ring-small[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3), .lds-ring-small[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_lds-ring-small{0%{transform:rotate(0)}to{transform:rotate(360deg)}} 23/*# sourceMappingURL=loading-spinner.component-W2AVMCFF.css.map */`]})}}return t})();var iE=class{_box;_destroyed=new G;_resizeSubject=new G;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new je(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(Ue(e=>e.some(i=>i.target===n)),Gh({bufferSize:1,refCount:!0}),We(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},$F=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=d(de);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new iE(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qQ=["notch"],YQ=["matFormFieldNotchedOutline",""],KQ=["*"],QQ=["textField"],ZQ=["iconPrefixContainer"],XQ=["textPrefixContainer"],JQ=["iconSuffixContainer"],eZ=["textSuffixContainer"],tZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],iZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function nZ(t,n){t&1&&_(0,"span",20)}function rZ(t,n){if(t&1&&(p(0,"label",19),Ve(1,1),x(2,nZ,1,0,"span",20),m()),t&2){let e=h(2);f("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ce("for",e._control.disableAutomaticLabeling?null:e._control.id),c(2),b(!e.hideRequiredMarker&&e._control.required?2:-1)}}function oZ(t,n){if(t&1&&x(0,rZ,3,5,"label",19),t&2){let e=h();b(e._hasFloatingLabel()?0:-1)}}function aZ(t,n){t&1&&_(0,"div",7)}function sZ(t,n){}function lZ(t,n){if(t&1&&x(0,sZ,0,0,"ng-template",13),t&2){h(2);let e=J(1);f("ngTemplateOutlet",e)}}function cZ(t,n){if(t&1&&(p(0,"div",9),x(1,lZ,1,1,null,13),m()),t&2){let e=h();f("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),c(),b(e._forceDisplayInfixLabel()?-1:1)}}function dZ(t,n){t&1&&(p(0,"div",10,2),Ve(2,2),m())}function uZ(t,n){t&1&&(p(0,"div",11,3),Ve(2,3),m())}function pZ(t,n){}function mZ(t,n){if(t&1&&x(0,pZ,0,0,"ng-template",13),t&2){h();let e=J(1);f("ngTemplateOutlet",e)}}function fZ(t,n){t&1&&(p(0,"div",14,4),Ve(2,4),m())}function hZ(t,n){t&1&&(p(0,"div",15,5),Ve(2,5),m())}function gZ(t,n){t&1&&_(0,"div",16)}function _Z(t,n){t&1&&Ve(0,6)}function vZ(t,n){if(t&1&&(p(0,"mat-hint",21),E(1),m()),t&2){let e=h(2);f("id",e._hintLabelId),c(),he(e.hintLabel)}}function bZ(t,n){if(t&1&&(x(0,vZ,2,2,"mat-hint",21),Ve(1,7),_(2,"div",22),Ve(3,8)),t&2){let e=h();b(e.hintLabel?0:-1)}}var Pt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-label"]]})}return t})(),nE=new H("MatError"),Ht=(()=>{class t{id=d(Mt).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&yi("id",r.id)},inputs:{id:"id"},features:[_e([{provide:nE,useExisting:t}])]})}return t})(),qi=(()=>{class t{align="start";id=d(Mt).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(yi("id",r.id),ce("align",null),fe("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),XF=new H("MatPrefix");var rE=new H("MatSuffix"),Av=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[_e([{provide:rE,useExisting:t}])]})}return t})(),JF=new H("FloatingLabelParent"),WF=(()=>{class t{_elementRef=d(ue);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=d($F);_ngZone=d(de);_parent=d(JF);_resizeSubscription=new Ie;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return yZ(this._elementRef.nativeElement)}
23get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function yZ(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var qF="mdc-line-ripple--active",Iv="mdc-line-ripple--deactivating",YF=(()=>{class t{_elementRef=d(ue);_cleanupTransitionEnd;constructor(){let e=d(de),i=d(It);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Iv),e.add(qF)}deactivate(){this._elementRef.nativeElement.classList.add(Iv)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Iv);e.propertyName==="opacity"&&r&&i.remove(qF,Iv)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),KF=(()=>{class t{_elementRef=d(ue);_ngZone=d(de);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&De(qQ,5),i&2){let o;se(o=le())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:YQ,ngContentSelectors:KQ,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(i,r){i&1&&(_t(),_(0,"div",1),p(1,"div",2,0),Ve(3),m(),_(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ol=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t})}return t})();var Ea=new H("MatFormField"),eL=new H("MAT_FORM_FIELD_DEFAULT_OPTIONS"),QF="fill",CZ="auto",ZF="fixed",SZ="translateY(-50%)",Nt=(()=>{class t{_elementRef=d(ue);_changeDetectorRef=d(Je);_dir=d(ki);_platform=d(wt);_idGenerator=d(Mt);_ngZone=d(de);_injector=d(Ne);_defaults=d(eL,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=RO(Pt);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=bo(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||CZ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(e){let i=this._appearance,r=e||this._defaults?.appearance||QF;this._appearance=r,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=QF;
23get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||ZF}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||ZF}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new G;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_animationsDisabled;constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),this._animationsDisabled=d(zt,{optional:!0})==="NoopAnimations"}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Yn(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(Yt([void 0,void 0]),F(()=>
23[i.errorState,i.userAriaDescribedBy]),Uh(),Ue(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(We(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),ji(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Ts(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(We(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Yn(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];
23if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let i=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,u=o?.getBoundingClientRect().width??0,g=a?.getBoundingClientRect().width??0,v=this._dir.value==="rtl"?"-1":"1",w=`${s+l}px`,S=`calc(${v} * (${w} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( 24 --mat-mdc-form-field-label-transform, 25 ${SZ} translateX(${S}) 26 )`;let D=s+l+u+g;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${D}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(x2(o,r._labelChild,Pt,5),Kt(o,Ol,5),Kt(o,XF,5),Kt(o,rE,5),Kt(o,nE,5),Kt(o,qi,5)),i&2){w2();let a;se(a=le())&&(r._formFieldControl=a.first),se(a=le())&&(r._prefixChildren=a),se(a=le())&&(r._suffixChildren=a),se(a=le())&&(r._errorChildren=a),se(a=le())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(De(QQ,5),De(ZQ,5),De(XQ,5),De(JQ,5),De(eZ,5),De(WF,5),De(KF,5),De(YF,5)),i&2){let o;se(o=le())&&(r._textField=o.first),se(o=le())&&(r._iconPrefixContainer=o.first),se(o=le())&&(r._textPrefixContainer=o.first),se(o=le())&&(r._iconSuffixContainer=o.first),se(o=le())&&(r._textSuffixContainer=o.first),se(o=le())&&(r._floatingLabel=o.first),se(o=le())&&(r._notchedOutline=o.first),se(o=le())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:40,hostBindings:function(i,r){i&2&&fe("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[_e([{provide:Ea,useExisting:t},{provide:JF,useExisting:t}])],ngContentSelectors:iZ,decls:20,vars:25,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["aria-atomic","true","aria-live","polite"],["matFormField
26FloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,r){if(i&1){let o=B();_t(tZ),x(0,oZ,1,1,"ng-template",null,0,fa),p(2,"div",6,1),T("click",function(s){return A(o),k(r._control.onContainerClick(s))}),x(4,aZ,1,0,"div",7),p(5,"div",8),x(6,cZ,2,2,"div",9)(7,dZ,3,0,"div",10)(8,uZ,3,0,"div",11),p(9,"div",12),x(10,mZ,1,1,null,13),Ve(11),m(),x(12,fZ,3,0,"div",14)(13,hZ,3,0,"div",15),m(),x(14,gZ,1,0,"div",16),m(),p(15,"div",17),Tr(16),p(17,"div",18),x(18,_Z,1,0)(19,bZ,4,1),m()()}if(i&2){let o;c(2),fe("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),c(2),b(!r._hasOutline()&&!r._control.disabled?4:-1),c(2),b(r._hasOutline()?6:-1),c(),b(r._hasIconPrefix?7:-1),c(),b(r._hasTextPrefix?8:-1),c(2),b(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),c(2),b(r._hasTextSuffix?12:-1),c(),b(r._hasIconSuffix?13:-1),c(),b(r._hasOutline()?-1:14),c(),fe("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();c(2),fe("mat-mdc-form-field-error-wrapper",a==="error")("mat-mdc-form-field-hint-wrapper",a==="hint"),c(),b((o=a)==="error"?18:o==="hint"?19:-1)}},dependencies:[WF,KF,Ya,YF,qi],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.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--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;
26left:0;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{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.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-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-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):h
26over .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):h
26over .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.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;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.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;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.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;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}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}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.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;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[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-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[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%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.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-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-infix:has(textarea[cols]){width:auto}.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.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .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)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-en
26abled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} 27`],encapsulation:2,changeDetection:0})}return t})();var oE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[Kr,V0,Kr]})}return t})();var tL=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms} 28`],encapsulation:2,changeDetection:0})}return t})(),EZ={passive:!0},iL=(()=>{class t{_platform=d(wt);_ngZone=d(de);_renderer=d(Ji).createRenderer(null,null);_styleLoader=d(pi);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return ht;this._styleLoader.load(tL);let i=vo(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new G,a="cdk-text-field-autofilled",s=u=>{u.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:u.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),$i(this._renderer,i,"animationstart",s,EZ)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=vo(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var kv=(()=>{class t{_elementRef=d(ue);_platform=d(wt);_ngZone=d(de);_renderer=d(It);_resizeEvents=new G;_previousValue;_initialHeight;_destroyed=new G;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=ya(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=ya(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_cachedScrollTop;_document=d(Se,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){d(pi).load(tL),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe(Sd(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}
28ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedScrollTop=this._textareaElement.scrollTop,!this._cachedLineHeight))return;let i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&(e.setSelectionRange(i,r),e.scrollTop=this._cachedScrollTop)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&T("input",function(){return r._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",pe],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})();var Ov=new H("MAT_INPUT_VALUE_ACCESSOR");var DZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"],TZ=new H("MAT_INPUT_CONFIG"),ei=(()=>{class t{_elementRef=d(ue);_platform=d(wt);ngControl=d(Ir,{optional:!0,self:!0});_autofillMonitor=d(iL);_ngZone=d(de);_formField=d(Ea,{optional:!0});_renderer=d(It);_uid=d(Mt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=d(TZ,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new G;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=bo(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Z.required)??!1}set required(e){this._required=bo(e)}_required;get type(){return this._type}set type(e){let i=this._type;this._type=e||"text",this._validateType(),!this._isTextarea&&xw().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._type!==i&&this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=bo(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>xw().has(e));constructor(){let e=d(jc,{optional:!0}),i=d(bt,{optional:!0}),r=d(Ls),o=d(Ov,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?fl(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Dl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&qa(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){DZ.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}setDescribedByIds(e){let i=this._elementRef.nativeElement,r=i.getAttribute("aria-describedby"),o;if(r){let a=this._formFieldDescribedBy||e;o=e.concat(r.split(" ").filter(s=>s&&!a.includes(s)))}else o=e;this._formFieldDescribedBy=e,o.length?i.setAttribute("aria-describedby",o.join(" ")):i.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){this._cleanupWebkitWheel?.(),this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener))}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&T("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(yi("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),ce("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),fe("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",pe]},exportAs:["matInput"],features:[_e([{provide:Ol,useExisting:t}]),Xe]})}return t})();var MZ=["mat-icon-button",""],IZ=["*"];var AZ=new H("MAT_BUTTON_CONFIG");var kZ=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],aE=(()=>{class t{_elementRef=d(ue);_ngZone=d(de);_animationMode=d(zt,{optional:!0});_focusMonitor=d(Yr);_rippleLoader=d(kR);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){d(pi).load(Qr);let e=d(AZ,{optional:!0}),i=this._elementRef.nativeElement,r=i.classList;this.disabledInteractive=e?.disabledInteractive??!1,this.color=e?.color??null,this._rippleLoader?.configureRipple(i,{className:"mat-mdc-button-ripple"});for(let{attribute:o,mdcClasses:a}of kZ)i.hasAttribute(o)&&r.add(...a)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}
28_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",pe],disabled:[2,"disabled","disabled",pe],ariaDisabled:[2,"aria-disabled","ariaDisabled",pe],disabledInteractive:[2,"disabledInteractive","disabledInteractive",pe]}})}return t})();var Pl=(()=>{class t extends aE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(ce("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Mi(r.color?"mat-"+r.color:""),fe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[it],attrs:MZ,ngContentSelectors:IZ,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(_t(),_(0,"span",0),Ve(1),_(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;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;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.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} 29`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} 30`],encapsulation:2,changeDetection:0})}return t})();var OZ=["mat-button",""],PZ=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],NZ=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var Ee=(()=>{class t extends aE{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(ce("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Mi(r.color?"mat-"+r.color:""),fe("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[it],attrs:OZ,ngContentSelectors:NZ,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(_t(PZ),_(0,"span",0),Ve(1),p(2,"span",1),Ve(3,1),m(),Ve(4,2),_(5,"span",2)(6,"span",3)),i&2&&fe("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;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;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.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__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}
30.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}
30.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.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,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} 31`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} 32`],encapsulation:2,changeDetection:0})}return t})();var sE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[Kr,Q0,Kr]})}return t})();var Pv=class{constructor(n){this.type=n}},qu=class extends Pv{constructor(n,e){super(n),this.type=n,this.src=e}},Nv=class extends Pv{constructor(n,e,i){super(e),this.id=n,this.type=e,this.file=i}};var ze=(()=>{class t{constructor(e,i){this.templateRef=e,this.viewContainer=i}set appApplyIfNotEmpty(e){typeof e=="string"&&e.trim()||e instanceof qu&&e.type?this.viewContainer.createEmbeddedView(this.templateRef):this.viewContainer.clear()}static{this.\u0275fac=function(i){return new(i||t)(ke(ii),ke(bi))}}static{this.\u0275dir=$({type:t,selectors:[["","appApplyIfNotEmpty",""]],inputs:{appApplyIfNotEmpty:"appApplyIfNotEmpty"}})}}return t})();function RZ(t,n){if(t&1&&_(0,"h3",4),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("login_box_header"),y)}}function FZ(t,n){t&1&&(p(0,"div",6),_(1,"app-loading-spinner"),m())}function LZ(t,n){if(t&1&&(p(0,"div",10),E(1),m()),t&2){let e=h(3);c(),R(" ",e.error," ")}}function BZ(t,n){if(t&1&&(p(0,"div",9),x(1,LZ,2,1,"div",10),m(),p(2,"div",9)(3,"div",11)(4,"mat-form-field"),_(5,"mat-label",12)(6,"input",13)(7,"mat-error",12),m()()(),p(8,"div",9)(9,"div",11)(10,"mat-form-field"),_(11,"mat-label",12)(12,"input",14),p(13,"mat-error"),E(14),m()()()()),t&2){let e=h(2);c(),b(e.error?1:-1),c(4),f("innerHTML",e.translationService.getTranslation("login_email"),y),c(2),f("innerHTML",e.loginForm.get("email").getError("message"),y),c(4),f("innerHTML",e.translationService.getTranslation("login_password"),y),c(3),he(e.loginForm.get("password").getError("message"))}}function HZ(t,n){if(t&1){let e=B();p(0,"mat-dialog-content",5),T("keyup.enter",function(){A(e);let r=h();return k(r.onLogin())}),x(1,FZ,2,0,"div",6)(2,BZ,15,5),m(),p(3,"mat-dialog-actions")(4,"button",7),T("click",function(){A(e);let r=h();return k(r.onLogin())}),m(),_(5,"button",8),m()}if(t&2){let e=h();f("formGroup",e.loginForm),c(),b(e.loading?1:-1),c(),b(e.loading?-1:2),
32c(2),f("disabled",e.loading)("innerHTML",e.translationService.getTranslation("login_login"),y),c(),f("innerHTML",e.translationService.getTranslation("login_close"),y)}}function VZ(t,n){if(t&1&&(p(0,"mat-dialog-content",3),_(1,"iframe",15),m()),t&2){let e=h();c(),f("src",e.hassoLoginBoxSrc(),bc)}}var Rv=(()=>{class t{static{this.EventListenerAdded=!1}static{this.DialogRef=null}constructor(){this.translationService=d(Y),this.formBuilder=d(kt),this.dialogRef=d(Al),this.loginService=d(ft),this.sanitizer=d(En),this.data=d(ju),this.platformId=d(Qe),this.loading=!1,this.ssoFormPropagatedHeight="inherit",t.DialogRef=this.dialogRef}ngOnInit(){this.loginForm=this.formBuilder.group({email:[null,[Z.required,Z.email]],password:[null,Z.required]}),this.ssoConfiguration=this.loginService.getSsoConfiguration(),nt(this.platformId)&&!t.EventListenerAdded&&(t.EventListenerAdded=!0,window.addEventListener("message",e=>{let i=typeof e.data=="string"?JSON.parse(e.data):e.data;if(i.eventNature=="ssoAjaxViewLoaded")this.ssoFormPropagatedHeight=i.formHeight?i.formHeight+5+"px":"inherit",document.getElementById("loginBoxIFrame").style.height=this.ssoFormPropagatedHeight;else{let r=i.code===2e3,o=typeof i.code=="string"&&i.code.match(/^[0-9a-f]{16,}$/);r||o?(this.onClose(),this.loginService.checkStatus()):this.loginService.resetData()}},!1))}hassoLoginBoxSrc(){return this.sanitizer.bypassSecurityTrustResourceUrl([this.ssoConfiguration.ssoHost+"/auth/authorize","?client_id="+this.ssoConfiguration.clientId,"&return_uri="+encodeURIComponent(this.ssoConfiguration.returnUrl),"&responsetype=event","&domain="+encodeURIComponent(window?.location.origin),"&ajaxMode=1&formId=Login"].join(""))}onLogin(){this.loginForm.valid&&(this.loading=!0,this.data?.url||(this.data={url:""}),this.loginService.login(this.loginForm.get("email").value,this.loginForm.get("password").value,this.data.url).subscribe({next:e=>{e&&e.token!==null&&e.token!==0&&e.status!=="error"?this.onClose():(this.error=e.message?e.message:"Bei der Anmeldung ist ein Fehler aufgetreten.",this.loading=!1)},error:e=>{this.error=e.error.message,this.loading=!1}}))}onClose(){t.DialogRef?.close()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-login-box"]],decls:6,vars:3,consts:[["id","loginBox"],[1,"close",3,"click"],["mat-dialog-title","",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"mat-typography"],["mat-dialog-title","",3,"innerHTML"],[1,"mat-typography",3,"keyup.enter","formGroup"],[2,"text-align","center","margin","5px"],["mat-raised-button","","color","primary",1,"me-3",3,"click","disabled","innerHTML"],["mat-raised-button","","color","primary","mat-dialog-close","",3,"innerHTML"],[1,"row"],[1,"col","alert","alert-danger"],[1,"col"],[3,"innerHTML"],["matInput","","formControlName","email","type","text","required","","email","","name","username","autocomplete","off"],["matInput","","formControlName","password","type","password","required","","name","password"],["title","","id","loginBoxIFrame",2,"border","none",3,"src"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"button",1),T("click",function(){return r.onClose()}),E(2,"\xD7"),m(),x(3,RZ,1,1,"h3",2)(4,HZ,6,6)(5,VZ,2,1,"mat-dialog-content",3),m()),i&2&&(c(3),f("appApplyIfNotEmpty",r.translationService.getTranslation("login_box_header")),c(),b(!(r.ssoConfiguration==null||r.ssoConfiguration.usage==null)&&r.ssoConfiguration.usage.toUpperCase().startsWith("OAUTHHASSO")?-1:4),c(),b(r.ssoConfiguration.usage!=null&&r.ssoConfiguration.usage.toUpperCase().startsWith("OAUTHHASSO")?5:-1))},dependencies:[ff,hf,Ge,Ot,Bt,At,Wt,ai,wf,bt,Ut,Nt,ei,gf,Ee,mf,Pt,Ht,ze],styles:[`iframe[_ngcontent-%COMP%]{border:none;height:100%}button[_ngcontent-%COMP%]{background-color:var(--buttonBackgroundColor);color:var(--buttonColor)}button.close[_ngcontent-%COMP%]{position:absolute;right:0;font-size:2em;line-height:1em;color:#000;background-color:transparent;border:none;z-index:10}button.close[_ngcontent-%COMP%]:focus, button.close[_ngcontent-%COMP%]:focus-visible{outline:none}mat-dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:center}mat-dialog-content[_ngcontent-%COMP%]{scrollbar-width:none;height:100%}#loginBox[_ngcontent-%COMP%]{height:100%}.SSOloginBox[_ngcontent-%COMP%] .mat-mdc-dialog-surface[_ngcontent-%COMP%] .mdc-dialog__surface[_ngcontent-%COMP%]{scrollbar-width:none} 33/*# sourceMappingURL=login-box.component-6CO4F6CN.css.map */`],changeDetection:0})}}return t})();var Fv=(()=>{class t{constructor(){this.dialog=d(Vs),this.loginService=d(ft),this.translationService=d(Y),this.isAuthenticated=!1,this.authData=null}ngOnInit(){this.authSub=this.loginService.getAuthData().subscribe(e=>{this.authData=e,this.isAuthenticated=!!e})}ngOnDestroy(){}onLogin(){let e=this.dialog.open(Rv,{panelClass:"SSOloginBox"})}onLogout(){this.loginService.logout()}onClickEvent(){this.isAuthenticated?this.onLogout():this.onLogin()}refresh(){this.loginService.refresh().subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-login"]],decls:1,vars:1,template:function(i,r){i&1&&E(0),i&2&&R("",r.isAuthenticated?r.translationService.getTranslation("logout"):r.translationService.getTranslation("login")," ")},styles:[`.login-button[_ngcontent-%COMP%]{padding:15px;cursor:pointer;color:#000;overflow:hidden;position:relative} 34/*# sourceMappingURL=login.component-XTAB4TZX.css.map */`]})}}return t})();var pn="top",Jn="bottom",Hn="right",An="left",Lv="auto",Nl=[pn,Jn,Hn,An],zs="start",zc="end",nL="clippingParents",Bv="viewport",Yu="popper",rL="reference",lE=Nl.reduce(function(t,n){return t.concat([n+"-"+zs,n+"-"+zc])}
vendor: 15,919 bytes, line 34
34,[]),Hv=[].concat(Nl,[Lv]).reduce(function(t,n){return t.concat([n,n+"-"+zs,n+"-"+zc])},[]),jZ="beforeRead",zZ="read",UZ="afterRead",GZ="beforeMain",$Z="main",WZ="afterMain",qZ="beforeWrite",YZ="write",KZ="afterWrite",oL=[jZ,zZ,UZ,GZ,$Z,WZ,qZ,YZ,KZ];function Vn(t){return t?(t.nodeName||"").toLowerCase():null}function Fi(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Wo(t){var n=Fi(t).Element;return t instanceof n||t instanceof Element}function kn(t){var n=Fi(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function Ku(t){if(typeof ShadowRoot>"u")return!1;var n=Fi(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function QZ(t){var n=t.state;Object.keys(n.elements).forEach(function(e){var i=n.styles[e]||{},r=n.attributes[e]||{},o=n.elements[e];!kn(o)||!Vn(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(a){var s=r[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function ZZ(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach(function(i){var r=n.elements[i],o=n.attributes[i]||{},a=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:e[i]),s=a.reduce(function(l,u){return l[u]="",l},{});!kn(r)||!Vn(r)||(Object.assign(r.style,s),Object.keys(o).forEach(function(l){r.removeAttribute(l)}))})}}var aL={name:"applyStyles",enabled:!0,phase:"write",fn:QZ,effect:ZZ,requires:["computeStyles"]};function jn(t){return t.split("-")[0]}var Da=Math.max,Uc=Math.min,Us=Math.round;function Qu(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Df(){return!/^((?!chrome|android).)*safari/i.test(Qu())}function qo(t,n,e){n===void 0&&(n=!1),e===void 0&&(e=!1);var i=t.getBoundingClientRect(),r=1,o=1;n&&kn(t)&&(r=t.offsetWidth>0&&Us(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Us(i.height)/t.offsetHeight||1);var a=Wo(t)?Fi(t):window,s=a.visualViewport,l=!Df()&&e,u=(i.left+(l&&s?s.offsetLeft:0))/r,g=(i.top+(l&&s?s.offsetTop:0))/o,v=i.width/r,w=i.height/o;return{width:v,height:w,top:g,right:u+v,bottom:g+w,left:u,x:u,y:g}}function Gc(t){var n=qo(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}function Tf(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&Ku(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function kr(t){return Fi(t).getComputedStyle(t)}function cE(t){return["table","td","th"].indexOf(Vn(t))>=0}function er(t){return((Wo(t)?t.ownerDocument:t.document)||window.document).documentElement}function Gs(t){return Vn(t)==="html"?t:t.assignedSlot||t.parentNode||(Ku(t)?t.host:null)||er(t)}function sL(t){return!kn(t)||kr(t).position==="fixed"?null:t.offsetParent}function XZ(t){var n=/firefox/i.test(Qu()),e=/Trident/i.test(Qu());if(e&&kn(t)){var i=kr(t);if(i.position==="fixed")return null}var r=Gs(t);for(Ku(r)&&(r=r.host);kn(r)&&["html","body"].indexOf(Vn(r))<0;){var o=kr(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||n&&o.willChange==="filter"||n&&o.filter&&o.filter!=="none")return r;r=r.parentNode}return null}function Ta(t){for(var n=Fi(t),e=sL(t);e&&cE(e)&&kr(e).position==="static";)e=sL(e);return e&&(Vn(e)==="html"||Vn(e)==="body"&&kr(e).position==="static")?n:e||XZ(t)||n}function $c(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Wc(t,n,e){return Da(t,Uc(n,e))}function lL(t,n,e){var i=Wc(t,n,e);return i>e?e:i}function Mf(){return{top:0,right:0,bottom:0,left:0}}function If(t){return Object.assign({},Mf(),t)}function Af(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}var JZ=function(n,e){return n=typeof n=="function"?n(Object.assign({},e.rects,{placement:e.placement})):n,If(typeof n!="number"?n:Af(n,Nl))};function eX(t){var n,e=t.state,i=t.name,r=t.options,o=e.elements.arrow,a=e.modifiersData.popperOffsets,s=jn(e.placement),l=$c(s),u=[An,Hn].indexOf(s)>=0,g=u?"height":"width";if(!(!o||!a)){var v=JZ(r.padding,e),w=Gc(o),C=l==="y"?pn:An,S=l==="y"?Jn:Hn,D=e.rects.reference[g]+e.rects.reference[l]-a[l]-e.rects.popper[g],O=a[l]-e.rects.reference[l],V=Ta(o),Q=V?l==="y"?V.clientHeight||0:V.clientWidth||0:0,ie=D/2-O/2,U=v[C],Me=Q-w[g]-v[S],Oe=Q/2-w[g]/2+ie,ae=Wc(U,Oe,Me),oe=l;e.modifiersData[i]=(n={},n[oe]=ae,n.centerOffset=ae-Oe,n)}}function tX(t){var n=t.state,e=t.options,i=e.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=n.elements.popper.querySelector(r),!r)||Tf(n.elements.popper,r)&&(n.elements.arrow=r))}var dE={name:"arrow",enabled:!0,phase:"main",fn:eX,effect:tX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yo(t){return t.split("-")[1]}var iX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nX(t,n){var e=t.x,i=t.y,r=n.devicePixelRatio||1;return{x:Us(e*r)/r||0,y:Us(i*r)/r||0}}function cL(t){var n,e=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,g=t.roundOffsets,v=t.isFixed,w=a.x,C=w===void 0?0:w,S=a.y,D=S===void 0?0:S,O=typeof g=="function"?g({x:C,y:D}):{x:C,y:D};C=O.x,D=O.y;var V=a.hasOwnProperty("x"),Q=a.hasOwnProperty("y"),ie=An,U=pn,Me=window;if(u){var Oe=Ta(e),ae="clientHeight",oe="clientWidth";if(Oe===Fi(e)&&(Oe=er(e),kr(Oe).position!=="static"&&s==="absolute"&&(ae="scrollHeight",oe="scrollWidth")),Oe=Oe,r===pn||(r===An||r===Hn)&&o===zc){U=Jn;var dt=v&&Oe===Me&&Me.visualViewport?Me.visualViewport.height:Oe[ae];D-=dt-i.height,D*=l?1:-1}if(r===An||(r===pn||r===Jn)&&o===zc){ie=Hn;var ut=v&&Oe===Me&&Me.visualViewport?Me.visualViewport.width:Oe[oe];C-=ut-i.width,C*=l?1:-1}}var Ze=Object.assign({position:s},u&&iX),lt=g===!0?nX({x:C,y:D},Fi(e)):{x:C,y:D};if(C=lt.x,D=lt.y,l){var Ft;return Object.assign({},Ze,(Ft={},Ft[U]=Q?"0":"",Ft[ie]=V?"0":"",Ft.transform=(Me.devicePixelRatio||1)<=1?"translate("+C+"px, "+D+"px)":"translate3d("+C+"px, "+D+"px, 0)",Ft))}return Object.assign({},Ze,(n={},n[U]=Q?D+"px":"",n[ie]=V?C+"px":"",n.transform="",n))}function rX(t){var n=t.state,e=t.options,i=e.gpuAcceleration,r=i===void 0?!0:i,o=e.adaptive,a=o===void 0?!0:o,s=e.roundOffsets,l=s===void 0?!0:s,u={placement:jn(n.placement),variation:Yo(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,cL(Object.assign({},u,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:l})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,cL(Object.assign({},u,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var dL={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rX,data:{}};var Vv={passive:!0};function oX(t){var n=t.state,e=t.instance,i=t.options,r=i.scroll,o=r===void 0?!0:r,a=i.resize,s=a===void 0?!0:a,l=Fi(n.elements.popper),u=[].concat(n.scrollParents.reference,n.scrollParents.popper);return o&&u.forEach(function(g){g.addEventListener("scroll",e.update,Vv)}),s&&l.addEventListener("resize",e.update,Vv),function(){o&&u.forEach(function(g){g.removeEventListener("scroll",e.update,Vv)}),s&&l.removeEventListener("resize",e.update,Vv)}}var uL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oX,data:{}};var aX={left:"right",right:"left",bottom:"top",top:"bottom"};function Zu(t){return t.replace(/left|right|bottom|top/g,function(n){return aX[n]})}var sX={start:"end",end:"start"};function jv(t){return t.replace(/start|end/g,function(n){return sX[n]})}function qc(t){var n=Fi(t),e=n.pageXOffset,i=n.pageYOffset;return{scrollLeft:e,scrollTop:i}}function Yc(t){return qo(er(t)).left+qc(t).scrollLeft}function uE(t,n){var e=Fi(t),i=er(t),r=e.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;var u=Df();(u||!u&&n==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s+Yc(t),y:l}}function pE(t){var n,e=er(t),i=qc(t),r=(n=t.ownerDocument)==null?void 0:n.body,o=Da(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Da(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+Yc(t),l=-i.scrollTop;return kr(r||e).direction==="rtl"&&(s+=Da(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Kc(t){var n=kr(t),e=n.overflow,i=n.overflowX,r=n.overflowY;return/auto|scroll|overlay|hidden/.test(e+r+i)}function zv(t){return["html","body","#document"].indexOf(Vn(t))>=0?t.ownerDocument.body:kn(t)&&Kc(t)?t:zv(Gs(t))}function Rl(t,n){var e;n===void 0&&(n=[]);var i=zv(t),r=i===((e=t.ownerDocument)==null?void 0:e.body),o=Fi(i),a=r?[o].concat(o.visualViewport||[],Kc(i)?i:[]):i,s=n.concat(a);return r?s:s.concat(Rl(Gs(a)))}function Xu(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lX(t,n){var e=qo(t,!1,n==="fixed");return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function pL(t,n,e){return n===Bv?Xu(uE(t,e)):Wo(n)?lX(n,e):Xu(pE(er(t)))}function cX(t){var n=Rl(Gs(t)),e=["absolute","fixed"].indexOf(kr(t).position)>=0,i=e&&kn(t)?Ta(t):t;return Wo(i)?n.filter(function(r){return Wo(r)&&Tf(r,i)&&Vn(r)!=="body"}):[]}function mE(t,n,e,i){var r=n==="clippingParents"?cX(t):[].concat(n),o=[].concat(r,[e]),a=o[0],s=o.reduce(function(l,u){var g=pL(t,u,i);return l.top=Da(g.top,l.top),l.right=Uc(g.right,l.right),l.bottom=Uc(g.bottom,l.bottom),l.left=Da(g.left,l.left),l},pL(t,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function kf(t){var n=t.reference,e=t.element,i=t.placement,r=i?jn(i):null,o=i?Yo(i):null,a=n.x+n.width/2-e.width/2,s=n.y+n.height/2-e.height/2,l;switch(r){case pn:l={x:a,y:n.y-e.height};break;case Jn:l={x:a,y:n.y+n.height};break;case Hn:l={x:n.x+n.width,y:s};break;case An:l={x:n.x-e.width,y:s};break;default:l={x:n.x,y:n.y}}var u=r?$c(r):null;if(u!=null){var g=u==="y"?"height":"width";switch(o){case zs:l[u]=l[u]-(n[g]/2-e[g]/2);break;case zc:l[u]=l[u]+(n[g]/2-e[g]/2);break;default:}}return l}function Fl(t,n){n===void 0&&(n={});var e=n,i=e.placement,r=i===void 0?t.placement:i,o=e.strategy,a=o===void 0?t.strategy:o,s=e.boundary,l=s===void 0?nL:s,u=e.rootBoundary,g=u===void 0?Bv:u,v=e.elementContext,w=v===void 0?Yu:v,C=e.altBoundary,S=C===void 0?!1:C,D=e.padding,O=D===void 0?0:D,V=If(typeof O!="number"?O:Af(O,Nl)),Q=w===Yu?rL:Yu,ie=t.rects.popper,U=t.elements[S?Q:w],Me=mE(Wo(U)?U:U.contextElement||er(t.elements.popper),l,g,a),Oe=qo(t.elements.reference),ae=kf({reference:Oe,element:ie,strategy:"absolute",placement:r}),oe=Xu(Object.assign({},ie,ae)),dt=w===Yu?oe:Oe,ut={top:Me.top-dt.top+V.top,bottom:dt.bottom-Me.bottom+V.bottom,left:Me.left-dt.left+V.left,right:dt.right-Me.right+V.right},Ze=t.modifiersData.offset;if(w===Yu&&Ze){var lt=Ze[r];Object.keys(ut).forEach(function(Ft){var ti=[Hn,Jn].indexOf(Ft)>=0?1:-1,on=[pn,Jn].indexOf(Ft)>=0?"y":"x";ut[Ft]+=lt[on]*ti})}return ut}function fE(t,n){n===void 0&&(n={});var e=n,i=e.placement,r=e.boundary,o=e.rootBoundary,a=e.padding,s=e.flipVariations,l=e.allowedAutoPlacements,u=l===void 0?Hv:l,g=Yo(i),v=g?s?lE:lE.filter(function(S){return Yo(S)===g}):Nl,w=v.filter(function(S){return u.indexOf(S)>=0});w.length===0&&(w=v);var C=w.reduce(function(S,D){return S[D]=Fl(t,{placement:D,boundary:r,rootBoundary:o,padding:a})[jn(D)],S},{});return Object.keys(C).sort(function(S,D){return C[S]-C[D]})}function dX(t){if(jn(t)===Lv)return[];var n=Zu(t);return[jv(t),n,jv(n)]}function uX(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var r=e.mainAxis,o=r===void 0?!0:r,a=e.altAxis,s=a===void 0?!0:a,l=e.fallbackPlacements,u=e.padding,g=e.boundary,v=e.rootBoundary,w=e.altBoundary,C=e.flipVariations,S=C===void 0?!0:C,D=e.allowedAutoPlacements,O=n.options.placement,V=jn(O),Q=V===O,ie=l||(Q||!S?[Zu(O)]:dX(O)),U=[O].concat(ie).reduce(function(Zt,no){return Zt.concat(jn(no)===Lv?fE(n,{placement:no,boundary:g,rootBoundary:v,padding:u,flipVariations:S,allowedAutoPlacements:D}):no)},[]),Me=n.rects.reference,Oe=n.rects.popper,ae=new Map,oe=!0,dt=U[0],ut=0;ut<U.length;ut++){var Ze=U[ut],lt=jn(Ze),Ft=Yo(Ze)===zs,ti=[pn,Jn].indexOf(lt)>=0,on=ti?"width":"height",ne=Fl(n,{placement:Ze,boundary:g,rootBoundary:v,altBoundary:w,padding:u}),ve=ti?Ft?Hn:An:Ft?Jn:pn;Me[on]>Oe[on]&&(ve=Zu(ve));var Fe=Zu(ve),mt=[];if(o&&mt.push(ne[lt]<=0),s&&mt.push(ne[ve]<=0,ne[Fe]<=0),mt.every(function(Zt){return Zt})){dt=Ze,oe=!1;break}ae.set(Ze,mt)}if(oe)for(var fi=S?3:1,an=function(no){var ps=U.find(function(Vi){var Cr=ae.get(Vi);if(Cr)return Cr.slice(0,no).every(function(nr){return nr})});if(ps)return dt=ps,"break"},Xi=fi;Xi>0;Xi--){var yr=an(Xi);if(yr==="break")break}n.placement!==dt&&(n.modifiersData[i]._skip=!0,n.placement=dt,n.reset=!0)}}var hE={name:"flip",enabled:!0,phase:"main",fn:uX,requiresIfExists:["offset"],data:{_skip:!1}};function pX(t,n,e){var i=jn(t),r=[An,pn].indexOf(i)>=0?-1:1,o=typeof e=="function"?e(Object.assign({},n,{placement:t})):e,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[An,Hn].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}function mX(t){var n=t.state,e=t.options,i=t.name,r=e.offset,o=r===void 0?[0,0]:r,a=Hv.reduce(function(g,v){return g[v]=pX(v,n.rects,o),g},{}),s=a[n.placement],l=s.x,u=s.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=l,n.modifiersData.popperOffsets.y+=u),n.modifiersData[i]=a}var gE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mX};function fX(t){var n=t.state,e=t.name;n.modifiersData[e]=kf({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}var mL={name:"popperOffsets",enabled:!0,phase:"read",fn:fX,data:{}};function _E(t){return t==="x"?"y":"x"}function hX(t){var n=t.state,e=t.options,i=t.name,r=e.mainAxis,o=r===void 0?!0:r,a=e.altAxis,s=a===void 0?!1:a,l=e.boundary,u=e.rootBoundary,g=e.altBoundary,v=e.padding,w=e.tether,C=w===void 0?!0:w,S=e.tetherOffset,D=S===void 0?0:S,O=Fl(n,{boundary:l,rootBoundary:u,padding:v,altBoundary:g}),V=jn(n.placement),Q=Yo(n.placement),ie=!Q,U=$c(V),Me=_E(U),Oe=n.modifiersData.popperOffsets,ae=n.rects.reference,oe=n.rects.popper,dt=typeof D=="function"?D(Object.assign({},n.rects,{placement:n.placement})):D,ut=typeof dt=="number"?{mainAxis:dt,altAxis:dt}:Object.assign({mainAxis:0,altAxis:0},dt),Ze=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,lt={x:0,y:0};if(Oe){if(o){var Ft,ti=U==="y"?pn:An,on=U==="y"?Jn:Hn,ne=U==="y"?"height":"width",ve=Oe[U],Fe=ve+O[ti],mt=ve-O[on],fi=C?-oe[ne]/2:0,an=Q===zs?ae[ne]:oe[ne],Xi=Q===zs?-oe[ne]:-ae[ne],yr=n.elements.arrow,Zt=C&&yr?Gc(yr):{width:0,height:0},no=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Mf(),ps=no[ti],Vi=no[on],Cr=Wc(0,ae[ne],Zt[ne]),nr=ie?ae[ne]/2-fi-Cr-ps-ut.mainAxis:an-Cr-ps-ut.mainAxis,ld=ie?-ae[ne]/2+fi+Cr+Vi+ut.mainAxis:Xi+Cr+Vi+ut.mainAxis,Ql=n.elements.arrow&&Ta(n.elements.arrow),Y4=Ql?U==="y"?Ql.clientTop||0:Ql.clientLeft||0:0,yT=(Ft=Ze?.[U])!=null?Ft:0,K4=ve+nr-yT-Y4,Q4=ve+ld-yT,CT=Wc(C?Uc(Fe,K4):Fe,ve,C?Da(mt,Q4):mt);Oe[U]=CT,lt[U]=CT-ve}if(s){var ST,Z4=U==="x"?pn:An,X4=U==="x"?Jn:Hn,Zl=Oe[Me],nh=Me==="y"?"height":"width",xT=Zl+O[Z4],wT=Zl-O[X4],ly=[pn,An].indexOf(V)!==-1,ET=(ST=Ze?.[Me])!=null?ST:0,DT=ly?xT:Zl-ae[nh]-oe[nh]-ET+ut.altAxis,TT=l
34y?Zl+ae[nh]+oe[nh]-ET-ut.altAxis:wT,MT=C&&ly?lL(DT,Zl,TT):Wc(C?DT:xT,Zl,C?TT:wT);Oe[Me]=MT,lt[Me]=MT-Zl}n.modifiersData[i]=lt}}var vE={name:"preventOverflow",enabled:!0,phase:"main",fn:hX,requiresIfExists:["offset"]};function bE(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function yE(t){return t===Fi(t)||!kn(t)?qc(t):bE(t)}function gX(t){var n=t.getBoundingClientRect(),e=Us(n.width)/t.offsetWidth||1,i=Us(n.height)/t.offsetHeight||1;return e!==1||i!==1}function CE(t,n,e){e===void 0&&(e=!1);var i=kn(n),r=kn(n)&&gX(n),o=er(n),a=qo(t,r,e),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((Vn(n)!=="body"||Kc(o))&&(s=yE(n)),kn(n)?(l=qo(n,!0),l.x+=n.clientLeft,l.y+=n.clientTop):o&&(l.x=Yc(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function _X(t){var n=new Map,e=new Set,i=[];t.forEach(function(o){n.set(o.name,o)});function r(o){e.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!e.has(s)){var l=n.get(s);l&&r(l)}}),i.push(o)}return t.forEach(function(o){e.has(o.name)||r(o)}),i}function SE(t){var n=_X(t);return oL.reduce(function(e,i){return e.concat(n.filter(function(r){return r.phase===i}))},[])}function xE(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}function wE(t){var n=t.reduce(function(e,i){var r=e[i.name];return e[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,e},{});return Object.keys(n).map(function(e){return n[e]})}var fL={placement:"bottom",modifiers:[],strategy:"absolute"};function hL(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function gL(t){t===void 0&&(t={});var n=t,e=n.defaultModifiers,i=e===void 0?[]:e,r=n.defaultOptions,o=r===void 0?fL:r;return function(s,l,u){u===void 0&&(u=o);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},fL,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},v=[],w=!1,C={state:g,setOptions:function(V){var Q=typeof V=="function"?V(g.options):V;D(),g.options=Object.assign({},o,g.options,Q),g.scrollParents={reference:Wo(s)?Rl(s):s.contextElement?Rl(s.contextElement):[],popper:Rl(l)};var ie=SE(wE([].concat(i,g.options.modifiers)));return g.orderedModifiers=ie.filter(function(U){return U.enabled}),S(),C.update()},forceUpdate:function(){if(!w){var V=g.elements,Q=V.reference,ie=V.popper;if(hL(Q,ie)){g.rects={reference:CE(Q,Ta(ie),g.options.strategy==="fixed"),popper:Gc(ie)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(ut){return g.modifiersData[ut.name]=Object.assign({},ut.data)});for(var U=0;U<g.orderedModifiers.length;U++){if(g.reset===!0){g.reset=!1,U=-1;continue}var Me=g.orderedModifiers[U],Oe=Me.fn,ae=Me.options,oe=ae===void 0?{}:ae,dt=Me.name;typeof Oe=="function"&&(g=Oe({state:g,options:oe,name:dt,instance:C})||g)}}}},update:xE(function(){return new Promise(function(O){C.forceUpdate(),O(g)})}),destroy:function(){D(),w=!0}};if(!hL(s,l))return C;C.setOptions(u).then(function(O){!w&&u.onFirstUpdate&&u.onFirstUpdate(O)});function S(){g.orderedModifiers.forEach(function(O){var V=O.name,Q=O.options,ie=Q===void 0?{}:Q,U=O.effect;if(typeof U=="function"){var Me=U({state:g,name:V,instance:C,options:ie}),Oe=function(){};v.push(Me||Oe)}})}function D(){v.forEach(function(O){return O()}),v=[]}return C}}var vX=[uL,mL,dL,aL],EE=gL({defaultModifiers:vX});var yL=["*"];function bX(t,n){if(t&1){let e=B();p(0,"button",7),T("click",function(){let r=A(e).$implicit,o=h();return o.focus(),k(o.select(r.id,o.NgbSlideEventSource.INDICATOR))}),m()}if(t&2){let e=n.$implicit,i=h();fe("active",e.id===i.activeId),ce("aria-labelledby","slide-"+e.id)("aria-controls","slide-"+e.id)("aria-selected",e.id===i.activeId)}}function yX(t,n){}function CX(t,n){if(t&1&&(p(0,"div",6)(1,"span",8),w_(2,0),m(),x(3,yX,0,0,"ng-template",9),m()),t&2){let e=n.$implicit,i=n.$index,r=n.$count;f("id","slide-"+e.id),c(2),WS(i+1)(r),y2(2),c(),f("ngTemplateOutlet",e.templateRef)}}function SX(t,n){if(t&1){let e=B();p(0,"button",10),T("click",function(){A(e);let r=h();return k(r.arrowLeft())}),_(1,"span",11),p(2,"span",12),w_(3,1),m()(),p(4,"button",13),T("click",function(){A(e);let r=h();return k(r.arrowRight())}),_(5,"span",14),p(6,"span",12),w_(7,2),m()()}if(t&2){let e=h();ce("aria-labelledby",e.id+"-previous"),c(2),f("id",e.id+"-previous"),c(2),ce("aria-labelledby",e.id+"-next"),c(2),f("id",e.id+"-next")}}var xX=["dialog"];var CL={animation:!0,transitionTimerDelayMs:5},Wv=(()=>{class t{constructor(){this.animation=CL.animation}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function wX(t){let{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t),i=parseFloat(n),r=parseFloat(e);return(i+r)*1e3}function AE(t){return typeof t=="string"}function DE(t){return t!=null}function EX(t){return t&&t.then}function DX(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}function qv(t){return(t||document.body).getBoundingClientRect()}function TX(t){return n=>new je(e=>{let i=a=>t.run(()=>e.next(a)),r=a=>t.run(()=>e.error(a)),o=()=>t.run(()=>e.complete());return n.subscribe({next:i,error:r,complete:o})})}var MX=()=>{},{transitionTimerDelayMs:IX}=CL,Of=new Map,Ko=(t,n,e,i)=>{let r=i.context||{},o=Of.get(n);if(o)switch(i.runningTransition){case"continue":return ht;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Of.delete(n)}let a=e(n,i.animation,r)||MX;if(!i.animation||window.getComputedStyle(n).transitionProperty==="none")return t.run(()=>a()),j(void 0).pipe(TX(t));let s=new G,l=new G,u=s.pipe(Vy(!0));Of.set(n,{transition$:s,complete:()=>{l.next(),l.complete()},context:r});let g=wX(n);return t.runOutsideAngular(()=>{let v=xr(n,"transitionend").pipe(We(u),Ue(({target:C})=>C===n)),w=Po(g+IX).pipe(We(u));Vh(w,v,l).pipe(We(u)).subscribe(()=>{Of.delete(n),t.run(()=>{a(),s.next(),s.complete()})})}),s.asObservable()},AX=t=>{Of.get(t)?.complete()};function kX(t,n){if(typeof navigator>"u")return"0px";let{classList:e}=t,i=e.contains("show");i||e.add("show"),t.style[n]="";let r=t.getBoundingClientRect()[n]+"px";return i||e.remove("show"),r}var OX=(t,n,e)=>{let{direction:i,maxSize:r,dimension:o}=e,{classList:a}=t;function s(){a.add("collapse"),i==="show"?a.add("show"):a.remove("show")}if(!n){s();return}return r||(r=kX(t,o),e.maxSize=r,t.style[o]=i!=="show"?r:"0px",a.remove("collapse","collapsing","show"),qv(t),a.add("collapsing")),t.style[o]=i==="show"?r:"0px",()=>{s(),a.remove("collapsing"),t.style[o]=""}},PX=(()=>{class t{constructor(){this._ngbConfig=d(Wv),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),SL=(()=>{class t{constructor(){this._config=d(PX),this._element=d(ue),this._zone=d(de),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new z,this.horizontal=this._config.horizontal,this.shown=new z,this.hidden=new z}set collapsed(e){this._isCollapsed!==e&&(this._isCollapsed=e,this._afterInit&&this._runTransitionWithEvents(e,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(e=this._isCollapsed){this.collapsed=!e,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(e,i){return Ko(this._zone,this._element.nativeElement,OX,{animation:i,runningTransition:"stop",context:{direction:e?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(e,i){this._runTransition(e,i).subscribe(()=>{e?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=$({type:t,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,r){i&2&&fe("collapse-horizontal",r.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]})}}return t})();var xL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var wL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})(),NX=(()=>{class t{constructor(){this._ngbConfig=d(Wv),this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ju=function(t){return t.START="start",t.END="end",t}(Ju||{}),EL=({classList:t})=>t.contains("carousel-item-start")||t.contains("carousel-item-end"),kE=t=>{t.remove("carousel-item-start","carousel-item-end")},Gv=t=>{kE(t),t.remove("carousel-item-prev","carousel-item-next")},RX=(t,n,{direction:e})=>{let{classList:i}=t;if(!n){Gv(i),i.add("active");return}return EL(t)?kE(i):(i.add("carousel-item-"+(e===Ju.START?"next":"prev")),qv(t),i.add("carousel-item-"+e)),()=>{Gv(i),i.add("active")}},FX=(t,n,{direction:e})=>{let{classList:i}=t;if(!n){Gv(i),i.remove("active");return}return EL(t)?kE(i):i.add("carousel-item-"+e),()=>{Gv(i),i.remove("active")}},LX=0,BX=0,OE=(()=>{class t{constructor(){this.templateRef=d(ii),this.id=`ngb-slide-${LX++}`,this.slid=new z}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=$({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"}})}}return t})(),DL=(()=>{class t{constructor(){this.NgbSlideEventSource=Pf,this._config=d(NX),this._platformId=d(Qe),this._ngZone=d(de),this._cd=d(Je),this._container=d(ue),this._destroyRef=d(Vr),this._injector=d(Ne),this._interval$=new Gt(this._config.interval),this._mouseHover$=new Gt(!1),this._focused$=new Gt(!1),this._pauseOnHover$=new Gt(this._config.pauseOnHover),this._pauseOnFocus$=new Gt(this._config.pauseOnFocus),this._pause$=new Gt(!1),this._wrap$=new Gt(this._config.wrap),this.id=`ngb-carousel-${BX++}`,this.animation=this._config.animation,this.keyboard=this._config.keyboard,this.showNavigationArrows=this._config.showNavigationArrows,this.showNavigationIndicators=this._config.showNavigationIndicators,this.slide=new z,this.slid=new z,this._transitionIds=null}set interval(e){this._interval$.next(e)}get interval(){return this._interval$.value}set wrap(e){this._wrap$.next(e)}get wrap(){return this._wrap$.value}set pauseOnHover(e){this._pauseOnHover$.next(e)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(e){this._pauseOnFocus$.next(e)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(e){this._mouseHover$.next(e)}
34get mouseHover(){return this._mouseHover$.value}set focused(e){this._focused$.next(e)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(Pf.ARROW_LEFT)}arrowRight(){this.focus(),this.next(Pf.ARROW_RIGHT)}ngAfterContentInit(){nt(this._platformId)&&this._ngZone.runOutsideAngular(()=>{let e=ra([this.slide.pipe(F(i=>i.current),Yt(this.activeId)),this._wrap$,this.slides.changes.pipe(Yt(null))]).pipe(F(([i,r])=>{let o=this.slides.toArray(),a=this._getSlideIdxById(i);return r?o.length>1:a<o.length-1}),rr());ra([this._pause$,this._pauseOnHover$,this._mouseHover$,this._pauseOnFocus$,this._focused$,this._interval$,e]).pipe(F(([i,r,o,a,s,l,u])=>i||r&&o||a&&s||!u?0:l),rr(),Qt(i=>i>0?Po(i,i):Ly),Fu(this._destroyRef)).subscribe(()=>this._ngZone.run(()=>this.next(Pf.TIMER)))}),this.slides.changes.pipe(Fu(this._destroyRef)).subscribe(()=>{this._transitionIds?.forEach(e=>AX(this._getSlideElement(e))),this._transitionIds=null,this._cd.markForCheck(),Ti({mixedReadWrite:()=>{for(let{id:e}of this.slides){let i=this._getSlideElement(e);e===this.activeId?i.classList.add("active"):i.classList.remove("active")}}},{injector:this._injector})})}ngAfterContentChecked(){let e=this._getSlideById(this.activeId);this.activeId=e?e.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){let e=this._getSlideElement(this.activeId);e&&e.classList.add("active")}}select(e,i){this._cycleToSelected(e,this._getSlideEventDirection(this.activeId,e),i)}prev(e){this._cycleToSelected(this._getPrevSlide(this.activeId),Ju.END,e)}next(e){this._cycleToSelected(this._getNextSlide(this.activeId),Ju.START,e)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(e,i,r){let o=this._transitionIds;if(o&&(o[0]!==e||o[1]!==this.activeId))return;let a=this._getSlideById(e);if(a&&a.id!==this.activeId){this._transitionIds=[this.activeId,e],this.slide.emit({prev:this.activeId,current:a.id,direction:i,paused:this._pause$.value,source:r});let s={animation:this.animation,runningTransition:"stop",context:{direction:i}},l=[],u=this._getSlideById(this.activeId);if(u){let C=Ko(this._ngZone,this._getSlideElement(u.id),FX,s);C.subscribe(()=>{u.slid.emit({isShown:!1,direction:i,source:r})}),l.push(C)}let g=this.activeId;this.activeId=a.id;let v=this._getSlideById(this.activeId),w=Ko(this._ngZone,this._getSlideElement(a.id),RX,s);w.subscribe(()=>{v?.slid.emit({isShown:!0,direction:i,source:r})}),l.push(w),Cd(...l).pipe(Et(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:g,current:a.id,direction:i,paused:this._pause$.value,source:r})})}this._cd.markForCheck()}_getSlideEventDirection(e,i){let r=this._getSlideIdxById(e),o=this._getSlideIdxById(i);return r>o?Ju.END:Ju.START}_getSlideById(e){return this.slides.find(i=>i.id===e)||null}_getSlideIdxById(e){let i=this._getSlideById(e);return i!=null?this.slides.toArray().indexOf(i):-1}_getNextSlide(e){let i=this.slides.toArray(),r=this._getSlideIdxById(e);return r===i.length-1?this.wrap?i[0].id:i[i.length-1].id:i[r+1].id}_getPrevSlide(e){let i=this.slides.toArray(),r=this._getSlideIdxById(e);return r===0?this.wrap?i[i.length-1].id:i[0].id:i[r-1].id}_getSlideElement(e){return this._container.nativeElement.querySelector(`#slide-${e}`)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["ngb-carousel"]],contentQueries:function(i,r,o){if(i&1&&Kt(o,OE,4),i&2){let a;se(a=le())&&(r.slides=a)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(i,r){i&1&&T("keydown.arrowLeft",function(){return r.keyboard&&r.arrowLeft()})("keydown.arrowRight",function(){return r.keyboard&&r.arrowRight()})("mouseenter",function(){return r.mouseHover=!0})("mouseleave",function(){return r.mouseHover=!1})("focusin",function(){return r.focused=!0})("focusout",function(){return r.focused=!1}),i&2&&(ce("aria-activedescendant","slide-"+r.activeId),sn("display","block"))},inputs:{animation:"animation",activeId:"activeId",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],decls:7,vars:3,consts:()=>{let e;e=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number: Slide ${"\uFFFD0\uFFFD"}:INTERPOLATION: of ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: `;let i;i=$localize`:@@ngb.carousel.previous:Previous`;let r;return r=$localize`:@@ngb.carousel.next:Next`,[e,i,r,["role","tablist",1,"carousel-indicators"],["type","button","data-bs-target","","role","tab",3,"active"],[1,"carousel-inner"],["role","tabpanel",1,"carousel-item",3,"id"],["type","button","data-bs-target","","role","tab",3,"click"],[1,"visually-hidden"],[3,"ngTemplateOutlet"],["type","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],[1,"visually-hidden",3,"id"],["type","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"]]},template:function(i,r){i&1&&(p(0,"div",3),W(1,bX,1,5,"button",4,X),m(),p(3,"div",5),W(4,CX,4,4,"div",6,X),m(),x(6,SX,8,4)),i&2&&(fe("visually-hidden",!r.showNavigationIndicators),c(),q(r.slides),c(3),q(r.slides),c(2),b(r.showNavigationArrows?6:-1))},dependencies:[Ya],encapsulation:2,changeDetection:0})}}return t})(),Pf=function(t){return t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator",t}(Pf||{}),TL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})(),ML=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var Uv=(t,n)=>n?n.some(e=>e.contains(t)):!1,_L=(t,n)=>!n||DX(t,n)!=null,HX=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,n=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||n()):!1})(),VX=t=>HX?()=>setTimeout(()=>t(),100):t;function jX(t,n,e,i,r,o,a,s){e&&t.runOutsideAngular(VX(()=>{let l=w=>{let C=w.target;return w.button===2||Uv(C,a)?!1:e==="inside"?Uv(C,o)&&_L(C,s):e==="outside"?!Uv(C,o):_L(C,s)||!Uv(C,o)},u=xr(n,"keydown").pipe(We(r),Ue(w=>w.key==="Escape"),jt(w=>w.preventDefault())),g=xr(n,"mousedown").pipe(F(l),We(r)),v=xr(n,"mouseup").pipe(kp(g),Ue(([w,C])=>C),Ap(0),We(r));Vh([u.pipe(F(w=>0)),v.pipe(F(w=>1))]).subscribe(w=>t.run(()=>
34i(w)))}))}var zX=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function IL(t){let n=Array.from(t.querySelectorAll(zX)).filter(e=>e.tabIndex!==-1);return[n[0],n[n.length-1]]}var UX=(t,n,e,i=!1)=>{t.runOutsideAngular(()=>{let r=xr(n,"focusin").pipe(We(e),F(o=>o.target));xr(n,"keydown").pipe(We(e),Ue(o=>o.key==="Tab"),kp(r)).subscribe(([o,a])=>{let[s,l]=IL(n);(a===s||a===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),a===l&&!o.shiftKey&&(s.focus(),o.preventDefault())}),i&&xr(n,"click").pipe(We(e),kp(r),F(o=>o[1])).subscribe(o=>o.focus())})},GX=(()=>{class t{constructor(){this._element=d(Se).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$X=/\s+/,WX=/ +/gi,qX={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function YX(t,n){let[e,i]=qX[t];return n&&i||e}var KX=/^left/,QX=/^right/,ZX=/^start/,XX=/^end/;function JX(t,n){let[e,i]=n.split("-"),r=e.replace(KX,"start").replace(QX,"end"),o=[r];if(i){let a=i;(e==="left"||e==="right")&&(a=a.replace(ZX,"top").replace(XX,"bottom")),o.push(`${r}-${a}`)}return t&&(o=o.map(a=>`${t}-${a}`)),o.join(" ")}function vL({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split($X),r=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],o=i.findIndex(u=>u==="auto");o>=0&&r.forEach(function(u){i.find(g=>g.search("^"+u)!==-1)==null&&i.splice(o++,1,u)});let a=i.map(u=>YX(u,e.isRTL()));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:u}){let g=new RegExp(n+"(-[a-z]+)*","gi"),v=u.elements.popper,w=u.placement,C=v.className;C=C.replace(g,""),C+=` ${JX(n,w)}`,C=C.trim().replace(WX," "),v.className=C}},hE,vE,dE,{enabled:!0,name:"flip",options:{fallbackPlacements:a}}]}}function bL(t){return t}function eJ(){let t=d(GX),n=null;return{createPopper(e){if(!n){let r=(e.updatePopperOptions||bL)(vL(e,t));n=EE(e.hostElement,e.targetElement,r)}},update(){n&&n.update()},setOptions(e){if(n){let r=(e.updatePopperOptions||bL)(vL(e,t));n.setOptions(r)}},destroy(){n&&(n.destroy(),n=null)}}}function tJ(t){return n=>(n.modifiers.push(gE,{name:"offset",options:{offset:()=>t}}),n)}var Jze=new Date(1882,10,12),eUe=new Date(2174,10,25);var tUe=1e3*60*60*24;var PE=1080,iJ=24*PE,nJ=12*PE+793,iUe=29*iJ+nJ,nUe=11*PE+204;var AL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var kL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})(),rJ=(()=>{class t{constructor(){this._ngbConfig=d(Wv),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),$s=class{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}},TE=class{constructor(n){this._componentType=n,this._windowRef=null,this._contentRef=null,this._document=d(Se),this._applicationRef=d(Ui),this._injector=d(Ne),this._viewContainerRef
34=d(bi),this._ngZone=d(de)}open(n,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:r}=this._windowRef.location,o=new G;Ti({mixedReadWrite:()=>{o.next(),o.complete()}},{injector:this._injector});let a=o.pipe(ci(()=>Ko(this._ngZone,r,({classList:s})=>s.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(n=!1){return this._windowRef?Ko(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(jt(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):j(void 0)}_getContentRef(n,e){if(n)if(n instanceof ii){let i=n.createEmbeddedView(e);return this._applicationRef.attachView(i),new $s([i.rootNodes],i)}else return new $s([[this._document.createTextNode(`${n}`)]]);else return new $s([])}},oJ=(()=>{class t{constructor(){this._document=d(Se)}hide(){let e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:a}=r;if(e>0){let s=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${s+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=a),r.overflow=o}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),aJ=(()=>{class t{constructor(){this._nativeElement=d(ue).nativeElement,this._zone=d(de),this._injector=d(Ne)}ngOnInit(){Ti({mixedReadWrite:()=>Ko(this._zone,this._nativeElement,(e,i)=>{i&&qv(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return Ko(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,r){i&2&&(Mi("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),fe("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return t})(),$v=class{update(n){}close(n){}dismiss(n){}},sJ=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],lJ=["animation","backdropClass"],ME=class{_applyWindowOptions(n,e){sJ.forEach(i=>{DE(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){lJ.forEach(i=>{DE(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(We(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(We(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new G,this._dismissed=new G,this._hidden=new G,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,a)=>{this._resolve=o,this._reject=a}),this.result.then(null,()=>{})}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(n);else{let e=this._beforeDismiss();EX(e)?e.then(i=>{i!==!1&&this._dismiss(n)},()=>{}):e!==!1&&this._dismiss(n)}}_removeModalElements(){let n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():j(void 0);n.subscribe(()=>{let{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Cd(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},IE=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(IE||{}),cJ=(()=>{class t{constructor(){this._document=d(Se),this._elRef=d(ue),this._zone=d(de),this._injector=d(Ne),this._closed$=new G,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new z,this.shown=new G,this.hidden=new G}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":AE(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,Ti({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},r=Ko(this._zone,e,()=>e.classList.remove("show"),i),o=Ko(this._zone,this._dialogEl.nativeElement,()=>{},i),a=Cd(r,o);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let e={animation:this.animation,runningTransition:"continue"},i=Ko(this._zone,this._elRef.nativeElement,(o,a)=>{a&&qv(o),o.classList.add("show")},e),r=Ko(this._zone,this._dialogEl.nativeElement,()=>{},e);Cd(i,r).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{xr(e,"keydown").pipe(We(this._closed$),Ue(r=>r.key==="Escape")).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(IE.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let i=!1;xr(this._dialogEl.nativeElement,"mousedown").pipe(We(this._closed$),jt(()=>i=!1),Qt(()=>xr(e,"mouseup").pipe(We(this._closed$),Et(1))),Ue(({target:r})=>e===r)).subscribe(()=>{i=!0}),xr(e,"click").pipe(We(this._closed$)).subscribe(({target:r})=>{e===r&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!i&&this._zone.run(()=>this.dismiss(IE.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){let i=e.querySelector("[ngbAutofocus]"),r=IL(e)[0];(i||r||e).focus()}}_restoreFocus(){let e=this._document.body,i=this._elWithFocus,r;i&&i.focus&&e.contains(i)?r=i:r=e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Ko(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(i,r){if(i&1&&De(xX,7),i&2){let o;se(o=le())&&(r._dialogEl=o.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(i,r){i&2&&(ce("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy)("role",r.role),Mi("modal d-block"+(r.windowClass?" "+r.windowClass:"")),fe("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:yL,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,r){i&1&&(_t(),p(0,"div",1,0)(2,"div",2),Ve(3),m()()),i&2&&Mi("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden} 35`],encapsulation:2})}}return t})(),dJ=(()=>{class t{constructor(){this._applicationRef=d(Ui),this._injector=d(Ne),this._environmentInjector=d(hi),this._document=d(Se),this._scrollBar=d(oJ),this._activeWindowCmptHasChanged=new G,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRef
35s=[],this._windowCmpts=[],this._activeInstances=new z;let e=d(de);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let i=this._windowCmpts[this._windowCmpts.length-1];UX(e,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){let e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){let o=r.container instanceof HTMLElement?r.container:DE(r.container)?this._document.querySelector(r.container):this._document.body;if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new $v;e=r.injector||e;let s=e.get(hi,null)||this._environmentInjector,l=this._getContentRef(e,s,i,a,r),u=r.backdrop!==!1?this._attachBackdrop(o):void 0,g=this._attachWindowComponent(o,l.nodes),v=new ME(g,l,u,r.beforeDismiss);return this._registerModalRef(v),this._registerWindowCmpt(g),v.hidden.pipe(Et(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=w=>{v.close(w)},a.dismiss=w=>{v.dismiss(w)},a.update=w=>{v.update(w)},v.update(r),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),g.changeDetectorRef.detectChanges(),v}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=gl(aJ,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=gl(cJ,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_getContentRef(e,i,r,o,a){return r?r instanceof ii?this._createFromTemplateRef(r,o):AE(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,a):new $s([])}_createFromTemplateRef(e,i){let r={$implicit:i,close(a){i.close(a)},dismiss(a){i.dismiss(a)}},o=e.createEmbeddedView(r);return this._applicationRef.attachView(o),new $s([o.rootNodes],o)}_createFromString(e){let i=this._document.createTextNode(`${e}`);return new $s([[i]])}_createFromComponent(e,i,r,o,a){let s=Ne.create({providers:[{provide:$v,useValue:o}],parent:e}),l=gl(r,{environmentInjector:i,elementInjector:s}),u=l.location.nativeElement;return a.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new $s([[u]],l.hostView,l)}_setAriaHidden(e){let i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&r.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){let i=()=>{let r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{let i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),uJ=(()=>{class t{constructor(){this._injector=d(Ne),this._modalStack=d(dJ),this._config=d(rJ)}open(e,i={}){let r=N(re(N({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),OL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({providers:[uJ]})}}return t})();var PL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var NL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})(),pJ={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function mJ(t){let n=(t||"").trim();if(n.length===0)return[];let e=n.split(/\s+/).map(r=>r.split(":")).map(r=>pJ[r[0]]||r),i=e.filter(r=>r.includes("manual"));if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(i.length===1&&e.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i.length?[]:e}function fJ(t,n,e,i,r,o=0,a=0){let s=mJ(n);if(s.length===0)return()=>{};let l=new Set,u=[],g;function v(C,S){t.addEventListener(C,S),u.push(()=>t.removeEventListener(C,S))}function w(C,S){clearTimeout(g),S>0?g=setTimeout(C,S):C()}for(let[C,S]of s)S?(v(C,()=>{l.add(C),w(()=>l.size>0&&i(),o)}),v(S,()=>{l.delete(C),w(()=>l.size===0&&r(),a)})):v(C,()=>e()?w(r,a):w(i,o));return()=>u.forEach(C=>C())}var RL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var FL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var LL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var BL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var HL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var VL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})(),hJ=(()=>{class t{constructor(){this._ngbConfig=d(Wv),this.autoClose=!0,this.placement="auto",this.popperOptions=e=>e,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),gJ=0,_J=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(i,r){i&2&&(yi("id",r.id),Mi("tooltip"+(r.tooltipClass?" "+r.tooltipClass:"")),fe("fade",r.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:yL,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(i,r){i&1&&(_t(),_(0,"div",0),p(1,"div",1),Ve(2),m())},styles:[`ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-en
35d{padding-top:0;padding-bottom:0} 36`],encapsulation:2,changeDetection:0})}}return t})(),jL=(()=>{class t{constructor(){this._config=d(hJ),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new z,this.hidden=new z,this._nativeElement=d(ue).nativeElement,this._ngZone=d(de),this._document=d(Se),this._changeDetector=d(Je),this._injector=d(Ne),this._ngbTooltipWindowId=`ngb-tooltip-${gJ++}`,this._popupService=new TE(_J),this._windowRef=null,this._positioning=eJ()}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){let{windowRef:i,transition$:r}=this._popupService.open(this._ngbTooltip,e??this.tooltipContext,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,baseClass:"bs-tooltip",updatePopperOptions:o=>this.popperOptions(tJ([0,6])(o))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=Ts({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector})}),jX(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),r.subscribe(()=>this.shown.emit())}}close(e=this.animation){this._windowRef!=null&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(e).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=fJ(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&this._windowRef.setInput("tooltipClass",e.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(AE(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=$({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[Xe]})}}return t})(),zL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var rUe=new H("live announcer delay",{providedIn:"root",factory:()=>100});var UL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var GL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})(),vJ=[xL,wL,TL,ML,AL,kL,OL,PL,GL,NL,RL,FL,LL,BL,HL,VL,zL,UL],$L=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({imports:[vJ,xL,wL,TL,ML,AL,kL,OL,PL,GL,NL,RL,FL,LL,BL,HL,VL,zL,UL]})}}return t})();var bJ=["login"];function yJ(t,n){if(t&1){let e=B();p(0,"a",12),T("click",function(){A(e);let r=h(3).$implicit,o=h(2);
36return k(o.navigateToExternRoute(r))}),E(1),m()}if(t&2){let e=h(3).$implicit;c(),he(e.description)}}function CJ(t,n){if(t&1&&(p(0,"a",11),E(1),m()),t&2){let e=h(3).$implicit;f("routerLink",e.link),c(),he(e.description)}}function SJ(t,n){if(t&1&&x(0,yJ,2,1,"a",10)(1,CJ,2,2,"a",11),t&2){let e=h(2).$implicit;b(e.isExtern?0:1)}}function xJ(t,n){if(t&1){let e=B();p(0,"a",13),T("keydown.space",function(){A(e);let r=h(4);return k(r.onClickEvent())})("keydown.enter",function(){A(e);let r=h(4);return k(r.onClickEvent())})("click",function(){A(e);let r=h(4);return k(r.onClickEvent())}),_(1,"app-login",null,0),m()}}function wJ(t,n){if(t&1){let e=B();p(0,"li",8),T("click",function(){A(e);let r=h(3);return k(r.isCollapsed=!r.isCollapsed)}),x(1,SJ,2,1)(2,xJ,3,0,"a",9),m()}if(t&2){let e=h().$implicit;c(),b(e.link!=="login"?1:2)}}function EJ(t,n){if(t&1&&x(0,wJ,3,1,"li",7),t&2){let e=n.$implicit;b(e.showInNavigation?0:-1)}}function DJ(t,n){if(t&1){let e=B();p(0,"nav",1)(1,"button",2),T("click",function(){A(e);let r=h();return k(r.isCollapsed=!r.isCollapsed)}),_(2,"span",3),m(),p(3,"div",4)(4,"div",5)(5,"ul",6),W(6,EJ,1,1,null,null,X),m()()()()}if(t&2){let e=h();c(4),f("ngbCollapse",e.isCollapsed),c(),f("className","navbar-nav navigation__list"+(e.horizontalNavigation&&e.isCollapsed?"flex-row navigation__list--horizontal":"flex-column navigation__list--vertical")),c(),q(e.filteredLinks)}}var WL=(()=>{class t{constructor(){this.translationService=d(Y),this.configService=d(Ce),this.loginService=d(ft),this.redirectService=d(Ln),this.route=d(Ye),this.landingPageService=d(Wi),this.isAuthenticated=!1,this.CssPropertiesEnum=tt,this.activeRoute=null,this.horizontalNavigation=!0,this.isCollapsed=!0,this.loginService.getAuthData().subscribe(e=>{this.isAuthenticated=!!e,this.buildLinkList()}),this.route.url.subscribe(e=>{this.activeRoute=""}),this.landingPageService.getLandingPages().subscribe(e=>{e&&e.length>0&&(this.links=e,this.buildLinkList())})}buildLinkList(){let e=[];this.links&&this.links.forEach(i=>{let r=i.showBeforeLogin&&!this.isAuthenticated,o=i.showAfterLogin&&this.isAuthenticated;(r||o)&&e.push(i)}),this.filteredLinks=e}onClickEvent(){this.loginComponent.onClickEvent()}navigateToExternRoute(e){this.redirectService.redirect(e.externLink,!0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-navigation"]],viewQuery:function(i,r){if(i&1&&De(bJ,5),i&2){let o;se(o=le())&&(r.loginComponent=o.first)}},inputs:{horizontalNavigation:"horizontalNavigation"},decls:1,vars:1,consts:[["login",""],[1,"navbar","navbar-expand-xxl","navbar-light","navigation","navigation--main"],["type","button","data-bs-toggle","collapse","data-bs-target","#WebAboNav","aria-controls","WebAboNav","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navigation__toggler","mt-3",3,"click"],[1,"navbar-toggler-icon","navigation__toggler-icon"],[2,"position","relative","width","100%"],["id","WebAboNav",1,"collapse","navbar-collapse","navigation__collapse",3,"ngbCollapse"],[3,"className"],[1,"nav-item","navigation__item"],[1,"nav-item","navigation__item",3,"click"],["tabindex","0",1,"nav-link","navigation__link","navigation__link--login"],[1,"nav-link","navigation__link","navigation__link--extern"],["routerLinkActive","active","data-cy","navLink",1,"nav-link","navigation__link",3,"routerLink"],[1,"nav-link","navigation__link","navigation__link--extern",3,"click"],["tabindex","0",1,"nav-link","navigation__link","navigation__link--login",3,"keydown.space","keydown.enter","click"]],template:function(i,r){i&1&&x(0,DJ,8,2,"nav",1),i&2&&b((r.filteredLinks==null?null:r.filteredLinks.length)>0?0:-1)},dependencies:[SL,Lo,$m,Fv],styles:[`.navbar[_ngcontent-%COMP%]{padding:unset}button[_ngcontent-%COMP%]{margin-bottom:0!important}@media screen and (max-width: 1399px){#WebAboNav[_ngcontent-%COMP%]{position:absolute;top:0;left:0;z-index:100;border:1px solid var(--navi-active-color)}}@media screen and (min-width: 1400px){#WebAboNav[_ngcontent-%COMP%] li.nav-item[_ngcontent-%COMP%]:first-of-type a[_ngcontent-%COMP%]{padding-left:0!important}} 37/*# sourceMappingURL=navigation.component-PEVRF7WF.css.map */`]})}}return t})();function TJ(t,n){t&1&&_(0,"app-breadcrumb",4)}function MJ(t,n){if(t&1&&(p(0,"div",2)(1,"div",3),x(2,TJ,1,0,"app-breadcrumb",4),p(3,"div",5),_(4,"router-outlet",6),m()()()),t&2){let e=h();c(2),b(e.useBreadCrumb?2:-1)}}function IJ(t,n){if(t&1&&(p(0,"div",7),_(1,"app-navigation",8),m()),t&2){let e=h(2);f("className",(e.horizontalNavigation?"col-md-12":"col-md-3")+" app__navigation"),c(),f("horizontalNavigation",e.horizontalNavigation)}}function AJ(t,n){t&1&&_(0,"app-breadcrumb",4)}function kJ(t,n){if(t&1&&(x(0,IJ,2,2,"div",7),p(1,"div",7)(2,"div",3),x(3,AJ,1,0,"app-breadcrumb",4),p(4,"div",5),_(5,"router-outlet",6),m()()()),t&2){let e=h();b(e.useBreadCrumb?-1:0),c(),f("className",(e.horizontalNavigation?"col-md-12":"col-md-9")+(e.useBreadCrumb?"":" mt-3")+" app__main app__main--with-nav"),c(2),b(e.useBreadCrumb?3:-1)}}var qL=(()=>{class t{constructor(){this.router=d(et),this.loginService=d(ft),this.configService=d(Ce),this.cssService=d(FR),this.vHostService=d(Ai),this.websocketService=d(av),this.route=d(Ye),this.landingPageService=d(Wi),this.orderTrackingService=d(Gr),this.platformId=d(Qe),this.title="webabo",this.useLandingPage=Rn.USE_LANDING_PAGE,this.useBreadCrumb=Rn.USE_BREADCRUMB,this.horizontalNavigation=!0,this.cssPropertiesEnum=tt,this.hideNavigation=!1,this.showNavigation=!0;let e=this.loginService,i=this.platformId;nt(i)&&window.dataLayer&&(dataLayer=window.dataLayer),this.route.queryParams.subscribe(r=>{this.hideNavigation=!!r.hideNavigation}
37),this.loadLayoutConfig(),this.router.events.forEach(r=>{if(r instanceof Dn){this.horizontalNavigation=this.configService.getConfig("horizontalNavigation")?.asBoolean()??this.horizontalNavigation;let o={event:"page",pageName:r.url};this.orderTrackingService?.pushEvent(Fn.SITE_NAVIGATION,o)}}),e.isChildUser$.subscribe(r=>{r&&this.router.navigateByUrl("/child-user-info",{skipLocationChange:!0})}),this.cssService?.setStyles()?.subscribe(),this.vHostService.vHost?.css?.forEach(r=>{r&&r.key==="css.customCss"&&this.cssService.appendCss(r.value)})}loadLayoutConfig(){this.configService.loadConfig("horizontalNavigation").subscribe(e=>{this.horizontalNavigation=e?.asBoolean()??this.horizontalNavigation}),this.configService.loadConfig("removeNavigation").subscribe(e=>{this.hideNavigation=e?.asBoolean()??this.hideNavigation})}ngOnInit(){this.loginService.autoLogin(),this.loginService.checkStatus(),this.orderTrackingService.generateTransactionId(),this.websocketService.getObservable(ov.configChanged).subscribe(e=>{this.configService.clearConfig(),this.landingPageService.resetData()}),this.websocketService.getObservable(ov.clearCache).subscribe(e=>{this.loginService.logout()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-hup-root"]],hostAttrs:["ngSkipHydration","true"],decls:5,vars:5,consts:[[1,"app",3,"className"],[1,"row","app__row"],[1,"col-md-12","mt-3","app__main","app__main--full"],[1,"container-fluid","p-0","app__container"],[1,"app__breadcrumb"],[1,"app__content",2,"width","100%"],[1,"app__router-outlet"],[3,"className"],[1,"app__navigation-component",3,"horizontalNavigation"]],template:function(i,r){i&1&&(p(0,"div",0),te(1,"cssProperty"),p(2,"div",1),x(3,MJ,5,1,"div",2)(4,kJ,6,3),m()()),i&2&&(f("className",Te(1,2,r.cssPropertiesEnum.bodyClasses,r.vHostService)),c(3),b(r.hideNavigation?3:4))},dependencies:[VR,Bn,Oc,WL],encapsulation:2})}}return t})();var Ei=(()=>{class t{constructor(){this.http=d(Be),this.platformId=d(Qe),this.ngZone=d(de,{optional:!0}),this.errorLog$=new G,this.imageCache={},this.initErrorLog()}initErrorLog(){this.ngZone.runOutsideAngular(()=>{this.errorLog$.pipe(By(2e3),Ue(e=>e.length>0)).subscribe(e=>{setTimeout(()=>{let i={};e.forEach(a=>{i[a.type]=i[a.type]||[],i[a.type].push(a.id)});let r,o;for(let a in i)r=e.length,o=r==1?"":"s",console.log(`could not load ${r} ${a}-image${o} for ID${o}:`,i[a].join(","))},0)})})}getImageOfOffer(e){return this.getImage("offer",e,"/webabo/offers/"+e+"/images")}getConfirmationImageOfOffer(e){return this.getImage("confirmation",e,"/webabo/offers/"+e+"/confirmationImages")}getImageOfExternalOffer(e){return this.getImage("external",e,"/webabo/externalOffer/"+e+"/image")}getImageOfArticle(e){return this.getImage("offer",e,"/webabo/articles/"+e+"/images")}getImagePaymentType(e){return this.getImage("payment",e,"/webabo/basedata/formOfPayment/"+e+"/image",400)}getImage(e,i,r,o){if(Ka(this.platformId))return j(null);o=o??this.width,r.match(/[?&]width=\d+/)||(r=r+"?width="+o);let a=e+":"+i+":"+o;return this.imageCache&&this.imageCache[a]?j(this.imageCache[a]):this.http.get(r).pipe(F(s=>{if(s){let l=new qu(s.type,s.src);return this.imageCache[a]=l,l}else return null}),Ae(()=>(this.errorLog$.next({type:e,id:i}),j(null))))}get width(){return this.getOptimalImageWidth()}get height(){return this.getOptimalImageWidth()/3}getOptimalImageWidth(){let e=nt(this.platformId)?window.innerWidth:0;return e<768?800:e<992||e<1200?1200:1900}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ma=function(t){return t.MONEY_BONUS="MONEY_BONUS",t.THIRD_PARTY_MONEY_BONUS="THIRD_PARTY_MONEY_BONUS",t.NON_MONEY_BONUS="NON_MONEY_BONUS",t.THIRD_PARTY_NON_MONEY_BONUS="THIRD_PARTY_NON_MONEY_BONUS",t}(Ma||{}),Yv=class{constructor(n,e,i,r,o,a,s,l,u,g,v,w=!1,C,S,D){this.articleCode=n,this.name=e,this.description=i,this.descriptionFromDocument=r,this.priceAmount=o,this.portoAmount=a,this.availableFlag=s,this.bonusValue=l,this.image=u,this.quantity=g,this.bonusType=v,this.selected=w,this.clientCoPayment=C,this.isoCurrencyCode=S,this.creditCheckRequired=D}};var Qo=(()=>{class t{constructor(){this.http=d(Be),this.imageService=d(Ei),this.imageHandler=d(Wr),this.translationService=d(Y),this.offers=[],this.minimal=[],this.offerGroups=[],this.loadedAllOffers=!1,this.loadedAllMinimalOffers=!1}getMinimalOffers(e=!1){return this.loadedAllMinimalOffers?j(this.minimal):this.loadOffers(!0,e)}getOffers(){return this.loadedAllOffers?j(this.offers):this.loadOffers(!1,!0)}
37getArticleDescriptionFromId(e){return this.http.get("/webabo/articles/"+e+"/description").pipe(F(i=>i))}loadOffers(e=!1,i=!1){let r=e?"/webabo/offers/minimal":"/webabo/offers";return this.http.get(r).pipe(F(o=>{if(i&&this.loadImagesOfOffer(o),e)this.loadedAllMinimalOffers=!0,o.forEach(a=>{a.description=a.title,a.summary=a.webDescription,a.orderChoiceKey=a.orderChoiceKey}),this.minimal=o;else{this.offers=o,this.loadedAllOffers=!0;let a=new Date;a.setSeconds(a.getSeconds()+Rn.CACHE_TIME_BASE_DATA),localStorage.setItem("offers",JSON.stringify({expirationDate:a,offers:o}))}return o}))}loadImagesOfOffer(e){e.forEach(i=>{let r="";this.imageService.getImageOfOffer(i.recno).subscribe(a=>{a&&(r=i.description??this.translationService.getTranslation("offer.image.altText.default"),i.image=this.imageHandler.addAltText(a,r))}),this.imageService.getConfirmationImageOfOffer(i.recno).subscribe(a=>{a&&(r=i.confirmationText??this.translationService.getTranslation("offer.confirmationImage.altText.default"),i.confirmationImage=this.imageHandler.addAltText(a,r))});let o=[];i.bonusList?.forEach(a=>{let s=new Yv(a.id??a.articleCode,a.name,a.description,null,-1,-1,a.available,a.weight,a.image,1,a.bonusType,!1,a?.clientCoPayment,a?.isoCurrencyCode,a?.creditCheckRequired);this.imageService.getImageOfArticle(s.articleCode).subscribe(l=>{l&&(r=a.name??this.translationService.getTranslation("bonus.image.altText.default"),s.image=this.imageHandler.addAltText(l,r))}),o.push(s)}),i.bonusList=o})}getOfferDetail(e){for(let i of this.offers)if(i.recno===e)return j(i);return this.http.get("/webabo/offers/byOrderChoiceKey/"+ +e).pipe(F(i=>{if(i)return this.loadImagesOfOffer([i]),this.offers.push(i),i;j(null)}),Ae(i=>j(null)))}getOfferGroups(){return this.http.get("/webabo/offers/groups").pipe(F(e=>{this.offerGroups=e,e.forEach(r=>{r.image=this.imageHandler.addAltText(r.groupImg,r.description??this.translationService.getTranslation("offerGroup.image.altText.default"))});let i=new Date;return i.setSeconds(i.getSeconds()+Rn.CACHE_TIME_BASE_DATA),this.offerGroups}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ge=function(t){return t.SUBSCRIPTION="/subscription",t.OFFER="/offer",t.OFFERLIST="/offer/list",t.OFFERORDERED="/offer/ordered",t.SUBCHANGE="/sub-change",t.SUBCHANGENEW="/sub-change/new",t.SUBCHANGEEDIT="/sub-change/edit",t.SUBCHANGEWITHOUTLOGIN="/sub-change-without-login",t.SUBCHANGEWITHOUTLOGINAFTER="/sub-change-without-login/sub-change-without-login-after",t.SUBCHANGEWITHOUTLOGINNEW="/sub-change-without-login/new",t.COMPLAINT="/complaint",t.COMPLAINTNEW="/complaint/new",t.COMPLAINTEDIT="/complaint/edit",t.COMPLAINTWITHOUTLOGINNEW="/complaint-without-login/new",t.COMPLAINTWITHOUTLOGINAFTER="/complaint-without-login/complaint-without-login-after",t.PAYMENT="/payment",t.SUBPAYMENTEDIT="/payment/sub-payment-edit",t.PAYMENTEDIT="/payment/payment-edit",t.REVOCATION="/revocation",t.REVOCATIONNEW="/revocation/new",t.REVOCATIONWITHOUTLOGIN="/revocation-without-login",t.REVOCATIONWITHOUTLOGINAFTER="/revocation-without-login/revocation-without-login-after",t.CONTACT="/contact",t.CONTACTOVERVIEW="/contact-overview",t.LOGIN="/login",t.IDENTIFICATION="/identification",t.CUSTOMER="/customer",t.CUSTOMERINVOICE="/customer/invoice",t.LANDINGPAGE="/landing",t}(ge||{}),Re=(()=>{class t{constructor(){this.redirectService=d(Ln),this.router=d(et),this.landingpageService=d(Wi),this.history=[],this.landingpageService.getLandingPages().subscribe(e=>{this.landingPages=e}),this.router.events.pipe(Ue(e=>e instanceof Dn)).subscribe(e=>{this.history.push(e.urlAfterRedirects)})}navigateTo(e,i=null,r=!1){let o=e.toString();if(r){let a=!1;if(this.landingPages.every(s=>{if(s.isExtern&&o.startsWith(s.link,1))return a=!0,this.redirectService.redirect(s.externLink,!0),!1}),!a)return this.navigateIntern(o,i)}else return this.navigateIntern(o,i)}navigateIntern(e,i=null){return i?.forEach(r=>{e=e+"/"+r}),this.router.navigate([e],{queryParamsHandling:"preserve"})}navigateExtern(e,i){return this.router.navigate([]).then(()=>{let o=e.startsWith("https://")||e.startsWith("http://")?e:"https://"+e,a=i?"_blank":"_self";typeof window<"u"&&window.open(o,a)})}
37getPreviousUrl(){return this.history.length>1?this.history[this.history.length-2]:null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kv=(()=>{class t{constructor(){this.httpClient=d(Be),this.imageService=d(Ei),this.imageHandler=d(Wr),this.translationService=d(Y),this.externalOffersForSlider=[],this.externalOffersForGroup=[],this.baseUrlSlider="/webabo/externalOffer/slider",this.baseUrlOfferGroup="/webabo/externalOffer/offerGroup/"}loadExternalOffersForSlider(){return this.httpClient.get(this.baseUrlSlider).pipe(Ae(this.handleError))}loadExternalOffersForOfferGroup(e){return this.httpClient.get(this.baseUrlOfferGroup+e).pipe(F(i=>(i&&i.forEach(r=>{if(r.image&&r.image.type){let o=r.header??this.translationService.getTranslation("externalOffer.image.altText.default");r.image=this.imageHandler.addAltText(r.image,o)}}),i)),Ae(this.handleError))}getExternalOffersForSlider(){return this.loadExternalOffersForSlider().subscribe(e=>{e&&(this.externalOffersForSlider=e,this.externalOffersForSlider.forEach(i=>{this.imageService.getImageOfExternalOffer(i.id).subscribe(r=>{r&&r.type?i.image=this.imageHandler.addAltText(r,i.header??this.translationService.getTranslation("externalOffer.image.altText.default")):e.splice(e.indexOf(i))})}))}),this.externalOffersForSlider}getExternalOffersForOfferGroup(e){return this.loadExternalOffersForOfferGroup(e).subscribe(i=>{i&&(this.externalOffersForGroup=i,this.externalOffersForGroup.forEach(r=>{this.imageService.getImageOfExternalOffer(r.id).subscribe(o=>{o&&o.type&&(r.image=this.imageHandler.addAltText(o,r.header??this.translationService.getTranslation("externalOffer.image.altText.default")))})}))}),this.externalOffersForGroup}handleError(e){let i="";return e.status===404?(i="No ExternalOffers found!",console.info(i)):(i=`Error Code: ${e.status} 38Message: ${e.message}`,console.error(i)),Nr(()=>i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function OJ(t,n){if(t&1&&(p(0,"div",0),E(1),m()),t&2){let e=n.$implicit;c(),R(" ",e," ")}}function PJ(t,n){if(t&1&&W(0,OJ,2,1,"div",0,X),t&2){let e=h();q(e.errors)}}var Vt=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-general-errors"]],inputs:{errors:"errors"},decls:1,vars:1,consts:[[1,"alert","alert-danger"]],template:function(i,r){i&1&&x(0,PJ,2,0),i&2&&b(r.errors?0:-1)},encapsulation:2})}}return t})();var Ll=(()=>{class t{constructor(){this.paymentProviderResult=new Gt(null)}getValue(){return this.paymentProviderResult.value}getPaymentProviderResultData(){return this.paymentProviderResult}setNewTransaction(e){this.paymentProviderResult.next(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var NJ=["*"];var RJ=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],FJ=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, 39 [mat-card-title], [mat-card-subtitle], 40 [matCardTitle], [matCardSubtitle]`,"*"],LJ=new H("MAT_CARD_CONFIG"),at=(()=>{class t{appearance;constructor(){let e=d(LJ,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){i&2&&fe("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:NJ,decls:1,vars:0,template:function(i,r){i&1&&(_t(),Ve(0))},styles:[`.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}
40.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end} 41`],encapsulation:2,changeDetection:0})}return t})(),Li=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})();var Rt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),Xr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),hr=(()=>{class t{align="start";static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mat-mdc-card-actions-align-end",r.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return t})(),Bl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:FJ,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(_t(RJ),Ve(0),p(1,"div",0),Ve(2,1),m(),Ve(3,2))},encapsulation:2,changeDetection:0})}return t})();var is=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-mdc-card-image","mdc-card__media"]})}return t})();var Bi;(function(t){function n(w){let C=Qv(w);return e(C.format,...C.parts)}t.ofHouseNoVec=n;function e(w,...C){let S=typeof w=="string"?mn.ofCountryCode(w):w,D=NE(C,S);return{houseNoVec:[S.type,...D].join("#")}}t.ofHouseNoParts=e;function i(w,C,S,D){return e(mn.AUSTRIA,w,C,S,D)}t.ofAustriaParts=i;function r(w){return e(mn.DEFAULT,w)}t.ofDefault=r;function o(w){let C=Qv(w);return[C.format.type,...C.parts]}t.getHouseNoParts=o;function a(w,C){if(C<1)throw new RangeError(`partIndex must be >= 1 (got ${C})`);let S=o(w)[C];if(S===void 0)throw new RangeError(`no house no part for index "${C}"`);return S}t.getHouseNoPart=a;function s(w){return a(w,1)}t.getHouseNumber=s;function l(w){return mn.ofHouseNo(w)===mn.AUSTRIA?a(w,2):""}t.getStiege=l;function u(w){return mn.ofHouseNo(w)===mn.AUSTRIA?a(w,3):""}t.getStock=u;function g(w){return mn.ofHouseNo(w)===mn.AUSTRIA?a(w,4):""}t.getTuer=g;function v(w){return Qv(w).parts.filter(C=>C.trim()!=="").join(" / ")}t.formatForHuman=v})(Bi||(Bi={}));var mn;(function(t){t.DEFAULT={countryCode:"D",type:"00",parts:["A10:6"]},t.AUSTRIA={countryCode:"A",type:"01",parts:["A10:6","A10:30","A10:6","A10:6"]},t.ALL=Object.values(t).filter(i=>typeof i=="object"&&"type"in i);function n(i){let r=i.trim().charAt(0);return t.ALL.find(o=>o.countryCode===r)??t.DEFAULT}t.ofCountryCode=n;function e(i){return Qv(i).format}t.ofHouseNo=e})(mn||(mn={}));function Qv(t){let n=(typeof t=="string"?t:t.houseNoVec).split("#");if(n.length===1)return{parts:NE(n,mn.DEFAULT),format:mn.DEFAULT};let e=BJ(n.shift());return{parts:NE(n,e),format:e}}function NE(t,n){if(t.length>n.parts.length)throw new Zv("Invalid number of parts for house no vec");return[...t,...new Array(n.parts.length-t.length).fill("")]}function BJ(t){let n=mn.ALL.find(e=>e.type===t);if(!n)throw new Zv(`invalid house no format type '${t}'`);return n}
41var Zv=class extends Error{};var Di=(()=>{class t{transform(e){if(!e)return e;try{return Bi.formatForHuman(e)}catch(i){return console.error("HouseNo konnte nicht formatiert werden:",e,i),e}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Pn({name:"houseNoPipe",type:t,pure:!0})}}return t})();var HJ=["input"],VJ=["label"],jJ=["*"],zJ=new H("mat-checkbox-default-options",{providedIn:"root",factory:KL});function KL(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var gr=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(gr||{}),UJ={provide:Ar,useExisting:Si(()=>tr),multi:!0},RE=class{source;checked},YL=KL(),tr=(()=>{class t{_elementRef=d(ue);_changeDetectorRef=d(Je);_ngZone=d(de);_animationMode=d(zt,{optional:!0});_options=d(zJ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new RE;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new z;indeterminateChange=new z;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=gr.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){d(pi).load(Qr);let e=d(new Br("tabindex"),{optional:!0});this._options=this._options||YL,this.color=this._options.color||YL.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=d(Mt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate}set indeterminate(e){let i=e!=this._indeterminate;this._indeterminate=e,i&&(this._indeterminate?this._transitionCheckState(gr.Indeterminate):this._transitionCheckState(this.checked?gr.Checked:gr.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},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(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?gr.Checked:gr.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if(this._animationMode==="NoopAnimations")return"";switch(e){case gr.Init:if(i===gr.Checked)return this._animationClasses.uncheckedToChecked;if(i==gr.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case gr.Unchecked:return i===gr.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case gr.Checked:return i===gr.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case gr.Indeterminate:return i===gr.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(De(HJ,5),De(VJ,5)),i&2){let o;se(o=le())&&(r._inputElement=o.first),se(o=le())&&(r._labelElement=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(yi("id",r.id),ce("tabindex",null)("aria-label",null)("aria-labelledby",null),Mi(r.color?"mat-"+r.color:"mat-accent"),fe("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",pe],ariaControl
41s:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",pe],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",pe],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Ii(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",pe],checked:[2,"checked","checked",pe],disabled:[2,"disabled","disabled",pe],indeterminate:[2,"indeterminate","indeterminate",pe]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[_e([UJ,{provide:In,useExisting:t,multi:!0}]),Xe],ngContentSelectors:jJ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[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-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=B();_t(),p(0,"div",3),T("click",function(s){return A(o),k(r._preventBubblingFromLabel(s))}),p(1,"div",4,0)(3,"div",5),T("click",function(){return A(o),k(r._onTouchTargetClick())}),m(),p(4,"input",6,1),T("blur",function(){return A(o),k(r._onBlur())})("click",function(){return A(o),k(r._onInputClick())})("change",function(s){return A(o),k(r._onInteractionEvent(s))}),m(),_(6,"div",7),p(7,"div",8),Sn(),p(8,"svg",9),_(9,"path",10),m(),Es(),_(10,"div",11),m(),_(11,"div",12),m(),p(12,"label",13,2),Ve(14),m()()}if(i&2){let o=J(2);f("labelPosition",r.labelPosition),c(4),fe("mdc-checkbox--selected",r.checked),f("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),ce("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),c(7),f("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),c(),f("for",r.inputId)}},dependencies:[Tl,F0],styles:[`.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;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)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);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)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.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 cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 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;
41transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.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;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 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{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@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}
41}@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:cubic-bezier(0, 0, 0.2, 1);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}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .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 .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} 42`],encapsulation:2,changeDetection:0})}return t})();var Xv=class{constructor(){this.dataSets=[]}};var QL=(()=>{class t{constructor(){this.baseDataService=d(vt)}static{this.dateFormat="yyyy-MM-dd"}convert(e){let i={};i.offerId=e.offer?.recno,i.orderChoiceKey=e.offer?.orderChoiceKey,i.userBackendId=e.userBackendId,i.quantity=1,i.validDate={validFrom:e.payment.startdate};let r=e.addresses?.deliveryAddress?.userData?.birthDay;!r&&r===""&&(r=e.addresses?.billingAddress?.userData?.birthDay),!r&&r===""&&(r=e.bonusData?.bonusAddress?.userData?.birthDay),i.birthday=r;let o=e.addresses?.deliveryAddress?.userData?.phone;if(!o&&o===""&&(o=e.addresses?.billingAddress?.userData?.phone),!o&&o===""&&(o=e?.bonusData?.bonusAddress?.userData?.phone),o){let l=o.split("/");l.length==2&&(i.phoneCode=l[0],i.phone=l[1])}let a=e.addresses?.deliveryAddress?.userData?.email;(!a||a==="")&&(a=e.addresses?.billingAddress?.userData?.email),(!a||a==="")&&(a=e.registration?.email),(!a||a==="")&&(a=e.addresses?.email),(!a||a==="")&&(a=e.ssoEmail),i.email=a;let s=e.offer.requiredAddresses;if(i.deliveryAddress=this.convertFullAddressData(s.deliveryAddressRequired,e.addresses?.deliveryAddress,i.validDate.validFrom,null,!1,i.userBackendId),i.billingAddress=this.convertFullAddressData(s.billingAddressRequired,e.addresses?.billingAddress,i.validDate.validFrom,null,!1,i.userBackendId,i.transaction?.clientAddress),i.payment=t.convertPaymentInfo(e.payment),i.bonusData?.bonus[0]?.bonusValue==Ma.NON_MONEY_BONUS?i.selectedGiftList=t.convertBonusData(e?.bonusData):i.bonusData?.bonus[0]?.bonusValue==Ma.THIRD_PARTY_NON_MONEY_BONUS&&(i.advertiser={person:t.convertPerson(e.bonusData?.advertiserAddress),address:t.convertOnlyAddress(e.bonusData?.advertiserAddress)}
42),i.variantCode=e.payment?.editionId,e.urlParams?.size>0&&(i.additionalOfferParams=Object.fromEntries(e.urlParams)),i.redirectUrl=e.redirectUrl,i.userAgreement=e.userAgreement,e.additionalData){let l=0,u=[];e.additionalData.forEach(g=>{let v=e.additionalData[l];v.value=g.value;let w=!1;if(u.forEach(C=>{C.itemkey==v.itemkey&&(C.dataSets.push(v),w=!0)}),!w){let C=new Xv;C.itemkey=e.additionalData[l].itemkey,C.dataSets.push(v),u.push(C)}l++}),i.additionalData=u}if(e.optinList&&(i.optinList=[],e.optinList.forEach((l,u)=>{l&&i.optinList.push(u)})),e.transaction){let l=e.transaction;i.payment.onlinePayment={},i.payment.onlinePayment.transactionId=l.transactionId,i.payment.onlinePayment.subscriptionId=l.subscriptionId,i.payment.onlinePayment.transactionProvider=l.provider,i.payment.onlinePayment.amount=l.amount,i.payment.onlinePayment.transactionInfo=l.invoiceText,i.payment.onlinePayment.authorizationId=l.authorizationId}return!i.billingAddress||t.isAddressEmpty(i.billingAddress)&&i.deliveryAddress?i.billingAddress=i.deliveryAddress:(i.billingAddress&&!i.deliveryAddress||i.deliveryAddress?.address.street=="")&&(i.deliveryAddress=i.billingAddress),i}static isAddressEmpty(e){return!e?.address?.street}static convertHouseNumber(e,i){let o=((typeof e?.address?.country=="string"?e?.address?.country:e?.address?.country?.key)??"").toUpperCase(),a=e?.address?.houseno??e?.address?.houseNo??"",s=mn.ofCountryCode(o)===mn.AUSTRIA?Bi.ofAustriaParts(a,e?.address?.stiege??"",e?.address?.stock??"",e?.address?.tuer??""):Bi.ofDefault(a);return i?Bi.formatForHuman(s):s.houseNoVec}convertFullAddressData(e,i,r,o,a,s,l){let u=null,g="";if(i?.person?.initials?.includes(".")?g=i?.person?.initials?.toUpperCase():i?.person?.initials?.split("").forEach(v=>g=g+v.toUpperCase()),e){let v=this.baseDataService.getBaseData("addresscodes").filter(w=>w.key===i?.person?.salutation);u={person:{firstname:i?.person?.firstName??i?.person?.firstname,lastname:i?.person?.lastName??i?.person?.lastname,email:i?.userData?.email,title:t.isString(i?.person?.title)?i?.person?.title:a?i?.person?.title?.description:i?.person?.title?.key,salutation:v&&v.length>0?a?v[0].description:v[0].defaultClientTypeKey:t.isString(i?.person?.salutation)?i?.person?.salutation:a?i?.person?.salutation?.description:i?.person?.salutation?.defaultClientTypeKey,initials:g,middlename:i?.person?.middlename},address:{street:i?.address?.street,houseno:t.convertHouseNumber(i,a),zipcode:i?.address?.zipcode,city:i?.address?.city,addrExtraLine1:i?.address?.extraLine,country:t.isString(i?.address?.country)?a?i?.address?.country:i?.address?.country?.toUpperCase():a?i?.address?.country?.description:i?.address?.country?.key?.toUpperCase(),district:i?.address?.district},validDate:{validFrom:r,validUntil:o},userBackendId:s??-1},l&&(!i.address||u.address.street?.toString().length<=0||u.address.houseno?.toString().length<=0||u?.address.zipcode?.toString().length<=0||u.address.city?.toString().length<=0||u.address.country?.toString().length<=0)&&(u.address.street=l.street,u.address.houseno=t.convertHouseNumber({address:{houseno:l.houseno,country:l.country}},a),u.address.zipcode=l.zipcode,u.address.city=l.city,u.address.addrExtraLine1=null,u.address.country=a?l.country:l.country?.toUpperCase(),u.address.district=null)}return u}static isString(e){return Object.prototype.toString.call(e)==="[object String]"}static convertPaymentInfo(e){let i,r={},o;return e.iban&&(i={swiftIBAN:t.isString(e.iban)?e.iban?.trim():e.iban,accountHolder:e.accountHolder?.trim()},r.bank=i),o={paymentMethod:e.formOfPayment.paymentMethod,paymentFrequency:e.paymentFrequency.key},r.invoiceEmail=e.invoiceEmail,r.paymentType=o,r}static convertBonusData(e){let i=[];if(e&&e.bonus?.length>0)for(let r of e.bonus){let o={};if(r.bonusType===Ma.MONEY_BONUS||r.clientCoPayment>0){let a={iban:e.payment?.ibanBonus,bic:e.payment?.bicBonus,accountHolder:e.payment?.accountHolderBonus};o.bankAccount=a,e.bonusAddress&&(o.person=t.convertPerson(e.bonusAddress),o.address=t.convertOnlyAddress(e.bonusAddress))}o.quantity=1,o.bonusType=r.bonusType,o.articleCode=r.articleCode,o.articleDescription=r.description,i.push(o)}return i}static convertPerson(e){return{firstname:e?.person?.firstname??e?.person?.firstName,lastname:e?.person?.lastname??e?.person?.lastName,title:t.isString(e?.person?.title)?e?.person?.title:e?.person?.title.key,salutation:e?.person.salutation.key,initials:e?.person.initials,middlename:e?.person.middlename}}static convertOnlyAddress(e){return{country:e?.address.country.key,zipcode:e?.address.zipcode,city:e?.address.city,street:e?.address.street,houseno:t.convertHouseNumber(e,!1),addrE
42xtraLine1:e?.address.extraLine,district:e?.address.district}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zn=(()=>{class t{constructor(){this.subscriptionOrderConverter=d(QL),this.orderStateNew=new Gt(this.createInitialState())}getOrderState(){return this.orderStateNew}update(e){this.orderStateNew.next(e(this.orderStateNew.value))}resetState(){this.orderStateNew.next(this.createInitialState())}buildOrderDto(){return this.subscriptionOrderConverter.convert(this.orderStateNew.value)}snapshot(e){let i=this.orderStateNew.value;return e?e(i):i}connectForm(e,i,r){return e.valueChanges.subscribe(o=>{this.update(a=>r(a,o))})}createInitialState(){return{additionalData:[],addresses:{billingAddress:void 0,deliveryAddress:void 0,email:""},bonusData:void 0,clientNoUrl:"",offer:void 0,offerPrice:[],calculatingPrice:!1,optinList:void 0,payment:void 0,phoneNumber:{phone:"",phoneCode:""},redirectUrl:"",registration:void 0,transaction:void 0,urlParams:void 0,userAgreement:void 0,userBackendId:void 0,userData:void 0,userSSOId:0,validDate:{validFrom:void 0,validUntil:void 0}}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var So=function(t){return t[t.SEPARATE_CHECKBOXES=0]="SEPARATE_CHECKBOXES",t[t.ONE_CHECKBOX=1]="ONE_CHECKBOX",t[t.TEXT_WITHOUT_CHECKBOX=2]="TEXT_WITHOUT_CHECKBOX",t}(So||{});function ZL(t){switch(t){case"0":case"false":return So.SEPARATE_CHECKBOXES;case"1":case"true":return So.ONE_CHECKBOX;case"2":return So.TEXT_WITHOUT_CHECKBOX;default:return console.warn(`Ung\xFCltiger Wert '${t}' f\xFCr Konfiguration 'offer.privacyDisclaimerAgbInOneField' - es werden getrennte Checkboxen abgefragt.`),So.SEPARATE_CHECKBOXES}}function si(t){return!!t?.ePaper||!!t?.paidContent}var GJ=["saveButtonPoint"],$J=["offerCard"];function WJ(t,n){if(t&1&&_(0,"div",15),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("offer_highlight_text"),y)}}function qJ(t,n){t&1&&_(0,"div",16)}function YJ(t,n){if(t&1&&x(0,WJ,1,1,"div",15)(1,qJ,1,0,"div",16),t&2){h();let e=T_(0);b(e?0:1)}}function KJ(t,n){if(t&1&&_(0,"img",11),t&2){let e=h(2);f("ngSrc",e.offer==null||e.offer.image==null?null:e.offer.image.src)("width",e.imageService.width)("height",e.imageService.height)("priority",!0)("alt",e.offer==null||e.offer.image==null?null:e.offer.image.altText)}}function QJ(t,n){if(t&1&&(p(0,"div",17)(1,"div",21),E(2),te(3,"currency"),m(),_(4,"div",22),m()),t&2){let e=h(3);c(2),he(Ct(3,2,e.offer!=null&&e.offer.combiPriceCalculated?e.offer==null?null:e.offer.combiPriceCalculated:e.offer==null||e.offer.offerPrice==null?null:e.offer.offerPrice.price)),c(2),f("innerHTML",e.offer==null?null:e.offer.additionalPriceDescription,y)}}function ZJ(t,n){if(t&1&&(p(0,"div",18),_(1,"div",23),m()),t&2){let e=h(3);c(),f("innerHTML",e.offer==null?null:e.offer.priceCalculationSummary,y)}}function XJ(t,n){if(t&1){let e=B();p(0,"div",13),x(1,QJ,5,4,"div",17)(2,ZJ,2,1,"div",18),p(3,"div",19)(4,"button",20),T("click",function(){A(e);let r=h(2);return k(r.openOrder(r.offer==null?null:r.offer.orderChoiceKey))}),E(5),m()()()}if(t&2){let e=h(2);c(),b(e.offer!=null&&e.offer.priceCalculationActivated?1:2),c(4),R(" ",e.translationService.getTranslation("button_order")," ")}}function JJ(t,n){if(t&1&&(p(0,"div",33)(1,"div",34),E(2),m(),_(3,"div",35),m()),t&2){let e=n.$implicit,i=n.$index,r=h(5);c(),f("innerHTML",r.translationService.getTranslation("step_orderBonus"),y),c(),R(" ",i+1," "),c(),f("innerHTML",e.name,y)}}function eee(t,n){if(t&1&&(p(0,"div",25),_(1,"hr",32),W(2,JJ,4,3,"div",33,X),m()),t&2){let e=h(4);c(2),q(e.bonuses)}}function tee(t,n){if(t&1&&(_(0,"hr",36)(1,"div",37),p(2,"div",38),_(3,"div",39),p(4,"div",40)(5,"ul",41)(6,"li",42),E(7),m(),p(8,"li",43),E(9),te(10,"houseNoPipe"),m()()()()),t&2){let e,i=h(4);c(),f("innerHTML",i.translationService.getTranslation("step_orderAddr"),y),c(2),f("innerHTML",i.translationService.getTranslation("address_delivery"),y),c(4),qS(" ",i.isString(i.deliveryAddress==null||i.deliveryAddress.person==null?null:i.deliveryAddress.person.salutation)?i.deliveryAddress==null||i.deliveryAddress.person==null?null:i.deliveryAddress.person.salutation:i.deliveryAddress==null||i.deliveryAddress.person==null||i.deliveryAddress.person.salutation==null?null:i.deliveryAddress.person.salutation.description," ",i.deliveryAddress==null||i.deliveryAddress.person==null?null:i.deliveryAddress.person.title," ",!(i.deliveryAddress==null||i.deliveryAddress.person==null)&&i.deliveryAddress.person.initials?i.deliveryAddress==null||i.deliveryAddress.person==null?null:i.deliveryAddress.person.initials:(e=i.deliveryAddress==null||i.deliveryAddress.person==null?null:i.deliveryAddress.person.firstname)!==null&&e!==void 0?e:i.deliveryAddress==null||i.deliveryAddress.person==null?null:i.deliveryAddress.person.firstName," ",i.deliveryAddress==null||i.deliveryAddress.person==null?null:i.deliveryAddress.person.middlename," ",(e=i.deliveryAddress==null||i.deliveryAddress.person==null?null:i.deliveryAddress.person.lastname)!==null&&e!==void 0?e:i.deliveryAddress==null||i.deliveryAddress.person==null?null:i.deliveryAddress.person.lastName," "),c(2),pa(" ",i.deliveryAddress==null||i.deliveryAddress.address==null?null:i.deliveryAddress.address.street," ",Ct(10,11,i.deliveryAddress==null||i.deliveryAddress.address==null?null:i.deliveryAddress.address.houseno)," ",i.deliveryAddress==null||i.deliveryAddress.address==null?null:i.deliveryAddress.address.zipcode," ",i.deliveryAddress==null||i.deliveryAddress.address==null?null:i.deliveryAddress.address.city," ")}}function iee(t,n){if(t&1&&(p(0,"div",27),_(1,"div",44),p(2,"div",45)(3,"ul",46)(4,"li",47),E(5),m(),p(6,"li",48),E(7),te(8,"houseNoPipe"),m()()()()),t&2){let e,i=h(4);c(),f("innerHTML",i.translationService.getTranslation("address_billing"),y),c(4),pa(" ",i.isString(i.billingAddress==null||i.billingAddress.person==null?null:i.billingAddress.person.salutation)?i.billingAddress==null||i.billingAddress.person==null?null:i.billingAddress.person.salutation:i.billingAddress==null||i.billingAddress.person==null||i.billingAddress.person.salutation==null?null:i.billingAddress.person.salutation.description," ",i.billingAddress==null||i.billingAddress.person==null?null:i.billingAddress.person.title," ",(e=i.billingAddress==null||i.billingAddress.person==null?null:i.billingAddress.person.firstname)!==null&&e!==void 0?e:i.billingAddress==null||i.billingAddress.person==null?null:i.billingAddress.person.firstName," ",(e=i.billingAddress.person.lastname)!==null&&e!==void 0?e:i.billingAddress.person.lastName," "),c(2),pa(" ",i.billingAddress==null||i.billingAddress.address==null?null:i.billingAddress.address.street," ",Ct(8,9,i.billingAddress==null||i.billingAddress.address==null?null:i.billingAddress.address.houseno)," ",i.billingAddress==null||i.billingAddress.address==null?null:i.billingAddress.address.zipcode," ",i.billingAddress==null||i.billingAddress.address==null?null:i.billingAddress.address.city," ")}}function nee(t,n){if(t&1&&(p(0,"div",28),_(1,"div",49),p(2,"div",50)(3,"ul",51)(4,"li",52),E(5),m(),p(6,"li",53),E(7),te(8,"houseNoPipe"),m()()()()),t&2){let e,i=h(4);c(),f("innerHTML",i.translationService.getTranslation("address_bonus"),y),c(4),pa(" ",i.isString(i.bonusAddress==null||i.bonusAddress.person==null?null:i.bonusAddress.person.salutation)?i.bonusAddress==null||i.bonusAddress.person==null?null:i.bonusAddress.person.salutation:i.bonusAddress==null||i.bonusAddress.person==null||i.bonusAddress.person.salutation==null?null:i.bonusAddress.person.salutation.description," ",i.bonusAddress==null||i.bonusAddress.person==null?null:i.bonusAddress.person.title," ",(e=i.bonusAddress.person.firstname)!==null&&e!==void 0?e:i.bonusAddress.person.firstName," ",(e=i.bonusAddress.person.lastname)!==null&&e!==void 0?e:i.bonusAddress.person.lastName," "),c(2),pa(" ",i.bonusAddress==null||i.bonusAddress.address==null?null:i.bonusAddress.address.street," ",Ct(8,9,i.bonusAddress==null||i.bonusAddress.address==null?null:i.bonusAddress.address.houseno)," ",i.bonusAddress==null||i.bonusAddress.address==null?null:i.bonusAddress.address.zipcode," ",i.bonusAddress==null||i.bonusAddress.address==null?null:i.bonusAddress.address.city," ")}}function ree(t,n){if(t&1&&_(0,"hr",54)(1,"div",55),t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("step_orderPayment"),y)}}function oee(t,n){if(t&1&&(p(0,"div",29),_(1,"div",56),p(2,"div",57),E(3),m()()),t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("payment_type"),y),c(2),he(e.paymentCode.description)}}function aee(t,n){if(t&1&&(p(0,"div",30),_(1,"div",58),p(2,"div",59),E(3),m()()),t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("payment_rhythm"),y),c(2),he(e.paymentFrequency.description)}}function see(t,n){if(t&1&&(_(0,"hr",60)(1,"div",61),p(2,"div",62),_(3,"div",63),p(4,"div",64),E(5),te(6,"date"),m()()),t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("step_orderDateAndOptins"),y),c(2),f("innerHTML",e.translationService.getTranslation("startdate"),y),c(2),R("",Te(6,3,e.startDate,e.translationService.getTranslation("dateFormat"))," ")}}function lee(t,n){if(t&1&&(_(0,"div",72),te(1,"number")),t&2){let e=h(2).$implicit,i=h(5);f("innerHTML",i.translationService.getTranslation("price_delivery")+" "+Te(1,1,e==null?null:e.porto,"1.2-2")+" "+e.currency,y)}}function cee(t,n){if(t&1&&(p(0,"div",69),E(1),te(2,"number"),x(3,lee,2,4,"div",72),m()),t&2){let e=h().$implicit;c(),Pe("",Te(2,3,e==null?null:e.price,"1.2-2")," ",e.currency," "),c(2),b(e.porto?3:-1)}}function dee(t,n){if(t&1&&(p(0,"div",70),E(1),m()),t&2){let e=h().$implicit;c(),he(e==null?null:e.priceText)}}function uee(t,n){if(t&1&&(x(0,cee,4,6,"div",69)(1,dee,2,1,"div",70),_(2,"div",71)),t&2){let e=h(5);b(e.offer!=null&&e.offer.priceCalculationActivated?0:1)}}function pee(t,n){if(t&1&&(_(0,"hr",65)(1,"div",66),p(2,"div",67),_(3,"div",68),W(4,uee,3,1,null,null,X),m()),t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("step_check"),y),c(2),f("innerHTML",e.translationService.getTranslation("price"),y),c(),q(e.prices)}}function mee(t,n){if(t&1&&_(0,"div",74),t&2){let e=h(6);f("innerHTML",e.offer==null?null:e.offer.additionalPriceDescription,y)}}function fee(t,n){if(t&1&&(p(0,"div",69),E(1),te(2,"currency"),x(3,mee,1,1,"div",74),m()),t&2){let e=h(5);
42c(),R(" ",Ct(2,2,e.offer!=null&&e.offer.combiPriceCalculated?e.offer==null?null:e.offer.combiPriceCalculated:e.offer==null||e.offer.offerPrice==null?null:e.offer.offerPrice.price)," "),c(2),b(e.offer!=null&&e.offer.additionalPriceDescription?3:-1)}}function hee(t,n){if(t&1&&_(0,"div",73),t&2){let e=h(5);f("innerHTML",e.offer==null?null:e.offer.priceCalculationSummary,y)}}function gee(t,n){if(t&1&&(_(0,"hr",65)(1,"div",66),p(2,"div",67),_(3,"div",68),x(4,fee,4,4,"div",69)(5,hee,1,1,"div",73),m()),t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("step_check"),y),c(2),f("innerHTML",e.translationService.getTranslation("price"),y),c(),b(e.offer!=null&&e.offer.priceCalculationActivated?4:5)}}function _ee(t,n){if(t&1&&(p(0,"div",24),x(1,eee,4,0,"div",25),p(2,"div",26),x(3,tee,11,13)(4,iee,9,11,"div",27)(5,nee,9,11,"div",28)(6,ree,2,1)(7,oee,4,2,"div",29)(8,aee,4,2,"div",30)(9,see,7,6),_(10,"div",31,1),x(12,pee,6,2)(13,gee,6,3),m()()),t&2){let e=h(3);c(),b(e.bonuses&&e.bonuses.length>0?1:-1),c(2),b(e.deliveryAddress?3:-1),c(),b(e.billingAddress&&e.billingAddress.required?4:-1),c(),b(e.bonusAddress&&e.bonusAddress.required?5:-1),c(),b(e.paymentCode||e.paymentFrequency?6:-1),c(),b(e.paymentCode?7:-1),c(),b(e.paymentFrequency?8:-1),c(),b(e.startDate?9:-1),c(3),b(e.hasCalculatedPrices()?12:e.hasConfiguredPriceInfo()?13:-1)}}function vee(t,n){if(t&1&&(p(0,"div",14),x(1,_ee,14,9,"div",24),m()),t&2){let e=h(2);c(),b(e.showOrderSummaryDetails()?1:-1)}}function bee(t,n){if(t&1){let e=B();Tr(0),p(1,"div",7,0),x(3,YJ,2,1),p(4,"mat-card",8),T("click",function(){A(e);let r=h();return k(r.showOnOfferPage?r.openOrder(r.offer==null?null:r.offer.orderChoiceKey):null)}),_(5,"div",9),p(6,"div",10),x(7,KJ,1,5,"img",11),m(),_(8,"mat-card-content",12),x(9,XJ,6,2,"div",13)(10,vee,2,1,"div",14),m()()}if(t&2){let e=h(),i=D_(e.isOfferHighlighted());c(),As("offerCard offer-card ",i?"highlight":"",""),f("ngClass",e.showOnOfferPage?"h-100 pb-5 offer-card--on-page":"offer-card--default"),c(2),b((e.highlightIds==null?null:e.highlightIds.length)>0?3:-1),c(),f("ngClass",e.showOnOfferPage?"h-100 offer-card__mat-card--on-page pointer":"offer-card__mat-card--default"),c(),f("innerHTML",e.offer==null?null:e.offer.description,y),c(2),b(!(e.offer==null||e.offer.image==null)&&e.offer.image.src?7:-1),c(),f("innerHTML",e.summarySafeHtml,y),c(),b(e.showOnOfferPage?9:-1),c(),b(e.showOnOfferPage?-1:10)}}function yee(t,n){if(t&1&&_(0,"div",75),t&2){let e=h(2);f("innerHTML",e.additionalAgbInfo1,y)}}function Cee(t,n){if(t&1&&_(0,"mat-error",82),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("order_agbaccept_epaper_error"),y)}}function See(t,n){if(t&1&&_(0,"mat-error",86),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("order_widerrufInfo_error"),y)}}function xee(t,n){if(t&1&&_(0,"mat-error",90),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("order_privacyInfo_error"),y)}}function wee(t,n){if(t&1){let e=B();p(0,"div",79)(1,"mat-checkbox",80,2),wn("ngModelChange",function(r){A(e);let o=h(2);return Nn(o.agb,r)||(o.agb=r),k(r)}),T("change",function(){A(e);let r=h(2);return k(r.onAgreementChanged("agb"))}),_(3,"div",81),m(),x(4,Cee,1,1,"mat-error",82),m(),p(5,"div",83)(6,"mat-checkbox",84,3),wn("ngModelChange",function(r){A(e);let o=h(2);return Nn(o.disclaimer,r)||(o.disclaimer=r),k(r)}),T("change",function(){A(e);let r=h(2);return k(r.onAgreementChanged("disclaimer"))}),_(8,"div",85),m(),x(9,See,1,1,"mat-error",86),m(),p(10,"div",87)(11,"mat-checkbox",88,4),wn("ngModelChange",function(r){A(e);let o=h(2);return Nn(o.privacy,r)||(o.privacy=r),k(r)}),T("change",function(){A(e);let r=h(2);return k(r.onAgreementChanged("privacy"))}),_(13,"div",89),m(),x(14,xee,1,1,"mat-error",90),m()}if(t&2){let e=h(2);c(),xn("ngModel",e.agb),c(2),f("innerHTML",e.translationService.getTranslation("order_agbaccept_epaper"),y),c(),b(e.shouldShowAgreementError("agb")?4:-1),c(2),xn("ngModel",e.disclaimer),c(2),f("innerHTML",e.translationService.getTranslation("order_widerrufInfo"),y),c(),b(e.shouldShowAgreementError("disclaimer")?9:-1),c(2),xn("ngModel",e.privacy),c(2),f("innerHTML",e.translationService.getTranslation("order_privacyInfo"),y),c(),b(e.shouldShowAgreementError("privacy")?14:-1)}}function Eee(t,n){if(t&1&&_(0,"mat-error",93),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("order_privacyDisclaimerAgb_error"),y)}}function Dee(t,n){if(t&1){let e=B();p(0,"div",76)(1,"mat-checkbox",91,5),wn("ngModelChange",function(r){A(e);let o=h(2);return Nn(o.privacyDisclaimerAgb,r)||(o.privacyDisclaimerAgb=r),k(r)}),T("change",function(){A(e);let r=h(2);return k(r.onAgreementChanged("privacyDisclaimerAgb"))}),_(3,"div",92),m(),x(4,Eee,1,1,"mat-error",93),m()}if(t&2){let e=h(2);c(),xn("ngModel",e.privacyDisclaimerAgb),c(2),f("innerHTML",e.translationService.getTranslation("order_privacyDisclaimerAgb"),y),c(),b(e.shouldShowPrivacyDisclaimerAgbError()?4:-1)}}function Tee(t,n){if(t&1&&_(0,"mat-error",96),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("order_epaper_revocation_waiver_error"),y)}}function Mee(t,n){if(t&1){let e=B();p(0,"div",77)(1,"mat-checkbox",94),wn("ngModelChange",function(r){A(e);let o=h(2);return Nn(o.epaperRevocationWaiver,r)||(o.epaperRevocationWaiver=r),k(r)}),T("change",function(){A(e);let r=h(2);return k(r.onAgreementChanged("epaperRevocationWaiver"))}),_(2,"div",95),m(),x(3,Tee,1,1,"mat-error",96),m()}if(t&2){let e=h(2);c(),xn("ngModel",e.epaperRevocationWaiver),c(),f("innerHTML",e.translationService.getTranslation("order_epaper_revocation_waiver"),y),c(),b(e.shouldShowAgreementError("epaperRevocationWaiver")?3:-1)}}function Iee(t,n){if(t&1&&_(0,"div",78),t&2){let e=h(2);f("innerHTML",e.additionalAgbInfo2,y)}}function Aee(t,n){if(t&1&&_(0,"mat-error",100),t&2){let e=h(4);f("innerHTML",e.translationService.getTranslation("order_optin_error"),y)}}function kee(t,n){if(t&1){let e=B();p(0,"div",97)(1,"mat-checkbox",98),T("change",function(r){let o=A(e).$implicit,a=h(3);return k(a.onOptInClick(r,o))}),_(2,"div",99),m(),x(3,Aee,1,1,"mat-error",100),m()}if(t&2){let e=n.$implicit,i=h(3);c(),f("required",e.mandatory),c(),f("innerHTML",e.description,y),c(),b(e.mandatory&&i.shouldShowOptinError(e.id)?3:-1)}}function Oee(t,n){if(t&1&&(ni(0),W(1,kee,4,3,"div",97,X),Jt()),t&2){let e=h(2);c(),q(e.offer.optIns)}}function Pee(t,n){if(t&1&&_(0,"div",101),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("order_privacyDisclaimerAgb"),y)}}function Nee(t,n){if(t&1){let e=B();p(0,"button",106),T("click",function(){A(e);let r=h(3);return k(r.stepper.previous())}),m()}if(t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("button_back"),y)}}function Ree(t,n){if(t&1){let e=B();x(0,Pee,1,1,"div",101),p(1,"div",102)(2,"div",103),x(3,Nee,1,1,"button",104),p(4,"button",105),T("click",function(){A(e);let r=h(2);return k(r.saveOrder())}),m()()()}if(t&2){let e=h(2);b(e.disclaimerMode===e.DisclaimerMode.TEXT_WITHOUT_CHECKBOX?0:-1),c(3),b(e.stepper?3:-1),c(),f("disabled",e.isOrderButtonDisabled())("innerHTML",e.prices&&(e.prices[0]==null?null:e.prices[0].price)>0||!(e.offer!=null&&e.offer.priceCalculationActivated)?e.translationService.getTranslation("button_orderSend"):e.translationService.getTranslation("button_orderSendFree"),y)}}function Fee(t,n){if(t&1&&x(0,yee,1,1,"div",75)(1,wee,15,9)(2,Dee,5,3,"div",76)(3,Mee,4,3,"div",77)(4,Iee,1,1,"div",78)(5,Oee,3,0,"ng-container")(6,Ree,5,4),t&2){let e=h();b(e.additionalAgbInfo1!=null?0:-1),c(),b(e.disclaimerMode===e.DisclaimerMode.SEPARATE_CHECKBOXES?1:e.disclaimerMode===e.DisclaimerMode.ONE_CHECKBOX?2:-1),c(2),b(e.isDigitalOffer()?3:-1),c(),b(e.additionalAgbInfo2!=null?4:-1),c(),b((e.offer==null||e.offer.optIns==null?null:e.offer.optIns.length)>0?5:-1),c(),b(e.showOrderButton()?6:-1)}}var Hl=(()=>{class t{constructor(){this.navigationService=d(Re),this.translationService=d(Y),this.configService=d(Ce),this.sanitizer=d(En),this.paymentProvider=d(Ll),this.platformId=d(Qe),this.imageService=d(Ei),this.orderProcessService=d(zn),this.datePipe=d(Le),this.showOnOfferPage=!0,this.creatingOrder=we(!1),this.onlinePayment=we(!1),this.disclaimerMode=So.SEPARATE_CHECKBOXES,this.showOnlyOptIns=!1,this.isCalculatingPrice=we(!1),this.save=new z,this.optInsSelected=new z,this.optionalBillingAddressValid=!1,this.optionalDeliveryAddressValid=!0,this.orderResult={agb:!1,privacy:!1,disclaimer:!1,paymentTransaction:null},this.agb=!1,this.privacy=!1,this.disclaimer=!1,this.privacyDisclaimerAgb=!1,this.epaperRevocationWaiver=!1,this.checkBoxes=!1,this.agreementTouched={agb:!1,disclaimer:!1,privacy:!1,privacyDisclaimerAgb:!1,epaperRevocationWaiver:!1},this.optinTouched=new Set,this.DisclaimerMode=So,this.summarySafeHtml="",this.onlinePaymentFinished=ee
42(!1),this.showOrderButton=Yn(()=>!this.onlinePayment()&&!this.isCalculatingPrice()||this.onlinePaymentFinished()&&!this.isCalculatingPrice());let e=this.configService.getConfig("offer.highlight.offerId");e?.value!==""&&(this.highlightIds=e?.value?.split(",")),this.paymentProvider.getPaymentProviderResultData().subscribe(i=>{let r=i&&(i.billingPlanId==null||i.billingPlanId?.length<=0)&&i?.transactionId&&i.transactionId!=="",o=i&&i.billingPlanId?.length>0&&i?.subscriptionId&&i.subscriptionId!=="";r||o?(this.onlinePaymentFinished.set(!0),this.orderResult.paymentTransaction=i):this.onlinePaymentFinished.set(!1)}),this.optinResult=new Map,this.additionalAgbInfo1=this.translationService.getTranslation("offer.additionalInfo.beforeAgb"),this.additionalAgbInfo2=this.translationService.getTranslation("offer.additionalInfo.afterAgb")}ngOnInit(){this.showOnOfferPage||this.orderProcessService.getOrderState().subscribe(e=>{e.offer&&(this.offer=e.offer),e.addresses?.billingAddress&&(this.billingAddress=e.addresses?.billingAddress),e.addresses?.deliveryAddress&&(this.deliveryAddress=e.addresses?.deliveryAddress),e.bonusData?.bonusAddress&&(this.bonusAddress=e.bonusData.bonusAddress),e.payment&&(e.payment.formOfPayment&&(this.paymentCode=e.payment?.formOfPayment),e.payment.paymentFrequency&&(this.paymentFrequency=e.payment.paymentFrequency),e.payment?.startdate&&(this.startDate=new Date(e.payment?.startdate)),e.offerPrice&&(this.prices=e.offerPrice))})}isDigitalOffer(){return si(this.offer?.offerType)}checkBoxesChecked(){let e;switch(this.disclaimerMode){case So.TEXT_WITHOUT_CHECKBOX:e=!0;break;case So.ONE_CHECKBOX:e=this.privacyDisclaimerAgb;break;default:e=this.agb&&this.privacy&&this.disclaimer;break}return e&&(!this.isDigitalOffer()||this.epaperRevocationWaiver)}isOrderButtonDisabled(){return this.creatingOrder()||!this.isOptinValid()||!this.checkBoxesChecked()||!this.optionalBillingAddressValid||!this.optionalDeliveryAddressValid}openOrder(e){this.navigationService.navigateTo(ge.OFFER,new Array(e+"")).then(()=>{})}saveOrder(){this.checkBoxes=!0,this.checkBoxesChecked()&&(this.orderResult.agb=!0,this.orderResult.privacy=!0,this.orderResult.disclaimer=!0,this.save.emit(this.orderResult))}ngOnChanges(e){if(e.offer&&(this.summarySafeHtml=this.sanitizer.bypassSecurityTrustHtml(this.offer?.summary??"")),nt(this.platformId)&&e.prices&&!e.prices.firstChange){let i=this.saveButtonPoint?.nativeElement?.getBoundingClientRect()?.top,r=this.offerCard?.nativeElement?.getBoundingClientRect(),a=r?.top+window.scrollY-r?.height/2;i&&i>0&&window.scrollBy({left:0,top:a,behavior:"smooth"})}}onOptInClick(e,i){this.optinTouched.add(i.id),this.optinResult.set(i.id,e.checked),this.optInsSelected.emit(this.optinResult),this.orderProcessService.update(r=>re(N({},r),{optinList:this.optinResult}))}isOptinValid(){return this.offer?.optIns?.length?this.offer.optIns.every(e=>!e.mandatory||!!this.optinResult.get(e.id)):!0}changeAgb(){if(this.disclaimerMode===So.TEXT_WITHOUT_CHECKBOX)return;let e=this.checkBoxesChecked();this.orderProcessService.update(i=>re(N({},i),{userAgreement:re(N({},i.userAgreement),{checkAGB:e,checkPrivacy:e,checkSchufa:e,checkWiderruf:e})}))}onAgreementChanged(e){this.agreementTouched[e]=!0,this.changeAgb()}shouldShowAgreementError(e){let i=this[e];return this.agreementTouched[e]&&!i}shouldShowPrivacyDisclaimerAgbError(){return this.agreementTouched.privacyDisclaimerAgb&&!this.privacyDisclaimerAgb}shouldShowOptinError(e){return this.optinTouched.has(e)&&!this.optinResult.get(e)}isString(e){return Object.prototype.toString.call(e)==="[object String]"}isOfferHighlighted(){let e=this.offer?.orderChoiceKey;return e==null||!this.highlightIds?.length?!1:this.highlightIds.includes(String(e))}showOrderSummaryDetails(){return!this.stepper||this.stepper.selectedIndex<this.stepper.steps.length-1}hasCalculatedPrices(){return!!this.prices?.length}hasConfiguredPriceInfo(){return this.offer?.priceCalculationActivated?this.offer?.combiPriceCalculated!=null||this.offer?.offerPrice?.price!=null||!!this.offer?.additionalPriceDescription:!!this.offer?.priceCalculationSummary}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-offer-card"]],viewQuery:function(i,r){if(i&1&&(De(GJ,5),De($J,5)),i&2){let o;se(o=le())&&(r.saveButtonPoint=o.first),se(o=le())&&(r.offerCard=o.first)}},inputs:{offer:"offer",showOnOfferPage:"showOnOfferPage",bonuses:"bonuses",deliveryAddress:"deliveryAddress",billingAddress:"billingAddress",bonusAddress:"bonusAddress",startDate:"startDate",endDate:"endDate",prices:"prices",paymentCode:"paymentCode",paymentFrequency:"paymentFrequency",stepper:"stepper",creatingOrder:[1,"creatingOrder"],onlinePayment:[1,"onlinePayment"],disclaimerMode:"disclaimerMode",showOnlyOptIns:"showOnlyOptIns",isCalculatingPrice:[1,"isCalculatingPrice"],optionalBillingAddressValid:"optionalBillingAddressValid",optionalDeliveryAddressValid:"optionalDeliveryAddressValid"},outputs:{save:"save",optInsSelected:"optInsSelected"},features:[_e([Le]),Xe],decls:2,vars:1,consts:[["offerCard",""],["saveButtonPoint",""],["agbBox",""],["disclaimerBox",""],["privacyBox",""],["privacyDisclaimerAgbBox",""],["id","offerCard",3,"class","ngClass"],["
42id","offerCard",3,"ngClass"],["appearance","outlined",1,"offer-card__mat-card",3,"click","ngClass"],["tabindex","0",1,"heading","h4","text-center","offer-card__heading",3,"innerHTML"],[1,"offerImage","offer-card__image"],["mat-card-image","",1,"offer-card__image-img",3,"ngSrc","width","height","priority","alt"],["tabindex","0",1,"mt-3","mb-3","h-100","offer-card__content",3,"innerHTML"],[1,"footer","offer-card__footer"],[1,"container-fluid"],[1,"highlight","offer-card__highlight-text",3,"innerHTML"],[1,"noHighlight","offer-card__no-highlight"],[1,"text-center","offer-card__price"],[1,"text-center","offerPrice","offer-card__price-summary"],[1,"text-center","offerButton","offer-card__order-btn"],["mat-raised-button","","color","primary",1,"offer-card__order-btn-button",3,"click"],[1,"h5"],[1,"offer-card__price-desc",3,"innerHTML"],[1,"h5","offer-card__price-summary-value",3,"innerHTML"],[1,"mb-3","offer-card__details"],[1,"offerBonus","offer-card__bonus"],["tabindex","0",1,"offer-card__address-block",2,"outline","none"],[1,"row","offerBillingAddress","offer-card__billing-address"],[1,"row","offerBonusAddress","offer-card__bonus-address"],[1,"row","offerPaymentCode","offer-card__payment-code"],[1,"row","offerPaymentFrequency","offer-card__payment-frequency"],["id","saveButtonPoint",1,"offer-card__save-point",2,"visibility","hidden"],["aria-hidden","true",1,"offer-card__bonus-separator"],[1,"offer-card__bonus-item"],[1,"h5","offer-card__bonus-title",3,"innerHTML"],[1,"offer-card__bonus-name",3,"innerHTML"],["aria-hidden","true",1,"offer-card__address-separator"],[1,"h5","offer-card__address-title",3,"innerHTML"],[1,"row","offerDeliveryAddress","offer-card__delivery-address"],[1,"col-6","offer-card__delivery-label",3,"innerHTML"],[1,"col-6","offer-card__delivery-value"],[1,"list-unstyled","offer-card__delivery-list"],[1,"offer-card__delivery-person"],[1,"offer-card__delivery-address-line"],[1,"col-6","offer-card__billing-label",3,"innerHTML"],[1,"col-6","offer-card__billing-value"],[1,"list-unstyled","offer-card__billing-list"],[1,"offer-card__billing-person"],[1,"offer-card__billing-address-line"],[1,"col-6","offer-card__bonus-label",3,"innerHTML"],[1,"col-6","offer-card__bonus-value"],[1,"list-unstyled","offer-card__bonus-list"],[1,"offer-card__bonus-person"],[1,"offer-card__bonus-address-line"],["aria-hidden","true",1,"offer-card__payment-separator"],[1,"h5","offer-card__payment-title",3,"innerHTML"],[1,"col-6","offer-card__payment-code-label",3,"innerHTML"],[1,"col-6","offer-card__payment-code-value"],[1,"col-6","offer-card__payment-frequency-label",3,"innerHTML"],[1,"col-6","offer-card__payment-frequency-value"],["aria-hidden","true",1,"offer-card__startdate-separator"],[1,"h5","offer-card__startdate-title",3,"innerHTML"],[1,"row","offerStartDate","offer-card__startdate"],[1,"col-6","offer-card__startdate-label",3,"innerHTML"],[1,"col-6","offer-card__startdate-value"],["aria-hidden","true",1,"offer-card__prices-separator"],[1,"h5","offer-card__prices-title",3,"innerHTML"],[1,"row","mb-2","offer-card__prices-row"],[1,"col-6","offer-card__prices-label",3,"innerHTML"],[1,"col-6","offer-card__prices-value"],[1,"col-6","offer-card__prices-text"],[1,"col-6","offer-card__prices-empty"],[1,"offer-card__prices-delivery",3,"innerHTML"],[1,"col-6","offer-card__prices-text",3,"innerHTML"],[1,"offer-card__prices-desc",3,"innerHTML"],[1,"offer-card__agb-info1",3,"innerHTML"],[1,"col-12","offer-card__privacy-disclaimer-agb-checkbox"],[1,"col-12","offer-card__epaper-revocation-waiver-checkbox"],[1,"offer-card__agb-info2",3,"innerHTML"],[1,"col-12","offer-card__agb-checkbox"],["required","","aria-required","true","data-cy","checkbox-agb",1,"text-wrap","offer-card__agb-checkbox-input",3,"ngModelChange","change","ngModel"],[1,"offer-card__agb-checkbox-label",3,"innerHTML"],[1,"small","errorOffset","offer-card__agb-checkbox-error",3,"innerHTML"],[1,"col-12","offer-card__disclaimer-checkbox"],["required","","aria-required","true","data-cy","checkbox-disclaimer",1,"text-wrap","offer-card__disclaimer-checkbox-input",3,"ngModelChange","change","ngModel"],[1,"offer-card__disclaimer-checkbox-label",3,"innerHTML"],[1,"small","errorOffset","offer-card__disclaimer-checkbox-error",3,"innerHTML"],[1,"col-12","offer-card__privacy-checkbox"],["required","","aria-required","true","data-cy","checkbox-privacy",1,"text-wrap","offer-card__privacy-checkbox-input",3,"ngModelChange","change","ngModel"],[1,"offer-card__privacy-checkbox-label",3,"innerHTML"],[1,"small","errorOffset","offer-card__privacy-checkbox-error",3,"innerHTML"],["required","","aria-required","true","data-cy","checkbox-agb-disclaimer-privacy",1,"text-wrap","offer-card__privacy-disclaimer-agb-checkbox-input",3,"ngModelChange","change","ngModel"],[1,"offer-card__privacy-disclaimer-agb-checkbox-label",3,"innerHTML"],[1,"alignEnd","offer-card__privacy-disclaimer-agb-checkbox-error",3,"innerHTML"],["required","","aria-required","true","data-cy","checkbox-epaper-revocation-waiver",1,"text-wrap","offer-card__epaper-revocation-waiver-checkbox-input",3,"ngModelChange","change","ngModel"],[1,"offer-card__epaper-revocation-waiver-checkbox-label",3,"innerHTML"],[1,"small","errorOffset","offer-card__epaper-revocation-waiver-checkbox-error",3,"innerHTML"],[1,"col-12","offer-card__optin"],["aria-required","true",1,"mat-checkbox-vert","text-wrap","offer-card__optin-checkbox",3,"change","required"],[1,"offer-card__optin-label",3,"innerHTML"],[1,"small","errorOffset","offer-card__optin-error",3,"innerHTML"],["data-cy","hint-agb-disclaimer-privacy",1,"col-12","mt-3","offer-card__privacy-disclaimer-agb-hint",3,"innerHTML"],[1,"row","offerCard-orderSend","offer-card__order-send"],[1,"col","offer-card__order-actions"],["mat-raised-button","","type","button",1,"offer-card__order-back-btn","me-3",3,"innerHTML"],["mat-raised-button","","color","primary","type","button","data-cy","btn-create-order",1,"offer-card__order-send-btn-button",3,"click","disabled","innerHTML"],["mat-raised-button","","type","button",1,"offer-card__order-back-btn","me-3",3,"click","innerHTML"]],template:function(i,r){i&1&&x(0,bee,11,12,"div",6)(1,Fee,7,6),i&2&&b(r.showOnlyOptIns?1:0)},dependencies:[tn,at,is,Rt,Ec,Ee,Di,Le,Ps,tr,$o,At,ai,js,Ht,Ot,cn],styles:[`.offerCard[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{height:60px;padding:16px;
42background-color:var(--offerHighlightHeaderBackground);color:var(--offerHighlightHeaderColor);text-align:var(--offerHighlightHeaderTextAlign);margin:1px 1px 0}.offerCard[_ngcontent-%COMP%] .noHighlight[_ngcontent-%COMP%]{height:60px}.offerCard.highlight[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%]{border-top:none}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{height:60px;margin-bottom:0!important;padding:15px;background-color:var(--offerHeaderBackground);color:var(--offerHeaderColor)}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{background-color:var(--offerFooterBackground);color:var(--offerFooterColor)}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .offerButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-align:center;margin-left:auto;margin-right:auto;left:0;right:0;width:100%}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .mat-mdc-card-image[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--offerButtonBackgroundColor)!important;color:var(--offerButtonColor)!important;height:42px!important;width:80%;margin-top:15px!important}.offerImage[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%!important;height:100%!important}.offerCard-orderSend[_ngcontent-%COMP%]{padding-top:16px}.offer-card__order-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px}.offer-card__order-send-btn-button[_ngcontent-%COMP%]{margin-left:0} 43/*# sourceMappingURL=offer-card.component-RUG2NV53.css.map */`]})}}return t})();function Lee(t,n){if(t&1&&_(0,"img",5),t&2){let e=h();f("ngSrc",e.externalOffer==null||e.externalOffer.image==null?null:e.externalOffer.image.src)("width",e.imageService.width)("height",e.imageService.height)("alt",e.externalOffer==null||e.externalOffer.image==null?null:e.externalOffer.image.altText)}}function Bee(t,n){if(t&1&&(p(0,"div",12),_(1,"div",13),m()),t&2){let e=h();c(),f("innerHTML",e.externalOffer==null?null:e.externalOffer.additionalData,y)}}var XL=(()=>{class t{constructor(){this.navigationService=d(Re),this.translationService=d(Y),this.imageService=d(Ei),this.showOnOfferPage=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-external-offer-card"]],inputs:{externalOffer:"externalOffer",showOnOfferPage:"showOnOfferPage"},decls:16,vars:7,consts:[["pricetext",""],["id","offerCard",1,"offerCard","offer-card",3,"ngClass"],["appearance","outlined",1,"pointer","offer-card__container"],[1,"heading","h4","text-center","offer-card__header",3,"innerHTML"],[1,"offerImage","offer-card__image"],["mat-card-image","",1,"offer-card__img",3,"ngSrc","width","height","alt"],[1,"offer-card__content"],[1,"text-center","offer-card__price"],[1,"h5"],[1,"footer","offer-card__footer"],[1,"text-center","offerButton","offer-card__button"],["mat-raised-button","","color","primary",3,"click"],[1,"text-center","offerPrice","offer-card__additional-data"],[1,"h5",3,"innerHTML"]],template:function(i,r){if(i&1){let o=B();p(0,"div",1)(1,"mat-card",2),_(2,"div",3),p(3,"div",4),x(4,Lee,1,4,"img",5),m(),p(5,"div",6)(6,"div",7)(7,"div",8),E(8),te(9,"currency"),m()(),x(10,Bee,2,1,"ng-template",null,0,fa),p(12,"div",9)(13,"div",10)(14,"button",11),T("click",function(){return A(o),k(r.navigationService.navigateExtern(r.externalOffer.externalURL,!0))}),E(15),m()()()()()()}i&2&&(f("ngClass",r.showOnOfferPage?"h-100 pb-5":""),c(2),f("innerHTML",r.externalOffer==null?null:r.externalOffer.header,y),c(2),b(r.externalOffer!=null&&r.externalOffer.image&&(!(r.externalOffer==null||r.externalOffer.image==null)&&r.externalOffer.image.src)?4:-1),c(4),he(Ct(9,5,r.externalOffer.price)),c(7),R(" ",r.translationService.getTranslation("button_order")," "))},dependencies:[at,tn,is,Ec,Ee,cn],styles:[`.offerCard[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{height:60px;padding:15px;
43background-color:var(--offerHighlightHeaderBackground);color:var(--offerHighlightHeaderColor);text-align:var(--offerHighlightHeaderTextAlign);border:10px solid black}.offerCard[_ngcontent-%COMP%] .noHighlight[_ngcontent-%COMP%]{height:60px}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{position:relative;height:60px;margin-bottom:0!important;padding:15px;background-color:var(--offerHeaderBackground);color:var(--offerHeaderColor)}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{background-color:var(--offerFooterBackground);color:var(--offerFooterColor)}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .offerButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-align:center;margin-left:auto;margin-right:auto;left:0;right:0;width:100%}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .mat-mdc-card-image[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.offerCard[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--offerButtonBackgroundColor)!important;color:var(--offerButtonColor)!important;height:42px!important;width:80%;margin-top:15px!important}.offerImage[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%!important;height:100%!important} 44/*# sourceMappingURL=external-offer-card.component-YMUGQLXV.css.map */`]})}}return t})();function Hee(t,n){if(t&1&&(p(0,"div",13),_(1,"img",15),m()),t&2){let e=h(2);c(),f("ngSrc",e.actualPage.viewFile.src)("width",e.imageService.width)("height",e.imageService.height)("priority",!0)("alt",e.actualPage.viewFile.altText)}}function Vee(t,n){if(t&1&&(p(0,"div",14),_(1,"div",16),m()),t&2){let e=h(2);c(),f("innerHtml",e.actualPage.viewDescription,y)}}function jee(t,n){if(t&1&&(p(0,"div",0),x(1,Hee,2,5,"div",13)(2,Vee,2,1,"div",14),m()),t&2){let e=h();c(),b(e.actualPage.viewFile?1:-1),c(),b(e.actualPage.viewDescription?2:-1)}}function zee(t,n){if(t&1&&_(0,"h3",17),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("offer_intro"),y)}}function Uee(t,n){t&1&&(p(0,"div",9),_(1,"app-loading-spinner"),m())}function Gee(t,n){if(t&1&&(p(0,"div",6),_(1,"app-offer-card",18),m()),t&2){let e=h().$implicit,i=h();f("className",(i.hasCustomResponsivClasses()?i.getCustomResponsivClasses():"col-12 col-md-6 col-lg-4")+" mb-5 offer-page__card"),c(),f("offer",e)}}function $ee(t,n){if(t&1&&x(0,Gee,2,2,"div",6),t&2){let e=n.$implicit,i=h();b(i.activeGroup===e.offerGroup?0:-1)}}function Wee(t,n){if(t&1&&(p(0,"div",6),_(1,"app-external-offer-card",19),m()),t&2){let e=n.$implicit,i=h();f("className",(i.hasCustomResponsivClasses()?i.getCustomResponsivClasses():"col-12 col-md-6 col-lg-4")+" mb-5 offer-page__card"),c(),f("externalOffer",e)}}function qee(t,n){if(t&1){let e=B();p(0,"div",12)(1,"button",20),T("click",function(){A(e);let r=h();return k(r.goBackToGroupView())}),E(2),m()()}if(t&2){let e=h();c(2),R(" ",e.translationService.getTranslation("button_back")," ")}}var JL=(()=>{class t{constructor(){this.offerService=d(Qo),this.imageService=d(Ei),this.translationService=d(Y),this.route=d(Ye),this.vHostService=d(Ai),this.configService=d(Ce),this.navigationService=d(Re),this.landingPageService=d(Wi),this.router=d(et),this.externalOfferService=d(Kv),this.imageHandler=d(Wr),this.isLoadingOffer=!1,this.offers=[],this.activeGroup=null,this.moreThanOneGroup=!1,this.errorsArr=[],this.CssPropertiesEnum=tt,this.externalOffers=[],this.cssPropertyPipe=new Bn}ngOnInit(){this.route.paramMap.subscribe(e=>{this.activeGroup=e.get("offerGroup"),this.moreThanOneGroup=e.get("moreThanOneGroup")==="1"}),this.isLoadingOffer=!0,this.offerService.getMinimalOffers(!0).subscribe({next:e=>{this.isLoadingOffer=!1,this.offers=e},error:()=>{this.isLoadingOffer=!1,this.errorsArr.push(this.translationService.getTranslation("error_offer_init"))}}),this.landingPageService.getPageOfUrl(this.router.url.split("/")[1]).subscribe(e=>{this.actualPage=e}),this.externalOfferService.loadExternalOffersForOfferGroup(this.activeGroup).subscribe({next:e=>
44{e&&(this.externalOffers=e,this.externalOffers.forEach(i=>{this.imageService.getImageOfExternalOffer(i.id).subscribe(r=>{r&&(i.image=this.imageHandler.addAltText(r,i.header??this.translationService.getTranslation("externalOffer.image.altText.default")),i.image||e.splice(e.indexOf(i)))})}))},error:()=>console.info("no external offer for group "+this.activeGroup)})}goBackToGroupView(){this.navigationService.navigateTo(ge.OFFER).then(()=>null)}hasCustomResponsivClasses(){return!!this.getCustomResponsivClasses()}getCustomResponsivClasses(){let e=this.cssPropertyPipe.transform,i=["col-"+e(tt.offerFxFlex,this.vHostService),"col-sm-"+e(tt.offerFxFlexSM,this.vHostService),"col-md-"+e(tt.offerFxFlexMD,this.vHostService),"col-lg-"+e(tt.offerFxFlexLG,this.vHostService),"col-xl-"+e(tt.offerFxFlexXL,this.vHostService),"col-xxl-"+e(tt.offerFxFlexXXL,this.vHostService)].join(" ");return/\d/.test(i)?i:""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-hup-offer"]],decls:18,vars:11,consts:[[1,"offerView","offer-view"],["id","offerHeader",1,"row","offer-header",3,"className"],[1,"col-12","offer-header__title"],["class","offer-header__intro",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","offer-header__description"],[1,"offer-header__description-text",3,"innerHTML"],[3,"className"],["id","offerErrors",1,"col-12","offer-errors__container"],[1,"offer-errors__general",3,"errors"],["id","offerSpinner",1,"offer-errors__spinner",2,"text-align","center"],["id","offers",1,"offerPage","offer-page"],[1,"row","offer-page__row"],[1,"mt-5","float-end","offer-page__back"],[1,"mb-5","offer-view__image-wrapper"],[1,"mb-5","offer-view__description-wrapper"],[1,"offer-view__image",3,"ngSrc","width","height","priority","alt"],[1,"offerViewDescription","offer-view__description",3,"innerHtml"],[1,"offer-header__intro",3,"innerHTML"],[1,"offer-page__offer-card",3,"offer"],[1,"offer-page__external-offer-card",3,"externalOffer"],["mat-raised-button","",1,"offer-page__back-button",3,"click"]],template:function(i,r){i&1&&(x(0,jee,3,2,"div",0),p(1,"div",1),te(2,"cssProperty"),p(3,"div",2),x(4,zee,1,1,"h3",3),m(),p(5,"div",4),_(6,"p",5),m()(),p(7,"div",6)(8,"div",7),_(9,"app-general-errors",8),x(10,Uee,2,0,"div",9),m()(),p(11,"div",10)(12,"div",11),W(13,$ee,1,1,null,null,X),W(15,Wee,2,2,"div",6,X),m(),x(17,qee,3,1,"div",12),m()),i&2&&(b(r.actualPage?0:-1),c(),f("className",Te(2,8,r.CssPropertiesEnum.offerHeaderClasses,r.vHostService)),c(3),f("appApplyIfNotEmpty",r.translationService.getTranslation("offer_intro")),c(2),f("innerHTML",r.translationService.getTranslation("offer_description"),y),c(),f("className","row offer-errors"+r.errorsArr.length?" mb-3":""),c(2),f("errors",r.errorsArr),c(),b(r.isLoadingOffer?10:-1),c(3),q(r.offers),c(2),q(r.externalOffers),c(2),b(r.moreThanOneGroup?17:-1))},dependencies:[Bn,Vt,Ge,Hl,XL,Ee,ze,cn],styles:[`.offerView[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:-webkit-fill-available!important} 45/*# sourceMappingURL=offer.component-VTJW6DAW.css.map */`]})}}return t})();function Yee(t,n,e){return(n=Qee(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function eB(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,i)}return e}function me(t){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?eB(Object(e),!0).forEach(function(i){Yee(t,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):eB(Object(e)).forEac
45h(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}return t}function Kee(t,n){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,n||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function Qee(t){var n=Kee(t,"string");return typeof n=="symbol"?n:n+""}var tB=()=>{},rD={},TB={},MB=null,IB={mark:tB,measure:tB};try{typeof window<"u"&&(rD=window),typeof document<"u"&&(TB=document),typeof MutationObserver<"u"&&(MB=MutationObserver),typeof performance<"u"&&(IB=performance)}catch{}var{userAgent:iB=""}=rD.navigator||{},jl=rD,Pi=TB,nB=MB,Jv=IB,f8e=!!jl.document,Ys=!!Pi.documentElement&&!!Pi.head&&typeof Pi.addEventListener=="function"&&typeof Pi.createElement=="function",AB=~iB.indexOf("MSIE")||~iB.indexOf("Trident/"),Zee=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Xee=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,kB={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},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",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Jee={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},OB=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],_r="classic",ob="duotone",ete="sharp",tte="sharp-duotone",PB=[_r,ob,ete,tte],ite={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},nte={"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",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},rte=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),ote={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},ate=["fak","fa-kit","fakd","fa-kit-duotone"],rB={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},ste=["kit"],lte={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},cte=["fak","fakd"],dte={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},oB={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},eb={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ute=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],pte=["fak","fa-kit","fakd","fa-kit-duotone"],mte={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},fte={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},hte={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},jE={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},gte=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],zE=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...ute,...gte],_te=["solid","regular","light","thin","duotone","brands"],NB=[1,2,3,4,5,6,7,8,9,10],vte=NB.concat([11,12,13,14,15,16,17,18,19,20]),bte=[...Object.keys(hte),..._te,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vert
45ical","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",eb.GROUP,eb.SWAP_OPACITY,eb.PRIMARY,eb.SECONDARY].concat(NB.map(t=>"".concat(t,"x"))).concat(vte.map(t=>"w-".concat(t))),yte={"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"}},Ws="___FONT_AWESOME___",UE=16,RB="fa",FB="svg-inline--fa",Zc="data-fa-i2svg",GE="data-fa-pseudo-element",Cte="data-fa-pseudo-element-pending",oD="data-prefix",aD="data-icon",aB="fontawesome-i2svg",Ste="async",xte=["HTML","HEAD","STYLE","SCRIPT"],LB=(()=>{try{return!0}catch{return!1}})();function Hf(t){return new Proxy(t,{get(n,e){return e in n?n[e]:n[_r]}})}var BB=me({},kB);BB[_r]=me(me(me(me({},{"fa-duotone":"duotone"}),kB[_r]),rB.kit),rB["kit-duotone"]);var wte=Hf(BB),$E=me({},ote);$E[_r]=me(me(me(me({},{duotone:"fad"}),$E[_r]),oB.kit),oB["kit-duotone"]);var sB=Hf($E),WE=me({},jE);WE[_r]=me(me({},WE[_r]),dte.kit);var sD=Hf(WE),qE=me({},fte);qE[_r]=me(me({},qE[_r]),lte.kit);var h8e=Hf(qE),Ete=Zee,HB="fa-layers-text",Dte=Xee,Tte=me({},ite),g8e=Hf(Tte),Mte=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],FE=Jee,Ite=[...ste,...bte],Rf=jl.FontAwesomeConfig||{};function Ate(t){var n=Pi.querySelector("script["+t+"]");if(n)return n.getAttribute(t)}function kte(t){return t===""?!0:t==="false"?!1:t==="true"?!0:t}Pi&&typeof Pi.querySelector=="function"&&[["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(n=>{let[e,i]=n,r=kte(Ate(e));r!=null&&(Rf[i]=r)});var VB={styleDefault:"solid",familyDefault:_r,cssPrefix:RB,replacementClass:FB,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Rf.familyPrefix&&(Rf.cssPrefix=Rf.familyPrefix);var ip=me(me({},VB),Rf);ip.autoReplaceSvg||(ip.observeMutations=!1);var $e={};Object.keys(VB).forEach(t=>{Object.defineProperty($e,t,{enumerable:!0,set:function(n){ip[t]=n,Ff.forEach(e=>e($e))},get:function(){return ip[t]}})});Object.defineProperty($e,"familyPrefix",{enumerable:!0,set:function(t){ip.cssPrefix=t,Ff.forEach(n=>n($e))},get:function(){return ip.cssPrefix}});jl.FontAwesomeConfig=$e;var Ff=[];function Ote(t){return Ff.push(t),()=>{Ff.splice(Ff.indexOf(t),1)}}var Vl=UE,ns={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Pte(t){if(!t||!Ys)return;let n=Pi.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=t;let e=Pi.head.childNodes,i=null;for(let r=e.length-1;r>-1;r--){let o=e[r],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(i=o)}return Pi.head.insertBefore(n,i),t}var Nte="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Lf(){let t=12,n="";for(;t-- >0;)n+=Nte[Math.random()*62|0];return n}function np(t){let n=[];for(let e=(t||[]).length>>>0;e--;)n[e]=t[e];return n}function lD(t){return t.classList?np(t.classList):(t.getAttribute("class")||"").split(" ").filter(n=>n)}function jB(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Rte(t){return Object.keys(t||{}).reduce((n,e)=>n+"".concat(e,'="').concat(jB(t[e]),'" '),"").trim()}function ab(t){return Object.keys(t||{}).reduce((n,e)=>n+"".concat(e,": ").concat(t[e].trim(),";"),"")}function cD(t){return t.size!==ns.size||t.x!==ns.x||t.y!==ns.y||t.rotate!==ns.rotate||t.flipX||t.flipY}function Fte(t){let{transform:n,containerWidth:e,iconWidth:i}=t,r={transform:"translate(".concat(e/2," 256)")},o="translate(".concat(n.x*32,", ").concat(n.y*32,") "),a="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(i/2*-1," -256)")};return{outer:r,inner:l,path:u}}function Lte(t){let{transform:n,width:e=UE,height:i=UE,startCentered:r=!1}=t,o="";return r&&AB?o+="translate(".concat(n.x/Vl-e/2,"em, ").concat(n.y/Vl-i/2,"em) "):r?o+="translate(calc(-50% + ".concat(n.x/Vl,"em), calc(-50% + ").concat(n.y/Vl,"em)) "):o+="translate(".concat(n.x/Vl,"em, ").concat(n.y/Vl,"em) "),o+="scale(".concat(n.size/Vl*(n.flipX?-1:1),", ").concat(n.size/Vl*(n.flipY?-1:1),") "),o+="rotate(".concat(n.rotate,"deg) "),o}var Bte=
vendor: 12,335 bytes, lines 45-598
45`:root, :host { 46 --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; 47 --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; 48 --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; 49 --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro"; 50 --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; 51 --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone"; 52 --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone"; 53 --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone"; 54 --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; 55 --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; 56 --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; 57 --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; 58 --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; 59 --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone"; 60 --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone"; 61 --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone"; 62 --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone"; 63} 64 65svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { 66 overflow: visible; 67 box-sizing: content-box; 68} 69 70.svg-inline--fa { 71 display: var(--fa-display, inline-block); 72 height: 1em; 73 overflow: visible; 74 vertical-align: -0.125em; 75} 76.svg-inline--fa.fa-2xs { 77 vertical-align: 0.1em; 78} 79.svg-inline--fa.fa-xs { 80 vertical-align: 0em; 81} 82.svg-inline--fa.fa-sm { 83 vertical-align: -0.0714285705em; 84} 85.svg-inline--fa.fa-lg { 86 vertical-align: -0.2em; 87} 88.svg-inline--fa.fa-xl { 89 vertical-align: -0.25em; 90} 91.svg-inline--fa.fa-2xl { 92 vertical-align: -0.3125em; 93} 94.svg-inline--fa.fa-pull-left { 95 margin-right: var(--fa-pull-margin, 0.3em); 96 width: auto; 97} 98.svg-inline--fa.fa-pull-right { 99 margin-left: var(--fa-pull-margin, 0.3em); 100 width: auto; 101} 102.svg-inline--fa.fa-li { 103 width: var(--fa-li-width, 2em); 104 top: 0.25em; 105} 106.svg-inline--fa.fa-fw { 107 width: var(--fa-fw-width, 1.25em); 108} 109 110.fa-layers svg.svg-inline--fa { 111 bottom: 0; 112 left: 0; 113 margin: auto; 114 position: absolute; 115 right: 0; 116 top: 0; 117} 118 119.fa-layers-counter, .fa-layers-text { 120 display: inline-block; 121 position: absolute; 122 text-align: center; 123} 124 125.fa-layers { 126 display: inline-block; 127 height: 1em; 128 position: relative; 129 text-align: center; 130 vertical-align: -0.125em; 131 width: 1em; 132} 133.fa-layers svg.svg-inline--fa { 134 transform-origin: center center; 135} 136 137.fa-layers-text { 138 left: 50%; 139 top: 50%; 140 transform: translate(-50%, -50%); 141 transform-origin: center center; 142} 143 144.fa-layers-counter { 145 background-color: var(--fa-counter-background-color, #ff253a); 146 border-radius: var(--fa-counter-border-radius, 1em); 147 box-sizing: border-box; 148 color: var(--fa-inverse, #fff); 149 line-height: var(--fa-counter-line-height, 1); 150 max-width: var(--fa-counter-max-width, 5em); 151 min-width: var(--fa-counter-min-width, 1.5em); 152 overflow: hidden; 153 padding: var(--fa-counter-padding, 0.25em 0.5em); 154 right: var(--fa-right, 0); 155 text-overflow: ellipsis; 156 top: var(--fa-top, 0); 157 transform: scale(var(--fa-counter-scale, 0.25)); 158 transform-origin: top right; 159} 160 161.fa-layers-bottom-right { 162 bottom: var(--fa-bottom, 0); 163 right: var(--fa-right, 0); 164 top: auto; 165 transform: scale(var(--fa-layers-scale, 0.25)); 166 transform-origin: bottom right; 167} 168 169.fa-layers-bottom-left { 170 bottom: var(--fa-bottom, 0); 171 left: var(--fa-left, 0); 172 right: auto; 173 top: auto; 174 transform: scale(var(--fa-layers-scale, 0.25)); 175 transform-origin: bottom left; 176} 177 178.fa-layers-top-right { 179 top: var(--fa-top, 0); 180 right: var(--fa-right, 0); 181 transform: scale(var(--fa-layers-scale, 0.25)); 182 transform-origin: top right; 183} 184 185.fa-layers-top-left { 186 left: var(--fa-left, 0); 187 right: auto; 188 top: var(--fa-top, 0); 189 transform: scale(var(--fa-layers-scale, 0.25)); 190 transform-origin: top left; 191} 192 193.fa-1x { 194 font-size: 1em; 195} 196 197.fa-2x { 198 font-size: 2em; 199} 200 201.fa-3x { 202 font-size: 3em; 203} 204 205.fa-4x { 206 font-size: 4em; 207} 208 209.fa-5x { 210 font-size: 5em; 211} 212 213.fa-6x { 214 font-size: 6em; 215} 216 217.fa-7x { 218 font-size: 7em; 219} 220 221.fa-8x { 222 font-size: 8em; 223} 224 225.fa-9x { 226 font-size: 9em; 227} 228 229.fa-10x { 230 font-size: 10em; 231} 232 233.fa-2xs { 234 font-size: 0.625em; 235 line-height: 0.1em; 236 vertical-align: 0.225em; 237} 238 239.fa-xs { 240 font-size: 0.75em; 241 line-height: 0.0833333337em; 242 vertical-align: 0.125em; 243} 244 245.fa-sm { 246 font-size: 0.875em; 247 line-height: 0.0714285718em; 248 vertical-align: 0.0535714295em; 249} 250 251.fa-lg { 252 font-size: 1.25em; 253 line-height: 0.05em; 254 vertical-align: -0.075em; 255} 256 257.fa-xl { 258 font-size: 1.5em; 259 line-height: 0.0416666682em; 260 vertical-align: -0.125em; 261} 262 263.fa-2xl { 264 font-size: 2em; 265 line-height: 0.03125em; 266 vertical-align: -0.1875em; 267} 268 269.fa-fw { 270 text-align: center; 271 width: 1.25em; 272} 273 274.fa-ul { 275 list-style-type: none; 276 margin-left: var(--fa-li-margin, 2.5em); 277 padding-left: 0; 278} 279.fa-ul > li { 280 position: relative; 281} 282 283.fa-li { 284 left: calc(-1 * var(--fa-li-width, 2em)); 285 position: absolute; 286 text-align: center; 287 width: var(--fa-li-width, 2em); 288 line-height: inherit; 289} 290 291.fa-border { 292 border-color: var(--fa-border-color, #eee); 293 border-radius: var(--fa-border-radius, 0.1em); 294 border-style: var(--fa-border-style, solid); 295 border-width: var(--fa-border-width, 0.08em); 296 padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); 297} 298 299.fa-pull-left { 300 float: left; 301 margin-right: var(--fa-pull-margin, 0.3em); 302} 303 304.fa-pull-right { 305 float: right; 306 margin-left: var(--fa-pull-margin, 0.3em); 307} 308 309.fa-beat { 310 animation-name: fa-beat; 311 animation-delay: var(--fa-animation-delay, 0s); 312 animation-direction: var(--fa-animation-direction, normal); 313 animation-duration: var(--fa-animation-duration, 1s); 314 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 315 animation-timing-function: var(--fa-animation-timing, ease-in-out); 316} 317 318.fa-bounce { 319 animation-name: fa-bounce; 320 animation-delay: var(--fa-animation-delay, 0s); 321 animation-direction: var(--fa-animation-direction, normal); 322 animation-duration: var(--fa-animation-duration, 1s); 323 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 324 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); 325} 326 327.fa-fade { 328 animation-name: fa-fade; 329 animation-delay: var(--fa-animation-delay, 0s); 330 animation-direction: var(--fa-animation-direction, normal); 331 animation-duration: var(--fa-animation-duration, 1s); 332 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 333 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 334} 335 336.fa-beat-fade { 337 animation-name: fa-beat-fade; 338 animation-delay: var(--fa-animation-delay, 0s); 339 animation-direction: var(--fa-animation-direction, normal); 340 animation-duration: var(--fa-animation-duration, 1s); 341 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 342 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 343} 344 345.fa-flip { 346 animation-name: fa-flip; 347 animation-delay: var(--fa-animation-delay, 0s); 348 animation-direction: var(--fa-animation-direction, normal); 349 animation-duration: var(--fa-animation-duration, 1s); 350 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 351 animation-timing-function: var(--fa-animation-timing, ease-in-out); 352} 353 354.fa-shake { 355 animation-name: fa-shake; 356 animation-delay: var(--fa-animation-delay, 0s); 357 animation-direction: var(--fa-animation-direction, normal); 358 animation-duration: var(--fa-animation-duration, 1s); 359 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 360 animation-timing-function: var(--fa-animation-timing, linear); 361} 362 363.fa-spin { 364 animation-name: fa-spin; 365 animation-delay: var(--fa-animation-delay, 0s); 366 animation-direction: var(--fa-animation-direction, normal); 367 animation-duration: var(--fa-animation-duration, 2s); 368 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 369 animation-timing-function: var(--fa-animation-timing, linear); 370} 371 372.fa-spin-reverse { 373 --fa-animation-direction: reverse; 374} 375 376.fa-pulse, 377.fa-spin-pulse { 378 animation-name: fa-spin; 379 animation-direction: var(--fa-animation-direction, normal); 380 animation-duration: var(--fa-animation-duration, 1s); 381 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 382 animation-timing-function: var(--fa-animation-timing, steps(8)); 383} 384 385@media (prefers-reduced-motion: reduce) { 386 .fa-beat, 387.fa-bounce, 388.fa-fade, 389.fa-beat-fade, 390.fa-flip, 391.fa-pulse, 392.fa-shake, 393.fa-spin, 394.fa-spin-pulse { 395 animation-delay: -1ms; 396 animation-duration: 1ms; 397 animation-iteration-count: 1; 398 transition-delay: 0s; 399 transition-duration: 0s; 400 } 401} 402@keyframes fa-beat { 403 0%, 90% { 404 transform: scale(1); 405 } 406 45% { 407 transform: scale(var(--fa-beat-scale, 1.25)); 408 } 409} 410@keyframes fa-bounce { 411 0% { 412 transform: scale(1, 1) translateY(0); 413 } 414 10% { 415 transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 416 } 417 30% { 418 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)); 419 } 420 50% { 421 transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 422 } 423 57% { 424 transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 425 } 426 64% { 427 transform: scale(1, 1) translateY(0); 428 } 429 100% { 430 transform: scale(1, 1) translateY(0); 431 } 432} 433@keyframes fa-fade { 434 50% { 435 opacity: var(--fa-fade-opacity, 0.4); 436 } 437} 438@keyframes fa-beat-fade { 439 0%, 100% { 440 opacity: var(--fa-beat-fade-opacity, 0.4); 441 transform: scale(1); 442 } 443 50% { 444 opacity: 1; 445 transform: scale(var(--fa-beat-fade-scale, 1.125)); 446 } 447} 448@keyframes fa-flip { 449 50% { 450 transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 451 } 452} 453@keyframes fa-shake { 454 0% { 455 transform: rotate(-15deg); 456 } 457 4% { 458 transform: rotate(15deg); 459 } 460 8%, 24% { 461 transform: rotate(-18deg); 462 } 463 12%, 28% { 464 transform: rotate(18deg); 465 } 466 16% { 467 transform: rotate(-22deg); 468 } 469 20% { 470 transform: rotate(22deg); 471 } 472 32% { 473 transform: rotate(-12deg); 474 } 475 36% { 476 transform: rotate(12deg); 477 } 478 40%, 100% { 479 transform: rotate(0deg); 480 } 481} 482@keyframes fa-spin { 483 0% { 484 transform: rotate(0deg); 485 } 486 100% { 487 transform: rotate(360deg); 488 } 489} 490.fa-rotate-90 { 491 transform: rotate(90deg); 492} 493 494.fa-rotate-180 { 495 transform: rotate(180deg); 496} 497 498.fa-rotate-270 { 499 transform: rotate(270deg); 500} 501 502.fa-flip-horizontal { 503 transform: scale(-1, 1); 504} 505 506.fa-flip-vertical { 507 transform: scale(1, -1); 508} 509 510.fa-flip-both, 511.fa-flip-horizontal.fa-flip-vertical { 512 transform: scale(-1, -1); 513} 514 515.fa-rotate-by { 516 transform: rotate(var(--fa-rotate-angle, 0)); 517} 518 519.fa-stack { 520 display: inline-block; 521 vertical-align: middle; 522 height: 2em; 523 position: relative; 524 width: 2.5em; 525} 526 527.fa-stack-1x, 528.fa-stack-2x { 529 bottom: 0; 530 left: 0; 531 margin: auto; 532 position: absolute; 533 right: 0; 534 top: 0; 535 z-index: var(--fa-stack-z-index, auto); 536} 537 538.svg-inline--fa.fa-stack-1x { 539 height: 1em; 540 width: 1.25em; 541} 542.svg-inline--fa.fa-stack-2x { 543 height: 2em; 544 width: 2.5em; 545} 546 547.fa-inverse { 548 color: var(--fa-inverse, #fff); 549} 550 551.sr-only, 552.fa-sr-only { 553 position: absolute; 554 width: 1px; 555 height: 1px; 556 padding: 0; 557 margin: -1px; 558 overflow: hidden; 559 clip: rect(0, 0, 0, 0); 560 white-space: nowrap; 561 border-width: 0; 562} 563 564.sr-only-focusable:not(:focus), 565.fa-sr-only-focusable:not(:focus) { 566 position: absolute; 567 width: 1px; 568 height: 1px; 569 padding: 0; 570 margin: -1px; 571 overflow: hidden; 572 clip: rect(0, 0, 0, 0); 573 white-space: nowrap; 574 border-width: 0; 575} 576 577.svg-inline--fa .fa-primary { 578 fill: var(--fa-primary-color, currentColor); 579 opacity: var(--fa-primary-opacity, 1); 580} 581 582.svg-inline--fa .fa-secondary { 583 fill: var(--fa-secondary-color, currentColor); 584 opacity: var(--fa-secondary-opacity, 0.4); 585} 586 587.svg-inline--fa.fa-swap-opacity .fa-primary { 588 opacity: var(--fa-secondary-opacity, 0.4); 589} 590 591.svg-inline--fa.fa-swap-opacity .fa-secondary { 592 opacity: var(--fa-primary-opacity, 1); 593} 594 595.svg-inline--fa mask .fa-primary, 596.svg-inline--fa mask .fa-secondary { 597 fill: black; 598}`;
598function zB(){let t=RB,n=FB,e=$e.cssPrefix,i=$e.replacementClass,r=Bte;if(e!==t||i!==n){let o=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(n),"g");r=r.replace(o,".".concat(e,"-")).replace(a,"--".concat(e,"-")).replace(s,".".concat(i))}return r}var lB=!1;function LE(){$e.autoAddCss&&!lB&&(Pte(zB()),lB=!0)}var Hte={mixout(){return{dom:{css:zB,insertCss:LE}}},hooks(){return{beforeDOMElementCreation(){LE()},beforeI2svg(){LE()}}}},qs=jl||{};qs[Ws]||(qs[Ws]={});qs[Ws].styles||(qs[Ws].styles={});qs[Ws].hooks||(qs[Ws].hooks={});qs[Ws].shims||(qs[Ws].shims=[]);var rs=qs[Ws],UB=[],GB=function(){Pi.removeEventListener("DOMContentLoaded",GB),nb=1,UB.map(t=>t())},nb=!1;Ys&&(nb=(Pi.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Pi.readyState),nb||Pi.addEventListener("DOMContentLoaded",GB));function Vte(t){Ys&&(nb?setTimeout(t,0):UB.push(t))}function Vf(t){let{tag:n,attributes:e={},children:i=[]}=t;return typeof t=="string"?jB(t):"<".concat(n," ").concat(Rte(e),">").concat(i.map(Vf).join(""),"</").concat(n,">")}function cB(t,n,e){if(t&&t[n]&&t[n][e])return{prefix:n,iconName:e,icon:t[n][e]}}var jte=function(n,e){return function(i,r,o,a){return n.call(e,i,r,o,a)}},BE=function(n,e,i,r){var o=Object.keys(n),a=o.length,s=r!==void 0?jte(e,r):e,l,u,g;for(i===void 0?(l=1,g=n[o[0]]):(l=0,g=i);l<a;l++)u=o[l],g=s(g,n[u],u,n);return g};function zte(t){let n=[],e=0,i=t.length;for(;e<i;){let r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<i){let o=t.charCodeAt(e++);(o&64512)==56320?n.push(((r&1023)<<10)+(o&1023)+65536):(n.push(r),e--)}else n.push(r)}return n}function YE(t){let n=zte(t);return n.length===1?n[0].toString(16):null}function Ute(t,n){let e=t.length,i=t.charCodeAt(n),r;return i>=55296&&i<=56319&&e>n+1&&(r=t.charCodeAt(n+1),r>=56320&&r<=57343)?(i-55296)*1024+r-56320+65536:i}function dB(t){return Object.keys(t).reduce((n,e)=>{let i=t[e];return!!i.icon?n[i.iconName]=i.icon:n[e]=i,n},{})}function KE(t,n){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{skipHooks:i=!1}=e,r=dB(n);typeof rs.hooks.addPack=="function"&&!i?rs.hooks.addPack(t,dB(n)):rs.styles[t]=me(me({},rs.styles[t]||{}),r),t==="fas"&&KE("fa",n)}var{styles:Bf,shims:Gte}=rs,$B=Object.keys(sD),$te=$B.reduce((t,n)=>(t[n]=Object.keys(sD[n]),t),{}),dD=null,WB={},qB={},YB={},KB={},QB={};function Wte(t){return~Ite.indexOf(t)}function qte(t,n){let e=n.split("-"),i=e[0],r=e.slice(1).join("-");return i===t&&r!==""&&!Wte(r)?r:null}var ZB=()=>{let t=i=>BE(Bf,(r,o,a)=>(r[a]=BE(o,i,{}),r),{});WB=t((i,r,o)=>(r[3]&&(i[r[3]]=o),r[2]&&r[2].filter(s=>typeof s=="number").forEach(s=>{i[s.toString(16)]=o}),i)),qB=t((i,r,o)=>(i[o]=o,r[2]&&r[2].filter(s=>typeof s=="string").forEach(s=>{i[s]=o}),i)),QB=t((i,r,o)=>{let a=r[2];return i[o]=o,a.forEach(s=>{i[s]=o}),i});let n="far"in Bf||$e.autoFetchSvg,e=BE(Gte,(i,r)=>{let o=r[0],a=r[1],s=r[2];
598return a==="far"&&!n&&(a="fas"),typeof o=="string"&&(i.names[o]={prefix:a,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:a,iconName:s}),i},{names:{},unicodes:{}});YB=e.names,KB=e.unicodes,dD=sb($e.styleDefault,{family:$e.familyDefault})};Ote(t=>{dD=sb(t.styleDefault,{family:$e.familyDefault})});ZB();function uD(t,n){return(WB[t]||{})[n]}function Yte(t,n){return(qB[t]||{})[n]}function Qc(t,n){return(QB[t]||{})[n]}function XB(t){return YB[t]||{prefix:null,iconName:null}}function Kte(t){let n=KB[t],e=uD("fas",t);return n||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}function zl(){return dD}var JB=()=>({prefix:null,iconName:null,rest:[]});function Qte(t){let n=_r,e=$B.reduce((i,r)=>(i[r]="".concat($e.cssPrefix,"-").concat(r),i),{});return PB.forEach(i=>{(t.includes(e[i])||t.some(r=>$te[i].includes(r)))&&(n=i)}),n}function sb(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{family:e=_r}=n,i=wte[e][t];if(e===ob&&!t)return"fad";let r=sB[e][t]||sB[e][i],o=t in rs.styles?t:null;return r||o||null}function Zte(t){let n=[],e=null;return t.forEach(i=>{let r=qte($e.cssPrefix,i);r?e=r:i&&n.push(i)}),{iconName:e,rest:n}}function uB(t){return t.sort().filter((n,e,i)=>i.indexOf(n)===e)}function lb(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{skipLookups:e=!1}=n,i=null,r=zE.concat(pte),o=uB(t.filter(v=>r.includes(v))),a=uB(t.filter(v=>!zE.includes(v))),s=o.filter(v=>(i=v,!OB.includes(v))),[l=null]=s,u=Qte(o),g=me(me({},Zte(a)),{},{prefix:sb(l,{family:u})});return me(me(me({},g),tie({values:t,family:u,styles:Bf,config:$e,canonical:g,givenPrefix:i})),Xte(e,i,g))}function Xte(t,n,e){let{prefix:i,iconName:r}=e;if(t||!i||!r)return{prefix:i,iconName:r};let o=n==="fa"?XB(r):{},a=Qc(i,r);return r=o.iconName||a||r,i=o.prefix||i,i==="far"&&!Bf.far&&Bf.fas&&!$e.autoFetchSvg&&(i="fas"),{prefix:i,iconName:r}}var Jte=PB.filter(t=>t!==_r||t!==ob),eie=Object.keys(jE).filter(t=>t!==_r).map(t=>Object.keys(jE[t])).flat();function tie(t){let{values:n,family:e,canonical:i,givenPrefix:r="",styles:o={},config:a={}}=t,s=e===ob,l=n.includes("fa-duotone")||n.includes("fad"),u=a.familyDefault==="duotone",g=i.prefix==="fad"||i.prefix==="fa-duotone";if(!s&&(l||u||g)&&(i.prefix="fad"),(n.includes("fa-brands")||n.includes("fab"))&&(i.prefix="fab"),!i.prefix&&Jte.includes(e)&&(Object.keys(o).find(w=>eie.includes(w))||a.autoFetchSvg)){let w=rte.get(e).defaultShortPrefixId;i.prefix=w,i.iconName=Qc(i.prefix,i.iconName)||i.iconName}return(i.prefix==="fa"||r==="fa")&&(i.prefix=zl()||"fas"),i}var QE=class{constructor(){this.definitions={}}add(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];let r=e.reduce(this._pullDefinitions,{});Object.keys(r).forEach(o=>{this.definitions[o]=me(me({},this.definitions[o]||{}),r[o]),KE(o,r[o]);let a=sD[_r][o];a&&KE(a,r[o]),ZB()})}reset(){this.definitions={}}_pullDefinitions(n,e){let i=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(i).map(r=>{let{prefix:o,iconName:a,icon:s}=i[r],l=s[2];n[o]||(n[o]={}),l.length>0&&l.forEach(u=>{typeof u=="string"&&(n[o][u]=s)}),n[o][a]=s}),n}},pB=[],ep={},tp={},iie=Object.keys(tp);function nie(t,n){let{mixoutsTo:e}=n;return pB=t,ep={},Object.keys(tp).forEach(i=>{iie.indexOf(i)===-1&&delete tp[i]}),pB.forEach(i=>{let r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(o=>{typeof r[o]=="function"&&(e[o]=r[o]),typeof r[o]=="object"&&Object.keys(r[o]).forEach(a=>{e[o]||(e[o]={}),e[o][a]=r[o][a]})}),i.hooks){let o=i.hooks();Object.keys(o).forEach(a=>{ep[a]||(ep[a]=[]),ep[a].push(o[a])})}i.provides&&i.provides(tp)}),e}function ZE(t,n){for(var e=arguments.length,i=new Array(e>2?e-2:0),r=2;r<e;r++)i[r-2]=arguments[r];return(ep[t]||[]).forEach(a=>{n=a.apply(null,[n,...i])}),n}function Xc(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];(ep[t]||[]).forEach(o=>{o.apply(null,e)})}function Ul(){let t=arguments[0],n=Array.prototype.slice.call(arguments,1);return tp[t]?tp[t].apply(null,n):void 0}function XE(t){t.prefix==="fa"&&(t.prefix="fas");let{iconName:n}=t,e=t.prefix||zl();if(n)return n=Qc(e,n)||n,cB(e3.definitions,e,n)||cB(rs.styles,e,n)}var e3=new QE,rie=()=>{$e.autoReplaceSvg=!1,$e.observeMutations=!1,Xc("noAuto")},oie={i2svg:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ys?(Xc("beforeI2svg",t),Ul("pseudoElements2svg",t),Ul("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{autoReplaceSvgRoot:n}=t;$e.autoReplaceSvg===!1&&($e.autoReplaceSvg=!0),$e.observeMutations=!0,Vte(()=>{sie({autoReplaceSvgRoot:n}),Xc("watch",t)})}},aie={icon:t=>{if(t===null)return null;if(typeof t=="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Qc(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){let n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],e=sb(t[0]);return{prefix:e,iconName:Qc(e,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat($e.cssPrefix,"-"))>-1||t.match(Ete))){let n=lb(t.split(" "),{skipLookups:!0});return{prefix:n.prefix||zl(),iconName:Qc(n.prefix,n.iconName)||n.iconName}}if(typeof t=="string"){let n=zl();return{prefix:n,iconName:Qc(n,t)||t}}}},xo={noAuto:rie,config:$e,dom:oie,parse:aie,library:e3,findIconDefinition:XE,toHtml:Vf},sie=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{autoReplaceSvgRoot:n=Pi}=t;(Object.keys(rs.styles).length>0||$e.autoFetchSvg)&&Ys&&$e.autoReplaceSvg&&xo.dom.i2svg({node:n})};function cb(t,n){return Object.defineProperty(t,"abstract",{get:n}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(e=>Vf(e))}}),Object.defineProperty(t,"node",{get:function(){if(!Ys)return;let e=Pi.createElement("div");return e.innerHTML=t.html,e.children}}),t}function lie(t){let{children:n,main:e,mask:i,attributes:r,styles:o,transform:a}=t;if(cD(a)&&e.found&&!i.found){let{width:s,height:l}=e,u={x:s/l/2,y:.5};r.style=ab(me(me({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:r,children:n}]}function cie(t){let{prefix:n,iconName:e,children:i,attributes:r,symbol:o}=t,a=o===!0?"".concat(n,"-").concat($e.cssPrefix,"-").concat(e):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:me(me({},r),{},{id:a}),children:i}]}]}function pD(t){let{icons:{main:n,mask:e},prefix:i,iconName:r,transform:o,symbol:a,title:s,maskId:l,titleId:u,extra:g,watchable:v=!1}=t,{width:w,height:C}=e.found?e:n,S=cte.includes(i),D=[$e.replacementClass,r?"".concat($e.cssPrefix,"-").concat(r):""].filter(Me=>g.classes.indexOf(Me)===-1).filter(Me=>Me!==""||!!Me).concat(g.classes).join(" "),O={children:[],attributes:me(me({},g.attributes),{},{"data-prefix":i,"data-icon":r,class:D,role:g.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(w," ").concat(C)})},V=S&&!~g.classes.indexOf("fa-fw")?{width:"".concat(w/C*16*.0625,"em")}:{};v&&(O.attributes[Zc]=""),s&&(O.children.push({tag:"title",attributes:{id:O.attributes["aria-labelledby"]||"title-".concat(u||Lf())},children:[s]}),delete O.attributes.title);let Q=me(me({},O),{},{prefix:i,iconName:r,main:n,mask:e,maskId:l,transform:o,symbol:a,styles:me(me({},V),g.styles)}),{children:ie,attributes:U}=e.found&&n.found?Ul("generateAbstractMask",Q)||{children:[],attributes:{}}:Ul("generateAbstractIcon",Q)||{children:[],attributes:{}};return Q.children=ie,Q.attributes=U,a?cie(Q):lie(Q)}function mB(t){let{content:n,width:e,height:i,transform:r,title:o,extra:a,watchable:s=!1}=t,l=me(me(me({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});s&&(l[Zc]="");let u=me({},a.styles);cD(r)&&(u.transform=Lte({transform:r,startCentered:!0,width:e,height:i}),u["-webkit-transform"]=u.transform);let g=ab(u);g.length>0&&(l.style=g);let v=[];return v.push({tag:"span",attributes:l,children:[n]}),o&&v.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),v}function die(t){let{content:n,title:e,extra:i}=t,r=me(me(me({},i.attributes),e?{title:e}:{}),{},{class:i.classes.join(" ")}),o=ab(i.styles);o.length>0&&(r.style=o);let a=[];return a.push({tag:"span",attributes:r,children:[n]}),e&&a.push({tag:"span",attributes:{class:"sr-only"},children:[e]}),a}var{styles:HE}=rs;function JE(t){let n=t[0],e=t[1],[i]=t.slice(4),r=null;return Array.isArray(i)?r={tag:"g",attributes:{class:"".concat($e.cssPrefix,"-").concat(FE.GROUP)},children:[{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(FE.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(FE.PRIMARY),fill:"currentColor",d:i[1]}}]}
598:r={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:n,height:e,icon:r}}var uie={found:!1,width:512,height:512};function pie(t,n){!LB&&!$e.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(n,'" is missing.'))}function eD(t,n){let e=n;return n==="fa"&&$e.styleDefault!==null&&(n=zl()),new Promise((i,r)=>{if(e==="fa"){let o=XB(t)||{};t=o.iconName||t,n=o.prefix||n}if(t&&n&&HE[n]&&HE[n][t]){let o=HE[n][t];return i(JE(o))}pie(t,n),i(me(me({},uie),{},{icon:$e.showMissingIcons&&t?Ul("missingIconAbstract")||{}:{}}))})}var fB=()=>{},tD=$e.measurePerformance&&Jv&&Jv.mark&&Jv.measure?Jv:{mark:fB,measure:fB},Nf='FA "6.7.2"',mie=t=>(tD.mark("".concat(Nf," ").concat(t," begins")),()=>t3(t)),t3=t=>{tD.mark("".concat(Nf," ").concat(t," ends")),tD.measure("".concat(Nf," ").concat(t),"".concat(Nf," ").concat(t," begins"),"".concat(Nf," ").concat(t," ends"))},mD={begin:mie,end:t3},tb=()=>{};function hB(t){return typeof(t.getAttribute?t.getAttribute(Zc):null)=="string"}function fie(t){let n=t.getAttribute?t.getAttribute(oD):null,e=t.getAttribute?t.getAttribute(aD):null;return n&&e}function hie(t){return t&&t.classList&&t.classList.contains&&t.classList.contains($e.replacementClass)}function gie(){return $e.autoReplaceSvg===!0?ib.replace:ib[$e.autoReplaceSvg]||ib.replace}function _ie(t){return Pi.createElementNS("http://www.w3.org/2000/svg",t)}function vie(t){return Pi.createElement(t)}function i3(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{ceFn:e=t.tag==="svg"?_ie:vie}=n;if(typeof t=="string")return Pi.createTextNode(t);let i=e(t.tag);return Object.keys(t.attributes||[]).forEach(function(o){i.setAttribute(o,t.attributes[o])}),(t.children||[]).forEach(function(o){i.appendChild(i3(o,{ceFn:e}))}),i}function bie(t){let n=" ".concat(t.outerHTML," ");return n="".concat(n,"Font Awesome fontawesome.com "),n}var ib={replace:function(t){let n=t[0];
598if(n.parentNode)if(t[1].forEach(e=>{n.parentNode.insertBefore(i3(e),n)}),n.getAttribute(Zc)===null&&$e.keepOriginalSource){let e=Pi.createComment(bie(n));n.parentNode.replaceChild(e,n)}else n.remove()},nest:function(t){let n=t[0],e=t[1];if(~lD(n).indexOf($e.replacementClass))return ib.replace(t);let i=new RegExp("".concat($e.cssPrefix,"-.*"));if(delete e[0].attributes.id,e[0].attributes.class){let o=e[0].attributes.class.split(" ").reduce((a,s)=>(s===$e.replacementClass||s.match(i)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});e[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}let r=e.map(o=>Vf(o)).join(` 599`);n.setAttribute(Zc,""),n.innerHTML=r}};function gB(t){t()}function n3(t,n){let e=typeof n=="function"?n:tb;if(t.length===0)e();else{let i=gB;$e.mutateApproach===Ste&&(i=jl.requestAnimationFrame||gB),i(()=>{let r=gie(),o=mD.begin("mutate");t.map(r),o(),e()})}}var fD=!1;function r3(){fD=!0}function iD(){fD=!1}var rb=null;function _B(t){if(!nB||!$e.observeMutations)return;let{treeCallback:n=tb,nodeCallback:e=tb,pseudoElementsCallback:i=tb,observeMutationsRoot:r=Pi}=t;rb=new nB(o=>{if(fD)return;let a=zl();np(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!hB(s.addedNodes[0])&&($e.searchPseudoElements&&i(s.target),n(s.target)),s.type==="attributes"&&s.target.parentNode&&$e.searchPseudoElements&&i(s.target.parentNode),s.type==="attributes"&&hB(s.target)&&~Mte.indexOf(s.attributeName))if(s.attributeName==="class"&&fie(s.target)){let{prefix:l,iconName:u}=lb(lD(s.target));s.target.setAttribute(oD,l||a),u&&s.target.setAttribute(aD,u)}else hie(s.target)&&e(s.target)})}),Ys&&rb.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function yie(){rb&&rb.disconnect()}function Cie(t){let n=t.getAttribute("style"),e=[];return n&&(e=n.split(";").reduce((i,r)=>{let o=r.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(i[a]=s.join(":").trim()),i},{})),e}function Sie(t){let n=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),i=t.innerText!==void 0?t.innerText.trim():"",r=lb(lD(t));return r.prefix||(r.prefix=zl()),n&&e&&(r.prefix=n,r.iconName=e),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=Yte(r.prefix,t.innerText)||uD(r.prefix,YE(t.innerText))),!r.iconName&&$e.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=t.firstChild.data)),r}function xie(t){let n=np(t.attributes).reduce((r,o)=>(r.name!=="class"&&r.name!=="style"&&(r[o.name]=o.value),r),{}),e=t.getAttribute("title"),i=t.getAttribute("data-fa-title-id");return $e.autoA11y&&(e?n["aria-labelledby"]="".concat($e.replacementClass,"-title-").concat(i||Lf()):(n["aria-hidden"]="true",n.focusable="false")),n}function wie(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ns,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function vB(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},{iconName:e,prefix:i,rest:r}=Sie(t),o=xie(t),a=ZE("parseNodeAttributes",{},t),s=n.styleParser?Cie(t):[];return me({iconName:e,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:i,transform:ns,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:s,attributes:o}},a)}var{styles:Eie}=rs;function o3(t){let n=$e.autoReplaceSvg==="nest"?vB(t,{styleParser:!1}):vB(t);return~n.extra.classes.indexOf(HB)?Ul("generateLayersText",t,n):Ul("generateSvgReplacementMutation",t,n)}function Die(){return[...ate,...zE]}function bB(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ys)return Promise.resolve();let e=Pi.documentElement.classList,i=g=>e.add("".concat(aB,"-").concat(g)),r=g=>e.remove("".concat(aB,"-").concat(g)),o=$e.autoFetchSvg?Die():OB.concat(Object.keys(Eie));o.includes("fa")||o.push("fa");let a=[".".concat(HB,":not([").concat(Zc,"])")].concat(o.map(g=>".".concat(g,":not([").concat(Zc,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=np(t.querySelectorAll(a))}catch{}if(s.length>0)i("pending"),r("complete");else return Promise.resolve();let l=mD.begin("onTree"),u=s.reduce((g,v)=>{try{let w=o3(v);w&&g.push(w)}catch(w){LB||w.name==="MissingIcon"&&console.error(w)}return g},[]);return new Promise((g,v)=>{Promise.all(u).then(w=>
599{n3(w,()=>{i("active"),i("complete"),r("pending"),typeof n=="function"&&n(),l(),g()})}).catch(w=>{l(),v(w)})})}function Tie(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;o3(t).then(e=>{e&&n3([e],n)})}function Mie(t){return function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(n||{}).icon?n:XE(n||{}),{mask:r}=e;return r&&(r=(r||{}).icon?r:XE(r||{})),t(i,me(me({},e),{},{mask:r}))}}var Iie=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{transform:e=ns,symbol:i=!1,mask:r=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:u={},styles:g={}}=n;if(!t)return;let{prefix:v,iconName:w,icon:C}=t;return cb(me({type:"icon"},t),()=>(Xc("beforeDOMElementCreation",{iconDefinition:t,params:n}),$e.autoA11y&&(a?u["aria-labelledby"]="".concat($e.replacementClass,"-title-").concat(s||Lf()):(u["aria-hidden"]="true",u.focusable="false")),pD({icons:{main:JE(C),mask:r?JE(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:w,transform:me(me({},ns),e),symbol:i,title:a,maskId:o,titleId:s,extra:{attributes:u,styles:g,classes:l}})))},Aie={mixout(){return{icon:Mie(Iie)}},hooks(){return{mutationObserverCallbacks(t){return t.treeCallback=bB,t.nodeCallback=Tie,t}}},provides(t){t.i2svg=function(n){let{node:e=Pi,callback:i=()=>{}}=n;return bB(e,i)},t.generateSvgReplacementMutation=function(n,e){let{iconName:i,title:r,titleId:o,prefix:a,transform:s,symbol:l,mask:u,maskId:g,extra:v}=e;return new Promise((w,C)=>{Promise.all([eD(i,a),u.iconName?eD(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[D,O]=S;w([n,pD({icons:{main:D,mask:O},prefix:a,iconName:i,transform:s,symbol:l,maskId:g,title:r,titleId:o,extra:v,watchable:!0})])}).catch(C)})},t.generateAbstractIcon=function(n){let{children:e,attributes:i,main:r,transform:o,styles:a}=n,s=ab(a);s.length>0&&(i.style=s);let l;return cD(o)&&(l=Ul("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),e.push(l||r.icon),{children:e,attributes:i}}}},kie={mixout(){return{layer(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{classes:e=[]}=n;return cb({type:"layer"},()=>{Xc("beforeDOMElementCreation",{assembler:t,params:n});let i=[];return t(r=>{Array.isArray(r)?r.map(o=>{i=i.concat(o.abstract)}):i=i.concat(r.abstract)}),[{tag:"span",attributes:{class:["".concat($e.cssPrefix,"-layers"),...e].join(" ")},children:i}]})}}}},Oie={mixout(){return{counter(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{title:e=null,classes:i=[],attributes:r={},styles:o={}}=n;return cb({type:"counter",content:t},()=>(Xc("beforeDOMElementCreation",{content:t,params:n}),die({content:t.toString(),title:e,extra:{attributes:r,styles:o,classes:["".concat($e.cssPrefix,"-layers-counter"),...i]}})))}}}},Pie={mixout(){return{text(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{transform:e=ns,title:i=null,classes:r=[],attributes:o={},styles:a={}}=n;return cb({type:"text",content:t},()=>(Xc("beforeDOMElementCreation",{content:t,params:n}),mB({content:t,transform:me(me({},ns),e),title:i,extra:{attributes:o,styles:a,classes:["".concat($e.cssPrefix,"-layers-text"),...r]}})))}}},provides(t){t.generateLayersText=function(n,e){let{title:i,transform:r,extra:o}=e,a=null,s=null;if(AB){let l=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();a=u.width/l,s=u.height/l}return $e.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,mB({content:n.innerHTML,width:a,height:s,transform:r,title:i,extra:o,watchable:!0})])}}}
599,Nie=new RegExp('"',"ug"),yB=[1105920,1112319],CB=me(me(me(me({},{FontAwesome:{normal:"fas",400:"fas"}}),nte),yte),mte),nD=Object.keys(CB).reduce((t,n)=>(t[n.toLowerCase()]=CB[n],t),{}),Rie=Object.keys(nD).reduce((t,n)=>{let e=nD[n];return t[n]=e[900]||[...Object.entries(e)][0][1],t},{});function Fie(t){let n=t.replace(Nie,""),e=Ute(n,0),i=e>=yB[0]&&e<=yB[1],r=n.length===2?n[0]===n[1]:!1;return{value:YE(r?n[0]:n),isSecondary:i||r}}function Lie(t,n){let e=t.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(n),r=isNaN(i)?"normal":i;return(nD[e]||{})[r]||Rie[e]}function SB(t,n){let e="".concat(Cte).concat(n.replace(":","-"));return new Promise((i,r)=>{if(t.getAttribute(e)!==null)return i();let a=np(t.children).filter(w=>w.getAttribute(GE)===n)[0],s=jl.getComputedStyle(t,n),l=s.getPropertyValue("font-family"),u=l.match(Dte),g=s.getPropertyValue("font-weight"),v=s.getPropertyValue("content");if(a&&!u)return t.removeChild(a),i();if(u&&v!=="none"&&v!==""){let w=s.getPropertyValue("content"),C=Lie(l,g),{value:S,isSecondary:D}=Fie(w),O=u[0].startsWith("FontAwesome"),V=uD(C,S),Q=V;if(O){let ie=Kte(S);ie.iconName&&ie.prefix&&(V=ie.iconName,C=ie.prefix)}if(V&&!D&&(!a||a.getAttribute(oD)!==C||a.getAttribute(aD)!==Q)){t.setAttribute(e,Q),a&&t.removeChild(a);let ie=wie(),{extra:U}=ie;U.attributes[GE]=n,eD(V,C).then(Me=>{let Oe=pD(me(me({},ie),{},{icons:{main:Me,mask:JB()},prefix:C,iconName:Q,extra:U,watchable:!0})),ae=Pi.createElementNS("http://www.w3.org/2000/svg","svg");n==="::before"?t.insertBefore(ae,t.firstChild):t.appendChild(ae),ae.outerHTML=Oe.map(oe=>Vf(oe)).join(` 600`),t.removeAttribute(e),i()}).catch(r)}else i()}else i()})}function Bie(t){return Promise.all([SB(t,"::before"),SB(t,"::after")])}function Hie(t){return t.parentNode!==document.head&&!~xte.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(GE)&&(!t.parentNode||t.parentNode.tagName!=="svg")}function xB(t){if(Ys)return new Promise((n,e)=>{let i=np(t.querySelectorAll("*")).filter(Hie).map(Bie),r=mD.begin("searchPseudoElements");r3(),Promise.all(i).then(()=>{r(),iD(),n()}).catch(()=>{r(),iD(),e()})})}var Vie={hooks(){return{mutationObserverCallbacks(t){return t.pseudoElementsCallback=xB,t}}},provides(t){t.pseudoElements2svg=function(n){let{node:e=Pi}=n;$e.searchPseudoElements&&xB(e)}}},wB=!1,jie={mixout(){return{dom:{unwatch(){r3(),wB=!0}}}},hooks(){return{bootstrap(){_B(ZE("mutationObserverCallbacks",{}))},noAuto(){yie()},watch(t){let{observeMutationsRoot:n}=t;wB?iD():_B(ZE("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},EB=t=>{let n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce((e,i)=>{let r=i.toLowerCase().split("-"),o=r[0],a=r.slice(1).join("-");if(o&&a==="h")return e.flipX=!0,e;if(o&&a==="v")return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(o){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a;break}return e},n)},zie={mixout(){return{parse:{transform:t=>EB(t)}}},hooks(){return{parseNodeAttributes(t,n){let e=n.getAttribute("data-fa-transform");return e&&(t.transform=EB(e)),t}}},provides(t){t.generateAbstractTransformGrouping=function(n){let{main:e,transform:i,containerWidth:r,iconWidth:o}=n,a={transform:"translate(".concat(r/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),l="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),u="rotate(".concat(i.rotate," 0 0)"),g={transform:"".concat(s," ").concat(l," ").concat(u)},v={transform:"translate(".concat(o/2*-1," -256)")},w={outer:a,inner:g,path:v};return{tag:"g",attributes:me({},w.outer),children:[{tag:"g",attributes:me({},w.inner),children:[{tag:e.icon.tag,children:e.icon.children,attributes:me(me({},e.icon.attributes),w.path)}]}]}}}},VE={x:0,y:0,width:"100%",height:"100%"};function DB(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||n)&&(t.attributes.fill="black"),t}function Uie(t){return t.tag==="g"?t.children:[t]}var Gie={hooks(){return{parseNodeAttributes(t,n){let e=n.getAttribute("data-fa-mask"),i=e?lb(e.split(" ").map(r=>r.trim())):JB();return i.prefix||(i.prefix=zl()),t.mask=i,t.maskId=n.getAttribute("data-fa-mask-id"),t}}},provides(t){t.generateAbstractMask=function(n){let{children:e,attributes:i,main:r,mask:o,maskId:a,transform:s}=n,{width:l,icon:u}=r,{width:g,icon:v}=o,w=Fte({transform:s,containerWidth:g,iconWidth:l}),C={tag:"rect",attributes:me(me({},VE),{},{fill:"white"})},S=u.children?{children:u.children.map(DB)}:{},D={tag:"g",attributes:me({},w.inner),children:[DB(me({tag:u.tag,attributes:me(me({},u.attributes),w.path)},S))]},O={tag:"g",attributes:me({},w.outer),children:[D]},V="mask-".concat(a||Lf()),Q="clip-".concat(a||Lf()),ie={tag:"mask",attributes:me(me({},VE),{},{id:V,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[C,O]},U={tag:"defs",children:[{tag:"clipPath",attributes:{id:Q},children:Uie(v)},ie]};return e.push(U,{tag:"rect",attributes:me({fill:"currentColor","clip-path":"url(#".concat(Q,")"),mask:"url(#".concat(V,")")},VE)}),{children:e,attributes:i}}}},$ie={provides(t){let n=!1;jl.matchMedia&&(n=jl.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){let e=[],i={fill:"
600currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:me(me({},i),{},{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"})});let o=me(me({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:me(me({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:me(me({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:me(me({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:me(me({},i),{},{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:n?[]:[{tag:"animate",attributes:me(me({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||e.push({tag:"path",attributes:me(me({},i),{},{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:me(me({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},Wie={hooks(){return{parseNodeAttributes(t,n){let e=n.getAttribute("data-fa-symbol"),i=e===null?!1:e===""?!0:e;return t.symbol=i,t}}}},qie=[Hte,Aie,kie,Oie,Pie,Vie,jie,zie,Gie,$ie,Wie];nie(qie,{mixoutsTo:xo});var _8e=xo.noAuto,a3=xo.config,v8e=xo.library,s3=xo.dom,l3=xo.parse,b8e=xo.findIconDefinition,y8e=xo.toHtml,c3=xo.icon,C8e=xo.layer,Yie=xo.text,Kie=xo.counter;var Qie=["*"],Zie=t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)},Xie=()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")},u3=t=>t!=null&&(t===90||t===180||t===270||t==="90"||t==="180"||t==="270"),Jie=t=>{let n=u3(t.rotate),e={[`fa-${t.animation}`]:t.animation!=null&&!t.animation.startsWith("spin"),"fa-spin":t.animation==="spin"||t.animation==="spin-reverse","fa-spin-pulse":t.animation==="spin-pulse"||t.animation==="spin-pulse-reverse","fa-spin-reverse":t.animation==="spin-reverse"||t.animation==="spin-pulse-reverse","fa-pulse":t.animation==="spin-pulse"||t.animation==="spin-pulse-reverse","fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":t.flip==="horizontal"||t.flip==="both","fa-flip-vertical":t.flip==="vertical"||t.flip==="both",[`fa-${t.size}`]:t.size!==null,[`fa-rotate-${t.rotate}`]:n,"fa-rotate-by":t.rotate!=null&&!n,[`fa-pull-${t.pull}`]:t.pull!==null,[`fa-stack-${t.stackItemSize}`]:t.stackItemSize!=null};return Object.keys(e).map(i=>e[i]?i:null).filter(i=>i)},hD=new WeakSet,d3="fa-auto-css";function ene(t,n){if(!n.autoAddCss||hD.has(t))return;if(t.getElementById(d3)!=null){n.autoAddCss=!1,hD.add(t);return}let e=t.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("id",d3),e.innerHTML=s3.css();let i=t.head.childNodes,r=null;for(let o=i.length-1;o>-1;o--){let a=i[o],s=a.nodeName.toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=a)}t.head.insertBefore(e,r),n.autoAddCss=!1,hD.add(t)}var tne=t=>t.prefix!==void 0&&t.iconName!==void 0,ine=(t,n)=>tne(t)?t:Array.isArray(t)&&t.length===2?{prefix:t[0],iconName:t[1]}:{prefix:n,iconName:t},nne=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this._autoAddCss=!0}set autoAddCss(e){a3.autoAddCss=e,this._autoAddCss=e}get autoAddCss(){return this._autoAddCss}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),jf=(()=>{class t{constructor(){this.definitions={}}addIcons(...e){for(let i of e){i.prefix in this.definitions||(this.definitions[i.prefix]={}),this.definitions[i.prefix][i.iconName]=i;for(let r of i.icon[2])typeof r=="string"&&(this.definitions[i.prefix][r]=i)}}addIconPacks(...e){for(let i of e){let r=Object.keys(i).map(o=>i[o]);this.addIcons(...r)}}getIconDefinition(e,i){return e in this.definitions&&i in this.definitions[e]?this.definitions[e][i]:null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),rne=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(e){if("size"in e)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>.')}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=$({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[Xe]})}}return t})(),one=(()=>{class t{constructor(e,i){this.renderer=e,this.elementRef=i}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(e){"size"in e&&(e.size.currentValue!=null&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${e.size.currentValue}`),e.size.previousValue!=null&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${e.size.previousValue}`))}static{this.\u0275fac=function(i){return new(i||t)(ke(It),ke(ue))}}static{this.\u0275cmp=P({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[Xe],ngContentSelectors:Qie,decls:1,vars:0,template:function(i,r){i&1&&(_t(),Ve(0))},encapsulation:2})}}return t})(),p3=(()=>{class t{constructor(e,i,r,o,a){this.sanitizer=e,this.config=i,this.iconLibrary=r,this.stackItem=o,this.document=d(Se),a!=null&&o==null&&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(e){if(this.icon==null&&this.config.fallbackIcon==null){Xie();return}if(e){let i=this.findIconDefinition(this.icon??this.config.fallbackIcon);if(i!=null){let r=this.buildParams();ene(this.document,this.config);let o=c3(i,r);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(o.html.join(` 601`))}}}render(){this.ngOnChanges({})}findIconDefinition(e){let i=ine(e,this.config.defaultPrefix);if("icon"in i)return i;let r=this.iconLibrary.getIconDefinition(i.prefix,i.iconName);return r??(Zie(i),null)}buildParams(){let e={flip:this.flip,animation:this.animation,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:typeof this.fixedWidth=="boolean"?this.fixedWidth:this.config.fixedWidth,stackItemSize:this.stackItem!=null?this.stackItem.stackItemSize:null},i=typeof this.transform=="string"?l3.transform(this.transform):this.transform,r={};return e.rotate!=null&&!u3(e.rotate)&&(r["--fa-rotate-angle"]=`${e.rotate}`),{title:this.title,transform:i,classes:Jie(e),mask:this.mask!=null?this.findIconDefinition(this.mask):null,symbol:this.symbol,attributes:{role:this.a11yRole},styles:r}}static{this.\u0275fac=function(i){return new(i||t)(ke(En),ke(nne),ke(jf),ke(rne,8),ke(one,8))}}static{this.\u0275cmp=P({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(i,r){i&2&&(yi("innerHTML",r.renderedIconHTML,y),ce("title",r.title))},inputs:{icon:"icon",title:"title",animation:"animation",mask:"mask",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol
601:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[Xe],decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return t})();var db=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ye({type:t})}static{this.\u0275inj=be({})}}return t})();var xH=uy(y3());var Jr=(()=>{class t{transform(e){return e&&e.slice(0,-4).replace(/\d+/g,"\u2022\u2022\u2022")+e.slice(-4)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Pn({name:"bankAccount",type:t,pure:!0})}}return t})();var Do=class{constructor(n,e,i,r,o,a,s,l,u,g,v,w,C){this.street=n,this.houseno=e,this.zipcode=i,this.city=r,this.country=o,this.webId=a,this.backendId=s,this.userBackendId=l,this.userSSOId=u,this.district=g,this.longitude=v,this.latitude=w,this.countryDescription=C}};var os=class{constructor(n,e,i,r,o,a,s,l,u,g){this.title=n,this.salutation=e,this.firstname=i,this.lastname=r,this.initials=o,this.middleName=a,this.salutationDescription=s,this.addressCode=l,this.addressCodeDescription=u,this.titleDescription=g}};function sne(t,n){if(t&1&&(p(0,"div",0),_(1,"div",1),m()),t&2){let e=n.$implicit;c(),f("innerHTML",e.infoText,y)}}var Zo=(()=>{class t{constructor(){this.warnings=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-general-warning"]],inputs:{warnings:"warnings"},decls:2,vars:0,consts:[[1,"alert","alert-warning","mt-3","col-12"],[3,"innerHTML"]],template:function(i,r){i&1&&W(0,sne,2,1,"div",0,X),i&2&&q(r.warnings)},encapsulation:2})}}return t})();var ub=(()=>{class t{constructor(){this.el=d(ue),this.renderer=d(It)}ngAfterContentChecked(){this.doResize()}doResize(){let e=this.el.nativeElement.naturalHeight,i=this.el.nativeElement.naturalWidth;if(e>i&&e>0&&i>0){let o=1-i/e;this.renderer.setStyle(this.el.nativeElement,"width","auto"),this.renderer.setStyle(this.el.nativeElement,"height","100%")}else if(i>e&&e>0&&i>0){let o=1-e/i;this.renderer.setStyle(this.el.nativeElement,"width","100%"),this.renderer.setStyle(this.el.nativeElement,"height","auto")}else this.renderer.setStyle(this.el.nativeElement,"height","100%"),this.renderer.setStyle(this.el.nativeElement,"width","100%")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=$({type:t,selectors:[["","fitImage",""]]})}}return t})();function lne(t,n){if(t&1&&_(0,"img",3),t&2){let e=h();f("ngSrc",e.bonus==null||e.bonus.image==null?null:e.bonus.image.src)("width",e.imageService.width)("height",e.imageService.height)("alt",e.bonus==null||e.bonus.image==null?null:e.bonus.image.altText)}}function cne(t,n){if(t&1&&_(0,"p",4),t&2){let e=h();f("innerHTML",e.bonus.description,y)}}function dne(t,n){if(t&1&&_(0,"p",4),t&2){let e=h();f("innerHTML",e.bonus.descriptionFromDocument,y)}}function une(t,n){if(t&1&&(p(0,"p",5),_(1,"br"),m()),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("order_adjustment")+" "+e.bonus.clientCoPayment+" "+e.bonus.isoCurrencyCode,y)}}var C3=(()=>{class t{constructor(){this.data=d(ju),this.translationService=d(Y),this.imageService=d(Ei);let e=this.data;this.bonus=e.bonus,this.showBonusPoints=e.showBonusPoints}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-bonus-detail"]],decls:10,vars:7,consts:[[1,"bonusDialog","bonus-dialog"],["mat-dialog-title","",1,"bonus-dialog__title"],[1,"mat-typography","bonus-dialog__content"],["fitImage","",1,"bonusImg","bonus-dialog__image",3,"ngSrc","width","height","alt"],[1,"bonus-dialog__description",3,"innerHTML"],[1,"bonus-dialog__copayment",3,"innerHTML"],["align","center",1,"bonus-dialog__actions"],["mat-raised-button","","color","primary","mat-dialog-close","","data-cy","btn-bonus-details.close",1,"bonus-dialog__close-btn",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"h2",1),E(2),m(),p(3,"mat-dialog-content",2),x(4,lne,1,4,"img",3)(5,cne,1,1,"p",4)(6,dne,1,1,"p",4)(7,une,2,1,"p",5),m(),p(8,"mat-dialog-actions",6),_(9,"button",7),m()()),i&2&&(c(2),Pe(" ",r.bonus.name,"",r.showBonusPoints?" - "+r.bonus.bonusValue+" "+r.translationService.getTranslation("order_bonusPoints"):""," "),c(2),b(r.bonus.image?4:-1),c(),b(r.bonus.descriptionFromDocument?-1:5
601),c(),b(r.bonus.descriptionFromDocument?6:-1),c(),b(r.bonus.clientCoPayment>0?7:-1),c(2),f("innerHTML",r.translationService.getTranslation("button_close"),y))},dependencies:[ff,hf,gf,Ee,mf,ub,cn],styles:[`.mdc-dialog--open[_ngcontent-%COMP%]{height:90vh}.bonusDialog[_ngcontent-%COMP%]{max-width:500px}.bonusImg[_ngcontent-%COMP%]{display:block;margin:auto;width:100%!important;max-height:50vH;object-fit:contain}.selectedBonus[_ngcontent-%COMP%]{border-width:thick;border-color:var(--buttonBackgroundColor)}.unselectedBonus[_ngcontent-%COMP%]{border-width:thick;border-color:transparent} 602/*# sourceMappingURL=bonus-detail.component-ORDL2QFJ.css.map */`]})}}return t})();var pne=["*"];function mne(t,n){t&1&&Ve(0)}var _D=(()=>{class t{_elementRef=d(ue);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),vD=(()=>{class t{template=d(ii);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var Ks={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},fne=new H("STEPPER_GLOBAL_OPTIONS"),pb=(()=>{class t{_stepperOptions;_stepper=d(rp);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new z;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=d(fne,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["cdk-step"]],contentQueries:function(i,r,o){if(i&1&&(Kt(o,vD,5),Kt(o,Mn,5)),i&2){let a;se(a=le())&&(r.stepLabel=a.first),se(a=le())&&(r._childForms=a)}},viewQuery:function(i,r){if(i&1&&De(ii,7),i&2){let o;se(o=le())&&(r.content=o.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",pe],optional:[2,"optional","optional",pe],completed:[2,"completed","completed",pe],hasError:[2,"hasError","hasError",pe]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Xe],ngContentSelectors:pne,decls:1,vars:0,template:function(i,r){i&1&&(_t(),x(0,mne,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),rp=(()=>{class t{_dir=d(ki,{optional:!0});_changeDetectorRef=d(Je);_elementRef=d(ue);_destroyed=new G;_keyManager;_steps;steps=new uo;_stepHeader;_sortedHeaders=new uo;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new z;selectedIndexChange=new z;_groupId=d(Mt).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(Yt(this._steps),We(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(Yt(this._stepHeader),We(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,r)=>i._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Fc(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:j()).pipe(Yt(this._layoutDirection()),We(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),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),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let i of e)i._markAsInteracted()}}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)}
602reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex;return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,i=Ks.NUMBER){let r=this.steps.toArray()[e],o=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,o):this._getGuidelineLogic(r,o,i)}_getDefaultIndicatorLogic(e,i){return e._showError()&&e.hasError&&!i?Ks.ERROR:!e.completed||i?Ks.NUMBER:e.editable?Ks.EDIT:Ks.DONE}_getGuidelineLogic(e,i,r=Ks.NUMBER){return e._showError()&&e.hasError&&!i?Ks.ERROR:e.completed&&!i?Ks.DONE:e.completed&&i?r:e.editable&&i?Ks.EDIT:r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let i=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:i[e],previouslySelectedStep:i[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let i=oi(e),r=e.keyCode,o=this._keyManager;o?.activeItemIndex!=null&&!i&&(r===32||r===13)?(this.selectedIndex=o.activeItemIndex,e.preventDefault()):o?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let r=i.stepControl;return(r?r.invalid||r.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=qr();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,r,o){if(i&1&&(Kt(o,pb,5),Kt(o,_D,5)),i&2){let a;se(a=le())&&(r._steps=a),se(a=le())&&(r._stepHeader=a)}},inputs:{linear:[2,"linear","linear",pe],selectedIndex:[2,"selectedIndex","selectedIndex",Ii],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})(),S3=(()=>{class t{_stepper=d(rp);type="submit";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(i,r){i&1&&T("click",function(){return r._stepper.next()}),i&2&&yi("type",r.type)},inputs:{type:"type"}})}return t})(),x3=(()=>{class t{_stepper=d(rp);type="button";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(i,r){i&1&&T("click",function(){return r._stepper.previous()}),i&2&&yi("type",r.type)},inputs:{type:"type"}})}return t})();var mb;function hne(){if(mb===void 0&&(mb=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(mb=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return mb}function zf(t){return hne()?.createHTML(t)||t}function w3(t){return Error(`Unable to find icon with the name "${t}"`)}function gne(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function E3(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function D3(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Qs=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},M3=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;
602_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Qs(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(en.HTML,r);if(!a)throw D3(r);let s=zf(a);return this._addSvgIconConfig(e,i,new Qs("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Qs(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(en.HTML,i);if(!o)throw D3(i);let a=zf(o);return this._addSvgIconSetConfig(e,new Qs("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(en.RESOURCE_URL,e);if(!i)throw E3(e);let r=this._cachedIconsByUrl.get(i);return r?j(fb(r)):this._loadSvgIconFromConfig(new Qs(e,null)).pipe(jt(o=>this._cachedIconsByUrl.set(i,o)),F(o=>fb(o)))}getNamedSvgIcon(e,i=""){let r=T3(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Nr(w3(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?j(fb(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(F(i=>fb(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return j(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Ae(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(en.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),j(null)})));return _n(o).pipe(F(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw w3(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(jt(i=>e.svgText=i),F(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?j(null):this._fetchIcon(e).pipe(jt(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(zf("<svg></svg>"));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(zf("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){let{name:a,value:s}=r[o];a!=="id"&&i.setAttribute(a,s)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[o].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewB
602ox),e}_fetchIcon(e){let{url:i,options:r}=e,o=r?.withCredentials??!1;if(!this._httpClient)throw gne();if(i==null)throw Error(`Cannot fetch icon from URL "${i}".`);let a=this._sanitizer.sanitize(en.RESOURCE_URL,i);if(!a)throw E3(i);let s=this._inProgressUrlFetches.get(a);if(s)return s;let l=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(F(u=>zf(u)),oo(()=>this._inProgressUrlFetches.delete(a)),tc());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(T3(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){let o=this._resolvers[r](i,e);if(o)return _ne(o)?new Qs(o.url,null,o.options):new Qs(o,null)}}static \u0275fac=function(i){return new(i||t)(xe(Be,8),xe(En),xe(Se,8),xe(sr))};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fb(t){return t.cloneNode(!0)}function T3(t,n){return t+":"+n}function _ne(t){return!!(t.url&&t.options)}var vne=["*"],bne=new H("MAT_ICON_DEFAULT_OPTIONS"),yne=new H("mat-icon-location",{providedIn:"root",factory:Cne});function Cne(){let t=d(Se),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}var I3=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Sne=I3.map(t=>`[${t}]`).join(", "),xne=/^url\(['"]?#(.*?)['"]?\)$/,fn=(()=>{class t{_elementRef=d(ue);_iconRegistry=d(M3);_location=d(yne);_errorHandler=d(sr);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ie.EMPTY;constructor(){let e=d(new Br("aria-hidden"),{optional:!0}),i=d(bne,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>
602e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(Sne),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<i.length;o++)I3.forEach(a=>{let s=i[o],l=s.getAttribute(a),u=l?l.match(xne):null;if(u){let g=r.get(s);g||(g=[],r.set(s,g)),g.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Et(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(ce("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Mi(r.color?"mat-"+r.color:""),fe("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",pe],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:vne,decls:1,vars:0,template:function(i,r){i&1&&(_t(),Ve(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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} 603`],encapsulation:2,changeDetection:0})}return t})();function wne(t,n){if(t&1&&mo(0,2),t&2){let e=h();f("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function Ene(t,n){if(t&1&&(p(0,"span",7),E(1),m()),t&2){let e=h(2);c(),he(e._getDefaultTextForState(e.state))}}function Dne(t,n){if(t&1&&(p(0,"span",8),E(1),m()),t&2){let e=h(3);c(),he(e._intl.completedLabel)}}function Tne(t,n){if(t&1&&(p(0,"span",8),E(1),m()),t&2){let e=h(3);c(),he(e._intl.editableLabel)}}function Mne(t,n){if(t&1&&(x(0,Dne,2,1,"span",8)(1,Tne,2,1,"span",8),p(2,"mat-icon",7),E(3),m()),t&2){let e=h(2);b(e.state==="done"?0:e.state==="edit"?1:-1),c(3),he(e._getDefaultTextForState(e.state))}}function Ine(t,n){if(t&1&&x(0,Ene,2,1,"span",7)(1,Mne,4,2),t&2){let e,i=h();b((e=i.state)==="number"?0:1)}}function Ane(t,n){t&1&&(p(0,"div",4),mo(1,9),m()),t&2&&(c(),f("ngTemplateOutlet",n.template))}function kne(t,n){if(t&1&&(p(0,"div",4),E(1),m()),t&2){let e=h();c(),he(e.label)}}function One(t,n){if(t&1&&(p(0,"div",5),E(1),m()),t&2){let e=h();c(),he(e._intl.optionalLabel)}}function Pne(t,n){if(t&1&&(p(0,"div",6),E(1),m()),t&2){let e=h();c(),he(e.errorMessage)}}var k3=["*"];function Nne(t,n){}function Rne(t,n){if(t&1&&(Ve(0),x(1,Nne,0,0,"ng-template",0)),t&2){let e=h();c(),f("cdkPortalOutlet",e._portal)}}var Fne=["animatedContainer"],O3=(t,n)=>({step:t,i:n});function Lne(t,n){t&1&&Ve(0)}function Bne(t,n){t&1&&_(0,"div",7)}function Hne(t,n){if(t&1&&(mo(0,6),x(1,Bne,1,0,"div",7)),t&2){let e=n.$implicit,i=n.$index,r=n.$index,o=n.$count;h(2);let a=J(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",nu(3,O3,e,i)),c(),b(r!==o-1?1:-1)}}function Vne(t,n){if(t&1&&(p(0,"div",8,1),mo(2,9),m()),t&2){let e=n.$implicit,i=n.$index,r=h(2);Mi("mat-horizontal-stepper-content-"+r._getAnimationDirection(i)),f("id",r._getStepContentId(i)),ce("aria-labelledby",r._getStepLabelId(i))("inert",r.selectedIndex===i?null:""),c(2),f("ngTemplateOutlet",e.content)}}function jne(t,n){if(t&1&&(p(0,"div",2)(1,"div",3),W(2,Hne,2,6,null,null,X),m(),p(4,"div",4),W(5,Vne,3,6,"div",5,X),m()()),t&2){let e=h();c(2),q(e.steps),c(3),q(e.steps)}}function zne(t,n){if(t&1&&(p(0,"div",10),mo(1,6),p(2,"div",11,1)(4,"div",12)(5,"div",13),mo(6,9),m()()()()),t&2){let e=n.$implicit,i=n.$index,r=n.$index,o=n.$count,a=h(2),s=J(4);c(),f("ngTemplateOutlet",s)("ngTemplateOutletContext",nu(10,O3,e,i)),c(),fe("mat-stepper-vertical-line",r!==o-1)("mat-vertical-content-container-active",a.selectedIndex===i),ce("inert",a.selectedIndex===i?null:""),c(2),f("id",a._getStepContentId(i)),ce("aria-labelledby",a._getStepLabelId(i)),c(2),f("ngTemplateOutlet",e.content)}}function Une(t,n){if(t&1&&W(0,zne,7,13,"div",10,X),t&2){let e=h();q(e.steps)}}function Gne(t,n){if(t&1){let e=B();p(0,"mat-step-header",14),T("click",function(){let r=A(e).step;return k(r.select())})("keydown",function(r){A(e);let o=h();return k(o._onKeydown(r))}),m()}if(t&2){let e=n.step,i=n.i,r=h();fe("mat-horizontal-stepper-header",r.orientation==="horizontal")("mat-vertical-stepper-header",r.orientation==="vertical"),f("tabIndex",r._getFocusIndex()===i?0:-1)("id",r._getStepLabelId(i))("index",i)("state",r._getIndicatorType(i,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===i)("active",r._stepIsNavigable(i,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(i,e))("color",e.color||r.color),ce("aria-posinset",i+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(i))("aria-selected",r.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",r._stepIsNavigable(i,e)?null:!0)}}var Ia=(()=>{class t extends vD{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["","matStepLabel",""]],features:[it]})}return t})(),$ne=(()=>{class t{changes=new G;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var A3=(()=>{class t extends _D{_intl=d($ne);_focusMonitor=d(Yr);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=d(pi);e.load(Qr),e.load(Bo);let i=d(Je);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof Ia?null:this.label}_templateLabel(){return this.label instanceof Ia?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(i,r){i&2&&Mi("mat-"+(r.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[it],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,r){if(i&1&&(_(0,"div",0),p(1,"div")(2,"div",1),x(3,wne,1,2,"ng-container",2)(4,Ine,2,1),m()(),p(5,"div",3),x(6,Ane,2,1,"div",4)(7,kne,2,1,"div",4)(8,One,2,1,"div",5)(9,Pne,2,1,"div",6),m()),i&2){let o;f("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),c(),As("mat-step-icon-state-",r.state," mat-step-icon"),fe("mat-step-icon-selected",r.selected),c(2),b(r.iconOverrides&&r.iconOverrides[r.state]?3:4),
603c(2),fe("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error",r.state=="error"),c(),b((o=r._templateLabel())?6:r._stringLabel()?7:-1,o),c(2),b(r.optional&&r.state!="error"?8:-1),c(),b(r.state==="error"?9:-1)}},dependencies:[Tl,Ya,fn],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:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.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{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.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;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.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}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))} 604`],encapsulation:2,changeDetection:0})}return t})(),Wne=(()=>{class t{templateRef=d(ii);name;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),qne=(()=>{class t{_template=d(ii);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),Zs=(()=>{class t extends pb{_errorStateMatcher=d(Ls,{skipSelf:!0});
604_viewContainerRef=d(bi);_isSelected=Ie.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Qt(()=>this._stepper.selectionChange.pipe(F(e=>e.selectedStep===this),Yt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Xn(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,i){let r=this._errorStateMatcher.isErrorState(e,i),o=!!(e&&e.invalid&&this.interacted);return r||o}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-step"]],contentQueries:function(i,r,o){if(i&1&&(Kt(o,Ia,5),Kt(o,qne,5)),i&2){let a;se(a=le())&&(r.stepLabel=a.first),se(a=le())&&(r._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[_e([{provide:Ls,useExisting:t},{provide:pb,useExisting:t}]),it],ngContentSelectors:k3,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,r){i&1&&(_t(),x(0,Rne,2,1,"ng-template"))},dependencies:[mr],encapsulation:2,changeDetection:0})}return t})(),as=(()=>{class t extends rp{_ngZone=d(de);_renderer=d(It);_animationsModule=d(zt,{optional:!0});_cleanupTransition;_isAnimating=ee(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new uo;_icons;animationDone=new z;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!d(wt).isBrowser;constructor(){super();let i=d(ue).nativeElement.nodeName.toLowerCase();this.orientation=i==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:i})=>this._iconOverrides[e]=i),this.steps.changes.pipe(We(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(We(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsModule!=="NoopAnimations"&&setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(Yt(null),We(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_stepIsNavigable(e,i){return i.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this._animationsModule==="NoopAnimations"?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let i=e.target;if(!i)return;let r=this.orientation==="horizontal"&&e.propertyName==="transform"&&i.classList.contains("mat-horizontal-stepper-content-current"),o=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&i.classList.contains("mat-vertical-content-container-active");(r||o)&&this._animatedContainers.find(s=>s.nativeElement===i)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,r,o){if(i&1&&(Kt(o,Zs,5),Kt(o,Wne,5)),i&2){let a;se(a=le())&&(r._steps=a),se(a=le())&&(r._icons=a)}},viewQuery:function(i,r){if(i&1&&(De(A3,5),De(Fne,5)),i&2){let o;se(o=le())&&(r._stepHeader=o),se(o=le())&&(r._animatedContainers=o)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(i,r){i&2&&(ce("aria-orientation",r.orientation),sn("--mat-stepper-animation-duration",r._getAnimationDuration()),fe("mat-stepper-horizontal",r.orientation==="horizontal")("mat-stepper-vertical",r.orientation==="vertical")("mat-stepper-label-position-end",r.orientation==="horizontal"&&r.labelPosition=="end")("mat-stepper-label-position-bottom",r.orientation==="horizontal"&&r.labelPosition=="bottom")("mat-stepper-header-position-bottom",r.headerPosition==="bottom")("mat-stepper-animating",r._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[_e([{provide:rp,useExisting:t}]),it],ngContentSelectors:k3,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(i,r){if(i&1&&(_t(),x(0,Lne,1,0)(1,jne,7,0,"div",2)(2,Une,2,0)(3,Gne,1,23,"ng-template",null,0,fa)),i&2){let o;b(r._isServer?0:-1),c(),b((o=r.orientation)==="horizontal"?1:o==="vertical"?2:-1)}},dependencies:[Ya,A3],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.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;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;height:var(--mat-stepper-header-height, 72px)}.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-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.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;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 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{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: 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{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;
604left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px} 605`],encapsulation:2,changeDetection:0})}return t})(),Gl=(()=>{class t extends S3{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(i,r){i&2&&yi("type",r.type)},features:[it]})}return t})(),op=(()=>{class t extends x3{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(i,r){i&2&&yi("type",r.type)},features:[it]})}return t})();var ap=(()=>{class t{constructor(){this.http=d(Be)}searchAddress(e,i=10){return this.http.post("/address/address-search?limit="+i,e).pipe(F(r=>r))}searchZipcode(e,i=10){return this.http.post("/address/zipcode-search?limit="+i,e).pipe(F(r=>r))}searchCity(e,i=10){return this.http.post("/address/city-search?limit="+i,e).pipe(F(r=>r))}searchStreet(e,i=10){return this.http.post("/address/street-search?limit="+i,e).pipe(F(r=>r))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $l=class{constructor(n,e,i,r,o,a){this.streetName=n,this.zipcode=e,this.city=i,this.district=r,this.districtIds=o,this.houseNo=a}};var Hi=class t{static parseBooleanLike(n){if(typeof n=="boolean")return n;if(typeof n=="number")return n===1?!0:n===0?!1:null;if(typeof n=="string"){let e=n.trim().toLowerCase();return["1","true","yes","y"].includes(e)?!0:["0","false","no","n",""].includes(e)?!1:null}return null}static isEmailExistingResponse(n){let e=t.parseBooleanLike(n);if(e!==null)return e;if(n&&typeof n=="object"){let i=["exists","emailExists","isExisting","result","value","data"];for(let r of i){let o=t.parseBooleanLike(n[r]);if(o!==null)return o}}return!1}static validateIBAN(n,e,i=null,r=null){return o=>(i&&i.reset(e.getTranslation("filled_automatically")),r&&r.reset(e.getTranslation("filled_automatically")),n.get("/webabo/bank/iban/"+o.value).pipe(Fh(15e3),F(a=>(i&&i.patchValue(a.swiftBIC),r&&r.patchValue(a.bankName),null)),Ae(()=>j({message:e.getTranslation("error_invalid_iban")}))))}static checkEmailAddress(n,e){return i=>i&&i.value?t.checkIfEmailExists(i.value,n,e):j(null)}static checkIfEmailExists(n,e,i){let r=new ho().append("emailAddress",n);return e.post("/webabo/auth/check-email",r).pipe(Fh(15e3),F(o=>{if(t.isEmailExistingResponse(o))throw new Error;return null}),Ae(()=>j({message:i.getTranslation("error_email_exists")})))}static validatePhoneNumber(n,e,i,r){return o=>{if(!o||!o.value||o.value.trim()===0)return j(null);if(o&&o.value)return t.validatePhone(o,i,n,e,r)}}static validatePhone(n,e,i,r,o){let a={fullNumber:n.value.replace("/",""),countryCode:e};return i.post("/webabo/users/phone/validate",a).pipe(F(s=>s&&s.formattedNumber?o?o(s.formattedNumber):j(null):{message:r.getTranslation("phone.wrongFormat")}),Ae(s=>j({message:r.getTranslation("phone.validationError")})))}static checkIdentificationFieldIsCorrect(n,e){return i=>{let r=!1;return i.touched&&i.value&&i.value!==""&&(n==="EMAIL"&&!e().matchEmail&&(r=!0),n==="PHONE"&&!e().matchPhone&&(r=!0),n==="BIRTHDAY"&&!e().matchBirthday&&(r=!0),n==="CLIENTNO"&&!e().matchClientNo&&(r=!0),n==="IBAN"&&!e().matchIBAN&&(r=!0),r)?{error:!0}:null}}static checkRegisterForm(n){return e=>{let i=e.get("email"),r=e.get("password");if(i.invalid)return{error:!0};let o=!r.disabled;
605return n&&o&&(r.invalid||r.value.length<=0)?{error:!0}:null}}};var Kne=["mat-calendar-body",""];function Qne(t,n){return this._trackRow(n)}var H3=(t,n)=>n.id;function Zne(t,n){if(t&1&&(p(0,"tr",0)(1,"td",3),E(2),m()()),t&2){let e=h();c(),sn("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ce("colspan",e.numCols),c(),R(" ",e.label," ")}}function Xne(t,n){if(t&1&&(p(0,"td",3),E(1),m()),t&2){let e=h(2);sn("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ce("colspan",e._firstRowOffset),c(),R(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Jne(t,n){if(t&1){let e=B();p(0,"td",6)(1,"button",7),T("click",function(r){let o=A(e).$implicit,a=h(2);return k(a._cellClicked(o,r))})("focus",function(r){let o=A(e).$implicit,a=h(2);return k(a._emitActiveDateChange(o,r))}),p(2,"span",8),E(3),m(),_(4,"span",9),m()()}if(t&2){let e=n.$implicit,i=n.$index,r=h().$index,o=h();sn("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),ce("data-mat-row",r)("data-mat-col",i),c(),fe("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),f("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),ce("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),c(),fe("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),c(),R(" ",e.displayValue," ")}}function ere(t,n){if(t&1&&(p(0,"tr",1),x(1,Xne,2,6,"td",4),W(2,Jne,5,48,"td",5,H3),m()),t&2){let e=n.$implicit,i=n.$index,r=h();c(),b(i===0&&r._firstRowOffset?1:-1),c(),q(e)}}function tre(t,n){if(t&1&&(p(0,"th",2)(1,"span",6),E(2),m(),p(3,"span",3),E(4),m()()),t&2){let e=n.$implicit;c(2),he(e.long),c(2),he(e.narrow)}}var ire=["*"];function nre(t,n){}function rre(t,n){if(t&1){let e=B();p(0,"mat-month-view",4),wn("activeDateChange",function(r){A(e);let o=h();return Nn(o.activeDate,r)||(o.activeDate=r),k(r)}),T("_userSelection",function(r){A(e);let o=h();return k(o._dateSelected(r))})("dragStarted",function(r){A(e);let o=h();return k(o._dragStarted(r))})("dragEnded",function(r){A(e);let o=h();return k(o._dragEnded(r))}),m()}if(t&2){let e=h();xn("activeDate",e.activeDate),f("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function ore(t,n){if(t&1){let e=B();p(0,"mat-year-view",5),wn("activeDateChange",function(r){A(e);let o=h();return Nn(o.activeDate,r)||(o.activeDate=r),k(r)}),T("monthSelected",function(r){A(e);let o=h();return k(o._monthSelectedInYearView(r))})("selectedChange",function(r){A(e);let o=h();return k(o._goToDateInView(r,"month"))}),m()}if(t&2){let e=h();xn("activeDate",e.activeDate),f("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function are(t,n){if(t&1){let e=B();p(0,"mat-multi-year-view",6),wn("activeDateChange",function(r){A(e);let o=h();return Nn(o.activeDate,r)||(o.activeDate=r),k(r)}),T("yearSelected",function(r){A(e);let o=h();return k(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){A(e);let o=h();return k(o._goToDateInView(r,"year"))}),m()}if(t&2){let e=h();xn("activeDate",e.activeDate),f("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function sre(t,n){}var lre=["button"],cre=[[["","matDatepickerToggleIcon",""]]],dre=["[matDatepickerToggleIcon]"];function ure(t,n){t&1&&(Sn(),p(0,"svg",2),_(1,"path",3),m())}var pre=[[["input","matStartDate",""]],[["input","matEndDate",""]]],mre=["input[matStartDate]","input[matEndDate]"];var cp=(()=>{class t{changes=new G;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";
605switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fre=0,Gf=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=fre++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},hre={passive:!1,capture:!0},hb={passive:!0,capture:!0},P3={passive:!0},lp=(()=>{class t{_elementRef=d(ue);_ngZone=d(de);_platform=d(wt);_intl=d(cp);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new z;previewChange=new z;activeDateChange=new z;dragStarted=new z;dragEnded=new z;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=d(Ne);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=d(It),i=d(Mt);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),d(pi).load(Qr),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[$i(e,r,"touchmove",this._touchmoveHandler,hre),$i(e,r,"mouseenter",this._enterHandler,hb),$i(e,r,"focus",this._enterHandler,hb),$i(e,r,"mouseleave",this._leaveHandler,hb),$i(e,r,"blur",this._leaveHandler,hb),$i(e,r,"mousedown",this._mousedownHandler,P3),$i(e,r,"touchstart",this._mousedownHandler,P3)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){Ti(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return CD(e,this.startValue,this.endValue)}_isRangeEnd(e){return SD(e,this.startValue,this.endValue)}_isInRange(e){return xD(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return CD(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return SD(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return xD(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return CD(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return SD(e,this.previewStart,this.previewEnd)}_isInPreview(e){return xD(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=N3(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),yD(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=yD(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=N3(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=yD(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)][parseInt(o)]}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numC
605ols:"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:[Xe],attrs:Kne,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(x(0,Zne,3,6,"tr",0),W(1,ere,4,1,"tr",1,Qne,!0),p(3,"span",2),E(4),m(),p(5,"span",2),E(6),m(),p(7,"span",2),E(8),m(),p(9,"span",2),E(10),m()),i&2&&(b(r._firstRowOffset<r.labelMinRequiredCells?0:-1),c(),q(r.rows),c(2),f("id",r._startDateLabelId),c(),R(" ",r.startDateAccessibleName,` 606`),c(),f("id",r._endDateLabelId),c(),R(" ",r.endDateAccessibleName,` 607`),c(),f("id",r._comparisonStartDateLabelId),c(),Pe(" ",r.comparisonDateAccessibleName," ",r.startDateAccessibleName,` 608`),c(),f("id",r._comparisonEndDateLabelId),c(),Pe(" ",r.comparisonDateAccessibleName," ",r.endDateAccessibleName,` 609`))},dependencies:[tn],styles:[`.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary))}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface))}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size));-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,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-e
609nd: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{color:var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary))}.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}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}
609.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} 610`],encapsulation:2,changeDetection:0})}return t})();function bD(t){return t?.nodeName==="TD"}function yD(t){let n;return bD(t)?n=t:bD(t.parentNode)?n=t.parentNode:bD(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function CD(t,n,e){return e!==null&&n!==e&&t<e&&t===n}function SD(t,n,e){return n!==null&&n!==e&&t>=n&&t===e}function xD(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function N3(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var On=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},Wl=(()=>{class t{selection;_adapter;_selectionChanged=new G;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){y_()};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),gre=(()=>{class t extends Wl{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(xe(qt))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),_re=(()=>{class t extends Wl{constructor(e){super(new On(null,null),e)}add(e){let{start:i,end:r}=this.selection;i==null?i=e:r==null?r=e:(i=e,r=null),super.updateSelection(new On(i,r),this)}isValid(){let{start:e,end:i}=this.selection;return e==null&&i==null?!0:e!=null&&i!=null?this._isValidDateInstance(e)&&this._isValidDateInstance(i)&&this._adapter.compareDate(e,i)<=0:(e==null||this._isValidDateInstance(e))&&(i==null||this._isValidDateInstance(i))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(xe(qt))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})();function vre(t,n){return t||new gre(n)}var V3={provide:Wl,deps:[[new ca,new pl,Wl],qt],useFactory:vre};function bre(t,n){return t||new _re(n)}var yre={provide:Wl,deps:[[new ca,new pl,Wl],qt],useFactory:bre},gb=new H("MAT_DATE_RANGE_SELECTION_STRATEGY"),Cre=(()=>{class t{_dateAdapter;constructor(e){this._dateAdapter=e}selectionFinished(e,i){let{start:r,end:o}=i;return r==null?r=e:o==null&&e&&this._dateAdapter.compareDate(e,r)>=0?o=e:(r=e,o=null),new On(r,o)}createPreview(e,i){let r=null,o=null;return i.start&&!i.end&&e&&(r=i.start,o=e),new On(r,o)}createDrag(e,i,r){let o=i.start,a=i.end;if(!o||!a)return null;let s=this._dateAdapter,l=s.compareDate(o,a)!==0,u=s.getYear(r)-s.getYear(e),g=s.getMonth(r)-s.getMonth(e),v=s.getDate(r)-s.getDate(e);return l&&s.sameDate(e,i.start)?(o=r,s.compareDate(r,a)>0&&(a=s.addCalendarYears(a,u),a=s.addCalendarMonths(a,g),a=s.addCalendarDays(a,v))):l&&s.sameDate(e,i.end)?(a=r,s.compareDate(r,o)<0&&(o=s.addCalendarYears(o,u),o=s.addCalendarMonths(o,g),o=s.addCalendarDays(o,v))):(o=s.addCalendarYears(o,u),o=s.addCalendarMonths(o,g),o=s.addCalendarDays(o,v),a=s.addCalendarYears(a,u),a=s.addCalendarMonths(a,g),a=s.addCalendarDays(a,v)),new On(o,a)}static \u0275fac=function(i){return new(i||t)(xe(qt))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})();function Sre(t,n){return t||new Cre(n)}var xre={provide:gb,deps:[[new ca,new pl,gb],qt],useFactory:Sre},wD=7,wre=0,R3=(()=>{class t{_changeDetectorRef=d(Je);_dateFormats=d(Vo,{optional:!0});_dateAdapter=d(qt,{optional:!0});_dir=d(ki,{optional:!0});_rangeStrategy=d(gb,{optional:!0});_rerenderSubscription=Ie.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof On?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;
610get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new z;_userSelection=new z;dragStarted=new z;dragEnded=new z;activeDateChange=new z;_matCalendarBody;_monthLabel;_weeks;_firstWeekOffset;_rangeStart;_rangeEnd;_comparisonRangeStart;_comparisonRangeEnd;_previewStart;_previewEnd;_isRange;_todayDate;_weekdays;constructor(){d(pi).load(Bo),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Yt(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof On?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!oi(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(wD+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%wD,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}
610_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:wre++}));this._weekdays=o.slice(e).concat(o.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,o=this._firstWeekOffset;r<e;r++,o++){o==wD&&(this._weeks.push([]),o=0);let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),r+1),s=this._shouldEnableDate(a),l=this._dateAdapter.format(a,this._dateFormats.display.dateA11yLabel),u=this.dateClass?this.dateClass(a,"month"):void 0;this._weeks[this._weeks.length-1].push(new Gf(r+1,i[r],l,s,u,this._getCellCompareValue(a),a))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof On?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&De(lp,5),i&2){let o;se(o=le())&&(r._matCalendarBody=o.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:[Xe],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(p(0,"table",0)(1,"thead",1)(2,"tr"),W(3,tre,5,2,"th",2,H3),m(),p(5,"tr",3),_(6,"th",4),m()(),p(7,"tbody",5),T("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),m()()),i&2&&(c(3),q(r._weekdays),c(4),f("label",r._monthLabel)("rows",r._weeks)("todayValue",r._todayDate)("startValue",r._rangeStart)("endValue",r._rangeEnd)("comparisonStart",r._comparisonRangeStart)("comparisonEnd",r._comparisonRangeEnd)("previewStart",r._previewStart)("previewEnd",r._previewEnd)("isRange",r._isRange)("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[lp],encapsulation:2,changeDetection:0})}return t})(),To=24,ED=4,F3=(()=>{class t{_changeDetectorRef=d(Je);_dateAdapter=d(qt,{optional:!0});_dir=d(ki,{optional:!0});_rerenderSubscription=Ie.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),j3(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof On?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;
610get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new z;yearSelected=new z;activeDateChange=new z;_matCalendarBody;_years;_todayYear;_selectedYear;constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Yt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let i=this._dateAdapter.getYear(this._activeDate)-Uf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,o=[];r<To;r++)o.push(i+r),o.length==ED&&(this._years.push(o.map(a=>this._createCellForYear(a))),o=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ED);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ED);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Uf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,To-Uf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-To*10:-To);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?To*10:To);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Uf(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new Gf(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let i=this._dateAdapter.createDate(e,0,1);for(let r=i;this._dateAdapter.getYear(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear=null,e instanceof On){let i=e.start||e.end;i&&(this._selectedYear=this._dateAdapter.getYear(i))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(i,r){if(i&1&&De(lp,5),i&2){let o;se(o=le())&&(r._matCalendarBody=o.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,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(i,r){i&1&&(p(0,"table",0)(1,"thead",1)(2,"tr"),_(3,"th",2),m()(),p(4,"tbody",3),T("selectedValueChange",function(a){return r._yearSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),m()()),i&2&&(c(4),f("rows",r._years)("todayValue",r._todayYear)("startValue",r._selectedYear)("endValue",r._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",r._getActiveCell()))},dependencies:[lp],encapsulation:2,changeDetection:0})}return t})();function j3(t,n,e,i,r){let o=t.getYear(n),a=t.getYear(e),s=z3(t,i,r);return Math.floor((o-s)/To)===Math.floor((a-s)/To)}function Uf(t,n,e,i){let r=t.getYear(n);return Ere(r-z3(t,e,i),To)}function z3(t,n,e){let i=0;return e?i=t.getYear(e)-To+1:n&&(i=t.getYear(n)),i}function Ere(t,n){return(t%n+n)%n}var L3=(()=>{class t{_changeDetectorRef=d(Je);_dateFormats=d(Vo,{optional:!0});_dateAdapter=d(qt,{optional:!0});_dir=d(ki,{optional:!0});_rerenderSubscription=Ie.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof On?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;
610get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new z;monthSelected=new z;activeDateChange=new z;_matCalendarBody;_months;_yearLabel;_todayMonth;_selectedMonth;constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Yt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new Gf(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e<r||e===r&&i<o}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof On?this._selectedMonth=this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._selectedMonth=this._getMonthInCurrentYear(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-year-view"]],viewQuery:function(i,r){if(i&1&&De(lp,5),i&2){let o;se(o=le())&&(r._matCalendarBody=o.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,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(i,r){i&1&&(p(0,"table",0)(1,"thead",1)(2,"tr"),_(3,"th",2),m()(),p(4,"tbody",3),T("selectedValueChange",function(a){return r._monthSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),m()()),i&2&&(c(4),f("label",r._yearLabel)("rows",r._months)("todayValue",r._todayMonth)("startValue",r._selectedMonth)("endValue",r._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",r._dateAdapter.getMonth(r.activeDate)))},dependencies:[lp],encapsulation:2,changeDetection:0})}return t})(),U3=(()=>{class t{_intl=d(cp);calendar=d(DD);_dateAdapter=d(qt,{optional:!0});_dateFormats=d(Vo,{optional:!0});constructor(){d(pi).load(Bo);let e=d(Je);this.calendar.stateChanges.subscribe(()=>e.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?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=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-To)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:To)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):j3(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-Uf(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+To-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=d(Mt).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ire,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-control
610s"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",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,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(_t(),p(0,"div",0)(1,"div",1)(2,"span",2),E(3),m(),p(4,"button",3),T("click",function(){return r.currentPeriodClicked()}),p(5,"span",4),E(6),m(),Sn(),p(7,"svg",5),_(8,"polygon",6),m()(),Es(),_(9,"div",7),Ve(10),p(11,"button",8),T("click",function(){return r.previousClicked()}),Sn(),p(12,"svg",9),_(13,"path",10),m()(),Es(),p(14,"button",11),T("click",function(){return r.nextClicked()}),Sn(),p(15,"svg",9),_(16,"path",12),m()()()()),i&2&&(c(2),f("id",r._periodButtonLabelId),c(),he(r.periodButtonDescription),c(),ce("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),c(2),he(r.periodButtonText),c(),fe("mat-calendar-invert",r.calendar.currentView!=="month"),c(4),f("disabled",!r.previousEnabled()),ce("aria-label",r.prevButtonLabel),c(3),f("disabled",!r.nextEnabled()),ce("aria-label",r.nextButtonLabel))},dependencies:[Ee,Pl],encapsulation:2,changeDetection:0})}return t})(),DD=(()=>{class t{_dateAdapter=d(qt,{optional:!0});_dateFormats=d(Vo,{optional:!0});_changeDetectorRef=d(Je);_elementRef=d(ue);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof On?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new z;yearSelected=new z;monthSelected=new z;viewChanged=new z(!0);_userSelection=new z;_userDragDrop=new z;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}_currentView;_activeDrag=null;stateChanges=new G;constructor(){this._intlChanges=d(cp).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Mr(this.headerComponent||U3),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(qr())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof On||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(De(R3,5),De(L3,5),De(F3,5)),i&2){let o;se(o=le())&&(r.monthView=o.first),se(o=le())&&(r.yearView=o.first),se(o=le())&&(r.multiYearView=o.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:[_e([V3]),Xe],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(x(0,nre,0,0,"ng-template",0),p(1,"div",1),x(2,rre,1,11,"mat-month-view",2)(3,ore,1,6,"mat-year-view",3)(4,are,1,6,"mat-multi-year-view",3),m()),i&2){let o;f("cdkPortalOutlet",r._calendarHeaderPortal),c(2),b((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[mr,B0,R3,L3,F3],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}
610.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.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:""} 611`],encapsulation:2,changeDetection:0})}return t})(),G3=new H("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(Oi);return()=>t.scrollStrategies.reposition()}});function Dre(t){return()=>t.scrollStrategies.reposition()}var Tre={provide:G3,deps:[Oi],useFactory:Dre},$3=(()=>{class t{_elementRef=d(ue);_animationsDisabled=d(zt,{optional:!0})==="NoopAnimations";_changeDetectorRef=d(Je);_globalModel=d(Wl);_dateAdapter=d(qt);_ngZone=d(de);_rangeSelectionStrategy=d(gb,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new G;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(d(pi).load(Bo),this._closeButtonText=d(cp).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=d(It);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof On;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};
611_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&De(DD,5),i&2){let o;se(o=le())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(Mi(r.color?"mat-"+r.color:""),fe("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){if(i&1&&(p(0,"div",0)(1,"mat-calendar",1),T("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),m(),x(2,sre,0,0,"ng-template",2),p(3,"button",3),T("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),E(4),m()()),i&2){let o;fe("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),ce("aria-modal",!0)("aria-labelledby",(o=r._dialogLabelId)!==null&&o!==void 0?o:void 0),c(),Mi(r.datepicker.panelClass),f("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),c(),f("cdkPortalOutlet",r._actionsPortal),c(),fe("cdk-visually-hidden",!r._closeButtonFocused),f("color",r.color||"primary"),c(),he(r._closeButtonText)}},dependencies:[_w,DD,mr,Ee],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 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));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.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}.mat-datepicker-content-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;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 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));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.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}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@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}} 612`],encapsulation:2,changeDetection:0})}return t})(),_b=(()=>{class t{_overlay=d(Oi);
612_viewContainerRef=d(bi);_dateAdapter=d(qt,{optional:!0});_dir=d(ki,{optional:!0});_model=d(Wl);_scrollStrategy=d(G3);_inputStateChanges=Ie.EMPTY;_document=d(Se);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new z;monthSelected=new z;viewChanged=new z(!0);dateClass;openedStream=new z;closedStream=new z;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=wR(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=d(Mt).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new G;_injector=d(Ne);_changeDetectorRef=d(Je);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof Hu&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=qr(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._animationDone.pipe(Et(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),r._startExitAnimation()}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new Mr($3,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new yo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}
612),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||Ti(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return ji(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Ue(r=>r.keyCode===27&&!oi(r)||this.datepickerInput&&oi(r,"altKey")&&r.keyCode===38&&i.every(o=>!oi(r,o)))))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",pe],disabled:[2,"disabled","disabled",pe],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",pe],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",pe]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Xe]})}return t})(),ql=(()=>{class t extends _b{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[_e([V3,{provide:_b,useExisting:t}]),it],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})(),sp=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},W3=(()=>{class t{_elementRef=d(ue);_dateAdapter=d(qt,{optional:!0});_dateFormats=d(Vo,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_disabled;dateChange=new z;dateInput=new z;stateChanges=new G;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Ie.EMPTY;_localeSubscription=Ie.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!i||this._matchesFilter(i)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMinDate();return!r||!i||this._dateAdapter.compareDate(r,i)<=0?null:{matDatepickerMin:{min:r,actual:i}}};_maxValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._getMaxDate();return!r||!i||this._dateAdapter.compareDate(r,i)>=0?null:{matDatepickerMax:{max:r,actual:i}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new sp(this,this._elementRef.nativeElement)),this.dateChange.emit(new sp(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){q3(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}
612registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];oi(e,"altKey")&&e.keyCode===40&&i.every(o=>!oi(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=this._lastValueValid,r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let o=!this._dateAdapter.sameDate(r,this.value);!r||o?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()),o&&(this._assignValue(r),this.dateInput.emit(new sp(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new sp(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",pe]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Xe]})}return t})();function q3(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var Mre={provide:Ar,useExisting:Si(()=>ss),multi:!0},Ire={provide:In,useExisting:Si(()=>ss),multi:!0},ss=(()=>{class t extends W3{_formField=d(Ea,{optional:!0});_closedSubscription=Ie.EMPTY;_openedSubscription=Ie.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=ee(null);get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Z.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(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&T("input",function(a){return r._onInput(a.target.value)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(yi("disabled",r.disabled),ce("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[_e([Mre,Ire,{provide:Ov,useExisting:t}]),it]}
612)}return t})(),Are=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),Aa=(()=>{class t{_intl=d(cp);_changeDetectorRef=d(Je);_stateChanges=Ie.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=d(new Br("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:j(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:j(),r=this.datepicker?ji(this.datepicker.openedStream,this.datepicker.closedStream):j();this._stateChanges.unsubscribe(),this._stateChanges=ji(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&Kt(o,Are,5),i&2){let a;se(a=le())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&De(lre,5),i&2){let o;se(o=le())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&T("click",function(a){return r._open(a)}),i&2&&(ce("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),fe("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",pe],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Xe],ngContentSelectors:dre,decls:4,vars:7,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(_t(cre),p(0,"button",1,0),x(2,ure,2,0,":svg:svg",2),Ve(3),m()),i&2&&(f("disabled",r.disabled)("disableRipple",r.disableRipple),ce("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("tabindex",r.disabled?-1:r.tabIndex)("aria-expanded",r.datepicker?r.datepicker.opened:null),c(2),b(r._customIcon?-1:2))},dependencies:[Pl],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} 613`],encapsulation:2,changeDetection:0})}return t})(),MD=(()=>{class t{_changeDetectorRef=d(Je);_elementRef=d(ue);_dateAdapter=d(qt,{optional:!0});_formField=d(Ea,{optional:!0});_closedSubscription=Ie.EMPTY;_openedSubscription=Ie.EMPTY;_startInput;_endInput;get value(){return this._model?this._model.selection:null}id=d(Mt).getId("mat-date-range-input-");focused=!1;get shouldLabelFloat(){return this.focused||!this.empty}controlType="mat-date-range-input";get placeholder(){let e=this._startInput?._getPlaceholder()||"",i=this._endInput?._getPlaceholder()||"";return e||i?`${e} ${this.separator} ${i}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe(),this._ariaOwns.set(this.rangePicker.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(this._model))}_rangePicker;_ariaOwns=ee(null);get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(e){this._required=e}_required;get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._startInput,r=this._endInput,o=i&&i._matchesFilter(i.value),a=r&&r._matchesFilter(i.value);this._dateFilter=e,i&&i._matchesFilter(i.value)!==o&&i._validatorOnChange(),r&&r._matchesFilter(r.value)!==a&&r._validatorOnChange()}_dateFilter;get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._revalidate())}_min;get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._revalidate())}_max;get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){e!==this._groupDisabled&&(this._groupDisabled=e,this.stateChanges.next(void 0))}_groupDisabled=!1;get errorState(){return this._startInput&&this._endInput?this._startInput.errorState||this._endInput.errorState:!1}get empty(){let e=this._startInput?this._startInput.isEmpty():!1,i=this._endInput?this._endInput.isEmpty():!1;return e&&i}_ariaDescribedBy=null;_model;separator="\u2013";comparisonStart=null;comparisonEnd=null;ngControl;stateChanges=new G;disableAutomaticLabeling=!0;constructor(){this._dateAdapter,this._formField?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&this._elementRef.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=d(Mn,{optional:!0,self:!0})}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(!this._model||!this._model.selection.start?this._startInput.focus():this._endInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),ji(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){q3(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}
613getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){let i=e==="start"?this._startInput:this._endInput;return i?i.getMirrorValue():""}_shouldHidePlaceholders(){return this._startInput?!this._startInput.isEmpty():!1}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){let e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=e!==null,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(Z.required)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-date-range-input"]],hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(i,r){i&2&&(ce("id",r.id)("aria-labelledby",r._getAriaLabelledby())("aria-describedby",r._ariaDescribedBy)("data-mat-calendar",r.rangePicker?r.rangePicker.id:null),fe("mat-date-range-input-hide-placeholders",r._shouldHidePlaceholders())("mat-date-range-input-required",r.required))},inputs:{rangePicker:"rangePicker",required:[2,"required","required",pe],dateFilter:"dateFilter",min:"min",max:"max",disabled:[2,"disabled","disabled",pe],separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[_e([{provide:Ol,useExisting:t}]),Xe],ngContentSelectors:mre,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(i,r){i&1&&(_t(pre),p(0,"div",0),T("cdkFocusChange",function(a){return r._updateFocus(a)}),p(1,"div",1),Ve(2),p(3,"span",2),E(4),m()(),p(5,"span",3),E(6),m(),p(7,"div",4),Ve(8,1),p(9,"span",2),E(10),m()()()),i&2&&(c(4),he(r._getInputMirrorValue("start")),c(),fe("mat-date-range-input-separator-hidden",r._shouldHideSeparator()),c(),he(r.separator),c(4),he(r._getInputMirrorValue("end")))},dependencies:[B0],styles:[`.mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px;color:var(--mat-datepicker-range-input-separator-color, var(--mat-sys-on-surface))}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}
613}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px} 614`],encapsulation:2,changeDetection:0})}return t})();function kre(t){return TD(t,!0)}function B3(t){return t.nodeType===Node.ELEMENT_NODE}function Ore(t){return t.nodeName==="INPUT"}function Pre(t){return t.nodeName==="TEXTAREA"}function TD(t,n){if(B3(t)&&n){let i=(t.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((r,o)=>{let a=document.getElementById(o);return a&&r.push(a),r},[]);if(i.length)return i.map(r=>TD(r,!1)).join(" ")}if(B3(t)){let e=t.getAttribute("aria-label")?.trim();if(e)return e}if(Ore(t)||Pre(t)){if(t.labels?.length)return Array.from(t.labels).map(r=>TD(r,!1)).join(" ");let e=t.getAttribute("placeholder")?.trim();if(e)return e;let i=t.getAttribute("title")?.trim();if(i)return i}return(t.textContent||"").replace(/\s+/g," ").trim()}var Y3=(()=>{class t extends W3{_rangeInput=d(MD);_elementRef=d(ue);_defaultErrorStateMatcher=d(Ls);_injector=d(Ne);_parentForm=d(jc,{optional:!0});_parentFormGroup=d(bt,{optional:!0});ngControl;_dir=d(ki,{optional:!0});_errorStateTracker;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super(),this._errorStateTracker=new Dl(this._defaultErrorStateMatcher,null,this._parentFormGroup,this._parentForm,this.stateChanges)}ngOnInit(){let e=this._injector.get(Ir,null,{optional:!0,self:!0});e&&(this.ngControl=e,this._errorStateTracker.ngControl=e)}ngAfterContentInit(){this._register()}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return this._elementRef.nativeElement.value.length===0}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){let e=this._elementRef.nativeElement,i=e.value;return i.length>0?i:e.placeholder}updateErrorState(){this._errorStateTracker.updateErrorState()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_getAccessibleName(){return kre(this._elementRef.nativeElement)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,inputs:{errorStateMatcher:"errorStateMatcher"},features:[it]})}return t})(),K3=(()=>{class t extends Y3{_startValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._model?this._model.selection.end:null;return!i||!r||this._dateAdapter.compareDate(i,r)<=0?null:{matStartDateInvalid:{end:r,actual:i}}};_validator=Z.compose([...super._getValidators(),this._startValidator]);_register(){this._rangeInput._startInput=this}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.start?!e.selection.start||!!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!!e.selection.start:!1}_assignValueToModel(e){if(this._model){let i=new On(e,this._model.selection.end);this._model.updateSelection(i,this),this._rangeInput._handleChildValueChange()}}_onKeydown(e){let i=this._rangeInput._endInput,r=this._elementRef.nativeElement,o=this._dir?.value!=="rtl";(e.keyCode===39&&o||e.keyCode===37&&!o)&&r.selectionStart===r.value.length&&r.selectionEnd===r.value.length?(e.preventDefault(),i._elementRef.nativeElement.setSelectionRange(0,0),i.focus()):super._onKeydown(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(i,r){i&1&&T("input",function(a){return r._onInput(a.target.value)})("change",function(){return r._onChange()})("keydown",function(a){return r._onKeydown(a)})("blur",function(){return r._onBlur()}),i&2&&(yi("disabled",r.disabled),ce("aria-haspopup",r._rangeInput.rangePicker?"dialog":null)("aria-owns",r._rangeInput._ariaOwns?r._rangeInput._ariaOwns():(r._rangeInput.rangePicker==null?null:r._rangeInput.rangePicker.opened)&&r._rangeInput.rangePicker.id||null)("min",r._getMinDate()?r._dateAdapter.toIso8601(r._getMinDate()):null)("max",r._getMaxDate()?r._dateAdapter.toIso8601(r._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[_e([{provide:Ar,useExisting:t,multi:!0},{provide:In,useExisting:t,multi:!0}]),it]})}return t})(),Q3=(()=>{class t extends Y3{_endValidator=e=>{let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),r=this._model?this._model.selection.start:null;return!i||!r||this._dateAdapter.compareDate(i,r)>=0?null:{matEndDateInvalid:{start:r,actual:i}}};_register(){this._rangeInput._endInput=this}_validator=Z.compose([...super._getValidators(),this._endValidator]);_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.end?!e.selection.end||!!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!!e.selection.end:!1}_assignValueToModel(e){if(this._model){let i=new On(this._model.selection.start,e);this._model.updateSelection(i,this)}}_moveCaretToEndOfStartInput(){let e=this._rangeInput._startInput._elementRef.nativeElement,i=e.value;i.length>0&&e.setSelectionRange(i.length,i.length),e.focus()}_onKeydown(e){let i=this._elementRef.nativeElement,r=this._dir?.value!=="rtl";e.keyCode===8&&!i.value?this._moveCaretToEndOfStartInput():(e.keyCode===37&&r||e.keyCode===39&&!r)&&i.selectionStart===0&&i.selectionEnd===0?(e.preventDefault(),this._moveCaretToEndOfStartInput()):super._onKeydown(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(i,r){i&1&&T("input",function(a){return r._onInput(a.target.value)})("change",function(){return r._onChange()})("keydown",function(a){return r._onKeydown(a)})("blur",function(){return r._onBlur()}),i&2&&(yi("disabled",r.disabled),ce("aria-haspopup",r._rangeInput.rangePicker?"dialog":null)("aria-owns",r._rangeInput._ariaOwns?r._rangeInput._ariaOwns():(r._rangeInput.rangePicker==null?null:r._rangeInput.rangePicker.opened)&&r._rangeInput.rangePicker.id||null)("min",r._getMinDate()?r._dateAdapter.toIso8601(r._getMinDate()):null)("max",r._getMaxDate()?r._dateAdapter.toIso8601(r._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[_e([{provide:Ar,useExisting:t,multi:!0},{provide:In,useExisting:t,multi:!0}]),it]})}return t})(),Z3=(()=>{class t extends _b{_forwardContentValues(e){super._forwardContentValues(e);let i=this.datepickerInput;i&&(e.comparisonStart=i.comparisonStart,e.comparisonEnd=i.comparisonEnd,e.startDateAccessibleName=i._getStartDateAccessibleName(),e.endDateAccessibleName=i._getEndDateAccessibleName())}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[_e([yre,xre,{provide:_b,useExisting:t}]),it],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}return t})();var X3=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({providers:[cp,Tre],imports:[sE,Hs,Jm,ts,Kr,$3,Aa,U3,Bc]})}return t})();var Jc=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $f=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())
614),this._selected}changed=new G;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}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(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n}else return n}};var Rre=["trigger"],Fre=["panel"],Lre=[[["mat-select-trigger"]],"*"],Bre=["mat-select-trigger","*"];function Hre(t,n){if(t&1&&(p(0,"span",4),E(1),m()),t&2){let e=h();c(),he(e.placeholder)}}function Vre(t,n){t&1&&Ve(0)}function jre(t,n){if(t&1&&(p(0,"span",11),E(1),m()),t&2){let e=h(2);c(),he(e.triggerValue)}}function zre(t,n){if(t&1&&(p(0,"span",5),x(1,Vre,1,0)(2,jre,2,1,"span",11),m()),t&2){let e=h();c(),b(e.customTrigger?1:2)}}function Ure(t,n){if(t&1){let e=B();p(0,"div",12,1),T("keydown",function(r){A(e);let o=h();return k(o._handleKeydown(r))}),Ve(2,1),m()}if(t&2){let e=h();As("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),fe("mat-select-panel-animations-enabled",!e._animationsDisabled),f("ngClass",e.panelClass),ce("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var J3=new H("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(Oi);return()=>t.scrollStrategies.reposition()}});var eH=new H("MAT_SELECT_CONFIG");var tH=new H("MatSelectTrigger"),vb=class{source;value;constructor(n,e){this.source=n,this.value=e}},ir=(()=>{class t{_viewportRuler=d(Ml);_changeDetectorRef=d(Je);_elementRef=d(ue);_dir=d(ki,{optional:!0});_idGenerator=d(Mt);_renderer=d(It);_parentFormField=d(Ea,{optional:!0});ngControl=d(Ir,{self:!0,optional:!0});_liveAnnouncer=d(Xm);_defaultOptions=d(eH,{optional:!0});_animationsDisabled=d(zt,{optional:!0})==="NoopAnimations";_initialized=new G;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=of(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=af(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new vb(this,e)}_scrollStrategyFactory=d(J3);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new G;_errorStateTracker;stateChanges=new G;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}
614_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Z.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=Oo(()=>{let e=this.options;return e?e.changes.pipe(Yt(e),Qt(()=>ji(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(Qt(()=>this.optionSelectionChanges))});openedChange=new z;_openedStream=this.openedChange.pipe(Ue(e=>e),F(()=>{}));
614_closedStream=this.openedChange.pipe(Ue(e=>!e),F(()=>{}));selectionChange=new z;valueChange=new z;constructor(){let e=d(Ls),i=d(jc,{optional:!0}),r=d(bt,{optional:!0}),o=d(new Br("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Dl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new $f(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(We(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(We(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Yt(null),We(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(Et(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=`${this.id}-panel`;this._trackedModal&&wl(this._trackedModal,"aria-owns",i),Iu(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;wl(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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){let e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!oi(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!oi(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!oi(e)&&(e.preventDefault(),this.close())}_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())}
614_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(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Vu?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Rc(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=ji(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(We(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ji(...this.options.map(i=>i._stateChanges)).pipe(We(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i<this.options.length;i++)if(!this.options.get(i).disabled){e=i;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(Kt(o,tH,5),Kt(o,Ri,5),Kt(o,Ru,5)),i&2){let a;se(a=le())&&(r.customTrigger=a.first),se(a=le())&&(r.options=a),se(a=le())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(De(Rre,5),De(Fre,5),De(fv,5)),i&2){let o;se(o=le())&&(r.trigger=o.first),se(o=le())&&(r.panel=o.first),se(o=le())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){i&1&&T("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(ce("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),fe("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",pe],disableRipple:[2,"disableRipple","disableRipple",pe],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Ii(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",pe],placeholder:"placeholder",required:[2,"required","required",pe],multiple:[2,"multiple","multiple",pe],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",pe],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Ii],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",pe]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[_e([{provide:Ol,useExisting:t},{provide:Nu,useExisting:t}]),Xe],ngContentSelectors:Bre,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=B();_t(Lre),p(0,"div",2,0),T("click",function(){return A(o),k(r.open())}),p(3,"div",3),x(4,Hre,2,1,"span",4)(5,zre,3,1,"span",5),m(),p(6,"div",6)(7,"div",7),Sn(),p(8,"svg",8),_(9,"path",9),m()()()(),x(10,Ure,3,10,"ng-template",10),T("detach",function(){return A(o),k(r.close())})("backdropClick",function(){return A(o),k(r.close())})("overlayKeydown",function(s){return A(o),k(r._handleOverlayKeydown(s))})}if(i&2){let o=J(1);c(3),ce("id",r._valueId),c(),b(r.empty?4:5),c(6),f("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[Vu,fv,tn],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}
614}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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 .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} 615`],encapsulation:2,changeDetection:0})}return t})();var M=function(t){return t.SEPARATOR="separator",t.PERCENT="percent",t.IP="IP",t.CPF_CNPJ="CPF_CNPJ",t.MONTH="M",t.MONTHS="M0",t.MINUTE="m",t.HOUR="h",t.HOURS="H",t.MINUTES="m0",t.HOURS_HOUR="Hh",t.SECONDS="s0",t.HOURS_MINUTES_SECONDS="Hh:m0:s0",t.EMAIL_MASK="A*@A*.A*",t.HOURS_MINUTES="Hh:m0",t.MINUTES_SECONDS="m0:s0",t.DAYS_MONTHS_YEARS="d0/M0/0000",t.DAYS_MONTHS="d0/M0",t.DAYS="d0",t.DAY="d",t.SECOND="s",t.LETTER_S="S",t.DOT=".",t.COMMA=",",t.CURLY_BRACKETS_LEFT="{",t.CURLY_BRACKETS_RIGHT="}",t.MINUS="-",t.OR="||",t.HASH="#",t.EMPTY_STRING="",t.SYMBOL_STAR="*",t.SYMBOL_QUESTION="?",t.SLASH="/",t.WHITE_SPACE=" ",t.NUMBER_ZERO="0",t.NUMBER_NINE="9",t.BACKSPACE="Backspace",t.DELET
615E="Delete",t.ARROW_LEFT="ArrowLeft",t.ARROW_UP="ArrowUp",t.DOUBLE_ZERO="00",t}(M||{}),ID=new H("ngx-mask config"),UWe=new H("new ngx-mask config"),GWe=new H("initial ngx-mask config"),$We={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showMaskTyped:!1,instantPrefix:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:!1,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:t=>t,outputTransformFn:t=>t,maskFilled:new z,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},$re=[M.HOURS_MINUTES_SECONDS,M.HOURS_MINUTES,M.MINUTES_SECONDS],Wre=[M.PERCENT,M.HOURS_HOUR,M.SECONDS,M.MINUTES,M.SEPARATOR,M.DAYS_MONTHS_YEARS,M.DAYS_MONTHS,M.DAYS,M.MONTHS],qre=(()=>{class t{_config=d(ID);dropSpecialCharacters=this._config.dropSpecialCharacters;hiddenInput=this._config.hiddenInput;clearIfNotMatch=this._config.clearIfNotMatch;specialCharacters=this._config.specialCharacters;patterns=this._config.patterns;prefix=this._config.prefix;suffix=this._config.suffix;thousandSeparator=this._config.thousandSeparator;decimalMarker=this._config.decimalMarker;customPattern;showMaskTyped=this._config.showMaskTyped;placeHolderCharacter=this._config.placeHolderCharacter;validation=this._config.validation;separatorLimit=this._config.separatorLimit;allowNegativeNumbers=this._config.allowNegativeNumbers;leadZeroDateTime=this._config.leadZeroDateTime;leadZero=this._config.leadZero;apm=this._config.apm;inputTransformFn=this._config.inputTransformFn;outputTransformFn=this._config.outputTransformFn;keepCharacterPositions=this._config.keepCharacterPositions;instantPrefix=this._config.instantPrefix;triggerOnMaskChange=this._config.triggerOnMaskChange;_shift=new Set;plusOnePosition=!1;maskExpression="";actualValue="";showKeepCharacterExp="";shownMaskExpression=this._config.shownMaskExpression;deletedSpecialCharacter=!1;ipError;cpfCnpjError;applyMask(e,i,r=0,o=!1,a=!1,s=()=>{}){if(!i||typeof e!="string")return M.EMPTY_STRING;let l=0,u="",g=!1,v=!1,w=1,C=!1,S=e,D=r;S.slice(0,this.prefix.length)===this.prefix&&(S=S.slice(this.prefix.length,S.length)),this.suffix&&S.length>0&&(S=this.checkAndRemoveSuffix(S)),S==="("&&this.prefix&&(S="");let O=S.toString().split(M.EMPTY_STRING);if(this.allowNegativeNumbers&&S.slice(l,l+1)===M.MINUS&&(u+=S.slice(l,l+1)),i===M.IP){let ae=S.split(M.DOT);this.ipError=this._validIP(ae),i="099.099.099.099"}let V=[];for(let ae=0;ae<S.length;ae++)S[ae]?.match("\\d")&&V.push(S[ae]??M.EMPTY_STRING);if(i===M.CPF_CNPJ&&(this.cpfCnpjError=V.length!==11&&V.length!==14,V.length>11?i="00.000.000/0000-00":i="000.000.000-00"),i.startsWith(M.PERCENT)){if(S.match("[a-z]|[A-Z]")||S.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!a){S=this._stripToDecimal(S);let dt=this.getPrecision(i);S=this.checkInputPrecision(S,dt,this.decimalMarker)}let ae=typeof this.decimalMarker=="string"?this.decimalMarker:M.DOT;if(S.indexOf(ae)>0&&!this.percentage(S.substring(0,S.indexOf(ae)))){let dt=S.substring(0,S.indexOf(ae)-1);this.allowNegativeNumbers&&S.slice(l,l+1)===M.MINUS&&!a&&(dt=S.substring(0,S.indexOf(ae))),S=`${dt}${S.substring(S.indexOf(ae),S.length)}`}let oe="";this.allowNegativeNumbers&&S.slice(l,l+1)===M.MINUS?oe=`${M.MINUS}${S.slice(l+1,l+S.length)}`:oe=S,this.percentage(oe)?u=this._splitPercentZero(S):u=this._splitPercentZero(S.substring(0,S.length-1))}else if(i.startsWith(M.SEPARATOR)){(S.match("[w\u0430-\u044F\u0410-\u042F]")||S.match("[\u0401\u0451\u0410-\u044F]")||S.match("[a-z]|[A-Z]")||S.match(/[-@#!$%\\^&*()_£¬'+|~=`{}\]:";<>.?/]/)||S.match("[^A-Za-z0-9,]"))&&(S=this._stripToDecimal(S));
615let ae=this.getPrecision(i),oe=this.decimalMarker;if(Array.isArray(this.decimalMarker)&&(this.actualValue.includes(this.decimalMarker[0])||this.actualValue.includes(this.decimalMarker[1])?oe=this.actualValue.includes(this.decimalMarker[0])?this.decimalMarker[0]:this.decimalMarker[1]:oe=this.decimalMarker.find(ne=>ne!==this.thousandSeparator)),a){let{decimalMarkerIndex:ne,nonZeroIndex:ve}=this._findFirstNonZeroAndDecimalIndex(S,oe),Fe=S[0]===M.MINUS,mt=S[0]===M.NUMBER_ZERO,fi=S[0]===oe,an=S[1]===oe;(fi&&!ve||Fe&&an&&!ve||mt&&!ne&&!ve)&&(S=M.NUMBER_ZERO),ne&&ve&&Fe&&D===1&&(ne<ve||ne>ve)&&(S=M.MINUS+S.slice(ve)),!ne&&ve&&S.length>ve&&(S=Fe?M.MINUS+S.slice(ve):S.slice(ve)),ne&&ve&&D===0&&(ne<ve&&(S=S.slice(ne-1)),ne>ve&&(S=S.slice(ve)))}ae===0?S=this.allowNegativeNumbers?S.length>2&&S[0]===M.MINUS&&S[1]===M.NUMBER_ZERO&&S[2]!==this.thousandSeparator&&S[2]!==M.COMMA&&S[2]!==M.DOT?"-"+S.slice(2,S.length):S[0]===M.NUMBER_ZERO&&S.length>1&&S[1]!==this.thousandSeparator&&S[1]!==M.COMMA&&S[1]!==M.DOT?S.slice(1,S.length):S:S.length>1&&S[0]===M.NUMBER_ZERO&&S[1]!==this.thousandSeparator&&S[1]!==M.COMMA&&S[1]!==M.DOT?S.slice(1,S.length):S:(S[0]===oe&&S.length>1&&!a&&(S=M.NUMBER_ZERO+S.slice(0,S.length+1),this.plusOnePosition=!0),S[0]===M.NUMBER_ZERO&&S[1]!==oe&&S[1]!==this.thousandSeparator&&!a&&(S=S.length>1?S.slice(0,1)+oe+S.slice(1,S.length+1):S,this.plusOnePosition=!0),this.allowNegativeNumbers&&!a&&S[0]===M.MINUS&&(S[1]===oe||S[1]===M.NUMBER_ZERO)&&(S=S[1]===oe&&S.length>2?S.slice(0,1)+M.NUMBER_ZERO+S.slice(1,S.length):S[1]===M.NUMBER_ZERO&&S.length>2&&S[2]!==oe?S.slice(0,2)+oe+S.slice(2,S.length):S,this.plusOnePosition=!0));let dt=this._charToRegExpExpression(this.thousandSeparator),ut='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(dt,"");if(Array.isArray(this.decimalMarker))for(let ne of this.decimalMarker)ut=ut.replace(this._charToRegExpExpression(ne),M.EMPTY_STRING);else ut=ut.replace(this._charToRegExpExpression(this.decimalMarker),"");let Ze=new RegExp("["+ut+"]");S.match(Ze)&&(S=S.substring(0,S.length-1)),S=this.checkInputPrecision(S,ae,this.decimalMarker);let lt=S.replace(new RegExp(dt,"g"),"");u=this._formatWithSeparators(lt,this.thousandSeparator,this.decimalMarker,ae);let Ft=u.indexOf(M.COMMA)-S.indexOf(M.COMMA),ti=u.length-S.length,on=a&&u.length<e.length&&this.separatorLimit;if((u[D-1]===this.thousandSeparator||u[D-this.prefix.length])&&this.prefix&&a)D=D-1;else if(ti>0&&u[D]!==this.thousandSeparator||on){v=!0;let ne=0;do this._shift.add(D+ne),ne++;while(ne<ti)}else u[D-1]===this.thousandSeparator||ti===-4||ti===-3||u[D]===this.thousandSeparator?(this._shift.clear(),this._shift.add(D-1)):Ft!==0&&D>0&&!(u.indexOf(M.COMMA)>=D&&D>3)||!(u.indexOf(M.DOT)>=D&&D>3)&&ti<=0?(this._shift.clear(),v=!0,w=ti,D+=ti,this._shift.add(D)):this._shift.clear()}else for(let ae=0,oe=O[0];ae<O.length&&l!==i.length;ae++,oe=O[ae]??M.EMPTY_STRING){let dt=M.SYMBOL_STAR in this.patterns;if(this._checkSymbolMask(oe,i[l]??M.EMPTY_STRING)&&i[l+1]===M.SYMBOL_QUESTION)u+=oe,l+=2;else if(i[l+1]===M.SYMBOL_STAR&&g&&this._checkSymbolMask(oe,i[l+2]??M.EMPTY_STRING))u+=oe,l+=3,g=!1;else if(this._checkSymbolMask(oe,i[l]??M.EMPTY_STRING)&&i[l+1]===M.SYMBOL_STAR&&!dt)u+=oe,g=!0;else if(i[l+1]===M.SYMBOL_QUESTION&&this._checkSymbolMask(oe,i[l+2]??M.EMPTY_STRING))u+=oe,l+=3;else if(this._checkSymbolMask(oe,i[l]??M.EMPTY_STRING)){if(i[l]===M.HOURS&&(this.apm?Number(oe)>9:Number(oe)>2)){D=this.leadZeroDateTime?D:D+1,l+=1,this._shiftStep(l),ae--,this.leadZeroDateTime&&(u+="0");continue}if(i[l]===M.HOUR&&(this.apm?u.length===1&&Number(u)>1||u==="1"&&Number(oe)>2||S.slice(l-1,l).length===1&&Number(S.slice(l-1,l))>2||S.slice(l-1,l)==="1"&&Number(oe)>2:u==="2"&&Number(oe)>3||(u.slice(l-2,l)==="2"||u.slice(l-3,l)==="2"||u.slice(l-4,l)==="2"||u.slice(l-1,l)==="2")&&Number(oe)>3&&l>10)){D=D+1,l+=1,ae--;continue}if((i[l]===M.MINUTE||i[l]===M.SECOND)&&Number(oe)>5){D=this.leadZeroDateTime?D:D+1,l+=1,this._shiftStep(l),ae--,this.leadZeroDateTime&&(u+="0");continue}let ut=31,Ze=S[l],lt=S[l+1],Ft=S[l+2],ti=S[l-1],on=S[l-2],ne=S.slice(l-3,l-1),ve=S.slice(l-1,l+1),Fe=S.slice(l,l+2),mt=S.slice(l-2,l);if(i[l]===M.DAY){let fi=i.slice(0,2)===M.MONTHS,an=i.slice(0,2)===M.MONTHS&&this.specialCharacters.includes(on);if(Number(oe)>3&&this.leadZeroDateTime||!fi&&(Number(Fe)>ut||Number(ve)>ut||this.specialCharacters.includes(lt))||(an?Number(ve)>ut||!this.specialCharacters.includes(Ze)&&this.specialCharacters.includes(Ft)||this.specialCharacters.includes(Ze):Number(Fe)>ut||this.specialCharacters.includes(lt)&&!a)){D=this.leadZeroDateTime?D:D+1,l+=1,this._shiftStep(l),ae--,this.leadZeroDateTime&&(u+="0");continue}}if(i[l]===M.MONTH){let an=l===0&&(Number(oe)>2||Number(Fe)>12||this.specialCharacters.includes(lt)&&!a),Xi=i.slice(l+2,l+3),yr=ne.includes(Xi)&&i.includes("d0")&&(this.specialCharacters.includes(on)&&Number(ve)>12&&!this.specialCharacters.includes(Ze)||this.specialCharacters.includes(Ze)),Zt=Number(ne)<=ut&&!this.specialCharacters.includes(ne)&&this.specialCharacters.includes(ti)&&(Number(Fe)>12||this.specialCharacters.includes(lt)),no=Number(Fe)>12&&l===5||this.specialCharacters.includes(lt)&&l===5,ps=Number(ne)>ut&&!this.specialCharacters.includes(ne)&&!this.specialCharacters.includes(mt)&&Number(mt)>12&&i.includes("d0"),Vi=Number(ne)<=ut&&!this.specialCharacters.includes(ne)&&!this.specialCharacters.includes(ti)&&Number(ve)>12;if(Number(oe)>1&&this.leadZeroDateTime||an||yr||Vi||ps||Zt||no&&!this.leadZeroDateTime){D=this.leadZeroDateTime?D:D+1,l+=1,this._shiftStep(l),ae--,this.leadZeroDateTime&&(u+="0");continue}}u+=oe,l++}else this.specialCharacters.includes(oe)&&i[l]===oe?(u+=oe,l++):this.specialCharacters.indexOf(i[l]??M.EMPTY_STRING)!==-1?(u+=i[l],l++,this._shiftStep(l),ae--):i[l]===M.NUM
615BER_NINE&&this.showMaskTyped?this._shiftStep(l):this.patterns[i[l]??M.EMPTY_STRING]&&this.patterns[i[l]??M.EMPTY_STRING]?.optional?(O[l]&&i!=="099.099.099.099"&&i!=="000.000.000-00"&&i!=="00.000.000/0000-00"&&!i.match(/^9+\.0+$/)&&!this.patterns[i[l]??M.EMPTY_STRING]?.optional&&(u+=O[l]),i.includes(M.NUMBER_NINE+M.SYMBOL_STAR)&&i.includes(M.NUMBER_ZERO+M.SYMBOL_STAR)&&l++,l++,ae--):this.maskExpression[l+1]===M.SYMBOL_STAR&&this._findSpecialChar(this.maskExpression[l+2]??M.EMPTY_STRING)&&this._findSpecialChar(oe)===this.maskExpression[l+2]&&g||this.maskExpression[l+1]===M.SYMBOL_QUESTION&&this._findSpecialChar(this.maskExpression[l+2]??M.EMPTY_STRING)&&this._findSpecialChar(oe)===this.maskExpression[l+2]&&g?(l+=3,u+=oe):this.showMaskTyped&&this.specialCharacters.indexOf(oe)<0&&oe!==this.placeHolderCharacter&&this.placeHolderCharacter.length===1&&(C=!0)}u[D-1]&&u.length+1===i.length&&this.specialCharacters.indexOf(i[i.length-1]??M.EMPTY_STRING)!==-1&&(u+=i[i.length-1]);let Q=D+1;for(;this._shift.has(Q);)w++,Q++;let ie=o&&!i.startsWith(M.SEPARATOR)?l:this._shift.has(D)?w:0;C&&ie--,s(ie,v),w<0&&this._shift.clear();let U=!1;a&&(U=O.every(ae=>this.specialCharacters.includes(ae)));let Me=`${this.prefix}${U?M.EMPTY_STRING:u}${this.showMaskTyped?"":this.suffix}`;u.length===0&&(Me=this.instantPrefix?`${this.prefix}${u}`:`${u}`);let Oe=S.length===1&&this.specialCharacters.includes(i[0])&&S!==i[0];if(!this._checkSymbolMask(S,i[1])&&Oe)return"";if(u.includes(M.MINUS)&&this.prefix&&this.allowNegativeNumbers){if(a&&u===M.MINUS)return"";Me=`${M.MINUS}${this.prefix}${u.split(M.MINUS).join(M.EMPTY_STRING)}${this.suffix}`}return Me}_findDropSpecialChar(e){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(i=>i===e):this._findSpecialChar(e)}_findSpecialChar(e){return this.specialCharacters.find(i=>i===e)}_checkSymbolMask(e,i){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[i]?.pattern&&this.patterns[i]?.pattern.test(e))??!1}_formatWithSeparators=(e,i,r,o)=>{let a=[],s="";if(Array.isArray(r)){let w=new RegExp(r.map(C=>"[\\^$.|?*+()".indexOf(C)>=0?`\\${C}`:C).join("|"));a=e.split(w),s=e.match(w)?.[0]??M.EMPTY_STRING}else a=e.split(r),s=r;let l=a.length>1?`${s}${a[1]}`:M.EMPTY_STRING,u=a[0]??M.EMPTY_STRING,g=this.separatorLimit.replace(/\s/g,M.EMPTY_STRING);g&&+g&&(u[0]===M.MINUS?u=`-${u.slice(1,u.length).slice(0,g.length)}`:u=u.slice(0,g.length));let v=/(\d+)(\d{3})/;for(;i&&v.test(u);)u=u.replace(v,"$1"+i+"$2");return typeof o>"u"?u+l:o===0?u:u+l.substring(0,o+1)};percentage=e=>{let i=e.replace(",","."),r=Number(this.allowNegativeNumbers&&e.includes(M.MINUS)?i.slice(1,e.length):i);return!isNaN(r)&&r>=0&&r<=100};getPrecision=e=>{let i=e.split(M.DOT);return i.length>1?Number(i[i.length-1]):1/0};checkAndRemoveSuffix=e=>{for(let i=this.suffix?.length-1;i>=0;i--){let r=this.suffix.substring(i,this.suffix?.length);if(e.includes(r)&&i!==this.suffix?.length-1&&(i-1<0||!e.includes(this.suffix.substring(i-1,this.suffix?.length))))return e.replace(r,M.EMPTY_STRING)}return e};checkInputPrecision=(e,i,r)=>{let o=e,a=r;if(i<1/0){if(Array.isArray(a)){let g=a.find(v=>v!==this.thousandSeparator);a=g||a[0]}let s=new RegExp(this._charToRegExpExpression(a)+`\\d{${i}}.*$`),l=o.match(s),u=(l&&l[0]?.length)??0;if(u-1>i){let g=u-1-i;o=o.substring(0,o.length-g)}i===0&&this._compareOrIncludes(o[o.length-1],a,this.thousandSeparator)&&(o=o.substring(0,o.length-1))}return o};_stripToDecimal(e){return e.split(M.EMPTY_STRING).filter((i,r)=>{let o=typeof this.decimalMarker=="string"?i===this.decimalMarker:this.decimalMarker.includes(i);return i.match("^-?\\d")||i===this.thousandSeparator||o||i===M.MINUS&&r===0&&this.allowNegativeNumbers}).join(M.EMPTY_STRING)}_charToRegExpExpression(e){return e&&(e===" "?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?`\\${e}`:e)}_shiftStep(e){this._shift.add(e+this.prefix.length||0)}_compareOrIncludes(e,i,r){return Array.isArray(i)?i.filter(o=>o!==r).includes(e):e===i}_validIP(e){return!(e.length===4&&!e.some((i,r)=>e.length!==r+1?i===M.EMPTY_STRING||Number(i)>255:i===M.EMPTY_STRING||Number(i.substring(0,3))>
615255))}_splitPercentZero(e){if(e===M.MINUS&&this.allowNegativeNumbers)return e;let i=typeof this.decimalMarker=="string"?e.indexOf(this.decimalMarker):e.indexOf(M.DOT),r=this.allowNegativeNumbers&&e.includes(M.MINUS)?"-":"";if(i===-1){let o=parseInt(r?e.slice(1,e.length):e,10);return isNaN(o)?M.EMPTY_STRING:`${r}${o}`}else{let o=parseInt(e.replace("-","").substring(0,i),10),a=e.substring(i+1),s=isNaN(o)?"":o.toString(),l=typeof this.decimalMarker=="string"?this.decimalMarker:M.DOT;return s===M.EMPTY_STRING?M.EMPTY_STRING:`${r}${s}${l}${a}`}}_findFirstNonZeroAndDecimalIndex(e,i){let r=null,o=null;for(let a=0;a<e.length;a++){let s=e[a];if(s===i&&r===null&&(r=a),s&&s>="1"&&s<="9"&&o===null&&(o=a),r!==null&&o!==null)break}return{decimalMarkerIndex:r,nonZeroIndex:o}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),iH=(()=>{class t extends qre{isNumberValue=!1;maskIsShown="";selStart=null;selEnd=null;maskChanged=!1;maskExpressionArray=[];previousValue="";currentValue="";writingValue=!1;_emitValue=!1;_start;_end;onChange=e=>{};_elementRef=d(ue,{optional:!0});document=d(Se);_config=d(ID);_renderer=d(It,{optional:!0});applyMask(e,i,r=0,o=!1,a=!1,s=()=>{}){if(!i)return e!==this.actualValue?this.actualValue:e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():M.EMPTY_STRING,this.maskExpression===M.IP&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||M.HASH)),this.maskExpression===M.CPF_CNPJ&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||M.HASH)),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;let l=e&&typeof this.selStart=="number"?e[this.selStart]??M.EMPTY_STRING:M.EMPTY_STRING,u="",g=r;if((this.hiddenInput||e&&e.indexOf(M.SYMBOL_STAR)>=0)&&!this.writingValue){let S=e&&e.length===1?e.split(M.EMPTY_STRING):this.actualValue.split(M.EMPTY_STRING);a&&(S=S.slice(0,r).concat(S.slice(r+1))),this.showMaskTyped&&(e=this.removeMask(e),S=this.removeMask(S.join("")).split(M.EMPTY_STRING)),typeof this.selStart=="object"&&typeof this.selEnd=="object"?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):e!==M.EMPTY_STRING&&S.length?typeof this.selStart=="number"&&typeof this.selEnd=="number"&&(e.length>S.length?S.splice(this.selStart,0,l):e.length<S.length&&(S.length-e.length===1?a?S.splice(this.selStart-1,1):S.splice(e.length-1,1):S.splice(this.selStart,this.selEnd-this.selStart))):S=[],this.showMaskTyped&&!this.hiddenInput&&(u=this.removeMask(e)),this.actualValue.length?S.length<e.length?u=this.shiftTypedSymbols(S.join(M.EMPTY_STRING)):S.length===e.length?u=S.join(M.EMPTY_STRING):u=e:u=e}if(o&&(this.hiddenInput||!this.hiddenInput)&&(u=e),a&&this.specialCharacters.indexOf(this.maskExpression[g]??M.EMPTY_STRING)!==-1&&this.showMaskTyped&&!this.prefix&&(u=this.currentValue),this.deletedSpecialCharacter&&g&&(this.specialCharacters.includes(this.actualValue.slice(g,g+1))?g=g+1:i.slice(g-1,g+1)!==M.MONTHS&&(g=g-2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&this.placeHolderCharacter.length===1&&!this.leadZeroDateTime&&(u=this.removeMask(u)),this.maskChanged?u=e:u=u&&u.length?u:e,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!o&&!this.writingValue){let S=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(S),this.actualValue?this.actualValue:`${this.prefix}${this.maskIsShown}${this.suffix}`}let v=super.applyMask(u,i,g,o,a,s);if(this.actualValue=this.getActualValue(v),this.thousandSeparator===M.DOT&&this.decimalMarker===M.DOT&&(this.decimalMarker=M.COMMA),this.maskExpression.startsWith(M.SEPARATOR)&&this.dropSpecialCharacters===!0&&(this.specialCharacters=this.specialCharacters.filter(S=>!this._compareOrIncludes(S,this.decimalMarker,this.thousandSeparator))),(v||v==="")&&(this.previousValue=this.currentValue,this.currentValue=v,this._emitValue=this.previousValue!==this.currentValue||u!==this.currentValue&&this.writingValue||this.previousValue===this.currentValue&&o),this._emitValue&&this.formControlResult(v),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?`${this.hideInput(v,this.maskExpression)}${this.maskIsShown.slice(v.length)}`:v;let w=v.length,C=`${this.prefix}${this.maskIsShown}${this.suffix}`;
615if(this.maskExpression.includes(M.HOURS)){let S=this._numberSkipedSymbols(v);return`${v}${C.slice(w+S)}`}else if(this.maskExpression===M.IP||this.maskExpression===M.CPF_CNPJ)return`${v}${C}`;return`${v}${C.slice(w)}`}_numberSkipedSymbols(e){let i=/(^|\D)(\d\D)/g,r=i.exec(e),o=0;for(;r!=null;)o+=1,r=i.exec(e);return o}applyValueChanges(e,i,r,o=()=>{}){let a=this._elementRef?.nativeElement;a&&(a.value=this.applyMask(a.value,this.maskExpression,e,i,r,o),a!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(e,i){return e.split(M.EMPTY_STRING).map((r,o)=>this.patterns&&this.patterns[i[o]??M.EMPTY_STRING]&&this.patterns[i[o]??M.EMPTY_STRING]?.symbol?this.patterns[i[o]??M.EMPTY_STRING]?.symbol:r).join(M.EMPTY_STRING)}getActualValue(e){let i=e.split(M.EMPTY_STRING).filter((r,o)=>{let a=this.maskExpression[o]??M.EMPTY_STRING;return this._checkSymbolMask(r,a)||this.specialCharacters.includes(a)&&r===a});return i.join(M.EMPTY_STRING)===e?i.join(M.EMPTY_STRING):e}shiftTypedSymbols(e){let i="";return(e&&e.split(M.EMPTY_STRING).map((o,a)=>{if(this.specialCharacters.includes(e[a+1]??M.EMPTY_STRING)&&e[a+1]!==this.maskExpression[a+1])return i=o,e[a+1];if(i.length){let s=i;return i=M.EMPTY_STRING,s}return o})||[]).join(M.EMPTY_STRING)}numberToString(e){return!e&&e!==0||this.maskExpression.startsWith(M.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith(M.SEPARATOR)&&this.separatorLimit.length>14&&String(e).length>14?String(e):Number(e).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace(`/${M.MINUS}/`,M.MINUS)}showMaskInInput(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}else if(this.showMaskTyped){if(e){if(this.maskExpression===M.IP)return this._checkForIp(e);if(this.maskExpression===M.CPF_CNPJ)return this._checkForCpfCnpj(e)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){let e=this._elementRef?.nativeElement;e&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(this.placeHolderCharacter,M.EMPTY_STRING).length&&(this.formElementProperty=["value",M.EMPTY_STRING],this.applyMask("",this.maskExpression))}set formElementProperty([e,i]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,e,i))}checkDropSpecialCharAmount(e){return e.split(M.EMPTY_STRING).filter(r=>this._findDropSpecialChar(r)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){if(e===M.HASH)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;let i=[];for(let r=0;r<e.length;r++){let o=e[r]??M.EMPTY_STRING;o&&o.match("\\d")&&i.push(o)}return i.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:(i.length>9&&i.length<=12,"")}_checkForCpfCnpj(e){let i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,r=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if(e===M.HASH)return i;let o=[];for(let a=0;a<e.length;a++){let s=e[a]??M.EMPTY_STRING;s&&s.match("\\d")&&o.push(s)}return o.length<=3?i.slice(o.length,i.length):o.length>3&&o.length<=6?i.slice(o.length+1,i.length):o.length>6&&o.length<=9?i.slice(o.length+2,i.length):o.length>9&&o.length<11?i.slice(o.length+3,i.length):o.length===11?"":o.length===12?e.length===17?r.slice(16,r.length):r.slice(15,r.length):o.length>12&&o.length<=14?r.slice(o.length+4,r.length):""}_getActiveElement(e=this.document){let i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}formControlResult(e){let i=this.outputTransformFn?this.outputTransformFn:r=>r;this.writingValue=!1,this.maskChanged=!1,Array.isArray(this.dropSpecialCharacters)?this.onChange(i(this._toNumber(this._checkSymbol
615s(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))))):this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===e?this.onChange(i(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(e)))))):this.onChange(i(this._toNumber(e)))}_toNumber(e){if(!this.isNumberValue||e===M.EMPTY_STRING||this.maskExpression.startsWith(M.SEPARATOR)&&(this.leadZero||!this.dropSpecialCharacters))return e;if(String(e).length>14&&this.maskExpression.startsWith(M.SEPARATOR))return String(e);let i=Number(e);if(this.maskExpression.startsWith(M.SEPARATOR)&&Number.isNaN(i)){let r=String(e).replace(",",".");return Number(r)}return Number.isNaN(i)?e:i}_removeMask(e,i){return this.maskExpression.startsWith(M.PERCENT)&&e.includes(M.DOT)?e:e&&e.replace(this._regExpForRemove(i),M.EMPTY_STRING)}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,M.EMPTY_STRING):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,M.EMPTY_STRING):e}_retrieveSeparatorValue(e){let i=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(r=>this.dropSpecialCharacters.includes(r)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&e.includes(M.WHITE_SPACE)&&this.maskExpression.includes(M.SYMBOL_STAR)&&(i=i.filter(r=>r!==M.WHITE_SPACE)),this._removeMask(e,i)}_regExpForRemove(e){return new RegExp(e.map(i=>`\\${i}`).join("|"),"gi")}_replaceDecimalMarkerToDot(e){let i=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return e.replace(this._regExpForRemove(i),M.DOT)}_checkSymbols(e){let i=e;if(i===M.EMPTY_STRING)return i;this.maskExpression.startsWith(M.PERCENT)&&this.decimalMarker===M.COMMA&&(i=i.replace(M.COMMA,M.DOT));let r=this._retrieveSeparatorPrecision(this.maskExpression),o=this.specialCharacters.length===0?this._retrieveSeparatorValue(i):this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(i));return this.isNumberValue&&r?i===this.decimalMarker?null:o.length>14?String(o):this._checkPrecision(this.maskExpression,o):o}_checkPatternForSpace(){for(let e in this.patterns)if(this.patterns[e]&&this.patterns[e]?.hasOwnProperty("pattern")){let i=this.patterns[e]?.pattern.toString(),r=this.patterns[e]?.pattern;if(i?.includes(M.WHITE_SPACE)&&r?.test(this.maskExpression))return!0}return!1}_retrieveSeparatorPrecision(e){let i=e.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(e,i){let r=this.getPrecision(e),o=i;return e.indexOf("2")>0||this.leadZero&&Number(r)>0?(this.decimalMarker===M.COMMA&&this.leadZero&&(o=o.replace(",",".")),this.leadZero?Number(o).toFixed(Number(r)):Number(o).toFixed(2)):this.numberToString(o)}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split(M.EMPTY_STRING).reduce((i,r,o)=>{if(this._start=r===M.CURLY_BRACKETS_LEFT?o:this._start,r!==M.CURLY_BRACKETS_RIGHT)return this._findSpecialChar(r)?i+r:i;this._end=o;let a=Number(e.slice(this._start+1,this._end)),s=new Array(a+1).join(e[this._start-1]);if(e.slice(0,this._start).length>1&&e.includes(M.LETTER_S)){let l=e.slice(0,this._start-1);return l.includes(M.CURLY_BRACKETS_LEFT)?i+s:l+i+s}else return i+s},"")||e}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})();var nH=(()=>{class t{mask=we("");specialCharacters=we([]);patterns=we({});prefix=we("");suffix=we("");thousandSeparator=we(" ");decimalMarker=we(".");dropSpecialCharacters=we(null);hiddenInput=we(null);showMaskTyped=we(null);placeHolderCharacter=we(null);shownMaskExpression=we(null);clearIfNotMatch=we(null);validation=we(null);separatorLimit=we("");allowNegativeNumbers=we(null);leadZeroDateTime=we(null);leadZero=we(null);triggerOnMaskChange=we(null);apm=we(null);inputTransformFn=we(null);outputTransformFn=we(null);keepCharacterPositions=we(null);instantPrefix=we(null);maskFilled=qd();_maskValue=ee("");_inputValue=ee("");_position=ee(null);_code=ee("");_maskExpressionArray=ee([]);_justPasted=ee(!1);
615_isFocused=ee(!1);_isComposing=ee(!1);_maskService=d(iH,{self:!0});document=d(Se);_config=d(ID);onChange=e=>{};onTouch=()=>{};ngOnChanges(e){let{mask:i,specialCharacters:r,patterns:o,prefix:a,suffix:s,thousandSeparator:l,decimalMarker:u,dropSpecialCharacters:g,hiddenInput:v,showMaskTyped:w,placeHolderCharacter:C,shownMaskExpression:S,clearIfNotMatch:D,validation:O,separatorLimit:V,allowNegativeNumbers:Q,leadZeroDateTime:ie,leadZero:U,triggerOnMaskChange:Me,apm:Oe,inputTransformFn:ae,outputTransformFn:oe,keepCharacterPositions:dt,instantPrefix:ut}=e;if(i&&(i.currentValue!==i.previousValue&&!i.firstChange&&(this._maskService.maskChanged=!0),i.currentValue&&i.currentValue.split(M.OR).length>1?(this._maskExpressionArray.set(i.currentValue.split(M.OR).sort((Ze,lt)=>Ze.length-lt.length)),this._setMask()):(this._maskExpressionArray.set([]),this._maskValue.set(i.currentValue||M.EMPTY_STRING),this._maskService.maskExpression=this._maskValue())),r){if(!r.currentValue||!Array.isArray(r.currentValue))return;this._maskService.specialCharacters=r.currentValue||[]}if(Q&&(this._maskService.allowNegativeNumbers=Q.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(Ze=>Ze!==M.MINUS))),o&&o.currentValue&&(this._maskService.patterns=o.currentValue),Oe&&Oe.currentValue&&(this._maskService.apm=Oe.currentValue),ut&&(this._maskService.instantPrefix=ut.currentValue),a&&(this._maskService.prefix=a.currentValue),s&&(this._maskService.suffix=s.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue,l.previousValue&&l.currentValue)){let Ze=this._maskService.decimalMarker;l.currentValue===this._maskService.decimalMarker&&(this._maskService.decimalMarker=l.currentValue===M.COMMA?M.DOT:M.COMMA),this._maskService.dropSpecialCharacters===!0&&(this._maskService.specialCharacters=this._config.specialCharacters),typeof Ze=="string"&&typeof this._maskService.decimalMarker=="string"&&(this._inputValue.set(this._inputValue().split(l.previousValue).join("").replace(Ze,this._maskService.decimalMarker)),this._maskService.actualValue=this._inputValue()),this._maskService.writingValue=!0}u&&(this._maskService.decimalMarker=u.currentValue),g&&(this._maskService.dropSpecialCharacters=g.currentValue),v&&(this._maskService.hiddenInput=v.currentValue,v.previousValue===!0&&v.currentValue===!1&&this._inputValue.set(this._maskService.actualValue)),w&&(this._maskService.showMaskTyped=w.currentValue,w.previousValue===!1&&w.currentValue===!0&&this._isFocused()&&requestAnimationFrame(()=>{this._maskService._elementRef?.nativeElement.click()})),C&&(this._maskService.placeHolderCharacter=C.currentValue),S&&(this._maskService.shownMaskExpression=S.currentValue),D&&(this._maskService.clearIfNotMatch=D.currentValue),O&&(this._maskService.validation=O.currentValue),V&&(this._maskService.separatorLimit=V.currentValue),ie&&(this._maskService.leadZeroDateTime=ie.currentValue),U&&(this._maskService.leadZero=U.currentValue),Me&&(this._maskService.triggerOnMaskChange=Me.currentValue),ae&&(this._maskService.inputTransformFn=ae.currentValue),oe&&(this._maskService.outputTransformFn=oe.currentValue),dt&&(this._maskService.keepCharacterPositions=dt.currentValue),this._applyMask()}validate({value:e}){let i=typeof e=="number"?String(e):e,r=this._maskValue();if(!this._maskService.validation||!r)return null;if(this._maskService.ipError)return this._createValidationError(i);if(this._maskService.cpfCnpjError)return this._createValidationError(i);if(r.startsWith(M.SEPARATOR)||Wre.includes(r)||this._maskService.clearIfNotMatch)return null;if($re.includes(r))return this._validateTime(i);if(r===M.EMAIL_MASK)return!/^[^@]+@[^@]+\.[^@]+$/.test(i)&&i?this._createValidationError(i):null;if(i&&i.length>=1){let o=0;if(r.includes(M.CURLY_BRACKETS_LEFT)&&r.includes(M.CURLY_BRACKETS_RIGHT))return r.slice(r.indexOf(M.CURLY_BRACKETS_LEFT)+1,r.indexOf(M.CURLY_BRACKETS_RIGHT))===String(i.length)?null:this._createValidationError(i);if(r.startsWith(M.PERCENT))return null;for(let a in this._maskService.patterns)if(this._maskService.patterns[a]?.optional){if(r.indexOf(a)!==r.lastIndexOf(a)){let s=r.split(M.EMPTY_STRING).filter(l=>l===a).join(M.EMPTY_STRING);o+=s.length}else r.indexOf(a)!==-1&&o++;if(r.indexOf(a)!==-1&&i.length>=r.indexOf(a)||o===r.length)return null}if(r.indexOf(M.SYMBOL_STAR)>1&&i.length<r.indexOf(M.SYMBOL_STAR)||r.indexOf(M.SYMBOL_QUESTION)>1&&i.length<r.indexOf(M.SYMBOL_QUESTION))return this._createValidationError(i);if(r.indexOf(M.SYMBOL_STAR)===-1||r.indexOf(M.SYMBOL_QUESTION)===-1){let a=r.split("*"),s=this._maskService.dropSpecialCharacters?r.length-this._maskService.checkDropSpecialCharAmount(r)-o:this.prefix()?r.length+this.prefix().length-o:r.length-o;if(a.length===1&&i.length<s)return this._createValidationError(i);if(a.length>1){let l=a[a.length-1];if(l&&this._maskService.specialCharacters.includes(l[0])&&String(i).includes(l[0]??"")&&!this.dropSpecialCharacters()){let u=e.split(l[0]);return u[u.length-1].length===l.length-1?null:this._createValidationError(i)}else return(l&&!this._maskService.specialCharacters.includes(l[0])||!l||this._maskService.dropSpecialCharacters)&&i.length>=s-1?null:this._createValidationError(i)}}if(r.indexOf(M.SYMBOL_STAR)===1||r.indexOf(M.SYMBOL_QUESTION)===1)return null}return e&&this.maskFilled.emit(),null}onPaste(){this._justPasted.set(!0)}onFocus(){this._isFocused.set(!0)}onModelChange(e){(e===M.EMPTY_STRING||e===null||typeof e>"u")&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(M.EMPTY_STRING))}onInput(e){if(this._isComposing())return;let i=e.target,r=this._maskService.inputTransformFn?this._maskService.inputTransformFn(i.value):i.value;if(i.type!=="number")if(typeof r=="string"||typeof r=="number"){if(i.value=r.toString(),this._inputValue.set(i.value),this._setMask(),!this._maskValue()){this.onChange(i.value);return}
615let o=i.selectionStart===1?i.selectionStart+this._maskService.prefix.length:i.selectionStart;if(this.showMaskTyped()&&this.keepCharacterPositions()&&this._maskService.placeHolderCharacter.length===1){let u=this.suffix(),g=this.prefix(),v=i.value.slice(o-1,o),w=g.length,C=this._maskService._checkSymbolMask(v,this._maskService.maskExpression[o-1-w]??M.EMPTY_STRING),S=this._maskService._checkSymbolMask(v,this._maskService.maskExpression[o+1-w]??M.EMPTY_STRING),D=this._maskService.selStart===this._maskService.selEnd,O=Number(this._maskService.selStart)-w,V=Number(this._maskService.selEnd)-w,Q=this._code()===M.BACKSPACE||this._code()===M.DELETE;if(Q){if(!D)this._maskService.selStart===w?this._maskService.actualValue=`${g}${this._maskService.maskIsShown.slice(0,V)}${this._inputValue().split(g).join("")}`:this._maskService.selStart===this._maskService.maskIsShown.length+w?this._maskService.actualValue=`${this._inputValue()}${this._maskService.maskIsShown.slice(O,V)}`:this._maskService.actualValue=`${g}${this._inputValue().split(g).join("").slice(0,O)}${this._maskService.maskIsShown.slice(O,V)}${this._maskService.actualValue.slice(V+w,this._maskService.maskIsShown.length+w)}${u}`;else if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(o-w,o+1-w))&&D)if(O===1&&g)this._maskService.actualValue=`${g}${this._maskService.placeHolderCharacter}${i.value.split(g).join("").split(u).join("")}${u}`,o=o-1;else{let ie=i.value.substring(0,o),U=i.value.substring(o);this._maskService.actualValue=`${ie}${this._maskService.placeHolderCharacter}${U}`}o=this._code()===M.DELETE?o+1:o}Q||(!C&&!S&&D?o=Number(i.selectionStart)-1:this._maskService.specialCharacters.includes(i.value.slice(o,o+1))&&S&&!this._maskService.specialCharacters.includes(i.value.slice(o+1,o+2))?(this._maskService.actualValue=`${i.value.slice(0,o-1)}${i.value.slice(o,o+1)}${v}${i.value.slice(o+2)}`,o=o+1):C?i.value.length===1&&o===1?this._maskService.actualValue=`${g}${v}${this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)}${u}`:this._maskService.actualValue=`${i.value.slice(0,o-1)}${v}${i.value.slice(o+1).split(u).join("")}${u}`:g&&i.value.length===1&&o-w===1&&this._maskService._checkSymbolMask(i.value,this._maskService.maskExpression[o-1-w]??M.EMPTY_STRING)&&(this._maskService.actualValue=`${g}${i.value}${this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)}${u}`))}let a=0,s=!1;if(this._code()===M.DELETE&&M.SEPARATOR&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue().length>=this._maskService.maskExpression.length-1&&this._code()!==M.BACKSPACE&&this._maskService.maskExpression===M.DAYS_MONTHS_YEARS&&o<10){let u=this._inputValue().slice(o-1,o);i.value=this._inputValue().slice(0,o-1)+u+this._inputValue().slice(o+1)}if(this._maskService.maskExpression===M.DAYS_MONTHS_YEARS&&this.leadZeroDateTime()&&(o<3&&Number(i.value)>31&&Number(i.value)<40||o===5&&Number(i.value.slice(3,5))>12)&&(o=o+2),this._maskService.maskExpression===M.HOURS_MINUTES_SECONDS&&this.apm()&&(this._justPasted()&&i.value.slice(0,2)===M.DOUBLE_ZERO&&(i.value=i.value.slice(1,2)+i.value.slice(2,i.value.length)),i.value=i.value===M.DOUBLE_ZERO?M.NUMBER_ZERO:i.value),this._maskService.applyValueChanges(o,this._justPasted(),this._code()===M.BACKSPACE||this._code()===M.DELETE,(u,g)=>{this._justPasted.set(!1),a=u,s=g}),this._getActiveElement()!==i)return;if(this._maskService.plusOnePosition&&(o=o+1,this._maskService.plusOnePosition=!1),this._maskExpressionArray().length)if(this._code()===M.BACKSPACE){let u=this.specialCharacters().includes(this._maskService.actualValue.slice(o-1,o)),g=this._maskService.removeMask(this._inputValue())?.length===this._maskService.removeMask(this._maskService.maskExpression)?.length,v=this.specialCharacters().includes(this._maskService.actualValue.slice(o,o+1));g&&!v?o=i.selectionStart+1:o=u?o-1:o}else o=i.selectionStart===1?i.selectionStart+this._maskService.prefix.length:i.selectionStart;this._position.set(this._position()===1&&this._inputValue().length===1?null:this._position());let l=this._position()?this._inputValue().length+o+a:o+(this._code()===M.BACKSPACE&&!s?0:a);l>this._getActualInputLength()&&(l=i.value===this._maskService.decimalMarker&&i.value.length===1?this._getActualInputLength()+1:this._getActualInputLength()),l<0&&(l=0),i.setSelectionRange(l,l),this._position.set(null)}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof r);else{if(!this._maskValue()){this.onChange(i.value);return}this._maskService.applyValueChanges(i.value.length,this._justPasted(),this._code()===M.BACKSPACE||this._code()===M.DELETE)}}onCompositionStart(){this._isComposing.set(!0)}onCompositionEnd(e){this._isComposing.set(!1),this._justPasted.set(!0),this.onInput(e)}onBlur(e){if(this._maskValue()){let i=e.target;if(this._maskService.leadZero&&i.value.length>0&&typeof this._maskService.decimalMarker=="string"){let r=this._maskService.maskExpression,o=this._maskService.decimalMarker,a=this._maskService.suffix,s=Number(this._maskService.maskExpression.slice(r.length-1,r.length));if(s>0){i.value=a?i.value.split(a).join(""):i.value;let l=i.value.split(o)[1];i.value=i.value.includes(o)?i.value+M.NUMBER_ZERO.repeat(s-l.length)+a:i.value+o+M.NUMBER_ZERO.repeat(s)+a,this._maskService.actualValue=i.value}}this._maskService.clearIfNotMatchFn()}this._isFocused.set(!1),this.onTouch()}onClick(e){if(!this._maskValue())return;let i=e.target,r=0,o=0;i!==null&&i.selectionStart!==null&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&e.keyCode!==38&&this._maskService.showMaskTyped&&!this.keepCharacterPositions()&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),i.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===i.value?(i.focus(),i.setSelectionRange(r,o)):i.selectionStart>this._maskService.actualValue.length&&i.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));let a=i&&(i.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:i.value);if(i&&i.value!==a&&(i.value=a),i&&i.type!=="number"&&(i.selectionStart||i.selectionEnd)<=this._maskService.prefix.length){let s=this._maskService.maskExpression.match(new RegExp(`^[${this._maskService.specialCharacters.map(l=>`\\${l}`).join("")}]+`))?.[0].length||0;i.selectionStart=this._maskService.prefix.length+s;return}i&&i.selectionEnd>this._getActualInputLength()&&(i.selectionEnd=this._getActualInputLength())}onKeyDown(e){if(!this._maskValue())return;if(this._isComposing()){e.key==="Enter"&&this.onCompositionEnd(e);return}this._code.set(e.code?e.code:e.key);let i=e.target;if(this._inputValue.set(i.value),this._setMask(),i.type!=="number"){if(e.key===M.ARROW_UP&&e.preventDefault(),e.key===M.ARROW_LEFT||e.key===M.BACKSPACE||e.key===M.DELETE){if(e.key===M.BACKSPACE&&i.value.length===0&&(i.selectionStart=i.selectionEnd),e.key===M.BACKSPACE&&i.selectionStart!==0){let o=this.prefix().length,a=this.specialCharacters().length?this.specialCharacters():this._config.specialCharacters;if(o>1&&i.selectionStart<=o)i.setSelectionRange(o,i.selectionEnd);else if(this._inputValue().length!==i.selectionStart&&i.selectionStart!==1)for(;a.includes((this._inputValue()[i.selectionStart-1]??M.EMPTY_STRING).toString())&&
615(o>=1&&i.selectionStart>o||o===0);)i.setSelectionRange(i.selectionStart-1,i.selectionEnd)}this.checkSelectionOnDeletion(i),this._maskService.prefix.length&&i.selectionStart<=this._maskService.prefix.length&&i.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();let r=i.selectionStart;e.key===M.BACKSPACE&&!i.readOnly&&r===0&&i.selectionEnd===i.value.length&&i.value.length!==0&&(this._position.set(this._maskService.prefix?this._maskService.prefix.length:0),this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position()))}this.suffix()&&this.suffix().length>1&&this._inputValue().length-this.suffix().length<i.selectionStart?i.setSelectionRange(this._inputValue().length-this.suffix().length,this._inputValue().length):(e.code==="KeyA"&&e.ctrlKey||e.code==="KeyA"&&e.metaKey)&&(i.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=i.selectionStart,this._maskService.selEnd=i.selectionEnd}}writeValue(e){return li(this,null,function*(){let i=e,r=this._maskService.inputTransformFn;if(typeof i=="object"&&i!==null&&"value"in i&&("disable"in i&&this.setDisabledState(!!i.disable),i=i.value),i!==null&&(i=r?r(i):i),typeof i=="string"||typeof i=="number"||i===null||typeof i>"u"){(i===null||typeof i>"u"||i==="")&&(this._maskService.currentValue="",this._maskService.previousValue="");let o=i;if(typeof o=="number"||this._maskValue().startsWith(M.SEPARATOR)){o=String(o);let a=this._maskService.currentLocaleDecimalMarker();Array.isArray(this._maskService.decimalMarker)||(o=this._maskService.decimalMarker!==a?o.replace(a,this._maskService.decimalMarker):o),this._maskService.leadZero&&o&&this.mask()&&this.dropSpecialCharacters()!==!1&&(o=this._maskService._checkPrecision(this._maskService.maskExpression,o)),(this._maskService.decimalMarker===M.COMMA||Array.isArray(this._maskService.decimalMarker)&&this._maskService.thousandSeparator===M.DOT)&&(o=o.toString().replace(M.DOT,M.COMMA)),this.mask()?.startsWith(M.SEPARATOR)&&this.leadZero()&&requestAnimationFrame(()=>{this._maskService.applyMask(o?.toString()??"",this._maskService.maskExpression)}),this._maskService.isNumberValue=!0}(typeof o!="string"||i===null||typeof i>"u")&&(o=""),this._inputValue.set(o),this._setMask(),o&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(o,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",o],this._inputValue.set(o)}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof i)})}registerOnChange(e){this._maskService.onChange=this.onChange=e}registerOnTouched(e){this.onTouch=e}_getActiveElement(e=this.document){let i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}checkSelectionOnDeletion(e){let i=this.prefix().length,r=this.suffix().length,o=this._inputValue().length;e.selectionStart=Math.min(Math.max(i,e.selectionStart),o-r),e.selectionEnd=Math.min(Math.max(i,e.selectionEnd),o-r)}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue()||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue(),this._maskService.maskExpression)]}_validateTime(e){let i=this._maskValue().split(M.EMPTY_STRING).filter(r=>r!==":").length;return e&&(+(e[e.length-1]??-1)==0&&e.length<i||e.length<=i-2)?this._createValidationError(e):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(e){return{mask:{requiredMask:this._maskValue(),actualValue:e}}}_setMask(){this._maskExpressionArray().some(e=>{if(e.split(M.EMPTY_STRING).some(r=>this._maskService.specialCharacters.includes(r))&&this._inputValue()&&this._areAllCharactersInEachStringSame(this._maskExpressionArray())||e.includes(M.CURLY_BRACKETS_LEFT)){let r=this._maskService.removeMask(this._inputValue())?.length<=this._maskService.removeMask(e)?.length;if(r){let o=e.includes(M.CURLY_BRACKETS_LEFT)?this._maskService._repeatPatternSymbols(e):e;return this._maskValue.set(o),this._maskService.maskExpression=o,r}else{let o=this._maskExpressionArray()[this._maskExpressionArray().length-1]??M.EMPTY_STRING,a=o.includes(M.CURLY_BRACKETS_LEFT)?this._maskService._repeatPatternSymbols(o):o;
615this._maskValue.set(a),this._maskService.maskExpression=a}}else{let r=this._maskService.removeMask(e),o=this._maskService.removeMask(this._inputValue())?.split(M.EMPTY_STRING).every((a,s)=>{let l=r.charAt(s);return this._maskService._checkSymbolMask(a,l)});if(o||this._justPasted())return this._maskValue.set(e),this._maskService.maskExpression=e,o}})}_areAllCharactersInEachStringSame(e){let i=this._maskService.specialCharacters;function r(a){let s=new RegExp(`[${i.map(l=>`\\${l}`).join("")}]`,"g");return a.replace(s,"")}return e.map(r).every(a=>new Set(a).size===1)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(i,r){i&1&&T("paste",function(){return r.onPaste()})("focus",function(a){return r.onFocus(a)})("ngModelChange",function(a){return r.onModelChange(a)})("input",function(a){return r.onInput(a)})("compositionstart",function(a){return r.onCompositionStart(a)})("compositionend",function(a){return r.onCompositionEnd(a)})("blur",function(a){return r.onBlur(a)})("click",function(a){return r.onClick(a)})("keydown",function(a){return r.onKeyDown(a)})},inputs:{mask:[1,"mask"],specialCharacters:[1,"specialCharacters"],patterns:[1,"patterns"],prefix:[1,"prefix"],suffix:[1,"suffix"],thousandSeparator:[1,"thousandSeparator"],decimalMarker:[1,"decimalMarker"],dropSpecialCharacters:[1,"dropSpecialCharacters"],hiddenInput:[1,"hiddenInput"],showMaskTyped:[1,"showMaskTyped"],placeHolderCharacter:[1,"placeHolderCharacter"],shownMaskExpression:[1,"shownMaskExpression"],clearIfNotMatch:[1,"clearIfNotMatch"],validation:[1,"validation"],separatorLimit:[1,"separatorLimit"],allowNegativeNumbers:[1,"allowNegativeNumbers"],leadZeroDateTime:[1,"leadZeroDateTime"],leadZero:[1,"leadZero"],triggerOnMaskChange:[1,"triggerOnMaskChange"],apm:[1,"apm"],inputTransformFn:[1,"inputTransformFn"],outputTransformFn:[1,"outputTransformFn"],keepCharacterPositions:[1,"keepCharacterPositions"],instantPrefix:[1,"instantPrefix"]},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],features:[_e([{provide:Ar,useExisting:t,multi:!0},{provide:In,useExisting:t,multi:!0},iH]),Xe]})}return t})();var bb={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)"};var Yre=["panel"],Kre=["*"];function Qre(t,n){if(t&1&&(p(0,"div",1,0),Ve(2),m()),t&2){let e=n.id,i=h();Mi(i._classList),fe("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),f("id",i.id),ce("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var AD=class{source;option;constructor(n,e){this.source=n,this.option=e}},rH=new H("mat-autocomplete-default-options",{providedIn:"root",factory:Zre});function Zre(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var yb=(()=>{class t{_changeDetectorRef=d(Je);_elementRef=d(ue);_defaults=d(rH);_animationsDisabled=d(zt,{optional:!0})==="NoopAnimations";_activeOptionChanges=Ie.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new z;opened=new z;closed=new z;optionActivated=new z;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=d(Mt).getId("mat-autocomplete-");inertGroups;constructor(){let e=d(wt);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Rc(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new AD(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(Kt(o,Ri,5),Kt(o,Ru,5)),i&2){let a;se(a=le())&&(r.options=a),se(a=le())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(De(ii,7),De(Yre,5)),i&2){let o;se(o=le())&&(r.template=o.first),se(o=le())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",pe],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",pe],requireSelection:[2,"requireSelection","requireSelection",pe],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",pe],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",pe]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[_e([{provide:Nu,useExisting:t}])],ngContentSelectors:Kre,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(_t(),x(0,Qre,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} 616`],encapsulation:2,changeDetection:0})}return t})();var Xre={provide:Ar,useExisting:Si(()=>Wf),multi:!0};var Jre=new H("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(Oi);return()=>t.scrollStrategies.reposition()}});var Wf=(()=>{class t{_environmentInjector=d(hi);_element=d(ue);_overlay=d(Oi);
vendor: 9,047 bytes, line 616
616_viewContainerRef=d(bi);_zone=d(de);_changeDetectorRef=d(Je);_dir=d(ki,{optional:!0});_formField=d(Ea,{optional:!0,host:!0});_viewportRuler=d(Ml);_scrollStrategy=d(Jre);_renderer=d(It);_defaults=d(rH,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new G;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Ie.EMPTY;_breakpointObserver=d(Ca);_handsetLandscapeSubscription=Ie.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new G;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&wl(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return ji(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ue(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ue(()=>this._overlayAttached)):j()).pipe(F(e=>e instanceof Pu?e:null))}optionSelections=Oo(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(Yt(e),Qt(()=>ji(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(Qt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new je(e=>{let i=o=>{let a=Zn(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e.keyCode,r=oi(e);if(i===27&&!r&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&i===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){let o=this.autocomplete._keyManager.activeItem,a=i===38||i===40;i===9||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(a||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return qr()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new je(r=>{Ti(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(jt(()=>this._positionStrategy.reapplyLastPosition()),Ap(0))??j();return ji(e,i).pipe(Qt(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),Et(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Iu(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new Xn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(bb.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!oi(e)||e.keyCode===38&&oi(e,"altKey"))&&(this._pe
616ndingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new yo({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_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(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r<e.options.length;r++)if(!e.options.get(r).disabled){i=r;break}e._keyManager.setActiveItem(i)}else e._keyManager.setActiveItem(-1)}_canOpen(){let e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this.autocompleteDisabled}_scrollToOption(e){let i=this.autocomplete,r=of(e,i.options,i.optionGroups);if(e===0&&r===1)i._setScrollTop(0);else if(i.panel){let o=i.options.toArray()[e];if(o){let a=o._getHostElement(),s=af(a.offsetTop,a.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(s)}}}_trackedModal=null;_applyModalPanelOwnership(){let e=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&wl(this._trackedModal,"aria-owns",i),Iu(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;wl(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&T("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&ce("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",pe]},exportAs:["matAutocompleteTrigger"],features:[_e([Xre]),Xe]})}return t})();var oH=(()=>{class t{constructor(){this.matDateFormat=d(Vo),this.ngControl=d(Ir,{optional:!0})}set datePickerFormat(e){let i=this.configDateParse??{dateInput:e},r=this.matDateFormat;if(typeof r?.updateDateFormat=="function"?r.updateDateFormat(i):r?.parse&&(r.parse=N(N({},r.parse),i)),this.ngControl){let o=this.ngControl.control?.value??this.ngControl.value;this.ngControl.valueAccessor?.writeValue(o)}else return}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=$({type:t,selectors:[["","datePickerFormat",""]],inputs:{configDateParse:"configDateParse",datePickerFormat:"datePickerFormat"}})}}return t})();var aH=(()=>{class t{setProductType(e){this.productType=e}setClientWithoutAddressAllowed(e){this.clientWithoutAddressAllowed=e}isRequired(e,i){let r=[rn.FIRST_NAME,rn.LAST_NAME,rn.EMAIL,rn.SALUTATION],o=[rn.FIRST_NAME,rn.SALUTATION,rn.LAST_NAME,rn.STREET,rn.HOUSE_NUMBER,rn.COUNTRY,rn.ZIPCODE,rn.CITY];return i&&i.birthdayRequired&&(o.push(rn.BIRTHDAY),r.push(rn.BIRTHDAY)),i&&i.phoneRequired&&(o.push(rn.PHONE),r.push(rn.PHONE_CODE)),(this.productType==="digital"&&this.clientWithoutAddressAllowed?r:o).includes(e)}reset(){this.productType&&this.setProductType(null),this.clientWithoutAddressAllowed&&this.setClientWithoutAddressAllowed(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Cb=class{constructor(){}setBirthdayRequired(n){this.birthdayRequired=n}setPhoneRequired(n){this.phoneRequired=n}setEmailRequired(n){this.emailRequired=n}},rn=function(t){return t.SALUTATION="salutation",t.FIRST_NAME="firstName",t.LAST_NAME="lastName",t.STREET="street",t.HOUSE_NUMBER="house
616Number",t.COUNTRY="country",t.ZIPCODE="zipcode",t.CITY="city",t.BIRTHDAY="birthday",t.EMAIL="email",t.PHONE="phone",t.PHONE_CODE="phoneCode",t}(rn||{});function eoe(t,n){if(t&1&&(p(0,"mat-option",12),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e," ")}}function toe(t,n){if(t&1&&(p(0,"mat-error",13),E(1),m()),t&2){let e=h(2);c(),R("",e.controlGroup.get("address.street").getError("message")," ")}}function ioe(t,n){if(t&1&&(p(0,"mat-hint",15),E(1),m()),t&2){h();let e=J(13);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function noe(t,n){if(t&1&&(p(0,"mat-error",13),E(1),m()),t&2){let e=h(2);c(),R("",e.controlGroup.get("address.houseNo").getError("message")," ")}}function roe(t,n){if(t&1){let e=B();ni(0,6),p(1,"div",7)(2,"mat-form-field",8),_(3,"mat-label",9),p(4,"input",10),T("focusin",function(){A(e);let r=h();return k(r.searchAddressEmit.emit())}),m(),p(5,"mat-autocomplete",11,0),W(7,eoe,2,2,"mat-option",12,X),m(),x(9,toe,2,1,"mat-error",13),m(),p(10,"mat-form-field",8),_(11,"mat-label",9),p(12,"input",14,1),T("keyup",function(){A(e);let r=h();return r.replaceInvalidCharactersFromHouseNo(),k(r.searchAddressEmit.emit())}),m(),x(14,ioe,2,2,"mat-hint",15)(15,noe,2,1,"mat-error",13),m()(),Jt()}if(t&2){let e=J(6),i=J(13),r=h();c(3),f("innerHTML",r.translationService.getTranslation("address_street"),y),c(),f("required",r.isRequired(r.AddressFormularField.STREET))("matAutocomplete",e),c(3),q(r.streetNames),c(2),b(r.controlGroup.get("address.street").hasError("message")?9:-1),c(2),f("innerHTML",r.translationService.getTranslation("address_houseno"),y),c(),f("required",r.isRequired(r.AddressFormularField.HOUSE_NUMBER)),c(2),b(i===(r.document==null?null:r.document.activeElement)&&i.value.length>=1?14:-1),c(),b(r.controlGroup.get("address.houseNo").hasError("message")?15:-1)}}function ooe(t,n){if(t&1&&(p(0,"mat-option",12),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e," ")}}function aoe(t,n){if(t&1&&(p(0,"mat-error",13),E(1),m()),t&2){let e=h(2);c(),R("",e.controlGroup.get("address.street").getError("message")," ")}}function soe(t,n){if(t&1&&(p(0,"mat-hint",15),E(1),m()),t&2){h();let e=J(12);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function loe(t,n){if(t&1&&(p(0,"mat-error",13),E(1),m()),t&2){let e=h(2);c(),R("",e.controlGroup.get("address.houseNo").getError("message")," ")}}function coe(t,n){if(t&1&&(p(0,"mat-hint",15),E(1),m()),t&2){h();let e=J(18);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function doe(t,n){if(t&1&&(p(0,"mat-error",13),E(1),m()),t&2){let e=h(2);c(),R("",e.controlGroup.get("address.stiege").getError("message")," ")}}function uoe(t,n){if(t&1&&(p(0,"mat-hint",15),E(1),m()),t&2){h();let e=J(24);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function poe(t,n){if(t&1&&(p(0,"mat-error",13),E(1),m()),t&2){let e=h(2);c(),R("",e.controlGroup.get("stock").getError("message")," ")}}function moe(t,n){if(t&1&&(p(0,"mat-hint",15),E(1),m()),t&2){h();let e=J(30);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function foe(t,n){if(t&1&&(p(0,"mat-error",13),E(1),m()),t&2){let e=h(2);c(),R("",e.controlGroup.get("address.tuer").getError("message")," ")}}function hoe(t,n){if(t&1){let e=B();ni(0,6),p(1,"mat-form-field",16),_(2,"mat-label",9),p(3,"input",10),T("focusin",function(){A(e);let r=h();return k(r.searchAddressEmit.emit())}),m(),p(4,"mat-autocomplete",11,0),W(6,ooe,2,2,"mat-option",12,X),m(),x(8,aoe,2,1,"mat-error",13),m(),p(9,"mat-form-field",17),_(10,"mat-label",9),p(11,"input",18,1),T("keyup",function(){A(e);let r=h();return k(r.replaceInvalidCharactersFromHouseNo())}),m(),x(13,soe,2,2,"mat-hint",15)(14,loe,2,1,"mat-error",13),m(),p(15,"mat-form-field",17),_(16,"mat-label",9)(17,"input",19,2),x(19,coe,2,2,"mat-hint",15)(20,doe,2,1,"mat-error",13),m(),p(21,"mat-form-field",17),_(22,"mat-label",9)(23,"input",20,3),x(25,uoe,2,2,"mat-hint",15)(26,poe,2,1,"mat-error",13),m(),p(27,"mat-form-field",17),_(28,"mat-label",9)(29,"input",21,4),x(31,moe,2,2,"mat-hint",15)(32,foe,2,1,"mat-error",13),m(),Jt()}if(t&2){let e=J(5),i=J(12),r=J(18),o=J(24),a=J(30),s=h();c(2),f("innerHTML",s.translationService.getTranslation("address_street"),y),c(),f("required",s.isRequired(s.AddressFormularField.STREET))("matAutocomplete",e),c(3),q(s.streetNames),c(2),b(s.controlGroup.get("address.street").hasError("message")?8:-1),c(2),f("innerHTML",s.translationService.getTranslation("address_houseno"),y),c(),f("required",s.isRequired(s.AddressFormularField.HOUSE_NUMBER)),c(2),b(i===(s.document==null?null:s.document.activeElement)&&i.value.length>=1?13:-1),c(),b(s.controlGroup.get("address.houseNo").hasError("message")?14:-1),c(2),f("innerHTML",s.translationService.getTranslation("address_stiege"),y),c(3),b(r===(s.document==null?null:s.document.activeElement)&&r.value.length>=1?19:-1),c(),b(s.controlGroup.get("address.stiege").hasError("message")?20:-1),c(2),f("innerHTML",s.translationService.getTranslation("address_stock"),y),c(3),b(o===(s.document==null?null:s.document.activeElement)&&o.value.length>=1?25:-1),c(),b(s.controlGroup.get("address.stock").hasError("message")?26:-1),c(2),f("innerHTML",s.translationService.getTranslation("address_tuer"),y),c(3),b(a===(s.document==null?null:s.document.activeElement)&&a.value.length>=1?31:-1),c(),b(s.controlGroup.get("address.tuer").hasError("message")?32:-1)}}var sH=(()=>{class t{constructor(){this.translationService=d(Y),this.addressSearchService=d(ap),this.searchAddressEmit=new z,this.addressSearch=new $l
616(null,null,null,null,null,null),this.document=typeof document=="object"?document:null,this.AddressFormularField=rn}replaceInvalidCharactersFromHouseNo(){var e=this.controlGroup.get("address.houseNo").value.toUpperCase();e.length>10&&(e=e.slice(0,10)),this.controlGroup.get("address.houseNo").setValue(e.replace(/[^A-Za-z0-9\-\/]*/g,""),{emitEvent:!1})}isRequired(e){return this.addressFieldHandler.isRequired(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-hup-subscription-address-specifics"]],inputs:{controlGroup:"controlGroup",streetNames:"streetNames",isAustriaSelected:"isAustriaSelected",addressFieldHandler:"addressFieldHandler"},outputs:{searchAddressEmit:"searchAddressEmit"},decls:3,vars:3,consts:[["matStreetNames","matAutocomplete"],["houseNumber",""],["stiege",""],["stock",""],["door",""],[1,"hup-subscription-address-specifics",3,"formGroup"],["formGroupName","address",1,"hup-subscription-address-specifics__address"],[1,"row"],[1,"col-12","col-md-6","--ps-2","hup-subscription-address-specifics__field"],[1,"hup-subscription-address-specifics__label",3,"innerHTML"],["matInput","","formControlName","street","data-cy","input-street",1,"hup-subscription-address-specifics__input",3,"focusin","required","matAutocomplete"],[1,"hup-subscription-address-specifics__autocomplete"],[1,"hup-subscription-address-specifics__option",3,"value"],[1,"hup-subscription-address-specifics__error"],["maxlength","10","matInput","","formControlName","houseNo","data-cy","input-house-no",1,"hup-subscription-address-specifics__input",3,"keyup","required"],["align","end",1,"hup-subscription-address-specifics__hint"],[1,"col-12","col-md-6","ps-2","hup-subscription-address-specifics__field"],[1,"col-3","ps-2","hup-subscription-address-specifics__field"],["maxLength","10","matInput","","formControlName","houseNo","data-cy","input-house-no",1,"hup-subscription-address-specifics__input",3,"keyup","required"],["maxLength","2","matInput","","formControlName","stiege",1,"hup-subscription-address-specifics__input"],["maxLength","2","matInput","","formControlName","stock",1,"hup-subscription-address-specifics__input"],["maxLength","3","matInput","","formControlName","tuer",1,"hup-subscription-address-specifics__input"]],template:function(i,r){if(i&1&&(ni(0,5),x(1,roe,16,8,"ng-container",6)(2,hoe,33,17,"ng-container",6),Jt()),i&2){let o;f("formGroup",r.controlGroup),c(),b(((o=r.controlGroup.get("address.country"))==null||o.value==null?null:o.value.key)!=="A"&&((o=r.controlGroup.get("address.country"))==null?null:o.value)!=="A"?1:-1),c(),b(r.controlGroup.get("address.country").value==="A"||r.controlGroup.get("address.country").value.key==="A"?2:-1)}},dependencies:[Ot,Bt,At,Wt,ai,wa,bt,Ut,fr,Nt,ei,yb,Wf,Ri,Pt,Ht,qi],encapsulation:2})}}return t})();var dp=function(t){return t[t.PRIVATE=0]="PRIVATE",t[t.COMPANY=1]="COMPANY",t}(dp||{});var goe=["controlGroup",""];function _oe(t,n){if(t&1){let e=B();p(0,"div",14)(1,"mat-checkbox",17),T("change",function(r){A(e);let o=h();return k(o.resetFields(r))}),_(2,"div",18),m()()}if(t&2){let e=h();c(2),f("innerHTML",e.translationService.getTranslation(e.activateCheckboxText),y)}}function voe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(2);c(),R("",e.controlGroup.get("validDate").getError("message")," ")}}function boe(t,n){if(t&1){let e=B();p(0,"mat-form-field",19),T("click",function(){A(e);let r=J(5);return k(r.open())}),_(1,"mat-label",20)(2,"input",21)(3,"mat-datepicker-toggle",22)(4,"mat-datepicker",23,0),x(6,voe,2,1,"mat-error",24),m()}if(t&2){let e=J(5),i=h();c(),f("innerHTML",i.translationService.getTranslation("startdate"),y),c(),f("min",i.minDate)("matDatepicker",e),c(),f("for",e),c(),f("touchUi",i.isMobile),c(2),b(i.controlGroup.get("validDate").hasError("message")?6:-1)}}function yoe(t,n){if(t&1&&(p(0,"h3",25),E(1),m()),t&2){let e=h(2);c(),he(e.addressType)}}function Coe(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=h().$implicit;f("value",e),c(),R("",e.description," ")}}function Soe(t,n){if(t&1&&x(0,Coe,2,2,"mat-option",44),t&2){let e=n.$implicit;b(e.useInFE?0:-1)}}function xoe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("person.salutation").getError("message")," ")}}function woe(t,n){if(t&1&&(p(0,"mat-form-field",27),_(1,"mat-label",20),p(2,"mat-select",48),W(3,Soe,1,1,null,null,X),m(),x(5,xoe,2,1,"mat-error",24),m()),t&2){let e=h(3);c(),f("innerHTML",e.translationService.getTranslation("address_salutation"),y),c(),f("required",e.isRequired(e.AddressFormularField.SALUTATION))("compareWith",e.compareBaseData),c(),q(e.salutations),c(2),b(e.controlGroup.get("person.salutation").hasError("message")?5:-1)}}function Eoe(t,n){if(t&1&&(p(0,"mat-hint",31),E(1),m()),t&2){h();let e=J(6);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function Doe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("person.initials").getError("message")," ")}}function Toe(t,n){if(t&1&&(p(0,"mat-hint",31),E(1),m()),t&2){h();let e=J(12);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function Moe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("person.middlename").getError("message")," ")}}function Ioe(t,n){if(t&1&&(p(0,"mat-hint",31),E(1),m()),t&2){h();let e=J(18);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function Aoe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("person.lastName").getError("message")," ")}}function koe(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=n.$implicit;
616f("value",e),c(),R("",e.description," ")}}function Ooe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("address.country").getError("message")," ")}}function Poe(t,n){if(t&1&&(p(0,"mat-form-field",37),_(1,"mat-label",20),p(2,"mat-select",49),W(3,koe,2,2,"mat-option",44,X),m(),x(5,Ooe,2,1,"mat-error",24),m()),t&2){let e=h(3);c(),f("innerHTML",e.translationService.getTranslation("address_country"),y),c(),f("required",e.isRequired(e.AddressFormularField.COUNTRY)),c(),q(e.countries),c(2),b(e.controlGroup.get("address.country").hasError("message")?5:-1)}}function Noe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("address.zipcode").getError("message")," ")}}function Roe(t,n){if(t&1&&(p(0,"mat-hint",31),E(1),m()),t&2){h();let e=J(30);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function Foe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("address.houseNo").getError("message")," ")}}function Loe(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e," ")}}function Boe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("address.street").getError("message")," ")}}function Hoe(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e," ")}}function Voe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("address.city").getError("message")," ")}}function joe(t,n){if(t&1&&(p(0,"mat-hint",31),E(1),m()),t&2){h();let e=J(3);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function zoe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("address.extraLine").getError("message")," ")}}function Uoe(t,n){if(t&1&&(p(0,"mat-form-field",47),_(1,"mat-label",20)(2,"input",50,7),x(4,joe,2,2,"mat-hint",31)(5,zoe,2,1,"mat-error",24),m()),t&2){let e=J(3),i=h(3);c(),f("innerHTML",i.translationService.getTranslation("address_extraline1"),y),c(3),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?4:-1),c(),b(i.controlGroup.get("address.extraLine").hasError("message")?5:-1)}}function Goe(t,n){if(t&1){let e=B();ni(0,26),x(1,woe,6,4,"mat-form-field",27),p(2,"mat-form-field",28)(3,"mat-label",29),E(4),m(),_(5,"input",30,1),x(7,Eoe,2,2,"mat-hint",31)(8,Doe,2,1,"mat-error",24),m(),p(9,"mat-form-field",32),_(10,"mat-label",20)(11,"input",33,2),x(13,Toe,2,2,"mat-hint",31)(14,Moe,2,1,"mat-error",24),m(),p(15,"mat-form-field",34),_(16,"mat-label",20)(17,"input",35,3),x(19,Ioe,2,2,"mat-hint",31)(20,Aoe,2,1,"mat-error",24),m(),Jt(),ni(21,36),x(22,Poe,6,3,"mat-form-field",37),p(23,"mat-form-field",38),_(24,"mat-label",20),p(25,"input",39),T("keyup",function(){A(e);let r=h(2);return k(r.replaceInvalidCharactersFromZipcode())}),m(),x(26,Noe,2,1,"mat-error",24),m(),p(27,"mat-form-field",40),_(28,"mat-label",20)(29,"input",41,4),x(31,Roe,2,2,"mat-hint",31)(32,Foe,2,1,"mat-error",24),m(),p(33,"mat-form-field",42),_(34,"mat-label",20)(35,"input",43),p(36,"mat-autocomplete",null,5),W(38,Loe,2,2,"mat-option",44,X),m(),x(40,Boe,2,1,"mat-error",24),m(),p(41,"mat-form-field",45),_(42,"mat-label",20)(43,"input",46),p(44,"mat-autocomplete",null,6),W(46,Hoe,2,2,"mat-option",44,X),m(),x(48,Voe,2,1,"mat-error",24),m(),x(49,Uoe,6,3,"mat-form-field",47),Jt()}if(t&2){let e=J(6),i=J(12),r=J(18),o=J(30),a=J(37),s=J(45),l=h(2);c(),b(l.showSalutation?1:-1),c(3),R("",l.translationService.getTranslation("address_initials")," "),c(),f("dropSpecialCharacters",!1)("validation",!1),c(2),b(e===(l.document==null?null:l.document.activeElement)&&e.value.length>=1?7:-1),c(),b(l.controlGroup.get("person.initials").hasError("message")?8:-1),c(2),f("innerHTML",l.translationService.getTranslation("address_surName"),y),c(3),b(i===(l.document==null?null:l.document.activeElement)&&i.value.length>=1?13:-1),c(),b(l.controlGroup.get("person.middlename").hasError("message")?14:-1),c(2),f("innerHTML",l.translationService.getTranslation("address_lastname"),y),c(),f("required",l.isRequired(l.AddressFormularField.LAST_NAME)),c(2),b(r===(l.document==null?null:l.document.activeElement)&&r.value.length>=1?19:-1),c(),b(l.controlGroup.get("person.lastName").hasError("message")?20:-1),c(2),b(l.askForCountry?22:-1),c(2),f("innerHTML",l.translationService.getTranslation("address_postcode"),y),c(),f("required",l.isRequired(l.AddressFormularField.ZIPCODE)),c(),b(l.controlGroup.get("address.zipcode").hasError("message")?26:-1),c(2),f("innerHTML",l.translationService.getTranslation("address_houseno"),y),c(),f("required",l.isRequired(l.AddressFormularField.HOUSE_NUMBER)),c(2),b(o===(l.document==null?null:l.document.activeElement)&&o.value.length>=1?31:-1),c(),b(l.controlGroup.get("address.houseNo").hasError("message")?32:-1),c(2),f("innerHTML",l.translationService.getTranslation("address_street"),y),c(),f("required",l.isRequired(l.AddressFormularField.STREET))("matAutocomplete",a),c(3),q(l.streetNames),c(2),b(l.controlGroup.get("address.street").hasError("message")?40:-1),c(2),f("innerHTML",l.translationService.getTranslation("address_city"),y),c(),f("required",l.isRequired(l.AddressFormularField.CITY))("matAutocomplete",s),c(3),q(l.cities),c(2),b(l.controlGroup.get("address.city").hasError("message")?48:-1),c(),b(l.showAddressExt1?49:-1)}}function $oe(t,n){if(t&1&&(p(0,"mat-option",57),E(1),m()),t&2){let e=h().$implicit;
616f("value",e),c(),R("",e.description," ")}}function Woe(t,n){if(t&1&&x(0,$oe,2,2,"mat-option",57),t&2){let e=n.$implicit;b(e.useInFE?0:-1)}}function qoe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(5);c(),R("",e.controlGroup.get("person.salutation").getError("message")," ")}}function Yoe(t,n){if(t&1&&(p(0,"mat-form-field",51),_(1,"mat-label",20),p(2,"mat-select",56),W(3,Woe,1,1,null,null,X),m(),x(5,qoe,2,1,"mat-error",24),m()),t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("address_salutation"),y),c(),f("required",e.isRequired(e.AddressFormularField.SALUTATION))("compareWith",e.compareBaseData),c(),q(e.salutations),c(2),b(e.controlGroup.get("person.salutation").hasError("message")?5:-1)}}function Koe(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=h().$implicit;f("value",e),c(),R("",e.description," ")}}function Qoe(t,n){if(t&1&&x(0,Koe,2,2,"mat-option",44),t&2){let e=n.$implicit;b(e.useInFE?0:-1)}}function Zoe(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(5);c(),R("",e.controlGroup.get("person.title").getError("message")," ")}}function Xoe(t,n){if(t&1&&(p(0,"mat-form-field",52),_(1,"mat-label",20),p(2,"mat-select",58),_(3,"mat-option",59),W(4,Qoe,1,1,null,null,X),m(),x(6,Zoe,2,1,"mat-error",24),m()),t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("address_title"),y),c(),f("compareWith",e.compareBaseData),c(2),q(e.titles),c(2),b(e.controlGroup.get("person.title").hasError("message")?6:-1)}}function Joe(t,n){if(t&1&&(p(0,"mat-hint",31),E(1),m()),t&2){h();let e=J(3);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function eae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(5);c(),R("",e.controlGroup.get("person.firstName").getError("message")," ")}}function tae(t,n){if(t&1&&(p(0,"mat-form-field",53),_(1,"mat-label",20)(2,"input",60,8),x(4,Joe,2,2,"mat-hint",31)(5,eae,2,1,"mat-error",24),m()),t&2){let e=J(3),i=h(4);c(),f("innerHTML",i.translationService.getTranslation("address_firstname"),y),c(),f("required",i.isRequired(i.AddressFormularField.FIRST_NAME)),c(2),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?4:-1),c(),b(i.controlGroup.get("person.firstName").hasError("message")?5:-1)}}function iae(t,n){if(t&1&&(p(0,"mat-hint",31),E(1),m()),t&2){h();let e=J(7);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function nae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("person.lastName").getError("message")," ")}}function rae(t,n){if(t&1&&(ni(0,26),x(1,Yoe,6,4,"mat-form-field",51)(2,Xoe,7,3,"mat-form-field",52)(3,tae,6,4,"mat-form-field",53),p(4,"mat-form-field",54),_(5,"mat-label",20)(6,"input",55,3),x(8,iae,2,2,"mat-hint",31)(9,nae,2,1,"mat-error",24),m(),Jt()),t&2){let e=J(7),i=h(3);c(),b(i.showSalutation?1:-1),c(),b(i.showTitle?2:-1),c(),b(i.identification&&i.customerType==i.CustomerType.PRIVATE||!i.identification?3:-1),c(),f("ngClass",i.identification&&i.customerType==i.CustomerType.COMPANY?"col
616-12 hup-subscription-address__companyname":"col-12 col-md-6 hup-subscription-address__lastname"),c(),f("innerHTML",i.identification&&i.customerType==i.CustomerType.COMPANY?i.translationService.getTranslation("address_company_name"):i.translationService.getTranslation("address_lastname"),y),c(),f("required",i.isRequired(i.AddressFormularField.LAST_NAME)),c(2),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?8:-1),c(),b(i.controlGroup.get("person.lastName").hasError("message")?9:-1)}}function oae(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e," ")}}function aae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("address.zipcode").getError("message")," ")}}function sae(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e," ")}}function lae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("address.city").getError("message")," ")}}function cae(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R("",e.description," ")}}function dae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("address.country").getError("message")," ")}}function uae(t,n){if(t&1){let e=B();p(0,"app-hup-subscription-address-specifics",61),T("searchAddressEmit",function(){A(e);let r=h(3);return k(r.searchStreet())}),m(),p(1,"mat-form-field",38),_(2,"mat-label",20),p(3,"input",62),T("keyup",function(){A(e);let r=h(3);return k(r.replaceInvalidCharactersFromZipcode())})("focusin",function(){A(e);let r=h(3);return k(r.searchZipCode())}),m(),p(4,"mat-autocomplete",null,9),W(6,oae,2,2,"mat-option",44,X),m(),x(8,aae,2,1,"mat-error",24),m(),p(9,"mat-form-field",63),_(10,"mat-label",20),p(11,"input",64),T("focusin",function(){A(e);let r=h(3);return k(r.searchCity())}),m(),p(12,"mat-autocomplete",null,6),W(14,sae,2,2,"mat-option",44,X),m(),x(16,lae,2,1,"mat-error",24),m(),p(17,"mat-form-field",65),_(18,"mat-label",20),p(19,"mat-select",66),W(20,cae,2,2,"mat-option",44,X),m(),x(22,dae,2,1,"mat-error",24),m()}if(t&2){let e=J(5),i=J(13),r=h(3);f("controlGroup",r.controlGroup)("streetNames",r.streetNames)("addressFieldHandler",r.addressFieldHandler),c(2),f("innerHTML",r.translationService.getTranslation("address_postcode"),y),c(),f("required",r.isRequired(r.AddressFormularField.ZIPCODE))("matAutocomplete",e),c(3),q(r.zipcodes),c(2),b(r.controlGroup.get("address.zipcode").hasError("message")?8:-1),c(2),f("innerHTML",r.translationService.getTranslation("address_city"),y),c(),f("required",r.isRequired(r.AddressFormularField.CITY))("matAutocomplete",i),c(3),q(r.cities),c(2),b(r.controlGroup.get("address.city").hasError("message")?16:-1),c(2),f("innerHTML",r.translationService.getTranslation("address_country"),y),c(),f("required",r.isRequired(r.AddressFormularField.COUNTRY))("compareWith",r.compareBaseData),c(),q(r.countries),c(2),b(r.controlGroup.get("address.country").hasError("message")?22:-1)}}function pae(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e.description," ")}}function mae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("address.country").getError("message")," ")}}function fae(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e," ")}}function hae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("address.zipcode").getError("message")," ")}}function gae(t,n){if(t&1&&(p(0,"mat-option",44),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e," ")}}function _ae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("address.city").getError("message")," ")}}function vae(t,n){if(t&1){let e=B();ni(0,null,10),p(2,"mat-form-field",65),_(3,"mat-label",20),p(4,"mat-select",67),W(5,pae,2,2,"mat-option",44,X),m(),x(7,mae,2,1,"mat-error",24),m(),p(8,"mat-form-field",38),_(9,"mat-label",20),p(10,"input",62),T("keyup",function(){A(e);let r=h(3);return k(r.replaceInvalidCharactersFromZipcode())})("focusin",function(){A(e);let r=h(3);return k(r.searchZipCode())}),m(),p(11,"mat-autocomplete",null,9),W(13,fae,2,2,"mat-option",44,X),m(),x(15,hae,2,1,"mat-error",24),m(),p(16,"mat-form-field",63),_(17,"mat-label",20),p(18,"input",64),T("focusin",function(){A(e);let r=h(3);return k(r.searchCity())}),m(),p(19,"mat-autocomplete",null,6),W(21,gae,2,2,"mat-option",44,X),m(),x(23,_ae,2,1,"mat-error",24),m(),p(24,"app-hup-subscription-address-specifics",61),T("searchAddressEmit",function(){A(e);let r=h(3);return k(r.searchStreet())}),m(),Jt()}if(t&2){let e=J(12),i=J(20),r=h(3);c(3),f("innerHTML",r.translationService.getTranslation("address_country"),y),c(),f("required",r.isRequired(r.AddressFormularField.COUNTRY))("compareWith",r.compareBaseData),c(),q(r.countries),c(2),b(r.controlGroup.get("address.country").hasError("message")?7:-1),c(2),f("innerHTML",r.translationService.getTranslation("address_postcode"),y),c(),f("required",r.isRequired(r.AddressFormularField.ZIPCODE))("matAutocomplete",e),c(3),q(r.zipcodes),c(2),b(r.controlGroup.get("address.zipcode").hasError("message")?15:-1),c(2),f("innerHTML",r.translationService.getTranslation("address_city"),y),c(),f("required",r.isRequired(r.AddressFormularField.CITY))("matAutocomplete",i),c(3),q(r.cities),c(2),b(r.controlGroup.get("address.city").hasError("message")?23:-1),c(),f("controlGroup",r.controlGroup)("streetNames",r.streetNames)("addressFieldHandler",r.addressFieldHandler)}}function bae(t,n){if(t&1&&(p(0,"mat-hint",31),E(1),m()),t&2){h();let e=J(3);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function yae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(4);c(),R("",e.controlGroup.get("address.extraLine").getError("message")," ")}}function Cae(t,n){if(t&1&&(p(0,"mat-form-field",47),_(1,"mat-label",20)(2,"input",68,7),x(4,bae,2,2,"mat-hint",31)(5,yae,2,1,"mat-error",24),m()),t&2){let e=J(3),i=h(3);c(),f("innerHTML",i.translationService.getTranslation("address_extraline1"),y),c(3),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?4:-1),c(),b(i.controlGroup.get("address.extraLine").hasError("message")?5:-1)}}function Sae(t,n){if(t&1&&(x(0,rae,10,8,"ng-container",26),ni(1,36),x(2,uae,23,15)(3,vae,25,15,"ng-container")(4,Cae,6,3,"mat-form-field",47),Jt()),t&2){let e=h(2);b(e.askForPerson?0:-1),c(2),b(e.addressPartSequence=="0"?2:3),c(2),b(e.showAddressExt1?4:-1)}}function xae(t,n){if(t&1&&x(0,yoe,2,1,"h3",25)(1,Goe,50,30)(2,Sae,5,3),t&2){let e=h();b(e.addressType?0:-1),c(),b(e.defaultCountry==="NL"?1:2)}}function wae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("userData").getError("message")," ")}}function Eae(t,n){if(t&1&&_(0,"mat-error",74),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("subscription.error.minimal-user-age").replace("%s",e.minimalAllowedUserAge.toString()),y)}}function Dae(t,n){if(t&1&&(p(0,"mat-form-field",69),_(1,"mat-label",20)(2,"input",72)(3,"mat-datepicker-toggle",22)(4,"mat-datepicker",73,11),x(6,wae,2,1,"mat-error",24)(7,Eae,1,1,"mat-error",74),m()),t&2){let e=J(5),i=h(2);c(),f("innerHTML",i.translationService.getTranslation("address_birthday"),y),c(),f("max",i.earliestBirthdateForSubscription)("matDatepicker",e)("datePickerFormat",i.translationService.getTranslation("dateFormat"))("required",i.isRequired(i.AddressFormularField.BIRTHDAY)),c(),f("for",e),c(),f("touchUi",i.isMobile),c(2),b(i.controlGroup.get("userData").hasError("message")?6:-1),c(),b(i.controlGroup.get("userData.birthDay").hasError("matDatepickerMax")?7:-1)}}function Tae(t,n){t&1&&(p(0,"mat-icon",76),E(1,"check"),m())}function Mae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("userData.phone").getError("message")," ")}}function Iae(t,n){if(t&1&&(p(0,"mat-form-field",70),_(1,"mat-label",20)(2,"input",75),x(3,Tae,2,0,"mat-icon",76)(4,Mae,2,1,"mat-error",24),m()),t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("address_telephone"),y),c(),f("required",e.isRequired(e.AddressFormularField.PHONE)),c(),b(e.controlGroup.get("userData.phone").value&&e.controlGroup.get("userData.phone").valid&&!e.controlGroup.get("userData.phone").pending?3:-1),c(),b(e.controlGroup.get("userData.phone").hasError("message")?4:-1)}}function Aae(t,n){if(t&1&&(p(0,"mat-error",24),E(1),m()),t&2){let e=h(3);c(),R("",e.controlGroup.get("userData").getError("message")," ")}}function kae(t,n){if(t&1&&(p(0,"mat-form-field",71),_(1,"mat-label",20)(2,"input",77),x(3,Aae,2,1,"mat-error",24),m()),t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("register_email"),y),c(),f("required",e.isRequired(e.AddressFormularField.EMAIL)),c(),b(e.controlGroup.get("userData").hasError("message")?3:-1)}}function Oae(t,n){if(t&1&&(ni(0,16),x(1,Dae,8,9,"mat-form-field",69)(2,Iae,5,4,"mat-form-field",70)(3,kae,4,3,"mat-form-field",71),Jt()),t&2){let e=h();c(),b(e.askForBirthday?1:-1),c(),b(e.askForPhone?2:-1),c(),b(e.askForEmail?3:-1)}}var vr=(()=>{class t{constructor(){this.translationService=d(Y),this.baseDataService=d(vt),this.addressSearchService=d(ap),this.localeService=d(Du),this.dateAdapter=d(qt),this.configService=d(Ce),this.addressFieldHandler=
616d(aH),this.httpClient=d(Be),this.showActivateCheckbox=!1,this.showSalutation=!0,this.showAddressExt1=!0,this.showTitle=!0,this.askForBirthday=!1,this.isBirthdayRequired=!1,this.askForEmail=!1,this.showValidFrom=!1,this.askForPhone=!1,this.isPhoneRequired=!1,this.activateCheckboxText="activateCheckboxText",this.minDate=new Date,this.isMobile=!1,this.askForCountry=!0,this.askForPerson=!0,this.isReadOnly=!1,this.identification=!1,this.clientWithoutAddressAllowed=!1,this.customConfig=new Cb,this.salutations=[],this.clientTypes=[],this.countries=[],this.titles=[],this.zipcodes=[],this.streetNames=[],this.cities=[],this.addressPartSequence="0",this.addressSearch=new $l(null,null,null,null,null,null),this.minimalAllowedUserAge=18,this.document=typeof document=="object"?document:null,this.AddressFormularField=rn,this.CustomerType=dp,this.dateAdapter.getFirstDayOfWeek=()=>1}ngOnInit(){this.clientWithoutAddressAllowed=this.configService.getConfig("client.personWithoutAddressAllowed")?.asBoolean(),this.customConfig.setBirthdayRequired(this.isBirthdayRequired),this.customConfig.setPhoneRequired(this.isPhoneRequired),this.forProductType?this.addressFieldHandler.setProductType(this.forProductType.offerType.ePaper?"digital":"print"):this.addressFieldHandler.setProductType("print"),this.addressFieldHandler.setClientWithoutAddressAllowed(this.clientWithoutAddressAllowed),this.countries=this.baseDataService.getBaseData("countrycodes");let i=this.localeService.getDefaultCountry().split("_");this.countries?.sort((a,s)=>{let l=a.description.toUpperCase(),u=s.description.toUpperCase();return l<u?-1:l>u?1:0}),this.countries?.forEach(a=>{a.key===i[0].toUpperCase()&&(this.defaultCountry=a.key,(!this.controlGroup.get("address.country").getRawValue()||this.controlGroup.get("address.country").getRawValue()==="")&&this.controlGroup.get("address.country").setValue(a,{emitEvent:!0}))});let r=this.configService.getConfig("address.addresspart.sequence");r&&(this.addressPartSequence=r.value),this.defaultCountry==="NL"?this.showActivateCheckbox||(this.controlGroup.get("person").get("initials").setValidators(Z.required),this.controlGroup.get("person").get("firstName").clearValidators()):(this.controlGroup.get("address.street").valueChanges.subscribe(a=>{this.addressSearch.streetName=a,this.unsetCityAndStreet(),this.searchStreet()}),this.controlGroup.get("address.city").valueChanges.subscribe(a=>{this.addressSearch.city=a,this.unsetCityAndStreet(),this.searchCity()}),!this.showActivateCheckbox&&this.showSalutation&&this.onSalutationChange(""),this.controlGroup.get("person.salutation").valueChanges.subscribe(a=>{this.onSalutationChange(a?.key)})),this.setPhoneValidator(),this.salutations=this.baseDataService.getBaseData("addresscodes"),this.clientTypes=this.baseDataService.getBaseData("clienttypes"),this.titles=this.baseDataService.getBaseData("titles"),this.controlGroup.get("address.zipcode").addValidators([Z.pattern(/[^A-Za-z0-9]*/g),Z.maxLength(10)]),this.controlGroup.get("address.houseNo").addValidators([Z.pattern(/[^A-Za-z0-9\-]*/g),Z.maxLength(10)]),this.isReadOnly?this.controlGroup.enabled&&this.controlGroup.disable():this.controlGroup.disabled&&this.controlGroup.enable(),console.debug("Register Address Listener"),this.controlGroup.get("address.street").valueChanges.subscribe(a=>{this.addressSearch.streetName=a,this.searchStreet(),console.debug("Street Changed")}),this.controlGroup.get("address.zipcode").valueChanges.subscribe(a=>{(a||a==="")&&(a=a.toUpperCase(),this.addressSearch.zipcode=a,this.unsetCityAndStreet(),this.defaultCountry==="NL"?(this.streetNames=[],this.cities=[],this.addressSearch.houseNo!==null&&this.addressSearch.houseNo!==""&&this.addressSearch.zipcode!==null&&this.addressSearch.zipcode!==""&&this.searchZipCode()):this.searchZipCode(),console.debug("Zipcode Changed"))}),this.controlGroup.get("address.city").valueChanges.subscribe(a=>{this.addressSearch.city=a,this.unsetCityAndStreet(),this.searchCity(),console.debug("City Changed")}),this.controlGroup.get("address.houseNo").valueChanges.subscribe(a=>{this.addressSearch.houseNo=a,this.unsetCityAndStreet(),this.defaultCountry==="NL"&&(this.streetNames=[],this.cities=[]),this.searchAddress(),console.debug("Houseno Changed")}),console.debug("Registered Address Listener"),this.controlGroup.get("showAddress")?.valueChanges.subscribe(a=>{this.defaultCountry==="NL"&&a===!0?this.controlGroup.get("person").get("initials").setValidators(Z.required):a===!1&&(this.controlGroup.get("person").get("initials").clearValidators(),this.controlGroup.reset())});let o=this.configService.getConfig("subscription.minimal-user-age");o&&(this.minimalAllowedUserAge=parseInt(o.value)),this.handleEarliestBirthdayForSubscription(this.minimalAllowedUserAge)}ngOnDestroy(){this.forProductType&&(this.forProductType=null),this.addressFieldHandler&&this.addressFieldHandler.reset()}onInputBlur(e){let i=e.target;i&&i.tagName==="INPUT"&&this.trimAllFormControls(this.controlGroup)}
616trimAllFormControls(e){Object.keys(e.controls).forEach(i=>{let r=e.get(i);r&&(r instanceof Uo?this.trimAllFormControls(r):typeof r.value=="string"&&r.setValue(r.value.trim(),{emitEvent:!1}))})}unsetCityAndStreet(){this.defaultCountry==="NL"&&(this.controlGroup.get("address.city")?.setValue(null,{emitEvent:!1}),this.controlGroup.get("address.street")?.setValue(null,{emitEvent:!1})),this.controlGroup.get("address.street")?.disabled&&(this.addressSearch.streetName=null),this.controlGroup.get("address.city")?.disabled&&(this.addressSearch.city=null)}searchStreet(){this.defaultCountry!=="NL"&&this.addressSearchService.searchStreet(this.addressSearch).subscribe(e=>{this.streetNames=[],this.addressSearch.zipcode=this.addressSearch?.zipcode?.trim(),e&&e.forEach(i=>{this.streetNames.push(i.streetName)}),this.streetNames=[...new Set(this.streetNames)],this.enableDisableFields(),this.controlGroup.get("address.district").setValue(e[0]?.district,{emitEvent:!1})})}searchZipCode(){this.addressSearchService.searchZipcode(this.addressSearch).subscribe(e=>{this.zipcodes=[],this.addressSearch.zipcode=this.addressSearch?.zipcode?.trim(),e&&e.forEach(i=>{this.zipcodes.push(i.zipcode)}),this.zipcodes=[...new Set(this.zipcodes)],this.enableDisableFields()})}searchCity(){this.defaultCountry!=="NL"&&this.addressSearchService.searchCity(this.addressSearch).subscribe(e=>{this.cities=[],this.addressSearch.zipcode=this.addressSearch.zipcode?.trim(),e&&e.forEach(i=>{this.cities.push(i.city)}),this.cities=[...new Set(this.cities)],this.enableDisableFields()})}searchAddress(){(this.addressSearch.city||this.addressSearch.streetName||this.addressSearch.zipcode)&&this.defaultCountry==="NL"&&(this.addressSearch.streetName=null,this.addressSearch.city=null,this.addressSearch.district=null,this.addressSearchService.searchAddress(this.addressSearch).subscribe(e=>{this.streetNames=[],this.cities=[],this.zipcodes=[],this.addressSearch.zipcode=this.addressSearch.zipcode?.trim(),e&&e.forEach(i=>{this.streetNames.push(i.streetName),this.cities.push(i.city),this.zipcodes.push(i.zipcode)}),this.streetNames=[...new Set(this.streetNames)],this.cities=[...new Set(this.cities)],this.zipcodes=[...new Set(this.zipcodes)],this.enableDisableFields()}))}enableDisableFields(e=!1,i=!1){this.defaultCountry==="NL"&&(this.streetNames.length==1?(this.controlGroup.get("address.street")?.setValue(this.streetNames[0],{emitEvent:!1}),this.controlGroup.get("address.street")?.disable({emitEvent:!1})):e||(this.controlGroup.get("address.street")?.enable({emitEvent:!1}),this.controlGroup.get("address.street")?.setValue(null,{emitEvent:!1})),this.cities.length==1?(this.controlGroup.get("address.city")?.setValue(this.cities[0],{emitEvent:!1}),this.controlGroup.get("address.city")?.disable({emitEvent:!1})):i||(this.controlGroup.get("address.city")?.enable({emitEvent:!1}),this.controlGroup.get("address.city")?.setValue(null,{emitEvent:!1})))}compareBaseData(e,i){return e.key===i||e.key===i?.key}printForm(){console.log(this.controlGroup)}replaceInvalidCharactersFromZipcode(){var e=this.controlGroup.get("address.zipcode").value.toUpperCase();e.length>10&&(e=e.slice(0,10)),this.controlGroup.get("address.zipcode").setValue(e.replace(/[^A-Za-z0-9]*/g,""),{emitEvent:!1})}watchInitials(e){let i=this.controlGroup.get("person.initials"),r=i.value.toUpperCase();e.keyCode==8&&(r=r.substring(0,r.length-1)),r=r.replaceAll(/[^a-z]/ig,"").split("").join("."),r+=r.length?".":"",i.setValue(r,{emitEvent:!1})}setPhoneValidator(){if(this.askForPhone){let e=null;this.controlGroup.get("userData.phone").setAsyncValidators(Hi.validatePhoneNumber(this.httpClient,this.translationService,this.controlGroup.get("country")?.value?.key||this.defaultCountry||"D",i=>{e=i})),this.controlGroup.get("userData.phone").valueChanges.subscribe(i=>{if(!i)return;let r=this.controlGroup.get("userData.phone");r.valid&&i!==e&&r.patchValue(e,{emitEvent:!1})})}}onSalutationChange(e){this.controlGroup.get("showAddress")?.value===!0&&this.controlGroup.get("person.firstName").addValidators(Z.required),e&&e!=""&&this.salutations.forEach(i=>
616{i.key==e&&this.clientTypes.forEach(r=>{r.defaultAddressCodeId&&r.defaultAddressCodeId===i.key&&(r.justOneNameField?this.controlGroup.get("person.firstName").clearValidators():this.controlGroup.get("person.firstName").addValidators(Z.required))})}),this.controlGroup.get("person.firstName").updateValueAndValidity()}handleEarliestBirthdayForSubscription(e){let i=new Date;this.earliestBirthdateForSubscription=new Date(i.getFullYear()-e,i.getMonth(),i.getDate())}isRequired(e){return this.addressFieldHandler.isRequired(e,this.customConfig)}resetFields(e){e.checked||(this.controlGroup.reset(),this.controlGroup.get("address.country")?.setValue(this.defaultCountry,{emitEvent:!0}),this.controlGroup.get("showAddress").enable(),this.controlGroup.clearValidators(),this.controlGroup.clearAsyncValidators())}ngOnChanges(e){e.isBirthdayRequired&&this.customConfig.setBirthdayRequired(e.isBirthdayRequired.currentValue),e.askForBirthday&&this.askForBirthday&&!this.controlGroup.get("userData.birthDay").value&&this.controlGroup.get("userData.birthDay").enable()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-hup-subscription-address","controlGroup",""]],hostBindings:function(i,r){i&1&&T("focusout",function(a){return r.onInputBlur(a)})},inputs:{showActivateCheckbox:"showActivateCheckbox",showSalutation:"showSalutation",showAddressExt1:"showAddressExt1",showTitle:"showTitle",askForBirthday:"askForBirthday",isBirthdayRequired:"isBirthdayRequired",askForEmail:"askForEmail",showValidFrom:"showValidFrom",askForPhone:"askForPhone",isPhoneRequired:"isPhoneRequired",activateCheckboxText:"activateCheckboxText",controlGroup:"controlGroup",minDate:"minDate",isMobile:"isMobile",askForCountry:"askForCountry",askForPerson:"askForPerson",isReadOnly:"isReadOnly",forProductType:"forProductType",identification:"identification",customerType:"customerType",addressType:"addressType"},features:[_e([X0()]),Xe],attrs:goe,decls:6,vars:5,consts:[["picker",""],["addressInitials",""],["middleName",""],["lastName",""],["houseNumber",""],["matStreetNames","matAutocomplete"],["matCities","matAutocomplete"],["addressExtra",""],["firstName",""],["matZipCodes","matAutocomplete"],["addressPartSequence0",""],["birthDaypicker",""],[1,"hup-subscription-address",3,"formGroup"],[1,"row"],[1,"col-12","hup-subscription-address__activate-checkbox"],["formGroupName","validDate",1,"col-12","hup-subscription-address__valid-from"],["formGroupName","userData",1,"hup-subscription-address__userdata"],["formControlName","showAddress",1,"hup-subscription-address__checkbox",3,"change"],[1,"hup-subscription-address__checkbox-label",3,"innerHTML"],["formGroupName","validDate",1,"col-12","hup-subscription-address__valid-from",3,"click"],[1,"hup-subscription-address__label",3,"innerHTML"],["matInput","","readonly","","required","","formControlName","validFrom",1,"hup-subscription-address__input",3,"min","matDatepicker"],["matSuffix","",3,"for"],[3,"touchUi"],[1,"hup-subscription-address__error"],[1,"col-12","fw-bold"],["formGroupName","person",1,"hup-subscription-address__person"],[1,"col-12","col-md-4","hup-subscription-address__salutation"],[1,"col-12","col-md-4","hup-subscription-address__initials"],[1,"hup-subscription-address__label"],["maxLength","50","id","initialInputForm","matInput","","formControlName","initials","mask","S.S.S.S.S","type","text",1,"hup-subscription-address__input",3,"dropSpecialCharacters","validation"],["align","end",1,"hup-subscription-address__hint"],[1,"col-12","col-md-4","hup-subscription-address__middlename"],["maxLength","50","matInput","","formControlName","middlename",1,"hup-subscription-address__input"],[1,"col-12","col-md-8","hup-subscription-address__lastname"],["maxLength","50","matInput","","formControlName","lastName",1,"hup-subscription-address__input",3,"required"],["formGroupName","address",1,"hup-subscription-address__address"],[1,"col-12","col-md-4","hup-subscription-address__country"],[1,"col-12","col-md-6","hup-subscription-address__zipcode"],["matInput","","formControlName","zipcode",1,"hup-subscription-address__input",3,"keyup","required"],[1,"col-12","col-md-6","hup-subscription-address__houseno"],["maxLength","50","matInput","","formControlName","houseNo",1,"hup-subscription-address__input",3,"required"],[1,"col-12","hup-subscription-address__street"],["matInput","","formControlName","street",1,"hup-subscription-address__input",3,"required","matAutocomplete"],[1,"hup-subscription-address__option",3,"value"],[1,"col-12","hup-subscription-address__city"],["matInput","","formControlName","city",1,"hup-subscription-address__input",3,"required","matAutocomplete"],[1,"col-12","hup-subscription-address__extraline"],["formControlName","salutation",1,"hup-subscription-address__select",3,"required","compareWith"],["formControlName","country","id","nlCountry",1,"hup-subscription-address__select",3,"required"],["maxLength","50","matInput","","formControlName","extraLine",1,"hup-subscription-address__input"],[1,"col-12","col-md-6","hup-subscription-address__salutation"],[1,"col-12","col-md-6","hup-subscription-address__title"],[1,"col-12","col-md-6","hup-subscription-address__firstname"],[3,"ngClass"],["maxLength","50","matInput","","formControlName","lastName","data-cy","input-last-name",1,"hup-subscription-address__input",3,"required"],["formControlName","salutation","data-cy","select-salutation",1,"hup-subscription-address__select",3,"required","compareWith"],["data-cy","option-salutation",1,"hup-subscription-address__option",3,"value"],["formControlName","title",1,"hup-subscription-address__select",3,"compareWith"],["value","",1,"hup-subscription-address__option"],["maxLength","50","matInput","","formControlName","firstName","data-cy","input-first-name",1,"hup-subscription-address__input",3,"required"],[1,"hup-subscription-address__specifics",3,"searchAddressEmit","controlGroup","streetNames","addressFieldHandler"],["matInput","","formControlName","zipcode",1,"hup-subscription-address__input",3,"keyup","focusin","required","matAutocomplete"],[1,"col-12","col-md-6","hup-subscription-address__city"],["matInput","","formControlName","city",1,"hup-subscription-address__input",3,"focusin","required","matAutocomplete"],[1,"col-12","hup-subscription-address__country"],["formControlName","country","id","country",1,"hup-subscription-address__select",3,"required","compareWith"],["formControlName","country","id","country0",1,"hup-subscription-address__select",3,"required","compareWith"],["maxlength","50","matInput","","formControlName","extraLine",1,"hup-subscription-address__input"],[1,"col-12","hup-subscription-address__birthday"],[1,"col-12","hup-subscription-address__phone"],[1,"col-12","d-none","hup-subscription-address__email"],["matInput","","formControlName","birthDay",1,"hup-subscription-address__input",3,"max","matDatepicker","datePickerFormat","required"],["startView","multi-year",3,"touchUi"],[1,"hup-subscription-address__error",3,"innerHTML"],["matInput","","type","tel","formControlName","phone",1,"hup-subscription-address__input",3,"required"],[1,"iconInInput"],["matInput","","formControlName","email","readonly","",1,"hup-subscription-address__input",3,"required"]],template:function(i,r){if(i&1&&(ni(0,12),p(1,"div",13),x(2,_oe,3,1,"div",14)(3,boe,7,6,"mat-form-field",15)(4,xae,3,2)(5,Oae,4,3,"ng-container",16),m(),Jt()),i&2){let o,a;f("formGroup",r.controlGroup),c(2),b(r.showActivateCheckbox?2:-1),c(),b(r.showValidFrom?3:-1),c(),b(!r.showActivateCheckbox||(o=r.controlGroup.get("showAddress"))!=null&&o.value?4:-1),c(),b((!r.showActivateCheckbox||(a=r.controlGroup.get("showAddress"))!=null&&a.value)&&(r.askForBirthday||r.askForEmail||r.askForPhone)?5:-1)}},dependencies:[sH,Ot,Bt,At,Wt,ai,wa,bt,Ut,fr,tr,Nt,ss,ei,Aa,ql,ir,Ri,nH,yb,Wf,oH,Ht,Pt,qi,tn,fn],styles:[`#initialInputForm{text-transform:uppercase} 617/*# sourceMappingURL=hup-subscription-address.component-FJUKFZ72.css.map */ 618`],encapsulation:2})}}return t})();var lH=t=>({infoText:t}),cH=t=>[t];function Pae(t,n){if(t&1&&_(0,"app-general-warning",3),t&2){let e=h(2);f("warnings",zi(3,cH,zi(1,lH,e.translationService.getTranslation("currentProduct.alreadyOrdered"))))}}function Nae(t,n){if(t&1){let e=B();p(0,"img",27),T("click",function(){A(e);let r=h(2).$implicit;h();let o=J(14),a=h();return k(a.onSelectBonus(r,o))}),m()}if(t&2){let e=h(2).$implicit,i=h(2);f("ngSrc",e.image.src)("width",i.imageService.width)("height",i.imageService.height)("priority",!0)("alt",e.image.altText)}}function Rae(t,n){if(t&1){let e=B();p(0,"div",17),te(1,"cssProperty"),te(2,"cssProperty"),te(3,"cssProperty"),te(4,"cssProperty"),te(5,"cssProperty"),te(6,"cssProperty"),p(7,"mat-card",18)(8,"mat-card-header",19)(9,"mat-card-title",20),T("click",function(){A(e);let r=h().$implicit;h();let o=J(14),a=h();return k(a.onSelectBonus(r,o))}),p(10,"div"),E(11),m()()(),p(12,"div",21),x(13,Nae,1,5,"img",22),m(),p(14,"div",23)(15,"div",24)(16,"button",25),T("click",function(){A(e);let r=h().$implicit,o=h(2);
618return k(o.onShowDetails(r))}),m()(),p(17,"div",24)(18,"button",26),T("click",function(){A(e);let r=h().$implicit;h();let o=J(14),a=h();return k(a.onSelectBonus(r,o))}),m()()()()()}if(t&2){let e=h().$implicit,i=h(2);f("className","mb-3 col-"+Te(1,6,i.CssPropertiesEnum.bonusFxFlex,i.vHostService)+" col-sm-"+Te(2,9,i.CssPropertiesEnum.bonusFxFlexSM,i.vHostService)+" col-md-"+Te(3,12,i.CssPropertiesEnum.bonusFxFlexMD,i.vHostService)+" col-lg-"+Te(4,15,i.CssPropertiesEnum.bonusFxFlexLG,i.vHostService)+" col-xl-"+Te(5,18,i.CssPropertiesEnum.bonusFxFlexXL,i.vHostService)+" col-xxl-"+Te(6,21,i.CssPropertiesEnum.bonusFxFlexXXL,i.vHostService)+" offer-detail__bonus-card-item"),c(7),f("ngClass",e.selected?"selectedBonus":"unselectedBonus"),c(4),he(e.name),c(2),b(e.image?13:-1),c(3),f("innerHTML",i.translationService.getTranslation("button_details"),y),c(2),f("innerHTML",i.translationService.getTranslation("button_bonus_select"),y)}}function Fae(t,n){if(t&1&&x(0,Rae,19,24,"div",17),t&2){let e=n.$index,i=h(2);b(e<i.maxBonuses?0:-1)}}function Lae(t,n){if(t&1){let e=B();p(0,"div",10)(1,"button",28),T("click",function(){A(e);let r=h(2);return k(r.loadMoreBonuses())}),m()()}if(t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("button_more_bonuses"),y)}}function Bae(t,n){if(t&1){let e=B();p(0,"div",30)(1,"mat-checkbox",31),T("click",function(){let r=A(e).$index,o=h(3);return k(o.onDeselectBonus(r))}),_(2,"div",32),m()()}if(t&2){let e=n.$implicit;c(2),f("innerHTML",e.value.name,y)}}function Hae(t,n){if(t&1&&(_(0,"div",29),W(1,Bae,3,1,"div",30,X)),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("bonus_selected"),y),c(),q(e.getBonusControls())}}function Vae(t,n){if(t&1&&_(0,"div",12),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("offer.missingBonus"),y)}}function jae(t,n){if(t&1&&_(0,"app-hup-subscription-address",33),t&2){let e=h(3);f("showActivateCheckbox",!0)("askForPhone",!0)("isPhoneRequired",!0)("controlGroup",e.bonusAddressGroup)}}function zae(t,n){if(t&1&&_(0,"app-hup-subscription-address",34),t&2){let e=h(3);f("showActivateCheckbox",!1)("askForBirthday",!1)("askForEmail",!1)("controlGroup",e.advertiserAddressGroup)("addressType",e.translationService.getTranslation("address_advertiser"))}}function Uae(t,n){if(t&1&&x(0,jae,1,4,"app-hup-subscription-address",33)(1,zae,1,5,"app-hup-subscription-address",34),t&2){let e,i=h(2);b((e=i.selectedBonus[0].bonusType)===i.BonusType.NON_MONEY_BONUS?0:e===i.BonusType.THIRD_PARTY_NON_MONEY_BONUS?1:-1)}}function Gae(t,n){if(t&1&&_(0,"app-general-warning",35),t&2){let e=h(3);f("warnings",zi(3,cH,zi(1,lH,e.translationService.getTranslation("bonus.co-payment.notification"))))}}function $ae(t,n){if(t&1&&(p(0,"mat-hint",39),E(1),m()),t&2){h();let e=J(6);c(),Pe("",e.value.length," / ",e.maxLength,"")}}function Wae(t,n){if(t&1&&(p(0,"mat-error",40),E(1),m()),t&2){let e=h(3);c(),R("",e.bonusFormGroup.get("payment.ibanBonus").getError("message")," ")}}function qae(t,n){t&1&&(p(0,"div",41),_(1,"app-loading-spinner",45),m()),t&2&&(c(),f("type","small"))}function Yae(t,n){if(t&1&&(p(0,"mat-error",40),E(1),m()),t&2){let e=h(3);c(),R("",e.bonusFormGroup.get("payment.bicBonus").getError("message")," ")}}function Kae(t,n){if(t&1&&(p(0,"mat-hint",39),E(1),m()),t&2){h();let e=J(3);c(),Pe("",e.value.length,"/ ",e.maxLength," ")}}function Qae(t,n){if(t&1&&(p(0,"mat-error"),E(1),m()),t&2){let e=h(4);c(),he(e.bonusFormGroup.get("payment.accountHolderBonus").getError("message"))}}function Zae(t,n){if(t&1&&(p(0,"mat-form-field",44),_(1,"mat-label",32)(2,"input",46,2),x(4,Kae,2,2,"mat-hint",39)(5,Qae,2,1,"mat-error"),m()),t&2){let e=J(3),i=h(3);c(),f("innerHTML",i.translationService.getTranslation("payment_holder"),y),c(),f("value",i.bonusFormGroup.get("payment.accountHolderBonus").value),c(2),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?4:-1),c(),b(i.bonusFormGroup.get("payment.accountHolderBonus").hasError("message")?5:-1)}}function Xae(t,n){if(t&1&&(x(0,Gae,1,5,"app-general-warning",35),p(1,"div",36)(2,"mat-form-field",37)(3,"mat-label"),E(4),m(),_(5,"input",38,1),x(7,$ae,2,2,"mat-hint",39)(8,Wae,2,1,"mat-error",40),m(),x(9,qae,2,1,"div",41),p(10,"mat-form-field",42)(11,"mat-label"),E(12),m(),_(13,"input",43),x(14,Yae,2,1,"mat-error",40),m(),x(15,Zae,6,4,"mat-form-field",44),m()),t&2){let e=J(6),i=h(2);b(i.nonMoneyBonusWithClientCoPaymentSelected?0:-1),c(4),he(i.translationService.getTranslation("payment_iban_bonus")),c(),f("value",i.bonusFormGroup.get("payment.ibanBonus").value),
618c(2),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?7:-1),c(),b(i.bonusFormGroup.get("payment.ibanBonus").hasError("message")?8:-1),c(),b(i.bonusFormGroup.get("payment.ibanBonus").status==="PENDING"?9:-1),c(3),he(i.translationService.getTranslation("payment_bic_bonus")),c(),f("value",i.bonusFormGroup.get("payment.bicBonus").value),c(),b(i.bonusFormGroup.get("payment.bicBonus").hasError("message")?14:-1),c(),b(i.askForPaymentHolder?15:-1)}}function Jae(t,n){if(t&1&&_(0,"button",15),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("button_back"),y)}}function ese(t,n){if(t&1){let e=B();x(0,Pae,1,5,"app-general-warning",3),p(1,"form",4)(2,"div",5)(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9),W(7,Fae,1,1,null,null,X),m()()(),x(9,Lae,2,1,"div",10),m()(),p(10,"div",11),x(11,Hae,3,1)(12,Vae,1,1,"div",12),_(13,"div",13,0),m(),x(15,Uae,2,1)(16,Xae,16,10),m(),p(17,"div",14),x(18,Jae,1,1,"button",15),p(19,"button",16),T("click",function(){A(e);let r=h();return k(r.parentStepper.next())}),m()()}if(t&2){let e=h();b(e.currentProductAlreadyOrdered()?0:-1),c(),f("formGroup",e.bonusFormGroup),c(6),q(e.bonuses()),c(2),b(e.bonuses().length>e.maxBonuses?9:-1),c(2),b(e.selectedBonus.length>0?11:-1),c(),b(e.selectedBonus?-1:12),c(3),b(e.selectedBonus.length>0?15:-1),c(),b(e.moneyBonusSelected||e.nonMoneyBonusWithClientCoPaymentSelected?16:-1),c(2),b(e.isAuthenticated()?-1:18),c(),f("innerHTML",e.translationService.getTranslation("button_next"),y)}}var tse=["address","person","userData"],Sb=(()=>{class t{constructor(){this.orderProcessService=d(zn),this.imageService=d(Ei),this.translationService=d(Y),this.vHostService=d(Ai),this.configService=d(Ce),this.offerService=d(Qo),this.http=d(Be),this.bonusDetailsDialog=d(Vs),this.bonuses=we(),this.bonusSelection=ee(!1),this.isEditable=we(),this.currentProductAlreadyOrdered=we(),this.isAuthenticated=we(),this.formBuilder=new kt,this.showBonusPoints=!1,this.maxBonuses=6,this.bonusReload=6,this.moneyBonusSelected=!1,this.nonMoneyBonusWithClientCoPaymentSelected=!1,this.maxPoints=12,this.usedPoints=0,this.freeBonusPoints=this.maxPoints,this.selectedBonus=[],this.stepCompleted=qd(),this.subscriptions=new Ie,this.askForBirthday=!0,this.isBirthdayRequired=!1,this.askForPaymentHolder=!1,this.CssPropertiesEnum=tt,this.BonusType=Ma,this.document=document}ngOnInit(){this.handleConfigs(),this.buildBonusForm(),this.bonuses().forEach(e=>{this.offerService.getArticleDescriptionFromId(e.articleCode).subscribe(i=>{e.descriptionFromDocument=i.articleDescription})}),this.bonuses().length>0&&(this.bonuses().length==1&&this.onSelectBonus(this.bonuses()[0],null),this.bonusSelection.set(!0)),this.bonusSelection()||this.setValidatorsAtIBAN(this.moneyBonusSelected||this.nonMoneyBonusWithClientCoPaymentSelected),this.subscriptions.add(this.bonusFormGroup.statusChanges.subscribe(e=>{this.stepCompleted.emit(e==="VALID")})),this.subscriptions.add(this.bonusAddressGroup.get("showAddress")?.valueChanges.subscribe(()=>this.applyBonusAddressActivation())),this.applyBonusAddressActivation(),this.stepCompleted.emit(this.bonusFormGroup.status==="VALID"),this.subscriptions.add(this.orderProcessService.connectForm(this.bonusFormGroup,e=>e,(e,i)=>re(N({},e),{bonusData:i})))}ngOnDestroy(){this.subscriptions.unsubscribe()}setValidatorsAtIBAN(e){e===!0?(this.bonusFormGroup.get("payment.ibanBonus").setValidators(Z.required),this.bonusFormGroup.get("payment.bicBonus").setValidators(Z.required),this.setAsyncValidators()):(this.bonusFormGroup.get("payment.ibanBonus").clearAsyncValidators(),this.bonusFormGroup.get("payment.ibanBonus").clearValidators(),this.bonusFormGroup.get("payment.bicBonus").clearValidators(),this.bonusFormGroup.get("payment").reset())}setAsyncValidators(){this.bonusFormGroup.get("payment.ibanBonus").setAsyncValidators(Hi.validateIBAN(this.http,this.translationService,this.bonusFormGroup.get("payment.bicBonus")))}buildBonusForm(){this.bonusFormGroup=this.formBuilder.group({bonus:new Go([],Z.required),bonusAddress:this.formBuilder.group({userData:this.formBuilder.group({birthDay:[""],phone:[""],email:[""]}),showAddress:[""],address:this.formBuilder.group({country:[""],zipcode:[""],city:[""],street:[""],houseNo:[""],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:[""],firstName:[""],lastName:[""],initials:[""],middlename:[""]})}),advertiserAddress:this.formBuilder.group({address:this.formBuilder.group({country:[""],zipcode:[""],city:[""],street:[""],houseNo:[""],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:[""],firstName:[""],lastName:[""],initials:[""],middlename:[""]})}),payment:this.formBuilder.group({ibanBonus:["",Z.required],bicBonus:[{value:this.translationService.getTranslation("filled_automatically"),disabled:!0}],accountHolderBonus:[""]})})}
618loadMoreBonuses(){this.maxBonuses=this.maxBonuses+this.bonusReload}onSelectBonus(e,i){(!e.bonusValue||e.bonusValue<1)&&(e.bonusValue=12),this.isBonusAlreadySelected(e)||(this.freeBonusPoints>=e.bonusValue?this.addBonus(e):this.freeBonusPoints<e.bonusValue&&(this.removeAllBonuses(),this.addBonus(e))),i&&i.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),this.handleBirthdayField(),this.applyBonusAddressActivation()}handleBirthdayField(){let e=this.selectedBonus.some(i=>i.creditCheckRequired===!0);this.isBirthdayRequired=this.isBirthdayRequired||e}handleConfigs(){this.configService.loadConfig("offer.showBonusAddress").subscribe(e=>{e&&e.value}),this.configService.loadConfig("offer.maxBonusCount").subscribe(e=>{e&&e.value&&(this.maxBonuses=Number(e.value),this.bonusReload=this.maxBonuses)}),this.configService.loadConfig("offer.askForBirthday").subscribe(e=>{e&&e.value&&(this.askForBirthday=e.value==="true"||e.value==="1")}),this.configService.loadConfig("requiredFields.addr.birthday").subscribe(e=>{e&&e.value&&(this.isBirthdayRequired=e.value==="true"||e.value==="1")}),this.configService.loadConfig("askForPaymentAccountHolder").subscribe(e=>{e&&e.value&&(this.askForPaymentHolder=e.value==="true"||e.value==="1")})}onShowDetails(e){this.bonusDetailsDialog.open(C3,{data:{bonus:e,showBonusPoints:!1}})}getBonusControls(){return this.bonusFormGroup.get("bonus").controls}isBonusAlreadySelected(e){let i=new dn(e),r=!1;for(let o of this.getBonusControls())o.value==i.value&&(r=!0);return r}addBonus(e){let i=new dn(e);this.bonusFormGroup.get("bonus").push(i),this.selectedBonus.push(e),e.selected=!0,this.moneyBonusSelected=e?.bonusType==Ma.MONEY_BONUS,this.nonMoneyBonusWithClientCoPaymentSelected=e?.bonusType==Ma.NON_MONEY_BONUS&&e?.clientCoPayment>0,this.setValidatorsAtIBAN(this.moneyBonusSelected||this.nonMoneyBonusWithClientCoPaymentSelected),this.calcBonusPoints()}onDeselectBonus(e){let i=this.selectedBonus[e];this.bonusFormGroup.get("bonus").removeAt(e),this.calcBonusPoints(),this.selectedBonus.splice(e,1);for(let r=0;r<this.bonuses().length;r++)if(i==this.bonuses()[r]){this.bonuses()[r].selected=!1;break}this.moneyBonusSelected=!1,this.nonMoneyBonusWithClientCoPaymentSelected=!1,this.handleBirthdayField(),this.applyBonusAddressActivation()}removeAllBonuses(){this.bonusFormGroup.get("bonus").clear(),this.calcBonusPoints(),this.selectedBonus=[];for(let e of this.bonuses())e.selected=!1;this.moneyBonusSelected=!1}calcBonusPoints(){let e=0;this.bonusFormGroup.get("bonus").controls.forEach(i=>{e+=i.value.bonusValue}),this.usedPoints=e,this.freeBonusPoints=this.maxPoints-e}get bonusAddressGroup(){return this.bonusFormGroup.get("bonusAddress")}get advertiserAddressGroup(){return this.bonusFormGroup.get("advertiserAddress")}isBonusAddressActive(){return this.selectedBonus[0]?.bonusType!==Ma.NON_MONEY_BONUS?!1:!!this.bonusAddressGroup.get("showAddress")?.value}isAdvertiserAddressActive(){return this.selectedBonus[0]?.bonusType===Ma.THIRD_PARTY_NON_MONEY_BONUS}applyContentGroupActivation(e,i){let r=!1;return tse.forEach(o=>{let a=e.get(o);!a||a.enabled===i||(i?a.enable({emitEvent:!1}):a.disable({emitEvent:!1}),r=!0)}),r}applyBonusAddressActivation(){let e=this.applyContentGroupActivation(this.bonusAddressGroup,this.isBonusAddressActive()),i=this.applyContentGroupActivation(this.advertiserAddressGroup,this.isAdvertiserAddressActive());(e||i)&&this.bonusFormGroup.updateValueAndValidity()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-bonus-step"]],inputs:{bonuses:[1,"bonuses"],isEditable:[1,"isEditable"],currentProductAlreadyOrdered:[1,"currentProductAlreadyOrdered"],isAuthenticated:[1,"isAuthenticated"],parentStepper:"parentStepper"},outputs:{stepCompleted:"stepCompleted"},decls:1,vars:1,consts:[["bonusNextButton",""],["ibanBonus",""],["accountHolderBonus",""],[3,"warnings"],[1,"mt-3","offer-detail__form","offer-detail__form--bonus",3,"formGroup"],[1,"container-fluid","p-0","offer-detail__bonus-container"],[1,"row","offer-detail__row","offer-detail__row--bonus"],[1,"col-12","offer-detail__bonus-list"],["id","bonusCard",1,"offer-detail__bonus-card"],[1,"row","offer-detail__row","offer-detail__row--bonus-cards"],[1,"col-12","mt-3","mb-5","text-center","offer-detail__bonus-more"],[1,"col-12","mt-1","offer-detail__bonus-selected-list"],[1,"col-12","mt-5","offer-detail__bonus-missing",3,"innerHTML"],[1,"text-end","mt-1","offer-detail__next-btn","offer-detail__next-btn--bonus"],[1,"text-end","mt-1","offer-detail__next-btn","offer-detail__next-btn--payment"],["type","button","mat-raised-button","","matStepperPrevious","",1,"me-3","offer-detail__back-btn","offer-detail__back-btn--bonus",3,"innerHTML"],["type","submit","align","end","mat-raised-button","","color","primary","data-cy","btn-bonus-next","matStepperNext","",3,"click","innerHTML"],[3,"className"],["appearance","outlined",1,"pointer","h-100","offer-detail__bonus-card-content",3,"ngClass"],[1,"offer-detail__bonus-card-header"],[1,"pb-0","offer-detail__bonus-card-title",3,"click"],[1,"bonusBody","h-100","offer-detail__bonus-card-body"],["mat-card-image","",1,"mw-100","offer-detail__bonus-card-img",3,"ngSrc","width","height","priority","alt"],[1,"footer","row","offer-detail__bonus-card-footer"],[1,"col-12","col-sm-6","text-center"],["mat-flat-button","","color","primary","data-cy","btn-show-bonus-details",1,"detailBonusButton","btn","btn-secondary","m-2","offer-detail__bonus-details-btn",3,"click","innerHTML"],["mat-raised-button","","color","primary","data-cy","btn-select-bonus",1,"selectBonusButton","m-2","offer-detail__bonus-select-btn",3,"click","innerHTML"],["mat-card-image","",1,"mw-100","offer-detail__bonus-card-img",3,"click","ngSrc","width","height","priority","alt"],["mat-raised-button","","color","primary",3,"click","innerHTML"],[1,"col-12","mt-5","offer-detail__bonus-selected",3,"innerHTML"],[1,"offer-detail__bonus-selected-item"],["checked","checked",1,"text-wrap","offer-detail__bonus-selected-checkbox",3,"click"],[3,"innerHTML"],["activateCheckboxText","address_diffBonus",1,"offer-detail__address-component","offer-detail__address-component--bonus",3,"showActivateCheckbox","ask
618ForPhone","isPhoneRequired","controlGroup"],[3,"showActivateCheckbox","askForBirthday","askForEmail","controlGroup","addressType"],[1,"offer-detail__bonus-copayment-warning",3,"warnings"],["formGroupName","payment"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--iban-bonus"],["maxlength","34","matInput","","formControlName","ibanBonus","oninput","this.value = this.value.toUpperCase()",3,"value"],["align","end"],[1,"offer-detail__error"],[1,"offer-detail__iban-bonus-spinner"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--bic-bonus"],["matInput","","formControlName","bicBonus",3,"value"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--account-holder-bonus"],[3,"type"],["matInput","","minlength","1","maxlength","255","formControlName","accountHolderBonus","data-cy","input-bic",3,"value"]],template:function(i,r){i&1&&x(0,ese,20,9),i&2&&b(r.bonusSelection()?0:-1)},dependencies:[Bn,Zo,Ot,wi,Bt,At,Wt,Ef,wa,bt,Ut,fr,tr,at,Bl,Li,cn,tn,is,op,Gl,Ee,Ge,Ht,Nt,qi,ei,Pt,vr],styles:[`.selectedBonus[_ngcontent-%COMP%]{border-width:thick;border-color:var(--buttonBackgroundColor)}.unselectedBonus[_ngcontent-%COMP%]{border-width:thick;border-color:transparent}.bonusBody[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:160px} 619/*# sourceMappingURL=bonus-step.component-Q2QIUJUB.css.map */`]})}}return t})();var xb=(()=>{class t{constructor(){this.stepper=d(as)}selectionChanged(e){let i=this.stepper._getStepLabelId(e.selectedIndex-1),r=document.getElementById(i);r&&setTimeout(()=>{r.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},250)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=$({type:t,selectors:[["","appMatVerticalStepperScroller",""]],hostBindings:function(i,r){i&1&&T("selectionChange",function(a){return r.selectionChanged(a)})}})}}return t})();var ls=function(t){return t.EMAIL='^(([^<>()[\\]\\\\.,;:\\s@"]+(\\.[^<>()[\\]\\\\.,;:\\s@"]+)*)|.(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$',t}(ls||{});var Xs=class{constructor(n,e,i,r,o,a,s,l,u){this.amount=n,this.calculationPeriod=e,this.currency=i,this.price=r,this.priceText=o,this.trial=a,this.porto=s,this.portoDescription=l,this.credit=u}};var wb=class{},ed=function(t){return t.BUCKAROO="BUCKAROO",t.PAYPAL="PAYPAL",t}(ed||{});function ise(t,n){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(e[i[r]]=t[i[r]]);return e}function nse(t,n){var e=document.querySelector('script[src="'.concat(t,'"]'));if(e===null)return null;var i=uH(t,n),r=e.cloneNode();if(delete r.dataset.uidAuto,Object.keys(r.dataset).length!==Object.keys(i.dataset).length)return null;var o=!0;return Object.keys(r.dataset).forEach(function(a){r.dataset[a]!==i.dataset[a]&&(o=!1)}),o?e:null}function rse(t){var n=t.url,e=t.attributes,i=t.onSuccess,r=t.onError,o=uH(n,e);o.onerror=r,o.onload=i,document.head.insertBefore(o,document.head.firstElementChild)}function ose(t){var n=t.sdkBaseUrl,e=t.environment,i=ise(t,["sdkBaseUrl","environment"]),r=n||lse(e),o=i,a=Object.keys(o).filter(function(u){return typeof o[u]<"u"&&o[u]!==null&&o[u]!==""}).reduce(function(u,g){var v=o[g].toString();return g=ase(g),g.substring(0,4)==="data"||g==="crossorigin"?u.attributes[g]=v:u.queryParams[g]=v,u},{queryParams:{},attributes:{}}),s=a.queryParams,l=a.attributes;return s["merchant-id"]&&s["merchant-id"].indexOf(",")!==-1&&(l["data-merchant-id"]=s["merchant-id"],s["merchant-id"]="*"),{url:"".concat(r,"?").concat(sse(s)),attributes:l}}function ase(t){var n=function(e,i){return(i?"-":"")+e.toLowerCase()};return t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,n)}function sse(t){var n="";return Object.keys(t).forEach(function(e){n.length!==0&&(n+="&"),n+=e+"="+t[e]}),n}function lse(t){return t==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function uH(t,n){n===void 0&&(n={});var e=document.createElement("script");
619return e.src=t,Object.keys(n).forEach(function(i){e.setAttribute(i,n[i]),i==="data-csp-nonce"&&e.setAttribute("nonce",n["data-csp-nonce"])}),e}function pH(t,n){if(n===void 0&&(n=Promise),mH(t,n),typeof document>"u")return n.resolve(null);var e=ose(t),i=e.url,r=e.attributes,o=r["data-namespace"]||"paypal",a=dH(o);return r["data-js-sdk-library"]||(r["data-js-sdk-library"]="paypal-js"),nse(i,r)&&a?n.resolve(a):cse({url:i,attributes:r},n).then(function(){var s=dH(o);if(s)return s;throw new Error("The window.".concat(o," global variable is not available."))})}function cse(t,n){n===void 0&&(n=Promise),mH(t,n);var e=t.url,i=t.attributes;if(typeof e!="string"||e.length===0)throw new Error("Invalid url.");if(typeof i<"u"&&typeof i!="object")throw new Error("Expected attributes to be an object.");return new n(function(r,o){if(typeof document>"u")return r();rse({url:e,attributes:i,onSuccess:function(){return r()},onError:function(){var a=new Error('The script "'.concat(e,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return o(a)}})})}function dH(t){return window[t]}function mH(t,n){if(typeof t!="object"||t===null)throw new Error("Expected an options object.");var e=t.environment;if(e&&e!=="production"&&e!=="sandbox")throw new Error('The `environment` option must be either "production" or "sandbox".');if(typeof n<"u"&&typeof n!="function")throw new Error("Expected PromisePonyfill to be a function.")}var dse=["paypalButtonContainer"];function use(t,n){if(t&1&&_(0,"h4",6),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("buckaroo.transaction.created"),y)}}function pse(t,n){if(t&1){let e=B();p(0,"div",1),x(1,use,1,1,"h4",3),p(2,"div",4),T("click",function(){A(e);let r=h();return k(r.goToBuckaroo())}),_(3,"img",5),m()()}if(t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("buckaroo.transaction.created"))}}function mse(t,n){t&1&&_(0,"div",2,0)}var fH=(()=>{class t{constructor(){this.validFundingSources=["card","credit","paylater","bancontact","blik","eps","giropay","ideal","mercadopago","mybank","p24","sepa","sofort","venmo"],this.hupSubscriptionsService=d(ct),this.paymentTransactionService=d(Ll),this.configService=d(Ce),this.baseDataService=d(vt),this.redirectService=d(Ln),this.wssService=d(av),this.translationService=d(Y),this.orderProcessingService=d(zn),this.platformId=d(Qe),this.subscriptionStartTime=we(),this.onlinePaymentSuccess=new z,this.buckarooTransactionId=null,this.buckarooProcessingSuccessful=!0,this.isBuckaroo=!1,this.isPaypal=!1,this.transaction=null,this.payPalClientId=null,this.payPalIsoCurrencyCode=null,this.payPalMerchantId=null,this.pendingTransaction=null,this.isSubscription=!1,this.payPalClientId=this.configService.getConfig("paymentprovider.paypal.clientid")?.value,this.payPalIsoCurrencyCode=this.configService.getConfig("paymentprovider.paypal.isoCurrency")?.value,this.payPalMerchantId=this.configService.getConfig("paymentprovider.paypal.merchantid")?.value,console.log("OnlinepaymentComponent - PayPal Config:",{clientId:this.payPalClientId,currency:this.payPalIsoCurrencyCode,merchantId:this.payPalMerchantId}),this.paymentTransactionService.getPaymentProviderResultData()?.subscribe(e=>{let i=e&&parseFloat(e.amount)>0&&e.invoiceText&&(e.transactionId===""||!e.transactionId),r=e&&e.billingPlanId?.length>0&&(!e.subscriptionId||e.subscriptionId==="");(i||r)&&(e.provider===ed.BUCKAROO?this.initBuckaroo(e):e.provider===ed.PAYPAL&&(this.isPaypal=!0,this.isSubscription=r,this.pendingTransaction=e,nt(this.platformId)&&this.loadPayPalScript(r)))})}ngAfterViewInit(){}ngOnDestroy(){}initBuckaroo(e){this.isBuckaroo=!0,e.wssId=this.wssService.getWssId(),this.hupSubscriptionsService.startBuckarooPaymentTransaction(e).subscribe(i=>{i&&i.transactionId&&(this.buckarooProcessingSuccessful=!0,this.buckarooTransactionId=i.transactionId,e.redirectUrl=i.redirectUrl,e.transactionId=i.transactionId,this.transaction=e)})}loadPayPalScript(e,i=!0){if(i&&!document.getElementById("google-pay-script")){let a=document.createElement("script");a.id="google-pay-script",a.src="https://pay.google.com/gp/p/js/pay.js",a.async=!0,document.body.appendChild(a)}let r=this.getDisabledFundingSources(),o={clientId:this.payPalClientId,currency:this.payPalIsoCurrencyCode,merchantId:this.payPalMerchantId,intent:e?"subscription":"authorize",vault:e,commit:!e,components:i?["buttons","googlepay"]:[],disableFunding:r.length===0?void 0:r};pH(o).then(a=>{this.paypal=a,this.renderPayPalButtons()})}getDisabledFundingSources(){return this.configService.getConfig("paymentprovider.paypal.disable-funding")?.value?.split(",")?.map(e=>e.trim())?.filter(e=>{let i=this.validFundingSources.includes(e);return i||console.error(`invalid funding source '${e}' in config property 'paymentprovider.paypal.disable-funding'`),i})??[]}renderPayPalButtons(){this.paypalButtonContainer.nativeElement.innerHTML="";let e=this.pendingTransaction;this.paypal.Buttons({style:{layout:"vertical",label:"paypal",height:40},createOrder:this.isSubscription?void 0:(i,r)=>li(this,null,function*(){let o={intent:"AUTHORIZE",purchase_units:[{amount:{currency_code:this.payPalIsoCurrencyCode,value:e.amount},description:e.invoiceText}]};console.log("PayPal Buttons - createOrder Payload:",o);let a=yield ec(this.hupSubscriptionsService.createPayPalOrder(o));if(!a?.id)throw new Error("PayPal order id missing in createOrder response");return a.id}),createSubscription:this.isSubscription?(i,r)=>{try{let o={plan_id:e.billingPlanId},a=this.toPayPalStartTime(this.subscriptionStartTime?.());return a&&(o.start_time=a),console.log("PayPal Subscription - create payload:",o),r.subscription.create(o)}catch(o){return console.error("Subscription create failed before request:",o),this.onlinePaymentSuccess.emit(!1),Promise.reject(o)}}:void 0,onApprove:this.isSubscription?this.approveSubscription.bind(this):this.approveOrder.bind(this),onCancel:i=>{console.log("Subscription cancelled",i)},onError:i=>{console.error("Subscription error",i),this.onlinePaymentSuccess.emit(!1)}}).render(this.paypalButtonContainer.nativeElement).then(()=>this.renderGooglePayButton(e))}approveSubscription(e,i){return li(this,null,function*(){let r=this.pendingTransaction;console.log("Subscription approved:",e);let o=yield i.subscription.get();console.log("Subscription details:",o),r.subscriptionId=e.subscriptionID,r.clientAddress=this.mapUsersAddress(o.subscriber?.shipping_address?.address),r.amount=o.billing_info?.cycle_executions?.filter(l=>l.tenure_type==="REGULAR")[0]?.total_price_per_cycle?.gross_amount?.value;let a=this.buildPayPalAddressFormValue(r.clientAddress,o,!0),s=o.subscriber?.email_address;this.paymentTransactionService.setNewTransaction(N({},r)),this.orderProcessingService.update(l=>re(N({},l),{transaction:r,addresses:re(N({},l.addresses),{email:l.addresses.email&&l.addresses.email!==""?l.addresses.email:s,deliveryAddress:a??l.addresses?.deliveryAddress,billingAddress:a??l.addresses?.billingAddress})}
619)),this.orderProcessingService.update(l=>re(N({},l),{transaction:r})),this.onlinePaymentSuccess.emit(r.subscriptionId!=null)})}approveOrder(e,i){return li(this,null,function*(){let r=this.pendingTransaction;console.debug("PayPal approved, authorizing...");let o=e?.orderID;if(!o){console.error("PayPal onApprove without orderID",e),this.onlinePaymentSuccess.emit(!1);return}let a=yield ec(this.hupSubscriptionsService.authorizePayPalOrder(o));console.log("onApprove - authorization details:",a);let s=a?.purchase_units?.[0]?.payments?.authorizations?.[0]?.id;if(!s){console.debug("No authorizationId",a);return}r.authorizationId=s,r.transactionId=s,r.status="AUTHORIZED";let l=a.purchase_units?.[0]?.shipping?.address,u=a.purchase_units?.[0]?.shipping?.name;console.log("Zahler:",u),r.clientAddress=this.mapUsersAddress(l);let g=this.buildPayPalAddressFormValue(r.clientAddress,a,!1),v=a.payment_source?.paypal?.email_address;this.paymentTransactionService.setNewTransaction(N({},r)),this.orderProcessingService.update(w=>re(N({},w),{transaction:r,addresses:re(N({},w.addresses),{email:w.addresses.email&&w.addresses.email!==""?w.addresses.email:v,deliveryAddress:g??w.addresses?.deliveryAddress,billingAddress:g??w.addresses?.billingAddress})})),this.onlinePaymentSuccess.emit(!!r.authorizationId)})}renderGooglePayButton(e){return li(this,null,function*(){if(typeof window<"u"&&!window.isSecureContext){console.log("Google Pay erfordert HTTPS.");return}if(!this.paypal.Googlepay){console.log("Google Pay Komponente nicht im SDK verf\xFCgbar");return}if(!window.google?.payments?.api?.PaymentsClient){console.log("Google Pay API (pay.js) noch nicht geladen, warte..."),setTimeout(()=>this.renderGooglePayButton(e),500);return}try{let i=this.paypal.Googlepay(),r=yield i.config();console.log("Google Pay Config:",r);let o=document.createElement("div");o.id="googlepay-button-container",o.style.marginBottom="10px",this.paypalButtonContainer.nativeElement.prepend(o);let a=new window.google.payments.api.PaymentsClient({environment:r.environment||"TEST",paymentDataCallbacks:{onPaymentAuthorized:v=>new Promise(w=>{this.onGooglePayAuthorized(i,v,e,r).then(()=>w({transactionState:"SUCCESS"})).catch(C=>{console.error("Google Pay Authorization Error:",C),w({transactionState:"ERROR",error:{intent:"PAYMENT_AUTHORIZATION",message:C.message||"Zahlung fehlgeschlagen",reason:"OTHER_ERROR"}})})})}}),s={apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:r.allowedPaymentMethods};if(!(yield a.isReadyToPay(s)).result){console.log("Google Pay ist auf diesem Ger\xE4t/Browser nicht verf\xFCgbar");return}let u=a.createButton({onClick:()=>{},buttonColor:"black",buttonType:"pay",buttonSizeMode:"fill"}),g={apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:r.allowedPaymentMethods,emailRequired:!0,shippingAddressRequired:!0,shippingAddressParameters:{phoneNumberRequired:!0},transactionInfo:{totalPriceStatus:"FINAL",totalPrice:parseFloat(e.amount+"").toFixed(2),currencyCode:this.payPalIsoCurrencyCode,countryCode:"DE"},merchantInfo:r.merchantInfo,callbackIntents:["PAYMENT_AUTHORIZATION"]};u.addEventListener("click",()=>{a.loadPaymentData(g).catch(v=>{v.statusCode==="CANCELED"?console.log("Google Pay vom Nutzer abgebrochen"):console.error("Google Pay loadPaymentData Fehler:",v)})}),u.style.width="100%",u.style.height="40px",o.appendChild(u),console.log("Google Pay Button gerendert")}catch(i){console.log("Google Pay Initialisierung fehlgeschlagen:",i)}})}onGooglePayAuthorized(e,i,r,o){return li(this,null,function*(){try{console.log("googlepay SDK members (all):",Object.getOwnPropertyNames(Object.getPrototypeOf(e)));let a={intent:"AUTHORIZE",purchase_units:[{amount:{currency_code:this.payPalIsoCurrencyCode,value:parseFloat(r.amount+"").toFixed(2)},description:r.invoiceText}]},s=o?.merchantInfo?.merchantId;console.log("Google Pay - Sende confirmOrder (Single-Step)...",{merchantId:s,orderPayload:a});let u=(yield ec(this.hupSubscriptionsService.createPayPalOrder(a)))?.id;if(!u)throw new Error("PayPal order id missing for Google Pay confirmOrder");let g=yield e.confirmOrder({orderId:u,paymentMethodData:i.paymentMethodData});if(console.log("Google Pay - PayPal Response:",g),g.status==="APPROVED"||g.status==="COMPLETED"){r.transactionId=g.id,r.status="COMPLETED";let v=i.shippingAddress;v&&(r.clientAddress=new Do(v.address1||"",v.address2||"",v.postalCode||"",v.locality||"",v.countryCode||"",null,null,null,null,null,null,null,null));let w=this.buildGooglePayAddressFormValue(i,g);this.paymentTransactionService.setNewTransaction(N({},r)),this.orderProcessingService.update(C=>re(N({},C),{transaction:r,addresses:re(N({},C.addresses),{deliveryAddress:w??C.addresses?.deliveryAddress,billingAddress:w??C.addresses?.billingAddress})}
619)),this.onlinePaymentSuccess.emit(!0)}else throw new Error(`PayPal Status: ${g.status}`)}catch(a){throw a}})}mapUsersAddress(e){if(!e)return null;let i=e.address_line_1?.split(" ")||[],r=i.pop()||"",o=i.join(" "),a=e.admin_area_2,s=e.postal_code,l=e.country_code,u=e.address_line_2;return new Do(o,r,s,a,l,null,null,null,null,null,null,null,null)}buildGooglePayAddressFormValue(e,i){let r=e?.shippingAddress??i?.purchase_units?.[0]?.shipping?.address;if(!r)return null;let o=e?.shippingAddress?.name??i?.purchase_units?.[0]?.shipping?.name?.full_name??"",a=i?.payer?.name?.given_name??"",s=i?.payer?.name?.surname??"",l=o||`${a} ${s}`.trim(),u=l.split(" ")[0]??"",g=l.split(" ").slice(1).join(" ")??"",v=this.baseDataService.getBaseData("countrycodes"),w=null;v.forEach(oe=>{oe.value==(r.countryCode??r.country_code)&&(w=oe.key)});let C=this.configService.getConfig("paypal.defaultAddressCode"),S=null;C&&this.baseDataService.getBaseData("addresscodes").forEach(dt=>{dt.key==C.value&&(S=dt)});let D=r.address1??r.address_line_1??"",O=r.address2??r.address_line_2??"",V=r.postalCode??r.postal_code??"",Q=r.locality??r.admin_area_2??"",ie=D.split(" "),U=ie.pop()||"",Me=ie.join(" "),Oe=this.getKnownUserEmail(),ae=this.normalizeExternalPhone(e?.shippingAddress?.phoneNumber??"","");return{showAddress:!0,person:{salutation:S??"",title:"",firstName:u,lastName:g,firstname:u,lastname:g,initials:"",middlename:""},userData:{email:Oe,phonecode:ae.phonecode,phone:ae.phone},address:{street:Me??"",houseNo:U??"",houseno:U??"",zipcode:V??"",city:Q??"",country:w??"",extraLine:O??"",district:""}}}getKnownUserEmail(){let e=this.orderProcessingService.snapshot();return e?.addresses?.deliveryAddress?.userData?.email??e?.addresses?.billingAddress?.userData?.email??e?.registration?.email??e?.addresses?.email??e?.userData?.emailList?.[0]??""}getKnownUserPhone(){let e=this.orderProcessingService.snapshot(),i=e?.addresses?.deliveryAddress?.userData,r=e?.addresses?.billingAddress?.userData,o=i?.phonecode??r?.phonecode??"",a=i?.phone??r?.phone??"";return this.normalizeExternalPhone(a,o)}normalizeExternalPhone(e,i){let r=(i??"").toString().trim(),o=(e??"").toString().trim();return r&&o.startsWith(r)&&(o=o.slice(r.length).trim()),o=o.replace(/^[\s/-]+/,"").trim(),{phonecode:r,phone:o}}buildPayPalAddressFormValue(e,i,r){if(!e)return null;let o="",a="";if(r)o=i?.subscriber?.name?.given_name,a=i?.subscriber?.name?.surname;else{let O=i?.payer?.name,V=i?.purchase_units?.[0]?.shipping?.name?.full_name??"";o=O?.given_name??V.split(" ")[0]??"",a=O?.surname??V.split(" ").slice(1).join(" ")??""}let s=this.getKnownUserEmail(),l=this.getKnownUserPhone(),u=i?.payer?.phone?.phone_number?.national_number??i?.subscriber?.phone?.phone_number?.national_number??i?.payer?.phone?.phone_number??i?.subscriber?.phone?.phone_number??i?.purchase_units?.[0]?.shipping?.phone_number?.national_number??i?.purchase_units?.[0]?.shipping?.phone_number??l.phone??"",g=i?.payer?.phone?.phone_number?.country_code??i?.subscriber?.phone?.phone_number?.country_code??i?.purchase_units?.[0]?.shipping?.phone_number?.country_code??l.phonecode??"",v=this.normalizeExternalPhone(u,g),w=this.baseDataService.getBaseData("countrycodes"),C=null;w.forEach(O=>{O.value==e.country&&(C=O.key)});let S=this.configService.getConfig("paypal.defaultAddressCode"),D=null;return S&&this.baseDataService.getBaseData("addresscodes").forEach(V=>{V.key==S.value&&(D=V)}),{showAddress:!0,person:{salutation:D??"",title:"",firstname:o,lastname:a,initials:"",middlename:""},userData:{email:s,phonecode:v.phonecode,phone:v.phone},address:{street:e.street??"",houseno:e.houseno??"",zipcode:e.zipcode??"",city:e.city??"",country:C??"",extraLine:"",district:e.district??""}}}goToBuckaroo(){this.redirectService.redirect(this.transaction.redirectUrl,!0,!1)}toPayPalStartTime(e){if(!e)return null;let i=new Date(e);return isNaN(i.getTime())||this.isToday(i)?null:new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),2,0,0,0)).toISOString()}isToday(e){let i=new Date;return e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()&&e.getDate()===i.getDate()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-onlinepayment"]],viewQuery:function(i,r){if(i&1&&De(dse,5),i&2){let o;se(o=le())&&(r.paypalButtonContainer=o.first)}},inputs:{subscriptionStartTime:[1,"subscriptionStartTime"]},outputs:{onlinePaymentSuccess:"onlinePaymentSuccess"},decls:2,vars:2,consts:[["paypalButtonContainer",""],["id","buckarooContainer",1,"mt-5","text-center"],["id","paypal-button-container",1,"col-xl-6","offset-xl-3"],[3,"innerHTML",4,"appApplyIfNotEmpty"],["id","idealButton",3,"click"],["alt","IDEAL Logo","src","assets/images/IDEAL_logo.svg"],[3,"innerHTML"]],template:function(i,r){i&1&&x(0,pse,4,1,"div",1)(1,mse,2,0,"div",2),i&2&&(b(r.isBuckaroo&&r.transaction&&r.transaction.transactionId?0:-1),c(),b(r.isPaypal?1:-1))},dependencies:[ze],styles:[`#idealButton[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:150px;width:150px;display:block;margin:auto}#idealButton[_ngcontent-%COMP%]{cursor:pointer} 620/*# sourceMappingURL=onlinepayment.component-QPBGMPNC.css.map */`]})}}return t})();var fse=t=>({infoText:t}),hse=t=>[t];function gse(t,n){if(t&1&&_(0,"app-general-warning",6),t&2){let e=h();f("warnings",zi(3,hse,zi(1,fse,e.translationService.getTranslation("currentProduct.alreadyOrdered"))))}}function _se(t,n){if(t&1&&(p(0,"mat-error",12),E(1),m()),t&2){let e=h().$implicit;c(),R("",e.getError("message")," ")}}function vse(t,n){if(t&1&&(p(0,"div",8)(1,"mat-form-field",24)(2,"mat-label"),E(3),m(),_(4,"input",25),x(5,_se,2,1,"mat-error",12),m()()),t&2){let e=n.$implicit,i=n.$index,r=h();c(3),he(r.additionalData[i].description),c(),f("formControlName",i)("value",e.value),c(),b(e.hasError("message")?5:-1)}}function bse(t,n){if(t&1&&_(0,"img",34),t&2){let e=h().$implicit;f("ngSrc",e.image.src)("width",500)("height",24)("alt",e==null||e.image==null?null:e.image.altText)}}function yse(t,n){if(t&1&&E(0),t&2){let e=h().$implicit;
620R(" ",e.description," ")}}function Cse(t,n){if(t&1){let e=B();p(0,"div",28),te(1,"cssProperty"),te(2,"cssProperty"),te(3,"cssProperty"),te(4,"cssProperty"),te(5,"cssProperty"),te(6,"cssProperty"),p(7,"div",30),T("keydown.space",function(){let r=A(e).$implicit,o=h(2);return k(o.onSelectFormOfPayment(r))})("keydown.enter",function(){let r=A(e).$implicit,o=h(2);return k(o.onSelectFormOfPayment(r))})("click",function(){let r=A(e).$implicit,o=h(2);return k(o.onSelectFormOfPayment(r))}),p(8,"label",31),_(9,"input",32),p(10,"span",33),x(11,bse,1,4,"img",34)(12,yse,1,1),m()()()()}if(t&2){let e=n.$implicit,i=h(2);f("className","mb-3 col-12 col-sm-6 col-"+Te(1,3,i.CssPropertiesEnum.formOfPaymentFxFlex,i.vHostService)+" col-sm-"+Te(2,6,i.CssPropertiesEnum.formOfPaymentFxFlexSM,i.vHostService)+" col-md-"+Te(3,9,i.CssPropertiesEnum.formOfPaymentFxFlexMD,i.vHostService)+" col-lg-"+Te(4,12,i.CssPropertiesEnum.formOfPaymentFxFlexLG,i.vHostService)+" col-xl-"+Te(5,15,i.CssPropertiesEnum.formOfPaymentFxFlexXL,i.vHostService)+" col-xxl-"+Te(6,18,i.CssPropertiesEnum.formOfPaymentFxFlexXXL,i.vHostService)+" offer-detail__payment-method-item"),c(9),f("checked",e===i.selectedFormOfPayment),c(2),b(e.image?11:12)}}function Sse(t,n){if(t&1&&_(0,"mat-error",29),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("error_required_field"),y)}}function xse(t,n){if(t&1&&(_(0,"div",26),p(1,"div",27),W(2,Cse,13,21,"div",28,X),x(4,Sse,1,1,"mat-error",29),m()),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("choseFormOfPayment"),y),c(2),q(e.formsOfPayment),c(2),b(e.paymentFormGroup.get("formOfPayment").hasError("required")?4:-1)}}function wse(t,n){if(t&1&&(p(0,"mat-option",35),E(1),m()),t&2){let e=h().$implicit;f("value",e),c(),R("",e.description," ")}}function Ese(t,n){if(t&1&&x(0,wse,2,2,"mat-option",35),t&2){let e=n.$implicit;b(e.useInFE?0:-1)}}function Dse(t,n){if(t&1&&(p(0,"mat-error",12),E(1),m()),t&2){let e=h();c(),R("",e.paymentFormGroup.get("paymentFrequency").getError("message")," ")}}function Tse(t,n){if(t&1&&(p(0,"mat-hint",38),E(1),m()),t&2){h();let e=J(3);c(),Pe("",e.value.length," / ",e.maxLength,"")}}function Mse(t,n){if(t&1&&(p(0,"mat-error",12),E(1),m()),t&2){let e=h(2);c(),R("",e.paymentFormGroup.get("iban").getError("message")," ")}}function Ise(t,n){t&1&&(p(0,"div",39),_(1,"app-loading-spinner",42),m()),t&2&&(c(),f("type","small"))}function Ase(t,n){if(t&1&&(p(0,"mat-error",12),E(1),m()),t&2){let e=h(2);c(),R("",e.paymentFormGroup.get("bic").getError("message")," ")}}function kse(t,n){if(t&1){let e=B();p(0,"mat-form-field",36),_(1,"mat-label",10),p(2,"input",37,1),T("keyup",function(){A(e);let r=h();return k(r.transferIban())}),m(),x(4,Tse,2,2,"mat-hint",38)(5,Mse,2,1,"mat-error",12),m(),x(6,Ise,2,1,"div",39),p(7,"mat-form-field",40),_(8,"mat-label",10)(9,"input",41),x(10,Ase,2,1,"mat-error",12),m()}if(t&2){let e=J(3),i=h();c(),f("innerHTML",i.translationService.getTranslation("payment_iban"),y),c(),f("value",i.paymentFormGroup.get("iban").value),c(2),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?4:-1),c(),b(i.paymentFormGroup.get("iban").hasError("message")?5:-1),c(),b(i.paymentFormGroup.get("iban").status==="PENDING"?6:-1),c(2),f("innerHTML",i.translationService.getTranslation("payment_bic"),y),c(),f("value",i.paymentFormGroup.get("bic").value),c(),b(i.paymentFormGroup.get("bic").hasError("message")?10:-1)}}function Ose(t,n){if(t&1&&(p(0,"mat-hint",38),E(1),m()),t&2){h();let e=J(3);c(),Pe("",e.value.length," / ",e.maxLength,"")}}function Pse(t,n){if(t&1&&(p(0,"mat-error"),E(1),m()),t&2){let e=h(2);c(),he(e.paymentFormGroup.get("accountHolder").getError("message"))}}function Nse(t,n){if(t&1&&(p(0,"mat-form-field",13),_(1,"mat-label",10)(2,"input",43,2),x(4,Ose,2,2,"mat-hint",38)(5,Pse,2,1,"mat-error"),m()),t&2){let e=J(3),i=h();c(),f("innerHTML",i.translationService.getTranslation("payment_holder"),y),c(),f("value",i.paymentFormGroup.get("accountHolder").value),c(2),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?4:-1),c(),b(i.paymentFormGroup.get("accountHolder").hasError("message")?5:-1)}}function Rse(t,n){if(t&1&&(p(0,"mat-hint",38),E(1),m()),t&2){h();let e=J(3);c(),Pe("",e.value.length," / ",e.maxLength,"")}}function Fse(t,n){if(t&1&&(p(0,"mat-error",12),E(1),m()),t&2){let e=h(2);c(),R(" ",e.paymentFormGroup.get("invoiceEmail").hasError("required")?e.translationService.getTranslation("error_email_empty"):e.translationService.getTranslation("error_email_invalid")," ")}}function Lse(t,n){if(t&1&&(p(0,"mat-form-field",14),_(1,"mat-label",10)(2,"input",44,3),x(4,Rse,2,2,"mat-hint",38)(5,Fse,2,1,"mat-error",12),m()),t&2){let e=J(3),i=h();c(),f("innerHTML",i.translationService.getTranslation("payment_invoice_email"),y),c(),f("value",i.paymentFormGroup.get("invoiceEmail").value),
620c(2),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?4:-1),c(),b(i.paymentFormGroup.get("invoiceEmail").valid?-1:5)}}function Bse(t,n){if(t&1&&(p(0,"mat-option",46),E(1),m()),t&2){let e=n.$implicit,i=h(2);f("value",e),c(),R("",i.variantCodeDescriptions.get(e)," ")}}function Hse(t,n){if(t&1&&(p(0,"mat-error",12),E(1),m()),t&2){let e=h(2);c(),R("",e.paymentFormGroup.get("editionId").getError("message")," ")}}function Vse(t,n){if(t&1&&(p(0,"mat-form-field",18),_(1,"mat-label",10),p(2,"mat-select",45),W(3,Bse,2,2,"mat-option",46,X),m(),x(5,Hse,2,1,"mat-error",12),m()),t&2){let e,i=h();c(),f("innerHTML",i.translationService.getTranslation("order_edition"),y),c(2),q((e=i.offer())==null||e.product==null?null:e.product.variantCodeList),c(2),b(i.paymentFormGroup.get("editionId").hasError("message")?5:-1)}}function jse(t,n){if(t&1&&_(0,"mat-error",48),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("order_sepaaccept_error"),y)}}function zse(t,n){if(t&1&&(p(0,"div",19)(1,"mat-checkbox",47,4),_(3,"div",10),m(),x(4,jse,1,1,"mat-error",48),m()),t&2){let e=J(2),i=h();c(3),f("innerHTML",i.translationService.getTranslation("order_sepaaccept"),y),c(),b(!e.checked&&i.checkBoxes()?4:-1)}}function Use(t,n){if(t&1){let e=B();p(0,"app-onlinepayment",49),T("onlinePaymentSuccess",function(r){A(e);let o=h();return k(o.setOnlinePaymentSuccess(r))}),m()}if(t&2){let e=h();f("subscriptionStartTime",e.selectedStartDate())}}var Eb=(()=>{class t{constructor(){this.CssPropertiesEnum=tt,this.document=typeof document=="object"?document:null,this.readyState=new z,this.onlinePaymentSelected=new z,this.translationService=d(Y),this.orderTrackingService=d(Gr),this.imageService=d(Ei),this.vHostService=d(Ai),this.http=d(Be),this.orderProcessService=d(zn),this.subscriptionService=d(ct),this.configService=d(Ce),this.paymentTransactionService=d(Ll),this.baseDataService=d(vt),this.imageHandler=d(Wr),this.paymentService=d($r),this.currentProductAlreadyOrdered=we(),this.offer=we(),this.userData=we(),this.formBuilder=d(kt),this.formsOfPayment=[],this.allFormsOfPayment=[],this.paymentFrequencies=[],this.allPaymentFrequencies=[],this.additionalData=[],this.selectedFormOfPayment=null,this.isOnlinePayment=ee(!1),this.needIbanBic=!1,this.askForPaymentAccountHolder=!1,this.needInvoiceMailAddress=ee(!1),this.showSEPABox=ee(!1),this.askForEditionId=ee(!1),this.minDate=ee(new Date),this.maxDate=ee(null),this.calculatingPrice=!1,this.priceCalculationError=!1,this.offerPrice=ee(null),this.variantCodeDescriptions=new Map,this.selectedStartDate=ee(new Date),this.checkBoxes=ee(!1),this.onlinePaymentSuccess=ee(!1),this.autoNavigatedAfterOnlinePayment=!1,this.subscriptions=new Ie,this.lastSyncedRegistrationEmail=null,this.OFFER_ID_KEY="OfferId: ",this.SSO_ID_KEY=", User-SSO-Id: ",this.WEBABO_TRANSACTION_ID_KEY=", Webabo-Transaction-Id: ",this.userDataChanged=qa(()=>{this.userData(),qn(()=>this.prepareOnlinePaymentTransaction())})}isDigitalOffer(){return si(this.offer()?.offerType)}ngOnInit(){this.buildPaymentForm(),this.handleBaseData(),this.handleConfigs(),this.offer()&&(this.handleFormsOfPayment(this.offer()),this.handleVariantCodes(this.offer()),this.handleRequiredAdditionalData()),this.observeStatusChanges(),this.setUniquePaymentInfos(),this.currentProductAlreadyOrdered()&&this.skipDirectlyToLastStep()}ngOnDestroy(){this.subscriptions.unsubscribe()}observeStatusChanges(){this.subscriptions.add(this.paymentFormGroup.statusChanges.pipe(rl(500)).subscribe(e=>{e==="VALID"&&this.readyState.emit(!0)})),this.subscriptions.add(this.paymentFormGroup.get("startdate").valueChanges.subscribe(e=>{this.selectedStartDate.set(e)})),this.subscriptions.add(this.paymentFormGroup.get("formOfPayment").valueChanges.subscribe(e=>{this.handleFormOfPaymentChange(e)})),this.subscriptions.add(this.orderProcessService.connectForm(this.paymentFormGroup,e=>e,(e,i)=>re(N({},e),{payment:i}))),this.subscriptions.add(this.orderProcessService.getOrderState().pipe(F(e=>e?.registration?.email||e?.ssoEmail),rr()).subscribe(e=>{if(!this.needInvoiceMailAddress()||!e)return;let i=this.paymentFormGroup.get("invoiceEmail");(!i.value||i.value===this.lastSyncedRegistrationEmail)&&(i.patchValue(e),this.lastSyncedRegistrationEmail=e)})),this.orderProcessService.update(e=>re(N({},e),{payment:this.paymentFormGroup.getRawValue()}))}handleRequiredAdditionalData(){this.offer().requiredAdditionalData&&this.offer().requiredAdditionalData.forEach(e
620=>{e.dataSets.forEach(i=>{let r=new dn(i.value);i.itemkey=e.itemkey,this.paymentFormGroup.get("extendedData").push(r),this.additionalData.push(i),this.orderProcessService.update(o=>re(N({},o),{additionalData:this.additionalData}))})})}handleBaseData(){this.allPaymentFrequencies=this.baseDataService.getBaseData("invoicemethods"),this.allFormsOfPayment=this.baseDataService.getBaseData("paymentmethods")}handleConfigs(){this.askForPaymentAccountHolder=this.configService.getConfig("askForPaymentAccountHolder").value==="1",this.configService.loadConfig("order.showSEPABox").subscribe(e=>{e&&e.value&&this.showSEPABox.set(e.value==="true"||e.value==="1")}),this.configService.loadConfig("offer.askForEditionId").subscribe(e=>{e&&e.value&&this.askForEditionId.set(e.value==="1")})}buildPaymentForm(){this.paymentFormGroup=this.formBuilder.group({formOfPayment:["",Z.required],paymentFrequency:["",Z.required],iban:["",Z.required],bic:[{value:this.translationService.getTranslation("filled_automatically"),disabled:!0}],accountHolder:[""],sepaOptIn:[""],optinFormArray:new Go([]),invoiceEmail:["",[Z.required,Z.pattern(ls.EMAIL)]],extendedData:new Go([]),startdate:new dn(null,Z.required),enddate:[""],editionId:[""]})}getAdditionalDataControls(){return this.paymentFormGroup.get("extendedData").controls}onSelectFormOfPayment(e){e&&(this.selectedFormOfPayment=e,this.paymentFormGroup.get("formOfPayment").patchValue(e??null))}transferIban(){}handleVariantCodes(e){if(e?.product?.variantCodeList.length>0){let i=localStorage.getItem("variants_"+e?.product?.productCode);i&&i.length>0?JSON.parse(i).forEach(o=>{this.variantCodeDescriptions.set(o.variantCode,o.variantName)}):this.offer()?.product?.variantCodeList.forEach(r=>{this.baseDataService.getVariantCode(r).subscribe(o=>{this.variantCodeDescriptions.set(o.key,o.description)})})}}calcPriceOfSubscription(){let e=this.orderProcessService.buildOrderDto();this.orderTrackingService.pushEvent(Fn.ADDED_PAYMENT,e),!(!e.email||e.email==="")&&(this.offer().priceCalculationActivated?(this.priceCalculationError=!1,this.setCalculatingPrice(!0),this.subscriptionService.getPriceForSubscription(e).subscribe({next:i=>{let r=this.orderProcessService.buildOrderDto();this.orderTrackingService.pushEvent(Fn.CALCULATED_PRICE,i),this.setCalculatingPrice(!1);let o={validFrom:r.validDate.validFrom,validUntil:null},a=[];if(i.forEach(l=>{if(l.trial){let u=new Xs(r.quantity,o,r.currency,l.price,null,!0,l.porto,l.portoDescription);a.push(u)}else if(l.previewPrice){let u=new Xs(r.quantity,o,l.previewPrice.currency,l.previewPrice.price,this.offer().priceCalculationSummary,!1,l.porto,l.portoDescription);a.push(u)}else if(l.price>0||a.length==0){let u=new Xs(r.quantity,o,l.currency,l.price,this.offer().priceCalculationSummary,!1,l.porto,l.portoDescription);a.push(u)}}),this.configService.getConfig("order.price.combiPricesAsSum")?.asBoolean()&&a.length>1){let l=0;a.forEach(u=>l=l+u.price),a[0].price=l,this.offerPrice.set([a[0]])}else this.offerPrice.set(a);this.orderProcessService.update(l=>re(N({},l),{offerPrice:this.offerPrice()})),this.handleTransaction(this.offerPrice(),r)},error:i=>{this.setCalculatingPrice(!1),this.priceCalculationError=!0,console.error(i)}})):(this.offerPrice.set([new Xs(1,{validFrom:new Date,validUntil:new Date},null,this.offer().offerPrice?.price,this.offer().priceCalculationSummary,!1,null,null)]),this.orderProcessService.update(i=>re(N({},i),{offerPrice:this.offerPrice()})),this.handleTransaction(this.offerPrice(),e)))}onNextClick(){this.paymentFormGroup.valid&&(this.readyState.emit(!0),this.parentStepper?.selected&&(this.parentStepper.selected.completed=!0),this.calcPriceOfSubscription(),setTimeout(()=>this.parentStepper?.next()))}handleTransaction(e,i){if(!Array.isArray(e)||e.length===0)return;i=i??this.safeBuildOrderDto();let r=new wb;r.amount=e[0]?.price;let o=this.orderTrackingService.getTransactionId(),a=this.userData()?.userSSOId;r.invoiceText=this.OFFER_ID_KEY+this.offer()?.recno+this.SSO_ID_KEY+(a>0?a:"0")+this.WEBABO_TRANSACTION_ID_KEY+(o??"-");let s=i?.payment?.paymentType?.paymentMethod??this.selectedFormOfPayment?.paymentMethod,l=this.configService.getConfig("paymentprovider.paypal.paymentcode"),u=this.configService.getConfig("paymentprovider.buckaroo.paymentcode");s===l?.value?(r.provider=ed.PAYPAL,r.billingPlanId=this.offer().offerPlan?.paymentPlans?.filter(g=>g.paymentProvider.toString()==="PAYPAL")[0]?.externalPlanId,r.billingPlanId&&(r.amount="0"),this.isOnlinePayment.set(!0)):s==u?.value&&(r.provider=ed.BUCKAROO,r.orderObject=i??this.safeBuildOrderDto(),this.isOnlinePayment.set(!0)),this.isOnlinePayment()&&this.paymentTransactionService.setNewTransaction(r)}handleFormsOfPayment(e){e.offerPaymentOfferType?.forEach(i=>
620{let r=this.allFormsOfPayment.find(o=>o.key===i.paymentMethod);if(r&&r.useInFE&&i.paymentFrequencyList?.length>0){this.imageService.getImagePaymentType(i.paymentMethod).subscribe(a=>{a&&a.type&&(i.image=this.imageHandler.addAltText(a,i.description??this.translationService.getTranslation("paymentMethod.image.altText.default")))}),i.description=r.description;let o=this.translationService.getTranslation("paymentcode."+r.key);o&&o!==""&&(i.description=o),this.paymentService.getPaymentMethodByCode(i?.paymentMethod).subscribe(a=>{i.invoiceType=a.invoiceType,this.selectedFormOfPayment?.paymentMethod===i.paymentMethod&&this.applyInvoiceEmailRequirement(i)}),this.formsOfPayment.push(i)}})}handleFormOfPaymentChange(e){this.paymentFrequencies=[],this.onlinePaymentSuccess.set(!1),this.autoNavigatedAfterOnlinePayment=!1;let i=this.formsOfPayment?.find(r=>r.paymentMethod===e.paymentMethod);i?.paymentFrequencyList?.forEach(r=>{let o=this.allPaymentFrequencies.find(a=>a.key===r);o&&(this.onlinePaymentSelected.emit(i.paymentType==="ONLINEPAYMENT"),this.isOnlinePayment.set(i.paymentType==="ONLINEPAYMENT"),this.setValidatorsAtIBAN(i.paymentType==="DIRECTDEBITIBAN",!1),this.applyInvoiceEmailRequirement(i),this.paymentFrequencies.push(o))}),this.selectedFormOfPayment=e,this.paymentFrequencies.length===1&&this.paymentFormGroup.get("paymentFrequency").setValue(this.paymentFrequencies[0]),this.paymentFormGroup.get("startdate").setValue(new Date),this.paymentFormGroup.get("editionId"),this.paymentFormGroup.get("editionId")?.setValue(this.offer()?.product?.variantCodeList?.[0]??null),this.prepareOnlinePaymentTransaction()}prepareOnlinePaymentTransaction(){if(!this.isOnlinePayment())return;let e=this.offerPrice()?.[0],i=e?.price??this.offer()?.offerPrice?.price??0,r
620=e?.currency??"EUR",o=[new Xs(1,{validFrom:new Date,validUntil:null},r,i,this.offer()?.priceCalculationSummary,!1,null,null)];setTimeout(()=>this.handleTransaction(o,null),0)}setCalculatingPrice(e){this.calculatingPrice=e,this.orderProcessService.update(i=>re(N({},i),{calculatingPrice:e}))}safeBuildOrderDto(){try{return this.orderProcessService.buildOrderDto()}catch{return null}}setUniquePaymentInfos(){this.formsOfPayment.length===1&&this.onSelectFormOfPayment(this.formsOfPayment[0])}setValidatorsAtIBAN(e,i){let r="iban",o="bic",a="sepaOptIn",s="accountHolder";if(i){let l="Bonus";r=r.concat(l),o=o.concat(l),s=s.concat(l)}e?(this.paymentFormGroup.get(r).enable(),this.paymentFormGroup.get(r).setValidators(Z.required),this.paymentFormGroup.get(o).setValidators(Z.required),this.askForPaymentAccountHolder&&this.paymentFormGroup.get(s).setValidators(Z.required),this.paymentFormGroup.get(a).enable(),this.showSEPABox()&&this.paymentFormGroup.get(a).setValidators(Z.required),this.setAsyncValidators(),i||(this.needIbanBic=!0)):(this.paymentFormGroup.get(r).clearValidators(),this.paymentFormGroup.get(r).clearAsyncValidators(),this.paymentFormGroup.get(o).clearValidators(),this.paymentFormGroup.get(s).clearValidators(),this.paymentFormGroup.get(a).clearValidators(),this.paymentFormGroup.get(a).disable(),this.paymentFormGroup.get(r).reset(),this.paymentFormGroup.get(s).reset(),this.paymentFormGroup.get(r).disable(),i||(this.needIbanBic=!1,this.toggleBic()))}onCardClick(e){e?this.paymentFormGroup.get("formOfPayment").patchValue(e):this.paymentFormGroup.get("formOfPayment").patchValue(null)}setAsyncValidators(){this.paymentFormGroup.get("iban").setAsyncValidators(Hi.validateIBAN(this.http,this.translationService,this.paymentFormGroup.get("bic")))}applyInvoiceEmailRequirement(e){let i=e?.invoiceType==="EMAILDELIVERY";if(this.setValidatorsAtInvoiceEmail(i),i&&!this.paymentFormGroup.get("invoiceEmail").value){let r=this.orderProcessService.snapshot(),o=r?.registration?.email||r?.ssoEmail;this.paymentFormGroup.get("invoiceEmail").patchValue(o),this.lastSyncedRegistrationEmail=o}}setValidatorsAtInvoiceEmail(e){let i=this.paymentFormGroup.get("invoiceEmail");e?(i.setValidators([Z.required,Z.pattern(ls.EMAIL)]),this.needInvoiceMailAddress.set(!0)):(i.clearValidators(),i.reset(),this.needInvoiceMailAddress.set(!1)),i.updateValueAndValidity()}toggleBic(){this.needIbanBic||(this.paymentFormGroup.get("bic")?.setValue(null),this.paymentFormGroup.get("bic")?.markAsPristine(),this.paymentFormGroup.get("bic")?.markAsUntouched())}setOnlinePaymentSuccess(e){this.onlinePaymentSuccess.set(e),e&&this.syncPriceFromOnlineTransaction(),e&&!this.autoNavigatedAfterOnlinePayment&&(this.autoNavigatedAfterOnlinePayment=!0,setTimeout(()=>this.onNextClick(),0))}syncPriceFromOnlineTransaction(){let e=this.paymentTransactionService.getValue(),i=Number(e?.amount??this.offer()?.offerPrice?.price??0);if(!Number.isFinite(i)||i<0)return;let r=[new Xs(1,{validFrom:new Date,validUntil:null},this.payPalCurrencyFallback(),i,this.offer()?.priceCalculationSummary,!1,null,null)];this.offerPrice.set(r),this.orderProcessService.update(o=>re(N({},o),{offerPrice:r}))}payPalCurrencyFallback(){return this.offerPrice()?.[0]?.currency??"EUR"}skipDirectlyToLastStep(e=0){let i=this.parentStepper,r=i?.steps?.toArray?.()??[];if(!i||r.length===0){e<10&&setTimeout(()=>this.skipDirectlyToLastStep(e+1),50);return}this.readyState.emit(!0),i.selected&&(i.selected.completed=!0),setTimeout(()=>{i.selectedIndex=Math.max(r.length-1,0)},0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-payment-step"]],inputs:{parentStepper:"parentStepper",currentProductAlreadyOrdered:[1,"currentProductAlreadyOrdered"],offer:[1,"offer"],userData:[1,"userData"]},outputs:{readyState:"readyState",onlinePaymentSelected:"onlinePaymentSelected"},decls:27,vars:20,consts:[["picker1",""],["iban",""],["accountHolder",""],["email",""],["sepaBox",""],[1,"mt-3","offer-detail__form","offer-detail__form--payment",3,"formGroup"],[3,"warnings"],["formArrayName","extendedData",1,"offer-detail__payment-extended-data"],[1,"offer-detail__payment-extended-data-item"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--payment-frequency"],[3,"innerHTML"],["formControlName","paymentFrequency","required","","data-cy","select-payment-frequency",3,"value"],[1,"offer-detail__error"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--account-holder"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--invoice-email"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--startdate",3,"click"],["matInput","","readonly","","formControlName","startdate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--edition"],[1,"col-12","offer-detail__sepa-checkbox-container"],[3,"subscriptionStartTime"],[1,"text-end","mt-1","offer-detail__next-btn","offer-detail__next-btn--payment"],["type","button","mat-raised-button","",1,"me-3","offer-detail__back-btn","offer-detail__back-btn--payment",3,"click","innerHTML"],["mat-raised-button","","color","primary","type","submit","data-cy","btn-payment-next",3,"click","innerHTML","disabled"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--extended-data"],["matInput","",3,"formControlName","value"],[1,"col-12","pb-2","offer-detail__payment-method-label",3,"innerHTML"],[1,"row","offer-detail__row","offer-detail__row--payment-methods"],[3,"className"],[1,"offer-detail__error",3,"innerHTML"],["data-bs-toggle","collapse","tabindex","0","data-cy","choose-form-of-payment",1,"offer-detail__payment-method-select",3,"keydown.space","keydown.enter","click"],[1,"card-radio-label","w-100","offer-detail__payment-method-label"],["type","radio","name","pay-method","id","pay-methodoption1",1,"card-radio-input","offer-detail__payment-method-radio",3,"checked"],[1,"card-radio","py-3","text-center","text-truncate","offer-detail__payment-method-description"],[1,"image","custom-icon","d-block","offer-detail__payment-method-img",3,"ngSrc","width","height","alt"],["data-cy","option-payment-frequency",3,"value"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--iban"],["maxLength","34","matInput","","formControlName","iban","oninput","this.value = this.value.toUpperCase()","data-cy","input-iban",3,"keyup","value"],["align","end"],[1,"offer-detail__iban-spinner"],[1,"col-12","offer-detail__form-field","offer-detail__form-field--bic"],["matInput","","formControlName","bic","data-cy","input-bic",3,"value"],[3,"type"],["matInput","","minlength","1","maxlength","255","formControlName","accountHolder","data-cy","input-bic",3,"value"],["maxLength","50","matInput","","formControlName","invoiceEmail",3,"value"],["formControlName","editionId","required",""],[3,"value"],["formControlName","sepaOptIn","required","","aria-required","true",1,"text-wrap","offer-detail__sepa-checkbox"],[1,"small","errorOffset","offer-detail__error",3,"innerHTML"],[3,"onlinePaymentSuccess","subscriptionStartTime"]],template:function(i,r){if(i&1){let o=B();p(0,"form",5),x(1,gse,1,5,"app-general-warning",6),ni(2,7),W(3,vse,6,4,"div",8,X),Jt(),x(5,xse,5,2),p(6,"mat-form-field",9),_(7,"mat-label",10),p(8,"mat-select",11),W(9,Ese,1,1,null,null,X),m(),x(11,Dse,2,1,"mat-error",12),m(),x(12,kse,11,8)(13,Nse,6,4,"mat-form-field",13)(14,Lse,6,4,"mat-form-field",14),p(15,"mat-form-field",15),T("click",function(){A(o);let s=J(20);return k(s.open())}),_(16,"mat-label",10)(17,"input",16)(18,"mat-datepicker-toggle",17)(19,"mat-datepicker",null,0),m(),x(21,Vse,6,2,"mat-form-field",18)(22,zse,5,2,"div",19)(23,Use,1,1,"app-onlinepayment",20),p(24,"div",21)(25,"button",22),T("click",function(){return A(o),k(r.parentStepper.previous())}),m(),p(26,"button",23),T("click",function(){return A(o),k(r.onNextClick())}),m()()()}if(i&2){let o=J(20);f("formGroup",r.paymentFormGroup),c(),b(r.currentProductAlreadyOrdered()?1:-1),c(2),q(r.getAdditionalDataControls()),c(2),b(r.formsOfPayment.length>1?5:-1),c(2),f("innerHTML",r.translationService.getTranslation("payment_rhythm"),y),c(),f("value",r.paymentFormGroup.get("paymentFrequency").value),
620c(),q(r.paymentFrequencies),c(2),b(r.paymentFormGroup.get("paymentFrequency").hasError("message")?11:-1),c(),b(r.needIbanBic?12:-1),c(),b(r.askForPaymentAccountHolder?13:-1),c(),b(r.needInvoiceMailAddress()?14:-1),c(2),f("innerHTML",r.translationService.getTranslation("startdate"),y),c(),f("min",r.minDate())("max",r.maxDate())("matDatepicker",o),c(),f("for",o),c(3),b(r.isDigitalOffer()&&r.askForEditionId()?21:-1),c(),b(r.needIbanBic&&r.showSEPABox()?22:-1),c(),b(r.isOnlinePayment()&&!r.onlinePaymentSuccess()?23:-1),c(2),f("innerHTML",r.translationService.getTranslation("button_back"),y),c(),f("innerHTML",r.isOnlinePayment()?r.translationService.getTranslation("button_next"):r.translationService.getTranslation("button_check_price"),y)("disabled",!(r.paymentFormGroup.valid&&(!r.isOnlinePayment()||r.onlinePaymentSuccess())))}},dependencies:[Bn,Ot,wi,Bt,At,Wt,ai,Ef,wa,bt,Ut,Wu,Zo,Nt,Pt,Ht,cn,ir,Ri,qi,Ge,Ee,tr,ql,ei,Aa,ss,fH],styles:[`.card-radio[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #eff0f2;border-radius:.75rem;padding:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.card-radio[_ngcontent-%COMP%]:hover{cursor:pointer}.card-radio-label[_ngcontent-%COMP%]{display:block}.card-radio-input[_ngcontent-%COMP%]{display:none}.card-radio-input[_ngcontent-%COMP%]:checked + .card-radio[_ngcontent-%COMP%]{border-color:var(--buttonBackgroundColor)!important}.offer-detail__payment-method-img[_ngcontent-%COMP%]{object-fit:contain} 621/*# sourceMappingURL=payment-step.component-CIP2RZPL.css.map */`]})}}return t})();var Gse=["determinateSpinner"];function $se(t,n){if(t&1&&(Sn(),p(0,"svg",11),_(1,"circle",12),m()),t&2){let e=h();ce("viewBox",e._viewBox()),c(),sn("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ce("r",e._circleRadius())}}var Wse=new H("mat-progress-spinner-default-options",{providedIn:"root",factory:qse});function qse(){return{diameter:hH}}var hH=100,Yse=10,up=(()=>{class t{_elementRef=d(ue);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=d(zt,{optional:!0}),i=d(Wse);this._noopAnimations=e==="NoopAnimations"&&!!i&&!i._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",i&&(i.color&&(this.color=this._defaultColor=i.color),i.diameter&&(this.diameter=i.diameter),i.strokeWidth&&(this.strokeWidth=i.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=hH;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Yse)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&De(Gse,5),i&2){let o;se(o=le())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(ce("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),Mi("mat-"+r.color),sn("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),fe("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Ii],diameter:[2,"diameter","diameter",Ii],strokeWidth:[2,"strokeWidth","strokeWidth",Ii]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["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(i,r){if(i&1&&(x(0,$se,2,8,"ng-template",null,0,fa),p(2,"div",2,1),Sn(),p(4,"svg",3),_(5,"circle",4),m()(),Es(),p(6,"div",5)(7,"div",6)(8,"div",7),mo(9,8),m(),p(10,"div",9),mo(11,8),m(),p(12,"div",10),mo(13,8),m()()()),i&2){let o=J(1);c(4),ce("viewBox",r._viewBox()),c(),sn("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),ce("r",r._circleRadius()),c(4),f("ngTemplateOutlet",o),c(2),f("ngTemplateOutlet",o),c(2),f("ngTemplateOutlet",o)}},dependencies:[Ya],styles:[`.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.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 !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.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 .mdc-circular-progress__determinate-container{opacity:0}
621.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,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, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 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 .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__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__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.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}@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-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)}} 622`],encapsulation:2,changeDetection:0})}return t})();function Kse(t,n){t&1&&_(0,"mat-spinner",10),t&2&&f("diameter",18)}function Qse(t,n){t&1&&(p(0,"mat-icon",11),E(1," check "),m())}function Zse(t,n){if(t&1&&(p(0,"mat-error",12),E(1),m()),t&2){let e=h();c(),R(" ",e.loginFormGroup.get("email").hasError("required")?e.translationService.getTranslation("error_email_empty"):e.translationService.getTranslation("error_email_invalid")," ")}}function Xse(t,n){t&1&&_(0,"mat-spinner",10),t&2&&f("diameter",18)}function Jse(t,n){t&1&&(p(0,"mat-icon",11),E(1,"check"),m())}function ele(t,n){if(t&1&&_(0,"mat-error",19),t&2){let e=h(2);f("innerHTML",e.getPasswordErrorMessage(),y)}}function tle(t,n){if(t&1&&(p(0,"div",15),_(1,"div",16),m(),p(2,"mat-form-field",17),_(3,"mat-label",8)(4,"input",18),x(5,Xse,1,1,"mat-spinner",10)(6,Jse,2,0,"mat-icon",11)(7,ele,1,1,"mat-error",19),m()),t&2){let e=h();c(),f("innerHTML",e.translationService.getTranslation("offer.register.passwordText"),y),c(),f("hintLabel",e.getPasswordComplexityHint()),c(),f("innerHTML",e.translationService.getTranslation("register_password"),y),c(),fe("is-valid",e.loginFormGroup.get("password").valid),f("value",e.loginFormGroup.get("password").value),c(),b(e.loginFormGroup.get("password").pending?5:-1),c(),b(e.loginFormGroup.get("password").valid?6:-1),c(),b(e.loginFormGroup.get("password").invalid?7:-1)}}var Db=(()=>{class t{constructor(){this.translationService=d(Y),this.orderProcessService=d(zn),this.loginService=d(ft),this.configService=d(Ce),this.httpClient=d(Be),this.router=d(et),this.passwordInputValidators=[Z.required],this.formBuilder=new kt,this.lastEmailInput="",this.isEditable=we(),this.isAuthenticated=we(),this.hideLoginBox=we(),this.stepReady=new z,this.registerPasswordVisibleConf=ee(!1),this.registerPasswordVisible=ee(!1),this.showPasswordInput=Yn(()=>this.registerPasswordVisibleConf()&&this.registerPasswordVisible()),this.passwordComplexity=ee(null),this.subscriptions=new Ie}ngOnInit(){this.loadConfigs(),this.buildRegisterForm(),this.setPasswordValidators(),this.observeChanges()}ngOnDestroy(){this.subscriptions.unsubscribe()}loadConfigs(){this.subscriptions.add(this.configService.loadConfig("offer.register.showPassword",!0).subscribe(e=>{let i=String(e?.value??"").trim().toLowerCase(),r=i==="1"||i==="true";this.registerPasswordVisibleConf.set(r),r||this.resetPasswordInputState()}))}observeChanges(){this.subscriptions.add(this.orderProcessService.connectForm(this.loginFormGroup,e=>e,(e,i)=>re(N({},e),{registration:i}))),this.subscriptions.add(this.loginFormGroup.statusChanges.subscribe(e=>{this.stepReady.emit(e==="VALID")})),this.subscriptions.add(this.loginFormGroup.get("email").valueChanges.pipe(rr()
622).subscribe(()=>{this.resetPasswordInputState()}))}getPasswordComplexityHint(){let e="",i=[],r="",o=this.passwordComplexity();return o&&(parseInt(o.minLength)&&(e="mindestens "+o.minLength+" Zeichen"),parseInt(o.lowerChars)&&i.push(o.lowerChars+" Kleinbuchstaben"),parseInt(o.upperChars)&&i.push(o.upperChars+" Gro\xDFbuchstaben"),parseInt(o.digits)&&i.push(o.digits+" Ziffern"),parseInt(o.specialChars)&&i.push(o.specialChars+" Sonderzeichen"),r=i.length>1?i.pop():r),e+(e.length&&i.length?", bestehend aus ":"")+i.join(", ")+(r.length?" und ":"")+r}getPasswordErrorMessage(){let e=[],i=this.loginFormGroup.get("password");return["minLength","lowerChars","upperChars","digits","specialChars"].forEach(r=>{i.hasError(r)&&e.push(i.getError(r))}),(e.length?"noch ":"")+e.join(", ")}setPasswordValidators(){this.loginService.getPasswordComplexityInfo().subscribe(e=>{e&&(this.passwordComplexity.set(e),parseInt(e.minLength)&&this.passwordInputValidators.push(i=>{let r=Math.max(0,parseInt(e.minLength)-i.value.length);return r?{minLength:r+" Zeichen"}:null}),parseInt(e.lowerChars)&&this.passwordInputValidators.push(i=>{let r=Math.max(0,parseInt(e.lowerChars)-i.value.replace(/[^a-zäöüáéÃóúýà èìòùâêîôûÃÄÄÅÅšůž]/g,"").length);return r?{lowerChars:r+" Kleinbuchstabe"+(r==1?"":"n")}:null}),parseInt(e.upperChars)&&this.passwordInputValidators.push(i=>{let r=Math.max(0,parseInt(e.upperChars)-i.value.replace(/[^A-ZÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÄÄÄÅÅŠŤŮŽ]/g,"").length);return r?{upperChars:r+" Gro\xDFbuchstabe"+(r==1?"":"n")}:null}),parseInt(e.digits)&&this.passwordInputValidators.push(i=>{let r=Math.max(0,parseInt(e.digits)-i.value.replace(/[^0-9]/g,"").length);return r?{digits:r+" Ziffer"+(r==1?"":"n")}:null}),parseInt(e.specialChars)&&this.passwordInputValidators.push(i=>{let r=Math.max(0,parseInt(e.specialChars)-i.value.replace(/[0-9a-zäöüáéÃóúýà èìòùâêîôûÃÄÄÅÅšůžA-ZÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÄÄÄÅÅŠŤŮŽ]/g,"").length);return r?{specialChars:r+" Sonderzeichen"}:null}))})}buildRegisterForm(){this.loginFormGroup=this.formBuilder.group({email:[this.lastEmailInput.length?this.lastEmailInput:"",[Z.required,Z.pattern(ls.EMAIL)]],password:["",[]]},{validators:[Hi.checkRegisterForm(this.registerPasswordVisibleConf())]}),this.loginFormGroup.get("password").disable()}onRegisterNext(e){let i=this.loginFormGroup.get("password"),r=this.loginFormGroup.get("email");this.registerPasswordVisible()||r.markAsPending();let o=r.value;this.lastEmailInput=o,Hi.checkIfEmailExists(o,this.httpClient,this.translationService).subscribe(a=>{if(r.updateValueAndValidity(),a!==null)this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url,prefillUsername:o}}).then(()=>null);else{if(!this.registerPasswordVisibleConf()){this.resetPasswordInputState(),this.goToNextStep(e);return}if(this.registerPasswordVisible.set(!0),this.showPasswordInput()){let s=!i.hasValidator(Z.required);s||i.updateValueAndValidity({onlySelf:!0}),i.valid?this.goToNextStep(e):s&&setTimeout(()=>{i.enable(),i.setValidators(this.passwordInputValidators),i.setErrors(null)},0)}}})}goToNextStep(e){setTimeout(()=>e.next(),0)}resetPasswordInputState(){let e=this.loginFormGroup.get("password");this.registerPasswordVisible.set(!1),e.clearValidators(),e.clearAsyncValidators(),e.setValue("",{emitEvent:!1}),e.disable({emitEvent:!1}),e.updateValueAndValidity({emitEvent:!1,onlySelf:!0})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-registration-step"]],inputs:{isEditable:[1,"isEditable"],isAuthenticated:[1,"isAuthenticated"],hideLoginBox:[1,"hideLoginBox"],parentStepper:"parentStepper"},outputs:{stepReady:"stepReady"},decls:18,vars:12,consts:[[1,"mt-3","offer-detail__form","offer-detail__form--register",3,"ngSubmit","formGroup"],["appearance","outlined",1,"mt-3","offer-detail__card","offer-detail__card--register-info"],[1,"row","offer-detail__row","offer-detail__row--register-info"],[1,"col-12","offer-detail__register-info",3,"innerHTML"],["appearance","outlined",1,"mt-3","offer-detail__card","offer-detail__card--register-form"],[1,"row","offer-detail__row","offer-detail__row--register-form"],[1,"col-12","pl-15","offer-detail__register-form-text",3,"innerHTML"],[1,"col-12","mt-3","offer-detail__form-field","offer-detail__form-field--email"],[3,"innerHTML"],["matInput","","formControlName","email","required","",3,"value"],["matSuffix","",1,"iconInInput","offer-detail__input-spinner",2,"float","right","margin-left","18px",3,"diameter"],["matSuffix","",1,"iconInInput","offer-detail__input-icon"],[1,"offer-detail__error"],[1,"text-end","mt-3","offer-detail__next-btn","offer-detail__next-btn--register"],["mat-raised-button","","color","primary","type","submit",3,"disabled","innerHTML"],[1,"row","col-12","mt-3","offer-detail__row","offer-detail__row--password-text"],[1,"offer-detail__password-text",3,"innerHTML"],[1,"col-12","mt-2","mb-3","offer-detail__form-field","offer-detail__form-field--password",3,"hintLabel"],["matInput","","formControlName","password","type","password","required","",3,"value"],[1,"offer-detail__error",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"form",0),T("ngSubmit",function(){return r.onReg
622isterNext(r.parentStepper)}),p(1,"mat-card",1)(2,"mat-card-content")(3,"div",2),_(4,"div",3),m()()(),p(5,"mat-card",4)(6,"mat-card-content")(7,"div",5),_(8,"div",6),m(),p(9,"mat-form-field",7),_(10,"mat-label",8)(11,"input",9),x(12,Kse,1,1,"mat-spinner",10)(13,Qse,2,0,"mat-icon",11)(14,Zse,2,1,"mat-error",12),m(),x(15,tle,8,9),m()(),p(16,"div",13),_(17,"button",14),m()()),i&2&&(f("formGroup",r.loginFormGroup),c(4),f("innerHTML",r.translationService.getTranslation("account_already_exists_description"),y),c(4),f("innerHTML",r.translationService.getTranslation("account_register"),y),c(2),f("innerHTML",r.translationService.getTranslation("register_email"),y),c(),fe("is-valid",r.loginFormGroup.get("email").valid),f("value",r.loginFormGroup.get("email").value),c(),b(r.loginFormGroup.get("email").pending?12:-1),c(),b(r.loginFormGroup.get("email").valid?13:14),c(2),b(r.showPasswordInput()?15:-1),c(2),f("disabled",!r.loginFormGroup.valid)("innerHTML",r.translationService.getTranslation("button_next"),y))},dependencies:[Ot,wi,Bt,At,Wt,ai,bt,Ut,ei,Rt,Nt,up,Pt,fn,Ht,at,Ee],encapsulation:2})}}return t})();function ile(t,n){if(t&1){let e=B();p(0,"div",1)(1,"button",2),T("click",function(){A(e);let r=h();return k(r.action())}),E(2),m()()}if(t&2){let e=h();c(2),R(" ",e.data.action," ")}}var nle=["label"];function rle(t,n){}var ole=Math.pow(2,31)-1,qf=class{_overlayRef;instance;containerInstance;_afterDismissed=new G;_afterOpened=new G;_onAction=new G;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._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(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,ole))}_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}},gH=new H("MatSnackBarData"),pp=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},ale=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),sle=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),lle=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),cle=(()=>{class t{snackBarRef=d(qf);data=d(gH);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){i&1&&(p(0,"div",0),E(1),m(),x(2,ile,3,1,"div",1)),i&2&&(c(),R(" ",r.data.message,` 623`),c(),b(r.hasAction?2:-1))},dependencies:[Ee,ale,sle,lle],styles:[`.mat-mdc-simple-snack-bar{display:flex} 624`],encapsulation:2,changeDetection:0})}return t})(),kD="_mat-snack-bar-enter",OD="_mat-snack-bar-exit",dle=(()=>{class t extends Bs{_ngZone=d(de);_elementRef=d(ue);_changeDetectorRef=d(Je);_platform=d(wt);_rendersRef;_animationsDisabled=d(zt,{optional:!0})==="NoopAnimations";snackBarConfig=d(pp);_document=d(Se);_trackedModals=new Set;_enterFallback;_exitFallback;_renders=new G;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;
624_onAnnounce=new G;_onExit=new G;_onEnter=new G;_animationState="void";_live;_label;_role;_liveElementId=d(Mt).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert")),this._rendersRef=Ts(()=>this._renders.next(),{manualCleanup:!0})}attachComponentPortal(e){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i};onAnimationEnd(e){e===OD?this._completeExit():e===kD&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?this._renders.pipe(Et(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(kD)))}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(kD)},200)))}exit(){return this._destroyed?j(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?this._renders.pipe(Et(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(OD)))}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(OD),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit(),this._renders.complete(),this._rendersRef.destroy()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){let o=i[r],a=o.getAttribute("aria-owns");this._trackedModals.add(o),a?a.indexOf(e)===-1&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(De(mr,7),De(nle,7)),i&2){let o;se(o=le())&&(r._portalOutlet=o.first),se(o=le())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&T("animationend",function(a){return r.onAnimationEnd(a.animationName)})("animationcancel",function(a){return r.onAnimationEnd(a.animationName)}),i&2&&fe("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[it],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(p(0,"div",1)(1,"div",2,0)(3,"div",3),x(4,rle,0,0,"ng-template",4),m(),_(5,"div"),m()()),i&2&&(c(5),ce("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[mr],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}
624to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} 625`],encapsulation:2})}return t})();function ule(){return new pp}var ple=new H("mat-snack-bar-default-options",{providedIn:"root",factory:ule}),_H=(()=>{class t{_overlay=d(Oi);_live=d(Xm);_injector=d(Ne);_breakpointObserver=d(Ca);_parentSnackBar=d(t,{optional:!0,skipSelf:!0});_defaultConfig=d(ple);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=cle;snackBarContainerComponent=dle;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=N(N({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=Ne.create({parent:r||this._injector,providers:[{provide:pp,useValue:i}]}),a=new Mr(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=N(N(N({},new pp),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new qf(a,o);if(e instanceof ii){let l=new Xn(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),u=new Mr(e,void 0,l),g=a.attachComponentPortal(u);s.instance=g.instance}return this._breakpointObserver.observe(bb.HandsetPortrait).pipe(We(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let i=new yo;i.direction=e.direction;let r=this._overlay.position().global(),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Ne.create({parent:r||this._injector,providers:[{provide:qf,useValue:i},{provide:gH,useValue:e.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Yi=(()=>{class t{constructor(){this._snackBar=d(_H)}openSnackbar(e){this._snackBar.open(e,null,{duration:1e4,horizontalPosition:"center",verticalPosition:"bottom"})}closeSnackbar(){this._snackBar.dismiss()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Tb=(()=>{class t{loadScript(e){return new Promise((i,r)=>{let o=document.createElement("script");o.src=e,o.async=!0,o.onload=()=>i(),o.onerror=()=>r(`Script load error: ${e}`),document.body.appendChild(o)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function mle(t,n){if(t&1&&_(0,"h4",12),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("wait_while_pricecalculation"),y)}}function fle(t,n){if(t&1&&(p(0,"div",0),x(1,mle,1,1,"h4",11),m()),t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("wait_while_pricecalculation"))}}function hle(t,n){if(t&1&&_(0,"h4",14),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation(e.hasPriceCalculationError()?"error_price_calculation":"price_calculated"),y)}}function gle(t,n){if(t&1&&(p(0,"div",1),x(1,hle,1,1,"h4",13),m()),t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation(e.hasPriceCalculationError()?"error_price_calculation":"price_calculated"))}}function _le(t,n){if(t&1&&_(0,"h4",12),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("wait_while_orderCreating"),y)}}function vle(t,n){if(t&1&&(p(0,"div",2),x(1,_le,1,1,"h4",11),_(2,"app-loading-spinner",15),m()),t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("wait_while_orderCreating")),c(),f("type","small")}}function ble(t,n){if(t&1){let e=B();p(0,"button",21),T("click",function(){A(e);let r=h(2);return k(r.openDeliveryAddressEditor())}),_(1,"mat-icon",22),m()}if(t&2){let e=h(2);ce("aria-label",e.translationService.getTranslation("address_delivery"))}}function yle(t,n){if(t&1){let e=B();p(0,"button",21),T("click",function(){A(e);let r=h(2);return k(r.openBillingAddressEditor())}),_(1,"mat-icon",22),m()}if(t&2){let e=h(2);ce("aria-label",e.translationService.getTranslation("address_billing"))}}function Cle(t,n){t&1&&(p(0,"div",19),_(1,"app-loading-spinner",15),m()),t&2&&(c(),f("type","small"))}function Sle(t,n){if(t&1&&(p(0,"div",5)(1,"div",16)(2,"div",17)(3,"b"),E(4),m(),x(5,ble,2,1,"button",18)(6,yle,2,1,"button",18),m(),x(7,Cle,2,1,"div",19),_(8,"div",20),m()()),t&2){let e=n.$implicit,i=n.$index,r=h();f("ngClass",r.isLastBlockFullWidth(i)?"col-12":"col-12 col-lg-6"),c(4),he(r.getBlockTitle(e)),c(),b(e==="delivery"?5:-1),c(),b(r.isDigitalOffer()&&e==="billing"?6:-1),c(),b(e==="price"&&r.calculatingPrice()?7:-1),c(),f("innerHTML",r.getBlockContent(e),y)}}function xle(t,n){if(t&1&&_(0,"app-hup-subscription-address",7),t&2){let e=h();f("showActivateCheckbox",!1)("addressType","Lieferadresse")("controlGroup",e.deliveryAddressGroup)}}function wle(t,n){if(t&1&&_(0,"app-hup-subscription-address",8),t&2){let e=h();f("showActivateCheckbox",!1)("addressType","Rechnungsadresse")("activateCheckboxText","optional_address_billing")("controlGroup",e.billingAddressGroup)}}var Mb=(()=>{class t{constructor(){this.orderProcessService=d(zn),this.translationService=d(Y),this.navigationService=d(Re),this.subscriptionService=d(ct),this.loginService=d(ft),this.orderTrackingService=d(Gr),this.configService=d(Ce),this.scriptLoader=d(Tb),this.paymentProviderService=d(Ll),this.snackBar=d(Yi),this.platformId=d(Qe),this.houseNoPipe=d(Di),this.datePipe=d(Le),this.bankAccountPipe=d(Jr),this.decimalPipe=d(Ps),this.clientNoUrl=we(null),this.userData=we(),this.offer=we(),this.offerPrice=LO(),this.calculatingPrice=ee(!1),this.creatingOrder=ee(!1),this.hasPriceCalculationError=ee(!1),this.selectedDeliveryAddress=ee(null),this.selectedBillingAddress=ee(null),this.selectedBonusAddress=ee(null),this.selectedPaymentMethod=ee(null),this.selectedPaymentFrequency=ee(null),this.selectedStartDate=ee(null),this.showOnlinePayment=we(!1),this.disclaimerMode=So.SEPARATE_CHECKBOXES,this.paymentInfoBlock=ee(""),this.durationInfoBlock=ee(""),this.billingInfoBlock=ee(""),this.deliveryInfoBlock=ee(""),this.bonusInfoBlock=ee(""),this.priceInfoBlock=ee(""),this.needBillingAddress=ee(!1),this.showBillingAddressEditor=ee(!1),this.showDeliveryAddressEditor=ee(!1),this.optionalBillingAddressValid=ee(!0),this.optionalDeliveryAddressValid=ee(!0),this.formBuilder=new kt,this.addressFormSubscriptions=new Ie,this.stateSubscriptions=new Ie,this.errorsArr=[],this.JSON=JSON}isDigitalOffer(){return si(this.offer()?.offerType)}ngOnInit(){this.disclaimerMode=ZL(this.configService.getConfig("offer.privacyDisclaimerAgbInOneField")?.value),this.buildAddressGroups(),this.observeAddressValidity(),this.observeChanges()}ngOnDestroy(){this.addressFormSubscriptions.unsubscribe(),this.stateSubscriptions.unsubscribe()}observeAddressValidity(){this.observeSingleAddressValidity(this.billingAddressGroup),this.observeSingleAddressValidity(this.deliveryAddressGroup),this.scheduleOptionalBillingAddressValidityUpdate(),this.scheduleOptionalDeliveryAddressValidityUpdate()}observeSingleAddressValidity(e){let i=e.get("showAddress");i&&this.addressFormSubscriptions.add(i.valueChanges.subscribe(()=>{this.scheduleOptionalBillingAddressValidityUpdate(),this.scheduleOptionalDeliveryAddressValidityUpdate()})),this.addressFormSubscriptions.add(e.statusChanges.subscribe(()=>{this.scheduleOptionalBillingAddressValidityUpdate(),this.scheduleOptionalDeliveryAddressValidityUpdate()}))}scheduleOptionalBillingAddressValidityUpdate(){setTimeout(()=>{let e=this.needBillingAddress();this.optionalBillingAddressValid.set(!(e||this.showBillingAddressEditor())||this.billingAddressGroup.valid)})}scheduleOptionalDeliveryAddressValidityUpdate(){setTimeout(()=>{this.optionalDeliveryAddressValid.set(!this.showDeliveryAddressEditor()||this.deliveryAddressGroup.valid)})}observeChanges(){this.stateSubscriptions.add(this.orderProcessService.getOrderState().subscribe(e=>{e.payment&&(this.paymentInfoBlock.set(this.getPaymentInfo(e.payment)),this.durationInfoBlock.set(this.getDurationInfo(e.payment)),e.payment?.startdate&&this.selectedStartDate.set(e.payment?.startdate),this.needBillingAddress.set(e.payment.formOfPayment.paymentType!=="ONLINEPAYMENT"),this.scheduleOptionalBillingAddressValidityUpdate()),e.addresses?.billingAddress&&(this.billingInfoBlock.set(this.getAddressInfo("billing",e)),this.selectedBillingAddress.set(e.addresses?.billingAddress),this.patchBillingAddressForm(e.addresses.billingAddress),this.needBillingAddress.set(!1),this.scheduleOptionalBillingAddressValidityUpdate()),e.addresses?.deliveryAddress&&(this.deliveryInfoBlock.set(this.getAddressInfo("delivery",e)),this.selectedDeliveryAddress.set(e.addresses?.deliveryAddress),this.patchAddressForm(this.deliveryAddressGroup,e.addresses.deliveryAddress)),e.bonusData?.bonusAddress&&(this.deliveryInfoBlock.set(this.getAddressInfo("bonus",e)),this.selectedBonusAddress.set(e.bonusData?.bonusAddress)),e.offerPrice?.length&&(this.offerPrice.set(e.offerPrice),this.priceInfoBlock.set(e.calculatingPrice?" ":this.getPriceInfo(e))),this.calculatingPrice.set(!!e.calculatingPrice)})),this.stateSubscriptions.add(this.orderProcessService.connectForm(this.billingAddressFormGroup.get("billingAddress"),e=>e,(e,i)=>re(N({},e),{addresses:re(N({},e.addresses),{billingAddress:i})}))),this.stateSubscriptions.add(this.orderProcessService.connectForm(this.deliveryAddressFormGroup.get("deliveryAddress"),e=>e,(e,i)=>re(N({},e),{addresses:re(N({},e.addresses),{deliveryAddress:i})})))}openBillingAddressEditor(){let e=!this.showBillingAddressEditor();this.showBillingAddressEditor.set(e),this.billingAddressGroup.get("showAddress")?.setValue(e,{emitEvent:!1}),this.scheduleOptionalBillingAddressValidityUpdate()}openDeliveryAddressEditor(){let e=!this.showDeliveryAddressEditor();this.showDeliveryAddressEditor.set(e),this.deliveryAddressGroup.get("showAddress")?.setValue(e,{emitEvent:!1}),this.scheduleOptionalDeliveryAddressValidityUpdate()}patchBillingAddressForm(e){this.patchAddressForm(this.billingAddressGroup,e)}patchAddressForm(e,i){i&&e.patchValue({userData:{birthDay:i?.userData?.birthDay??"",phone:i?.userData?.phone??"",email:i?.userData?.email??""},address:{country:i?.address?.country??"",zipcode:i?.address?.zipcode??"",city:i?.address?.city??"",street:i?.address?.street??"",houseNo:i?.address?.houseNo??i?.address?.houseno??"",extraLine:i?.address?.extraLine??"",houseNoExt:i?.address?.houseNoExt??"",stiege:i?.address?.stiege??"",stock:i?.address?.stock??"",tuer:i?.address?.tuer??"",district:i?.address?.district??""},person:{title:i?.person?.title??"",salutation:i?.person?.salutation??"",firstName:i?.person?.firstName??i?.person?.firstname??"",lastName:i?.person?.lastName??i?.person?.lastname??"",initials:i?.person?.initials??"",middlename:i?.person?.middlename??""}},{emitEvent:!1})}getVisibleSummaryBlocks(){let e=[];return this.hasAddressInfo("delivery")&&e.push("delivery"),this.hasAddressInfo("billing")&&e.push("billing"),this.hasAddressInfo("bonus")&&e.push("bonus"),e.push("payment","duration"),this.offerPrice()&&e.push("price"),e}hasAddressInfo(e){let i="";switch(e){case"delivery":i=this.deliveryInfoBlock();break;case"billing":i=this.billingInfoBlock();break;case"bonus":i=this.bonusInfoBlock();break}return!!i}getBlockTitle(e){switch(e){case"delivery":return this.translationService.getTranslation("address_delivery");case"billing":return this.translationService.getTranslation("address_billing");case"bonus":return this.translationService.getTranslation("address_bonus");case"payment":return this.translationService.getTranslation("payment_rhythm");case"duration":return this.translationService.getTranslation("step_orderDateAndOptins");case"price":return this.translationService.getTranslation("price");default:return""}}getBlockContent(e){let i;switch(e){case"delivery":i=this.deliveryInfoBlock();break;case"billing":i=this.billingInfoBlock();break;case"bonus":i=this.bonusInfoBlock();break;case"payment":i=this.paymentInfoBlock();break;case"duration":i=this.durationInfoBlock();break;case"price":i=th
625is.priceInfoBlock();break;default:i="";break}return i}getPaymentInfo(e){return[e.formOfPayment.description+" ("+e.paymentFrequency.description+")",e.iban?"IBAN "+this.bankAccountPipe.transform(e.iban):"",e.bic&&e.bic.trim().match(/^[A-Z\d]+$/i)?"BIC "+e.bic:""].join("<br>").replace(/undefined/g,"").replace(/(<br>){2,}/g,"<br>").replace(/^<br>/,"")}getDurationInfo(e){return[this.translationService.getTranslation("startdate"),this.datePipe.transform(e.startdate,"dd.MM.yyyy")].join(" ").trim().replace(/undefined/g,"")}getPriceInfo(e){let i=[];return e.offerPrice?.forEach(r=>{r&&(i.push(r.price&&r.currency?this.decimalPipe.transform(r.price,"1.2-2")+" "+r.currency:r.priceText),r.porto&&i.push(this.translationService.getTranslation("price_delivery")+" "+this.decimalPipe.transform(r.price,"1.2-2")+" "+r.currency))}),i.join("<br>").replace(/undefined/g,"").replace(/^<br>/,"")}getAddressInfo(e,i){let r=i?.addresses?.billingAddress?.person,o=i.addresses?.billingAddress?.userData,a=i?.addresses?.billingAddress?.address;switch(e){case"delivery":r=i?.addresses?.deliveryAddress?.person,o=i?.addresses?.deliveryAddress?.userData,a=i?.addresses?.deliveryAddress?.address;break;case"bonus":r=i?.bonusData?.bonusAddress?.person,o=i?.bonusData?.bonusAddress?.userData,a=i?.bonusData?.bonusAddress?.address;break;default:break}let s=r!=null&&Object.values(r).every(S=>typeof S=="object"||S===""),l=o!=null&&["phonecode","phone","email"].every(S=>(o[S]??"")===""),u=a!=null&&Object.values(a).every(S=>typeof S=="object"||S==="");if(s&&l&&u)return"";let g=(o?.phonecode??"").toString().trim(),v=(o?.phone??"").toString().trim();g&&v.startsWith(g)&&(v=v.slice(g.length).trim());let w=((g?g+" ":"")+v).trim(),C=[(r?.salutation?.description+" "+(r?.title?.description??"")+" "+(r?.firstname??r?.firstName??"")+" "+(r?.lastname??r?.lastName??"")).trim(),(a?.street+" "+this.houseNoPipe.transform(a?.houseno??a?.houseNo)).trim(),(a?.zipcode+" "+a?.city).trim(),w,o?.email].join("<br>").replace(/undefined/g,"").replace(/ {2,}/g," ").replace(/( ?<br>){2,}/g,"<br>").replace(/null/g,"").replace(/^<br>/,"");return console.log("ret for "+e+" is ",C),C}onCompleteOrder(e){this.creatingOrder.set(!0),nt(this.platformId)&&window.scrollTo(0,0),this.errorsArr=[];let i=this.orderProcessService.buildOrderDto();if(!i?.email?.match(ls.EMAIL)){console.error(`invalid email '${i?.email}'`);return}!this.userData()||this.clientNoUrl()?this.subscriptionService.sendOrderUnauthorized(i).subscribe({next:r=>{this.orderTrackingService.pushEvent(Fn.PURCHASED,r.body),this.doUpScoreTracking();let o=r.otlc??"";o.length&&this.loginService.loginByOtlc(o),this.creatingOrder.set(!1);let a=r.body.webId,s=r.body.backendId>0?r.body.backendId.toString():"-1";this.subscriptionService.setPriceForKey(a,this.offerPrice()),this.navigationService.navigateTo(ge.OFFERORDERED,[a.toString(),s,i.orderChoiceKey]).then(l=>{l&&this.snackBar.openSnackbar(this.translationService.getTranslation("saved"))})},error:r=>{this.creatingOrder.set(!1),console.error(r)}}):this.subscriptionService.sendOrder(i).subscribe({next:r=>{this.orderTrackingService.pushEvent(Fn.PURCHASED,r),this.doUpScoreTracking(),this.creatingOrder.set(!1);let o=r.backendId>0?r.backendId:r.webId;this.subscriptionService.setPriceForKey(o,this.offerPrice()),this.navigationService.navigateTo(ge.OFFERORDERED,[r.webId,r.backendId,i.orderChoiceKey])},error:r=>{this.creatingOrder.set(!1),console.error(r)}})}isLastBlockFullWidth(e){let i=this.getVisibleSummaryBlocks();return i.length%2===1&&e===i.length-1}doUpScoreTracking(){return li(this,null,function*(){let e=Object.fromEntries(new URLSearchParams(window.location.search)),i=()=>{let a=this.configService.getConfig("offer.tracking.upScore.objectIdKey")?.value;a=a||"upScoreId";let l={object_id:e[a]??"",object_type:"article",conversion:2},u;o=="v3"?u={config:{domain:r,article:"article",track_positions:!0},data:l}:u=l,console.log("%cUpScore-Parameter: ","color:orange;",u),o=="v3"?upScore(u):upScore("page_view",u)},r=this.configService.getConfig("offer.tracking.upScore.domain")?.value,o=this.configService.getConfig("offer.tracking.upScore.ver
625sion")?.value??"v4";if(r.startsWith("Param:")){let a=r.substring(6).split("->"),s=e[a[0]];if(a[1]){s=decodeURIComponent(s),s=Object.fromEntries(new URLSearchParams(s.split("?").pop()))[a[1]]??null;try{s=new URL(s).hostname}catch{try{s=new URL("https://"+s).hostname}catch(g){console.error("UpScore-Domain kann nicht ermittelt werden aus URL: "+g.message),s=null}}}r=s||null,r&&(r=r.split(".").slice(-2).join("."))}if(r)if(typeof upScore=="function")i();else{let s={v3:"https://files.upscore.com/async/upScore.js",v4:"https://files.upscore.com/site_script/"+r+".js"}[o];try{if(yield this.scriptLoader.loadScript(s),typeof upScore=="function"){i();return}else console.error("UpScore-API nicht gefunden ("+s+")")}catch(l){console.error(l)}}})}get billingAddressGroup(){return this.billingAddressFormGroup.get("billingAddress")}get deliveryAddressGroup(){return this.deliveryAddressFormGroup.get("deliveryAddress")}buildAddressGroups(){this.billingAddressFormGroup=this.formBuilder.group({billingAddress:this.createAddressGroup()}),this.deliveryAddressFormGroup=this.formBuilder.group({deliveryAddress:this.createAddressGroup()})}createAddressGroup(){return this.formBuilder.group({userData:this.formBuilder.group({birthDay:[""],phone:[""],email:[""]}),showAddress:[""],address:this.formBuilder.group({country:[""],zipcode:[""],city:[""],street:[""],houseNo:[""],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:[""],firstName:[""],lastName:[""],initials:[""],middlename:[""]})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-summary-step"]],inputs:{clientNoUrl:[1,"clientNoUrl"],userData:[1,"userData"],offer:[1,"offer"],offerPrice:[1,"offerPrice"],showOnlinePayment:[1,"showOnlinePayment"],stepper:"stepper"},outputs:{offerPrice:"offerPriceChange"},decls:12,vars:21,consts:[[1,"text-center","offer-detail__price-calculating"],[1,"text-center","offer-detail__price-calculated"],[1,"text-center","offer-detail__order-creating"],[1,"col-12","mt-4"],[1,"row","summary"],[1,"p-1",3,"ngClass"],[1,"mt-md-5","mt-3"],[3,"showActivateCheckbox","addressType","controlGroup"],[3,"showActivateCheckbox","addressType","activateCheckboxText","controlGroup"],[1,"col-12"],[3,"save","showOnlyOptIns","offer","showOnOfferPage","stepper","deliveryAddress","billingAddress","bonusAddress","paymentCode","paymentFrequency","startDate","prices","creatingOrder","isCalculatingPrice","onlinePayment","disclaimerMode","optionalBillingAddressValid","optionalDeliveryAddressValid"],[3,"innerHTML",4,"appApplyIfNotEmpty"],[3,"innerHTML"],["class","text-center",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"text-center",3,"innerHTML"],[3,"type"],[1,"p-3"],[1,"summary__block-header"],["type","button",1,"summary__billing-edit-btn"],[1,"price_spinner",2,"position","absolute"],[1,"mt-2",3,"innerHTML"],["type","button",1,"summary__billing-edit-btn",3,"click"],["fontIcon","edit"]],template:function(i,r){i&1&&(x(0,fle,2,1,"div",0)(1,gle,2,1,"div",1)(2,vle,3,2,"div",2),p(3,"div",3)(4,"div",4),W(5,Sle,9,6,"div",5,$S),m()(),p(7,"div",6),x(8,xle,1,3,"app-hup-subscription-address",7)(9,wle,1,4,"app-hup-subscription-address",8),m(),p(10,"div",9)(11,"app-offer-card",10),T("save",function(a){return r.onCompleteOrder(a)}),m()()),i&2&&(b(r.calculatingPrice()?0:1),c(2),b(r.creatingOrder()?2:-1),c(3),q(r.getVisibleSummaryBlocks()),c(3),b(r.showDeliveryAddressEditor()?8:-1),c(),b(r.isDigitalOffer()&&(r.needBillingAddress()||r.showBillingAddressEditor())?9:-1),c(2),f("showOnlyOptIns",!0)("offer",r.offer())("showOnOfferPage",!1)("stepper",r.stepper)("deliveryAddress",r.selectedDeliveryAddress())("billingAddress",r.selectedBillingAddress())("bonusAddress",r.selectedBonusAddress())("paymentCode",r.selectedPaymentMethod())("paymentFrequency",r.selectedPaymentFrequency())("startDate",r.selectedStartDate())("prices",r.offerPrice())("creatingOrder",r.creatingOrder())("isCalculatingPrice",r.calculatingPrice())("onlinePayment",r.showOnlinePayment())("disclaimerMode",r.disclaimerMode)("optionalBillingAddressValid",r.optionalBillingAddressValid())("optionalDeliveryAddressValid",r.optionalDeliveryAddressValid()))},dependencies:[Ge,ze,Hl,tn,vr,fn],styles:[`.summary[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:initial!important}.summary[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%;background-color:#f0f0f0}.summary__block-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.summary__billing-edit-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:inherit;padding:0;line-height:1;cursor:pointer} 626/*# sourceMappingURL=summary-step.component-P34SOUH3.css.map */`]})}}return t})();var Ni=function(t){return t[t.ONLY_DELIVERY=0]="ONLY_DELIVERY",t[t.ONLY_BILLING=1]="ONLY_BILLING",t[t.BOTH=2]="BOTH",t[t.NONE=3]="NONE",t}(Ni||{});function Ele(t,n){if(t&1&&_(0,"div",14),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_orderRegister"),y)}}function Dle(t,n){if(t&1){let e=B();p(0,"mat-step",4),x(1,Ele,1,1,"ng-template",6),p(2,"app-registration-step",13),T("stepReady",function(r){A(e);let o=h();return k(o.onRegistrationStepCompleted(r))}),m()()}if(t&2){let e=h(),i=J(3);f("editable",e.isEditable())("completed",e.registrationStepCompleted()),c(2),f("parentStepper",i)("isAuthenticated",e.isAuthenticated())("hideLoginBox",e.hideL
626oginBox())("isEditable",e.isEditable())}}function Tle(t,n){if(t&1&&_(0,"div",15),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("step_orderPayment"),y)}}function Mle(t,n){if(t&1&&_(0,"div",17),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_orderBonus"),y)}}function Ile(t,n){if(t&1){let e=B();p(0,"mat-step",8),x(1,Mle,1,1,"ng-template",6),p(2,"app-bonus-step",16),T("stepCompleted",function(r){A(e);let o=h();return k(o.onBonusStepCompleted(r))}),m()()}if(t&2){let e=h(),i=J(3);f("editable",e.isEditable)("completed",e.bonusStepCompleted()),c(2),f("parentStepper",i)("isAuthenticated",e.isAuthenticated())("bonuses",e.offer().bonusList)}}function Ale(t,n){if(t&1&&_(0,"div",18),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("step_summary"),y)}}var vH=(()=>{class t{constructor(){this.AddressCombination=Ni,this.translationService=d(Y),this.offer=we.required(),this.userData=we(),this.currentProductAlreadyOrdered=we(!1),this.stepperOrientation=we("horizontal"),this.isAuthenticated=we(!1),this.isEditable=we(!1),this.hideLoginBox=we(!1),this.isWinback=we(!1),this.paymentStepCompleted=ee(!1),this.addressStepCompleted=ee(!1),this.registrationStepCompleted=ee(!1),this.bonusStepCompleted=ee(!1),this.selectedBillingAddress=null,this.selectedBonusAddress=null,this.selectedDeliveryAddress=null,this.selectedFormOfPayment=null,this.selectedPaymentFrequency=null,this.selectedStartDate=null,this.creatingOrder=!1}ngOnInit(){}stepperSelectionChanged(e){e.previouslySelectedIndex>e.selectedIndex}onCompleteOrder(e){}onOptInsSelected(e){}onRegistrationStepCompleted(e){this.registrationStepCompleted.set(e)}onPaymentStepCompleted(e){this.paymentStepCompleted.set(e)}onBonusStepCompleted(e){this.bonusStepCompleted.set(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-digital-offer"]],inputs:{offer:[1,"offer"],userData:[1,"userData"],currentProductAlreadyOrdered:[1,"currentProductAlreadyOrdered"],stepperOrientation:[1,"stepperOrientation"],isAuthenticated:[1,"isAuthenticated"],isEditable:[1,"isEditable"],hideLoginBox:[1,"hideLoginBox"],isWinback:[1,"isWinback"]},decls:14,vars:26,consts:[["stepper",""],[1,"row","offer-detail__row"],[1,"col-12","col-md-8","offer-detail__main"],["appMatVerticalStepperScroller","","labelPosition","bottom",1,"offer-detail__stepper",3,"selectionChange","linear","orientation"],[1,"offer-detail__step","offer-detail__step--register",3,"editable","completed"],[1,"offer-detail__step","offer-detail__step--payment",3,"editable","completed"],["matStepLabel",""],[3,"readyState","currentProductAlreadyOrdered","offer","parentStepper","userData"],[1,"offer-detail__step","offer-detail__step--bonus",3,"editable","completed"],[1,"offer-detail__step","offer-detail__step--price"],[3,"stepper","offer","userData"],[3,"className"],[1,"offer-detail__side-card",3,"save","optInsSelected","offer","showOnOfferPage","stepper","deliveryAddress","billingAddress","bonusAddress","paymentCode","paymentFrequency","startDate","prices","creatingOrder","onlinePayment"],[3,"stepReady","parentStepper","isAuthenticated","hideLoginBox","isEditable"],[1,"offer-detail__step-label","offer-detail__step-label--register",3,"innerHTML"],[1,"offer-detail__step-label","offer-detail__step-label--payment",3,"innerHTML"],[3,"stepCompleted","parentStepper","isAuthenticated","bonuses"],[1,"offer-detail__step-label","offer-detail__step-label--bonus",3,"innerHTML"],[1,"offer-detail__step-label","offer-detail__step-label--price",3,"innerHTML"]],template:function(i,r){if(i&1){let o=B();p(0,"div",1)(1,"div",2)(2,"mat-stepper",3,0),T("selectionChange",function(s){return A(o),k(r.stepperSelectionChanged(s))}),x(4,Dle,3,6,"mat-step",4),p(5,"mat-step",5),x(6,Tle,1,1,"ng-template",6),p(7,"app-payment-step",7),T("readyState",function(s){return A(o),k(r.onPaymentStepCompleted(s))}),m()(),x(8,Ile,3,5,"mat-step",8),p(9,"mat-step",9),x(10,Ale,1,1,"ng-template",6),_(11,"app-summary-step",10),m()()(),p(12,"div",11)(13,"app-offer-card",12),T("save",function(s){return A(o),k(r.onCompleteOrder(s))})("optInsSelected",function(s){return A(o),k(r.onOptInsSelected(s))}),m()()()}if(i&2){let o=J(3);c(2),f("linear",!0)("orientation",r.stepperOrientation()),c(2),b(!r.isAuthenticated()&&!r.hideLoginBox()?4:-1),c(),f("editable",r.isEditable())("completed",r.paymentStepCompleted()),c(2),f("currentProductAlreadyOrdered",r.currentProductAlreadyOrdered())("offer",r.offer())("parentStepper",o)("userData",r.userData()),c(),b(r.offer()&&r.offer().bonusList.length>0?8:-1),c(3),f("stepper",o)("offer",r.offer())("userData",r.userData()),c(),f("className","col-12 col-md-4 offer-detail__side"),c(),f("offer",r.offer())("showOnOfferPage",!1)("stepper",o)("deliveryAddress",r.selectedDeliveryAddress)("billingAddress",r.selectedBillingAddress)("bonusAddress",r.selectedBonusAddress)("paymentCode",r.selectedFormOfPayment)("paymentFrequency",r.selectedPaymentFrequency)("startDate",r.selectedStartDate)("prices",r.offerPrice)("creatingOrder",r.creatingOrder)("onlinePayment",!0)}},dependencies:[Sb,Zs,Ia,as,xb,Eb,Db,Mb,Hl],encapsulation:2})}}return t})();var kle=()=>["VALID","DISABLED"],bH=t=>({infoText:t}),yH=t=>[t];function Ole(t,n){if(t&1&&_(0,"app-general-warning",1),t&2){let e=h();f("warnings",zi(3,yH,zi(1,bH,e.translationService.getTranslation("currentProduct.alreadyOrdered"))))}}function Ple(t,n){if(t&1&&(p(0,"div",12),_(1,"app-hup-subscription-address",13),m()),t&2){let e=h(2);c(),f("showActivateCheckbox",!0)("askForBirthday",e.askForBirthday())("askForEmail",e.askForEmail())("controlGroup",e.billingAddressGroup)("activateCheckboxText","address_diffBilling")("addressType",e.translationService.getTranslation("address_billing"))}}function Nle(t,n){if(t&1&&(_(0,"div",10)(1,"app-hup-subscription-address",11),x(2,Ple,2,6,"div",12)),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("offer_address_readonly"),y),c(),f("isReadOnly",!0)("showAddressExt1",e.isBirthdayRequired())("controlGroup",e.deliveryAddressGroup)("addressType",e.translationService.getTranslation("address_delivery")),c(),b(e.addressCombination()==e.AddressCombination.BOTH?2:-1)}}function Rle(t,n){if(t&1&&_(0,"app-general-warning",3),t&2){let e=h();f("warnings",zi(3,yH,zi(1,bH,e.translationService.getTranslation("subscription.client-without-address.warning-text"))))}}function Fle(t,n){if(t&1&&_(0,"app-hup-subscription-address",14)(1,"app-hup-subscription-address",15),t&2){let e=h();f("showActivateCheckbox",!1)("isReadOnly",!1)("askForBirthday",e.askForBirthday())("askForEmail",e.askForEmail())("askForPhone",e.askForPhone())("isPhoneRequired",e.isPhoneRequired())("isBirthdayRequired",e.isBirthdayRequired())("controlGroup",e.deliveryAddressGroup)("forProductType",e.offer())("addressType",e.translationService.getTranslation("address_delivery")),c(),f("showActivateCheckbox",!0)("askForPhone",e.askForPhone())("isPhoneRequired",e.isPhoneRequired())("controlGroup",e.billingAddressGroup)("addressType",e.translationService.getTranslation("address_billing"))}}function Lle(t,n){if(t&1&&_(0,"app-hup-subscription-address",4),t&2){let e=h();f("showActivateCheckbox",!1)("askForBirthday",e.askForBirthday())("askForEmail",e.askForEmail())("askForPhone",e.askForPhone())("isPhoneRequired",e.isPhoneRequired())("isBirthdayRequired",e.isBirthdayRequired())("controlGroup",e.billingAddressGroup)("forProductType",e.offer())("addressType",e.translationService.getTranslation("address_billing"))}}function Ble(t,n){if(t&1&&_(0,"app-hup-subscription-address",5),t&2){let e=h();f("showActivateCheckbox",!1)("askForBirthday",e.askForBirthday())("askForEmail",e.askForEmail())("askForPhone",e.askForPhone())("isPhoneRequired",e.isPhoneRequired())("isBirthdayRequired",e.isBirthdayRequired())("controlGroup",e.deliveryAddressGroup)("addressType",e.translationService.getTranslation("address_delivery"))}}function Hle(t,n){t&1&&_(0,"mat-spinner",18),t&2&&f("diameter",18)}function Vle(t,n){t&1&&(p(0,"mat-icon",19),E(1," check "),m())}function jle(t,n){if(t&1&&(p(0,"mat-error",20),E(1),m()),t&2){let e=h(2);c(),R("",e.addressFormGroup.get("email").hasError("required")?e.translationService.getTranslation("error_email_empty"):e.translationService.getTranslation("error_email_invalid")," ")}}function zle(t,n){if(t&1&&(p(0,"mat-form-field",6),_(1,"mat-label",16)(2,"input",17),x(3,Hle,1,1,"mat-spinner",18)(4,Vle,2,0,"mat-icon",19)(5,jle,2,1,"mat-error",20),m()),t&2){let e=h();c(),f("innerHTML",e.translationService.getTranslation("register_email"),y),c(),fe("is-valid",e.addressFormGroup.get("email").valid),f("value",e.addressFormGroup.get("email").value),
626c(),b(e.addressFormGroup.get("email").pending?3:-1),c(),b(e.addressFormGroup.get("email").valid?4:5)}}function Ule(t,n){if(t&1){let e=B();p(0,"button",21),T("click",function(){A(e);let r=h();return k(r.parentStepper.previous())}),m()}if(t&2){let e=h();f("innerHTML",e.translationService.getTranslation("button_back"),y)}}var Gle=["address","person","userData"],CH=(()=>{class t{constructor(){this.orderProcessService=d(zn),this.translationService=d(Y),this.configService=d(Ce),this.orderTrackingService=d(Gr),this.baseDataService=d(vt),this.http=d(Be),this.userData=ee(null),this.hideLoginBox=we(),this.isWinBack=we(),this.isEditable=we(),this.currentProductAlreadyOrdered=we(),this.bonusSelection=we(),this.offer=we.required(),this.askForPhone=ee(!1),this.isPhoneRequired=ee(!1),this.askForBirthday=ee(!1),this.askForBirthdayConst=ee(!1),this.isBirthdayRequired=ee(!1),this.isBirthdayRequiredConst=ee(!1),this.askForEmail=ee(!0),this.showWarningForOrderWithoutAddress=ee(!1),this.clientWithoutAddressAllowed=ee(!1),this.addressCombination=we(Ni.BOTH),this.deliveryAddress=ee({}),this.billingAddress=ee({}),this.formBuilder=new kt,this.salutations=[],this.clientTypes=[],this.stepCompleted=qd(),this.subscriptions=new Ie,this.isPrefilled=!1,this.AddressCombination=Ni,this.JSON=JSON}ngOnInit(){this.handleBaseData(),this.handleConfigurations(),this.buildAddressForm(),this.connectFormWithOrderService(),this.subscriptions.add(this.addressFormGroup.statusChanges.subscribe(e=>{this.stepCompleted.emit(e==="VALID")})),this.subscriptions.add(this.addressFormGroup.get("billingAddress.showAddress")?.valueChanges.subscribe(()=>this.applyBillingAddressActivation())),this.applyBillingAddressActivation(),this.stepCompleted.emit(this.addressFormGroup.status==="VALID")}ngOnDestroy(){this.subscriptions.unsubscribe()}connectFormWithOrderService(){this.subscriptions.add(this.orderProcessService.getOrderState().pipe(F(e=>e?.userData),rr()).subscribe(e=>{this.userData.set(e),this.deliveryAddress.set(e),this.billingAddress.set(e),this.prefillAddressForm(e)})),this.subscriptions.add(this.orderProcessService.connectForm(this.addressFormGroup.get("billingAddress"),e=>e,(e,i)=>re(N({},e),{addresses:re(N({},e.addresses),{billingAddress:i})}))),this.subscriptions.add(this.orderProcessService.connectForm(this.addressFormGroup.get("deliveryAddress"),e=>e,(e,i)=>re(N({},e),{addresses:re(N({},e.addresses),{deliveryAddress:i})})))}prefillAddressForm(e){if(this.isPrefilled||!(e?.userBackendId>0))return;let i=e.person?.addressCode;e.person?.salutation&&!e.person?.addressCode&&this.clientTypes?.forEach(r=>{r.key===e.person?.salutation&&(i=r.defaultAddressCodeId)}),(this.addressCombination()===Ni.BOTH||this.addressCombination()===Ni.ONLY_DELIVERY)&&(this.prefillDeliveryOrBilling(e,i,"delivery"),this.addressFormGroup.get("deliveryAddress.userData.birthday")?.patchValue(e?.birthday??"",{emitEvent:!1})),(this.addressCombination()===Ni.BOTH||this.addressCombination()===Ni.ONLY_BILLING)&&this.prefillDeliveryOrBilling(e,i,"billing"),this.isPrefilled=!0}prefillDeliveryOrBilling(e,i,r){this.addressFormGroup.get(`${r}Address.person.firstName`).patchValue(e.person?.firstname??"",{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.person.lastName`).patchValue(e.person?.lastname??"",{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.userData.email`).patchValue(e.emailList[0]??"",{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.person.title`).patchValue(e.person?.title??"",{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.person.salutation`).patchValue(i??"",{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.person.initials`).patchValue(e.person?.initials??"",{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.address.zipcode`).patchValue(e.address?.zipcode??"",{emitEvent:!1}),e.address?.country&&this.addressFormGroup.get(`${r}Address.address.country`).patchValue(e.address?.country,{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.address.city`).patchValue(e.address?.city??"",{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.address.street`).patchValue(e.address?.street??"",{emitEvent:!1});let o=e.address?.houseno;o&&(this.addressFormGroup.get(`${r}Address.address.houseNo`).patchValue(Bi.getHouseNumber(o),{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.address.stiege`).patchValue(Bi.getStiege(o),{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.address.stock`).patchValue(Bi.getStock(o),{emitEvent:!1}),this.addressFormGroup.get(`${r}Address.address.tuer`).patchValue(Bi.getTuer(o),{emitEvent:!1}))}areRelevantFormsValid(){let e=this.addressFormGroup.get("deliveryAddress");e?.enable({emitEvent:!1}),e?.updateValueAndValidity({emitEvent:!1});let i=e?.valid;if(e?.disable({emitEvent:!1}),this.addressFormGroup.get("billingAddress.showAddress")?.value){let r=this.addressFormGroup.get("billingAddress");r?.enable({emitEvent:!1}),r?.updateValueAndValidity({emitEvent:!1}),i&&=r?.valid,r?.disable({emitEvent:!1})}return i}isBillingAddressActive(){return this.addressCombination()===Ni.ONLY_BILLING?!0:this.addressCombination()!==Ni.BOTH?!1:!!this.addressFormGroup.get("billingAddress.showAddress")?.value}applyBillingAddressActivation(){let e=this.isBillingAddressActive(),i=!1;Gle.forEach(r=>{let o=this.billingAddressGroup.get(r);!o||o.enabled===e||(e?o.enable({emitEvent:!1}):o.disable({emitEvent:!1}),i=!0)}
626),i&&this.addressFormGroup.updateValueAndValidity()}handleConfigurations(){this.showWarningForOrderWithoutAddress.set(this.configService.getConfig("subscription.client-without-address.show-warning")?.value==="1"),this.configService.loadConfig("requiredFields.addr.birthday").subscribe(e=>{e?.value&&(this.isBirthdayRequired.set(e.value==="true"||e.value==="1"),this.isBirthdayRequiredConst.set(this.isBirthdayRequired()))}),this.configService.loadConfig("offer.askForPhone").subscribe(e=>{e?.value&&this.askForPhone.set(e.value==="true"||e.value==="1")}),this.configService.loadConfig("requiredFields.addr.phone").subscribe(e=>{e?.value&&(this.isPhoneRequired.set(e.value==="true"||e.value==="1"),this.addressCombination()==Ni.BOTH||this.addressCombination()==Ni.ONLY_DELIVERY?this.setPhoneFieldsRequired("deliveryAddress"):(this.addressCombination()==Ni.BOTH||this.addressCombination()==Ni.ONLY_BILLING)&&this.setPhoneFieldsRequired("billingAddress"))}),this.configService.loadConfig("offer.askForBirthday").subscribe(e=>{e?.value&&(this.askForBirthday.set(e.value==="true"||e.value==="1"),this.askForBirthdayConst.set(this.askForBirthday()))}),this.configService.loadConfig("requiredFields.addr.birthday").subscribe(e=>{e?.value&&(this.isBirthdayRequired.set(e.value==="true"||e.value==="1"),this.isBirthdayRequiredConst.set(this.isBirthdayRequired()))})}buildAddressForm(){if(this.addressFormGroup=this.formBuilder.group({deliveryAddress:this.formBuilder.group({userData:this.formBuilder.group({birthDay:[""],phone:[""],email:[""]}),showAddress:[""],address:this.formBuilder.group({country:[""],zipcode:[""],city:[""],street:[""],houseNo:[""],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:[""],firstName:[""],lastName:[""],initials:[""],middlename:[""]})}),billingAddress:this.formBuilder.group({userData:this.formBuilder.group({birthDay:[""],phone:[""],email:[""]}),showAddress:[""],address:this.formBuilder.group({country:[""],zipcode:[""],city:[""],street:[""],houseNo:[""],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:[""],firstName:[""],lastName:[""],initials:[""],middlename:[""]})}),email:["",[Z.required,Z.pattern(ls.EMAIL)]]}),!this.hideLoginBox()){let e=this.addressFormGroup.get("email");e.clearValidators(),e.updateValueAndValidity({emitEvent:!1})}}onSelectAddresses(){this.orderTrackingService.pushEvent(Fn.ADDED_ADDRESSES,{})}get deliveryAddressGroup(){return this.addressFormGroup.get("deliveryAddress")}get billingAddressGroup(){return this.addressFormGroup.get("billingAddress")}setValidatorsAtForm(e,i){}handleBaseData(){this.salutations=this.baseDataService.getBaseData("addresscodes"),this.clientTypes=this.baseDataService.getBaseData("clienttypes")}evaluatePhoneAndBirthdayFields(e){}setAsyncValidators(){this.addressFormGroup.get("email").setAsyncValidators(Hi.checkEmailAddress(this.http,this.translationService))}setPhoneFieldsRequired(e){this.addressFormGroup?.get(e+".userData?.phone")?.addValidators(Z.required),this.addressFormGroup?.get(e+".userData?.phone")?.updateValueAndValidity()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-address-step"]],inputs:{hideLoginBox:[1,"hideLoginBox"],isWinBack:[1,"isWinBack"],isEditable:[1,"isEditable"],currentProductAlreadyOrdered:[1,"currentProductAlreadyOrdered"],bonusSelection:[1,"bonusSelection"],offer:[1,"offer"],addressCombination:[1,"addressCombination"],parentStepper:"parentStepper"},outputs:{stepCompleted:"stepCompleted"},decls:12,vars:11,consts:[[1,"mt-md-5","mt-3","offer-detail__form","offer-detail__form--address",3,"formGroup"],[3,"warnings"],[3,"className"],[1,"offer-detail__address-warning",3,"warnings"],["activateCheckboxText","address_diffBilling",1,"offer-detail__address-component","offer-detail__address-component--billing",3,"showActivateCheckbox","askForBirthday","askForEmail","askForPhone","isPhoneRequired","isBirthdayRequired","controlGroup","forProductType","addressType"],[1,"offer-detail__address-component","offer-detail__address-component--delivery",3,"showActivateCheckbox","ask
626ForBirthday","askForEmail","askForPhone","isPhoneRequired","isBirthdayRequired","controlGroup","addressType"],[1,"col-12","ps-2","offer-detail__form-field","offer-detail__form-field--address-email"],[1,"text-end","mt-1","offer-detail__next-btn","offer-detail__next-btn--address"],["type","button","mat-raised-button","",1,"me-3","offer-detail__back-btn","offer-detail__back-btn--address",3,"innerHTML"],["type","submit","mat-raised-button","","matStepperNext","","color","primary","data-cy","btn-address-next",3,"click","disabled","innerHTML"],[1,"mb-3","offer-detail__address-readonly",3,"innerHTML"],[1,"offer-detail__address-component","offer-detail__address-component--readonly",3,"isReadOnly","showAddressExt1","controlGroup","addressType"],[1,"mt-md-5","mt-3"],[3,"showActivateCheckbox","askForBirthday","askForEmail","controlGroup","activateCheckboxText","addressType"],[1,"offer-detail__address-component","offer-detail__address-component--delivery",3,"showActivateCheckbox","isReadOnly","askForBirthday","askForEmail","askForPhone","isPhoneRequired","isBirthdayRequired","controlGroup","forProductType","addressType"],["activateCheckboxText","address_diffBilling",1,"offer-detail__address-component","offer-detail__address-component--billing",3,"showActivateCheckbox","askForPhone","isPhoneRequired","controlGroup","addressType"],[3,"innerHTML"],["matInput","","formControlName","email","required","","data-cy","input-email",3,"value"],["matSuffix","",1,"iconInInput","offer-detail__input-spinner",2,"float","right","margin-left","18px",3,"diameter"],["matSuffix","",1,"iconInInput","offer-detail__input-icon"],[1,"offer-detail__error"],["type","button","mat-raised-button","",1,"me-3","offer-detail__back-btn","offer-detail__back-btn--address",3,"click","innerHTML"]],template:function(i,r){if(i&1&&(p(0,"form",0),x(1,Ole,1,5,"app-general-warning",1)(2,Nle,3,6),p(3,"div",2),x(4,Rle,1,5,"app-general-warning",3)(5,Fle,2,15)(6,Lle,1,9,"app-hup-subscription-address",4)(7,Ble,1,8,"app-hup-subscription-address",5),m(),x(8,zle,6,6,"mat-form-field",6),p(9,"div",7),x(10,Ule,1,1,"button",8),p(11,"button",9),T("click",function(){return r.parentStepper.next(),r.onSelectAddresses()}),m()()()),i&2){let o,a,s,l;f("formGroup",r.addressFormGroup),c(),b(r.currentProductAlreadyOrdered()?1:-1),c(),b(r.userData()&&((o=r.userData())==null?null:o.userBackendId)>0?2:-1),c(),f("className",r.userData()&&((a=r.userData())==null?null:a.userBackendId)>0?"d-none offer-detail__address-form--hidden":"offer-detail__address-form"),c(),b(r.showWarningForOrderWithoutAddress()&&r.clientWithoutAddressAllowed()?4:-1),c(),b((s=r.addressCombination())===r.AddressCombination.BOTH?5:s===r.AddressCombination.ONLY_BILLING?6:s===r.AddressCombination.ONLY_DELIVERY?7:-1),c(3),b(r.hideLoginBox()&&!r.isWinBack()?8:-1),c(2),b(r.userData()?-1:10),c(),f("disabled",!M2(10,kle).includes((l=r.addressFormGroup.get("deliveryAddress"))==null?null:l.status)||((l=r.addressFormGroup.get("billingAddress.showAddress"))==null?null:l.value)==!0&&!((l=r.addressFormGroup.get("billingAddress"))!=null&&l.valid))("innerHTML",r.translationService.getTranslation("button_next"),y)}},dependencies:[Ot,wi,Bt,At,Wt,ai,bt,Ut,Zo,vr,Nt,Pt,up,fn,Ht,Ee,Gl],encapsulation:2})}}return t})();function $le(t,n){if(t&1&&_(0,"div",15),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_orderRegister"),y)}}function Wle(t,n){if(t&1){let e=B();p(0,"mat-step",4),x(1,$le,1,1,"ng-template",8),p(2,"app-registration-step",14),T("stepReady",function(r){A(e);let o=h();return k(o.onRegistrationStepCompleted(r))}),m()()}if(t&2){let e=h(),i=J(3);f("editable",e.isEditable())("completed",e.registrationStepCompleted()),c(2),f("parentStepper",i)("isAuthenticated",e.isAuthenticated())("hideLoginBox",e.hideLoginBox())("isEditable",e.isEditable())}}function qle(t,n){if(t&1&&_(0,"div",17),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_orderAddr"),y)}}function Yle(t,n){if(t&1){let e=B();p(0,"mat-step",5),x(1,qle,1,1,"ng-template",8),p(2,"app-address-step",16),T("stepCompleted",function(r){A(e);let o=h();return k(o.onAddressStepCompleted(r))}),m()()}if(t&2){let e=h(),i=J(3);f("completed",e.addressStepCompleted()),c(2),f("isEditable",e.isEditable())("hideLoginBox",e.hideL
626oginBox())("isWinBack",e.isWinback())("offer",e.offer())("currentProductAlreadyOrdered",e.currentProductAlreadyOrdered())("parentStepper",i)("addressCombination",e.addressCombination())}}function Kle(t,n){if(t&1&&_(0,"div",19),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_orderBonus"),y)}}function Qle(t,n){if(t&1){let e=B();p(0,"mat-step",6),x(1,Kle,1,1,"ng-template",8),p(2,"app-bonus-step",18),T("stepCompleted",function(r){A(e);let o=h();return k(o.onBonusStepCompleted(r))}),m()()}if(t&2){let e=h(),i=J(3);f("editable",e.isEditable())("completed",e.bonusStepCompleted()),c(2),f("parentStepper",i)("isAuthenticated",e.isAuthenticated())("bonuses",e.offer().bonusList)}}function Zle(t,n){if(t&1&&_(0,"div",20),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("step_orderPayment"),y)}}function Xle(t,n){if(t&1&&_(0,"div",21),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("step_summary"),y)}}var SH=(()=>{class t{constructor(){this.AddressCombination=Ni,this.configService=d(Ce),this.translationService=d(Y),this.snackBar=d(Yi),this.subscriptionService=d(ct),this.orderTrackingService=d(Gr),this.navigationService=d(Re),this.loginService=d(ft),this.orderProcessService=d(zn),this.scriptLoader=d(Tb),this.offer=we.required(),this.userData=we(),this.platformId=d(Qe),this.selectedBillingAddress=null,this.selectedBonusAddress=null,this.selectedDeliveryAddress=null,this.selectedFormOfPayment=null,this.selectedPaymentFrequency=null,this.selectedStartDate=null,this.creatingOrder=!1,this.stepperOrientation=we("horizontal"),this.isAuthenticated=we(!1),this.isEditable=we(!1),this.hideLoginBox=we(!1),this.isWinback=we(!1),this.paymentStepCompleted=ee(!1),this.addressStepCompleted=ee(!1),this.registrationStepCompleted=ee(!1),this.bonusStepCompleted=ee(!1),this.onlyOneAddress=ee(!1),this.currentProductAlreadyOrdered=we(!1),this.addressCombination=ee(Ni.NONE),this.stepperInitialized=ee(!1)}stepperSelectionChanged(e){e.previouslySelectedIndex>e.selectedIndex}onCompleteOrder(e){this.creatingOrder=!0,nt(this.platformId)&&window.scrollTo(0,0);let i=this.orderProcessService.snapshot();i.addresses?.email&&(!this.userData()||i.clientNoUrl?this.subscriptionService.sendOrderUnauthorized(i).subscribe({next:r=>{this.orderTrackingService.pushEvent(Fn.PURCHASED,r.body),this.doUpScoreTracking().catch(l=>console.error("UpScore tracking failed",l));let o=r.otlc??"";o.length&&this.loginService.loginByOtlc(o),this.creatingOrder=!1;let a=r.body.webId,s=r.body.backendId>0?r.body.backendId.toString():"-1";this.subscriptionService.setPriceForKey(a,this.offerPrice),this.navigationService.navigateTo(ge.OFFERORDERED,[a.toString(),s,this.offer().orderChoiceKey.toString()]).then(l=>{l&&this.snackBar.openSnackbar(this.translationService.getTranslation("saved"))})},error:r=>{this.creatingOrder=!1,console.error(r)}}):this.subscriptionService.sendOrder(i).subscribe({next:r=>{this.orderTrackingService.pushEvent(Fn.PURCHASED,r),this.doUpScoreTracking().catch(a=>console.error("UpScore tracking failed",a)),this.creatingOrder=!1;let o=r.backendId>0?r.backendId:r.webId;this.subscriptionService.setPriceForKey(o,this.offerPrice),this.navigationService.navigateTo(ge.OFFERORDERED,[r.webId,r.backendId,this.offer().orderChoiceKey.toString()])},error:r=>{this.creatingOrder=!1,console.error(r)}}))}onOptInsSelected(e){}ngOnInit(){this.configService.loadConfig("offer.onlyOneAddress").subscribe(e=>{setTimeout(()=>{this.onlyOneAddress.set(e&&e.value==="1"),this.defineAddressCombination()})})}ngAfterViewInit(){setTimeout(()=>this.stepperInitialized.set(!0))}doUpScoreTracking(){return li(this,null,function*(){let e=Object.fromEntries(new URLSearchParams(window.location.search)),i=()=>{let a=this.configService.getConfig("offer.tracking.upScore.objectIdKey")?.value;a=a||"upScoreId";let l={object_id:e[a]??"",object_type:"article",conversion:2},u;o=="v3"?u={config:{domain:r,article:"article",track_positions:!0},data:l}:u=l,console.log("%cUpScore-Parameter: ","color:orange;",u),o=="v3"?upScore(u):upScore("page_view",u)},r=this.configService.getConfig("offer.tracking.upScore.domain")?.value,o=this.configService.getConfig("offer.tracking.upScore.ver
626sion")?.value??"v4";if(typeof r=="string"&&r.startsWith("Param:")){let a=r.substring(6),s=a.indexOf("->"),l=s>=0?a.substring(0,s):a,u=s>=0?a.substring(s+2):"",g=l?e[l]:null;if(u.length>0){g=decodeURIComponent(typeof g=="string"?g:"");let w=g.indexOf("?"),C=w>=0?g.substring(w+1):g;g=Object.fromEntries(new URLSearchParams(C??""))[u]??null;try{g=new URL(g).hostname}catch{try{g=new URL("https://"+g).hostname}catch(O){console.error("UpScore-Domain kann nicht ermittelt werden aus URL: "+(O?.message??O)),g=null}}}if(r=g||null,typeof r=="string"&&r.length>0){let v=r.match(/[^.]+/g)??[];r=v.length>=2?v.slice(-2).join("."):r}else r=null}if(r)if(typeof upScore=="function")i();else{let a={v3:"https://files.upscore.com/async/upScore.js",v4:"https://files.upscore.com/site_script/"+r+".js"},s=typeof o=="string"?o.toLowerCase().trim():"v4",l=a[s]??a.v4;try{if(!l){console.error("UpScore-Script-URL fehlt f\xFCr Version: "+s);return}if(yield this.scriptLoader.loadScript(l),typeof upScore=="function"){i();return}else console.error("UpScore-API nicht gefunden ("+l+")")}catch(u){console.error(u)}}})}onRegistrationStepCompleted(e){this.registrationStepCompleted.set(e)}onPaymentStepCompleted(e){this.paymentStepCompleted.set(e)}onAddressStepCompleted(e){this.addressStepCompleted.set(e)}onBonusStepCompleted(e){this.bonusStepCompleted.set(e)}defineAddressCombination(){if(this.offer().offerType.ePaper)return;let e=this.offer().requiredAddresses.deliveryAddressRequired,i=this.offer().requiredAddresses.billingAddressRequired;if(!e&&!i){this.addressCombination.set(Ni.NONE);return}if(this.onlyOneAddress()){this.addressCombination.set(e?Ni.ONLY_DELIVERY:Ni.ONLY_BILLING);return}e&&i?this.addressCombination.set(Ni.BOTH):e?this.addressCombination.set(Ni.ONLY_DELIVERY):this.addressCombination.set(Ni.ONLY_BILLING)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-print-offer"]],inputs:{offer:[1,"offer"],userData:[1,"userData"],stepperOrientation:[1,"stepperOrientation"],isAuthenticated:[1,"isAuthenticated"],isEditable:[1,"isEditable"],hideLoginBox:[1,"hideLoginBox"],isWinback:[1,"isWinback"],currentProductAlreadyOrdered:[1,"currentProductAlreadyOrdered"]},decls:15,vars:27,consts:[["stepper",""],[1,"row","offer-detail__row"],[1,"col-12","col-md-8","offer-detail__main"],["appMatVerticalStepperScroller","","labelPosition","bottom",1,"offer-detail__stepper",3,"selectionChange","linear","orientation"],[1,"offer-detail__step","offer-detail__step--register",3,"editable","completed"],[1,"offer-detail__step","offer-detail__step--address",3,"completed"],[1,"offer-detail__step","offer-detail__step--bonus",3,"editable","completed"],[1,"offer-detail__step","offer-detail__step--payment",3,"editable","completed"],["matStepLabel",""],[3,"readyState","currentProductAlreadyOrdered","offer","parentStepper","userData"],[1,"offer-detail__step","offer-detail__step--price"],[3,"stepper","offer","userData"],[3,"className"],[1,"offer-detail__side-card",3,"save","optInsSelected","offer","showOnOfferPage","stepper","deliveryAddress","billingAddress","bonusAddress","paymentCode","paymentFrequency","startDate","prices","creatingOrder","onlinePayment"],[3,"stepReady","parentStepper","isAuthenticated","hideLoginBox","isEditable"],[1,"offer-detail__step-label","offer-detail__step-label--register",3,"innerHTML"],[3,"stepCompleted","isEditable","hideLoginBox","isWinBack","offer","currentProductAlreadyOrdered","parentStepper","addressCombination"],[1,"offer-detail__step-label","offer-detail__step-label--address",3,"innerHTML"],[3,"stepCompleted","parentStepper","isAuthenticated","bonuses"],[1,"offer-detail__step-label","offer-detail__step-label--bonus",3,"innerHTML"],[1,"offer-detail__step-label","offer-detail__step-label--payment",3,"innerHTML"],[1,"offer-detail__step-label","offer-detail__step-label--price",3,"innerHTML"]],template:function(i,r){if(i&1){let o=B();p(0,"div",1)(1,"div",2)(2,"mat-stepper",3,0),T("selectionChange",function(s){return A(o),k(r.stepperSelectionChanged(s))}),x(4,Wle,3,6,"mat-step",4)(5,Yle,3,8,"mat-step",5)(6,Qle,3,5,"mat-step",6),p(7,"mat-step",7),x(8,Zle,1,1,"ng-template",8),p(9,"app-payment-step",9),T("readyState",function(s){return A(o),k(r.onPaymentStepCompleted(s))}),m()(),p(10,"mat-step",10),x(11,Xle,1,1,"ng-template",8),_(12,"app-summary-step",11),m()()(),p(13,"div",12)(14,"app-offer-card",13),T("save",function(s){return A(o),k(r.onCompleteOrder(s))})("optInsSelected",function(s){return A(o),k(r.onOptInsSelected(s))}),m()()()}if(i&2){let o=J(3);c(2),f("linear",!0)("orientation",r.stepperOrientation()),c(2),b(!r.isAuthenticated()&&!r.hideLoginBox()?4:-1),c(),b(r.offer()&&r.addressCombination()!=r.AddressCombination.NONE?5:-1),c(),b(r.offer()&&r.offer().bonusList.length>0?6:-1),c(),f("editable",r.isEditable())("completed",r.paymentStepCompleted()),c(2),f("currentProductAlreadyOrdered",r.currentProductAlreadyOrdered())("offer",r.offer())("parentStepper",o)("userData",r.userData()),c(3),f("stepper",o)("offer",r.offer())("userData",r.userData()),c(),f("className","col-12 col-md-4 offer-detail__side"),c(),f("offer",r.offer())("showOnOfferPage",!1)("stepper",o)("deliveryAddress",r.selectedDeliveryAddress)("billingAddress",r.selectedBillingAddress)("bonusAddress",r.selectedBonusAddress)("paymentCode",r.selectedFormOfPayment)("paymentFrequency",r.selectedPaymentFrequency)("startDate",r.selectedStartDate)("prices",r.offerPrice)("creatingOrder",r.creatingOrder)("onlinePayment",!0)}},dependencies:[CH,Sb,Zs,Ia,as,xb,Eb,Db,Mb,Hl],encapsulation:2})}}return t})();var Jle=["login"],ece=["stepper"],tce=["offerContainer"];function ice(t,n){t&1&&(p(0,"div",1),_(1,"app-loading-spinner"),m())}function nce(t,n){if(t&1&&_(0,"div",2),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("offer_not_found"),y)}}function rce(t,n){if(t&1&&_(0,"app-digital-offer",8),t&2){let e=h(2);f("offer",e.offer())("stepperOrientation",e.stepperOrientation)("isAuthenticated",e.isAuthenticated)("isEditable",e.isEditable)("hideLoginBox",e.hideL
626oginBox)("isWinback",e.isWinback)("currentProductAlreadyOrdered",e.currentProductAlreadyOrdered())("userData",e.userData())}}function oce(t,n){if(t&1&&_(0,"app-print-offer",8),t&2){let e=h(2);f("offer",e.offer())("stepperOrientation",e.stepperOrientation)("isAuthenticated",e.isAuthenticated)("isEditable",e.isEditable)("hideLoginBox",e.hideLoginBox)("isWinback",e.isWinback)("currentProductAlreadyOrdered",e.currentProductAlreadyOrdered())("userData",e.userData())}}function ace(t,n){if(t&1){let e=B();p(0,"div",6,0),T("resize",function(){A(e);let r=h();return k(r.onResize())},!1,Lk),_(2,"app-general-errors",7),x(3,rce,1,8,"app-digital-offer",8)(4,oce,1,8,"app-print-offer",8),m()}if(t&2){let e=h();c(2),f("errors",e.errorsArr),c(),b(e.isDigitalOffer()?3:4)}}function sce(t,n){if(t&1){let e=B();p(0,"button",9),T("click",function(){A(e);let r=h();return k(r.backToOverview())}),m()}if(t&2){let e=h();f("innerHTML",e.translationService.getTranslation("button_back_to_overview"),y)}}var wH=(()=>{class t{isDigitalOffer(){return si(this.offer()?.offerType)}set offerContainerRef(e){this.offerContainer=e??null,this.offerContainer&&setTimeout(()=>this.calculateWidth(),0)}constructor(){this.orderProcessService=d(zn),this.baseDataService=d(vt),this.loginService=d(ft),this.offerService=d(Qo),this.hupSubscriptionsService=d(ct),this.route=d(Ye),this.translationService=d(Y),this.configService=d(Ce),this.vHostService=d(Ai),this.orderTrackingService=d(Gr),this.navigationService=d(Re),this.moveService=d(Eu),this.platformId=d(Qe),this.dateAdapter=d(qt),this.askForPaymentAccountHolder=!1,this.countries=[],this.CssPropertiesEnum=tt,this.colAmount=5,this.offer=ee(null),this.isEditable=!0,this.isAuthenticated=!1,this.errorsArr=[],this.isLoadingUserData=!1,this.isLoadingView=!1,this.offerFound=!0,this.userData=ee(null),this.minDate=new Date,this.clientTypes=[],this.additionalData=[],this.leftSide=66,this.rightSide=33,this.offerContainer=null,this.stepperOrientation="horizontal",this.redirectUrl=null,this.clientNoUrl=null,this.startDateUrl=null,this.urlParams=new Map,this.isWinback=!1,this.hideLoginBox=!1,this.imageService=d(Ei),this.proposedInvoiceEmail="",this.currentProductAlreadyOrdered=ee(!1),this.document=typeof document=="object"?document:null,d(jf).addIcons(xH.faEuro),this.dateAdapter.getFirstDayOfWeek=()=>1,this.isLoadingView=!0,this.handleConfigs(),this.clientTypes=this.baseDataService.getBaseData("clienttypes")}handleConfigs(){this.hideLoginBox=this.configService.getConfig("offer.hideLoginWhileOffer")?.asBoolean(),this.showBackToOverviewButton=this.configService.getConfig("show.backToOverView.button")?.asBoolean()}onResize(){this.calculateWidth()}calculateWidth(){let e=this.offerContainer?.nativeElement?.offsetWidth??0,i=nt(this.platformId)?window.innerWidth:0,r=e||i;r&&(this.colAmount=r>=768?3:2,this.stepperOrientation=r<=700?"vertical":"horizontal",this.leftSide=r<=850?100:66,this.rightSide=r<=850?100:33)}ngOnInit(){this.optinResult=new Map,this.countries=this.baseDataService.getBaseData("countrycodes"),this.handleQueryParameters()}handleQueryParameters(){this.route.queryParamMap.subscribe(e=>{this.redirectUrl=e.get("redirect_URL"),this.orderProcessService.update(i=>re(N({},i),{redirectUrl:this.redirectUrl}))}),this.route.queryParamMap.subscribe(e=>{this.startDateUrl=e.get("startDate"),this.startDateUrl&&(this.minDate=new Date(this.startDateUrl))}),this.route.queryParamMap.subscribe(e=>{this.configService.getConfig("offer.savedQueryParams")?.value.split(",").forEach(r=>{e.has(r)&&(this.urlParams.set(r,e.get(r)),this.orderProcessService.update(o=>re(N({},o),{urlParams:this.urlParams})))})}),this.route.paramMap.subscribe(e=>{let i=e.get("offerId");i&&Number.isInteger(+i)&&this.offerService.getOfferDetail(+i).subscribe(r=>{this.handleOffer(r)})})}handleOffer(e){if(e){setTimeout(()=>{this.offer.set(e),this.calculateWidth(),this.checkIfCurrentProductAlreadyOrdered(new Date)}),this.orderProcessService.update(r=>re(N({},r),{offer:e})),this.authSub=this.loginService.getAuthData().subscribe(r=>{this.isAuthenticated=!!r&&r.token!==null,this.isAuthenticated&&this.loginService.getUserData().subscribe(o=>{o.userBackendId?this.moveService.getUser().subscribe({next:a=>{a&&(o.emailList.length>0&&(a.emailList=o.emailList),this.handleUserData(a))},error:()=>{o.person=null,o.address=null,o.mobileList=[],o.phoneList=[],this.handleUserData(o)}}):this.handleUserData(o)})}),this.hupSubscriptionsService.getNextDeliveryDate(e.product.productC
626ode,e.product.variantCodeList[0]).subscribe(r=>{if(si(e.offerType)&&(r=new Date),!si(e.offerType)){let o=new Date,a=o.getDay();this.configService.loadConfig("order.delayToStart."+a).subscribe(s=>{s.value!=null&&(o.setDate(o.getDate()+parseInt(s.value)),o.getTime()>r.getTime()&&(r=o));let l=new Date,u=l.getTime()<=r.getTime()?r:l;this.minDate=u>this.minDate?u:this.minDate})}});let i=this.configService.getConfig("order.maxDelayToStart");i.value!=null&&Number(i.value)>0&&(this.maxDate=new Date,this.maxDate.setDate(this.minDate.getDate()+Number(i.value))),this.orderTrackingService.pushEvent(Fn.BEGIN_CHECKOUT,e)}else this.offerFound=!1}handleUserData(e){this.isLoadingUserData=!1,this.userData.set(e),this.proposedInvoiceEmail=this.userData().emailList?.at(0)??"",this.orderProcessService.update(o=>re(N({},o),{ssoEmail:this.proposedInvoiceEmail!=""?this.proposedInvoiceEmail:o.registration.email})),this.isUserLoggedIn=this.userData()&&this.userData()?.userBackendId>0,this.userData()?.person?.initials&&(this.userData().person.initials=this.userData().person.initials.split(".").join(""));let i=this.userData().person?.addressCode;this.userData()?.person?.salutation&&!this.userData()?.person.addressCode&&this.clientTypes?.forEach(o=>{o.key===this.userData().person.salutation&&(i=o.defaultAddressCodeId)});let r=null;this.userData()?.address&&this.countries?.forEach(o=>{o.key===this.userData().address?.country.toUpperCase()&&(r=o)}),this.userData()?.userBackendId>0&&this.orderProcessService.update(o=>re(N({},o),{userBackendId:this.userData().userBackendId})),this.userData()?.userSSOId>0&&this.orderProcessService.update(o=>re(N({},o),{userSSOId:this.userData().userSSOId})),(this.offer()?.requiredAddresses?.deliveryAddressRequired&&this.userData()||this.isUserLoggedIn)&&this.orderProcessService.update(o=>re(N({},o),{addresses:re(N({},o.addresses),{deliveryAddress:this.getAddressFromUserData(i)})})),this.offer()?.requiredAddresses?.billingAddressRequired&&!this.offer()?.requiredAddresses?.deliveryAddressRequired&&this.userData()&&this.orderProcessService.update(o=>re(N({},o),{addresses:re(N({},o.addresses),{billingAddress:this.getAddressFromUserData(i)})})),this.orderProcessService.update(o=>re(N({},o),{userData:this.userData()})),this.checkIfCurrentProductAlreadyOrdered(new Date)}getAddressFromUserData(e){let i=this.userData().person?.firstname??"",r=this.userData().person?.lastname??"",o=this.userData().emailList[0]??"",a=this.userData().person?.title??"",s=e?.key??"",l=this.userData().person?.initials??"",u=this.userData().address?.street??"",g=this.userData()?.birthday??"",v=this.userData().address?.zipcode??"",w=this.userData().address?.country??"",C=this.userData().address?.city??"",S=this.userData().address?.district??"",D=this.userData().address?.houseno,O=D?Bi.getHouseNumber(D):"",V=this.userData().address?.webId??0,Q=this.userData().address?.backendId??0,ie=this.userData().address?.userBackendId??0,U=this.userData().address?.userSSOId??0,Me={birthDay:g,email:o},Oe=new os(a,s,i,r,l),ae=new Do(u,O,v,C,w,V,Q,ie,U,S);return{userData:Me,person:Oe,address:ae}}setValidationChangeListener(){}isString(e){return Object.prototype.toString.call(e)==="[object String]"}onClickEvent(){this.loginComponent.onClickEvent()}ngOnDestroy(){this.authSub?.unsubscribe(),this.orderProcessService.resetState()}backToOverview(){this.navigationService.navigateTo(ge.OFFER,null,!0)}ngAfterViewInit(){this.isWinback=!1,console.debug("View is being initialized"),setTimeout(()=>{console.debug("View is fully loaded"),this.route.queryParamMap.subscribe(e=>{this.clientNoUrl=e.get("clientNo"),this.clientNoUrl&&(this.orderProcessService.update(i=>re(N({},i),{clientNoUrl:this.clientNoUrl})),this.moveService.getUser().subscribe(i=>{this.isWinback=!0,this.isLoadingUserData=!1,this.isAuthenticated=!!i,this.handleUserData(i)}))}),nt(this.platformId)&&(this.isLoadingView=!1,setTimeout(()=>this.calculateWidth(),0))},0)}checkIfCurrentProductAlreadyOrdered(e){let i=new Date(e.getFullYear(),e.getMonth(),e.getDate()).toISOString().split("T")[0];
626this.userData()?.userBackendId&&this.offer()?.product.productCode&&this.hupSubscriptionsService.checkIfCurrentProductAlreadyOrdered(this.userData().userBackendId,this.offer().product.productCode,i).subscribe({next:r=>{this.currentProductAlreadyOrdered.set(r.exists)},complete:()=>{console.log("Finished checking if current product is already ordered.")},error:r=>{console.error("Fehler bei der Pr\xFCfung, ob das aktuelle Produkt bereits abonniert ist:",r)}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-offer-detail"]],viewQuery:function(i,r){if(i&1&&(De(Jle,5),De(ece,5),De(tce,5)),i&2){let o;se(o=le())&&(r.loginComponent=o.first),se(o=le())&&(r.stepper=o.first),se(o=le())&&(r.offerContainerRef=o.first)}},features:[_e([Le,Ps,Di,Jr])],decls:5,vars:4,consts:[["offerContainer",""],["id","offerSpinner",1,"col-12","col-md-8","text-center","offer-detail__spinner",2,"text-align","center"],["data-cy","offer-not-found",1,"offer-detail__not-found",3,"innerHTML"],[1,"offerContainer","offer-detail__container"],[1,"mt-3","float-end","offer-detail__back-to-overview"],["mat-raised-button","",3,"innerHTML"],[1,"offerContainer","offer-detail__container",3,"resize"],[1,"offer-detail__errors",3,"errors"],[3,"offer","stepperOrientation","isAuthenticated","isEditable","hideLoginBox","isWinback","currentProductAlreadyOrdered","userData"],["mat-raised-button","",3,"click","innerHTML"]],template:function(i,r){i&1&&(x(0,ice,2,0,"div",1)(1,nce,1,1,"div",2)(2,ace,5,2,"div",3),p(3,"div",4),x(4,sce,1,1,"button",5),m()),i&2&&(b((!r.offer()||r.isLoadingView)&&r.offerFound?0:-1),c(),b(r.offerFound?-1:1),c(),b(r.offer()&&!r.isLoadingView?2:-1),c(2),b(r.showBackToOverviewButton&&!r.isLoadingView?4:-1))},dependencies:[Ot,Ee,db,vH,SH,Ge,Vt],styles:[`@charset "UTF-8";.bonusBox[_ngcontent-%COMP%]{border:1px solid var(--buttonBackgroundColor)!important}.bonusName[_ngcontent-%COMP%]{padding:15px}.bonusFooter[_ngcontent-%COMP%]{background:var(--button-background-color)!important}.detailBonusButton[_ngcontent-%COMP%]{margin:15px!important;border-radius:30px!important}.alignEnd[_ngcontent-%COMP%]{float:right;padding-top:5px}.errorOffset[_ngcontent-%COMP%]{margin-left:44px}.card-rand[_ngcontent-%COMP%]{width:100%}.clicked[_ngcontent-%COMP%]{background-color:#f0f0f0;border-radius:0}.checkmark[_ngcontent-%COMP%]{font-size:24px;display:flex;float:right;object-fit:cover;justify-content:flex-end}.allCards[_ngcontent-%COMP%]{max-height:40px;display:flex;align-items:flex-start;justify-content:center}.oneCard[_ngcontent-%COMP%]{display:flex;justify-content:center;max-width:none}.icon-col[_ngcontent-%COMP%]{min-width:52px}.custom-icon[_ngcontent-%COMP%]{max-height:20px!important;object-fit:cover;margin:auto}.text[_ngcontent-%COMP%]{display:flex;align-items:center}.card-radio[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #eff0f2;border-radius:.75rem;padding:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.card-radio[_ngcontent-%COMP%]:hover{cursor:pointer}.card-radio-label[_ngcontent-%COMP%]{display:block}.card-radio-input[_ngcontent-%COMP%]{display:none}.card-radio-input[_ngcontent-%COMP%]:checked + .card-radio[_ngcontent-%COMP%]{border-color:var(--buttonBackgroundColor)!important}.font-size-16[_ngcontent-%COMP%]{font-size:16px!important}.text-truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}a[_ngcontent-%COMP%]{text-decoration:none!important}.selectedBonus[_ngcontent-%COMP%]{border-width:thick;border-color:var(--buttonBackgroundColor)}.unselectedBonus[_ngcontent-%COMP%]{border-width:thick;border-color:transparent}.summary[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:initial!important}.summary[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%;border:1px solid #ddd}.card-radio[_ngcontent-%COMP%]{line-height:40px}.card-radio[_ngcontent-%COMP%] > fa-icon[_ngcontent-%COMP%], .card-radio[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:40px;margin-bottom:.5rem}.card-radio[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:initial!important;margin:0 auto} 627/*# sourceMappingURL=offer-detail.component-AQJAU635.css.map */`]})}}return t})();var EH=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-not-found"]],decls:2,vars:0,template:function(i,r){i&1&&(p(0,"p"),E(1,"404 - Page not found!"),m())},encapsulation:2})}}return t})();function lce(t,n){if(t&1&&_(0,"h3",10),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("subscription_intro"),y)}}function cce(t,n){t&1&&(p(0,"div",7),_(1,"app-loading-spinner"),m())}function dce(t,n){if(t&1&&_(0,"p",8),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("intro_noSubs"),y)}}function uce(t,n){if(t&1&&_(0,"div",25),t&2){let e=h(4);f("innerHTML",e.translationService.getTranslation("orderstatus_admintool"),y)}}function pce(t,n){if(t&1&&_(0,"div",26),t&2){let e=h(4);f("innerHTML",e.translationService.getTranslation("orderstatus_active"),y)}}function mce(t,n){if(t&1&&_(0,"div",27),t&2){let e=h(4);f("innerHTML",e.translationService.getTranslation("orderstatus_future"),y)}}function fce(t,n){if(t&1&&_(0,"div",28),t&2){let e=h(4);f("innerHTML",e.translationService.getTranslation("orderstatus_terminated"),y)}}function hce(t,n){if(t&1&&(p(0,"div",16),x(1,uce,1,1,"div",25)(2,pce,1,1,"div",26)(3,mce,1,1,"div",27)(4,fce,1,1,"div",28),m()),t&2){let e,i=h().$implicit;c(),b((e=i.state)===-1?1:e===0?2:e===1?3:e===3?4:-1)}}function gce(t,n){if(t&1&&_(0,"mat-card-subtitle",17),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_id")+": "+e.subId,y)}}function _ce(t,n){if(t&1&&_(0,"mat-card-subtitle",18),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("label_backendid")+": "+e.userBackendId,y)}}function vce(t,n){if(t&1&&_(0,"mat-card-subtitle",19),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_edition")+": "+e.variantDescription,y)}}function bce(t,n){if(t&1&&(_(0,"mat-card-subtitle",20),te(1,"date"),te(2,"date")),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("period")+": "+Te(1,1,e.validDate.validFrom,i.translationService.getTranslation("dateFormat"))+" - "+(e.validDate.validUntil?Te(2,4,e.validDate.validUntil,i.translationService.getTranslation("dateFormat")):i.translationService.getTranslation("subscription_endless")),y)}}function yce(t,n){if(t&1&&(p(0,"mat-card-subtitle",21),E(1),te(2,"houseNoPipe"),m()),t&2){let e=h().$implicit;
627c(),ma(" ",e.curDelivery.person.addressCodeDescription," ",e.curDelivery.person.firstname," ",e.curDelivery.person.lastname,", ",e.curDelivery.address.city,", ",e.curDelivery.address.street," ",Ct(2,6,e.curDelivery.address.houseno)," ")}}function Cce(t,n){if(t&1){let e=B();p(0,"div",11)(1,"mat-card",12)(2,"div",13)(3,"div",14)(4,"mat-card-title",15),E(5),m(),x(6,hce,5,1,"div",16)(7,gce,1,1,"mat-card-subtitle",17)(8,_ce,1,1,"mat-card-subtitle",18)(9,vce,1,1,"mat-card-subtitle",19)(10,bce,3,7,"mat-card-subtitle",20)(11,yce,3,8,"mat-card-subtitle",21),m(),p(12,"div",22)(13,"mat-card-actions",23)(14,"button",24),T("click",function(){let r=A(e).$implicit,o=h(2);return k(o.aboDetails(r))}),m()()()()()()}if(t&2){let e=n.$implicit,i=h(2);c(5),he(e.productDescription),c(),b(i.showSubscriptionStatus?6:-1),c(),b(e.subId?7:-1),c(),b(e.userBackendId?8:-1),c(),b(e.variantDescription?9:-1),c(),b(e.validDate?10:-1),c(),b(e.curDelivery?11:-1),c(3),f("innerHTML",i.translationService.getTranslation("button_details"),y)}}function Sce(t,n){if(t&1&&(p(0,"div",9),W(1,Cce,15,8,"div",11,X),m()),t&2){let e=h();c(),q(e.subs)}}var DH=(()=>{class t{constructor(){this.translationService=d(Y),this.hupSubscriptionsService=d(ct),this.route=d(Ye),this.navigationService=d(Re),this.loginService=d(ft),this.configService=d(Ce),this.subs=[],this.errorsArr=[],this.aggregateSubscription=!1,this.showSubscriptionStatus=!1,this.isLoading=!0,this.aggregateSubscription=this.configService.getConfig("subscription.aggregateSequelAndCombi")?.asBoolean(),this.showSubscriptionStatus=this.configService.getConfig("subscription.showStatus")?.asBoolean()}ngOnInit(){this.loginService.getAuthData().subscribe(e=>{this.isLoading=!0,e&&e.token!==null?this.aggregateSubscription?this.hupSubscriptionsService.getSubscriptionsGroupedAlsoTerminated().subscribe(i=>{this.handleSubscriptions(i)},i=>{this.isLoading=!1,this.errorsArr.push(this.translationService.getTranslation("error_subscription_init"))}):this.hupSubscriptionsService.getSubscriptionsAlsoTerminated().subscribe(i=>{this.handleSubscriptions(i)},i=>{this.isLoading=!1,this.errorsArr.push(this.translationService.getTranslation("error_subscription_init"))}):(this.isLoading=!1,this.errorsArr.push(this.translationService.getTranslation("error_subscription_init")))})}handleSubscriptions(e){this.isLoading=!1,this.subs=e,e&&e.length===1&&this.aboDetails(this.subs[
6270])}cancelOrder(e){alert("cancelOrder")}aboDetails(e){this.navigationService.navigateTo(ge.SUBSCRIPTION,[e.webId,e.backendId])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-hup-subscription"]],features:[_e([Le])],decls:10,vars:5,consts:[[1,"row","hup-subscription"],[1,"col-12","hup-subscription__intro"],["class","hup-subscription__title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","hup-subscription__description"],[1,"hup-subscription__subtitle",3,"innerHTML"],[1,"row","hup-subscription__list"],[1,"col-12","hup-subscription__list-container"],[1,"hup-subscription__loading",2,"text-align","center"],[1,"hup-subscription__no-subs",3,"innerHTML"],[1,"row"],[1,"hup-subscription__title",3,"innerHTML"],[1,"col-12","col-md-6","col-lg-4","mt-4"],["appearance","outlined",1,"hup-subscription__card"],[1,"m-3","hup-subscription__card-row"],["tabindex","0",1,"col-12","hup-subscription__card-info"],[1,"hup-subscription__product-title"],[1,"subscription-status","float-end","me-5","hup-subscription__status"],[1,"hup-subscription__order-id",3,"innerHTML"],[1,"hup-subscription__backend-id",3,"innerHTML"],[1,"hup-subscription__edition",3,"innerHTML"],[1,"hup-subscription__period",3,"innerHTML"],[1,"hup-subscription__delivery"],[1,"col-12","hup-subscription__card-actions"],[1,"card-actions","hup-subscription__actions"],["mat-raised-button","","color","primary",1,"mt-2","hup-subscription__details-btn",3,"click","innerHTML"],[1,"hup-subscription__status--admintool",3,"innerHTML"],[1,"hup-subscription__status--active",3,"innerHTML"],[1,"hup-subscription__status--future",3,"innerHTML"],[1,"hup-subscription__status--terminated",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,lce,1,1,"h3",2),m(),p(3,"div",3),_(4,"p",4),m()(),p(5,"div",5)(6,"div",6),x(7,cce,2,0,"div",7)(8,dce,1,1,"p",8)(9,Sce,3,0,"div",9),m()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("subscription_intro")),c(2),f("innerHTML",r.translationService.getTranslation("subscription_description"),y),c(3),b(r.isLoading?7:-1),c(),b(!r.isLoading&&r.subs.length==0?8:-1),c(),b(!r.isLoading&&r.subs.length>0?9:-1))},dependencies:[Ge,at,Li,Xr,Le,Di,hr,Ee,ze],styles:[`.card-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin:0}.subscription-status[_ngcontent-%COMP%]{color:var(--buttonBackgroundColor)} 628/*# sourceMappingURL=hup-subscription.component-KO5SJQTO.css.map */`]})}}return t})();var Xo=(()=>{class t{constructor(){}handleAPIError(e,i,r,o){if(typeof i=="string")return r.push(i),r;for(let[a,s]of Object.entries(i))if(typeof s=="object")t:for(let[l,u]of Object.entries(s)){for(let g of e)try{g.setErrors({message:u}),g.get(a).get(l).setErrors({message:u}),g.get(a).get(l).markAsTouched();continue t}catch{}r.push(u)}else r.push(String(s));if(o){let a=0;for(let s of o.steps){if(s.hasError){o.selectedIndex=a;break}a++}}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function mp(t,n,e,i,r){return mn.ofCountryCode(n?.toUpperCase()??"")===mn.AUSTRIA?Bi.ofAustriaParts(t??"",i??"",e??"",r??"").houseNoVec:Bi.ofDefault(t??"").houseNoVec}function TH(t){if(!t)return t;try{return Bi.formatForHuman(t)}catch(n){return console.error("HouseNo konnte nicht formatiert werden:",t,n),t}}function xce(t,n){if(t&1&&_(0,"h3",12),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("move_intro"),y)}}function wce(t,n){t&1&&(p(0,"div",11),_(1,"app-loading-spinner",13),m())}function Ece(t,n){if(t&1&&_(0,"h5",30),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("move_existingMoveHeadline"),y)}}function Dce(t,n){if(t&1&&(p(0,"div",31)(1,"div",32),_(2,"div",33),p(3,"div",34),E(4),te(5,"date"),m()()(),p(6,"div",31)(7,"div",32),_(8,"div",33),p(9,"div",34),E(10),m()()(),p(11,"div",31)(12,"div",32),_(13,"div",33),p(14,"div",34),E(15),te(16,"houseNoPipe"),m()()(),p(17,"div",31)(18,"div",32),_(19,"div",33),p(20,"div",34),E(21),m()()(),p(22,"div",31)(23,"div",32),_(24,"div",33),p(25,"div",34),E(26),m()()()),t&2){let e=n.$implicit,i=h(3);c(2),f("innerHTML",i.translationService.getTranslation("startdate"),y),c(2),R(" ",Te(5,11,e.validDate.validFrom,i.translationService.getTranslation("dateFormat"))," "),c(4),f("innerHTML",i.translationService.getTranslation("name"),y),c(2),R(" ",e.person.addressCodeDe
628scription+" "+(e.person.firstname?e.person.firstname+" ":"")+" "+e.person.lastname," "),c(3),f("innerHTML",i.translationService.getTranslation("address_street"),y),c(2),Pe(" ",e.address.street," ",Ct(16,14,e.address.houseno)," "),c(4),f("innerHTML",i.translationService.getTranslation("address_postcode"),y),c(2),R(" ",e.address.zipcode," "),c(3),f("innerHTML",i.translationService.getTranslation("address_city"),y),c(2),R(" ",e.address.city," ")}}function Tce(t,n){if(t&1&&(x(0,Ece,1,1,"h5",28),_(1,"div",29),W(2,Dce,27,16,null,null,X)),t&2){let e=h(2);f("appApplyIfNotEmpty",e.translationService.getTranslation("move_existingMoveHeadline")),c(),f("innerHTML",e.translationService.getTranslation("move_existingMoveIntro"),y),c(),q(e.moves)}}function Mce(t,n){if(t&1&&_(0,"h5",35),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("label_personalData"),y)}}function Ice(t,n){if(t&1&&(p(0,"div",15)(1,"div",16),_(2,"div",17),p(3,"div",18),E(4),te(5,"date"),m()()()),t&2){let e=h(2);c(2),f("innerHTML",e.translationService.getTranslation("address_birthday"),y),c(2),R(" ",Te(5,2,e.userData==null?null:e.userData.birthday,e.translationService.getTranslation("dateFormat"))," ")}}function Ace(t,n){if(t&1&&_(0,"h5",36),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("move_current"),y)}}function kce(t,n){if(t&1&&_(0,"h5",24),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("label_contactData"),y)}}function Oce(t,n){if(t&1&&(p(0,"li"),E(1),m()),t&2){let e=n.$implicit;c(),Pe("",e.prefixNumber," / ",e.telNumber,"")}}function Pce(t,n){if(t&1&&(p(0,"div",25)(1,"div",37),_(2,"div",38),p(3,"div",39)(4,"ul",40),W(5,Oce,2,2,"li",null,X),m()()()()),t&2){let e=h(2);c(2),f("innerHTML",e.translationService.getTranslation("address_telephone"),y),c(3),q(e.userData==null?null:e.userData.phoneList)}}function Nce(t,n){if(t&1&&(p(0,"li"),E(1),m()),t&2){let e=n.$implicit;c(),he(e.prefixNumber+" / "+e.telNumber)}}function Rce(t,n){if(t&1&&(p(0,"div",25)(1,"div",37),_(2,"div",38),p(3,"div",39)(4,"ul",40),W(5,Nce,2,1,"li",null,X),m()()()()),t&2){let e=h(2);c(2),f("innerHTML",e.translationService.getTranslation("address_mobil"),y),c(3),q(e.userData==null?null:e.userData.mobileList)}}function Fce(t,n){if(t&1&&(p(0,"li"),E(1),m()),t&2){let e=n.$implicit;c(),he(e)}}function Lce(t,n){if(t&1&&(p(0,"div",25)(1,"div",37),_(2,"div",38),p(3,"div",39)(4,"ul",40),W(5,Fce,2,1,"li",null,X),m()()()()),t&2){let e=h(2);c(2),f("innerHTML",e.translationService.getTranslation("address_email"),y),c(3),q(e.userData==null?null:e.userData.emailList)}}function Bce(t,n){t&1&&(p(0,"div",11),_(1,"app-loading-spinner",13),m())}function Hce(t,n){if(t&1&&_(0,"h5",47),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("label_newAddress"),y)}}function Vce(t,n){if(t&1&&(p(0,"div",48),_(1,"div",49),m()),t&2){let e=n.$implicit;c(),f("innerHTML",e.infoText,y)}}function jce(t,n){if(t&1&&(p(0,"div",43),W(1,Vce,2,1,"div",48,X),m()),t&2){let e=h(3);c(),q(e.movePrice)}}function zce(t,n){if(t&1){let e=B();p(0,"button",50),T("click",function(){A(e);let r=h(3);return k(r.onCheckMove())}),m()}if(t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("button_check_price_move"),y)}}function Uce(t,n){if(t&1){let e=B();p(0,"button",51),T("click",function(){A(e);let r=h(3);return k(r.onSendMove())}),m()}if(t&2){let e=h(3);f("hidden",e.saveInProcess)("innerHTML",e.translationService.getTranslation("button_send"),y)}}function Gce(t,n){t&1&&(p(0,"div",11),_(1,"app-loading-spinner",13),m())}function $ce(t,n){if(t&1&&(x(0,Hce,1,1,"h5",41),_(1,"app-hup-subscription-address",42),x(2,jce,3,0,"div",43),p(3,"div",44),x(4,zce,1,1,"button",45)(5,Uce,1,2,"button",46)(6,Gce,2,0,"div",11),m()),t&2){let e=h(2);f("appApplyIfNotEmpty",e.translationService.getTranslation("label_newAddress")),c(),f("showActivateCheckbox",!1)("controlGroup",e.addressForm)("showValidFrom",!0)("isMobile",e.isMobile)("minDate",e.minDate),c(),b(e.priceChecked?2:-1),c(2),b(!e.priceChecked&&!e.priceCheckInProcess?4:-1),c(),b(e.priceChecked&&!e.priceCheckInProcess?5:-1),c(),b(e.priceCheckInProcess||e.saveInProcess||e.movePossibilityCheckInProgress()?6:-1)}}function Wce(t,n){if(t&1){let e=B();p(0,"button",54),T("click",function(){A(e);let r=h(3);return k(r.navigateToContactForm())}),m()}if(t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("move_ToContactForm"),y)}}function qce(t,n){if(t&1&&(p(0,"div",27),_(1,"div",52),x(2,Wce,1,1,"button",53),m()),t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("move_impossible"),y),c(),b(e.showToContactFormButton?2:-1)}}function Yce(t,n){if(t&1&&(x(0,Tce,4,2),ni(1),x(2,Mce,1,1,"h5",14),p(3,"div",15)(4,"div",16),_(5,"div",17),p(6,"div",18),E(7),m()()(),x(8,Ice,6,5,"div",15),p(9,"div",15)(10,"div",16),_(11,"div",17),p(12,"div",18),E(13),m()()(),x(14,Ace,1,1,"h5",19),p(15,"div",20)(16,"div",21),_(17,"div",22),p(18,"div",23),E(19),te(20,"houseNoPipe"),m()()(),p(21,"div",20)(22,"div",21),_(23,"div",22),p(24,"div",23),E(25),m()()(),p(26,"div",20)(27,"div",21),_(28,"div",22),p(29,"div",23),E(30),m()()(),x(31,kce,1,1,"h5",24)(32,Pce,7,1,"div",25)(33,Rce,7,1,"div",25)(34,Lce,7,1,"div",25),_(35,"app-general-errors",26),x(36,Bce,2,0,"div",11)(37,$ce,7,10)(38,qce,3,2,"div",27),Jt()),t&2){let e=h();b((e.moves==null?null:e.moves.length)>0?0:-1),c(2),f("appApplyIfNotEmpty",e.translationService.getTranslation("label_personalData")),c(3),f("innerHTML",e.translationService.getTranslation("name"),y),c(2),pa(" ",e.userData!=null&&e.userData.person.addressCodeDe
628scription?e.userData==null?null:e.userData.person.addressCodeDescription:e.userData==null?null:e.userData.person.addressCode," ",e.userData==null?null:e.userData.person.titleDescription," ",e.userData==null?null:e.userData.person.firstname," ",e.userData==null?null:e.userData.person.lastname," "),c(),b((e.userData==null?null:e.userData.birthday)!=null?8:-1),c(3),f("innerHTML",e.translationService.getTranslation("label_backendid"),y),c(2),R(" ",e.userData==null?null:e.userData.userBackendId," "),c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("move_current")),c(3),f("innerHTML",e.translationService.getTranslation("address_street"),y),c(2),Pe(" ",e.userData==null?null:e.userData.address.street," ",Ct(20,25,e.userData==null?null:e.userData.address.houseno)," "),c(4),f("innerHTML",e.translationService.getTranslation("address_postcode"),y),c(2),R(" ",e.userData==null?null:e.userData.address.zipcode," "),c(3),f("innerHTML",e.translationService.getTranslation("address_city"),y),c(2),R(" ",e.userData==null?null:e.userData.address.city," "),c(),b(e.userData!=null&&e.userData.phoneList&&(e.userData==null?null:e.userData.phoneList.length)>0||e.userData!=null&&e.userData.mobileList&&(e.userData==null?null:e.userData.mobileList.length)>0||e.userData!=null&&e.userData.emailList&&(e.userData==null?null:e.userData.emailList.length)>0?31:-1),c(),b(e.userData!=null&&e.userData.phoneList&&(e.userData==null?null:e.userData.phoneList.length)>0?32:-1),c(),b(e.userData!=null&&e.userData.mobileList&&(e.userData==null?null:e.userData.mobileList.length)>0?33:-1),c(),b(e.userData!=null&&e.userData.emailList&&(e.userData==null?null:e.userData.emailList.length)>0?34:-1),c(),f("errors",e.errorsArr),c(),b(e.movePossibilityCheckInProgress()?36:-1),c(),b(!e.moves||(e.moves==null?null:e.moves.length)==0&&e.movePossible()&&!e.movePossibilityCheckInProgress()?37:e.movePossible()?-1:38)}}var MH=(()=>{class t{constructor(){this.loginService=d(ft),this.moveService=d(Eu),this.formBuilder=d(kt),this.baseDataService=d(vt),this.configService=d(Ce),this.errorService=d(Xo),this.translationService=d(Y),this.navigationService=d(Re),this.snackBar=d(Yi),this.errorsArr=[],this.isLoadingUserData=!1,this.isLoadingMoves=!1,this.priceChecked=!1,this.priceCheckInProcess=!1,this.saveInProcess=!1,this.movePossible=ee(!0),this.movePossibilityCheckInProgress=ee(!0),this.showToContactFormButton=!1,this.isMobile=!1,this.countries=[],this.salutations=[],this.titles=[]}ngOnInit(){this.minDate=new Date,this.minDate.setDate(this.minDate.getDate()+1),this.countries=this.baseDataService.getBaseData("countrycodes"),this.salutations=this.baseDataService.getBaseData("addresscodes"),this.showToContactFormButton=this.configService.getConfig("move.showContactFormButton")?.asBoolean(),this.titles=this.baseDataService.getBaseData("titles"),this.isLoadingUserData=!0,this.isLoadingMoves=!0,this.buildMoveForm(),this.addressForm.valueChanges.subscribe(()=>{this.priceChecked=!1}),this.moveService.getMoves().subscribe({next:e=>{this.isLoadingMoves=!1,this.moves=e},error:e=>{this.isLoadingMoves=!1,this.errorsArr.push(this.translationService.getTranslation("error_move_init"))}}),this.loginService.getUserData().subscribe(e=>{e.userBackendId>0?(this.moveService.getUser().subscribe(i=>{if(this.isLoadingUserData=!1,this.userData=i,i){let r=null;this.salutations?.forEach(a=>{a.key===this.userData.person.addressCode&&(r=a,this.userData.person.addressCodeDescription=r.description)});let o=null;this.titles?.forEach(a=>{a.description===this.userData.person.title&&(o=a)}),this.addressForm.get("person.firstName").patchValue(this.userData.person.firstname),this.addressForm.get("person.lastName").patchValue(this.userData.person.lastname),this.addressForm.get("person.title").patchValue(o!==null?o:this.userData.person.title),this.addressForm.get("person.salutation").patchValue(r!==null?r:this.userData.person.addressCode)}}),e?.userBackendId?this.moveService.checkMovesPossibility(e.userBackendId).subscribe({next:i=>{this.movePossible.set(i.possible)},complete:()=>{this.movePossibilityCheckInProgress.set(!1)},error:()=>{this.movePossibilityCheckInProgress.set(!1),this.movePossible.set(!0)}}):this.movePossibilityCheckInProgress.set(!1)):(this.isLoadingUserData=!1,this.isLoadingMoves=!1,this.movePossibilityCheckInProgress.set(!1))}),this.addressForm.valueChanges.subscribe(()=>{this.priceChecked=!1}
628)}buildMoveForm(){this.addressForm=this.formBuilder.group({address:this.formBuilder.group({country:["",Z.required],zipcode:["",Z.required],city:["",Z.required],street:["",Z.required],houseNo:["",Z.required],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:["",Z.required],firstName:["",Z.required],lastName:["",Z.required],initials:[""],middlename:[""]}),validDate:this.formBuilder.group({validFrom:["",Z.required]})})}onCheckMove(){if(this.addressForm.markAllAsTouched(),this.addressForm.valid&&!this.priceCheckInProcess){this.priceCheckInProcess=!0,this.errorsArr=[];let e=this.createMoveObjectFromForm();this.moveService.checkMove(e).subscribe({next:i=>{this.priceChecked=!0,this.priceCheckInProcess=!1,this.movePrice=i,this.movePrice.forEach(r=>this.buildAndSetInfoTextForSub(r,o=>this.translationService.getTranslation(o),e.user.address.country!=this.userData.address.country))},error:i=>{this.priceCheckInProcess=!1,this.errorsArr=[],this.errorService.handleAPIError([this.addressForm],i.error,this.errorsArr)}})}else this.priceChecked=!0,this.priceCheckInProcess=!1}buildAndSetInfoTextForSub(e,i,r){let o=e.subscriptionId+": ",a=H_(e.currencyId,"narrow");if(!e.deliverable)r?o=o+i("move.priceInfo.errorCalculatingForeignCountry"):o=o+i("move.priceInfo.errorCalculating");else if(!e.priceChange)o=o+i("move.priceInfo.priceUnchanged");else{o=o+i("move.priceInfo.priceChanged"),o=o.replace("[currentPrice]",e.currentPrice+a),o=o.replace("[newPrice]",e.newPrice+a);let s=i("move.priceInfo.portoInfo"),l=e.currentPorto.price==0?"":" "+s+" "+e.currentPorto.price.toLocaleString()+a+" "+e.currentPorto.description,u=e.newPorto.price==0?"":" "+s+" "+e.newPorto.price+a+" "+e.newPorto.description;o=o.replace(" [currentPorto]",l),o=o.replace(" [newPorto]",u)}e.infoText=o}onSendMove(){if(this.priceChecked&&!this.priceCheckInProcess){this.saveInProcess=!0;let e=this.createMoveObjectFromForm();this.moveService.sendMove(e).subscribe({next:i=>{this.snackBar.openSnackbar(this.translationService.getTranslation("saved")),this.moveService.getMoves().subscribe(r=>{this.moves=r})},error:i=>{this.errorsArr=[],this.errorService.handleAPIError([this.addressForm],i.error,this.errorsArr)},complete:()=>{this.priceCheckInProcess=!1,this.saveInProcess=!1}})}}createMoveObjectFromForm(){let e=JSON.parse(JSON.stringify(this.addressForm.value));return e.person.addressCode=e.person.salutation.key,e.person.salutation=e.person.salutation.defaultClientTypeKey,e.person.title=e.person.title?.key,e.person.lastname=e.person.lastName,e.person.firstname=e.person.firstName,e.address.country=e.address.country.key,e.address.addrExtraLine1=e.address.extraLine,e.address.country==="A"||e.address.country==="AT"?e.address.houseno=mp(e.address.houseNo,e.address.country,e.address.stock,e.address.stiege,e.address.tuer):e.address.houseno=mp(e.address.houseNo,e.address.country),{user:{person:e.person,address:e.address,userBackendId:this.userData.userBackendId},changeDate:e.validDate.validFrom,created:e.validDate.validFrom}}navigateToContactForm(){this.navigationService.navigateTo(ge.CONTACT)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-move"]],features:[_e([Le])],decls:13,vars:4,consts:[[1,"row","move__row"],[1,"col-12","offset-lg-2","col-lg-8","move__header"],["class","move__intro",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","offset-lg-2","col-lg-8","move__description"],[1,"move__description-text",3,"innerHTML"],[1,"row"],[1,"col-12","offset-lg-2","col-lg-8"],[1,"mt-3","mat-mdc-card-outlined","move__card"],[1,"move__card-content"],[1,"--row","move__content-row"],[1,"--col-12","move__content-col"],[1,"move__loading",2,"text-align","center"],[1,"move__intro",3,"innerHTML"],[1,"move__loading-spinner"],["class","move__personaldata-headline",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"form-group","col-12","move__personaldata-item"],[1,"row","move__personaldata-row"],[1,"col-5","move__personaldata-label",3,"innerHTML"],[1,"col-7","move__personaldata-value"],["class","mt-5 move__current-headline",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"form-group","col-12","move__current-item"],[1,"row","move__current-row"],[1,"col-5","move__current-label",3,"innerHTML"],[1,"col-7","move__current-value"],[1,"mt-5","move__contactdata-headline",3,"innerHTML"],[1,"form-group","col-12","move__contactdata-item"],[1,"move__errors",3,"errors"],[1,"col-12","mt-3","alert","alert-warning"],["class","mt-5 move__existing-move-headline",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","mb-3","move__existing-move-intro",3,"innerHTML"],[1,"mt-5","move__existing-move-headline",3,"innerHTML"],[1,"form-group","col-12","move__move-item"],[1,"row","move__move-row"],[1,"col-6","move__move-label",3,"innerHTML"],[1,"col-6","move__move-value"],[1,"move__personaldata-headline",3,"innerHTML"],[1,"mt-5","move__current-headline",3,"innerHTML"],[1,"row","move__contactdata-row"],[1,"col-5","move__contactdata-label",3,"innerHTML"],[1,"col-7","move__contactdata-value"],[2,"padding-left","0","list-style","none"],["class","mt-5 move__newaddress-headline",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"move__newaddress-form",3,"showActivateCheckbox","controlGroup","showValidFrom","isMobile","minDate"],[1,"alert","alert-warning","row","mb-2","mt-3","move__price-warning"],[1,"col-12","mt-3","move__actions"],["mat-raised-button","","color","primary",1,"me-3","move__action-check",3,"innerHTML"],["mat-raised-button","","color","primary",1,"move__action-send",3,"hidden","innerHTML"],[1,"mt-5","move__newaddress-headline",3,"innerHTML"],[1,"col-12","move__price-info"],[1,"move__price-info-text",3,"innerHTML"],["mat-raised-button","","color","primary",1,"me-3","move__action-check",3,"click","innerHTML"],["mat-raised-button","","color","primary",1,"move__action-send",3,"click","hidden","innerHTML"],[1,"move__notpossible-text","mb-3",3,"innerHTML"],["mat-raised-button","","color","primary",1,"move__action-send",3,"innerHTML"],["mat-raised-button","","color","primary",1,"move__action-send",3,"click","innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,xce,1,1,"h3",2),m(),p(3,"div",3),_(4,"p",4),m()(),p(5,"div",5)(6,"div",6)(7,"mat-card",7)(8,"mat-card-content",8)(9,"div",9)(10,"div",10),x(11,wce,2,0,"div",11)(12,Yce,39,27),m()()()()()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("move_intro")),c(2),f("innerHTML",r.translationService.getTranslation("move_description"),y),c(7),b(r.isLoadingUserData||r.isLoadingMoves||r.saveInProcess?11:-1),c(),b(!r.isLoadingUserData&&!r.isLoadingMoves&&!r.saveInProcess?12:-1))},dependencies:[Ge,Le,Di,Vt,vr,Ee,at,Rt,ze],styles:[`.card-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin:0} 629/*# sourceMappingURL=move.component-FMM5C6V4.css.map */`]})}}return t})();var PD=new H("CdkAccordion"),IH=(()=>{class t{_stateChanges=new G;_openCloseAllActions=new G;id=d(Mt).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",pe]},exportAs:["cdkAccordion"],features:[_e([{provide:PD,useExisting:t}]),Xe]})}return t})(),AH=(()=>{class t{accordion=d(PD,{optional:!0,skipSelf:!0});_changeDetectorRef=d(Je);_expansionDispatcher=d(Jc);_openCloseAllSubscription=Ie.EMPTY;closed=new z;opened=new z;destroyed=new z;
629expandedChange=new z;id=d(Mt).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;disabled=!1;_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&this.id!==e&&(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(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",pe],disabled:[2,"disabled","disabled",pe]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[_e([{provide:PD,useValue:void 0}])]})}return t})();var Kce=["body"],Qce=["bodyWrapper"],Zce=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Xce=["mat-expansion-panel-header","*","mat-action-row"];function Jce(t,n){}var ede=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],tde=["mat-panel-title","mat-panel-description","*"];function ide(t,n){t&1&&(p(0,"span",1),Sn(),p(1,"svg",2),_(2,"path",3),m()())}var ND=new H("MAT_ACCORDION"),kH=new H("MAT_EXPANSION_PANEL"),td=(()=>{class t{_template=d(ii);_expansionPanel=d(kH,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),OH=new H("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Js=(()=>{class t extends AH{_viewContainerRef=d(bi);_animationsDisabled=d(zt,{optional:!0})==="NoopAnimations";_document=d(Se);_ngZone=d(de);_elementRef=d(ue);_renderer=d(It);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new z;afterCollapse=new z;_inputChanges=new G;accordion=d(ND,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=d(Mt).getId("mat-expansion-panel-header-");constructor(){super();let e=d(OH,{optional:!0});this._expansionDispatcher=d(Jc),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_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(Yt(null),Ue(()=>this.expanded&&!this._portal),Et(1)).subscribe(()=>{this._portal=new Xn(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="grid-template-rows"&&this._ngZone.run(()=>
629{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&Kt(o,td,5),i&2){let a;se(a=le())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&(De(Kce,5),De(Qce,5)),i&2){let o;se(o=le())&&(r._body=o.first),se(o=le())&&(r._bodyWrapper=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&fe("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",pe],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[_e([{provide:ND,useValue:void 0},{provide:kH,useExisting:t}]),it,Xe],ngContentSelectors:Xce,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,r){i&1&&(_t(Zce),Ve(0),p(1,"div",2,0)(3,"div",3,1)(5,"div",4),Ve(6,1),x(7,Jce,0,0,"ng-template",5),m(),Ve(8,2),m()()),i&2&&(c(),ce("inert",r.expanded?null:""),c(2),f("id",r.id),ce("aria-labelledby",r._headerId),c(4),f("cdkPortalOutlet",r._portal))},dependencies:[mr],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.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:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.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;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.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} 630`],encapsulation:2,changeDetection:0})}return t})(),PH=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]})}return t})(),el=(()=>{class t{panel=d(Js,{host:!0});_element=d(ue);_focusMonitor=d(Yr);_changeDetectorRef=d(Je);_parentChangeSubscription=Ie.EMPTY;constructor(){d(pi).load(Qr);let e=this.panel,i=d(OH,{optional:!0}),r=d(new Br("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(Ue(a=>!!(a.hideToggle||a.togglePosition))):ht;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=ji(e.opened,e.closed,o,e._inputChanges.pipe(Ue(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Ue(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.exp
630andedHeight,this.collapsedHeight=i.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;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(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:oi(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&T("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(ce("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),sn("height",r._getHeaderHeight()),fe("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Ii(e)]},ngContentSelectors:tde,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(i,r){i&1&&(_t(ede),p(0,"span",0),Ve(1),Ve(2,1),Ve(3,2),m(),x(4,ide,3,0,"span",1)),i&2&&(fe("mat-content-hide-toggle",!r._showToggle()),c(4),b(r._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.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.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{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{dis
630play: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[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.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;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}} 631`],encapsulation:2,changeDetection:0})}return t})(),fp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return t})(),Yl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),hp=(()=>{class t extends IH{_keyManager;_ownHeaders=new uo;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(Yt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Fc(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})();static \u0275dir=$({type:t,selectors:[["mat-accordion"]],contentQueries:function(i,r,o){if(i&1&&Kt(o,el,5),i&2){let a;se(a=le())&&(r._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mat-accordion-multi",r.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",pe],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[_e([{provide:ND,useExisting:t}]),it]})}return t})();function nde(t,n){if(t&1&&_(0,"h3",11),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("complaint_intro"),y)}}function rde(t,n){t&1&&(p(0,"div",8),_(1,"app-loading-spinner"),m())}function ode(t,n){if(t&1&&_(0,"div",9),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("intro_noSubs"),y)}}function ade(t,n){if(t&1&&_(0,"mat-card-subtitle",17),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_id")+": "+e.subId,y)}}function sde(t,n){if(t&1&&_(0,"mat-card-subtitle",18),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_edition")+": "+e.variantDescription,y)}}function lde(t,n){if(t&1&&(_(0,"mat-card-subtitle",19),te(1,"date"),te(2,"date")),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("period")+": "+Te(1,1,e.validDate.validFrom,i.translationService.getTranslation("dateFormat"))+" - "+(e.validDate.validUntil?Te(2,4,e.validDate.validUntil,i.translationService.getTranslation("dateFormat")):i.translationService.getTranslation("subscription_endless")),y)}}function cde(t,n){if(t&1&&(p(0,"mat-card-subtitle",20),E(1),te(2,"houseNoPipe"),m()),t&2){let e=h().$implicit;
631c(),ma(" ",e.curDelivery.person.addressCodeDescription," ",e.curDelivery.person.firstname," ",e.curDelivery.person.lastname,", ",e.curDelivery.address.city,", ",e.curDelivery.address.street," ",Ct(2,6,e.curDelivery.address.houseno)," ")}}function dde(t,n){if(t&1&&_(0,"p",24),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("complaint_impossible"),y)}}function ude(t,n){if(t&1&&(p(0,"mat-panel-title",30),E(1),m()),t&2){let e=h(2).$implicit;c(),R(" ",e[0].reasonBaseData==null?null:e[0].reasonBaseData.description," ")}}function pde(t,n){if(t&1&&_(0,"mat-panel-title",31),t&2){let e=h(6);f("innerHTML",e.translationService.getTranslation("complaint_reason_placeholder"),y)}}function mde(t,n){if(t&1&&(p(0,"li",34),E(1),te(2,"date"),m()),t&2){let e=n.$implicit,i=h(6);c(),R(" ",Te(2,1,e.validDate.validFrom,i.translationService.getTranslation("dateFormat"))," ")}}function fde(t,n){if(t&1&&(p(0,"mat-expansion-panel-header",28),x(1,ude,2,1,"mat-panel-title",30)(2,pde,1,1,"mat-panel-title",31),p(3,"mat-panel-description",32)(4,"ul",33),W(5,mde,3,4,"li",34,X),m()()()),t&2){let e=h().$implicit;f("collapsedHeight","calc(100%)")("expandedHeight","100%"),c(),b(e[0].reasonBaseData!=null&&e[0].reasonBaseData.description?1:2),c(4),q(e)}}function hde(t,n){if(t&1&&(p(0,"div",39),E(1),m()),t&2){let e=n.$implicit;c(),R(" ",e.description," ")}}function gde(t,n){if(t&1&&(p(0,"div",35),_(1,"div",37),p(2,"div",38),W(3,hde,2,1,"div",39,X),m()()),t&2){let e=h(2).$implicit,i=h(4);c(),f("innerHTML",i.translationService.getTranslation("complaint_compensation"),y),c(2),q(e[0].compensations)}}function _de(t,n){if(t&1&&(p(0,"div",36),_(1,"div",40),p(2,"div",41),E(3),m()()),t&2){let e=h(2).$implicit,i=h(4);c(),f("innerHTML",i.translationService.getTranslation("complaint_reasonMemo"),y),c(2),R(" ",e[0].memo.memoText," ")}}function vde(t,n){if(t&1&&x(0,gde,5,1,"div",35)(1,_de,4,2,"div",36),t&2){let e=h().$implicit;b(e[0].compensations&&e[0].compensations.length>0?0:-1),c(),b(e[0].memo.memoText&&e[0].memo.memoText!==""?1:-1)}}function bde(t,n){if(t&1&&(p(0,"mat-expansion-panel",27),x(1,fde,7,3,"mat-expansion-panel-header",28)(2,vde,2,2,"ng-template",29),m()),t&2){let e=n.$implicit,i=h(2).$implicit;c(),b(e[0].subId===i.backendId?1:-1)}}function yde(t,n){if(t&1&&(p(0,"mat-card-content",25)(1,"mat-accordion",26),W(2,bde,3,1,"mat-expansion-panel",27,X),m()()),t&2){let e=h(3);c(2),q(e.complaintsGrouped)}}function Cde(t,n){if(t&1){let e=B();p(0,"div",12)(1,"mat-card",13)(2,"div",14)(3,"div",15)(4,"mat-card-title",16),E(5),m(),x(6,ade,1,1,"mat-card-subtitle",17)(7,sde,1,1,"mat-card-subtitle",18)(8,lde,3,7,"mat-card-subtitle",19)(9,cde,3,8,"mat-card-subtitle",20),m(),p(10,"div",21)(11,"mat-card-actions",22)(12,"button",23),T("click",function(){let r=A(e).$implicit,o=h(2);return k(o.onNewComplaint(r))}),E(13),m()(),x(14,dde,1,1,"p",24),m()(),x(15,yde,4,0,"mat-card-content",25),m()()}if(t&2){let e=n.$implicit,i=h(2);c(5),he(e.productDescription),c(),b(e.subId?6:-1),c(),b(e.variantDescription?7:-1),c(),b(e.validDate?8:-1),c(),b(e.curDelivery?9:-1),c(3),f("disabled",!i.isComplainable(e)),c(),R(" ",i.translationService.getTranslation("button_new_complaint")," "),c(),b(i.isComplainable(e)?-1:14),c(),b(i.complaintsGrouped&&i.complaintsGrouped.length>0?15:-1)}}function Sde(t,n){if(t&1&&W(0,Cde,16,9,"div",12,X),t&2){let e=h();q(e.subs)}}function xde(t,n){if(t&1&&_(0,"mat-panel-title",31),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("complaint_reason_placeholder"),y)}}var NH=(()=>{class t{constructor(){this.complaintService=d(wu),this.hupSubscriptionsService=d(ct),this.navigationService=d(Re),this.translationService=d(Y),this.baseDataService=d(vt),this.configService=d(Ce),this.injector=d(Ne),this.isLoadingComp=ee(!1),this.isLoadingSub=!1,this.complaints=[],this.complaintsGrouped=[],this.subs=[],this.errorsArr=[],this.isDigitalOrderAllowed=!0,this.showPreview=ee({complaintsLoaded:!1,singleSubscription:!1}),this.showPreviewComputed=Yn(()=>this.showPreview().singleSubscription||this.showPreview().complaintsLoaded),this.SHOW_PREVIEW_IF_SINGLE_SUBSCRIPTION_CONFIG_KEY="complaint.singleSubscription.showPreview";let e=this.configService;this.isDigitalOrderAllowed=e.getConfig("complaint.show.digital.orders")?.asBoolean();let i=e.getConfig(this.SHOW_PREVIEW_IF_SINGLE_SUBSCRIPTION_CONFIG_KEY)?.asBoolean()??!1;this.showPreview.set({complaintsLoaded:this.showPreview().complaintsLoaded,singleSubscription:i})}ngOnInit(){this.isLoadingComp.set(!0),this.isLoadingSub=!0,this.complaintService.getComplaints().subscribe(e=>{this.isLoadingComp.set(!1),e.forEach(i=>
631{this.baseDataService.handleComplaint(i);let r=!1;this.complaintsGrouped.forEach(o=>{if(!r&&o.length>0){let a=o.at(0);r=a.subId==i.subId&&a.memo.memoText==i.memo.memoText&&a.reason==i.reason;let l=this.configService.getConfig("complaint.webFlags")?.value.split(","),u=[],g=[];i.compensations.forEach(v=>{(l.includes(v.key)||l.includes(v.code))&&u.push(v)}),o.at(0).compensations.forEach(v=>{(l.includes(v.key)||l.includes(v.code))&&g.push(v)}),i.compensations=u,o.at(0).compensations=g,r&&(this.complaintsGrouped.push(new Array(i)),this.complaintsGrouped.sort((v,w)=>v.at(0).validDate.validFrom>w.at(0).validDate.validFrom?-1:1))}}),r||(this.complaintsGrouped.push(new Array(i)),this.complaintsGrouped.sort((o,a)=>o.at(0).validDate.validFrom>a.at(0).validDate.validFrom?-1:1))}),this.complaints=e,this.showPreview.set({complaintsLoaded:this.complaints.length>0,singleSubscription:this.showPreview().singleSubscription})},()=>{this.isLoadingComp.set(!1),this.showPreview.set({complaintsLoaded:!1,singleSubscription:this.showPreview().singleSubscription}),this.errorsArr.push(this.translationService.getTranslation("error_complaints_init"))}),qa(()=>{this.isLoadingComp()||this.hupSubscriptionsService.getSubscriptions().subscribe(e=>{this.isLoadingSub=!1,this.subs=[],e.forEach(i=>{(i.validDate.validUntil==null||i.validDate.validUntil>new Date)&&i.backendId>0&&((si(i.offer?.offerType)||si(i.subscriptionType))&&this.isDigitalOrderAllowed||!si(i.offer?.offerType)&&!si(i.subscriptionType))&&this.subs.push(i)}),this.subs.length===1&&this.subs[0]&&!this.showPreviewComputed()&&this.onNewComplaint(this.subs[0])},()=>{this.isLoadingSub=!1,this.errorsArr.push(this.translationService.getTranslation("error_subscription_init"))})},{injector:this.injector}),this.complaintService.consumeErrorMessages().subscribe(e=>e.forEach(i=>this.errorsArr.push(i)))}onNewComplaint(e){this.navigationService.navigateTo(ge.COMPLAINTNEW,[e.webId+"",e.backendId+"","false","true"])}onDetails(e){let i=!0;this.subs.forEach(r=>{let o=this.complaints[e];r.backendId===o.subId&&(i=!si(r.offer?.offerType)&&!si(r.subscriptionType))}),this.navigationService.navigateTo(ge.COMPLAINTEDIT,[this.complaints[e].webId+"",this.complaints[e].backendId+"","false",i?"true":"false"])}onDelete(e){alert("TODO: l\xF6schen")}onEdit(e){let i=!0;this.subs.forEach(r=>{let o=this.complaints[e];r.backendId===o.subId&&(i=!si(r.offer?.offerType)&&!si(r.subscriptionType))}),this.navigationService.navigateTo(ge.COMPLAINTEDIT,[this.complaints[e].webId+"",this.complaints[e].backendId+"","false",i?"true":"false"])}isComplainable(e){let i=e.validDate.validFrom,r=new Date;return i.setHours(0,0,0,0),r.setHours(0,0,0,0),i.getTime()<=r.getTime()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-complaint"]],features:[_e([Le])],decls:14,vars:6,consts:[["placeholder",""],["id","complaintSubscriptionHeader",1,"complaint-subscription__header","row"],[1,"complaint-subscription__header-col","col-12"],["class","complaint-subscription__intro",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"complaint-subscription__description",3,"innerHTML"],[1,"complaint-subscription__content","row"],[1,"complaint-subscription__errors","col-12","complaintSubscriptionErrors"],[3,"errors"],["id","complaintSubscriptionSpinner",1,"complaint-subscription__spinner",2,"text-align","center"],[1,"complaint-subscription__no-subs",3,"innerHTML"],["id","complaintSubscriptions",1,"row","complaint-subscription__subs"],[1,"complaint-subscription__intro",3,"innerHTML"],[1,"col-12","col-md-6","col-lg-4","mt-4"],["appearance","outlined",1,"complaint-subscription__sub-card"],[1,"complaint-subscription__sub-row","m-3"],["tabindex","0",1,"complaint-subscription__sub-info","col-12"],[1,"complaint-subscription__sub-title"],[1,"complaint-subscription__sub-id",3,"innerHTML"],[1,"complaint-subscription__sub-edition",3,"innerHTML"],[1,"complaint-subscription__sub-period",3,"innerHTML"],[1,"complaint-subscription__sub-address"],[1,"complaint-subscription__sub-actions","col-12"],[1,"complaint-subscription__actions","card-actions"],["ngSkipHydration","","mat-raised-button","","color","primary",1,"mt-2","complaint-subscription__new-complaint-btn",3,"click","disabled"],["id","complaint-warning",1,"complaint-subscription__warning","text-warning","text-end",3,"innerHTML"],[1,"complaint-subscription__complaints"],["multi","",1,"complaint-subscription__accordion"],[1,"complaint-subscription__expansion-panel"],[1,"complaint-subscription__expansion-header",3,"collapsedHeight","expandedHeight"],["matExpansionPanelContent",""],[1,"complaint-subscription__complaint-title","complaintTitle"],[1,"complaint-subscription__complaint-title","complaintTitle",3,"innerHTML"],[1,"complaint-subscription__complaint-description"],[1,"complaint-subscription__complaint-list",2,"margin-top","1rem","margin-bottom","1rem"],[1,"complaint-subscription__complaint-list-item"],[1,"complaint-subscription__compensations","row"],[1,"complaint-subscription__memo","row"],[1,"complaint-subscription__compensations-label","col-6",3,"innerHTML"],[1,"complaint-subscription__compensations-list","col-6"],[1,"complaint-subscription__compensation"],[1,"complaint-subscription__memo-label","col-6",3,"innerHTML"],[1,"complaint-subscription__memo-text","col-6"]],template:function(i,r){i&1&&(p(0,"div",1)(1,"div",2),x(2,nde,1,1,"h3",3),m(),p(3,"div",2),_(4,"p",4),m()(),p(5,"div",5)(6,"div",6),_(7,"app-general-errors",7),x(8,rde,2,0,"div",8)(9,ode,1,1,"div",9),p(10,"div",10),x(11,Sde,2,0),m()()(),x(12,xde,1,1,"ng-template",null,0,fa)),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("c
631omplaint_intro")),c(2),f("innerHTML",r.translationService.getTranslation("complaint_description"),y),c(3),f("errors",r.errorsArr),c(),b(r.isLoadingSub||r.isLoadingComp()?8:-1),c(),b(!r.isLoadingSub&&!r.isLoadingComp()&&r.subs.length==0&&r.errorsArr.length==0?9:-1),c(2),b(!r.isLoadingComp()&&!r.isLoadingSub&&r.subs.length>0?11:-1))},dependencies:[Vt,Ge,at,Li,Xr,Le,Di,hr,Ee,Rt,hp,Js,el,td,Yl,fp,ze],styles:[`.card-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin:0}.complaintTitle[_ngcontent-%COMP%]{min-width:50%}#complaint-warning[_ngcontent-%COMP%]{font-size:.8em} 632/*# sourceMappingURL=complaint.component-7SHFS6Z5.css.map */`]})}}return t})();function wde(t,n){if(t&1&&(p(0,"div",1)(1,"div",2),_(2,"div",4),m()()),t&2){let e=h();c(2),f("innerHTML",e.translationService.getTranslation("order_id")+": "+e.subscription.backendId,y)}}function Ede(t,n){if(t&1&&(p(0,"div",1)(1,"div",2),_(2,"div",4),te(3,"date"),m()()),t&2){let e=h();c(2),f("innerHTML",Te(3,1,e.translationService.getTranslation("commitmentDate")+": "+e.subscription.commitmentDate,e.translationService.getTranslation("dateFormat")),y)}}function Dde(t,n){if(t&1&&(p(0,"div",1)(1,"div",2),_(2,"div",5),m()()),t&2){let e=h();c(2),f("innerHTML",e.translationService.getTranslation("order_product")+": "+e.subscription.productDescription,y)}}function Tde(t,n){if(t&1&&(p(0,"div",1)(1,"div",2),_(2,"div",6),m()()),t&2){let e=h();c(2),f("innerHTML",e.translationService.getTranslation("order_edition")+": "+e.subscription.variantDescription,y)}}var RH=(()=>{class t{constructor(){this.translationService=d(Y),this.configService=d(Ce),this.today=new Date,this.showProductDescription=!0,this.showVariantDescription=!0,this.showOrderNo=!1}ngOnInit(){this.showProductDescription=this.configService.getConfig("subscription.showProductDescription")?.asBoolean(),this.showOrderNo=this.configService.getConfig("subscription.showOrderNo")?.asBoolean(),this.showVariantDescription=this.configService.getConfig("subscription.showVariantDescription")?.asBoolean()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-product-variant-period-block"]],inputs:{subscription:"subscription"},features:[_e([Le])],decls:10,vars:11,consts:[[1,"mb-3","product-variant-period-block"],[1,"form-group","col-12","product-variant-period-block__section"],[1,"row","product-variant-period-block__row"],[1,"col-12","col-sm-6","product-variant-period-block__period",3,"innerHTML"],[1,"col-12","col-sm-6","product-variant-period-block__commitment-date",3,"innerHTML"],[1,"col-12","col-sm-6","product-variant-period-block__product-description",3,"innerHTML"],[1,"col-12","col-sm-6","product-variant-period-block__variant-description",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),_(3,"div",3),te(4,"date"),te(5,"date"),m()(),x(6,wde,3,1,"div",1)(7,Ede,4,4,"div",1)(8,Dde,3,1,"div",1)(9,Tde,3,1,"div",1),m()),i&2&&(c(3),f("innerHTML",r.translationService.getTranslation("period")+": "+Te(4,5,r.subscription.validDate.validFrom,r.translationService.getTranslation("dateFormat"))+" - "+(r.subscription.validDate.validUntil?Te(5,8,r.subscription.validDate.validUntil,r.translationService.getTranslation("dateFormat")):r.translationService.getTranslation("subscription_endless")),y),c(3),b(r.showVariantDescription&&r.subscription.variantDescription&&r.showOrderNo?6:-1),c(),b(r.subscription.commitmentDate&&r.subscription.commitmentDate>r.today?7:-1),c(),b(r.showProductDescription?8:-1),c(),b(r.showVariantDescription&&r.subscription.variantDescription?9:-1))},dependencies:[Le],encapsulation:2})}}return t})();var Ib=(()=>{class t{constructor(){this.translationService=d(Y)}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-address-detail"]],inputs:{address:"address",person:"person"},decls:14,vars:6,consts:[[1,"mb-3"],[1,"form-group","col-12"],[1,"row"],[1,"col-12","col-sm-6",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),_(3,"div",3),m()(),p(4,"div",1)(5,"div",2),_(6,"div",3),te(7,"houseNoPipe"),m()(),p(8,"div",1)(9,"div",2),_(10,"div",3),m()(),p(11,"div",1)(12,"div",2),_(13,"div",3),m()()()),i&2&&(c(3),f("innerHTML",r.translationService.getTranslation("name")+": "+r.person.addressCodeDe
632scription+" "+r.person.titleDescription+" "+r.person.firstname+" "+r.person.lastname,y),c(3),f("innerHTML",r.translationService.getTranslation("address_street")+": "+r.address.street+" "+Ct(7,4,r.address.houseno),y),c(4),f("innerHTML",r.translationService.getTranslation("address_postcode")+": "+r.address.zipcode,y),c(3),f("innerHTML",r.translationService.getTranslation("address_city")+": "+r.address.city+", "+r.address.countryDescription,y))},dependencies:[Di],encapsulation:2})}}return t})();var eo=class{constructor(){this.ONLINE_PAYMENT_METHOD_ID_CONFIG_KEY="paymentprovider.paypal.paymentcode",this.onlinePaymentMethodId=""}setPaymentCode(n){this.onlinePaymentMethodId=n}isOnlinePayment(n){return n?.paymentType?.paymentMethod===this.onlinePaymentMethodId}};var ka=function(t){return t[t.PLENIGO=0]="PLENIGO",t[t.WEBABO=1]="WEBABO",t}(ka||{});function Mde(t,n){t&1&&(p(0,"div",0)(1,"div",3)(2,"div",4),_(3,"app-loading-spinner"),m()()())}function Ide(t,n){if(t&1&&_(0,"h3",25),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("subscription_header"),y)}}function Ade(t,n){if(t&1&&_(0,"div",11),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("subscription_canceled"),y)}}function kde(t,n){if(t&1&&_(0,"div",16),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("label_backendid")+": "+e.sub.userBackendId,y)}}function Ode(t,n){if(t&1&&_(0,"div",16),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("label_backendid")+": "+e.translationService.getTranslation("subscription_user_not_assigned"),y)}}function Pde(t,n){if(t&1&&_(0,"div",19),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("label_email")+": "+e.userData.emailList[0],y)}}function Nde(t,n){if(t&1&&_(0,"h5",26),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("label_subscriptionDetails"),y)}}function Rde(t,n){if(t&1&&_(0,"div",23),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("order_id")+": "+e.sub.backendId,y)}}function Fde(t,n){if(t&1&&_(0,"div",23),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("order_id")+": "+e.translationService.getTranslation("no_order_id"),y)}}function Lde(t,n){if(t&1&&(p(0,"a",28),_(1,"mat-icon",34),m()),t&2){let e=h(6);f("routerLink","/payment"),ce("aria-label",e.translationService.getTranslation("navi_bankchange")+" "+e.translationService.getTranslation("button_edit"))}}function Bde(t,n){if(t&1&&(p(0,"div",29)(1,"div",30)(2,"div",31),_(3,"div",35),te(4,"bankAccount"),m()()(),p(5,"div",29)(6,"div",30)(7,"div",31),_(8,"div",36),m()()()),t&2){let e=h(6);c(3),f("innerHTML",Ct(4,2,e.translationService.getTranslation("payment_iban")+": "+(e.sub==null||e.sub.curPayment==null||e.sub.curPayment.bank==null?null:e.sub.curPayment.bank.swiftIBAN)),y),c(5),f("innerHTML",e.translationService.getTranslation("payment_bic")+": "+(e.sub==null||e.sub.curPayment==null||e.sub.curPayment.bank==null?null:e.sub.curPayment.bank.swiftBIC),y)}}function Hde(t,n){if(t&1&&(_(0,"h5",27),E(1,"\xA0 "),Tr(2),x(3,Lde,2,2,"a",28),p(4,"div",29)(5,"div",30)(6,"div",31)(7,"div",32),E(8),m()()()(),p(9,"div",29)(10,"div",30)(11,"div",31)(12,"div",33),E(13),m()()()(),x(14,Bde,9,4)),t&2){let e=h(5);f("innerHTML",e.translationService.getTranslation("navi_bankchange"),y);let i=e.isOnlinePayment(e.sub);c(3),b(i?-1:3),c(5),R(" ",e.paymentMethodDesc," "),c(5),R(" ",e.sub.curPayment.paymentType.paymentFrequency," "),c(),b(e.paymentMethodId&&e.paymentMethodId.paymentType==="DIRECTDEBITIBAN"?14:-1)}}function Vde(t,n){if(t&1&&x(0,Hde,15,5),t&2){let e=h(4);b(e.sub.curPayment?0:-1)}}function jde(t,n){if(t&1&&_(0,"h5",38),t&2){let e=h(7);f("innerHTML",e.translationService.getTranslation("subscription_aggregate_combinations"),y)}}function zde(t,n){if(t&1&&x(0,jde,1,1,"h5",41),t&2){let e=h(6);f("appApplyIfNotEmpty",e.translationService.getTranslation("subscription_aggregate_combinations"))}}function Ude(t,n){if(t&1&&(p(0,"div",40),_(1,"app-product-variant-period-block",39),m()),t&2){let e=n.$implicit;c(),f("subscription",e)}}function Gde(t,n){if(t&1&&(p(0,"div",37),x(1,zde,1,1,"h5",38),_(2,"app-product-variant-period-block",39),W(3,Ude,2,1,"div",40,X),m()),t&2){let e=h(5);
632c(),b(e.sub.combiSubscriptionList&&e.sub.combiSubscriptionList.length>0?1:-1),c(),f("subscription",e.sub),c(),q(e.sub.combiSubscriptionList)}}function $de(t,n){if(t&1&&x(0,Gde,5,2,"div",37),t&2){let e=h(4);b(e.currentAndSequelSubscriptionsAreSimilar()?-1:0)}}function Wde(t,n){if(t&1&&_(0,"h5",42),t&2){let e=h(7);f("innerHTML",e.translationService.getTranslation("subscription_aggregate_sequels"),y)}}function qde(t,n){if(t&1&&x(0,Wde,1,1,"h5",43),t&2){let e=h(6);f("appApplyIfNotEmpty",e.translationService.getTranslation("subscription_aggregate_sequels"))}}function Yde(t,n){if(t&1&&(p(0,"div",45),_(1,"app-product-variant-period-block",46),m()),t&2){let e=n.$implicit;c(),f("subscription",e)}}function Kde(t,n){if(t&1&&(_(0,"app-product-variant-period-block",44),W(1,Yde,2,1,"div",45,X)),t&2){let e=n.$implicit;f("subscription",e),c(),q(e.combiSubscriptionList)}}function Qde(t,n){if(t&1&&(x(0,qde,1,1,"h5",42),W(1,Kde,3,1,null,null,X)),t&2){let e=h(5);b(e.sub.sequelSubscriptions&&e.sub.sequelSubscriptions.length>0?0:-1),c(),q(e.sub.sequelSubscriptions)}}function Zde(t,n){if(t&1&&x(0,Qde,3,1),t&2){let e=h(4);b(e.sub.sequelSubscriptions&&e.sub.sequelSubscriptions.length>0&&e.showSequelSubscriptionInAggregateMode?0:-1)}}function Xde(t,n){if(t&1&&_(0,"h5",50),t&2){let e=h(6);f("innerHTML",e.translationService.getTranslation("address_delivery"),y)}}function Jde(t,n){if(t&1&&(p(0,"a",28),_(1,"mat-icon",34),m()),t&2){let e=h(6);f("routerLink","/move"),ce("aria-label",e.translationService.getTranslation("navi_bankchange")+" "+e.translationService.getTranslation("button_edit"))}}function eue(t,n){if(t&1&&(x(0,Xde,1,1,"h5",47),E(1,"\xA0 "),x(2,Jde,2,2,"a",28),p(3,"div",48),_(4,"app-address-detail",49),m()),t&2){let e=h(5);f("appApplyIfNotEmpty",e.translationService.getTranslation("address_delivery")),c(2),b(e.isMoveServiceActive()?2:-1),c(2),f("address",e.sub.curDelivery.address)("person",e.sub.curDelivery.person)}}function tue(t,n){if(t&1&&x(0,eue,5,4),t&2){let e=h(4);b(e.sub.curDelivery?0:-1)}}function iue(t,n){if(t&1&&(_(0,"h5",51),p(1,"div",52),_(2,"app-address-detail",53),m()),t&2){let e=h(5);f("innerHTML",e.translationService.getTranslation("address_billing"),y),c(2),f("address",e.sub.curBilling.address)("person",e.sub.curBilling.person)}}function nue(t,n){if(t&1&&x(0,iue,3,3),t&2){let e=h(4);b(e.sub.curBilling?0:-1)}}function rue(t,n){if(t&1&&x(0,Vde,1,1)(1,$de,1,1)(2,Zde,1,1)(3,tue,1,1)(4,nue,1,1),t&2){let e,i=n.$implicit;b((e=i)==="PAYMENT"?0:e==="CONTRACT_CURRENT"?1:e==="CONTRACT_FUTURE"?2:e==="ADR_DELIVERY"?3:e==="ADR_BILLING"?4:-1)}}function oue(t,n){if(t&1&&W(0,rue,5,1,null,null,X),t&2){let e=h(2);q(e.blockOrder)}}function aue(t,n){if(t&1){let e=B();p(0,"button",58),T("click",function(){A(e);let r=h(3);return k(r.terminateSubscription())}),m()}if(t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("button_terminate"),y)("disabled",e.navigationToExternalOrderImpossible)}}function sue(t,n){if(t&1&&(p(0,"div",59),E(1),m()),t&2){let e=h(4);c(),R("",e.translationService.getTranslation("subscription_terminated_webabo")," ")}}function lue(t,n){if(t&1&&(p(0,"div",60),E(1),m()),t&2){let e=h(4);c(),R("",e.translationService.getTranslation("subscription_terminated_paradise")," ")}}function cue(t,n){if(t&1&&x(0,sue,2,1,"div",59)(1,lue,2,1,"div",60),t&2){let e=h(3);b(e.sub.subId>0&&e.sub.webId>0?0:-1),c(),b(e.sub.subId>0&&e.sub.webId<0?1:-1)}}function due(t,n){if(t&1&&(p(0,"div",24)(1,"div",54)(2,"div",55),x(3,aue,1,2,"button",56)(4,cue,2,2),m(),_(5,"div",57),m()()),t&2){let e=h(2);c(3),b(e.isTerminatable(e.sub)?3:4)}}function uue(t,n){if(t&1&&(p(0,"div",1)(1,"div",5)(2,"div",6)(3,"div",7),x(4,Ide,1,1,"h3",8),m(),p(5,"div",9),_(6,"p",10),m(),x(7,Ade,1,1,"div",11),p(8,"mat-card",12)(9,"mat-card-content",13)(10,"div",14)(11,"div",15),x(12,kde,1,1,"div",16)(13,Ode,1,1,"div",16),m()(),p(14,"div",17)(15,"div",18),x(16,Pde,1,1,"div",19),m()(),x(17,Nde,1,1,"h5",20),p(18,"div",21)(19,"div",22),x(20,Rde,1,1,"div",23)(21,Fde,1,1,"div",23),m()(),x(22,oue,2,0)(23,due,6,1,"div",24),m()()()()()),t&2){let e=h();c(4),f("appApplyIfNotEmpty",e.translationService.getTranslation("subscription_header")),c(2),f("innerHTML",e.translationService.getTranslation("subscription_intro"),y),c(),b(e.sub.state===3?7:-1),c(5),b(e.sub.userBackendId>=0?12:-1),c(),b(e.sub.userBackendId<0?13:-1),c(3),b(e.userData&&(e.userData.emailList==null?null:e.userData.emailList.length)>0?16:-1),c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("label_subscriptionDetail
632s")),c(3),b(e.sub.backendId>0?20:-1),c(),b(e.sub.backendId<=0?21:-1),c(),b(e.showAdditionalSubscriptionInfos?22:-1),c(),b(e.sub.subId>0&&e.showTerminationButton?23:-1)}}function pue(t,n){if(t&1){let e=B();p(0,"div",2)(1,"div",61)(2,"button",62),T("click",function(){A(e);let r=h();return k(r.backToOverview())}),m()()()}if(t&2){let e=h();c(2),f("innerHTML",e.translationService.getTranslation("button_back_to_overview"),y)}}var mue=["PAYMENT","CONTRACT_CURRENT","CONTRACT_FUTURE","ADR_DELIVERY","ADR_BILLING"],FH=(()=>{class t{constructor(){this.hupSubscriptionsService=d(ct),this.route=d(Ye),this.translationService=d(Y),this.configService=d(Ce),this.router=d(et),this.navigationService=d(Re),this.baseData=d(vt),this.paymentService=d($r),this.loginService=d(ft),this.landingPageService=d(Wi),this.SOURCESYSTEM_NAME_URL_CONFIG_KEY="sourceSystem.NAME.url",this.onlinePaymentChecker=new eo,this.showAdditionalSubscriptionInfos=!0,this.showTerminationButton=!0,this.currentDate=new Date,this.invoiceMethods=[],this.paymentMethods=[],this.paymentMethodDesc="",this.aggregateSubscription=!1,this.showSequelSubscriptionInAggregateMode=!1,this.isLoading=!1,this.blockOrder=["PAYMENT","CONTRACT_CURRENT","CONTRACT_FUTURE","ADR_DELIVERY","ADR_BILLING"],this.isMoveServiceActive=ee(!1),this.sourceSystemData={name:void 0,url:void 0},this.isLoading=!0,this.showAdditionalSubscriptionInfos=this.configService.getConfig("showAdditionalSubscriptionInfos")?.asBoolean(),this.showTerminationButton=this.configService.getConfig("subscription_show_termination_button")?.asBoolean(),this.showBackToOverviewButton=this.configService.getConfig("show.backToOverView.button")?.asBoolean(),this.aggregateSubscription=this.configService.getConfig("subscription.aggregateSequelAndCombi")?.asBoolean(),this.showSequelSubscriptionInAggregateMode=this.configService.getConfig("subscription.showSequelInAggregateMode")?.asBoolean();let e=this.configService.getConfig("subscription.blockOrder");e?.value&&(this.blockOrder=e.value.split(",").map(i=>i.trim()).filter(i=>mue.includes(i))),this.invoiceMethods=this.baseData.getBaseData("invoicemethods"),this.paymentMethods=this.baseData.getBaseData("paymentmethods"),this.landingPageService.isMoveServiceActive().subscribe(this.isMoveServiceActive.set)}ngOnInit(){let e=this.configService.getConfig(this.onlinePaymentChecker.ONLINE_PAYMENT_METHOD_ID_CONFIG_KEY);e&&e.value&&this.onlinePaymentChecker.setPaymentCode(e.value),this.route.paramMap.subscribe(i=>{this.paymentMethodId=null,this.aggregateSubscription?this.hupSubscriptionsService.getSubscriptionForDetail(i.get("webId"),i.get("backendId")).subscribe(r=>{this.sub=r,this.handleSubscription(),this.handleSourceSystemData(this.sub)}):this.hupSubscriptionsService.getSubscription(i.get("webId"),i.get("backendId")).subscribe(r=>{this.sub=r,this.handleSubscription(),this.handleSourceSystemData(this.sub)})}),this.loginService.getUserData().subscribe(i=>{i&&(this.userData=i)})}handleSubscription(){this.paymentService.getPaymentMethodByCode(this.sub?.curPayment?.paymentType?.paymentMethod).subscribe(r=>{this.paymentMethodId=r});let e=this.paymentMethods?.filter(r=>r.key===this.sub?.curPayment?.paymentType?.paymentMethod)[0]?.description,i=this.invoiceMethods?.filter(r=>r.key===this.sub?.curPayment?.paymentType?.paymentFrequency)[0]?.description;this.paymentMethodDesc=e??this.sub.curPayment.paymentType.paymentMethod,this.sub.curPayment.paymentType.paymentFrequency=i??this.sub.curPayment.paymentType.paymentFrequency,this.sub.validDate.validUntil!==null&&this.sub.validDate.validUntil<this.currentDate&&(this.showTerminationButton=!1),this.isLoading=!1}currentAndSequelSubscriptionsAreSimilar(){return!(this.sub.combiSubscriptionList&&this.sub.sequelSubscriptions)||this.sub.combiSubscriptionList.length!==this.sub.sequelSubscriptions.length?!1:this.sub.combiSubscriptionList.every((e,i)=>{let r=this.sub.sequelSubscriptions[i],o=r&&e.productCode===r.productCode&&e.variantCode===r.variantCode&&e.priceId===r.priceId;return o&&(r.validDate.validFrom=e.validDate.validFrom),o})}terminateSubscription(){if(this.sourceSystemData.name==ka[ka.WEBABO])this.router.navigate(["/terminate-subscription/"+this.sub.subId],{queryParamsHandling:"preserve"}).then(i=>console.debug("Interne Navigation",i));else{let i=this.sourceSystemData.url;i&&i!==""&&i.trim()!=""&&this.navigationService.navigateExtern(i,!0).then(r=>console.debug("Externe Navigation",r))}}get navigationToExternalOrderImpossible(){return this.sourceSystemData.name!=ka[ka.WEBABO]&&(!this.sourceSystemData.url||this.sourceSystemData.url==""||this.sourceSystemData.url?.trim()=="")}backToOverview(){this.navigationService.navigateTo(ge.SUBSCRIPTION,null,!0)}isTerminatable(e){return!(e.webId>0&&e.backendId>0&&e.state===-1)}isOnlinePayment(e){return this.onlinePaymentChecker.isOnlinePayment(e.curPayment)}handleSourceSystemData(e){if(e&&(this.sourceSystemData.name=e.sourceSystem?.systemName,this.sourceSystemData.name!=ka[ka.WEBABO])){let i=this.SOURCESYSTEM_NAME_URL_CONFIG_KEY.replace("NAME",this.sourceSystemData.name);this.sourceSystemData.url=this.configService.getConfig(i).value}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-hup-subscription-detail"]],decls:3,vars:3,consts:[["tabindex","0","autofocus","","xmlns","http://www.w3.org/1999/html",1,"row","hup-subscription-detail",2,"outline","none"],[1,"row"],[1,"row","mt-3","hup-subscription-detail__back"],[1,"col-12","offset-lg-2","col-lg-8","hup-subscription-detail__loading"],[1,"text-center","hup-subscription-detail__spinner"],[1,"col-12","offset-lg-2","col-lg-8"],[1,"hup-subscription-detail__c
632ontent"],[1,"hup-subscription-detail__header"],["class","hup-subscription-detail__title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"hup-subscription-detail__intro"],[1,"hup-subscription-detail__subtitle",3,"innerHTML"],[1,"hup-subscription-detail__canceled",3,"innerHTML"],[1,"mt-4","mat-mdc-card-outlined","hup-subscription-detail__card"],[1,"hup-subscription-detail__card-content"],[1,"form-group","hup-subscription-detail__user"],[1,"hup-subscription-detail__user-row"],[1,"hup-subscription-detail__user-backendid",3,"innerHTML"],[1,"form-group","hup-subscription-detail__email"],[1,"hup-subscription-detail__email-row"],[1,"hup-subscription-detail__email-value",3,"innerHTML"],["class","mt-5 hup-subscription-detail__details-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"form-group","hup-subscription-detail__order"],[1,"hup-subscription-detail__order-row"],[1,"hup-subscription-detail__order-id",3,"innerHTML"],[1,"form-group","mt-5","hup-subscription-detail__termination"],[1,"hup-subscription-detail__title",3,"innerHTML"],[1,"mt-5","hup-subscription-detail__details-title",3,"innerHTML"],[1,"d-inline-block","mt-4",3,"innerHTML"],[3,"routerLink"],[1,"form-group","hup-subscription-detail__payment"],[1,"hup-subscription-detail__payment-row"],[1,"hup-subscription-detail__payment-info"],[1,"hup-subscription-detail__payment-method"],[1,"hup-subscription-detail__payment-frequency"],["fontIcon","edit"],[1,"hup-subscription-detail__payment-iban",3,"innerHTML"],[1,"hup-subscription-detail__payment-bic",3,"innerHTML"],[1,"hup-subscription-detail__combi"],[1,"mt-4","hup-subscription-detail__combi-title",3,"innerHTML"],[1,"hup-subscription-detail__combi-block",3,"subscription"],[1,"hup-subscription-detail__combi-item"],["class","mt-4 hup-subscription-detail__combi-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"mt-4","hup-subscription-detail__sequel-title",3,"innerHTML"],["class","mt-4 hup-subscription-detail__sequel-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"hup-subscription-detail__sequel-block",3,"subscription"],[1,"hup-subscription-detail__sequel-combi-item"],[1,"hup-subscription-detail__sequel-combi-block",3,"subscription"],["class","d-inline-block mt-4 hup-subscription-detail__delivery-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"form-group","hup-subscription-detail__delivery"],[1,"hup-subscription-detail__delivery-detail",3,"address","person"],[1,"d-inline-block","mt-4","hup-subscription-detail__delivery-title",3,"innerHTML"],[1,"mt-4","hup-subscription-detail__billing-title",3,"innerHTML"],[1,"form-group","hup-subscription-detail__billing"],[1,"hup-subscription-detail__billing-detail",3,"address","person"],[1,"hup-subscription-detail__termination-row"],[1,"hup-subscription-detail__termination-action"],["mat-raised-button","",1,"hup-subscription-detail__termination-btn",3,"innerHTML","disabled"],[1,"col-12","col-sm-6"],["mat-raised-button","",1,"hup-subscription-detail__termination-btn",3,"click","innerHTML","disabled"],[1,"hup-subscription-detail__terminated","hup-subscription-detail__terminated--webabo"],[1,"hup-subscription-detail__terminated","hup-subscription-detail__terminated--paradise"],[1,"col-12","offset-lg-2","col-lg-8","text-end"],["mat-raised-button","",1,"hup-subscription-detail__back-btn",3,"click","innerHTML"]],template:function(i,r){i&1&&x(0,Mde,4,0,"div",0)(1,uue,24,11,"div",1)(2,pue,3,1,"div",2),i&2&&(b(r.isLoading?0:-1),c(),b(!r.isLoading&&r.sub?1:-1),c(),b(r.showBackToOverviewButton?2:-1))},dependencies:[RH,Ib,Ee,Jr,Ge,at,Rt,ze,Lo,fn],styles:[`mat-icon[_ngcontent-%COMP%]{font-size:1.5rem;vertical-align:text-bottom;color:#888}mat-icon[_ngcontent-%COMP%]:hover{color:#444} 633/*# sourceMappingURL=hup-subscription-detail.component-YLYWIOON.css.map */`]})}}return t})();var cs=(()=>{class t{constructor(){this.router=d(et),this.route=d(Ye),this.loginService=d(ft),this.redirectService=d(Ln),this.dialog=d(Vs),this.configService=d(Ce),this.platformId=d(Qe)}canActivate(e,i){return _n({useId:this.useIdentification(),auth:this.loginService.getAuthData().pipe(Et(1)),verint:this.isVerintEnabled()}).pipe(F(r=>
633this.redirectTo(r.useId,r.auth,r.verint,e,i)))}redirectTo(e,i,r,o,a){let s=!!i,l=Rn.USE_LANDING_PAGE;if(s)return!0;switch(a.url){case"/complaint":return this.router.createUrlTree(["/complaint-without-login"]);case"/contact":if(!r)break;return this.router.createUrlTree(["/contact-without-login"]);case"/revocation":return this.router.createUrlTree(["/revocation-without-login"]);case"/sub-change":if(e)return this.router.createUrlTree(["/sub-change-without-login"]);break}if(nt(this.platformId)){if(this.configService.getConfig("sso.usage")?.value?.toUpperCase()?.indexOf("OAUTHHASSO")===0)return this.router.createUrlTree(["/login"],{queryParams:{returnUrl:a.url}});this.dialog.open(Rv,{data:{url:a.url},panelClass:"SSOloginBox"})}else this.redirectService.redirect("/login?returnUrl="+a.url.replace("/",""));if(!l)return this.router.createUrlTree(["/"])}useIdentification(){return this.configService.loadConfig("withoutLogin.useIdentificationForm").pipe(F(e=>e?.asBoolean()))}isVerintEnabled(){return this.configService.loadConfig("verint.enabled").pipe(F(e=>e?.asBoolean()))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pr=(()=>{class t{constructor(){this.baseDataService=d(vt),this.http=d(Be)}resolve(e,i){let r=e.data.baseData,o=[],a=!1;if(r.forEach(s=>{this.baseDataService.getBaseData(s)||(a=!0,o.push(this.baseDataService.loadBaseData(s)))}),a)return _n(o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ki=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-parent"]],decls:1,vars:0,template:function(i,r){i&1&&_(0,"router-outlet")},dependencies:[Oc],encapsulation:2})}}return t})();var LH=(()=>{class t extends Xo{constructor(){super(...arguments),this.http=d(Be)}createContactRequest(e,i,r,o,a,s){let l="",u=new Date().getTime();return this.isContactFormFilled(s)?(s.contactReason=e.reason,s.memo=e.memo,l="/webabo/contacts/forms",e=s):o?(l="/webabo/contacts/unauthorized",e.userBackendId=a):l="/webabo/contacts",this.http.post(l+"?"+u,e).pipe(F(g=>{}),Ae(g=>(console.log(g),this.handleAPIError([i],g.error,r),ht)))}isContactFormFilled(e){let i=!1;return e.firstName&&e.firstName!==""&&(i=!0),e.lastName&&e.lastName!==""&&(i=!0),e.salutation&&e.salutation!==""&&(i=!0),e.title&&e.title!==""&&(i=!0),e.street&&e.street!==""&&(i=!0),e.houseno&&e.houseno!==""&&(i=!0),e.zipCode&&e.zipCode!==""&&(i=!0),e.city&&e.city!==""&&(i=!0),e.email&&e.email!==""&&(i=!0),e.additional2&&e.additional2!==""&&(i=!0),i}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Tt(t)))(r||t)}})()}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function fue(t,n){if(t&1&&_(0,"h3",5),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("contact_intro"),y)}}function hue(t,n){if(t&1&&(p(0,"div",2),x(1,fue,1,1,"h3",4),m()),t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("contact_intro"))}}function gue(t,n){if(t&1&&_(0,"div",3),t&2){let e=h();f("innerHTML","WTF"+e.translationService.getTranslation("contact_send"),y)}}function _ue(t,n){if(t&1&&(p(0,"mat-option",15),E(1),m()),t&2){let e=n.$implicit;f("value",e.key),c(),R("",e.description," ")}}function vue(t,n){if(t&1&&(p(0,"mat-error",16),E(1),m()),t&2){let e=h(2);c(),R("",e.contactForm.get("reason").getError("message")," ")}}function bue(t,n){if(t&1&&(p(0,"mat-hint",20),E(1),m()),t&2){h();let e=J(18);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function yue(t,n){if(t&1&&(p(0,"mat-error",21),E(1),m()),t&2){let e=h(2);c(),R("",e.contactForm.get("memo").getError("message")," ")}}function Cue(t,n){t&1&&(p(0,"div",22),_(1,"app-loading-spinner",25),m())}function Sue(t,n){if(t&1){let e=B();p(0,"div"),_(1,"p",6),m(),p(2,"div"),_(3,"app-general-errors",7),p(4,"mat-card",8)(5,"mat-card-content",9)(6,"form",10)(7,"div",11)(8,"mat-form-field",12),_(9,"mat-label",13),p(10,"mat-select",14),W(11,_ue,2,2,"mat-option",15,X),m(),x(13,vue,2,1,"mat-error",16),m(),p(14,"mat-form-field",17)(15,"mat-label",18),E(16),m(),_(17,"textarea",19,0),x(19,bue,2,2,"mat-hint",20)(20,yue,2,1,"mat-error",21),m(),x(21,Cue,2,0,"div",22),p(22,"div",23)(23,"button",24),T("click",function(){A(e);let r=h();return k(r.onSendContact())}),E(24),m()()()()()()()}if(t&2){let e=J(18),i=h();As("col-12 ",i.unauthorized?"":"offset-lg-2 col-lg-8"," contact__description"),c(),f("innerHTML",i.translationService.getTranslation("c
633ontact_description"),y),c(),As("col-12 ",i.unauthorized?"":"offset-lg-2 col-lg-8",""),c(),f("errors",i.errorsArr),c(),ZO(i.unauthorized?"margin: 0 -16px; border: 1px solid transparent !important;":""),c(2),f("formGroup",i.contactForm),c(3),f("innerHTML",i.translationService.getTranslation("contact_type"),y),c(2),q(i.contactTypes),c(2),b(i.contactForm.get("reason").hasError("message")?13:-1),c(3),R("",i.translationService.getTranslation("contact_message")," "),c(3),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?19:-1),c(),b(i.contactForm.get("memo").hasError("message")?20:-1),c(),b(i.isSaving?21:-1),c(2),f("hidden",i.isSaving)("disabled",i.contactForm.invalid||!(!i.unauthorized||i.userBackendId!==void 0&&i.userBackendId>0||i.isValidEmail(i.emailAddress)==="valid"&&i.addressForm.valid)),c(),R(" ",i.translationService.getTranslation("button_send")," ")}}var Yf=(()=>{class t{constructor(){this.translationService=d(Y),this.formBuilder=d(kt),this.baseDataService=d(vt),this.contactService=d(LH),this.snackBar=d(Yi),this.navigationService=d(Re),this.errorsArr=[],this.contactTypes=[],this.send=!1,this.isSaving=!1,this.unauthorized=!1,this.userBackendId=0,this.saved=new z,this.contactFormModel=null,this.document=typeof document=="object"?document:null,this.contactTypes=this.baseDataService.getBaseData("contactrequesttypes")}ngOnInit(){this.contactForm=this.formBuilder.group({reason:["",Z.required],memo:["",Z.required]}),this.send=!1}onSendContact(){this.errorsArr=[],this.buildContactFormModel(),this.isSaving=!0,this.contactForm.valid&&this.contactService.createContactRequest(this.contactForm.value,this.contactForm,this.errorsArr,this.unauthorized,this.userBackendId,this.contactFormModel).subscribe({error:e=>this.isSaving=!1,complete:()=>{this.contactForm.reset(),this.send=!0,this.send=!0,this.saved.emit(!0),this.navigationService.navigateTo(ge.CONTACTOVERVIEW).then(e=>{e&&this.snackBar.openSnackbar(this.translationService.getTranslation("saved"))}),this.isSaving=!1}})}buildContactFormModel(){if(this.contactFormModel={},this.addressForm){let e=this.addressForm.get("address"),i=this.addressForm.get("person");this.contactFormModel.street=e.get("street").value,this.contactFormModel.houseno=e.get("houseNo").value,this.contactFormModel.zipCode=e.get("zipcode").value,this.contactFormModel.city=e.get("
633city").value,this.contactFormModel.country=e.get("country").value?.key,this.contactFormModel.additional2=e.get("extraLine").value,this.contactFormModel.firstName=i.get("firstName").value,this.contactFormModel.lastName=i.get("lastName").value,this.contactFormModel.salutation=i.get("salutation")?.value.key,this.contactFormModel.title=i.get("title").value,this.contactFormModel.email=this.emailAddress}}isValidEmail(e){let i=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;if(!e||e.trim()==="")return console.log("isValidEmail: empty"),"empty";let r=i.test(e);return console.log("isValidEmail:",r?"valid":"invalid"),r?"valid":"invalid"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-contact"]],inputs:{unauthorized:"unauthorized",userBackendId:"userBackendId",addressForm:"addressForm",emailAddress:"emailAddress"},outputs:{saved:"saved"},decls:4,vars:2,consts:[["memo",""],[1,"row","contact","contact--form"],[1,"col-12","offset-lg-2","col-lg-8","contact__intro"],[1,"contact","contact--sent",3,"innerHTML"],["class","contact__intro-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"contact__intro-title",3,"innerHTML"],[1,"contact__description-title",3,"innerHTML"],[1,"contact__errors",3,"errors"],[1,"mat-mdc-card-outlined","mt-2","contact__card"],[1,"contact__card-content"],[1,"contact__form",3,"formGroup"],[1,"row","contact__form-row"],[1,"col-12","contact__form-field","contact__form-field--type"],[1,"contact__label","contact__label--type",3,"innerHTML"],["formControlName","reason","required","","aria-required","true","data-cy","select-contact-type",1,"contact__select","contact__select--type"],["data-cy","option-contact-type",1,"contact__option","contact__option--type",3,"value"],[1,"contact__error","contact__error--type"],[1,"col-12","contact__form-field","contact__form-field--message"],[1,"contact__label","contact__label--message"],["maxLength","65535","matInput","","cdkAutosizeMinRows","5","cdkTextareaAutosize","","formControlName","memo","required","","data-cy","input-contact-message",1,"contact__textarea","contact__textarea--message"],["align","end",1,"contact__hint","contact__hint--message"],[1,"contact__error","contact__error--message"],[1,"contact__saving",2,"text-align","center"],[1,"col-12","contact__form-actions"],["mat-raised-button","","color","primary","data-cy","btn-send",1,"contact__button","contact__button--send",3,"click","hidden","disabled"],[1,"contact__spinner"]],template:function(i,r){i&1&&(p(0,"div",1),x(1,hue,2,1,"div",2)(2,gue,1,1,"div",3)(3,Sue,25,21),m()),i&2&&(c(),b(r.unauthorized?-1:1),c(),b(r.send?2:3))},dependencies:[Vt,Ot,wi,Bt,At,Wt,ai,bt,Ut,Nt,ir,Ri,ei,kv,Ge,Ee,Pt,Ht,qi,at,Rt,ze],encapsulation:2})}}return t})();var ds=function(t){return t[t.INTERMISSION=0]="INTERMISSION",t[t.EPAPER=10]="EPAPER",t[t.DONATION_WELFARE=21]="DONATION_WELFARE",t[t.DONATION_POOL=22]="DONATION_POOL",t[t.FORWARD=30]="FORWARD",t[t.COLLECTION=40]="COLLECTION",t}(ds||{});var gp=(()=>{class t{constructor(){this.http=d(Be),this.datePipe=d(Le),this.subChanges=[],this.loadedAll=!1}getSubChanges(e,i=-1,r=!1){if(this.loadedAll&&!r)return j(this.subChanges);{let o=new Date().getTime();return this.http.get("/webabo/sub-changes"+(i>1?"/unauthorized":"")+"?subscriptionId="+e+(i>1?"&clientNo="+i:"")+"&"+o).pipe(jt(a=>{this.loadedAll=!0,a.forEach(s=>{this.handleSubChange(s)}),this.subChanges=a}))}}getSubChange(e,i,r){for(let o of this.subChanges)if(o.webId===e&&o.backendId===i)return j(o);return this.http.get("/webabo/sub-changes/"+e+"?subscriptionId="+r+"&backendId="+i).pipe(jt(o=>{this.handleSubChange(o),this.subChanges.push(o)}),Ae(o=>(console.log(o),ht)))}sendSubChange(e,i){return this.http.post("/webabo/sub-changes"+(i?"/unauthorized":""),e).pipe(jt(()=>{this.loadedAll=!1}))}getSubChangeTypes(e){return this.http.get("/webabo/sub-changes/actions/"+e)}updateSubChange(e,i,r,o){let a="/webabo/sub-changes/"+i+"?backendId="+o+"&subId="+r;return this.http.patch(a,e,{headers:{"Content-Type":"application/merge-patch+json"}})}getPriceForSubChange(e,i){return this.http.post("/webabo/sub-changes/prices"+(i?"/unauthorized":""),e).pipe(F(r=>(this.loadedAll=!1,r)))}deleteSubChange(e,i,r){let o="webabo/sub-changes/"+e+"?subscriptionId="+i+"&backendId="+r;this.http.delete(o).subscribe()}handleSubChange(e){e.changeType=typeof e.changeType=="string"||e.changeType instanceof String?e.changeType:ds[e.changeType]}getDonationPools(e,i,r,o){let a="/webabo/sub-changes/donation-pools/?productC
633ode="+e+"&variantCode="+i+"&startDate="+this.datePipe.transform(r,"yyyy-MM-dd")+"&endDate="+(o?this.datePipe.transform(o,"yyyy-MM-dd"):"");return this.http.get(a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function xue(t,n){if(t&1&&_(0,"h3",11),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("sub_change_intro"),y)}}function wue(t,n){t&1&&(p(0,"div",6),_(1,"app-loading-spinner",12),m())}function Eue(t,n){if(t&1&&_(0,"div",8),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("intro_noSubs"),y)}}function Due(t,n){if(t&1&&_(0,"div",9),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("intro_noSubs_onlyDigital"),y)}}function Tue(t,n){if(t&1&&_(0,"mat-card-subtitle",18),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_id")+": "+e.subId,y)}}function Mue(t,n){if(t&1&&_(0,"mat-card-subtitle",19),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_edition")+": "+e.variantDescription,y)}}function Iue(t,n){if(t&1&&(_(0,"mat-card-subtitle",20),te(1,"date"),te(2,"date")),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("period")+": "+Te(1,1,e.validDate.validFrom,i.translationService.getTranslation("dateFormat"))+" - "+(e.validDate.validUntil?Te(2,4,e.validDate.validUntil,i.translationService.getTranslation("dateFormat")):i.translationService.getTranslation("subscription_endless")),y)}}function Aue(t,n){if(t&1&&(p(0,"mat-card-subtitle",21),E(1),te(2,"houseNoPipe"),m()),t&2){let e=h().$implicit;c(),ma(" ",e.curDelivery.person.addressCodeDescription," ",e.curDelivery.person.firstname," ",e.curDelivery.person.lastname,", ",e.curDelivery.address.city,", ",e.curDelivery.address.street," ",Ct(2,6,e.curDelivery.address.houseno)," ")}}function kue(t,n){if(t&1&&_(0,"p",25),t&2){let e=h(4);f("innerHTML",e.translationService.getTranslation("subChange_impossible"),y)}}function Oue(t,n){if(t&1&&x(0,kue,1,1,"p",27),t&2){let e=h(3);f("appApplyIfNotEmpty",e.translationService.getTranslation("subChange_impossible"))}}function Pue(t,n){if(t&1&&(p(0,"mat-expansion-panel-header",30),_(1,"mat-panel-title",33),p(2,"mat-panel-description",34),E(3),te(4,"date"),te(5,"date"),m()()),t&2){let e=h().$implicit,i=h(4);c(),f("innerHTML",i.translationService.getTranslation("label_"+e.changeType.toString()+"_description"),y),c(2),Pe(" ",Te(4,3,e.validDate.validFrom,i.translationService.getTranslation("dateFormat"))," ",e.validDate.validUntil&&e.validDate.validUntil!=e.validDate.validFrom?" - "+Te(5,6,e.validDate.validUntil,i.translationService.getTranslation("dateFormat")):""," ")}}function Nue(t,n){if(t&1){let e=B();p(0,"button",37),T("click",function(){A(e);let r=h(2).$implicit,o=h(2).$implicit,a=h(2);return k(a.onDelete(o,r))}),m()}if(t&2){let e=h(6);f("innerHTML",e.translationService.getTranslation("button_delete"),y)}}function Rue(t,n){if(t&1){let e=B();p(0,"button",38),T("click",function(){A(e);let r=h(2).$implicit,o=h(2).$implicit,a=h(2);return k(a.onEdit(o,r))}),E(1),m()}if(t&2){let e=h(6);c(),R(" ",e.translationService.getTranslation("button_edit")," ")}}function Fue(t,n){if(t&1&&(p(0,"mat-action-row",31),x(1,Nue,1,1,"button",35)(2,Rue,2,1,"button",36),m()),t&2){let e=h().$implicit;c(),b(e.outdated?-1:1),c(),b(e.outdated?-1:2)}}function Lue(t,n){if(t&1&&(p(0,"div",39),_(1,"div",41),p(2,"div",42),_(3,"app-address-detail",43),m()()),t&2){let e=h(3).$implicit,i=h(4);c(),f("innerHTML",i.translationService.getTranslation("address_delivery"),y),c(2),f("address",e.address)("person",e.person)}}function Bue(t,n){if(t&1&&(p(0,"div",40),_(1,"div",44),p(2,"div",45),E(3),m()()),t&2){let e=h(3).$implicit,i=h(4);c(),f("innerHTML",i.translationService.getTranslation("complaint_reasonMemo"),y),c(2),R(" ",e.reasonMemo," ")}}function Hue(t,n){if(t&1&&x(0,Lue,4,3,"div",39)(1,Bue,4,2,"div",40),t&2){let e=h(2).$implicit;b(e.address&&e.person&&e.person.lastname?0:-1),c(),b(e.reasonMemo?1:-1)}}function Vue(t,n){t&1&&x(0,Hue,2,2,"ng-template",32)}function jue(t,n){if(t&1&&(p(0,"mat-expansion-panel",29),x(1,Pue,6,9,"mat-expansion-panel-header",30)(2,Fue,3,2,"mat-action-row",31)(3,Vue,1,0,null,32),m()),t&2){let e=n.$implicit;c(),b(e.state!=3?1:-1),c(),b(e.state!=3?2:-1),c(),b(e.state!=3?3:-1)}}function zue(t,n){if(t&1&&(p(0,"mat-card-content",26)(1,"mat-accordion",28),W(2,jue,4,3,"mat-expansion-panel",29,X),m()()),t&2){let e=h().$implicit;c(2),q(e.subChanges)}}function Uue(t,n){if(t&1){let e=B();p(0,"div",13)(1,"mat-card",14)(2,"div",15)(3,"div",16)(4,"mat-card-title",17),E(5),m(),x(6,Tue,1,1,"mat-card-subtitle",18)(7,Mue,1,1,"mat-card-subtitle",19)(8,Iue,3,7,"mat-card-subtitle",20)(9,Aue,3,8,"mat-card-subtitle",21),m(),p(10,"div",22),Tr(11),p(12,"mat-card-actions",23)(13,"button",24),T("click",function(){let r=A(e).$implicit,o=h(2);return k(o.onNewSubChange(r))}),m()(),x(14,Oue,1,1,"p",25),m()(),x(15,zue,4,0,"mat-card-content",26),m()()}if(t&2){let e=n.$implicit,i=h(2);c(5),he(e.productDescription),c(),b(e.subId?6:-1),c(),b(e.variantDescription?7:-1),c(),b(e.validDate?8:-1),c(),b(e.curDelivery?9:-1);let r=i.isOnlinePayment(e);c(4),f("innerHTML",i.translationService.getTranslation("button_new_sub_change"),y)("disabled",r),c(),b(r?14:-1),c(),b(e&&e.subChanges&&e.subChanges.length>0?15:-1)}}function Gue(t,n){if(t&1&&(p(0,"div",10),W(1,Uue,16,9,"div",13,X),m()),t&2){let e=h();c(),q(e.subs)}}var BH=(()=>{class t{constructor(){this.subChangeService=d(gp),this.hupSubscriptionsService=d(ct),this.translationService=d(Y),this.navigationService=d(Re),this.configService=d(Ce),this.onlinePaymentChecker=new eo,this.isLoadingSub=!1,this.subs=[],this.errorsArr=[],this.foundDigitalSubscription=!1}ngOnInit(){this.isLoadingSub=!0;let e=this.configService.getConfig(this.onlinePaymentChecker.ONLINE_PAYMENT_METHOD_ID_CONFIG_KEY);e&&e.value&&this.onlinePaymentChecker.setPaymentCode(e.value),this.hupSubscriptionsService.getSubscriptions().subscribe(i=>{this.isLoadingSub=!1,this.foundDigitalSubscription=!1,this.subs=[],i.forEac
633h(r=>{(r.validDate.validUntil==null||r.validDate.validUntil>new Date)&&r.backendId>0&&(!si(r.offer?.offerType)&&!si(r.subscriptionType)?this.subs.push(r):this.foundDigitalSubscription=!0)}),this.subs.forEach(r=>{r.isLoadingSubChange=!0,this.subChangeService.getSubChanges(r.backendId,-1,!0).subscribe({next:o=>{r.subChanges=o},error:o=>{r.isLoadingSubChange=!1,this.errorsArr.push(this.translationService.getTranslation("error_subchanges_init"))},complete:()=>{r.isLoadingSubChange=!1,r.subChanges.forEach(o=>{o.outdated=new Date(o.validDate.validFrom).getTime()<=new Date().getTime()})}})})},i=>{this.isLoadingSub=!1,this.errorsArr.push(this.translationService.getTranslation("error_subscription_init"))})}onDelete(e,i){this.subChangeService.deleteSubChange(i.webId,e.subId,i.backendId),this.hupSubscriptionsService.loadedAll=!1,this.ngOnInit()}onNewSubChange(e){this.navigationService.navigateTo(ge.SUBCHANGENEW,[e.webId+"",e.backendId+""])}onEdit(e,i){this.navigationService.navigateTo(ge.SUBCHANGEEDIT,[i.webId+"",i.backendId+"","true",e.backendId+""])}isOnlinePayment(e){return this.onlinePaymentChecker.isOnlinePayment(e.curPayment)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-sub-change"]],features:[_e([Le])],decls:12,vars:7,consts:[[1,"row","sub-change__row"],[1,"col-12","sub-change__intro"],["class","sub-change__intro-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","sub-change__description"],[1,"sub-change__description-title",3,"innerHTML"],[1,"col-12","sub-change__content"],[1,"sub-change__loading",2,"text-align","center"],[1,"sub-change__errors",3,"errors"],[1,"mt-3","sub-change__no-subs",3,"innerHTML"],[1,"mt-3","sub-change__no-subs-digital",3,"innerHTML"],[1,"row"],[1,"sub-change__intro-title",3,"innerHTML"],[1,"sub-change__spinner"],[1,"col-12","col-md-6","col-lg-4","mt-3"],["appearance","outlined",1,"mt-3","sub-change__card"],[1,"--row","m-3","sub-change__card-row"],["tabindex","0",1,"col-12","sub-change__card-info"],[1,"sub-change__card-title"],[1,"sub-change__card-subtitle","sub-change__card-subtitle--order-id",3,"innerHTML"],[1,"sub-change__card-subtitle","sub-change__card-subtitle--edition",3,"innerHTML"],[1,"sub-change__card-subtitle","sub-change__card-subtitle--period",3,"innerHTML"],[1,"sub-change__card-subtitle","sub-change__card-subtitle--delivery"],[1,"col-12","sub-change__card-actions"],[1,"card-actions","sub-change__actions"],["ngSkipHydration","","mat-raised-button","","color","primary",1,"mt-2","sub-change__actions-btn","sub-change__actions-btn--new",3,"click","innerHTML","disabled"],["id","sub-change-warning",1,"mb-0","sub-change__warning","text-warning",3,"innerHTML"],[1,"sub-change__card-content"],["class","mb-0 sub-change__warning text-warning","id","sub-change-warning",3,"innerHTML",4,"appApplyIfNotEmpty"],["multi","",1,"sub-change__accordion"],[1,"sub-change__expansion-panel"],[1,"sub-change__expansion-header"],[1,"sub-change__action-row"],["matExpansionPanelContent",""],[1,"sub-change__panel-title",3,"innerHTML"],[1,"sub-change__panel-description"],["mat-raised-button","","color","primary",1,"me-3","sub-change__action-btn","sub-change__action-btn--delete",3,"innerHTML"],["mat-raised-button","",1,"mr-3","sub-change__action-btn","sub-change__action-btn--edit"],["mat-raised-button","","color","primary",1,"me-3","sub-change__action-btn","sub-change__action-btn--delete",3,"click","innerHTML"],["mat-raised-button","",1,"mr-3","sub-change__action-btn","sub-change__action-btn--edit",3,"click"],[1,"row","sub-change__address-row"],[1,"row","sub-change__reason-row"],[1,"col-6","sub-change__address-label",3,"innerHTML"],[1,"col-6","sub-change__address-detail"],[1,"sub-change__address-detail-component",3,"address","person"],[1,"col-6","sub-change__reason-label",3,"innerHTML"],[1,"col-6","sub-change__reason-memo"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,xue,1,1,"h3",2),m(),p(3,"div",3),_(4,"p",4),m()(),p(5,"div",0)(6,"div",5),x(7,wue,2,0,"div",6),_(8,"app-general-errors",7),x(9,Eue,1,1,"div",8)(10,Due,1,1,"div",9)(11,Gue,3,0,"div",10),m()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("sub_change_intro")),c(2),f("innerHTML",r.translationService.getTranslation("sub_change_description"),y),c(3),b(r.isLoadingSub?7:-1),c(),f("errors",r.errorsArr),c(),b(!r.isLoadingSub&&r.subs.length==0&&!r.foundDigitalSubscription?9:-1),c(),b(!r.isLoadingSub&&r.subs.length==0&&r.foundDigitalSubscription?10:-1),c(),b(!r.isLoadingSub&&r.subs.length>0?11:-1))},dependencies:[Ge,Vt,at,Li,Xr,Le,Di,hr,Ee,Rt,hp,Js,el,Yl,fp,td,Ib,PH,ze],styles:[`.card-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin:0} 634/*# sourceMappingURL=sub-change.component-HRZKGHBN.css.map */`]})}}return t})();var Ab=class{isErrorState(n,e){let i=!!(e&&e.submitted),r=!!(n&&(n.dirty||n.touched)),o=!!(n&&n.invalid),a=!!(n&&n.parent&&n.parent.invali
634d&&(n.parent.dirty||n.parent.touched));return(i||r)&&(o||a)}};var _p=class{constructor(n,e,i,r,o,a,s,l,u,g,v,w,C,S,D,O,V,Q,ie,U,Me,Oe,ae,oe,dt,ut,Ze=[],lt,Ft,ti,on){this.subId=n,this.userBackendId=e,this.webId=i,this.backendId=r,this.readOnly=o,this.state=a,this.variantCode=s,this.offerId=l,this.validDate=u,this.commitmentDate=g,this.paymentList=v,this.deliveryAddressList=w,this.billingAddressList=C,this.subscriptionStatus=S,this.offer=D,this.subscriptionType=O,this.salesInfo=V,this.priceId=Q,this.subChanges=ie,this.isLoadingSubChange=U,this.productCode=Me,this.productDescription=Oe,this.variantDescription=ae,this.curDelivery=oe,this.curBilling=dt,this.curPayment=ut,this.delayMessages=Ze,this.sequelSubscriptions=lt,this.combiSubscriptionList=Ft,this.termination=ti,this.sourceSystem=on}};var HH=(()=>{class t{constructor(){this.fileDeleted=new z}deleteFile(){this.file=null,this.fileDeleted.emit(this.file)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-image-list-element"]],inputs:{file:"file"},outputs:{fileDeleted:"fileDeleted"},decls:4,vars:1,consts:[[1,"d-flex","justify-content-between","align-items-center","p-2","list-element"],[3,"click"]],template:function(i,r){i&1&&(p(0,"div",0),E(1),p(2,"mat-icon",1),T("click",function(){return r.deleteFile()}),E(3,"delete"),m()()),i&2&&(c(),R(" ",r.file.name," "))},dependencies:[fn],styles:[`div.list-element[_ngcontent-%COMP%]{border:1px solid lightgray;margin:-1px 0}mat-icon[_ngcontent-%COMP%]{color:gray;cursor:pointer} 635/*# sourceMappingURL=image-list-element.component-WDQIQ4IP.css.map */`]})}}return t})();var $ue=["upload"];function Wue(t,n){if(t&1){let e=B();p(0,"div")(1,"app-image-list-element",6),T("fileDeleted",function(){let r=A(e).$implicit,o=h(2);return k(o.onFileDeleted(r))}),m()()}if(t&2){let e=n.$implicit;c(),f("file",e)}}function que(t,n){if(t&1&&(p(0,"div"),W(1,Wue,2,1,"div",null,X),m()),t&2){let e=h();c(),q(e.files)}}var VH=(()=>{class t{constructor(){this.translationService=d(Y),this.imagesUploaded=new z,this.files=[],this.imageFiles=[]}onFilesSelected(e){let i=e.target.files;if(i&&i.length>0){this.files=[...this.files,...i];for(let r=0;r<i.length;r++){let o=i[r],a=new FileReader;a.onload=()=>{let s=a.result,l=this.prepareImageModel(s),u=new Nv(o.name,o.type,l);this.imageFiles.push(u),i.length===this.imageFiles.length&&this.imagesUploaded.emit(this.imageFiles)},a.readAsDataURL(o)}}}prepareImageModel(e){let i=["image/png","image/jpg","image/jpeg"],r=e.replace(",","");return r=r.replace(":",""),r=r.replace(";",""),r=r.replace("data",""),i.forEach(o=>{r.indexOf(o)!=-1&&(r=r.replace(o,""))}),r=r.replace("base64",""),r}onFileDeleted(e){this.files=this.files.filter(i=>i!==e)}triggerUpload(){this.fileInput&&this.fileInput.nativeElement.click()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-image-uploader"]],viewQuery:function(i,r){if(i&1&&De($ue,5),i&2){let o;se(o=le())&&(r.fileInput=o.first)}},outputs:{imagesUploaded:"imagesUploaded"},decls:7,vars:3,consts:[["upload",""],[1,"wrapper"],[1,"form-group"],["id","description",1,"mat-step-label","mt-1",3,"innerHTML"],["mat-raised-button","","color","primary","id","uploadButton",3,"click","innerHTML"],["type","file","id","file","multiple","multiple","max","10","accept","image/png, image/jpg, image/jpeg",3,"change"],[3,"fileDeleted","file"]],template:function(i,r){if(i&1){let o=B();p(0,"div",1)(1,"div",2),_(2,"label",3),p(3,"button",4),T("click",function(){return A(o),k(r.triggerUpload())}),m(),p(4,"input",5,0),T("change",function(s){return A(o),k(r.onFilesSelected(s))}),m()(),x(6,que,3,0,"div"),m()}i&2&&(c(2),f("innerHTML",r.translationService.getTranslation("complaint.imageUploader_instruction"),y),c(),f("innerHTML",r.translationService.getTranslation("button_upload_images"),y),c(3),b(r.files.length>0?6:-1))},dependencies:[Ee,HH,$o],styles:[`div.wrapper[_ngcontent-%COMP%]{margin:20px 0}input#file[_ngcontent-%COMP%]{display:none}.form-group[_ngcontent-%COMP%]{flex-direction:column;display:flex;justify-content:center;align-items:center;border:1px dashed #cbcbcb;margin:25px 0;padding:25px 0}button[_ngcontent-%COMP%]{width:max-content;align-self:center}
635label#description[_ngcontent-%COMP%]{text-wrap:auto;margin:10px}@media screen and (max-width: 768px){button#uploadButton[_ngcontent-%COMP%]{width:80%}} 636/*# sourceMappingURL=image-uploader.component-UBZVYWMS.css.map */`]})}}return t})();var kb=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=bo(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=bo(e)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(ce("aria-orientation",r.vertical?"vertical":"horizontal"),fe("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} 637`],encapsulation:2,changeDetection:0})}return t})();var Yue=["uploader"],Kue=t=>({infoText:t}),Que=t=>[t];function Zue(t,n){if(t&1&&_(0,"app-general-warning",7),t&2){let e=h();f("warnings",zi(3,Que,zi(1,Kue,e.message)))}}function Xue(t,n){if(t&1&&_(0,"div",36),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_complaint"),y)}}function Jue(t,n){t&1&&x(0,Xue,1,1,"ng-template",9)}function epe(t,n){if(t&1&&_(0,"h2",38),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_complaint"),y)}}function tpe(t,n){if(t&1&&(p(0,"div",10),x(1,epe,1,1,"h2",37),m()),t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("step_complaint"))}}function ipe(t,n){if(t&1&&(p(0,"mat-option",14),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),he(e.description)}}function npe(t,n){if(t&1&&(p(0,"mat-error",15),E(1),m()),t&2){let e=h();c(),R("",e.complaintForm.get("reason").getError("message")," ")}}function rpe(t,n){if(t&1&&_(0,"div",36),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_complaintVariantDate"),y)}}function ope(t,n){t&1&&x(0,rpe,1,1,"ng-template",9)}function ape(t,n){if(t&1&&_(0,"div",36),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_complaintBookNumber"),y)}}function spe(t,n){t&1&&x(0,ape,1,1,"ng-template",9)}function lpe(t,n){if(t&1&&_(0,"h2",38),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_complaintVariantDate"),y)}}function cpe(t,n){if(t&1&&(p(0,"div",10),x(1,lpe,1,1,"h2",37),m()),t&2){let e=h(2);c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("step_complaintVariantDate"))}}function dpe(t,n){if(t&1){let e=B();p(0,"mat-checkbox",45),T("change",function(r){A(e);let o=h(3);return k(o.setAll(r.checked))}),E(1),m()}if(t&2){let e=h(3);f("checked",e.allComplete)("indeterminate",e.someComplete()),c(),R(" ",e.complaintDays.name," ")}}function upe(t,n){if(t&1){let e=B();p(0,"div",43)(1,"mat-checkbox",46),T("change",function(){let r=A(e).$index,o=h(3);return k(o.changeComplaintDay(r))}),Tr(2),te(3,"date"),E(4),m()()}if(t&2){let e=n.$index,i=h(3);c(),f("formControlName",e);let r=i.isShowEditionInsteadOfDate?i.complaintDays==null||i.complaintDays.complaintDaysArray[e]==null?null:i.complaintDays.complaintDaysArray[e].bookNumber:Te(3,2,i.complaintDays==null||i.complaintDays.complaintDaysArray[e]==null?null:i.complaintDays.complaintDaysArray[e].name,i.translationService.getTranslation("dateFormat"));c(3),R(" ",r," ")}}function ppe(t,n){if(t&1){let e=B();p(0,"div",39),x(1,dpe,2,3,"mat-checkbox",41),p(2,"div",42),W(3,upe,5,5,"div",43,X),m(),p(5,"div",16),_(6,"button",32),p(7,"button",44),T("click",function(){let r;A(e);let o=h(2);return k(o.loadComplaintActionsByCodeAndDate((r=o.complaintForm.get("reason"))==null||r.value==null?null:r.value.key))}),m()()()}if(t&2){let e=h(2);c(),b((e.complaintDays==null||e.complaintDays.complaintDaysArray==null?null:e.complaintDays.complaintDaysArray.length)>1?1:-1),c(2),q(e.complaintDueDatesFormDateArray.controls),c(3),f("innerHTML",e.translationService.getTranslation("button_back"),y),c(),f("innerHTML",e.translationService.getTranslation("button_next"),y)}}function mpe(t,n){if(t&1&&_(0,"div",40),t&2){let e=h(2);
637f("innerHTML",e.translationService.getTranslation("complaint_no_deliverydays_found"),y)}}function fpe(t,n){if(t&1&&(p(0,"mat-step",18)(1,"form",8),x(2,ope,1,0,null,9)(3,spe,1,0,null,9)(4,cpe,2,1,"div",10)(5,ppe,8,3,"div",39)(6,mpe,1,1,"div",40),m()()),t&2){let e=h();f("stepControl",e.complaintDueDatesForm),c(),f("formGroup",e.complaintDueDatesForm),c(),b(!e.isMobile&&!e.isShowEditionInsteadOfDate?2:-1),c(),b(e.isShowEditionInsteadOfDate?3:-1),c(),b(e.isMobile?4:-1),c(),b((e.complaintDays==null||e.complaintDays.complaintDaysArray==null?null:e.complaintDays.complaintDaysArray.length)>0?5:6)}}function hpe(t,n){if(t&1&&E(0),t&2){let e=h(2);he(e.translationService.getTranslation("stepper_step_upload"))}}function gpe(t,n){if(t&1){let e=B();p(0,"mat-step",19),x(1,hpe,1,1,"ng-template",9),p(2,"app-image-uploader",47,1),T("imagesUploaded",function(r){A(e);let o=h();return k(o.onImageSelected(r))}),m(),p(4,"div",16),_(5,"button",32)(6,"button",48),m()()}if(t&2){let e=h();f("stepControl",e.complaintImagesForm),c(5),f("innerHTML",e.translationService.getTranslation("button_back"),y),c(),f("innerHTML",(e.imageComponent==null||e.imageComponent.files==null?null:e.imageComponent.files.length)===0?e.translationService.getTranslation("button_step_over"):e.translationService.getTranslation("button_next"),y)}}function _pe(t,n){if(t&1&&_(0,"div",36),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_complaintCompensation"),y)}}function vpe(t,n){t&1&&x(0,_pe,1,1,"ng-template",9)}function bpe(t,n){if(t&1&&_(0,"h2",38),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_complaint_compensation"),y)}}function ype(t,n){if(t&1&&(p(0,"div",10),x(1,bpe,1,1,"h2",37),m()),t&2){let e=h(2);c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("step_complaint_compensation"))}}function Cpe(t,n){if(t&1&&(p(0,"mat-option",14),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),he(e.description)}}function Spe(t,n){if(t&1&&(p(0,"mat-error",15),E(1),m()),t&2){let e=h(2);c(),R(" ",e.complaintCompensationForm.get("compensation").getError("message")," ")}}function xpe(t,n){if(t&1){let e=B();p(0,"mat-step",20)(1,"form",8),x(2,vpe,1,0,null,9)(3,ype,2,1,"div",10),p(4,"mat-form-field",11),_(5,"mat-label",12),p(6,"mat-select",49),W(7,Cpe,2,2,"mat-option",14,X),m(),x(9,Spe,2,1,"mat-error",15),m(),p(10,"div",16),_(11,"button",32),p(12,"button",44),T("click",function(){A(e);let r=h();return k(r.getPriceForComplaint())}),m()()()()}if(t&2){let e=h();f("stepControl",e.complaintCompensationForm),c(),f("formGroup",e.complaintCompensationForm),c(),b(e.isMobile?-1:2),c(),b(e.isMobile?3:-1),c(2),f("innerHTML",e.translationService.getTranslation("complaint_compensation"),y),c(),f("value",e.complaintCompensationForm.get("compensation")),c(),q(e.complaintActions),c(2),b(e.complaintCompensationForm.get("compensation").hasError("message")?9:-1),c(2),f("innerHTML",e.translationService.getTranslation("button_back"),y),c(),f("innerHTML",e.translationService.getTranslation("button_next"),y)}}function wpe(t,n){if(t&1&&_(0,"div",36),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_complaint_memo"),y)}}function Epe(t,n){t&1&&x(0,wpe,1,1,"ng-template",9)}function Dpe(t,n){if(t&1&&_(0,"h2",38),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_complaint_memo"),y)}}function Tpe(t,n){if(t&1&&(p(0,"div",10),x(1,Dpe,1,1,"h2",37),m()),t&2){let e=h(2);c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("step_complaint_memo"))}}function Mpe(t,n){if(t&1&&(p(0,"mat-hint",51),E(1),m()),t&2){h();let e=J(7);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function Ipe(t,n){if(t&1&&(p(0,"mat-error",15),E(1),m()),t&2){let e=h(2);c(),R("",e.complaintMemoForm.get("memo").getError("message")," ")}}function Ape(t,n){if(t&1){let e=B();p(0,"mat-step",21)(1,"form",8),x(2,Epe,1,0,null,9)(3,Tpe,2,1,"div",10),p(4,"mat-form-field",11),_(5,"mat-label",12)(6,"textarea",50,2),x(8,Mpe,2,2,"mat-hint",51)(9,Ipe,2,1,"mat-error",15),m(),p(10,"div",16),_(11,"button",32),p(12,"button",44),T("click",function(){A(e);let r=h();return k(r.getPriceForComplaint())}),m()()()()}if(t&2){let e=J(7),i=h();f("stepControl",i.complaintMemoForm),c(),f("formGroup",i.complaintMemoForm),c(),b(i.isMobile?-1:2),
637c(),b(i.isMobile?3:-1),c(2),f("innerHTML",i.translationService.getTranslation("complaint_reasonMemo"),y),c(),f("value",i.complaintMemoForm.get("memo").value),c(2),b(i.document!=null&&e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?8:-1),c(),b(i.complaintMemoForm.get("memo").hasError("message")?9:-1),c(2),f("innerHTML",i.translationService.getTranslation("button_back"),y),c(),f("innerHTML",i.translationService.getTranslation("button_next"),y)}}function kpe(t,n){if(t&1&&_(0,"div",36),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_summary"),y)}}function Ope(t,n){t&1&&x(0,kpe,1,1,"ng-template",9)}function Ppe(t,n){if(t&1&&_(0,"h2",38),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_summary"),y)}}function Npe(t,n){if(t&1&&(p(0,"div",10),x(1,Ppe,1,1,"h2",37),m()),t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("step_summary"))}}function Rpe(t,n){if(t&1&&_(0,"h5",52),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("step_complaint"),y)}}function Fpe(t,n){if(t&1&&_(0,"div",27),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("date"),y)}}function Lpe(t,n){if(t&1&&_(0,"div",27),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("step_complaintBookNumber"),y)}}function Bpe(t,n){if(t&1&&(p(0,"li",53),E(1),m()),t&2){let e=n.$implicit;c(),R(" ",e,"")}}function Hpe(t,n){if(t&1&&(p(0,"ul",29),W(1,Bpe,2,1,"li",53,X),m()),t&2){let e=h();c(),q(e.getSelectedDates())}}function Vpe(t,n){if(t&1&&(p(0,"li",53),E(1),te(2,"date"),m()),t&2){let e=n.$implicit,i=h(2);c(),R(" ",Te(2,1,e,i.translationService.getTranslation("dateFormat"))," ")}}function jpe(t,n){if(t&1&&(p(0,"ul",29),W(1,Vpe,3,4,"li",53,X),m()),t&2){let e=h();c(),q(e.getSelectedDates())}}function zpe(t,n){if(t&1&&(p(0,"div",26),_(1,"div",27),p(2,"div",28),E(3),m()()),t&2){let e=h();c(),f("innerHTML",e.translationService.getTranslation("complaint_reasonMemo"),y),c(2),he(e.complaintMemoForm.get("memo").value)}}function Upe(t,n){if(t&1&&(p(0,"div",26)(1,"div",54),E(2),m(),p(3,"div",28),E(4),m()()),t&2){let e=h(2);c(2),R("",e.translationService.getTranslation("complaint.attachments")," "),c(2),Pe("",e.imageComponent==null||e.imageComponent.files==null?null:e.imageComponent.files.length," ",e.translationService.getTranslation("file_or_files")," ")}}function Gpe(t,n){if(t&1&&(p(0,"div"),x(1,Upe,5,3,"div",26),m()),t&2){let e=h();c(),b((e.imageComponent==null||e.imageComponent.files==null?null:e.imageComponent.files.length)>0?1:-1)}}function $pe(t,n){if(t&1&&_(0,"h5",52),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_complaintCompensation"),y)}}function Wpe(t,n){if(t&1&&(x(0,$pe,1,1,"h5",24),p(1,"div",25)(2,"div",26),_(3,"div",27),p(4,"div",28),E(5),m()()()),t&2){let e=h();f("appApplyIfNotEmpty",e.translationService.getTranslation("step_complaintCompensation")),c(3),f("innerHTML",e.translationService.getTranslation("complaint_compensation"),y),c(2),R("",e.complaintCompensationForm.get("compensation").value.description," ")}}function qpe(t,n){t&1&&(p(0,"div",31),_(1,"app-loading-spinner"),m())}function Ype(t,n){if(t&1){let e=B();p(0,"button",55),T("click",function(){A(e);let r=h();return k(r.backToOverview())}),m()}if(t&2){let e=h();f("innerHTML",e.translationService.getTranslation("button_back_to_overview"),y)}}var Ob=(()=>{class t{constructor(){this.complaintService=d(wu),this.hupSubscriptionsService=d(ct),this.formBuilder=d(kt),this.errorService=d(Xo),this.route=d(Ye),this.baseDataService=d(vt),this.translationService=d(Y),this.configService=d(Ce),this.breakpointObserver=d(Ca),this.snackBar=d(Yi),this.navigationService=d(Re),this.datePipe=d(Le),this.complaintDays={name:"Alle reklamieren",bookNumber:"Alle Ausgaben",completed:!1,complaintDaysArray:[]},this.compensationStep=!1,this.isMobile=!1,this.isShowEditionInsteadOfDate=!1,this.maxDate=new Date,this.errorsArr=[],this.parentErrorStateMatcher=new Ab,this.changeable=!0,this.complaintActions=[],this.complaintActionsDueDates=[],this.isUnauthorized=!1,this.allComplete=!1,this.isSaving=!1,this.message="",this.messagesPresent=!1,this.imageUpload=!1,this.msgArr=[],this.showStepper=ee(!1),this.uploadedImageModels=[],this.document=typeof document=="object"?document:null;let e=this.breakpointObserver;this.stepperOrientation=e.observe("(min-width: 800px)").pipe(F(({matches:i})=>i?"horizontal":"vertical"))}updateAllComplete(){this.allComplete=this.complaintDays.complaintDaysArray!=null&&this.complaintDays.complaintDaysArray.every(i=>i.completed);let e=this.complaintDays.complaintDaysArray}someComplete(){return this.complaintDays.complaintDaysArray==null?!1:this.complaintDays.complaintDaysArray.filter(i=>i.completed).length>0&&!this.allComplete}setAll(e){if(this.allComplete=e,this.complaintDays.complaintDaysArray==null)return;this.complaintDays.complaintDaysArray.forEach(r=>r.completed=e),this.complaintDueDatesFormDateArray.controls.forEac
637h(r=>{r.patchValue(e)})}ngOnInit(){this.complaintForm=this.formBuilder.group({subId:["",Z.required],reason:["",Z.required],reasonGroup:[""],validDate:this.formBuilder.group({validFrom:[this.maxDate,Z.required],validUntil:[""]})}),this.complaintDueDatesForm=this.formBuilder.group({dates:new Go([])}),this.complaintCompensationForm=this.formBuilder.group({compensation:["",Z.required]}),this.complaintMemoForm=this.formBuilder.group({memo:[""]}),this.complaintImagesForm=this.formBuilder.group({complaintImages:[]}),this.reasonGroupForPrint=this.configService.getConfig("complaint.reasongroup.default"),this.reasonGroupForEpaper=this.configService.getConfig("complaint.reasongroup.defaultOnline"),this.showBackToOverviewButton=this.configService.getConfig("show.backToOverView.button")?.asBoolean(),this.imageUpload=this.configService.getConfig("complaint.imageUpload")?.asBoolean(),this.isShowEditionInsteadOfDate=this.configService.getConfig("complaint.show.edition")?.asBoolean(),this.setComplaintActions(),this.route.paramMap.subscribe(e=>{let i=e.get("subWebId"),r=e.get("subBackendId");this.clientNo=e.get("clientNo"),this.isUnauthorized=e.get("unauthorized")==="true";let o=e.get("isPrint");if(this.changeable=e.get("changeable")==="true",this.disableForms(),(i||r)&&!this.isUnauthorized)this.loadSubscription(i,r);else{this.sub=new _p(null,Number(this.clientNo),Number(i),Number(r),!1,null,null,null,null,null,null,null,null,null,null,null,null,null,null,!1,null,null,null,null),this.complaintForm.get("subId").patchValue(r);let l="complaintgroupcodes/"+(o&&o=="true"?this.reasonGroupForPrint.value:this.reasonGroupForEpaper.value)+"/complaintreasons";this.baseDataService.loadComplaintCodes(l).subscribe(u=>{this.reasons=u;let g=o&&o=="true"?this.reasonGroupForPrint.value:this.reasonGroupForEpaper.value;this.complaintForm.get("reasonGroup").patchValue(g)}),this.manageDelayMessages(r)}let a=e.get("compWebId"),s=e.get("compBackendId");(a||s)&&this.loadComplaint(a,s)}),this.complaintCompensationForm.get("compensation").valueChanges.subscribe(e=>{console.log(e)})}get complaintDueDatesFormDateArray(){return this.complaintDueDatesForm.controls.dates}addCheckBoxes(){this.complaintDueDatesFormDateArray.clear(),this.complaintDays.complaintDaysArray.forEach(e=>this.complaintDueDatesFormDateArray.push(new dn(e.completed)))}loadSubscription(e,i){this.hupSubscriptionsService.getSubscription(e,i).subscribe(r=>{this.sub=r,this.manageDelayMessages(i),this.complaintForm.get("subId").patchValue(r.backendId);let o=si(r.offer?.offerType)||si(r.subscriptionType)?this.reasonGroupForEpaper.value:this.reasonGroupForPrint.value;this.complaintForm.get("reasonGroup").patchValue(o);let a="complaintgroupcodes/"+o+"/complaintreasons";this.baseDataService.loadComplaintCodes(a).subscribe(s=>{this.reasons=s})})}loadComplaint(e,i){this.complaintService.getComplaintByString(e,i).subscribe(r=>{let o=N({},JSON.parse(JSON.stringify(r)));o.reason=o.type,o.reasonGroup=o.reasongroup,o.memo=o.memo.memoText,this.complaintForm.patchValue(o)})}disableForms(){this.changeable||(this.complaintForm.disable(),this.complaintCompensationForm.disable())}setComplaintActions(){let e=this.baseDataService.getBaseData("complaintactions");this.filterComplaintActions(e)}filterComplaintActions(e){let r=this.configService.getConfig("complaint.webFlags")?.value.split(",");e?.forEach(o=>{let a=!0,s=this.complaintActionsDueDates.filter(l=>l==o.code).length<this.selectedComplaints;this.complaintActions.length>0&&this.complaintActions.forEach(l=>{(l.code==o.code||s)&&(a=!1)}),a&&r.find(l=>l===o.key||l===o.code)&&this.complaintActions.push(o)})}getSelectedDates(){return this.complaintDueDatesForm.value.dates.map((i,r)=>i&&this.isShowEditionInsteadOfDate?this.complaintDays?.complaintDaysArray[r]?.bookNumber:i?this.complaintDays?.complaintDaysArray[r]?.name:null).filter(i=>i!==null).sort((i,r)=>i<r?-1:1)}changeComplaintDay(e){this.complaintDays?.complaintDaysArray[e]&&(this.complaintDays.complaintDaysArray[e].completed=!this.complaintDays?.complaintDaysArray[e]?.completed)}onSend(){this.errorsArr=[];let e=this.countComplaintDays();if(this.complaintDays?.complaintDaysArray.length<=0)this.errorsArr.push(this.translationService.getTranslation("c
637omplaint_no_complaintDays"));else if(this.getSelectedDates().length<=0)this.errorsArr.push(this.translationService.getTranslation("complaint_no_complaintDay_selected"));else{this.isSaving=!0;let i=0;this.complaintDays?.complaintDaysArray?.forEach(r=>{if(r.completed){let o=this.prepareFormForService(),a=N({},o);a.validDate.validFrom=r.name,a.validDate.validUntil=r.name,this.uploadedImageModels&&this.uploadedImageModels.length>0&&(a.complaintImages=this.uploadedImageModels),this.isUnauthorized?(a.userBackendId=this.clientNo,this.complaintService.sendUnauthorizedComplaint(a).subscribe({next:s=>{i++,this.navigateToOverview(i,e,"")},error:s=>{i++;let u=this.datePipe.transform(a.validDate.validFrom)+": "+Object.values(JSON.parse(s.error.message)).join(" ");this.navigateToOverview(i,e,u)}})):this.complaintService.sendComplaint(a).subscribe({next:s=>{i++,this.navigateToOverview(i,e,"")},error:s=>{i++;let u=this.datePipe.transform(a.validDate.validFrom)+": "+Object.values(JSON.parse(s.error.message)).join(" ");this.navigateToOverview(i,e,u)}})}})}}countComplaintDays(){let e=0;return this.complaintDays?.complaintDaysArray.forEach(i=>{i.completed&&e++}),e}navigateToOverview(e,i,r){r.length>0&&this.msgArr.push(r),e===i&&(this.isSaving=!1,this.complaintService.setErrorMessages(this.msgArr).subscribe(o=>{let a=s=>{s&&this.msgArr.length<i&&this.snackBar.openSnackbar(this.translationService.getTranslation("saved"))};this.isUnauthorized?this.navigationService.navigateTo(ge.COMPLAINTWITHOUTLOGINAFTER).then(a):this.navigationService.navigateTo(ge.COMPLAINT).then(a)}))}getComplaintCode(){return JSON.parse(JSON.stringify(this.complaintForm.value))?.reason}prepareFormForService(){let e=N(N(N(N({},JSON.parse(JSON.stringify(this.complaintForm.value))),JSON.parse(JSON.stringify(this.complaintCompensationForm.value))),JSON.parse(JSON.stringify(this.complaintMemoForm.value))),JSON.parse(JSON.stringify(this.complaintImagesForm.value))),i=e.memo;if(e.memo={},e.memo.memoText=i,e.reason=e.reason.key,e.reasongroup=e.reasonGroup.value??e.reasonGroup,e.userBackendId=this.clientNo,e.compensation==="")e.compensation=[];else{let r=e.compensation;e.compensation=[],e.compensation.push({code:r.code,description:r.description})}return e}onReasonSelected(){!this.showStepper()&&this.complaintForm.valid&&this.loadDueDates(this.complaintForm.get("reason")?.value?.key)}loadDueDates(e){this.complaintDays.complaintDaysArray=[],this.complaintService.getDueDates(this.sub.backendId,e).subscribe(i=>{let r=i&&i.length===1;i.sort((o,a)=>new Date(a.complaintDate).getTime()-new Date(o.complaintDate).getTime()),i?.forEach(o=>{this.complaintDays.complaintDaysArray.push({name:o.complaintDate,bookNumber:o.bookNumber,completed:r})}),r&&this.loadComplaintActionsByCodeAndDate(this.complaintForm.get("reason")?.value?.key),this.addCheckBoxes(),this.showStepper.set(!0)})}loadComplaintActionsByCodeAndDate(e){this.complaintActions=[],this.selectedComplaints=Object.values(this.complaintDueDatesForm.get("dates")?.value).filter(i=>i===!0).length,this.complaintDays.complaintDaysArray.forEach(i=>{if(i.completed){let r=new Date(i.name);r&&this.complaintService.findAllComplaintActionsForParams(this.sub.backendId,e,r.toISOString()).subscribe(o=>{this.complaintActionsDueDates.push(o.map(a=>a.code)),this.filterComplaintActions(o),this.complaintActions.length>1?this.compensationStep=!0:(this.complaintActions.length==1&&this.complaintCompensationForm.get("compensation").setValue(this.complaintActions[0]),this.compensationStep=!1)})}})}getPriceForComplaint(){}backToOverview(){this.navigationService.navigateTo(ge.COMPLAINT,null,!0)}compareBaseData(e,i){return e.key===i}manageDelayMessages(e){let i=0;this.hupSubscriptionsService.getDelayMessages(e).subscribe(r=>{if(r!=null&&r.length>0&&(i=r.length),i>0){this.messagesPresent=!0,this.message=this.translationService.getTranslation("logistic_messages.present");let o=this.datePipe.transform(r[0].messageDate,"dd.MM.yyyy"),a=r[0].classification.displayText?r[0].classification.displayText+". ":"",s=r[0].messageText.text?r[0].messageText.text+" ":"",l=this.datePipe.transform(r[0].delay.messageDelaysUntil,"dd.MM.yyyy");this.message=`${this.message} <br><br> ${o}: ${a} ${s} (${this.translationService.getTranslation("logistic_messages.val
637id_until")} ${l})`}})}onImageSelected(e){e&&(this.uploadedImageModels=e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-complaint-edit"]],viewQuery:function(i,r){if(i&1&&De(Yue,5),i&2){let o;se(o=le())&&(r.imageComponent=o.first)}},features:[_e([Le])],decls:49,vars:38,consts:[["stepper",""],["uploader",""],["reasonMemo",""],[3,"errors"],["id","complaintEdit",1,"complaint-edit"],["linear","",1,"complaint-edit__stepper",3,"orientation"],["editable","",1,"complaint-edit__step","complaint-edit__step--form",3,"stepControl"],[3,"warnings"],[1,"mt-3","complaint-edit__form",3,"formGroup"],["matStepLabel",""],[1,"mx-1","complaint-edit__step-label--mobile"],[1,"complaint-edit__form-field"],[1,"complaint-edit__form-label",3,"innerHTML"],["formControlName","reason","required","","aria-required","true",1,"complaint-edit__select",3,"selectionChange","value","compareWith"],[1,"complaint-edit__option",3,"value"],[1,"complaint-edit__error"],[1,"mt-5","complaint-edit__form-actions"],["mat-raised-button","","color","primary","matStepperNext","",1,"complaint-edit__button",3,"disabled","innerHTML"],["editable","",1,"complaint-edit__step","complaint-edit__step--duedates",3,"stepControl"],["editable","",1,"complaint-edit__step","complaint-edit__step--images",3,"stepControl"],["editable","",1,"complaint-edit__step","complaint-edit__step--compensation",3,"stepControl"],["editable","",1,"complaint-edit__step","complaint-edit__step--memo",3,"stepControl"],[1,"complaint-edit__step","complaint-edit__step--summary"],[1,"mt-3","complaint-edit__summary"],["class","complaint-edit__summary-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"container-fluid","p-0","complaint-edit__summary-container"],[1,"row","m-0","complaint-edit__summary-row"],[1,"col-6","complaint-edit__summary-label",3,"innerHTML"],[1,"col-6","complaint-edit__summary-value"],[1,"ps-0","complaint-edit__summary-list"],[1,"mb-1","mt-3","complaint-edit__divider"],[1,"complaint-edit__loading",2,"text-align","center"],["mat-raised-button","","matStepperPrevious","",1,"me-3","complaint-edit__button",3,"innerHTML"],["mat-raised-button","","color","primary",1,"complaint-edit__button",3,"click","hidden","innerHTML"],[1,"mt-3","float-end","complaint-edit__back"],["mat-raised-button","",1,"complaint-edit__button",3,"innerHTML"],[1,"complaint-edit__step-label",3,"innerHTML"],[3,"innerHTML",4,"appApplyIfNotEmpty"],[3,"innerHTML"],[1,"complaint-edit__days"],[1,"complaint-edit__no-days",3,"innerHTML"],[1,"example-margin","complaint-edit__checkbox-all",3,"checked","indeterminate"],[1,"row","complaint-edit__days-list","complaintDays"],["formArrayName","dates",1,"col-6","col-md-4","col-lg-3","col-xl-2","complaint-edit__days-item"],["mat-raised-button","","color","primary","matStepperNext","",1,"complaint-edit__button",3,"click","innerHTML"],[1,"example-margin","complaint-edit__checkbox-all",3,"change","checked","indeterminate"],[1,"complaint-edit__checkbox",3,"change","formControlName"],[1,"complaint-edit__image-uploader",3,"imagesUploaded"],["mat-raised-button","","color","primary","matStepperNext","",1,"complaint-edit__button",3,"innerHTML"],["formControlName","compensation","required","","aria-required","true",1,"complaint-edit__select",3,"value"],["maxlength","1000","matInput","","cdkAutosizeMinRows","3","cdkTextareaAutosize","","formControlName","memo",1,"complaint-edit__textarea",3,"value"],["align","end",1,"complaint-edit__hint"],[1,"complaint-edit__summary-title",3,"innerHTML"],[1,"complaint-edit__summary-list-item"],[1,"col-6","complaint-edit__summary-label"],["mat-raised-button","",1,"complaint-edit__button",3,"click","innerHTML"]],template:function(i,r){if(i&1){let o=B();_(0,"app-general-errors",3),p(1,"div",4)(2,"mat-stepper",5,0),te(4,"async"),p(5,"mat-step",6),x(6,Zue,1,5,"app-general-warning",7),p(7,"form",8),x(8,Jue,1,0,null,9)(9,tpe,2,1,"div",10),p(10,"mat-form-field",11),_(11,"mat-label",12),p(12,"mat-select",13),T("selectionChange",function(){return A(o),k(r.onReasonSelected())}),W(13,ipe,2,2,"mat-option",14,X),m(),x(15,npe,2,1,"mat-error",15),m(),p(16,"div",16),_(17,"button",17),m()()(),x(18,fpe,7,6,"mat-step",18)(19,gpe,7,3,"mat-step",19)(20,xpe,13,9,"mat-step",20)(21,Ape,13,10,"mat-step",21),p(22,"mat-step",22),x(23,Ope,1,0,null,9)(24,Npe,2,1,"div",10),p(25,"div",23),x(26,Rpe,1,1,"h5",24),p(27,"div",25)(28,"div",26),x(29,Fpe,1,1,"div",27)(30,Lpe,1,1,"div",27),p(31,"div",28),x(32,Hpe,3,0,"ul",29)(33,jpe,3,0,"ul",29),m()(),p(34,"div",26),_(35,"div",27),p(36,"div",28),E(37),m()(),x(38,zpe,4,2,"div",26)(39,Gpe,2,1,"div"),m(),_(40,"mat-divider",30),x(41,Wpe,6,3)(42,qpe,2,0,"div",31),_(43,"br"),p(44,"div",16),_(45,"button",32),p(46,"button",33),T("click",function(){return A(o),k(r.onSend())}),m()()()()()(),p(47,"div",34),x(48,Ype,1,1,"button",35),m()}if(i&2){let o,a;f("errors",r.errorsArr),c(2),fe("header-hidden",!r.showStepper()),f("orientation",Ct(4,36,r.stepperOrientation)),c(3),f("stepControl",r.complaintForm),c(),b(r.messagesPresent?6:-1),c(),f("formGroup",r.complaintForm),c(),b(r.isMobile?-1:8),c(),b(r.isMobile?9:-1),c(2),f("innerHTML",r.translationService.getTranslation("c
637omplaint_reason"),y),c(),f("value",r.complaintForm.get("reason").value)("compareWith",r.compareBaseData),c(),q(r.reasons),c(2),b(r.complaintForm.get("reason").hasError("message")?15:-1),c(2),f("disabled",r.complaintForm.invalid)("innerHTML",r.translationService.getTranslation("button_next"),y),c(),b((r.complaintDays==null||r.complaintDays.complaintDaysArray==null?null:r.complaintDays.complaintDaysArray.length)>1?18:-1),c(),b(r.imageUpload?19:-1),c(),b(r.compensationStep?20:-1),c(),b(r.getComplaintCode().withMemoFlag?21:-1),c(2),b(r.isMobile?-1:23),c(),b(r.isMobile?24:-1),c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("step_complaint")),c(3),b(r.isShowEditionInsteadOfDate?-1:29),c(),b(r.isShowEditionInsteadOfDate?30:-1),c(2),b(r.isShowEditionInsteadOfDate?32:-1),c(),b(r.isShowEditionInsteadOfDate?-1:33),c(2),f("innerHTML",r.translationService.getTranslation("complaint_reason"),y),c(2),he((o=r.complaintForm.get("reason"))==null||o.value==null?null:o.value.description),c(),b(r.complaintMemoForm.get("memo").value!==""?38:-1),c(),b(r.imageUpload?39:-1),c(2),b(r.compensationStep||(a=r.complaintCompensationForm.get("compensation").value)!=null&&a.code?41:-1),c(),b(r.isSaving?42:-1),c(3),f("innerHTML",r.translationService.getTranslation("button_back"),y),c(),f("hidden",r.isSaving)("innerHTML",r.translationService.getTranslation("button_send"),y),c(2),b(r.showBackToOverviewButton?48:-1)}},dependencies:[Vt,as,vm,Zs,Ot,wi,Bt,At,Wt,ai,wa,bt,Ut,Wu,Nt,ir,Ri,Ge,tr,VH,Ia,Ee,Gl,op,ei,kv,kb,Pt,Ht,qi,Le,ze,Zo],styles:[`.complaintDays[_ngcontent-%COMP%]{list-style-type:none}.header-hidden[_ngcontent-%COMP%] .mat-horizontal-stepper-header-container{visibility:hidden} 638/*# sourceMappingURL=complaint-edit.component-BQIV4GAT.css.map */`]})}}return t})();var Kpe=t=>({infoText:t}),Qpe=t=>[t];function Zpe(t,n){t&1&&(p(0,"div",5),_(1,"app-loading-spinner",40),m())}function Xpe(t,n){if(t&1&&_(0,"div",41),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_subChangeType"),y)}}function Jpe(t,n){t&1&&x(0,Xpe,1,1,"ng-template",9)}function eme(t,n){if(t&1&&_(0,"h2",43),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_subChangeType"),y)}}function tme(t,n){if(t&1&&(p(0,"div",10),x(1,eme,1,1,"h2",42),m()),t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("step_subChangeType"))}}function ime(t,n){if(t&1&&(p(0,"mat-error",18),E(1),m()),t&2){let e=h();c(),R(" ",e.subChangeTypeForm.get("validDate").getError("message")," ")}}function nme(t,n){if(t&1&&(p(0,"mat-option",21),E(1),m()),t&2){let e=n.$implicit,i=h();f("value",e),c(),R(" ",i.translationService.getTranslation("label_"+e.code+"_description")," ")}}function rme(t,n){if(t&1&&_(0,"div",41),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_subChangeData"),y)}}function ome(t,n){t&1&&x(0,rme,1,1,"ng-template",9)}function ame(t,n){if(t&1&&_(0,"h2",43),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_subChangeData"),y)}}function sme(t,n){if(t&1&&(p(0,"div",10),x(1,ame,1,1,"h2",42),m()),t&2){let e=h(2);c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("step_subChangeData"))}}function lme(t,n){if(t&1&&(p(0,"mat-checkbox",46),_(1,"div",49),m()),t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("subChange_additionalIssue"),y)}}function cme(t,n){if(t&1){let e=B();p(0,"button",50),T("click",function(){A(e);let r=h(2);return k(r.getPriceForType(r.changeable))}),m()}if(t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("button_check_price"),y)("disabled",!e.forwardDataForm.valid)}}function dme(t,n){if(t&1&&_(0,"button",48),t&2){let e=h(2);f("disabled",e.isLoading)("innerHTML",e.translationService.getTranslation("button_next"),y)}}function ume(t,n){if(t&1&&_(0,"app-general-warning",52),t&2){let e=n.$implicit;f("warnings",zi(3,Qpe,zi(1,Kpe,e)))}}function pme(t,n){t&1&&(p(0,"div",5),_(1,"app-loading-spinner",40),m())}function mme(t,n){if(t&1&&(p(0,"div",2)(1,"div",3),_(2,"app-general-warning",51),W(3,ume,1,5,"app-general-warning",52,X),x(5,pme,2,0,"div",5),m()()),t&2){let e=h(2);c(2),f("warnings",e.warningsArr),c(),q(e.warningsArr),c(2),b(e.isLoading?5:-1)}}function fme(t,n){if(t&1&&(p(0,"mat-step",24)(1,"form",44),x(2,ome,1,0,null,9)(3,sme,2,1,"div",10),_(4,"app-hup-subscription-address",45),x(5,lme,2,1,"mat-checkbox",46),p(6,"div",22),_(7,"button",36),x(8,cme,1,2,"button",47)(9,dme,1,2,"button",48),m(),x(10,mme,6,2,"div",2),m()()),t&2){let e=h();f("stepControl",e.forwardDataForm),c(),f("formGroup",e.forwardDataForm),c(),b(e.isMobile?-1:2),
638c(),b(e.isMobile?3:-1),c(),f("showActivateCheckbox",!1)("controlGroup",e.forwardDataForm),c(),b(e.enableAdditionalExemplar?5:-1),c(2),f("innerHTML",e.translationService.getTranslation("button_back"),y),c(),b(!e.priceCheckFinished||e.hasFormChanges()?8:-1),c(),b(e.priceCheckFinished&&!e.hasFormChanges()?9:-1),c(),b(e.priceCheckFinished?10:-1)}}function hme(t,n){if(t&1&&_(0,"div",54),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_subChangeData"),y)}}function gme(t,n){if(t&1&&_(0,"h2",43),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("step_subChangeData"),y)}}function _me(t,n){if(t&1&&(p(0,"div",28),x(1,gme,1,1,"h2",42),m()),t&2){let e=h(2);c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("step_subChangeData"))}}function vme(t,n){if(t&1){let e=B();p(0,"mat-step",25)(1,"form",53),x(2,hme,1,1,"div",54)(3,_me,2,1,"div",28),E(4," TODO: COLLECT "),p(5,"div",22),_(6,"button",36),p(7,"button",55),T("click",function(){A(e);let r=h(),o=J(5);return k(r.getPriceForSubChange(o))}),m()()()()}if(t&2){let e=h();f("stepControl",e.collectDataForm),c(),f("formGroup",e.collectDataForm),c(),b(e.isMobile?-1:2),c(),b(e.isMobile?3:-1),c(3),f("innerHTML",e.translationService.getTranslation("button_back"),y),c(),f("innerHTML",e.translationService.getTranslation("button_next"),y)}}function bme(t,n){t&1&&(p(0,"div",5),_(1,"app-loading-spinner",40),m())}function yme(t,n){if(t&1&&_(0,"div",41),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_summary"),y)}}function Cme(t,n){t&1&&x(0,yme,1,1,"ng-template",9)}function Sme(t,n){if(t&1&&_(0,"h2",43),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_summary"),y)}}function xme(t,n){if(t&1&&(p(0,"div",28),x(1,Sme,1,1,"h2",42),m()),t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("step_summary"))}}function wme(t,n){if(t&1&&_(0,"h4",56),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("step_subChangeType"),y)}}function Eme(t,n){if(t&1&&_(0,"h4",56),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("step_subChangeData"),y)}}function Dme(t,n){t&1&&(p(0,"mat-icon",60),E(1,"done"),m())}function Tme(t,n){t&1&&(p(0,"mat-icon",61),E(1,"clear"),m())}function Mme(t,n){if(t&1&&(p(0,"div",31),_(1,"div",32),p(2,"div",33),x(3,Dme,2,0,"mat-icon",60)(4,Tme,2,0,"mat-icon",61),m()()),t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("subchange_additional"),y),c(2),b(e.forwardDataForm.get("additional").value?3:-1),c(),b(e.forwardDataForm.get("additional").value?-1:4)}}function Ime(t,n){if(t&1&&_(0,"div",59),t&2){let e=h(2);f("innerHTML",e.offerPrice!=null&&e.offerPrice.price&&(e.offerPrice==null?null:e.offerPrice.credit)<=0?e.offerPrice.price+" "+(e.offerPrice==null?null:e.offerPrice.currency):(e.offerPrice==null?null:e.offerPrice.credit)>=0?e.offerPrice.credit+" "+e.offerPrice.currency:e.zeroPrice,y)}}function Ame(t,n){if(t&1&&_(0,"div",59),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("forwarding_summary.unknown_price"),y)}}function kme(t,n){if(t&1&&(x(0,Eme,1,1,"h4",29),p(1,"div",30)(2,"div",31),_(3,"div",32),p(4,"div",33)(5,"ul",57)(6,"li",58),E(7),m(),p(8,"li",58),E(9),te(10,"houseNoPipe"),m()()()(),x(11,Mme,5,3,"div",31),m(),p(12,"div",31),_(13,"div",32),x(14,Ime,1,1,"div",59)(15,Ame,1,1,"div",59),m()),t&2){let e,i=h();f("appApplyIfNotEmpty",i.translationService.getTranslation("step_subChangeData")),c(3),f("innerHTML",i.translationService.getTranslation("address_forward"),y),c(4),pa(" ",i.forwardDataForm.get("person.salutation").value.description," ",i.forwardDataForm.get("person.title").value.description," ",i.forwardDataForm.get("person.firstName").value," ",i.forwardDataForm.get("person.lastName").value," "),c(2),ma(" ",i.forwardDataForm.get("address.street").value," ",Ct(10,15,i.userHouseNo)," , ",(e=i.forwardDataForm.get("address.extraLine"))!=null&&e.value?((e=i.forwardDataForm.get("address.extraLine"))==null?null:e.value)+",":""," ",i.forwardDataForm.get("address.zipcode").value," ",i.forwardDataForm.get("address.city").value," , ",i.forwardDataForm.get("address.country").value.description," "),c(2),b(i.enableAdditionalExemplar?11:-1),c(2),f("innerHTML",i.translationService.getTranslation((i.offerPrice==null?null:i.offerPrice.credit)<=0?"forwarding_summary.new_price":"forwarding_summary.credit"),y),c(),b(i.offerPrice?14:15)}}function Ome(t,n){if(t&1){let e=B();p(0,"button",62),T("click",function(){A(e);let r=h(),o=J(5);return k(r.onSend(o))}),m()}if(t&2){let e=h();f("hidden",e.saving)("innerHTML",e.translationService.getTranslation("button_send"),y)}}function Pme(t,n){if(t&1){let e=B();p(0,"button",63),T("click",function(){A(e);let r=h();return k(r.backToOverview())}),m()}if(t&2){let e=h();f("innerHTML",e.translationService.getTranslation("button_back_to_overview"),y)}}var Pb=(()=>{class t{constructor(){this.translationService=d(Y),this.formBuilder=d(kt),this.baseDataService=d(vt),this.subChangeService=d(gp),this.hupSubscriptionsService=d(ct),this.errorService=d(Xo),this.route=d(Ye),this.configService=d(Ce),this.breakpointObserver=d(Ca),this.snackBar=d(Yi),this.navigationService=d(Re),this.dateAdapter=d(qt),this.isMobile=!1,this.minDate=new Date,this.maxDate=null,this.errorsArr=[],this.warningsArr=[],this.isLoadingSub=!1,this.isLoading=!1,this.countries=[],this.salutations=[],this.titles=[],this.donationBoolError=!1,this.priceCheckError=!1,this.subChangeTypes=[],this.changeable=!0,this.saving=!1,this.priceCheckFinished=!1,this.formSubmitted=!1,this.zeroPrice="0.0",this.unauthorized=!1,this.userBackendId=-1,this.maxIntermissionDays=999,this.currentDate=new Date;let e=this.breakpointObserver;this.dateAdapter.getFirstDayOfWeek=()=>1,this.stepperOrientation=e.observe("(min-width: 800px)").pipe(F(({matches:r})=>r?"horizontal":"vertical")),this.enableAdditionalExemplar=this.configService.getConfig("subchange.enable.additional.exemplar")?.asBoolean(),this.showBackToOverviewButton=this.configService.getConfig("show.backToOverView.button")?.asBoolean();let i=this.configService.getConfig("SUBMAXINTERMISSIONDAYS");if(i!=null&&i.value)try{let r=Number(i.value);if(r<=0)return;this.maxIntermissionDays=r}catch(r){console.error("Error parsing SUBMAXINTERMISSIONDAYS",r)}}updateMaxDate(e){if(e){let i=new Date(e);i.setDate(e.getDate()+(this.maxIntermissionDays-1)),this.maxDate=i}else{let i=new Date;i.setDate(i.getDate()+999),this.maxDate=i}}ngOnInit(){this.subChange=null,this.isLoadingSub=!0,this.countries=this.baseDataService.getBaseData("countrycodes"),this.salutations=this.baseDataService.getBaseData("addresscodes"),this.titles=this.baseDataService.getBaseData("titles"),this.buildForms(),this.route.paramMap.subscribe(e=>{e.get("unauthorized")==="true"?(this.unauthorized=!0,this.userBackendId=Number(e.get("clientNo")),this.sub=new _p(Number(e.get("subBackendId")),this.userBackendId,0,Number(e.get("subBackendId")),!1,null,e.get("variant"),null,null,null,null,null,null,null,null,null,null,null,null,!1,e.get("product"),null,null,null),this.forwardDataForm.get("subId").patchValue(this.sub.backendId),this.hupSubscriptionsService.getNextDeliveryDate(this.sub.productC
638ode,this.sub.variantCode).subscribe(i=>{this.setMinDate(i)}),this.subBackendId=+e.get("subBackendId"),this.changeWebId=+e.get("changeWebId"),this.changeBackendId=+e.get("changeBackendId")):this.hupSubscriptionsService.getSubscription("0",e.get("subBackendId")).subscribe(i=>{this.sub=i,this.isLoadingSub=!1,this.forwardDataForm.get("subId").patchValue(i.backendId),this.hupSubscriptionsService.getNextDeliveryDate(i.productCode,i.variantCode).subscribe(r=>{this.setMinDate(r)}),this.subBackendId=+e.get("subBackendId"),this.changeWebId=+e.get("changeWebId"),this.changeBackendId=+e.get("changeBackendId")}),this.changeable=e.get("changeable")!=="false"})}loadChangeTypesAndSubChange(e,i,r){this.subChangeTypes=[],this.subChangeService.getSubChangeTypes(e).subscribe(o=>{o.donationAllowed&&!this.donationBoolError&&this.subChangeTypes.push({key:ds.DONATION_POOL,code:"DONATION",description:"Spende"}),o.epaperReplacementAllowed&&this.subChangeTypes.push({key:ds.EPAPER,code:"EPAPER",description:"Epaper"}),o.forwardAllowed&&this.subChangeTypes.push({key:ds.FORWARD,code:"FORWARD",description:"Nachlieferung"}),o.intermissionAllowed&&this.subChangeTypes.push({key:ds.INTERMISSION,code:"INTERMISSION",description:"Unterbrechung"}),(i>0||r>0)&&this.subChangeService.getSubChange(i,r,e).subscribe(a=>{this.subChange=a,this.setFormData(a);let s=new Date(a.validDate.validFrom).getTime()<=new Date().getTime(),l=a.backendId>0;this.disableForms(s,l)})})}setFormData(e){let i=ds[e.changeType],r={};this.subChangeTypes.forEach(o=>{o.key.toString()===i.toString()&&(r=o)}),this.subChangeTypeForm.patchValue(e),this.subChangeTypeForm.get("changeType").patchValue(r),this.collectDataForm.patchValue(e),this.forwardDataForm.patchValue(e),e.person&&e.address&&(this.forwardDataForm.get("person.firstName").setValue(e.person.firstname),this.forwardDataForm.get("person.lastName").setValue(e.person.lastname),this.forwardDataForm.get("address.houseNo").setValue(TH(e.address.houseno))),this.donationDataForm.patchValue(e),this.ePaperDataForm.patchValue(e),this.intermissionDataForm.patchValue(e)}disableForms(e,i){i&&this.subChangeTypeForm.get("changeType").disable(),e&&(this.subChangeTypeForm.get("changeType").disable(),this.subChangeTypeForm.get("validDate").disable(),this.forwardDataForm.disable(),this.donationDataForm.disable(),this.ePaperDataForm.disable(),this.intermissionDataForm.disable()),this.changeable||this.collectDataForm.disable()}buildForms(){this.subChangeTypeForm=this.formBuilder.group({validDate:this.formBuilder.group({validFrom:["",Z.required],validUntil:["",Z.required]}),changeType:["",Z.required]}),this.subChangeTypeForm.get("validDate").valueChanges.subscribe(e=>{this.updateMaxDate(e.validFrom),this.loadDonationPools(e.validFrom,e.validUntil)}),this.collectDataForm=this.formBuilder.group({}),this.forwardDataForm=this.formBuilder.group({subId:["",Z.required],address:this.formBuilder.group({country:[""],zipcode:[""],city:[""],street:[""],houseNo:[""],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:[""],firstName:[""],lastName:[""],initials:[""],middlename:[""]}),additional:[""]}),this.donationDataForm=this.formBuilder.group({}),this.ePaperDataForm=this.formBuilder.group({}),this.intermissionDataForm=this.formBuilder.group({})}onSend(e){this.saving=!0;let i=this.getFormData();this.saving=!0,this.subChange?this.subChangeService.updateSubChange(i,this.subChange.webId,this.subChange.subId,this.subChange.backendId).subscribe(r=>{this.navigateToOverview()},r=>{this.errorsArr=[],this.errorService.handleAPIError([this.intermissionDataForm,this.forwardDataForm,this.ePaperDataForm,this.collectDataForm,this.subChangeTypeForm,this.donationDataForm],r.error,this.errorsArr,e),this.saving=!1},()=>{this.saving=!1}):this.subChangeService.sendSubChange(i,this.unauthorized).subscribe(r=>{this.navigateToOverview()},r=>{this.errorsArr=[];let o=JSON.parse(r?.error?.message);for(let a in o)this.errorsArr.push(o[a]);this.saving=!1},()=>this.saving=!1)}navigateToOverview(){let e=[],i=ge.SUBCHANGE;this.unauthorized&&(i=ge.SUBCHANGEWITHOUTLOGINAFTER),this.navigationService.navigateTo(i,e).then(r=>{r&&this.snackBar.openSnackbar(this.translationService.getTranslation("saved"))})}getPriceForSubChange(e){e.steps.get(e.selectedIndex)===e.steps.last&&this.changeable&&this.getPriceForType(this.changeable)}getPriceForType(e){if(e){this.isLoading=!0;let i=this.getFormData();
638this.priceCheckFinished=!1,this.submitForm(),this.resetWarnings(),i.changeType==ds.FORWARD?this.subChangeService.getPriceForSubChange(i,this.unauthorized).subscribe({next:r=>{this.isLoading=!1;let o="";if(r){this.offerPrice=r;let a=this.translationService.getTranslation("forwarding.new_price")+this.offerPrice?.price+" "+this.offerPrice?.currency+".",s=this.translationService.getTranslation("forwarding.credit_message").replace("%s",this.offerPrice.credit+" "+this.offerPrice.currency);o=this.offerPrice?.credit<=0?a:s}else o=this.translationService.getTranslation("forwarding.zero_price");o&&o!==""&&this.warningsArr.push(o),this.priceCheckFinished=!0},error:r=>{if(this.isLoading=!1,this.errorsArr=[],r?.error?.message){let a=JSON.parse(r?.error?.message);for(let s in a)this.errorsArr.push(a[s])}let o=this.translationService.getTranslation("error_subchanges_price_calculation");o&&o!==""&&this.warningsArr.push(o),this.priceCheckFinished=!0,this.priceCheckError=!0}}):(this.priceCheckFinished=!0,this.isLoading=!1)}}getFormData(){let e=N(N(N(N(N(N({},this.intermissionDataForm.value),this.forwardDataForm.value),this.ePaperDataForm.value),this.collectDataForm.value),this.subChangeTypeForm.value),this.donationDataForm.value);return this.forwardDataForm.get("person.title").value&&(e.person.title=this.forwardDataForm.get("person.title").value.key),this.forwardDataForm.get("person.salutation").value&&(this.forwardDataForm.get("person.salutation").value.defaultClientTypeKey?e.person.salutation=this.forwardDataForm.get("person.salutation").value.defaultClientTypeKey:e.person.salutation=this.forwardDataForm.get("person.salutation").value),this.forwardDataForm.get("address.country").value&&(e.address.country=this.forwardDataForm.get("address.country").value.key),this.forwardDataForm.get("person.firstName").value&&(e.person.firstname=e.person.firstName),this.forwardDataForm.get("person.lastName").value&&(e.person.lastname=e.person.lastName),this.forwardDataForm.get("address.houseNo").value&&(this.forwardDataForm.get("address.country").value.key==="A"||this.forwardDataForm.get("address.country").value.key==="AT"?e.address.houseno=mp(e.address.houseNo,e.address.country,e.address.stock,e.address.stiege,e.address.tuer):e.address.houseno=mp(e.address.houseNo,e.address.country),this.userHouseNo=e.address.houseno),e?.changeType&&(e.changeType=e.changeType.key),this.offerPrice?.price&&(e.price=this.offerPrice.price),this.forwardDataForm.get("address.extraLine").value&&(e.address.addrExtraLine1=e.address.extraLine),this.subChangeTypeForm.get("changeType").value.code==="DONATION"&&this.donationPools.length===1&&(e.donationPool=this.donationPools[0].key),this.userBackendId>0&&(e.userBackendId=this.userBackendId),this.subChange&&this.subChange.webId>0&&(e.webId=this.subChange.webId),e}isDonationImpossible(e,i,r,o,a){let s=null,l=null;o&&o!==""&&!(o instanceof Date)?s=o.toDate():s=o,a&&a!==""&&!(a instanceof Date)?l=a.toDate():l=a,this.subChangeService.getDonationPools(this.sub.productCode,this.sub.variantCode,s,l).subscribe(u=>{this.donationPools=u,this.donationBoolError=this.donationPools===null||this.donationPools===void 0||this.donationPools.length!==1,this.donationPools===null||this.donationPools===void 0?console.debug(this.translationService.getTranslation("subchange.donation.impossible")+" (no Pools configured)"):this.donationPools.length!==1&&console.debug(this.translationService.getTranslation("subchange.donation.impossible")+" (more then one pool configured)"),this.loadChangeTypesAndSubChange(e,i,r)},u=>{console.error("Error fetching donation pools",u)})}hasFormChanges(){return this.formSubmitted?JSON.stringify(this.forwardDataForm.value)!=JSON.stringify(this.referenceFormValues)||JSON.stringify(this.subChangeTypeForm.get("validDate").value)!=JSON.stringify(this.referenceSubChangeTypeValues):!1}submitForm(){this.forwardDataForm.valid&&(this.referenceFormValues=N({},this.forwardDataForm.value),this.referenceSubChangeTypeValues=N({},this.subChangeTypeForm.get("validDate").value),this.formSubmitted=!0)}resetWarnings(){this.warningsArr=[]}backToOverview(){this.navigationService.navigateTo(ge.SUBCHANGE,null,!0)}setMinDate(e){if(e){let i=new Date;i.setDate(i.getDate()+1),this.minDate=i.getTime()<=e.getTime()?e:i}}loadDonationPools(e,i){e&&i&&this.isDonationImpossible(this.subBackendId,this.changeWebId,this.changeBackendId,e,i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-sub-change-edit"]],features:[_e([X0()])],decls:57,vars:43,consts:[["stepper",""],["picker",""],[1,"row","sub-change-edit__row"],[1,"col-12","sub-change-edit__col"],[1,"sub-change-edit__errors",3,"errors"],[1,"sub-change-edit__loading",2,"text-align","center"],["linear","",1,"sub-change-edit__stepper",3,"orientation"],["editable","",1,"sub-change-edit__step","sub-change-edit__step--type",3,"stepControl"],[1,"mt-3","sub-change-edit__form","sub-change-edit__form--type",3,"formGroup"],["matStepLabel",""],[1,"mx-1","sub-change-edit__mobile-label"],["formGroupName","validDate",1,"sub-change-edit__form-field","sub-change-edit__form-field--date",3,"click"],[1,"sub-change-edit__label",3,"innerHTML"],[1,"sub-change-edit__date-range-input",3,"rangePicker","min","max"],["matStartDate","","formControlName","validFrom","readonly","","placeholder","Startdatum",1,"sub-change-edit__input","sub-change-edit__input--start"],["matEndDate","","formControlName","validUntil","readonly","","placeholder","Endd
638atum",1,"sub-change-edit__input","sub-change-edit__input--end"],["matSuffix","",1,"sub-change-edit__datepicker-toggle",3,"for"],["disabled","false",1,"sub-change-edit__date-range-picker",3,"touchUi"],[1,"sub-change-edit__error"],[1,"sub-change-edit__form-field","sub-change-edit__form-field--type"],["formControlName","changeType","required","","aria-required","true",1,"sub-change-edit__select",3,"value"],[1,"sub-change-edit__option",3,"value"],[1,"sub-change-edit__button-group"],["mat-raised-button","","color","primary","matStepperNext","",1,"sub-change-edit__button","sub-change-edit__button--next",3,"click","disabled","innerHTML"],["editable","",1,"sub-change-edit__step","sub-change-edit__step--forward",3,"stepControl"],["editable","",1,"sub-change-edit__step","sub-change-edit__step--collect",3,"stepControl"],[1,"sub-change-edit__step","sub-change-edit__step--summary"],[1,"mt-3","sub-change-edit__form","sub-change-edit__form--summary",3,"formGroup"],[1,"col-12","mx-1","sub-change-edit__mobile-label"],["class","sub-change-edit__summary-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"container-fluid","p-0","sub-change-edit__summary-container"],[1,"row","m-0","sub-change-edit__summary-row"],[1,"col-6","sub-change-edit__summary-label",3,"innerHTML"],[1,"col-6","sub-change-edit__summary-value"],[1,"mb-1","mt-3","sub-change-edit__divider"],[1,"mt-3","sub-change-edit__button-group"],["mat-raised-button","","matStepperPrevious","",1,"me-3","sub-change-edit__button","sub-change-edit__button--back",3,"innerHTML"],["mat-raised-button","","color","primary",1,"sub-change-edit__button","sub-change-edit__button--send",3,"hidden","innerHTML"],[1,"mt-3","float-end","sub-change-edit__overview"],["mat-raised-button","",1,"sub-change-edit__button","sub-change-edit__button--overview",3,"innerHTML"],[1,"sub-change-edit__spinner"],[1,"sub-change-edit__step-label",3,"innerHTML"],["class","sub-change-edit__step-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"sub-change-edit__step-title",3,"innerHTML"],[1,"mt-3","sub-change-edit__form","sub-change-edit__form--forward",3,"formGroup"],[1,"sub-change-edit__address",3,"showActivateCheckbox","controlGroup"],["formControlName","additional",1,"text-wrap","sub-change-edit__checkbox"],["mat-raised-button","","color","primary",1,"sub-change-edit__button","sub-change-edit__button--check-price",3,"innerHTML","disabled"],["matStepperNext","","mat-raised-button","","color","primary",1,"sub-change-edit__button","sub-change-edit__button--next",3,"disabled","innerHTML"],[1,"sub-change-edit__checkbox-label",3,"innerHTML"],["mat-raised-button","","color","primary",1,"sub-change-edit__button","sub-change-edit__button--check-price",3,"click","innerHTML","disabled"],[1,"sub-change-edit__warnings",3,"warnings"],[3,"warnings"],[1,"mt-3","sub-change-edit__form","sub-change-edit__form--collect",3,"formGroup"],["matStepLabel","",1,"sub-change-edit__step-label",3,"innerHTML"],["mat-raised-button","","color","primary","matStepperNext","",1,"sub-change-edit__button","sub-change-edit__button--next",3,"click","innerHTML"],[1,"sub-change-edit__summary-title",3,"innerHTML"],[1,"list-unstyled","sub-change-edit__summary-list"],[1,"sub-change-edit__summary-list-item"],[1,"col-6","sub-change-edit__summary-value",3,"innerHTML"],[1,"sub-change-edit__icon","sub-change-edit__icon--done"],[1,"sub-change-edit__icon","sub-change-edit__icon--clear"],["mat-raised-button","","color","primary",1,"sub-change-edit__button","sub-change-edit__button--send",3,"click","hidden","innerHTML"],["mat-raised-button","",1,"sub-change-edit__button","sub-change-edit__button--overview",3,"click","innerHTML"]],template:function(i,r){if(i&1){let o=B();p(0,"div",2)(1,"div",3),_(2,"app-general-errors",4),x(3,Zpe,2,0,"div",5),m()(),p(4,"mat-stepper",6,0),te(6,"async"),p(7,"mat-step",7)(8,"form",8),x(9,Jpe,1,0,null,9)(10,tme,2,1,"div",10),p(11,"mat-form-field",11),T("click",function(){A(o);let s=J(18);return k(s.open())}),_(12,"mat-label",12),p(13,"mat-date-range-input",13),_(14,"input",14)(15,"input",15),m(),_(16,"mat-datepicker-toggle",16)(17,"mat-date-range-picker",17,1),x(19,ime,2,1,"mat-error",18),m(),p(20,"mat-form-field",19),_(21,"mat-label",12),p(22,"mat-select",20),W(23,nme,2,2,"mat-option",21,X),m()(),p(25,"div",22)(26,"button",23),T("click",function(){A(o);let s=J(5);return k(r.getPriceForSubChange(s))}),m()()()(),x(27,fme,11,11,"mat-step",24)(28,vme,8,6,"mat-step",25),p(29,"mat-step",26)(30,"form",27),x(31,bme,2,0,"div",5)(32,Cme,1,0,null,9)(33,xme,2,1,"div",28)(34,wme,1,1,"h4",29),p(35,"div",30)(36,"div",31),_(37,"div",32),p(38,"div",33),E(39),m()(),p(40,"div",31),_(41,"div",32),p(42,"div",33),E(43),te(44,"date"),m()(),p(45,"div",31),_(46,"div",32),p(47,"div",33),E(48),te(49,"date"),m()()(),_(50,"mat-divider",34),x(51,kme,16,17),p(52,"div",35),_(53,"button",36),x(54,Ome,1,2,"button",37),m()()()(),p(55,"div",38),x(56,Pme,1,1,"button",39),m()}if(i&2){let o=J(18);c(2),f("errors",r.errorsArr),c(),b(r.isLoading?3:-1),c(),f("orientation",Ct(6,35,r.stepperOrientation)),c(3),f("stepControl",r.subChangeTypeForm),c(),f("formGroup",r.subChangeTypeForm),c(),b(r.isMobile?-1:9),c(),b(r.isMobile?10:-1),c(2),f("innerHTML",r.translationService.getTranslation("period"),y),c(),f("rangePicker",o)("min",r.minDate)("max",r.maxDate!==r.currentDate?r.maxDate:null),c(3),f("for",o),c(),f("touchUi",r.isMobile),c(2),b(r.subChangeTypeForm.get("validDate").hasError("message")?19:-1),c(2),f("innerHTML",r.translationService.getTranslation("subchange_type"),y),c(),f("value",r.subChangeTypeForm.get("changeType").value),
638c(),q(r.subChangeTypes),c(3),f("disabled",!r.subChangeTypeForm.valid&&!r.subChangeTypeForm.get("validDate").disabled)("innerHTML",r.translationService.getTranslation("button_next"),y),c(),b(r.subChangeTypeForm.get("changeType").value.code==="FORWARD"?27:-1),c(),b(r.subChangeTypeForm.get("changeType").value.code==="COLLECT"?28:-1),c(2),f("formGroup",r.subChangeTypeForm),c(),b(r.saving?31:-1),c(),b(r.isMobile?-1:32),c(),b(r.isMobile?33:-1),c(),f("appApplyIfNotEmpty",r.translationService.getTranslation("step_subChangeType")),c(3),f("innerHTML",r.translationService.getTranslation("step_subChangeType"),y),c(2),R("",r.subChangeTypeForm.get("changeType").value.description," "),c(2),f("innerHTML",r.translationService.getTranslation("startdate"),y),c(2),R("",Te(44,37,r.subChangeTypeForm.get("validDate.validFrom").value,r.translationService.getTranslation("dateFormat"))," "),c(3),f("innerHTML",r.translationService.getTranslation("enddate"),y),c(2),R("",Te(49,40,r.subChangeTypeForm.get("validDate.validUntil").value,r.translationService.getTranslation("dateFormat"))," "),c(3),b(r.subChangeTypeForm.get("changeType").value.code==="FORWARD"?51:-1),c(2),f("innerHTML",r.translationService.getTranslation("button_back"),y),c(),b(r.changeable&&!r.isLoading?54:-1),c(2),b(r.showBackToOverviewButton?56:-1)}},dependencies:[Vt,Ge,as,vm,Zs,Ot,wi,Bt,At,Wt,ai,bt,Ut,fr,Nt,MD,Aa,Z3,ir,Ri,Ee,Gl,Ia,vr,tr,op,Zo,Le,kb,Di,fn,Pt,Ht,oE,Av,X3,K3,Q3,$o,ze],styles:[`span.donation_impossible[_ngcontent-%COMP%]{color:red} 639/*# sourceMappingURL=sub-change-edit.component-JGXXBJHO.css.map */`]})}}return t})();var YH=uy(qH());function Nme(t,n){if(t&1&&_(0,"h3",7),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("payment_intro"),y)}}function Rme(t,n){t&1&&(p(0,"div",6),_(1,"app-loading-spinner"),m())}function Fme(t,n){if(t&1&&_(0,"app-general-errors",8),t&2){let e=h(2);f("errors",e.errorsArr)}}function Lme(t,n){if(t&1){let e=B();p(0,"button",20),T("click",function(){A(e);let r=h().$implicit,o=h(3);return k(o.paymentEdit(r))}),m()}if(t&2){let e=h(4);f("innerHTML",e.translationService.getTranslation("button_change"),y)}}function Bme(t,n){if(t&1&&_(0,"fa-icon",19),t&2){let e=h(4);f("icon","hourglass")("ngbTooltip",e.translationService.getTranslation("payment_existing_change"))}}function Hme(t,n){if(t&1&&(p(0,"div",14)(1,"div",15),_(2,"div",16),te(3,"bankAccount"),m(),p(4,"div",17),x(5,Lme,1,1,"button",18)(6,Bme,1,2,"fa-icon",19),m()()),t&2){let e=n.$implicit,i=h(3);c(2),f("innerHTML",Ct(3,2,i.translationService.getTranslation("payment_iban")+": "+e.bank.swiftIBAN),y),c(3),b(e.webId<=0?5:6)}}function Vme(t,n){if(t&1){let e=B();p(0,"button",30),T("click",function(){A(e);let r=h().$implicit,o=h(4);return k(o.subPaymentEdit(r))}),m()}if(t&2){h();let e=T_(6),i=h(4);f("innerHTML",i.translationService.getTranslation("button_change"),y)("disabled",e)}}function jme(t,n){if(t&1&&_(0,"fa-icon",28),t&2){let e=h(5);f("icon","hourglass")("ngbTooltip",e.translationService.getTranslation("payment_existing_change"))}}function zme(t,n){if(t&1&&_(0,"p",29),t&2){let e=h(6);f("innerHTML",e.translationService.getTranslation("paymentEdit_impossible"),y)}}function Ume(t,n){if(t&1&&x(0,zme,1,1,"p",31),t&2){let e=h(5);f("appApplyIfNotEmpty",e.translationService.getTranslation("paymentEdit_impossible"))}}function Gme(t,n){if(t&1&&(p(0,"div",22)(1,"div",23)(2,"div",24),E(3),_(4,"div",25),m()(),p(5,"div",26),Tr(6),x(7,Vme,1,2,"button",27)(8,jme,1,2,"fa-icon",28),m(),x(9,Ume,1,1,"p",29),m()),t&2){let e=n.$implicit,i=h(4);c(3),Pe(" ",e.productDescription," / ",e.variantDescription," "),c(),f("innerHTML",i.translationService.getTranslation("order_id")+": "+e.backendId,y),c(2);let r=D_(i.isOnlinePayment(e.curPayment));c(),b(e.curPayment.webId<=0?7:-1),c(),b(e.curPayment.webId>0?8:-1),c(),b(r?9:-1)}}function $me(t,n){if(t&1&&(p(0,"div",10)(1,"mat-card",21),_(2,"mat-card-title",12),p(3,"mat-card-content",13),W(4,Gme,10,7,"div",22,X),m()()()),t&2){let e=h(3);c(2),f("innerHTML",e.translationService.getTranslation("payment_editsub"),y),c(2),q(e.subs)}}function Wme(t,n){if(t&1&&(p(0,"div",9)(1,"div",10)(2,"mat-card",11),_(3,"mat-card-title",12),p(4,"mat-card-content",13),W(5,Hme,7,4,"div",14,X),m()()(),x(7,$me,6,1,"div",10),m()),t&2){let e=h(2);c(3),f("innerHTML",e.translationService.getTranslation("payment_bankinfos"),y),c(2),q(e.payments),c(2),b(e.displayPaymentChange?7:-1)}}function qme(t,n){if(t&1&&x(0,Fme,1,1,"app-general-errors",8)(1,Wme,8,2,"div",9),t&2){let e=h();b(e.errorsArr.length>0?0:1)}}var KH=(()=>{class t{constructor(){this.configService=d(Ce),this.paymentService=d($r),this.hupSubscriptionsService=d(ct),this.navigationService=d(Re),this.translationService=d(Y),this.faLibrary=d(jf),this.onlinePaymentChecker=new eo,this.isLoadingPayments=!1,this.isLoadingSubs=!1,this.errorsArr=[],this.displayPaymentChange=!0,this.faLibrary.addIcons(YH.faHourglass)}ngOnInit(){this.isLoadingSubs=!0,this.isLoadingPayments=!0;let e=this.configService.getConfig(this.onlinePaymentChecker.ONLINE_PAYMENT_METHOD_ID_CONFIG_KEY);e&&e.value&&this.onlinePaymentChecker.setPaymentCode(e.value),this.hupSubscriptionsService.getSubscriptions().pipe(ci(i=>(this.subs=i,this.isLoadingSubs=!1,ra([j(i),this.getFilteredBanks(i)]))),Ae(i=>(this.errorsArr.push(this.translationService.getTranslation("error_subscription_init")),j(null)))).subscribe(i=>{this.payments=i[1],this.isLoadingPayments=!1}),this.displayPaymentChange=this.configService.getConfig("payment.changeOfPaymentConditionsAllowed")?.asBoolean()}getFilteredBanks(e){return this.paymentService.getPayments().pipe(F(i=>{let r=e.map(o=>o.curPayment?.bank?.backendId??-1);return i.filter(o=>
639(o.bank.backendId??1)<=0||r.includes(o.bank.backendId))}),Ae(i=>(this.errorsArr.push(this.translationService.getTranslation("error_payment_init")),j(null))))}subPaymentEdit(e){this.navigationService.navigateTo(ge.SUBPAYMENTEDIT,[e.webId+"",e.backendId+""])}paymentEdit(e){this.navigationService.navigateTo(ge.PAYMENTEDIT,[e.webId+"",e.bank.backendId+""])}isOnlinePayment(e){return this.onlinePaymentChecker.isOnlinePayment(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-payment"]],decls:9,vars:3,consts:[[1,"row","payment__row"],[1,"col-12","payment__intro"],["class","payment__intro-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","payment__description"],[1,"payment__description-title",3,"innerHTML"],[1,"col-12","payment__content"],[1,"payment__loading",2,"text-align","center"],[1,"payment__intro-title",3,"innerHTML"],[1,"payment__errors",3,"errors"],[1,"row"],[1,"col-12","col-lg-6"],["appearance","outlined",1,"mb-3","payment__card"],[1,"m-3","payment__card-title",3,"innerHTML"],[1,"payment__card-content"],["tabindex","0",1,"row","mb-3","payment__bank-row"],["tabindex","0",1,"col-8","payment__bank-info"],[1,"payment__bank-iban",3,"innerHTML"],[1,"col-4","editButtonContainer","text-center","payment__bank-actions"],["mat-raised-button","","color","primary",1,"payment__bank-edit-btn",3,"innerHTML"],["size","2x","placement","top",1,"payment__bank-hourglass",3,"icon","ngbTooltip"],["mat-raised-button","","color","primary",1,"payment__bank-edit-btn",3,"click","innerHTML"],["appearance","outlined",1,"payment__card","payment__card--change"],[1,"row","mb-3","payment__sub-row"],[1,"col-8","payment__sub-info"],["tabindex","0",1,"payment__sub-desc"],[1,"payment__sub-orderid",3,"innerHTML"],[1,"col-4","editButtonContainer","text-center","payment__sub-actions"],["mat-raised-button","","color","primary",1,"payment__sub-edit-btn",3,"innerHTML","disabled"],["size","2x","placement","top",1,"payment__sub-hourglass",3,"icon","ngbTooltip"],["id","payment-edit-warning",1,"payment-edit__warning","text-warning","text-end",3,"innerHTML"],["mat-raised-button","","color","primary",1,"payment__sub-edit-btn",3,"click","innerHTML","disabled"],["class","payment-edit__warning text-warning text-end","id","payment-edit-warning",3,"innerHTML",4,"appApplyIfNotEmpty"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,Nme,1,1,"h3",2),m(),p(3,"div",3),_(4,"p",4),m()(),p(5,"div",0)(6,"div",5),x(7,Rme,2,0,"div",6)(8,qme,2,1),m()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("payment_intro")),c(2),f("innerHTML",r.translationService.getTranslation("payment_description"),y),c(3),b(r.isLoadingPayments||r.isLoadingSubs?7:8))},dependencies:[Ge,Vt,at,Li,Rt,db,p3,Ee,jL,Jr,ze],styles:[`.editButtonContainer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{line-height:48px!important;border-radius:4px!important}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded), .mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expansion-panel-spacing){margin-bottom:16px}.mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%], .mat-accordion[_ngcontent-%COMP%] .mat-expansion-panel.mat-expansion-panel-spacing[_ngcontent-%COMP%]{margin-top:0} 640/*# sourceMappingURL=payment.component-BUY4MH3S.css.map */`]})}}return t})();function Yme(t,n){if(t&1&&_(0,"h3",13),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("payment_edit_intro"),y)}}function Kme(t,n){t&1&&(p(0,"div",5),_(1,"app-loading-spinner"),m())}function Qme(t,n){if(t&1&&(p(0,"mat-hint",22),E(1),m()),t&2){h();let e=J(11);c(),Pe("",e.value.length,"/ ",e.maxLength," ")}}function Zme(t,n){if(t&1&&(p(0,"mat-error",23),E(1),m()),t&2){let e=h(2);c(),R(" ",e.paymentEditForm.get("bank.swiftIBAN").getError("message")," ")}}function Xme(t,n){t&1&&(p(0,"div",24),_(1,"app-loading-spinner",35),m()),t&2&&(c(),f("type","small"))}function Jme(t,n){if(t&1&&(p(0,"mat-error",28),E(1),m()),t&2){let e=h(2);c(),R(" ",e.paymentEditForm.get("bank.swiftBIC").getError("message")," ")}}function efe(t,n){if(t&1&&(p(0,"mat-error",32),E(1),m()),t&2){let e=h(2);c(),R(" ",e.paymentEditForm.get("bank.bankName").getError("message")," ")}}function tfe(t,n){if(t&1){let e=B();p(0,"div",10)(1,"form",14)(2,"div",15),ni(3,16)(4),p(5,"div",17),_(6,"div",18),te(7,"bankAccount"),m(),Jt(),p(8,"mat-form-field",19),_(9,"mat-label",20)(10,"input",21,0),x(12,Qme,2,2,"mat-hint",22)(13,Zme,2,1,"mat-error",23),m(),x(14,Xme,2,1,"div",24),p(15,"mat-form-field",25),_(16,"mat-label",26)(17,"input",27),x(18,Jme,2,1,"mat-error",28),m(),p(19,"mat-form-field",29),_(20,"mat-label",30)(21,"input",31),x(22,efe,2,1,"mat-error",32),m(),Jt(),m(),p(23,"div",33)(24,"button",34),T("click",function(){A(e);let r=h();return k(r.onSendPayment())}),m()()()()}if(t&2){let e=J(11),i=h();c(),f("formGroup",i.paymentEditForm),c(5),f("innerHTML",Ct(7,12,i.translationService.getTranslation("iban_current")+": "+i.payment.bank.swiftIBAN),y),c(3),f("innerHTML",i.translationService.getTranslation("payment_iban"),y),c(3),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?12:-1),c(),b(i.paymentEditForm.get("bank.swiftIBAN").hasError("message")?13:-1),c(),b(i.isSaving===!0?14:-1),c(2),f("innerHTML",i.translationService.getTranslation("payment_bic"),y),c(2),b(i.paymentEditForm.get("bank.swiftBIC").hasError("message")?18:-1),c(2),f("innerHTML",i.translationService.getTranslation("payment_bankname"),y),c(2),b(i.paymentEditForm.get("bank.bankName").hasError("message")?22:-1),c(2),f("hidden",i.isSaving)("innerHTML",i.translationService.getTranslation("button_send"),y)}}function ife(t,n){t&1&&_(0,"hr",44)}function nfe(t,n){if(t&1&&(ni(0,38),p(1,"div",39)(2,"div",40),_(3,"div",41),p(4,"div",42),E(5),m()()(),p(6,"div",43)(7,"div",40),_(8,"div",41),p(9,"div",42),E(10),m()()(),p(11,"div",43)(12,"div",40),_(13,"div",41),p(14,"div",42),E(15),te(16,"date"),te(17,"date"),m()()(),x(18,ife,1,0,"hr",44),Jt()),t&2){let e=n.$implicit,i=n.$index,r=h(2);c(3),f("innerHTML",r.translationService.getTranslation("label_backendid"),y),c(2),R(" ",e.userBackendId," "),c(3),f("innerHTML",r.translationService.getTranslation("order_id"),y),c(2),R(" ",e.backendId," "),c(3),f("innerHTML",r.translationService.getTranslation("period"),y),c(2),Pe(" ",Te(16,8,e.validDate.validFrom,r.translationService.getTranslation("dateFormat"))," - ",e.validDate.validUntil?Te(17,11,e.validDate.validUntil,r.translationService.getTranslation("dateFormat")):r.translationService.getTranslation("subscription_endless")," "),c(3),b(i+1<r.subs.length?18:-1)}}function rfe(t,n){if(t&1&&(p(0,"div",10)(1,"div",36),_(2,"strong",37),m(),W(3,nfe,19,14,"ng-container",38,X),m()),t&2){let e=h();c(2),f("innerHTML",e.translationService.getTranslation("payment_affected_orders"),y),c(),q(e.subs)}}var QH=(()=>{class t{constructor(){this.formBuilder=d(kt),this.http=d(Be),this.paymentService=d($r),this.route=d(Ye),this.navigationService=d(Re),this.errorService=d(Xo),this.subscriptionService=d(ct),this.translationService=d(Y),this.snackBar=d(Yi),this.isLoadingPayment=!1,this.errorsArr=[],this.isMobile=!1,this.isSaving=!1,this.document=typeof document=="object"?document:null}ngOnInit(){this.isLoadingPayment=!0,this.subscriptionService.getSubscriptions().subscribe(e=>{this.subs=e}),this.paymentEditForm=this.formBuilder.group({bank:this.formBuilder.group({accountHolder:[""],backendId:[""],bankAccountNo:[""],bankCode:[""],bankName:[{value:this.translationService.getTranslation("filled_automatically"),disabled:!0}],subId:[""],swiftIBAN:["",Z.required],swiftBIC:[{value:this.translationService.getTranslation("filled_automatically"),disabled:!0}],webId:[""],creditCard:this.formBuilder.group({backendId:[""],ccCheckNo:[""],ccNo:[""],ccValidMon:[""],ccValidYear:[""],creditCard:[""],webId:[""]})}),validDate:this.formBuilder.group({validFrom:[""],validUntil:[""]})}),this.paymentEditForm.get("bank.swiftIBAN").setAsyncValidators(
640Hi.validateIBAN(this.http,this.translationService,this.paymentEditForm.get("bank.swiftBIC"),this.paymentEditForm.get("bank.bankName"))),this.route.paramMap.subscribe(e=>{this.paymentService.getPayment(e.get("paymentWebId"),e.get("paymentBackendId")).subscribe({next:i=>{this.isLoadingPayment=!1,this.payment=i,this.currentIban=this.payment.bank.swiftIBAN},error:i=>{this.isLoadingPayment=!1,this.errorService.handleAPIError([this.paymentEditForm],i.error,this.errorsArr),this.isSaving=!1}}),this.subscriptionService.getSubscriptions().subscribe(i=>{this.subs=i.filter(r=>r.curPayment?.bank!=null&&r.curPayment?.bank?.backendId?.toString()==e.get("paymentBackendId"))})})}onSendPayment(){if(this.paymentEditForm.valid){this.isSaving=!0,this.isLoadingPayment=!0,this.paymentEditForm.get("bank.swiftBIC").enable();let e=this.paymentEditForm.value;this.paymentEditForm.get("bank.swiftBIC").disable(),e.bank.swiftIBAN=e.bank?.swiftIBAN?.trim(),e.backendId=this.payment.backendId,e.webId=this.payment.webId,e.validDate.validFrom=new Date,this.paymentService.sendPaymentEdit(e).subscribe({next:i=>{this.navigationService.navigateTo(ge.PAYMENT).then(r=>{r&&this.snackBar.openSnackbar(this.translationService.getTranslation("saved"))})},error:i=>{this.errorService.handleAPIError([this.paymentEditForm],i.error,this.errorsArr),console.log("Error: ",i),this.isSaving=!1},complete:()=>{this.isLoadingPayment=!1,this.isSaving=!1}})}}getAllErrors(e){let i=!1,r=Object.keys(e.controls).reduce((o,a)=>{let s=e.get(a),l=s instanceof Uo||s instanceof Go?this.getAllErrors(s):s.errors;return l&&(o[a]=l,i=!0),o},{});return i?r:null}backToOverview(){this.navigationService.navigateTo(ge.PAYMENT,null,!0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-payment-edit"]],features:[_e([Le])],decls:13,vars:7,consts:[["iban",""],[1,"row","payment-edit__row"],[1,"col-12","payment-edit__intro"],["class","payment-edit__intro-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","mb-4","payment-edit__description",3,"innerHTML"],[1,"payment-edit__spinner",2,"text-align","center"],[1,"payment-edit__errors",3,"errors"],[1,"payment-edit__card"],[1,"payment-edit__card-content"],[1,"row"],[1,"col-12","col-lg-6"],[1,"mt-3","float-end","hup-subscription-detail__back"],["mat-raised-button","",1,"hup-subscription-detail__back-btn",3,"click","innerHTML"],[1,"payment-edit__intro-title",3,"innerHTML"],[1,"mt-3","payment-edit__form",3,"formGroup"],[1,"row","payment-edit__form-row"],["formGroupName","bank"],[1,"mb-5","col-12","payment-edit__iban-current"],[1,"payment-edit__iban-current-value",3,"innerHTML"],[1,"col-12","payment-edit__iban-field"],[1,"payment-edit__iban-label",3,"innerHTML"],["maxLength","34","matInput","","formControlName","swiftIBAN","required","",1,"payment-edit__iban-input"],["align","end",1,"payment-edit__iban-hint"],[1,"payment-edit__iban-error"],[1,"payment-edit__iban-spinner"],[1,"col-12","payment-edit__bic-field"],[1,"payment-edit__bic-label",3,"innerHTML"],["matInput","","formControlName","swiftBIC","required","",1,"payment-edit__bic-input"],[1,"payment-edit__bic-error"],[1,"col-12","payment-edit__bankname-field"],[1,"payment-edit__bankname-label",3,"innerHTML"],["matInput","","formControlName","bankName","required","",1,"payment-edit__bankname-input"],[1,"payment-edit__bankname-error"],[1,"col-12","payment-edit__submit-row"],["mat-raised-button","","color","primary",1,"payment-edit__submit-btn",3,"click","hidden","innerHTML"],[3,"type"],[1,"mt-5","payment-edit__orders-title"],[3,"innerHTML"],[1,"payment-edit__order-container"],[1,"form-group","col-12","mt-2","payment-edit__order-group"],[1,"row","payment-edit__order-row"],[1,"col-5","payment-edit__order-label",3,"innerHTML"],[1,"col-7","payment-edit__order-value"],[1,"form-group","col-12","payment-edit__order-group"],[1,"payment-edit__order-separator"]],template:function(i,r){i&1&&(p(0,"div",1)(1,"div",2),x(2,Yme,1,1,"h3",3),m(),_(3,"div",4),m(),x(4,Kme,2,0,"div",5),_(5,"app-general-errors",6),p(6,"mat-card",7)(7,"mat-card-content",8)(8,"div",9),x(9,tfe,25,14,"div",10)(10,rfe,5,1,"div",10),m()()(),p(11,"div",11)(12,"button",12),T("click",function(){return r.backToOverview()}),m()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("payment_edit_intro")),c(),f("innerHTML",r.translationService.getTranslation("payment_edit_description"),y),c(),b(r.isLoadingPayment||r.isSaving?4:-1),c(),f("errors",r.errorsArr),c(4),b(!r.isLoadingPayment&&r.errorsArr.length==0?9:-1),c(),b(r.subs&&r.subs.length>0?10:-1),c(2),f("innerHTML",r.translationService.getTranslation("button_back_to_overview"),y))},dependencies:[Ge,Vt,Ot,wi,Bt,At,Wt,ai,bt,Ut,fr,Jr,Nt,ei,Ee,Le,Ht,Pt,qi,at,Rt,ze],encapsulation:2})}}return t})();var ofe=(t,n)=>n.bank.swiftIBAN;function afe(t,n){if(t&1&&_(0,"h3",12),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("sub_payment_edit_intro"),y)}}function sfe(t,n){if(t&1&&(p(0,"div",13),_(1,"div",15),m()),t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("order_id")+": "+e.sub.backendId,y)}}function lfe(t,n){if(t&1&&(p(0,"div",13),_(1,"div",16),m()),t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("customer")+": "+e.sub.curBilling.person.addressCodeDe
640scription+" "+(e.sub.curBilling.person.titleDescription!=""?e.sub.curBilling.person.titleDescription+" ":"")+e.sub.curBilling.person.firstname+" "+e.sub.curBilling.person.lastname,y)}}function cfe(t,n){if(t&1&&(p(0,"div",7)(1,"div",13)(2,"div",14),E(3),m()(),x(4,sfe,2,1,"div",13)(5,lfe,2,1,"div",13),m()),t&2){let e=h();c(3),Pe(" ",e.sub.productDescription," / ",e.sub.variantDescription," "),c(),b(e.sub.backendId>0?4:-1),c(),b(e.sub.curBilling?5:-1)}}function dfe(t,n){t&1&&(p(0,"div",8),_(1,"app-loading-spinner"),m())}function ufe(t,n){if(t&1&&(p(0,"div",10),E(1),m()),t&2){let e=h();c(),R(" ",e.translationService.getTranslation("sub_payment_edit_change_not_possible")," ")}}function pfe(t,n){if(t&1&&(p(0,"mat-error",23),E(1),m()),t&2){let e=h(2);c(),R("",e.paymentEditForm.get("validDate").getError("message")," ")}}function mfe(t,n){if(t&1&&(p(0,"mat-option",26),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R("",e.description," ")}}function ffe(t,n){if(t&1&&(p(0,"mat-error",23),E(1),m()),t&2){let e=h(2);c(),R(" ",e.paymentEditForm.get("paymentType.paymentMethod").getError("message")," ")}}function hfe(t,n){if(t&1&&(p(0,"mat-option",26),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R("",e.description," ")}}function gfe(t,n){if(t&1&&(p(0,"mat-error",23),E(1),m()),t&2){let e=h(2);c(),R(" ",e.paymentEditForm.get("paymentType.paymentFrequency").getError("message")," ")}}function _fe(t,n){if(t&1&&(p(0,"mat-option",26),E(1),te(2,"bankAccount"),m()),t&2){let e=n.$implicit;f("value",e.bank.swiftIBAN),c(),R(" ",Ct(2,2,e.bank.swiftIBAN)," ")}}function vfe(t,n){if(t&1&&(p(0,"mat-error",23),E(1),m()),t&2){let e=h(3);c(),R(" ",e.paymentEditForm.get("bankSelection").getError("message")," ")}}function bfe(t,n){if(t&1&&(p(0,"mat-form-field",28),_(1,"mat-label",19),p(2,"mat-select",31),W(3,_fe,3,4,"mat-option",26,ofe),m(),x(5,vfe,2,1,"mat-error",23),m()),t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("payment_bank_connection"),y),c(2),q(e.availableBankConnections),c(2),b(e.paymentEditForm.get("bankSelection").hasError("message")?5:-1)}}function yfe(t,n){if(t&1&&(p(0,"mat-error",23),E(1),m()),t&2){let e=h(3);c(),R(" ",e.paymentEditForm.get("invoiceEmail").getError("message")," ")}}function Cfe(t,n){if(t&1&&(p(0,"mat-form-field",28),_(1,"mat-label",19)(2,"input",32),x(3,yfe,2,1,"mat-error",23),m()),t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("payment_invoice_email"),y),c(2),b(e.paymentEditForm.get("invoiceEmail").hasError("message")?3:-1)}}function Sfe(t,n){if(t&1){let e=B();p(0,"form",11)(1,"div",17)(2,"mat-form-field",18),T("click",function(){A(e);let r=J(7);return k(r.open())}),_(3,"mat-label",19)(4,"input",20)(5,"mat-datepicker-toggle",21)(6,"mat-datepicker",22,0),x(8,pfe,2,1,"mat-error",23),m(),p(9,"mat-form-field",24),_(10,"mat-label",19),p(11,"mat-select",25),W(12,mfe,2,2,"mat-option",26,X),m(),x(14,ffe,2,1,"mat-error",23),m(),p(15,"mat-form-field",24),_(16,"mat-label",19),p(17,"mat-select",27),W(18,hfe,2,2,"mat-option",26,X),m(),x(20,gfe,2,1,"mat-error",23),m(),x(21,bfe,6,2,"mat-form-field",28)(22,Cfe,4,2,"mat-form-field",28),p(23,"div",29)(24,"button",30),T("click",function(){A(e);let r=h();return k(r.onSendPayment())}),m()()()()}if(t&2){let e=J(7),i=h();f("formGroup",i.paymentEditForm),c(3),f("innerHTML",i.translationService.getTranslation("startdate"),y),c(),f("min",i.minDate)("matDatepicker",e),c(),f("for",e),c(),f("touchUi",i.isMobile),c(2),b(i.paymentEditForm.get("validDate").hasError("message")?8:-1),c(2),f("innerHTML",i.translationService.getTranslation("payment_type"),y),c(),f("compareWith",i.compareFormOfPayment)("value",i.paymentEditForm.get("paymentType.paymentMethod").value),c(),q(i.filteredFormsOfPayment),c(2),b(i.paymentEditForm.get("paymentType.paymentMethod").hasError("message")?14:-1),c(2),f("innerHTML",i.translationService.getTranslation("payment_rhythm"),y),c(),f("compareWith",i.compareBaseData)("value",i.paymentEditForm.get("paymentType.paymentFrequency").value),c(),q(i.filteredPaymentFrequencies),c(2),b(i.paymentEditForm.get("paymentType.paymentFrequency").hasError("message")?20:-1),c(),b(i.needIbanBic?21:-1),c(),b(i.needInvoiceMailAddress?22:-1),c(2),f("innerHTML",i.translationService.getTranslation("button_send"),y)}}var ZH=(()=>{class t{constructor(){this.formBuilder=d(kt),this.route=d(Ye),this.http=d(Be),this.hupSubscriptionsService=d(ct),this.configService=d(Ce),this.paymentService=d($r),this.errorService=d(Xo),this.baseDataService=d(vt),this.translationService=d(Y),this.navigationService=d(Re),this.dateAdapter=d(qt),this.isLoadingSub=!1,this.errorsArr=[],this.isMobile=!1,this.minDate=new Date,this.formsOfPayment=[],this.paymentFrequencies=[],this.isSaving=!1,this.filteredFormsOfPayment=[],this.filteredPaymentFrequencies=[],this.needIbanBic=!1,this.needInvoiceMailAddress=!1,this.bankConnections=[],this.availableBankConnections=[],this.changeNotPossible=!1,this.dateAdapter.getFirstDayOfWeek=()=>1,this.paymentFrequencies=this.baseDataService.getBaseData("invoicemethods"),this.formsOfPayment=this.baseDataService.getBaseData("paymentmethods")}ngOnInit(){this.isLoadingSub=!0,this.configService.getConfig("payment.changeOfPaymentConditionsAllowed")?.asBoolean()||this.navigationService.navigateTo(ge.PAYMENT),this.paymentEditForm=this.formBuilder.group({backendId:[""],bank:this.formBuilder.group({bankName:[""],subId:[""],swiftBIC:[{value:this.translationService.getTranslation("filled_automatically"),disabled:!0}],swiftIBAN:[{value:this.translationService.getTranslation("filled_automatically"),disabled:!0}],webId:[""]}),invoiceEmail:["",[Z.email,Z.required]],paymentType:this.formBuilder.group({paymentFrequency:["",Z.required],paymentMethod:["",Z.required]}),validDate:this.formBuilder.group({validFrom:[this.minDate,Z.required],validUntil:[""]}),webId:[""],bankSelection:[""]}),this.setAsyncValidators(),this.paymentEditForm.get("paymentType.paymentMethod").valueChanges.subscribe(i=>{i!==void 0&&this.handleFormOfPaymentChange(i?.paymentMethod??i)}),this.route.paramMap.subscribe(i=>{_n({sub:this.hupSubscriptionsService.getSubscription(i.get("subWebId"),i.get("subBackendId")),paymentOptions:this.hupSubscriptionsService.getAllowedPaymentsForSub(+i.get("subBackendId")),bankConnections:this.paymentService.getPayments().pipe(Ae(r=>(console.error("Bankverbindungen des Nutzers konnten nicht geladen werden",r),j([]))))}).subscribe({next:r=>{this.sub=r.sub,this.isLoadingSub=!1,this.rawIban=r.sub?.curPayment?.bank?.swiftIBAN,this.bankConnections=this.dedupeByIban(r.bankConnections??[]),this.buildAvailableBankConnections(r.sub),this.paymentEditForm.get("bank.swiftBIC").patchValue(r.sub?.curPayment?.bank?.swiftBIC),this.paymentEditForm.get("invoiceEmail").patchValue(r.sub?.curPayment?.invoiceEmail),this.paymentEditForm.get("bank.subId").patchValue(r.sub?.backendId),this.paymentEditForm.get("backendId").patchValue(r.sub?.curPayment?.backendId),this.handleFormOfPayment(r.paymentOptions??[]);let o=this.filteredFormsOfPayment.find(s=>
640s.paymentMethod===r.sub?.curPayment?.paymentType?.paymentMethod);this.paymentEditForm.get("paymentType.paymentMethod").patchValue(o);let a=this.paymentFrequencies.find(s=>s.key===r.sub?.curPayment?.paymentType?.paymentFrequency);this.paymentEditForm.get("paymentType.paymentFrequency").patchValue(a)},error:r=>{this.isLoadingSub=!1,this.errorsArr.push(this.translationService.getTranslation("error_subscription_init"))}})})}setAsyncValidators(){this.paymentEditForm.get("bank.swiftIBAN").setAsyncValidators(Hi.validateIBAN(this.http,this.translationService,this.paymentEditForm.get("bank.swiftBIC"),this.paymentEditForm.get("bank.bankName")))}handleFormOfPayment(e){let i=[];e.length>0?i=e:i=this.sub?.offer?.offerPaymentOfferType,i?.forEach(r=>{let o=this.formsOfPayment.find(a=>a.key===r.paymentMethod);o&&o.useInFE&&r.paymentFrequencyList?.length>0&&(r.paymentType!=="DIRECTDEBITIBAN"||this.rawIban||this.bankConnections.length>0)&&(r.description=o.description,this.filteredFormsOfPayment.push(r))}),this.changeNotPossible=this.filteredFormsOfPayment.length===0,this.filteredFormsOfPayment.length===1&&(this.paymentEditForm.get("paymentType.paymentMethod").patchValue(this.filteredFormsOfPayment[0]),this.handleFormOfPaymentChange(this.filteredFormsOfPayment[0].paymentMethod))}handleFormOfPaymentChange(e){this.filteredPaymentFrequencies=[];let i=this.filteredFormsOfPayment?.find(r=>r.paymentMethod===e);this.setValidatorsAtIBAN(i?.paymentType==="DIRECTDEBITIBAN"),this.setValidatorsAtInvoiceEmail(i?.invoiceType==="EMAILDELIVERY"),i?.paymentFrequencyList?.forEach(r=>{let o=this.paymentFrequencies.find(a=>a.key===r);o&&this.filteredPaymentFrequencies.push(o)}),this.filteredPaymentFrequencies.length===1&&this.paymentEditForm.get("paymentType.paymentFrequency").patchValue(this.filteredPaymentFrequencies[0])}setValidatorsAtIBAN(e){e===!0?(this.needIbanBic=!0,this.paymentEditForm.get("bankSelection").setValidators(Z.required),this.paymentEditForm.get("bankSelection").updateValueAndValidity({emitEvent:!1}),this.prepareBankSelection()):(this.needIbanBic=!1,this.paymentEditForm.get("bankSelection").clearValidators(),this.paymentEditForm.get("bankSelection").setValue("",{emitEvent:!1}),this.paymentEditForm.get("bankSelection").updateValueAndValidity({emitEvent:!1}),this.paymentEditForm.get("bank").reset())}dedupeByIban(e){let i=new Set;return e.filter(r=>{let o=r?.bank?.swiftIBAN;return!o||i.has(o)?!1:(i.add(o),!0)})}buildAvailableBankConnections(e){let i=[...this.bankConnections],r=e?.curPayment?.bank;r?.swiftIBAN&&!i.some(o=>o.bank?.swiftIBAN===r.swiftIBAN)&&i.push({webId:e.curPayment.webId,backendId:r.backendId,bank:r}),this.availableBankConnections=i}prepareBankSelection(){let e=this.paymentEditForm.get("bankSelection"),i="";this.rawIban?i=this.rawIban:this.availableBankConnections.length===1&&(i=this.availableBankConnections[0].bank?.swiftIBAN),e.setValue(i,{emitEvent:!1})}setValidatorsAtInvoiceEmail(e){e===!0?(this.paymentEditForm.get("invoiceEmail").setValidators([Z.email,Z.required]),this.needInvoiceMailAddress=!0):(this.paymentEditForm.get("invoiceEmail").clearValidators(),this.paymentEditForm.get("invoiceEmail").reset(),this.needInvoiceMailAddress=!1)}onSendPayment(){if(this.paymentEditForm.valid){this.isSaving=!0,this.isLoadingSub=!0;let e=this.paymentEditForm.getRawValue(),i=e.bankSelection;if(delete e.bankSelection,this.needIbanBic){let r=this.availableBankConnections.find(o=>o.bank?.swiftIBAN===i);e.bank=re(N({},e.bank),{swiftIBAN:r?.bank?.swiftIBAN,swiftBIC:r?.bank?.swiftBIC})}e.paymentType.paymentFrequency=e.paymentType.paymentFrequency.key,e.paymentType.paymentMethod=e.paymentType.paymentMethod.paymentMethod,this.hupSubscriptionsService.sendSubPaymentEdit(this.sub.backendId,e.backendId,e).subscribe({next:r=>{this.navigationService.navigateTo(ge.PAYMENT)},error:r=>{let o=r.error.validationErrors?r.error.validationErrors:r.error;this.errorService.handleAPIError([this.paymentEditForm],o,this.errorsArr),this.isLoadingSub=!1,this.isSaving=!1},complete:()=>{this.isLoadingSub=!1,this.isSaving=!1}})}}compareBaseData(e,i){return e.key===i.key}compareFormOfPayment(e,i){return e.paymentMethod===i.paymentMethod}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-subscription-payment-edit"]],decls:11,vars:7,consts:[["picker",""],[1,"row","subscription-payment-edit__intro-row"],[1,"col-12","subscription-payment-edit__intro-title"],[3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","subscription-payment-edit__intro-description",3,"innerHTML"],[1,"mt-3","subscription-payment-edit__card"],[1,"subscription-payment-edit__card-content"],[1,"mb-5","subscription-payment-edit__sub-info"],[1,"subscription-payment-edit__loading",2,"text-align","center"],[1,"subscription-payment-edit__errors",3,"errors"],[1,"subscription-payment-edit__not-possible"],[1,"subscription-payment-edit__form",3,"formGroup"],[3,"innerHTML"],[1,"row","subscription-payment-edit__sub-info-row"],[1,"col-12","subscription-payment-edit__sub-info-product"],[1,"col-12","subscription-payment-edit__sub-info-backendid",3,"innerHTML"],[1,"col-12","subscription-payment-edit__sub-info-customer",3,"innerHTML"],[1,"row","subscription-payment-edit__form-row"],["formGroupName","validDate",1,"col-12","subscription-payment-edit__form-field",3,"click"],[1,"subscription-payment-edit__label",3,"innerHTML"],["matInput","","readonly","","required","","formControlName","validFrom",1,"subscription-payment-edit__input",3,"min","matDatepicker"],["matSuffix","",1,"subscription-payment-edit__datepicker-toggle",3,"for"],[1,"subscription-payment-edit__datepicker",3,"touchUi"],[1,"subscription-payment-edit__error"],["formGroupName","paymentType",1,"col-12","subscription-payment-edit__form-field"],["formControlName","paymentMethod","required","","aria-required","true",1,"subscription-payment-edit__select",3,"compareWith","value"],[1,"subscription-payment-edit__option",3,"value"],["formControlName","paymentFrequency","required","","aria-required","true",1,"subscription-payment-edit__select",3,"compareWith","value"],[1,"col-12","subscription-payment-edit__form-field"],[1,"col-12","subscription-payment-edit__button-row"],["mat-raised-button","","color","primary",1,"subscription-payment-edit__button",3,"click","innerHTML"],["formControlName","bankSelection","required","","aria-required","true",1,"subscription-payment-edit__select"],["matInput","","formControlName","invoiceEmail","required","",1,"subscription-payment-edit__input"]],template:function(i,r){i&1&&(p(0,"div",1)(1,"div",2),x(2,afe,1,1,"h3",3),m(),_(3,"div",4),m(),p(4,"mat-card",5)(5,"mat-card-content",6),x(6,cfe,6,4,"div",7)(7,dfe,2,0,"div",8),_(8,"app-general-errors",9),x(9,ufe,2,1,"div",10)(10,Sfe,25,18,"form",11),m()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("sub_payment_edit_intro")),c(),f("innerHTML",r.translationService.getTranslation("sub_payment_edit_description"),y),c(3),b(r.isLoadingSub?-1:6),c(),b(r.isLoadingSub?7:-1),c(),f("errors",r.errorsArr),c(),b(!r.isLoadingSub&&r.changeNotPossible?9:-1),c(),b(r.changeNotPossible?-1:10))},dependencies:[Ge,Vt,Ot,wi,Bt,At,Wt,ai,bt,Ut,fr,Nt,ei,ss,Aa,ql,ir,Ri,Ee,Pt,Ht,at,Rt,ze,Jr],styles:[`.subscription-payment-edit__not-possible[_ngcontent-%COMP%]{margin:1rem 0;padding:1rem;border-radius:4px;background-color:#0000000a;font-weight:500} 641/*# sourceMappingURL=subscription-payment-edit.component-RUHUVECU.css.map */`]})}}return t})();var XH=(()=>{class t{constructor(){this.sanitizer=d(En)}transform(e){return this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Pn({name:"toSafeHtml",type:t,pure:!0})}}return t})();var xfe=["login"];function wfe(t,n){if(t&1&&_(0,"img",6),t&2){let e=h(2);f("ngSrc",e.actualPage.viewFile.src)("width",e.imageService.width)("height",e.imageService.height)("priority",!0)("alt",e.actualPage.viewFile.altText)}}function Efe(t,n){if(t&1&&(p(0,"div",1)(1,"div",5),x(2,wfe,1,5,"img",6),m(),p(3,"div",7),_(4,"h4",8),te(5,"toSafeHtml"),m()()),t&2){let e=h();c(2),b(e.actualPage.viewFile?2:-1),c(2),f("innerHtml",Ct(5,2,e.actualPage.viewDescription),y)}}function Dfe(t,n){if(t&1){let e=B();p(0,"img",18),T("error",function(r){A(e);let o=h(2).$implicit,a=h();return k(a.onImgError(r,o.image.src))}),m()}if(t&2){let e=h(2).$implicit,i=h();f("ngSrc",e.image.src)("width",i.imageService.width)("height",i.imageService.height)("priority",!0)("alt",e.image.altText)}}function Tfe(t,n){if(t&1){let e=B();p(0,"mat-card",12),T("click",function(){A(e);let r=h(2);return k(r.onClickEvent())}),p(1,"mat-card-header",13)(2,"mat-card-title",14),_(3,"app-login",15,0),m()(),x(5,Dfe,1,5,"img",16),p(6,"mat-card-content",17),E(7),m()()}if(t&2){let e=J(4),i=h().$implicit,r=h();xc("routerLink",i.route),c(5),b(i.image?5:-1),c(2),R(" ",e.isAuthenticated?r.translationService.getTranslation("landing_logout"):r.translationService.getTranslation("landing_login")," ")}}function Mfe(t,n){if(t&1){let e=B();p(0,"img",18),T("error",function(r){A(e);let o=h(2).$implicit,a=h();return k(a.onImgError(r,o.image.src))}),m()}if(t&2){let e=h(2).$implicit,i=h();f("ngSrc",e.image.src)("width",i.imageService.width)("height",i.imageService.height)("priority",!0)("alt",e.image.altText)}}function Ife(t,n){if(t&1){let e=B();p(0,"mat-card",19),T("click",function(){A(e);let r=h().$implicit,o=h();return k(o.navigateToRoute(r))}),p(1,"mat-card-header",13)(2,"mat-card-title",14),E(3),m()(),x(4,Mfe,1,5,"img",16),p(5,"mat-card-content",17),E(6),m()()}if(t&2){let e=h().$implicit;
641c(3),R(" ",e.title," "),c(),b(e.image?4:-1),c(2),R(" ",e.description," ")}}function Afe(t,n){if(t&1&&(p(0,"div",9),x(1,Tfe,8,3,"mat-card",10)(2,Ife,7,3,"mat-card",11),m()),t&2){let e=n.$implicit,i=h();f("className",(i.hasCustomResponsivClasses()?i.getCustomResponsivClasses():"col-12 col-md-6 col-lg-4")+" mb-4 landing-page__card-container"),c(),b(e.isLogIn?1:2)}}var JH=(()=>{class t{constructor(){this.translationService=d(Y),this.configService=d(Ce),this.loginService=d(ft),this.redirectService=d(Ln),this.router=d(et),this.vHostService=d(Ai),this.landingPageService=d(Wi),this.imageHandler=d(Wr),this.imageService=d(Ei),this.cards=[],this.cssPropertyPipe=new Bn,this.isAuthenticated=!1,this.CssPropertiesEnum=tt,this.loginService.getAuthData().subscribe(e=>{this.isAuthenticated=!!e,this.buildCards()}),this.landingPageService.getLandingPages().subscribe(e=>{e&&e.length>0&&(this.pages=e,this.buildCards())})}buildCards(){this.cards=[],this.pages?.forEach(e=>{e.showOnLandingpage&&(e.showAfterLogin&&this.isAuthenticated||e.showBeforeLogin&&!this.isAuthenticated)&&this.cards.push({title:e.description,image:this.imageHandler.addAltText(e.file,e.description??this.translationService.getTranslation("landingPage.image.altText.default")),description:e.extendedDescription,route:e.link!=="login"?e.isExtern?e.externLink:e.link:null,extern:e.isExtern,isLogIn:e.link==="login"})})}ngOnInit(){let e=this.router.url.split("/")[1];this.landingPageService.getPageOfUrl(e).subscribe(i=>{this.actualPage=i})}onClickEvent(){this.loginComponent.onClickEvent()}onImgError(e,i){e.target.src=i}navigateToRoute(e){e.extern?this.redirectService.redirect(e.route,!0):this.router.navigate([e.route],{queryParamsHandling:"preserve"})}hasCustomResponsivClasses(){return!!this.getCustomResponsivClasses()}getCustomResponsivClasses(){let e=this.cssPropertyPipe.transform,i=["col-"+e(tt.landingFxFlex,this.vHostService),"col-sm-"+e(tt.landingFxFlexSM,this.vHostService),"col-md-"+e(tt.landingFxFlexMD,this.vHostService),"col-lg-"+e(tt.landingFxFlexLG,this.vHostService),"col-xl-"+e(tt.landingFxFlexXL,this.vHostService),"col-xxl-"+e(tt.landingFxFlexXXL,this.vHostService)].join(" ");return/\d/.test(i)?i:""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-landing-page"]],viewQuery:function(i,r){if(i&1&&De(xfe,5),i&2){let o;se(o=le())&&(r.loginComponent=o.first)}},decls:4,vars:2,consts:[["login",""],[1,"offerView","offer-view"],[1,"landingPage","landing-page"],[1,"row","landing-page__row"],[3,"className",4,"ngFor","ngForOf"],[1,"mb-5","offer-view__image-container"],[1,"offer-view__image",3,"ngSrc","width","height","priority","alt"],[1,"mb-5","offer-view__description-container"],[1,"offerViewDescription","offer-view__description",3,"innerHtml"],[3,"className"],["appearance","outlined",1,"pointer","h-100","landing-page__card","landing-page__card--login",3,"routerLink"],["appearance","outlined",1,"pointer","h-100","landing-page__card"],["appearance","outlined",1,"pointer","h-100","landing-page__card","landing-page__card--login",3,"click","routerLink"],[1,"landing-page__card-header"],[1,"landing-page__card-title"],[1,"landing-page__login"],["mat-card-image","",1,"landing-page__card-image",3,"ngSrc","width","height","priority","alt"],[1,"landing-page__card-content"],["mat-card-image","",1,"landing-page__card-image",3,"error","ngSrc","width","height","priority","alt"],["appearance","outlined",1,"pointer","h-100","landing-page__card",3,"click"]],template:function(i,r){i&1&&(x(0,Efe,6,4,"div",1),p(1,"div",2)(2,"div",3),x(3,Afe,3,2,"div",4),m()()),i&2&&(b(r.actualPage?0:-1),c(3),f("ngForOf",r.cards))},dependencies:[at,Lo,Bl,Fv,is,Rt,V_,Li,XH,cn],styles:[`.pointer[_ngcontent-%COMP%]{cursor:pointer}.landingPage[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:contain;background-size:100%,contain}.offerView[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:1095px} 642/*# sourceMappingURL=landing-page.component-F5APJEK5.css.map */`]})}}return t})();var eV=(()=>{class t{constructor(){this.router=d(et)}canActivate(e,i){let r=Rn.USE_LANDING_PAGE;return j(r).pipe(F(()=>r?!0:this.router.createUrlTree(["/"])))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Qi=(()=>{class t{constructor(){this.configService=d(Ce)}resolve(e,i){let r=e.data.config,o=[],a=!1;if(r.forEach(s=>{this.configService.getConfig(s)||(a=!0,o.push(this.configService.loadConfig(s)))}),a)return _n(o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nb=class{constructor(n,e,i,r){this.userBackendId=n,this.address=e,this.person=i,this.emailList=r}};var Rb=class{constructor(){this.hasDocument=!1,this.credit=!1}};var Fb=(()=>{class t{constructor(){this.http=d(Be),this.sanitizer=d(En),this.datePipe=d(Le),this.documentToBlob=new Map}getInvoiceInfos(e,i,r,o){let a=[],s="/webabo/users/invoices?page="+e+"&pageSize="+i;return r&&(s=s+"&after="+this.datePipe.transform(r,"yyyy-MM-dd")),o&&(s=s+"&before="+this.datePipe.transform(o,"yyyy-MM-dd")),this.http.get(s).pipe(F(l=>(l.content.forEach(g=>{let v=new Rb;v.invoiceNo=g.invoiceNo,v.invoiceDate=new Date(g.invoiceDate),v.invoiceDocumentId=g.invoiceDocumentId,v.invoiceAmount=g.invoiceAmount,v.credit=g.credit,v.hasDocument=g.invoiceDocumentId.length>0,v.invoiceDocumentId=g.invoiceDocumentId,v.hasDocument&&(this.documentToBlob.has(v.invoiceDocumentId)?v.invoiceDocumentUrl=this.documentToBlob.get(v.invoiceDocumentId):this.loadDocument(v).subscribe(w=>{v.invoiceDocumentUrl=w,this.documentToBlob.set(v.invoiceDocumentId,w)})),a.push(v)}),a)))}loadDocument(e){if(e.hasDocument){let i="/webabo/users/invoices/documents/"+e.invoiceDocumentId+"/"+this.datePipe.transform(e.invoiceDate,"yyyy-MM-dd");return this.http.get(this.sanitizer.sanitize(en.URL,i),{headers:{accept:"application/pdf"},responseType:"blob"}).pipe(F(r=>this.sanitizer.bypassSecurityTrustResourceUrl(URL.createObjectURL(r))))}else return ht}validateCustomerUnauthorized(e,i,r){let o="/webabo/users/validateCustomerInformation/unauthorized/"+e+"?val
642idationFactor="+i+"&customerValue="+r;return this.http.get(o).pipe(F(a=>a))}getTotalNumberOfInvoices(){return this.http.get("/webabo/users/invoices?page=0&pageSize=1").pipe(F(e=>e.totalElements))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function kfe(t,n){if(t&1&&(p(0,"mat-hint",8),E(1),m()),t&2){h();let e=J(4);c(),Pe("",e.value.length,"/ ",e.maxLength," ")}}function Ofe(t,n){if(t&1){let e=B();p(0,"button",10),T("click",function(){A(e);let r=h(2);return k(r.validateClientAndEmit())}),p(1,"mat-icon",11),E(2,"search"),m()()}}function Pfe(t,n){if(t&1){let e=B();p(0,"div",1)(1,"mat-form-field",5),_(2,"mat-label",6),p(3,"input",7,0),T("input",function(){A(e);let r=h();return k(r.loadClient())}),wn("ngModelChange",function(r){A(e);let o=h();return Nn(o.clientno,r)||(o.clientno=r),k(r)}),m(),x(5,kfe,2,2,"mat-hint",8)(6,Ofe,3,0,"button",9),m()()}if(t&2){let e=J(4),i=h();c(2),f("innerHTML",i.translationService.getTranslation("label_backendid"),y),c(),xn("ngModel",i.clientno),c(2),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?5:-1),c(),b(i.validationIsActive?-1:6)}}function Nfe(t,n){if(t&1){let e=B();p(0,"button",10),T("click",function(){A(e);let r=h(2);return k(r.loadClientNl())}),p(1,"mat-icon",11),E(2,"search"),m()()}}function Rfe(t,n){if(t&1){let e=B();p(0,"div",2)(1,"div",12)(2,"mat-form-field",5),_(3,"mat-label",6),p(4,"input",13),wn("ngModelChange",function(r){A(e);let o=h();return Nn(o.zipCode,r)||(o.zipCode=r),k(r)}),T("keyup",function(){A(e);let r=h();return k(r.validateZipCodeNL())}),m(),p(5,"mat-hint",14),E(6),m(),p(7,"mat-error",15),E(8),m()()(),p(9,"div",12)(10,"mat-form-field",5),_(11,"mat-label",6),p(12,"input",16),wn("ngModelChange",function(r){A(e);let o=h();return Nn(o.houseNumber,r)||(o.houseNumber=r),k(r)}),T("keyup",function(){A(e);let r=h();return k(r.validateHouseNoNL())}),m(),p(13,"mat-hint",14),E(14),m(),p(15,"mat-error",15),E(16),m(),x(17,Nfe,3,0,"button",9),m()()()}if(t&2){let e=h();c(3),f("innerHTML",e.translationService.getTranslation("address_postcode"),y),c(),xn("ngModel",e.zipCode),c(2),R("",e.translationService.getTranslation("clientSearch_helper_postcode")," "),c(2),R("",e.translationService.getTranslation("clientSearch_helper_postcode")," "),c(3),f("innerHTML",e.translationService.getTranslation("address_houseno"),y),c(),xn("ngModel",e.houseNumber),c(2),R("",e.translationService.getTranslation("clientSearch_helper_houseNo")," "),c(2),R("",e.translationService.getTranslation("clientSearch_helper_houseNo")," "),c(),b(e.zipCodeNlValid&&e.houseNoNlValid?17:-1)}}function Ffe(t,n){if(t&1&&(p(0,"mat-form-field",18),_(1,"mat-label",6)(2,"input",19),m()),t&2){let e=n.$implicit,i=h(2);f("ngClass",i.validationFactors.length===1?"col-12":"col-12 col-md-6"),c(),f("innerHTML",i.translationService.getTranslation(e!="zipcode"?"address_"+e:"address_postcode"),y),c(),xc("formControlName",e)}}function Lfe(t,n){if(t&1){let e=B();p(0,"div",2)(1,"div",20)(2,"button",21),T("click",function(){A(e);let r=h(2);return k(r.validateClientAndEmit())}),E(3),m()()()}if(t&2){let e=h(2);c(3),R("",e.translationService.getTranslation("find_subscriptions")," ")}}function Bfe(t,n){if(t&1){let e=B();p(0,"div",2)(1,"form",17),T("ngSubmit",function(){A(e);let r=h();return k(r.validateClientAndEmit())}),W(2,Ffe,3,3,"mat-form-field",18,X),m(),x(4,Lfe,4,1,"div",2),m()}if(t&2){let e=h();c(),f("formGroup",e.validationForm),c(),q(e.validationFactors),c(2),b(!e.isLoading&&!e.validationSuccessful?4:-1)}}function Hfe(t,n){if(t&1&&(p(0,"div",3)(1,"div",22),_(2,"div",23),m()()),t&2){let e=h();c(2),f("innerHTML",e.translationService.getTranslation("complaint_cannot_find_clientno"),y)}}function Vfe(t,n){t&1&&(p(0,"div",4),_(1,"app-loading-spinner",24),m()),t&2&&(c(),f("type","small"))}var tV=(()=>{class t{constructor(){this.translationService=d(Y),this.subscriptionService=d(ct),this.customerService=d(Fb),this.configService=d(Ce),this.localeService=d(Du),this.houseNoPipe=d(Di),this.validateButtonClick=new z,this.clientSelected=!1,this.inputInvalid=!1,this.zipCodeNlValid=!1,this.houseNoNlValid=!1,this.validationIsActive=!0,this.validationSuccessful=!1,this.onlyOneResult=!0,this.clientnoNotFound=!1,this.isLoading=!1,this.document=typeof document=="object"?document:null;let e=this.localeService.getDefaultCountry();this.defaultCountry=e.split("_")[0];let i=this.configService.getConfig("client.validation-factors");i.value!=""?this.validationFactors=i.value.replace(/ /g,"").split(","):this.validationIsActive=!1,this.validationForm=new Uo({firstname:new dn(""),lastname:new dn(""),street:new dn(""),zipcode:new dn(""),city:new dn(""),houseno:new dn("")})}loadClient(){return li(this,null,function*(){this.isLoading=!0,this.clientno.toString()!=""&&(this.clientnoNotFound=!1,this.onlyOneResult=!0,this.clientSelected=!0),this.isLoading=!1})}loadClientNl(){return li(this,null,function*(){if(this.isLoading=!0,this.zipCode&&this.zipCode!==""&&this.houseNumber&&this.houseNumber!==""){this.clientSelected=!0;let e=this.buildAddressListObject();e.address.zipcode=this.zipCode,e.address.houseno=this.houseNumber,this.subscriptionService.fillCustomerUnauthorized(e).subscribe(i=>{this.clientnoNotFound=!1,i&&i.length>0?(this.onlyOneResult=i.length===1,i.length===1?(this.customer=i[0],this.validateButtonClick.emit(this.customer.userBackendId)):this.customers=i):this.clientnoNotFound=!0,this.isLoading=!1})}else this.clientSelected=!1})}buildAddressListObject(){let e=new Do(null,null,null,null,null,null,null,null,null,null,null,null,null),i=new os(null,null,null,null,null,null,null,null);return new Nb(null,e,i,null)}validateClientAndEmit(){return li(this,null,function*(){if(this.validationIsActive){if(this.isLoading=!0,this.customers)if(this.onlyOneResult)this.inputInvalid=!0;else{let e=!1;for(let i of this.customers){let r=this.validateCustomer(i),o=this.isEveryFactorValid(yield r);e||(e=o),o&&(this.validateButtonClick.emit(i.userBackendId),this.inputInvalid=!1)}e||(this.inputInvalid=!0)}else{let e=this.validateCustomer(null);this.isEveryFactorValid(yield e)?(this.validateButtonClick.emit(this.clientno),this.inputInvalid=!1):this.inputInvalid=!0}this.validationSuccessful=!this.inputInvalid,this.isLoading=!1}else this.validateButtonClick.emit(this.clientno)})}isEveryFactorValid(e){return e.every(i=>i==!0)}validateCustomer(e){return li(this,null,function*(){let i=[];i.splice(0,i.length);for(let r=0;r<this.validationFactors.length;r++)if(e!=null)i.push(this.customerInformationIsValid(this.validationFactors.at(r),e));else{let o=this.validationFactors.at(r),a,s=this.validationForm.get(o).value;o==="houseno"&&(s=this.houseNoPipe.transform(s)),i.push(yield ec(this.customerService.validateCustomerUnauthorized(this.clientno,o,s)))}return i})}customerInformationIsValid(e,i){let r;return i.person[e]!=null?r=i.person[e]:i.address[e]!=null&&(r=i.address[e]),e==="houseno"&&(r=this.houseNoPipe.transform(r)),this.defaultCountry==="NL"&&e.endsWith("name")?r.toString().toUpperCase()===this.validationForm.get(e).value.toString().toUpperCase():r===this.validationForm.get(e).value}validateZipCodeNL(){this.zipCode=this.zipCode.toUpperCase();let e=this.zipCode.substring(0,4).replace(/[^0-9]*/g,"");this.zipCode=e+this.zipCode.substring(4,6).replace(/[^A-Za-z]*/g,""),this.zipCodeNlValid=/^\d{4}[A-Z]{2}$/g.test(this.zipCode)}validateHouseNoNL(){this.houseNumber=this.houseNumber.substring(0,5).replace(/[^0-9]*/g,""),this.houseNoNlValid=/^\d{1,5}$/g.test(this.houseNumber)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-client-search"]],inputs:{isLoading:"isLoading"},outputs:{validateButtonClick:"validateButtonClick"},features:[_e([Di])],decls:5,vars:4,consts:[["clientNo",""],[1,"client-search__block"],[1,"client-search__row","row"],[1,"client-search__alert","alert","alert-warning","row","mb-2","mt-3"],[1,"client-search__loading",2,"text-align","center"],["appearance","fill",1,"client-search__form-field"],[1,"client-search__label",3,"innerHTML"],["maxLength","50","matInput","","type","text",1,"client-search__input",3,"input","ngModelChange","ngModel"],["align","end",1,"client-search__hint"],["matSuffix","","mat-icon-button","",1,"client-search__button"],["matSuffix","","mat-icon-button","",1,"client-search__button",3,"click"],[1,"client-search__icon"],[1,"client-search__col","col-6"],["matInput","","type","text","pattern","\\d{4}[A-Z]{2}",1,"client-search__input",3,"ngModelChange","keyup","ngModel"],[1,"client-search__hint"],[1,"client-search__error"],["matInput","","type","text","pattern","\\d{1,5}",1,"client-search__input",3,"ngModelChange","keyup","ngModel"],[1,"client-search__form","searchForm",3,"ngSubmit","formGroup"],["appearance","fill",1,"client-search__form-field",3,"ngClass"],["matInput","","type","text",1,"client-search__input",3,"formControlName"],[1,"client-search__col","col-3"],["mat-raised-button","","color","primary",1,"client-search__button",3,"click"],[1,"client-search__col","col-12"],[1,"client-search__alert-text",3,"innerHTML"],[3,"type"]],template:function(i,r){i&1&&x(0,Pfe,7,4,"div",1)(1,Rfe,18,9,"div",2)(2,Bfe,5,2,"div",2)(3,Hfe,3,1,"div",3)(4,Vfe,2,1,"div",4),i&2&&(b(r.defaultCountry!=="NL"?0:1),c(2),b((r.validationIsActive&&r.defaultCountry!=="NL"||r.defaultCountry==="NL"&&r.validationIsActive&&!r.onlyOneResult)&&r.clientSelected?2:-1),c(),b(r.clientnoNotFound||r.inputInvalid?3:-1),c(),b(r.isLoading?4:-1))},dependencies:[Nt,fn,$o,wi,Bt,At,Wt,tE,js,Ot,bt,Ut,tn,Ge,Ee,ei,Pl,Pt,qi,Ht],styles:[`.searchForm[_ngcontent-%COMP%]{padding-left:unset!important}
643/*# sourceMappingURL=client-search.component-44NNQVGA.css.map */`]})}}return t})();function jfe(t,n){if(t&1&&_(0,"h3",7),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("complaint_intro"),y)}}function zfe(t,n){if(t&1&&_(0,"p",5),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("complaint_deactivated_description"),y)}}function Ufe(t,n){if(t&1){let e=B();p(0,"div",16)(1,"button",18),T("click",function(){A(e);let r=h(3);return k(r.navigateToIdentification())}),m()()}if(t&2){let e=h(3);c(),f("innerHTML",e.translationService.getTranslation("button_toIdentificationForm"),y)}}function Gfe(t,n){t&1&&(p(0,"div",17),_(1,"app-loading-spinner"),m())}function $fe(t,n){if(t&1&&(ni(0,13),x(1,Ufe,2,1,"div",16)(2,Gfe,2,0,"div",17),Jt()),t&2){let e=h(2);c(),b(e.identified?-1:1),c(),b(e.isLoadingSub?2:-1)}}function Wfe(t,n){if(t&1&&(p(0,"mat-error"),E(1),m()),t&2){let e=h(3);c(),he(e.clientNoForm.get("clientNo").getError("message"))}}function qfe(t,n){if(t&1){let e=B();p(0,"app-client-search",19),T("validateButtonClick",function(r){A(e);let o=h(2);return k(o.loadOrdersForClientno(r))}),x(1,Wfe,2,1,"mat-error"),m()}if(t&2){let e=h(2);f("isLoading",e.isLoadingSub),c(),b(e.clientNoForm.get("clientNo").hasError("message")?1:-1)}}function Yfe(t,n){if(t&1&&_(0,"div",15),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("complaint_cannot_find_clientno"),y)}}function Kfe(t,n){if(t&1&&_(0,"div",26),t&2){let e=h(4);f("innerHTML",e.translationService.getTranslation("no_order_id"),y)}}function Qfe(t,n){if(t&1&&(p(0,"div",27),E(1),m()),t&2){let e=h().$implicit;c(),he(e.backendId)}}function Zfe(t,n){if(t&1&&(p(0,"div",24)(1,"div",25),_(2,"div",26),p(3,"div",27),E(4),m()()()),t&2){let e=h().$implicit,i=h(3);c(2),f("innerHTML",i.translationService.getTranslation("order_edition"),y),c(2),he(e.variantDescription)}}function Xfe(t,n){if(t&1){let e=B();p(0,"mat-card",20)(1,"div",21)(2,"div",22)(3,"mat-card-title"),E(4),m(),p(5,"div",23)(6,"div",24)(7,"div",25),_(8,"div",26),p(9,"div",27),E(10),m()()(),p(11,"div",24)(12,"div",25),_(13,"div",26),x(14,Kfe,1,1,"div",26)(15,Qfe,2,1,"div",27),m()(),x(16,Zfe,5,2,"div",24),p(17,"div",24)(18,"div",25),_(19,"div",26),p(20,"div",27),E(21),m()()(),p(22,"div",24)(23,"div",25),_(24,"div",26),p(25,"div",27),E(26),m()()(),p(27,"div",24)(28,"div",25),_(29,"div",27),p(30,"div",27),E(31),m()()()()(),p(32,"div",28)(33,"mat-card-actions")(34,"button",29),T("click",function(){let r=A(e).$implicit,o=h(3);return k(o.onNewComplaint(r))}),m()()()()()}if(t&2){let e=n.$implicit,i=h(3);c(4),he(e.productDescription),c(4),f("innerHTML",i.translationService.getTranslation("label_backendid"),y),c(2),he(e.userBackendId),c(3),f("innerHTML",i.translationService.getTranslation("order_id"),y),c(),b(e.backendId<=0?14:-1),c(),b(e.backendId>0?15:-1),c(),b(e.variantDescription?16:-1),c(3),f("innerHTML",i.translationService.getTranslation("order_product"),y),c(2),R("",e.productDescription?e.productDescription:e.productCode," "),c(3),f("innerHTML",i.translationService.getTranslation("address_delivery"),y),c(2),Pe(" ",e.deliveryAddressList.values().next().value.address.street," ",i.houseNoPipe.transform(e.deliveryAddressList.values().next().value.address.houseno)," "),c(5),Pe(" ",e.deliveryAddressList.values().next().value.address.zipcode," ",e.deliveryAddressList.values().next().value.address.city," "),c(3),f("innerHTML",i.translationService.getTranslation("button_new_complaint"),y)}}function Jfe(t,n){if(t&1&&W(0,Xfe,35,15,"mat-card",20,X),t&2){let e=h(2);q(e.orders)}}function ehe(t,n){if(t&1&&(_(0,"p",8),p(1,"div",9)(2,"div",10),_(3,"app-general-errors",11),p(4,"div",12),x(5,$fe,3,2,"ng-container",13)(6,qfe,2,2,"app-client-search",14)(7,Yfe,1,1,"div",15)(8,Jfe,2,0),m()()()),t&2){let e=h();f("innerHTML",e.identified?e.translationService.getTranslation("complaint_description"):e.translationService.getTranslation("unauthorized_provideInfo_description"),y),c(3),f("errors",e.errorsArr),c(2),b(e.useIdentificationForm?5:6),c(2),b(e.noOrdersFound?7:-1),c(),b(!e.isLoadingComp&&!e.isLoadingSub&&e.orders.length>0?8:-1)}}function the(t,n){if(t&1){let e=B();p(0,"div",6)(1,"div",30),_(2,"div",31),m(),p(3,"button",32),T("click",function(){A(e);let r=h();return k(r.navigateToContact())}),m()()}if(t&2){let e=h();
643c(2),f("innerHTML",e.translationService.getTranslation("complaint_noClientno"),y),c(),f("innerHTML",e.translationService.getTranslation("complaint_ToContactForm"),y)}}var FD=(()=>{class t{constructor(){this.translationService=d(Y),this.formBuilder=d(kt),this.subscriptionService=d(ct),this.baseDataService=d(vt),this.navigationService=d(Re),this.landingPageService=d(Wi),this.redirectService=d(Ln),this.route=d(Ye),this.configService=d(Ce),this.houseNoPipe=d(Di),this.errorsArr=[],this.isMobile=!1,this.orders=[],this.isLoadingComp=!1,this.isLoadingSub=!1,this.isDeactivated=!1,this.noOrdersFound=!1,this.showContactFormOnComplaintViewWithoutLogin=!0,this.useIdentificationForm=!1,this.identified=!1,this.SHOW_PREVIEW_IF_SINGLE_SUBSCRIPTION="complaint.singleSubscription.showPreview",this.showPreviewIfSingleSubscription=ee(!1),this.clientNoForm=this.formBuilder.group({clientNo:["",Z.required]}),this.showContactFormOnComplaintViewWithoutLogin=this.configService.getConfig("showContactFormOnComplaintViewWithoutLogin")?.asBoolean();let e=this.configService.getConfig(this.SHOW_PREVIEW_IF_SINGLE_SUBSCRIPTION)?.asBoolean()??!1;this.showPreviewIfSingleSubscription.set(e),this.useIdentificationForm=this.configService.getConfig("withoutLogin.useIdentificationForm")?.asBoolean(),this.route.paramMap.subscribe(r=>{let o=Number(r.get("clientNo"));o&&(this.identified=!0,this.loadOrdersForClientno(o))});let i=this.configService.getConfig("complaint.deactivate.begin");if(i){let r=this.configService.getConfig("complaint.deactivate.end"),o=i.value.split(",",3),a=r.value.split(",",3);this.isDeactivated=this.isTodayBetweenWeekdays(+o[0],+o[1],+o[2],+a[0],+a[1],+a[2])}}isTodayBetweenWeekdays(e,i,r,o,a,s){let l=new Date,u=l.getDay(),g=l.getHours()*60+l.getMinutes(),v=e*1440+i*60+r,w=o*1440+a*60+s,C=u*1440+g;return v<=w?C>=v&&C<=w:C>=v||C<=w}loadOrdersForClientno(e){this.isLoadingSub=!0,this.orders=[],this.noOrdersFound=!1,e&&Number(e)>0&&this.subscriptionService.getSubscriptionsUnauthorized(e).subscribe(i=>{this.isLoadingSub=!1;let r=[];i.forEach(o=>{o.validDate.validFrom<=new Date&&r.push(o)}),r.length===1&&r[0]&&!this.showPreviewIfSingleSubscription()?this.onNewComplaint(r[0]):r.length===1&&r[0]&&this.showPreviewIfSingleSubscription()||r.length>1?r.forEach(o=>{this.baseDataService.handleUnauthorizedOrder(o),o.variantDescription||this.baseDataService.loadBaseData("variantcode").subscribe(a=>{a?.forEach(s=>{s.key===o.variantCode&&(o.variantDescription=s.description)})}),this.orders.push(o)}):this.noOrdersFound=!0})}onNewComplaint(e){this.navigationService.navigateTo(ge.COMPLAINTWITHOUTLOGINNEW,[e.backendId+"",e.userBackendId+"","true","true",si(e.offer?.offerType)||si(e.subscriptionType)?"false":"true"])}navigateToContact(){this.navigateTo(ge.CONTACT)}navigateToIdentification(){this.navigateTo(ge.IDENTIFICATION,[ge.COMPLAINT.substring(1)])}navigateTo(e,i=[]){this.landingPageService.getLandingPages().subscribe(r=>{let o=null;r.forEach(a=>{a&&e.endsWith(a.link)&&(o=a)}),o&&o.isExtern?this.redirectService.redirect(o.externLink,!0):this.navigationService.navigateTo(e,i)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-complaint-wihtout-login"]],features:[_e([Di])],decls:8,vars:4,consts:[["id","complaintNoSubscriptionHeader",1,"complaint-no-login__row"],[1,"complaint-no-login__header","col-12"],["class","complaint-no-login__intro",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"complaint-no-login__card","mt-3"],[1,"complaint-no-login__content"],[1,"complaint-no-login__deactivated-description","col-12","mb-3",3,"innerHTML"],[1,"complaint-no-login__contact"],[1,"complaint-no-login__intro",3,"innerHTML"],[1,"complaint-no-login__description","col-12","mb-3",3,"innerHTML"],[1,"complaint-no-login__row","row"],[1,"complaint-no-login__errors","col-12"],[3,"errors"],["id","complaintNoSubscription",1,"complaint-no-login__form"],[1,"complaint-no-login__identification-form","col-12"],[1,"complaint-no-login__client-search",3,"isLoading"],[1,"complaint-no-login__no-orders","mb-3",3,"innerHTML"],[1,"complaint-no-login__identification-btn","col-12"],[1,"complaint-no-login__spinner",2,"text-align","center"],["mat-flat-button","",1,"complaint-no-login__to-identification-btn","btn","btn-secondary",3,"click","innerHTML"],[1,"complaint-no-login__client-search",3,"validateButtonClick","isLoading"],["appearance","outlined",1,"complaint-no-login__order-card","mt-3"],[1,"complaint-no-login__order-row","row","m-3"],[1,"complaint-no-login__order-details","col-6"],[1,"complaint-no-login__order-info","row"],[1,"form-group","col-12"],[1,"row"],[1,"col-6",3,"innerHTML"],[1,"col-6"],[1,"complaint-no-login__order-actions","col-6"],["mat-raised-button","","color","primary",1,"complaint-no-login__new-complaint-btn",3,"click","innerHTML"],[1,"complaint-no-login__contact-row","row","mt-3","mb-3"],[1,"complaint-no-login__contact-info","col-12","mb-2",3,"innerHTML"],["ngSkipHydration","","mat-flat-button","",1,"complaint-no-login__contact-btn","btn","btn-secondary","float-end",3,"click","innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,jfe,1,1,"h3",2),m(),p(3,"mat-card",3)(4,"mat-card-content",4),x(5,zfe,1,1,"p",5)(6,ehe,9,5)(7,the,4,2,"div",6),m()()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("c
643omplaint_intro")),c(3),b(r.isDeactivated?5:-1),c(),b(r.isDeactivated?-1:6),c(),b(r.showContactFormOnComplaintViewWithoutLogin&&!r.isLoadingComp&&!r.isLoadingSub&&r.orders.length==0?7:-1))},dependencies:[Vt,Ee,Ge,tV,Ht,at,Li,hr,Rt,ze],styles:[`.smallOrderList[_ngcontent-%COMP%]{padding-inline-start:40px}.card-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin:0} 644/*# sourceMappingURL=complaint-wihtout-login.component-24JYKUUO.css.map */`]})}}return t})();var iV=(()=>{class t{transform(e){return e&&e.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Pn({name:"stripHtml",type:t,pure:!0})}}return t})();function ihe(t,n){return this.price}function nhe(t,n){t&1&&(p(0,"div",0),_(1,"app-loading-spinner"),m())}function rhe(t,n){if(t&1&&_(0,"h3",14),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("offer_ordered_title"),y)}}function ohe(t,n){if(t&1&&_(0,"div",4),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("offer_ordered_no_logged_in_user"),y)}}function ahe(t,n){if(t&1&&_(0,"div",6),t&2){let e=h(2);f("innerHTML",e.offer==null?null:e.offer.confirmationText,y)}}function she(t,n){if(t&1&&_(0,"img",7),t&2){let e=h(2);f("ngSrc",e.offer.confirmationImage.src)("width",e.imageService.width)("height",e.imageService.height)("priority",!0)("alt",e.offer.confirmationImage.altText)}}function lhe(t,n){if(t&1&&(_(0,"div",15),p(1,"div",16),E(2),m()),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("order_object")+" / "+e.translationService.getTranslation("order_edition"),y),c(2),Pe("",e.order.productDescription," / ",e.order.variantDescription," ")}}function che(t,n){if(t&1&&(_(0,"div",17),p(1,"div",18),E(2),m()),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("address_delivery"),y),c(2),E_(" ",e.order.curDelivery.person.addressCodeDescription," ",e.order.curDelivery.person.firstname," ",e.order.curDelivery.person.lastname," ",e.order.curDelivery.address.street," ",e.order.curDelivery.address.country==="A"?e.order.curDelivery.address.houseno+" "+e.order.curDelivery.address.stock+" "+e.order.curDelivery.address.stiege+" "+e.order.curDelivery.address.tuer:e.order.curDelivery.address.houseno," ",e.order.curDelivery.address.zipcode," ",e.order.curDelivery.address.city," ")}}function dhe(t,n){if(t&1&&(_(0,"div",19),p(1,"div",20),E(2),m()),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("address_billing"),y),c(2),E_(" ",e.order.curBilling.person.addressCodeDescription," ",e.order.curBilling.person.firstname," ",e.order.curBilling.person.lastname," ",e.order.curBilling.address.street," ",e.order.curBilling.address.country==="A"?e.order.curBilling.address.houseno+" "+e.order.curBilling.address.stock+" "+e.order.curBilling.address.stiege+" "+e.order.curBilling.address.tuer:e.order.curBilling.address.houseno," ",e.order.curBilling.address.zipcode," ",e.order.curBilling.address.city," ")}}function uhe(t,n){if(t&1&&(p(0,"span",23),E(1),te(2,"bankAccount"),m()),t&2){let e=h(3);c(),R(" ",Ct(2,1,e.translationService.getTranslation("payment_iban")+": "+(e.order.curPayment.bank==null?null:e.order.curPayment.bank.swiftIBAN))," ")}}function phe(t,n){if(t&1&&(_(0,"div",21),p(1,"div",22),E(2),_(3,"br"),x(4,uhe,3,3,"span",23),m()),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("payment_type"),y),c(2),Pe(" ",e.order.curPayment==null||e.order.curPayment.paymentType==null?null:e.order.curPayment.paymentType.payMentMethodDescription," / ",e.order.curPayment.paymentType.paymentFrequencyDescription," "),c(2),b(!(e.order.curPayment==null||e.order.curPayment.bank==null)&&e.order.curPayment.bank.swiftIBAN?4:-1)}}function mhe(t,n){if(t&1&&(_(0,"div",24),p(1,"div",25),E(2),te(3,"stripHtml"),m()),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("order_product"),y),c(2),he(Ct(3,2,e.offer.description))}}function fhe(t,n){if(t&1&&(_(0,"div",31),te(1,"number")),t&2){let e=h(2).$implicit,i=h(3);f("innerHTML",i.translationService.getTranslation("price_delivery")+" "+Te(1,1,e==null?null:e.porto,"1.2-2")+" "+e.currency+" "+e.portoDescription,y)}}function hhe(t,n){if(t&1&&(p(0,"div",28),E(1),te(2,"number"),x(3,fhe,2,4,"div",31),m()),t&2){let e=h().$implicit;c(),Pe(" ",Te(2,3,e==null?null:e.price,"1.2-2")," ",e.currency," "),c(2),b(e.porto?3:-1)}}function ghe(t,n){if(t&1&&(p(0,"div",29),E(1),m()),t&2){let e=h().$implicit;c(),he(e==null?null:e.priceText)}}function _he(t,n){if(t&1&&(x(0,hhe,4,6,"div",28)(1,ghe,2,1,"div",29),_(2,"div",30)),t&2){let e=h(3);b(e.offer!=null&&e.offer.priceCalculationActivated?0:1)}}function vhe(t,n){if(t&1&&(_(0,"div",26),W(1,_he,3,1,null,null,ihe,!0),_(3,"div",27)),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("price"),y),c(),q(e.price),c(2),f("innerHTML",e.offer==null?null:e.offer.additionalPriceDescription,y)}}function bhe(t,n){if(t&1&&(_(0,"div",32),p(1,"div",33),E(2),m()),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("gift_name"),y),c(2),he(e.order.selectedGiftList[0].name)}}function yhe(t,n){if(t&1&&(_(0,"div",34),p(1,"div",35),E(2),m()),t&2){let e=h(2);
644f("innerHTML",e.translationService.getTranslation("commitment_date"),y),c(2),he(e.order.commitmentDate)}}function Che(t,n){if(t&1&&(p(0,"div",11),E(1),m()),t&2){let e=h(2);c(),R(" Sie werden in ",e.timeUntilRedirectSeconds," Sekunden weiter geleitet. ")}}function She(t,n){if(t&1){let e=B();p(0,"mat-card",1),x(1,rhe,1,1,"h3",2),_(2,"div",3),x(3,ohe,1,1,"div",4),p(4,"div",5),x(5,ahe,1,1,"div",6)(6,she,1,5,"img",7),m(),p(7,"div",8),x(8,lhe,3,3),ni(9),_(10,"div",9),p(11,"div",10),E(12),te(13,"date"),te(14,"date"),m(),Jt(),x(15,che,3,8)(16,dhe,3,8)(17,phe,5,4)(18,mhe,4,4)(19,vhe,4,2)(20,bhe,3,2)(21,yhe,3,2),m(),x(22,Che,2,1,"div",11),ni(23),p(24,"div",12)(25,"button",13),T("click",function(){A(e);let r=h();return k(r.routeToOrderList())}),m()(),Jt(),m()}if(t&2){let e=h();c(),f("appApplyIfNotEmpty",e.translationService.getTranslation("offer_ordered_title")),c(),f("innerHTML",e.translationService.getTranslation("offer_ordered_description"),y),c(),b(e.isUserLoggedIn?-1:3),c(2),b(e.offer&&e.offer.confirmationText?5:-1),c(),b(e.offer&&e.offer.confirmationImage&&e.offer.confirmationImage.type?6:-1),c(2),b(e.order.productDescription&&e.order.variantDescription?8:-1),c(2),f("innerHTML",e.translationService.getTranslation("period"),y),c(2),Pe(" ",Te(13,18,e.order.validDate.validFrom,e.translationService.getTranslation("dateFormat"))," - ",Te(14,21,e.order.validDate.validUntil,e.translationService.getTranslation("dateFormat"))," "),c(3),b(e.order.curDelivery?15:-1),c(),b(e.order.curBilling?16:-1),c(),b(e.order.curPayment?17:-1),c(),b(e.offer!=null&&e.offer.description?18:-1),c(),b((e.price==null?null:e.price.length)>0||(e.offer==null||e.offer.additionalPriceDescription==null?null:e.offer.additionalPriceDescription.length)>0?19:-1),c(),b(e.order.selectedGiftList[0]!=null&&e.order.selectedGiftList[0].name?20:-1),c(),b(e.order.commitmentDate?21:-1),c(),b(e.timeUntilRedirectSeconds>0&&(e.redirectUrl==null?null:e.redirectUrl.length)>0?22:-1),c(3),f("innerHTML",e.translationService.getTranslation("button_go_to_subscription_overview"),y)}}var nV=(()=>{class t{constructor(){this.subscriptionService=d(ct),this.route=d(Ye),this.navigationService=d(Re),this.translationService=d(Y),this.baseDataService=d(vt),this.offerService=d(Qo),this.redirectService=d(Ln),this.configService=d(Ce),this.loginService=d(ft),this.platformId=d(Qe),this.imageService=d(Ei),this.isUserLoggedIn=!1,this.allPaymentFrequencies=[],this.allFormsOfPayment=[],this.allProducts=[],this.timeUntilRedirectSeconds=0,this.loading=!0}ngOnInit(){let e=this.configService,i=this.platformId;this.route.paramMap.subscribe(o=>{this.allPaymentFrequencies=this.baseDataService.getBaseData("invoicemethods"),this.allFormsOfPayment=this.baseDataService.getBaseData("paymentmethods"),this.allProducts=this.baseDataService.getBaseData("products"),nt(i)&&this.loginService.getAuthData().subscribe(a=>{a&&a.token!==null&&this.handleParams(o)},()=>{this.loading=!1})}),this.route.queryParamMap.subscribe(o=>{this.redirectUrl=o.get("redirect_URL")});let r=e.getConfig("order.timeUntilRedirect");if(this.redirectUrl?.length>0&&Number(r?.value)>0){this.timeUntilRedirectSeconds=Number(r.value);let o=Fy(1e3).subscribe(()=>{this.timeUntilRedirectSeconds=Math.max(0,--this.timeUntilRedirectSeconds),this.timeUntilRedirectSeconds==0&&o.unsubscribe()}),a=Po(this.timeUntilRedirectSeconds*1e3);this.timerSub=a.subscribe(()=>{this.redirectService.redirect(this.redirectUrl)})}}handleParams(e){this.subscriptionService.getSubscription(e.get("webId"),e.get("backendId")).subscribe({next:i=>{if(this.order=i,this.splitHouseNo(this.order.curBilling),this.splitHouseNo(this.order.curDelivery),i.paymentList?.length>0){this.order.curPayment=i.paymentList[0];let o=this.allFormsOfPayment.find(s=>s.key===this.order.curPayment.paymentType.paymentMethod);this.order.curPayment.paymentType.payMentMethodDescription=o?.description;let a=this.allPaymentFrequencies.find(s=>s.key===this.order.curPayment.paymentType.paymentFrequency);this.order.curPayment.paymentType.paymentFrequencyDescription=a?.description,this.offerService.getOfferDetail(+e.get("orderChoiceKey")).subscribe({next:s=>{this.offer=s??this.order.offer},error:()=>{this.offer=this.order.offer},complete:()=>{this.product=this.allProducts.find(s=>
644s.key===this.offer?.product?.productCode),this.loading=!1}})}else this.loading=!1;let r=i.backendId>0?i.backendId:i.webId;this.price=this.subscriptionService.getPriceForKey(r)},error:()=>{this.loading=!1}})}splitHouseNo(e){let i=e?.address;if(!i?.houseno)return;let r=i.houseno;i.houseno=Bi.getHouseNumber(r),i.stock=Bi.getStock(r),i.stiege=Bi.getStiege(r),i.tuer=Bi.getTuer(r)}routeToOrderList(){this.navigationService.navigateTo(ge.SUBSCRIPTION)}ngOnDestroy(){this.timerSub&&!this.timerSub?.closed&&this.timerSub?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-offer-ordered-overview"]],features:[_e([Le])],decls:2,vars:1,consts:[[1,"offer-ordered-overview__loading",2,"text-align","center","margin","5px"],[1,"offer-ordered-overview-detail","mt-2","offer-ordered-overview"],["class","offer-ordered-overview__title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"offer-ordered-overview__description",3,"innerHTML"],[1,"offer-ordered-overview__no-user",3,"innerHTML"],["id","orderConfirmation",1,"offer-ordered-overview__confirmation"],["id","orderConfirmationText",1,"offer-ordered-overview__confirmation-text",3,"innerHTML"],["id","orderConfirmationImage","fitImage","",1,"w-50","offer-ordered-overview__confirmation-image",3,"ngSrc","width","height","priority","alt"],[1,"row","offer-ordered-overview__row"],[1,"col-6","offer-ordered-overview__period-label",3,"innerHTML"],[1,"col-6","offer-ordered-overview__period-value"],[1,"mt-3","offer-ordered-overview__redirect"],[1,"mt-3","offer-ordered-overview__button-container"],["mat-raised-button","","color","primary",1,"offer-ordered-overview__button",3,"click","innerHTML"],[1,"offer-ordered-overview__title",3,"innerHTML"],[1,"col-6","offer-ordered-overview__product-label",3,"innerHTML"],[1,"col-6","offer-ordered-overview__product-value"],[1,"col-6","offer-ordered-overview__delivery-label",3,"innerHTML"],[1,"col-6","offer-ordered-overview__delivery-value"],[1,"col-6","offer-ordered-overview__billing-label",3,"innerHTML"],[1,"col-6","offer-ordered-overview__billing-value"],[1,"col-6","offer-ordered-overview__payment-label",3,"innerHTML"],[1,"col-6","offer-ordered-overview__payment-value"],[1,"offer-ordered-overview__payment-iban"],[1,"col-6","mb-4","offer-ordered-overview__offer-label",3,"innerHTML"],[1,"col-6","mb-4","offer-ordered-overview__offer-value"],[1,"col-6","offer-ordered-overview__price-label",3,"innerHTML"],[1,"col-6","offer-ordered-overview__additional-price",3,"innerHTML"],[1,"col-6","offer-ordered-overview__price-value"],[1,"col-6","offer-ordered-overview__price-text"],[1,"col-6","offer-ordered-overview__price-empty"],[1,"offer-ordered-overview__price-delivery",3,"innerHTML"],[1,"col-6","offer-ordered-overview__gift-label",3,"innerHTML"],[1,"col-6","offer-ordered-overview__gift-value"],[1,"col-6","offer-ordered-overview__commitment-label",3,"innerHTML"],[1,"col-6","offer-ordered-overview__commitment-value"]],template:function(i,r){i&1&&x(0,nhe,2,0,"div",0)(1,She,26,24,"mat-card",1),i&2&&b(r.loading?0:r.order?1:-1)},dependencies:[Ge,ub,Le,Jr,Ee,at,ze,Ps,cn,iV],styles:[`.offer-ordered-overview-detail[_ngcontent-%COMP%]{padding:2rem!important;display:flex;flex-direction:column;gap:8px}#orderConfirmation[_ngcontent-%COMP%]{display:flex;flex-direction:column}#orderConfirmationImage[_ngcontent-%COMP%]{align-self:center} 645/*# sourceMappingURL=offer-ordered-overview.component-3YU5JN2I.css.map */`]})}}return t})();var xhe=t=>({infoText:t}),whe=t=>[t];function Ehe(t,n){if(t&1&&_(0,"h3",5),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("headline_terminate"),y)}}function Dhe(t,n){t&1&&(p(0,"div",4),_(1,"app-loading-spinner"),m())}function The(t,n){if(t&1&&_(0,"app-general-warning",9),t&2){let e=h(3);f("warnings",zi(3,whe,zi(1,xhe,e.terminationWarning)))}}function Mhe(t,n){if(t&1&&(p(0,"mat-option",19),E(1),m()),t&2){let e=h().$implicit;f("value",e),c(),R("",e.description," ")}}function Ihe(t,n){if(t&1&&x(0,Mhe,2,2,"mat-option",19),t&2){let e=n.$implicit;b(e.useInFE?0:-1)}}function Ahe(t,n){if(t&1){let e=B();p(0,"form",6),x(1,The,1,5,"app-general-warning",9),p(2,"mat-form-field",10),_(3,"mat-label",11),p(4,"mat-select",12),W(5,Ihe,1,1,null,null,X),m()(),p(7,"mat-form-field",13),T("click",function(){A(e);let r=J(12);return k(r.open())}
645),_(8,"mat-label",11)(9,"input",14)(10,"mat-datepicker-toggle",15)(11,"mat-datepicker",16,0),m(),p(13,"div",17)(14,"button",18),T("click",function(){A(e);let r=h(2);return k(r.terminateSubscription())}),m()()()}if(t&2){let e=J(12),i=h(2);f("formGroup",i.terminationForm),c(),b(i.subscriptionHasCommitment&&i.showDefaultTerminationWarning&&i.terminationWarning?1:-1),c(2),f("innerHTML",i.translationService.getTranslation("terminate_reason"),y),c(),f("value",i.terminationForm.get("reason").value),c(),q(i.terminationTypes),c(3),f("innerHTML",i.translationService.getTranslation("terminate_date"),y),c(),f("min",i.minDate)("matDatepicker",e),c(),f("for",e),c(),f("touchUi",!1),c(3),f("disabled",!i.terminationForm.valid)("innerHTML",i.translationService.getTranslation("button_terminate"),y)}}function khe(t,n){if(t&1){let e=B();p(0,"button",20),T("click",function(){A(e);let r=h(2);return k(r.backToOverview())}),m()}if(t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("button_back_to_overview"),y)}}function Ohe(t,n){if(t&1&&(x(0,Ahe,15,11,"form",6),p(1,"div",7),x(2,khe,1,1,"button",8),m()),t&2){let e=h();b(e.terminationTypes?0:-1),c(2),b(e.showBackToOverviewButton?2:-1)}}var rV=(()=>{class t{constructor(){this.hupSubscriptionService=d(ct),this.baseData=d(vt),this.route=d(Ye),this.translationService=d(Y),this.formBuilder=d(kt),this.snackBar=d(Yi),this.navigationService=d(Re),this.configService=d(Ce),this.dateAdapter=d(qt),this.datePipe=d(Le),this.subscriptionHasCommitment=!1,this.showDefaultTerminationWarning=!1,this.terminationWarning="",this.minDate=new Date,this.isLoading=!1,this.dateAdapter.getFirstDayOfWeek=()=>1,this.route.paramMap.subscribe(e=>{this.subId=+e.get("subId"),this.terminationForm=this.formBuilder.group({subId:[this.subId,Z.required],reason:["",Z.required],terminationDate:[this.minDate,Z.required]}),this.showBackToOverviewButton=this.configService.getConfig("show.backToOverView.button")?.asBoolean(),this.terminationForm.get("reason").valueChanges.subscribe(i=>{this.hupSubscriptionService.getTerminationDateOfSubscription(this.subId,i.key).subscribe(r=>{this.handleDates(r)})})})}ngOnInit(){this.terminationTypes=this.baseData.getBaseData("terminationtypes"),this.terminationTypes?.sort((e,i)=>e.sortKey>i.sortKey?1:-1),this.showBackToOverviewButton=this.configService.getConfig("show.backToOverView.button")?.asBoolean(),this.showDefaultTerminationWarning=this.configService.getConfig("subscription.showTerminationWarning")?.asBoolean()}terminateSubscription(){let e=this.terminationForm.get("reason").value,i=this.terminationForm.get("terminationDate").value;this.isLoading=!0,this.hupSubscriptionService.terminateSubscription(0,this.subId,e.key,i).subscribe(r=>{this.isLoading=!1,this.navigationService.navigateTo(ge.SUBSCRIPTION).then(o=>{o&&this.snackBar.openSnackbar(this.translationService.getTranslation("saved"))})})}handleDates(e){let i=this.terminationForm.get("terminationDate").value,r=new Date(e.minTerminationDate),o=new Date(e.defaultTerminationDate);if(i<o?this.terminationForm.get("terminationDate").setValue(o):i<r&&this.terminationForm.get("terminationDate").setValue(r),this.minDate=r,this.subscriptionHasCommitment=e.specialConditions===!0,this.subscriptionHasCommitment&&this.showDefaultTerminationWarning){let a=this.translationService.getTranslation("subscription.terminationWarning");a!==""&&(this.terminationWarning=a.replace("%s",this.datePipe.transform(o)))}}backToOverview(){this.navigationService.navigateTo(ge.SUBSCRIPTION,null,!0)}printForm(){console.log(this.terminationForm)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-hup-subscription-terminate"]],decls:5,vars:3,consts:[["picker1",""],[1,"col-12","offset-lg-2","col-lg-8","hup-subscription-terminate"],["class","hup-subscription-terminate__headline",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","offset-lg-2","col-lg-8","mb-5","hup-subscription-terminate__intro",3,"innerHTML"],[1,"hup-subscription-terminate__loading",2,"text-align","center"],[1,"hup-subscription-terminate__headline",3,"innerHTML"],[1,"col-12","offset-lg-2","col-lg-8","hup-subscription-terminate__form",3,"formGroup"],[1,"col-12","offset-lg-2","col-lg-8","mt-3","text-end","hup-subscription-terminate__back"],["mat-raised-button","",1,"hup-subscription-terminate__back-button",3,"innerHTML"],[3,"warnings"],[1,"hup-subscription-terminate__form-field"],[1,"hup-subscription-terminate__form-label",3,"innerHTML"],["formControlName","reason","required","","aria-required","true",1,"hup-subscription-terminate__form-select",3,"value"],[1,"hup-subscription-terminate__form-field",3,"click"],["matInput","","readonly","","formControlName","terminationDate",1,"hup-subscription-terminate__form-input",3,"min","matDatepicker"],["matSuffix","",1,"hup-subscription-terminate__form-datepicker-toggle",3,"for"],["disabled","false",1,"hup-subscription-terminate__form-datepicker",3,"touchUi"],[1,"hup-subscription-terminate__form-actions"],["mat-raised-button","",1,"hup-subscription-terminate__form-submit",3,"click","disabled","innerHTML"],[1,"hup-subscription-terminate__form-option",3,"value"],["mat-raised-button","",1,"hup-subscription-terminate__back-button",3,"click","innerHTML"]],template:function(i,r){i&1&&(p(0,"div",1),x(1,Ehe,1,1,"h3",2),m(),_(2,"div",3),x(3,Dhe,2,0,"div",4)(4,Ohe,3,2)),i&2&&(c(),f("appApplyIfNotEmpty",r.translationService.getTranslation("headline_terminate")),c(),f("innerHTML",r.translationService.getTranslation("terminate_intro"),y),c(),b(r.isLoading?3:4))},dependencies:[Ge,Ot,wi,Bt,At,Wt,ai,bt,Ut,Nt,ir,Ri,ss,ei,Aa,ql,Ee,Pt,ze,Zo],encapsulation:2})}}return t})();var oV=(()=>{class t{constructor(){this.route=d(Ye),this.router=d(et),this.loginService=d(ft),this.platformId=d(Qe)}ngOnInit(){nt(this.platformId)&&this.route.queryParams.subscribe(e=>{this.ssoCode=e.code,this.ssoCode?this.loginService.loginByCode(this.ssoCode).subscribe(i=>{this.redirectUrl=e.redirectUrl??"/offer",this.router.navigate([this.redirectUrl])}):this.router.navigate(["/offer"])})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-redirect"]],decls:1,vars:0,template:function(i,r){i&1&&E(0,`Sie werden weitergeleitet 646`)},encapsulation:2})}}return t})();function Phe(t,n){if(t&1&&_(0,"h2",2),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("login_box_header"),y)}}function Nhe(t,n){t&1&&(p(0,"div",1),_(1,"app-loading-spinner"),m())}function Rhe(t,n){if(t&1){let e=B();p(0,"div",4)(1,"button",5),T("click",function(){A(e);let r=h(2);return k(r.onBack())}),m()()}if(t&2){let e=h(2);c(),f("innerHTML",e.translationService.getTranslation("button_back"),y)}}function Fhe(t,n){if(t&1&&(_(0,"iframe",3),x(1,Rhe,2,1,"div",4)),t&2){let e=h();sn("height",e.ssoFormPropagatedHeight),f("src",e.hassoLoginUrl,bc),c(),b(e.loading?-1:1)}}function Lhe(t,n){if(t&1&&_(0,"div",10),t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation(e.error),y)}}function Bhe(t,n){if(t&1&&(p(0,"div",7),x(1,Lhe,1,1,"div",10),p(2,"div",11)(3,"mat-form-field"),_(4,"mat-label",2)(5,"input",12),p(6,"mat-error"),E(7),m()()(),p(8,"div",11)(9,"mat-form-field"),_(10,"mat-label",2)(11,"input",13),p(12,"mat-error"),E(13),m()()()()),t&2){let e=h(2);c(),b(e.error?1:-1),c(3),f("innerHTML",e.translationService.getTranslation("login_email"),y),c(3),he(e.loginForm.get("email").getError("message")),c(3),f("innerHTML",e.translationService.getTranslation("login_password"),y),c(3),he(e.loginForm.get("password").getError("message"))}}function Hhe(t,n){if(t&1){let e=B();p(0,"div",6),T("keyup.enter",function(){A(e);let r=h();return k(r.onLogin())}),x(1,Bhe,14,5,"div",7),m(),p(2,"div")(3,"button",8),T("click",function(){A(e);let r=h();return k(r.onLogin())}),m(),_(4,"button",9),m()}if(t&2){let e=h();f("formGroup",e.loginForm),c(),b(e.loading?-1:1),c(2),f("disabled",e.loading)("innerHTML",e.translationService.getTranslation("login_login"),y),c(),f("innerHTML",e.translationService.getTranslation("login_close"),y)}}var aV=(()=>{class t{constructor(){this.formBuilder=d(kt),this.route=d(Ye),this.router=d(et),this.loginService=d(ft),this.sanitizer=d(En),this.translationService=d(Y),this.navigationService=d(Re),this.platformId=d(Qe),this.loading=!1,this.redirecting=!1,this.returnUrl=null,this.isAuthenticated=!1,this.authData=null,this.useHassoForm=!1,this.hassoLoginUrl=null,this.prefillUsername="",this.assignClientNo=0,this.ssoFormPropagatedHeight="",this.ssoConfiguration=this.loginService.getSsoConfiguration(),this.useHassoForm=this.ssoConfiguration.usage?.toUpperCase().startsWith("OAUTHHASSO"),this.route?.queryParams?.subscribe(e=>{e?.prefillUsername&&(this.prefillUsername=e.prefillUsername),e?.clientNo&&(this.assignClientNo=e.clientNo),e?.returnUrl&&(this.returnUrl=e.returnUrl,this.handleRedirect())}),this.authSub=this.loginService?.getAuthData()?.subscribe(e=>{this.authData=e,this.isAuthenticated=!!e,this.isAuthenticated&&this.assignClientNo>0?(this.redirecting=!0,this.loginService.assignClientNo(this.assignClientNo).subscribe({next:i=>this.handleRedirect(),error:i=>this.handleRedirect()}
646)):this.handleRedirect()}),this.useHassoForm&&nt(this.platformId)&&window.addEventListener("message",e=>{this.loading=!1;let i=typeof e.data=="string"?JSON.parse(e.data):e.data;if(i.eventNature=="ssoAjaxViewLoaded")this.ssoFormPropagatedHeight=i.formHeight?i.formHeight+5+"px":"inherit";else{let r=i.code===2e3,o=typeof i.code=="string"&&i.code.match(/^[0-9a-f]{16,}$/);(r||o)&&this.loginService.checkStatus()}},!1)}ngOnInit(){if(this.loginForm=this.formBuilder?.group({email:[null,[Z.required,Z.email]],password:[null,Z.required]}),this.useHassoForm&&nt(this.platformId)){this.loading=!0;let e=this.ssoConfiguration.returnUrl;this.navigationService.getPreviousUrl()&&(e=location.origin+this.navigationService.getPreviousUrl());let i={client_id:this.ssoConfiguration.clientId,redirect_uri:encodeURIComponent(e),responsetype:"event",domain:encodeURIComponent(location.origin),ajaxMode:1,formId:"Login"};if(this.prefillUsername.length){let r=encodeURIComponent(this.prefillUsername);i.uSrNaMe=r.replace(/%40/,"@")}this.hassoLoginUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.ssoConfiguration.ssoHost+"/auth/authorize?"+new ho({fromObject:i}).toString())}}onLogin(){this.loginForm?.valid&&(this.loading=!0,this.loginService.login(this.loginForm.get("email").value,this.loginForm.get("password").value,this.returnUrl).subscribe(e=>{e&&e.token!==0&&e.status!=="error"||(this.error=e.message,this.loading=!1)},e=>{this.error=e.error,this.loading=!1}))}handleRedirect(){this.redirecting=!1,this.isAuthenticated&&this.returnUrl&&this.router.navigateByUrl(this.returnUrl,{replaceUrl:!0}).then(()=>null)}onBack(){history.back()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-login-formular"]],decls:4,vars:4,consts:[[3,"innerHTML",4,"appApplyIfNotEmpty"],[2,"text-align","center","margin","5px"],[3,"innerHTML"],["title","",3,"src"],[1,"btn-back"],["mat-raised-button","","color","primary",3,"click","innerHTML"],[1,"mat-typography",3,"keyup.enter","formGroup"],[1,"row"],["mat-raised-button","","color","primary",1,"me-3",3,"click","disabled","innerHTML"],["mat-raised-button","","color","primary",3,"innerHTML"],[1,"col-12","alert","alert-danger",3,"innerHTML"],[1,"col-12"],["matInput","","formControlName","email","type","text","required","","email","","name","username","autocomplete","off"],["matInput","","formControlName","password","type","password","required","","name","password"]],template:function(i,r){i&1&&x(0,Phe,1,1,"h2",0)(1,Nhe,2,0,"div",1)(2,Fhe,2,4)(3,Hhe,5,5),i&2&&(f("appApplyIfNotEmpty",r.translationService.getTranslation("login_box_header")),c(),b(r.loading||r.redirecting?1:-1),c(),b(r.useHassoForm&&r.hassoLoginUrl?2:-1),c(),b(r.useHassoForm?-1:3))},dependencies:[Ge,Ee,Ot,Bt,At,Wt,ai,wf,bt,Ut,Nt,ei,Pt,Ht,ze],styles:[`iframe[_ngcontent-%COMP%]{width:100%;scrollbar-width:none;border:none}.btn-back[_ngcontent-%COMP%]{margin-top:20px;text-align:center} 647/*# sourceMappingURL=login-formular.component-FH5AT47T.css.map */`]})}}return t})();var LD=function(t){return t[t.IDEAL=0]="IDEAL",t[t.PAYPAL=1]="PAYPAL",t[t.HOBEX=2]="HOBEX",t}(LD||{});var id=function(t){return t[t.SUCCESSFUL=0]="SUCCESSFUL",t[t.PENDING=1]="PENDING",t[t.ERROR=2]="ERROR",t[t.CANCELLED=3]="CANCELLED",t}(id||{});var sV=(()=>{class t{constructor(){this.route=d(Ye),this.route.paramMap.subscribe(e=>
647{e.get("brq_payment_method")&&(this.paymentProvider=LD.IDEAL,this.handleIdealResult(e))})}handleIdealResult(e){let i=e.get("brq_statuscode");if(i)switch(i){case"190":{this.paymentStatus=id.SUCCESSFUL;break}case"791":{this.paymentStatus=id.PENDING;break}case"490":{this.paymentStatus=id.ERROR;break}case"690":{this.paymentStatus=id.ERROR;break}case"890":{this.paymentStatus=id.CANCELLED;break}}}ngOnInit(){console.log("redirect")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-payment-redirect"]],decls:2,vars:0,template:function(i,r){i&1&&(p(0,"p"),E(1,"payment-redirect works!"),m())},encapsulation:2})}}return t})();function Vhe(t,n){if(t&1&&_(0,"h3",18),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("contact_unauthorized_intro"),y)}}function jhe(t,n){t&1&&(p(0,"div",13),_(1,"app-loading-spinner",19),m())}function zhe(t,n){if(t&1&&_(0,"div",14),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("clientno_not_found"),y)}}function Uhe(t,n){if(t&1&&_(0,"app-hup-subscription-address",15),t&2){let e=h();f("showActivateCheckbox",!1)("controlGroup",e.addressForm.get("contactAddress"))}}function Ghe(t,n){if(t&1&&_(0,"div",20),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("clientno_found_no_emailaddress_found"),y)}}function $he(t,n){if(t&1&&(p(0,"mat-hint",25),E(1),m()),t&2){h();let e=J(7);c(),Pe("",e.value.length," / ",e.maxLength," ")}}function Whe(t,n){if(t&1){let e=B();p(0,"div",16),x(1,Ghe,1,1,"div",20),p(2,"div",21)(3,"mat-form-field",22)(4,"mat-label",23),E(5),m(),p(6,"input",24,0),wn("ngModelChange",function(r){A(e);let o=h();return Nn(o.emailAddress,r)||(o.emailAddress=r),k(r)}),m(),x(8,$he,2,2,"mat-hint",25),m()()()}if(t&2){let e=J(7),i=h();c(),b(i.clientFound?1:-1),c(4),R("",i.translationService.getTranslation("label_email")," "),c(),xn("ngModel",i.emailAddress),c(2),b(e===(i.document==null?null:i.document.activeElement)&&e.value.length>=1?8:-1)}}function qhe(t,n){if(t&1){let e=B();p(0,"app-contact",26),T("saved",function(r){A(e);let o=h();return k(o.savedRequest(r))}),m()}if(t&2){let e=h();f("unauthorized",!0)("userBackendId",e.customer==null?null:e.customer.userBackendId)("addressForm",e.addressForm.get("contactAddress"))("emailAddress",e.emailAddress)}}var lV=(()=>{class t{constructor(){this.formBuilder=d(kt),this.translationService=d(Y),this.redirectService=d(Ln),this.subscriptionService=d(ct),this.snackBar=d(Yi),this.router=d(et),this.errorsArr=[],this.isLoading=!1,this.isFirst=!0,this.clientFound=!1,this.emailExists=!1,this.document=typeof document=="object"?document:null,this.clientNoForm=this.formBuilder.group({clientNo:["",Z.required]}),this.addressForm=this.formBuilder.group({contactAddress:this.formBuilder.group({showAddress:[""],address:this.formBuilder.group({country:[""],zipcode:[""],city:[""],street:[""],houseNo:[""],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:[""],firstName:["",Z.required],lastName:["",Z.required],initials:[""],middlename:[""]})})})}loadCustomerByClientNo(e){e&&e>0?(this.isLoading=!0,this.subscriptionService.getCustomerUnauthorized(e).subscribe(i=>{i?(this.customer=i,this.clientFound=!0,i.emailList&&i.emailList.length>0&&(this.emailExists=!0)):this.clientFound=!1,this.isFirst=!1,this.isLoading=!1})):(this.clientFound=!1,this.isFirst=!0)}savedRequest(e){this.addressForm.reset(),this.emailAddress="",this.router.navigate(["/contact"]).then(i=>{i&&this.snackBar.openSnackbar(this.translationService.getTranslation("contact_unauthorized_saved"))})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-contact-without-login"]],decls:17,vars:8,consts:[["email",""],[1,"row","contact-without-login__row"],[1,"col-12","offset-lg-2","col-lg-8","contact-without-login__intro"],["class","contact-without-login__intro-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","offset-lg-2","col-lg-8","contact-without-login__description"],[1,"contact-without-login__description-text",3,"innerHTML"],[1,"row"],[1,"col-12","offset-lg-2","col-lg-8"],[1,"mat-mdc-card-outlined","mt-3","contact-without-login__card"],[1,"contact-without-login__card-content"],[1,"row","contact-without-login__form-row"],[1,"contact-without-login__errors"],[1,"contact-without-login__general-errors",3,"errors"],[1,"contact-without-login__loading",2,"text-align","center"],[1,"text-danger","mb-3","contact-without-login__client-not-found",3,"innerHTML"],[1,"contact-without-login__address-form",3,"showActivateCheckbox","controlGroup"],[1,"contact-without-login__email-section"],[1,"contact-without-login__contact-form",3,"unauthorized","userBackendId","addressForm","emailAddress"],[1,"contact-without-login__intro-title",3,"innerHTML"],[1,"contact-without-login__spinner"],[1,"text-danger","mb-3","contact-without-login__no-email",3,"innerHTML"],[1,"contact-without-login__email-input-wrapper"],[1,"col-12","contact-without-login__email-form-field"],[1,"contact-without-login__email-label"],["maxLength","50","matInput","",1,"contact-without-login__email-input",3,"ngModelChange","ngModel"],["align","end",1,"contact-without-login__email-hint"],[1,"contact-without-login__contact-form",3,"saved","unauthorized","userBackendId","addressForm","emailAddress"]],template:function(i,r){i&1&&(p(0,"div",1)(1,"div",2),x(2,Vhe,1,1,"h3",3),m(),p(3,"div",4),_(4,"p",5),m()(),p(5,"div",6)(6,"div",7)(7,"mat-card",8)(8,"mat-card-content",9)(9,"div",10)(10,"div",11),_(11,"app-general-errors",12),x(12,jhe,2,0,"div",13)(13,zhe,1,1,"div",14)(14,Uhe,1,2,"app-hup-subscription-address",15)(15,Whe,9,4,"div",16)(16,qhe,1,4,"a
647pp-contact",17),m()()()()()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("contact_unauthorized_intro")),c(2),f("innerHTML",r.translationService.getTranslation("contact_unauthorized_description"),y),c(7),f("errors",r.errorsArr),c(),b(r.isLoading?12:-1),c(),b(!r.clientFound&&!r.isFirst?13:-1),c(),b(r.clientFound?-1:14),c(),b(r.emailExists?-1:15),c(),b(r.isLoading?-1:16))},dependencies:[Vt,Ge,vr,Nt,ei,$o,Bt,At,js,Yf,Pt,qi,at,Rt,ze],encapsulation:2})}}return t})();var Yhe=(t,n)=>n.id;function Khe(t,n){if(t&1){let e=B();p(0,"img",6),T("click",function(){A(e);let r=h(2).$implicit,o=h();return k(o.navigationService.navigateExtern(r.externalURL,!0))}),m()}if(t&2){let e=h(2).$implicit,i=h();xc("alt",e.image.altText),f("ngSrc",e==null?null:e.image.src)("width",i.imageService.width)("height",i.imageService.height)("priority",!0)}}function Qhe(t,n){if(t&1){let e=B();p(0,"div",7),T("click",function(){A(e);let r=h(2).$implicit,o=h();return k(o.navigationService.navigateExtern(r==null?null:r.externalURL,!0))}),_(1,"p",8)(2,"p",9),m()}if(t&2){let e=h(2).$implicit;c(),f("innerHTML",e==null?null:e.header,y),c(),f("innerHTML",e==null?null:e.description,y)}}function Zhe(t,n){if(t&1&&(p(0,"div",3),x(1,Khe,1,5,"img",4),m(),x(2,Qhe,3,2,"div",5)),t&2){let e=h().$implicit,i=h();c(),b(e!=null&&e.image?1:-1),c(),b(i.showOfferData?2:-1)}}function Xhe(t,n){t&1&&x(0,Zhe,3,2,"ng-template",2)}var cV=(()=>{class t{constructor(){this.navigationService=d(Re),this.imageService=d(Ei),this.externalOffers=[],this.showOfferData=!1,this.externalOffers=this.externalOffers.filter(e=>e?.image!=null&&e?.image.type)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-image-slider"]],inputs:{externalOffers:"externalOffers"},decls:4,vars:0,consts:[[1,"offerSlider","mb-3","image-slider"],[1,"image-slider__carousel"],["ngbSlide",""],[1,"picsum-img-wrapper","image-slider__img-wrapper"],[1,"image","image-slider__image",3,"ngSrc","width","height","priority","alt"],[1,"carousel-caption","image-slider__caption"],[1,"image","image-slider__image",3,"click","ngSrc","width","height","priority","alt"],[1,"carousel-caption","image-slider__caption",3,"click"],["appSliderTextStyle","",1,"image-slider__header",3,"innerHTML"],["appSliderTextStyle","",1,"image-slider__description",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"ngb-carousel",1),W(2,Xhe,1,0,null,2,Yhe),m()()),i&2&&(c(2),q(r.externalOffers))},dependencies:[DL,OE,cn],styles:[`.picsum-img-wrapper img{cursor:pointer;width:100%}.carousel-control-prev-icon,.carousel-control-next-icon{border-radius:10px!important;background-color:var(--buttonBackgroundColor)!important} 648/*# sourceMappingURL=image-slider.component-VLBWGSIZ.css.map */ 649`],encapsulation:2})}}return t})();function Jhe(t,n){if(t&1&&(p(0,"div",0)(1,"div",13),_(2,"img",14),m(),p(3,"div",15),_(4,"h3",16),m()()),t&2){let e=h();c(2),f("ngSrc",e.actualPage.viewFile.src)("width",e.imageService.width)("height",e.imageService.height)("priority",!0)("alt",e.actualPage.viewFile.altText),c(2),f("innerHtml",e.actualPage.viewDescription,y)}}function ege(t,n){if(t&1&&_(0,"h3",17),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("offer_intro"),y)}}function tge(t,n){t&1&&(p(0,"div",9),_(1,"app-loading-spinner",18),m())}function ige(t,n){if(t&1&&_(0,"app-image-slider",10),t&2){let e=h();f("externalOffers",e.externalOffersForSlider)}}function nge(t,n){if(t&1&&_(0,"img",24),t&2){let e=h(2).$implicit,i=h();f("ngSrc",e.image.src)("width",i.imageService.width)("height",i.imageService.height)("priority",!0)("alt",e.image.altText)}}function rge(t,n){if(t&1){let e=B();p(0,"div",19),te(1,"cssProperty"),te(2,"cssProperty"),te(3,"cssProperty"),te(4,"cssProperty"),te(5,"cssProperty"),te(6,"cssProperty"),p(7,"mat-card",20),T("click",function(){A(e);let r=h().$implicit,o=h();return k(o.goToOfferModule(r.rId,1))}),p(8,"div",21)(9,"div",22),E(10),m(),p(11,"div",23),x(12,nge,1,5,"img",24),m(),_(13,"mat-card-content",25),m(),p(14,"div",26)(15,"button",27),T("click",function(){A(e);let r=h().$implicit,o=h();return k(o.goToOfferModule(r.rId,1))}),E(16),m()()()()}if(t&2){let e=h().$implicit,i=h();f("className","mb-4 col-"+Te(1,5,i.CssPropertiesEnum.offerFxFlex,i.vHostService)+" col-sm-"+Te(2,8,i.CssPropertiesEnum.offerFxFlexSM,i.vHostService)+" col-md-"+Te(3,11,i.CssPropertiesEnum.offerFxFlexMD,i.vHostService)+" col-lg-"+Te(4,14,i.CssPropertiesEnum.offerFxFlexLG,i.vHostService)+" col-xl-"+Te(5,17,i.CssPropertiesEnum.offerFxFlexXL,i.vHostService)+" col-xxl-"+Te(6,20,i.CssPropertiesEnum.offerFxFlexXXL,i.vHostService)+" offer-group__group-col"),c(10),R(" ",e.de
649scription," "),c(2),b(e.image&&e.image.type?12:-1),c(),f("innerHTML",e.webDescription,y),c(3),R(" ",i.translationService.getTranslation("button_goToOrder")," ")}}function oge(t,n){if(t&1&&x(0,rge,17,23,"div",19),t&2){let e=n.$implicit;b(e.hasOffers?0:-1)}}var dV=(()=>{class t{constructor(){this.translationService=d(Y),this.vHostService=d(Ai),this.offerService=d(Qo),this.navigationService=d(Re),this.externalOfferService=d(Kv),this.imageService=d(Ei),this.landingPageService=d(Wi),this.router=d(et),this.route=d(Ye),this.imageHandler=d(Wr),this.CssPropertiesEnum=tt,this.isLoadingOfferGroup=!1,this.errorsArr=[],this.offerGroups=[],this.cssPropertiesEnum=tt,this.externalOffersForSlider=[],this.titlesAllowed=[],this.cssPropertyPipe=new Bn,this.route?.queryParamMap?.subscribe(e=>{e?.get("titlesAllowed")&&(this.titlesAllowed=e?.get("titlesAllowed").split(","))}),this.isLoadingOfferGroup=!0,this.offerService.getOfferGroups().subscribe({next:e=>{this.offerGroups=e,e.length==1&&this.titlesAllowed.length<=0?this.goToOfferModule(e[0].rId,0):this.offerService.getMinimalOffers(!0).subscribe({next:i=>{e.forEach(r=>{r.activeFlag?r.hasOffers=i.some(o=>o.offerGroup===r.rId&&(this.titlesAllowed?.length<=0||this.titlesAllowed?.includes(o.productCode))):r.hasOffers=!1,r.hasOffers||console.log("No offers for groupId "+r.rId)}),this.isLoadingOfferGroup=!1},error:()=>{this.errorsArr.push(this.translationService.getTranslation("error_offerGroup_init"))}})},error:()=>{this.errorsArr.push(this.translationService.getTranslation("error_offer_init"))}})}ngOnInit(){this.externalOfferService.loadExternalOffersForSlider().subscribe({next:e=>{e&&(this.externalOffersForSlider=e,this.externalOffersForSlider.forEach(i=>{this.imageService.getImageOfExternalOffer(i.id).subscribe(r=>{r&&r.type&&(i.image=this.imageHandler.addAltText(r,i.description??this.translationService.getTranslation("externalOffer.image.altText.default")),i.image||e.splice(e.indexOf(i)))})}))},error:e=>console.error("Couldn\xB4t find ExternalOffer for Slider",e)}),this.landingPageService.getPageOfUrl(this.router.url.split("/")[1]).subscribe(e=>{e&&(this.actualPage=e)})}goToOfferModule(e,i){this.navigationService.navigateTo(ge.OFFERLIST,[e,i])}hasCustomResponsivClasses(){return!!this.getCustomResponsivClasses()}getCustomResponsivClasses(){let e=this.cssPropertyPipe.transform,i=["col-"+e(tt.offerFxFlex,this.vHostService),"col-sm-"+e(tt.offerFxFlexSM,this.vHostService),"col-md-"+e(tt.offerFxFlexMD,this.vHostService),"col-lg-"+e(tt.offerFxFlexLG,this.vHostService),"col-xl-"+e(tt.offerFxFlexXL,this.vHostService),"col-xxl-"+e(tt.offerFxFlexXXL,this.vHostService)].join(" ");return/\d/.test(i)?i:""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-offer-group"]],decls:16,vars:10,consts:[[1,"offerView","offer-group__view"],["id","offerGroupHeader",1,"row","offer-group__header",3,"className"],[1,"col-12","offer-group__header-title"],["class","offer-group__header-title-text",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","offer-group__header-description"],[1,"offer-group__header-description-text",3,"innerHTML"],[1,"row","mb-3","offer-group__errors-row"],["id","offerGroupErrors",1,"col-12","offer-group__errors"],[1,"offer-group__errors-list",3,"errors"],["id","offerGroupSpinner",1,"offer-group__spinner",2,"text-align","center"],[1,"offer-group__image-slider",3,"externalOffers"],["id","offerGroups",1,"offerGroupPage","offer-group__page"],[1,"row","offer-group__groups-row"],[1,"mb-5","offer-group__view-image"],[1,"offer-group__view-img",3,"ngSrc","width","height","priority","alt"],[1,"mb-5","offer-group__view-description"],[1,"offerViewDescription","offer-group__view-description-text",3,"innerHtml"],[1,"offer-group__header-title-text",3,"innerHTML"],[1,"offer-group__spinner-component"],[3,"className"],["appearance","outlined",1,"pointer","h-100","offer-group__group-card",3,"click"],["tabindex","0",1,"offer-group__group-card-content"],[1,"heading","offer-group__group-heading"],[1,"offerImage","offer-group__group-image"],["mat-card-image","",1,"offer-group__group-img",3,"ngSrc","width","height","priority","alt"],[1,"mt-3","offer-group__group-description",3,"innerHTML"],[1,"footer","offer-group__group-footer"],["mat-raised-button","","data-cy","btn-openOfferGroup",1,"offer-group__group-footer-btn",3,"click"]],template:function(i,r){i&1&&(x(0,Jhe,5,6,"div",0),p(1,"div",1),te(2,"cssProperty"),p(3,"div",2),x(4,ege,1,1,"h3",3),m(),p(5,"div",4),_(6,"h4",5),m()(),p(7,"div",6)(8,"div",7),_(9,"app-general-errors",8),x(10,tge,2,0,"div",9),m()(),x(11,ige,1,1,"app-image-slider",10),p(12,"div",11)(13,"div",12),W(14,oge,1,1,null,null,X),m()()),i&2&&(b(r.actualPage&&r.actualPage.viewFile?0:-1),c(),f("className",Te(2,7,r.cssPropertiesEnum.offerHeaderClasses,r.vHostService)),c(3),f("appApplyIfNotEmpty",r.translationService.getTranslation("offer_intro")),c(2),f("innerHTML",r.translationService.getTranslation("offer_description"),y),c(3),f("errors",r.errorsArr),c(),b(r.isLoadingOfferGroup?10:-1),c(),b(r.externalOffersForSlider.length>=1?11:-1),c(3),q(r.offerGroups))},dependencies:[Vt,Bn,Ge,cV,at,Rt,Ee,is,ze,cn],styles:[`.offerGroupPage[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%]{padding-bottom:60px;cursor:pointer}.offerGroupPage[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{position:relative;height:60px;padding:15px;
649background-color:var(--offerHeaderBackground);color:var(--offerHeaderColor)}.offerGroupPage[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{position:absolute;bottom:-20px;height:60px;background-color:var(--offerFooterBackground);color:var(--offerFooterColor);margin-left:auto;margin-right:auto;left:0;right:0;text-align:center}.offerGroupPage[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right;background-color:var(--offerButtonBackgroundColor);color:var(--offerButtonColor);width:100%;height:42px}.offerGroupPage[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%] .price[_ngcontent-%COMP%]{float:left}.offerImage[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%!important;height:100%!important}.offerView[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:-webkit-fill-available!important} 650/*# sourceMappingURL=offer-group.component-QGW3GFRB.css.map */`]})}}return t})();function age(t,n){if(t&1){let e=B();p(0,"button",3),T("click",function(){A(e);let r=h();return k(r.backToOverview())}),m()}if(t&2){let e=h();f("innerHTML",e.translationService.getTranslation("button_back_to_overview"),y)}}var uV=(()=>{class t{constructor(){this.translationService=d(Y),this.configService=d(Ce),this.navigationService=d(Re)}ngOnInit(){this.showBackToOverviewButton=this.configService.getConfig("show.backToOverView.button")?.asBoolean()}backToOverview(){this.navigationService.navigateTo(ge.CONTACT,null,!0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-contact-overview"]],decls:3,vars:2,consts:[[1,"contact-overview__send-message",3,"innerHTML"],[1,"contact-overview__actions","mt-3","float-end"],["mat-raised-button","","color","primary",1,"contact-overview__button-back",3,"innerHTML"],["mat-raised-button","","color","primary",1,"contact-overview__button-back",3,"click","innerHTML"]],template:function(i,r){i&1&&(_(0,"div",0),p(1,"div",1),x(2,age,1,1,"button",2),m()),i&2&&(f("innerHTML",r.translationService.getTranslation("contact_send"),y),c(2),b(r.showBackToOverviewButton?2:-1))},dependencies:[Ee],encapsulation:2})}}return t})();var pV=(()=>{class t{constructor(){this.http=d(Be)}getDelayMessages(e){return this.http.get("/webabo/logisticMessages/delay/"+e).pipe(Ae(i=>(console.log(i),ht)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var nd=function(t){return t[t.DELAY=0]="DELAY",t[t.DELAYINVALIDDISTRICT=1]="DELAYINVALIDDISTRICT",t[t.POSSIBLEDELAY=2]="POSSIBLEDELAY",t[t.NODELAY=3]="NODELAY",t}(nd||{});var sge=["houseNumber"],lge=["matCities"],cge=["matStreetNames"],dge=["matZipCodes"];function uge(t,n){if(t&1&&_(0,"h3",6),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("delay_intro"),y)}}function pge(t,n){if(t&1){let e=B();p(0,"div",14),_(1,"div",18),p(2,"button",19),T("click",function(){A(e);let r=h();return k(r.navigateToComplaint())}),m()()}if(t&2){let e=h();c(),f("innerHTML",e.translationService.getTranslation("delay_toComplaintForm"),y),c(),f("innerHTML",e.translationService.getTranslation("button_new_complaint"),y)}}function mge(t,n){if(t&1&&(p(0,"li",22),E(1),m()),t&2){let e=n.$implicit;c(),R(" ",e,"")}}function fge(t,n){if(t&1&&(p(0,"div",15),_(1,"div",20),p(2,"ul",21),W(3,mge,2,1,"li",22,X),m()()),t&2){let e=h();c(),f("innerHTML",e.translationService.getTranslation("delay_delay"),y),c(2),q(e.messageText)}}function hge(t,n){if(t&1){let e=B();p(0,"div",16),_(1,"div",23),p(2,"button",24),T("click",function(){A(e);let r=h();return k(r.navigateToComplaint())}),m()()}if(t&2){let e=h();c(),f("innerHTML",e.translationService.getTranslation("delay_invalid_district"),y),c(),f("innerHTML",e.translationService.getTranslation("button_new_complaint"),y)}}function gge(t,n){if(t&1&&(p(0,"li",27),E(1),m()),t&2){let e=n.$implicit;c(),R(" ",e,"")}}function _ge(t,n){if(t&1&&(p(0,"div",17),_(1,"div",25),p(2,"ul",26),W(3,gge,2,1,"li",27,X),m()()),t&2){let e=h();c(),f("innerHTML",e.translationService.getTranslation("delay_possible_delay"),y),c(2),q(e.messageText)}}var BD=(()=>{class t{constructor(){this.translationService=d(Y),this.formBuilder=d(kt),this.navigationService=d(Re),this.logisticServiceService=d(pV),this.addressSearchService=d(ap),this.datePipe=d(Le),this.messageText=[],this.messages=[],this.bezirk="",this.DelayComponentEnum=nd,this.delayForm=this.formBuilder.group({address:this.formBuilder.group({country:[""],zipcode:["",Z.required],city:["",Z.required],street:["",Z.required],house
650No:["",Z.required],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:[""],firstName:[""],lastName:[""],initials:[""],middlename:[""]})})}navigateToComplaint(){this.navigationService.navigateTo(ge.COMPLAINT)}buildDelayMessage(e){return this.datePipe.transform(e.messageDate,"dd.MM.yyyy")+": "+e.classification.displayText+". "+e.messageText.text+" ("+this.translationService.getTranslation("logistic_messages.valid_until")+this.datePipe.transform(e.delay.messageDelaysUntil,"dd.MM.yyyy")+")"}checkDelay(){this.messages=[],this.messageText=[],this.bezirk="",this.zipCode=this.delayForm.get("address.zipcode").getRawValue(),this.city=this.delayForm.get("address.city").getRawValue(),this.street=this.delayForm.get("address.street").getRawValue(),this.houseNo=this.delayForm.get("address.houseNo").getRawValue();let e=new $l(this.street,this.zipCode,this.city,null,null,this.houseNo);this.addressSearchService.searchAddress(e,1).subscribe(i=>{let r=i[0].districtIds;if(r.length!=0)for(let o of r)this.logisticServiceService.getDelayMessages(o).subscribe(a=>{if(this.messages=this.messages.concat(a),this.messages.length==0)this.delaystate=nd.NODELAY;else if(r.length>this.messages.length){for(let s of a)this.messageText.push(this.buildDelayMessage(s));this.delaystate=nd.POSSIBLEDELAY}else{for(let s of a)this.messageText.push(this.buildDelayMessage(s));this.delaystate=nd.DELAY}});else this.delaystate=nd.DELAYINVALIDDISTRICT})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["delay"]],viewQuery:function(i,r){if(i&1&&(De(sge,5),De(lge,5),De(cge,5),De(dge,5)),i&2){let o;se(o=le())&&(r.houseNo=o.first),se(o=le())&&(r.city=o.first),se(o=le())&&(r.street=o.first),se(o=le())&&(r.zipCode=o.first)}},decls:18,vars:15,consts:[[1,"row"],[1,"col-12","offset-lg-2","col-lg-8"],["id","delayHeader",1,"row","mb-3","delay-header"],[1,"col-12","delay-header__title"],[3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","delay-header__description"],[3,"innerHTML"],[1,"delay-card","mat-mdc-card-outlined"],[1,"delay-card__content"],[1,"row","delay-form"],[1,"col-12","delay-form__address"],[3,"askForBirthday","askForCountry","askForEmail","showAddressExt1","askForPerson","controlGroup","showActivateCheckbox"],[1,"col-12","delay-form__check-btn"],["ngSkipHydration","","mat-raised-button","","color","primary",1,"delay-form__button",3,"click","disabled","innerHTML"],[1,"delay-nodelay"],[1,"delay-delay"],[1,"delay-invalid-district"],[1,"delay-possible"],[1,"row","ms-1","mt-3","mb-3","delay-nodelay__info",3,"innerHTML"],["mat-raised-button","","color","primary",1,"delay-nodelay__complaint-btn",3,"click","innerHTML"],[1,"row","mt-3","mb-3","delay-delay__info",3,"innerHTML"],[1,"delay-delay__list"],[1,"delay-delay__list-item"],[1,"row","mt-3","mb-3","delay-invalid-district__info",3,"innerHTML"],["mat-raised-button","","color","primary",1,"delay-invalid-district__complaint-btn",3,"click","innerHTML"],[1,"row","mt-3","mb-3","delay-possible__info",3,"innerHTML"],[1,"delay-possible__list"],[1,"delay-possible__list-item"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),x(4,uge,1,1,"h3",4),m(),p(5,"div",5),_(6,"p",6),m()(),p(7,"mat-card",7)(8,"mat-card-content",8)(9,"div",9)(10,"div",10),_(11,"app-hup-subscription-address",11),m(),p(12,"div",12)(13,"button",13),T("click",function(){return r.checkDelay()}),m()()(),x(14,pge,3,2,"div",14)(15,fge,5,1,"div",15)(16,hge,3,2,"div",16)(17,_ge,5,1,"div",17),m()()()()),i&2&&(c(4),f("appApplyIfNotEmpty",r.translationService.getTranslation("delay_intro")),c(2),f("innerHTML",r.translationService.getTranslation("delay_description"),y),c(5),f("askForBirthday",!1)("askForCountry",!1)("askForEmail",!1)("showAddressExt1",!1)("askForPerson",!1)("controlGroup",r.delayForm)("showActivateCheckbox",!1),c(2),f("disabled",!r.delayForm.valid)("innerHTML",r.translationService.getTranslation("delay_check"),y),c(),b(r.delaystate==r.DelayComponentEnum.NODELAY?14:-1),c(),b(r.delaystate==r.DelayComponentEnum.DELAY?15:-1),c(),b(r.delaystate==r.DelayComponentEnum.DELAYINVALIDDISTRICT?16:-1),c(),b(r.delaystate==r.DelayComponentEnum.POSSIBLEDELAY?17:-1))},dependencies:[vr,Ee,at,Rt,ze],styles:[`.smallOrderList[_ngcontent-%COMP%]{padding-inline-start:40px}.card-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin:0} 651/*# sourceMappingURL=delay.component-GB4WUVTW.css.map */`]})}}return t})();var mV=(()=>{class t{constructor(){this.translationService=d(Y)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-complaint-without-login-after"]],decls:2,vars:1,consts:[[1,"complaint-after","complaint-after__container","d-flex","align-items-center"],[1,"complaint-after__text",2,"font-size","2rem",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0),_(1,"span",1),m()),i&2&&(c(),f("innerHTML",r.translationService.getTranslation("after_complaint"),y))},encapsulation:2})}}return t})();var fV=(()=>{class t{constructor(){this.http=d(Be)}checkUserAndGetMaskedExtendedData(e){return this.http.post("/webabo/users/checkUserAndGetMaskedExtendedData",this.toRequestBody(e)).pipe(F(i=>i?(i=this.buildObject(i),i):null))}checkUserAndValidateExtendedData(e){return this.http.post("/webabo/users/checkUserAndValidateExtendedData",this.toRequestBody(e)).pipe(F(i=>(i=this.buildObject(i),i)))}createAccount(e){return this.http.post("/webabo/users/createAccount",this.toRequestBody(e)).pipe(F(i=>(i=this.buildObject(i),i)))}toRequestBody(e){return re(N({},e),{extendedData:t.mapToObject(e.extendedData),maskedExtendedData:t.mapToObject(e.maskedExtendedData)})}static mapToObject(e){let i={};return e?.forEach((r,o)=>{i[o]=r}),i}buildObject(e){e.person=new os(e.person.title,e.person.salutation,e.person.firstname,e.person.lastname,e.person.initials,e.person.middleName),e.address=new Do(e.address.street,e.address.houseno,e.address.zipcode,e.address.city,e.address.country,e.address.webId,e.address.backendId,e.address.userBackendId,e.address.userSSOId,e.address.district,e.address.longitude,e.address.latitude);let i=new Map;return e.maskedExtendedData.EMAIL&&i.set("EMAIL",e.maskedExtendedData.EMAIL),e.maskedExtendedData.IBAN&&i.set("IBAN",e.maskedExtendedData.IBAN),e.maskedExtendedData.PHONE&&i.set("PHONE",e.maskedExtendedData.PHONE),e.maskedExtendedData.BIRTHDAY&&i.set("BIRTHDAY",e.maskedExtendedData.BIRTHDAY),e.maskedExtendedData.CLIENTNO&&i.set("CLIENTNO",e.maskedExtendedData.CLIENTNO),e.maskedExtendedData=i,e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var vge=["*"];function bge(t,n){t&1&&(p(0,"div",2),_(1,"app-loading-spinner",3),m())}var hV=(()=>{class t{constructor(){this.loading=!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-loading-overlay"]],inputs:{loading:"loading"},ngContentSelectors:vge,decls:4,vars:3,consts:[[1,"loading-overlay"],[1,"loading-overlay__content"],[1,"loading-overlay__veil"],[1,"loading-overlay__spinner"]],template:function(i,r){i&1&&(_t(),p(0,"div",0)(1,"div",1),Ve(2),m(),x(3,bge,2,0,"div",2),m()),i&2&&(ce("aria-busy",r.loading),c(),ce("inert",r.loading?"":null),c(2),b(r.loading?3:-1))},dependencies:[Ge],styles:[`[_nghost-%COMP%]{display:block}.loading-overlay[_ngcontent-%COMP%]{position:relative}.loading-overlay__content[inert][_ngcontent-%COMP%]{pointer-events:none}.loading-overlay__veil[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background-color:#fff9}
652/*# sourceMappingURL=loading-overlay.component-556NV5XQ.css.map */`]})}}return t})();var yge=["input"],Cge=["formField"],Sge=["*"],Lb=class{source;value;constructor(n,e){this.source=n,this.value=e}},xge={provide:Ar,useExisting:Si(()=>HD),multi:!0},gV=new H("MatRadioGroup"),wge=new H("mat-radio-default-options",{providedIn:"root",factory:Ege});function Ege(){return{color:"accent",disabledInteractive:!1}}var HD=(()=>{class t{_changeDetector=d(Je);_value=null;_name=d(Mt).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new z;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Lb(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&Kt(o,Bb,5),i&2){let a;se(a=le())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",pe],required:[2,"required","required",pe],disabledInteractive:[2,"disabledInteractive","disabledInteractive",pe]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[_e([xge,{provide:gV,useExisting:t}])]})}return t})(),Bb=(()=>{class t{_elementRef=d(ue);_changeDetector=d(Je);_focusMonitor=d(Yr);_radioDispatcher=d(Jc);_defaultOptions=d(wge,{optional:!0});_ngZone=d(de);_renderer=d(It);_uniqueId=d(Mt).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new z;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations;_injector=d(Ne);constructor(){d(pi).load(Qr);let e=d(gV,{optional:!0}),i=d(zt,{optional:!0}),r=d(new Br("tabindex"),{optional:!0});
652this.radioGroup=e,this._noopAnimations=i==="NoopAnimations",this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,r&&(this.tabIndex=Ii(r,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_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((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Lb(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,Ti(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(De(yge,5),De(Cge,7,ue)),i&2){let o;se(o=le())&&(r._inputElement=o.first),se(o=le())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&T("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(ce("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),fe("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",pe],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Ii(e)],checked:[2,"checked","checked",pe],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",pe],required:[2,"required","required",pe],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",pe]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Sge,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=B();_t(),p(0,"div",2,0)(2,"div",3)(3,"div",4),T("click",function(s){return A(o),k(r._onTouchTargetClick(s))}),m(),p(4,"input",5,1),T("change",function(s){return A(o),k(r._onInputInteraction(s))}),m(),p(6,"div",6),_(7,"div",7)(8,"div",8),m(),p(9,"div",9),_(10,"div",10),m()(),p(11,"label",11),Ve(12),m()()}i&2&&(f("labelPosition",r.labelPosition),c(2),fe("mdc-radio--disabled",r.disabled),c(2),f("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),ce("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),c(5),f("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),c(2),f("for",r.inputId))},dependencies:[Tl,F0],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>
652.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px);top:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>
652.mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}
652[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} 653`],encapsulation:2,changeDetection:0})}return t})(),_V=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[Kr,Q0,Bb,Kr]})}return t})();function Tge(t,n){if(t&1&&_(0,"h3",19),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("identification_intro"),y)}}function Mge(t,n){if(t&1&&_(0,"app-general-errors",10),t&2){let e=h();f("errors",e.errorsArr)}}function Ige(t,n){if(t&1){let e=B();p(0,"button",21),T("click",function(){A(e);let r=h(2);return k(r.loadAddress())}),E(1),m()}if(t&2){let e=h(2);c(),R("",e.translationService.getTranslation("identification_search_address")," ")}}function Age(t,n){if(t&1&&(p(0,"div",15),x(1,Ige,2,1,"button",20),m()),t&2){let e=h();c(),b(e.identificationData?-1:1)}}function kge(t,n){if(t&1&&(p(0,"mat-error"),E(1),m()),t&2){let e=h(3);c(),R(" ",e.translationService.getTranslation("identification_wrong_birthday")," ")}}function Oge(t,n){if(t&1&&(p(0,"div",24)(1,"div",32),E(2),m(),p(3,"div",33)(4,"mat-form-field",34),_(5,"mat-label",35)(6,"input",36),x(7,kge,2,1,"mat-error"),m()()()),t&2){let e,i=h(2);c(2),Pe("",i.translationService.getTranslation("address_birthday")," ",i.identificationData.maskedExtendedData.get("BIRTHDAY")," "),c(3),f("innerHTML",i.translationService.getTranslation("address_birthday"),y),c(2),b((e=i.formGroup.get("searchAddress.extendedValues.birthday"))!=null&&e.invalid?7:-1)}}function Pge(t,n){if(t&1&&(p(0,"mat-error"),E(1),m()),t&2){let e=h(3);c(),R(" ",e.translationService.getTranslation("identification_wrong_iban")," ")}}function Nge(t,n){if(t&1&&(p(0,"div",25)(1,"div",37),E(2),m(),p(3,"div",38)(4,"mat-form-field",34),_(5,"mat-label",35)(6,"input",39),x(7,Pge,2,1,"mat-error"),m()()()),t&2){let e,i=h(2);c(2),Pe("",i.translationService.getTranslation("payment_iban")," ",i.identificationData.maskedExtendedData.get("IBAN")," "),c(3),f("innerHTML",i.translationService.getTranslation("payment_iban"),y),c(2),b((e=i.formGroup.get("searchAddress.extendedValues.iban"))!=null&&e.invalid?7:-1)}}function Rge(t,n){if(t&1&&(p(0,"mat-error"),E(1),m()),t&2){let e=h(3);c(),R(" ",e.translationService.getTranslation("identification_wrong_phone")," ")}}function Fge(t,n){if(t&1&&(p(0,"div",26)(1,"div",40),E(2),m(),p(3,"div",41)(4,"mat-form-field",34),_(5,"mat-label",35)(6,"input",42),x(7,Rge,2,1,"mat-error"),m()()()),t&2){let e,i=h(2);c(2),Pe("",i.translationService.getTranslation("address_telephone")," ",i.identificationData.maskedExtendedData.get("PHONE")," "),c(3),f("innerHTML",i.translationService.getTranslation("address_telephone"),y),c(2),b((e=i.formGroup.get("searchAddress.extendedValues.phone"))!=null&&e.invalid?7:-1)}}function Lge(t,n){if(t&1&&(p(0,"mat-error"),E(1),m()),t&2){let e=h(3);c(),R(" ",e.translationService.getTranslation("identification_wrong_email")," ")}}function Bge(t,n){if(t&1&&(p(0,"div",27)(1,"div",43),E(2),m(),p(3,"div",44)(4,"mat-form-field",34),_(5,"mat-label",35)(6,"input",45),x(7,Lge,2,1,"mat-error"),m()()()),t&2){let e,i=h(2);c(2),Pe("",i.translationService.getTranslation("address_email")," ",i.identificationData.maskedExtendedData.get("EMAIL")," "),c(3),f("innerHTML",i.translationService.getTranslation("address_email"),y),c(2),b((e=i.formGroup.get("searchAddress.extendedValues.email"))!=null&&e.invalid?7:-1)}}function Hge(t,n){if(t&1&&(p(0,"mat-error"),E(1),m()),t&2){let e=h(3);c(),R(" ",e.translationService.getTranslation("identification_wrong_clientNo")," ")}}function Vge(t,n){if(t&1&&(p(0,"div",28)(1,"div",46),E(2),m(),p(3,"div",47)(4,"mat-form-field",34),_(5,"mat-label",35)(6,"input",48),x(7,Hge,2,1,"mat-error"),m()()()),t&2){let e,i=h(2);c(2),Pe("",i.translationService.getTranslation("label_backendid")," ",i.identificationData.maskedExtendedData.get("CLIENTNO")," "),c(3),f("innerHTML",i.translationService.getTranslation("label_backendid"),y),c(2),b((e=i.formGroup.get("searchAddress.extendedValues.clientNo"))!=null&&e.invalid?7:-1)}}function jge(t,n){if(t&1){let e=B();p(0,"button",49),T("click",function(){A(e);let r=h(2);return k(r.checkMaskedData())}),E(1),m()}if(t&2){let e=h(2);c(),R("",e.translationService.getTranslation("identification_check_extended_values")," ")}}
653function zge(t,n){if(t&1){let e=B();p(0,"div",50),_(1,"div",51),p(2,"div",52)(3,"button",53),T("click",function(){A(e);let r=h(3);return k(r.continueWithoutRegistration())}),m(),p(4,"button",54),T("click",function(){A(e);let r=h(3);return k(r.registeringAgreed=!0)}),m()()()}if(t&2){let e=h(3);c(),f("innerHTML",e.translationService.getTranslation("identification.next_options"),y),c(2),f("innerHTML",e.translationService.getTranslation("identification_continueWithoutRegistration"),y),c(),f("innerHTML",e.translationService.getTranslation("identification_continueWithRegistration"),y)}}function Uge(t,n){if(t&1&&(p(0,"div",63)(1,"mat-checkbox",64),_(2,"div",35),m()()),t&2){let e=h(5);c(2),f("innerHTML",e.translationService.getTranslation("identification_registration_same_email"),y)}}function Gge(t,n){if(t&1&&x(0,Uge,3,1,"div",63),t&2){let e=h(4);b(e.showEmail&&e.formGroup.get("searchAddress.extendedValues.email").value!==""?0:-1)}}function $ge(t,n){t&1&&_(0,"mat-spinner",59),t&2&&f("diameter",18)}function Wge(t,n){t&1&&(p(0,"mat-icon",60),E(1," check "),m())}function qge(t,n){if(t&1&&(p(0,"mat-error"),E(1),m()),t&2){let e=h(4);c(),R(" ",e.formGroup.get("searchAddress.extendedValues.registerEmail").getError("message")," ")}}function Yge(t,n){if(t&1){let e=B();p(0,"div",61),_(1,"div",35),p(2,"div",65)(3,"button",66),T("click",function(){A(e);let r=h(4);return k(r.createAccount())}),E(4),m()()()}if(t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("identification_register_description"),y),c(3),R("",e.translationService.getTranslation("identification_create_account")," ")}}function Kge(t,n){if(t&1){let e=B();p(0,"div",62),_(1,"div",35),p(2,"div",67)(3,"button",68),T("click",function(){A(e);let r=h(4);return k(r.goToLogin())}),E(4),m()()()}if(t&2){let e=h(4);c(),f("innerHTML",e.translationService.getTranslation("identification_go_to_login_description"),y),c(3),R("",e.translationService.getTranslation("identification_go_to_login")," ")}}function Qge(t,n){if(t&1){let e=B();_(0,"div",55),x(1,Gge,1,1),p(2,"div",56),E(3),m(),p(4,"div",57)(5,"mat-form-field",34),_(6,"mat-label",35),p(7,"input",58),T("keyup.enter",function(){A(e);let r=h(3);return k(r.createAccount())}),m(),x(8,$ge,1,1,"mat-spinner",59)(9,Wge,2,0,"mat-icon",60)(10,qge,2,1,"mat-error"),m()(),x(11,Yge,5,2,"div",61)(12,Kge,5,2,"div",62)}if(t&2){let e=h(3);f("innerHTML",e.translationService.getTranslation("identification_registration_email_overview"),y),c(),b(e.identificationData.matchEmail?-1:1),c(2),R("",e.translationService.getTranslation("address_email")," "),c(3),f("innerHTML",e.translationService.getTranslation("address_email"),y),c(),f("readonly",e.identificationData.matchEmail),c(),b(e.formGroup.get("searchAddress.extendedValues.registerEmail").pending?8:-1),c(),b(e.formGroup.get("searchAddress.extendedValues.registerEmail").valid?9:-1),c(),b(e.formGroup.get("searchAddress.extendedValues.registerEmail").hasError("message")?10:-1),c(),b(e.formGroup.get("searchAddress.extendedValues.registerEmail").valid?11:-1),c(),b(e.formGroup.get("searchAddress.extendedValues.registerEmail").hasError("message")?12:-1)}}function Zge(t,n){if(t&1&&(p(0,"div",31),x(1,zge,5,3,"div",50)(2,Qge,13,10),m()),t&2){let e=h(2);c(),b(e.returnPath&&!e.registeringAgreed?1:-1),c(),b(e.registeringAgreed||!e.returnPath?2:-1)}}function Xge(t,n){if(t&1&&(ni(0,16),p(1,"div",22),_(2,"div",23),x(3,Oge,8,4,"div",24)(4,Nge,8,4,"div",25)(5,Fge,8,4,"div",26)(6,Bge,8,4,"div",27)(7,Vge,8,4,"div",28),p(8,"div",29),x(9,jge,2,1,"button",30),m(),x(10,Zge,3,2,"div",31),m(),Jt()),t&2){let e=h();f("formGroup",e.formGroup.get("searchAddress")),c(2),f("innerHTML",e.maskedOverviewText,y),c(),b(e.showBirthday?3:-1),c(),b(e.showIBAN?4:-1),c(),b(e.showPhone?5:-1),c(),b(e.showEmail?6:-1),c(),b(e.showClientNo?7:-1),c(2),b(e.identificationData.user?-1:9),c(),b(e.identificationData.user?10:-1)}}function Jge(t,n){if(t&1&&_(0,"div",17),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("identification_notFoundUser"),y)}}function e_e(t,n){if(t&1&&_(0,"div",18),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("identification_notFoundExtendedData"),y)}}var VD=(()=>{class t{constructor(){this.translationService=d(Y),this.formBuilder=d(kt),this.route=d(Ye),this.identificationService=d(fV),this.loginService=d(ft),this.navigationService=d(Re),this.http=d(Be),this.configService=d(Ce),this.router=d(et),this.isLoading=!1,this.errorsArr=[],this.showIBAN=!1,this.showPhone=!1,this.showBirthday=!1,this.showEmail=!1,this.showClientNo=!1,this.identificationData=null,this.notFoundAddress=!0,this.notFoundExtendedData=!0,this.searched=!1,this.registeringAgreed=!1,this.customerType=dp.PRIVATE,this.lastSearchKey=null,this.CustomerType=dp;let e=this.translationService;this.maskedOverviewText="",this.formGroup=this.formBuilder.group({searchAddress:this.formBuilder.group({showAddress:[""],address:this.formBuilder.group({country:[""],zipcode:[""],city:[""],street:[""],houseNo:[""],extraLine:[""],houseNoExt:[""],stiege:[""],stock:[""],tuer:[""],district:[""]}),person:this.formBuilder.group({title:[""],salutation:[""],firstName:[""],lastName:[""],initials:[""],middlename:[""]}),extendedValues:this.formBuilder.group({email:["",[Hi.checkIdentificationFieldIsCorrect("EMAIL",()=>this.identificationData)]],phone:["",[Hi.checkIdentificationFieldIsCorrect("PHONE",()=>this.identificationData)]],iban:["",[Hi.checkIdentificationFieldIsCorrect("IBAN",()=>this.identificationData)]],birthday:["",[Hi.checkIdentificationFieldIsCorrect("BIRTHDAY",()=>this.identificationData)]],clientNo:["",[Hi.checkIdentificationFieldIsCorrect("CLIENTNO",()=>
653this.identificationData)]],copyEmail:[!1],registerEmail:["",[Z.required,Z.pattern('^(([^<>()[\\]\\\\.,;:\\s@"]+(\\.[^<>()[\\]\\\\.,;:\\s@"]+)*)|.(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$')]]})})}),this.route.paramMap.subscribe(r=>{let o=r.get("returnPath");o&&(this.returnPath=o)}),this.formGroup.get("searchAddress.address").valueChanges.subscribe(()=>{this.resetIfSearchChanged()}),this.formGroup.get("searchAddress.person").valueChanges.subscribe(()=>{this.resetIfSearchChanged()}),this.formGroup.get("searchAddress.extendedValues.copyEmail").valueChanges.subscribe(r=>{r?this.formGroup.get("searchAddress.extendedValues.registerEmail").setValue(this.formGroup.get("searchAddress.extendedValues.email").value):this.formGroup.get("searchAddress.extendedValues.registerEmail").setValue("")}),this.loginService.getAuthData().subscribe(r=>{r&&r.token&&this.navigationService.navigateTo(this.returnPath?this.returnPath:ge.SUBSCRIPTION)}),this.formGroup.get("searchAddress.extendedValues.registerEmail").setAsyncValidators(Hi.checkEmailAddress(this.http,this.translationService));let i=this.configService.getConfig("identification.matchCount");i&&i.value&&i.value!==""&&(this.maskedOverviewText=e.getTranslation("identification_masked_overview"),this.maskedOverviewText.includes("{count")&&(this.maskedOverviewText=this.maskedOverviewText.replace("{count}",i.value)))}handleEnterKey(e){if(!this.isLoading){if(!this.identificationData){this.formGroup.get("searchAddress").get("person").valid&&this.formGroup.get("searchAddress").get("address").valid&&(e.preventDefault(),this.loadAddress());return}this.identificationData.maskedExtendedData?.size>0&&!this.identificationData.user&&(e.preventDefault(),this.checkMaskedData())}}loadAddress(){this.isLoading=!0,this.searched=!0;let e=this.buildIdentificationModelOfFormGroup();this.resetVariables(),this.lastSearchKey=this.buildSearchKey(),this.identificationService.checkUserAndGetMaskedExtendedData(e).subscribe(i=>{this.isLoading=!1,i?i.maskedExtendedData&&i.maskedExtendedData.size>0?(this.identificationData=i,i.maskedExtendedData.forEach((r,o)=>{switch(o){case"EMAIL":this.showEmail=!0;break;case"PHONE":this.showPhone=!0;break;case"IBAN":this.showIBAN=!0;break;case"BIRTHDAY":this.showBirthday=!0;break;case"CLIENTNO":this.showClientNo=!0;break}})):this.notFoundExtendedData=!0:this.notFoundAddress=!0},i=>{this.isLoading=!1})}checkMaskedData(){this.isLoading=!0;let e=this.buildIdentificationModelOfFormGroup();this.identificationService.checkUserAndValidateExtendedData(e).subscribe(i=>{this.isLoading=!1,i&&(this.identificationData=i,this.applyMatchResult("email",this.showEmail),this.applyMatchResult("phone",this.showPhone),this.applyMatchResult("iban",this.showIBAN),this.applyMatchResult("birthday",this.showBirthday),this.applyMatchResult("clientNo",this.showClientNo),this.showEmail&&i.matchEmail&&this.formGroup.get("searchAddress.extendedValues.registerEmail").setValue(this.formGroup.get("searchAddress.extendedValues.email").value))},i=>{this.isLoading=!1})}applyMatchResult(e,i){if(!i)return;let r=this.formGroup.get(`searchAddress.extendedValues.${e}`);r.markAsTouched(),r.updateValueAndValidity()}continueWithoutRegistration(){this.isLoading=!0,this.identificationData?.user&&this.returnPath?.length>0&&(this.returnPath=this.returnPath+"-without-login",this.navigationService.navigateTo(this.returnPath,[this.identificationData.user.userBackendId.toString()]))}createAccount(){if(this.formGroup.get("searchAddress.extendedValues").invalid)return;this.isLoading=!0;let e=this.buildIdentificationModelOfFormGroup();this.editIdentificationData(e),this.identificationService.createAccount(e).subscribe(i=>{i&&i.user&&i.otlc&&i.otlc!==""?this.loginService.loginByOtlc(i.otlc):this.isLoading=!1},i=>{this.isLoading=!1})}editIdentificationData(e){e.matchClientNo=this.identificationData?.matchClientNo,e.matchBirthday=this.identificationData?.matchBirthday,e.matchEmail=this.identificationData?.matchEmail,e.matchIBAN=this.identificationData?.matchIBAN,e.matchPhone=this.identificationData?.matchPhone}goToLogin(){if(this.identificationData?.user){let e=this.formGroup.get("searchAddress.extendedValues.registerEmail").value;this.router.navigate(["/login"],{queryParams:{returnUrl:this.returnPath,prefillUsername:e,clientNo:this.identificationData.user.userBackendId.toString()}})}else this.navigationService.navigateTo(ge.LOGIN)}resetIfSearchChanged(){this.buildSearchKey()!==this.lastSearchKey&&this.resetVariables()}buildSearchKey(){return JSON.stringify([this.formGroup.get("searchAddress.person.firstName").value,this.formGroup.get("searchAddress.person.lastName").value,this.formGroup.get("searchAddress.address.street").value,this.formGroup.get("searchAddress.address.houseNo").value,this.formGroup.get("searchAddress.address.zipcode").value,this.formGroup.get("searchAddress.address.city").value,this.formGroup.get("searchAddress.address.country").value?.key])}resetVariables(){this.showEmail=!1,this.showPhone=!1,this.showIBAN=!1,this.showBirthday=!1,this.showClientNo=!1,this.identificationData=null,this.notFoundAddress=!1,this.notFoundExtendedData=!1}buildIdentificationModelOfFormGroup(){let e=new os(null,null,this.formGroup.get("searchAddress.person.firstName").value,this.formGroup.get("searchAddress.person.lastName").value,
653null,null),i=new Do(this.formGroup.get("searchAddress.address.street").value,this.formGroup.get("searchAddress.address.houseNo").value,this.formGroup.get("searchAddress.address.zipcode").value,this.formGroup.get("searchAddress.address.city").value,this.formGroup.get("searchAddress.address.country").value?.key,null,null,null,null,null,null,null),r=new Map;return this.formGroup.get("searchAddress.extendedValues.email").value&&r.set("EMAIL",this.formGroup.get("searchAddress.extendedValues.email").value),this.formGroup.get("searchAddress.extendedValues.iban").value&&r.set("IBAN",this.formGroup.get("searchAddress.extendedValues.iban").value),this.formGroup.get("searchAddress.extendedValues.birthday").value&&r.set("BIRTHDAY",this.formGroup.get("searchAddress.extendedValues.birthday").value),this.formGroup.get("searchAddress.extendedValues.phone").value&&r.set("PHONE",this.formGroup.get("searchAddress.extendedValues.phone").value),this.formGroup.get("searchAddress.extendedValues.clientNo").value&&r.set("CLIENTNO",this.formGroup.get("searchAddress.extendedValues.clientNo").value),{person:e,address:i,extendedData:r,maskedExtendedData:this.identificationData?.maskedExtendedData??new Map,matchIBAN:!1,matchPhone:!1,matchBirthday:!1,matchEmail:!1,matchClientNo:!1,user:this.identificationData?.user??null,otlc:null,registerEmail:this.formGroup.get("searchAddress.extendedValues.registerEmail").value,enoughMatches:!1}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-identification"]],hostBindings:function(i,r){i&1&&T("keydown.enter",function(a){return r.handleEnterKey(a)},!1,Bk)},decls:23,vars:19,consts:[[3,"loading"],[1,"row","identification","identification__row"],[1,"col-12","identification__intro"],["class","identification__intro-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","mb-3","identification__description"],[1,"identification__description-title",3,"innerHTML"],[1,"mt-3","identification__card"],[1,"identification__card-content"],[1,"row","mt-3","identification__form-row"],[1,"col-12","identification__form-col"],[1,"identification__errors",3,"errors"],[1,"identification__customer-type"],[1,"d-flex","gap-4","align-items-center","identification__customer-type-group",3,"ngModelChange","ngModel"],["labelPosition","after",1,"identification__customer-type-radio",3,"value"],[1,"identification__subscription-address",3,"controlGroup","showTitle","showSalutation","showAddressExt1","customerType","identification"],[1,"mt-2","text-center","identification__search-btn-row"],[1,"identification__extended-container",3,"formGroup"],[1,"mt-5","identification__notfound-address",3,"innerHTML"],[1,"mt-5","identification__notfound-extended",3,"innerHTML"],[1,"identification__intro-title",3,"innerHTML"],["mat-raised-button","","color","primary",1,"identification__search-btn"],["mat-raised-button","","color","primary",1,"identification__search-btn",3,"click"],["formGroupName","extendedValues",1,"identification__extended-values"],[1,"mb-2","identification__masked-overview",3,"innerHTML"],[1,"row","mt-2","identification__row-birthday"],[1,"row","mt-2","identification__row-iban"],[1,"row","mt-2","identification__row-phone"],[1,"row","mt-2","identification__row-email"],[1,"row","mt-2","identification__row-clientno"],[1,"mt-2","text-center","identification__check-btn-row"],["mat-raised-button","","color","primary",1,"identification__check-btn"],[1,"row","mt-5","identification__register-row"],[1,"col-12","col-md-6","text-end","my-auto","identification__label-birthday"],[1,"col-12","col-md-6","identification__input-birthday"],[1,"identification__form-field"],[3,"innerHTML"],["matInput","","formControlName","birthday"],[1,"col-12","col-md-6","text-end","my-auto","identification__label-iban"],[1,"col-12","col-md-6","identification__input-iban"],["matInput","","formControlName","iban"],[1,"col-12","col-md-6","text-end","my-auto","identification__label-phone"],[1,"col-12","col-md-6","identification__input-phone"],["matInput","","formControlName","phone"],[1,"col-12","col-md-6","text-end","my-auto","identification__label-email"],[1,"col-12","col-md-6","identification__input-email"],["matInput","","formControlName","email"],[1,"col-12","col-md-6","text-end","my-auto","identification__label-clientno"],[1,"col-12","col-md-6","identification__input-clientno"],["matInput","","formControlName","clientNo"],["mat-raised-button","","color","primary",1,"identification__check-btn",3,"click"],[1,"row","mb-3","justify-content-between","identification__register-options-row"],[1,"options-text","text-center","identification__register-options-text",3,"innerHTML"],[1,"btn-container","justify-content-between","identification__register-btn-container"],["mat-flat-button","",1,"btn","btn-secondary","col-5","identification__register-btn",3,"click","innerHTML"],["mat-raised-button","","color","primary",1,"btn","col-5","identification__register-btn",3,"click","innerHTML"],[1,"mb-2","
653identification__register-email-overview",3,"innerHTML"],[1,"col-12","col-md-6","text-end","my-auto","identification__register-label-email"],[1,"col-12","col-md-6","identification__register-input-email"],["matInput","","formControlName","registerEmail",3,"keyup.enter","readonly"],["matSuffix","",1,"iconInInput","identification__register-spinner",2,"float","right","margin-left","18px",3,"diameter"],["matSuffix","",1,"iconInInput","identification__register-icon"],[1,"mt-2","identification__register-description"],[1,"mt-2","identification__register-login-description"],[1,"col-12","col-md-6","offset-md-6","identification__register-checkbox"],["formControlName","copyEmail",1,"identification__register-checkbox-input"],[1,"mt-2","text-center","identification__register-create-btn-row"],["mat-raised-button","","color","primary",1,"identification__register-create-btn",3,"click"],[1,"mt-2","text-center","identification__register-login-btn-row"],["mat-raised-button","","color","primary",1,"identification__register-login-btn",3,"click"]],template:function(i,r){i&1&&(p(0,"app-loading-overlay",0)(1,"div",1)(2,"div",2),x(3,Tge,1,1,"h3",3),m(),p(4,"div",4),_(5,"h4",5),m()(),p(6,"mat-card",6)(7,"mat-card-content",7)(8,"div",8)(9,"div",9),x(10,Mge,1,1,"app-general-errors",10),p(11,"div",11)(12,"mat-radio-group",12),wn("ngModelChange",function(a){return Nn(r.customerType,a)||(r.customerType=a),a}),p(13,"mat-radio-button",13),E(14),m(),p(15,"mat-radio-button",13),E(16),m()()(),_(17,"br")(18,"app-hup-subscription-address",14),x(19,Age,2,1,"div",15)(20,Xge,11,9,"ng-container",16)(21,Jge,1,1,"div",17)(22,e_e,1,1,"div",18),m()()()()()),i&2&&(f("loading",r.isLoading),c(3),f("appApplyIfNotEmpty",r.translationService.getTranslation("identification_intro")),c(2),f("innerHTML",r.translationService.getTranslation("identification_description"),y),c(5),b(r.errorsArr.length>0?10:-1),c(2),xn("ngModel",r.customerType),c(),f("value",r.CustomerType.PRIVATE),c(),R("",r.translationService.getTranslation("customer_private")," "),c(),f("value",r.CustomerType.COMPANY),c(),R("",r.translationService.getTranslation("customer_company")," "),c(2),f("controlGroup",r.formGroup.get("searchAddress"))("showTitle",!1)("showSalutation",!1)("showAddressExt1",!1)("customerType",r.customerType)("identification",!0),c(),b(r.formGroup.get("searchAddress").get("person").valid&&r.formGroup.get("searchAddress").get("address").valid?19:-1),c(),b(r.identificationData&&r.identificationData.maskedExtendedData&&r.identificationData.maskedExtendedData.size>0?20:-1),c(),b(r.searched&&r.notFoundAddress?21:-1),c(),b(r.searched&&r.notFoundExtendedData?22:-1))},dependencies:[hV,Vt,vr,Ee,Nt,ei,Ot,Bt,At,Wt,bt,Ut,fr,tr,up,fn,Ht,Pt,at,Rt,ze,_V,HD,Bb,$o,js],styles:[`div.btn-container[_ngcontent-%COMP%]{display:flex;justify-content:center}div.options-text[_ngcontent-%COMP%]{margin-bottom:10px}@media screen and (max-width: 768px){div.btn-container[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}div.btn-container[_ngcontent-%COMP%] > button.btn[_ngcontent-%COMP%]{width:100%!important;margin-bottom:10px!important}} 654/*# sourceMappingURL=identification.component-PZGKZ6KB.css.map */`]})}}return t})();function t_e(t,n){if(t&1&&_(0,"h3",11),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("sub_change_intro"),y)}}function i_e(t,n){if(t&1){let e=B();p(0,"div",7)(1,"button",12),T("click",function(){A(e);let r=h();return k(r.navigateToIdentification())}),m()()}if(t&2){let e=h();c(),f("innerHTML",e.translationService.getTranslation("button_toIdentificationForm"),y)}}function n_e(t,n){t&1&&(p(0,"div",8),_(1,"app-loading-spinner",13),m())}function r_e(t,n){if(t&1&&_(0,"div",10),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("intro_noSubs"),y)}}function o_e(t,n){if(t&1&&_(0,"mat-card-subtitle",18),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_id")+": "+e.subId,y)}}function a_e(t,n){if(t&1&&_(0,"mat-card-subtitle",18),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_edition")+": "+e.variantDescription,y)}}function s_e(t,n){if(t&1&&(_(0,"mat-card-subtitle",18),te(1,"date"),te(2,"date")),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("period")+": "+Te(1,1,e.validDate.validFrom,i.translationService.getTranslation("dateFormat"))+" - "+(e.validDate.validUntil?Te(2,4,e.validDate.validUntil,i.translationService.getTranslation("dateFormat")):i.translationService.getTranslation("subscription_endless")),y)}}function l_e(t,n){if(t&1&&(p(0,"mat-card-subtitle",19),E(1),te(2,"houseNoPipe"),m()),t&2){let e=h().$implicit;
654c(),ma(" ",e.curDelivery.person.addressCodeDescription," ",e.curDelivery.person.firstname," ",e.curDelivery.person.lastname,", ",e.curDelivery.address.city,", ",e.curDelivery.address.street," ",Ct(2,6,e.curDelivery.address.houseno)," ")}}function c_e(t,n){if(t&1&&_(0,"p",23),t&2){let e=h(4);f("innerHTML",e.translationService.getTranslation("subChange_impossible"),y)}}function d_e(t,n){if(t&1&&x(0,c_e,1,1,"p",25),t&2){let e=h(3);f("appApplyIfNotEmpty",e.translationService.getTranslation("subChange_impossible"))}}function u_e(t,n){}function p_e(t,n){if(t&1&&(p(0,"mat-expansion-panel",27)(1,"mat-expansion-panel-header",28),_(2,"mat-panel-title",29),p(3,"mat-panel-description",30),E(4),te(5,"date"),te(6,"date"),m()(),x(7,u_e,0,0,"ng-template",31),m()),t&2){let e=n.$implicit,i=h(4);c(2),f("innerHTML",i.translationService.getTranslation("label_"+e.changeType.toString()+"_description"),y),c(2),Pe(" ",Te(5,3,e.validDate.validFrom,i.translationService.getTranslation("dateFormat"))," ",e.validDate.validUntil&&e.validDate.validUntil!=e.validDate.validFrom?" - "+Te(6,6,e.validDate.validUntil,i.translationService.getTranslation("dateFormat")):""," ")}}function m_e(t,n){if(t&1&&(p(0,"mat-card-content",24)(1,"mat-accordion",26),W(2,p_e,8,9,"mat-expansion-panel",27,X),m()()),t&2){let e=h().$implicit;c(2),q(e.subChanges)}}function f_e(t,n){if(t&1){let e=B();p(0,"mat-card",14)(1,"div",15)(2,"div",16)(3,"mat-card-title",17),E(4),m(),x(5,o_e,1,1,"mat-card-subtitle",18)(6,a_e,1,1,"mat-card-subtitle",18)(7,s_e,3,7,"mat-card-subtitle",18)(8,l_e,3,8,"mat-card-subtitle",19),m(),p(9,"div",20),Tr(10),p(11,"mat-card-actions",21)(12,"button",22),T("click",function(){let r=A(e).$implicit,o=h(2);return k(o.onNewSubChange(r))}),m()(),x(13,d_e,1,1,"p",23),m()(),x(14,m_e,4,0,"mat-card-content",24),m()}if(t&2){let e=n.$implicit,i=h(2);c(4),R("",e.productDescription," "),c(),b(e.subId?5:-1),c(),b(e.variantDescription?6:-1),c(),b(e.validDate?7:-1),c(),b(e.curDelivery?8:-1);let r=i.isOnlinePayment(e);c(4),f("innerHTML",i.translationService.getTranslation("button_new_sub_change"),y)("disabled",r),c(),b(r?13:-1),c(),b(e&&e.subChanges&&e.subChanges.length>0?14:-1)}}function h_e(t,n){if(t&1&&W(0,f_e,15,9,"mat-card",14,X),t&2){let e=h();q(e.subs)}}var jD=(()=>{class t{constructor(){this.hupSubscriptionsService=d(ct),this.subChangeService=d(gp),this.baseDataService=d(vt),this.translationService=d(Y),this.route=d(Ye),this.navigationService=d(Re),this.configService=d(Ce),this.onlinePaymentChecker=new eo,this.isLoadingSub=!1,this.subs=[],this.errorsArr=[],this.identified=!1,this.noOrdersFound=!1,this.route.paramMap.subscribe(i=>{let r=Number(i.get("clientNo"));r&&(this.identified=!0,this.loadOrdersForClientNo(r))});let e=this.configService.getConfig(this.onlinePaymentChecker.ONLINE_PAYMENT_METHOD_ID_CONFIG_KEY);e&&e.value&&this.onlinePaymentChecker.setPaymentCode(e.value)}loadOrdersForClientNo(e){this.isLoadingSub=!0,this.subs=[],this.noOrdersFound=!1,e&&Number(e)>0&&this.hupSubscriptionsService.getSubscriptionsUnauthorized(e).subscribe(i=>{this.isLoadingSub=!1,i.length===1&&i[0]?this.onNewSubChange(i[0]):i.length>1?(i.forEach(r=>{(r.validDate.validUntil==null||r.validDate.validUntil>new Date)&&r.backendId>0&&!si(r.offer?.offerType)&&!si(r.subscriptionType)&&(this.baseDataService.handleUnauthorizedOrder(r),r.variantDescription||this.baseDataService.loadBaseData("variantcode").subscribe(o=>{o?.forEach(a=>{a.key===r.variantCode&&(r.variantDescription=a.description)})}),this.subs.push(r))}),this.subs.forEach(r=>{r.isLoadingSubChange=!0,this.subChangeService.getSubChanges(r.backendId,r.userBackendId).subscribe({next:o=>{r.subChanges=o},error:o=>{r.isLoadingSubChange=!1,this.errorsArr.push(this.translationService.getTranslation("error_subchanges_init"))},complete:()=>{r.isLoadingSubChange=!1}})})):this.noOrdersFound=!0})}navigateToIdentification(){this.navigationService.navigateTo(ge.IDENTIFICATION,[ge.SUBCHANGE.substring(1)])}onNewSubChange(e){this.navigationService.navigateTo(ge.SUBCHANGEWITHOUTLOGINNEW,[e.backendId+"",e.userBackendId+"","true",e.productCode,e.variantCode])}isOnlinePayment(e){return this.onlinePaymentChecker.isOnlinePayment(e.curPayment)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-sub-change-without-login"]],features:[_e([Le])],decls:14,vars:7,consts:[[1,"row","sub-change-without-login__row"],[1,"col-12","sub-change-without-login__col"],["class","sub-change-without-login__intro",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","mb-3","sub-change-without-login__col","sub-change-without-login__col--description"],[1,"sub-change-without-login__description",3,"innerHTML"],[1,"mt-3","sub-change-without-login__card"],[1,"sub-change-without-login__card-content"],[1,"col-12","sub-change-without-login__col","sub-change-without-login__col--identification"],[1,"sub-change-without-login__loading",2,"text-align","center"],[1,"sub-change-without-login__errors",3,"errors"],[1,"mt-3","sub-change-without-login__no-subs",3,"innerHTML"],[1,"sub-change-without-login__intro",3,"innerHTML"],["mat-flat-button","",1,"btn","btn-secondary","sub-change-without-login__btn","sub-change-without-login__btn--identification",3,"click","innerHTML"],[1,"sub-change-without-login__spinner"],["appearance","outlined",1,"mt-3","sub-change-without-login__sub-card"],[1,"row","m-3","sub-change-without-login__sub-row"],[1,"col-12","col-md-6","sub-change-without-login__sub-col","sub-change-without-login__sub-col--details"],[1,"sub-change-without-login__sub-title"],[1,"sub-change-without-login__sub-subtitle",3,"innerHTML"],[1,"sub-change-without-login__sub-subtitle"],[1,"col-12","col-md-6","sub-change-without-login__sub-col","sub-change-without-login__sub-col--actions"],[1,"card-actions","sub-change-without-login__sub-actions"],["mat-raised-button","","color","primary",1,"sub-change-without-login__btn","sub-change-without-login__btn--sub-change",3,"click","innerHTML","disabled"],["id","sub-change-without-login-warning",1,"sub-change-without-login__warning","text-warning","text-end",3,"innerHTML"],[1,"sub-change-without-login__sub-changes-content"],["class","sub-change-without-login__warning text-warning text-end","id","sub-change-without-login-warning",3,"innerHTML",4,"appApplyIfNotEmpty"],["multi","",1,"sub-change-without-login__sub-accordion"],[1,"sub-change-without-login__sub-expansion-panel"],[1,"sub-change-without-login__sub-expansion-header"],[1,"sub-change-without-login__sub-expansion-title",3,"innerHTML"],[1,"sub-change-without-login__sub-expansion-description"],["matExpansionPanelContent","",1,"sub-change-without-login__sub-expansion-content"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,t_e,1,1,"h3",2),m(),p(3,"div",3),_(4,"h4",4),m()(),p(5,"mat-card",5)(6,"mat-card-content",6)(7,"div",0)(8,"div",1),x(9,i_e,2,1,"div",7)(10,n_e,2,0,"div",8),_(11,"app-general-errors",9),x(12,r_e,1,1,"div",10)(13,h_e,2,0),m()()()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("sub_change_intro")),c(2),f("innerHTML",r.identified?r.translationService.getTranslation("sub_change_description"):r.translationService.getTranslation("unauthorized_provideInfo_description"),y),c(5
654),b(r.identified?-1:9),c(),b(r.isLoadingSub?10:-1),c(),f("errors",r.errorsArr),c(),b(r.identified&&!r.isLoadingSub&&r.subs.length==0?12:-1),c(),b(!r.isLoadingSub&&r.subs.length>0?13:-1))},dependencies:[Ee,Ge,Vt,at,Li,Xr,Le,Di,hr,Rt,hp,Js,Yl,fp,td,el,ze],encapsulation:2})}}return t})();function g_e(t,n){if(t&1&&_(0,"h3",10),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("customerView_intro"),y)}}var vV=(()=>{class t{constructor(){this.translationService=d(Y),this.vHostService=d(Ai),this.navigationService=d(Re),this.CssPropertiesEnum=tt,this.cssPropertyPipe=new Bn}navigateToInvoices(){let e=document.getElementById("customer-page")?.offsetWidth<1280?1:2;this.navigationService.navigateTo(ge.CUSTOMERINVOICE,[e.toString()])}hasCustomResponsivClasses(){return!!this.getCustomResponsivClasses()}getCustomResponsivClasses(){let e=this.cssPropertyPipe.transform,i=["col-"+e(tt.customerFxFlex,this.vHostService),"col-sm-"+e(tt.customerFxFlexSM,this.vHostService),"col-md-"+e(tt.customerFxFlexMD,this.vHostService),"col-lg-"+e(tt.customerFxFlexLG,this.vHostService),"col-xl-"+e(tt.customerFxFlexXL,this.vHostService),"col-xxl-"+e(tt.customerFxFlexXXL,this.vHostService)].join(" ");return/\d/.test(i)?i:""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-customer"]],decls:12,vars:7,consts:[[1,"row","customer-page__row"],[1,"col-12","offset-lg-2","col-lg-8","customer-page__intro"],["class","customer-page__intro-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","offset-lg-2","col-lg-8","customer-page__description"],[1,"customer-page__description-title",3,"innerHTML"],["id","customer-page",1,"customer-page"],["appearance","outlined",1,"pointer","h-100","customer-page__card",3,"click"],[1,"customer-page__card-header"],[1,"customer-page__card-title",3,"innerHTML"],[1,"customer-page__card-content",3,"innerHTML"],[1,"customer-page__intro-title",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,g_e,1,1,"h3",2),m(),p(3,"div",3),_(4,"p",4),m()(),p(5,"div",5)(6,"div",0)(7,"div")(8,"mat-card",6),T("click",function(){return r.navigateToInvoices()}),p(9,"mat-card-header",7),_(10,"mat-card-title",8),m(),_(11,"mat-card-content",9),m()()()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("customerView_intro")),c(2),f("innerHTML",r.translationService.getTranslation("customerPage_description"),y),c(3),Mi((r.hasCustomResponsivClasses()?r.getCustomResponsivClasses():"col-12 offset-lg-2 col-lg-8")+" mb-4 customer-page__card-col"),c(3),f("innerHTML",r.translationService.getTranslation("invoices"),y),c(),f("innerHTML",r.translationService.getTranslation("invoices_description"),y))},dependencies:[at,Bl,Rt,Li,ze],encapsulation:2})}}return t})();var __e=["tooltip"],v_e=20;var b_e=new H("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(Oi);return()=>t.scrollStrategies.reposition({scrollThrottle:v_e})}});function y_e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var C_e=new H("mat-tooltip-default-options",{providedIn:"root",factory:y_e});var bV="tooltip-panel",yV=Sl({passive:!0}),S_e=8,x_e=8,w_e=24,E_e=200,CV=(()=>{class t{_elementRef=d(ue);_ngZone=d(de);_platform=d(wt);_ariaDescriber=d(CR);_focusMonitor=d(Yr);_dir=d(ki);_injector=d(Ne);_viewContainerRef=d(bi);_defaultOptions=d(C_e,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=D_e;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=bo(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=bo(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ya(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ya(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new G;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=S_e}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(We(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEac
654h(([i,r])=>{e.removeEventListener(i,r,yV)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Mr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(We(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof ue)return this._overlayRef;this._detach()}let i=this._injector.get(Bu).getAncestorScrollContainers(this._elementRef),r=this._injector.get(Oi),o=r.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(We(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=r.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${bV}`,scrollStrategy:this._injector.get(b_e)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(We(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(We(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(We(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!oi(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(We(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(N(N({},r.main),o.main)),this._addOffset(N(N({},r.fallback),o.fallback))])}_addOffset(e){let i=x_e,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ti(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;
654if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${bV}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];
654if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,yV)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(Se).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Ti({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=$({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&fe("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return t})(),D_e=(()=>{class t{_changeDetectorRef=d(Je);_elementRef=d(ue);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new G;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let e=d(zt,{optional:!0});this._animationsDisabled=e==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>w_e&&e.width>=E_e}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&De(__e,7),i&2){let o;se(o=le())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&T("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=B();p(0,"div",1,0),T("animationend",function(s){return A(o),k(r._handleAnimationEnd(s))}),p(2,"div",2),E(3),m()()}i&2&&(fe("mdc-tooltip--multiline",r._isMultiline),f("ngClass",r.tooltipClass),c(3),he(r.message))},dependencies:[tn],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.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-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;
654max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-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}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.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} 655`],encapsulation:2,changeDetection:0})}return t})();function T_e(t,n){if(t&1&&(p(0,"mat-option",17),E(1),m()),t&2){let e=n.$implicit;f("value",e),c(),R(" ",e," ")}}function M_e(t,n){if(t&1){let e=B();p(0,"mat-form-field",14)(1,"mat-select",16,0),T("selectionChange",function(r){A(e);let o=h(2);return k(o._changePageSize(r.value))}),W(3,T_e,2,2,"mat-option",17,X),m(),p(5,"div",18),T("click",function(){A(e);let r=J(2);return k(r.open())}),m()()}if(t&2){let e=h(2);f("appearance",e._formFieldAppearance)("color",e.color),c(),f("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),c(2),q(e._displayedPageSizeOptions)}}function I_e(t,n){if(t&1&&(p(0,"div",15),E(1),m()),t&2){let e=h(2);c(),he(e.pageSize)}}function A_e(t,n){if(t&1&&(p(0,"div",3)(1,"div",13),E(2),m(),x(3,M_e,6,7,"mat-form-field",14)(4,I_e,2,1,"div",15),m()),t&2){let e=h();c(),ce("id",e._pageSizeLabelId),c(),R(" ",e._intl.itemsPerPageLabel," "),c(),b(e._displayedPageSizeOptions.length>1?3:-1),c(),b(e._displayedPageSizeOptions.length<=1?4:-1)}}function k_e(t,n){if(t&1){let e=B();p(0,"button",19),T("click",function(){A(e);let r=h();return k(r._buttonClicked(0,r._previousButtonsDisabled()))}),Sn(),p(1,"svg",8),_(2,"path",20),m()()}if(t&2){let e=h();f("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),ce("aria-label",e._intl.firstPageLabel)}}function O_e(t,n){if(t&1){let e=B();p(0,"button",21),T("click",function(){A(e);let r=h();return k(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()))}),Sn(),p(1,"svg",8),_(2,"path",22),m()()}if(t&2){let e=h();f("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),ce("aria-label",e._intl.lastPageLabel)}}var P_e=(()=>{class t{changes=new G;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o<r?Math.min(o+i,r):o+i;return`${o+1} \u2013 ${a} of ${r}`};static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var N_e=50;
655var R_e=new H("MAT_PAGINATOR_DEFAULT_OPTIONS"),SV=(()=>{class t{_intl=d(P_e);_changeDetectorRef=d(Je);_formFieldAppearance;_pageSizeLabelId=d(Mt).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Io(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>Ii(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new z;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=d(R_e,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.show
655FirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndex<e&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){let i=this.pageIndex*this.pageSize,r=this.pageIndex;this.pageIndex=Math.floor(i/e)||0,this.pageSize=e,this._emitPageEvent(r)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:N_e),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,i)=>e-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=P({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Ii],length:[2,"length","length",Ii],pageSize:[2,"pageSize","pageSize",Ii],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",pe],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",pe],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",pe]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(p(0,"div",1)(1,"div",2),x(2,A_e,5,4,"div",3),p(3,"div",4)(4,"div",5),E(5),m(),x(6,k_e,3,5,"button",6),p(7,"button",7),T("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled())}),Sn(),p(8,"svg",8),_(9,"path",9),m()(),Es(),p(10,"button",10),T("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled())}),Sn(),p(11,"svg",8),_(12,"path",11),m()(),x(13,O_e,3,5,"button",12),m()()()),i&2&&(c(2),b(r.hidePageSize?-1:2),
655c(3),R(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),c(),b(r.showFirstLastButtons?6:-1),c(),f("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),ce("aria-label",r._intl.previousPageLabel),c(3),f("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),ce("aria-label",r._intl.nextPageLabel),c(3),b(r.showFirstLastButtons?13:-1))},dependencies:[Nt,ir,Ri,Pl,CV],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} 656`],encapsulation:2,changeDetection:0})}return t})();var xV=(()=>{class t{constructor(){this.http=d(Be),this.sanitizer=d(En)}transform(e){return this.sanitizer.bypassSecurityTrustResourceUrl(this.sanitizer.sanitize(en.RESOURCE_URL,e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=Pn({name:"safeResource",type:t,pure:!0})}}return t})();function F_e(t,n){if(t&1&&_(0,"h3",9),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("invoices"),y)}}function L_e(t,n){if(t&1&&(_(0,"embed",16),te(1,"safeResource")),t&2){let e=h().$implicit;f("src",Ct(1,1,e.invoiceDocumentUrl),bc)}}function B_e(t,n){if(t&1&&(p(0,"div",10)(1,"mat-card",11)(2,"mat-card-header",12),_(3,"mat-card-title",13),te(4,"date"),_(5,"mat-card-subtitle",14)(6,"mat-card-subtitle",15),te(7,"currency"),m(),x(8,L_e,2,3,"embed",16),m()()),t&2){let e=n.$implicit,i=h(2);f("className",(i.hasCustomResponsivClasses()?i.getCustomResponsivClasses():"col-12 offset-lg-2 col-lg-8")+" mb-4 customer-invoice__item"),c(3),f("innerHTML",i.translationService.getTranslation(e.credit?"invoice_creditOf":"invoice_of")+Te(4,5,e.invoiceDate,i.translationService.getTranslation("dateFormat")),y),c(2),f("innerHTML",i.translationService.getTranslation("invoice_number")+": "+e.invoiceNo,y),c(),f("innerHTML",i.translationService.getTranslation(e.credit?"invoice_creditAmount":"invoice_invoiceAmount")+": "+Ct(7,8,e.invoiceAmount),y),c(2),b(e.hasDocument?8:-1)}}function H_e(t,n){if(t&1&&(p(0,"div",8),W(1,B_e,9,10,"div",10,X),m()),t&2){let e=h();c(),q(e.currentInvoices)}}var wV=(()=>{class t{constructor(){this.route=d(Ye),this.translationService=d(Y),this.vHostService=d(Ai),this.customerService=d(Fb),this.platformId=d(Qe),this.CssPropertiesEnum=tt,this.pageSize=2,this.currentInvoices=[],this.isLoading=!1,this.cssPropertyPipe=new Bn;let e=this.customerService;this.route.paramMap.subscribe(i=>{this.pageSize=Number(i.get("pageSize"))}),e.getTotalNumberOfInvoices().subscribe(i=>{this.totalAmount=i,nt(this.platformId)&&this.loadInvoices()})}loadInvoices(e=null){this.isLoading=!0,this.customerService.getInvoiceInfos(e?e.pageIndex:0,e?e.pageSize:this.pageSize,null,null).subscribe(i=>{this.currentInvoices=i,this.isLoading=!1})}hasCustomResponsivClasses(){return!!this.getCustomResponsivClasses()}getCustomResponsivClasses(){let e=this.cssPropertyPipe.transform,i=["col-"+e(tt.customerFxFlex,this.vHostService),"col-sm-"+e(tt.customerFxFlexSM,this.vHostService),"col-md-"+e(tt.customerFxFlexMD,this.vHostService),"col-lg-"+e(tt.customerFxFlexLG,this.vHostService),"col-xl-"+e(tt.customerFxFlexXL,this.vHostService),"col-xxl-"+e(tt.customerFxFlexXXL,this.vHostService)].join(" ");return/\d/.test(i)?i:""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-customer-invoice"]],features:[_e([Le])],decls:9,vars:8,consts:[[1,"row","customer-invoice"],[1,"col-12","offset-lg-2","col-lg-8","customer-invoice__header"],["class","customer-invoice__title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","offset-lg-2","col-lg-8","mb-5","customer-invoice__description",3,"innerHTML"],[1,"row","customer-invoice__paginator-row"],[1,"col-12","offset-lg-2","col-lg-8","customer-invoice__paginator-col"],[1,"float-start","mb-3","customer-invoice__paginator",3,"page","pageSize","length","disabled","hidePageSize","showFirstLastButtons"],["
656id","invoice-page",1,"customer-invoice__page"],[1,"row","customer-invoice__list"],[1,"customer-invoice__title",3,"innerHTML"],[3,"className"],["appearance","outlined",1,"pointer","h-100","customer-invoice__card"],[1,"mb-3","customer-invoice__card-header"],[1,"customer-invoice__card-title",3,"innerHTML"],[1,"customer-invoice__card-subtitle","customer-invoice__card-subtitle--number",3,"innerHTML"],[1,"customer-invoice__card-subtitle","customer-invoice__card-subtitle--amount",3,"innerHTML"],["type","application/pdf",1,"customer-invoice__document",3,"src"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,F_e,1,1,"h3",2),m(),_(3,"div",3),m(),p(4,"div",4)(5,"div",5)(6,"mat-paginator",6),T("page",function(a){return r.loadInvoices(a)}),m()()(),p(7,"div",7),x(8,H_e,3,0,"div",8),m()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("invoices")),c(),f("innerHTML",r.translationService.getTranslation("invoices_description"),y),c(3),f("pageSize",r.pageSize)("length",r.totalAmount)("disabled",r.isLoading)("hidePageSize",!0)("showFirstLastButtons",!1),c(2),b(r.isLoading?-1:8))},dependencies:[SV,at,Bl,Le,Ec,xV,Li,Xr,ze],styles:[`#invoice-page[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] embed[_ngcontent-%COMP%]{min-height:750px}[_nghost-%COMP%] button.mat-mdc-paginator-navigation-next:hover, [_nghost-%COMP%] button.mat-mdc-paginator-navigation-previous:hover{background-color:var(--buttonBackgroundColor)} 657/*# sourceMappingURL=customer-invoice.component-XMKZU3EZ.css.map */`]})}}return t})();var br=(()=>{class t{constructor(){this.router=d(et),this.loginService=d(ft)}canActivate(e,i){return this.loginService.isChildUser$.pipe(F(r=>r===null?(this.loginService.checkStatus(),!0):r?(this.router.navigateByUrl("/child-user-info",{skipLocationChange:!0}),!1):!0))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function V_e(t,n){if(t&1&&_(0,"h3",4),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("childUser.informationHeadline"),y)}}var EV=(()=>{class t{constructor(){this.translationService=d(Y)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-child-user-information"]],decls:4,vars:2,consts:[[1,"row"],[1,"col-12"],[3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12",3,"innerHTML"],[3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,V_e,1,1,"h3",2),m(),_(3,"div",3),m()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("childUser.informationHeadline")),c(),f("innerHTML",r.translationService.getTranslation("childUser.informationMessage"),y))},dependencies:[ze],encapsulation:2})}}return t})();function j_e(t,n){if(t&1&&_(0,"h3",6),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("guestUser.informationHeadline"),y)}}var DV=(()=>{class t{constructor(){this.translationService=d(Y),this.loginService=d(ft)}static{this.DEFAULT_MESSAGE="Diese Aktion ist mit einem Gast-Zugang nicht m\xF6glich. Bitte melden Sie sich mit Ihrem pers\xF6nlichen Konto an."}get message(){let e=this.translationService.getTranslation("guestUser.informationMessage");return e?.trim()?e:t.DEFAULT_MESSAGE}logout(){this.loginService.logout()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-guest-user-information"]],decls:6,vars:3,consts:[[1,"row","guest-user-information"],[1,"col-12"],[3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","guest-user-information__message",3,"innerHTML"],[1,"col-12","guest-user-information__actions"],["mat-raised-button","","color","primary",1,"guest-user-information__button-logout",3,"click","innerHTML"],[3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,j_e,1,1,"h3",2),m(),_(3,"div",3),p(4,"div",4)(5,"button",5),T("click",function(){return r.logout()}),m()()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("guestUser.informationHeadline")),c(),f("innerHTML",r.message,y),c(2),f("innerHTML",r.translationService.getTranslation("logout"),y))},dependencies:[ze,Ee],styles:[`.guest-user-information__actions[_ngcontent-%COMP%]{margin-top:1.5rem}
658/*# sourceMappingURL=guest-user-information.component-GZZ6YXO6.css.map */`]})}}return t})();var TV=(()=>{class t{constructor(){this.httpClient=d(Be)}loadFaqGroups(){return this.httpClient.get("/webabo/faq/groups/active")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function z_e(t,n){if(t&1&&(p(0,"div",5)(1,"mat-expansion-panel",6)(2,"mat-expansion-panel-header",7)(3,"mat-panel-title",8)(4,"p",9),E(5),m()()(),_(6,"p",10),m()()),t&2){let e=n.$implicit;c(5),he(e.question),c(),f("innerHTML",e.answer,y)}}function U_e(t,n){if(t&1&&(p(0,"div",1)(1,"h5",2),E(2),m(),p(3,"p",3),E(4),m(),p(5,"div",4),W(6,z_e,7,2,"div",5,X),m()()),t&2){let e=h();c(2),he(e.faqGroup.name),c(2),he(e.faqGroup==null?null:e.faqGroup.description),c(2),q(e.faqGroup.faqEntries)}}var MV=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-faqgroup"]],inputs:{faqGroup:"faqGroup"},decls:2,vars:1,consts:[[1,"faqgroup","mb-2","mt-3"],[1,"faqgroup__container"],[1,"faqgroup__title","fw-bold"],[1,"faqgroup__description","fs-6"],[1,"faqgroup__entries","ms-1"],[1,"faqgroup__entry"],[1,"faqgroup__panel"],[1,"faqgroup__panel-header"],[1,"faqgroup__panel-title"],[1,"faqgroup__question","fs-6","mb-0","fw-bold"],[1,"faqgroup__answer",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0),x(1,U_e,8,2,"div",1),m()),i&2&&(c(),b(r.faqGroup.faqEntries.length>0?1:-1))},dependencies:[Js,Yl,el],encapsulation:2})}}return t})();function G_e(t,n){if(t&1&&_(0,"h3",8),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("faqs_intro"),y)}}function $_e(t,n){if(t&1&&_(0,"app-faqgroup",7),t&2){let e=n.$implicit;f("faqGroup",e)}}var IV=(()=>{class t{constructor(){this.faqService=d(TV),this.translationService=d(Y),this.faqGroups=[]}ngOnInit(){this.faqService.loadFaqGroups().subscribe(e=>{this.faqGroups=e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-faq"]],inputs:{faqGroups:"faqGroups"},decls:9,vars:2,consts:[[1,"row"],[1,"col-12","offset-lg-2","col-lg-8"],[1,"row","faq","faq--row"],[1,"col-12","faq__intro"],["class","faq__intro-title",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"col-12","faq__summary"],[1,"faq__summary-title",3,"innerHTML"],[1,"faq__group",3,"faqGroup"],[1,"faq__intro-title",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),x(4,G_e,1,1,"h3",4),m(),p(5,"div",5),_(6,"p",6),m(),W(7,$_e,1,1,"app-faqgroup",7,X),m()()()),i&2&&(c(4),f("appApplyIfNotEmpty",r.translationService.getTranslation("faqs_intro")),c(2),f("innerHTML",r.translationService.getTranslation("faqs_summary"),y),c(),q(r.faqGroups))},dependencies:[MV,ze],encapsulation:2})}}return t})();var AV=(()=>{class t{constructor(){this.translationService=d(Y)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-sub-change-without-login-after"]],decls:2,vars:1,consts:[[1,"d-flex","align-items-center","sub-change-without-login-after__container"],[1,"sub-change-without-login-after__text",2,"font-size","2rem",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0),_(1,"span",1),m()),i&2&&(c(),f("innerHTML",r.translationService.getTranslation("after_subChange"),y))},encapsulation:2})}}return t})();var kV=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-offer-preview"]],decls:1,vars:0,consts:[[1,"offerPreview","offer-preview","offer-preview__container"]],template:function(i,r){i&1&&_(0,"div",0)},encapsulation:2})}}return t})();var Oa=t=>{let n=d(Wi),e=d(Re),i=t.routeConfig?.path,o=Object.values(W_e).find(a=>a.unauthorized===i);return o&&(i=o.authorized),n.getPageOfUrl(i).subscribe({next:a=>{if(a&&a.isExtern&&a.externLink)return e.navigateExtern(a.externLink,!1),!1;if(!a)return e.navigateTo(ge.LANDINGPAGE),!1}}),!0},W_e={COMPLAINT:{authorized:"complaint",unauthorized:"complaint-without-login"},CONTACT:{authorized:"contact",unauthorized:"contact-without-login"},SUBCHANGE:{authorized:"sub-change",unauthorized:"sub-change-without-login"},REVOCATION:{authorized:"revocation",unauthorized:"revocation-without-login"}};var Hb=(()=>{class t{static{this.ERROR_CODE="GUEST_ACCOUNT_FORBIDDEN"}static isGuestAccountError(e){if(!(e instanceof va)||e.status!==403)return!1;let i=e.error;return!i||typeof i!="object"?!1:i.errorCode===t.ERROR_CODE}}return t})();var OV=()=>d(ft).getUserData().pipe(F(()=>!0),Ae(n=>Hb.isGuestAccountError(n)?j(!1):(console.error("guest-account-guard: Nutzerdaten konnten nicht geladen werden",n),j(!0))));var zD=(t,n)=>{let e=d(ct),i=new eo,r=d(Re),o=d(Ce),a=t.paramMap.get("subWebId"),s=t.paramMap.get("subBackendId"),l=t.parent.url.at(0).path==="sub-change"?ge.SUBCHANGE:ge.PAYMENT;return a&&s&&o.loadConfig(i.ONLINE_PAYMENT_METHOD_ID_CONFIG_KEY).subscribe(u=>{u&&u.value&&(i.setPaymentCode(u.value),e.getSubscription(a,s).subscribe(g=>{if(g&&i.isOnlinePayment(g.curPayment))return r.navigateTo(l),!1}))}),!0};function q_e(t,n){if(t&1&&_(0,"h3",10),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("revocation_intro"),y)}}function Y_e(t,n){t&1&&(p(0,"div",7),_(1,"app-loading-spinner"),m())}function K_e(t,n){if(t&1&&_(0,"div",8),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("revocation_no_subscriptions"),y)}}function Q_e(t,n){if(t&1&&_(0,"mat-card-subtitle",16),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_id")+": "+e.subId,y)}}function Z_e(t,n){if(t&1&&_(0,"mat-card-subtitle",17),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("order_edition")+": "+e.variantDescription,y)}}function X_e(t,n){if(t&1&&(_(0,"mat-card-subtitle",18),te(1,"date"),te(2,"date")),t&2){let e=h().$implicit,i=h(2);f("innerHTML",i.translationService.getTranslation("period")+": "+Te(1,1,e.validDate.validFrom,i.translationService.getTranslation("dateFormat"))+" - "+(e.validDate.validUntil?Te(2,4,e.validDate.validUntil,i.translationService.getTranslation("dateFormat")):i.translationService.getTranslation("subscription_endless")),y)}}function J_e(t,n){if(t&1){let e=B();p(0,"div",11)(1,"mat-card",12)(2,"div",13)(3,"div",14)(4,"mat-card-title",15),E(5),m(),x(6,Q_e,1,1,"mat-card-subtitle",16)(7,Z_e,1,1,"mat-card-subtitle",17)(8,X_e,3,7,"mat-card-subtitle",18),m(),p(9,"div",19)(10,"mat-card-actions",20)(11,"button",21),T("click",function(){let r=A(e).$implicit,o=h(2);return k(o.onNewRevocation(r))}),E(12),m()()()()()()}if(t&2){let e=n.$implicit,i=h(2);c(5),he(e.productDescription),c(),b(e.subId?6:-1),c(),b(e.variantDescription?7:-1),c(),b(e.validDate?8:-1),c(4),R(" ",i.translationService.getTranslation("button_new_revocation")," ")}}function e0e(t,n){if(t&1&&W(0,J_e,13,5,"div",11,X),t&2){let e=h();q(e.subs)}}var PV=(()=>{class t{constructor(){this.hupSubscriptionsService=d(ct),this.navigationService=d(Re),this.translationService=d(Y),this.isLoadingSub=!1,this.subs=[],this.errorsArr=[]}ngOnInit(){this.isLoadingSub=!0,this.hupSubscriptionsService.getSubscriptions(!0).subscribe({next:e=>{this.isLoadingSub=!1,this.subs=e??[],this.subs.length===1&&this.onNewRevocation(this.subs[
6580])},error:()=>{this.isLoadingSub=!1,this.errorsArr.push(this.translationService.getTranslation("error_subscription_init"))}})}onNewRevocation(e){this.navigationService.navigateTo(ge.REVOCATIONNEW,[e.webId+"",e.backendId+""])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-revocation"]],features:[_e([Le])],decls:12,vars:6,consts:[["id","revocationHeader",1,"revocation__header","row"],[1,"revocation__header-col","col-12"],["class","revocation__intro",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"revocation__description",3,"innerHTML"],[1,"revocation__content","row"],[1,"revocation__errors","col-12"],[3,"errors"],[1,"revocation__spinner",2,"text-align","center"],[1,"revocation__no-subs",3,"innerHTML"],["id","revocationSubscriptions",1,"row","revocation__subs"],[1,"revocation__intro",3,"innerHTML"],[1,"col-12","col-md-6","col-lg-4","mt-4"],["appearance","outlined",1,"revocation__sub-card"],[1,"revocation__sub-row","m-3"],[1,"revocation__sub-info","col-12"],[1,"revocation__sub-title"],[1,"revocation__sub-id",3,"innerHTML"],[1,"revocation__sub-edition",3,"innerHTML"],[1,"revocation__sub-period",3,"innerHTML"],[1,"revocation__sub-actions","col-12"],[1,"revocation__actions","card-actions"],["ngSkipHydration","","mat-raised-button","","color","primary",1,"mt-2","revocation__new-btn",3,"click"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,q_e,1,1,"h3",2),m(),p(3,"div",1),_(4,"p",3),m()(),p(5,"div",4)(6,"div",5),_(7,"app-general-errors",6),x(8,Y_e,2,0,"div",7)(9,K_e,1,1,"div",8),p(10,"div",9),x(11,e0e,2,0),m()()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("revocation_intro")),c(2),f("innerHTML",r.translationService.getTranslation("revocation_description"),y),c(3),f("errors",r.errorsArr),c(),b(r.isLoadingSub?8:-1),c(),b(!r.isLoadingSub&&r.subs.length===0&&r.errorsArr.length===0?9:-1),c(2),b(!r.isLoadingSub&&r.subs.length>0?11:-1))},dependencies:[Vt,Ge,at,Li,Xr,hr,Ee,Le,ze],encapsulation:2})}}return t})();var Vb=(()=>{class t{constructor(){this.http=d(Be),this.loadedAll=!1,this.revocations=[]}getRevocations(){if(this.loadedAll)return j(this.revocations);let e=new Date().getTime();return this.http.get("/webabo/revocations?"+e).pipe(F(i=>(this.loadedAll=!0,this.revocations.push(...i),this.revocations)),Ae(i=>(console.error("Fehler beim Laden der Widerrufe:",i),ht)))}sendRevocation(e){return this.http.post("/webabo/revocations",e,{headers:{"Content-Type":"application/json"}}).pipe(F(()=>{this.loadedAll=!1}),Ae(i=>{throw console.error("Fehler beim Einreichen des Widerrufs:",i),i}))}sendUnauthorizedRevocation(e){return this.http.post("/webabo/revocations/unauthorized",e,{headers:{"Content-Type":"application/json"}}).pipe(Ae(i=>{throw console.error("Fehler beim Einreichen des unauthentifizierten Widerrufs:",i),i}))}resetData(){this.loadedAll=!1,this.revocations=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function t0e(t,n){t&1&&(p(0,"div",5),_(1,"app-loading-spinner"),m())}function i0e(t,n){if(t&1&&_(0,"mat-card-subtitle",9),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("order_id")+": "+e.subscription.subId,y)}}function n0e(t,n){if(t&1&&_(0,"mat-card-subtitle",9),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("order_edition")+": "+e.subscription.variantDescription,y)}}function r0e(t,n){if(t&1&&(_(0,"mat-card-subtitle",9),te(1,"date"),te(2,"date")),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("period")+": "+Te(1,1,e.subscription.validDate.validFrom,e.translationService.getTranslation("dateFormat"))+" - "+(e.subscription.validDate.validUntil?Te(2,4,e.subscription.validDate.validUntil,e.translationService.getTranslation("dateFormat")):e.translationService.getTranslation("subscription_endless")),y)}}function o0e(t,n){if(t&1&&_(0,"p",14),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("revocation_confirm_required"),y)}}function a0e(t,n){if(t&1){let e=B();p(0,"mat-card",6)(1,"mat-card-content",7)(2,"mat-card-title",8),E(3),m(),x(4,i0e,1,1,"mat-card-subtitle",9)(5,n0e,1,1,"mat-card-subtitle",9)(6,r0e,3,7,"mat-card-subtitle",9),m()(),p(7,"div",10),_(8,"p",9),m(),p(9,"form",11),T("ngSubmit",function(){A(e);let r=h();return k(r.onSubmit())}),p(10,"div",12)(11,"mat-checkbox",13),_(12,"span",9),m(),x(13,o0e,1,1,"p",14),m(),p(14,"mat-card-actions",15),_(15,"button",16),p(16,"button",17),T("click",function(){A(e);let r=h();return k(r.onCancel())}),m()()()}if(t&2){let e=h();c(3),he(e.subscription.productDescription),c(),b(e.subscription.subId?4:-1),c(),b(e.subscription.variantDescription?5:-1),c(),b(e.subscription.validDate?6:-1),c(2),f("innerHTML",e.translationService.getTranslation("revocation_edit_description"),y),c(),f("formGroup",e.confirmForm),c(3),f("innerHTML",e.translationService.getTranslation("revocation_confirm_label"),y),c(),b(e.confirmForm.get("confirmed").hasError("required")&&e.confirmForm.get("confirmed").touched?13:-1),c(2),f("disabled",e.confirmForm.invali
658d)("innerHTML",e.translationService.getTranslation("button_revocation_submit"),y),c(),f("innerHTML",e.translationService.getTranslation("button_cancel"),y)}}var NV=(()=>{class t{constructor(){this.revocationService=d(Vb),this.hupSubscriptionsService=d(ct),this.navigationService=d(Re),this.route=d(Ye),this.formBuilder=d(kt),this.translationService=d(Y),this.snackbarService=d(Yi),this.loginService=d(ft),this.isLoading=!1,this.subscription=null,this.user=null,this.errorsArr=[],this.confirmForm=this.formBuilder.group({confirmed:[!1,Z.requiredTrue]})}ngOnInit(){let e=this.route.snapshot.paramMap.get("webId"),i=this.route.snapshot.paramMap.get("backendId");e&&i&&(this.isLoading=!0,this.hupSubscriptionsService.getSubscription(e,i).subscribe({next:r=>{this.isLoading=!1,this.subscription=r,this.subscription&&this.subscription.userBackendId>0&&this.loginService.getUserData().subscribe({next:o=>{this.isLoading=!1,this.user=o},error:()=>{this.isLoading=!1}})},error:()=>{this.isLoading=!1,this.errorsArr.push(this.translationService.getTranslation("error_subscription_init"))}}))}onSubmit(){if(this.confirmForm.invalid){this.confirmForm.markAllAsTouched();return}this.subscription&&(this.isLoading=!0,this.errorsArr=[],this.revocationService.sendRevocation({orderNo:this.subscription.webId>0?this.subscription.webId:this.subscription.backendId,idType:this.subscription.webId>0?"WEBID":"ORDERNO",firstName:this.user?.person?.firstname??"",lastName:this.user?.person?.lastname??"",email:this.user?.emailList[0]??""}).subscribe({next:()=>{this.isLoading=!1,this.revocationService.resetData(),this.snackbarService.openSnackbar(this.translationService.getTranslation("revocation_saved")),this.navigationService.navigateTo(ge.REVOCATION)},error:e=>{this.isLoading=!1,e?.status===409?this.errorsArr.push(this.translationService.getTranslation("revocation_already_exists")):e?.status===422?this.errorsArr.push(this.translationService.getTranslation("revocation_window_expired")):this.errorsArr.push(this.translationService.getTranslation("error_general"))}}))}onCancel(){this.navigationService.navigateTo(ge.REVOCATION)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-revocation-edit"]],features:[_e([Le])],decls:7,vars:4,consts:[["id","revocationEditHeader",1,"revocation-edit__row"],[1,"revocation-edit__header","col-12"],[1,"revocation-edit__title",3,"innerHTML"],[1,"revocation-edit__errors","col-12"],[3,"errors"],[1,"revocation-edit__spinner",2,"text-align","center"],["appearance","outlined",1,"revocation-edit__sub-card","mt-3"],[1,"revocation-edit__sub-content","m-3"],[1,"revocation-edit__sub-title"],[3,"innerHTML"],[1,"revocation-edit__description","mt-3","col-12"],[1,"revocation-edit__form","mt-3",3,"ngSubmit","formGroup"],[1,"revocation-edit__confirm","col-12"],["formControlName","confirmed","required","",1,"revocation-edit__checkbox"],[1,"text-danger","mt-1",3,"innerHTML"],[1,"revocation-edit__actions","mt-3"],["ngSkipHydration","","mat-raised-button","","color","primary","type","submit",1,"revocation-edit__submit-btn","me-2",3,"disabled","innerHTML"],["ngSkipHydration","","mat-button","","type","button",1,"revocation-edit__cancel-btn",3,"click","innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),_(2,"h3",2),m(),p(3,"div",3),_(4,"app-general-errors",4),m(),x(5,t0e,2,0,"div",5)(6,a0e,17,11),m()),i&2&&(c(2),f("innerHTML",r.translationService.getTranslation("revocation_edit_title"),y),c(2),f("errors",r.errorsArr),c(),b(r.isLoading?5:-1),c(),b(!r.isLoading&&r.subscription?6:-1))},dependencies:[Vt,Ot,wi,At,Wt,ai,bt,Ut,Le,Ge,at,Rt,Li,Xr,hr,tr,Ee],encapsulation:2})}}return t})();function s0e(t,n){if(t&1&&_(0,"h3",10),t&2){let e=h();f("innerHTML",e.translationService.getTranslation("revocation_intro"),y)}}function l0e(t,n){t&1&&(p(0,"div",8),_(1,"app-loading-spinner"),m())}function c0e(t,n){if(t&1&&_(0,"mat-error",15),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("error_required"),y)}}function d0e(t,n){if(t&1&&_(0,"mat-error",15),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("error_required"),y)}}function u0e(t,n){if(t&1&&_(0,"mat-error",15),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("error_required"),y)}}function p0e(t,n){if(t&1&&_(0,"mat-error",15),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("error_email_invalid"),y)}}function m0e(t,n){if(t&1&&_(0,"mat-error",15),t&2){let e=h(2);f("innerHTML",e.translationService.getTranslation("error_required"),y)}}function f0e(t,n){if(t&1){let e=B();p(0,"form",11),T("ngSubmit",function(){A(e);let r=h();return k(r.onSubmit())}),p(1,"div",12)(2,"div",13)(3,"mat-form-field",14),_(4,"mat-label",15)(5,"input",16),x(6,c0e,1,1,"mat-error",15),m()(),p(7,"div",13)(8,"mat-form-field",14),_(9,"mat-label",15)(10,"input",17),x(11,d0e,1,1,"mat-error",15),m()(),p(12,"div",13)(13,"mat-form-field",14),_(14,"mat-label",15)(15,"input",18),x(16,u0e,1,1,"mat-error",15)(17,p0e,1,1,"mat-error",15),m()(),p(18,"div",13)(19,"mat-form-field",14),_(20,"mat-label",15)(21,"input",19),x(22,m0e,1,1,"mat-error",15),m()()(),p(23,"mat-card-actions",20),_(24,"button",21),m()()}if(t&2){let e=h();f("formGroup",e.identificationForm),c(4),f("innerHTML",e.translationService.getTranslation("address_firstname"),y),c(2),b(e.identificationForm.get("firstName").invalid&&e.identificationForm.get("firstName").touched?6:-1),c(3),f("innerHTML",e.translationService.getTranslation("address_lastname"),y),c(2),b(e.identificationForm.get("lastName").invalid&&e.identificationForm.get("lastName").touched?11:-1),c(3),f("innerHTML",e.translationService.getTranslation("label_email"),y),c(2),b(e.identificationForm.get("email").hasError("required")&&e.identificationForm.get("email").touched?16:-1),c(),b(e.identificationForm.get("email").hasError("email")&&e.identificationForm.get("email").touched?17:-1),c(3),f("innerHTML",e.translationService.getTranslation("label_order_no"),y),c(2),b(e.identificationForm.get("orderNo").invalid&&e.identificationForm.get("orderNo").touched?22:-1),c(2),f("disabled",e.i
658dentificationForm.invalid)("innerHTML",e.translationService.getTranslation("button_revocation_submit"),y)}}var RV=(()=>{class t{constructor(){this.formBuilder=d(kt),this.revocationService=d(Vb),this.router=d(et),this.translationService=d(Y),this.snackbarService=d(Yi),this.isLoading=!1,this.errorsArr=[],this.identificationForm=this.formBuilder.nonNullable.group({firstName:["",Z.required],lastName:["",Z.required],email:["",[Z.required,Z.email]],orderNo:["",Z.required]})}onSubmit(){if(this.identificationForm.invalid){this.identificationForm.markAllAsTouched();return}this.isLoading=!0,this.errorsArr=[];let e=re(N({},this.identificationForm.getRawValue()),{idType:"UNKNOWN"});this.revocationService.sendUnauthorizedRevocation(e).subscribe({next:()=>{this.isLoading=!1,this.snackbarService.openSnackbar(this.translationService.getTranslation("revocation_saved")),this.router.navigate([ge.REVOCATIONWITHOUTLOGINAFTER],{state:{formData:e}})},error:()=>{this.isLoading=!1,this.router.navigate([ge.REVOCATIONWITHOUTLOGINAFTER],{state:{formData:e}})}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-revocation-without-login"]],decls:10,vars:5,consts:[["id","revocationNoLoginHeader",1,"revocation-no-login__row"],[1,"revocation-no-login__header","col-12"],["class","revocation-no-login__intro",3,"innerHTML",4,"appApplyIfNotEmpty"],[1,"revocation-no-login__card","mt-3"],[1,"revocation-no-login__content"],[1,"revocation-no-login__description","col-12","mb-3",3,"innerHTML"],[1,"revocation-no-login__errors","col-12"],[3,"errors"],[1,"revocation-no-login__spinner",2,"text-align","center"],[1,"revocation-no-login__form",3,"formGroup"],[1,"revocation-no-login__intro",3,"innerHTML"],[1,"revocation-no-login__form",3,"ngSubmit","formGroup"],[1,"row"],[1,"col-12","col-md-6"],[1,"w-100"],[3,"innerHTML"],["matInput","","formControlName","firstName","autocomplete","given-name"],["matInput","","formControlName","lastName","autocomplete","family-name"],["matInput","","formControlName","email","type","email","autocomplete","email"],["matInput","","formControlName","orderNo"],[1,"revocation-no-login__actions"],["ngSkipHydration","","mat-raised-button","","color","primary","type","submit",1,"revocation-no-login__submit-btn",3,"disabled","innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),x(2,s0e,1,1,"h3",2),m(),p(3,"mat-card",3)(4,"mat-card-content",4),_(5,"p",5),p(6,"div",6),_(7,"app-general-errors",7),m(),x(8,l0e,2,0,"div",8)(9,f0e,25,12,"form",9),m()()()),i&2&&(c(2),f("appApplyIfNotEmpty",r.translationService.getTranslation("revocation_intro")),c(3),f("innerHTML",r.translationService.getTranslation("revocation_unauthorized_description"),y),c(2),f("errors",r.errorsArr),c(),b(r.isLoading?8:-1),c(),b(r.isLoading?-1:9))},dependencies:[Vt,Ge,Ot,wi,Bt,At,Wt,bt,Ut,at,Rt,hr,Ee,Nt,Pt,ei,Ht,ze],encapsulation:2})}}return t})();var FV=(()=>{class t{constructor(){this.translationService=d(Y);let e=d(et).getCurrentNavigation();this.formData=e?.extras?.state?.formData??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-revocation-without-login-after"]],decls:3,vars:1,consts:[["id","revocationAfterHeader",1,"revocation-after__row"],[1,"revocation-after__content","col-12"],[1,"revocation-after__received",3,"innerHTML"]],template:function(i,r){i&1&&(p(0,"div",0)(1,"div",1),_(2,"p",2),m()()),i&2&&(c(2),f("innerHTML",r.translationService.getTranslation("revocation_received_message"),y))},encapsulation:2})}}return t})();var UD=(()=>{class t{constructor(){this.configService=d(Ce),this.router=d(et)}canActivate(){return this.configService.loadConfig("revocation.enabled").pipe(F(e=>e?.value==="1"?!0:this.router.createUrlTree(["/"])))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var LV=(t,n)=>{let e=d($r),i=new eo,r=d(Re),o=d(Ce),a=t.paramMap.get("paymentWebId"),s=t.paramMap.get("paymentBackendId");return a&&s&&o.loadConfig(i.ONLINE_PAYMENT_METHOD_ID_CONFIG_KEY).subscribe(l=>{l&&l.value&&(i.setPaymentCode(l.value),e.getPayment(a,s).subscribe(u=>{if(u&&i.isOnlinePayment(u))return r.navigateTo(ge.PAYMENT),!1}))}),!0};var BV=(t,n)=>(d(Wi).getLandingPages().subscribe(),j(void 0));var HV=(t,n)=>
658{let e=d(Qo),i=d(vt),r=t.params.offerId;return e.getOfferDetail(r).pipe(Qt(o=>{let a=o?.product?.variantCodeList??[],s=o?.product?.productCode;if(s&&s!=""&&a.length>0){let l=a.map(u=>i.getVariantCode(u).pipe(Ae(()=>j(null))));return _n(l).pipe(F(u=>{let g=u.filter(v=>v?.key&&v?.description).map(v=>({variantCode:v.key,variantName:v.description}));localStorage.setItem("variants_"+s,JSON.stringify(g))}))}}),Ae(()=>j(void 0)))};var VV=(t,n)=>{let e=d(ct),i=d(et),r=t.paramMap.get("subId"),o=ee(!0),a="0",s="/",l="Navigating to subscription list",u="Navigating to subscription with backendId",g="Error while loading subscription with id";return e.getSubscription(a,r).subscribe({next:v=>{v?v?.sourceSystem?.systemName?.toString()!=ka[ka.WEBABO]&&(o.set(!1),i.navigate([ge.SUBSCRIPTION.toString()+s+a+s+r]).then(w=>console.debug(u,r))):(o.set(!1),i.navigate([ge.SUBSCRIPTION.toString()]).then(w=>console.debug(l,w)))},error:()=>{o.set(!1),console.debug(g,r),i.navigate([ge.SUBSCRIPTION.toString()]).then(v=>console.debug(l,v))}}),o()};var h0e=Rn.USE_LANDING_PAGE?"landing":"offer",Zi=["horizontalNavigation","removeNavigation","sso.usage","sso.client.webabo.id","sso.client.webabo.returnUrl","sso.server.host"],jV=[{path:"",redirectTo:h0e,resolve:[Qi],data:{config:Zi.concat(["removeOffersIfLoggedIn","removeLoginBox","removeNavigation"]),breadcrumb:"login"},pathMatch:"full"},{path:"landing",component:Ki,canActivate:[eV,br],resolve:[Qi],data:{config:Zi.concat(["removeOffersIfLoggedIn","removeLoginBox","removeNavigation"])},children:[{path:"",component:JH}]},{path:"offer",component:Ki,canActivate:[br],data:{breadcrumb:"offer_group"},children:[{path:"",component:dV},{path:"list/:offerGroup/:moreThanOneGroup",component:JL,resolve:[Qi],data:{config:["offer.highlight.offerId"],breadcrumb:"offer"}},{path:":offerId",component:wH,resolve:[Pr,Qi,HV],data:{baseData:["countrycodes","invoicemethods","paymentmethods","clienttypes","addresscodes","titles"],config:Zi.concat(["paymentprovider.paypal.paymentcode","paymentprovider.buckaroo.paymentcode","order.maxDelayToStart","order.price.combiPricesAsSum","paymentprovider.paypal.clientid","paymentprovider.paypal.isoCurrency","paymentprovider.paypal.disable-funding","requiredFields.addr.phone","offer.askForPhone","requiredFields.addr.birthday","offer.askForBirthday","offer.tracking.upScore.domain","offer.tracking.upScore.ver
658sion","offer.tracking.upScore.objectIdKey","client.personWithoutAddressAllowed","subscription.client-without-address.show-warning","askForPaymentAccountHolder","address.addresspart.sequence","subscription.minimal-user-age","offer.maxBonusCount","order.showSEPABox","offer.hideLoginWhileOffer","offer.onlyOneAddress","show.backToOverView.button","offer.showBonusAddress","offer.register.showPassword","offer.askForEditionId","offer.savedQueryParams","offer.privacyDisclaimerAgbInOneField","paymentprovider.paypal.merchantid","paypal.defaultAddressCode"]),breadcrumb:"new_order"}},{path:"ordered/:webId/:backendId/:orderChoiceKey",component:nV,resolve:[Pr,Qi],data:{baseData:["products","countrycodes","invoicemethods","paymentmethods","clienttypes","addresscodes","titles"],breadcrumb:"new_order",config:Zi.concat(["order.timeUntilRedirect"])}}]},{path:"subscription",component:Ki,canActivate:[cs,br],resolve:[Pr,Qi],data:{baseData:["invoicemethods","paymentmethods","countrycodes","products","clienttypes","addresscodes","terminationtypes"],config:Zi.concat(["subscription_show_termination_button","showAdditionalSubscriptionInfos","subscription.aggregateSequelAndCombi","subscription.showSequelInAggregateMode","subscription.showStatus","subscription.blockOrder","subscription.showVariantDescription","subscription.showProductDescription","subscription.showOrderNo","show.backToOverView.button","paymentprovider.paypal.merchantid","sourceSystem.PLENIGO.url"]),breadcrumb:"subscription"},children:[{path:"",component:DH},{path:":webId/:backendId",component:FH}]},{path:"terminate-subscription/:subId",canActivate:[cs,br,VV],component:Ki,resolve:[Pr,Qi],data:{baseData:["terminationtypes"],config:[Zi.concat(["show.backToOverView.button","subscription.showTerminationWarning"])]},children:[{path:"",component:rV}]},{path:"move",component:Ki,canActivate:[cs,br,Oa],resolve:[Pr,Qi],data:{baseData:["countrycodes","products","clienttypes","addresscodes","titles"],config:Zi.concat(["move.showContactFormButton","address.addresspart.sequence","subscription.minimal-user-age"]),breadcrumb:"move"},children:[{path:"",component:MH}]},{path:"complaint",component:Ki,canActivate:[cs,br,Oa],resolve:[Pr,Qi],data:{baseData:["countrycodes","products","clienttypes","addresscodes","complaintgroupcodes","complaintactions"],config:Zi.concat(["complaint.reasongroup.default","complaint.reasongroup.defaultOnline","complaint.webFlags","complaint.imageUpload","complaint.show.digital.orders","show.backToOverView.button","complaint.show.edition","complaint.singleSubscription.showPreview"]),breadcrumb:"complaint"},children:[{path:"",component:NH},{path:"new/:subWebId/:subBackendId/:unauthorized/:changeable",component:Ob,data:{breadcrumb:"new_complaint"}},{path:"edit/:compWebId/:compBackendId/:changeable/:isPrint",component:Ob,data:{breadcrumb:"edit_complaint"}}]},{path:"complaint-without-login",component:Ki,canActivate:[br,Oa],resolve:[Pr,Qi],data:{baseData:["countrycodes","products","clienttypes","addresscodes","complaintgroupcodes","complaintactions"],config:Zi.concat(["complaint.reasongroup.default","complaint.reasongroup.defaultOnline","complaint.webFlags","client.validation-factors","show.backToOverView.button","complaint.imageUpload","complaint.show.edition","showContactFormOnComplaintViewWithoutLogin","withoutLogin.useIdentificationForm","complaint.deactivate.begin","complaint.deactivate.end","complaint.singleSubscription.showPreview"]),breadcrumb:"complaint"},children:[{path:"",component:FD},{path:"new/:subBackendId/:clientNo/:unauthorized/:changeable/:isPrint",component:Ob,data:{breadcrumb:"new_complaint"}},{path:"complaint-without-login-after",component:mV,data:{breadcrumb:"complaint_without_login_after"}},{path:":clientNo",component:FD,data:{breadcrumb:"complaint"}}]},{path:"revocation",component:Ki,canActivate:[UD,cs,br,Oa],resolve:[Qi],data:{config:Zi.concat(["revocation.enabled","revocation.button.inOverview"]),breadcrumb:"revocation"},children:[{path:"",component:PV},{path:"new/:webId/:backendId",component:NV,data:{breadcrumb:"new_revocation"}}]},{path:"revocation-without-login",component:Ki,canActivate:[UD,br,Oa],resolve:[Qi],data:{config:Zi.concat(["revocation.enabled"]),breadcrumb:"revocation"},children:[{path:"",component:RV},{path:"revocation-without-login-after",component:FV,data:{breadcrumb:"revocation_without_login_after"}}]},{path:"delays",component:Ki,resolve:[Pr,Qi],data:{baseData:["countrycodes"],breadcrumb:"delay",config:Zi.concat(["address.addresspart.sequence","subscription.minimal-user-age"])},children:[{path:"",component:BD},{path:"",component:BD,data:{breadcrumb:"delay"}}]},{path:"sub-change",component:Ki,canActivate:[cs,br,Oa],resolve:[Pr,Qi,BV],data:{baseData:["countrycodes","products","clienttypes","addresscodes","intermissiontypes","titles"],config:Zi.concat(["subChange.donation.reason","subChange.epaper.reason","subChange.forward.reason","subChange.intermission.reason.default","paymentprovider.paypal.paymentcode","address.addresspart.sequence","subscription.minimal-user-age","subchange.enable.additional.exemplar","show.backToOverView.button","SUBMAXINTERMISSIONDAYS"]),breadcrumb:"subChange"},children:[{path:"",component:BH},{path:"new/:subWebId/:subBackendId",component:Pb,canActivate:[zD],data:{breadcrumb:"new_subChange"}},{path:"edit/:changeWebId/:changeBackendId/:changeable/:subBackendId",component:Pb,data:{breadcrumb:"edit_sub-change"}}]},{path:"sub-change-without-login",canActivate:[Oa],component:Ki,resolve:[Pr,Qi],data:{baseData:["countrycodes","products","clienttypes","addresscodes","intermissiontypes","titles"],config:Zi.concat(["subChange.donation.reason","subChange.epaper.reason","subChange.forward.reason","subChange.intermission.reason.default","paymentprovider.paypal.paymentcode","address.addresspart.sequence","subscription.minimal-user-age","subchange.enable.additional.exemplar","show.backToOverView.button","SUBMAXINTERMISSIONDAYS"]),breadcrumb:"subChange"},children:[{path:"",component:jD},{path:"new/:subBackendId/:clientNo/:unauthorized/:product/:variant",component:Pb,data:{breadcrumb:"new_subChange"}},{path:"sub-change-without-login-after",component:AV,data:{breadcrumb:"sub-change_without_login_after"}},{path:":clientNo",component:jD,data:{breadcrumb:"subChange"}}]},{path:"payment",component:Ki,canActivate:[cs,br],resolve:[Pr,Qi],data:{baseData:["products","invoicemethods","paymentmethods"],breadcrumb:"payment",config:Zi.concat(["payment.changeOfPaymentConditionsAllowed","paymentprovider.paypal.paymentcode"])},children:[{path:"",component:KH},{path:"payment-edit/:paymentWebId/:paymentBackendId",component:QH,canActivate:[LV]},{path:"sub-payment-edit/:subWebId/:subBackendId",component:ZH,canActivate:[zD],data:{breadcrumb:"edit_payment"}}]},{path:"contact",component:Ki,canActivate:[cs,br,Oa],resolve:[Pr],data:{baseData:["contactrequesttypes"],breadcrumb:"contact"},children:[{path:"",component:Yf}]},{path:"contact-without-login",component:Ki,canActivate:[br,Oa],resolve:[Pr,Qi],data:{baseData:["contactrequesttypes","countrycodes","clienttypes","addresscodes","titles"],breadcrumb:"contact",config:Zi.concat(["client.validation-factors","address.addresspart.sequence","subscription.minimal-user-age"])},children:[{path:"",component:lV},{path:"new/:subBackendId/:clientNo/:unauthorized/:isPrint",component:Yf,data:{breadcrumb:"contact"}}]},{path:"contact-overview",component:Ki,canActivate:[br],resolve:[Qi],data:{breadcrumb:"contact",config:Zi.concat(["show.backToOverView.button"])},children:[{path:"",component:uV}]},{path:"redirect",component:Ki,data:{breadcrumb:"redirect"},children:[{path:"",component:oV}]},{path:"payment-redirect",component:Ki,data:{breadcrumb:"paymentRedirect"},children:[{path:"",component:sV}]},{path:"faq",component:IV,canActivate:[Oa],data:{breadcrumb:"faq"}},{path:"login",component:Ki,resolve:[Qi],data:{config:Zi,breadcrumb:"login"},children:[{path:"",component:aV}]},{path:"identification",component:Ki,resolve:[Pr,Qi],data:{baseData:["countrycodes"],config:Zi.concat(["identification.matchCount","address.addresspart.sequence","subscription.minimal-user-age"]),breadcrumb:"identification"},children:[{path:"",component:VD},{path:":returnPath",component:VD,data:{breadcrumb:"identification"}}]},{path:"customer",component:Ki,canActivate:[cs,br,OV],data:{breadcrumb:"customer"}
658,children:[{path:"",component:vV},{path:"invoice/:pageSize",component:wV,data:{breadcrumb:"my_invoices"}}]},{path:"preview/offer",component:kV},{path:"child-user-info",component:EV},{path:"guest-user-info",component:DV,resolve:[Qi],data:{config:Zi}},{path:"**",component:EH}];var zV=(()=>{class t{constructor(){this.loginService=d(ft),this.platformId=d(Qe)}intercept(e,i){return this.loginService.getAuthData().pipe(Et(1),zh(r=>{let o=e.clone();if(nt(this.platformId)&&(o=e.clone({headers:e.headers.set("X-WEBABO-PROFILEKEY",vHost.id)})),r?.token){let a=o.clone({headers:o.headers.append("X-WEBABO-SSOTOKEN",r.token).append("Cache-Control","no-cache, no-store, must-revalidate").append("Pragma","no-cache").append("Expires","Sat, 01 Jan 2000 00:00:00 GMT").append("If-Modified-Since","0")});return i.handle(a)}else return i.handle(o)}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac})}}return t})();function g0e(t){let n=t,e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&i===0?1:5}var UV=["de",[["AM","PM"],void 0,void 0],void 0,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xE4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],void 0,void 0],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} 'um' {0}",void 0],[",",".",";","%","+","-","E","\xB7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","Euro",{ATS:["\xF6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[void 0,"\u0440."],CUC:[void 0,"Cub$"],DEM:["DM"],FKP:[void 0,"Fl\xA3"],GHS:[void 0,"\u20B5"],GNF:[void 0,"F.G."],KMF:[void 0,"FC"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],RUR:[void 0,"\u0440."],RWF:[void 0,"F.Rw"],SYP:[],THB:["\u0E3F"],TWD:["NT$"],XXX:[],ZMW:[void 0,"K"]},"ltr",g0e];function _0e(t){let n=t,e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&i===0?1:5}var GV=["nl",[["a.m.","p.m."],void 0,void 0],void 0,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],void 0,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],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}",void 0,"{1} 'om' {0}",void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00;\xA4\xA0-#,##0.00","#E0"],"EUR","\u20AC","Euro",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],RUR:[void 0,"\u0440."],SBD:["SI$","$"],THB:["\u0E3F"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",_0e];function v0e(t){let n=t,e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&i===0?1:5}var $V=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
658ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",v0e];var WV=new H("webaboServiceUrl");var qV=(()=>{class t{constructor(){this.request=d(R0,{optional:!0})}intercept(e,i){let r=e;if(this.request){let o=d(WV);e.url.startsWith("/")||(o+="/"),o+=e.url;let a="v-host-id",s=this.request.headers[a];if(s){let l=new ur,u=e.headers;if(u)for(let g of u.keys())l=l.set(g,u.get(g));l=l.set(a,s),r=e.clone({url:o,headers:l})}else r=e.clone({url:o})}return i.handle(r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac})}}return t})();var YV=(()=>{class t{constructor(){this.router=d(et),this.guestAccountService=d(nv),this.platformId=d(Qe)}intercept(e,i){return i.handle(e).pipe(Ae(r=>(Hb.isGuestAccountError(r)&&this.showInformationPage(r),Nr(()=>r))))}showInformationPage(e){!nt(this.platformId)||this.guestAccountService.isBlocked()||(this.guestAccountService.markBlocked(),console.warn("guest-account: Aufruf f\xFCr Gast-Benutzer abgelehnt, leite auf die Info-Seite um:",e.url),this.router.navigateByUrl(Rw,{skipLocationChange:!0}).catch(i=>console.error("guest-account: Navigation auf die Info-Seite fehlgeschlagen",i)))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac})}}return t})();var Lt=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Lt||{}),Pa="*";function KV(t,n=null){return{type:Lt.Sequence,steps:t,options:n}}function GD(t){return{type:Lt.Style,styles:t,offset:null}}var tl=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},vp=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}
vendor: 4,217 bytes, line 658
658init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Kf="!";function QV(t){return new K(3e3,!1)}function b0e(){return new K(3100,!1)}function y0e(){return new K(3101,!1)}function C0e(t){return new K(3001,!1)}function S0e(t){return new K(3003,!1)}function x0e(t){return new K(3004,!1)}function XV(t,n){return new K(3005,!1)}function JV(){return new K(3006,!1)}function e4(){return new K(3007,!1)}function t4(t,n){return new K(3008,!1)}function i4(t){return new K(3002,!1)}function n4(t,n,e,i,r){return new K(3010,!1)}function r4(){return new K(3011,!1)}function o4(){return new K(3012,!1)}function a4(){return new K(3200,!1)}function s4(){return new K(3202,!1)}function l4(){return new K(3013,!1)}function c4(t){return new K(3014,!1)}function d4(t){return new K(3015,!1)}function u4(t){return new K(3016,!1)}function p4(t,n){return new K(3404,!1)}function w0e(t){return new K(3502,!1)}function m4(t){return new K(3503,!1)}function f4(){return new K(3300,!1)}function h4(t){return new K(3504,!1)}function g4(t){return new K(3301,!1)}function _4(t,n){return new K(3302,!1)}function v4(t){return new K(3303,!1)}function b4(t,n){return new K(3400,!1)}function y4(t){return new K(3401,!1)}function C4(t){return new K(3402,!1)}function S4(t,n){return new K(3505,!1)}function il(t){switch(t.length){case 0:return new tl;case 1:return t[0];default:return new vp(t)}}function YD(t,n,e=new Map,i=new Map){let r=[],o=[],a=-1,s=null;if(n.forEach(l=>{let u=l.get("offset"),g=u==a,v=g&&s||new Map;l.forEach((w,C)=>{let S=C,D=w;if(C!=="offset")switch(S=t.normalizePropertyName(S,r),D){case Kf:D=e.get(C);break;case Pa:D=i.get(C);break;default:D=t.normalizeStyleValue(C,S,D,r);break}v.set(S,D)}),g||o.push(v),s=v,a=u}),r.length)throw w0e(r);return o}function jb(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&$D(e,"start",t)));break;case"done":t.onDone(()=>i(e&&$D(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&$D(e,"destroy",t)));break}}function $D(t,n,e){let i=e.totalTime,r=!!e.disabled,o=zb(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,r),a=t._data;return a!=null&&(o._data=a),o}function zb(t,n,e,i,r="",o=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function to(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function KD(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i]}var E0e=typeof document>"u"?null:document.documentElement;function Ub(t){let n=t.parentNode||t.host||null;return n===E0e?null:n}function D0e(t){return t.substring(1,6)=="ebkit"}var rd=null,ZV=!1;function x4(t){rd||(rd=T0e()||{},ZV=rd.style?"WebkitAppearance"in rd.style:!1);let n=!0;return rd.style&&!D0e(t)&&(n=t in rd.style,!n&&ZV&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in rd.style)),n}function T0e(){return typeof document<"u"?document.body:null}function QD(t,n){for(;n;){if(n===t)return!0;n=Ub(n)}return!1}function ZD(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[]}var M0e=1e3,XD="{{",I0e="}}
658",JD="ng-enter",Gb="ng-leave",Qf="ng-trigger",Zf=".ng-trigger",eT="ng-animating",$b=".ng-animating";function us(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:WD(parseFloat(n[1]),n[2])}function WD(t,n){switch(n){case"s":return t*M0e;default:return t}}function Xf(t,n,e){return t.hasOwnProperty("duration")?t:A0e(t,n,e)}function A0e(t,n,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,a="";if(typeof t=="string"){let s=t.match(i);if(s===null)return n.push(QV(t)),{duration:0,delay:0,easing:""};r=WD(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=WD(parseFloat(l),s[4]));let u=s[5];u&&(a=u)}else r=t;if(!e){let s=!1,l=n.length;r<0&&(n.push(b0e()),s=!0),o<0&&(n.push(y0e()),s=!0),s&&n.splice(l,0,QV(t))}return{duration:r,delay:o,easing:a}}function w4(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function Na(t,n,e){n.forEach((i,r)=>{let o=Wb(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function Kl(t,n){n.forEach((e,i)=>{let r=Wb(i);t.style[r]=""})}function bp(t){return Array.isArray(t)?t.length==1?t[0]:KV(t):t}function E4(t,n,e){let i=n.params||{},r=tT(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(C0e(o))})}var qD=new RegExp(`${XD}\\s*(.+?)\\s*${I0e}`,"g");function tT(t){let n=[];if(typeof t=="string"){let e;for(;e=qD.exec(t);)n.push(e[1]);qD.lastIndex=0}return n}function yp(t,n,e){let i=`${t}`,r=i.replace(qD,(o,a)=>{let s=n[a];return s==null&&(e.push(S0e(a)),s=""),s.toString()});return r==i?t:r}var k0e=/-+([a-z0-9])/g;function Wb(t){return t.replace(k0e,(...n)=>n[1].toUpperCase())}function D4(t,n){return t===0||n===0}function T4(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o)}),r.length)for(let o=1;o<n.length;o++){let a=n[o];r.forEach(s=>a.set(s,qb(t,s)))}}return n}function io(t,n,e){switch(n.type){case Lt.Trigger:return t.visitTrigger(n,e);case Lt.State:return t.visitState(n,e);case Lt.Transition:return t.visitTransition(n,e);case Lt.Sequence:return t.visitSequence(n,e);case Lt.Group:return t.visitGroup(n,e);case Lt.Animate:return t.visitAnimate(n,e);case Lt.Keyframes:return t.visitKeyframes(n,e);case Lt.Style:return t.visitStyle(n,e);case Lt.Reference:return t.visitReference(n,e);case Lt.AnimateChild:return t.visitAnimateChild(n,e);case Lt.AnimateRef:return t.visitAnimateRef(n,e);case Lt.Query:return t.visitQuery(n,e);case Lt.Stagger:return t.visitStagger(n,e);default:throw x0e(n.type)}}function qb(t,n){return window.getComputedStyle(t)[n]}var vT=(()=>{class t{validateStyleProperty(e){return x4(e)}containsElement(e,i){return QD(e,i)}getParentElement(e){return Ub(e)}query(e,i,r){return ZD(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,a,s=[],l){return new tl(r,o)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})(),ad=class{static NOOP=new vT},sd=class{};var O0e=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"]),Xb=class extends sd{normalizePropertyName(n,e){return Wb(n)}normalizeStyleValue(n,e,i,r){let o="",a=i.toString().trim();if(O0e.has(e)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&r.push(XV(n,i))}return a+o}};var Jb="*";function P0e(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>N0e(i,e,n)):e.push(t),e}function N0e(t,n,e){if(t[0]==":"){let l=R0e(t,e);if(typeof l=="function"){n.push(l);return}t=l}let i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(d4(t)),n;let r=i[1],o=i[2],a=i[3];n.push(M4(r,a));let s=r==Jb&&a==Jb;o[0]=="<"&&!s&&n.push(M4(a,r))}function R0e(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(u4(t)),"* => *"}}var Yb=new Set(["true","1"]),Kb=new Set(["false","0"]);function M4(t,n){let e=Yb.has(t)||Kb.has(t),i=Yb.has(n)||Kb.has(n);return(r,o)=>{let a=t==Jb||t==r,s=n==Jb||n==o;return!a&&e&&typeof r=="boolean"&&(a=r?Yb.has(t):Kb.has(t)),!s&&i&&typeof o=="boolean"&&(s=o?Yb.has(n):Kb.has(n)),a&&s}}var B4=":self",F0e=new RegExp(`s*${B4}s*,?`,"g");function H4(t,n,e,i){return new sT(t).build(n,e,i)}var I4="",sT=class{_driver;constructor(n){this._driver=n}build(n,e,i){let r=new lT(e);return this._resetContextStyleTimingState(r),io(this,bp(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector=I4,n.collectedStyles=new Map,n.collectedStyles.set(I4,new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0,o=[],a=[];return n.name.charAt(0)=="@"&&e.errors.push(JV()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Lt.State){let l=s,u=l.name;
vendor: 45,403 bytes, line 658
658u.toString().split(/\s*,\s*/).forEach(g=>{l.name=g,o.push(this.visitState(l,e))}),l.name=u}else if(s.type==Lt.Transition){let l=this.visitTransition(s,e);i+=l.queryCount,r+=l.depCount,a.push(l)}else e.errors.push(e4())}),{type:Lt.Trigger,name:n.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(n,e){let i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){let o=new Set,a=r||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{tT(l).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&e.errors.push(t4(n.name,[...o.values()]))}return{type:Lt.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=io(this,bp(n.animation),e),r=P0e(n.expr,e.errors);return{type:Lt.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:od(n.options)}}visitSequence(n,e){return{type:Lt.Sequence,steps:n.steps.map(i=>io(this,i,e)),options:od(n.options)}}visitGroup(n,e){let i=e.currentTime,r=0,o=n.steps.map(a=>{e.currentTime=i;let s=io(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:Lt.Group,steps:o,options:od(n.options)}}visitAnimate(n,e){let i=V0e(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:GD({});if(o.type==Lt.Keyframes)r=this.visitKeyframes(o,e);else{let a=n.styles,s=!1;if(!a){s=!0;let u={};i.easing&&(u.easing=i.easing),a=GD(u)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,r=l}return e.currentAnimateTimings=null,{type:Lt.Animate,timings:i,style:r,options:null}}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){let i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of r)typeof s=="string"?s===Pa?i.push(s):e.errors.push(i4(s)):i.push(new Map(Object.entries(s)));let o=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(XD)>=0){o=!0;break}}}),{type:Lt.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){let i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),g=u.get(l),v=!0;g&&(o!=r&&o>=g.startTime&&r<=g.endTime&&(e.errors.push(n4(l,g.startTime,g.endTime,o,r)),v=!1),o=g.startTime),v&&u.set(l,{startTime:o,endTime:r}),e.options&&E4(s,e.options,e.errors)})})}visitKeyframes(n,e){let i={type:Lt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(r4()),i;let r=1,o=0,a=[],s=!1,l=!1,u=0,g=n.steps.map(V=>{let Q=this._makeStyleAst(V,e),ie=Q.offset!=null?Q.offset:H0e(Q.styles),U=0;return ie!=null&&(o++,U=Q.offset=ie),l=l||U<0||U>1,s=s||U<u,u=U,a.push(U),Q});l&&e.errors.push(o4()),s&&e.errors.push(a4());let v=n.steps.length,w=0;o>0&&o<v?e.errors.push(s4()):o==0&&(w=r/(v-1));let C=v-1,S=e.currentTime,D=e.currentAnimateTimings,O=D.duration;return g.forEach((V,Q)=>{let ie=w>0?Q==C?1:w*Q:a[Q],U=ie*O;e.currentTime=S+D.delay+U,D.duration=U,this._validateStyleAst(V,e),V.offset=ie,i.styles.push(V)}),i}visitReference(n,e){return{type:Lt.Reference,animation:io(this,bp(n.animation),e),options:od(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Lt.AnimateChild,options:od(n.options)}}visitAnimateRef(n,e){return{type:Lt.AnimateRef,animation:this.visitReference(n.animation,e),options:od(n.options)}}visitQuery(n,e){let i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;let[o,a]=L0e(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,to(e.collectedStyles,e.currentQuerySelector,new Map);let s=io(this,bp(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Lt.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:od(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(l4());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:Xf(n.timings,e.errors,!0);return{type:Lt.Stagger,animation:io(this,bp(n.animation),e),timings:i,options:null}}};function L0e(t){let n=!!t.split(/\s*,\s*/).find(e=>e==B4);return n&&(t=t.replace(F0e,"")),t=t.replace(/@\*/g,Zf).replace(/@\w+/g,e=>Zf+"-"+e.slice(1)).replace(/:animating/g,$b),[t,n]}function B0e(t){return t?N({},t):null}var lT=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}};function H0e(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function V0e(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Xf(t,n).duration;return iT(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=iT(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=Xf(e,n);return iT(r.duration,r.delay,r.easing)}function od(t){return t?(t=N({},t),t.params&&(t.params=B0e(t.params))):t={},t}function iT(t,n,e){return{duration:t,delay:n,easing:e}}function bT(t,n,e,i,r,o,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var eh=class{_map=new Map;get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},j0e=1,z0e=":enter",U0e=new RegExp(z0e,"g"),G0e=":leave",$0e=new RegExp(G0e,"g");function V4(t,n,e,i,r,o=new Map,a=new Map,s,l,u=[]){return new cT().buildKeyframes(t,n,e,i,r,o,a,s,l,u)}var cT=class{buildKeyframes(n,e,i,r,o,a,s,l,u,g=[]){u=u||new eh;let v=new dT(n,e,u,r,o,g,[]);v.options=l;let w=l.delay?us(l.delay):0;v.currentTimeline.delayNextStep(w),v.currentTimeline.setStyles([a],null,v.errors,l),io(this,i,v);let C=v.timelines.filter(S=>S.containsAnimation());if(C.length&&s.size){let S;for(let D=C.length-1;D>=0;D--){let O=C[D];if(O.element===e){S=O;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([s],null,v.errors,l)}return C.length?C.map(S=>S.buildKeyframes()):[bT(e,[],[],[],0,w,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(let r of n){let o=r?.delay;if(o){let a=typeof o=="number"?o:us(yp(o,r?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime,a=i.duration!=null?us(i.duration):null,s=i.delay!=null?us(i.delay):null;return a!==0&&n.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),io(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let i=e.subContextCount,r=e,o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==Lt.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ey);let a=us(o.delay);r.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>io(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let i=[],r=e.currentTimeline.currentTime,o=n.options&&n.options.delay?us(n.options.delay):0;n.steps.forEach(a=>{let s=e.createSubContext(n.options);o&&s.delayNextStep(o),io(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,r=e.params?yp(i,e.params,e.errors):i;return Xf(r,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let o=n.style;o.type==Lt.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*o),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){let i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?us(r.delay):0;o&&(e.previousNode.type===Lt.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ey);let a=i,s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,g)=>{e.currentQueryIndex=g;let v=e.createSubContext(n.options,u);o&&v.delayNextStep(o),u===e.element&&(l=v.currentTimeline),io(this,n.animation,v),v.currentTimeline.applyStylesToKeyframe();let w=v.currentTimeline.currentTime;a=Math.max(a,w)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let i=e.parentContext,r=e.currentTimeline,o=n.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime;break}let g=e.currentTimeline;l&&g.delayNextStep(l);let v=g.currentTime;io(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-v+(r.startTime-i.currentTimeline.startTime)}},ey={},dT=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=ey;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,i,r,o,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.currentTimeline=l||new ty(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let i=n,r=this.options;i.duration!=null&&(r.duration=us(i.duration)),i.delay!=null&&(r.delay=us(i.delay));let o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=yp(o[s],a,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=ey,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){let r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new uT(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,a){let s=[];if(r&&s.push(this.element),n.length>0){n=n.replace(U0e,"."+this._enterClassName),n=n.replace($0e,"."+this._leaveClassName);let l=i!=1,u=this._driver.query(this.element,n,l);i!==0&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push(...u)}return!o&&s.length==0&&a.push(c4(e)),s}},ty=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||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+=j0e,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Pa),this._currentKeyframe.set(e,Pa);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},a=W0e(n,this._globalTimelineStyles);for(let[s,l]of a){let u=yp(l,o,i);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Pa),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((g,v)=>{g===Kf?n.add(v):g===Pa&&e.add(v)}),i||u.set("offset",l/this.duration),r.push(u)});let o=[...n.values()],a=[...e.values()];if(i){let s=r[0],l=new Map(s);s.set("offset",0),l.set("offset",1),r=[s,l]}return bT(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},uT=class extends ty{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,i,r,o,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),o.push(l);let u=new Map(n[0]);u.set("offset",A4(s)),o.push(u);let g=n.length-1;for(let v=1;v<=g;v++){let w=new Map(n[v]),C=w.get("offset"),S=e+C*i;w.set("offset",A4(S/a)),o.push(w)}i=a,e=0,r="",n=o}return bT(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function A4(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function W0e(t,n){let e=new Map,i;return t.forEach(r=>{if(r==="*"){i??=n.keys();for(let o of i)e.set(o,Pa)}else for(let[o,a]of r)e.set(o,a)}),e}function k4(t,n,e,i,r,o,a,s,l,u,g,v,w){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:g,totalTime:v,errors:w}}var nT={},iy=class{_triggerName;ast;_stateStyles;constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return q0e(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return n!==void 0&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,a,s,l,u,g){let v=[],w=this.ast.options&&this.ast.options.params||nT,C=s&&s.params||nT,S=this.buildStyles(i,C,v),D=l&&l.params||nT,O=this.buildStyles(r,D,v),V=new Set,Q=new Map,ie=new Map,U=r==="void",Me={params:j4(D,w),delay:this.ast.options?.delay},Oe=g?[]:V4(n,e,this.ast.animation,o,a,S,O,Me,u,v),ae=0;return Oe.forEach(oe=>{ae=Math.max(oe.duration+oe.delay,ae)}),v.length?k4(e,this._triggerName,i,r,U,S,O,[],[],Q,ie,ae,v):(Oe.forEach(oe=>{let dt=oe.element,ut=to(Q,dt,new Set);oe.preStyleProps.forEach(lt=>ut.add(lt));let Ze=to(ie,dt,new Set);oe.postStyleProps.forEach(lt=>Ze.add(lt)),dt!==e&&V.add(dt)}),k4(e,this._triggerName,i,r,U,S,O,Oe,[...V.values()],Q,ie,ae))}};function q0e(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}function j4(t,n){let e=N({},n);return Object.entries(t).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var pT=class{styles;defaultParams;normalizer;constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){let i=new Map,r=j4(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=yp(a,r,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}};function Y0e(t,n,e){return new mT(t,n,e)}var mT=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new pT(r.style,o,i))}),O4(this.states,"true","1"),O4(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new iy(n,r,this.states))}),this.fallbackTransition=K0e(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(a=>a.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}};function K0e(t,n,e){let i=[(a,s)=>!0],r={type:Lt.Sequence,steps:[],options:null},o={type:Lt.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new iy(t,o,n)}function O4(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}var Q0e=new eh,fT=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i}register(n,e){let i=[],r=[],o=H4(this._driver,e,i,r);if(i.length)throw m4(i);this._animations.set(n,o)}_buildPlayer(n,e,i){let r=n.element,o=YD(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){let r=[],o=this._animations.get(n),a,s=new Map;if(o?(a=V4(this._driver,e,o,JD,Gb,new Map,new Map,i,Q0e,r),a.forEach(g=>{let v=to(s,g.element,new Map);g.postStyleProps.forEach(w=>v.set(w,null))})):(r.push(f4()),a=[]),r.length)throw h4(r);s.forEach((g,v)=>{g.forEach((w,C)=>{g.set(C,this._driver.computeStyle(v,C,Pa))})});let l=a.map(g=>{let v=s.get(g.element);return this._buildPlayer(g,new Map,v)}),u=il(l);return this._playersById.set(n,u),u.onDestroy(()=>this.destroy(n)),this.players.push(u),u}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw g4(n);return e}listen(n,e,i,r){let o=zb(e,"","","");return jb(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if(i=="register"){this.register(n,r[0]);return}if(i=="create"){let a=r[0]||{};this.create(n,e,a);return}let o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n);break}}},P4="ng-animate-queued",Z0e=".ng-animate-queued",rT="ng-animate-disabled",X0e=".ng-animate-disabled",J0e="ng-star-inserted",eve=".ng-star-inserted",tve=[],z4={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ive={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ra="__ng_removed",th=class{namespaceId;value;options;get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let i=n&&n.hasOwnProperty("value"),r=i?n.value:n;if(this.value=rve(r),i){let o=n,{value:a}=o,s=xp(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},Jf="void",oT=new th(Jf),hT=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"+n,Jo(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw _4(i,e);if(i==null||i.length==0)throw v4(e);if(!ove(i))throw b4(i,e);let o=to(this._elementListeners,n,[]),a={name:e,phase:i,callback:r};o.push(a);let s=to(this._engine.statesByElement,n,new Map);return s.has(e)||(Jo(n,Qf),Jo(n,Qf+"-"+e),s.set(e,oT)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw y4(n);return e}trigger(n,e,i,r=!0){let o=this._getTrigger(e),a=new ih(this.id,e,n),s=this._engine.statesByElement.get(n);s||(Jo(n,Qf),Jo(n,Qf+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e),u=new th(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=oT),!(u.value===Jf)&&l.value===u.value){if(!lve(l.params,u.params)){let D=[],O=o.matchStyles(l.value,l.params,D),V=o.matchStyles(u.value,u.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{Kl(n,O),Na(n,V)})}return}let w=to(this._engine.playersByElement,n,[]);w.forEach(D=>{D.namespaceId==this.id&&D.triggerName==e&&D.queued&&D.destroy()});let C=o.matchTransition(l.value,u.value,n,u.params),S=!1;if(!C){if(!r)return;C=o.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:C,fromState:l,toState:u,player:a,isFallbackTransition:S}),S||(Jo(n,P4),a.onStart(()=>{Cp(n,P4)})),a.onDone(()=>{let D=this.players.indexOf(a);D>=0&&this.players.splice(D,1);let O=this._engine.playersByElement.get(n);if(O){let V=O.indexOf(a);V>=0&&O.splice(V,1)}}),this.players.push(a),w.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,Zf,!0);i.forEach(r=>{if(r[Ra])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){let o=this._engine.statesByElement.get(n),a=new Map;if(o){let s=[];if(o.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let g=this.trigger(n,u,Jf,r);g&&s.push(g)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&il(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let r=new Set;e.forEach(o=>{let a=o.name;if(r.has(a))return;r.add(a);let l=this._triggers.get(a).fallbackTransition,u=i.get(a)||oT,g=new th(Jf),v=new ih(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:u,toState:g,player:v,isFallbackTransition:!0})})}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{let o=n[Ra];(!o||o===z4)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Jo(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==i.triggerName){let l=zb(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,jb(i.player,s.phase,l,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let o=i.transition.ast.depCount,a=r.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},gT=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){let i=new hT(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=r.get(s);if(l){let u=i.indexOf(l);i.splice(u+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,i=this.statesByElement.get(n);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(n,e,i,r){if(Qb(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Qb(e))return;let o=e[Ra];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){let a=this._fetchNamespace(n);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Jo(n,rT)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Cp(n,rT))}removeNode(n,e,i){if(Qb(e)){let r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Ra]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Qb(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Zf,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,$b,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return il(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[Ra];if(e&&e.setForRemoval){if(n[Ra]=z4,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(rT)&&this.markElementAsDisabled(n,!1),this.driver.query(n,X0e,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];Jo(r,J0e)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?il(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw C4(n)}_flushAnimations(n,e){let i=new eh,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,g=new Set;this.disabledNodes.forEach(ne=>{g.add(ne);let ve=this.driver.query(ne,Z0e,!0);for(let Fe=0;Fe<ve.length;Fe++)g.add(ve[Fe])});let v=this.bodyNode,w=Array.from(this.statesByElement.keys()),C=F4(w,this.collectedEnterElements),S=new Map,D=0;C.forEach((ne,ve)=>{let Fe=JD+D++;S.set(ve,Fe),ne.forEach(mt=>Jo(mt,Fe))});let O=[],V=new Set,Q=new Set;for(let ne=0;ne<this.collectedLeaveElements.length;ne++){let ve=this.collectedLeaveElements[ne],Fe=ve[Ra];Fe&&Fe.setForRemoval&&(O.push(ve),V.add(ve),Fe.hasAnimation?this.driver.query(ve,eve,!0).forEach(mt=>V.add(mt)):Q.add(ve))}let ie=new Map,U=F4(w,Array.from(V));U.forEach((ne,ve)=>{let Fe=Gb+D++;ie.set(ve,Fe),ne.forEach(mt=>Jo(mt,Fe))}),n.push(()=>{C.forEach((ne,ve)=>{let Fe=S.get(ve);ne.forEach(mt=>Cp(mt,Fe))}),U.forEach((ne,ve)=>{let Fe=ie.get(ve);ne.forEach(mt=>Cp(mt,Fe))}),O.forEach(ne=>{this.processLeaveNode(ne)})});let Me=[],Oe=[];for(let ne=this._namespaceList.length-1;ne>=0;ne--)this._namespaceList[ne].drainQueuedTransitions(e).forEach(Fe=>{let mt=Fe.player,fi=Fe.element;if(Me.push(mt),this.collectedEnterElements.length){let Vi=fi[Ra];if(Vi&&Vi.setForMove){if(Vi.previousTriggersValues&&Vi.previousTriggersValues.has(Fe.triggerName)){let Cr=Vi.previousTriggersValues.get(Fe.triggerName),nr=this.statesByElement.get(Fe.element);if(nr&&nr.has(Fe.triggerName)){let ld=nr.get(Fe.triggerName);ld.value=Cr,nr.set(Fe.triggerName,ld)}}mt.destroy();return}}let an=!v||!this.driver.containsElement(v,fi),Xi=ie.get(fi),yr=S.get(fi),Zt=this._buildInstruction(Fe,i,yr,Xi,an);if(Zt.errors&&Zt.errors.length){Oe.push(Zt);return}if(an){mt.onStart(()=>Kl(fi,Zt.fromStyles)),mt.onDestroy(()=>Na(fi,Zt.toStyles)),r.push(mt);return}if(Fe.isFallbackTransition){mt.onStart(()=>Kl(fi,Zt.fromStyles)),mt.onDestroy(()=>Na(fi,Zt.toStyles)),r.push(mt);return}let no=[];Zt.timelines.forEach(Vi=>{Vi.stretchStartingKeyframe=!0,this.disabledNodes.has(Vi.element)||no.push(Vi)}),Zt.timelines=no,i.append(fi,Zt.timelines);let ps={instruction:Zt,player:mt,element:fi};a.push(ps),Zt.queriedElements.forEach(Vi=>to(s,Vi,[]).push(mt)),Zt.preStyleProps.forEach((Vi,Cr)=>{if(Vi.size){let nr=l.get(Cr);nr||l.set(Cr,nr=new Set),Vi.forEach((ld,Ql)=>nr.add(Ql))}}),Zt.postStyleProps.forEach((Vi,Cr)=>{let nr=u.get(Cr);nr||u.set(Cr,nr=new Set),Vi.forEach((ld,Ql)=>nr.add(Ql))})});if(Oe.length){let ne=[];Oe.forEach(ve=>{ne.push(S4(ve.triggerName,ve.errors))}),Me.forEach(ve=>ve.destroy()),this.reportError(ne)}let ae=new Map,oe=new Map;a.forEach(ne=>{let ve=ne.element;i.has(ve)&&(oe.set(ve,ve),this._beforeAnimationBuild(ne.player.namespaceId,ne.instruction,ae))}),r.forEach(ne=>{let ve=ne.element;this._getPreviousPlayers(ve,!1,ne.namespaceId,ne.triggerName,null).forEach(mt=>{to(ae,ve,[]).push(mt),mt.destroy()})});let dt=O.filter(ne=>L4(ne,l,u)),ut=new Map;R4(ut,this.driver,Q,u,Pa).forEach(ne=>{L4(ne,l,u)&&dt.push(ne)});let lt=new Map;C.forEach((ne,ve)=>{R4(lt,this.driver,new Set(ne),l,Kf)}),dt.forEach(ne=>{let ve=ut.get(ne),Fe=lt.get(ne);ut.set(ne,new Map([...ve?.entries()??[],...Fe?.entries()??[]]))});let Ft=[],ti=[],on={};a.forEach(ne=>{let{element:ve,player:Fe,instruction:mt}=ne;if(i.has(ve)){if(g.has(ve)){Fe.onDestroy(()=>Na(ve,mt.toStyles)),Fe.disabled=!0,Fe.overrideTotalTime(mt.totalTime),r.push(Fe);return}let fi=on;if(oe.size>1){let Xi=ve,yr=[];for(;Xi=Xi.parentNode;){let Zt=oe.get(Xi);if(Zt){fi=Zt;break}yr.push(Xi)}yr.forEach(Zt=>oe.set(Zt,fi))}let an=this._buildAnimation(Fe.namespaceId,mt,ae,o,lt,ut);if(Fe.setRealPlayer(an),fi===on)Ft.push(Fe);else{let Xi=this.playersByElement.get(fi);Xi&&Xi.length&&(Fe.parentPlayer=il(Xi)),r.push(Fe)}}else Kl(ve,mt.fromStyles),Fe.onDestroy(()=>Na(ve,mt.toStyles)),ti.push(Fe),g.has(ve)&&r.push(Fe)}),ti.forEach(ne=>{let ve=o.get(ne.element);if(ve&&ve.length){let Fe=il(ve);ne.setRealPlayer(Fe)}}),r.forEach(ne=>{ne.parentPlayer?ne.syncPlayerEvents(ne.parentPlayer):ne.destroy()});for(let ne=0;ne<O.length;ne++){let ve=O[ne],Fe=ve[Ra];if(Cp(ve,Gb),Fe&&Fe.hasAnimation)continue;let mt=[];if(s.size){let an=s.get(ve);an&&an.length&&mt.push(...an);let Xi=this.driver.query(ve,$b,!0);for(let yr=0;yr<Xi.length;yr++){let Zt=s.get(Xi[yr]);Zt&&Zt.length&&mt.push(...Zt)}}let fi=mt.filter(an=>!an.destroyed);fi.length?ave(this,ve,fi):this.processLeaveNode(ve)}return O.length=0,Ft.forEach(ne=>{this.players.push(ne),ne.onDone(()=>{ne.destroy();let ve=this.players.indexOf(ne);this.players.splice(ve,1)}),ne.play()}),Ft}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let a=[];if(e){let s=this.playersByQueriedElement.get(n);s&&(a=s)}else{let s=this.playersByElement.get(n);if(s){let l=!o||o==Jf;s.forEach(u=>{u.queued||!l&&u.triggerName!=r||a.push(u)})}}return(i||r)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){let r=e.triggerName,o=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let u=l.element,g=u!==o,v=to(i,u,[]);this._getPreviousPlayers(u,g,a,s,e.toState).forEach(C=>{let S=C.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),C.destroy(),v.push(C)})}Kl(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,a){let s=e.triggerName,l=e.element,u=[],g=new Set,v=new Set,w=e.timelines.map(S=>{let D=S.element;g.add(D);let O=D[Ra];if(O&&O.removedBeforeQueried)return new tl(S.duration,S.delay);let V=D!==l,Q=sve((i.get(D)||tve).map(ae=>ae.getRealPlayer())).filter(ae=>{let oe=ae;return oe.element?oe.element===D:!1}),ie=o.get(D),U=a.get(D),Me=YD(this._normalizer,S.keyframes,ie,U),Oe=this._buildPlayer(S,Me,Q);if(S.subTimeline&&r&&v.add(D),V){let ae=new ih(n,s,D);ae.setRealPlayer(Oe),u.push(ae)}return Oe});u.forEach(S=>{to(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>nve(this.playersByQueriedElement,S.element,S))}),g.forEach(S=>Jo(S,eT));let C=il(w);return C.onDestroy(()=>{g.forEach(S=>Cp(S,eT)),Na(l,e.toStyles)}),v.forEach(S=>{to(r,S,[]).push(C)}),C}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new tl(n.duration,n.delay)}},ih=class{namespaceId;triggerName;element;_player=new tl;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>jb(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){to(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};function nve(t,n,e){let i=t.get(n);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&t.delete(n)}return i}function rve(t){return t??null}function Qb(t){return t&&t.nodeType===1}function ove(t){return t=="start"||t=="done"}function N4(t,n){let e=t.style.display;return t.style.display=n??"none",e}function R4(t,n,e,i,r){let o=[];e.forEach(l=>o.push(N4(l)));let a=[];i.forEach((l,u)=>{let g=new Map;l.forEach(v=>{let w=n.computeStyle(u,v,r);g.set(v,w),(!w||w.length==0)&&(u[Ra]=ive,a.push(u))}),t.set(u,g)});let s=0;return e.forEach(l=>N4(l,o[s++])),a}function F4(t,n){let e=new Map;if(t.forEach(s=>e.set(s,[])),n.length==0)return e;let i=1,r=new Set(n),o=new Map;function a(s){if(!s)return i;let l=o.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:r.has(u)?l=i:l=a(u),o.set(s,l),l}return n.forEach(s=>{let l=a(s);l!==i&&e.get(l).push(s)}),e}function Jo(t,n){t.classList?.add(n)}function Cp(t,n){t.classList?.remove(n)}function ave(t,n,e){il(e).onDone(()=>t.processLeaveNode(n))}function sve(t){let n=[];return U4(t,n),n}function U4(t,n){for(let e=0;e<t.length;e++){let i=t[e];i instanceof vp?U4(i.players,n):n.push(i)}}function lve(t,n){let e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!n.hasOwnProperty(o)||t[o]!==n[o])return!1}return!0}function L4(t,n,e){let i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(o=>r.add(o)):n.set(t,i),e.delete(t),!0}var Sp=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,e)=>{};constructor(n,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new gT(n.body,e,i),this._timelineEngine=new fT(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){let a=n+"-"+r,s=this._triggerCache[a];if(!s){let l=[],u=[],g=H4(this._driver,o,l,u);if(l.length)throw p4(r,l);s=Y0e(r,g,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if(i.charAt(0)=="@"){let[o,a]=KD(i),s=r;this._timelineEngine.command(o,e,a,s)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if(i.charAt(0)=="@"){let[a,s]=KD(i);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function cve(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=aT(n[0]),n.length>1&&(i=aT(n[n.length-1]))):n instanceof Map&&(e=aT(n)),e||i?new dve(t,e,i):null}var dve=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Na(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Na(this._element,this._initialStyles),this._endStyles&&(Na(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Kl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Kl(this._element,this._endStyles),this._endStyles=null),Na(this._element,this._initialStyles),this._state=3)}}return t})();function aT(t){let n=null;return t.forEach((e,i)=>{uve(i)&&(n=n||new Map,n.set(i,e))}),n}function uve(t){return t==="display"||t==="position"}var ny=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){let e=[];
658return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&n.set(r,this._finished?i:qb(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},ry=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return QD(n,e)}getParentElement(n){return Ub(n)}query(n,e,i){return ZD(n,e,i)}computeStyle(n,e,i){return qb(n,e)}animate(n,e,i,r,o,a=[]){let s=r==0?"both":"forwards",l={duration:i,delay:r,fill:s};o&&(l.easing=o);let u=new Map,g=a.filter(C=>C instanceof ny);D4(i,r)&&g.forEach(C=>{C.currentSnapshot.forEach((S,D)=>u.set(D,S))});let v=w4(e).map(C=>new Map(C));v=T4(n,v,u);let w=cve(n,v);return new ny(n,v,l,w)}};var Zb="@",G4="@.disabled",oy=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){e.charAt(0)==Zb&&e==G4?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i,r){return this.delegate.listen(n,e,i,r)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},_T=class extends oy{factory;constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){e.charAt(0)==Zb?e.charAt(1)=="."&&e==G4?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i,r){if(e.charAt(0)==Zb){let o=pve(n),a=e.slice(1),s="";return a.charAt(0)!=Zb&&([a,s]=mve(a)),this.engine.listen(this.namespaceId,o,a,s,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,i,l)})}return this.delegate.listen(n,e,i,r)}};function pve(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function mve(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i]}var ay=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,e){let i="",r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let u=this._rendererCache,g=u.get(r);if(!g){let v=()=>u.delete(r);g=new oy(i,r,this.engine,v),u.set(r,g)}return g}let o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(o,a,n,u.name,u)};return e.data.animation.forEach(s),new _T(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId){this._zone.run(()=>e(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(n){this.engine.flush(),this.delegate.componentReplaced?.(n)}};var hve=(()=>{class t extends Sp{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(xe(Se),xe(ad),xe(sd))};static \u0275prov=I({token:t,factory:t.\u0275fac})}return t})();function gve(){return new Xb}function _ve(t,n,e){return new ay(t,n,e)}var $4=[{provide:sd,useFactory:gve},{provide:Sp,useClass:hve},{provide:Ji,useFactory:_ve,deps:[Sm,Sp,de]}],qht=[{provide:ad,useClass:vT},{provide:zt,useValue:"NoopAnimations"},...$4],vve=[{provide:ad,useFactory:()=>new ry},{provide:zt,useFactory:()=>"BrowserAnimations"},...$4];function W4(){return cr("NgEagerAnimations"),[...vve]}var sy=class{constructor(n){this.translationService=n,this._parse={dateInput:this.translationService.getTranslation("dateFormat")},this._display={dateInput:this.translationService.getTranslation("dateFormat"),monthYearLabel:"MMM yyyy",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy"}}set parse(n){this._parse=Object.assign({},this._parse,n)}get parse(){return this._parse}get display(){return this._display}updateDateFormat(n){this.parse=n,this._display=Object.assign({},this._display,{dateInput:n.dateInput})}};U_(UV);U_(GV);U_($V);function bve(t){return()=>t.loadVhosts()}function yve(t){return()=>t.initLocale()}function Cve(t){return()=>t.loadConfigs(Zi)}function Sve(t){return()=>t.initDefaultCountry()}var q4={providers:[{provide:qt,useClass:kw},{provide:Vo,useFactory:t=>new sy(t),deps:[Y]},Le,V1(vx,QP,$L),R2({eventCoalescing:!0}),rw(jV,aw(),sw(nw),ow({scrollPositionRestoration:"enabled"}),lw({onSameUrlNavigation:"reload"})),eN(JP(),XP({includePostRequests:!0,includeRequestsWithAuthHeaders:!0})),Tx(Mx(),Ix()),{provide:cu,useClass:qV,multi:!0},{provide:cu,useClass:zV,multi:!0},{provide:cu,useClass:YV,multi:!0},{provide:ha,useValue:"de"},{provide:M_,useValue:"EUR"},Ai,Cc(()=>bve(d(Ai))()),Cc(()=>Cve(d(Ce))()),Cc(()=>yve(d(Ce))()),Cc(()=>Sve(d(Ce))()),W4()]};_x(qL,q4).catch(t=>console.error(t)); 659//# sourceMappingURL=main-2DB6FSGE.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.