(self.webpackChunkcampaign_ui=self.webpackChunkcampaign_ui||[]).push([[179],{98255:function(e){function t(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=function(){return[]},t.resolve=t,t.id=98255,e.exports=t},53924:function(e,t,n){var r=n(26661),s=n(42492),i=s;i.v1=r,i.v4=s,e.exports=i},83951:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0;return[t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]]].join("")}},45570:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},26661:function(e,t,n){var r,s,i=n(45570),o=n(83951),a=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==h){var f=i();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==h&&(h=s=16383&(f[6]<<8|f[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:l+1,m=p-a+(g-l)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,l=g,s=h;var v=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;u[c++]=v>>>24&255,u[c++]=v>>>16&255,u[c++]=v>>>8&255,u[c++]=255&v;var y=p/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=h>>>8|128,u[c++]=255&h;for(var b=0;b<6;++b)u[c+b]=d[b];return t||o(u)}},42492:function(e,t,n){var r=n(45570),s=n(83951);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;a<16;++a)t[i+a]=o[a];return t||s(o)}},8089:function(e,t,n){var r=n(97244),s=n(79977),i=s;i.v1=r,i.v4=s,e.exports=i},88014:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0;return[t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]]].join("")}},66779:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},97244:function(e,t,n){var r,s,i=n(66779),o=n(88014),a=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==h){var f=i();null==d&&(d=r=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==h&&(h=s=16383&(f[6]<<8|f[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),g=void 0!==e.nsecs?e.nsecs:l+1,m=p-a+(g-l)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>a)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=p,l=g,s=h;var v=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;u[c++]=v>>>24&255,u[c++]=v>>>16&255,u[c++]=v>>>8&255,u[c++]=255&v;var y=p/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=h>>>8|128,u[c++]=255&h;for(var b=0;b<6;++b)u[c+b]=d[b];return t||o(u)}},79977:function(e,t,n){var r=n(66779),s=n(88014);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;a<16;++a)t[i+a]=o[a];return t||s(o)}},43187:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-i)&63):"=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,s=0;r>>6-2*s);return n}}},23742:function(e,t,n){var r,s,i,o;r=n(28278),s=n(43187).utf8,i=n(43187).bin,(o=function(e,t){var n=r.wordsToBytes(function(e){e.constructor==String?e=s.stringToBytes(e):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());var t=r.bytesToWords(e),n=8*e.length,i=[],o=1732584193,a=-271733879,l=-1732584194,c=271733878,u=-1009589776;t[n>>5]|=128<<24-n%32,t[15+(n+64>>>9<<4)]=n;for(var d=0;d>>31}var b=(o<<5|o>>>27)+u+(i[v]>>>0)+(v<20?1518500249+(a&l|~a&c):v<40?1859775393+(a^l^c):v<60?(a&l|a&c|l&c)-1894007588:(a^l^c)-899497514);u=c,c=l,l=a<<30|a>>>2,a=o,o=b}o+=h,a+=f,l+=p,c+=g,u+=m}return[o,a,l,c,u]}(e));return t&&t.asBytes?n:t&&t.asString?i.bytesToString(n):r.bytesToHex(n)})._blocksize=16,o._digestsize=20,e.exports=o},65823:function(e,t,n){"use strict";function r(e){return"function"==typeof e}function s(e){const t=e(e=>{Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const i=s(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function o(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class a{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:s}=this;if(s)if(this._parentage=null,Array.isArray(s))for(const e of s)e.remove(this);else s.remove(this);const{initialTeardown:o}=this;if(r(o))try{o()}catch(t){e=t instanceof i?t.errors:[t]}const{_finalizers:a}=this;if(a){this._finalizers=null;for(const t of a)try{u(t)}catch(n){e=null!=e?e:[],n instanceof i?e=[...e,...n.errors]:e.push(n)}}if(e)throw new i(e)}}add(e){var t;if(e&&e!==this)if(this.closed)u(e);else{if(e instanceof a){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(e)}}_hasParent(e){const{_parentage:t}=this;return t===e||Array.isArray(t)&&t.includes(e)}_addParent(e){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e}_removeParent(e){const{_parentage:t}=this;t===e?this._parentage=null:Array.isArray(t)&&o(t,e)}remove(e){const{_finalizers:t}=this;t&&o(t,e),e instanceof a&&e._removeParent(this)}}a.EMPTY=(()=>{const e=new a;return e.closed=!0,e})();const l=a.EMPTY;function c(e){return e instanceof a||e&&"closed"in e&&r(e.remove)&&r(e.add)&&r(e.unsubscribe)}function u(e){r(e)?e():e.unsubscribe()}const d={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},h={setTimeout(e,t,...n){const{delegate:r}=h;return(null==r?void 0:r.setTimeout)?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=h;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function f(e){h.setTimeout(()=>{const{onUnhandledError:t}=d;if(!t)throw e;t(e)})}function p(){}const g=m("C",void 0,void 0);function m(e,t,n){return{kind:e,value:t,error:n}}let v=null;function y(e){if(d.useDeprecatedSynchronousErrorHandling){const t=!v;if(t&&(v={errorThrown:!1,error:null}),e(),t){const{errorThrown:e,error:t}=v;if(v=null,e)throw t}}else e()}class b extends a{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,c(e)&&e.add(this)):this.destination=x}static create(e,t,n){return new E(e,t,n)}next(e){this.isStopped?T(m("N",e,void 0),this):this._next(e)}error(e){this.isStopped?T(m("E",void 0,e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?T(g,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const C=Function.prototype.bind;function w(e,t){return C.call(e,t)}class S{constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(np){_(np)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(np){_(np)}else _(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){_(t)}}}class E extends b{constructor(e,t,n){let s;if(super(),r(e)||!e)s={next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0};else{let t;this&&d.useDeprecatedNextContext?(t=Object.create(e),t.unsubscribe=()=>this.unsubscribe(),s={next:e.next&&w(e.next,t),error:e.error&&w(e.error,t),complete:e.complete&&w(e.complete,t)}):s=e}this.destination=new S(s)}}function _(e){d.useDeprecatedSynchronousErrorHandling?function(e){d.useDeprecatedSynchronousErrorHandling&&v&&(v.errorThrown=!0,v.error=e)}(e):f(e)}function T(e,t){const{onStoppedNotification:n}=d;n&&h.setTimeout(()=>n(e,t))}const x={closed:!0,next:p,error:function(e){throw e},complete:p},A="function"==typeof Symbol&&Symbol.observable||"@@observable";function k(e){return e}let P=(()=>{class e{constructor(e){e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const s=function(e){return e&&e instanceof b||function(e){return e&&r(e.next)&&r(e.error)&&r(e.complete)}(e)&&c(e)}(e)?e:new E(e,t,n);return y(()=>{const{operator:e,source:t}=this;s.add(e?e.call(s,t):t?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(np){e.error(np)}}forEach(e,t){return new(t=I(t))((t,n)=>{const r=new E({next:t=>{try{e(t)}catch(s){n(s),r.unsubscribe()}},error:n,complete:t});this.subscribe(r)})}_subscribe(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)}[A](){return this}pipe(...e){return function(e){return 0===e.length?k:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}(e)(this)}toPromise(e){return new(e=I(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function I(e){var t;return null!==(t=null!=e?e:d.Promise)&&void 0!==t?t:Promise}const O=s(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let R=(()=>{class e extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const t=new U(this,this);return t.operator=e,t}_throwIfClosed(){if(this.closed)throw new O}next(e){y(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const t of this.currentObservers)t.next(e)}})}error(e){y(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:t}=this;for(;t.length;)t.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:t,isStopped:n,observers:r}=this;return t||n?l:(this.currentObservers=null,r.push(e),new a(()=>{this.currentObservers=null,o(r,e)}))}_checkFinalizedStatuses(e){const{hasError:t,thrownError:n,isStopped:r}=this;t?e.error(n):r&&e.complete()}asObservable(){const e=new P;return e.source=this,e}}return e.create=(e,t)=>new U(e,t),e})();class U extends R{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)}error(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)}complete(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)}_subscribe(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:l}}function L(e){return r(null==e?void 0:e.lift)}function N(e){return t=>{if(L(t))return t.lift(function(t){try{return e(t,this)}catch(np){this.error(np)}});throw new TypeError("Unable to lift unknown Observable type")}}function D(e,t,n,r,s){return new M(e,t,n,r,s)}class M extends b{constructor(e,t,n,r,s,i){super(e),this.onFinalize=s,this.shouldUnsubscribe=i,this._next=t?function(n){try{t(n)}catch(r){e.error(r)}}:super._next,this._error=r?function(t){try{r(t)}catch(n){e.error(n)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(t){e.error(t)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function F(e,t){return N((n,r)=>{let s=0;n.subscribe(D(r,n=>{r.next(e.call(t,n,s++))}))})}var j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1||a(e,t)})},t&&(r[e]=t(r[e])))}function a(e,t){try{!function(e){e.value instanceof H?Promise.resolve(e.value.v).then(l,c):u(i[0][2],e)}(s[e](t))}catch(n){u(i[0][3],n)}}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function V(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,s){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,s,(t=e[n](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const W=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function G(e){return r(null==e?void 0:e.then)}function J(e){return r(e[A])}function Y(e){return Symbol.asyncIterator&&r(null==e?void 0:e[Symbol.asyncIterator])}function K(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Q="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function X(e){return r(null==e?void 0:e[Q])}function ee(e){return z(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:e,done:n}=yield H(t.read());if(n)return yield H(void 0);yield yield H(e)}}finally{t.releaseLock()}})}function te(e){return r(null==e?void 0:e.getReader)}function ne(e){if(e instanceof P)return e;if(null!=e){if(J(e))return function(e){return new P(t=>{const n=e[A]();if(r(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(W(e))return function(e){return new P(t=>{for(let n=0;n{e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,f)})}(e);if(Y(e))return re(e);if(X(e))return function(e){return new P(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(te(e))return function(e){return re(ee(e))}(e)}throw K(e)}function re(e){return new P(t=>{(function(e,t){var n,r,s,i;return B(this,void 0,void 0,function*(){try{for(n=V(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(o){s={error:o}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(s)throw s.error}}t.complete()})})(e,t).catch(e=>t.error(e))})}function se(e,t,n,r=0,s=!1){const i=t.schedule(function(){n(),s?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!s)return i}function ie(e,t,n=1/0){return r(t)?ie((n,r)=>F((e,s)=>t(n,e,r,s))(ne(e(n,r))),n):("number"==typeof t&&(n=t),N((t,r)=>function(e,t,n,r,s,i,o,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},f=e=>c{c++;let s=!1;ne(n(e,u++)).subscribe(D(t,e=>{t.next(e)},()=>{s=!0},void 0,()=>{if(s)try{for(c--;l.length&&c{d=!0,h()})),()=>{}}(t,r,e,n)))}function oe(e=1/0){return ie(k,e)}const ae=new P(e=>e.complete());function le(e){return e&&r(e.schedule)}function ce(e){return e[e.length-1]}function ue(e){return le(ce(e))?e.pop():void 0}function de(e,t=0){return N((n,r)=>{n.subscribe(D(r,n=>se(r,e,()=>r.next(n),t),()=>se(r,e,()=>r.complete(),t),n=>se(r,e,()=>r.error(n),t)))})}function he(e,t=0){return N((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function fe(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(n=>{se(n,t,()=>{const r=e[Symbol.asyncIterator]();se(n,t,()=>{r.next().then(e=>{e.done?n.complete():n.next(e.value)})},0,!0)})})}function pe(e,t){return t?function(e,t){if(null!=e){if(J(e))return function(e,t){return ne(e).pipe(he(t),de(t))}(e,t);if(W(e))return function(e,t){return new P(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(G(e))return function(e,t){return ne(e).pipe(he(t),de(t))}(e,t);if(Y(e))return fe(e,t);if(X(e))return function(e,t){return new P(n=>{let s;return se(n,t,()=>{s=e[Q](),se(n,t,()=>{let e,t;try{({value:e,done:t}=s.next())}catch(r){return void n.error(r)}t?n.complete():n.next(e)},0,!0)}),()=>r(null==s?void 0:s.return)&&s.return()})}(e,t);if(te(e))return function(e,t){return fe(ee(e),t)}(e,t)}throw K(e)}(e,t):ne(e)}function ge(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new E({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function me(e){for(let t in e)if(e[t]===me)return t;throw Error("Could not find renamed property on target object.")}function ve(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ye(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ye).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function be(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ce=me({__forward_ref__:me});function we(e){return e.__forward_ref__=we,e.toString=function(){return ye(this())},e}function Se(e){return function(e){return"function"==typeof e&&e.hasOwnProperty(Ce)&&e.__forward_ref__===we}(e)?e():e}class Ee extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function Te(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}function xe(e,t){const n=t?` in ${t}`:"";throw new Ee("201",`No provider for ${Te(e)} found${n}`)}function Ae(e,t){null==e&&function(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function ke(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ie(e){return Oe(e,Ue)||Oe(e,Ne)}function Oe(e,t){return e.hasOwnProperty(t)?e[t]:null}function Re(e){return e&&(e.hasOwnProperty(Le)||e.hasOwnProperty(De))?e[Le]:null}const Ue=me({"\u0275prov":me}),Le=me({"\u0275inj":me}),Ne=me({ngInjectableDef:me}),De=me({ngInjectorDef:me});var Me=(()=>((Me=Me||{})[Me.Default=0]="Default",Me[Me.Host=1]="Host",Me[Me.Self=2]="Self",Me[Me.SkipSelf=4]="SkipSelf",Me[Me.Optional=8]="Optional",Me))();let Fe;function je(e){const t=Fe;return Fe=e,t}function $e(e,t,n){const r=Ie(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Me.Optional?null:void 0!==t?t:void xe(ye(e),"Injector")}function Be(e){return{toString:e}.toString()}var qe=(()=>((qe=qe||{})[qe.OnPush=0]="OnPush",qe[qe.Default=1]="Default",qe))(),He=(()=>((He=He||{})[He.Emulated=0]="Emulated",He[He.None=2]="None",He[He.ShadowDom=3]="ShadowDom",He))();const ze="undefined"!=typeof globalThis&&globalThis,Ve="undefined"!=typeof window&&window,We="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ge=ze||"undefined"!=typeof global&&global||Ve||We,Ze={},Je=[],Ye=me({"\u0275cmp":me}),Ke=me({"\u0275dir":me}),Qe=me({"\u0275pipe":me}),Xe=me({"\u0275mod":me}),et=me({"\u0275loc":me}),tt=me({"\u0275fac":me}),nt=me({__NG_ELEMENT_ID__:me});let rt=0;function st(e){return Be(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===qe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Je,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||He.Emulated,id:"c",styles:e.styles||Je,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,i=e.pipes;return n.id+=rt++,n.inputs=ct(e.inputs,t),n.outputs=ct(e.outputs),s&&s.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(it):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(ot):null,n})}function it(e){return ht(e)||function(e){return e[Ke]||null}(e)}function ot(e){return function(e){return e[Qe]||null}(e)}const at={};function lt(e){return Be(()=>{const t={type:e.type,bootstrap:e.bootstrap||Je,declarations:e.declarations||Je,imports:e.imports||Je,exports:e.exports||Je,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(at[e.id]=e.type),t})}function ct(e,t){if(null==e)return Ze;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,t&&(t[s]=i)}return n}const ut=st;function dt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ht(e){return e[Ye]||null}function ft(e,t){const n=e[Xe]||null;if(!n&&!0===t)throw new Error(`Type ${ye(e)} does not have '\u0275mod' property.`);return n}function pt(e){return Array.isArray(e)&&"object"==typeof e[1]}function gt(e){return Array.isArray(e)&&!0===e[1]}function mt(e){return 0!=(8&e.flags)}function vt(e){return 2==(2&e.flags)}function yt(e){return 1==(1&e.flags)}function bt(e){return null!==e.template}function Ct(e){return 0!=(512&e[2])}function wt(e,t){return e.hasOwnProperty(tt)?e[tt]:null}class St{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Et(e){return e.type.prototype.ngOnChanges&&(e.setInput=Tt),_t}function _t(){const e=At(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Ze)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Tt(e,t,n,r){const s=At(e)||function(e,t){return e[xt]=t}(e,{previous:Ze,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new St(l&&l.currentValue,t,o===Ze),e[r]=t}const xt="__ngSimpleChanges__";function At(e){return e[xt]||null}let kt;function Pt(){return void 0!==kt?kt:"undefined"!=typeof document?document:void 0}function It(e){return!!e.listen}const Ot={createRenderer:(e,t)=>Pt()};function Rt(e){for(;Array.isArray(e);)e=e[0];return e}function Ut(e,t){return Rt(t[e.index])}function Lt(e,t){return e.data[t]}function Nt(e,t){const n=t[e];return pt(n)?n:n[0]}function Dt(e){return 4==(4&e[2])}function Mt(e){return 128==(128&e[2])}function Ft(e,t){return null==t?null:e[t]}function jt(e){e[18]=0}function $t(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Bt={lFrame:ln(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qt(){return Bt.bindingsEnabled}function Ht(){return Bt.lFrame.lView}function zt(){return Bt.lFrame.tView}function Vt(){let e=Wt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Wt(){return Bt.lFrame.currentTNode}function Gt(e,t){const n=Bt.lFrame;n.currentTNode=e,n.isParent=t}function Zt(){return Bt.lFrame.isParent}function Jt(){Bt.lFrame.isParent=!1}function Yt(){return Bt.isInCheckNoChangesMode}function Kt(e){Bt.isInCheckNoChangesMode=e}function Qt(){return Bt.lFrame.bindingIndex++}function Xt(e,t){const n=Bt.lFrame;n.bindingIndex=n.bindingRootIndex=e,en(t)}function en(e){Bt.lFrame.currentDirectiveIndex=e}function tn(){return Bt.lFrame.currentQueryIndex}function nn(e){Bt.lFrame.currentQueryIndex=e}function rn(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function sn(e,t,n){if(n&Me.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&Me.Host||(r=rn(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const r=Bt.lFrame=an();return r.currentTNode=t,r.lView=e,!0}function on(e){const t=an(),n=e[1];Bt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function an(){const e=Bt.lFrame,t=null===e?null:e.child;return null===t?ln(e):t}function ln(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function cn(){const e=Bt.lFrame;return Bt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const un=cn;function dn(){const e=cn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function hn(){return Bt.lFrame.selectedIndex}function fn(e){Bt.lFrame.selectedIndex=e}function pn(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t){e[2]+=2048;try{i.call(o)}finally{}}}else try{i.call(o)}finally{}}class Cn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function wn(e,t,n){const r=It(e);let s=0;for(;st){o=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Pn=!0;function In(e){const t=Pn;return Pn=e,t}let On=0;function Rn(e,t){const n=Ln(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Un(r.data,e),Un(t,null),Un(r.blueprint,null));const s=Nn(e,t),i=e.injectorIndex;if(xn(s)){const e=An(s),n=kn(s,t),r=n[1].data;for(let s=0;s<8;s++)t[i+s]=n[e+s]|r[e+s]}return t[i+8]=s,i}function Un(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ln(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){const e=s[1],t=e.type;if(r=2===t?e.declTNode:1===t?s[6]:null,null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Dn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(nt)&&(r=n[nt]),null==r&&(r=n[nt]=On++);const s=255&r;t.data[e+(s>>5)]|=1<=0?255&t:Bn:t}(n);if("function"==typeof i){if(!sn(t,e,r))return r&Me.Host?Mn(s,n,r):Fn(t,n,r,s);try{const e=i(r);if(null!=e||r&Me.Optional)return e;xe(n)}finally{un()}}else if("number"==typeof i){let s=null,o=Ln(e,t),a=-1,l=r&Me.Host?t[16][6]:null;for((-1===o||r&Me.SkipSelf)&&(a=-1===o?Nn(e,t):t[o+8],-1!==a&&Wn(r,!1)?(s=t[1],o=An(a),t=kn(a,t)):o=-1);-1!==o;){const e=t[1];if(Vn(i,o,e.data)){const e=qn(o,t,n,s,r,l);if(e!==$n)return e}a=t[o+8],-1!==a&&Wn(r,t[1].data[o+8]===l)&&Vn(i,o,t)?(s=e,o=An(a),t=kn(a,t)):o=-1}}}return Fn(t,n,r,s)}const $n={};function Bn(){return new Gn(Vt(),Ht())}function qn(e,t,n,r,s,i){const o=t[1],a=o.data[e+8],l=Hn(a,o,n,null==r?vt(a)&&Pn:r!=o&&0!=(3&a.type),s&Me.Host&&i===a);return null!==l?zn(t,o,l,a):$n}function Hn(e,t,n,r,s){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,u=s?a+c:e.directiveEnd;for(let d=r?a:a+c;d=l&&e.type===n)return d}if(s){const e=o[l];if(e&&bt(e)&&e.type===n)return l}return null}function zn(e,t,n,r){let s=e[n];const i=t.data;if(function(e){return e instanceof Cn}(s)){const o=s;o.resolving&&function(e,t){throw new Ee("200",`Circular dependency in DI detected for ${e}`)}(Te(i[n]));const a=In(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?je(o.injectImpl):null;sn(e,r,Me.Default);try{s=e[n]=o.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=t.type.prototype;if(r){const r=Et(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==l&&je(l),In(a),o.resolving=!1,un()}}return s}function Vn(e,t,n){return!!(n[t+(e>>5)]&1<{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(Zn)?e[Zn]:Object.defineProperty(e,Zn,{value:[]})[Zn];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class Yn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ke({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Kn=new Yn("AnalyzeForEntryComponents"),Qn=Function;function Xn(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(e)?er(e,t):t(e))}function tr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function nr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function rr(e,t){const n=[];for(let r=0;r ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):ye(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(ar,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[or]=null,e}const yr=gr(Jn("Inject",e=>({token:e})),-1),br=gr(Jn("Optional"),8),Cr=gr(Jn("SkipSelf"),4);var wr=(()=>((wr=wr||{})[wr.Important=1]="Important",wr[wr.DashCase=2]="DashCase",wr))();const Sr="__ngContext__";function Er(e,t){e[Sr]=t}function _r(e){const t=function(e){return e[Sr]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Tr(e,t){return undefined(e,t)}function xr(e){const t=e[3];return gt(t)?t[3]:t}function Ar(e){return Pr(e[13])}function kr(e){return Pr(e[4])}function Pr(e){for(;null!==e&&!gt(e);)e=e[4];return e}function Ir(e,t,n,r,s){if(null!=r){let i,o=!1;gt(r)?i=r:pt(r)&&(o=!0,r=r[0]);const a=Rt(r);0===e&&null!==n?null==s?Fr(t,n,a):Mr(t,n,a,s||null,!0):1===e&&null!==n?Mr(t,n,a,s||null,!0):2===e?function(e,t,n){const r=$r(e,t);r&&function(e,t,n,r){It(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,r,s){const i=n[7];i!==Rt(n)&&Ir(t,e,r,i,s);for(let o=10;o0&&(e[n-1][4]=r[4]);const i=nr(e,10+t);!function(e,t){Yr(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const o=i[19];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Lr(e,t){if(!(256&t[2])){const n=t[11];It(n)&&n.destroyNode&&Yr(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Nr(e[1],e);for(;t;){let n=null;if(pt(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)pt(t)&&Nr(t[1],t),t=t[3];null===t&&(t=e),pt(t)&&Nr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Nr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s=l]():r[s=-l].unsubscribe(),i+=2}else{const e=r[s=n[i+1]];n[i].call(e)}if(null!==r){for(let e=s+1;ee,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return qr}())||void 0===t?void 0:t.createHTML(e))||e}function ts(e){var t;return(null===(t=function(){if(void 0===Hr&&(Hr=null,Ge.trustedTypes))try{Hr=Ge.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Hr}())||void 0===t?void 0:t.createHTML(e))||e}class ns{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rs extends ns{getTypeName(){return"HTML"}}class ss extends ns{getTypeName(){return"Style"}}class is extends ns{getTypeName(){return"Script"}}class os extends ns{getTypeName(){return"URL"}}class as extends ns{getTypeName(){return"ResourceURL"}}function ls(e){return e instanceof ns?e.changingThisBreaksApplicationSecurity:e}function cs(e,t){const n=us(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function us(e){return e instanceof ns&&e.getTypeName()||null}class ds{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(es(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class hs{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=es(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=es(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0gs(e.trim())).join(", ")}function vs(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ys(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const bs=vs("area,br,col,hr,img,wbr"),Cs=vs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ws=vs("rp,rt"),Ss=ys(bs,ys(Cs,vs("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")),ys(ws,vs("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")),ys(ws,Cs)),Es=vs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_s=vs("srcset"),Ts=ys(Es,_s,vs("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"),vs("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")),xs=vs("script,style,template");class As{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Ss.hasOwnProperty(t))return this.sanitizedSomething=!0,!xs.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r"),!0}endElement(e){const t=e.nodeName.toLowerCase();Ss.hasOwnProperty(t)&&!bs.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(Is(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const ks=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ps=/([^\#-~ |!])/g;function Is(e){return e.replace(/&/g,"&").replace(ks,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ps,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Os;function Rs(e,t){let n=null;try{Os=Os||function(e){const t=new hs(e);return function(){try{return!!(new window.DOMParser).parseFromString(es(""),"text/html")}catch(e){return!1}}()?new ds(t):t}(e);let r=t?String(t):"";n=Os.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=Os.getInertBodyElement(r)}while(r!==i);return es((new As).sanitizeChildren(Us(n)||n))}finally{if(n){const e=Us(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function Us(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ls=(()=>((Ls=Ls||{})[Ls.NONE=0]="NONE",Ls[Ls.HTML=1]="HTML",Ls[Ls.STYLE=2]="STYLE",Ls[Ls.SCRIPT=3]="SCRIPT",Ls[Ls.URL=4]="URL",Ls[Ls.RESOURCE_URL=5]="RESOURCE_URL",Ls))();function Ns(e){const t=function(){const e=Ht();return e&&e[12]}();return t?ts(t.sanitize(Ls.HTML,e)||""):cs(e,"HTML")?ts(ls(e)):Rs(Pt(),_e(e))}function Ds(e){return e.ngOriginalError}function Ms(e,...t){e.error(...t)}class Fs{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=(s=e)&&s.ngErrorLogger||Ms;var s;r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?function(e){return e.ngDebugContext}(e)||this._findContext(Ds(e)):null}_findOriginalError(e){let t=e&&Ds(e);for(;t&&Ds(t);)t=Ds(t);return t||null}}const js=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ge))();function $s(e){return e instanceof Function?e():e}function Bs(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const n=t.length;if(s+n===r||e.charCodeAt(s+n)<=32)return s}n=s+1}}const qs="ng-template";function Hs(e,t,n){let r=0;for(;ri?"":s[u+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==Bs(t,c,0)||2&r&&c!==e){if(Gs(r))return!1;o=!0}}}}else{if(!o&&!Gs(r)&&!Gs(l))return!1;if(o&&Gs(l))continue;o=!1,r=l|1&r}}return Gs(r)||o}function Gs(e){return 0==(1&e)}function Zs(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""!==s&&!Gs(o)&&(t+=Ks(i,s),s=""),r=o,i=i||!Gs(r);n++}return""!==s&&(t+=Ks(i,s)),t}const Xs={};function ei(e){ti(zt(),Ht(),hn()+e,Yt())}function ti(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&gn(t,r,n)}else{const r=e.preOrderHooks;null!==r&&mn(t,r,0,n)}fn(n)}function ni(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&ti(e,t,20,Yt()),n(r,s)}finally{fn(i)}}function ui(e,t,n){!qt()||(function(e,t,n,r){const s=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||Rn(n,t),Er(r,t);const o=n.initialInputs;for(let a=s;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(r,s,o)}}function yi(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function bi(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ci(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&ki(n)}}function ki(e){for(let n=Ar(e);null!==n;n=kr(n))for(let e=10;e0&&ki(t)}const t=e[1].components;if(null!==t)for(let n=0;n0&&ki(r)}}function Pi(e,t){const n=Nt(t,e),r=n[1];(function(e,t){for(let n=t.length;nPromise.resolve(null))();function Di(e){return e[7]||(e[7]=[])}function Mi(e){return e.cleanup||(e.cleanup=[])}function Fi(e,t){const n=e[9],r=n?n.get(Fs,null):null;r&&r.handleError(t)}function ji(e,t,n,r,s){for(let i=0;ithis.processProvider(n,e,t)),er([e],e=>this.processInjectorType(e,[],s)),this.records.set(qi,Xi(void 0,this));const i=this.records.get(zi);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof e?null:ye(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=sr,n=Me.Default){this.assertNotDestroyed();const r=dr(this),s=je(void 0);try{if(!(n&Me.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Yn)&&Ie(e);t=n&&this.injectableDefInScope(n)?Xi(Ki(e),Vi):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&Me.Self?Zi():this.parent).get(e,t=n&Me.Optional&&t===sr?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[or]=o[or]||[]).unshift(ye(e)),r)throw o;return vr(o,e,"R3InjectorError",this.source)}throw o}finally{je(s),dr(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(ye(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=Se(e)))return!1;let r=Re(e);const s=null==r&&e.ngModule||void 0,i=void 0===s?e:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=Re(s)),null==r)return!1;if(null!=r.imports&&!o){let e;n.push(i);try{er(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||Je))}}this.injectorDefTypes.add(i);const a=wt(i)||(()=>new i);this.records.set(i,Xi(a,Vi));const l=r.providers;if(null!=l&&!o){const t=e;er(l,e=>this.processProvider(e,t,l))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,n){let r=to(e=Se(e))?e:Se(e&&e.provide);const s=function(e,t,n){return eo(e)?Xi(void 0,e.useValue):Xi(Qi(e),Vi)}(e);if(to(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=Xi(void 0,Vi,!0),t.factory=()=>pr(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===Vi&&(t.value=Wi,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value;var n}injectableDefInScope(e){if(!e.providedIn)return!1;const t=Se(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function Ki(e){const t=Ie(e),n=null!==t?t.factory:wt(e);if(null!==n)return n;if(e instanceof Yn)throw new Error(`Token ${ye(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=rr(t,"?");throw new Error(`Can't resolve all parameters for ${ye(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[Ue]||e[Ne]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Qi(e,t,n){let r;if(to(e)){const t=Se(e);return wt(t)||Ki(t)}if(eo(e))r=()=>Se(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...pr(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>fr(Se(e.useExisting));else{const t=Se(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return wt(t)||Ki(t);r=()=>new t(...pr(e.deps))}return r}function Xi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function eo(e){return null!==e&&"object"==typeof e&&cr in e}function to(e){return"function"==typeof e}const no=function(e,t,n){return function(e,t=null,n=null,r){const s=Ji(e,t,n,r);return s._resolveInjectorDefTypes(),s}({name:n},t,e,n)};let ro=(()=>{class e{static create(e,t){return Array.isArray(e)?no(e,t,""):no(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=sr,e.NULL=new Hi,e.\u0275prov=ke({token:e,providedIn:"any",factory:()=>fr(qi)}),e.__NG_ELEMENT_ID__=-1,e})();function so(e,t){pn(_r(e)[1],Vt())}function io(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(bt(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");s=t.\u0275dir}if(s){if(n){r.push(s);const t=e;t.inputs=oo(e.inputs),t.declaredInputs=oo(e.declaredInputs),t.outputs=oo(e.outputs);const n=s.hostBindings;n&&co(e,n);const i=s.viewQuery,o=s.contentQueries;if(i&&ao(e,i),o&&lo(e,o),ve(e.inputs,s.inputs),ve(e.declaredInputs,s.declaredInputs),ve(e.outputs,s.outputs),bt(s)&&s.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(s.data.animation)}}const t=s.features;if(t)for(let r=0;r=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=_n(s.hostAttrs,n=_n(n,s.hostAttrs))}}(r)}function oo(e){return e===Ze?{}:e===Je?[]:e}function ao(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function lo(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,s)=>{t(e,r,s),n(e,r,s)}:t}function co(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}let uo=null;function ho(){if(!uo){const e=Ge.Symbol;if(e&&e.iterator)uo=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(Rt(e[r.index])):r.index;if(It(n)){let o=null;if(!a&&l&&(o=function(e,t,n,r){const s=e.cleanup;if(null!=s)for(let i=0;in?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=ko(r,t,u,i,!1);const e=n.listen(p,s,i);d.push(i,e),c&&c.push(s,m,g,g+1)}}else i=ko(r,t,u,i,!0),p.addEventListener(s,i,o),d.push(i),c&&c.push(s,m,g,o)}else i=ko(r,t,u,i,!1);const f=r.outputs;let p;if(h&&null!==f&&(p=f[s])){const e=p.length;if(e)for(let n=0;n0;)t=t[15],e--;return t}(e,Bt.lFrame.contextLView))[8]}(e)}function Io(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let s=0;s((Mo=Mo||{})[Mo.LocaleId=0]="LocaleId",Mo[Mo.DayPeriodsFormat=1]="DayPeriodsFormat",Mo[Mo.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mo[Mo.DaysFormat=3]="DaysFormat",Mo[Mo.DaysStandalone=4]="DaysStandalone",Mo[Mo.MonthsFormat=5]="MonthsFormat",Mo[Mo.MonthsStandalone=6]="MonthsStandalone",Mo[Mo.Eras=7]="Eras",Mo[Mo.FirstDayOfWeek=8]="FirstDayOfWeek",Mo[Mo.WeekendRange=9]="WeekendRange",Mo[Mo.DateFormat=10]="DateFormat",Mo[Mo.TimeFormat=11]="TimeFormat",Mo[Mo.DateTimeFormat=12]="DateTimeFormat",Mo[Mo.NumberSymbols=13]="NumberSymbols",Mo[Mo.NumberFormats=14]="NumberFormats",Mo[Mo.CurrencyCode=15]="CurrencyCode",Mo[Mo.CurrencySymbol=16]="CurrencySymbol",Mo[Mo.CurrencyName=17]="CurrencyName",Mo[Mo.Currencies=18]="Currencies",Mo[Mo.Directionality=19]="Directionality",Mo[Mo.PluralCase=20]="PluralCase",Mo[Mo.ExtraData=21]="ExtraData",Mo))();const Fo="en-US";let jo=Fo;function $o(e){Ae(e,"Expected localeId to be defined"),"string"==typeof e&&(jo=e.toLowerCase().replace(/_/g,"-"))}function Bo(e,t,n,r,s){if(e=Se(e),Array.isArray(e))for(let i=0;i>20;if(to(e)||!e.multi){const r=new Cn(l,s,yo),f=zo(a,t,s?u:u+h,d);-1===f?(Dn(Rn(c,o),i,a),qo(i,e,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(r),o.push(r)):(n[f]=r,o[f]=r)}else{const f=zo(a,t,u+h,d),p=zo(a,t,u,u+h),g=f>=0&&n[f],m=p>=0&&n[p];if(s&&!m||!s&&!g){Dn(Rn(c,o),i,a);const u=function(e,t,n,r,s){const i=new Cn(e,n,yo);return i.multi=[],i.index=t,i.componentProviders=0,Ho(i,s,r&&!n),i}(s?Wo:Vo,n.length,s,r,l);!s&&m&&(n[p].providerFactory=u),qo(i,e,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else qo(i,e,f>-1?f:p,Ho(n[s?p:f],l,!s&&r));!s&&r&&m&&n[p].componentProviders++}}}function qo(e,t,n,r){const s=to(t);if(s||function(e){return!!e.useClass}(t)){const i=(t.useClass||t).prototype.ngOnDestroy;if(i){const o=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[r,i]):o[e+1].push(r,i)}else o.push(n,i)}}}function Ho(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function zo(e,t,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(e,t,n){const r=zt();if(r.firstCreatePass){const s=bt(e);Bo(n,r.data,r.blueprint,s,!0),Bo(t,r.data,r.blueprint,s,!1)}}(n,r?r(e):e,t)}}class Jo{}const Yo="ngComponent";class Ko{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${ye(e)}. Did you add it to @NgModule.entryComponents?`);return t[Yo]=e,t}(e)}}let Qo=(()=>{class e{}return e.NULL=new Ko,e})();function Xo(...e){}function ea(e,t){return new na(Ut(e,t))}const ta=function(){return ea(Vt(),Ht())};let na=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=ta,e})();function ra(e){return e instanceof na?e.nativeElement:e}class sa{}let ia=(()=>{class e{}return e.\u0275prov=ke({token:e,providedIn:"root",factory:()=>null}),e})();class oa{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const aa=new oa("12.2.17");class la{constructor(){}supports(e){return po(e)}create(e){return new ua(e)}}const ca=(e,t)=>t;class ua{constructor(e){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=e||ca}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),Object.is(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new da(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new fa),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fa),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class da{constructor(e,t){this.item=e,this.trackById=t,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 ha{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class fa{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new ha,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function pa(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new va(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class va{constructor(e){this.key=e,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 ya(){return new ba([new la])}let ba=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||ya()),deps:[[e,new Cr,new br]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(e){return e.name||typeof e}(e)}'`)}}return e.\u0275prov=ke({token:e,providedIn:"root",factory:ya}),e})();function Ca(){return new wa([new ga])}let wa=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Ca()),deps:[[e,new Cr,new br]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=ke({token:e,providedIn:"root",factory:Ca}),e})();function Sa(e,t,n,r,s=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(Rt(i)),gt(i))for(let e=10;e-1&&(Ur(e,n),nr(t,n))}this._attachedToViewContainer=!1}Lr(this._lView[1],this._lView)}onDestroy(e){pi(this._lView[1],this._lView,null,e)}markForCheck(){Oi(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ri(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Kt(!0);try{Ri(e,t,n)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,Yr(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class _a extends Ea{constructor(e){super(e),this._view=e}detectChanges(){Ui(this._view)}checkNoChanges(){!function(e){Kt(!0);try{Ui(e)}finally{Kt(!1)}}(this._view)}get context(){return null}}const Ta=function(e){return function(e,t,n){if(vt(e)&&!n){const n=Nt(e.index,t);return new Ea(n,n)}return 47&e.type?new Ea(t[16],t):null}(Vt(),Ht(),16==(16&e))};let xa=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ta,e})();const Aa=[new ga],Pa=new ba([new la]),Ia=new wa(Aa),Oa=function(){return Na(Vt(),Ht())};let Ra=(()=>{class e{}return e.__NG_ELEMENT_ID__=Oa,e})();const Ua=Ra,La=class extends Ua{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=ri(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),oi(t,n,e),new Ea(n)}};function Na(e,t){return 4&e.type?new La(t,e,ea(e,t)):null}class Da{}class Ma{}const Fa=function(){return za(Vt(),Ht())};let ja=(()=>{class e{}return e.__NG_ELEMENT_ID__=Fa,e})();const $a=ja,Ba=class extends $a{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return ea(this._hostTNode,this._hostLView)}get injector(){return new Gn(this._hostTNode,this._hostLView)}get parentInjector(){const e=Nn(this._hostTNode,this._hostLView);if(xn(e)){const t=kn(e,this._hostLView),n=An(e);return new Gn(t[1].data[n+8],t)}return new Gn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=qa(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;if(!s&&null==e.ngModule&&i){const e=i.get(Da,null);e&&(s=e)}const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,r=n[1];if(gt(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new Ba(t,t[6],t[3]);r.detach(r.indexOf(e))}}const s=this._adjustIndex(t),i=this._lContainer;!function(e,t,n,r){const s=10+r,i=n.length;r>0&&(n[s-1][4]=t),rjs});class Ja extends Jo{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Qs).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Ga(this.componentDef.inputs)}get outputs(){return Ga(this.componentDef.outputs)}create(e,t,n,r){const s=(r=r||this.ngModule)?function(e,t){return{get:(n,r,s)=>{const i=e.get(n,Va,s);return i!==Va||r===Va?i:t.get(n,r,s)}}}(e,r.injector):e,i=s.get(sa,Ot),o=s.get(ia,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(It(e))return e.selectRootElement(t,n===He.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Or(i.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,d=function(e,t){return{components:[],scheduler:e||js,clean:Ni,playerHandler:t||null,flags:0}}(),h=fi(0,null,null,1,0,null,null,null,null,null),f=ri(null,h,d,u,null,null,i,a,o,s);let p,g;on(f);try{const e=function(e,t,n,r,s,i){const o=n[1];n[20]=e;const a=si(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Bi(a,l,!0),null!==e&&(wn(s,e,l),null!==a.classes&&Xr(s,e,a.classes),null!==a.styles&&Qr(s,e,a.styles)));const c=r.createRenderer(e,t),u=ri(n,hi(t),null,t.onPush?64:16,n[20],a,r,c,i||null,null);return o.firstCreatePass&&(Dn(Rn(a,n),o,t.type),bi(o,a),wi(a,n.length,1)),Ii(n,u),n[20]=u}(c,this.componentDef,f,i,a);if(c)if(n)wn(a,c,["ng-version",aa.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,s=2;for(;r0&&Xr(a,c,t.join(" "))}if(g=Lt(h,20),void 0!==t){const e=g.projection=[];for(let n=0;ne(o,t)),t.contentQueries){const e=Vt();t.contentQueries(1,o,e.directiveStart)}const a=Vt();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(fn(a.index),vi(n[1],a,0,a.directiveStart,a.directiveEnd,t),yi(t,o)),o}(e,this.componentDef,f,d,[so]),oi(h,f,null)}finally{dn()}return new Ya(this.componentType,p,ea(g,f),f,g)}}class Ya extends class{}{constructor(e,t,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new _a(r),this.componentType=e}get injector(){return new Gn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const Ka=new Map;class Qa extends Da{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Wa(this);const n=ft(e),r=e[et]||null;r&&$o(r),this._bootstrapComponents=$s(n.bootstrap),this._r3Injector=Ji(e,t,[{provide:Da,useValue:this},{provide:Qo,useValue:this.componentFactoryResolver}],ye(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=ro.THROW_IF_NOT_FOUND,n=Me.Default){return e===ro||e===Da||e===qi?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Xa extends Ma{constructor(e){super(),this.moduleType=e,null!==ft(e)&&function(e){const t=new Set;!function e(n){const r=ft(n,!0),s=r.id;null!==s&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${ye(t)} vs ${ye(t.name)}`)}(s,Ka.get(s),n),Ka.set(s,n));const i=$s(r.imports);for(const o of i)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new Qa(this.moduleType,e)}}function el(e,t,n,r,s,i){const o=t+n;return mo(e,o,s)?function(e,t,n){return e[t]=n}(e,o+1,i?r.call(i,s):r(s)):function(e,t){const n=e[t];return n===Xs?void 0:n}(e,o+1)}function tl(e,t,n){const r=e+20,s=Ht(),i=function(e,t){return e[t]}(s,r);return function(e,t){fo.isWrapped(t)&&(t=fo.unwrap(t),e[Bt.lFrame.bindingIndex]=Xs);return t}(s,function(e,t){return e[1].data[t].pure}(s,r)?el(s,function(){const e=Bt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,i.transform,n,i):i.transform(n))}function nl(e){return t=>{setTimeout(e,void 0,t)}}const rl=class extends R{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){var r,s,i;let o=e,l=t||(()=>null),c=n;if(e&&"object"==typeof e){const t=e;o=null===(r=t.next)||void 0===r?void 0:r.bind(t),l=null===(s=t.error)||void 0===s?void 0:s.bind(t),c=null===(i=t.complete)||void 0===i?void 0:i.bind(t)}this.__isAsync&&(l=nl(l),o&&(o=nl(o)),c&&(c=nl(c)));const u=super.subscribe({next:o,error:l,complete:c});return e instanceof a&&e.add(u),u}};function sl(){return this._results[ho()]()}class il{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=ho(),n=il.prototype;n[t]||(n[t]=sl)}get changes(){return this._changes||(this._changes=new rl)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const n=this;n.dirty=!1;const r=Xn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0)r.push(o[e/2]);else{const s=i[e+1],o=t[-n];for(let e=10;e{class e{constructor(e){this.appInits=e,this.resolve=Xo,this.reject=Xo,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t.subscribe({complete:e,error:n})});e.push(n)}}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(fr(yl,8))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();const Cl=new Yn("AppId"),wl={provide:Cl,useFactory:function(){return`${Sl()}${Sl()}${Sl()}`},deps:[]};function Sl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const El=new Yn("Platform Initializer"),_l=new Yn("Platform ID"),Tl=new Yn("appBootstrapListener");let xl=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();const Al=new Yn("LocaleId"),kl=new Yn("DefaultCurrencyCode");class Pl{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Il=function(e){return new Xa(e)},Ol=Il,Rl=function(e){return Promise.resolve(Il(e))},Ul=function(e){const t=Il(e),n=$s(ft(e).declarations).reduce((e,t)=>{const n=ht(t);return n&&e.push(new Ja(n)),e},[]);return new Pl(t,n)},Ll=Ul,Nl=function(e){return Promise.resolve(Ul(e))};let Dl=(()=>{class e{constructor(){this.compileModuleSync=Ol,this.compileModuleAsync=Rl,this.compileModuleAndAllComponentsSync=Ll,this.compileModuleAndAllComponentsAsync=Nl}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();const Ml=(()=>Promise.resolve(0))();function Fl(e){"undefined"==typeof Zone?Ml.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class jl{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rl(!1),this.onMicrotaskEmpty=new rl(!1),this.onStable=new rl(!1),this.onError=new rl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=Ge.requestAnimationFrame,t=Ge.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ge,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ql(e),e.isCheckStableRunning=!0,Bl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ql(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,a)=>{try{return Hl(e),n.invokeTask(s,i,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),zl(e)}},onInvoke:(n,r,s,i,o,a,l)=>{try{return Hl(e),n.invoke(s,i,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),zl(e)}},onHasTask:(t,n,r,s)=>{t.hasTask(r,s),n===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,ql(e),Bl(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,r,s)=>(t.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(jl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,$l,Xo,Xo);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const $l={};function Bl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ql(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Hl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zl(e){e._nesting--,Bl(e)}class Vl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rl,this.onMicrotaskEmpty=new rl,this.onStable=new rl,this.onError=new rl}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}let Wl=(()=>{class e{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:()=>{jl.assertNotInAngularZone(),Fl(()=>{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())Fl(()=>{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(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.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,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!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,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(fr(jl))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),Gl=(()=>{class e{constructor(){this._applications=new Map,Jl.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}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,t=!0){return Jl.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();class Zl{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Jl=new Zl,Yl=!0,Kl=!1;let Ql;const Xl=new Yn("AllowMultipleToken");class ec{constructor(e,t){this.name=e,this.token=t}}function tc(e,t,n=[]){const r=`Platform: ${t}`,s=new Yn(r);return(t=[])=>{let i=nc();if(!i||i.injector.get(Xl,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0},{provide:zi,useValue:"platform"});!function(e){if(Ql&&!Ql.destroyed&&!Ql.injector.get(Xl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ql=e.get(rc);const t=e.get(El,null);t&&t.forEach(e=>e())}(ro.create({providers:e,name:r}))}return function(e){const t=nc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function nc(){return Ql&&!Ql.destroyed?Ql:null}let rc=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Vl:("zone.js"===e?void 0:e)||new jl({enableLongStackTrace:(Kl=!0,Yl),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:jl,useValue:n}];return n.run(()=>{const s=ro.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(s),o=i.injector.get(Fs,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{o.handleError(e)}});i.onDestroy(()=>{oc(this._modules,i),e.unsubscribe()})}),function(e,n,r){try{const t=r();return _o(t)?t.catch(t=>{throw n.runOutsideAngular(()=>e.handleError(t)),t}):t}catch(t){throw n.runOutsideAngular(()=>e.handleError(t)),t}}(o,n,()=>{const e=i.injector.get(bl);return e.runInitializers(),e.donePromise.then(()=>($o(i.injector.get(Al,Fo)||Fo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=sc({},t);return function(e,t,n){const r=new Xa(n);return Promise.resolve(r)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(ic);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ye(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(fr(ro))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();function sc(e,t){return Array.isArray(t)?t.reduce(sc,e):Object.assign(Object.assign({},e),t)}let ic=(()=>{class e{constructor(e,t,n,r,s){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=s,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 i=new P(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),o=new P(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{jl.assertNotInAngularZone(),Fl(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{jl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){const t=ue(e),n=function(e,t){return"number"==typeof ce(e)?e.pop():1/0}(e),r=e;return r.length?1===r.length?ne(r[0]):oe(n)(pe(r,t)):ae}(i,o.pipe(function(e={}){const{connector:t=(()=>new R),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:s=!0}=e;return e=>{let i,o,a,l=0,c=!1,u=!1;const d=()=>{null==o||o.unsubscribe(),o=void 0},h=()=>{d(),i=a=void 0,c=u=!1},f=()=>{const e=i;h(),null==e||e.unsubscribe()};return N((e,p)=>{l++,!u&&!c&&d();const g=a=null!=a?a:t();p.add(()=>{l--,0===l&&!u&&!c&&(o=ge(f,s))}),g.subscribe(p),!i&&l>0&&(i=new E({next:e=>g.next(e),error:e=>{u=!0,d(),o=ge(h,n,e),g.error(e)},complete:()=>{c=!0,d(),o=ge(h,r),g.complete()}}),ne(e).subscribe(i))})(e)}}()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Jo?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get(Da),s=n.create(ro.NULL,[],t||n.selector,r),i=s.location.nativeElement,o=s.injector.get(Wl,null),a=o&&s.injector.get(Gl);return o&&a&&a.registerApplication(i,o),s.onDestroy(()=>{this.detachView(s.hostView),oc(this.components,s),a&&a.unregisterApplication(i)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");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 t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;oc(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Tl,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(fr(jl),fr(ro),fr(Fs),fr(Qo),fr(bl))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();function oc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ac{}class lc{}const cc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let uc=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||cc}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n(98255)(t).then(e=>e[r]).then(e=>dc(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n(98255)(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>dc(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(fr(Dl),fr(lc,8))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();function dc(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const hc=tc(null,"core",[{provide:_l,useValue:"unknown"},{provide:rc,deps:[ro]},{provide:Gl,deps:[]},{provide:xl,deps:[]}]),fc=[{provide:ic,useClass:ic,deps:[jl,ro,Fs,Qo,bl]},{provide:Za,deps:[jl],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:bl,useClass:bl,deps:[[new br,yl]]},{provide:Dl,useClass:Dl,deps:[]},wl,{provide:ba,useFactory:function(){return Pa},deps:[]},{provide:wa,useFactory:function(){return Ia},deps:[]},{provide:Al,useFactory:function(e){return $o(e=e||"undefined"!=typeof $localize&&$localize.locale||Fo),e},deps:[[new yr(Al),new br,new Cr]]},{provide:kl,useValue:"USD"}];let pc=(()=>{class e{constructor(e){}}return e.\u0275fac=function(t){return new(t||e)(fr(ic))},e.\u0275mod=lt({type:e}),e.\u0275inj=Pe({providers:fc}),e})(),gc=null;function mc(){return gc}const vc=new Yn("DocumentToken");let yc=(()=>{class e{historyGo(e){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({factory:bc,token:e,providedIn:"platform"}),e})();function bc(){return fr(wc)}const Cc=new Yn("Location Initialized");let wc=(()=>{class e extends yc{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return mc().getBaseHref(this._doc)}onPopState(e){const t=mc().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){const t=mc().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.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,t,n){Sc()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Sc()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(fr(vc))},e.\u0275prov=ke({factory:Ec,token:e,providedIn:"platform"}),e})();function Sc(){return!!window.history.pushState}function Ec(){return new wc(fr(vc))}function _c(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Tc(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function xc(e){return e&&"?"!==e[0]?"?"+e:e}let Ac=(()=>{class e{historyGo(e){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({factory:kc,token:e,providedIn:"root"}),e})();function kc(e){const t=fr(vc).location;return new Ic(fr(yc),t&&t.origin||"")}const Pc=new Yn("appBaseHref");let Ic=(()=>{class e extends Ac{constructor(e,t){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}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 _c(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+xc(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+xc(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+xc(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformLocation).historyGo)||void 0===n||n.call(t,e)}}return e.\u0275fac=function(t){return new(t||e)(fr(yc),fr(Pc,8))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),Oc=(()=>{class e extends Ac{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=t&&(this._baseHref=t)}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 t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=_c(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+xc(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+xc(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformLocation).historyGo)||void 0===n||n.call(t,e)}}return e.\u0275fac=function(t){return new(t||e)(fr(yc),fr(Pc,8))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),Rc=(()=>{class e{constructor(e,t){this._subject=new rl,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Tc(Lc(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+xc(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Lc(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xc(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xc(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var t,n;null===(n=(t=this._platformStrategy).historyGo)||void 0===n||n.call(t,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(fr(Ac),fr(yc))},e.normalizeQueryParams=xc,e.joinWithSlash=_c,e.stripTrailingSlash=Tc,e.\u0275prov=ke({factory:Uc,token:e,providedIn:"root"}),e})();function Uc(){return new Rc(fr(Ac),fr(yc))}function Lc(e){return e.replace(/\/index.html$/,"")}var Nc=(()=>((Nc=Nc||{})[Nc.Zero=0]="Zero",Nc[Nc.One=1]="One",Nc[Nc.Two=2]="Two",Nc[Nc.Few=3]="Few",Nc[Nc.Many=4]="Many",Nc[Nc.Other=5]="Other",Nc))();const Dc=function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Do(t);if(n)return n;const r=t.split("-")[0];if(n=Do(r),n)return n;if("en"===r)return Lo;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Mo.PluralCase]};class Mc{}let Fc=(()=>{class e extends Mc{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(Dc(t||this.locale)(e)){case Nc.Zero:return"zero";case Nc.One:return"one";case Nc.Two:return"two";case Nc.Few:return"few";case Nc.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(fr(Al))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();function jc(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let $c=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new Bc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){qc("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){qc("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,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(yo(ja),yo(Ra))},e.\u0275dir=ut({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Bc{constructor(){this.$implicit=null,this.ngIf=null}}function qc(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ye(t)}'.`)}let Hc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=lt({type:e}),e.\u0275inj=Pe({providers:[{provide:Mc,useClass:Fc}]}),e})();let zc=(()=>{class e{}return e.\u0275prov=ke({token:e,providedIn:"root",factory:()=>new Vc(fr(vc),window)}),e})();class Vc{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const e=r.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Wc(this.window.history)||Wc(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Wc(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Gc{}class Zc extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var e;e=new Zc,gc||(gc=e)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=(Yc=Yc||document.querySelector("base"),Yc?Yc.getAttribute("href"):null);return null==t?null:function(e){Jc=Jc||document.createElement("a"),Jc.setAttribute("href",e);const t=Jc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(t)}resetBaseElement(){Yc=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return jc(document.cookie,e)}}let Jc,Yc=null;const Kc=new Yn("TRANSITION_ID"),Qc=[{provide:yl,useFactory:function(e,t,n){return()=>{n.get(bl).donePromise.then(()=>{const n=mc(),r=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let e=0;e{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ge.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ge.getAllAngularRootElements=()=>e.getAllRootElements(),Ge.frameworkStabilizers||(Ge.frameworkStabilizers=[]),Ge.frameworkStabilizers.push(e=>{const t=Ge.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?mc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let eu=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();const tu=new Yn("EventManagerPlugins");let nu=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),iu=(()=>{class e extends su{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,n){e.forEach(e=>{const r=this._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(ou),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,n)=>{this._addStylesToHost(e,n,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(ou))}}return e.\u0275fac=function(t){return new(t||e)(fr(vc))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();function ou(e){mc().remove(e)}const au={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/"},lu=/%COMP%/g;function cu(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let du=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new hu(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case He.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new fu(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case He.ShadowDom:return new pu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=cu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(fr(nu),fr(iu),fr(Cl))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();class hu{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(au[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=au[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=au[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(wr.DashCase|wr.Important)?e.style.setProperty(t,n,r&wr.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&wr.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,uu(n)):this.eventManager.addEventListener(e,t,uu(n))}}class fu extends hu{constructor(e,t,n,r){super(e),this.component=n;const s=cu(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(lu,r+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(lu,e)}(r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class pu extends hu{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=cu(r.id,r.styles,[]);for(let i=0;i{class e extends ru{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(fr(vc))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();const mu=["alt","control","meta","shift"],vu={"\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"},yu={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"},bu={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Cu=(()=>{class e extends ru{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mc().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let i="";if(mu.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&yu.hasOwnProperty(t)&&(t=yu[t]))}return vu[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),mu.forEach(r=>{r!=n&&bu[r](e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return e.\u0275fac=function(t){return new(t||e)(fr(vc))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),wu=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({factory:function(){return fr(Su)},token:e,providedIn:"root"}),e})(),Su=(()=>{class e extends wu{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case Ls.NONE:return t;case Ls.HTML:return cs(t,"HTML")?ls(t):Rs(this._doc,String(t)).toString();case Ls.STYLE:return cs(t,"Style")?ls(t):t;case Ls.SCRIPT:if(cs(t,"Script"))return ls(t);throw new Error("unsafe value used in a script context");case Ls.URL:return us(t),cs(t,"URL")?ls(t):gs(String(t));case Ls.RESOURCE_URL:if(cs(t,"ResourceURL"))return ls(t);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(e){return new rs(e)}(e)}bypassSecurityTrustStyle(e){return function(e){return new ss(e)}(e)}bypassSecurityTrustScript(e){return function(e){return new is(e)}(e)}bypassSecurityTrustUrl(e){return function(e){return new os(e)}(e)}bypassSecurityTrustResourceUrl(e){return function(e){return new as(e)}(e)}}return e.\u0275fac=function(t){return new(t||e)(fr(vc))},e.\u0275prov=ke({factory:function(){return function(e){return new Su(e.get(vc))}(fr(qi))},token:e,providedIn:"root"}),e})();const Eu=[{provide:_l,useValue:"browser"},{provide:El,useValue:function(){Zc.makeCurrent(),Xc.init()},multi:!0},{provide:vc,useFactory:function(){return e=document,kt=e,document;var e},deps:[]}],_u=tc(hc,"browser",Eu),Tu=[[],{provide:zi,useValue:"root"},{provide:Fs,useFactory:function(){return new Fs},deps:[]},{provide:tu,useClass:gu,multi:!0,deps:[vc,jl,_l]},{provide:tu,useClass:Cu,multi:!0,deps:[vc]},[],{provide:du,useClass:du,deps:[nu,iu,Cl]},{provide:sa,useExisting:du},{provide:su,useExisting:iu},{provide:iu,useClass:iu,deps:[vc]},{provide:Wl,useClass:Wl,deps:[jl]},{provide:nu,useClass:nu,deps:[tu,jl]},{provide:Gc,useClass:eu,deps:[]},[]];let xu=(()=>{class e{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(t){return{ngModule:e,providers:[{provide:Cl,useValue:t.appId},{provide:Kc,useExisting:Cl},Qc]}}}return e.\u0275fac=function(t){return new(t||e)(fr(e,12))},e.\u0275mod=lt({type:e}),e.\u0275inj=Pe({providers:Tu,imports:[Hc,pc]}),e})();function Au(){return new ku(fr(vc))}let ku=(()=>{class e{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return e.\u0275fac=function(t){return new(t||e)(fr(vc))},e.\u0275prov=ke({factory:Au,token:e,providedIn:"root"}),e})();"undefined"!=typeof window&&window;const Pu=window.location.origin,Iu="https://4071fd28d0c2.us-east-2.captcha-sdk.awswaf.com/4071fd28d0c2/jsapi.js";class Ou{constructor(){}}class Ru extends a{constructor(e,t){super()}schedule(e,t=0){return this}}const Uu={setInterval(e,t,...n){const{delegate:r}=Uu;return(null==r?void 0:r.setInterval)?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){const{delegate:t}=Uu;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},Lu={now:()=>(Lu.delegate||Date).now(),delegate:void 0};class Nu{constructor(e,t=Nu.now){this.schedulerActionCtor=e,this.now=t}schedule(e,t=0,n){return new this.schedulerActionCtor(this,e).schedule(n,t)}}Nu.now=Lu.now;const Du=new class extends Nu{constructor(e,t=Nu.now){super(e,t),this.actions=[],this._active=!1}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}(class extends Ru{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){var n;if(this.closed)return this;this.state=e;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return Uu.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&Uu.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,r=!1;try{this.work(e)}catch(s){r=!0,n=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,o(n,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}),Mu=Du;function Fu(e=0,t,n=Mu){let r=-1;return null!=t&&(le(t)?n=t:r=t),new P(t=>{let s=function(e){return e instanceof Date&&!isNaN(e)}(e)?+e-n.now():e;s<0&&(s=0);let i=0;return n.schedule(function(){t.closed||(t.next(i++),0<=r?this.schedule(void 0,r):t.complete())},s)})}var ju=(()=>{return(e=ju||(ju={}))[e.VideoLandingPage=1]="VideoLandingPage",e[e.NextPageLink=2]="NextPageLink",e[e.OrderForm=3]="OrderForm",e[e.UpSell=4]="UpSell",e[e.UpSellDynamic=4]="UpSellDynamic",e[e.CrossSell=5]="CrossSell",e[e.DownSell=6]="DownSell",e[e.ThankYou=7]="ThankYou",e[e.PixelPage=8]="PixelPage",e[e.CrossSellDynamic=9]="CrossSellDynamic",e[e.LoginPage=10]="LoginPage",ju;var e})(),$u={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Bu=console,qu={};Object.keys($u).forEach(function(e){qu[e]=Bu[e]});var Hu="Datadog Browser SDK:",zu={debug:qu.debug.bind(Bu,Hu),log:qu.log.bind(Bu,Hu),info:qu.info.bind(Bu,Hu),warn:qu.warn.bind(Bu,Hu),error:qu.error.bind(Bu,Hu)};function Vu(e,t){return function(){for(var n=[],r=0;r=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var s=Array.isArray(e)?e:[],i=0;i"}finally{r(),s(),i(),o()}}function Cd(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):pd}function wd(e,t){var n;void 0===t&&(t=225280);var r=Cd(Object.prototype),s=Cd(Array.prototype),i=[],o=new WeakMap,a=Sd(e,"$",void 0,i,o),l=(null===(n=JSON.stringify(a))||void 0===n?void 0:n.length)||0;if(!(l>t)){for(;i.length>0&&lt){Ed(t,"truncated",e);break}c.target[d]=h}else for(var d in c.source)if(Object.prototype.hasOwnProperty.call(c.source,d)){var h;if(void 0!==(h=Sd(c.source[d],c.path,d,i,o))&&(l+=JSON.stringify(h).length+u+d.length+3,u=1),l>t){Ed(t,"truncated",e);break}c.target[d]=h}}return r(),s(),a}Ed(t,"discarded",e)}function Sd(e,t,n,r,s){var i=function(e){var t=e;if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(n){}return e}(e);if(!i||"object"!=typeof i)return function(e){return"bigint"==typeof e?"[BigInt] ".concat(e.toString()):"function"==typeof e?"[Function] ".concat(e.name||"unknown"):"symbol"==typeof e?"[Symbol] ".concat(e.description||e.toString()):e}(i);var o=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(r){}return"[Unserializable]"}(i);if("[Object]"!==o&&"[Array]"!==o&&"[Error]"!==o)return o;var a=e;if(s.has(a))return"[Reference seen at ".concat(s.get(a),"]");var l=void 0!==n?"".concat(t,".").concat(n):t,c=Array.isArray(i)?[]:{};return s.set(a,l),r.push({source:i,target:c,path:l}),c}function Ed(e,t,n){zu.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var _d=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function Td(){for(var e=[],t=0;t3072&&(zu.warn("The ".concat(Ad[t]," data exceeds the recommended ").concat(3,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0)}(n,e))},200).throttled,a={getBytesCount:function(){return n},get:function(){return r},add:function(e,t){r[e]=t,o(r),i.notify()},remove:function(e){delete r[e],o(r),i.notify()},set:function(e){o(r=e),i.notify()},getContext:function(){return vd(r)},setContext:function(e){"object"===gd(e)?(r=wd(e),o(r)):a.clearContext(),i.notify()},setContextProperty:function(e,t){r[e]=wd(t),o(r),i.notify()},removeContextProperty:function(e){delete r[e],o(r),i.notify()},clearContext:function(){r={},n=0,i.notify()},changeObservable:i};return a}var Pd,Id=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.drain=function(){this.buffer.forEach(function(e){return e()}),this.buffer.length=0},e}();function Od(){return(new Date).getTime()}function Rd(){return Od()}function Ud(){return performance.now()}function Ld(){return{relative:Ud(),timeStamp:Rd()}}function Nd(){return void 0===Pd&&(Pd=performance.timing.navigationStart),Pd}function Dd(){var e=id().DatadogEventBridge;if(e)return{getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n){e.send(JSON.stringify({eventType:t,event:n}))}}}function Md(e){var t;void 0===e&&(e=null===(t=id().location)||void 0===t?void 0:t.hostname);var n=Dd();return!!n&&n.getAllowedWebViewHosts().some(function(t){return e===t||function(e,t){return e.slice(-t.length)===t}(e,".".concat(t))})}function Fd(e,t,n,r,s){return jd(0,t,[n],r,s)}function jd(e,t,n,r,s){var i=void 0===s?{}:s,o=i.capture,a=i.passive,l=Ku(i.once?function(e){d(),r(e)}:r),c=a?{capture:o,passive:a}:o,u=ld(t,"addEventListener");function d(){var e=ld(t,"removeEventListener");n.forEach(function(n){return e.call(t,n,l,c)})}return n.forEach(function(e){return u.call(t,e,l,c)}),{stop:d}}var $d=[];function Bd(e,t,n,r){void 0===r&&(r=ad);var s=function(e,t){return"".concat("_dd_c","_").concat(e,"_").concat(t)}(t,n),i=kd(n,r);return o(),$d.push(Fd(0,window,"storage",function(e){s===e.key&&o()})),i.changeObservable.subscribe(function(){localStorage.setItem(s,JSON.stringify(i.getContext()))}),i;function o(){var e=localStorage.getItem(s),t=null!==e?JSON.parse(e):{};i.setContext(t)}}function qd(e){var t=sd({},e);return["id","name","email"].forEach(function(e){e in t&&(t[e]=String(t[e]))}),t}var Hd,zd,Vd=(()=>{return(e=Vd||(Vd={})).PAGEHIDE="pagehide",e.FEATURE_FLAGS="feature_flags",e.RESOURCE_PAGE_STATES="resource_page_states",e.PAGE_STATES="page_states",e.COLLECT_FLUSH_REASON="collect_flush_reason",e.NO_RESOURCE_DURATION_FROZEN_STATE="no_resource_duration_frozen_state",e.SCROLLMAP="scrollmap",e.INTERACTION_TO_NEXT_PAINT="interaction_to_next_paint",e.WEB_VITALS_ATTRIBUTION="web_vitals_attribution",e.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css",Vd;var e})(),Wd=new Set;function Gd(e){return Wd.has(e)}function Zd(e){return 0!==e&&100*Math.random()<=e}function Jd(e){return function(e){return"number"==typeof e}(e)&&e>=0&&e<=100}function Yd(e){return 0===Object.keys(e).length}function Kd(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,Kd)}function Qd(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),s=r>=55296&&r<=56319?t+1:t;return e.length<=s?e:"".concat(e.slice(0,s)).concat(n)}function Xd(e,t,n,r){var s=new Date;s.setTime(s.getTime()+n);var i="expires=".concat(s.toUTCString()),o=r&&r.crossSite?"none":"strict",a=r&&r.domain?";domain=".concat(r.domain):"",l=r&&r.secure?";secure":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;samesite=").concat(o).concat(a).concat(l)}function eh(e){return function(e,t){var n=new RegExp("(?:^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)")).exec(e);return n?n[1]:void 0}(document.cookie,e)}function th(e,t){Xd(e,"",0,t)}var nh="_dd_s",rh=/^([a-z]+)=([a-z0-9-]+)$/;function sh(e){return Yd(e)}function ih(e){e.expire=String(Od()+9e5)}function oh(e){return function(e){return Object.keys(e).map(function(t){return[t,e[t]]})}(e).map(function(e){var t=e[1];return"".concat(e[0],"=").concat(t)}).join("&")}function ah(e){var t={};return function(e){return!!e&&(-1!==e.indexOf("&")||rh.test(e))}(e)&&e.split("&").forEach(function(e){var n=rh.exec(e);null!==n&&(t[n[1]]=n[2])}),t}function lh(e){return function(t){Xd(nh,oh(t),9e5,e)}}function ch(){return ah(eh(nh))}function uh(e){return function(){th(nh,e)}}function dh(e){localStorage.setItem(nh,oh(e))}function hh(){return ah(localStorage.getItem(nh))}function fh(){localStorage.removeItem(nh)}var ph,gh=[];function mh(e,t,n){var r;void 0===n&&(n=0);var s=t.isLockEnabled,i=t.retrieveSession,o=t.persistSession,a=t.clearSession;if(ph||(ph=e),e===ph)if(s&&n>=100)yh(t);else{var l,c=i();if(s){if(c.lock)return void vh(e,t,n);if(l=Kd(),c.lock=l,o(c),(c=i()).lock!==l)return void vh(e,t,n)}var u=e.process(c);if(s&&(c=i()).lock!==l)vh(e,t,n);else{if(u&&(sh(u)?a():(ih(u),o(u))),s&&(!u||!sh(u))){if((c=i()).lock!==l)return void vh(e,t,n);delete c.lock,o(c),u=c}null===(r=e.after)||void 0===r||r.call(e,u||c),yh(t)}}else gh.push(e)}function vh(e,t,n){cd(function(){mh(e,t,n+1)},10)}function yh(e){ph=void 0;var t=gh.shift();t&&mh(t,e)}function bh(e){var t=function(e){var t=function(e){var t={};return t.secure=!!e.useSecureSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.useCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===zd){for(var e="dd_site_test_".concat(Kd()),t=window.location.hostname.split("."),n=t.pop();t.length&&!eh(e);)Xd(e,"test",1e3,{domain:n="".concat(t.pop(),".").concat(n)});th(e,{domain:n}),zd=n}return zd}()),t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(Kd()),n="test";Xd(t,n,6e4,e);var r=eh(t)===n;return th(t,e),r}catch(s){return zu.error(s),!1}}(t)?{type:"Cookie",cookieOptions:t}:void 0}(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=Kd(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(np){return}}()),t}function Ch(e,t,n){var r,s=new _d,i=new _d,o="Cookie"===e.type?function(e){var t={isLockEnabled:null!=Hd?Hd:Hd=!!window.chrome||/HeadlessChrome/.test(window.navigator.userAgent),persistSession:lh(e),retrieveSession:ch,clearSession:uh(e)};return function(e){if(!eh(nh)){var t=eh("_dd"),n=eh("_dd_r"),r=eh("_dd_l"),s={};t&&(s.id=t),r&&/^[01]$/.test(r)&&(s.logs=r),n&&/^[012]$/.test(n)&&(s.rum=n),sh(s)||(ih(s),e.persistSession(s))}}(t),t}(e.cookieOptions):{isLockEnabled:!1,persistSession:dh,retrieveSession:hh,clearSession:fh},a=o.clearSession,l=o.retrieveSession,c=dd(function(){mh({process:function(e){return f(e)?void 0:{}},after:d},o)},1e3),u=f(r=l())?r:{};function d(e){return f(e)||(e={}),h()&&(function(e){return u.id!==e.id||u[t]!==e[t]}(e)?(u={},i.notify()):u=e),e}function h(){return void 0!==u[t]}function f(e){return(void 0===e.created||Od()-Number(e.created)<144e5)&&(void 0===e.expire||Od()200-e.length-1||kh.test(t))&&zu.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var n=t.replace(/,/g,"_");return"".concat(e,":").concat(n)}function Ih(e){var t,n,r;if(e&&e.clientToken){var s=null!==(t=e.sessionSampleRate)&&void 0!==t?t:e.sampleRate;if(void 0===s||Jd(s))if(void 0===e.telemetrySampleRate||Jd(e.telemetrySampleRate)){if(void 0===e.telemetryConfigurationSampleRate||Jd(e.telemetryConfigurationSampleRate))return Array.isArray(e.enableExperimentalFeatures)&&function(e){e.forEach(function(e){Wd.add(e)})}(e.enableExperimentalFeatures.filter(function(e){return function(e,t){return Object.keys(e).some(function(n){return e[n]===t})}(Vd,e)})),sd({beforeSend:e.beforeSend&&Vu(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:bh(e),sessionSampleRate:null!=s?s:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},function(e){var t=function(e){var t=e.env,n=e.service,r=e.version,s=e.datacenter,i=[];return t&&i.push(Ph("env",t)),n&&i.push(Ph("service",n)),r&&i.push(Ph("version",r)),s&&i.push(Ph("datacenter",s)),i}(e),n=function(e,t){return{logsEndpointBuilder:Ah(e,"logs",t),rumEndpointBuilder:Ah(e,"rum",t),sessionReplayEndpointBuilder:Ah(e,"sessionReplay",t)}}(e,t),r=nd(n).map(function(e){return e.urlPrefix}),s=function(e,t,n){if(e.replica){var r=sd({},e,{site:_h,clientToken:e.replica.clientToken}),s={logsEndpointBuilder:Ah(r,"logs",n),rumEndpointBuilder:Ah(r,"rum",n)};return t.push.apply(t,nd(s).map(function(e){return e.urlPrefix})),sd({applicationId:e.replica.applicationId},s)}}(e,r,t);return sd({isIntakeUrl:function(e){return r.some(function(t){return 0===e.indexOf(t)})},replica:s,site:e.site||_h},n)}(e));zu.error("Telemetry Configuration Sample Rate should be a number between 0 and 100")}else zu.error("Telemetry Sample Rate should be a number between 0 and 100");else zu.error("Session Sample Rate should be a number between 0 and 100")}else zu.error("Client Token is not configured, we will not send any data.")}function Oh(e){var t=[],n=$h(e,"stack"),r=String(e);return n&&rd(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(e){var n=function(e){var t=Lh.exec(e);if(t){var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),s=Nh.exec(t[2]);return r&&s&&(t[2]=s[1],t[3]=s[2],t[4]=s[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}}(e)||function(e){var t=Dh.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=Mh.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){var t=Fh.exec(e);if(t){var n=t[3]&&t[3].indexOf(" > eval")>-1,r=jh.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);n&&(!n.func&&n.line&&(n.func="?"),t.push(n))}),{message:$h(e,"message"),name:$h(e,"name"),stack:t}}var Rh="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",Uh="(?::(\\d+))",Lh=new RegExp("^\\s*at (.*?) ?\\(".concat(Rh).concat(Uh,"?").concat(Uh,"?\\)?\\s*$"),"i"),Nh=new RegExp("\\((\\S*)".concat(Uh).concat(Uh,"\\)")),Dh=new RegExp("^\\s*at ?".concat(Rh).concat(Uh,"?").concat(Uh,"??\\s*$"),"i"),Mh=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Fh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,jh=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function $h(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}var Bh="No stack, consider using an instance of Error";function qh(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,s=e.startClocks,i=e.source,o=e.handling,a=n instanceof Error,l=function(e,t,n,r){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":"".concat(n," ").concat(bd(wd(r)))}(t,a,e.nonErrorPrefix,n),c=function(e,t){return void 0!==t&&(!!e||t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url))}(a,t)?zh(t):Bh,u=a?function(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var s=Oh(n.cause);r.push({message:n.cause.message,source:t,type:null==s?void 0:s.name,stack:s&&zh(s)}),n=n.cause}return r.length?r:void 0}(n,i):void 0;return{startClocks:s,source:i,handling:o,handlingStack:r,originalError:n,type:null==t?void 0:t.name,message:l,stack:c,causes:u,fingerprint:Hh(n)}}function Hh(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function zh(e){var t=Vh(e);return e.stack.forEach(function(e){var n="?"===e.func?"":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",s=e.line?":".concat(e.line):"",i=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(s).concat(i)}),t}function Vh(e){return"".concat(e.name||"Error",": ").concat(e.message)}function Wh(){var e,t=new Error;if(!t.stack)try{throw t}catch(np){}return Qu(function(){var n=Oh(t);n.stack=n.stack.slice(2),e=zh(n)}),e}var Gh={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Zh(e,t,n,r,s){return n?zh({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=s?s:void 0}]}):void 0}function Jh(e,t,n){return void 0===e?[]:"all"===e||Array.isArray(e)&&e.every(function(e){return ed(t,e)})?"all"===e?t:function(e){var t=new Set;return e.forEach(function(e){return t.add(e)}),td(t)}(e):void zu.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'))}var Yh={debug:"debug",error:"error",info:"info",warn:"warn"},Kh=Object.keys(Yh),Qh=function(){function e(e,t,n,r,s){void 0===n&&(n="http"),void 0===r&&(r=Yh.debug),void 0===s&&(s={}),this.handleLogStrategy=e,this.handlerType=n,this.level=r,this.contextManager=kd(3),this.contextManager.set(sd({},s,t?{logger:{name:t}}:void 0))}return e.prototype.log=function(e,t,n,r){var s;if(void 0===n&&(n=Yh.info),n===Yh.error&&(s={origin:"logger"}),null!=r){var i=qh({stackTrace:r instanceof Error?Oh(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:"logger",handling:"handled",startClocks:Ld()});s={origin:"logger",stack:i.stack,kind:i.type,message:i.message}}var o=wd(t),a=s?yd({error:s},o):o;this.handleLogStrategy({message:wd(e),context:a,status:n},this)},e.prototype.debug=function(e,t,n){this.log(e,t,Yh.debug,n)},e.prototype.info=function(e,t,n){this.log(e,t,Yh.info,n)},e.prototype.warn=function(e,t,n){this.log(e,t,Yh.warn,n)},e.prototype.error=function(e,t,n){this.log(e,t,Yh.error,n)},e.prototype.setContext=function(e){this.contextManager.set(e)},e.prototype.getContext=function(){return this.contextManager.get()},e.prototype.addContext=function(e,t){this.contextManager.add(e,t)},e.prototype.removeContext=function(e){this.contextManager.remove(e)},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},function(e,t,n,r){var s,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);i>3&&o&&Object.defineProperty(t,n,o)}([Yu],e.prototype,"log",null),e}();function Xh(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}var ef,tf=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],nf=["ddog-gov.com"],rf={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function sf(e,t){Xu($u.debug,e,t),af(sd({type:"log",message:e,status:"debug"},t))}function of(e,t){af(sd({type:"log",status:"error"},function(e){if(e instanceof Error){var t=Oh(e);return{error:{kind:t.name,stack:zh(lf(t))},message:t.message}}return{error:{stack:Bh},message:"".concat("Uncaught"," ").concat(bd(e))}}(e),t))}function af(e){ef&&rf.sentEventCount=this.messageBytesLimit?zu.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(t)&&this.remove(t),this.push(r,s,t))},e.prototype.process=function(e){var t=bd(e);return{processedMessage:t,messageBytesCount:ad(t)}},e.prototype.push=function(e,t,n){this.flushController.notifyBeforeAddMessage(t+(this.flushController.messagesCount>0?1:0)),void 0!==n?this.upsertBuffer[n]=e:this.pushOnlyBuffer.push(e),this.flushController.notifyAfterAddMessage()},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=ad(t);this.flushController.notifyAfterRemoveMessage(n+(this.flushController.messagesCount>1?1:0))},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}();function pf(e){return e>=500}function gf(e,t,n,r,s){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?vf(e,t,n,{onSuccess:function(){return yf(0,t,n,r,s)},onFailure:function(){t.queuedPayloads.enqueue(e),mf(t,n,r,s)}}):t.queuedPayloads.enqueue(e)}function mf(e,t,n,r){2===e.transportStatus&&cd(function(){vf(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,yf(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),mf(e,t,n,r)}})},e.currentBackoffTime)}function vf(e,t,n,r){var s=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,function(n){t.bandwidthMonitor.remove(e),function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||pf(e.status))}(n)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i()):(t.transportStatus=0,s())})}function yf(e,t,n,r,s){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(s({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:"agent",startClocks:Ld()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=bf();i.size()>0;)gf(i.dequeue(),t,n,r,s)}function bf(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=3145728}}}var Cf=!1;function wf(e,t,n,r){var s=new XMLHttpRequest;s.open("POST",t,!0),Fd(0,s,"loadend",function(){null==r||r({status:s.status})},{once:!0}),s.send(n)}function Sf(e,t,n,r,s,i){var o=l(e,t.endpoint),a=n&&l(e,n.endpoint);function l(e,t){return new ff(function(e,t,n,r){var s={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:bf(),queueFullReported:!1},i=function(e,r){return function(e,t,n,r,s){if(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&r.bytesCount=r&&d("bytes_limit"),u+=1,c+=e,void 0===t&&(t=cd(function(){d("duration_limit")},s))},notifyAfterAddMessage:function(){u>=n?d("messages_limit"):c>=r&&d("bytes_limit")},notifyAfterRemoveMessage:function(e){c-=e,0==(u-=1)&&h()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:s,sessionExpireObservable:i}),e.messageBytesLimit)}return{flushObservable:o.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),o.add(e),a&&t&&a.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){o.upsert(e,t),a&&a.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){o.stop(),null==a||a.stop()}}}var Ef=1/0,_f=function(){function e(e,t){var n=this;this.expireDelay=e,this.maxEntries=t,this.entries=[],this.clearOldValuesInterval=dd(function(){return n.clearOldValues()},6e4)}return e.prototype.add=function(e,t){var n=this,r={value:e,startTime:t,endTime:Ef,remove:function(){var e=n.entries.indexOf(r);e>=0&&n.entries.splice(e,1)},close:function(e){r.endTime=e}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=Ef);for(var t=0,n=this.entries;t0&&this.entries[this.entries.length-1].endTime=Pf[n.getLevel()]&&ed(s,t)}var Of=!1;function Rf(e){var t=window;if(uf()){var n=r(t.DD_RUM_SYNTHETICS);return!n&&!Of&&(Of=!0,sf("Logs sent before RUM is injected by the synthetics worker",{testId:df(),resultId:hf()})),n}return r(t.DD_RUM);function r(t){if(t&&t.getInternalContext)return t.getInternalContext(e)}}var Uf={};function Lf(e,t,n){var r,s,i=e.map(function(e){return function(e){return"string"==typeof e?wd(e):e instanceof Error?Vh(Oh(e)):bd(wd(e),void 0,2)}(e)}).join(" ");if(t===$u.error){var o=function(e,t){for(var n=0;nn.bytesLimit}t(void 0,e,o)}!function e(){r.read().then(Ku(function(t){t.done?o():(n.collectStreamBody&&s.push(t.value),(i+=t.value.length)>n.bytesLimit?o():e())}),Ku(function(e){return t(e)}))}()}(e,function(e,t,r){if(e)n(e);else{var s=(new TextDecoder).decode(t);r&&(s+="..."),n(void 0,s)}},{bytesLimit:t,collectStreamBody:!0})}(r.body,t.requestErrorResponseLengthLimit,function(e,t){n(e?"Unable to retrieve response: ".concat(e):t)}):r.text().then(Ku(function(e){return n(Kf(e,t))}),Ku(function(e){return n("Unable to retrieve response: ".concat(e))})):n()}(r.response,e,s):r.error&&function(e,t,n){n(Kf(zh(Oh(e)),t))}(r.error,e,s))}return{stop:function(){n.unsubscribe(),r.unsubscribe()}}}function Kf(e,t){return e.length>t.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}function Qf(e){return"xhr"===e?"XHR":"Fetch"}var Xf=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function ep(e,t){if(!e.forwardErrorsToLogs)return{stop:pd};var n=new _d,r=function(e){return function(e){var t=function(e){return $f(window,"onerror",{before:function(t,n,r,s,i){var o;if(i instanceof Error)o=Oh(i);else{var a=[{url:n,column:s,line:r}],l=function(e){var t,n,r;return"[object String]"==={}.toString.call(e)&&(n=(t=Xf.exec(e))[1],r=t[2]),{name:n,message:r}}(t);o={name:l.name,message:l.message,stack:a}}e(o,null!=i?i:t)}})}(e).stop,n=function(e){return $f(window,"onunhandledrejection",{before:function(t){var n=t.reason||"Empty reason",r=Oh(n);e(r,n)}})}(e).stop;return{stop:function(){t(),n()}}}(function(t,n){e.notify(qh({stackTrace:t,originalError:n,startClocks:Ld(),nonErrorPrefix:"Uncaught",source:"source",handling:"unhandled"}))})}(n).stop,s=n.subscribe(function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{kind:e.type,origin:"source",stack:e.stack},origin:"source",status:Yh.error}})});return{stop:function(){r(),s.unsubscribe()}}}var tp,np,rp=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach(function(e){return e(t)})},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter(function(e){return t!==e})}}},e}(),sp=rp,ip=function(e){var t=!1,n=kd(2),r=kd(1),s={},i=function(){},o=new Id,a=function(e,t,n,r){void 0===n&&(n=vd(u())),void 0===r&&(r=Rd()),o.add(function(){return a(e,t,n,r)})},l=function(){},c=new Qh(function(){for(var e=[],t=0;t{class e{constructor(){this.CAMPAIGN_UI="campaign-ui-prod",this.initializeDatadogLog()}log(e,t){console.log(`${this.CAMPAIGN_UI} ${e}`,t)}debug(e,t){console.debug(`${this.CAMPAIGN_UI} ${e}`,t)}info(e,t){console.info(`${this.CAMPAIGN_UI} ${e}`,t)}ddInfo(e,t){console.info(`${this.CAMPAIGN_UI} ${e}`,t),ip.logger.info(`${this.CAMPAIGN_UI} ${e}`,t)}warn(e,t){console.warn(`${this.CAMPAIGN_UI} ${e}`,t)}error(e,t){console.error(`${this.CAMPAIGN_UI} ${e}`,t)}ddError(e,t){console.error(`${this.CAMPAIGN_UI} ${e}`,t),ip.logger.error(`${this.CAMPAIGN_UI} ${e}`,t)}initializeDatadogLog(){ip.init({clientToken:"pub2a1eacb4678c8ac666513170783471aa",service:this.CAMPAIGN_UI,site:"datadoghq.com",env:"PROD",version:"1.0.0"})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();var ap=n(8089);var lp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function cp(){var e,t={},n=[],r=[],s=[],i=function(e,n){null!=n&&""!==n&&(t[e]=n)};return{add:i,addDict:function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&i(t,e[t])},addJson:function(e,t,s){if(s&&dp(s)){var i={keyIfEncoded:e,keyIfNotEncoded:t,json:s};r.push(i),n.push(i)}},addContextEntity:function(e){s.push(e)},getPayload:function(){return t},getJson:function(){return n},withJsonProcessor:function(t){e=t},build:function(){return null==e||e(this,r,s),t}}}function up(e){return function(t,n,r){for(var s=function(n,r,s){var i=JSON.stringify(n);e?t.add(r,function(e){if(!e)return e;var t=function(e){var t,n,r,s,i=0,o=0,a=[];if(!e)return e;e=unescape(encodeURIComponent(e));do{t=(s=e.charCodeAt(i++)<<16|e.charCodeAt(i++)<<8|e.charCodeAt(i++))>>12&63,n=s>>6&63,r=63&s,a[o++]=lp.charAt(s>>18&63)+lp.charAt(t)+lp.charAt(n)+lp.charAt(r)}while(i>16&255,n=o>>8&255,r=255&o,u[c++]=64===s?String.fromCharCode(t):64===i?String.fromCharCode(t,n):String.fromCharCode(t,n,r)}while(l(function(e){e[e.none=0]="none",e[e.error=1]="error",e[e.warn=2]="warn",e[e.debug=3]="debug",e[e.info=4]="info"}(pp||(pp={})),pp))(),gp=function(e){return void 0===e&&(e=pp.warn),{setLogLevel:function(t){e=pp[t]?t:pp.warn},warn:function(t,n){for(var r=[],s=2;s=pp.warn&&"undefined"!=typeof console){var i=fp+t;n?console.warn.apply(console,q([i+"\n",n],r,!1)):console.warn.apply(console,q([i],r,!1))}},error:function(t,n){for(var r=[],s=2;s=pp.error&&"undefined"!=typeof console){var i=fp+t+"\n";n?console.error.apply(console,q([i+"\n",n],r,!1)):console.error.apply(console,q([i],r,!1))}},debug:function(t){for(var n=[],r=1;r=pp.debug&&"undefined"!=typeof console&&console.debug.apply(console,q([fp+t],n,!1))},info:function(t){for(var n=[],r=1;r=pp.info&&"undefined"!=typeof console&&console.info.apply(console,q([fp+t],n,!1))}}}();function mp(){var e=[],t=[];return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return t},addGlobalContexts:function(n){for(var r=[],s=[],i=0,o=n;i0&&0===n}(e[0],r))return Op(e[1],t,n,r);return[]}(e,t,n,r);if(s&&0!==s.length)return s});return(s=[]).concat.apply(s,i.filter(function(e){return null!=e&&e.filter(Boolean)}))}(t,n,s,r);return i.push.apply(i,a),i}(n)}}}function vp(e){for(var t,n=[],r=1;r1)&&function(e){if("*"===e[0]||"*"===e[1])return!1;if(e.slice(2).length>0){for(var t=!1,n=0,r=e.slice(2);n0&&n<=2}return!1}(e[0]))&&(Array.isArray(e[1])?e[1].every(_p):_p(e[1]))}function Ap(e){return Tp(e)||xp(e)}function kp(e,t){if(!Cp(e))return!1;var n=bp(e),r=function(e){var t=new RegExp("^iglu:([a-zA-Z0-9-_.]+)/([a-zA-Z0-9-_]+)/jsonschema/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$").exec(e);if(null!==t)return t.slice(1,6)}(t);if(n&&r){if(!function(e,t){var n=t.split("."),r=e.split(".");if(n&&r){if(n.length!==r.length)return!1;for(var s=0;s1?document.cookie=e+"="+encodeURIComponent(null!=t?t:"")+(n?"; Expires="+new Date(+new Date+1e3*n).toUTCString():"")+(r?"; Path="+r:"")+(s?"; Domain="+s:"")+(i?"; SameSite="+i:"")+(o?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}function tg(e){if(null==e||"object"!=typeof e||Array.isArray(e))return function(){return!0};var t=Object.prototype.hasOwnProperty.call(e,"allowlist"),n=ig(e);return sg(e,function(e){return function(e,t){for(var n=0,r=rg(e);n=55296&&r<=57343?(t+=4,n++):t+=r<65535?3:4}return t}Array.isArray(_)||(_=[]),t.outQueues.push(_),P&&i>1&&t.bufferFlushers.push(function(e){E||$(e)});var D=function(e){return"object"==typeof e[0]&&"evt"in e[0]};function M(e,t){var n=q(t,!0,!1),r=z([e.evt]);n.onreadystatechange=function(){4===n.readyState&&(B(n.status)?null==y||y(r):null==b||b({status:n.status,message:n.statusText,events:r,willRetry:!1}))},n.send(H(r))}function F(e){for(var t=0;t=o);)t+=1;return t}(_)):(s=q(r=V(_[0]),!1,e),i=1),D(_)){var a=_.slice(0,i);if(a.length>0){var l=!1,h=a.map(function(e){return e.evt});if(A){var f=new Blob([H(z(h))],{type:"application/json"});try{l=window.navigator.sendBeacon(r,f)}catch(b){l=!1}}if(!0===l)F(i),null==y||y(a),$();else{var p=z(h);j(s,i,p),s.send(H(p))}}}else j(s,i,[r]),s.send()}else if(d||D(_))E=!1;else{var g=new Image(1,1),v=!0;g.onload=function(){!v||(v=!1,_.shift(),n&&jp(R,JSON.stringify(_.slice(0,c))),$())},g.onerror=function(){!v||(v=!1,E=!1)},g.src=V(_[0]),setTimeout(function(){v&&E&&(v=!1,$())},u)}}else E=!1}function B(e){return e>=200&&e<300}function q(e,t,n){var r=new XMLHttpRequest;for(var s in t?(r.open("POST",e,!n),r.setRequestHeader("Content-Type","application/json; charset=UTF-8")):r.open("GET",e,!n),r.withCredentials=f,d&&r.setRequestHeader("SP-Anonymous","*"),h)Object.prototype.hasOwnProperty.call(h,s)&&r.setRequestHeader(s,h[s]);return r}function H(e){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:e})}function z(e){for(var t=(new Date).getTime().toString(),n=0;n=o)return r(u.bytes,o),void M(u,C);_.push(u)}else{var l=function(e){var t="?",n={co:!0,cx:!0},r=!0;for(var s in e)e.hasOwnProperty(s)&&!n.hasOwnProperty(s)&&(r?r=!1:t+="&",t+=encodeURIComponent(s)+"="+encodeURIComponent(e[s]));for(var i in n)e.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(t+="&"+i+"="+encodeURIComponent(e[i]));return t}(e);if(a>0){var u,d=N(V(l));if(d>=a)return r(d,a),void(P&&M(u=L(e),t+s))}_.push(l)}var h=!1;n&&(h=jp(R,JSON.stringify(_.slice(0,c)))),!E&&(!h||_.length>=i)&&$()},executeQueue:function(){E||$()},setUseLocalStorage:function(e){n=e},setAnonymousTracking:function(e){d=e},setCollectorUrl:function(e){C=e+O},setBufferSize:function(e){i=e}}}function ag(e,t,n){var r;return"translate.googleusercontent.com"===e?(""===n&&(n=t),t=null!==(r=function(e,t){var n=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)").exec(e);return n&&(null==n?void 0:n.length)>1?Kp("u",n[1]):null}(t))&&void 0!==r?r:"",e=Gp(t)):("cc.bingj.com"===e||"webcache.googleusercontent.com"===e)&&(e=Gp(t=document.links[0].href)),[e,t,n]}function lg(e,t){void 0===t&&(t={memorizedVisitCount:1});var n=t.memorizedVisitCount;fg(e)?(e[7]=e[6],e[5]=e[4],e[3]++):e[3]=n;var r=(0,Fp.v4)();return e[6]=r,e[10]=0,e[8]="",e[9]=void 0,r}function cg(e){e[4]=Math.round((new Date).getTime()/1e3)}function ug(e,t,n){var r=e[9];return{userId:n?"00000000-0000-0000-0000-000000000000":e[1],sessionId:e[6],eventIndex:e[10],sessionIndex:e[3],previousSessionId:n?null:e[7]||null,storageMechanism:"localStorage"==t?"LOCAL_STORAGE":"COOKIE_1",firstEventId:e[8]||null,firstEventTimestamp:r?new Date(r).toISOString():null}}function dg(e){return e[6]}function hg(e){return e[3]}function fg(e){return"0"===e[0]}var pg,gg=!1;function mg(){return"ResizeObserver"in window?(pg||(pg=vg()),function(){if(!gg&&document&&document.body&&document.documentElement){gg=!0;var e=new ResizeObserver(function(e){for(var t=0,n=e;t1e3*Re&&(Fe++,le=lg(n,{memorizedVisitCount:Fe})),cg(n),function(e,t){if(0===e[10]){var n=t.build();e[8]=n.eid;var r=n.dtm||n.ttm;e[9]=r?parseInt(r):void 0}}(n,e),function(e){e[10]+=1}(n);var s=mg(),i=s.documentSize;e.add("vp",s.viewport),e.add("ds",i),e.add("vid",B(Fe)),e.add("sid",B(le)),e.add("duid",$(function(e){return e[1]}(n))),e.add("uid",$(ce)),tt(),e.add("refr",rt(J||me)),e.add("url",rt(Y||ge));var o=ug(n,De,Ne);if(ze&&(!Ne||Ue)&&function(e,t){e.addContextEntity({schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",data:t})}(e,o),"none"!=De){pt(n);var a=ft();(!t||r)&&a&&Ve&&!We&&(Ve(o),We=!1)}Me=(new Date).getTime()}}})),Z&&o.push({contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:St()}}]}}),G&&o.push({contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",data:j(j({},mg()),{tabId:Et()})}]}}),o.push.apply(o,null!==(g=c.plugins)&&void 0!==g?g:[]);var J,Y,K,Q,X,ee,te,ne,re,se,ie,oe,ae,le,ce,ue,de=function(e){void 0===e&&(e={});var t=e.base64,n=e.corePlugins,r=null!=n?n:[],i=function(e,t,n){var r=function(e){return{addPluginContexts:function(t){var n=t?q([],t,!0):[];return e.forEach(function(e){try{e.contexts&&n.push.apply(n,e.contexts())}catch(s){gp.error("Error adding plugin contexts",s)}}),n}}}(t),i=mp(),o=e,a={};function l(e,t){a[e]=t}var c={track:function(e,s,l){e.withJsonProcessor(up(o)),e.add("eid",(0,ap.v4)()),e.addDict(a);var c=function(e){return null==e?{type:"dtm",value:(new Date).getTime()}:"number"==typeof e?{type:"dtm",value:e}:"ttm"===e.type?{type:"ttm",value:e.value}:{type:"dtm",value:e.value||(new Date).getTime()}}(l);e.add(c.type,c.value.toString());var u=function(e,t){var n=i.getApplicableContexts(e),r=[];return t&&t.length&&r.push.apply(r,t),n&&n.length&&r.push.apply(r,n),r}(e,r.addPluginContexts(s)),d=function(e){if(e&&e.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:e}}(u);void 0!==d&&e.addJson("cx","co",d),t.forEach(function(t){try{t.beforeTrack&&t.beforeTrack(e)}catch(S){gp.error("Plugin beforeTrack",S)}}),"function"==typeof n&&n(e);var h=e.build();return t.forEach(function(e){try{e.afterTrack&&e.afterTrack(h)}catch(S){gp.error("Plugin afterTrack",S)}}),h},addPayloadPair:l,getBase64Encoding:function(){return o},setBase64Encoding:function(e){o=e},addPayloadDict:function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t])},resetPayloadPairs:function(e){a=hp(e)?e:{}},setTrackerVersion:function(e){l("tv",e)},setTrackerNamespace:function(e){l("tna",e)},setAppId:function(e){l("aid",e)},setPlatform:function(e){l("p",e)},setUserId:function(e){l("uid",e)},setScreenResolution:function(e,t){l("res",e+"x"+t)},setViewport:function(e,t){l("vp",e+"x"+t)},setColorDepth:function(e){l("cd",e)},setTimezone:function(e){l("tz",e)},setLang:function(e){l("lang",e)},setIpAddress:function(e){l("ip",e)},setUseragent:function(e){l("ua",e)},addGlobalContexts:function(e){i.addGlobalContexts(e)},clearGlobalContexts:function(){i.clearGlobalContexts()},removeGlobalContexts:function(e){i.removeGlobalContexts(e)}};return c}(null==t||t,r,e.callback),o=j(j({},i),{addPlugin:function(e){var t,n,s=e.plugin;r.push(s),null===(t=s.logger)||void 0===t||t.call(s,gp),null===(n=s.activateCorePlugin)||void 0===n||n.call(s,o)}});return null==r||r.forEach(function(e){var t,n;null===(t=e.logger)||void 0===t||t.call(e,gp),null===(n=e.activateCorePlugin)||void 0===n||n.call(e,o)}),o}({base64:c.encodeBase64,corePlugins:o,callback:function(e){Ie||ue||je.enqueueRequest(e.build(),ye)}}),he=document.characterSet||document.charset,fe=ag(window.location.hostname,window.location.href,Jp()),pe=Zp(fe[0]),ge=fe[1],me=fe[2],ve=null!==(m=c.platform)&&void 0!==m?m:"web",ye=Ct(a),be=null!==(v=c.postPath)&&void 0!==v?v:"/com.snowplowanalytics.snowplow/tp2",Ce=null!==(y=c.appId)&&void 0!==y?y:"",we=document.title,Se=!1,Ee=null===(b=c.resetActivityTrackingOnPageView)||void 0===b||b,_e=null!==(C=c.cookieName)&&void 0!==C?C:"_sp_",Te=null!==(w=c.cookieDomain)&&void 0!==w?w:void 0,xe="/",Ae=null!==(S=c.cookieSameSite)&&void 0!==S?S:"None",ke=null===(E=c.cookieSecure)||void 0===E||E,Pe=window.navigator.doNotTrack||window.navigator.msDoNotTrack||window.doNotTrack,Ie=void 0!==c.respectDoNotTrack&&c.respectDoNotTrack&&("yes"===Pe||"1"===Pe),Oe=null!==(_=c.cookieLifetime)&&void 0!==_?_:63072e3,Re=null!==(T=c.sessionCookieTimeout)&&void 0!==T?T:1800,Ue=z(c),Le=V(c),Ne=W(c),De=H(c),Me=(new Date).getTime(),Fe=1,je=og(e,l,"localStorage"==De||"cookieAndLocalStorage"==De,c.eventMethod,be,null!==(x=c.bufferSize)&&void 0!==x?x:1,null!==(A=c.maxPostBytes)&&void 0!==A?A:4e4,null!==(k=c.maxGetBytes)&&void 0!==k?k:0,null===(P=c.useStm)||void 0===P||P,null!==(I=c.maxLocalStorageQueueSize)&&void 0!==I?I:1e3,null!==(O=c.connectionTimeout)&&void 0!==O?O:5e3,Le,null!==(R=c.customHeaders)&&void 0!==R?R:{},null===(U=c.withCredentials)||void 0===U||U,null!==(L=c.retryStatusCodes)&&void 0!==L?L:[],(null!==(N=c.dontRetryStatusCodes)&&void 0!==N?N:[]).concat([400,401,403,410,422]),c.idService,c.retryFailedRequests,c.onRequestSuccess,c.onRequestFailure),$e=!1,Be=null!==(D=c.preservePageViewIdForUrl)&&void 0!==D&&D,qe=void 0,He={enabled:!1,installed:!1,configurations:{}},ze=null!==(F=null===(M=c.contexts)||void 0===M?void 0:M.session)&&void 0!==F&&F,Ve=c.onSessionUpdateCallback,We=!1,Ge=function(e){return"boolean"==typeof e?{useExtendedCrossDomainLinker:e}:{useExtendedCrossDomainLinker:!0,collectCrossDomainAttributes:e}}(c.useExtendedCrossDomainLinker||!1),Ze=Ge.useExtendedCrossDomainLinker,Je=Ge.collectCrossDomainAttributes;c.hasOwnProperty("discoverRootDomain")&&c.discoverRootDomain&&(Te=function(e,t){for(var n=window.location.hostname,r="_sp_root_domain_test_",s=r+(new Date).getTime(),i="_test_value_"+(new Date).getTime(),o=n.split("."),a=o.length-2;a>=0;a--){var l=o.slice(a).join(".");if(eg(s,i,0,"/",l,e,t),eg(s)===i){Qp(s,l,e,t);for(var c=Xp(r),u=0;uDate.now()?t.getItem(e):(t.removeItem(e),void t.removeItem(e+".expires"))}catch(r){return}}(t):"cookie"==De||"cookieAndLocalStorage"==De?eg(t):void 0}function at(){tt(),oe=Mp()((Te||pe)+(xe||"/")).slice(0,4)}function lt(){var e=new Date;te=e.getTime()}function ct(){(function(){var e=ut(),t=e[0];tre&&(re=t);var n=e[1];nie&&(ie=n)})(),lt()}function ut(){var e=document.documentElement;return e?[e.scrollLeft||window.pageXOffset,e.scrollTop||window.pageYOffset]:[0,0]}function dt(){var e=ut(),t=e[0];ne=t,re=t;var n=e[1];se=n,ie=n}function ht(e){return Math.round(e)}function ft(){return gt(it("ses"),"*",Re)}function pt(e){var t=it("id"),n=function(e,t){var n=q([],e,!0);return t&&(n[1]="",n[7]=""),n.shift(),n.join(".")}(e,Ne);return gt(t,n,Oe)}function gt(e,t,n){return!(Ne&&!Ue)&&("localStorage"==De?jp(e,t,n):("cookie"==De||"cookieAndLocalStorage"==De)&&(eg(e,t,n,xe,Te,Ae,ke),-1!==document.cookie.indexOf("".concat(e,"="))))}function mt(e){var t=it("id"),n=it("ses");$p(t),$p(n),Qp(t,Te,Ae,ke),Qp(n,Te,Ae,ke),(null==e?void 0:e.preserveSession)||(le=(0,Fp.v4)(),Fe=1),(null==e?void 0:e.preserveUser)||(ae=Ne?"":(0,Fp.v4)(),ce=null)}function vt(e){e&&e.stateStorageStrategy&&(c.stateStorageStrategy=e.stateStorageStrategy,De=H(c)),Ne=W(c),Ue=z(c),Le=V(c),je.setUseLocalStorage("localStorage"==De||"cookieAndLocalStorage"==De),je.setAnonymousTracking(Le)}function yt(){if(!Ne||Ue){var e="none"!=De&&!!ot("ses"),t=bt();ae=function(e,t){var n;return e[1]?n=e[1]:t?e[1]=n="":(n=(0,Fp.v4)(),e[1]=n),n}(t,Ne),le=e?dg(t):lg(t),Fe=hg(t),"none"!=De&&(ft(),cg(t),pt(t))}}function bt(){return"none"==De?["1","",0,0,0,void 0,"","","",void 0,0]:function(e,t,n,r){var s,i=new Date,o=Math.round(i.getTime()/1e3);e?(s=e.split(".")).unshift("0"):s=["1",t,o,r,o,"",n],(!s[6]||"undefined"===s[6])&&(s[6]=(0,Fp.v4)()),(!s[7]||"undefined"===s[7])&&(s[7]=""),(!s[8]||"undefined"===s[8])&&(s[8]=""),(!s[9]||"undefined"===s[9])&&(s[9]=""),(!s[10]||"undefined"===s[10])&&(s[10]=0);var a=function(e,t){var n=parseInt(e);return isNaN(n)?t:n},l=function(e){return e?a(e,void 0):void 0};return[s[0],s[1],a(s[2],o),a(s[3],r),a(s[4],o),l(s[5]),s[6],s[7],s[8],l(s[9]),a(s[10],0)]}(ot("id")||void 0,ae,le,Fe)}function Ct(e){return 0===e.indexOf("http")?e:("https:"===document.location.protocol?"https":"http")+"://"+e}function wt(){(!$e||null==l.pageViewId)&&(l.pageViewId=(0,Fp.v4)(),l.pageViewUrl=Y||ge)}function St(){return function(){if(null==l.pageViewId)return!0;if($e||!Be)return!1;if(void 0===l.pageViewUrl)return!0;var e=Y||ge;if(!0===Be||"full"==Be||!("URL"in window))return l.pageViewUrl!=e;var t=new URL(e),n=new URL(l.pageViewUrl);return"pathname"==Be?t.pathname!=n.pathname:"pathnameAndSearch"==Be&&(t.pathname!=n.pathname||t.search!=n.search)}()&&(l.pageViewId=(0,Fp.v4)(),l.pageViewUrl=Y||ge),l.pageViewId}function Et(){if("none"===De||Ne||!Z)return null;var e="_sp_tab_id",t=Bp(e);return t||(function(e,t){try{window.sessionStorage.setItem("_sp_tab_id",t)}catch(n){return!1}}(0,(0,Fp.v4)()),t=Bp(e)),t||null}function _t(e,t){return(e||[]).concat(t?t():[])}function Tt(e,t,n){var r=function(e,t){tt(),e({context:t,pageViewId:St(),minXOffset:ne,minYOffset:se,maxXOffset:re,maxYOffset:ie}),dt()},s=function(){var s=new Date;te+e.configHeartBeatTimer>s.getTime()&&r(e.callback,_t(t,n))};e.activityInterval=0===e.configMinimumVisitLength?window.setInterval(s,e.configHeartBeatTimer):window.setTimeout(function(){var i=new Date;te+e.configMinimumVisitLength>i.getTime()&&r(e.callback,_t(t,n)),e.activityInterval=window.setInterval(s,e.configHeartBeatTimer)},e.configMinimumVisitLength)}function xt(e){var t=e.minimumVisitLength,n=e.heartbeatDelay,r=e.callback;if(Vp(t)&&Vp(n))return{configMinimumVisitLength:1e3*t,configHeartBeatTimer:1e3*n,callback:r};gp.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function At(e){var t=e.context,n=e.minXOffset,r=e.minYOffset,s=e.maxXOffset,i=e.maxYOffset,o=document.title;o!==we&&(we=o,K=void 0),de.track(function(e){var t=e.pageUrl,n=e.pageTitle,r=e.referrer,s=e.minXOffset,i=e.maxXOffset,o=e.minYOffset,a=e.maxYOffset,l=cp();return l.add("e","pp"),l.add("url",t),l.add("page",n),l.add("refr",r),s&&!isNaN(Number(s))&&l.add("pp_mix",s.toString()),i&&!isNaN(Number(i))&&l.add("pp_max",i.toString()),o&&!isNaN(Number(o))&&l.add("pp_miy",o.toString()),a&&!isNaN(Number(a))&&l.add("pp_may",a.toString()),l}({pageUrl:rt(Y||ge),pageTitle:Wp(K||we),referrer:rt(J||me),minXOffset:ht(n),maxXOffset:ht(s),minYOffset:ht(r),maxYOffset:ht(i)}),t)}function kt(e){var t=He.configurations[e];0===(null==t?void 0:t.configMinimumVisitLength)?window.clearTimeout(null==t?void 0:t.activityInterval):window.clearInterval(null==t?void 0:t.activityInterval),He.configurations[e]=void 0}de.setTrackerVersion(i),de.setTrackerNamespace(t),de.setAppId(Ce),de.setPlatform(ve),de.addPayloadPair("cookie",et?"1":"0"),de.addPayloadPair("cs",he),de.addPayloadPair("lang",Ke),de.addPayloadPair("res",Qe),de.addPayloadPair("cd",Xe),at(),yt(),c.crossDomainLinker&&nt(c.crossDomainLinker);var Pt={getDomainSessionIndex:function(){return Fe},getPageViewId:St,getTabId:Et,newSession:function(){var e=bt();if(fg(e)?(le="none"!=De?lg(e):dg(e),Fe=hg(e)):(Fe++,le=lg(e,{memorizedVisitCount:Fe})),cg(e),"none"!=De){var t=ug(e,De,Ne);pt(e),ft()&&Ve&&(We=!0,Ve(t))}Me=(new Date).getTime()},getCookieName:function(e){return it(e)},getUserId:function(){return ce},getDomainUserId:function(){return bt()[1]},getDomainUserInfo:function(){return bt()},setReferrerUrl:function(e){J=e},setCustomUrl:function(e){tt(),Y=function(e,t){var n;return st(t)?t:"/"===t.slice(0,1)?st(e)+"://"+Gp(e)+t:((n=(e=rt(e)).indexOf("?"))>=0&&(e=e.slice(0,n)),(n=e.lastIndexOf("/"))!==e.length-1&&(e=e.slice(0,n+1)),e+t)}(ge,e)},setDocumentTitle:function(e){we=document.title,K=e,Se=!1},discardHashTag:function(e){Q=e},discardBrace:function(e){X=e},setCookiePath:function(e){xe=e,at()},setVisitorCookieTimeout:function(e){Oe=e},crossDomainLinker:function(e){nt(e)},enableActivityTracking:function(e){He.configurations.pagePing||(He.enabled=!0,He.configurations.pagePing=xt(j(j({},e),{callback:At})))},enableActivityTrackingCallback:function(e){He.configurations.callback||(He.enabled=!0,He.configurations.callback=xt(e))},disableActivityTracking:function(){kt("pagePing")},disableActivityTrackingCallback:function(){kt("callback")},updatePageActivity:function(){lt()},setOptOutCookie:function(e){ee=e},setUserId:function(e){ce=e},setUserIdFromLocation:function(e){tt(),ce=Kp(e,ge)},setUserIdFromReferrer:function(e){tt(),ce=Kp(e,me)},setUserIdFromCookie:function(e){ce=eg(e)},setCollectorUrl:function(e){ye=Ct(e),je.setCollectorUrl(ye)},setBufferSize:function(e){je.setBufferSize(e)},flushBuffer:function(e){void 0===e&&(e={}),je.executeQueue(),e.newBufferSize&&je.setBufferSize(e.newBufferSize)},trackPageView:function(e){void 0===e&&(e={}),function(e){var t=e.title,n=e.context,r=e.timestamp,s=e.contextCallback;tt(),qe&&qe==St()&&wt(),qe=St(),we=document.title,t?(K=t,Se=!0):Se&&(K=null);var i=Wp(K||we);de.track(function(e){var t=e.pageUrl,n=e.pageTitle,r=e.referrer,s=cp();return s.add("e","pv"),s.add("url",t),s.add("page",n),s.add("refr",r),s}({pageUrl:rt(Y||ge),pageTitle:i,referrer:rt(J||me)}),_t(n,s),r);var o=new Date,a=!1;if(He.enabled&&!He.installed){He.installed=!0,a=!0;var l={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0},set:function(){}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),l.hasSupport=e}}};l.update();var c="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(l,"hasSupport")?Yp(document,c,lt,{passive:!0}):Yp(document,c,lt),dt();var u=function(e,t){return void 0===t&&(t=lt),function(e){return Yp(document,e,t)}};["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"].forEach(u(document)),["resize","focus","blur"].forEach(u(window)),u(window,ct)("scroll")}if(He.enabled&&(Ee||a)){te=o.getTime();var d=void 0;for(d in He.configurations){var h=He.configurations[d];h&&(window.clearInterval(h.activityInterval),Tt(h,n,s))}}}(e)},preservePageViewId:function(){$e=!0},preservePageViewIdForUrl:function(e){Be=e},disableAnonymousTracking:function(e){c.anonymousTracking=!1,vt(e),yt(),je.executeQueue()},enableAnonymousTracking:function(e){var t;c.anonymousTracking=null===(t=e&&(null==e?void 0:e.options))||void 0===t||t,vt(e),Ue||wt()},clearUserData:mt};return j(j({},Pt),{id:e,namespace:t,core:de,sharedState:l})}(e,t,n,r,s,i),l=j(j({},a),{addPlugin:function(e){var t,n;l.core.addPlugin(e),null===(n=(t=e.plugin).activateBrowserPlugin)||void 0===n||n.call(t,l)}});return o.forEach(function(e){var t;null===(t=e.activateBrowserPlugin)||void 0===t||t.call(e,l)}),l}var Sg={};function Eg(e,t){try{(function(e){return function(e,t){for(var n=[],r=0,s=e;r(function(e){e.upSellOrderType="UpSell",e.downSellOrderType="DownSell",e.crossSellOrderType="CrossSell",e.cancelOrderType="Cancel",e.mainSellOrderType="MainSell"}(Ug||(Ug={})),Ug))();let Lg=(()=>{class e{constructor(){this.asset={},this.site={},this.email="",this.snaid="",this.assetId="",this.assetIdForMainsell="",this.styleIds=[],this.jsIds=[],this.currentJsInline="",this.selectedOptionalChildren=[],this.selectedBumpUpOfferIds=[],this.assetConvActivityType="",this.isNewUser=!1,this.subscriptionId="",this.msEmailFrom="",this.msEmailFromName="",this.msEmailTemplateUrl="",this.msEmailSubject="",this.msOfpEmailTemplateUrl="",this.amazonPayBillingAgreementId="",this.amazonPayConsentStatus="false",this.paymentProcessor="",this.isLinkClicked=!1,this.expiredMessage="",this.validationMessage="",this.sessionExpiryMessage="",this.sessionId="",this.sessionTimeOut=0,this.parameterArray={},this.isFromOrderPageAndNotPreview=!1,this.funnelAmount=0,this.funnelTaxAmount=0,this.totalFunnelAmount=0,this.testToken="",this.billingAccountId="",this.kountSessionId="",this.encryptedSnaid="",this.cookieAccepted=!1,this.paypalEmail="",this.orderformVisitFired=!1,this.funnelAmountBeforeDiscount=0,this.queryParams={},this.siteParams={},this.vars={},this.assetDetails=[],this.asset={},this.site={},this.email="",this.assetId="",this.assetIdForMainsell="",this.preview=!1,this.isPreviewOrTest=!1,this.styleIds=[],this.jsIds=[],this.currentJsInline="",this.isZuoraUp=!1,this.offerPriceChoice={},this.mainSellOfferPriceChoice={},this.selectedOptionalChildren=[],this.selectedBumpUpOfferIds=[],this.bumpupOffersDetails={},this.refId="",this.isNextOrderUpsell=!1,this.isActiveSubscription=!1,this.removeCreditCardSection=!1,this.appliedCoupon={},this.upsellOfferChoiceId="",this.paymentProcessor="",this.assetConvActivityType="",this.snaid="",this.isNewUser=!1,this.subscriptionId="",this.pubCode="",this.msEmailFrom="",this.msEmailFromName="",this.msEmailTemplateUrl="",this.msEmailSubject="",this.msOfpEmailTemplateUrl="",this.amazonPayBillingAgreementId="",this.amazonPayConsentStatus="false",this.isLinkClicked=!1,this.expiredMessage="",this.validationMessage="",this.sessionExpiryMessage="",this.sessionId="",this.parameterArray={},this.receiptDetails=[],this.testToken="",this.kountSessionId="",this.encryptedSnaid="",this.cookieAccepted=!1,this.paypalEmail="",this.orderformVisitFired=!1,this.queryParams.affiliateRefData={}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),Ng=(()=>{class e{constructor(){this.loaderSubject=new R,this.loaderState$=this.loaderSubject.asObservable()}show(){this.loaderSubject.next({show:!0})}hide(){this.loaderSubject.next({show:!1})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),Dg=(()=>{class e{constructor(e,t,n){this.gd=e,this.ls=t,this.logger=n,this.sessionTimeoutExpired=new R}startSessionTimeOut(){this.sessionTimeoutExpired.subscribe(e=>{}),this.startTimer()}startTimer(){let e,t=0;e=Fu(5e3),e.subscribe(e=>{this.sessionTimeoutExpired.next(++t)})}getUrlVars(){const e=[];let t;const n=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(let r=0;r0)if(e.offerChainDetails.length>1){for(r=0;r-1}getEncSnaid(){let e=!1;return this.encSnaidFromUrl=this.getQueryStringValue("encryptedSnaid"),null!=this.encSnaidFromUrl&&""!==this.encSnaidFromUrl&&(e=!0),this.logger.log(`encoded snaid from URL: ${this.encSnaidFromUrl}`),e}getQueryStringValue(e){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(e).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}updatePageIdAndAssetId(e,t){try{window.history.replaceState({},"",this.buildNextAssetUrl(e,t)),function(e,t){void 0===e&&(e={}),void 0===t&&(t=Object.keys(xg)),t.forEach(function(t){xg[t]&&(xg[t].sharedState.hasLoaded?(Og(e,t),Rg(t)):xg[t].sharedState.registeredOnLoadHandlers.push(function(){Og(e,t),Rg(t)}))})}(),Eg(void 0,function(e){e.trackPageView(void 0)})}catch(n){this.logger.error("Error update page and asset err. ",n)}}buildNextAssetUrl(e,t){null!=this.gd.asset&&null!=this.gd.asset.sourceAssetType&&"OrderForm"===this.gd.asset.sourceAssetType&&null!=this.gd.asset.sourceParentAssetId?this.gd.assetIdForMainsell=this.gd.asset.sourceParentAssetId:null!=this.gd.asset&&null!=this.gd.asset.destAssetType&&"OrderForm"===this.gd.asset.destAssetType&&null!=this.gd.asset.destParentAssetId&&(this.gd.assetIdForMainsell=this.gd.asset.destParentAssetId),null!=this.gd.asset&&null!=this.gd.asset.destParentAssetId&&(this.gd.assetId=this.gd.asset.destParentAssetId);const n=[location.protocol,"//",location.host,location.pathname].join(""),r=document.location.search;let s="assetId="+e,i="?"+s;if(r){const e=new RegExp("([?&])assetId[^&]*");i=null!==r.match(e)?r.replace(e,"$1"+s):r+"&"+s}const o=i;if(s="page="+t,i="?"+s,o){const e=new RegExp("([?&])page[^&]*");i=null!==o.match(e)?o.replace(e,"$1"+s):o+"&"+s}return n+i}getRandomOfferChainItem(e,t){const n=t.reduce(function(e,t,n,r){return e+t}),r=this.rand(0,n);let s=0;for(let i=0;i-1}getSplittedAssetUrl(e){return e.split("prod")[1].split("/")}getFilenameFromAssetUrl(e){return this.getSplittedAssetUrl(e)[4]}showNextPageLinkBasedOnCookieForVLP(e,t){try{if(t===ju.VideoLandingPage){const t=this.gd.queryParams.campaignId+"_"+this.gd.queryParams.effortId+"_"+e;this.getCookie(t)&&""!==t?$(".store-next-page").show():this.setCookie(t,"visited",60)}}catch(n){}}copySourceToDestAssetDetails(e,t){e.destAssetId=t.sourceAssetId?t.sourceAssetId:"",e.destAssetLocation=t.sourceAssetLocation?t.sourceAssetLocation:"",e.destRatePlan=t.sourceRatePlan?t.sourceRatePlan:"",e.destOfferId=t.sourceOfferId?t.sourceOfferId:"",e.destPubCode=t.sourcePubCode?t.sourcePubCode:"",e.destAssetType=t.sourceAssetType?t.sourceAssetType:"",e.destAssetCode=t.sourceAssetCode?t.sourceAssetCode:"",e.destParentAssetId=t.sourceParentAssetId?t.sourceParentAssetId:"",e.destEmailSubject=t.sourceEmailSubject?t.sourceEmailSubject:"",e.destEmailTemplateUrl=t.sourceEmailTemplateUrl?t.sourceEmailTemplateUrl:"",e.destDoNotSendEmailToUser=t.sourceDoNotSendEmailToUser?t.sourceDoNotSendEmailToUser:"",e.destQuantityLimit=t.sourceQuantityLimit?t.sourceQuantityLimit:"",e.destExternalCss=t.sourceExternalCss?t.sourceExternalCss:"",e.destExternalJavacript=t.sourceExternalJavacript?t.sourceExternalJavacript:"",e.destInlineCss=t.sourceInlineCss?t.sourceInlineCss:"",e.destInlineJavascript=t.sourceInlineJavascript?t.sourceInlineJavascript:"",e.destPageRedirectUrl=t.sourcePageRedirectUrl?t.sourcePageRedirectUrl:"",e.destIsAuthOptIn=!!t.sourceIsAuthOptIn&&t.sourceIsAuthOptIn,e.destOfferPriceChoices=t.sourceOfferPriceChoices?t.sourceOfferPriceChoices:null}copySourceAssetDetails(e,t){t.sourceAssetLocation=e.sourceAssetLocation,t.sourceAssetId=e.sourceAssetId,t.sourceRatePlan=e.sourceRatePlan,t.sourceOfferId=e.sourceOfferId,t.sourcePubCode=e.sourcePubCode,t.sourceAssetType=e.sourceAssetType,t.sourceAssetCode=e.sourceAssetCode,t.sourceParentAssetId=e.sourceParentAssetId,t.sourceEmailTemplateUrl=e.sourceEmailTemplateUrl,t.sourceEmailSubject=e.sourceEmailSubject,t.sourceDoNotSendEmailToUser=e.sourceDoNotSendEmailToUser,t.sourceQuantityLimit=e.sourceQuantityLimit,t.sourceExternalCss=e.sourceExternalCss,t.sourceExternalJavacript=e.sourceExternalJavacript,t.sourceInlineCss=e.sourceInlineCss,t.sourceInlineJavascript=e.sourceInlineJavascript,t.sourcePageRedirectUrl=e.sourcePageRedirectUrl,t.sourceIsAuthOptIn=e.sourceIsAuthOptIn,t.sourceOfferPriceChoices=e.sourceOfferPriceChoices,t.sourceFromEmail=e.sourceFromEmail,t.sourceFromName=e.sourceFromName}getVersionedUrl(e){let t=e;if(!e.includes("https://marketingassets.marketwise.com")){const n=e.replace("https://","").replace("http://","");t="https://marketingassets.marketwise.com"+n.substring(n.indexOf("/"))}return t.includes("versionId")?t.replace("/versionId","?versionId")+"&ts="+Date.now():t+"?ts="+Date.now()}getLinkTrustData(){const e={};return this.gd.queryParams.affiliateRefData&&(Object.assign(e,this.gd.queryParams.affiliateRefData),[Ug.mainSellOrderType,Ug.upSellOrderType].indexOf(this.gd.orderType)<0&&(null==e||delete e.ref)),e}trimNotAlphanumeric(e){return e.replace(new RegExp("[^A-Za-z0-9]","g"),"")}processAffiliateRefData(){this.gd.vars.clickid&&(this.gd.queryParams.affiliateRefData.clickId=this.gd.vars.clickid),this.gd.vars.aff_click_id&&(this.gd.queryParams.affiliateRefData.affClickId=this.gd.vars.aff_click_id),this.gd.vars.iocid&&(this.gd.queryParams.affiliateRefData.iocid=this.gd.vars.iocid),this.gd.vars.tid&&(this.gd.queryParams.affiliateRefData.tid=this.gd.vars.tid),this.gd.vars.oid&&(this.gd.queryParams.affiliateRefData.oid=this.gd.vars.oid),this.gd.vars.affid&&(this.gd.queryParams.affiliateRefData.affid=this.gd.vars.affid),this.gd.vars.uid&&(this.gd.queryParams.affiliateRefData.uid=this.gd.vars.uid),this.gd.vars.source_id&&(this.gd.queryParams.affiliateRefData.sourceId=this.gd.vars.source_id),this.gd.vars.sub1&&(this.gd.queryParams.affiliateRefData.sub1=this.gd.vars.sub1),this.gd.vars.sub2&&(this.gd.queryParams.affiliateRefData.sub2=this.gd.vars.sub2),this.gd.vars.sub3&&(this.gd.queryParams.affiliateRefData.sub3=this.gd.vars.sub3),this.gd.vars.sub4&&(this.gd.queryParams.affiliateRefData.sub4=this.gd.vars.sub4),this.gd.vars.sub5&&(this.gd.queryParams.affiliateRefData.sub5=this.gd.vars.sub5),this.gd.vars.ref&&(this.gd.queryParams.affiliateRefData.ref=this.gd.vars.ref)}}return e.\u0275fac=function(t){return new(t||e)(fr(Lg),fr(Ng),fr(op))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();function Mg(...e){return pe(e,ue(e))}function Fg(e,t){return r(t)?ie(e,t,1):ie(e,1)}function jg(e,t){return N((n,r)=>{let s=0;n.subscribe(D(r,n=>e.call(t,n,s++)&&r.next(n)))})}class $g{}class Bg{}class qg{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof qg?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new qg;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof qg?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===s.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Hg{encodeKey(e){return Wg(e)}encodeValue(e){return Wg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const zg=/%(\d[a-f0-9])/gi,Vg={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Wg(e){return encodeURIComponent(e).replace(zg,(e,t)=>{var n;return null!==(n=Vg[t])&&void 0!==n?n:e})}function Gg(e){return`${e}`}class Zg{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Hg,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const r=e.indexOf("="),[s,i]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const r=e[n];Array.isArray(r)?r.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:r,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new Zg({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(Gg(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(Gg(e.value));-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class Jg{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}keys(){return this.map.keys()}}function Yg(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Kg(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Qg(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Xg{constructor(e,t,n,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new qg),this.context||(this.context=new Jg),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":nt.set(n,e.setHeaders[n]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),c)),new Xg(n,r,i,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var em=(()=>((em=em||{})[em.Sent=0]="Sent",em[em.UploadProgress=1]="UploadProgress",em[em.ResponseHeader=2]="ResponseHeader",em[em.DownloadProgress=3]="DownloadProgress",em[em.Response=4]="Response",em[em.User=5]="User",em))();class tm{constructor(e,t=200,n="OK"){this.headers=e.headers||new qg,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class nm extends tm{constructor(e={}){super(e),this.type=em.ResponseHeader}clone(e={}){return new nm({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class rm extends tm{constructor(e={}){super(e),this.type=em.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new rm({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class sm extends tm{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function im(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let om=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof Xg)r=e;else{let s,i;s=n.headers instanceof qg?n.headers:new qg(n.headers),n.params&&(i=n.params instanceof Zg?n.params:new Zg({fromObject:n.params})),r=new Xg(e,t,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Mg(r).pipe(Fg(e=>this.handler.handle(e)));if(e instanceof Xg||"events"===n.observe)return s;const i=s.pipe(jg(e=>e instanceof rm));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(F(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return i.pipe(F(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return i.pipe(F(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));default:return i.pipe(F(e=>e.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new Zg).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,im(n,t))}post(e,t,n={}){return this.request("POST",e,im(n,t))}put(e,t,n={}){return this.request("PUT",e,im(n,t))}}return e.\u0275fac=function(t){return new(t||e)(fr($g))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();class am{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const lm=new Yn("HTTP_INTERCEPTORS");let cm=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();const um=/^\)\]\}',?\n/;let dm=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new P(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,r=n.statusText||"OK",i=new qg(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new nm({headers:i,status:t,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(um,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new rm({body:l,headers:r,status:s,statusText:o,url:a||void 0})),t.complete()):t.error(new sm({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=i(),s=new sm({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(s)};let l=!1;const c=r=>{l||(t.next(i()),l=!0);let s={type:em.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===e.responseType&&!!n.responseText&&(s.partialText=n.responseText),t.next(s)},u=e=>{let n={type:em.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),t.next({type:em.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(fr(Gc))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();const hm=new Yn("XSRF_COOKIE_NAME"),fm=new Yn("XSRF_HEADER_NAME");class pm{}let gm=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,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=jc(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(fr(vc),fr(_l),fr(hm))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),mm=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.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)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(fr(pm),fr(fm))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),vm=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(lm,[]);this.chain=e.reduceRight((e,t)=>new am(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(fr(Bg),fr(ro))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),ym=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:mm,useClass:cm}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:hm,useValue:t.cookieName}:[],t.headerName?{provide:fm,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=lt({type:e}),e.\u0275inj=Pe({providers:[mm,{provide:lm,useExisting:mm,multi:!0},{provide:pm,useClass:gm},{provide:hm,useValue:"XSRF-TOKEN"},{provide:fm,useValue:"X-XSRF-TOKEN"}]}),e})(),bm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=lt({type:e}),e.\u0275inj=Pe({providers:[om,{provide:$g,useClass:vm},dm,{provide:Bg,useExisting:dm}],imports:[[ym.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})(),Cm=(()=>{class e{constructor(e,t){this.http=e,this.us=t}getOfflineTemplate(){return"https://marketingassets.marketwise.com/prod/templates/offlinecreditcardform.html?ts="+Date.now()}getOfferExpiredPage(e){return this.http.get(e,{responseType:"text"})}getOfflineForm(){return this.http.get(this.getOfflineTemplate(),{responseType:"text"})}getAsset(e){return new P(t=>{this.us.showLoader();const n=this.us.getVersionedUrl(e);this.http.get(n,{responseType:"text"}).subscribe(e=>{try{t.next(e),t.complete(),this.us.hideLoader()}catch(n){this.us.hideLoader(),t.next(e),t.complete()}},e=>{this.us.hideLoader(),t.error(e),t.complete()})})}}return e.\u0275fac=function(t){return new(t||e)(fr(om),fr(Dg))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();var wm=(()=>(function(e){e.imp="imp",e.click="click",e.conv="conv",e.orderformvisit="orderformvisit",e.landingPageVisit="landingpagevisit",e.emailCapture="emailcaptureactivitytype",e.transcriptPageVisit="transcriptpagevisit",e.hpmUnknownError="hpmUnknownError",e.orderFormType="orderFormType"}(wm||(wm={})),wm))();let Sm=(()=>{class e{constructor(e,t,n,r){this.gd=e,this.http=t,this.logger=n,this.us=r}postTrackerData(e){return new P(t=>{let n="";const r={headers:new qg({"Content-Type":"application/json"})};n=this.gd.site.trackerUrl,n=this.getTrackerUrl(n),this.http.post(n,e,r).subscribe(e=>{try{t.next(),t.complete()}catch(n){t.next(),t.complete()}},e=>{this.logger.error("Error sending data to tracker service. ",e)})})}postEventStreamData(e){return new P(t=>{let n="";const r={headers:new qg({"Content-Type":"application/json","x-api-key":"g5wZnpMOAV6d3DVWjACKU9Pz86tj10Es39Avoa3n"})};n="/snowflake/generic",this.http.post("/snowflake/generic",e,r).subscribe(e=>{try{t.next(),t.complete()}catch(n){t.next(),t.complete()}},e=>{this.logger.error("Error streaming data to the streaming API. with message ",e)})})}getTrackerUrl(e){return e.startsWith("http://")?e.replace("http://","https://"):e.indexOf("//")>-1?e="https://"+e.split("//")[1]:-1===e.indexOf("//")&&(e="https://"+e),e}loadPlacementDetail(){const e={custom:"",destination:"",destinationType:"",hostingList:"",placementType:"",scheduledTime:""};if(!this.isEmpty(this.gd.site.placementModel)){if(null!=this.gd.site.placementModel.custom&&""!==this.gd.site.placementModel.custom){const t=JSON.parse(this.gd.site.placementModel.custom);if(null!=t&&""!==t)for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];null!=r&&""!==r&&(e.custom+=r+"|")}}null!=this.gd.site.placementModel.destination&&""!==this.gd.site.placementModel.destination&&(e.destination=encodeURIComponent(this.gd.site.placementModel.destination).trim()),null!=this.gd.site.placementModel.destinationType&&""!==this.gd.site.placementModel.destinationType&&(e.destinationType=encodeURIComponent(this.gd.site.placementModel.destinationType).trim()),null!=this.gd.site.placementModel.hostingList&&""!==this.gd.site.placementModel.hostingList&&(e.hostingList=encodeURIComponent(this.gd.site.placementModel.hostingList).trim()),null!=this.gd.site.placementModel.placementType&&""!==this.gd.site.placementModel.placementType&&(e.placementType=encodeURIComponent(this.gd.site.placementModel.placementType).trim())}return e}isEmpty(e){for(const t in e)if(e.hasOwnProperty(t))return!1;return!0}getSourceForTracker(){let e="";return this.gd.queryParams.testOrder&&"TRUE"===this.gd.queryParams.testOrder.toUpperCase()&&(e="test"),e}getTrackingAssetType(e){const t={isCrossSell:!1,isUpSell:!1,isDownSell:!1,isMainSell:!1};return null==e?t.isMainSell=!0:e.isCrossSell?t.isCrossSell=!0:e.isUpSell?t.isUpSell=!0:e.isDownSell?t.isDownSell=!0:e.isMainSell&&(t.isMainSell=!0),t}captureEmailInTracker(){}setAssetType(e){this.assetType=e}getAssetType(){return this.assetType}track(e,t){{const n=this.getEventStreamData(e,t);null!=n&&this.postEventStreamData(n).subscribe(e=>{},e=>{})}}getEventStreamData(e,t){const n=this.loadPlacementDetail(),r=this.getSourceForTracker(),s=this.getTrackingAssetType(this.assetType);if(e&&e!==this.gd.assetConvActivityType){const i={};let o,a="";this.gd.queryParams.snaid&&(a=this.gd.queryParams.snaid),(null===a||""===a)&&(a=this.gd.snaid),o={},this.gd.queryParams.qryUtm_source&&(o.utmSource=this.gd.queryParams.qryUtm_source),this.gd.queryParams.qryUtm_medium&&(o.utmMedium=this.gd.queryParams.qryUtm_medium),this.gd.queryParams.qryUtm_campaign&&(o.utmCampaign=this.gd.queryParams.qryUtm_campaign),this.gd.queryParams.qryUtm_term&&(o.utmTerm=this.gd.queryParams.qryUtm_term),this.gd.queryParams.qryUtm_content&&(o.utmContent=this.gd.queryParams.qryUtm_content);let l="";if(this.gd.queryParams.encryptedSnaid&&(l=decodeURIComponent(this.gd.queryParams.encryptedSnaid)),i.cid=this.gd.queryParams.campaignId,i.at=e,i.eid=this.gd.queryParams.effortId,i.pubcode=null!=this.gd.asset.sourcePubCode?this.gd.asset.sourcePubCode:"",i.oc=this.gd.site.offerChainId,i.oid=null!=this.gd.asset.sourceOfferId?this.gd.asset.sourceOfferId:"",i.aid=null!=this.gd.asset.sourceParentAssetId?this.gd.asset.sourceParentAssetId:"",i.agrp="",i.asid=null!=this.gd.asset.sourceAssetCode?this.gd.asset.sourceAssetCode:"",i.atype=null!=this.gd.asset.sourceAssetType?this.gd.asset.sourceAssetType:"",i.offeraid=null!=this.gd.asset.sourceOfferId?this.gd.asset.sourceOfferId:"",i.snaid=a,i.source=r,i.email=null!=this.gd.email?this.gd.email:"",i.xsell=s.isCrossSell,i.upsell=s.isUpSell,i.downsell=s.isDownSell,i.plcid=null!=this.gd.queryParams.placementId?this.gd.queryParams.placementId:"",i.plcustom=n.custom,i.pldest=n.destination,i.pldesttype=n.destinationType,i.plho=n.hostingList,i.pltype=n.placementType,i.plschd=n.scheduledTime,i.oneTimePrice=this.isEmpty(this.gd.offerPriceChoice)?0:this.gd.offerPriceChoice.oneTimePrice,i.productName=null!=this.gd.offerPriceChoice.productName?this.gd.offerPriceChoice.productName:"",i.promotionLink=window.location.href,i.emailjobid=this.gd.queryParams.emailJobId,i.emailname=this.gd.queryParams.emailName,i.eventCategory="clickstream",i.eventStatus=t?"error":"success",i.eventType=e,i.brandId=this.gd.site.brandId,i.sessionId=this.gd.sessionId,i.utm=o,i.encryptedSnaid=l,this.gd.queryParams.affiliateRefData&&(i.affiliateRefData=this.us.getLinkTrustData()),this.gd.testToken&&(i.testToken=this.gd.testToken),wm.orderFormType===e&&Store.form.typeList.length>0){let e=[];Store.form.typeList.forEach(t=>{e.push(Store.FormTypes[t])}),i.orderFormType=e.toString()}return t&&(i.errorMessage=t),i}return null}}return e.\u0275fac=function(t){return new(t||e)(fr(Lg),fr(om),fr(op),fr(Dg))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();var Em=(()=>(function(e){e.zuora="zuora",e.amazonPay="amazonPay",e.paypal="paypal"}(Em||(Em={})),Em))();let _m=(()=>{class e{constructor(e){this.gd=e}setReceipt(e){var t,n,r,s;this.clearReceipt(),$(".store-receipt-productname").length&&e.productName&&$(".store-receipt-productname").text(e.productName),$(".store-receipt-quantity").length&&e.quantity&&$(".store-receipt-quantity").text(e.quantity.toLocaleString()),$(".store-receipt-billingdescriptor").length&&e.billingDescriptor&&$(".store-receipt-billingdescriptor").text(e.billingDescriptor),$(".store-receipt-firstname").length&&e.fn&&$(".store-receipt-firstname").text(e.fn),$(".store-receipt-lastname").length&&e.ln&&$(".store-receipt-lastname").text(e.ln),$(".store-receipt-email").length&&e.email&&$(".store-receipt-email").text(e.email),$(".store-receipt-street").length&&e.street&&$(".store-receipt-street").text(e.street),$(".store-receipt-city").length&&e.city&&$(".store-receipt-city").text(e.city),$(".store-receipt-zip").length&&e.zip&&$(".store-receipt-zip").text(e.zip),$(".store-receipt-country").length&&e.country&&$(".store-receipt-country").text(e.country),$(".store-receipt-homephone").length&&e.homePhone&&$(".store-receipt-homephone").text(e.homePhone),$(".store-receipt-mobilephone").length&&e.mobilePhone&&$(".store-receipt-mobilephone").text(e.mobilePhone),e.pmtProcessor===Em.amazonPay?$(".store-receipt-paymentprocessor")&&$(".store-receipt-paymentprocessor").text("Amazon Pay"):($(".store-receipt-paymentprocessor")&&$(".store-receipt-paymentprocessor").text("Secure Credit Card Online"),$(".store-receipt-ccmask").length&&e.ccMask&&$(".store-receipt-ccmask").text(e.ccMask)),$(".store-receipt-totalamount").length&&e.totalAmountWithBundled&&$(".store-receipt-totalamount").text(e.totalAmountWithBundled),$(".store-receipt-taxamount").length&&e.taxAmountWithBundled&&$(".store-receipt-taxamount").text(e.taxAmountWithBundled),$(".store-receipt-totalamountwithtax").length&&e.totalAmountWithTaxWithBundled&&$(".store-receipt-totalamountwithtax").text(e.totalAmountWithTaxWithBundled),$(".store-receipt-totalAmountBeforeDiscount").length&&e.totalAmountBeforeDiscount&&$(".store-receipt-totalAmountBeforeDiscount").text(e.totalAmountBeforeDiscount),$(".store-receipt-coupon-code").length&&e.couponCode?($(".store-receipt-coupon-code").text(e.couponCode),$(".store-receipt-coupon-code-id").text(e.couponCodeId),$(".store-receipt-coupon-immediate-charge").text(null!==(t=e.couponImmediateCharge)&&void 0!==t?t:0),$(".store-receipt-coupon-recurring-charge").text(null!==(n=e.couponRecurringCharge)&&void 0!==n?n:0),$(".store-receipt-coupon-immediate-charge-discount").text(null!==(r=e.couponImmediateChargeDiscount)&&void 0!==r?r:0),$(".store-receipt-coupon-recurring-charge-discount").text(null!==(s=e.couponRecurringChargeDiscount)&&void 0!==s?s:0),this.showCouponData()):this.hideCouponData()}mapOrderConfirmationToReceipt(e){const t={};return e.productName&&(t.productName=e.productName),e.quantity&&(t.quantity=e.quantity),e.firstName&&(t.fn=e.firstName),e.lastName&&(t.ln=e.lastName),e.email&&(t.email=e.email),e.street&&(t.street=e.street),e.city&&(t.city=e.city),e.postalCode&&(t.zip=e.postalCode),e.country&&(t.country=e.country),e.homePhone&&(t.homePhone=e.homePhone),e.mobilePhone&&(t.mobilePhone=e.mobilePhone),e.paymentProcessor&&(t.pmtProcessor=e.paymentProcessor),e.ccMask&&(t.ccMask=e.ccMask),t.billingDescriptor=this.gd.paymentProcessor===Em.amazonPay?this.gd.site.amazonPayBillingDescriptor:this.gd.site.billingDescriptor,e.totalAmountWithBundled&&(t.totalAmountWithBundled=e.totalAmountWithBundled,this.gd.funnelAmount+=Number(e.totalAmountWithBundled)),e.taxAmountWithBundled&&(t.taxAmountWithBundled=e.taxAmountWithBundled,this.gd.funnelTaxAmount+=Number(e.taxAmountWithBundled)),e.totalAmountWithTaxWithBundled&&(t.totalAmountWithTaxWithBundled=e.totalAmountWithTaxWithBundled,this.gd.totalFunnelAmount+=Number(e.totalAmountWithTaxWithBundled)),e.totalAmountBeforeDiscount&&(t.totalAmountBeforeDiscount=e.totalAmountBeforeDiscount,this.gd.funnelAmountBeforeDiscount+=Number(e.totalAmountBeforeDiscount)),e.couponCode&&(t.couponCode=e.couponCode,t.couponCodeId=e.couponCodeId,t.couponImmediateCharge=e.couponImmediateCharge,t.couponRecurringCharge=e.couponRecurringCharge,t.couponImmediateChargeDiscount=e.couponImmediateChargeDiscount,t.couponRecurringChargeDiscount=e.couponRecurringChargeDiscount),t}mapOfferDetailToReceipt(e){const t={};e.productName&&(t.productName=e.productName);let n=e.oneTimePrice?e.oneTimePrice:0,r=n.toFixed(2);return t.totalAmountWithBundled=r,this.gd.funnelAmount+=n,t.taxAmountWithBundled="0.00",this.gd.funnelTaxAmount+=Number(0),t.totalAmountWithTaxWithBundled=r,this.gd.totalFunnelAmount+=e.oneTimePrice,t.totalAmountBeforeDiscount=r,this.gd.funnelAmountBeforeDiscount+=e.oneTimePrice,t}clearReceipt(){$(".store-receipt-productname").text(""),$(".store-receipt-quantity").text(""),$(".store-receipt-billingdescriptor").text(""),$(".store-receipt-firstname").text(""),$(".store-receipt-lastname").text(""),$(".store-receipt-email").text(""),$(".store-receipt-street").text(""),$(".store-receipt-city").text(""),$(".store-receipt-zip").text(""),$(".store-receipt-country").text(""),$(".store-receipt-homephone").text(""),$(".store-receipt-mobilephone").text(""),$(".store-receipt-paymentprocessor").text(""),$(".store-receipt-ccmask").text(""),$(".store-receipt-totalamount").text(""),$(".store-receipt-taxamount").text(""),$(".store-receipt-totalamountwithtax").text(""),$(".store-receipt-coupon-code").text(""),$(".store-receipt-coupon-code-id").text(""),$(".store-receipt-coupon-immediate-charge").text(""),$(".store-receipt-coupon-recurring-charge").text(""),$(".store-receipt-coupon-immediate-charge-discount").text(""),$(".store-receipt-coupon-recurring-charge-discount").text(""),$(".store-receipt-totalAmountBeforeDiscount").text("")}showCouponData(){$(".store-receipt-coupon-container").show()}hideCouponData(){$(".store-receipt-coupon-container").hide()}}return e.\u0275fac=function(t){return new(t||e)(fr(Lg))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})();function Tm(...e){return oe(1)(pe(e,ue(e)))}class xm{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(e,t=!1){return this.onePassHasher.start().appendStr(e).end(t)}static hashAsciiStr(e,t=!1){return this.onePassHasher.start().appendAsciiStr(e).end(t)}static _hex(e){const t=xm.hexChars,n=xm.hexOut;let r,s,i,o;for(o=0;o<4;o+=1)for(s=8*o,r=e[o],i=0;i<8;i+=2)n[s+1+i]=t.charAt(15&r),r>>>=4,n[s+0+i]=t.charAt(15&r),r>>>=4;return n.join("")}static _md5cycle(e,t){let n=e[0],r=e[1],s=e[2],i=e[3];n+=(r&s|~r&i)+t[0]-680876936|0,n=(n<<7|n>>>25)+r|0,i+=(n&r|~n&s)+t[1]-389564586|0,i=(i<<12|i>>>20)+n|0,s+=(i&n|~i&r)+t[2]+606105819|0,s=(s<<17|s>>>15)+i|0,r+=(s&i|~s&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+s|0,n+=(r&s|~r&i)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,i+=(n&r|~n&s)+t[5]+1200080426|0,i=(i<<12|i>>>20)+n|0,s+=(i&n|~i&r)+t[6]-1473231341|0,s=(s<<17|s>>>15)+i|0,r+=(s&i|~s&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+s|0,n+=(r&s|~r&i)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,i+=(n&r|~n&s)+t[9]-1958414417|0,i=(i<<12|i>>>20)+n|0,s+=(i&n|~i&r)+t[10]-42063|0,s=(s<<17|s>>>15)+i|0,r+=(s&i|~s&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+s|0,n+=(r&s|~r&i)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,i+=(n&r|~n&s)+t[13]-40341101|0,i=(i<<12|i>>>20)+n|0,s+=(i&n|~i&r)+t[14]-1502002290|0,s=(s<<17|s>>>15)+i|0,r+=(s&i|~s&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+s|0,n+=(r&i|s&~i)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,i+=(n&s|r&~s)+t[6]-1069501632|0,i=(i<<9|i>>>23)+n|0,s+=(i&r|n&~r)+t[11]+643717713|0,s=(s<<14|s>>>18)+i|0,r+=(s&n|i&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+s|0,n+=(r&i|s&~i)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,i+=(n&s|r&~s)+t[10]+38016083|0,i=(i<<9|i>>>23)+n|0,s+=(i&r|n&~r)+t[15]-660478335|0,s=(s<<14|s>>>18)+i|0,r+=(s&n|i&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+s|0,n+=(r&i|s&~i)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,i+=(n&s|r&~s)+t[14]-1019803690|0,i=(i<<9|i>>>23)+n|0,s+=(i&r|n&~r)+t[3]-187363961|0,s=(s<<14|s>>>18)+i|0,r+=(s&n|i&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+s|0,n+=(r&i|s&~i)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,i+=(n&s|r&~s)+t[2]-51403784|0,i=(i<<9|i>>>23)+n|0,s+=(i&r|n&~r)+t[7]+1735328473|0,s=(s<<14|s>>>18)+i|0,r+=(s&n|i&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+s|0,n+=(r^s^i)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,i+=(n^r^s)+t[8]-2022574463|0,i=(i<<11|i>>>21)+n|0,s+=(i^n^r)+t[11]+1839030562|0,s=(s<<16|s>>>16)+i|0,r+=(s^i^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+s|0,n+=(r^s^i)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,i+=(n^r^s)+t[4]+1272893353|0,i=(i<<11|i>>>21)+n|0,s+=(i^n^r)+t[7]-155497632|0,s=(s<<16|s>>>16)+i|0,r+=(s^i^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+s|0,n+=(r^s^i)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,i+=(n^r^s)+t[0]-358537222|0,i=(i<<11|i>>>21)+n|0,s+=(i^n^r)+t[3]-722521979|0,s=(s<<16|s>>>16)+i|0,r+=(s^i^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+s|0,n+=(r^s^i)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,i+=(n^r^s)+t[12]-421815835|0,i=(i<<11|i>>>21)+n|0,s+=(i^n^r)+t[15]+530742520|0,s=(s<<16|s>>>16)+i|0,r+=(s^i^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+s|0,n+=(s^(r|~i))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,i+=(r^(n|~s))+t[7]+1126891415|0,i=(i<<10|i>>>22)+n|0,s+=(n^(i|~r))+t[14]-1416354905|0,s=(s<<15|s>>>17)+i|0,r+=(i^(s|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+s|0,n+=(s^(r|~i))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,i+=(r^(n|~s))+t[3]-1894986606|0,i=(i<<10|i>>>22)+n|0,s+=(n^(i|~r))+t[10]-1051523|0,s=(s<<15|s>>>17)+i|0,r+=(i^(s|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+s|0,n+=(s^(r|~i))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,i+=(r^(n|~s))+t[15]-30611744|0,i=(i<<10|i>>>22)+n|0,s+=(n^(i|~r))+t[6]-1560198380|0,s=(s<<15|s>>>17)+i|0,r+=(i^(s|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+s|0,n+=(s^(r|~i))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,i+=(r^(n|~s))+t[11]-1120210379|0,i=(i<<10|i>>>22)+n|0,s+=(n^(i|~r))+t[2]+718787259|0,s=(s<<15|s>>>17)+i|0,r+=(i^(s|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+s|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=s+e[2]|0,e[3]=i+e[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(xm.stateIdentity),this}appendStr(e){const t=this._buffer8,n=this._buffer32;let r,s,i=this._bufferLength;for(s=0;s>>6),t[i++]=63&r|128;else if(r<55296||r>56319)t[i++]=224+(r>>>12),t[i++]=r>>>6&63|128,t[i++]=63&r|128;else{if(r=1024*(r-55296)+(e.charCodeAt(++s)-56320)+65536,r>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");t[i++]=240+(r>>>18),t[i++]=r>>>12&63|128,t[i++]=r>>>6&63|128,t[i++]=63&r|128}i>=64&&(this._dataLength+=64,xm._md5cycle(this._state,n),i-=64,n[0]=n[16])}return this._bufferLength=i,this}appendAsciiStr(e){const t=this._buffer8,n=this._buffer32;let r,s=this._bufferLength,i=0;for(;;){for(r=Math.min(e.length-i,64-s);r--;)t[s++]=e.charCodeAt(i++);if(s<64)break;this._dataLength+=64,xm._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}appendByteArray(e){const t=this._buffer8,n=this._buffer32;let r,s=this._bufferLength,i=0;for(;;){for(r=Math.min(e.length-i,64-s);r--;)t[s++]=e[i++];if(s<64)break;this._dataLength+=64,xm._md5cycle(this._state,n),s=0}return this._bufferLength=s,this}getState(){const e=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[e[0],e[1],e[2],e[3]]}}setState(e){const t=e.buffer,n=e.state,r=this._state;let s;for(this._dataLength=e.length,this._bufferLength=e.buflen,r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],s=0;s>2);this._dataLength+=t;const i=8*this._dataLength;if(n[t]=128,n[t+1]=n[t+2]=n[t+3]=0,r.set(xm.buffer32Identity.subarray(s),s),t>55&&(xm._md5cycle(this._state,r),r.set(xm.buffer32Identity)),i<=4294967295)r[14]=i;else{const e=i.toString(16).match(/(.*?)(.{0,8})$/);if(null===e)return;const t=parseInt(e[2],16),n=parseInt(e[1],16)||0;r[14]=t,r[15]=n}return xm._md5cycle(this._state,r),e?this._state:xm._hex(this._state)}}if(xm.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),xm.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),xm.hexChars="0123456789abcdef",xm.hexOut=[],xm.onePassHasher=new xm,"5d41402abc4b2a76b9719d911017c592"!==xm.hashStr("hello"))throw new Error("Md5 self test failed.");var Am=(()=>(function(e){e.continue="Continue",e.noThankYou="NoThankYou",e.submit="Submit",e.next="Next",e.readTranscript="ReadTranscript",e.skipLogin="SkipLogin",e.submitLogin="SubmitLogin"}(Am||(Am={})),Am))();const km=s(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Pm(e,t){const n="object"==typeof t;return new Promise((r,s)=>{const i=new E({next:e=>{r(e),i.unsubscribe()},error:s,complete:()=>{n?r(t.defaultValue):s(new km)}});e.subscribe(i)})}let Im=(()=>{class e{constructor(e,t){this.http=e,this.gd=t,this.httpOptions={headers:new qg({"Content-Type":"application/json"})}}checkAuthenticationExistence(e,t){return B(this,void 0,void 0,function*(){const n={email:e,brandId:t};return yield Pm(this.http.post("/web-authentication/v1/new-user",n,this.httpOptions)).then(e=>e.isNewUser).catch(e=>(console.log(e),!1))})}getWebsite(e){return B(this,void 0,void 0,function*(){const t="/b2b/v1/customization/"+e;return yield Pm(this.http.get(t)).then(e=>e.redirect_url).catch(e=>(console.log(e),""))})}createSetPasswordLink(e,t,n){return B(this,void 0,void 0,function*(){console.log("Create set-password link by email=",e," and brandId=",t," and snaid= ",n);let r="";return this.gd.setPasswordToken?r="https://accountmanager.marketwise.com/app/index.html#/set-password?token="+this.gd.setPasswordToken+"&email="+encodeURIComponent(e)+"&brandid="+t:console.warn("The token was not created for email=",e," and brandId=",t),r})}createAuthenticationLink(e){return B(this,void 0,void 0,function*(){console.log("Create authentication link by brandId=",e);const t=yield this.getWebsite(e);let n="";return t?n=t:console.warn("Customization not be found for brandId=",e),n})}injectAuthorizationLink(e){$(".authorization-link").text(e),console.log("auth set-up is finished")}cleanUpAuthorizationHtml(){$(".authorization-link").text("")}createAuthorizationHtml(e,t,n){return B(this,void 0,void 0,function*(){console.log("Get authorization html by email=",e," and brandId=",t);const r=yield this.checkAuthenticationExistence(e,t);console.log("isNewUser = ",r),r?yield this.createSetPasswordLink(e,t,n).then(e=>{this.injectAuthorizationLink(e),console.log("authorization link = ",e)}):yield this.createAuthenticationLink(t).then(e=>{this.injectAuthorizationLink(e)})})}setAuthorizationElement(e,t,n){return B(this,void 0,void 0,function*(){document.getElementsByClassName("authorization-link").length&&(this.cleanUpAuthorizationHtml(),yield this.createAuthorizationHtml(e,t,n))})}createUserAuthentication(t,n,r){return B(this,void 0,void 0,function*(){yield Pm(this.http.put("/user-management/api/v1/users/password",{password:n,email:r},e.buildHttpOptions(t))).then(e=>e.message).catch(e=>(console.log(e),"error"))})}static buildHttpOptions(e){return{headers:new qg({"Content-Type":"application/json",Authorization:e})}}}return e.\u0275fac=function(t){return new(t||e)(fr(om),fr(Lg))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),Om=(()=>{class e{constructor(){this.orderFormSubmitSucceeded=new R,this.zuoraOrderFormSubmitFailed=new R,this.isOrderFormAsset=new R,this.isNextPageClicked=new R,this.isNextPageNewTabClicked=new R,this.isUpsellClickedYes=new R,this.isUpsellClickedNo=new R,this.isCrosssellClickedYes=new R,this.isCrosssellClickedNo=new R,this.isUpsellDynamicClickedYes=new R,this.isUpsellDynamicClickedNo=new R,this.isCrossSellDynamicClickedYes=new R,this.isCrossSellDynamicClickedNo=new R,this.amazonPaySelect=new R,this.payPalSelect=new R,this.ccSelect=new R,this.noCcSelectToggle=new R,this.ccSelectToggle=new R,this.errorInfo=new R,this.htmlContent=new R,this.isInitializeHtmlListener=new R,this.isOfferPriceChoiceLoad=new R,this.isOfferPriceChoiceRadioLoad=new R,this.isStartTimer=new R,this.isUpdateTimer=new R,this.saveLead=new R,this.interFunnelLoad=new R,this.paymentMethodLoad=new R,this.isStoreTranscriptPageClick=new R,this.isApplyCouponCodeClick=new R,this.isCouponCodeInput=new R,this.createAccountPageLoad=new R,this.isCreateAccountSkipped=new R,this.orderFormSubmitSucceeded$=this.orderFormSubmitSucceeded.asObservable(),this.zuoraOrderFormSubmitFailed$=this.zuoraOrderFormSubmitFailed.asObservable(),this.isOrderFormAsset$=this.isOrderFormAsset.asObservable(),this.isNextPageClicked$=this.isNextPageClicked.asObservable(),this.isNextPageNewTabClicked$=this.isNextPageNewTabClicked.asObservable(),this.isUpsellClickedYes$=this.isUpsellClickedYes.asObservable(),this.isUpsellClickedNo$=this.isUpsellClickedNo.asObservable(),this.isCrosssellClickedYes$=this.isCrosssellClickedYes.asObservable(),this.isCrosssellClickedNo$=this.isCrosssellClickedNo.asObservable(),this.isUpsellDynamicClickedYes$=this.isUpsellDynamicClickedYes.asObservable(),this.isUpsellDynamicClickedNo$=this.isUpsellDynamicClickedNo.asObservable(),this.isCrossSellDynamicClickedYes$=this.isCrossSellDynamicClickedYes.asObservable(),this.isCrossSellDynamicClickedNo$=this.isCrossSellDynamicClickedNo.asObservable(),this.amazonPaySelect$=this.amazonPaySelect.asObservable(),this.payPalSelect$=this.payPalSelect.asObservable(),this.ccSelect$=this.ccSelect.asObservable(),this.noCcSelectToggle$=this.noCcSelectToggle.asObservable(),this.ccSelectToggle$=this.ccSelectToggle.asObservable(),this.htmlContent$=this.htmlContent.asObservable(),this.isInitializeHtmlListener$=this.isInitializeHtmlListener.asObservable(),this.isOfferPriceChoiceLoad$=this.isOfferPriceChoiceLoad.asObservable(),this.isOfferPriceChoiceRadioLoad$=this.isOfferPriceChoiceRadioLoad.asObservable(),this.isStartTimer$=this.isStartTimer.asObservable(),this.isUpdateTimer$=this.isUpdateTimer.asObservable(),this.saveLead$=this.saveLead.asObservable(),this.interFunnelLoad$=this.interFunnelLoad.asObservable(),this.paymentMethodLoad$=this.paymentMethodLoad.asObservable(),this.isStoreTranscriptPageClick$=this.isStoreTranscriptPageClick.asObservable(),this.isApplyCouponCodeClick$=this.isApplyCouponCodeClick.asObservable(),this.isCouponCodeInput$=this.isCouponCodeInput.asObservable(),this.createAccountPageLoad$=this.createAccountPageLoad.asObservable(),this.isCreateAccountSkipped$=this.isCreateAccountSkipped.asObservable()}onOrderFormSubmitSucceeded(){this.orderFormSubmitSucceeded.next(!0)}onZuoraOrderFormSubmitFailed(e){this.zuoraOrderFormSubmitFailed.next(e)}onOrderFormLoad(){this.isOrderFormAsset.next(!0)}onSetErrorInfo(e){this.errorInfo.next(e)}onNextPageClick(){this.isNextPageClicked.next(!0)}onNextPageNewTabClick(){this.isNextPageNewTabClicked.next(!0)}onCCSelect(){this.ccSelect.next(!0)}onNoCcSelectToggle(){this.noCcSelectToggle.next(!0)}onCcSelectToggle(){this.ccSelectToggle.next(!0)}onSaveLead(){this.saveLead.next(!0)}onAmazonPaySelect(){this.amazonPaySelect.next(!0)}onPayPalSelect(){this.payPalSelect.next(!0)}onCrosssellClickYes(){this.isCrosssellClickedYes.next(!0)}onCrosssellClickNo(){this.isCrosssellClickedNo.next(!0)}onUpsellClickYes(){this.isUpsellClickedYes.next(!0)}onUpsellClickNo(){this.isUpsellClickedNo.next(!0)}onUpsellDynamicClickYes(){this.isUpsellDynamicClickedYes.next(!0)}onUpsellDynamicClickNo(){this.isUpsellDynamicClickedNo.next(!0)}onCrossSellDynamicClickYes(){this.isCrossSellDynamicClickedYes.next(!0)}onCrossSellDynamicClickNo(){this.isCrossSellDynamicClickedNo.next(!0)}onHtmlContentSet(e){this.htmlContent.next(e)}onOfferPriceChoiceLoad(){this.isOfferPriceChoiceLoad.next(!0)}onInitializeHtmlListener(){this.isInitializeHtmlListener.next(!0)}onOfferPriceChoiceRadioLoad(e){this.isOfferPriceChoiceRadioLoad.next(e)}onStartTimer(){this.isStartTimer.next(!0)}onUpdateTimer(){this.isUpdateTimer.next(!0)}onLoadInterFunnel(e){this.interFunnelLoad.next(e)}onPaymentMethodLoad(){this.paymentMethodLoad.next(!0)}onStoreTranscriptPageClick(){this.isStoreTranscriptPageClick.next(!0)}onApplyCouponCodeClick(){this.isApplyCouponCodeClick.next(!0)}onCouponCodeInput(){this.isCouponCodeInput.next(!0)}onCreateAccountPageLoad(){this.createAccountPageLoad.next(!0)}onCreateAccountSkipped(){this.isCreateAccountSkipped.next(!0)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),Rm=(()=>{class e{constructor(e){this.gd=e}triggerExternalJsFiles(){try{this.gd.site.externalJavaScriptFiles&&this.createScriptTag(this.gd.site.externalJavaScriptFiles,"externalJavaScriptFiles",null)}catch(e){console.log("error sending the data to DMP "+e)}}createScriptTag(e,t,n){const r=document.getElementsByTagName("head").item(0),s=document.createElement("script");if(s.type="text/javascript",s.src=e,s.id=t,n){s.setAttribute("data-brandId",n);const e=parseInt(n);s.setAttribute("data-affiliateId",""+(e-e%100))}r.appendChild(s)}fireReloadAssetData(e){try{setTimeout(()=>{const t=new Event(e);document.dispatchEvent(t)},300)}catch(np){console.log("error sending the data to DMP "+np)}}}return e.\u0275fac=function(t){return new(t||e)(fr(Lg))},e.\u0275prov=ke({token:e,factory:e.\u0275fac}),e})(),Um=(()=>{class e{constructor(e){this.gd=e}setDynamicData(){try{this.clearDynamicData(),this.bindDynamicData()}catch(e){}}getSelectedOfferPriceChoice(){let e=null;return e=$(":radio[name=rdoPriceChoices]:checked").length>=1?this.gd.offerPriceChoice:this.gd.asset.sourceOfferPriceChoices[0],e}clearDynamicData(){$(".store-brand-name").text(""),$(".store-brand-id").text(""),$(".store-pub-name").text(""),$(".store-pub-code").text(""),$(".store-ofp-name").text(""),$(".store-onetime-price").text(""),$(".store-recurring-price").text(""),$(".store-billing-period").text(""),$(".store-level").text("")}bindDynamicData(){if(this.gd.site){$(".store-brand-name").length&&this.gd.site.brandName&&$(".store-brand-name").text(this.gd.site.brandName),$(".store-brand-id").length&&this.gd.site.brandId&&$(".store-brand-id").text(this.gd.site.brandId),$(".store-pub-code").length&&this.gd.asset&&this.gd.asset.sourcePubCode&&$(".store-pub-code").text(this.gd.asset.sourcePubCode);const e=this.getSelectedOfferPriceChoice();if(e){if($(".store-brand-id").length&&e.brandId){$(".store-brand-id").text(e.brandId);let t="";e.brandName?t=e.brandName:this.gd.site.brandName&&(t=this.gd.site.brandName),$(".store-brand-name").length&&t&&$(".store-brand-name").text(t)}$(".store-ofp-name").length&&e.name&&$(".store-ofp-name").text(e.name),$(".store-onetime-price").length&&null!=e.oneTimePrice&&$(".store-onetime-price").text(e.oneTimePrice),$(".store-recurring-price").length&&null!=e.recurringPrice&&$(".store-recurring-price").text(e.recurringPrice),$(".store-billing-period").length&&e.billingPeriod&&$(".store-billing-period").text(e.billingPeriod),$(".store-level").length&&e.level&&$(".store-level").text(e.level),$(".store-pub-name").length&&e.productName&&$(".store-pub-name").text(e.productName)}}try{this.gd.site&&this.gd.site.reusableContentMap&&Object.keys(this.gd.site.reusableContentMap).forEach(e=>{e&&""!==e&&this.gd.site.reusableContentMap[e]&&""!==this.gd.site.reusableContentMap[e]&&$(".store-component-"+e).length>0&&$(".store-component-"+e).html($("