var dPe=Object.defineProperty,uPe=Object.defineProperties,hPe=Object.getOwnPropertyDescriptors,cH=Object.getOwnPropertySymbols,pPe=Object.prototype.hasOwnProperty,fPe=Object.prototype.propertyIsEnumerable,dH=(rn,Jt,Wt)=>Jt in rn?dPe(rn,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):rn[Jt]=Wt,ut=(rn,Jt)=>{for(var Wt in Jt||(Jt={}))pPe.call(Jt,Wt)&&dH(rn,Wt,Jt[Wt]);if(cH)for(var Wt of cH(Jt))fPe.call(Jt,Wt)&&dH(rn,Wt,Jt[Wt]);return rn},po=(rn,Jt)=>uPe(rn,hPe(Jt));(self.webpackChunklv_web=self.webpackChunklv_web||[]).push([[179],{307:()=>{ace.define("ace/theme/linkvertise",["require","exports","module","ace/lib/dom"],function(rn,Jt,Wt){Jt.isDark=!1,Jt.cssClass="ace-tomorrow",Jt.cssText=".ace-tomorrow .ace_gutter {background: #FFF;color: #4D4D4C;border-right: 2px solid #F5F5F5;}.ace-tomorrow .ace_print-margin {width: 1px;background: #f6f6f6;}.ace-tomorrow {background-color: #FFFFFF;border-bottom: solid #32323299 1px;color: #4D4D4C;}.ace-tomorrow:hover {border-bottom: solid black 2px;}.ace-tomorrow.ace_focus {border-bottom: solid #000000 2px;}.ace-tomorrow .ace_cursor {color: #AEAFAD}.ace-tomorrow .ace_marker-layer .ace_selection {background: #ffad67}.ace-tomorrow.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-tomorrow .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-tomorrow .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #D1D1D1}.ace-tomorrow .ace_marker-layer .ace_active-line {background: #FFF}.ace-tomorrow .ace_gutter-active-line {background-color : #FFF}.ace-tomorrow .ace_marker-layer .ace_selected-word {border: 1px solid #ffad67}.ace-tomorrow .ace_invisible {color: #D1D1D1}.ace-tomorrow .ace_keyword,.ace-tomorrow .ace_meta,.ace-tomorrow .ace_storage,.ace-tomorrow .ace_storage.ace_type,.ace-tomorrow .ace_support.ace_type {color: #8959A8}.ace-tomorrow .ace_keyword.ace_operator {color: #3E999F}.ace-tomorrow .ace_constant.ace_character,.ace-tomorrow .ace_constant.ace_language,.ace-tomorrow .ace_constant.ace_numeric,.ace-tomorrow .ace_keyword.ace_other.ace_unit,.ace-tomorrow .ace_support.ace_constant,.ace-tomorrow .ace_variable.ace_parameter {color: #F5871F}.ace-tomorrow .ace_constant.ace_other {color: #666969}.ace-tomorrow .ace_invalid {color: #FFFFFF;background-color: #C82829}.ace-tomorrow .ace_invalid.ace_deprecated {color: #FFFFFF;background-color: #8959A8}.ace-tomorrow .ace_fold {background-color: #4271AE;border-color: #4D4D4C}.ace-tomorrow .ace_entity.ace_name.ace_function,.ace-tomorrow .ace_support.ace_function,.ace-tomorrow .ace_variable {color: #4271AE}.ace-tomorrow .ace_support.ace_class,.ace-tomorrow .ace_support.ace_type {color: #C99E00}.ace-tomorrow .ace_heading,.ace-tomorrow .ace_markup.ace_heading,.ace-tomorrow .ace_string {color: #718C00}.ace-tomorrow .ace_entity.ace_name.ace_tag,.ace-tomorrow .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow .ace_meta.ace_tag,.ace-tomorrow .ace_string.ace_regexp,.ace-tomorrow .ace_variable {color: #C82829}.ace-tomorrow .ace_comment {color: #8E908C}.ace-tomorrow .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y}",rn("../lib/dom").importCssString(Jt.cssText,Jt.cssClass)})},257:(rn,Jt,Wt)=>{"use strict";function te(t){return"function"==typeof t}function H(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Ge=H(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ue(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class G{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(te(i))try{i()}catch(r){n=r instanceof Ge?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{w(r)}catch(a){n=null!=n?n:[],a instanceof Ge?n=[...n,...a.errors]:n.push(a)}}if(n)throw new Ge(n)}}add(n){var e;if(n&&n!==this)if(this.closed)w(n);else{if(n instanceof G){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ue(e,n)}remove(n){const{_finalizers:e}=this;e&&ue(e,n),n instanceof G&&n._removeParent(this)}}G.EMPTY=(()=>{const t=new G;return t.closed=!0,t})();const j=G.EMPTY;function k(t){return t instanceof G||t&&"closed"in t&&te(t.remove)&&te(t.add)&&te(t.unsubscribe)}function w(t){te(t)?t():t.unsubscribe()}const m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},p={setTimeout(t,n,...e){const{delegate:i}=p;return(null==i?void 0:i.setTimeout)?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=p;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function x(t){p.setTimeout(()=>{const{onUnhandledError:n}=m;if(!n)throw t;n(t)})}function f(){}const v=I("C",void 0,void 0);function I(t,n,e){return{kind:t,value:n,error:e}}let Q=null;function Y(t){if(m.useDeprecatedSynchronousErrorHandling){const n=!Q;if(n&&(Q={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Q;if(Q=null,e)throw i}}else t()}class U extends G{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,k(n)&&n.add(this)):this.destination=pe}static create(n,e,i){return new J(n,e,i)}next(n){this.isStopped?re(function E(t){return I("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?re(function y(t){return I("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?re(v,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()}}}const A=Function.prototype.bind;function B(t,n){return A.call(t,n)}class K{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){F(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){F(i)}else F(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){F(e)}}}class J extends U{constructor(n,e,i){let o;if(super(),te(n)||!n)o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let r;this&&m.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&B(n.next,r),error:n.error&&B(n.error,r),complete:n.complete&&B(n.complete,r)}):o=n}this.destination=new K(o)}}function F(t){m.useDeprecatedSynchronousErrorHandling?function T(t){m.useDeprecatedSynchronousErrorHandling&&Q&&(Q.errorThrown=!0,Q.error=t)}(t):x(t)}function re(t,n){const{onStoppedNotification:e}=m;e&&p.setTimeout(()=>e(t,n))}const pe={closed:!0,next:f,error:function q(t){throw t},complete:f},ge="function"==typeof Symbol&&Symbol.observable||"@@observable";function me(t){return t}let Se=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function Fe(t){return t&&t instanceof U||function nt(t){return t&&te(t.next)&&te(t.error)&&te(t.complete)}(t)&&k(t)}(e)?e:new J(e,i,o);return Y(()=>{const{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Xe(i))((o,r)=>{const a=new J({next:s=>{try{e(s)}catch(l){r(l),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[ge](){return this}pipe(...e){return function Ue(t){return 0===t.length?me:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}(e)(this)}toPromise(e){return new(e=Xe(e))((i,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>i(r))})}}return t.create=n=>new t(n),t})();function Xe(t){var n;return null!==(n=null!=t?t:m.Promise)&&void 0!==n?n:Promise}const ht=H(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let xe=(()=>{class t extends Se{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new ke(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new ht}next(e){Y(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Y(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Y(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{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(null===(e=this.observers)||void 0===e?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){const{hasError:i,isStopped:o,observers:r}=this;return i||o?j:(this.currentObservers=null,r.push(e),new G(()=>{this.currentObservers=null,ue(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new Se;return e.source=this,e}}return t.create=(n,e)=>new ke(n,e),t})();class ke extends xe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:j}}function Pe(t){return te(null==t?void 0:t.lift)}function Le(t){return n=>{if(Pe(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 Be(t,n,e,i,o){return new st(t,n,e,i,o)}class st extends U{constructor(n,e,i,o,r,a){super(n),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=o?function(s){try{o(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()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function be(t,n){return Le((e,i)=>{let o=0;e.subscribe(Be(i,r=>{i.next(t.call(n,r,o++))}))})}var $e=function(t,n){return($e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])})(t,n)};function pt(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}$e(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var ye=function(){return ye=Object.assign||function(n){for(var e,i=1,o=arguments.length;i0&&r[r.length-1])&&(6===d[0]||2===d[0])){e=0;continue}if(3===d[0]&&(!r||d[1]>r[0]&&d[1]1||s(D,L)})})}function s(D,L){try{!function l(D){D.value instanceof Bn?Promise.resolve(D.value.v).then(d,g):O(r[0][2],D)}(i[D](L))}catch(W){O(r[0][3],W)}}function d(D){s("next",D)}function g(D){s("throw",D)}function O(D,L){D(L),r.shift(),r.length&&s(r[0][0],r[0][1])}}function Wn(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Ga(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)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.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(a){return new Promise(function(s,l){!function o(r,a,s,l){Promise.resolve(l).then(function(d){r({value:d,done:s})},a)}(s,l,(a=t[r](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const ig=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function n0(t){return te(null==t?void 0:t.then)}function o0(t){return te(t[ge])}function og(t){return Symbol.asyncIterator&&te(null==t?void 0:t[Symbol.asyncIterator])}function r0(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const a0=function vx(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ch(t){return te(null==t?void 0:t[a0])}function s0(t){return jr(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Bn(e.read());if(o)return yield Bn(void 0);yield yield Bn(i)}}finally{e.releaseLock()}})}function yh(t){return te(null==t?void 0:t.getReader)}function Qi(t){if(t instanceof Se)return t;if(null!=t){if(o0(t))return function Cx(t){return new Se(n=>{const e=t[ge]();if(te(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(ig(t))return function yx(t){return new Se(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,x)})}(t);if(og(t))return l0(t);if(Ch(t))return function wx(t){return new Se(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(yh(t))return function Mx(t){return l0(s0(t))}(t)}throw r0(t)}function l0(t){return new Se(n=>{(function Ox(t,n){var e,i,o,r;return _n(this,void 0,void 0,function*(){try{for(e=Wn(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function $a(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function ro(t,n,e=1/0){return te(n)?ro((i,o)=>be((r,a)=>n(i,r,o,a))(Qi(t(i,o))),e):("number"==typeof n&&(e=n),Le((i,o)=>function Px(t,n,e,i,o,r,a,s){const l=[];let d=0,g=0,O=!1;const D=()=>{O&&!l.length&&!d&&n.complete()},L=ee=>d{r&&n.next(ee),d++;let he=!1;Qi(e(ee,g++)).subscribe(Be(n,ae=>{null==o||o(ae),r?L(ae):n.next(ae)},()=>{he=!0},void 0,()=>{if(he)try{for(d--;l.length&&dW(ae)):W(ae)}D()}catch(ae){n.error(ae)}}))};return t.subscribe(Be(n,L,()=>{O=!0,D()})),()=>{null==s||s()}}(i,o,t,e)))}function kd(t=1/0){return ro(me,t)}const Wr=new Se(t=>t.complete());function Sd(t){return t&&te(t.schedule)}function rg(t){return t[t.length-1]}function Dl(t){return te(rg(t))?t.pop():void 0}function Dd(t){return Sd(rg(t))?t.pop():void 0}function xh(t,n=0){return Le((e,i)=>{e.subscribe(Be(i,o=>$a(i,t,()=>i.next(o),n),()=>$a(i,t,()=>i.complete(),n),o=>$a(i,t,()=>i.error(o),n)))})}function ag(t,n=0){return Le((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function u0(t,n){if(!t)throw new Error("Iterable cannot be null");return new Se(e=>{$a(e,n,()=>{const i=t[Symbol.asyncIterator]();$a(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Yi(t,n){return n?function h0(t,n){if(null!=t){if(o0(t))return function c0(t,n){return Qi(t).pipe(ag(n),xh(n))}(t,n);if(ig(t))return function Sx(t,n){return new Se(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(n0(t))return function d0(t,n){return Qi(t).pipe(ag(n),xh(n))}(t,n);if(og(t))return u0(t,n);if(Ch(t))return function Dx(t,n){return new Se(e=>{let i;return $a(e,n,()=>{i=t[a0](),$a(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(a){return void e.error(a)}r?e.complete():e.next(o)},0,!0)}),()=>te(null==i?void 0:i.return)&&i.return()})}(t,n);if(yh(t))return function Ex(t,n){return u0(s0(t),n)}(t,n)}throw r0(t)}(t,n):Qi(t)}function Io(...t){const n=Dd(t),e=function kx(t,n){return"number"==typeof rg(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Qi(i[0]):kd(e)(Yi(i,n)):Wr}function Ed(t={}){const{connector:n=(()=>new xe),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,l,d=0,g=!1,O=!1;const D=()=>{null==s||s.unsubscribe(),s=void 0},L=()=>{D(),a=l=void 0,g=O=!1},W=()=>{const ee=a;L(),null==ee||ee.unsubscribe()};return Le((ee,he)=>{d++,!O&&!g&&D();const ae=l=null!=l?l:n();he.add(()=>{d--,0===d&&!O&&!g&&(s=sg(W,o))}),ae.subscribe(he),!a&&d>0&&(a=new J({next:ce=>ae.next(ce),error:ce=>{O=!0,D(),s=sg(L,e,ce),ae.error(ce)},complete:()=>{g=!0,D(),s=sg(L,i),ae.complete()}}),Qi(ee).subscribe(a))})(r)}}function sg(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new J({next:()=>{i.unsubscribe(),t()}});return Qi(n(...e)).subscribe(i)}function pi(t){for(let n in t)if(t[n]===pi)return n;throw Error("Could not find renamed property on target object.")}function fc(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function ii(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ii).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function lg(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const p0=pi({__forward_ref__:pi});function yn(t){return t.__forward_ref__=yn,t.toString=function(){return ii(this())},t}function pn(t){return f0(t)?t():t}function f0(t){return"function"==typeof t&&t.hasOwnProperty(p0)&&t.__forward_ref__===yn}class wt extends Error{constructor(n,e){super(function Td(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function Kt(t){return"string"==typeof t?t:null==t?"":String(t)}function wo(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Kt(t)}function Fd(t,n){const e=n?` in ${n}`:"";throw new wt(-201,`No provider for ${wo(t)} found${e}`)}function Gr(t,n){null==t&&function ci(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Te(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function lt(t){return{providers:t.providers||[],imports:t.imports||[]}}function cg(t){return _0(t,ao)||_0(t,gc)}function _0(t,n){return t.hasOwnProperty(n)?t[n]:null}function v0(t){return t&&(t.hasOwnProperty(wh)||t.hasOwnProperty(C0))?t[wh]:null}const ao=pi({\u0275prov:pi}),wh=pi({\u0275inj:pi}),gc=pi({ngInjectableDef:pi}),C0=pi({ngInjectorDef:pi});var en=(()=>((en=en||{})[en.Default=0]="Default",en[en.Host=1]="Host",en[en.Self=2]="Self",en[en.SkipSelf=4]="SkipSelf",en[en.Optional=8]="Optional",en))();let Sr;function xs(t){const n=Sr;return Sr=t,n}function dg(t,n,e){const i=cg(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&en.Optional?null:void 0!==n?n:void Fd(ii(t),"Injector")}function ws(t){return{toString:t}.toString()}var la=(()=>((la=la||{})[la.OnPush=0]="OnPush",la[la.Default=1]="Default",la))(),Wi=(()=>{return(t=Wi||(Wi={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Wi;var t})();const Vx="undefined"!=typeof globalThis&&globalThis,x0="undefined"!=typeof window&&window,tl="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,oi=Vx||"undefined"!=typeof global&&global||x0||tl,nl={},vi=[],mc=pi({\u0275cmp:pi}),hg=pi({\u0275dir:pi}),pg=pi({\u0275pipe:pi}),w0=pi({\u0275mod:pi}),qa=pi({\u0275fac:pi}),il=pi({__NG_ELEMENT_ID__:pi});let _c=0;function qe(t){return ws(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===la.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||vi,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Wi.Emulated,id:"c",styles:t.styles||vi,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,r=t.features,a=t.pipes;return i.id+=_c++,i.inputs=Ph(t.inputs,e),i.outputs=Ph(t.outputs),r&&r.forEach(s=>s(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(fg):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map(Mh):null,i})}function Id(t,n,e){const i=t.\u0275cmp;i.directiveDefs=()=>n.map(fg),i.pipeDefs=()=>e.map(Mh)}function fg(t){return Mo(t)||function so(t){return t[hg]||null}(t)}function Mh(t){return function Ms(t){return t[pg]||null}(t)}const Oh={};function ct(t){return ws(()=>{const n={type:t.type,bootstrap:t.bootstrap||vi,declarations:t.declarations||vi,imports:t.imports||vi,exports:t.exports||vi,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Oh[t.id]=t.type),n})}function Ph(t,n){if(null==t)return nl;const e={};for(const i in t)if(t.hasOwnProperty(i)){let o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,n&&(n[o]=r)}return e}const je=qe;function Ro(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Mo(t){return t[mc]||null}function qo(t,n){const e=t[w0]||null;if(!e&&!0===n)throw new Error(`Type ${ii(t)} does not have '\u0275mod' property.`);return e}function Ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function vn(t){return Array.isArray(t)&&!0===t[1]}function Ji(t){return 0!=(8&t.flags)}function ri(t){return 2==(2&t.flags)}function Cc(t){return 1==(1&t.flags)}function Da(t){return null!==t.template}function da(t){return 0!=(512&t[2])}function $r(t,n){return t.hasOwnProperty(qa)?t[qa]:null}class Eh{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function fn(){return M0}function M0(t){return t.type.prototype.ngOnChanges&&(t.setInput=Th),Kx}function Kx(){const t=Fh(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===nl)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function Th(t,n,e,i){const o=Fh(t)||function Qx(t,n){return t[Hd]=n}(t,{previous:nl,current:null}),r=o.current||(o.current={}),a=o.previous,s=this.declaredInputs[e],l=a[s];r[s]=new Eh(l&&l.currentValue,n,a===nl),t[i]=n}fn.ngInherit=!0;const Hd="__ngSimpleChanges__";function Fh(t){return t[Hd]||null}let Pg;function Rl(){return void 0!==Pg?Pg:"undefined"!=typeof document?document:void 0}function Ci(t){return!!t.listen}const xc={createRenderer:(t,n)=>Rl()};function Hi(t){for(;Array.isArray(t);)t=t[0];return t}function Rh(t,n){return Hi(n[t])}function qr(t,n){return Hi(n[t.index])}function kg(t,n){return t.data[n]}function Ps(t,n){return t[n]}function Lo(t,n){const e=n[t];return Ht(e)?e:e[0]}function Sg(t){return 4==(4&t[2])}function oe(t){return 128==(128&t[2])}function Ea(t,n){return null==n?null:t[n]}function Kr(t){t[18]=0}function Tn(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const dn={lFrame:F0(null),bindingsEnabled:!0};function k0(){return dn.bindingsEnabled}function it(){return dn.lFrame.lView}function qn(){return dn.lFrame.tView}function fe(t){return dn.lFrame.contextLView=t,t[8]}function fo(){let t=S0();for(;null!==t&&64===t.type;)t=t.parent;return t}function S0(){return dn.lFrame.currentTNode}function Oo(t,n){const e=dn.lFrame;e.currentTNode=t,e.isParent=n}function Dg(){return dn.lFrame.isParent}function Eg(){dn.lFrame.isParent=!1}function ur(){const t=dn.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function As(){return dn.lFrame.bindingIndex}function Oc(){return dn.lFrame.bindingIndex++}function ks(t){const n=dn.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function rw(t,n){const e=dn.lFrame;e.bindingIndex=e.bindingRootIndex=t,Bh(n)}function Bh(t){dn.lFrame.currentDirectiveIndex=t}function Tg(t){const n=dn.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function T0(){return dn.lFrame.currentQueryIndex}function jd(t){dn.lFrame.currentQueryIndex=t}function Wd(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Gd(t,n,e){if(e&en.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&en.Host||(o=Wd(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;n=o,t=r}const i=dn.lFrame=Fg();return i.currentTNode=n,i.lView=t,!0}function Lh(t){const n=Fg(),e=t[1];dn.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Fg(){const t=dn.lFrame,n=null===t?null:t.child;return null===n?F0(t):n}function F0(t){const 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 null!==t&&(t.child=n),n}function Qa(){const t=dn.lFrame;return dn.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Nh=Qa;function Ya(){const t=Qa();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 Yo(){return dn.lFrame.selectedIndex}function Ss(t){dn.lFrame.selectedIndex=t}function yi(){const t=dn.lFrame;return kg(t.tView,t.selectedIndex)}function hr(){dn.lFrame.currentNamespace="svg"}function lo(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[18]+=65536),(s>11>16&&(3&t[2])===n){t[2]+=2048;try{r.call(s)}finally{}}}else try{r.call(s)}finally{}}class Ac{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Kd(t,n,e){const i=Ci(t);let o=0;for(;on){a=r-1;break}}}for(;r>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Ng=!0;function jh(t){const n=Ng;return Ng=t,n}let zg=0;function Sc(t,n){const e=Dc(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Gh(i.data,t),Gh(n,null),Gh(i.blueprint,null));const o=$h(t,n),r=t.injectorIndex;if(z0(o)){const a=rl(o),s=kc(o,n),l=s[1].data;for(let d=0;d<8;d++)n[r+d]=s[a+d]|l[a+d]}return n[r+8]=o,r}function Gh(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Dc(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function $h(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){const r=o[1],a=r.type;if(i=2===a?r.declTNode:1===a?o[6]:null,null===i)return-1;if(e++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Qd(t,n,e){!function U0(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(il)&&(i=e[il]),null==i&&(i=e[il]=zg++);const o=255&i;n.data[t+(o>>5)]|=1<=0?255&n:$0:n}(e);if("function"==typeof r){if(!Gd(n,t,i))return i&en.Host?W0(o,e,i):Hg(n,e,i,o);try{const a=r(i);if(null!=a||i&en.Optional)return a;Fd(e)}finally{Nh()}}else if("number"==typeof r){let a=null,s=Dc(t,n),l=-1,d=i&en.Host?n[16][6]:null;for((-1===s||i&en.SkipSelf)&&(l=-1===s?$h(t,n):n[s+8],-1!==l&&K0(i,!1)?(a=n[1],s=rl(l),n=kc(l,n)):s=-1);-1!==s;){const g=n[1];if(q0(r,s,g.data)){const O=Vg(s,n,e,a,i,d);if(O!==qh)return O}l=n[s+8],-1!==l&&K0(i,n[1].data[s+8]===d)&&q0(r,s,n)?(a=g,s=rl(l),n=kc(l,n)):s=-1}}}return Hg(n,e,i,o)}const qh={};function $0(){return new Xa(fo(),it())}function Vg(t,n,e,i,o,r){const a=n[1],s=a.data[t+8],g=Kh(s,a,e,null==i?ri(s)&&Ng:i!=a&&0!=(3&s.type),o&en.Host&&r===s);return null!==g?Ll(n,a,g,s):qh}function Kh(t,n,e,i,o){const r=t.providerIndexes,a=n.data,s=1048575&r,l=t.directiveStart,g=r>>20,D=o?s+g:t.directiveEnd;for(let L=i?s:s+g;L=l&&W.type===e)return L}if(o){const L=a[l];if(L&&Da(L)&&L.type===e)return l}return null}function Ll(t,n,e,i){let o=t[e];const r=n.data;if(function pr(t){return t instanceof Ac}(o)){const a=o;a.resolving&&function g0(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new wt(-200,`Circular dependency in DI detected for ${t}${e}`)}(wo(r[e]));const s=jh(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?xs(a.injectImpl):null;Gd(t,i,en.Default);try{o=t[e]=a.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function B0(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const a=M0(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,a)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,o),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&xs(l),jh(s),a.resolving=!1,Nh()}}return o}function q0(t,n,e){return!!(e[n+(t>>5)]&1<{const n=t.prototype.constructor,e=n[qa]||Ug(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[qa]||Ug(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Ug(t){return f0(t)?()=>{const n=Ug(pn(t));return n&&n()}:$r(t)}function ga(t){return function j0(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o{const i=Yh(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const a=new o(...r);return s.annotation=a,s;function s(l,d,g){const O=l.hasOwnProperty(Ec)?l[Ec]:Object.defineProperty(l,Ec,{value:[]})[Ec];for(;O.length<=g;)O.push(null);return(O[g]=O[g]||[]).push(a),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function Qr(t,n,e,i){return ws(()=>{const o=Yh(n);function r(...a){if(this instanceof r)return o.apply(this,a),this;const s=new r(...a);return function l(d,g){const O=d.constructor,D=O.hasOwnProperty(Ds)?O[Ds]:Object.defineProperty(O,Ds,{value:{}})[Ds];D[g]=D.hasOwnProperty(g)&&D[g]||[],D[g].unshift(s),i&&i(d,g,...a)}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Ze{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Te({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Q0=new Ze("AnalyzeForEntryComponents");function _a(t,n){void 0===n&&(n=t);for(let e=0;eArray.isArray(e)?Ja(e,n):n(e))}function Wg(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Yd(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Xd(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function Fr(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function sl(t,n){const e=zl(t,n);if(e>=0)return t[1|e]}function zl(t,n){return function nv(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),a=t[r<n?o=r:i=r+1}return~(o<({token:t})),-1),fr=eu(Nl("Optional"),8),Bt=eu(Nl("SkipSelf"),4);var mr=(()=>((mr=mr||{})[mr.Important=1]="Important",mr[mr.DashCase=2]="DashCase",mr))();const hv="__ngContext__";function er(t,n){t[hv]=n}function rp(t){const n=function Hc(t){return t[hv]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function Rs(t,n){return undefined(t,n)}function ou(t){const n=t[3];return vn(n)?n[3]:n}function rm(t){return _v(t[13])}function am(t){return _v(t[4])}function _v(t){for(;null!==t&&!vn(t);)t=t[4];return t}function Vc(t,n,e,i,o){if(null!=i){let r,a=!1;vn(i)?r=i:Ht(i)&&(a=!0,i=i[0]);const s=Hi(i);0===t&&null!==e?null==o?Ov(n,e,s):Ul(n,e,s,o||null,!0):1===t&&null!==e?Ul(n,e,s,o||null,!0):2===t?function pm(t,n,e){const i=cp(t,n);i&&function kw(t,n,e,i){Ci(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=r&&function Ew(t,n,e,i,o){const r=e[7];r!==Hi(e)&&Vc(n,t,i,r,o);for(let s=10;s0&&(t[e-1][4]=i[4]);const r=Yd(t,10+n);!function vv(t,n){ru(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const a=r[19];null!==a&&a.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function wv(t,n){if(!(256&n[2])){const e=n[11];Ci(e)&&e.destroyNode&&ru(t,n,e,3,null,null),function Mw(t){let n=t[13];if(!n)return cm(t[1],t);for(;n;){let e=null;if(Ht(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Ht(n)&&cm(n[1],n),n=n[3];null===n&&(n=t),Ht(n)&&cm(n[1],n),e=n&&n[4]}n=e}}(n)}}function cm(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function Aw(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[o=d]():i[o=-d].unsubscribe(),r+=2}else{const a=i[o=e[r+1]];e[r].call(a)}if(null!==i){for(let r=o+1;rt,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return pp}())||void 0===n?void 0:n.createHTML(t))||t}function bm(){if(void 0===fp&&(fp=null,oi.trustedTypes))try{fp=oi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return fp}function Tv(t){var n;return(null===(n=bm())||void 0===n?void 0:n.createHTML(t))||t}function Iv(t){var n;return(null===(n=bm())||void 0===n?void 0:n.createScriptURL(t))||t}class Wl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Bw extends Wl{getTypeName(){return"HTML"}}class Rv extends Wl{getTypeName(){return"Style"}}class Lw extends Wl{getTypeName(){return"Script"}}class gp extends Wl{getTypeName(){return"URL"}}class Nw extends Wl{getTypeName(){return"ResourceURL"}}function Xr(t){return t instanceof Wl?t.changingThisBreaksApplicationSecurity:t}function es(t,n){const e=Bv(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function Bv(t){return t instanceof Wl&&t.getTypeName()||null}class Ww{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(jl(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Gw{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=jl(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=jl(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let o=e.length-1;0Uc(n.trim())).join(", ")}function ts(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function au(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Nv=ts("area,br,col,hr,img,wbr"),zv=ts("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),su=ts("rp,rt"),Cm=au(Nv,au(zv,ts("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")),au(su,ts("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")),au(su,zv)),ym=ts("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xm=ts("srcset"),Hv=au(ym,xm,ts("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ts("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")),Qw=ts("script,style,template");class Yw{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;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)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Cm.hasOwnProperty(e))return this.sanitizedSomething=!0,!Qw.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();Cm.hasOwnProperty(e)&&!Nv.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(wm(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const mp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xw=/([^\#-~ |!])/g;function wm(t){return t.replace(/&/g,"&").replace(mp,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Xw,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let lu;function _p(t,n){let e=null;try{lu=lu||function Lv(t){const n=new Gw(t);return function $w(){try{return!!(new window.DOMParser).parseFromString(jl(""),"text/html")}catch(t){return!1}}()?new Ww(n):n}(t);let i=n?String(n):"";e=lu.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=lu.getInertBodyElement(i)}while(i!==r);return jl((new Yw).sanitizeChildren(bp(e)||e))}finally{if(e){const i=bp(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function bp(t){return"content"in t&&function Vv(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Zn=(()=>((Zn=Zn||{})[Zn.NONE=0]="NONE",Zn[Zn.HTML=1]="HTML",Zn[Zn.STYLE=2]="STYLE",Zn[Zn.SCRIPT=3]="SCRIPT",Zn[Zn.URL=4]="URL",Zn[Zn.RESOURCE_URL=5]="RESOURCE_URL",Zn))();function Qt(t){const n=cu();return n?Tv(n.sanitize(Zn.HTML,t)||""):es(t,"HTML")?Tv(Xr(t)):_p(Rl(),Kt(t))}function gn(t){const n=cu();return n?n.sanitize(Zn.URL,t)||"":es(t,"URL")?Xr(t):Uc(Kt(t))}function Mm(t){const n=cu();if(n)return Iv(n.sanitize(Zn.RESOURCE_URL,t)||"");if(es(t,"ResourceURL"))return Iv(Xr(t));throw new wt(904,"")}function cu(){const t=it();return t&&t[12]}function Am(t){return t.ngOriginalError}function rM(t,...n){t.error(...n)}class Bs{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function oM(t){return t&&t.ngErrorLogger||rM}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Am(n);for(;e&&Am(e);)e=Am(e);return e||null}}const Gl=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(oi))();function jt(t){return t.ownerDocument.defaultView}function ll(t){return t.ownerDocument}function ns(t){return t instanceof Function?t():t}function jv(t,n,e){let i=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const r=n.length;if(o+r===i||t.charCodeAt(o+r)<=32)return o}e=o+1}}const yp="ng-template";function uM(t,n,e){let i=0;for(;ir?"":o[O+1].toLowerCase();const L=8&i?D:null;if(L&&-1!==jv(L,d,0)||2&i&&d!==D){if(Xn(i))return!1;a=!0}}}}else{if(!a&&!Xn(i)&&!Xn(l))return!1;if(a&&Xn(l))continue;a=!1,i=l|1&i}}return Xn(i)||a}function Xn(t){return 0==(1&t)}function $i(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&i?o+="."+a:4&i&&(o+=" "+a);else""!==o&&!Xn(a)&&(n+=Gv(r,o),o=""),i=a,r=r||!Xn(i);e++}return""!==o&&(n+=Gv(r,o)),n}const an={};function h(t){Sm(qn(),it(),Yo()+t,!1)}function Sm(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&Pc(n,r,e)}else{const r=t.preOrderHooks;null!==r&&$d(n,r,0,e)}Ss(e)}function tr(t,n){return t<<17|n<<2}function nr(t){return t>>17&32767}function Dm(t){return 2|t}function Ls(t){return(131068&t)>>2}function Em(t,n){return-131069&t|n<<2}function Fa(t){return 1|t}function r1(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i20&&Sm(t,n,20,!1),e(i,o)}finally{Ss(r)}}function s1(t,n,e){if(Ji(n)){const o=n.directiveEnd;for(let r=n.directiveStart;r0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=l&&s.push(l),s.push(i,o,a)}}function Gm(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function m1(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function $m(t,n,e){if(e){if(n.exportAs)for(let i=0;i0&&Qm(e)}}function Qm(t){for(let i=rm(t);null!==i;i=am(i))for(let o=10;o0&&Qm(r)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Qm(o)}}function UM(t,n){const e=Lo(n,t),i=e[1];(function jM(t,n){for(let e=n.length;ePromise.resolve(null))();function y1(t){return t[7]||(t[7]=[])}function x1(t){return t.cleanup||(t.cleanup=[])}function w1(t,n,e){return(null===t||Da(t))&&(e=function wc(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[n.index])),e[11]}function M1(t,n){const e=t[9],i=e?e.get(Bs,null):null;i&&i.handleError(n)}function O1(t,n,e,i,o){for(let r=0;rthis.processProvider(s,n,e)),Ja([n],s=>this.processInjectorType(s,[],r)),this.records.set(Zm,we(void 0,this));const a=this.records.get(e_);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof n?null:ii(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=Hl,i=en.Default){this.assertNotDestroyed();const o=Za(this),r=xs(void 0);try{if(!(i&en.SkipSelf)){let s=this.records.get(n);if(void 0===s){const l=function wn(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ze}(n)&&cg(n);s=l&&this.injectableDefInScope(l)?we(z(n),gu):null,this.records.set(n,s)}if(null!=s)return this.hydrate(n,s)}return(i&en.Self?A1():this.parent).get(n,e=i&en.Optional&&e===Hl?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Jh]=a[Jh]||[]).unshift(ii(n)),o)throw a;return function Qg(t,n,e,i){const o=t[Jh];throw n[ep]&&o.unshift(n[ep]),t.message=function Yg(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=ii(n);if(Array.isArray(n))o=n.map(ii).join(" -> ");else if("object"==typeof n){let r=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];r.push(a+":"+("string"==typeof s?JSON.stringify(s):ii(s)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(Zh,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[Jh]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{xs(r),Za(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,o)=>n.push(ii(o))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new wt(205,!1)}processInjectorType(n,e,i){if(!(n=pn(n)))return!1;let o=v0(n);const r=null==o&&n.ngModule||void 0,a=void 0===r?n:r,s=-1!==i.indexOf(a);if(void 0!==r&&(o=v0(r)),null==o)return!1;if(null!=o.imports&&!s){let g;i.push(a);try{Ja(o.imports,O=>{this.processInjectorType(O,e,i)&&(void 0===g&&(g=[]),g.push(O))})}finally{}if(void 0!==g)for(let O=0;Othis.processProvider(W,D,L||vi))}}this.injectorDefTypes.add(a);const l=$r(a)||(()=>new a);this.records.set(a,we(l,gu));const d=o.providers;if(null!=d&&!s){const g=n;Ja(d,O=>this.processProvider(O,g,d))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let o=at(n=pn(n))?n:pn(n&&n.provide);const r=function le(t,n,e){return De(t)?we(void 0,t.useValue):we(ve(t),gu)}(n);if(at(n)||!0!==n.multi)this.records.get(o);else{let a=this.records.get(o);a||(a=we(void 0,gu,!0),a.factory=()=>Kg(a.multi),this.records.set(o,a)),o=n,a.multi.push(n)}this.records.set(o,r)}hydrate(n,e){return e.value===gu&&(e.value=KM,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Gt(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=pn(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function z(t){const n=cg(t),e=null!==n?n.factory:$r(t);if(null!==e)return e;if(t instanceof Ze)throw new wt(204,!1);if(t instanceof Function)return function X(t){const n=t.length;if(n>0)throw Xd(n,"?"),new wt(204,!1);const e=function zx(t){const n=t&&(t[ao]||t[gc]);if(n){const e=function b0(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new wt(204,!1)}function ve(t,n,e){let i;if(at(t)){const o=pn(t);return $r(o)||z(o)}if(De(t))i=()=>pn(t.useValue);else if(function tt(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Kg(t.deps||[]));else if(function et(t){return!(!t||!t.useExisting)}(t))i=()=>de(pn(t.useExisting));else{const o=pn(t&&(t.useClass||t.provide));if(!function Ft(t){return!!t.deps}(t))return $r(o)||z(o);i=()=>new o(...Kg(t.deps))}return i}function we(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function De(t){return null!==t&&"object"==typeof t&&gw in t}function at(t){return"function"==typeof t}let bt=(()=>{class t{static create(e,i){var o;if(Array.isArray(e))return c({name:""},i,e,"");{const r=null!==(o=e.name)&&void 0!==o?o:"";return c({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=Hl,t.NULL=new P1,t.\u0275prov=Te({token:t,providedIn:"any",factory:()=>de(Zm)}),t.__NG_ELEMENT_ID__=-1,t})();function fH(t,n){lo(rp(t)[1],fo())}function St(t){let n=function iT(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let o;if(Da(t))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new wt(903,"");o=n.\u0275dir}if(o){if(e){i.push(o);const a=t;a.inputs=YM(t.inputs),a.declaredInputs=YM(t.declaredInputs),a.outputs=YM(t.outputs);const s=o.hostBindings;s&&bH(t,s);const l=o.viewQuery,d=o.contentQueries;if(l&&mH(t,l),d&&_H(t,d),fc(t.inputs,o.inputs),fc(t.declaredInputs,o.declaredInputs),fc(t.outputs,o.outputs),Da(o)&&o.data.animation){const g=t.data;g.animation=(g.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let a=0;a=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=ol(o.hostAttrs,e=ol(e,o.hostAttrs))}}(i)}function YM(t){return t===nl?{}:t===vi?[]:t}function mH(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function _H(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function bH(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}let S1=null;function Tp(){if(!S1){const t=oi.Symbol;if(t&&t.iterator)S1=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;es(Hi(Me[i.index])):i.index;if(Ci(e)){let Me=null;if(!s&&l&&(Me=function KH(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;rl?s[l]:null}"string"==typeof a&&(r+=2)}return null}(t,n,o,i.index)),null!==Me)(Me.__ngLastListenerFn__||Me).__ngNextListenerFn__=r,Me.__ngLastListenerFn__=r,L=!1;else{r=oO(i,n,O,r,!1);const Ke=e.listen(ae,o,r);D.push(r,Ke),g&&g.push(o,Ce,ce,ce+1)}}else r=oO(i,n,O,r,!0),ae.addEventListener(o,r,a),D.push(r),g&&g.push(o,Ce,ce,a)}else r=oO(i,n,O,r,!1);const W=i.outputs;let ee;if(L&&null!==W&&(ee=W[o])){const he=ee.length;if(he)for(let ae=0;ae0;)n=n[15],t--;return n}(t,dn.lFrame.contextLView))[8]}(t)}function QH(t,n){let e=null;const i=function hM(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let o=0;o=0}const Ho={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function RT(t){return t.substring(Ho.key,Ho.keyEnd)}function ZH(t){return t.substring(Ho.value,Ho.valueEnd)}function BT(t,n){const e=Ho.textEnd;return e===n?-1:(n=Ho.keyEnd=function nV(t,n,e){for(;n32;)n++;return n}(t,Ho.key=n,e),Gp(t,n,e))}function LT(t,n){const e=Ho.textEnd;let i=Ho.key=Gp(t,n,e);return e===i?-1:(i=Ho.keyEnd=function iV(t,n,e){let i;for(;n=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=zT(t,i,e),i=Ho.value=Gp(t,i,e),i=Ho.valueEnd=function oV(t,n,e){let i=-1,o=-1,r=-1,a=n,s=a;for(;a32&&(s=a),r=o,o=i,i=-33&l}return s}(t,i,e),zT(t,i,e))}function NT(t){Ho.key=0,Ho.keyEnd=0,Ho.value=0,Ho.valueEnd=0,Ho.textEnd=t.length}function Gp(t,n,e){for(;n=0;e=LT(n,e))jT(t,RT(n),ZH(n))}function $c(t){Us(Xo,hl,t,!0)}function hl(t,n){for(let e=function eV(t){return NT(t),BT(t,Gp(t,0,Ho.textEnd))}(n);e>=0;e=BT(n,e))Xo(t,RT(n),!0)}function Vs(t,n,e,i){const o=it(),r=qn(),a=ks(2);r.firstUpdatePass&&UT(r,t,a,i),n!==an&&Lr(o,a,n)&&WT(r,r.data[Yo()],o,o[11],t,o[a+1]=function hV(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=ii(Xr(t)))),t}(n,e),i,a)}function Us(t,n,e,i){const o=qn(),r=ks(2);o.firstUpdatePass&&UT(o,null,r,i);const a=it();if(e!==an&&Lr(a,r,e)){const s=o.data[Yo()];if($T(s,i)&&!VT(o,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=lg(l,e||"")),nO(o,s,a,e,i)}else!function uV(t,n,e,i,o,r,a,s){o===an&&(o=vi);let l=0,d=0,g=0=t.expandoStartIndex}function UT(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[Yo()],a=VT(t,e);$T(r,i)&&null===n&&!a&&(n=!1),n=function aV(t,n,e,i){const o=Tg(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=a_(e=rO(null,t,n,e,i),n.attrs,i),r=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==o)if(e=rO(o,t,n,e,i),null===r){let l=function sV(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Ls(i))return t[nr(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=rO(null,t,n,l[1],i),l=a_(l,n.attrs,i),function lV(t,n,e,i){t[nr(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function cV(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(d=!0)}else g=e;if(o)if(0!==l){const D=nr(t[s+1]);t[i+1]=tr(D,s),0!==D&&(t[D+1]=Em(t[D+1],i)),t[s+1]=function _M(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=tr(s,0),0!==s&&(t[s+1]=Em(t[s+1],i)),s=i;else t[i+1]=tr(l,0),0===s?s=i:t[l+1]=Em(t[l+1],i),l=i;d&&(t[i+1]=Dm(t[i+1])),IT(t,g,i,!0),IT(t,g,i,!1),function XH(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&zl(r,n)>=0&&(e[i+1]=Fa(e[i+1]))}(n,g,t,i,r),a=tr(s,l),r?n.classBindings=a:n.styleBindings=a}(o,r,n,e,a,i)}}function rO(t,n,e,i,o){let r=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=t[o],d=Array.isArray(l),g=d?l[1]:l,O=null===g;let D=e[o+1];D===an&&(D=O?vi:void 0);let L=O?sl(D,i):g===i?D:void 0;if(d&&!T1(L)&&(L=sl(l,i)),T1(L)&&(s=L,a))return s;const W=t[o+1];o=a?nr(W):Ls(W)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(s=sl(l,i))}return s}function T1(t){return void 0!==t}function $T(t,n){return 0!=(t.flags&(n?16:32))}function V(t,n=""){const e=it(),i=qn(),o=t+20,r=i.firstCreatePass?jc(i,o,1,n,null):i.data[o],a=e[o]=function sm(t,n){return Ci(t)?t.createText(n):t.createTextNode(n)}(e[11],n);up(i,e,a,r),Oo(r,!1)}function _e(t){return ze("",t,""),_e}function ze(t,n,e){const i=it(),o=Ip(i,t,n,e);return o!==an&&Ns(i,Yo(),o),ze}function Fi(t,n,e,i,o){const r=it(),a=function Rp(t,n,e,i,o,r){const s=mu(t,As(),e,o);return ks(2),s?n+Kt(e)+i+Kt(o)+r:an}(r,t,n,e,i,o);return a!==an&&Ns(r,Yo(),a),Fi}function aO(t,n,e,i,o,r,a){const s=it(),l=function Bp(t,n,e,i,o,r,a,s){const d=D1(t,As(),e,o,a);return ks(3),d?n+Kt(e)+i+Kt(o)+r+Kt(a)+s:an}(s,t,n,e,i,o,r,a);return l!==an&&Ns(s,Yo(),l),aO}function $p(t,n,e){Us(Xo,hl,Ip(it(),t,n,e),!0)}function as(t,n,e){const i=it();return Lr(i,Oc(),n)&&Zr(qn(),yi(),i,t,n,i[11],e,!0),as}function s_(t,n,e){const i=it();if(Lr(i,Oc(),n)){const r=qn(),a=yi();Zr(r,a,i,t,n,w1(Tg(r.data),a,i),e,!0)}return s_}const _u=void 0;var EV=["en",[["a","p"],["AM","PM"],_u],[["AM","PM"],_u,_u],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],_u,[["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"]],_u,[["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}",_u,"{1} 'at' {0}",_u],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function DV(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let qp={};function ea(t){const n=function FV(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=d3(n);if(e)return e;const i=n.split("-")[0];if(e=d3(i),e)return e;if("en"===i)return EV;throw new Error(`Missing locale data for the locale "${t}".`)}function d3(t){return t in qp||(qp[t]=oi.ng&&oi.ng.common&&oi.ng.common.locales&&oi.ng.common.locales[t]),qp[t]}var xt=(()=>((xt=xt||{})[xt.LocaleId=0]="LocaleId",xt[xt.DayPeriodsFormat=1]="DayPeriodsFormat",xt[xt.DayPeriodsStandalone=2]="DayPeriodsStandalone",xt[xt.DaysFormat=3]="DaysFormat",xt[xt.DaysStandalone=4]="DaysStandalone",xt[xt.MonthsFormat=5]="MonthsFormat",xt[xt.MonthsStandalone=6]="MonthsStandalone",xt[xt.Eras=7]="Eras",xt[xt.FirstDayOfWeek=8]="FirstDayOfWeek",xt[xt.WeekendRange=9]="WeekendRange",xt[xt.DateFormat=10]="DateFormat",xt[xt.TimeFormat=11]="TimeFormat",xt[xt.DateTimeFormat=12]="DateTimeFormat",xt[xt.NumberSymbols=13]="NumberSymbols",xt[xt.NumberFormats=14]="NumberFormats",xt[xt.CurrencyCode=15]="CurrencyCode",xt[xt.CurrencySymbol=16]="CurrencySymbol",xt[xt.CurrencyName=17]="CurrencyName",xt[xt.Currencies=18]="Currencies",xt[xt.Directionality=19]="Directionality",xt[xt.PluralCase=20]="PluralCase",xt[xt.ExtraData=21]="ExtraData",xt))();const F1="en-US";let u3=F1;function dO(t,n,e,i,o){if(t=pn(t),Array.isArray(t))for(let r=0;r>20;if(at(t)||!t.multi){const L=new Ac(l,o,S),W=hO(s,n,o?g:g+D,O);-1===W?(Qd(Sc(d,a),r,s),uO(r,t,n.length),n.push(s),d.directiveStart++,d.directiveEnd++,o&&(d.providerIndexes+=1048576),e.push(L),a.push(L)):(e[W]=L,a[W]=L)}else{const L=hO(s,n,g+D,O),W=hO(s,n,g,g+D),ee=L>=0&&e[L],he=W>=0&&e[W];if(o&&!he||!o&&!ee){Qd(Sc(d,a),r,s);const ae=function SU(t,n,e,i,o){const r=new Ac(t,e,S);return r.multi=[],r.index=n,r.componentProviders=0,R3(r,o,i&&!e),r}(o?kU:AU,e.length,o,i,l);!o&&he&&(e[W].providerFactory=ae),uO(r,t,n.length,0),n.push(s),d.directiveStart++,d.directiveEnd++,o&&(d.providerIndexes+=1048576),e.push(ae),a.push(ae)}else uO(r,t,L>-1?L:W,R3(e[o?W:L],l,!o&&i));!o&&i&&he&&e[W].componentProviders++}}}function uO(t,n,e,i){const o=at(n),r=function vt(t){return!!t.useClass}(n);if(o||r){const l=(r?pn(n.useClass):n).prototype.ngOnDestroy;if(l){const d=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const g=d.indexOf(e);-1===g?d.push(e,[i,l]):d[g+1].push(i,l)}else d.push(e,l)}}}function R3(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function hO(t,n,e,i){for(let o=e;o{e.providersResolver=(i,o)=>function PU(t,n,e){const i=qn();if(i.firstCreatePass){const o=Da(t);dO(e,i.data,i.blueprint,o,!0),dO(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}class B3{}class TU{resolveComponentFactory(n){throw function EU(t){const n=Error(`No component factory found for ${ii(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let js=(()=>{class t{}return t.NULL=new TU,t})();function FU(){return Qp(fo(),it())}function Qp(t,n){return new Ct(qr(t,n))}let Ct=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=FU,t})();function IU(t){return t instanceof Ct?t.nativeElement:t}class Yp{}let _r=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function BU(){const t=it(),e=Lo(fo().index,t);return function RU(t){return t[11]}(Ht(e)?e:t)}(),t})(),LU=(()=>{class t{}return t.\u0275prov=Te({token:t,providedIn:"root",factory:()=>null}),t})();class bu{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const N1=new bu("13.3.12"),fO={};function z1(t,n,e,i,o=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(Hi(r)),vn(r))for(let s=10;s-1&&(lm(n,i),Yd(e,i))}this._attachedToViewContainer=!1}wv(this._lView[1],this._lView)}onDestroy(n){u1(this._lView[1],this._lView,null,n)}markForCheck(){Sp(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Xm(t,n,e){const i=n[10];i.begin&&i.begin();try{Gc(t,n,t.template,e)}catch(o){throw M1(n,o),o}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new wt(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ww(t,n){ru(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new wt(902,"");this._appRef=n}}class NU extends h_{constructor(n){super(n),this._view=n}detectChanges(){Dp(this._view)}checkNoChanges(){}get context(){return null}}class N3 extends js{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Mo(n);return new gO(e,this.ngModule)}}function z3(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class gO extends B3{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function $v(t){return t.map(mM).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return z3(this.componentDef.inputs)}get outputs(){return z3(this.componentDef.outputs)}create(n,e,i,o){const r=(o=o||this.ngModule)?function HU(t,n){return{get:(e,i,o)=>{const r=t.get(e,fO,o);return r!==fO||i===fO?r:n.get(e,i,o)}}}(n,o.injector):n,a=r.get(Yp,xc),s=r.get(LU,null),l=a.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",g=i?function d1(t,n,e){if(Ci(t))return t.selectRootElement(n,e===Wi.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):lp(a.createRenderer(null,this.componentDef),d,function zU(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(d)),O=this.componentDef.onPush?576:528,D=function nT(t,n){return{components:[],scheduler:t||Gl,clean:GM,playerHandler:n||null,flags:0}}(),L=Ap(0,null,null,1,0,null,null,null,null,null),W=os(null,L,D,O,null,null,a,l,s,r);let ee,he;Lh(W);try{const ae=function eT(t,n,e,i,o,r){const a=e[1];e[20]=t;const l=jc(a,20,2,"#host",null),d=l.mergedAttrs=n.hostAttrs;null!==d&&(Ep(l,d,!0),null!==t&&(Kd(o,t,d),null!==l.classes&&gm(o,t,l.classes),null!==l.styles&&Ev(o,t,l.styles)));const g=i.createRenderer(t,n),O=os(e,l1(n),null,n.onPush?64:16,e[20],l,i,g,r||null,null);return a.firstCreatePass&&(Qd(Sc(l,e),a,n.type),m1(a,l),_1(l,e.length,1)),kp(e,O),e[20]=O}(g,this.componentDef,W,a,l);if(g)if(i)Kd(l,g,["ng-version",N1.full]);else{const{attrs:ce,classes:Ce}=function du(t){const n=[],e=[];let i=1,o=2;for(;i0&&gm(l,g,Ce.join(" "))}if(he=kg(L,20),void 0!==e){const ce=he.projection=[];for(let Ce=0;Cel(a,n)),n.contentQueries){const l=fo();n.contentQueries(1,a,l.directiveStart)}const s=fo();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Ss(s.index),f1(e[1],s,0,s.directiveStart,s.directiveEnd,n),Gm(n,a)),a}(ae,this.componentDef,W,D,[fH]),pu(L,W,null)}finally{Ya()}return new UU(this.componentType,ee,Qp(he,W),W,he)}}class UU extends class DU{}{constructor(n,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new NU(o),this.componentType=n}get injector(){return new Xa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class ql{}class H3{}const Xp=new Map;class j3 extends ql{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new N3(this);const i=qo(n);this._bootstrapComponents=ns(i.bootstrap),this._r3Injector=u(n,e,[{provide:ql,useValue:this},{provide:js,useValue:this.componentFactoryResolver}],ii(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=bt.THROW_IF_NOT_FOUND,i=en.Default){return n===bt||n===ql||n===Zm?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class mO extends H3{constructor(n){super(),this.moduleType=n,null!==qo(n)&&function WU(t){const n=new Set;!function e(i){const o=qo(i,!0),r=o.id;null!==r&&(function V3(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${ii(n)} vs ${ii(n.name)}`)}(r,Xp.get(r),i),Xp.set(r,i));const a=ns(o.imports);for(const s of a)n.has(s)||(n.add(s),e(s))}(t)}(n)}create(n){return new j3(this.moduleType,n)}}function Cn(t,n,e){const i=ur()+t,o=it();return o[i]===an?ul(o,i,e?n.call(e):n()):i_(o,i)}function dt(t,n,e,i){return G3(it(),ur(),t,n,e,i)}function Po(t,n,e,i,o){return $3(it(),ur(),t,n,e,i,o)}function Ba(t,n,e,i,o,r){return q3(it(),ur(),t,n,e,i,o,r)}function H1(t,n,e,i,o,r,a,s,l){const d=ur()+t,g=it(),O=rs(g,d,e,i,o,r);return mu(g,d+4,a,s)||O?ul(g,d+6,l?n.call(l,e,i,o,r,a,s):n(e,i,o,r,a,s)):i_(g,d+6)}function p_(t,n){const e=t[n];return e===an?void 0:e}function G3(t,n,e,i,o,r){const a=n+e;return Lr(t,a,o)?ul(t,a+1,r?i.call(r,o):i(o)):p_(t,a+1)}function $3(t,n,e,i,o,r,a){const s=n+e;return mu(t,s,o,r)?ul(t,s+2,a?i.call(a,o,r):i(o,r)):p_(t,s+2)}function q3(t,n,e,i,o,r,a,s){const l=n+e;return D1(t,l,o,r,a)?ul(t,l+3,s?i.call(s,o,r,a):i(o,r,a)):p_(t,l+3)}function K3(t,n,e,i,o,r,a,s,l){const d=n+e;return rs(t,d,o,r,a,s)?ul(t,d+4,l?i.call(l,o,r,a,s):i(o,r,a,s)):p_(t,d+4)}function Z(t,n){const e=qn();let i;const o=t+20;e.firstCreatePass?(i=function QU(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=$r(i.type)),a=xs(S);try{const s=jh(!1),l=r();return jh(s),function PH(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,it(),o,l),l}finally{xs(a)}}function ie(t,n,e){const i=t+20,o=it(),r=Ps(o,i);return f_(o,i)?G3(o,ur(),n,r.transform,e,r):r.transform(e)}function wi(t,n,e,i){const o=t+20,r=it(),a=Ps(r,o);return f_(r,o)?$3(r,ur(),n,a.transform,e,i,a):a.transform(e,i)}function Ca(t,n,e,i,o){const r=t+20,a=it(),s=Ps(a,r);return f_(a,r)?q3(a,ur(),n,s.transform,e,i,o,s):s.transform(e,i,o)}function f_(t,n){return t[1].data[n].pure}function _O(t){return n=>{setTimeout(t,void 0,n)}}const Ee=class XU extends xe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var o,r,a;let s=n,l=e||(()=>null),d=i;if(n&&"object"==typeof n){const O=n;s=null===(o=O.next)||void 0===o?void 0:o.bind(O),l=null===(r=O.error)||void 0===r?void 0:r.bind(O),d=null===(a=O.complete)||void 0===a?void 0:a.bind(O)}this.__isAsync&&(l=_O(l),s&&(s=_O(s)),d&&(d=_O(d)));const g=super.subscribe({next:s,error:l,complete:d});return n instanceof G&&n.add(g),g}};function JU(){return this._results[Tp()]()}class vu{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Tp(),i=vu.prototype;i[e]||(i[e]=JU)}get changes(){return this._changes||(this._changes=new Ee)}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)}forEach(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){const i=this;i.dirty=!1;const o=_a(n);(this._changesDetected=!function hw(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=tj,t})();const ZU=gi,ej=class extends ZU{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=os(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),pu(e,i,n),new h_(i)}};function tj(){return V1(fo(),it())}function V1(t,n){return 4&t.type?new ej(n,t,Qp(t,n)):null}let go=(()=>{class t{}return t.__NG_ELEMENT_ID__=nj,t})();function nj(){return Z3(fo(),it())}const ij=go,X3=class extends ij{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Qp(this._hostTNode,this._hostLView)}get injector(){return new Xa(this._hostTNode,this._hostLView)}get parentInjector(){const n=$h(this._hostTNode,this._hostLView);if(z0(n)){const e=kc(n,this._hostLView),i=rl(n);return new Xa(e[1].data[i+8],e)}return new Xa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=J3(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const o=n.createEmbeddedView(e||{});return this.insert(o,i),o}createComponent(n,e,i,o,r){const a=n&&!function Tc(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const O=e||{};s=O.index,i=O.injector,o=O.projectableNodes,r=O.ngModuleRef}const l=a?n:new gO(Mo(n)),d=i||this.parentInjector;if(!r&&null==l.ngModule){const D=(a?d:this.parentInjector).get(ql,null);D&&(r=D)}const g=l.create(d,o,void 0,r);return this.insert(g.hostView,s),g}insert(n,e){const i=n._lView,o=i[1];if(function Mc(t){return vn(t[3])}(i)){const g=this.indexOf(n);if(-1!==g)this.detach(g);else{const O=i[3],D=new X3(O,O[6],O[3]);D.detach(D.indexOf(n))}}const r=this._adjustIndex(e),a=this._lContainer;!function Ow(t,n,e,i){const o=10+i,r=e.length;i>0&&(e[o-1][4]=n),i0)i.push(a[s/2]);else{const d=r[s+1],g=n[-l];for(let O=10;O({bindingPropertyName:t}));function W1(...t){}const G1=new Ze("Application Initializer");let SO=(()=>{class t{constructor(e){this.appInits=e,this.resolve=W1,this.reject=W1,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:s,error:l})});e.push(a)}}Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(de(G1,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const m_=new Ze("AppId",{providedIn:"root",factory:function yF(){return`${DO()}${DO()}${DO()}`}});function DO(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const xF=new Ze("Platform Initializer"),ya=new Ze("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wF=new Ze("appBootstrapListener");let Sj=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Kl=new Ze("LocaleId",{providedIn:"root",factory:()=>Lc(Kl,en.Optional|en.SkipSelf)||function Dj(){return"undefined"!=typeof $localize&&$localize.locale||F1}()});class Tj{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let MF=(()=>{class t{compileModuleSync(e){return new mO(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=ns(qo(e).declarations).reduce((a,s)=>{const l=Mo(s);return l&&a.push(new gO(l)),a},[]);return new Tj(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ij=(()=>Promise.resolve(0))();function EO(t){"undefined"==typeof Zone?Ij.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Dt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ee(!1),this.onMicrotaskEmpty=new Ee(!1),this.onStable=new Ee(!1),this.onError=new Ee(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Rj(){let t=oi.requestAnimationFrame,n=oi.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Nj(t){const n=()=>{!function Lj(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(oi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,FO(t),t.isCheckStableRunning=!0,TO(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),FO(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,a,s)=>{try{return OF(t),e.invokeTask(o,r,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),PF(t)}},onInvoke:(e,i,o,r,a,s,l)=>{try{return OF(t),e.invoke(o,r,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),PF(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,FO(t),TO(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Dt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Dt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,n,Bj,W1,W1);try{return r.runTask(a,e,i)}finally{r.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Bj={};function TO(t){if(0==t._nesting&&!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 FO(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function OF(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function PF(t){t._nesting--,TO(t)}class zj{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ee,this.onMicrotaskEmpty=new Ee,this.onStable=new Ee,this.onError=new Ee}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,o){return n.apply(e,i)}}let IO=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Dt.assertNotInAngularZone(),EO(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())EO(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!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,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(de(Dt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),Hj=(()=>{class t{constructor(){this._applications=new Map,RO.addToWindow(this)}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 RO.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class Vj{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let RO=new Vj,Cu=null;const AF=new Ze("AllowMultipleToken"),kF=new Ze("PlatformOnDestroy");class SF{constructor(n,e){this.name=n,this.token=e}}function DF(t,n,e=[]){const i=`Platform: ${n}`,o=new Ze(i);return(r=[])=>{let a=BO();if(!a||a.injector.get(AF,!1)){const s=[...e,...r,{provide:o,useValue:!0}];t?t(s):function Gj(t){if(Cu&&!Cu.get(AF,!1))throw new wt(400,"");Cu=t;const n=t.get(EF),e=t.get(xF,null);e&&e.forEach(i=>i())}(function qj(t=[],n){return bt.create({name:n,providers:[{provide:e_,useValue:"platform"},{provide:kF,useValue:()=>Cu=null},...t]})}(s,i))}return function $j(t){const n=BO();if(!n)throw new wt(401,"");return n}()}}function BO(){var t;return null!==(t=null==Cu?void 0:Cu.get(EF))&&void 0!==t?t:null}let EF=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const s=function Kj(t,n){let e;return e="noop"===t?new zj:("zone.js"===t?void 0:t)||new Dt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Dt,useValue:s}];return s.run(()=>{const d=bt.create({providers:l,parent:this.injector,name:e.moduleType.name}),g=e.create(d),O=g.injector.get(Bs,null);if(!O)throw new wt(402,"");return s.runOutsideAngular(()=>{const D=s.onError.subscribe({next:L=>{O.handleError(L)}});g.onDestroy(()=>{LO(this._modules,g),D.unsubscribe()})}),function Qj(t,n,e){try{const i=e();return o_(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(O,s,()=>{const D=g.injector.get(SO);return D.runInitializers(),D.donePromise.then(()=>(function LV(t){Gr(t,"Expected localeId to be defined"),"string"==typeof t&&(u3=t.toLowerCase().replace(/_/g,"-"))}(g.injector.get(Kl,F1)||F1),this._moduleDoBootstrap(g),g))})})}bootstrapModule(e,i=[]){const o=TF({},i);return function jj(t,n,e){const i=new mO(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(__);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new wt(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new wt(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(kF,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(de(bt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function TF(t,n){return Array.isArray(n)?n.reduce(TF,t):Object.assign(Object.assign({},t),n)}let __=(()=>{class t{constructor(e,i,o,r){this._zone=e,this._injector=i,this._exceptionHandler=o,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Se(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),s=new Se(l=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{Dt.assertNotInAngularZone(),EO(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const g=this._zone.onUnstable.subscribe(()=>{Dt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{d.unsubscribe(),g.unsubscribe()}});this.isStable=Io(a,s.pipe(Ed()))}bootstrap(e,i){if(!this._initStatus.done)throw new wt(405,"");let o;o=e instanceof B3?e:this._injector.get(js).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const r=function Wj(t){return t.isBoundToModule}(o)?void 0:this._injector.get(ql),s=o.create(bt.NULL,[],i||o.selector,r),l=s.location.nativeElement,d=s.injector.get(IO,null),g=d&&s.injector.get(Hj);return d&&g&&g.registerApplication(l,d),s.onDestroy(()=>{this.detachView(s.hostView),LO(this.components,s),g&&g.unregisterApplication(l)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new wt(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;LO(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(wF,[]).concat(this._bootstrapListeners).forEach(o=>o(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(de(Dt),de(bt),de(Bs),de(SO))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function LO(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let IF=!0,RF=!1;function NO(){return RF=!0,IF}let Ln=(()=>{class t{}return t.__NG_ELEMENT_ID__=Jj,t})();function Jj(t){return function Zj(t,n,e){if(ri(t)&&!e){const i=Lo(t.index,n);return new h_(i,i)}return 47&t.type?new h_(n[16],n):null}(fo(),it(),16==(16&t))}class zF{constructor(){}supports(n){return n_(n)}create(n){return new rW(n)}}const oW=(t,n)=>n;class rW{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||oW}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const a=!i||e&&e.currentIndex{a=this._trackByFn(o,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;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,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new aW(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,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._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new HF),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new HF),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(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._nextIdentityChange=n,n}}class aW{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class sW{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(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;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class HF{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new sW,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function VF(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}const i=new cW(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class cW{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function jF(){return new K1([new zF])}let K1=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||jF()),deps:[[t,new Bt,new fr]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new wt(901,"")}}return t.\u0275prov=Te({token:t,providedIn:"root",factory:jF}),t})();function WF(){return new xu([new UF])}let xu=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||WF()),deps:[[t,new Bt,new fr]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new wt(901,"")}}return t.\u0275prov=Te({token:t,providedIn:"root",factory:WF}),t})();const hW=DF(null,"core",[]);let pW=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(de(__))},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})(),Q1=null;function Ws(){return Q1}const Nt=new Ze("DocumentToken");let wu=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:function(){return function _W(){return de(GF)}()},providedIn:"platform"}),t})();const bW=new Ze("Location Initialized");let GF=(()=>{class t extends wu{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ws().getBaseHref(this._doc)}onPopState(e){const i=Ws().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Ws().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,o){$F()?this._history.pushState(e,i,o):this.location.hash=o}replaceState(e,i,o){$F()?this._history.replaceState(e,i,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(de(Nt))},t.\u0275prov=Te({token:t,factory:function(){return function vW(){return new GF(de(Nt))}()},providedIn:"platform"}),t})();function $F(){return!!window.history.pushState}function jO(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function qF(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ql(t){return t&&"?"!==t[0]?"?"+t:t}let Mu=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:function(){return function CW(t){const n=de(Nt).location;return new KF(de(wu),n&&n.origin||"")}()},providedIn:"root"}),t})();const WO=new Ze("appBaseHref");let KF=(()=>{class t extends Mu{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}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 jO(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ql(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const a=this.prepareExternalUrl(o+Ql(r));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){const a=this.prepareExternalUrl(o+Ql(r));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(de(wu),de(WO,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),yW=(()=>{class t extends Mu{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=jO(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let a=this.prepareExternalUrl(o+Ql(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,r){let a=this.prepareExternalUrl(o+Ql(r));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(de(wu),de(WO,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),b_=(()=>{class t{constructor(e,i){this._subject=new Ee,this._urlChangeListeners=[],this._platformStrategy=e;const o=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=qF(QF(o)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ql(i))}normalize(e){return t.stripTrailingSlash(function wW(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,QF(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._platformStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ql(i)),o)}replaceState(e,i="",o=null){this._platformStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ql(i)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,o;null===(o=(i=this._platformStrategy).historyGo)||void 0===o||o.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}}return t.normalizeQueryParams=Ql,t.joinWithSlash=jO,t.stripTrailingSlash=qF,t.\u0275fac=function(e){return new(e||t)(de(Mu),de(wu))},t.\u0275prov=Te({token:t,factory:function(){return function xW(){return new b_(de(Mu),de(wu))}()},providedIn:"root"}),t})();function QF(t){return t.replace(/\/index.html$/,"")}var xa=(()=>((xa=xa||{})[xa.Decimal=0]="Decimal",xa[xa.Percent=1]="Percent",xa[xa.Currency=2]="Currency",xa[xa.Scientific=3]="Scientific",xa))(),mo=(()=>((mo=mo||{})[mo.Format=0]="Format",mo[mo.Standalone=1]="Standalone",mo))(),Gn=(()=>((Gn=Gn||{})[Gn.Narrow=0]="Narrow",Gn[Gn.Abbreviated=1]="Abbreviated",Gn[Gn.Wide=2]="Wide",Gn[Gn.Short=3]="Short",Gn))(),to=(()=>((to=to||{})[to.Short=0]="Short",to[to.Medium=1]="Medium",to[to.Long=2]="Long",to[to.Full=3]="Full",to))(),Yt=(()=>((Yt=Yt||{})[Yt.Decimal=0]="Decimal",Yt[Yt.Group=1]="Group",Yt[Yt.List=2]="List",Yt[Yt.PercentSign=3]="PercentSign",Yt[Yt.PlusSign=4]="PlusSign",Yt[Yt.MinusSign=5]="MinusSign",Yt[Yt.Exponential=6]="Exponential",Yt[Yt.SuperscriptingExponent=7]="SuperscriptingExponent",Yt[Yt.PerMille=8]="PerMille",Yt[Yt.Infinity=9]="Infinity",Yt[Yt.NaN=10]="NaN",Yt[Yt.TimeSeparator=11]="TimeSeparator",Yt[Yt.CurrencyDecimal=12]="CurrencyDecimal",Yt[Yt.CurrencyGroup=13]="CurrencyGroup",Yt))();function Y1(t,n){return cs(ea(t)[xt.DateFormat],n)}function X1(t,n){return cs(ea(t)[xt.TimeFormat],n)}function J1(t,n){return cs(ea(t)[xt.DateTimeFormat],n)}function ls(t,n){const e=ea(t),i=e[xt.NumberSymbols][n];if(void 0===i){if(n===Yt.CurrencyDecimal)return e[xt.NumberSymbols][Yt.Decimal];if(n===Yt.CurrencyGroup)return e[xt.NumberSymbols][Yt.Group]}return i}function XF(t){if(!t[xt.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[xt.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function cs(t,n){for(let e=n;e>-1;e--)if(void 0!==t[e])return t[e];throw new Error("Locale data API: locale data undefined")}function $O(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const BW=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,v_={},LW=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Vo=(()=>((Vo=Vo||{})[Vo.Short=0]="Short",Vo[Vo.ShortGMT=1]="ShortGMT",Vo[Vo.Long=2]="Long",Vo[Vo.Extended=3]="Extended",Vo))(),nn=(()=>((nn=nn||{})[nn.FullYear=0]="FullYear",nn[nn.Month=1]="Month",nn[nn.Date=2]="Date",nn[nn.Hours=3]="Hours",nn[nn.Minutes=4]="Minutes",nn[nn.Seconds=5]="Seconds",nn[nn.FractionalSeconds=6]="FractionalSeconds",nn[nn.Day=7]="Day",nn))(),Dn=(()=>((Dn=Dn||{})[Dn.DayPeriods=0]="DayPeriods",Dn[Dn.Days=1]="Days",Dn[Dn.Months=2]="Months",Dn[Dn.Eras=3]="Eras",Dn))();function JF(t,n,e,i){let o=function $W(t){if(tI(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,r=1,a=1]=t.split("-").map(s=>+s);return Z1(o,r-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(BW))return function qW(t){const n=new Date(0);let e=0,i=0;const o=t[8]?n.setUTCFullYear:n.setFullYear,r=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),d=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(n,a,s,l,d),n}(i)}const n=new Date(t);if(!tI(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Yl(e,n)||n;let s,a=[];for(;n;){if(s=LW.exec(n),!s){a.push(n);break}{a=a.concat(s.slice(1));const g=a.pop();if(!g)break;n=g}}let l=o.getTimezoneOffset();i&&(l=eI(i,l),o=function GW(t,n,e){const i=e?-1:1,o=t.getTimezoneOffset();return function WW(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(eI(n,o)-o))}(o,i,!0));let d="";return a.forEach(g=>{const O=function jW(t){if(KO[t])return KO[t];let n;switch(t){case"G":case"GG":case"GGG":n=Ii(Dn.Eras,Gn.Abbreviated);break;case"GGGG":n=Ii(Dn.Eras,Gn.Wide);break;case"GGGGG":n=Ii(Dn.Eras,Gn.Narrow);break;case"y":n=ko(nn.FullYear,1,0,!1,!0);break;case"yy":n=ko(nn.FullYear,2,0,!0,!0);break;case"yyy":n=ko(nn.FullYear,3,0,!1,!0);break;case"yyyy":n=ko(nn.FullYear,4,0,!1,!0);break;case"Y":n=iC(1);break;case"YY":n=iC(2,!0);break;case"YYY":n=iC(3);break;case"YYYY":n=iC(4);break;case"M":case"L":n=ko(nn.Month,1,1);break;case"MM":case"LL":n=ko(nn.Month,2,1);break;case"MMM":n=Ii(Dn.Months,Gn.Abbreviated);break;case"MMMM":n=Ii(Dn.Months,Gn.Wide);break;case"MMMMM":n=Ii(Dn.Months,Gn.Narrow);break;case"LLL":n=Ii(Dn.Months,Gn.Abbreviated,mo.Standalone);break;case"LLLL":n=Ii(Dn.Months,Gn.Wide,mo.Standalone);break;case"LLLLL":n=Ii(Dn.Months,Gn.Narrow,mo.Standalone);break;case"w":n=qO(1);break;case"ww":n=qO(2);break;case"W":n=qO(1,!0);break;case"d":n=ko(nn.Date,1);break;case"dd":n=ko(nn.Date,2);break;case"c":case"cc":n=ko(nn.Day,1);break;case"ccc":n=Ii(Dn.Days,Gn.Abbreviated,mo.Standalone);break;case"cccc":n=Ii(Dn.Days,Gn.Wide,mo.Standalone);break;case"ccccc":n=Ii(Dn.Days,Gn.Narrow,mo.Standalone);break;case"cccccc":n=Ii(Dn.Days,Gn.Short,mo.Standalone);break;case"E":case"EE":case"EEE":n=Ii(Dn.Days,Gn.Abbreviated);break;case"EEEE":n=Ii(Dn.Days,Gn.Wide);break;case"EEEEE":n=Ii(Dn.Days,Gn.Narrow);break;case"EEEEEE":n=Ii(Dn.Days,Gn.Short);break;case"a":case"aa":case"aaa":n=Ii(Dn.DayPeriods,Gn.Abbreviated);break;case"aaaa":n=Ii(Dn.DayPeriods,Gn.Wide);break;case"aaaaa":n=Ii(Dn.DayPeriods,Gn.Narrow);break;case"b":case"bb":case"bbb":n=Ii(Dn.DayPeriods,Gn.Abbreviated,mo.Standalone,!0);break;case"bbbb":n=Ii(Dn.DayPeriods,Gn.Wide,mo.Standalone,!0);break;case"bbbbb":n=Ii(Dn.DayPeriods,Gn.Narrow,mo.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ii(Dn.DayPeriods,Gn.Abbreviated,mo.Format,!0);break;case"BBBB":n=Ii(Dn.DayPeriods,Gn.Wide,mo.Format,!0);break;case"BBBBB":n=Ii(Dn.DayPeriods,Gn.Narrow,mo.Format,!0);break;case"h":n=ko(nn.Hours,1,-12);break;case"hh":n=ko(nn.Hours,2,-12);break;case"H":n=ko(nn.Hours,1);break;case"HH":n=ko(nn.Hours,2);break;case"m":n=ko(nn.Minutes,1);break;case"mm":n=ko(nn.Minutes,2);break;case"s":n=ko(nn.Seconds,1);break;case"ss":n=ko(nn.Seconds,2);break;case"S":n=ko(nn.FractionalSeconds,1);break;case"SS":n=ko(nn.FractionalSeconds,2);break;case"SSS":n=ko(nn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=tC(Vo.Short);break;case"ZZZZZ":n=tC(Vo.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=tC(Vo.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=tC(Vo.Long);break;default:return null}return KO[t]=n,n}(g);d+=O?O(o,e,l):"''"===g?"'":g.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function Z1(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Yl(t,n){const e=function MW(t){return ea(t)[xt.LocaleId]}(t);if(v_[e]=v_[e]||{},v_[e][n])return v_[e][n];let i="";switch(n){case"shortDate":i=Y1(t,to.Short);break;case"mediumDate":i=Y1(t,to.Medium);break;case"longDate":i=Y1(t,to.Long);break;case"fullDate":i=Y1(t,to.Full);break;case"shortTime":i=X1(t,to.Short);break;case"mediumTime":i=X1(t,to.Medium);break;case"longTime":i=X1(t,to.Long);break;case"fullTime":i=X1(t,to.Full);break;case"short":const o=Yl(t,"shortTime"),r=Yl(t,"shortDate");i=eC(J1(t,to.Short),[o,r]);break;case"medium":const a=Yl(t,"mediumTime"),s=Yl(t,"mediumDate");i=eC(J1(t,to.Medium),[a,s]);break;case"long":const l=Yl(t,"longTime"),d=Yl(t,"longDate");i=eC(J1(t,to.Long),[l,d]);break;case"full":const g=Yl(t,"fullTime"),O=Yl(t,"fullDate");i=eC(J1(t,to.Full),[g,O])}return i&&(v_[e][n]=i),i}function eC(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Gs(t,n,e="-",i,o){let r="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,r=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===nn.Hours)0===s&&-12===e&&(s=12);else if(t===nn.FractionalSeconds)return function NW(t,n){return Gs(t,3).substr(0,n)}(s,n);const l=ls(a,Yt.MinusSign);return Gs(s,n,l,i,o)}}function Ii(t,n,e=mo.Format,i=!1){return function(o,r){return function HW(t,n,e,i,o,r){switch(e){case Dn.Months:return function AW(t,n,e){const i=ea(t),r=cs([i[xt.MonthsFormat],i[xt.MonthsStandalone]],n);return cs(r,e)}(n,o,i)[t.getMonth()];case Dn.Days:return function PW(t,n,e){const i=ea(t),r=cs([i[xt.DaysFormat],i[xt.DaysStandalone]],n);return cs(r,e)}(n,o,i)[t.getDay()];case Dn.DayPeriods:const a=t.getHours(),s=t.getMinutes();if(r){const d=function EW(t){const n=ea(t);return XF(n),(n[xt.ExtraData][2]||[]).map(i=>"string"==typeof i?$O(i):[$O(i[0]),$O(i[1])])}(n),g=function TW(t,n,e){const i=ea(t);XF(i);const r=cs([i[xt.ExtraData][0],i[xt.ExtraData][1]],n)||[];return cs(r,e)||[]}(n,o,i),O=d.findIndex(D=>{if(Array.isArray(D)){const[L,W]=D,ee=a>=L.hours&&s>=L.minutes,he=a0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Vo.Short:return(o>=0?"+":"")+Gs(a,2,r)+Gs(Math.abs(o%60),2,r);case Vo.ShortGMT:return"GMT"+(o>=0?"+":"")+Gs(a,1,r);case Vo.Long:return"GMT"+(o>=0?"+":"")+Gs(a,2,r)+":"+Gs(Math.abs(o%60),2,r);case Vo.Extended:return 0===i?"Z":(o>=0?"+":"")+Gs(a,2,r)+":"+Gs(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function ZF(t){return Z1(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function qO(t,n=!1){return function(e,i){let o;if(n){const r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();o=1+Math.floor((a+r)/7)}else{const r=ZF(e),a=function UW(t){const n=Z1(t,0,1).getDay();return Z1(t,0,1+(n<=4?4:11)-n)}(r.getFullYear()),s=r.getTime()-a.getTime();o=1+Math.round(s/6048e5)}return Gs(o,t,ls(i,Yt.MinusSign))}}function iC(t,n=!1){return function(e,i){return Gs(ZF(e).getFullYear(),t,ls(i,Yt.MinusSign),n)}}const KO={};function eI(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function tI(t){return t instanceof Date&&!isNaN(t.valueOf())}const KW=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function JO(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function rI(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}let mi=(()=>{class t{constructor(e,i,o,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(n_(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ii(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return t.\u0275fac=function(e){return new(e||t)(S(K1),S(xu),S(Ct),S(_r))},t.\u0275dir=je({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class sG{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ui=(()=>{class t{constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new sG(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===r?void 0:r);else if(null!==r){const s=i.get(r);i.move(s,a),aI(s,o)}});for(let o=0,r=i.length;o{aI(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(S(go),S(gi),S(K1))},t.\u0275dir=je({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function aI(t,n){t.context.$implicit=n.item}let gt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new lG,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){sI("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){sI("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(S(go),S(gi))},t.\u0275dir=je({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class lG{constructor(){this.$implicit=null,this.ngIf=null}}function sI(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ii(n)}'.`)}class eP{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Zp=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new eP(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(S(go),S(gi),S(Zp,9))},t.\u0275dir=je({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),lI=(()=>{class t{constructor(e,i,o){o._addDefault(new eP(e,i))}}return t.\u0275fac=function(e){return new(e||t)(S(go),S(gi),S(Zp,9))},t.\u0275dir=je({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),pl=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split(".");null!=(i=null!=i&&r?`${i}${r}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,o,i):this._renderer.removeStyle(this._ngEl.nativeElement,o)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(xu),S(_r))},t.\u0275dir=je({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Kc=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(S(go))},t.\u0275dir=je({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[fn]}),t})();function $s(t,n){return new wt(2100,"")}class dG{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class uG{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const hG=new uG,pG=new dG;let dI=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(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(o_(e))return hG;if(wT(e))return pG;throw $s()}_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._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(S(Ln,16))},t.\u0275pipe=Ro({name:"async",type:t,pure:!1}),t})(),uI=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw $s();return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ro({name:"lowercase",type:t,pure:!0}),t})();const _G=new Ze("DATE_PIPE_DEFAULT_TIMEZONE");let aC=(()=>{class t{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",o,r){var a;if(null==e||""===e||e!=e)return null;try{return JF(e,i,r||this.locale,null!==(a=null!=o?o:this.defaultTimezone)&&void 0!==a?a:void 0)}catch(s){throw $s()}}}return t.\u0275fac=function(e){return new(e||t)(S(Kl,16),S(_G,24))},t.\u0275pipe=Ro({name:"date",type:t,pure:!0}),t})(),y_=(()=>{class t{constructor(e){this._locale=e}transform(e,i,o){if(!function tP(t){return!(null==t||""===t||t!=t)}(e))return null;o=o||this._locale;try{return function eG(t,n,e){return function YO(t,n,e,i,o,r,a=!1){let s="",l=!1;if(isFinite(t)){let d=function nG(t){let i,o,r,a,s,n=Math.abs(t)+"",e=0;for((o=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(o<0&&(o=r),o+=+n.slice(r+1),n=n.substring(0,r)):o<0&&(o=n.length),r=0;"0"===n.charAt(r);r++);if(r===(s=n.length))i=[0],o=1;else{for(s--;"0"===n.charAt(s);)s--;for(o-=r,i=[],a=0;r<=s;r++,a++)i[a]=Number(n.charAt(r))}return o>22&&(i=i.splice(0,21),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}(t);a&&(d=function tG(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(d));let g=n.minInt,O=n.minFrac,D=n.maxFrac;if(r){const ce=r.match(KW);if(null===ce)throw new Error(`${r} is not a valid digit info`);const Ce=ce[1],Me=ce[3],Ke=ce[5];null!=Ce&&(g=JO(Ce)),null!=Me&&(O=JO(Me)),null!=Ke?D=JO(Ke):null!=Me&&O>D&&(D=O)}!function iG(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,o=i.length-t.integerLen;const r=Math.min(Math.max(n,o),e);let a=r+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let O=a;O=5)if(a-1<0){for(let O=0;O>a;O--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;o=d?W.pop():l=!1),D>=10?1:0},0);g&&(i.unshift(g),t.integerLen++)}(d,O,D);let L=d.digits,W=d.integerLen;const ee=d.exponent;let he=[];for(l=L.every(ce=>!ce);W0?he=L.splice(W,L.length):(he=L,L=[0]);const ae=[];for(L.length>=n.lgSize&&ae.unshift(L.splice(-n.lgSize,L.length).join(""));L.length>n.gSize;)ae.unshift(L.splice(-n.gSize,L.length).join(""));L.length&&ae.unshift(L.join("")),s=ae.join(ls(e,i)),he.length&&(s+=ls(e,o)+he.join("")),ee&&(s+=ls(e,Yt.Exponential)+"+"+ee)}else s=ls(e,Yt.Infinity);return s=t<0&&!l?n.negPre+s+n.negSuf:n.posPre+s+n.posSuf,s}(t,function XO(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),o=i[0],r=i[1],a=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],s=a[0],l=a[1]||"";e.posPre=s.substr(0,s.indexOf("#"));for(let g=0;g{class t{transform(e,i,o){if(null==e)return null;if(!this.supports(e))throw $s();return e.slice(i,o)}supports(e){return"string"==typeof e||Array.isArray(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ro({name:"slice",type:t,pure:!1}),t})(),sn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})();const pI="browser";function na(t){return t===pI}let DG=(()=>{class t{}return t.\u0275prov=Te({token:t,providedIn:"root",factory:()=>new EG(de(Nt),window)}),t})();class EG{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function TG(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=fI(this.window.history)||fI(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function fI(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class gI{}class iP extends class FG extends class mW{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function gW(t){Q1||(Q1=t)}(new iP)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).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"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function IG(){return w_=w_||document.querySelector("base"),w_?w_.getAttribute("href"):null}();return null==e?null:function RG(t){sC=sC||document.createElement("a"),sC.setAttribute("href",t);const n=sC.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){w_=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return rI(document.cookie,n)}}let sC,w_=null;const mI=new Ze("TRANSITION_ID"),LG=[{provide:G1,useFactory:function BG(t,n,e){return()=>{e.get(SO).donePromise.then(()=>{const i=Ws(),o=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r{const r=n.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},oi.getAllAngularTestabilities=()=>n.getAllTestabilities(),oi.getAllAngularRootElements=()=>n.getAllRootElements(),oi.frameworkStabilizers||(oi.frameworkStabilizers=[]),oi.frameworkStabilizers.push(i=>{const o=oi.getAllAngularTestabilities();let r=o.length,a=!1;const s=function(l){a=a||l,r--,0==r&&i(a)};o.forEach(function(l){l.whenStable(s)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const o=n.getTestability(e);return null!=o?o:i?Ws().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let NG=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();const lC=new Ze("EventManagerPlugins");let cC=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}addGlobalEventListener(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const o=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),M_=(()=>{class t extends bI{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,o){e.forEach(r=>{const a=this._doc.createElement("style");a.textContent=r,o.push(i.appendChild(a))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(vI),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(e,o,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(vI))}}return t.\u0275fac=function(e){return new(e||t)(de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();function vI(t){Ws().remove(t)}const rP={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},aP=/%COMP%/g;function dC(t,n,e){for(let i=0;i{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let uC=(()=>{class t{constructor(e,i,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new sP(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Wi.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new WG(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o}case 1:case Wi.ShadowDom:return new GG(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const o=dC(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(de(cC),de(M_),de(m_))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();class sP{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(rP[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=rP[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=rP[i];o?n.removeAttributeNS(o,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,o){o&(mr.DashCase|mr.Important)?n.style.setProperty(e,i,o&mr.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&mr.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,xI(i)):this.eventManager.addEventListener(n,e,xI(i))}}class WG extends sP{constructor(n,e,i,o){super(n),this.component=i;const r=dC(o+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function VG(t){return"_ngcontent-%COMP%".replace(aP,t)}(o+"-"+i.id),this.hostAttr=function UG(t){return"_nghost-%COMP%".replace(aP,t)}(o+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class GG extends sP{constructor(n,e,i,o){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=dC(o.id,o.styles,[]);for(let a=0;a{class t extends _I{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}}return t.\u0275fac=function(e){return new(e||t)(de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();const MI=["alt","control","meta","shift"],KG={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},OI={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},QG={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let YG=(()=>{class t extends _I{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ws().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let a="";if(MI.forEach(l=>{const d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=r,0!=i.length||0===r.length)return null;const s={};return s.domEventName=o,s.fullKey=a,s}static getEventFullKey(e){let i="",o=function XG(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&OI.hasOwnProperty(n)&&(n=OI[n]))}return KG[n]||n}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),MI.forEach(r=>{r!=o&&QG[r](e)&&(i+=r+".")}),i+=o,i}static eventCallback(e,i,o){return r=>{t.getEventFullKey(r)===e&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();const t$=DF(hW,"browser",[{provide:ya,useValue:pI},{provide:xF,useValue:function JG(){iP.makeCurrent(),oP.init()},multi:!0},{provide:Nt,useFactory:function e$(){return function Ag(t){Pg=t}(document),document},deps:[]}]),n$=[{provide:e_,useValue:"root"},{provide:Bs,useFactory:function ZG(){return new Bs},deps:[]},{provide:lC,useClass:$G,multi:!0,deps:[Nt,Dt,ya]},{provide:lC,useClass:YG,multi:!0,deps:[Nt]},{provide:uC,useClass:uC,deps:[cC,M_,m_]},{provide:Yp,useExisting:uC},{provide:bI,useExisting:M_},{provide:M_,useClass:M_,deps:[Nt]},{provide:IO,useClass:IO,deps:[Dt]},{provide:cC,useClass:cC,deps:[lC,Dt]},{provide:gI,useClass:NG,deps:[]}];let lP=(()=>{class t{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:m_,useValue:e.appId},{provide:mI,useExisting:m_},LG]}}}return t.\u0275fac=function(e){return new(e||t)(de(t,12))},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({providers:n$,imports:[sn,pW]}),t})(),fl=(()=>{class t{constructor(e){this._doc=e,this._dom=Ws()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((o,r)=>(r&&o.push(this._getOrCreateElement(r,i)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(o=>i.setAttribute(this._getMetaKeyMap(o),e[o])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(o=>i.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return o$[e]||e}}return t.\u0275fac=function(e){return new(e||t)(de(Nt))},t.\u0275prov=Te({token:t,factory:function(e){let i=null;return i=e?new e:function i$(){return new fl(de(Nt))}(),i},providedIn:"root"}),t})();const o$={httpEquiv:"http-equiv"};let Qc=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(de(Nt))},t.\u0275prov=Te({token:t,factory:function(e){let i=null;return i=e?new e:function r$(){return new Qc(de(Nt))}(),i},providedIn:"root"}),t})();"undefined"!=typeof window&&window;let O_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:function(e){let i=null;return i=e?new(e||t):de(kI),i},providedIn:"root"}),t})(),kI=(()=>{class t extends O_{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Zn.NONE:return i;case Zn.HTML:return es(i,"HTML")?Xr(i):_p(this._doc,String(i)).toString();case Zn.STYLE:return es(i,"Style")?Xr(i):i;case Zn.SCRIPT:if(es(i,"Script"))return Xr(i);throw new Error("unsafe value used in a script context");case Zn.URL:return Bv(i),es(i,"URL")?Xr(i):Uc(String(i));case Zn.RESOURCE_URL:if(es(i,"ResourceURL"))return Xr(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function zw(t){return new Bw(t)}(e)}bypassSecurityTrustStyle(e){return function Hw(t){return new Rv(t)}(e)}bypassSecurityTrustScript(e){return function Vw(t){return new Lw(t)}(e)}bypassSecurityTrustUrl(e){return function Uw(t){return new gp(t)}(e)}bypassSecurityTrustResourceUrl(e){return function jw(t){return new Nw(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Nt))},t.\u0275prov=Te({token:t,factory:function(e){let i=null;return i=e?new e:function p$(t){return new kI(t.get(Nt))}(de(bt)),i},providedIn:"root"}),t})();const SI=Object.prototype.toString;function DI(t){switch(SI.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ou(t,Error)}}function ef(t,n){return SI.call(t)===`[object ${n}]`}function dP(t){return ef(t,"ErrorEvent")}function EI(t){return ef(t,"DOMError")}function gl(t){return ef(t,"String")}function TI(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function tf(t){return ef(t,"Object")}function hC(t){return"undefined"!=typeof Event&&Ou(t,Event)}function uP(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function Ou(t,n){try{return t instanceof n}catch(e){return!1}}var no=Wt(732);const pC=(0,no.Rf)();function hP(t,n={}){try{let e=t;const i=5,o=[];let r=0,a=0;const s=" > ",l=s.length;let d;const g=Array.isArray(n)?n:n.keyAttrs,O=!Array.isArray(n)&&n.maxStringLength||80;for(;e&&r++1&&a+o.length*l+d.length>=O));)o.push(d),a+=d.length,e=e.parentNode;return o.reverse().join(s)}catch(e){return""}}function C$(t,n){const e=t,i=[];let o,r,a,s,l;if(!e||!e.tagName)return"";i.push(e.tagName.toLowerCase());const d=n&&n.length?n.filter(O=>e.getAttribute(O)).map(O=>[O,e.getAttribute(O)]):null;if(d&&d.length)d.forEach(O=>{i.push(`[${O[0]}="${O[1]}"]`)});else if(e.id&&i.push(`#${e.id}`),o=e.className,o&&gl(o))for(r=o.split(/\s+/),l=0;lfunction x$(t,n,e=!1){return!!gl(t)&&(function m$(t){return ef(t,"RegExp")}(n)?n.test(t):!!gl(n)&&(e?t===n:t.includes(n)))}(t,i,e))}function br(t,n,e){if(!(n in t))return;const i=t[n],o=e(i);if("function"==typeof o)try{II(o,i)}catch(r){}t[n]=o}function pP(t,n,e){Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}function II(t,n){t.prototype=n.prototype=n.prototype||{},pP(t,"__sentry_original__",n)}function fP(t){return t.__sentry_original__}function RI(t){if(DI(t))return ut({message:t.message,name:t.name,stack:t.stack},LI(t));if(hC(t)){const n=ut({type:t.type,target:BI(t.target),currentTarget:BI(t.currentTarget)},LI(t));return"undefined"!=typeof CustomEvent&&Ou(t,CustomEvent)&&(n.detail=t.detail),n}return t}function BI(t){try{return function g$(t){return"undefined"!=typeof Element&&Ou(t,Element)}(t)?hP(t):Object.prototype.toString.call(t)}catch(n){return""}}function LI(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function gC(t){return gP(t,new Map)}function gP(t,n){if(tf(t)){const e=n.get(t);if(void 0!==e)return e;const i={};n.set(t,i);for(const o of Object.keys(t))void 0!==t[o]&&(i[o]=gP(t[o],n));return i}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const i=[];return n.set(t,i),t.forEach(o=>{i.push(gP(o,n))}),i}return t}function Xc(){const t=no.n2,n=t.crypto||t.msCrypto;if(n&&n.randomUUID)return n.randomUUID().replace(/-/g,"");const e=n&&n.getRandomValues?()=>n.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,i=>(i^(15&e())>>i/4).toString(16))}function NI(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Jc(t){const{message:n,event_id:e}=t;if(n)return n;const i=NI(t);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||e||"":e||""}function mP(t,n,e){const i=t.exception=t.exception||{},o=i.values=i.values||[],r=o[0]=o[0]||{};r.value||(r.value=n||""),r.type||(r.type=e||"Error")}function rf(t,n){const e=NI(t);if(!e)return;const o=e.mechanism;if(e.mechanism=ut(ut(ut({},{type:"generic",handled:!0}),o),n),n&&"data"in n){const r=ut(ut({},o&&o.data),n.data);e.mechanism.data=r}}function zI(t){if(t&&t.__sentry_captured__)return!0;try{pP(t,"__sentry_captured__",!0)}catch(n){}return!1}function HI(t){return Array.isArray(t)?t:[t]}var af=Wt(967);const mC=["debug","info","warn","error","log","assert","trace"];function VI(t){if(!("console"in no.n2))return t();const n=no.n2.console,e={};mC.forEach(i=>{const o=n[i]&&n[i].__sentry_original__;i in n&&o&&(e[i]=n[i],n[i]=o)});try{return t()}finally{Object.keys(e).forEach(i=>{n[i]=e[i]})}}function UI(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?mC.forEach(e=>{n[e]=(...i)=>{t&&VI(()=>{no.n2.console[e](`Sentry Logger [${e}]:`,...i)})}}):mC.forEach(e=>{n[e]=()=>{}}),n}let ln;ln="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,no.YO)("logger",UI):UI();const _P="production";var Xl;function Pu(t){return new La(n=>{n(t)})}function _C(t){return new La((n,e)=>{e(t)})}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(Xl||(Xl={}));class La{constructor(n){La.prototype.__init.call(this),La.prototype.__init2.call(this),La.prototype.__init3.call(this),La.prototype.__init4.call(this),this._state=Xl.PENDING,this._handlers=[];try{n(this._resolve,this._reject)}catch(e){this._reject(e)}}then(n,e){return new La((i,o)=>{this._handlers.push([!1,r=>{if(n)try{i(n(r))}catch(a){o(a)}else i(r)},r=>{if(e)try{i(e(r))}catch(a){o(a)}else o(r)}]),this._executeHandlers()})}catch(n){return this.then(e=>e,n)}finally(n){return new La((e,i)=>{let o,r;return this.then(a=>{r=!1,o=a,n&&n()},a=>{r=!0,o=a,n&&n()}).then(()=>{r?i(o):e(o)})})}__init(){this._resolve=n=>{this._setResult(Xl.RESOLVED,n)}}__init2(){this._reject=n=>{this._setResult(Xl.REJECTED,n)}}__init3(){this._setResult=(n,e)=>{if(this._state===Xl.PENDING){if(uP(e))return void e.then(this._resolve,this._reject);this._state=n,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Xl.PENDING)return;const n=this._handlers.slice();this._handlers=[],n.forEach(e=>{e[0]||(this._state===Xl.RESOLVED&&e[1](this._value),this._state===Xl.REJECTED&&e[2](this._value),e[0]=!0)})}}}function sf(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),!t.did&&!n.did&&(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||(0,af.ph)(),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:Xc()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}class Au{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=GI()}static clone(n){const e=new Au;return n&&(e._breadcrumbs=[...n._breadcrumbs],e._tags=ut({},n._tags),e._extra=ut({},n._extra),e._contexts=ut({},n._contexts),e._user=n._user,e._level=n._level,e._span=n._span,e._session=n._session,e._transactionName=n._transactionName,e._fingerprint=n._fingerprint,e._eventProcessors=[...n._eventProcessors],e._requestSession=n._requestSession,e._attachments=[...n._attachments],e._sdkProcessingMetadata=ut({},n._sdkProcessingMetadata),e._propagationContext=ut({},n._propagationContext)),e}addScopeListener(n){this._scopeListeners.push(n)}addEventProcessor(n){return this._eventProcessors.push(n),this}setUser(n){return this._user=n||{},this._session&&sf(this._session,{user:n}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(n){return this._requestSession=n,this}setTags(n){return this._tags=ut(ut({},this._tags),n),this._notifyScopeListeners(),this}setTag(n,e){return this._tags=po(ut({},this._tags),{[n]:e}),this._notifyScopeListeners(),this}setExtras(n){return this._extra=ut(ut({},this._extra),n),this._notifyScopeListeners(),this}setExtra(n,e){return this._extra=po(ut({},this._extra),{[n]:e}),this._notifyScopeListeners(),this}setFingerprint(n){return this._fingerprint=n,this._notifyScopeListeners(),this}setLevel(n){return this._level=n,this._notifyScopeListeners(),this}setTransactionName(n){return this._transactionName=n,this._notifyScopeListeners(),this}setContext(n,e){return null===e?delete this._contexts[n]:this._contexts[n]=e,this._notifyScopeListeners(),this}setSpan(n){return this._span=n,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const n=this.getSpan();return n&&n.transaction}setSession(n){return n?this._session=n:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(n){if(!n)return this;if("function"==typeof n){const e=n(this);return e instanceof Au?e:this}return n instanceof Au?(this._tags=ut(ut({},this._tags),n._tags),this._extra=ut(ut({},this._extra),n._extra),this._contexts=ut(ut({},this._contexts),n._contexts),n._user&&Object.keys(n._user).length&&(this._user=n._user),n._level&&(this._level=n._level),n._fingerprint&&(this._fingerprint=n._fingerprint),n._requestSession&&(this._requestSession=n._requestSession),n._propagationContext&&(this._propagationContext=n._propagationContext)):tf(n)&&(this._tags=ut(ut({},this._tags),n.tags),this._extra=ut(ut({},this._extra),n.extra),this._contexts=ut(ut({},this._contexts),n.contexts),n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession),n.propagationContext&&(this._propagationContext=n.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=GI(),this}addBreadcrumb(n,e){const i="number"==typeof e?e:100;if(i<=0)return this;const o=ut({timestamp:(0,af.yW)()},n);return this._breadcrumbs=[...this._breadcrumbs,o].slice(-i),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(n){return this._attachments.push(n),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(n,e={}){if(this._extra&&Object.keys(this._extra).length&&(n.extra=ut(ut({},this._extra),n.extra)),this._tags&&Object.keys(this._tags).length&&(n.tags=ut(ut({},this._tags),n.tags)),this._user&&Object.keys(this._user).length&&(n.user=ut(ut({},this._user),n.user)),this._contexts&&Object.keys(this._contexts).length&&(n.contexts=ut(ut({},this._contexts),n.contexts)),this._level&&(n.level=this._level),this._transactionName&&(n.transaction=this._transactionName),this._span){n.contexts=ut({trace:this._span.getTraceContext()},n.contexts);const i=this._span.transaction;if(i){n.sdkProcessingMetadata=ut({dynamicSamplingContext:i.getDynamicSamplingContext()},n.sdkProcessingMetadata);const o=i.name;o&&(n.tags=ut({transaction:o},n.tags))}}return this._applyFingerprint(n),n.breadcrumbs=[...n.breadcrumbs||[],...this._breadcrumbs],n.breadcrumbs=n.breadcrumbs.length>0?n.breadcrumbs:void 0,n.sdkProcessingMetadata=po(ut(ut({},n.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),this._notifyEventProcessors([...jI(),...this._eventProcessors],n,e)}setSDKProcessingMetadata(n){return this._sdkProcessingMetadata=ut(ut({},this._sdkProcessingMetadata),n),this}setPropagationContext(n){return this._propagationContext=n,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(n,e,i,o=0){return new La((r,a)=>{const s=n[o];if(null===e||"function"!=typeof s)r(e);else{const l=s(ut({},e),i);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===l&&ln.log(`Event processor "${s.id}" dropped event`),uP(l)?l.then(d=>this._notifyEventProcessors(n,d,i,o+1).then(r)).then(null,a):this._notifyEventProcessors(n,l,i,o+1).then(r).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(n=>{n(this)}),this._notifyingListeners=!1)}_applyFingerprint(n){n.fingerprint=n.fingerprint?HI(n.fingerprint):[],this._fingerprint&&(n.fingerprint=n.fingerprint.concat(this._fingerprint)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint}}function jI(){return(0,no.YO)("globalEventProcessors",()=>[])}function WI(t){jI().push(t)}function GI(){return{traceId:Xc(),spanId:Xc().substring(16)}}const E$=100;class vP{constructor(n,e=new Au,i=4){this._version=i,this._stack=[{scope:e}],n&&this.bindClient(n)}isOlderThan(n){return this._version{r.captureException(n,po(ut({originalException:n,syntheticException:o},e),{event_id:i}),a)}),i}captureMessage(n,e,i){const o=this._lastEventId=i&&i.event_id?i.event_id:Xc(),r=new Error(n);return this._withClient((a,s)=>{a.captureMessage(n,e,po(ut({originalException:n,syntheticException:r},i),{event_id:o}),s)}),o}captureEvent(n,e){const i=e&&e.event_id?e.event_id:Xc();return n.type||(this._lastEventId=i),this._withClient((o,r)=>{o.captureEvent(n,po(ut({},e),{event_id:i}),r)}),i}lastEventId(){return this._lastEventId}addBreadcrumb(n,e){const{scope:i,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:a=E$}=o.getOptions&&o.getOptions()||{};if(a<=0)return;const s=(0,af.yW)(),l=ut({timestamp:s},n),d=r?VI(()=>r(l,e)):l;null!==d&&(o.emit&&o.emit("beforeAddBreadcrumb",d,e),i.addBreadcrumb(d,a))}setUser(n){this.getScope().setUser(n)}setTags(n){this.getScope().setTags(n)}setExtras(n){this.getScope().setExtras(n)}setTag(n,e){this.getScope().setTag(n,e)}setExtra(n,e){this.getScope().setExtra(n,e)}setContext(n,e){this.getScope().setContext(n,e)}configureScope(n){const{scope:e,client:i}=this.getStackTop();i&&n(e)}run(n){const e=$I(this);try{n(this)}finally{$I(e)}}getIntegration(n){const e=this.getClient();if(!e)return null;try{return e.getIntegration(n)}catch(i){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`Cannot retrieve integration ${n.id} from the current Hub`),null}}startTransaction(n,e){const i=this._callExtensionMethod("startTransaction",n,e);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!i){const o=this.getClient();console.warn(o?"Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n":"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return i}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(n=!1){if(n)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,i=e.getSession();i&&function k$(t,n){let e={};n?e={status:n}:"ok"===t.status&&(e={status:"exited"}),sf(t,e)}(i),this._sendSessionUpdate(),e.setSession()}startSession(n){const{scope:e,client:i}=this.getStackTop(),{release:o,environment:r=_P}=i&&i.getOptions()||{},{userAgent:a}=no.n2.navigator||{},s=function A$(t){const n=(0,af.ph)(),e={sid:Xc(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function S$(t){return gC({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(e)};return t&&sf(e,t),e}(ut(ut({release:o,environment:r,user:e.getUser()},a&&{userAgent:a}),n)),l=e.getSession&&e.getSession();return l&&"ok"===l.status&&sf(l,{status:"exited"}),this.endSession(),e.setSession(s),s}shouldSendDefaultPii(){const n=this.getClient(),e=n&&n.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:n,client:e}=this.getStackTop(),i=n.getSession();i&&e&&e.captureSession&&e.captureSession(i)}_withClient(n){const{scope:e,client:i}=this.getStackTop();i&&n(i,e)}_callExtensionMethod(n,...e){const o=lf().__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[n])return o.extensions[n].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`Extension method ${n} couldn't be found, doing nothing.`)}}function lf(){return no.n2.__SENTRY__=no.n2.__SENTRY__||{extensions:{},hub:void 0},no.n2}function $I(t){const n=lf(),e=bC(n);return CP(n,t),e}function _o(){const t=lf();if(t.__SENTRY__&&t.__SENTRY__.acs){const n=t.__SENTRY__.acs.getCurrentHub();if(n)return n}return function qI(t=lf()){return(!function KI(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}(t)||bC(t).isOlderThan(4))&&CP(t,new vP),bC(t)}(t)}function bC(t){return(0,no.YO)("hub",()=>new vP,t)}function CP(t,n){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=n,!0)}function QI(t,n){return _o().captureException(t,{captureContext:n})}function F$(t){_o().withScope(t)}const I$=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],R$=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class P_{static __initStatic(){this.id="InboundFilters"}constructor(n={}){this.name=P_.id,this._options=n}setupOnce(n,e){const i=o=>{const r=e();if(r){const a=r.getIntegration(P_);if(a){const s=r.getClient(),l=s?s.getOptions():{},d=function B$(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:I$],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[],...t.disableTransactionDefaults?[]:R$],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(a._options,l);return function L$(t,n){return n.ignoreInternal&&function j$(t){try{return"SentryError"===t.exception.values[0].type}catch(n){}return!1}(t)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Jc(t)}`),!0):function N$(t,n){return!(t.type||!n||!n.length)&&function U$(t){if(t.message)return[t.message];if(t.exception){const{values:n}=t.exception;try{const{type:e="",value:i=""}=n&&n[n.length-1]||{};return[`${i}`,`${e}: ${i}`]}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.error(`Cannot extract message for event ${Jc(t)}`),[]}}return[]}(t).some(e=>fC(e,n))}(t,n.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Jc(t)}`),!0):function z$(t,n){if("transaction"!==t.type||!n||!n.length)return!1;const e=t.transaction;return!!e&&fC(e,n)}(t,n.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Jc(t)}`),!0):function H$(t,n){if(!n||!n.length)return!1;const e=vC(t);return!!e&&fC(e,n)}(t,n.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Jc(t)}.\nUrl: ${vC(t)}`),!0):!function V$(t,n){if(!n||!n.length)return!0;const e=vC(t);return!e||fC(e,n)}(t,n.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Jc(t)}.\nUrl: ${vC(t)}`),!0)}(o,d)?null:o}}return o};i.id=this.name,n(i)}}function vC(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(e){}return n?function W$(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&""!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(n):null}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.error(`Cannot extract url for event ${Jc(t)}`),null}}let YI;P_.__initStatic();class CC{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=CC.id}setupOnce(){YI=Function.prototype.toString;try{Function.prototype.toString=function(...n){const e=fP(this)||this;return YI.apply(e,n)}}catch(n){}}}CC.__initStatic();const XI=[];function $$(t){const n=t.defaultIntegrations||[],e=t.integrations;let i;n.forEach(a=>{a.isDefaultInstance=!0}),i=Array.isArray(e)?[...n,...e]:"function"==typeof e?HI(e(n)):n;const o=function G$(t){const n={};return t.forEach(e=>{const{name:i}=e,o=n[i];o&&!o.isDefaultInstance&&e.isDefaultInstance||(n[i]=e)}),Object.keys(n).map(e=>n[e])}(i),r=function K$(t,n){for(let e=0;e"Debug"===a.name);if(-1!==r){const[a]=o.splice(r,1);o.push(a)}return o}function JI(t,n){n[t.name]=t,-1===XI.indexOf(t.name)&&(t.setupOnce(WI,_o),XI.push(t.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.log(`Integration installed: ${t.name}`))}const Y$=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function A_(t,n=!1){const{host:e,path:i,pass:o,port:r,projectId:a,protocol:s,publicKey:l}=t;return`${s}://${l}${n&&o?`:${o}`:""}@${e}${r?`:${r}`:""}/${i&&`${i}/`}${a}`}function ZI(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eR(t){const n="string"==typeof t?function J$(t){const n=Y$.exec(t);if(!n)return void console.error(`Invalid Sentry Dsn: ${t}`);const[e,i,o="",r,a="",s]=n.slice(1);let l="",d=s;const g=d.split("/");if(g.length>1&&(l=g.slice(0,-1).join("/"),d=g.pop()),d){const O=d.match(/^\d+/);O&&(d=O[0])}return ZI({host:r,pass:o,path:l,projectId:d,port:a,protocol:e,publicKey:i})}(t):ZI(t);if(n&&function Z$(t){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:n,projectId:e,protocol:i}=t;return!(["protocol","publicKey","host","projectId"].find(a=>!t[a]&&(ln.error(`Invalid Sentry Dsn: ${a} missing`),!0))||(e.match(/^\d+$/)?function X$(t){return"http"===t||"https"===t}(i)?n&&isNaN(parseInt(n,10))&&(ln.error(`Invalid Sentry Dsn: Invalid port ${n}`),1):(ln.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(ln.error(`Invalid Sentry Dsn: Invalid projectId ${e}`),1)))}(n))return n}function tR(t){return`${t.protocol?`${t.protocol}:`:""}//${t.host}${t.port?`:${t.port}`:""}${t.path?`/${t.path}`:""}/api/`}function iq(t,n={}){const i="string"!=typeof n&&n._metadata?n._metadata.sdk:void 0;return("string"==typeof n?n:n.tunnel)||`${function tq(t){return`${tR(t)}${t.projectId}/envelope/`}(t)}?${function nq(t,n){return function w$(t){return Object.keys(t).map(n=>`${encodeURIComponent(n)}=${encodeURIComponent(t[n])}`).join("&")}(ut({sentry_key:t.publicKey,sentry_version:"7"},n&&{sentry_client:`${n.name}/${n.version}`}))}(t,i)}`}const iR=/\(error: (.*)\)/,oR=/captureMessage|captureException/;function rR(...t){const n=t.sort((e,i)=>e[0]-i[0]).map(e=>e[1]);return(e,i=0)=>{const o=[],r=e.split("\n");for(let a=i;a1024)continue;const l=iR.test(s)?s.replace(iR,"$1"):s;if(!l.match(/\S*Error: /)){for(const d of n){const g=d(l);if(g){o.push(g);break}}if(o.length>=50)break}}return function aq(t){if(!t.length)return[];const n=Array.from(t);return/sentryWrapped/.test(n[n.length-1].function||"")&&n.pop(),n.reverse(),oR.test(n[n.length-1].function||"")&&(n.pop(),oR.test(n[n.length-1].function||"")&&n.pop()),n.slice(0,50).map(e=>po(ut({},e),{filename:e.filename||n[n.length-1].filename,function:e.function||"?"}))}(o)}}function rq(t){return Array.isArray(t)?rR(...t):t}const wP="";function Zc(t){try{return t&&"function"==typeof t&&t.name||wP}catch(n){return wP}}const yC=(0,no.Rf)();function MP(){if(!("fetch"in yC))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function OP(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const xC=(0,no.Rf)(),rr=(0,no.Rf)(),k_="__sentry_xhr_v2__",S_={},aR={};function ed(t,n){S_[t]=S_[t]||[],S_[t].push(n),function cq(t){if(!aR[t])switch(aR[t]=!0,t){case"console":!function dq(){"console"in no.n2&&mC.forEach(function(t){t in no.n2.console&&br(no.n2.console,t,function(n){return sR[t]=n,function(...e){qs("console",{args:e,level:t});const i=sR[t];i&&i.apply(no.n2.console,e)}})})}();break;case"dom":!function bq(){if(!("document"in rr))return;const t=qs.bind(null,"dom"),n=cR(t,!0);rr.document.addEventListener("click",n,!1),rr.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(e=>{const i=rr[e]&&rr[e].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(br(i,"addEventListener",function(o){return function(r,a,s){if("click"===r||"keypress"==r)try{const l=this,d=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},g=d[r]=d[r]||{refCount:0};if(!g.handler){const O=cR(t);g.handler=O,o.call(this,r,O,s)}g.refCount++}catch(l){}return o.call(this,r,a,s)}}),br(i,"removeEventListener",function(o){return function(r,a,s){if("click"===r||"keypress"==r)try{const l=this,d=l.__sentry_instrumentation_handlers__||{},g=d[r];g&&(g.refCount--,g.refCount<=0&&(o.call(this,r,g.handler,s),g.handler=void 0,delete d[r]),0===Object.keys(d).length&&delete l.__sentry_instrumentation_handlers__)}catch(l){}return o.call(this,r,a,s)}}))})}();break;case"xhr":!function pq(){if(!("XMLHttpRequest"in rr))return;const t=XMLHttpRequest.prototype;br(t,"open",function(n){return function(...e){const i=e[1],o=this[k_]={method:gl(e[0])?e[0].toUpperCase():e[0],url:e[1],request_headers:{}};gl(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const r=()=>{const a=this[k_];if(a&&4===this.readyState){try{a.status_code=this.status}catch(s){}qs("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?br(this,"onreadystatechange",function(a){return function(...s){return r(),a.apply(this,s)}}):this.addEventListener("readystatechange",r),br(this,"setRequestHeader",function(a){return function(...s){const[l,d]=s,g=this[k_];return g&&(g.request_headers[l.toLowerCase()]=d),a.apply(this,s)}}),n.apply(this,e)}}),br(t,"send",function(n){return function(...e){const i=this[k_];return i&&void 0!==e[0]&&(i.body=e[0]),qs("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),n.apply(this,e)}})}();break;case"fetch":!function uq(){!function sq(){if(!MP())return!1;if(OP(yC.fetch))return!0;let t=!1;const n=yC.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(t=OP(e.contentWindow.fetch)),n.head.removeChild(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}()||br(no.n2,"fetch",function(t){return function(...n){const{method:e,url:i}=function hq(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,i]=t;return{url:lR(e),method:PP(i,"method")?String(i.method).toUpperCase():"GET"}}const n=t[0];return{url:lR(n),method:PP(n,"method")?String(n.method).toUpperCase():"GET"}}(n),o={args:n,fetchData:{method:e,url:i},startTimestamp:Date.now()};return qs("fetch",ut({},o)),t.apply(no.n2,n).then(r=>(qs("fetch",po(ut({},o),{endTimestamp:Date.now(),response:r})),r),r=>{throw qs("fetch",po(ut({},o),{endTimestamp:Date.now(),error:r})),r})}})}();break;case"history":!function fq(){if(!function lq(){const t=xC.chrome;return!(t&&t.app&&t.app.runtime||!("history"in xC)||!xC.history.pushState||!xC.history.replaceState)}())return;const t=rr.onpopstate;function n(e){return function(...i){const o=i.length>2?i[2]:void 0;if(o){const r=wC,a=String(o);wC=a,qs("history",{from:r,to:a})}return e.apply(this,i)}}rr.onpopstate=function(...e){const i=rr.location.href,o=wC;if(wC=i,qs("history",{from:o,to:i}),t)try{return t.apply(this,e)}catch(r){}},br(rr.history,"pushState",n),br(rr.history,"replaceState",n)}();break;case"error":!function vq(){PC=rr.onerror,rr.onerror=function(t,n,e,i,o){return qs("error",{column:i,error:o,line:e,msg:t,url:n}),!(!PC||PC.__SENTRY_LOADER__)&&PC.apply(this,arguments)},rr.onerror.__SENTRY_INSTRUMENTED__=!0}();break;case"unhandledrejection":!function Cq(){AC=rr.onunhandledrejection,rr.onunhandledrejection=function(t){return qs("unhandledrejection",t),!(AC&&!AC.__SENTRY_LOADER__)||AC.apply(this,arguments)},rr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}();break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn("unknown instrumentation type:",t))}}(t)}function qs(t,n){if(t&&S_[t])for(const e of S_[t]||[])try{e(n)}catch(i){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Zc(e)}\nError:`,i)}}const sR={};function PP(t,n){return!!t&&"object"==typeof t&&!!t[n]}function lR(t){return"string"==typeof t?t:t?PP(t,"url")?t.url:t.toString?t.toString():"":""}let wC,MC,OC;function cR(t,n=!1){return e=>{if(!e||OC===e||function _q(t){if("keypress"!==t.type)return!1;try{const n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(n){}return!0}(e))return;const i="keypress"===e.type?"input":e.type;(void 0===MC||function mq(t,n){if(!t||t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(e){}return!1}(OC,e))&&(t({event:e,name:i,global:n}),OC=e),clearTimeout(MC),MC=rr.setTimeout(()=>{MC=void 0},1e3)}}let PC=null,AC=null;function td(t,n=100,e=1/0){try{return AP("",t,n,e)}catch(i){return{ERROR:`**non-serializable** (${i})`}}}function dR(t,n=3,e=102400){const i=td(t,n);return function Oq(t){return function Mq(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}(i)>e?dR(t,n-1,e):i}function AP(t,n,e=1/0,i=1/0,o=function yq(){const t="function"==typeof WeakSet,n=t?new WeakSet:[];return[function e(o){if(t)return!!n.has(o)||(n.add(o),!1);for(let r=0;r=i){g[L]="[MaxProperties ~]";break}g[L]=AP(L,D[L],l-1,i,o),O++}return a(n),g}function D_(t,n=[]){return[t,n]}function Pq(t,n){const[e,i]=t;return[e,[...i,n]]}function kP(t,n){const e=t[1];for(const i of e)if(n(i,i[0].type))return!0;return!1}function SP(t,n){return(n||new TextEncoder).encode(t)}function Aq(t,n){const[e,i]=t;let o=JSON.stringify(e);function r(a){"string"==typeof o?o="string"==typeof a?o+a:[SP(o,n),a]:o.push("string"==typeof a?SP(a,n):a)}for(const a of i){const[s,l]=a;if(r(`\n${JSON.stringify(s)}\n`),"string"==typeof l||l instanceof Uint8Array)r(l);else{let d;try{d=JSON.stringify(l)}catch(g){d=JSON.stringify(td(l))}r(d)}}return"string"==typeof o?o:function kq(t){const n=t.reduce((o,r)=>o+r.length,0),e=new Uint8Array(n);let i=0;for(const o of t)e.set(o,i),i+=o.length;return e}(o)}function Sq(t,n){const e="string"==typeof t.data?SP(t.data,n):t.data;return[gC({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const Dq={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function uR(t){return Dq[t]}function hR(t){if(!t||!t.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}class Ks extends Error{constructor(n,e="warn"){super(n),this.message=n,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}const pR=new WeakMap,fR="Not capturing exception because it's already been captured.";function gR(t){return void 0===t.type}function mR(t){return"transaction"===t.type}const kC="7.66.0";var Gq=Wt(327);function _R(t,n){const e=EP(t,n),i={type:n&&n.name,value:Yq(n)};return e.length&&(i.stacktrace={frames:e}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function DP(t,n){return{exception:{values:[_R(t,n)]}}}function EP(t,n){const e=n.stacktrace||n.stack||"",i=function Qq(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Kq.test(t.message))return 1}return 0}(n);try{return t(e,i)}catch(o){}return[]}const Kq=/Minified React error #\d+;/i;function Yq(t){const n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function TP(t,n,e,i,o){let r;if(dP(n)&&n.error)return DP(t,n.error);if(EI(n)||function f$(t){return ef(t,"DOMException")}(n)){const a=n;if("stack"in n)r=DP(t,n);else{const s=a.name||(EI(a)?"DOMError":"DOMException"),l=a.message?`${s}: ${a.message}`:s;r=FP(t,l,e,i),mP(r,l)}return"code"in a&&(r.tags=po(ut({},r.tags),{"DOMException.code":`${a.code}`})),r}return DI(n)?DP(t,n):tf(n)||hC(n)?(r=function qq(t,n,e,i){const r=_o().getClient(),a=r&&r.getOptions().normalizeDepth,s={exception:{values:[{type:hC(n)?n.constructor.name:i?"UnhandledRejection":"Error",value:Zq(n,{isUnhandledRejection:i})}]},extra:{__serialized__:dR(n,a)}};if(e){const l=EP(t,e);l.length&&(s.exception.values[0].stacktrace={frames:l})}return s}(t,n,e,o),rf(r,{synthetic:!0}),r):(r=FP(t,n,e,i),mP(r,`${n}`,void 0),rf(r,{synthetic:!0}),r)}function FP(t,n,e,i){const o={message:n};if(i&&e){const r=EP(t,e);r.length&&(o.exception={values:[{value:n,stacktrace:{frames:r}}]})}return o}function Zq(t,{isUnhandledRejection:n}){const e=function M$(t,n=40){const e=Object.keys(RI(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=n)return nf(e[0],n);for(let i=e.length;i>0;i--){const o=e.slice(0,i).join(", ");if(!(o.length>n))return i===e.length?o:nf(o,n)}return""}(t),i=n?"promise rejection":"exception";return dP(t)?`Event \`ErrorEvent\` captured as ${i} with message \`${t.message}\``:hC(t)?`Event \`${function eK(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch(n){}}(t)}\` (type=${t.type}) captured as ${i}`:`Object captured as ${i} with keys: ${e}`}const hi=no.n2;let IP=0;function bR(){return IP>0}function tK(){IP++,setTimeout(()=>{IP--})}function cf(t,n={},e){if("function"!=typeof t)return t;try{const o=t.__sentry_wrapped__;if(o)return o;if(fP(t))return t}catch(o){return t}const i=function(){const o=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);const r=o.map(a=>cf(a,n));return t.apply(this,r)}catch(r){throw tK(),F$(a=>{a.addEventProcessor(s=>(n.mechanism&&(mP(s,void 0,void 0),rf(s,n.mechanism)),s.extra=po(ut({},s.extra),{arguments:o}),s)),QI(r)}),r}};try{for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}catch(o){}II(i,t),pP(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>t.name})}catch(o){}return i}class oK extends class Uq{constructor(n){if(this._options=n,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},n.dsn?this._dsn=eR(n.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn("No DSN provided, client will not do anything."),this._dsn){const e=iq(this._dsn,n);this._transport=n.transport(po(ut({recordDroppedEvent:this.recordDroppedEvent.bind(this)},n.transportOptions),{url:e}))}}captureException(n,e,i){if(zI(n))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.log(fR));let o=e&&e.event_id;return this._process(this.eventFromException(n,e).then(r=>this._captureEvent(r,e,i)).then(r=>{o=r})),o}captureMessage(n,e,i,o){let r=i&&i.event_id;const a=TI(n)?this.eventFromMessage(String(n),e,i):this.eventFromException(n,i);return this._process(a.then(s=>this._captureEvent(s,i,o)).then(s=>{r=s})),r}captureEvent(n,e,i){if(e&&e.originalException&&zI(e.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.log(fR));let o=e&&e.event_id;return this._process(this._captureEvent(n,e,i).then(r=>{o=r})),o}captureSession(n){this._isEnabled()?"string"!=typeof n.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn("Discarded session because of missing or non-string release"):(this.sendSession(n),sf(n,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(n){const e=this._transport;return e?this._isClientDoneProcessing(n).then(i=>e.flush(n).then(o=>i&&o)):Pu(!0)}close(n){return this.flush(n).then(e=>(this.getOptions().enabled=!1,e))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function q$(t){const n={};return t.forEach(e=>{e&&JI(e,n)}),n}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(n){return this._integrations[n]}getIntegration(n){try{return this._integrations[n.id]||null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`Cannot retrieve integration ${n.id} from the current Client`),null}}addIntegration(n){JI(n,this._integrations)}sendEvent(n,e={}){if(this.emit("beforeSendEvent",n,e),this._dsn){let i=function Iq(t,n,e,i){const o=hR(e),r=t.type&&"replay_event"!==t.type?t.type:"event";!function Tq(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e&&e.sdk);const a=function Eq(t,n,e,i){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return ut(ut(ut({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e&&{dsn:A_(i)}),o&&{trace:gC(ut({},o))})}(t,o,i,n);return delete t.sdkProcessingMetadata,D_(a,[[{type:r},t]])}(n,this._dsn,this._options._metadata,this._options.tunnel);for(const r of e.attachments||[])i=Pq(i,Sq(r,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(i);o&&o.then(r=>this.emit("afterSendEvent",n,r),null)}}sendSession(n){if(this._dsn){const e=function Fq(t,n,e,i){const o=hR(e);return D_(ut(ut({sent_at:(new Date).toISOString()},o&&{sdk:o}),!!i&&{dsn:A_(n)}),["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(n,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(n,e,i){if(this._options.sendClientReports){const o=`${n}:${e}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}on(n,e){this._hooks[n]||(this._hooks[n]=[]),this._hooks[n].push(e)}emit(n,...e){this._hooks[n]&&this._hooks[n].forEach(i=>i(...e))}_updateSessionFromEvent(n,e){let i=!1,o=!1;const r=e.exception&&e.exception.values;if(r){o=!0;for(const l of r){const d=l.mechanism;if(d&&!1===d.handled){i=!0;break}}}const a="ok"===n.status;(a&&0===n.errors||a&&i)&&(sf(n,po(ut({},i&&{status:"crashed"}),{errors:n.errors||Number(o||i)})),this.captureSession(n))}_isClientDoneProcessing(n){return new La(e=>{let i=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(i+=1,n&&i>=n&&(clearInterval(r),e(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(n,e,i){const o=this.getOptions(),r=Object.keys(this._integrations);return!e.integrations&&r.length>0&&(e.integrations=r),function Bq(t,n,e,i){const{normalizeDepth:o=3,normalizeMaxBreadth:r=1e3}=t,a=po(ut({},n),{event_id:n.event_id||e.event_id||Xc(),timestamp:n.timestamp||(0,af.yW)()}),s=e.integrations||t.integrations.map(g=>g.name);(function Lq(t,n){const{environment:e,release:i,dist:o,maxValueLength:r=250}=n;"environment"in t||(t.environment="environment"in n?e:_P),void 0===t.release&&void 0!==i&&(t.release=i),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=nf(t.message,r));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=nf(a.value,r));const s=t.request;s&&s.url&&(s.url=nf(s.url,r))})(a,t),function Hq(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(a,s),void 0===n.type&&function Nq(t,n){const e=no.n2._sentryDebugIds;if(!e)return;let i;const o=pR.get(n);o?i=o:(i=new Map,pR.set(n,i));const r=Object.keys(e).reduce((a,s)=>{let l;const d=i.get(s);d?l=d:(l=n(s),i.set(s,l));for(let g=l.length-1;g>=0;g--){const O=l[g];if(O.filename){a[O.filename]=e[s];break}}return a},{});try{t.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=r[s.filename])})})}catch(a){}}(a,t.stackParser);let l=i;e.captureContext&&(l=Au.clone(l).update(e.captureContext));let d=Pu(a);if(l){if(l.getAttachments){const g=[...e.attachments||[],...l.getAttachments()];g.length&&(e.attachments=g)}d=l.applyToEvent(a,e)}return d.then(g=>(g&&function zq(t){const n={};try{t.exception.values.forEach(i=>{i.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?n[o.abs_path]=o.debug_id:o.filename&&(n[o.filename]=o.debug_id),delete o.debug_id)})})}catch(i){}if(0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.keys(n).forEach(i=>{e.push({type:"sourcemap",code_file:i,debug_id:n[i]})})}(g),"number"==typeof o&&o>0?function Vq(t,n,e){if(!t)return null;const i=ut(ut(ut(ut(ut({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>ut(ut({},o),o.data&&{data:td(o.data,n,e)}))}),t.user&&{user:td(t.user,n,e)}),t.contexts&&{contexts:td(t.contexts,n,e)}),t.extra&&{extra:td(t.extra,n,e)});return t.contexts&&t.contexts.trace&&i.contexts&&(i.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(i.contexts.trace.data=td(t.contexts.trace.data,n,e))),t.spans&&(i.spans=t.spans.map(o=>(o.data&&(o.data=td(o.data,n,e)),o))),i}(g,o,r):g))}(o,n,e,i).then(a=>{if(null===a)return a;const{propagationContext:s}=a.sdkProcessingMetadata||{};if((!a.contexts||!a.contexts.trace)&&s){const{traceId:d,spanId:g,parentSpanId:O,dsc:D}=s;a.contexts=ut({trace:{trace_id:d,span_id:g,parent_span_id:O}},a.contexts);const L=D||function Rq(t,n,e){const i=n.getOptions(),{publicKey:o}=n.getDsn()||{},{segment:r}=e&&e.getUser()||{},a=gC({environment:i.environment||_P,release:i.release,user_segment:r,public_key:o,trace_id:t});return n.emit&&n.emit("createDsc",a),a}(d,this,i);a.sdkProcessingMetadata=ut({dynamicSamplingContext:L},a.sdkProcessingMetadata)}return a})}_captureEvent(n,e={},i){return this._processEvent(n,e,i).then(o=>o.event_id,o=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const r=o;"log"===r.logLevel?ln.log(r.message):ln.warn(r)}})}_processEvent(n,e,i){const o=this.getOptions(),{sampleRate:r}=o;if(!this._isEnabled())return _C(new Ks("SDK not enabled, will not capture event.","log"));const a=mR(n),s=gR(n),l=n.type||"error",d=`before send for type \`${l}\``;if(s&&"number"==typeof r&&Math.random()>r)return this.recordDroppedEvent("sample_rate","error",n),_C(new Ks(`Discarding event because it's not included in the random sample (sampling rate = ${r})`,"log"));const g="replay_event"===l?"replay":l;return this._prepareEvent(n,e,i).then(O=>{if(null===O)throw this.recordDroppedEvent("event_processor",g,n),new Ks("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return O;const L=function Wq(t,n,e){const{beforeSend:i,beforeSendTransaction:o}=t;return gR(n)&&i?i(n,e):mR(n)&&o?o(n,e):n}(o,O,e);return function jq(t,n){const e=`${n} must return \`null\` or a valid event.`;if(uP(t))return t.then(i=>{if(!tf(i)&&null!==i)throw new Ks(e);return i},i=>{throw new Ks(`${n} rejected with ${i}`)});if(!tf(t)&&null!==t)throw new Ks(e);return t}(L,d)}).then(O=>{if(null===O)throw this.recordDroppedEvent("before_send",g,n),new Ks(`${d} returned \`null\`, will not send event.`,"log");const D=i&&i.getSession();!a&&D&&this._updateSessionFromEvent(D,O);const L=O.transaction_info;if(a&&L&&O.transaction!==n.transaction){const W="custom";O.transaction_info=po(ut({},L),{source:W})}return this.sendEvent(O,e),O}).then(null,O=>{throw O instanceof Ks?O:(this.captureException(O,{data:{__sentry__:!0},originalException:O}),new Ks(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${O}`))})}_process(n){this._numProcessing++,n.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(n){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",n),this._transport.send(n).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.error("Error while sending event:",e)});("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.error("Transport disabled")}_clearOutcomes(){const n=this._outcomes;return this._outcomes={},Object.keys(n).map(e=>{const[i,o]=e.split(":");return{reason:i,category:o,quantity:n[e]}})}}{constructor(n){const e=hi.SENTRY_SDK_SOURCE||(0,Gq.S)();n._metadata=n._metadata||{},n._metadata.sdk=n._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${e}:@sentry/browser`,version:kC}],version:kC},super(n),n.sendClientReports&&hi.document&&hi.document.addEventListener("visibilitychange",()=>{"hidden"===hi.document.visibilityState&&this._flushOutcomes()})}eventFromException(n,e){return function Xq(t,n,e,i){const r=TP(t,n,e&&e.syntheticException||void 0,i);return rf(r),r.level="error",e&&e.event_id&&(r.event_id=e.event_id),Pu(r)}(this._options.stackParser,n,e,this._options.attachStacktrace)}eventFromMessage(n,e="info",i){return function Jq(t,n,e="info",i,o){const a=FP(t,n,i&&i.syntheticException||void 0,o);return a.level=e,i&&i.event_id&&(a.event_id=i.event_id),Pu(a)}(this._options.stackParser,n,e,i,this._options.attachStacktrace)}captureUserFeedback(n){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn("SDK not enabled, will not capture user feedback."));const e=function nK(t,{metadata:n,tunnel:e,dsn:i}){const o=ut(ut({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}}),!!e&&!!i&&{dsn:A_(i)}),r=function iK(t){return[{type:"user_report"},t]}(t);return D_(o,[r])}(n,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(n,e,i){return n.platform=n.platform||"javascript",super._prepareEvent(n,e,i)}_flushOutcomes(){const n=this._clearOutcomes();if(0===n.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.log("Sending outcomes:",n);const e=function $q(t,n,e){return D_(n?{dsn:n}:{},[[{type:"client_report"},{timestamp:e||(0,af.yW)(),discarded_events:t}]])}(n,this._options.tunnel&&A_(this._dsn));this._sendEnvelope(e)}}class df{static __initStatic(){this.id="GlobalHandlers"}constructor(n){this.name=df.id,this._options=ut({onerror:!0,onunhandledrejection:!0},n),this._installFunc={onerror:rK,onunhandledrejection:aK}}setupOnce(){Error.stackTraceLimit=50;const n=this._options;for(const e in n){const i=this._installFunc[e];i&&n[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.log(`Global Handler attached: ${e}`),i(),this._installFunc[e]=void 0)}}}function rK(){ed("error",t=>{const[n,e,i]=yR();if(!n.getIntegration(df))return;const{msg:o,url:r,line:a,column:s,error:l}=t;if(bR()||l&&l.__sentry_own_request__)return;const d=void 0===l&&gl(o)?function lK(t,n,e,i){let r=dP(t)?t.message:t,a="Error";const s=r.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(a=s[1],r=s[2]),vR({exception:{values:[{type:a,value:r}]}},n,e,i)}(o,r,a,s):vR(TP(e,l||o,void 0,i,!1),r,a,s);d.level="error",CR(n,l,d,"onerror")})}function aK(){ed("unhandledrejection",t=>{const[n,e,i]=yR();if(!n.getIntegration(df))return;let o=t;try{"reason"in t?o=t.reason:"detail"in t&&"reason"in t.detail&&(o=t.detail.reason)}catch(a){}if(bR()||o&&o.__sentry_own_request__)return!0;const r=TI(o)?function sK(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}(o):TP(e,o,void 0,i,!0);r.level="error",CR(n,o,r,"onunhandledrejection")})}function vR(t,n,e,i){const o=t.exception=t.exception||{},r=o.values=o.values||[],a=r[0]=r[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],d=isNaN(parseInt(i,10))?void 0:i,g=isNaN(parseInt(e,10))?void 0:e,O=gl(n)&&n.length>0?n:function y$(){try{return pC.document.location.href}catch(t){return""}}();return 0===l.length&&l.push({colno:d,filename:O,function:"?",in_app:!0,lineno:g}),t}function CR(t,n,e,i){rf(e,{handled:!1,type:i}),t.captureEvent(e,{originalException:n})}function yR(){const t=_o(),n=t.getClient(),e=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,e.stackParser,e.attachStacktrace]}df.__initStatic();const dK=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class SC{static __initStatic(){this.id="TryCatch"}constructor(n){this.name=SC.id,this._options=ut({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}setupOnce(){this._options.setTimeout&&br(hi,"setTimeout",xR),this._options.setInterval&&br(hi,"setInterval",xR),this._options.requestAnimationFrame&&br(hi,"requestAnimationFrame",uK),this._options.XMLHttpRequest&&"XMLHttpRequest"in hi&&br(XMLHttpRequest.prototype,"send",hK);const n=this._options.eventTarget;n&&(Array.isArray(n)?n:dK).forEach(pK)}}function xR(t){return function(...n){return n[0]=cf(n[0],{mechanism:{data:{function:Zc(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}function uK(t){return function(n){return t.apply(this,[cf(n,{mechanism:{data:{function:"requestAnimationFrame",handler:Zc(t)},handled:!0,type:"instrument"}})])}}function hK(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in e&&"function"==typeof e[o]&&br(e,o,function(r){const a={mechanism:{data:{function:o,handler:Zc(r)},handled:!0,type:"instrument"}},s=fP(r);return s&&(a.mechanism.data.handler=Zc(s)),cf(r,a)})}),t.apply(this,n)}}function pK(t){const e=hi[t]&&hi[t].prototype;!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")||(br(e,"addEventListener",function(i){return function(o,r,a){try{"function"==typeof r.handleEvent&&(r.handleEvent=cf(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Zc(r),target:t},handled:!0,type:"instrument"}}))}catch(s){}return i.apply(this,[o,cf(r,{mechanism:{data:{function:"addEventListener",handler:Zc(r),target:t},handled:!0,type:"instrument"}}),a])}}),br(e,"removeEventListener",function(i){return function(o,r,a){const s=r;try{const l=s&&s.__sentry_wrapped__;l&&i.call(this,o,l,a)}catch(l){}return i.call(this,o,s,a)}}))}SC.__initStatic();const fK=["fatal","error","warning","log","info","debug"];function wR(t){return"warn"===t?"warning":fK.includes(t)?t:"log"}function RP(t){if(!t)return{};const n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};const e=n[6]||"",i=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],search:e,hash:i,relative:n[5]+e+i}}class EC{static __initStatic(){this.id="Breadcrumbs"}constructor(n){this.name=EC.id,this.options=ut({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}setupOnce(){if(this.options.console&&ed("console",bK),this.options.dom&&ed("dom",function _K(t){return function n(e){let i,o="object"==typeof t?t.serializeAttribute:void 0,r="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;r&&r>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${r} was configured. Sentry will use 1024 instead.`),r=1024),"string"==typeof o&&(o=[o]);try{const a=e.event;i=function xK(t){return!!t&&!!t.target}(a)?hP(a.target,{keyAttrs:o,maxStringLength:r}):hP(a,{keyAttrs:o,maxStringLength:r})}catch(a){i=""}0!==i.length&&_o().addBreadcrumb({category:`ui.${e.name}`,message:i},{event:e.event,name:e.name,global:e.global})}}(this.options.dom)),this.options.xhr&&ed("xhr",vK),this.options.fetch&&ed("fetch",CK),this.options.history&&ed("history",yK),this.options.sentry){const n=_o().getClient();n&&n.on&&n.on("beforeSendEvent",mK)}}}function mK(t){_o().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Jc(t)},{event:t})}function bK(t){for(let e=0;e0?r.exception.values[r.exception.values.length-1]:void 0;s&&(r.exception.values=function MK(t,n){return t.map(e=>(e.value&&(e.value=nf(e.value,n)),e))}(BP(t,n,o,a.originalException,i,r.exception.values,s,0),e))}function BP(t,n,e,i,o,r,a,s){if(r.length>=e+1)return r;let l=[...r];if(Ou(i[o],Error)){MR(a,s);const d=t(n,i[o]),g=l.length;OR(d,o,g,s),l=BP(t,n,e,i[o],o,[d,...l],d,g)}return Array.isArray(i.errors)&&i.errors.forEach((d,g)=>{if(Ou(d,Error)){MR(a,s);const O=t(n,d),D=l.length;OR(O,`errors[${g}]`,D,s),l=BP(t,n,e,d,o,[O,...l],O,D)}}),l}function MR(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=po(ut({},t.mechanism),{is_exception_group:!0,exception_id:n})}function OR(t,n,e,i){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=po(ut({},t.mechanism),{type:"chained",source:n,exception_id:e,parent_id:i})}EC.__initStatic();class E_{static __initStatic(){this.id="LinkedErrors"}constructor(n={}){this.name=E_.id,this._key=n.key||"cause",this._limit=n.limit||5}setupOnce(n,e){n((i,o)=>{const r=e(),a=r.getClient(),s=r.getIntegration(E_);if(!a||!s)return i;const l=a.getOptions();return wK(_R,l.stackParser,l.maxValueLength,s._key,s._limit,i,o),i})}}E_.__initStatic();class T_{static __initStatic(){this.id="HttpContext"}constructor(){this.name=T_.id}setupOnce(){WI(n=>{if(_o().getIntegration(T_)){if(!hi.navigator&&!hi.location&&!hi.document)return n;const e=n.request&&n.request.url||hi.location&&hi.location.href,{referrer:i}=hi.document||{},{userAgent:o}=hi.navigator||{},r=ut(ut(ut({},n.request&&n.request.headers),i&&{Referer:i}),o&&{"User-Agent":o}),a=po(ut(ut({},n.request),e&&{url:e}),{headers:r});return po(ut({},n),{request:a})}return n})}}T_.__initStatic();class F_{static __initStatic(){this.id="Dedupe"}constructor(){this.name=F_.id}setupOnce(n,e){const i=o=>{if(o.type)return o;const r=e().getIntegration(F_);if(r){try{if(function AK(t,n){return!(!n||!function kK(t,n){const e=t.message,i=n.message;return!(!e&&!i||e&&!i||!e&&i||e!==i||!AR(t,n)||!PR(t,n))}(t,n)&&!function SK(t,n){const e=kR(n),i=kR(t);return!!(e&&i&&e.type===i.type&&e.value===i.value&&AR(t,n)&&PR(t,n))}(t,n))}(o,r._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(a){return r._previousEvent=o}return r._previousEvent=o}return o};i.id=this.name,n(i)}}function PR(t,n){let e=SR(t),i=SR(n);if(!e&&!i)return!0;if(e&&!i||!e&&i||i.length!==e.length)return!1;for(let o=0;o|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,BK=/\((\S*)(?::(\d+))(?::(\d+))\)/,LK=[30,t=>{const n=RK.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const r=BK.exec(n[2]);r&&(n[2]=r[1],n[3]=r[2],n[4]=r[3])}const[i,o]=DR(n[1]||"?",n[2]);return I_(o,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],NK=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,zK=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,HK=[50,t=>{const n=NK.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const r=zK.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}let i=n[3],o=n[1]||"?";return[o,i]=DR(o,i),I_(i,o,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],VK=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,UK=[40,t=>{const n=VK.exec(t);return n?I_(n[2],n[1]||"?",+n[3],n[4]?+n[4]:void 0):void 0}],GK=rR(LK,HK,UK),DR=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return e||i?[-1!==t.indexOf("@")?t.split("@")[0]:"?",e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};function ER(t,n,e=function $K(t){const n=[];function i(a){return n.splice(n.indexOf(a),1)[0]}return{$:n,add:function o(a){if(!function e(){return void 0===t||n.lengthi(s)).then(null,()=>i(s).then(null,()=>{})),s},drain:function r(a){return new La((s,l)=>{let d=n.length;if(!d)return s(!0);const g=setTimeout(()=>{a&&a>0&&s(!1)},a);n.forEach(O=>{Pu(O).then(()=>{--d||(clearTimeout(g),s(!0))},l)})})}}}(t.bufferSize||30)){let i={};function r(a){const s=[];if(kP(a,(O,D)=>{const L=uR(D);if(function YK(t,n,e=Date.now()){return function QK(t,n){return t[n]||t.all||0}(t,n)>e}(i,L)){const W=TR(O,D);t.recordDroppedEvent("ratelimit_backoff",L,W)}else s.push(O)}),0===s.length)return Pu();const l=D_(a[0],s),d=O=>{kP(l,(D,L)=>{const W=TR(D,L);t.recordDroppedEvent(O,uR(L),W)})};return e.add(()=>n({body:Aq(l,t.textEncoder)}).then(O=>(void 0!==O.statusCode&&(O.statusCode<200||O.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn(`Sentry responded with status code ${O.statusCode} to sent event.`),i=function XK(t,{statusCode:n,headers:e},i=Date.now()){const o=ut({},t),r=e&&e["x-sentry-rate-limits"],a=e&&e["retry-after"];if(r)for(const s of r.trim().split(",")){const[l,d]=s.split(":",2),g=parseInt(l,10),O=1e3*(isNaN(g)?60:g);if(d)for(const D of d.split(";"))o[D]=i+O;else o.all=i+O}else a?o.all=i+function KK(t,n=Date.now()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const i=Date.parse(`${t}`);return isNaN(i)?6e4:i-n}(a,i):429===n&&(o.all=i+6e4);return o}(i,O),O),O=>{throw d("network_error"),O})).then(O=>O,O=>{if(O instanceof Ks)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.error("Skipped sending event because buffer is full."),d("queue_overflow"),Pu();throw O})}return r.__sentry__baseTransport__=!0,{send:r,flush:a=>e.drain(a)}}function TR(t,n){if("event"===n||"transaction"===n)return Array.isArray(t)?t[1]:void 0}let R_;function tQ(t,n=function ZK(){if(R_)return R_;if(OP(hi.fetch))return R_=hi.fetch.bind(hi);const t=hi.document;let n=hi.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const i=e.contentWindow;i&&i.fetch&&(n=i.fetch),t.head.removeChild(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return R_=n.bind(hi)}()){let e=0,i=0;return ER(t,function o(r){const a=r.body.length;e+=a,i++;const s=ut({body:r.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:e<=6e4&&i<15},t.fetchOptions);try{return n(t.url,s).then(l=>(e-=a,i--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return function eQ(){R_=void 0}(),e-=a,i--,_C(l)}})}function iQ(t){return ER(t,function n(e){return new La((i,o)=>{const r=new XMLHttpRequest;r.onerror=o,r.onreadystatechange=()=>{4===r.readyState&&i({statusCode:r.status,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")}})},r.open("POST",t.url);for(const a in t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&r.setRequestHeader(a,t.headers[a]);r.send(e.body)})})}const FR=[new P_,new CC,new SC,new EC,new df,new E_,new F_,new T_];function IR(t={},n=_o()){if(!hi.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.error("Global document not defined in showReportDialog call"));const{client:e,scope:i}=n.getStackTop(),o=t.dsn||e&&e.getDsn();if(!o)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.error("DSN not configured for showReportDialog call"));i&&(t.user=ut(ut({},i.getUser()),t.user)),t.eventId||(t.eventId=n.lastEventId());const r=hi.document.createElement("script");r.async=!0,r.crossOrigin="anonymous",r.src=function oq(t,n){const e=eR(t);if(!e)return"";const i=`${tR(e)}embed/error-page/`;let o=`dsn=${A_(e)}`;for(const r in n)if("dsn"!==r)if("user"===r){const a=n.user;if(!a)continue;a.name&&(o+=`&name=${encodeURIComponent(a.name)}`),a.email&&(o+=`&email=${encodeURIComponent(a.email)}`)}else o+=`&${encodeURIComponent(r)}=${encodeURIComponent(n[r])}`;return`${i}?${o}`}(o,t),t.onLoad&&(r.onload=t.onLoad);const a=hi.document.head||hi.document.body;a?a.appendChild(r):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ln.error("Not injecting report dialog. No injection point found in HTML")}function RR(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function At(...t){return Yi(t,Dd(t))}class $n extends xe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const{isArray:aQ}=Array,{getPrototypeOf:sQ,prototype:lQ,keys:cQ}=Object;function BR(t){if(1===t.length){const n=t[0];if(aQ(n))return{args:n,keys:null};if(function dQ(t){return t&&"object"==typeof t&&sQ(t)===lQ}(n)){const e=cQ(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:uQ}=Array;function LP(t){return be(n=>function hQ(t,n){return uQ(n)?t(...n):t(n)}(t,n))}function LR(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function TC(...t){const n=Dd(t),e=Dl(t),{args:i,keys:o}=BR(t);if(0===i.length)return Yi([],n);const r=new Se(function pQ(t,n,e=me){return i=>{NR(n,()=>{const{length:o}=t,r=new Array(o);let a=o,s=o;for(let l=0;l{const d=Yi(t[l],n);let g=!1;d.subscribe(Be(i,O=>{r[l]=O,g||(g=!0,s--),s||i.next(e(r.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,n,o?a=>LR(o,a):me));return e?r.pipe(LP(e)):r}function NR(t,n,e){t?$a(e,t,n):n()}function hf(t,n){const e=te(t)?t:()=>t,i=o=>o.error(e());return new Se(n?o=>n.schedule(i,0,o):i)}const FC=H(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Qs(...t){return function fQ(){return kd(1)}()(Yi(t,Dd(t)))}function ku(t){return new Se(n=>{Qi(t()).subscribe(n)})}function NP(){return Le((t,n)=>{let e=null;t._refCount++;const i=Be(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class zR extends Se{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Pe(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new G;const e=this.getSubject();n.add(this.source.subscribe(Be(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=G.EMPTY)}return n}refCount(){return NP()(this)}}function io(t,n){return Le((e,i)=>{let o=null,r=0,a=!1;const s=()=>a&&!o&&i.complete();e.subscribe(Be(i,l=>{null==o||o.unsubscribe();let d=0;const g=r++;Qi(t(l,g)).subscribe(o=Be(i,O=>i.next(n?n(l,O,g,d++):O),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function zn(t){return t<=0?()=>Wr:Le((n,e)=>{let i=0;n.subscribe(Be(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function bo(...t){const n=Dd(t);return Le((e,i)=>{(n?Qs(t,e,n):Qs(t,e)).subscribe(i)})}function gQ(t,n,e,i,o){return(r,a)=>{let s=e,l=n,d=0;r.subscribe(Be(a,g=>{const O=d++;l=s?t(l,g,O):(s=!0,g),i&&a.next(l)},o&&(()=>{s&&a.next(l),a.complete()})))}}function HR(t,n){return Le(gQ(t,n,arguments.length>=2,!0))}function Hn(t,n){return Le((e,i)=>{let o=0;e.subscribe(Be(i,r=>t.call(n,r,o++)&&i.next(r)))})}function Na(t){return Le((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Be(e,void 0,void 0,a=>{r=Qi(t(a,Na(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function Su(t,n){return te(n)?ro(t,n,1):ro(t,1)}function zP(t){return t<=0?()=>Wr:Le((n,e)=>{let i=[];n.subscribe(Be(e,o=>{i.push(o),t{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function VR(t=mQ){return Le((n,e)=>{let i=!1;n.subscribe(Be(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function mQ(){return new FC}function UR(t){return Le((n,e)=>{let i=!1;n.subscribe(Be(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function nd(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Hn((o,r)=>t(o,r,i)):me,zn(1),e?UR(n):VR(()=>new FC))}function Mn(t,n,e){const i=te(t)||n||e?{next:t,error:n,complete:e}:t;return i?Le((o,r)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let s=!0;o.subscribe(Be(r,l=>{var d;null===(d=i.next)||void 0===d||d.call(i,l),r.next(l)},()=>{var l;s=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var d;s=!1,null===(d=i.error)||void 0===d||d.call(i,l),r.error(l)},()=>{var l,d;s&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(d=i.finalize)||void 0===d||d.call(i)}))}):me}function jR(t){return Le((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}class Jl{constructor(n,e){this.id=n,this.url=e}}class B_ extends Jl{constructor(n,e,i="imperative",o=null){super(n,e),this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Du extends Jl{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class HP extends Jl{constructor(n,e,i){super(n,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class WR extends Jl{constructor(n,e,i){super(n,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class bQ extends Jl{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vQ extends Jl{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CQ extends Jl{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class yQ extends Jl{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class GR extends Jl{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $R{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qR{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class xQ{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wQ{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class MQ{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class OQ{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class KR{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Vn="primary";class PQ{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function pf(t){return new PQ(t)}const QR="ngNavigationCancelingError";function VP(t){const n=Error("NavigationCancelingError: "+t);return n[QR]=!0,n}function kQ(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return t===n}function XR(t){return Array.prototype.concat.apply([],t)}function JR(t){return t.length>0?t[t.length-1]:null}function vr(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function _l(t){return iO(t)?t:o_(t)?Yi(Promise.resolve(t)):At(t)}const EQ={exact:function t4(t,n,e){if(!Tu(t.segments,n.segments)||!IC(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!t4(t.children[i],n.children[i],e))return!1;return!0},subset:n4},ZR={exact:function TQ(t,n){return ml(t,n)},subset:function FQ(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>YR(t[e],n[e]))},ignored:()=>!0};function e4(t,n,e){return EQ[e.paths](t.root,n.root,e.matrixParams)&&ZR[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function n4(t,n,e){return o4(t,n,n.segments,e)}function o4(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Tu(o,e)||n.hasChildren()||!IC(o,e,i))}if(t.segments.length===e.length){if(!Tu(t.segments,e)||!IC(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!n4(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(Tu(t.segments,o)&&IC(t.segments,o,i)&&t.children[Vn])&&o4(t.children[Vn],n,r,i)}}function IC(t,n,e){return n.every((i,o)=>ZR[e](t[o].parameters,i.parameters))}class Eu{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=pf(this.queryParams)),this._queryParamMap}toString(){return BQ.serialize(this)}}class Kn{constructor(n,e){this.segments=n,this.children=e,this.parent=null,vr(e,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return RC(this)}}class L_{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=pf(this.parameters)),this._parameterMap}toString(){return c4(this)}}function Tu(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}class r4{}class a4{parse(n){const e=new GQ(n);return new Eu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${N_(n.root,!0)}`,i=function zQ(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(o=>`${BC(e)}=${BC(o)}`).join("&"):`${BC(e)}=${BC(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function LQ(t){return encodeURI(t)}(n.fragment)}`:""}`}}const BQ=new a4;function RC(t){return t.segments.map(n=>c4(n)).join("/")}function N_(t,n){if(!t.hasChildren())return RC(t);if(n){const e=t.children[Vn]?N_(t.children[Vn],!1):"",i=[];return vr(t.children,(o,r)=>{r!==Vn&&i.push(`${r}:${N_(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function RQ(t,n){let e=[];return vr(t.children,(i,o)=>{o===Vn&&(e=e.concat(n(i,o)))}),vr(t.children,(i,o)=>{o!==Vn&&(e=e.concat(n(i,o)))}),e}(t,(i,o)=>o===Vn?[N_(t.children[Vn],!1)]:[`${o}:${N_(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Vn]?`${RC(t)}/${e[0]}`:`${RC(t)}/(${e.join("//")})`}}function s4(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function BC(t){return s4(t).replace(/%3B/gi,";")}function UP(t){return s4(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function LC(t){return decodeURIComponent(t)}function l4(t){return LC(t.replace(/\+/g,"%20"))}function c4(t){return`${UP(t.path)}${function NQ(t){return Object.keys(t).map(n=>`;${UP(n)}=${UP(t[n])}`).join("")}(t.parameters)}`}const HQ=/^[^\/()?;=#]+/;function NC(t){const n=t.match(HQ);return n?n[0]:""}const VQ=/^[^=?&#]+/,jQ=/^[^&#]+/;class GQ{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Kn([],{}):new Kn([],this.parseChildren())}parseQueryParams(){const 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("/");const 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[Vn]=new Kn(n,e)),i}parseSegment(){const n=NC(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new L_(LC(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=NC(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=NC(this.remaining);o&&(i=o,this.capture(i))}n[LC(e)]=LC(i)}parseQueryParam(n){const e=function UQ(t){const n=t.match(VQ);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function WQ(t){const n=t.match(jQ);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=l4(e),r=l4(i);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=NC(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let r;i.indexOf(":")>-1?(r=i.substr(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Vn);const a=this.parseChildren();e[r]=1===Object.keys(a).length?a[Vn]:new Kn([],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)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class d4{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=jP(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=jP(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=WP(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return WP(n,this._root).map(e=>e.value)}}function jP(t,n){if(t===n.value)return n;for(const e of n.children){const i=jP(t,e);if(i)return i}return null}function WP(t,n){if(t===n.value)return[n];for(const e of n.children){const i=WP(t,e);if(i.length)return i.unshift(n),i}return[]}class Zl{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function ff(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class u4 extends d4{constructor(n,e){super(n),this.snapshot=e,GP(this,n)}toString(){return this.snapshot.toString()}}function h4(t,n){const e=function $Q(t,n){const a=new zC([],{},{},"",{},Vn,n,null,t.root,-1,{});return new f4("",new Zl(a,[]))}(t,n),i=new $n([new L_("",{})]),o=new $n({}),r=new $n({}),a=new $n({}),s=new $n(""),l=new Cr(i,o,a,s,r,Vn,n,e.root);return l.snapshot=e.root,new u4(new Zl(l,[]),e)}class Cr{constructor(n,e,i,o,r,a,s,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(be(n=>pf(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(be(n=>pf(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function p4(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const o=e[i],r=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function qQ(t){return t.reduce((n,e)=>({params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign({},n.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class zC{constructor(n,e,i,o,r,a,s,l,d,g,O){this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=d,this._lastPathIndex=g,this._resolve=O}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=pf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=pf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class f4 extends d4{constructor(n,e){super(e),this.url=n,GP(this,e)}toString(){return g4(this._root)}}function GP(t,n){n.value._routerState=t,n.children.forEach(e=>GP(t,e))}function g4(t){const n=t.children.length>0?` { ${t.children.map(g4).join(", ")} } `:"";return`${t.value}${n}`}function $P(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ml(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),ml(n.params,e.params)||t.params.next(e.params),function SQ(t,n){if(t.length!==n.length)return!1;for(let e=0;eml(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||qP(t.parent,n.parent))}function z_(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function QQ(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return z_(t,i,o);return z_(t,i)})}(t,n,e);return new Zl(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>z_(t,s)),a}}const i=function YQ(t){return new Cr(new $n(t.url),new $n(t.params),new $n(t.queryParams),new $n(t.fragment),new $n(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>z_(t,r));return new Zl(i,o)}}function HC(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function H_(t){return"object"==typeof t&&null!=t&&t.outlets}function KP(t,n,e,i,o){let r={};if(i&&vr(i,(s,l)=>{r[l]=Array.isArray(s)?s.map(d=>`${d}`):`${s}`}),t===n)return new Eu(e,r,o);const a=m4(t,n,e);return new Eu(a,r,o)}function m4(t,n,e){const i={};return vr(t.children,(o,r)=>{i[r]=o===n?e:m4(o,n,e)}),new Kn(t.segments,i)}class _4{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&HC(i[0]))throw new Error("Root segment cannot have matrix parameters");const o=i.find(H_);if(o&&o!==JR(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class QP{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function b4(t,n,e){if(t||(t=new Kn([],{})),0===t.segments.length&&t.hasChildren())return VC(t,n,e);const i=function nY(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;const a=t.segments[o],s=e[i];if(H_(s))break;const l=`${s}`,d=i0&&void 0===l)break;if(l&&d&&"object"==typeof d&&void 0===d.outlets){if(!C4(l,d,a))return r;i+=2}else{if(!C4(l,{},a))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(o[a]=b4(t.children[a],n,r))}),vr(t.children,(r,a)=>{void 0===i[a]&&(o[a]=r)}),new Kn(t.segments,o)}}function YP(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=YP(new Kn([],{}),0,e))}),n}function v4(t){const n={};return vr(t,(e,i)=>n[i]=`${e}`),n}function C4(t,n,e){return t==e.path&&ml(n,e.parameters)}class rY{constructor(n,e,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),$P(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=ff(e);n.children.forEach(r=>{const a=r.value.outlet;this.deactivateRoutes(r,o[a],i),delete o[a]}),vr(o,(r,a)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else r&&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){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=ff(n);for(const a of Object.keys(r))this.deactivateRouteAndItsChildren(r[a],o);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=ff(n);for(const a of Object.keys(r))this.deactivateRouteAndItsChildren(r[a],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const o=ff(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new OQ(r.value.snapshot))}),n.children.length&&this.forwardEvent(new wQ(n.value.snapshot))}activateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if($P(o),o===r)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),$P(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=function aY(t){for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(o.snapshot),l=s?s.module.componentFactoryResolver:null;a.attachRef=null,a.route=o,a.resolver=l,a.outlet&&a.outlet.activateWith(o,l),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class XP{constructor(n,e){this.routes=n,this.module=e}}function id(t){return"function"==typeof t}function Fu(t){return t instanceof Eu}const V_=Symbol("INITIAL_VALUE");function U_(){return io(t=>TC(t.map(n=>n.pipe(zn(1),bo(V_)))).pipe(HR((n,e)=>{let i=!1;return e.reduce((o,r,a)=>o!==V_?o:(r===V_&&(i=!0),i||!1!==r&&a!==e.length-1&&!Fu(r)?o:r),n)},V_),Hn(n=>n!==V_),be(n=>Fu(n)?n:!0===n),zn(1)))}class hY{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new j_,this.attachRef=null}}class j_{constructor(){this.contexts=new Map}onChildOutletCreated(n,e){const i=this.getOrCreateContext(n);i.outlet=e,this.contexts.set(n,i)}onChildOutletDestroyed(n){const e=this.getContext(n);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let e=this.getContext(n);return e||(e=new hY,this.contexts.set(n,e)),e}getContext(n){return this.contexts.get(n)||null}}let UC=(()=>{class t{constructor(e,i,o,r,a){this.parentContexts=e,this.location=i,this.resolver=o,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ee,this.deactivateEvents=new Ee,this.attachEvents=new Ee,this.detachEvents=new Ee,this.name=r||Vn,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const 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.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const a=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,l=new pY(e,s,this.location.injector);this.activated=this.location.createComponent(a,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(S(j_),S(go),S(js),ga("name"),S(Ln))},t.\u0275dir=je({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class pY{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Cr?this.route:n===j_?this.childContexts:this.parent.get(n,e)}}let y4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=qe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&ne(0,"router-outlet")},directives:[UC],encapsulation:2}),t})();function x4(t,n=""){for(let e=0;eds(i)===n);return e.push(...t.filter(i=>ds(i)!==n)),e}const M4={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jC(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},M4):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||kQ)(e,t,n);if(!r)return Object.assign({},M4);const a={};vr(r.posParams,(l,d)=>{a[d]=l.path});const s=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function WC(t,n,e,i,o="corrected"){if(e.length>0&&function bY(t,n,e){return e.some(i=>GC(t,n,i)&&ds(i)!==Vn)}(t,e,i)){const a=new Kn(n,function _Y(t,n,e,i){const o={};o[Vn]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&ds(r)!==Vn){const a=new Kn([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,o[ds(r)]=a}return o}(t,n,i,new Kn(e,t.children)));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&function vY(t,n,e){return e.some(i=>GC(t,n,i))}(t,e,i)){const a=new Kn(t.segments,function mY(t,n,e,i,o,r){const a={};for(const s of i)if(GC(t,e,s)&&!o[ds(s)]){const l=new Kn([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===r?t.segments.length:n.length,a[ds(s)]=l}return Object.assign(Object.assign({},o),a)}(t,n,e,i,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:e}}const r=new Kn(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function GC(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function O4(t,n,e,i){return!!(ds(t)===i||i!==Vn&&GC(n,e,t))&&("**"===t.path||jC(n,t,e).matched)}function P4(t,n,e){return 0===n.length&&!t.children[e]}class $C{constructor(n){this.segmentGroup=n||null}}class A4{constructor(n){this.urlTree=n}}function W_(t){return hf(new $C(t))}function k4(t){return hf(new A4(t))}class wY{constructor(n,e,i,o,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0,this.ngModule=n.get(ql)}apply(){const n=WC(this.urlTree.root,[],[],this.config).segmentGroup,e=new Kn(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Vn).pipe(be(r=>this.createUrlTree(ZP(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Na(r=>{if(r instanceof A4)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof $C?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,Vn).pipe(be(o=>this.createUrlTree(ZP(o),n.queryParams,n.fragment))).pipe(Na(o=>{throw o instanceof $C?this.noMatchError(o):o}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,e,i){const o=n.segments.length>0?new Kn([],{[Vn]:n}):n;return new Eu(o,e,i)}expandSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(be(r=>new Kn([],r))):this.expandSegment(n,i,e,i.segments,o,!0)}expandChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Yi(o).pipe(Su(r=>{const a=i.children[r],s=w4(e,r);return this.expandSegmentGroup(n,s,a,r).pipe(be(l=>({segment:l,outlet:r})))}),HR((r,a)=>(r[a.outlet]=a.segment,r),{}),function _Q(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Hn((o,r)=>t(o,r,i)):me,zP(1),e?UR(n):VR(()=>new FC))}())}expandSegment(n,e,i,o,r,a){return Yi(i).pipe(Su(s=>this.expandSegmentAgainstRoute(n,e,i,s,o,r,a).pipe(Na(d=>{if(d instanceof $C)return At(null);throw d}))),nd(s=>!!s),Na((s,l)=>{if(s instanceof FC||"EmptyError"===s.name)return P4(e,o,r)?At(new Kn([],{})):W_(e);throw s}))}expandSegmentAgainstRoute(n,e,i,o,r,a,s){return O4(o,e,r,a)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,e,o,r,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a):W_(e):W_(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,o,a):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?k4(r):this.lineralizeSegments(i,r).pipe(ro(a=>{const s=new Kn(a,{});return this.expandSegment(n,s,e,a,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,a){const{matched:s,consumedSegments:l,remainingSegments:d,positionalParamSegments:g}=jC(e,o,r);if(!s)return W_(e);const O=this.applyRedirectCommands(l,o.redirectTo,g);return o.redirectTo.startsWith("/")?k4(O):this.lineralizeSegments(o,O).pipe(ro(D=>this.expandSegment(n,e,i,D.concat(d),a,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){if("**"===i.path)return i.loadChildren?(i._loadedConfig?At(i._loadedConfig):this.configLoader.load(n.injector,i)).pipe(be(O=>(i._loadedConfig=O,new Kn(o,{})))):At(new Kn(o,{}));const{matched:a,consumedSegments:s,remainingSegments:l}=jC(e,i,o);return a?this.getChildConfig(n,i,o).pipe(ro(g=>{const O=g.module,D=g.routes,{segmentGroup:L,slicedSegments:W}=WC(e,s,l,D),ee=new Kn(L.segments,L.children);if(0===W.length&&ee.hasChildren())return this.expandChildren(O,D,ee).pipe(be(Ce=>new Kn(s,Ce)));if(0===D.length&&0===W.length)return At(new Kn(s,{}));const he=ds(i)===r;return this.expandSegment(O,ee,D,W,he?Vn:r,!0).pipe(be(ce=>new Kn(s.concat(ce.segments),ce.children)))})):W_(e)}getChildConfig(n,e,i){return e.children?At(new XP(e.children,n)):e.loadChildren?void 0!==e._loadedConfig?At(e._loadedConfig):this.runCanLoadGuards(n.injector,e,i).pipe(ro(o=>o?this.configLoader.load(n.injector,e).pipe(be(r=>(e._loadedConfig=r,r))):function yY(t){return hf(VP(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))}(e))):At(new XP([],n))}runCanLoadGuards(n,e,i){const o=e.canLoad;return o&&0!==o.length?At(o.map(a=>{const s=n.get(a);let l;if(function lY(t){return t&&id(t.canLoad)}(s))l=s.canLoad(e,i);else{if(!id(s))throw new Error("Invalid CanLoad guard");l=s(e,i)}return _l(l)})).pipe(U_(),Mn(a=>{if(!Fu(a))return;const s=VP(`Redirecting to "${this.urlSerializer.serialize(a)}"`);throw s.url=a,s}),be(a=>!0===a)):At(!0)}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return At(i);if(o.numberOfChildren>1||!o.children[Vn])return hf(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n.redirectTo}'`));o=o.children[Vn]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreatreUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new Eu(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return vr(n,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let a={};return vr(e.children,(s,l)=>{a[l]=this.createSegmentGroup(n,s,i,o)}),new Kn(r,a)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${n}'. Cannot find '${e.path}'.`);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}function ZP(t){const n={};for(const i of Object.keys(t.children)){const r=ZP(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function MY(t){if(1===t.numberOfChildren&&t.children[Vn]){const n=t.children[Vn];return new Kn(t.segments.concat(n.segments),n.children)}return t}(new Kn(t.segments,n))}class S4{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class qC{constructor(n,e){this.component=n,this.route=e}}function PY(t,n,e){const i=t._root;return G_(i,n?n._root:null,e,[i.value])}function KC(t,n,e){const i=function kY(t){if(!t)return null;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(i?i.module.injector:e).get(t)}function G_(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=ff(n);return t.children.forEach(a=>{(function SY(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function DY(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Tu(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Tu(t.url,n.url)||!ml(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qP(t,n)||!ml(t.queryParams,n.queryParams);default:return!qP(t,n)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new S4(i)):(r.data=a.data,r._resolvedData=a._resolvedData),G_(t,n,r.component?s?s.children:null:e,i,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new qC(s.outlet.component,a))}else a&&$_(n,s,o),o.canActivateChecks.push(new S4(i)),G_(t,null,r.component?s?s.children:null:e,i,o)})(a,r[a.value.outlet],e,i.concat([a.value]),o),delete r[a.value.outlet]}),vr(r,(a,s)=>$_(a,e.getContext(s),o)),o}function $_(t,n,e){const i=ff(t),o=t.value;vr(i,(r,a)=>{$_(r,o.component?n?n.children.getContext(a):null:n,e)}),e.canDeactivateChecks.push(new qC(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}class zY{}function D4(t){return new Se(n=>n.error(t))}class VY{constructor(n,e,i,o,r,a){this.rootComponentType=n,this.config=e,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=a}recognize(){const n=WC(this.urlTree.root,[],[],this.config.filter(a=>void 0===a.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,n,Vn);if(null===e)return null;const i=new zC([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Vn,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Zl(i,e),r=new f4(this.url,o);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(n){const e=n.value,i=p4(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(n,e):this.processSegment(n,e,e.segments,i)}processChildren(n,e){const i=[];for(const r of Object.keys(e.children)){const a=e.children[r],s=w4(n,r),l=this.processSegmentGroup(s,a,r);if(null===l)return null;i.push(...l)}const o=E4(i);return function UY(t){t.sort((n,e)=>n.value.outlet===Vn?-1:e.value.outlet===Vn?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}processSegment(n,e,i,o){for(const r of n){const a=this.processSegmentAgainstRoute(r,e,i,o);if(null!==a)return a}return P4(e,i,o)?[]:null}processSegmentAgainstRoute(n,e,i,o){if(n.redirectTo||!O4(n,e,i,o))return null;let r,a=[],s=[];if("**"===n.path){const L=i.length>0?JR(i).parameters:{};r=new zC(i,L,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,I4(n),ds(n),n.component,n,T4(e),F4(e)+i.length,R4(n))}else{const L=jC(e,n,i);if(!L.matched)return null;a=L.consumedSegments,s=L.remainingSegments,r=new zC(a,L.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,I4(n),ds(n),n.component,n,T4(e),F4(e)+a.length,R4(n))}const l=function jY(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(n),{segmentGroup:d,slicedSegments:g}=WC(e,a,s,l.filter(L=>void 0===L.redirectTo),this.relativeLinkResolution);if(0===g.length&&d.hasChildren()){const L=this.processChildren(l,d);return null===L?null:[new Zl(r,L)]}if(0===l.length&&0===g.length)return[new Zl(r,[])];const O=ds(n)===o,D=this.processSegment(l,d,g,O?Vn:o);return null===D?null:[new Zl(r,D)]}}function WY(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function E4(t){const n=[],e=new Set;for(const i of t){if(!WY(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=E4(i.children);n.push(new Zl(i.value,o))}return n.filter(i=>!e.has(i))}function T4(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function F4(t){let n=t,e=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift?n._segmentIndexShift:0;return e-1}function I4(t){return t.data||{}}function R4(t){return t.resolve||{}}function B4(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function eA(t){return io(n=>{const e=t(n);return e?Yi(e).pipe(be(()=>n)):At(n)})}class JY extends class XY{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const tA=new Ze("ROUTES");class L4{constructor(n,e,i,o){this.injector=n,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=o}load(n,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const o=this.loadModuleFactory(e.loadChildren).pipe(be(r=>{this.onLoadEndListener&&this.onLoadEndListener(e);const a=r.create(n);return new XP(XR(a.injector.get(tA,void 0,en.Self|en.Optional)).map(JP),a)}),Na(r=>{throw e._loader$=void 0,r}));return e._loader$=new zR(o,()=>new xe).pipe(NP()),e._loader$}loadModuleFactory(n){return _l(n()).pipe(ro(e=>e instanceof H3?At(e):Yi(this.compiler.compileModuleAsync(e))))}}class eX{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function tX(t){throw t}function nX(t,n,e){return n.parse("/")}function N4(t,n){return At(null)}const iX={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},oX={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let cn=(()=>{class t{constructor(e,i,o,r,a,s,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=o,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new xe,this.errorHandler=tX,this.malformedUriErrorHandler=nX,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:N4,afterPreactivation:N4},this.urlHandlingStrategy=new eX,this.routeReuseStrategy=new JY,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(ql),this.console=a.get(Sj);const O=a.get(Dt);this.isNgZoneEnabled=O instanceof Dt&&Dt.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function DQ(){return new Eu(new Kn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new L4(a,s,D=>this.triggerEvent(new $R(D)),D=>this.triggerEvent(new qR(D))),this.routerState=h4(this.currentUrlTree,this.rootComponentType),this.transitions=new $n({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Hn(o=>0!==o.id),be(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),io(o=>{let r=!1,a=!1;return At(o).pipe(Mn(s=>{this.currentNavigation={id:s.id,initialUrl:s.currentRawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),io(s=>{const l=this.browserUrlTree.toString(),d=!this.navigated||s.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||d)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return z4(s.source)&&(this.browserUrlTree=s.extractedUrl),At(s).pipe(io(O=>{const D=this.transitions.getValue();return i.next(new B_(O.id,this.serializeUrl(O.extractedUrl),O.source,O.restoredState)),D!==this.transitions.getValue()?Wr:Promise.resolve(O)}),function OY(t,n,e,i){return io(o=>function xY(t,n,e,i,o){return new wY(t,n,e,i,o).apply()}(t,n,e,o.extractedUrl,i).pipe(be(r=>Object.assign(Object.assign({},o),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Mn(O=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:O.urlAfterRedirects})}),function GY(t,n,e,i,o){return ro(r=>function HY(t,n,e,i,o="emptyOnly",r="legacy"){try{const a=new VY(t,n,e,i,o,r).recognize();return null===a?D4(new zY):At(a)}catch(a){return D4(a)}}(t,n,r.urlAfterRedirects,e(r.urlAfterRedirects),i,o).pipe(be(a=>Object.assign(Object.assign({},r),{targetSnapshot:a}))))}(this.rootComponentType,this.config,O=>this.serializeUrl(O),this.paramsInheritanceStrategy,this.relativeLinkResolution),Mn(O=>{if("eager"===this.urlUpdateStrategy){if(!O.extras.skipLocationChange){const L=this.urlHandlingStrategy.merge(O.urlAfterRedirects,O.rawUrl);this.setBrowserUrl(L,O)}this.browserUrlTree=O.urlAfterRedirects}const D=new bQ(O.id,this.serializeUrl(O.extractedUrl),this.serializeUrl(O.urlAfterRedirects),O.targetSnapshot);i.next(D)}));if(d&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:D,extractedUrl:L,source:W,restoredState:ee,extras:he}=s,ae=new B_(D,this.serializeUrl(L),W,ee);i.next(ae);const ce=h4(L,this.rootComponentType).snapshot;return At(Object.assign(Object.assign({},s),{targetSnapshot:ce,urlAfterRedirects:L,extras:Object.assign(Object.assign({},he),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),Wr}),eA(s=>{const{targetSnapshot:l,id:d,extractedUrl:g,rawUrl:O,extras:{skipLocationChange:D,replaceUrl:L}}=s;return this.hooks.beforePreactivation(l,{navigationId:d,appliedUrlTree:g,rawUrlTree:O,skipLocationChange:!!D,replaceUrl:!!L})}),Mn(s=>{const l=new vQ(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(l)}),be(s=>Object.assign(Object.assign({},s),{guards:PY(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function EY(t,n){return ro(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return 0===a.length&&0===r.length?At(Object.assign(Object.assign({},e),{guardsResult:!0})):function TY(t,n,e,i){return Yi(t).pipe(ro(o=>function NY(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?At(r.map(s=>{const l=KC(s,n,o);let d;if(function uY(t){return t&&id(t.canDeactivate)}(l))d=_l(l.canDeactivate(t,n,e,i));else{if(!id(l))throw new Error("Invalid CanDeactivate guard");d=_l(l(t,n,e,i))}return d.pipe(nd())})).pipe(U_()):At(!0)}(o.component,o.route,e,n,i)),nd(o=>!0!==o,!0))}(a,i,o,t).pipe(ro(s=>s&&function sY(t){return"boolean"==typeof t}(s)?function FY(t,n,e,i){return Yi(n).pipe(Su(o=>Qs(function RY(t,n){return null!==t&&n&&n(new xQ(t)),At(!0)}(o.route.parent,i),function IY(t,n){return null!==t&&n&&n(new MQ(t)),At(!0)}(o.route,i),function LY(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>function AY(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>ku(()=>At(a.guards.map(l=>{const d=KC(l,a.node,e);let g;if(function dY(t){return t&&id(t.canActivateChild)}(d))g=_l(d.canActivateChild(i,t));else{if(!id(d))throw new Error("Invalid CanActivateChild guard");g=_l(d(i,t))}return g.pipe(nd())})).pipe(U_())));return At(r).pipe(U_())}(t,o.path,e),function BY(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return At(!0);const o=i.map(r=>ku(()=>{const a=KC(r,n,e);let s;if(function cY(t){return t&&id(t.canActivate)}(a))s=_l(a.canActivate(n,t));else{if(!id(a))throw new Error("Invalid CanActivate guard");s=_l(a(n,t))}return s.pipe(nd())}));return At(o).pipe(U_())}(t,o.route,e))),nd(o=>!0!==o,!0))}(i,r,t,n):At(s)),be(s=>Object.assign(Object.assign({},e),{guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),Mn(s=>{if(Fu(s.guardsResult)){const d=VP(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw d.url=s.guardsResult,d}const l=new CQ(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(l)}),Hn(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,""),!1)),eA(s=>{if(s.guards.canActivateChecks.length)return At(s).pipe(Mn(l=>{const d=new yQ(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(d)}),io(l=>{let d=!1;return At(l).pipe(function $Y(t,n){return ro(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return At(e);let r=0;return Yi(o).pipe(Su(a=>function qY(t,n,e,i){return function KY(t,n,e,i){const o=B4(t);if(0===o.length)return At({});const r={};return Yi(o).pipe(ro(a=>function QY(t,n,e,i){const o=KC(t,n,i);return _l(o.resolve?o.resolve(n,e):o(n,e))}(t[a],n,e,i).pipe(Mn(s=>{r[a]=s}))),zP(1),ro(()=>B4(r).length===o.length?At(r):Wr))}(t._resolve,t,n,i).pipe(be(r=>(t._resolvedData=r,t.data=Object.assign(Object.assign({},t.data),p4(t,e).resolve),null)))}(a.route,i,t,n)),Mn(()=>r++),zP(1),ro(a=>r===o.length?At(e):Wr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Mn({next:()=>d=!0,complete:()=>{d||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Mn(l=>{const d=new GR(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(d)}))}),eA(s=>{const{targetSnapshot:l,id:d,extractedUrl:g,rawUrl:O,extras:{skipLocationChange:D,replaceUrl:L}}=s;return this.hooks.afterPreactivation(l,{navigationId:d,appliedUrlTree:g,rawUrlTree:O,skipLocationChange:!!D,replaceUrl:!!L})}),be(s=>{const l=function KQ(t,n,e){const i=z_(t,n._root,e?e._root:void 0);return new u4(i,n)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:l})}),Mn(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((t,n,e)=>be(i=>(new rY(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),Mn({next(){r=!0},complete(){r=!0}}),jR(()=>{var s;r||a||this.cancelNavigationTransition(o,`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===o.id&&(this.currentNavigation=null)}),Na(s=>{if(a=!0,function AQ(t){return t&&t[QR]}(s)){const l=Fu(s.url);l||(this.navigated=!0,this.restoreHistory(o,!0));const d=new HP(o.id,this.serializeUrl(o.extractedUrl),s.message);i.next(d),l?setTimeout(()=>{const g=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),O={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||z4(o.source)};this.scheduleNavigation(g,"imperative",null,O,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const l=new WR(o.id,this.serializeUrl(o.extractedUrl),s);i.next(l);try{o.resolve(this.errorHandler(s))}catch(d){o.reject(d)}}return Wr}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var o;const r={replaceUrl:!0},a=(null===(o=e.state)||void 0===o?void 0:o.navigationId)?e.state:null;if(a){const l=Object.assign({},a);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,a,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){x4(e),this.config=e.map(JP),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,d=o||this.routerState.root,g=l?this.currentUrlTree.fragment:a;let O=null;switch(s){case"merge":O=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":O=this.currentUrlTree.queryParams;break;default:O=r||null}return null!==O&&(O=this.removeEmptyProps(O)),function XQ(t,n,e,i,o){if(0===e.length)return KP(n.root,n.root,n.root,i,o);const r=function JQ(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new _4(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,a)=>{if("object"==typeof r&&null!=r){if(r.outlets){const s={};return vr(r.outlets,(l,d)=>{s[d]="string"==typeof l?l.split("/"):l}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===a?(r.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&o.push(s))}),o):[...o,r]},[]);return new _4(e,n,i)}(e);if(r.toRoot())return KP(n.root,n.root,new Kn([],{}),i,o);const a=function ZQ(t,n,e){if(t.isAbsolute)return new QP(n.root,!0,0);if(-1===e.snapshot._lastPathIndex){const r=e.snapshot._urlSegment;return new QP(r,r===n.root,0)}const i=HC(t.commands[0])?0:1;return function eY(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Error("Invalid number of '../'");o=i.segments.length}return new QP(i,!1,o-r)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,n,t),s=a.processChildren?VC(a.segmentGroup,a.index,r.commands):b4(a.segmentGroup,a.index,r.commands);return KP(n.root,a.segmentGroup,s,i,o)}(d,this.currentUrlTree,e,O,null!=g?g:null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=Fu(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function rX(t){for(let n=0;n{const r=e[o];return null!=r&&(i[o]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Du(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,o,r,a){var s,l;if(this.disposed)return Promise.resolve(!1);let d,g,O;a?(d=a.resolve,g=a.reject,O=a.promise):O=new Promise((W,ee)=>{d=W,g=ee});const D=++this.navigationId;let L;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),L=o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):L=0,this.setTransition({id:D,targetPageId:L,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:d,reject:g,promise:O,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),O.catch(W=>Promise.reject(W))}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(e,i=!1){var o,r;if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===a?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const o=new HP(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){jp()},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();function z4(t){return"imperative"!==t}let bl=(()=>{class t{constructor(e,i,o,r,a){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.commands=null,this.onChanges=new xe,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,o=this.el.nativeElement;null!==e?i.setAttribute(o,"tabindex",e):i.removeAttribute(o,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:gf(this.skipLocationChange),replaceUrl:gf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(S(cn),S(Cr),ga("tabindex"),S(_r),S(Ct))},t.\u0275dir=je({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&se("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})(),Iu=(()=>{class t{constructor(e,i,o){this.router=e,this.route=i,this.locationStrategy=o,this.commands=null,this.href=null,this.onChanges=new xe,this.subscription=e.events.subscribe(r=>{r instanceof Du&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,o,r,a){if(0!==e||i||o||r||a||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:gf(this.skipLocationChange),replaceUrl:gf(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gf(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(S(cn),S(Cr),S(Mu))},t.\u0275dir=je({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&se("click",function(r){return i.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&e&&Lt("target",i.target)("href",i.href,gn)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[fn]}),t})();function gf(t){return""===t||!!t}let H4=(()=>{class t{constructor(e,i,o,r,a,s){this.router=e,this.element=i,this.renderer=o,this.cdr=r,this.link=a,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ee,this.routerEventsSubscription=e.events.subscribe(l=>{l instanceof Du&&this.update()})}ngAfterContentInit(){At(this.links.changes,this.linksWithHrefs.changes,At(null)).pipe(kd()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var e;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();const i=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=Yi(i).pipe(kd()).subscribe(o=>{this.isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function aX(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}return t.\u0275fac=function(e){return new(e||t)(S(cn),S(Ct),S(_r),S(Ln),S(bl,8),S(Iu,8))},t.\u0275dir=je({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,o){if(1&e&&(tn(o,bl,5),tn(o,Iu,5)),2&e){let r;Qe(r=Ye())&&(i.links=r),Qe(r=Ye())&&(i.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[fn]}),t})();class V4{}class U4{preload(n,e){return At(null)}}let j4=(()=>{class t{constructor(e,i,o,r){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=new L4(o,i,l=>e.triggerEvent(new $R(l)),l=>e.triggerEvent(new qR(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(Hn(e=>e instanceof Du),Su(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(ql);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const r of i)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const a=r._loadedConfig;o.push(this.processRoutes(a.module,a.routes))}else r.loadChildren&&!r.canLoad?o.push(this.preloadConfig(e,r)):r.children&&o.push(this.processRoutes(e,r.children));return Yi(o).pipe(kd(),be(r=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?At(i._loadedConfig):this.loader.load(e.injector,i)).pipe(ro(r=>(i._loadedConfig=r,this.processRoutes(r.module,r.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(de(cn),de(MF),de(bt),de(V4))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),nA=(()=>{class t{constructor(e,i,o={}){this.router=e,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof B_?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Du&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof KR&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new KR(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){jp()},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();const Ru=new Ze("ROUTER_CONFIGURATION"),W4=new Ze("ROUTER_FORROOT_GUARD"),lX=[b_,{provide:r4,useClass:a4},{provide:cn,useFactory:function pX(t,n,e,i,o,r,a={},s,l){const d=new cn(null,t,n,e,i,o,XR(r));return s&&(d.urlHandlingStrategy=s),l&&(d.routeReuseStrategy=l),function fX(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(a,d),a.enableTracing&&d.events.subscribe(g=>{var O,D;null===(O=console.group)||void 0===O||O.call(console,`Router Event: ${g.constructor.name}`),console.log(g.toString()),console.log(g),null===(D=console.groupEnd)||void 0===D||D.call(console)}),d},deps:[r4,j_,b_,bt,MF,tA,Ru,[class ZY{},new fr],[class YY{},new fr]]},j_,{provide:Cr,useFactory:function gX(t){return t.routerState.root},deps:[cn]},j4,U4,class sX{preload(n,e){return e().pipe(Na(()=>At(null)))}},{provide:Ru,useValue:{enableTracing:!1}}];function cX(){return new SF("Router",cn)}let yr=(()=>{class t{constructor(e,i){}static forRoot(e,i){return{ngModule:t,providers:[lX,G4(e),{provide:W4,useFactory:hX,deps:[[cn,new fr,new Bt]]},{provide:Ru,useValue:i||{}},{provide:Mu,useFactory:uX,deps:[wu,[new Nc(WO),new fr],Ru]},{provide:nA,useFactory:dX,deps:[cn,DG,Ru]},{provide:V4,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:U4},{provide:SF,multi:!0,useFactory:cX},[iA,{provide:G1,multi:!0,useFactory:mX,deps:[iA]},{provide:$4,useFactory:_X,deps:[iA]},{provide:wF,multi:!0,useExisting:$4}]]}}static forChild(e){return{ngModule:t,providers:[G4(e)]}}}return t.\u0275fac=function(e){return new(e||t)(de(W4,8),de(cn,8))},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})();function dX(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new nA(t,n,e)}function uX(t,n,e={}){return e.useHash?new yW(t,n):new KF(t,n)}function hX(t){return"guarded"}function G4(t){return[{provide:Q0,multi:!0,useValue:t},{provide:tA,multi:!0,useValue:t}]}let iA=(()=>{class t{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new xe}appInitializer(){return this.injector.get(bW,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const o=new Promise(s=>i=s),r=this.injector.get(cn),a=this.injector.get(Ru);return"disabled"===a.initialNavigation?(r.setUpLocationChangeListener(),i(!0)):"enabled"===a.initialNavigation||"enabledBlocking"===a.initialNavigation?(r.hooks.afterPreactivation=()=>this.initNavigation?At(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),r.initialNavigation()):i(!0),o})}bootstrapListener(e){const i=this.injector.get(Ru),o=this.injector.get(j4),r=this.injector.get(nA),a=this.injector.get(cn),s=this.injector.get(__);e===s.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&a.initialNavigation(),o.setUpPreloading(),r.init(),a.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(de(bt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();function mX(t){return t.appInitializer.bind(t)}function _X(t){return t.bootstrapListener.bind(t)}const $4=new Ze("Router Initializer");class q4{}class K4{}class ai{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const 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 ai?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){const e=new ai;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ai?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===r.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class vX{encodeKey(n){return Q4(n)}encodeValue(n){return Q4(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const yX=/%(\d[a-f0-9])/gi,xX={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Q4(t){return encodeURIComponent(t).replace(yX,(n,e)=>{var i;return null!==(i=xX[e])&&void 0!==i?i:n})}function Y4(t){return`${t}`}class vl{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new vX,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function CX(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[a,s]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const 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){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,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=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new vl({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Y4(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(Y4(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class wX{constructor(){this.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 X4(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function J4(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Z4(t){return"undefined"!=typeof FormData&&t instanceof FormData}class q_{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function MX(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new ai),this.context||(this.context=new wX),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sD.set(L,n.setHeaders[L]),d)),n.setParams&&(g=Object.keys(n.setParams).reduce((D,L)=>D.set(L,n.setParams[L]),g)),new q_(i,o,a,{params:g,headers:d,context:O,reportProgress:l,responseType:r,withCredentials:s})}}var vo=(()=>((vo=vo||{})[vo.Sent=0]="Sent",vo[vo.UploadProgress=1]="UploadProgress",vo[vo.ResponseHeader=2]="ResponseHeader",vo[vo.DownloadProgress=3]="DownloadProgress",vo[vo.Response=4]="Response",vo[vo.User=5]="User",vo))();class oA{constructor(n,e=200,i="OK"){this.headers=n.headers||new ai,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class rA extends oA{constructor(n={}){super(n),this.type=vo.ResponseHeader}clone(n={}){return new rA({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class mf extends oA{constructor(n={}){super(n),this.type=vo.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new mf({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class K_ extends oA{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function aA(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}}let _i=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof q_)r=e;else{let l,d;l=o.headers instanceof ai?o.headers:new ai(o.headers),o.params&&(d=o.params instanceof vl?o.params:new vl({fromObject:o.params})),r=new q_(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=At(r).pipe(Su(l=>this.handler.handle(l)));if(e instanceof q_||"events"===o.observe)return a;const s=a.pipe(Hn(l=>l instanceof mf));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(be(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(be(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(be(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(be(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new vl).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,aA(o,i))}post(e,i,o={}){return this.request("POST",e,aA(o,i))}put(e,i,o={}){return this.request("PUT",e,aA(o,i))}}return t.\u0275fac=function(e){return new(e||t)(de(q4))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();class e5{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const Bu=new Ze("HTTP_INTERCEPTORS");let sA,PX=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),AX=0;class t5{}let n5=(()=>{class t{constructor(e,i){this.callbackMap=e,this.document=i,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+AX++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");return new Se(i=>{const o=this.nextCallback(),r=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${o}$1`),a=this.document.createElement("script");a.src=r;let s=null,l=!1;this.callbackMap[o]=D=>{delete this.callbackMap[o],s=D,l=!0};const d=()=>{a.parentNode&&a.parentNode.removeChild(a),delete this.callbackMap[o]};return a.addEventListener("load",D=>{this.resolvedPromise.then(()=>{d(),l?(i.next(new mf({body:s,status:200,statusText:"OK",url:r})),i.complete()):i.error(new K_({url:r,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),a.addEventListener("error",D=>{d(),i.error(new K_({error:D,status:0,statusText:"JSONP Error",url:r}))}),this.document.body.appendChild(a),i.next({type:vo.Sent}),()=>{l||this.removeListeners(a),d()}})}removeListeners(e){sA||(sA=this.document.implementation.createHTMLDocument()),sA.adoptNode(e)}}return t.\u0275fac=function(e){return new(e||t)(de(t5),de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),EX=(()=>{class t{constructor(e){this.jsonp=e}intercept(e,i){return"JSONP"===e.method?this.jsonp.handle(e):i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(de(n5))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();const TX=/^\)\]\}',?\n/;let o5=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Se(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((L,W)=>o.setRequestHeader(L,W.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const L=e.detectContentTypeHeader();null!==L&&o.setRequestHeader("Content-Type",L)}if(e.responseType){const L=e.responseType.toLowerCase();o.responseType="json"!==L?L:"text"}const r=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const L=o.statusText||"OK",W=new ai(o.getAllResponseHeaders()),ee=function FX(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||e.url;return a=new rA({headers:W,status:o.status,statusText:L,url:ee}),a},l=()=>{let{headers:L,status:W,statusText:ee,url:he}=s(),ae=null;204!==W&&(ae=void 0===o.response?o.responseText:o.response),0===W&&(W=ae?200:0);let ce=W>=200&&W<300;if("json"===e.responseType&&"string"==typeof ae){const Ce=ae;ae=ae.replace(TX,"");try{ae=""!==ae?JSON.parse(ae):null}catch(Me){ae=Ce,ce&&(ce=!1,ae={error:Me,text:ae})}}ce?(i.next(new mf({body:ae,headers:L,status:W,statusText:ee,url:he||void 0})),i.complete()):i.error(new K_({error:ae,headers:L,status:W,statusText:ee,url:he||void 0}))},d=L=>{const{url:W}=s(),ee=new K_({error:L,status:o.status||0,statusText:o.statusText||"Unknown Error",url:W||void 0});i.error(ee)};let g=!1;const O=L=>{g||(i.next(s()),g=!0);let W={type:vo.DownloadProgress,loaded:L.loaded};L.lengthComputable&&(W.total=L.total),"text"===e.responseType&&!!o.responseText&&(W.partialText=o.responseText),i.next(W)},D=L=>{let W={type:vo.UploadProgress,loaded:L.loaded};L.lengthComputable&&(W.total=L.total),i.next(W)};return o.addEventListener("load",l),o.addEventListener("error",d),o.addEventListener("timeout",d),o.addEventListener("abort",d),e.reportProgress&&(o.addEventListener("progress",O),null!==r&&o.upload&&o.upload.addEventListener("progress",D)),o.send(r),i.next({type:vo.Sent}),()=>{o.removeEventListener("error",d),o.removeEventListener("abort",d),o.removeEventListener("load",l),o.removeEventListener("timeout",d),e.reportProgress&&(o.removeEventListener("progress",O),null!==r&&o.upload&&o.upload.removeEventListener("progress",D)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(de(gI))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();const lA=new Ze("XSRF_COOKIE_NAME"),cA=new Ze("XSRF_HEADER_NAME");class r5{}let IX=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=rI(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(de(Nt),de(ya),de(lA))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),dA=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(e);const r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(de(r5),de(cA))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),RX=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(Bu,[]);this.chain=i.reduceRight((o,r)=>new e5(o,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(de(K4),de(bt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();function BX(){return"object"==typeof window?window:{}}let LX=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:dA,useClass:PX}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:lA,useValue:e.cookieName}:[],e.headerName?{provide:cA,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({providers:[dA,{provide:Bu,useExisting:dA,multi:!0},{provide:r5,useClass:IX},{provide:lA,useValue:"XSRF-TOKEN"},{provide:cA,useValue:"X-XSRF-TOKEN"}]}),t})(),uA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({providers:[_i,{provide:q4,useClass:RX},o5,{provide:K4,useExisting:o5}],imports:[[LX.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),NX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({providers:[n5,{provide:t5,useFactory:BX},{provide:Bu,useClass:EX,multi:!0}]}),t})();const a5="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,VX="undefined"!=typeof Zone&&!!Zone.current;function s5(t){return VX?Zone.root.run(t):t()}function l5(t){if(t instanceof Error)return!0;if(null===t||"object"!=typeof t)return!1;const n=t;return gl(n.name)&&gl(n.message)&&(void 0===n.stack||gl(n.stack))}let WX=(()=>{class t{constructor(e){this._registeredAfterSendEventHandler=!1,this._options=Object.assign({logErrors:!0},e)}handleError(e){const i=this._extractError(e)||"Handled unknown error",o=s5(()=>QI(i,r=>(r.addEventProcessor(a=>(rf(a,{type:"angular",handled:!1}),a)),r)));if(this._options.logErrors&&console.error(i),this._options.showDialog){const r=_o().getClient();r&&r.on&&!this._registeredAfterSendEventHandler?(r.on("afterSendEvent",a=>{a.type||IR(Object.assign(Object.assign({},this._options.dialogOptions),{eventId:a.event_id}))}),this._registeredAfterSendEventHandler=!0):(!r||!r.on)&&IR(Object.assign(Object.assign({},this._options.dialogOptions),{eventId:o}))}}_extractError(e){if(this._options.extractor){const i=this._defaultExtractor.bind(this);return this._options.extractor(e,i)}return this._defaultExtractor(e)}_defaultExtractor(e){const i=function UX(t){return t&&t.ngOriginalError?t.ngOriginalError:t}(e);return i instanceof K_?function jX(t){return l5(t.error)?t.error:t.error instanceof ErrorEvent&&t.error.message?t.error.message:"string"==typeof t.error?`Server returned code ${t.status} with body "${t.error}"`:t.message}(i):"string"==typeof i||l5(i)?i:null}}return t.\u0275fac=function(e){return new(e||t)(de("errorHandlerOptions"))},t.\u0275prov=Te({factory:function(){return new t(de("errorHandlerOptions"))},token:t,providedIn:"root"}),t})();function GX(t){return new WX(t)}function Q_(){const t=_o();if(t){const n=t.getScope();if(n)return n.getTransaction()}}let p5=(()=>{class t{constructor(e){this._router=e,this.navStart$=this._router.events.pipe(Hn(i=>i instanceof B_),Mn(i=>{a5&&ln.error("Angular integration has tracing enabled, but Tracing integration is not configured")})),this.resEnd$=this._router.events.pipe(Hn(i=>i instanceof GR),Mn(i=>{const o=function QX(t){const n=[];let e=t&&t.firstChild;for(;e;){const o=e&&e.routeConfig&&e.routeConfig.path;if(null==o)break;n.push(o),e=e.firstChild}const i=n.filter(o=>o).join("/");return i?`/${i}/`:"/"}(i.state.root),r=Q_();r&&"url"===r.metadata.source&&r.setName(o,"route")})),this.navEnd$=this._router.events.pipe(Hn(i=>i instanceof Du||i instanceof HP||i instanceof WR),Mn(()=>{this._routingSpan&&(s5(()=>{this._routingSpan.finish()}),this._routingSpan=null)})),this._routingSpan=null,this._subscription=new G,this._subscription.add(this.navStart$.subscribe()),this._subscription.add(this.resEnd$.subscribe()),this._subscription.add(this.navEnd$.subscribe())}ngOnDestroy(){this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(de(cn))},t.\u0275prov=Te({factory:function(){return new t(de(cn))},token:t,providedIn:"root"}),t})();const on_baseUrl="https://publisher.linkvertise.com/api/v1/";function On(t){return null!=t&&"false"!=`${t}`}function wa(t,n=0){return function YX(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function QC(t){return Array.isArray(t)?t:[t]}function So(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Lu(t){return t instanceof Ct?t.nativeElement:t}const XX=["addListener","removeListener"],JX=["addEventListener","removeEventListener"],ZX=["on","off"];function Jn(t,n,e,i){if(te(e)&&(i=e,e=void 0),i)return Jn(t,n,e).pipe(LP(i));const[o,r]=function nJ(t){return te(t.addEventListener)&&te(t.removeEventListener)}(t)?JX.map(a=>s=>t[a](n,s,e)):function eJ(t){return te(t.addListener)&&te(t.removeListener)}(t)?XX.map(f5(t,n)):function tJ(t){return te(t.on)&&te(t.off)}(t)?ZX.map(f5(t,n)):[];if(!o&&ig(t))return ro(a=>Jn(a,n,e))(Qi(t));if(!o)throw new TypeError("Invalid event target");return new Se(a=>{const s=(...l)=>a.next(1r(s)})}function f5(t,n){return e=>i=>t[e](n,i)}class iJ extends G{constructor(n,e){super()}schedule(n,e=0){return this}}const YC={setInterval(t,n,...e){const{delegate:i}=YC;return(null==i?void 0:i.setInterval)?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=YC;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0};class XC extends iJ{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;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return YC.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&YC.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ue(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const Y_={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Y_;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new G(()=>null==e?void 0:e(o))},requestAnimationFrame(...t){const{delegate:n}=Y_;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=Y_;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0},hA={now:()=>(hA.delegate||Date).now(),delegate:void 0};class X_{constructor(n,e=X_.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}X_.now=hA.now;class JC extends X_{constructor(n,e=X_.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);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}}}const g5=new class rJ extends JC{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class oJ extends XC{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Y_.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(Y_.cancelAnimationFrame(e),n._scheduled=void 0)}});let pA,aJ=1;const ZC={};function m5(t){return t in ZC&&(delete ZC[t],!0)}const sJ={setImmediate(t){const n=aJ++;return ZC[n]=!0,pA||(pA=Promise.resolve()),pA.then(()=>m5(n)&&t()),n},clearImmediate(t){m5(t)}},{setImmediate:lJ,clearImmediate:cJ}=sJ,ey={setImmediate(...t){const{delegate:n}=ey;return((null==n?void 0:n.setImmediate)||lJ)(...t)},clearImmediate(t){const{delegate:n}=ey;return((null==n?void 0:n.clearImmediate)||cJ)(t)},delegate:void 0},J_=(new class uJ extends JC{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class dJ extends XC{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=ey.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(ey.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}}),new JC(XC)),pJ=J_;function od(t=0,n,e=pJ){let i=-1;return null!=n&&(Sd(n)?e=n:i=n),new Se(o=>{let r=function gJ(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function fA(t,n=J_){return function fJ(t){return Le((n,e)=>{let i=!1,o=null,r=null,a=!1;const s=()=>{if(null==r||r.unsubscribe(),r=null,i){i=!1;const d=o;o=null,e.next(d)}a&&e.complete()},l=()=>{r=null,a&&e.complete()};n.subscribe(Be(e,d=>{i=!0,o=d,r||Qi(t(d)).subscribe(r=Be(e,s,l))},()=>{a=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>od(t,n))}function Mt(t){return Le((n,e)=>{Qi(t).subscribe(Be(e,()=>e.complete(),f)),!e.closed&&n.subscribe(e)})}let gA;try{gA="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){gA=!1}let Z_,ty,Nu,mA,Co=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?na(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!gA)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(de(ya))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function bf(t){return function mJ(){if(null==Z_&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Z_=!0}))}finally{Z_=Z_||!1}return Z_}()?t:!!t.capture}function b5(){if(null==Nu){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Nu=!1,Nu;if("scrollBehavior"in document.documentElement.style)Nu=!0;else{const t=Element.prototype.scrollTo;Nu=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Nu}function eb(){if("object"!=typeof document||!document)return 0;if(null==ty){const 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";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),ty=0,0===t.scrollLeft&&(t.scrollLeft=1,ty=0===t.scrollLeft?1:2),t.remove()}return ty}function v5(t){if(function _J(){if(null==mA){const t="undefined"!=typeof document?document.head:null;mA=!(!t||!t.createShadowRoot&&!t.attachShadow)}return mA}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function _A(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function zu(t){return t.composedPath?t.composedPath()[0]:t.target}function bA(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const bJ=new Ze("cdk-dir-doc",{providedIn:"root",factory:function vJ(){return Lc(Nt)}}),CJ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let ia=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new Ee,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function yJ(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?CJ.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(de(bJ,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})(),nb=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new xe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Se(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(fA(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):At()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Hn(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Lu(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Jn(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(de(Dt),de(Co),de(Nt,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ib=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new xe,this._elementScrolled=new Se(a=>this.ngZone.runOutsideAngular(()=>Jn(this.elementRef.nativeElement,"scroll").pipe(Mt(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=eb()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==eb()?e.left=e.right:1==eb()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;b5()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?o:i:"end"==e&&(e=a?i:o),a&&2==eb()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&1==eb()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(nb),S(Dt),S(ia,8))},t.\u0275dir=je({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),rd=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new xe,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(fA(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(de(Co),de(Dt),de(Nt,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})(),C5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[tb,vf],tb,vf]}),t})();function Ma(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Ys(t,n=J_){return Le((e,i)=>{let o=null,r=null,a=null;const s=()=>{if(o){o.unsubscribe(),o=null;const d=r;r=null,i.next(d)}};function l(){const d=a+t,g=n.now();if(g{r=d,a=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{r=o=null}))})}function ry(t){return Hn((n,e)=>t<=e)}function ec(t,n=me){return t=null!=t?t:RJ,Le((e,i)=>{let o,r=!0;e.subscribe(Be(i,a=>{const s=n(a);(r||!t(o,s))&&(r=!1,o=s,i.next(a))}))})}function RJ(t,n){return t===n}let O5=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),BJ=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Lu(e);return new Se(o=>{const a=this._observeElement(i).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new xe,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(de(O5))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),P5=(()=>{class t{constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new Ee,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=On(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=wa(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Ys(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(S(BJ),S(Ct),S(Dt))},t.\u0275dir=je({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),yA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({providers:[O5]}),t})();function ay(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const k5="cdk-describedby-message",sy="cdk-describedby-host";let S5=0,zJ=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+S5++,this._document=e}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=xA(i,o);"string"!=typeof i?(D5(i),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){var r;if(!i||!this._isElementNode(e))return;const a=xA(i,o);if(this._isElementDescribedByMessage(e,a)&&this._removeMessageReference(e,a),"string"==typeof i){const s=this._messageRegistry.get(a);s&&0===s.referenceCount&&this._deleteMessageElement(a)}0===(null===(r=this._messagesContainer)||void 0===r?void 0:r.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${sy}="${this._id}"]`);for(let o=0;o0!=o.indexOf(k5));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);(function LJ(t,n,e){const i=ay(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(sy,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,function NJ(t,n,e){const o=ay(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(sy)}_isElementDescribedByMessage(e,i){const o=ay(e,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(de(Nt),de(Co))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function xA(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function D5(t){t.id||(t.id=`${k5}-${S5++}`)}class E5{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new xe,this._typeaheadSubscription=G.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new xe,this.change=new xe,n instanceof vu&&n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}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){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Mn(e=>this._pressedLetters.push(e)),Ys(n),Hn(()=>this._pressedLetters.length>0),be(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||Ma(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n),o=e[i];this._activeItem=null==o?null:o,this._activeItemIndex=i}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof vu?this._items.toArray():this._items}}class HJ extends E5{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class wA extends E5{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let MA=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function UJ(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function VJ(t){try{return t.frameElement}catch(n){return null}}(function YJ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===F5(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=F5(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function KJ(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function QJ(t){return!function WJ(t){return function $J(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function jJ(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function GJ(t){return function qJ(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||T5(t))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(de(Co))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function T5(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function F5(t){if(!T5(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class XJ{constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}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))}destroy(){const 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||(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){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const 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;const e=n.children;for(let i=0;i=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const 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._ngZone.isStable?n():this._ngZone.onStable.pipe(zn(1)).subscribe(n)}}let I5=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new XJ(e,this._checker,this._ngZone,this._document,i)}}return t.\u0275fac=function(e){return new(e||t)(de(MA),de(Dt),de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function R5(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function B5(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const JJ=new Ze("cdk-input-modality-detector-options"),ZJ={ignoreKeys:[18,17,224,91,16]},Cf=bf({passive:!0,capture:!0});let eZ=(()=>{class t{constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new $n(null),this._lastTouchMs=0,this._onKeydown=a=>{var s,l;(null===(l=null===(s=this._options)||void 0===s?void 0:s.ignoreKeys)||void 0===l?void 0:l.some(d=>d===a.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=zu(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(R5(a)?"keyboard":"mouse"),this._mostRecentTarget=zu(a))},this._onTouchstart=a=>{B5(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=zu(a))},this._options=Object.assign(Object.assign({},ZJ),r),this.modalityDetected=this._modality.pipe(ry(1)),this.modalityChanged=this.modalityDetected.pipe(ec()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Cf),o.addEventListener("mousedown",this._onMousedown,Cf),o.addEventListener("touchstart",this._onTouchstart,Cf)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Cf),document.removeEventListener("mousedown",this._onMousedown,Cf),document.removeEventListener("touchstart",this._onTouchstart,Cf))}}return t.\u0275fac=function(e){return new(e||t)(de(Co),de(Dt),de(Nt),de(JJ,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const tZ=new Ze("liveAnnouncerElement",{providedIn:"root",factory:function nZ(){return null}}),iZ=new Ze("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let OA=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r{class t{constructor(e,i,o,r,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new xe,this._rootNodeFocusAndBlurListener=s=>{const l=zu(s),d="focus"===s.type?this._onFocus:this._onBlur;for(let g=l;g;g=g.parentElement)d.call(this,s,g)},this._document=r,this._detectionMode=(null==a?void 0:a.detectionMode)||0}monitor(e,i=!1){const o=Lu(e);if(!this._platform.isBrowser||1!==o.nodeType)return At(null);const r=v5(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;const s={checkChildren:i,subject:new xe,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const i=Lu(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Lu(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}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:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=zu(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,ly),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,ly)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Mt(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ly),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ly),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}}return t.\u0275fac=function(e){return new(e||t)(de(Dt),de(Co),de(eZ),de(Nt,8),de(oZ,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rZ=(()=>{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this.cdkFocusChange=new Ee}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>this.cdkFocusChange.emit(i))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(Uu))},t.\u0275dir=je({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const N5="cdk-high-contrast-black-on-white",z5="cdk-high-contrast-white-on-black",PA="cdk-high-contrast-active";let H5=(()=>{class t{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(PA),e.remove(N5),e.remove(z5),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(PA),e.add(N5)):2===i&&(e.add(PA),e.add(z5))}}}return t.\u0275fac=function(e){return new(e||t)(de(Co),de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),V5=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(de(H5))},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[yA]]}),t})();class U5{}const tc="*";function Cl(t,n){return{type:7,name:t,definitions:n,options:{}}}function Nr(t,n=null){return{type:4,styles:n,timings:t}}function j5(t,n=null){return{type:3,steps:t,options:n}}function W5(t,n=null){return{type:2,steps:t,options:n}}function si(t){return{type:6,styles:t,offset:null}}function Uo(t,n,e){return{type:0,name:t,styles:n,options:e}}function xr(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function AA(t=null){return{type:9,options:t}}function kA(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function G5(t){Promise.resolve(null).then(t)}class ob{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(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(){G5(()=>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}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class $5{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?G5(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++i==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&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=[])}init(){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){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Qn=!1;function q5(t){return new wt(3e3,Qn)}function VZ(){return"undefined"!=typeof window&&void 0!==window.document}function DA(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ad(t){switch(t.length){case 0:return new ob;case 1:return t[0];default:return new $5(t)}}function K5(t,n,e,i,o={},r={}){const a=[],s=[];let l=-1,d=null;if(i.forEach(g=>{const O=g.offset,D=O==l,L=D&&d||{};Object.keys(g).forEach(W=>{let ee=W,he=g[W];if("offset"!==W)switch(ee=n.normalizePropertyName(ee,a),he){case"!":he=o[W];break;case tc:he=r[W];break;default:he=n.normalizeStyleValue(W,ee,he,a)}L[ee]=he}),D||s.push(L),d=L,l=O}),a.length)throw function DZ(t){return new wt(3502,Qn)}();return s}function EA(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&TA(e,"start",t)));break;case"done":t.onDone(()=>i(e&&TA(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&TA(e,"destroy",t)))}}function TA(t,n,e){const i=e.totalTime,r=FA(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),a=t._data;return null!=a&&(r._data=a),r}function FA(t,n,e,i,o="",r=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!a}}function za(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function Q5(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let IA=(t,n)=>!1,Y5=(t,n,e)=>[],X5=null;function RA(t){const n=t.parentNode||t.host;return n===X5?null:n}(DA()||"undefined"!=typeof Element)&&(VZ()?(X5=(()=>document.documentElement)(),IA=(t,n)=>{for(;n;){if(n===t)return!0;n=RA(n)}return!1}):IA=(t,n)=>t.contains(n),Y5=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let ju=null,J5=!1;function Z5(t){ju||(ju=function jZ(){return"undefined"!=typeof document?document.body:null}()||{},J5=!!ju.style&&"WebkitAppearance"in ju.style);let n=!0;return ju.style&&!function UZ(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in ju.style,!n&&J5&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ju.style)),n}const eB=IA,tB=Y5;let nB=(()=>{class t{validateStyleProperty(e){return Z5(e)}matchesElement(e,i){return!1}containsElement(e,i){return eB(e,i)}getParentElement(e){return RA(e)}query(e,i,o){return tB(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,a,s=[],l){return new ob(o,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),BA=(()=>{class t{}return t.NOOP=new nB,t})();const LA="ng-enter",dy="ng-leave",uy="ng-trigger",hy=".ng-trigger",oB="ng-animating",NA=".ng-animating";function Wu(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:zA(parseFloat(n[1]),n[2])}function zA(t,n){return"s"===n?1e3*t:t}function py(t,n,e){return t.hasOwnProperty("duration")?t:function $Z(t,n,e){let o,r=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return n.push(q5()),{duration:0,delay:0,easing:""};o=zA(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(r=zA(parseFloat(l),s[4]));const d=s[5];d&&(a=d)}else o=t;if(!e){let s=!1,l=n.length;o<0&&(n.push(function lZ(){return new wt(3100,Qn)}()),s=!0),r<0&&(n.push(function cZ(){return new wt(3101,Qn)}()),s=!0),s&&n.splice(l,0,q5())}return{duration:o,delay:r,easing:a}}(t,n,e)}function yf(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function sd(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else yf(t,e);return e}function aB(t,n,e){return e?n+":"+e+";":""}function sB(t){let n="";for(let e=0;e{const o=VA(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[o]),t.style[o]=n[i]}),DA()&&sB(t))}function Gu(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=VA(e);t.style[i]=""}),DA()&&sB(t))}function rb(t){return Array.isArray(t)?1==t.length?t[0]:W5(t):t}const HA=new RegExp("{{\\s*(.+?)\\s*}}","g");function lB(t){let n=[];if("string"==typeof t){let e;for(;e=HA.exec(t);)n.push(e[1]);HA.lastIndex=0}return n}function fy(t,n,e){const i=t.toString(),o=i.replace(HA,(r,a)=>{let s=n[a];return n.hasOwnProperty(a)||(e.push(function uZ(t){return new wt(3003,Qn)}()),s=""),s.toString()});return o==i?t:o}function gy(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const KZ=/-+([a-z0-9])/g;function VA(t){return t.replace(KZ,(...n)=>n[1].toUpperCase())}function QZ(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ha(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function hZ(t){return new wt(3004,Qn)}()}}function cB(t,n){return window.getComputedStyle(t)[n]}function tee(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function nee(t,n,e){if(":"==t[0]){const l=function iee(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) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function OZ(t){return new wt(3015,Qn)}()),n;const o=i[1],r=i[2],a=i[3];n.push(dB(o,a));"<"==r[0]&&!("*"==o&&"*"==a)&&n.push(dB(a,o))}(i,e,n)):e.push(t),e}const vy=new Set(["true","1"]),Cy=new Set(["false","0"]);function dB(t,n){const e=vy.has(t)||Cy.has(t),i=vy.has(n)||Cy.has(n);return(o,r)=>{let a="*"==t||t==o,s="*"==n||n==r;return!a&&e&&"boolean"==typeof o&&(a=o?vy.has(t):Cy.has(t)),!s&&i&&"boolean"==typeof r&&(s=r?vy.has(n):Cy.has(n)),a&&s}}const oee=new RegExp("s*:selfs*,?","g");function UA(t,n,e,i){return new ree(t).build(n,e,i)}class ree{constructor(n){this._driver=n}build(n,e,i){const o=new lee(e);this._resetContextStyleTimingState(o);const r=Ha(this,rb(n),o);return o.unsupportedCSSPropertiesFound.size&&o.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],a=[];return"@"==n.name.charAt(0)&&e.errors.push(function fZ(){return new wt(3006,Qn)}()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const l=s,d=l.name;d.toString().split(/\s*,\s*/).forEach(g=>{l.name=g,r.push(this.visitState(l,e))}),l.name=d}else if(1==s.type){const l=this.visitTransition(s,e);i+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push(function gZ(){return new wt(3007,Qn)}())}),{type:7,name:n.name,states:r,transitions:a,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,a=o||{};i.styles.forEach(s=>{if(yy(s)){const l=s;Object.keys(l).forEach(d=>{lB(l[d]).forEach(g=>{a.hasOwnProperty(g)||r.add(g)})})}}),r.size&&(gy(r.values()),e.errors.push(function mZ(t,n){return new wt(3008,Qn)}()))}return{type:0,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Ha(this,rb(n.animation),e);return{type:1,matchers:tee(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:$u(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Ha(this,i,e)),options:$u(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(a=>{e.currentTime=i;const s=Ha(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:3,steps:r,options:$u(n.options)}}visitAnimate(n,e){const i=function dee(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return jA(py(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=jA(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=py(e,n);return jA(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:si({});if(5==r.type)o=this.visitKeyframes(r,e);else{let a=n.styles,s=!1;if(!a){s=!0;const d={};i.easing&&(d.easing=i.easing),a=si(d)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,o=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(a=>{"string"==typeof a?a==tc?i.push(a):e.errors.push(function _Z(t){return new wt(3002,Qn)}()):i.push(a)}):i.push(n.styles);let o=!1,r=null;return i.forEach(a=>{if(yy(a)){const s=a,l=s.easing;if(l&&(r=l,delete s.easing),!o)for(let d in s)if(s[d].toString().indexOf("{{")>=0){o=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(a=>{"string"!=typeof a&&Object.keys(a).forEach(s=>{if(!this._driver.validateStyleProperty(s))return delete a[s],void e.unsupportedCSSPropertiesFound.add(s);const l=e.collectedStyles[e.currentQuerySelector],d=l[s];let g=!0;d&&(r!=o&&r>=d.startTime&&o<=d.endTime&&(e.errors.push(function bZ(t,n,e,i,o){return new wt(3010,Qn)}()),g=!1),r=d.startTime),g&&(l[s]={startTime:r,endTime:o}),e.options&&function qZ(t,n,e){const i=n.params||{},o=lB(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function dZ(t){return new wt(3001,Qn)}())})}(a[s],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function vZ(){return new wt(3011,Qn)}()),i;let r=0;const a=[];let s=!1,l=!1,d=0;const g=n.steps.map(ae=>{const ce=this._makeStyleAst(ae,e);let Ce=null!=ce.offset?ce.offset:function cee(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(yy(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(yy(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(ce.styles),Me=0;return null!=Ce&&(r++,Me=ce.offset=Ce),l=l||Me<0||Me>1,s=s||Me0&&r{const Ce=D>0?ce==L?1:D*ce:a[ce],Me=Ce*he;e.currentTime=W+ee.delay+Me,ee.duration=Me,this._validateStyleAst(ae,e),ae.offset=Ce,i.styles.push(ae)}),i}visitReference(n,e){return{type:8,animation:Ha(this,rb(n.animation),e),options:$u(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:$u(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:$u(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,a]=function aee(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(oee,"")),t=t.replace(/@\*/g,hy).replace(/@\w+/g,e=>hy+"-"+e.substr(1)).replace(/:animating/g,NA),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,za(e.collectedStyles,e.currentQuerySelector,{});const s=Ha(this,rb(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:$u(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function wZ(){return new wt(3013,Qn)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:py(n.timings,e.errors,!0);return{type:12,animation:Ha(this,rb(n.animation),e),timings:i,options:null}}}class lee{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function yy(t){return!Array.isArray(t)&&"object"==typeof t}function $u(t){return t?(t=yf(t)).params&&(t.params=function see(t){return t?yf(t):null}(t.params)):t={},t}function jA(t,n,e){return{duration:t,delay:n,easing:e}}function WA(t,n,e,i,o,r,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:a,subTimeline:s}}class xy{constructor(){this._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()}}const pee=new RegExp(":enter","g"),gee=new RegExp(":leave","g");function GA(t,n,e,i,o,r={},a={},s,l,d=[]){return(new mee).buildKeyframes(t,n,e,i,o,r,a,s,l,d)}class mee{buildKeyframes(n,e,i,o,r,a,s,l,d,g=[]){d=d||new xy;const O=new $A(n,e,d,o,r,g,[]);O.options=l,O.currentTimeline.setStyles([a],null,O.errors,l),Ha(this,i,O);const D=O.timelines.filter(L=>L.containsAnimation());if(Object.keys(s).length){let L;for(let W=D.length-1;W>=0;W--){const ee=D[W];if(ee.element===e){L=ee;break}}L&&!L.allowOnlyTimelineStyles()&&L.setStyles([s],null,O.errors,l)}return D.length?D.map(L=>L.buildKeyframes()):[WA(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,o,o.options);r!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const a=null!=i.duration?Wu(i.duration):null,s=null!=i.delay?Wu(i.delay):null;return 0!==a&&n.forEach(l=>{const d=e.appendInstructionToTimeline(l,a,s);r=Math.max(r,d.duration+d.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),Ha(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=wy);const a=Wu(r.delay);o.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>Ha(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?Wu(n.options.delay):0;n.steps.forEach(a=>{const s=e.createSubContext(n.options);r&&s.delayNextStep(r),Ha(this,a,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return py(e.params?fy(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{s.forwardTime((l.offset||0)*r),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?Wu(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=wy);let a=i;const s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((d,g)=>{e.currentQueryIndex=g;const O=e.createSubContext(n.options,d);r&&O.delayNextStep(r),d===e.element&&(l=O.currentTimeline),Ha(this,n.animation,O),O.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,O.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,a=Math.abs(r.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime}const g=e.currentTimeline;l&&g.delayNextStep(l);const O=g.currentTime;Ha(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-O+(o.startTime-i.currentTimeline.startTime)}}const wy={};class $A{constructor(n,e,i,o,r,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=wy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new My(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Wu(i.duration)),null!=i.delay&&(o.delay=Wu(i.delay));const r=i.params;if(r){let a=o.params;a||(a=this.options.params={}),Object.keys(r).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=fy(r[s],a,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new $A(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=wy,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new _ee(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,a){let s=[];if(o&&s.push(this.element),n.length>0){n=(n=n.replace(pee,"."+this._enterClassName)).replace(gee,"."+this._leaveClassName);let d=this._driver.query(this.element,n,1!=i);0!==i&&(d=i<0?d.slice(d.length+i,d.length):d.slice(0,i)),s.push(...d)}return!r&&0==s.length&&a.push(function MZ(t){return new wt(3014,Qn)}()),s}}class My{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new My(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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||tc,this._currentKeyframe[e]=tc}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){e&&(this._previousKeyframe.easing=e);const r=o&&o.params||{},a=function bee(t,n){const e={};let i;return t.forEach(o=>{"*"===o?(i=i||Object.keys(n),i.forEach(r=>{e[r]=tc})):sd(o,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(a).forEach(s=>{const l=fy(a[s],r,i);this._pendingStyles[s]=l,this._localTimelineStyles.hasOwnProperty(s)||(this._backFill[s]=this._globalTimelineStyles.hasOwnProperty(s)?this._globalTimelineStyles[s]:tc),this._updateStyle(s,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],o=n._styleSummary[e];(!i||o.time>i.time)&&this._updateStyle(e,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((s,l)=>{const d=sd(s,!0);Object.keys(d).forEach(g=>{const O=d[g];"!"==O?n.add(g):O==tc&&e.add(g)}),i||(d.offset=l/this.duration),o.push(d)});const r=n.size?gy(n.values()):[],a=e.size?gy(e.values()):[];if(i){const s=o[0],l=yf(s);s.offset=0,l.offset=1,o=[s,l]}return WA(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}}class _ee extends My{constructor(n,e,i,o,r,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,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:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],a=i+e,s=e/a,l=sd(n[0],!1);l.offset=0,r.push(l);const d=sd(n[0],!1);d.offset=pB(s),r.push(d);const g=n.length-1;for(let O=1;O<=g;O++){let D=sd(n[O],!1);D.offset=pB((e+D.offset*i)/a),r.push(D)}i=a,e=0,o="",n=r}return WA(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function pB(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class qA{}class vee extends qA{normalizePropertyName(n,e){return VA(n)}normalizeStyleValue(n,e,i,o){let r="";const a=i.toString().trim();if(Cee[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&o.push(function pZ(t,n){return new wt(3005,Qn)}())}return a+r}}const Cee=(()=>function yee(t){const n={};return t.forEach(e=>n[e]=!0),n}("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".split(",")))();function fB(t,n,e,i,o,r,a,s,l,d,g,O,D){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:d,postStyleProps:g,totalTime:O,errors:D}}const KA={};class gB{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function xee(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){const o=this._stateStyles["*"],r=this._stateStyles[n],a=o?o.buildStyles(e,i):{};return r?r.buildStyles(e,i):a}build(n,e,i,o,r,a,s,l,d,g){const O=[],D=this.ast.options&&this.ast.options.params||KA,W=this.buildStyles(i,s&&s.params||KA,O),ee=l&&l.params||KA,he=this.buildStyles(o,ee,O),ae=new Set,ce=new Map,Ce=new Map,Me="void"===o,Ke={params:Object.assign(Object.assign({},D),ee)},rt=g?[]:GA(n,e,this.ast.animation,r,a,W,he,Ke,d,O);let mt=0;if(rt.forEach(mn=>{mt=Math.max(mn.duration+mn.delay,mt)}),O.length)return fB(e,this._triggerName,i,o,Me,W,he,[],[],ce,Ce,mt,O);rt.forEach(mn=>{const An=mn.element,ni=za(ce,An,{});mn.preStyleProps.forEach(Or=>ni[Or]=!0);const xo=za(Ce,An,{});mn.postStyleProps.forEach(Or=>xo[Or]=!0),An!==e&&ae.add(An)});const Ot=gy(ae.values());return fB(e,this._triggerName,i,o,Me,W,he,rt,Ot,ce,Ce,mt)}}class wee{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},o=yf(this.defaultParams);return Object.keys(n).forEach(r=>{const a=n[r];null!=a&&(o[r]=a)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const a=r;Object.keys(a).forEach(s=>{let l=a[s];l.length>1&&(l=fy(l,o,e));const d=this.normalizer.normalizePropertyName(s,e);l=this.normalizer.normalizeStyleValue(s,d,l,e),i[d]=l})}}),i}}class Oee{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(o=>{this.states[o.name]=new wee(o.style,o.options&&o.options.params||{},i)}),mB(this.states,"true","1"),mB(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new gB(n,o,this.states))}),this.fallbackTransition=function Pee(t,n,e){return new gB(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(a=>a.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function mB(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const Aee=new xy;class kee{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=UA(this._driver,e,i,[]);if(i.length)throw function EZ(t){return new wt(3503,Qn)}();this._animations[n]=r}_buildPlayer(n,e,i){const o=n.element,r=K5(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations[n];let a;const s=new Map;if(r?(a=GA(this._driver,e,r,LA,dy,{},{},i,Aee,o),a.forEach(g=>{const O=za(s,g.element,{});g.postStyleProps.forEach(D=>O[D]=null)})):(o.push(function TZ(){return new wt(3300,Qn)}()),a=[]),o.length)throw function FZ(t){return new wt(3504,Qn)}();s.forEach((g,O)=>{Object.keys(g).forEach(D=>{g[D]=this._driver.computeStyle(O,D,tc)})});const d=ad(a.map(g=>{const O=s.get(g.element);return this._buildPlayer(g,{},O)}));return this._playersById[n]=d,d.onDestroy(()=>this.destroy(n)),this.players.push(d),d}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function IZ(t){return new wt(3301,Qn)}();return e}listen(n,e,i,o){const r=FA(e,"","","");return EA(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const _B="ng-animate-queued",QA="ng-animate-disabled",Fee=[],bB={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Iee={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},us="__ng_removed";class YA{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function Nee(t){return null!=t?t:null}(i?n.value:n),i){const r=yf(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const ab="void",XA=new YA(ab);class Ree{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,hs(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.hasOwnProperty(e))throw function RZ(t,n){return new wt(3302,Qn)}();if(null==i||0==i.length)throw function BZ(t){return new wt(3303,Qn)}();if(!function zee(t){return"start"==t||"done"==t}(i))throw function LZ(t,n){return new wt(3400,Qn)}();const r=za(this._elementListeners,n,[]),a={name:e,phase:i,callback:o};r.push(a);const s=za(this._engine.statesByElement,n,{});return s.hasOwnProperty(e)||(hs(n,uy),hs(n,uy+"-"+e),s[e]=XA),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers[e]||delete s[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function NZ(t){return new wt(3401,Qn)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),a=new JA(this.id,e,n);let s=this._engine.statesByElement.get(n);s||(hs(n,uy),hs(n,uy+"-"+e),this._engine.statesByElement.set(n,s={}));let l=s[e];const d=new YA(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&d.absorbOptions(l.options),s[e]=d,l||(l=XA),d.value!==ab&&l.value===d.value){if(!function Uee(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o{Gu(n,he),yl(n,ae)})}return}const D=za(this._engine.playersByElement,n,[]);D.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let L=r.matchTransition(l.value,d.value,n,d.params),W=!1;if(!L){if(!o)return;L=r.fallbackTransition,W=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:L,fromState:l,toState:d,player:a,isFallbackTransition:W}),W||(hs(n,_B),a.onStart(()=>{xf(n,_B)})),a.onDone(()=>{let ee=this.players.indexOf(a);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(n);if(he){let ae=he.indexOf(a);ae>=0&&he.splice(ae,1)}}),this.players.push(a),D.push(a),a}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,hy,!0);i.forEach(o=>{if(o[us])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),a=new Map;if(r){const s=[];if(Object.keys(r).forEach(l=>{if(a.set(l,r[l].value),this._triggers[l]){const d=this.trigger(n,l,ab,o);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&ad(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const a=r.name;if(o.has(a))return;o.add(a);const l=this._triggers[a].fallbackTransition,d=i[a]||XA,g=new YA(ab),O=new JA(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:d,toState:g,player:O,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[us];(!r||r===bB)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){hs(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,a=this._elementListeners.get(r);a&&a.forEach(s=>{if(s.name==i.triggerName){const l=FA(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,EA(i.player,s.phase,l,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,a=o.transition.ast.depCount;return 0==r||0==a?r-a:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class Bee{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new Ree(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){const i=this._namespaceList,o=this.namespacesByHostElement,r=i.length-1;if(r>=0){let a=!1;if(void 0!==this.driver.getParentElement){let s=this.driver.getParentElement(e);for(;s;){const l=o.get(s);if(l){const d=i.indexOf(l);i.splice(d+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}}else for(let s=r;s>=0;s--)if(this.driver.containsElement(i[s].hostElement,e)){i.splice(s+1,0,n),a=!0;break}a||i.unshift(n)}else i.push(n);return o.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 o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const o=Object.keys(i);for(let r=0;r=0&&this.collectedLeaveElements.splice(a,1)}if(n){const a=this._fetchNamespace(n);a&&a.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),hs(n,QA)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),xf(n,QA))}removeNode(n,e,i,o){if(Oy(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,o):this.markElementAsRemoved(n,e,!1,o),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==n&&a.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[us]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Oy(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,hy,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,NA,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return ad(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[us];if(i&&i.setForRemoval){if(n[us]=bB,i.namespaceId){this.destroyInnerAnimations(n);const o=this._fetchNamespace(i.namespaceId);o&&o.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(QA))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?ad(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function zZ(t){return new wt(3402,Qn)}()}_flushAnimations(n,e){const i=new xy,o=[],r=new Map,a=[],s=new Map,l=new Map,d=new Map,g=new Set;this.disabledNodes.forEach(kt=>{g.add(kt);const Vt=this.driver.query(kt,".ng-animate-queued",!0);for(let Xt=0;Xt{const Xt=LA+ee++;W.set(Vt,Xt),kt.forEach(hn=>hs(hn,Xt))});const he=[],ae=new Set,ce=new Set;for(let kt=0;ktae.add(hn)):ce.add(Vt))}const Ce=new Map,Me=yB(D,Array.from(ae));Me.forEach((kt,Vt)=>{const Xt=dy+ee++;Ce.set(Vt,Xt),kt.forEach(hn=>hs(hn,Xt))}),n.push(()=>{L.forEach((kt,Vt)=>{const Xt=W.get(Vt);kt.forEach(hn=>xf(hn,Xt))}),Me.forEach((kt,Vt)=>{const Xt=Ce.get(Vt);kt.forEach(hn=>xf(hn,Xt))}),he.forEach(kt=>{this.processLeaveNode(kt)})});const Ke=[],rt=[];for(let kt=this._namespaceList.length-1;kt>=0;kt--)this._namespaceList[kt].drainQueuedTransitions(e).forEach(Xt=>{const hn=Xt.player,To=Xt.element;if(Ke.push(hn),this.collectedEnterElements.length){const sa=To[us];if(sa&&sa.setForMove){if(sa.previousTriggersValues&&sa.previousTriggersValues.has(Xt.triggerName)){const bh=sa.previousTriggersValues.get(Xt.triggerName),Ad=this.statesByElement.get(Xt.element);Ad&&Ad[Xt.triggerName]&&(Ad[Xt.triggerName].value=bh)}return void hn.destroy()}}const Wa=!O||!this.driver.containsElement(O,To),Fo=Ce.get(To),Cs=W.get(To),Ri=this._buildInstruction(Xt,i,Cs,Fo,Wa);if(Ri.errors&&Ri.errors.length)return void rt.push(Ri);if(Wa)return hn.onStart(()=>Gu(To,Ri.fromStyles)),hn.onDestroy(()=>yl(To,Ri.toStyles)),void o.push(hn);if(Xt.isFallbackTransition)return hn.onStart(()=>Gu(To,Ri.fromStyles)),hn.onDestroy(()=>yl(To,Ri.toStyles)),void o.push(hn);const lH=[];Ri.timelines.forEach(sa=>{sa.stretchStartingKeyframe=!0,this.disabledNodes.has(sa.element)||lH.push(sa)}),Ri.timelines=lH,i.append(To,Ri.timelines),a.push({instruction:Ri,player:hn,element:To}),Ri.queriedElements.forEach(sa=>za(s,sa,[]).push(hn)),Ri.preStyleProps.forEach((sa,bh)=>{const Ad=Object.keys(sa);if(Ad.length){let vh=l.get(bh);vh||l.set(bh,vh=new Set),Ad.forEach(XD=>vh.add(XD))}}),Ri.postStyleProps.forEach((sa,bh)=>{const Ad=Object.keys(sa);let vh=d.get(bh);vh||d.set(bh,vh=new Set),Ad.forEach(XD=>vh.add(XD))})});if(rt.length){const kt=[];rt.forEach(Vt=>{kt.push(function HZ(t,n){return new wt(3505,Qn)}())}),Ke.forEach(Vt=>Vt.destroy()),this.reportError(kt)}const mt=new Map,Ot=new Map;a.forEach(kt=>{const Vt=kt.element;i.has(Vt)&&(Ot.set(Vt,Vt),this._beforeAnimationBuild(kt.player.namespaceId,kt.instruction,mt))}),o.forEach(kt=>{const Vt=kt.element;this._getPreviousPlayers(Vt,!1,kt.namespaceId,kt.triggerName,null).forEach(hn=>{za(mt,Vt,[]).push(hn),hn.destroy()})});const mn=he.filter(kt=>wB(kt,l,d)),An=new Map;CB(An,this.driver,ce,d,tc).forEach(kt=>{wB(kt,l,d)&&mn.push(kt)});const xo=new Map;L.forEach((kt,Vt)=>{CB(xo,this.driver,new Set(kt),l,"!")}),mn.forEach(kt=>{const Vt=An.get(kt),Xt=xo.get(kt);An.set(kt,Object.assign(Object.assign({},Vt),Xt))});const Or=[],bs=[],vs={};a.forEach(kt=>{const{element:Vt,player:Xt,instruction:hn}=kt;if(i.has(Vt)){if(g.has(Vt))return Xt.onDestroy(()=>yl(Vt,hn.toStyles)),Xt.disabled=!0,Xt.overrideTotalTime(hn.totalTime),void o.push(Xt);let To=vs;if(Ot.size>1){let Fo=Vt;const Cs=[];for(;Fo=Fo.parentNode;){const Ri=Ot.get(Fo);if(Ri){To=Ri;break}Cs.push(Fo)}Cs.forEach(Ri=>Ot.set(Ri,To))}const Wa=this._buildAnimation(Xt.namespaceId,hn,mt,r,xo,An);if(Xt.setRealPlayer(Wa),To===vs)Or.push(Xt);else{const Fo=this.playersByElement.get(To);Fo&&Fo.length&&(Xt.parentPlayer=ad(Fo)),o.push(Xt)}}else Gu(Vt,hn.fromStyles),Xt.onDestroy(()=>yl(Vt,hn.toStyles)),bs.push(Xt),g.has(Vt)&&o.push(Xt)}),bs.forEach(kt=>{const Vt=r.get(kt.element);if(Vt&&Vt.length){const Xt=ad(Vt);kt.setRealPlayer(Xt)}}),o.forEach(kt=>{kt.parentPlayer?kt.syncPlayerEvents(kt.parentPlayer):kt.destroy()});for(let kt=0;kt!Wa.destroyed);To.length?Hee(this,Vt,To):this.processLeaveNode(Vt)}return he.length=0,Or.forEach(kt=>{this.players.push(kt),kt.onDone(()=>{kt.destroy();const Vt=this.players.indexOf(kt);this.players.splice(Vt,1)}),kt.play()}),Or}elementContainsData(n,e){let i=!1;const o=e[us];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let a=[];if(e){const s=this.playersByQueriedElement.get(n);s&&(a=s)}else{const s=this.playersByElement.get(n);if(s){const l=!r||r==ab;s.forEach(d=>{d.queued||!l&&d.triggerName!=o||a.push(d)})}}return(i||o)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){const r=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const d=l.element,g=d!==r,O=za(i,d,[]);this._getPreviousPlayers(d,g,a,s,e.toState).forEach(L=>{const W=L.getRealPlayer();W.beforeDestroy&&W.beforeDestroy(),L.destroy(),O.push(L)})}Gu(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,a){const s=e.triggerName,l=e.element,d=[],g=new Set,O=new Set,D=e.timelines.map(W=>{const ee=W.element;g.add(ee);const he=ee[us];if(he&&he.removedBeforeQueried)return new ob(W.duration,W.delay);const ae=ee!==l,ce=function Vee(t){const n=[];return xB(t,n),n}((i.get(ee)||Fee).map(mt=>mt.getRealPlayer())).filter(mt=>!!mt.element&&mt.element===ee),Ce=r.get(ee),Me=a.get(ee),Ke=K5(0,this._normalizer,0,W.keyframes,Ce,Me),rt=this._buildPlayer(W,Ke,ce);if(W.subTimeline&&o&&O.add(ee),ae){const mt=new JA(n,s,ee);mt.setRealPlayer(rt),d.push(mt)}return rt});d.forEach(W=>{za(this.playersByQueriedElement,W.element,[]).push(W),W.onDone(()=>function Lee(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,W.element,W))}),g.forEach(W=>hs(W,oB));const L=ad(D);return L.onDestroy(()=>{g.forEach(W=>xf(W,oB)),yl(l,e.toStyles)}),O.forEach(W=>{za(o,W,[]).push(L)}),L}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new ob(n.duration,n.delay)}}class JA{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new ob,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>EA(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){za(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&&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){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Oy(t){return t&&1===t.nodeType}function vB(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function CB(t,n,e,i,o){const r=[];e.forEach(l=>r.push(vB(l)));const a=[];i.forEach((l,d)=>{const g={};l.forEach(O=>{const D=g[O]=n.computeStyle(d,O,o);(!D||0==D.length)&&(d[us]=Iee,a.push(d))}),t.set(d,g)});let s=0;return e.forEach(l=>vB(l,r[s++])),a}function yB(t,n){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==n.length)return e;const o=new Set(n),r=new Map;function a(s){if(!s)return 1;let l=r.get(s);if(l)return l;const d=s.parentNode;return l=e.has(d)?d:o.has(d)?1:a(d),r.set(s,l),l}return n.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function hs(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function xf(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function Hee(t,n,e){ad(e).onDone(()=>t.processLeaveNode(n))}function xB(t,n){for(let e=0;eo.add(r)):n.set(t,i),e.delete(t),!0}class Py{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new Bee(n,e,i),this._timelineEngine=new kee(n,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(n,e,i,o,r){const a=n+"-"+o;let s=this._triggerCache[a];if(!s){const l=[],g=UA(this._driver,r,l,[]);if(l.length)throw function SZ(t,n){return new wt(3404,Qn)}();s=function Mee(t,n,e){return new Oee(t,n,e)}(o,g,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,o,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i,o){this._transitionEngine.removeNode(n,e,o||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,a]=Q5(i);this._timelineEngine.command(r,e,a,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[a,s]=Q5(i);return this._timelineEngine.listen(a,e,s,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Wee=(()=>{class t{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&yl(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(yl(this._element,this._initialStyles),this._endStyles&&(yl(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Gu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gu(this._element,this._endStyles),this._endStyles=null),yl(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ZA(t){let n=null;const e=Object.keys(t);for(let i=0;in()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(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}_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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:cB(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class $ee{validateStyleProperty(n){return Z5(n)}matchesElement(n,e){return!1}containsElement(n,e){return eB(n,e)}getParentElement(n){return RA(n)}query(n,e,i){return tB(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,o,r,a=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const d={},g=a.filter(D=>D instanceof MB);(function YZ(t,n){return 0===t||0===n})(i,o)&&g.forEach(D=>{let L=D.currentSnapshot;Object.keys(L).forEach(W=>d[W]=L[W])}),e=function XZ(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],a=[];if(i.forEach(s=>{r.hasOwnProperty(s)||a.push(s),r[s]=e[s]}),a.length)for(var o=1;osd(D,!1)),d);const O=function jee(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=ZA(n[0]),n.length>1&&(i=ZA(n[n.length-1]))):n&&(e=ZA(n)),e||i?new Wee(t,e,i):null}(n,e);return new MB(n,e,l,O)}}let qee=(()=>{class t extends U5{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Wi.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?W5(e):e;return OB(this._renderer,null,i,"register",[o]),new Kee(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(de(Yp),de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();class Kee extends class aZ{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new Qee(this._id,n,e||{},this._renderer)}}class Qee{constructor(n,e,i,o){this.id=n,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return OB(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function OB(t,n,e,i,o){return t.setProperty(n,`@@${e}:${i}`,o)}const PB="@.disabled";let Yee=(()=>{class t{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,a)=>{const s=null==a?void 0:a.parentNode(r);s&&a.removeChild(s,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let g=this._rendererCache.get(r);return g||(g=new AB("",r,this.engine),this._rendererCache.set(r,g)),g}const a=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const l=g=>{Array.isArray(g)?g.forEach(l):this.engine.registerTrigger(a,s,e,g.name,g)};return i.data.animation.forEach(l),new Xee(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&ei(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[a,s]=r;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(de(Yp),de(Py),de(Dt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();class AB{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}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,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}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,o){this.delegate.setAttribute(n,e,i,o)}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,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==PB?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class Xee extends AB{constructor(n,e,i,o){super(e,i,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==PB?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function Jee(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),a="";return"@"!=r.charAt(0)&&([r,a]=function Zee(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,i,s)})}return this.delegate.listen(n,e,i)}}let ete=(()=>{class t extends Py{constructor(e,i,o){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(de(Nt),de(BA),de(qA))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();const uo=new Ze("AnimationModuleType"),kB=[{provide:U5,useClass:qee},{provide:qA,useFactory:function tte(){return new vee}},{provide:Py,useClass:ete},{provide:Yp,useFactory:function nte(t,n,e){return new Yee(t,n,e)},deps:[uC,Py,Dt]}],SB=[{provide:BA,useFactory:()=>new $ee},{provide:uo,useValue:"BrowserAnimations"},...kB],ite=[{provide:BA,useClass:nB},{provide:uo,useValue:"NoopAnimations"},...kB];let ky=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?ite:SB}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({providers:SB,imports:[lP]}),t})();function ote(t,n){if(1&t&&ne(0,"mat-pseudo-checkbox",4),2&t){const e=R();b("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function rte(t,n){if(1&t&&(C(0,"span",5),V(1),M()),2&t){const e=R();h(1),ze("(",e.group.label,")")}}const ate=["*"],lte=new Ze("mat-sanity-checks",{providedIn:"root",factory:function ste(){return!0}});let Fn=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!bA()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(de(H5),de(lte,8),de(Nt))},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[tb],tb]}),t})();function Sy(t){return class extends t{constructor(...n){super(...n),this._disabled=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=On(n)}}}function qu(t,n){return class extends t{constructor(...e){super(...e),this.defaultColor=n,this.color=n}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function wf(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=On(n)}}}function ek(t,n=0){return class extends t{constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?wa(e):this.defaultTabIndex}}}function EB(t){return class extends t{constructor(...n){super(...n),this.stateChanges=new xe,this.errorState=!1}updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}}}let Dy=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=je({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function sb(t,n,e){t.nativeElement.classList.toggle(n,e)}let TB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[Fn],Fn]}),t})();class hte{constructor(n,e,i){this._renderer=n,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const FB={enterDuration:225,exitDuration:150},tk=bf({passive:!0}),IB=["mousedown","touchstart"],RB=["mouseup","mouseleave","touchend","touchcancel"];class BB{constructor(n,e,i,o){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Lu(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},FB),i.animation);i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const a=i.radius||function gte(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),s=n-o.left,l=e-o.top,d=r.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=2*a+"px",g.style.width=2*a+"px",null!=i.color&&(g.style.backgroundColor=i.color),g.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(g),function fte(t){window.getComputedStyle(t).getPropertyValue("opacity")}(g),g.style.transform="scale(1)";const O=new hte(this,g,i);return O.state=0,this._activeRipples.add(O),i.persistent||(this._mostRecentTransientRipple=O),this._runTimeoutOutsideZone(()=>{const D=O===this._mostRecentTransientRipple;O.state=1,!i.persistent&&(!D||!this._isPointerDown)&&O.fadeOut()},d),O}fadeOutRipple(n){const e=this._activeRipples.delete(n);if(n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=n.element,o=Object.assign(Object.assign({},FB),n.config.animation);i.style.transitionDuration=`${o.exitDuration}ms`,i.style.opacity="0",n.state=2,this._runTimeoutOutsideZone(()=>{n.state=3,i.remove()},o.exitDuration)}fadeOutAll(){this._activeRipples.forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Lu(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(IB))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(RB),this._pointerUpEventsRegistered=!0)}_onMousedown(n){const e=R5(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_runTimeoutOutsideZone(n,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(n,e))}_registerEvents(n){this._ngZone.runOutsideAngular(()=>{n.forEach(e=>{this._triggerElement.addEventListener(e,this,tk)})})}_removeTriggerEvents(){this._triggerElement&&(IB.forEach(n=>{this._triggerElement.removeEventListener(n,this,tk)}),this._pointerUpEventsRegistered&&RB.forEach(n=>{this._triggerElement.removeEventListener(n,this,tk)}))}}const LB=new Ze("mat-ripple-global-options");let Mf=(()=>{class t{constructor(e,i,o,r,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new BB(this,i,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(Dt),S(Co),S(LB,8),S(uo,8))},t.\u0275dir=je({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Je("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Ey=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[Fn],Fn]}),t})(),NB=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(S(uo,8))},t.\u0275cmp=qe({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&Je("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),nk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[Fn]]}),t})();const zB=new Ze("MAT_OPTION_PARENT_COMPONENT"),HB=new Ze("MatOptgroup");let mte=0;class _te{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let bte=(()=>{class t{constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+mte++,this.onSelectionChange=new Ee,this._stateChanges=new xe}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=On(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.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){(13===e.keyCode||32===e.keyCode)&&!Ma(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new _te(this,e))}}return t.\u0275fac=function(e){jp()},t.\u0275dir=je({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),VB=(()=>{class t extends bte{constructor(e,i,o,r){super(e,i,o,r)}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(Ln),S(zB,8),S(HB,8))},t.\u0275cmp=qe({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&se("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(as("id",i.id),Lt("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),Je("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[St],ngContentSelectors:ate,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(di(),N(0,ote,1,2,"mat-pseudo-checkbox",0),C(1,"span",1),$t(2),M(),N(3,rte,2,1,"span",2),ne(4,"div",3)),2&e&&(b("ngIf",i.multiple),h(3),b("ngIf",i.group&&i.group._inert),h(1),b("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[NB,gt,Mf],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function UB(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let a=0;a{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[Ey,sn,Fn,nk]]}),t})();function nc(t){return be(()=>t)}const Ty=["*"],Cte=["content"];function yte(t,n){if(1&t){const e=Ne();C(0,"div",2),se("click",function(){return fe(e),R()._onBackdropClicked()}),M()}2&t&&Je("mat-drawer-shown",R()._isShowingBackdrop())}function xte(t,n){1&t&&(C(0,"mat-drawer-content"),$t(1,2),M())}const wte=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Mte=["mat-drawer","mat-drawer-content","*"];function Ote(t,n){if(1&t){const e=Ne();C(0,"div",2),se("click",function(){return fe(e),R()._onBackdropClicked()}),M()}2&t&&Je("mat-drawer-shown",R()._isShowingBackdrop())}function Pte(t,n){1&t&&(C(0,"mat-sidenav-content"),$t(1,2),M())}const Ate=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],kte=["mat-sidenav","mat-sidenav-content","*"],WB={transformDrawer:Cl("transform",[Uo("open, open-instant",si({transform:"none",visibility:"visible"})),Uo("void",si({"box-shadow":"none",visibility:"hidden"})),xr("void => open-instant",Nr("0ms")),xr("void <=> open, open-instant => void",Nr("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Dte=new Ze("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Ete(){return!1}}),ik=new Ze("MAT_DRAWER_CONTAINER");let Fy=(()=>{class t extends ib{constructor(e,i,o,r,a){super(o,r,a),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(S(Ln),S(yn(()=>$B)),S(Ct),S(nb),S(Dt))},t.\u0275cmp=qe({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&Ui("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[bn([{provide:ib,useExisting:t}]),St],ngContentSelectors:Ty,decls:1,vars:0,template:function(e,i){1&e&&(di(),$t(0))},encapsulation:2,changeDetection:0}),t})(),GB=(()=>{class t{constructor(e,i,o,r,a,s,l,d){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=a,this._interactivityChecker=s,this._doc=l,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new xe,this._animationEnd=new xe,this._animationState="void",this.openedChange=new Ee(!0),this._openedStream=this.openedChange.pipe(Hn(g=>g),be(()=>{})),this.openedStart=this._animationStarted.pipe(Hn(g=>g.fromState!==g.toState&&0===g.toState.indexOf("open")),nc(void 0)),this._closedStream=this.openedChange.pipe(Hn(g=>!g),be(()=>{})),this.closedStart=this._animationStarted.pipe(Hn(g=>g.fromState!==g.toState&&"void"===g.toState),nc(void 0)),this._destroyed=new xe,this.onPositionChanged=new Ee,this._modeChanged=new xe,this.openedChange.subscribe(g=>{g?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Jn(this._elementRef.nativeElement,"keydown").pipe(Hn(g=>27===g.keyCode&&!this.disableClose&&!Ma(g)),Mt(this._destroyed)).subscribe(g=>this._ngZone.run(()=>{this.close(),g.stopPropagation(),g.preventDefault()}))}),this._animationEnd.pipe(ec((g,O)=>g.fromState===O.fromState&&g.toState===O.toState)).subscribe(g=>{const{fromState:O,toState:D}=g;(0===D.indexOf("open")&&"void"===O||"void"===D&&0===O.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=On(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=On(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(On(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(zn(1)).subscribe(a=>r(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(I5),S(Uu),S(Co),S(Dt),S(MA),S(Nt,8),S(ik,8))},t.\u0275cmp=qe({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&_t(Cte,5),2&e){let o;Qe(o=Ye())&&(i._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&r_("@transform.start",function(r){return i._animationStarted.next(r)})("@transform.done",function(r){return i._animationEnd.next(r)}),2&e&&(Lt("align",null),s_("@transform",i._animationState),Je("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Ty,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(di(),C(0,"div",0,1),$t(2),M())},directives:[ib],encapsulation:2,data:{animation:[WB.transformDrawer]},changeDetection:0}),t})(),$B=(()=>{class t{constructor(e,i,o,r,a,s=!1,l){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new vu,this.backdropClick=new Ee,this._destroyed=new xe,this._doCheckSubject=new xe,this._contentMargins={left:null,right:null},this._contentMarginChanges=new xe,e&&e.change.pipe(Mt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Mt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=On(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:On(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(bo(this._allDrawers),Mt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(bo(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Ys(10),Mt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Hn(i=>i.fromState!==i.toState),Mt(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Mt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Mt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(zn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Mt(Io(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(S(ia,8),S(Ct),S(Dt),S(Ln),S(rd),S(Dte),S(uo,8))},t.\u0275cmp=qe({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,o){if(1&e&&(tn(o,Fy,5),tn(o,GB,5)),2&e){let r;Qe(r=Ye())&&(i._content=r.first),Qe(r=Ye())&&(i._allDrawers=r)}},viewQuery:function(e,i){if(1&e&&_t(Fy,5),2&e){let o;Qe(o=Ye())&&(i._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&Je("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[bn([{provide:ik,useExisting:t}])],ngContentSelectors:Mte,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(di(wte),N(0,yte,1,2,"div",0),$t(1),$t(2,1),N(3,xte,2,0,"mat-drawer-content",1)),2&e&&(b("ngIf",i.hasBackdrop),h(3),b("ngIf",!i._content))},directives:[Fy,gt],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),t})(),ok=(()=>{class t extends Fy{constructor(e,i,o,r,a){super(e,i,o,r,a)}}return t.\u0275fac=function(e){return new(e||t)(S(Ln),S(yn(()=>rk)),S(Ct),S(nb),S(Dt))},t.\u0275cmp=qe({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&Ui("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[bn([{provide:ib,useExisting:t}]),St],ngContentSelectors:Ty,decls:1,vars:0,template:function(e,i){1&e&&(di(),$t(0))},encapsulation:2,changeDetection:0}),t})(),qB=(()=>{class t extends GB{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=On(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=wa(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=wa(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ti(t)))(i||t)}}(),t.\u0275cmp=qe({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(Lt("align",null),Ui("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),Je("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened)("mat-sidenav-fixed",i.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[St],ngContentSelectors:Ty,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(di(),C(0,"div",0,1),$t(2),M())},directives:[ib],encapsulation:2,data:{animation:[WB.transformDrawer]},changeDetection:0}),t})(),rk=(()=>{class t extends $B{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ti(t)))(i||t)}}(),t.\u0275cmp=qe({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,o){if(1&e&&(tn(o,ok,5),tn(o,qB,5)),2&e){let r;Qe(r=Ye())&&(i._content=r.first),Qe(r=Ye())&&(i._allDrawers=r)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&Je("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[bn([{provide:ik,useExisting:t}]),St],ngContentSelectors:kte,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(di(Ate),N(0,Ote,1,2,"div",0),$t(1),$t(2,1),N(3,Pte,2,0,"mat-sidenav-content",1)),2&e&&(b("ngIf",i.hasBackdrop),h(3),b("ngIf",!i._content))},directives:[ok,gt],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),t})(),ak=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn,Fn,vf],vf,Fn]}),t})();var sk=Wt(489),Of=Wt.n(sk);const zr=void 0,Fte=["de",[["AM","PM"],zr,zr],zr,[["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."],zr,zr],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}",zr,"{1} 'um' {0}",zr],[",",".",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","Euro",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],CUC:[zr,"Cub$"],DEM:["DM"],FKP:[zr,"Fl\xa3"],GHS:[zr,"\u20b5"],GNF:[zr,"F.G."],KMF:[zr,"FC"],PHP:[zr,"\u20b1"],RON:[zr,"L"],RWF:[zr,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[zr,"K"]},"ltr",function Tte(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];function Ku(t){return!!t&&(t instanceof Se||te(t.lift)&&te(t.subscribe))}function lk(...t){const n=Dl(t),{args:e,keys:i}=BR(t),o=new Se(r=>{const{length:a}=e;if(!a)return void r.complete();const s=new Array(a);let l=a,d=a;for(let g=0;g{O||(O=!0,d--),s[g]=D},()=>l--,void 0,()=>{(!l||!O)&&(d||r.next(i?LR(i,s):s),r.complete())}))}});return n?o.pipe(LP(n)):o}class ic extends xe{constructor(n=1/0,e=1/0,i=hA){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){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(i.push(n),!o&&i.push(r.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let a=0;anew ic(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class lb{}let QB=(()=>{class t extends lb{getTranslation(e){return At({})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ti(t)))(i||t)}}(),t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();class ck{}let YB=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();function Iy(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(t!=t&&n!=n)return!0;let o,r,a,e=typeof t;if(e==typeof n&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(n))return!1;for(r in a=Object.create(null),t){if(!Iy(t[r],n[r]))return!1;a[r]=!0}for(r in n)if(!(r in a)&&void 0!==n[r])return!1;return!0}if(!Array.isArray(n))return!1;if((o=t.length)==n.length){for(r=0;r{dk(n[i])?i in t?e[i]=XB(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}class Ry{}let JB=(()=>{class t extends Ry{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,i){let o;return o="string"==typeof e?this.interpolateString(e,i):"function"==typeof e?this.interpolateFunction(e,i):e,o}getValue(e,i){let o="string"==typeof i?i.split("."):[i];i="";do{i+=o.shift(),!ld(e)||!ld(e[i])||"object"!=typeof e[i]&&o.length?o.length?i+=".":e=void 0:(e=e[i],i="")}while(o.length);return e}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(o,r)=>{let a=this.getValue(i,r);return ld(a)?a:o}):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ti(t)))(i||t)}}(),t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();class By{}let ZB=(()=>{class t extends By{compile(e,i){return e}compileTranslations(e,i){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ti(t)))(i||t)}}(),t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();class eL{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Ee,this.onLangChange=new Ee,this.onDefaultLangChange=new Ee}}const uk=new Ze("USE_STORE"),hk=new Ze("USE_DEFAULT_LANG"),pk=new Ze("DEFAULT_LANGUAGE"),fk=new Ze("USE_EXTEND");let jo=(()=>{class t{constructor(e,i,o,r,a,s=!0,l=!1,d=!1,g){this.store=e,this.currentLoader=i,this.compiler=o,this.parser=r,this.missingTranslationHandler=a,this.useDefaultLang=s,this.isolate=l,this.extend=d,this.pending=!1,this._onTranslationChange=new Ee,this._onLangChange=new Ee,this._onDefaultLangChange=new Ee,this._langs=[],this._translations={},this._translationRequests={},g&&this.setDefaultLang(g)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);void 0!==i?(null==this.defaultLang&&(this.defaultLang=e),i.pipe(zn(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return At(this.translations[e]);let i=this.retrieveTranslations(e);return void 0!==i?(this.currentLang||(this.currentLang=e),i.pipe(zn(1)).subscribe(o=>{this.changeLang(e)}),i):(this.changeLang(e),At(this.translations[e]))}retrieveTranslations(e){let i;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),i=this._translationRequests[e]),i}getTranslation(e){this.pending=!0;const i=this.currentLoader.getTranslation(e).pipe(KB(1),zn(1));return this.loadingTranslations=i.pipe(be(o=>this.compiler.compileTranslations(o,e)),KB(1),zn(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},o),this.translations[e]):o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),i}setTranslation(e,i,o=!1){i=this.compiler.compileTranslations(i,e),this.translations[e]=(o||this.extend)&&this.translations[e]?XB(this.translations[e],i):i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{-1===this.langs.indexOf(i)&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,i,o){let r;if(i instanceof Array){let a={},s=!1;for(let l of i)a[l]=this.getParsedResult(e,l,o),Ku(a[l])&&(s=!0);return s?lk(i.map(d=>Ku(a[d])?a[d]:At(a[d]))).pipe(be(d=>{let g={};return d.forEach((O,D)=>{g[i[D]]=O}),g})):a}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,i),o)),void 0===r&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),o)),void 0===r){let a={key:i,translateService:this};void 0!==o&&(a.interpolateParams=o),r=this.missingTranslationHandler.handle(a)}return void 0!==r?r:i}get(e,i){if(!ld(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Su(o=>Ku(o=this.getParsedResult(o,e,i))?o:At(o)));{let o=this.getParsedResult(this.translations[this.currentLang],e,i);return Ku(o)?o:At(o)}}getStreamOnTranslationChange(e,i){if(!ld(e)||!e.length)throw new Error('Parameter "key" required');return Qs(ku(()=>this.get(e,i)),this.onTranslationChange.pipe(io(o=>{const r=this.getParsedResult(o.translations,e,i);return"function"==typeof r.subscribe?r:At(r)})))}stream(e,i){if(!ld(e)||!e.length)throw new Error('Parameter "key" required');return Qs(ku(()=>this.get(e,i)),this.onLangChange.pipe(io(o=>{const r=this.getParsedResult(o.translations,e,i);return Ku(r)?r:At(r)})))}instant(e,i){if(!ld(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,i);if(Ku(o)){if(e instanceof Array){let r={};return e.forEach((a,s)=>{r[e[s]]=e[s]}),r}return e}return o}set(e,i,o=this.currentLang){this.translations[o][e]=this.compiler.compile(i,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return t.\u0275fac=function(e){return new(e||t)(de(eL),de(lb),de(By),de(Ry),de(ck),de(hk),de(uk),de(fk),de(pk))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),Pn=(()=>{class t{constructor(e,i){this.translate=e,this._ref=i,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,i,o){let r=a=>{this.value=void 0!==a?a:e,this.lastKey=e,this._ref.markForCheck()};if(o){let a=this.translate.getParsedResult(o,e,i);Ku(a.subscribe)?a.subscribe(r):r(a)}this.translate.get(e,i).subscribe(r)}transform(e,...i){if(!e||!e.length)return e;if(Iy(e,this.lastKey)&&Iy(i,this.lastParams))return this.value;let o;if(ld(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){let r=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(r)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else"object"==typeof i[0]&&!Array.isArray(i[0])&&(o=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(r=>{this.lastKey&&r.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(r=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(S(jo,16),S(Ln,16))},t.\u0275pipe=Ro({name:"translate",type:t,pure:!1}),t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),tL=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:lb,useClass:QB},e.compiler||{provide:By,useClass:ZB},e.parser||{provide:Ry,useClass:JB},e.missingTranslationHandler||{provide:ck,useClass:YB},eL,{provide:uk,useValue:e.isolate},{provide:hk,useValue:e.useDefaultLang},{provide:fk,useValue:e.extend},{provide:pk,useValue:e.defaultLanguage},jo]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:lb,useClass:QB},e.compiler||{provide:By,useClass:ZB},e.parser||{provide:Ry,useClass:JB},e.missingTranslationHandler||{provide:ck,useClass:YB},{provide:uk,useValue:e.isolate},{provide:hk,useValue:e.useDefaultLang},{provide:fk,useValue:e.extend},{provide:pk,useValue:e.defaultLanguage},jo]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})(),Ly=(()=>{class t{constructor(e){this.http=e}postLogin(e,i,o){return this.http.post(on_baseUrl+"auth/login",{email:e,password:i,captcha:o})}postLoginUsingSubscriptionToken(e){return this.http.post(on_baseUrl+"auth/login-using-subscription-token",{subscriptionToken:e})}postPasswordForget(e){const i={email:e};let o=new ai;return o=o.append("Accept","application/json"),this.http.post(on_baseUrl+"auth/password-forget",i,{headers:o})}getAccount(){let e=new ai;return e=e.append("Accept","application/json"),this.http.get(on_baseUrl+"account",{headers:e})}}return t.\u0275fac=function(e){return new(e||t)(de(_i))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Un=(()=>{class t{constructor(e,i,o){this.http=e,this.router=i,this.authReqService=o,this.logged=!1}postLogin(e,i,o){return this.http.post(on_baseUrl+"auth/login",{email:e,password:i,captcha:o})}postLoginUsingSubscriptionToken(e){return this.http.post(on_baseUrl+"auth/login-using-subscription-token",{subscriptionToken:e})}postPasswordForget(e){const i={email:e};let o=new ai;return o=o.append("Accept","application/json"),this.http.post(on_baseUrl+"auth/password-forget",i,{headers:o})}login(e){!e||(this.accessToken=e,this.logged=!0,localStorage.setItem("accessToken",this.accessToken))}check(){return this.logged}readFromLocalStorage(){null!==localStorage.getItem("accessToken")&&(this.login(localStorage.getItem("accessToken")),this.validate())}validate(){this.authReqService.getAccount().subscribe(e=>{this.collectNowHostedPageUrl=e.data.user.collectNowHostedPageUrl,!0!==e.success&&this.localLogout()})}localLogout(){this.accessToken=null,this.logged=!1,localStorage.removeItem("accessToken")}logout(){this.accessToken=null,this.logged=!1,localStorage.removeItem("accessToken"),this.router.navigateByUrl(""),document.location.replace("")}}return t.\u0275fac=function(e){return new(e||t)(de(_i),de(cn),de(Ly))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Oa=(()=>{class t{constructor(){this.open=!1,this.show=!0,this.mini=!0,this.miniChanged=new Ee}toggleMini(){this.setMini(!this.mini)}setMini(e){this.mini=e,this.miniChanged.emit(this.mini)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),gk=(()=>{class t{constructor(e){this.http=e,this.onSettingPage=!1}getSettings(){let e=new ai;return e=e.append("Accept","application/json"),this.http.get(on_baseUrl+"account",{headers:e})}updatePassword(e,i){let o=new ai;return o=o.append("Accept","application/json"),this.http.post(on_baseUrl+"account/update-password",{password:e,password_confirmation:i},{headers:o})}updateEmail(e){let i=new ai;return i=i.append("Accept","application/json"),this.http.post(on_baseUrl+"account/update-email",{email:e},{headers:i})}updateLanguage(e){let i=new ai;return i=i.append("Accept","application/json"),this.http.post(on_baseUrl+"account/update-locale",{locale:e},{headers:i})}postRenew(){let e=new ai;return e=e.append("Accept","application/json"),this.http.post(on_baseUrl+"account/renew",{headers:e})}}return t.\u0275fac=function(e){return new(e||t)(de(_i))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ny=(()=>{class t{constructor(){this.initialized=!1}static shouldEnableRedirectMode(){return/iPad|iPhone|iPod/.test(navigator.userAgent)}initialize(){this.initialized||(this.cbInstance=window.Chargebee.init({site:"linkvertise",enableRedirectMode:t.shouldEnableRedirectMode()}),this.initialized=!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const{isArray:Ite}=Array;function nL(t){return 1===t.length&&Ite(t[0])?t[0]:t}function zy(...t){const n=Dl(t),e=nL(t);return e.length?new Se(i=>{let o=e.map(()=>[]),r=e.map(()=>!1);i.add(()=>{o=r=null});for(let a=0;!i.closed&&a{if(o[a].push(s),o.every(l=>l.length)){const l=o.map(d=>d.shift());i.next(n?n(...l):l),o.some((d,g)=>!d.length&&r[g])&&i.complete()}},()=>{r[a]=!0,!o[a].length&&i.complete()}));return()=>{o=r=null}}):Wr}function mk(...t){const n=Dl(t);return Le((e,i)=>{const o=t.length,r=new Array(o);let a=t.map(()=>!1),s=!1;for(let l=0;l{r[l]=d,!s&&!a[l]&&(a[l]=!0,(s=a.every(me))&&(a=null))},f));e.subscribe(Be(i,l=>{if(s){const d=[l,...r];i.next(n?n(...d):d)}}))})}new Se(f);let aL=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}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)}}return t.\u0275fac=function(e){return new(e||t)(S(_r),S(Ct))},t.\u0275dir=je({type:t}),t})(),Qu=(()=>{class t extends aL{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ti(t)))(i||t)}}(),t.\u0275dir=je({type:t,features:[St]}),t})();const Pa=new Ze("NgValueAccessor"),zte={provide:Pa,useExisting:yn(()=>_k),multi:!0};let _k=(()=>{class t extends Qu{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ti(t)))(i||t)}}(),t.\u0275dir=je({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&se("change",function(r){return i.onChange(r.target.checked)})("blur",function(){return i.onTouched()})},features:[bn([zte]),St]}),t})();const Hte={provide:Pa,useExisting:yn(()=>xl),multi:!0},Ute=new Ze("CompositionEventMode");let xl=(()=>{class t extends aL{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Vte(){const t=Ws()?Ws().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_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)}}return t.\u0275fac=function(e){return new(e||t)(S(_r),S(Ct),S(Ute,8))},t.\u0275dir=je({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(e,i){1&e&&se("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[bn([Hte]),St]}),t})();function cd(t){return null==t||0===t.length}function sL(t){return null!=t&&"number"==typeof t.length}const Hr=new Ze("NgValidators"),dd=new Ze("NgAsyncValidators"),jte=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class lL{static min(n){return function cL(t){return n=>{if(cd(n.value)||cd(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(cd(n.value)||cd(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return function uL(t){return cd(t.value)?{required:!0}:null}(n)}static requiredTrue(n){return function hL(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function pL(t){return cd(t.value)||jte.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function fL(t){return n=>cd(n.value)||!sL(n.value)?null:n.value.lengthsL(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function mL(t){if(!t)return Hy;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(cd(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return xL(n)}static composeAsync(n){return wL(n)}}function Hy(t){return null}function _L(t){return null!=t}function bL(t){const n=o_(t)?Yi(t):t;return iO(n),n}function vL(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function CL(t,n){return n.map(e=>e(t))}function yL(t){return t.map(n=>function Wte(t){return!t.validate}(n)?n:e=>n.validate(e))}function xL(t){if(!t)return null;const n=t.filter(_L);return 0==n.length?null:function(e){return vL(CL(e,n))}}function bk(t){return null!=t?xL(yL(t)):null}function wL(t){if(!t)return null;const n=t.filter(_L);return 0==n.length?null:function(e){return lk(CL(e,n).map(bL)).pipe(be(vL))}}function vk(t){return null!=t?wL(yL(t)):null}function ML(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function OL(t){return t._rawValidators}function PL(t){return t._rawAsyncValidators}function Ck(t){return t?Array.isArray(t)?t:[t]:[]}function Vy(t,n){return Array.isArray(t)?t.includes(n):t===n}function AL(t,n){const e=Ck(n);return Ck(t).forEach(o=>{Vy(e,o)||e.push(o)}),e}function kL(t,n){return Ck(n).filter(e=>!Vy(t,e))}class SL{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=bk(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=vk(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class wl extends SL{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oa extends SL{get formDirective(){return null}get path(){return null}}class DL{constructor(n){this._cd=n}is(n){var e,i,o;return"submitted"===n?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(o=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===o?void 0:o[n])}}let ud=(()=>{class t extends DL{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(S(wl,2))},t.\u0275dir=je({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Je("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[St]}),t})(),cb=(()=>{class t extends DL{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(S(oa,10))},t.\u0275dir=je({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Je("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))("ng-submitted",i.is("submitted"))},features:[St]}),t})();function db(t,n){wk(t,n),n.valueAccessor.writeValue(t.value),function Jte(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&TL(t,n)})}(t,n),function ene(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function Zte(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&TL(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function Xte(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Wy(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),$y(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Gy(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function wk(t,n){const e=OL(t);null!==n.validator?t.setValidators(ML(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=PL(t);null!==n.asyncValidator?t.setAsyncValidators(ML(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();Gy(n._rawValidators,o),Gy(n._rawAsyncValidators,o)}function $y(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=OL(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=PL(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return Gy(n._rawValidators,i),Gy(n._rawAsyncValidators,i),e}function TL(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function FL(t,n){wk(t,n)}function RL(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Pk(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const ub="VALID",qy="INVALID",Pf="PENDING",hb="DISABLED";function kk(t){return(Ky(t)?t.validators:t)||null}function BL(t){return Array.isArray(t)?bk(t):t||null}function Sk(t,n){return(Ky(n)?n.asyncValidators:t)||null}function LL(t){return Array.isArray(t)?vk(t):t||null}function Ky(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const NL=t=>t instanceof Tk,Dk=t=>t instanceof Fk;function zL(t){return NL(t)?t.value:t.getRawValue()}function HL(t,n){const e=Dk(t),i=t.controls;if(!(e?Object.keys(i):i).length)throw new wt(1e3,"");if(!i[n])throw new wt(1001,"")}function VL(t,n){Dk(t),t._forEachChild((i,o)=>{if(void 0===n[o])throw new wt(1002,"")})}class Ek{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=BL(this._rawValidators),this._composedAsyncValidatorFn=LL(this._rawAsyncValidators)}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 valid(){return this.status===ub}get invalid(){return this.status===qy}get pending(){return this.status==Pf}get disabled(){return this.status===hb}get enabled(){return this.status!==hb}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=BL(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=LL(n)}addValidators(n){this.setValidators(AL(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(AL(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(kL(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(kL(n,this._rawAsyncValidators))}hasValidator(n){return Vy(this._rawValidators,n)}hasAsyncValidator(n){return Vy(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Pf,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=hb,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=ub,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ub||this.status===Pf)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?hb:ub}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Pf,this._hasOwnPendingAsyncValidator=!0;const e=bL(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){return function one(t,n,e){if(null==n||(Array.isArray(n)||(n=n.split(e)),Array.isArray(n)&&0===n.length))return null;let i=t;return n.forEach(o=>{i=Dk(i)?i.controls.hasOwnProperty(o)?i.controls[o]:null:(t=>t instanceof ane)(i)&&i.at(o)||null}),i}(this,n,".")}getError(n,e){const 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){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ee,this.statusChanges=new Ee}_calculateStatus(){return this._allControlsDisabled()?hb:this.errors?qy:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pf)?Pf:this._anyControlsHaveStatus(qy)?qy:ub}_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={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_isBoxedValue(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Ky(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Tk extends Ek{constructor(n=null,e,i){super(kk(e),Sk(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ky(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),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){Pk(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Pk(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){this._isBoxedValue(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}}class Fk extends Ek{constructor(n,e,i){super(kk(e),Sk(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}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={}){VL(this,n),Object.keys(n).forEach(i=>{HL(this,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=zL(e),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const 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(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&n(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(n,e,i)=>((e.enabled||this.disabled)&&(n[i]=e.value),n))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class ane extends Ek{constructor(n,e,i){super(kk(e),Sk(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[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={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){VL(this,n),n.forEach((i,o)=>{HL(this,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>zL(n))}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||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(const 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)}}const sne={provide:oa,useExisting:yn(()=>oc)},pb=(()=>Promise.resolve(null))();let oc=(()=>{class t extends oa{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ee,this.form=new Fk({},bk(e),vk(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){pb.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),db(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){pb.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){pb.then(()=>{const i=this._findContainer(e.path),o=new Fk({});FL(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){pb.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){pb.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,RL(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(S(Hr,10),S(dd,10))},t.\u0275dir=je({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&se("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bn([sne]),St]}),t})();const cne={provide:wl,useExisting:yn(()=>rc)},WL=(()=>Promise.resolve(null))();let rc=(()=>{class t extends wl{constructor(e,i,o,r,a){super(),this._changeDetectorRef=a,this.control=new Tk,this._registered=!1,this.update=new Ee,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function Ok(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===xl?e=r:function ine(t){return Object.getPrototypeOf(t.constructor)===Qu}(r)?i=r:o=r}),o||i||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Mk(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){db(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){WL.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=""===i||i&&"false"!==i;WL.then(()=>{var r;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(e){return this._parent?function jy(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(S(oa,9),S(Hr,10),S(dd,10),S(Pa,10),S(Ln,8))},t.\u0275dir=je({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[bn([cne]),St,fn]}),t})(),fb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=je({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const une={provide:Pa,useExisting:yn(()=>Ik),multi:!0};let $L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})(),hne=(()=>{class t{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:$L}),t})(),Ik=(()=>{class t extends Qu{constructor(e,i,o,r){super(e,i),this._registry=o,this._injector=r,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(wl),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(S(_r),S(Ct),S(hne),S(bt))},t.\u0275dir=je({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,i){1&e&&se("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[bn([une]),St]}),t})();const gne={provide:oa,useExisting:yn(()=>gb)};let gb=(()=>{class t extends oa{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ee,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&($y(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){const i=this.form.get(e.path);return db(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Wy(e.control||null,e,!1),Pk(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.submitted=!0,RL(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(Wy(i||null,e),NL(o)&&(db(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);FL(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function tne(t,n){return $y(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){wk(this.form,this),this._oldForm&&$y(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(S(Hr,10),S(dd,10))},t.\u0275dir=je({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&se("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[bn([gne]),St,fn]}),t})();const vne={provide:Pa,useExisting:yn(()=>mb),multi:!0};function JL(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let mb=(()=>{class t extends Qu{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=JL(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function Cne(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Ti(t)))(i||t)}}(),t.\u0275dir=je({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,i){1&e&&se("change",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[bn([vne]),St]}),t})(),Lk=(()=>{class t{constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(JL(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(_r),S(mb,9))},t.\u0275dir=je({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const yne={provide:Pa,useExisting:yn(()=>Nk),multi:!0};function ZL(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Nk=(()=>{class t extends Qu{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let i;if(this.value=e,Array.isArray(e)){const o=e.map(r=>this._getOptionId(r));i=(r,a)=>{r._setSelected(o.indexOf(a.toString())>-1)}}else i=(o,r)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const o=[],r=i.selectedOptions;if(void 0!==r){const a=r;for(let s=0;s{class t{constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(ZL(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(ZL(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(_r),S(Nk,9))},t.\u0275dir=je({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),Tne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[$L]]}),t})(),_b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[Tne]}),t})();const Hne=["*"],oie=["dialog"];function Xu(t){return null!=t}function Af(t){return(t||document.body).getBoundingClientRect()}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const dN={animation:!0,transitionTimerDelayMs:5},Zie=()=>{},{transitionTimerDelayMs:eoe}=dN,bb=new Map,ra=(t,n,e,i)=>{let o=i.context||{};const r=bb.get(n);if(r)switch(i.runningTransition){case"continue":return Wr;case"stop":t.run(()=>r.transition$.complete()),o=Object.assign(r.context,o),bb.delete(n)}const a=e(n,i.animation,o)||Zie;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>a()),At(void 0).pipe(function Xie(t){return n=>new Se(e=>n.subscribe({next:a=>t.run(()=>e.next(a)),error:a=>t.run(()=>e.error(a)),complete:()=>t.run(()=>e.complete())}))}(t));const s=new xe,l=new xe,d=s.pipe(function Bte(...t){return n=>Qs(n,At(...t))}(!0));bb.set(n,{transition$:s,complete:()=>{l.next(),l.complete()},context:o});const g=function Jie(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const O=Jn(n,"transitionend").pipe(Mt(d),Hn(({target:L})=>L===n));(function iL(...t){return 1===(t=nL(t)).length?Qi(t[0]):new Se(function Rte(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let r=0;r{bb.delete(n),t.run(()=>{a(),s.next(),s.complete()})})}),s.asObservable()};let Yy=(()=>{class t{constructor(){this.animation=dN.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),_N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),vN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})(),xN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),wN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})();var Wo=(()=>{return(t=Wo||(Wo={}))[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",Wo;var t})();"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const ON=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function PN(t){const n=Array.from(t.querySelectorAll(ON)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}new class woe{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let i,o={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))i=n.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const r=this.offsetParent(n);i=this.offset(n,!1),r!==document.documentElement&&(o=this.offset(r,!1)),o.top+=r.clientTop,o.left+=r.clientLeft}return i.top-=o.top,i.bottom-=o.top,i.left-=o.left,i.right-=o.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(n,e=!0){const i=n.getBoundingClientRect(),o_top=window.scrollY-document.documentElement.clientTop,o_left=window.scrollX-document.documentElement.clientLeft;let r={height:i.height||n.offsetHeight,width:i.width||n.offsetWidth,top:i.top+o_top,bottom:i.bottom+o_top,left:i.left+o_left,right:i.right+o_left};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}positionElements(n,e,i,o){const[r="top",a="center"]=i.split("-"),s=o?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),d=parseFloat(l.marginTop),g=parseFloat(l.marginBottom),O=parseFloat(l.marginLeft),D=parseFloat(l.marginRight);let L=0,W=0;switch(r){case"top":L=s.top-(e.offsetHeight+d+g);break;case"bottom":L=s.top+s.height;break;case"left":W=s.left-(e.offsetWidth+O+D);break;case"right":W=s.left+s.width}switch(a){case"top":L=s.top;break;case"bottom":L=s.top+s.height-e.offsetHeight;break;case"left":W=s.left;break;case"right":W=s.left+s.width-e.offsetWidth;break;case"center":"top"===r||"bottom"===r?W=s.left+s.width/2-e.offsetWidth/2:L=s.top+s.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(W)}px, ${Math.round(L)}px)`;const ee=e.getBoundingClientRect(),he=document.documentElement,ae=window.innerHeight||he.clientHeight,ce=window.innerWidth||he.clientWidth;return ee.left>=0&&ee.top>=0&&ee.right<=ce&&ee.bottom<=ae}},new Date(1882,10,12),new Date(2174,10,25);let FN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn,_b]]}),t})(),LN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})();class th{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}let Boe=(()=>{class t{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(zn(1)).subscribe(()=>{ra(this._zone,this._el.nativeElement,(e,i)=>{i&&Af(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return ra(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(Dt))},t.\u0275cmp=qe({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&($c("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),Je("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class NN{close(n){}dismiss(n){}}class Loe{constructor(n,e,i,o){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=o,this._closed=new xe,this._dismissed=new xe,this._hidden=new xe,n.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,a)=>{this._resolve=r,this._reject=a}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Mt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Mt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}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){const e=this._beforeDismiss();!function Qie(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():At(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),zy(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var xb=(()=>{return(t=xb||(xb={}))[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",xb;var t})();let Noe=(()=>{class t{constructor(e,i,o){this._document=e,this._elRef=i,this._zone=o,this._closed$=new xe,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Ee,this.shown=new xe,this.hidden=new xe}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(zn(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},a=zy(ra(this._zone,e,()=>e.classList.remove("show"),i),ra(this._zone,this._dialogEl.nativeElement,()=>{},i));return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){const e={animation:this.animation,runningTransition:"continue"};zy(ra(this._zone,this._elRef.nativeElement,(r,a)=>{a&&Af(r),r.classList.add("show")},e),ra(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Jn(e,"keydown").pipe(Mt(this._closed$),Hn(o=>o.which===Wo.Escape)).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(xb.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Jn(this._dialogEl.nativeElement,"mousedown").pipe(Mt(this._closed$),Mn(()=>i=!1),io(()=>Jn(e,"mouseup").pipe(Mt(this._closed$),zn(1))),Hn(({target:o})=>e===o)).subscribe(()=>{i=!0}),Jn(e,"click").pipe(Mt(this._closed$)).subscribe(({target:o})=>{e===o&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(xb.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),o=PN(e)[0];(i||o||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let o;o=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&ra(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(S(Nt),S(Ct),S(Dt))},t.\u0275cmp=qe({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,i){if(1&e&&_t(oie,7),2&e){let o;Qe(o=Ye())&&(i._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(Lt("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),$c("modal d-block"+(i.windowClass?" "+i.windowClass:"")),Je("fade",i.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Hne,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(di(),C(0,"div",0,1)(2,"div",2),$t(3),M()()),2&e&&$c("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),t})(),zoe=(()=>{class t{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,o=i.style,{overflow:r,paddingRight:a}=o;if(e>0){const s=parseFloat(window.getComputedStyle(i).paddingRight);o.paddingRight=`${s+e}px`}return o.overflow="hidden",()=>{e>0&&(o.paddingRight=a),o.overflow=r}}}return t.\u0275fac=function(e){return new(e||t)(de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Hoe=(()=>{class t{constructor(e,i,o,r,a,s){this._applicationRef=e,this._injector=i,this._document=o,this._scrollBar=r,this._rendererFactory=a,this._ngZone=s,this._activeWindowCmptHasChanged=new xe,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new Ee,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{this._ngZone.runOutsideAngular(()=>{const o=Jn(n,"focusin").pipe(Mt(e),be(r=>r.target));Jn(n,"keydown").pipe(Mt(e),Hn(r=>r.which===Wo.Tab),mk(o)).subscribe(([r,a])=>{const[s,l]=PN(n);(a===s||a===n)&&r.shiftKey&&(l.focus(),r.preventDefault()),a===l&&!r.shiftKey&&(s.focus(),r.preventDefault())}),i&&Jn(n,"click").pipe(Mt(e),mk(o),be(r=>r[1])).subscribe(r=>r.focus())})})(0,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,o,r){const a=r.container instanceof HTMLElement?r.container:Xu(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!a)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const l=new NN,d=this._getContentRef(e,r.injector||i,o,l,r);let g=!1!==r.backdrop?this._attachBackdrop(e,a):void 0,O=this._attachWindowComponent(e,a,d),D=new Loe(O,d,g,r.beforeDismiss);return this._registerModalRef(D),this._registerWindowCmpt(O),D.hidden.pipe(zn(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),l.close=L=>{D.close(L)},l.dismiss=L=>{D.dismiss(L)},this._applyWindowOptions(O.instance,r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),g&&g.instance&&(this._applyBackdropOptions(g.instance,r),g.changeDetectorRef.detectChanges()),O.changeDetectorRef.detectChanges(),D}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let r=e.resolveComponentFactory(Boe).create(this._injector);return this._applicationRef.attachView(r.hostView),i.appendChild(r.location.nativeElement),r}_attachWindowComponent(e,i,o){let a=e.resolveComponentFactory(Noe).create(this._injector,o.nodes);return this._applicationRef.attachView(a.hostView),i.appendChild(a.location.nativeElement),a}_applyWindowOptions(e,i){this._windowAttributes.forEach(o=>{Xu(i[o])&&(e[o]=i[o])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(o=>{Xu(i[o])&&(e[o]=i[o])})}_getContentRef(e,i,o,r,a){return o?o instanceof gi?this._createFromTemplateRef(o,r):function cN(t){return"string"==typeof t}(o)?this._createFromString(o):this._createFromComponent(e,i,o,r,a):new th([])}_createFromTemplateRef(e,i){const r=e.createEmbeddedView({$implicit:i,close(a){i.close(a)},dismiss(a){i.dismiss(a)}});return this._applicationRef.attachView(r),new th([r.rootNodes],r)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new th([[i]])}_createFromComponent(e,i,o,r,a){const s=e.resolveComponentFactory(o),l=bt.create({providers:[{provide:NN,useValue:r}],parent:i}),d=s.create(l),g=d.location.nativeElement;return a.scrollable&&g.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new th([[g]],d.hostView,d)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(o=>{o!==e&&"SCRIPT"!==o.nodeName&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.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){const i=()=>{const o=this._modalRefs.indexOf(e);o>-1&&(this._modalRefs.splice(o,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(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(de(__),de(bt),de(Nt),de(zoe),de(Yp),de(Dt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Voe=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(de(Yy))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vr=(()=>{class t{constructor(e,i,o,r){this._moduleCFR=e,this._injector=i,this._modalStack=o,this._config=r}open(e,i={}){const o=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,e,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(de(js),de(bt),de(Hoe),de(Voe))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({providers:[Vr]}),t})(),jN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),XN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),ZN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),e6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),t6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),n6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),o6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})(),r6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})();new Ze("live announcer delay",{providedIn:"root",factory:function ere(){return 100}});let a6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[sn]]}),t})();const tre=[mN,_N,vN,xN,wN,FN,LN,zN,jN,XN,ZN,e6,t6,n6,o6,r6,a6];let s6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[tre,mN,_N,vN,xN,wN,FN,LN,zN,jN,XN,ZN,e6,t6,n6,o6,r6,a6]}),t})(),Jk=(()=>{class t{constructor(e){this.route=e,this.origin="network"}boot(){this.route.queryParams.subscribe(e=>{this.origin=e.o||"network"})}}return t.\u0275fac=function(e){return new(e||t)(de(Cr))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Zk=(()=>{class t{constructor(){this.tokens={string:""}}hasToken(e){return!!this.tokens[e]}getToken(e){"INSTALLATION"===(e=e.toUpperCase().replace("-","_"))&&(e="ADDON");const i=this.tokens[e];return delete this.tokens[e],i}setTokens(e){this.tokens=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ur=(()=>{class t{constructor(e,i,o){this.http=e,this.originService=i,this.linkActionTokenService=o,this.baseUrl="https://publisher.linkvertise.com/api/v1/",this.customAdBaseUrl="https://publisher.linkvertise.com/api/v1/",this.origin="",this.linkOrigin="",this.isLoaded=!1,this.onRedirectPage=!1,this.favicons=!1,this.metaData$$=new ic,this.metaData$=this.metaData$$.asObservable(),this.keywordChange$$=new ic}getApiUrl(e=""){return this.getBaseApiUrlForCurrentLink()+"/"+e}getBaseApiUrlForCurrentLink(){return this.baseUrl+"redirect/link/"+this.userId+"/"+this.prepareTarget(this.url)}setLinkMeta(e,i,o){this.type=e,this.userId=i,this.target=o}setOrigin(e){e&&(this.origin=e)}setLinkUrl(e){this.url=e}handleDynamicPremiumLink(e,i){const o={origin:this.origin};return this.http.get(this.baseUrl+"redirect/link/dynamic/"+i+"/"+this.prepareTarget(e),{params:o})}getLinkData(){if(!this.type)return;const e={origin:this.origin,link_origin:this.linkOrigin};return this.http.get(this.baseUrl+this.type+this.userId+"/"+this.prepareTarget(this.target),{params:e}).pipe(Mn(i=>this.metaData$$.next(i)))}getCustomAdData(){return this.http.get(this.customAdBaseUrl+"get-ads")}prepareTarget(e){if("string"==typeof e)return encodeURIComponent(e.replace("/","$"))}postAction(e,i={}){return i.trafficOrigin=this.originService.origin,i.token=this.linkActionTokenService.getToken(e),this.http.get(this.getBaseApiUrlForCurrentLink()+"/"+e,{params:i})}postCustomAd(e,i,o={}){return o.trafficOrigin=this.originService.origin,o.token=this.linkActionTokenService.getToken(e),this.http.get(this.getBaseApiUrlForCurrentLink()+"/"+e+"/"+i,{params:o})}getLinkTarget(e={}){const o={serial:e,token:this.linkActionTokenService.getToken("TARGET")};return this.http.post(this.getBaseApiUrlForCurrentLink()+"/target",o)}getLinkPaste(e){const o={serial:e,token:this.linkActionTokenService.getToken("TARGET")};return this.http.post(this.getBaseApiUrlForCurrentLink()+"/paste",o)}setSuggestions(e){this.suggestions=e,this.suggestionLength=this.suggestions.length>6?6:this.suggestions.length,this.isLoaded=!0}postOfferTracking(e){const i={offer_id:e};return this.http.get(this.getBaseApiUrlForCurrentLink()+"/og_ads_clickout",{params:i})}downloadInfo(e){return this.http.post(this.getBaseApiUrlForCurrentLink()+"/download-info",{key:e})}cachePopularSearches(e){return this.http.post(this.getBaseApiUrlForCurrentLink()+"/popular-searches",{popular_searches:e})}setKeyword(e){this.keyword=e,this.keywordChange$$.next(this.keyword)}}return t.\u0275fac=function(e){return new(e||t)(de(_i),de(Jk),de(Zk))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ps=(()=>{class t{constructor(e,i){this.modalService=e,this.linkvertiseService=i}setModalRef(e){this.modalRef=e}openModal(e=!1,i=!1,o=null){!1!==e&&(this.modalRef.user=e),this.modalRef.openModal(o)}openModalAndTrack(e=!1){this.openModal(e,!0)}openImprintModal(){this.modalRef.openImprint()}openTosModal(){this.modalRef.openTou()}openDataModal(){this.modalRef.openData()}closeModal(){this.modalRef.closeModal()}}return t.\u0275fac=function(e){return new(e||t)(de(Vr),de(Ur))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Js=(()=>{class t{constructor(){this.windowResizeObserver$=Jn(window,"resize").pipe(Ys(250))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class eS{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Sf extends eS{constructor(n,e,i,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o}}class nh extends eS{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}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()}}class nre extends eS{constructor(n){super(),this.element=n instanceof Ct?n.nativeElement:n}}class r2{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Sf?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof nh?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof nre?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ire extends r2{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=a=>{const s=a.element,l=this._document.createComment("dom-portal");s.parentNode.insertBefore(l,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||bt.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let ore=(()=>{class t extends nh{constructor(e,i){super(e,i)}}return t.\u0275fac=function(e){return new(e||t)(S(gi),S(go))},t.\u0275dir=je({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[St]}),t})(),pd=(()=>{class t extends r2{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ee,this.attachDomPortal=r=>{const a=r.element,s=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=o}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)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(r,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(S(js),S(go),S(Nt))},t.\u0275dir=je({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[St]}),t})(),wb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({}),t})();const l6=b5();class are{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=So(-this._previousScrollPosition.left),n.style.top=So(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),l6&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),l6&&(i.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class sre{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const 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}}class c6{enable(){}disable(){}attach(){}}function tS(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function d6(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class lre{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();tS(e,[{width:i,height:o,bottom:o,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}}let cre=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new c6,this.close=a=>new sre(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new are(this._viewportRuler,this._document),this.reposition=a=>new lre(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(de(nb),de(rd),de(Dt),de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class a2{constructor(n){if(this.scrollStrategy=new c6,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class dre{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class ure{constructor(n,e,i,o,r,a,s,l,d){this._portalOutlet=n,this._host=e,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=d,this._backdropElement=null,this._backdropClick=new xe,this._attachments=new xe,this._detachments=new xe,this._locationChanges=G.EMPTY,this._backdropClickHandler=g=>this._backdropClick.next(g),this._backdropTransitionendHandler=g=>{this._disposeBackdrop(g.target)},this._keydownEvents=new xe,this._outsidePointerEvents=new xe,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(zn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},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(){const n=this._config.direction;return n?"string"==typeof n?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;const n=this._pane.style;n.width=So(this._config.width),n.height=So(this._config.height),n.minWidth=So(this._config.minWidth),n.minHeight=So(this._config.minHeight),n.maxWidth=So(this._config.maxWidth),n.maxHeight=So(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;!n||(n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500)))}_toggleClasses(n,e,i){const o=QC(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(Mt(Io(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let nS=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||bA()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,o,s),d=this._getOverlayPoint(l,e,s),g=this._getOverlayFit(d,e,i,s);if(g.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(g,d,i)?r.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!a||a.overlayFit.visibleAreal&&(l=g,s=d)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ih(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(u6),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const 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,-1===n.indexOf(this._lastPosition)&&(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 o,r;if("center"==i.originX)o=n.left+n.width/2;else{const a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;o="start"==i.originX?a:s}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=p6(e);let{x:a,y:s}=n,l=this._getOffset(o,"x"),d=this._getOffset(o,"y");l&&(a+=l),d&&(s+=d);let D=0-s,L=s+r.height-i.height,W=this._subtractOverflows(r.width,0-a,a+r.width-i.width),ee=this._subtractOverflows(r.height,D,L),he=W*ee;return{visibleArea:he,isCompletelyWithinViewport:r.width*r.height===he,fitsInViewportVertically:ee===r.height,fitsInViewportHorizontally:W==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,a=h6(this._overlayRef.getConfig().minHeight),s=h6(this._overlayRef.getConfig().minWidth),d=n.fitsInViewportHorizontally||null!=s&&s<=r;return(n.fitsInViewportVertically||null!=a&&a<=o)&&d}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=p6(e),r=this._viewportRect,a=Math.max(n.x+o.width-r.width,0),s=Math.max(n.y+o.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),d=Math.max(r.left-i.left-n.x,0);let g=0,O=0;return g=o.width<=r.width?d||-a:n.xW&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-W/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)D=i.width-n.x+this._viewportMargin,g=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)O=n.x,g=i.right-n.x;else{const L=Math.min(i.right-n.x+i.left,n.x),W=this._lastBoundingBoxSize.width;g=2*L,O=n.x-L,g>W&&!this._isInitialRender&&!this._growAfterOpen&&(O=n.x-W/2)}return{top:a,left:O,bottom:s,right:D,width:g,height:r}}_setBoundingBoxStyles(n,e){const 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));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=So(i.height),o.top=So(i.top),o.bottom=So(i.bottom),o.width=So(i.width),o.left=So(i.left),o.right=So(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=So(r)),a&&(o.maxWidth=So(a))}this._lastBoundingBoxSize=i,ih(this._boundingBox.style,o)}_resetBoundingBoxStyles(){ih(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ih(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){const g=this._viewportRuler.getViewportScrollPosition();ih(i,this._getExactOverlayY(e,n,g)),ih(i,this._getExactOverlayX(e,n,g))}else i.position="static";let s="",l=this._getOffset(e,"x"),d=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),d&&(s+=`translateY(${d}px)`),i.transform=s.trim(),a.maxHeight&&(o?i.maxHeight=So(a.maxHeight):r&&(i.maxHeight="")),a.maxWidth&&(o?i.maxWidth=So(a.maxWidth):r&&(i.maxWidth="")),ih(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=So(r.y),o}_getExactOverlayX(n,e,i){let a,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),a=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===a?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=So(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:d6(n,i),isOriginOutsideView:tS(n,i),isOverlayClipped:d6(e,i),isOverlayOutsideView:tS(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const 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"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&QC(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Ct)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const 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 ih(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function h6(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(hre);return e&&"px"!==e?null:parseFloat(n)}return t||null}function p6(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)}}const f6="cdk-global-overlay-wrapper";class fre{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(n){const 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(f6),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._rightOffset="",this._leftOffset=n,this._justifyContent="flex-start",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._leftOffset="",this._rightOffset=n,this._justifyContent="flex-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._justifyContent="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=i,l=!("100%"!==o&&"100vw"!==o||a&&"100%"!==a&&"100vw"!==a),d=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s);n.position=this._cssPosition,n.marginLeft=l?"0":this._leftOffset,n.marginTop=d?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(f6),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let gre=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new fre}flexibleConnectedTo(e){return new pre(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(de(rd),de(Nt),de(Co),de(nS))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),g6=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(de(Nt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mre=(()=>{class t extends g6{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let a=r.length-1;a>-1;a--)if(r[a]._keydownEvents.observers.length>0){const s=r[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(o)):s.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(de(Nt),de(Dt,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_re=(()=>{class t extends g6{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=zu(r)},this._clickListener=r=>{const a=zu(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){const g=l[d];if(g._outsidePointerEvents.observers.length<1||!g.hasAttached())continue;if(g.overlayElement.contains(a)||g.overlayElement.contains(s))break;const O=g._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>O.next(r)):O.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(de(Nt),de(Co),de(Dt,8))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bre=0,fs=(()=>{class t{constructor(e,i,o,r,a,s,l,d,g,O,D){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=a,this._injector=s,this._ngZone=l,this._document=d,this._directionality=g,this._location=O,this._outsideClickDispatcher=D}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),a=new a2(e);return a.direction=a.direction||this._directionality.value,new ure(r,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+bre++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(__)),new ire(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(de(cre),de(nS),de(js),de(gre),de(mre),de(bt),de(Dt),de(Nt),de(ia),de(b_),de(_re))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})();const vre=[{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"}],m6=new Ze("cdk-connected-overlay-scroll-strategy");let _6=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(S(Ct))},t.\u0275dir=je({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),b6=(()=>{class t{constructor(e,i,o,r,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=G.EMPTY,this._attachSubscription=G.EMPTY,this._detachSubscription=G.EMPTY,this._positionSubscription=G.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ee,this.positionChange=new Ee,this.attach=new Ee,this.detach=new Ee,this.overlayKeydown=new Ee,this.overlayOutsideClick=new Ee,this._templatePortal=new nh(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}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)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=On(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=On(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=On(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=On(e)}get push(){return this._push}set push(e){this._push=On(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(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=vre);const 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),27===i.keyCode&&!this.disableClose&&!Ma(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new a2({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _6?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function rre(t,n=!1){return Le((e,i)=>{let o=0;e.subscribe(Be(i,r=>{const a=t(r,o++);(a||n)&&i.next(r),!a&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(S(fs),S(gi),S(go),S(m6),S(ia,8))},t.\u0275dir=je({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[fn]}),t})();const yre={provide:m6,deps:[fs],useFactory:function Cre(t){return()=>t.scrollStrategies.reposition()}};let s2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({providers:[fs,yre],imports:[[tb,wb,C5],C5]}),t})();const xre=["mat-button",""],wre=["*"],Ore=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Pre=qu(Sy(wf(class{constructor(t){this._elementRef=t}})));let iS=(()=>{class t extends Pre{constructor(e,i,o){super(e),this._focusMonitor=i,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of Ore)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return t.\u0275fac=function(e){return new(e||t)(S(Ct),S(Uu),S(uo,8))},t.\u0275cmp=qe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&_t(Mf,5),2&e){let o;Qe(o=Ye())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Lt("disabled",i.disabled||null),Je("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[St],attrs:xre,ngContentSelectors:wre,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(di(),C(0,"span",0),$t(1),M(),ne(2,"span",1)(3,"span",2)),2&e&&(h(2),Je("mat-button-ripple-round",i.isRoundButton||i.isIconButton),b("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[Mf],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),Mb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[Ey,Fn],Fn]}),t})();const v6=new Set;let Df,C6=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kre}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Are(t){if(!v6.has(t))try{Df||(Df=document.createElement("style"),Df.setAttribute("type","text/css"),document.head.appendChild(Df)),Df.sheet&&(Df.sheet.insertRule(`@media ${t} {body{ }}`,0),v6.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(de(Co))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function kre(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let oS=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new xe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return y6(QC(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=TC(y6(QC(e)).map(a=>this._registerQuery(a).observable));return r=Qs(r.pipe(zn(1)),r.pipe(ry(1),Ys(0))),r.pipe(be(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:d})=>{s.matches=s.matches||l,s.breakpoints[d]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new Se(a=>{const s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(bo(i),be(({matches:a})=>({query:e,matches:a})),Mt(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(de(C6),de(Dt))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function y6(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function Sre(t,n){if(1&t){const e=Ne();C(0,"div",2)(1,"button",3),se("click",function(){return fe(e),R().action()}),V(2),M()()}if(2&t){const e=R();h(2),_e(e.data.action)}}function Dre(t,n){}const w6=new Ze("MatSnackBarData");class l2{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Ere=Math.pow(2,31)-1;class rS{constructor(n,e){this._overlayRef=e,this._afterDismissed=new xe,this._afterOpened=new xe,this._onAction=new xe,this._dismissedByAction=!1,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,Ere))}_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}}let Tre=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(S(rS),S(w6))},t.\u0275cmp=qe({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(C(0,"span",0),V(1),M(),N(2,Sre,3,1,"div",1)),2&e&&(h(1),_e(i.data.message),h(1),b("ngIf",i.hasAction))},directives:[iS,gt],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),t})();const Fre={snackBarState:Cl("state",[Uo("void, hidden",si({transform:"scale(0.8)",opacity:0})),Uo("visible",si({transform:"scale(1)",opacity:1})),xr("* => visible",Nr("150ms cubic-bezier(0, 0, 0.2, 1)")),xr("* => void, * => hidden",Nr("75ms cubic-bezier(0.4, 0.0, 1, 1)",si({opacity:0})))])};let Ire=(()=>{class t extends r2{constructor(e,i,o,r,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=a,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new xe,this._onExit=new xe,this._onEnter=new xe,this._animationState="void",this.attachDomPortal=s=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(s)),this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(zn(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==o||o.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(S(Dt),S(Ct),S(Ln),S(Co),S(l2))},t.\u0275cmp=qe({type:t,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&_t(pd,7),2&e){let o;Qe(o=Ye())&&(i._portalOutlet=o.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&r_("@state.done",function(r){return i.onAnimationEnd(r)}),2&e&&s_("@state",i._animationState)},features:[St],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(C(0,"div",0),N(1,Dre,0,0,"ng-template",1),M(),ne(2,"div")),2&e&&(h(2),Lt("aria-live",i._live)("role",i._role))},directives:[pd],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[Fre.snackBarState]}}),t})(),c2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=lt({imports:[[s2,wb,sn,Mb,Fn],Fn]}),t})();const M6=new Ze("mat-snack-bar-default-options",{providedIn:"root",factory:function Rre(){return new l2}});let Bre=(()=>{class t{constructor(e,i,o,r,a,s){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r=Object.assign(Object.assign({},this._defaultConfig),o);return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=bt.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:l2,useValue:i}]}),a=new Sf(this.snackBarContainerComponent,i.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){const o=Object.assign(Object.assign(Object.assign({},new l2),this._defaultConfig),i),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new rS(a,r);if(e instanceof gi){const l=new nh(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{const l=this._createInjector(o,s),d=new Sf(e,void 0,l),g=a.attachComponentPortal(d);s.instance=g.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Mt(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new a2;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,s=!a&&"center"!==e.horizontalPosition;return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return bt.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:rS,useValue:i},{provide:w6,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(de(fs),de(OA),de(bt),de(oS),de(t,12),de(M6))},t.\u0275prov=Te({token:t,factory:t.\u0275fac}),t})(),d2=(()=>{class t extends Bre{constructor(e,i,o,r,a,s){super(e,i,o,r,a,s),this.simpleSnackBarComponent=Tre,this.snackBarContainerComponent=Ire,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(de(fs),de(OA),de(bt),de(oS),de(t,12),de(M6))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:c2}),t})(),Va=(()=>{class t{constructor(e){this.snackBar=e,this.loading=!0}setLoading(e){this.loading=e}isLoading(){return this.loading}finishWithSnackBar(e,i=2e3,o,r){return this.snackBar.open(e,o,r||{duration:i})}}return t.\u0275fac=function(e){return new(e||t)(de(d2))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ef=(()=>{class t{constructor(e){this.http=e}postSubscribe(e){let i=new ai;return i=i.append("Accept","application/json"),this.http.post(on_baseUrl+"subscriptions/subscribe",{user_id:e},{headers:i})}postUnsubscribe(e){let i=new ai;return i=i.append("Accept","application/json"),this.http.post(on_baseUrl+"subscriptions/unsubscribe",{user_id:e},{headers:i})}getSubscriber(){let e=new ai;return e=e.append("Accept","application/json"),this.http.get(on_baseUrl+"subscriptions/list",{headers:e})}}return t.\u0275fac=function(e){return new(e||t)(de(_i))},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fd=(()=>{class t{constructor(){this.ctrLastLink=null}ctrTrack(e){this.ctrLastLink=e}ctrHasBeenAccessed(e){return null!==this.ctrLastLink&&this.ctrLastLink.id===e.id}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),oh=(()=>{class t{constructor(e){this.linkvertiseService=e,this.iFrameUrl="/assets/vendor/thinksuggest.html",this.thinksuggest="TLbx",this.suggestionsAmount=8,this.iFrameCreated=!1}setCountry(e){const i={us:"en-us",de:"de-de",gb:"en-gb",fr:"fr-fr",at:"de-at",ca:"en-ca"}[e.toLocaleLowerCase()]||"en-us";try{this.createIFrame(),document.getElementById("thinksuggest").contentWindow.switchcountry(i),document.getElementById("thinksuggest_ss").contentWindow.switchcountry(i)}catch(o){return setTimeout(()=>{this.setCountry(e)},200),[]}}boot(){this.createIFrame()}createIFrame(){this.iFrameCreated||($("